@invoicebox/ui 0.1.0-alpha.11 → 0.1.0-alpha.13
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/components/common/InvoiceboxLoader/index.d.ts +5 -0
- package/dist/components/common/InvoiceboxLoader/index.js +878 -0
- package/dist/components/common/InvoiceboxLoader/index.stories.d.ts +5 -0
- package/dist/components/common/InvoiceboxLoader/index.stories.js +18 -0
- package/dist/components/common/Skeleton/index.d.ts +5 -1
- package/dist/components/common/Skeleton/index.js +9 -2
- package/dist/components/common/Skeleton/index.stories.d.ts +4 -5
- package/dist/components/common/Skeleton/index.stories.js +13 -11
- package/dist/components/common/Skeleton/styles.d.ts +4 -1
- package/dist/components/common/Skeleton/styles.js +7 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -1
- package/package.json +9 -6
- package/dist/stories/Button.d.ts +0 -26
- package/dist/stories/Button.js +0 -46
- package/dist/stories/Button.stories.d.ts +0 -21
- package/dist/stories/Button.stories.js +0 -49
- package/dist/stories/styles.d.ts +0 -23
- package/dist/stories/styles.js +0 -33
|
@@ -0,0 +1,878 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.InvoiceboxLoader = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _lottieReact = _interopRequireDefault(require("lottie-react"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
+
var animation = {
|
|
11
|
+
v: "5.5.7",
|
|
12
|
+
meta: {
|
|
13
|
+
g: "LottieFiles AE 0.1.20",
|
|
14
|
+
a: "",
|
|
15
|
+
k: "",
|
|
16
|
+
d: "",
|
|
17
|
+
tc: ""
|
|
18
|
+
},
|
|
19
|
+
fr: 30,
|
|
20
|
+
ip: 0,
|
|
21
|
+
op: 90,
|
|
22
|
+
w: 1000,
|
|
23
|
+
h: 1000,
|
|
24
|
+
nm: "Invoicebox-Sign-Color",
|
|
25
|
+
ddd: 0,
|
|
26
|
+
assets: [],
|
|
27
|
+
layers: [{
|
|
28
|
+
ddd: 0,
|
|
29
|
+
ind: 1,
|
|
30
|
+
ty: 4,
|
|
31
|
+
nm: "Glas L",
|
|
32
|
+
sr: 1,
|
|
33
|
+
ks: {
|
|
34
|
+
o: {
|
|
35
|
+
a: 0,
|
|
36
|
+
k: 100,
|
|
37
|
+
ix: 11
|
|
38
|
+
},
|
|
39
|
+
r: {
|
|
40
|
+
a: 1,
|
|
41
|
+
k: [{
|
|
42
|
+
i: {
|
|
43
|
+
x: [0.667],
|
|
44
|
+
y: [1]
|
|
45
|
+
},
|
|
46
|
+
o: {
|
|
47
|
+
x: [0.333],
|
|
48
|
+
y: [0]
|
|
49
|
+
},
|
|
50
|
+
t: 0,
|
|
51
|
+
s: [-279]
|
|
52
|
+
}, {
|
|
53
|
+
i: {
|
|
54
|
+
x: [0.667],
|
|
55
|
+
y: [1]
|
|
56
|
+
},
|
|
57
|
+
o: {
|
|
58
|
+
x: [0.167],
|
|
59
|
+
y: [0]
|
|
60
|
+
},
|
|
61
|
+
t: 21,
|
|
62
|
+
s: [0]
|
|
63
|
+
}, {
|
|
64
|
+
i: {
|
|
65
|
+
x: [0.667],
|
|
66
|
+
y: [1]
|
|
67
|
+
},
|
|
68
|
+
o: {
|
|
69
|
+
x: [0.333],
|
|
70
|
+
y: [0]
|
|
71
|
+
},
|
|
72
|
+
t: 60,
|
|
73
|
+
s: [0]
|
|
74
|
+
}, {
|
|
75
|
+
t: 80,
|
|
76
|
+
s: [279]
|
|
77
|
+
}],
|
|
78
|
+
ix: 10
|
|
79
|
+
},
|
|
80
|
+
p: {
|
|
81
|
+
a: 0,
|
|
82
|
+
k: [500.5, 499.5, 0],
|
|
83
|
+
ix: 2
|
|
84
|
+
},
|
|
85
|
+
a: {
|
|
86
|
+
a: 0,
|
|
87
|
+
k: [500.5, 499.5, 0],
|
|
88
|
+
ix: 1
|
|
89
|
+
},
|
|
90
|
+
s: {
|
|
91
|
+
a: 1,
|
|
92
|
+
k: [{
|
|
93
|
+
i: {
|
|
94
|
+
x: [0.667, 0.667, 0.667],
|
|
95
|
+
y: [1, 1, 1]
|
|
96
|
+
},
|
|
97
|
+
o: {
|
|
98
|
+
x: [0.333, 0.333, 0.333],
|
|
99
|
+
y: [0, 0, 0]
|
|
100
|
+
},
|
|
101
|
+
t: 0,
|
|
102
|
+
s: [0, 0, 100]
|
|
103
|
+
}, {
|
|
104
|
+
i: {
|
|
105
|
+
x: [0.667, 0.667, 0.667],
|
|
106
|
+
y: [1, 1, 1]
|
|
107
|
+
},
|
|
108
|
+
o: {
|
|
109
|
+
x: [0.167, 0.167, 0.167],
|
|
110
|
+
y: [0, 0, 0]
|
|
111
|
+
},
|
|
112
|
+
t: 21,
|
|
113
|
+
s: [100, 100, 100]
|
|
114
|
+
}, {
|
|
115
|
+
i: {
|
|
116
|
+
x: [0.667, 0.667, 0.667],
|
|
117
|
+
y: [1, 1, 1]
|
|
118
|
+
},
|
|
119
|
+
o: {
|
|
120
|
+
x: [0.333, 0.333, 0.333],
|
|
121
|
+
y: [0, 0, 0]
|
|
122
|
+
},
|
|
123
|
+
t: 60,
|
|
124
|
+
s: [100, 100, 100]
|
|
125
|
+
}, {
|
|
126
|
+
t: 80,
|
|
127
|
+
s: [0, 0, 100]
|
|
128
|
+
}],
|
|
129
|
+
ix: 6
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
ao: 0,
|
|
133
|
+
shapes: [{
|
|
134
|
+
ty: "gr",
|
|
135
|
+
it: [{
|
|
136
|
+
ind: 0,
|
|
137
|
+
ty: "sh",
|
|
138
|
+
ix: 1,
|
|
139
|
+
ks: {
|
|
140
|
+
a: 1,
|
|
141
|
+
k: [{
|
|
142
|
+
i: {
|
|
143
|
+
x: 0.667,
|
|
144
|
+
y: 1
|
|
145
|
+
},
|
|
146
|
+
o: {
|
|
147
|
+
x: 0.333,
|
|
148
|
+
y: 0
|
|
149
|
+
},
|
|
150
|
+
t: 39,
|
|
151
|
+
s: [{
|
|
152
|
+
i: [[30.868, 0], [23.552, -23.547], [-47.105, -47.105], [-30.87, 0], [-23.553, 23.547], [47.107, 47.105]],
|
|
153
|
+
o: [[-30.87, 0], [-47.105, 47.105], [23.552, 23.547], [30.868, 0], [47.107, -47.105], [-23.553, -23.547]],
|
|
154
|
+
v: [[0, -120.624], [-85.292, -85.292], [-85.292, 85.293], [0, 120.624], [85.29, 85.293], [85.29, -85.292]],
|
|
155
|
+
c: true
|
|
156
|
+
}]
|
|
157
|
+
}, {
|
|
158
|
+
i: {
|
|
159
|
+
x: 0.667,
|
|
160
|
+
y: 1
|
|
161
|
+
},
|
|
162
|
+
o: {
|
|
163
|
+
x: 0.333,
|
|
164
|
+
y: 0
|
|
165
|
+
},
|
|
166
|
+
t: 43,
|
|
167
|
+
s: [{
|
|
168
|
+
i: [[30.864, 0.731], [23.659, -9.648], [-46.879, -21.523], [-30.866, -0.731], [-23.66, 9.648], [46.881, 21.523]],
|
|
169
|
+
o: [[-30.866, -0.731], [-47.32, 19.296], [23.439, 10.761], [30.864, 0.731], [47.322, -19.296], [-23.44, -10.761]],
|
|
170
|
+
v: [[0.536, -41.244], [-84.91, -27.955], [-85.71, 45.963], [-0.595, 63.293], [84.85, 50.004], [85.65, -23.914]],
|
|
171
|
+
c: true
|
|
172
|
+
}]
|
|
173
|
+
}, {
|
|
174
|
+
t: 47,
|
|
175
|
+
s: [{
|
|
176
|
+
i: [[30.868, 0], [23.552, -23.547], [-47.105, -47.105], [-30.87, 0], [-23.553, 23.547], [47.107, 47.105]],
|
|
177
|
+
o: [[-30.87, 0], [-47.105, 47.105], [23.552, 23.547], [30.868, 0], [47.107, -47.105], [-23.553, -23.547]],
|
|
178
|
+
v: [[0, -120.624], [-85.292, -85.292], [-85.292, 85.293], [0, 120.624], [85.29, 85.293], [85.29, -85.292]],
|
|
179
|
+
c: true
|
|
180
|
+
}]
|
|
181
|
+
}],
|
|
182
|
+
ix: 2
|
|
183
|
+
},
|
|
184
|
+
nm: "Path 1",
|
|
185
|
+
mn: "ADBE Vector Shape - Group",
|
|
186
|
+
hd: false
|
|
187
|
+
}, {
|
|
188
|
+
ind: 1,
|
|
189
|
+
ty: "sh",
|
|
190
|
+
ix: 2,
|
|
191
|
+
ks: {
|
|
192
|
+
a: 1,
|
|
193
|
+
k: [{
|
|
194
|
+
i: {
|
|
195
|
+
x: 0.667,
|
|
196
|
+
y: 1
|
|
197
|
+
},
|
|
198
|
+
o: {
|
|
199
|
+
x: 0.333,
|
|
200
|
+
y: 0
|
|
201
|
+
},
|
|
202
|
+
t: 39,
|
|
203
|
+
s: [{
|
|
204
|
+
i: [[-15.306, 0], [-10.826, -10.828], [0, -15.307], [10.825, -10.827], [15.303, 0], [10.823, 10.818], [0, 15.305], [-10.823, 10.827]],
|
|
205
|
+
o: [[15.303, 0], [10.823, 10.818], [0, 15.305], [-10.824, 10.818], [-15.306, 0], [-10.823, -10.827], [0, -15.307], [10.823, -10.819]],
|
|
206
|
+
v: [[0, -57.305], [40.518, -40.513], [57.301, 0.001], [40.516, 40.522], [0, 57.306], [-40.518, 40.522], [-57.303, 0.001], [-40.518, -40.522]],
|
|
207
|
+
c: true
|
|
208
|
+
}]
|
|
209
|
+
}, {
|
|
210
|
+
i: {
|
|
211
|
+
x: 0.667,
|
|
212
|
+
y: 1
|
|
213
|
+
},
|
|
214
|
+
o: {
|
|
215
|
+
x: 0.333,
|
|
216
|
+
y: 0
|
|
217
|
+
},
|
|
218
|
+
t: 43,
|
|
219
|
+
s: [{
|
|
220
|
+
i: [[-15.306, 0], [-10.826, 0], [0, 0], [10.825, 0], [15.303, 0], [10.823, 0], [0, 0], [-10.823, 0]],
|
|
221
|
+
o: [[15.303, 0], [10.823, 0], [0, 0], [-10.824, 0], [-15.306, 0], [-10.823, 0], [0, 0], [10.823, 0]],
|
|
222
|
+
v: [[-1, 10.024], [39.518, 10.024], [56.301, 10.024], [39.516, 10.024], [-1, 10.024], [-41.518, 10.024], [-58.303, 10.024], [-41.518, 10.024]],
|
|
223
|
+
c: true
|
|
224
|
+
}]
|
|
225
|
+
}, {
|
|
226
|
+
t: 47,
|
|
227
|
+
s: [{
|
|
228
|
+
i: [[-15.306, 0], [-10.826, -10.828], [0, -15.307], [10.825, -10.827], [15.303, 0], [10.823, 10.818], [0, 15.305], [-10.823, 10.827]],
|
|
229
|
+
o: [[15.303, 0], [10.823, 10.818], [0, 15.305], [-10.824, 10.818], [-15.306, 0], [-10.823, -10.827], [0, -15.307], [10.823, -10.819]],
|
|
230
|
+
v: [[0, -57.305], [40.518, -40.513], [57.301, 0.001], [40.516, 40.522], [0, 57.306], [-40.518, 40.522], [-57.303, 0.001], [-40.518, -40.522]],
|
|
231
|
+
c: true
|
|
232
|
+
}]
|
|
233
|
+
}],
|
|
234
|
+
ix: 2
|
|
235
|
+
},
|
|
236
|
+
nm: "Path 2",
|
|
237
|
+
mn: "ADBE Vector Shape - Group",
|
|
238
|
+
hd: false
|
|
239
|
+
}, {
|
|
240
|
+
ty: "mm",
|
|
241
|
+
mm: 1,
|
|
242
|
+
nm: "Merge Paths 1",
|
|
243
|
+
mn: "ADBE Vector Filter - Merge",
|
|
244
|
+
hd: false
|
|
245
|
+
}, {
|
|
246
|
+
ty: "fl",
|
|
247
|
+
c: {
|
|
248
|
+
a: 0,
|
|
249
|
+
k: [0.134852106431, 0.138380791159, 0.184372441909, 1],
|
|
250
|
+
ix: 4
|
|
251
|
+
},
|
|
252
|
+
o: {
|
|
253
|
+
a: 0,
|
|
254
|
+
k: 100,
|
|
255
|
+
ix: 5
|
|
256
|
+
},
|
|
257
|
+
r: 1,
|
|
258
|
+
bm: 0,
|
|
259
|
+
nm: "Fill 1",
|
|
260
|
+
mn: "ADBE Vector Graphic - Fill",
|
|
261
|
+
hd: false
|
|
262
|
+
}, {
|
|
263
|
+
ty: "tr",
|
|
264
|
+
p: {
|
|
265
|
+
a: 0,
|
|
266
|
+
k: [254.653, 489.476],
|
|
267
|
+
ix: 2
|
|
268
|
+
},
|
|
269
|
+
a: {
|
|
270
|
+
a: 1,
|
|
271
|
+
k: [{
|
|
272
|
+
i: {
|
|
273
|
+
x: 0.667,
|
|
274
|
+
y: 1
|
|
275
|
+
},
|
|
276
|
+
o: {
|
|
277
|
+
x: 0.333,
|
|
278
|
+
y: 0
|
|
279
|
+
},
|
|
280
|
+
t: 0,
|
|
281
|
+
s: [780, 0],
|
|
282
|
+
to: [-130, 0],
|
|
283
|
+
ti: [130, 0]
|
|
284
|
+
}, {
|
|
285
|
+
i: {
|
|
286
|
+
x: 0.667,
|
|
287
|
+
y: 0.667
|
|
288
|
+
},
|
|
289
|
+
o: {
|
|
290
|
+
x: 0.333,
|
|
291
|
+
y: 0.333
|
|
292
|
+
},
|
|
293
|
+
t: 21,
|
|
294
|
+
s: [0, 0],
|
|
295
|
+
to: [0, 0],
|
|
296
|
+
ti: [0, 0]
|
|
297
|
+
}, {
|
|
298
|
+
i: {
|
|
299
|
+
x: 0.667,
|
|
300
|
+
y: 1
|
|
301
|
+
},
|
|
302
|
+
o: {
|
|
303
|
+
x: 0.333,
|
|
304
|
+
y: 0
|
|
305
|
+
},
|
|
306
|
+
t: 60,
|
|
307
|
+
s: [0, 0],
|
|
308
|
+
to: [130, 0],
|
|
309
|
+
ti: [-130, 0]
|
|
310
|
+
}, {
|
|
311
|
+
t: 80,
|
|
312
|
+
s: [780, 0]
|
|
313
|
+
}],
|
|
314
|
+
ix: 1
|
|
315
|
+
},
|
|
316
|
+
s: {
|
|
317
|
+
a: 0,
|
|
318
|
+
k: [100, 100],
|
|
319
|
+
ix: 3
|
|
320
|
+
},
|
|
321
|
+
r: {
|
|
322
|
+
a: 0,
|
|
323
|
+
k: 0,
|
|
324
|
+
ix: 6
|
|
325
|
+
},
|
|
326
|
+
o: {
|
|
327
|
+
a: 0,
|
|
328
|
+
k: 100,
|
|
329
|
+
ix: 7
|
|
330
|
+
},
|
|
331
|
+
sk: {
|
|
332
|
+
a: 0,
|
|
333
|
+
k: 0,
|
|
334
|
+
ix: 4
|
|
335
|
+
},
|
|
336
|
+
sa: {
|
|
337
|
+
a: 0,
|
|
338
|
+
k: 0,
|
|
339
|
+
ix: 5
|
|
340
|
+
},
|
|
341
|
+
nm: "Transform"
|
|
342
|
+
}],
|
|
343
|
+
nm: "Group 2",
|
|
344
|
+
np: 4,
|
|
345
|
+
cix: 2,
|
|
346
|
+
bm: 0,
|
|
347
|
+
ix: 1,
|
|
348
|
+
mn: "ADBE Vector Group",
|
|
349
|
+
hd: false
|
|
350
|
+
}],
|
|
351
|
+
ip: 0,
|
|
352
|
+
op: 450,
|
|
353
|
+
st: 0,
|
|
354
|
+
bm: 0
|
|
355
|
+
}, {
|
|
356
|
+
ddd: 0,
|
|
357
|
+
ind: 2,
|
|
358
|
+
ty: 4,
|
|
359
|
+
nm: "smil",
|
|
360
|
+
sr: 1,
|
|
361
|
+
ks: {
|
|
362
|
+
o: {
|
|
363
|
+
a: 0,
|
|
364
|
+
k: 100,
|
|
365
|
+
ix: 11
|
|
366
|
+
},
|
|
367
|
+
r: {
|
|
368
|
+
a: 1,
|
|
369
|
+
k: [{
|
|
370
|
+
i: {
|
|
371
|
+
x: [0.667],
|
|
372
|
+
y: [1]
|
|
373
|
+
},
|
|
374
|
+
o: {
|
|
375
|
+
x: [0.333],
|
|
376
|
+
y: [0]
|
|
377
|
+
},
|
|
378
|
+
t: 4,
|
|
379
|
+
s: [-279]
|
|
380
|
+
}, {
|
|
381
|
+
i: {
|
|
382
|
+
x: [0.667],
|
|
383
|
+
y: [1]
|
|
384
|
+
},
|
|
385
|
+
o: {
|
|
386
|
+
x: [0.167],
|
|
387
|
+
y: [0]
|
|
388
|
+
},
|
|
389
|
+
t: 30,
|
|
390
|
+
s: [0]
|
|
391
|
+
}, {
|
|
392
|
+
i: {
|
|
393
|
+
x: [0.667],
|
|
394
|
+
y: [1]
|
|
395
|
+
},
|
|
396
|
+
o: {
|
|
397
|
+
x: [0.333],
|
|
398
|
+
y: [0]
|
|
399
|
+
},
|
|
400
|
+
t: 39,
|
|
401
|
+
s: [0]
|
|
402
|
+
}, {
|
|
403
|
+
i: {
|
|
404
|
+
x: [0.667],
|
|
405
|
+
y: [1]
|
|
406
|
+
},
|
|
407
|
+
o: {
|
|
408
|
+
x: [0.333],
|
|
409
|
+
y: [0]
|
|
410
|
+
},
|
|
411
|
+
t: 43,
|
|
412
|
+
s: [19]
|
|
413
|
+
}, {
|
|
414
|
+
i: {
|
|
415
|
+
x: [0.667],
|
|
416
|
+
y: [1]
|
|
417
|
+
},
|
|
418
|
+
o: {
|
|
419
|
+
x: [0.333],
|
|
420
|
+
y: [0]
|
|
421
|
+
},
|
|
422
|
+
t: 47,
|
|
423
|
+
s: [0]
|
|
424
|
+
}, {
|
|
425
|
+
i: {
|
|
426
|
+
x: [0.667],
|
|
427
|
+
y: [1]
|
|
428
|
+
},
|
|
429
|
+
o: {
|
|
430
|
+
x: [0.333],
|
|
431
|
+
y: [0]
|
|
432
|
+
},
|
|
433
|
+
t: 63,
|
|
434
|
+
s: [0]
|
|
435
|
+
}, {
|
|
436
|
+
t: 83,
|
|
437
|
+
s: [279]
|
|
438
|
+
}],
|
|
439
|
+
ix: 10
|
|
440
|
+
},
|
|
441
|
+
p: {
|
|
442
|
+
a: 0,
|
|
443
|
+
k: [500.5, 499.5, 0],
|
|
444
|
+
ix: 2
|
|
445
|
+
},
|
|
446
|
+
a: {
|
|
447
|
+
a: 0,
|
|
448
|
+
k: [500.5, 499.5, 0],
|
|
449
|
+
ix: 1
|
|
450
|
+
},
|
|
451
|
+
s: {
|
|
452
|
+
a: 1,
|
|
453
|
+
k: [{
|
|
454
|
+
i: {
|
|
455
|
+
x: [0.667, 0.667, 0.667],
|
|
456
|
+
y: [1, 1, 1]
|
|
457
|
+
},
|
|
458
|
+
o: {
|
|
459
|
+
x: [0.333, 0.333, 0.333],
|
|
460
|
+
y: [0, 0, 0]
|
|
461
|
+
},
|
|
462
|
+
t: 4,
|
|
463
|
+
s: [0, 0, 100]
|
|
464
|
+
}, {
|
|
465
|
+
i: {
|
|
466
|
+
x: [0.667, 0.667, 0.667],
|
|
467
|
+
y: [1, 1, 1]
|
|
468
|
+
},
|
|
469
|
+
o: {
|
|
470
|
+
x: [0.167, 0.167, 0.167],
|
|
471
|
+
y: [0, 0, 0]
|
|
472
|
+
},
|
|
473
|
+
t: 30,
|
|
474
|
+
s: [100, 100, 100]
|
|
475
|
+
}, {
|
|
476
|
+
i: {
|
|
477
|
+
x: [0.667, 0.667, 0.667],
|
|
478
|
+
y: [1, 1, 1]
|
|
479
|
+
},
|
|
480
|
+
o: {
|
|
481
|
+
x: [0.333, 0.333, 0.333],
|
|
482
|
+
y: [0, 0, 0]
|
|
483
|
+
},
|
|
484
|
+
t: 63,
|
|
485
|
+
s: [100, 100, 100]
|
|
486
|
+
}, {
|
|
487
|
+
t: 83,
|
|
488
|
+
s: [0, 0, 100]
|
|
489
|
+
}],
|
|
490
|
+
ix: 6
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
ao: 0,
|
|
494
|
+
shapes: [{
|
|
495
|
+
ty: "gr",
|
|
496
|
+
it: [{
|
|
497
|
+
ind: 0,
|
|
498
|
+
ty: "sh",
|
|
499
|
+
ix: 1,
|
|
500
|
+
ks: {
|
|
501
|
+
a: 0,
|
|
502
|
+
k: {
|
|
503
|
+
i: [[0, 0], [32.06, 4.125], [19.359, 22.884], [-8.376, 7.095], [-7.2, -4.858], [0, 0], [-17.873, 3.06], [-9.496, 12.608], [-17.776, -13.382], [13.395, -17.77], [3.166, -2.298]],
|
|
504
|
+
o: [[-28.296, 20.312], [-32.214, -3.754], [-7.084, -8.386], [6.968, -5.884], [0, 0], [17.062, 11.533], [18.047, -2.893], [13.375, -17.771], [17.758, 13.383], [-2.47, 3.289], [0, 0]],
|
|
505
|
+
v: [[78.769, 26.144], [-16.734, 50.82], [-97.664, 7.972], [-95.329, -20.055], [-71.356, -21.365], [-70.623, -20.868], [-15.576, -8.461], [27.003, -33.617], [83.42, -41.563], [91.353, 14.845], [82.841, 23.234]],
|
|
506
|
+
c: true
|
|
507
|
+
},
|
|
508
|
+
ix: 2
|
|
509
|
+
},
|
|
510
|
+
nm: "Path 1",
|
|
511
|
+
mn: "ADBE Vector Shape - Group",
|
|
512
|
+
hd: false
|
|
513
|
+
}, {
|
|
514
|
+
ty: "fl",
|
|
515
|
+
c: {
|
|
516
|
+
a: 0,
|
|
517
|
+
k: [0.989351519416, 0.838442574295, 0.020511326135, 1],
|
|
518
|
+
ix: 4
|
|
519
|
+
},
|
|
520
|
+
o: {
|
|
521
|
+
a: 0,
|
|
522
|
+
k: 100,
|
|
523
|
+
ix: 5
|
|
524
|
+
},
|
|
525
|
+
r: 1,
|
|
526
|
+
bm: 0,
|
|
527
|
+
nm: "Fill 1",
|
|
528
|
+
mn: "ADBE Vector Graphic - Fill",
|
|
529
|
+
hd: false
|
|
530
|
+
}, {
|
|
531
|
+
ty: "tr",
|
|
532
|
+
p: {
|
|
533
|
+
a: 0,
|
|
534
|
+
k: [456.162, 628.048],
|
|
535
|
+
ix: 2
|
|
536
|
+
},
|
|
537
|
+
a: {
|
|
538
|
+
a: 1,
|
|
539
|
+
k: [{
|
|
540
|
+
i: {
|
|
541
|
+
x: 0.667,
|
|
542
|
+
y: 1
|
|
543
|
+
},
|
|
544
|
+
o: {
|
|
545
|
+
x: 0.333,
|
|
546
|
+
y: 0
|
|
547
|
+
},
|
|
548
|
+
t: 4,
|
|
549
|
+
s: [780, 0],
|
|
550
|
+
to: [-130, 0],
|
|
551
|
+
ti: [130, 0]
|
|
552
|
+
}, {
|
|
553
|
+
i: {
|
|
554
|
+
x: 0.667,
|
|
555
|
+
y: 0.667
|
|
556
|
+
},
|
|
557
|
+
o: {
|
|
558
|
+
x: 0.333,
|
|
559
|
+
y: 0.333
|
|
560
|
+
},
|
|
561
|
+
t: 30,
|
|
562
|
+
s: [0, 0],
|
|
563
|
+
to: [0, 0],
|
|
564
|
+
ti: [0, 0]
|
|
565
|
+
}, {
|
|
566
|
+
i: {
|
|
567
|
+
x: 0.667,
|
|
568
|
+
y: 1
|
|
569
|
+
},
|
|
570
|
+
o: {
|
|
571
|
+
x: 0.333,
|
|
572
|
+
y: 0
|
|
573
|
+
},
|
|
574
|
+
t: 63,
|
|
575
|
+
s: [0, 0],
|
|
576
|
+
to: [130, 0],
|
|
577
|
+
ti: [-130, 0]
|
|
578
|
+
}, {
|
|
579
|
+
t: 83,
|
|
580
|
+
s: [780, 0]
|
|
581
|
+
}],
|
|
582
|
+
ix: 1
|
|
583
|
+
},
|
|
584
|
+
s: {
|
|
585
|
+
a: 0,
|
|
586
|
+
k: [100, 100],
|
|
587
|
+
ix: 3
|
|
588
|
+
},
|
|
589
|
+
r: {
|
|
590
|
+
a: 0,
|
|
591
|
+
k: 0,
|
|
592
|
+
ix: 6
|
|
593
|
+
},
|
|
594
|
+
o: {
|
|
595
|
+
a: 0,
|
|
596
|
+
k: 100,
|
|
597
|
+
ix: 7
|
|
598
|
+
},
|
|
599
|
+
sk: {
|
|
600
|
+
a: 0,
|
|
601
|
+
k: 0,
|
|
602
|
+
ix: 4
|
|
603
|
+
},
|
|
604
|
+
sa: {
|
|
605
|
+
a: 0,
|
|
606
|
+
k: 0,
|
|
607
|
+
ix: 5
|
|
608
|
+
},
|
|
609
|
+
nm: "Transform"
|
|
610
|
+
}],
|
|
611
|
+
nm: "Group 1",
|
|
612
|
+
np: 2,
|
|
613
|
+
cix: 2,
|
|
614
|
+
bm: 0,
|
|
615
|
+
ix: 1,
|
|
616
|
+
mn: "ADBE Vector Group",
|
|
617
|
+
hd: false
|
|
618
|
+
}],
|
|
619
|
+
ip: 4,
|
|
620
|
+
op: 454,
|
|
621
|
+
st: 4,
|
|
622
|
+
bm: 0
|
|
623
|
+
}, {
|
|
624
|
+
ddd: 0,
|
|
625
|
+
ind: 3,
|
|
626
|
+
ty: 4,
|
|
627
|
+
nm: "Invoicebox-Sign-Color Outlines",
|
|
628
|
+
sr: 1,
|
|
629
|
+
ks: {
|
|
630
|
+
o: {
|
|
631
|
+
a: 0,
|
|
632
|
+
k: 100,
|
|
633
|
+
ix: 11
|
|
634
|
+
},
|
|
635
|
+
r: {
|
|
636
|
+
a: 1,
|
|
637
|
+
k: [{
|
|
638
|
+
i: {
|
|
639
|
+
x: [0.667],
|
|
640
|
+
y: [1]
|
|
641
|
+
},
|
|
642
|
+
o: {
|
|
643
|
+
x: [0.333],
|
|
644
|
+
y: [0]
|
|
645
|
+
},
|
|
646
|
+
t: 2,
|
|
647
|
+
s: [-279]
|
|
648
|
+
}, {
|
|
649
|
+
t: 28,
|
|
650
|
+
s: [0],
|
|
651
|
+
h: 1
|
|
652
|
+
}, {
|
|
653
|
+
i: {
|
|
654
|
+
x: [0.667],
|
|
655
|
+
y: [1]
|
|
656
|
+
},
|
|
657
|
+
o: {
|
|
658
|
+
x: [0.333],
|
|
659
|
+
y: [0]
|
|
660
|
+
},
|
|
661
|
+
t: 67,
|
|
662
|
+
s: [0]
|
|
663
|
+
}, {
|
|
664
|
+
t: 87,
|
|
665
|
+
s: [279]
|
|
666
|
+
}],
|
|
667
|
+
ix: 10
|
|
668
|
+
},
|
|
669
|
+
p: {
|
|
670
|
+
a: 0,
|
|
671
|
+
k: [500.5, 499.5, 0],
|
|
672
|
+
ix: 2
|
|
673
|
+
},
|
|
674
|
+
a: {
|
|
675
|
+
a: 0,
|
|
676
|
+
k: [500.5, 499.5, 0],
|
|
677
|
+
ix: 1
|
|
678
|
+
},
|
|
679
|
+
s: {
|
|
680
|
+
a: 1,
|
|
681
|
+
k: [{
|
|
682
|
+
i: {
|
|
683
|
+
x: [0.667, 0.667, 0.667],
|
|
684
|
+
y: [1, 1, 1]
|
|
685
|
+
},
|
|
686
|
+
o: {
|
|
687
|
+
x: [0.333, 0.333, 0.333],
|
|
688
|
+
y: [0, 0, 0]
|
|
689
|
+
},
|
|
690
|
+
t: 2,
|
|
691
|
+
s: [0, 0, 100]
|
|
692
|
+
}, {
|
|
693
|
+
i: {
|
|
694
|
+
x: [0.667, 0.667, 0.667],
|
|
695
|
+
y: [1, 1, 1]
|
|
696
|
+
},
|
|
697
|
+
o: {
|
|
698
|
+
x: [0.167, 0.167, 0.167],
|
|
699
|
+
y: [0, 0, 0]
|
|
700
|
+
},
|
|
701
|
+
t: 28,
|
|
702
|
+
s: [100, 100, 100]
|
|
703
|
+
}, {
|
|
704
|
+
i: {
|
|
705
|
+
x: [0.667, 0.667, 0.667],
|
|
706
|
+
y: [1, 1, 1]
|
|
707
|
+
},
|
|
708
|
+
o: {
|
|
709
|
+
x: [0.333, 0.333, 0.333],
|
|
710
|
+
y: [0, 0, 0]
|
|
711
|
+
},
|
|
712
|
+
t: 67,
|
|
713
|
+
s: [100, 100, 100]
|
|
714
|
+
}, {
|
|
715
|
+
t: 87,
|
|
716
|
+
s: [0, 0, 100]
|
|
717
|
+
}],
|
|
718
|
+
ix: 6
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
ao: 0,
|
|
722
|
+
shapes: [{
|
|
723
|
+
ty: "gr",
|
|
724
|
+
it: [{
|
|
725
|
+
ind: 0,
|
|
726
|
+
ty: "sh",
|
|
727
|
+
ix: 1,
|
|
728
|
+
ks: {
|
|
729
|
+
a: 0,
|
|
730
|
+
k: {
|
|
731
|
+
i: [[86.983, 0], [0, -86.981], [-86.983, 0], [0, 86.991]],
|
|
732
|
+
o: [[-86.983, 0], [0, 86.991], [86.983, 0], [0, -86.981]],
|
|
733
|
+
v: [[0.001, -157.493], [-157.497, -0.005], [0.001, 157.493], [157.497, -0.005]],
|
|
734
|
+
c: true
|
|
735
|
+
},
|
|
736
|
+
ix: 2
|
|
737
|
+
},
|
|
738
|
+
nm: "Path 1",
|
|
739
|
+
mn: "ADBE Vector Shape - Group",
|
|
740
|
+
hd: false
|
|
741
|
+
}, {
|
|
742
|
+
ind: 1,
|
|
743
|
+
ty: "sh",
|
|
744
|
+
ix: 2,
|
|
745
|
+
ks: {
|
|
746
|
+
a: 0,
|
|
747
|
+
k: {
|
|
748
|
+
i: [[-45.481, 0], [0, -45.473], [45.481, 0], [0, 45.484]],
|
|
749
|
+
o: [[45.481, 0], [0, 45.484], [-45.481, 0], [0, -45.473]],
|
|
750
|
+
v: [[0.001, -82.479], [82.482, -0.005], [0.001, 82.479], [-82.483, -0.005]],
|
|
751
|
+
c: true
|
|
752
|
+
},
|
|
753
|
+
ix: 2
|
|
754
|
+
},
|
|
755
|
+
nm: "Path 2",
|
|
756
|
+
mn: "ADBE Vector Shape - Group",
|
|
757
|
+
hd: false
|
|
758
|
+
}, {
|
|
759
|
+
ty: "mm",
|
|
760
|
+
mm: 1,
|
|
761
|
+
nm: "Merge Paths 1",
|
|
762
|
+
mn: "ADBE Vector Filter - Merge",
|
|
763
|
+
hd: false
|
|
764
|
+
}, {
|
|
765
|
+
ty: "fl",
|
|
766
|
+
c: {
|
|
767
|
+
a: 0,
|
|
768
|
+
k: [0.989351519416, 0.838442574295, 0.020511326135, 1],
|
|
769
|
+
ix: 4
|
|
770
|
+
},
|
|
771
|
+
o: {
|
|
772
|
+
a: 0,
|
|
773
|
+
k: 100,
|
|
774
|
+
ix: 5
|
|
775
|
+
},
|
|
776
|
+
r: 1,
|
|
777
|
+
bm: 0,
|
|
778
|
+
nm: "Fill 1",
|
|
779
|
+
mn: "ADBE Vector Graphic - Fill",
|
|
780
|
+
hd: false
|
|
781
|
+
}, {
|
|
782
|
+
ty: "tr",
|
|
783
|
+
p: {
|
|
784
|
+
a: 0,
|
|
785
|
+
k: [708.471, 477.61],
|
|
786
|
+
ix: 2
|
|
787
|
+
},
|
|
788
|
+
a: {
|
|
789
|
+
a: 1,
|
|
790
|
+
k: [{
|
|
791
|
+
i: {
|
|
792
|
+
x: 0.667,
|
|
793
|
+
y: 1
|
|
794
|
+
},
|
|
795
|
+
o: {
|
|
796
|
+
x: 0.333,
|
|
797
|
+
y: 0
|
|
798
|
+
},
|
|
799
|
+
t: 2,
|
|
800
|
+
s: [1409.904, 0],
|
|
801
|
+
to: [-207.106, 0],
|
|
802
|
+
ti: [94.769, 0]
|
|
803
|
+
}, {
|
|
804
|
+
t: 28,
|
|
805
|
+
s: [0, 0],
|
|
806
|
+
h: 1
|
|
807
|
+
}, {
|
|
808
|
+
i: {
|
|
809
|
+
x: 0.667,
|
|
810
|
+
y: 1
|
|
811
|
+
},
|
|
812
|
+
o: {
|
|
813
|
+
x: 0.333,
|
|
814
|
+
y: 0
|
|
815
|
+
},
|
|
816
|
+
t: 67,
|
|
817
|
+
s: [0, 0],
|
|
818
|
+
to: [0, 0],
|
|
819
|
+
ti: [76.992, 0]
|
|
820
|
+
}, {
|
|
821
|
+
t: 87,
|
|
822
|
+
s: [1409.904, 0]
|
|
823
|
+
}],
|
|
824
|
+
ix: 1
|
|
825
|
+
},
|
|
826
|
+
s: {
|
|
827
|
+
a: 0,
|
|
828
|
+
k: [100, 100],
|
|
829
|
+
ix: 3
|
|
830
|
+
},
|
|
831
|
+
r: {
|
|
832
|
+
a: 0,
|
|
833
|
+
k: 0,
|
|
834
|
+
ix: 6
|
|
835
|
+
},
|
|
836
|
+
o: {
|
|
837
|
+
a: 0,
|
|
838
|
+
k: 100,
|
|
839
|
+
ix: 7
|
|
840
|
+
},
|
|
841
|
+
sk: {
|
|
842
|
+
a: 0,
|
|
843
|
+
k: 0,
|
|
844
|
+
ix: 4
|
|
845
|
+
},
|
|
846
|
+
sa: {
|
|
847
|
+
a: 0,
|
|
848
|
+
k: 0,
|
|
849
|
+
ix: 5
|
|
850
|
+
},
|
|
851
|
+
nm: "Transform"
|
|
852
|
+
}],
|
|
853
|
+
nm: "Group 3",
|
|
854
|
+
np: 4,
|
|
855
|
+
cix: 2,
|
|
856
|
+
bm: 0,
|
|
857
|
+
ix: 1,
|
|
858
|
+
mn: "ADBE Vector Group",
|
|
859
|
+
hd: false
|
|
860
|
+
}],
|
|
861
|
+
ip: 2,
|
|
862
|
+
op: 452,
|
|
863
|
+
st: 2,
|
|
864
|
+
bm: 0
|
|
865
|
+
}],
|
|
866
|
+
markers: []
|
|
867
|
+
};
|
|
868
|
+
var InvoiceboxLoader = exports.InvoiceboxLoader = function InvoiceboxLoader(_ref) {
|
|
869
|
+
var _ref$width = _ref.width,
|
|
870
|
+
width = _ref$width === void 0 ? '100%' : _ref$width;
|
|
871
|
+
return /*#__PURE__*/_react["default"].createElement(_lottieReact["default"], {
|
|
872
|
+
style: {
|
|
873
|
+
width: width
|
|
874
|
+
},
|
|
875
|
+
loop: true,
|
|
876
|
+
animationData: animation
|
|
877
|
+
});
|
|
878
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.Default = void 0;
|
|
7
|
+
var _ = require(".");
|
|
8
|
+
var meta = {
|
|
9
|
+
title: 'common/InvoiceboxLoader',
|
|
10
|
+
component: _.InvoiceboxLoader,
|
|
11
|
+
tags: ['autodocs']
|
|
12
|
+
};
|
|
13
|
+
var _default = exports["default"] = meta;
|
|
14
|
+
var Default = exports.Default = {
|
|
15
|
+
args: {
|
|
16
|
+
width: '120px'
|
|
17
|
+
}
|
|
18
|
+
};
|
|
@@ -10,6 +10,13 @@ var S = _interopRequireWildcard(require("./styles"));
|
|
|
10
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
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 && Object.prototype.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
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
var Skeleton = exports.Skeleton = function Skeleton() {
|
|
14
|
-
|
|
13
|
+
var Skeleton = exports.Skeleton = function Skeleton(_ref) {
|
|
14
|
+
var _ref$width = _ref.width,
|
|
15
|
+
width = _ref$width === void 0 ? '100%' : _ref$width,
|
|
16
|
+
_ref$height = _ref.height,
|
|
17
|
+
height = _ref$height === void 0 ? '100%' : _ref$height;
|
|
18
|
+
return /*#__PURE__*/_react["default"].createElement(S.Wrapper, {
|
|
19
|
+
$width: width,
|
|
20
|
+
$height: height
|
|
21
|
+
}, /*#__PURE__*/_react["default"].createElement(S.Inner, null));
|
|
15
22
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import { Skeleton } from '.';
|
|
3
4
|
declare const meta: {
|
|
4
5
|
title: string;
|
|
5
|
-
component: import("react").FC<
|
|
6
|
+
component: import("react").FC<import(".").TProps>;
|
|
6
7
|
tags: string[];
|
|
7
8
|
};
|
|
8
9
|
export default meta;
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
11
|
-
height: number;
|
|
12
|
-
}>;
|
|
10
|
+
export declare const ByContainer: StoryObj<typeof Skeleton>;
|
|
11
|
+
export declare const ByOwnSize: StoryObj<typeof Skeleton>;
|
|
@@ -3,25 +3,27 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.ByOwnSize = exports.ByContainer = void 0;
|
|
7
7
|
var _ = require(".");
|
|
8
8
|
var meta = {
|
|
9
|
-
title: '
|
|
9
|
+
title: 'common/Skeleton',
|
|
10
10
|
component: _.Skeleton,
|
|
11
11
|
tags: ['autodocs']
|
|
12
12
|
};
|
|
13
13
|
var _default = exports["default"] = meta;
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
width: 100,
|
|
17
|
-
height: 200
|
|
18
|
-
},
|
|
19
|
-
render: function render(args) {
|
|
14
|
+
var ByContainer = exports.ByContainer = {
|
|
15
|
+
render: function render(props) {
|
|
20
16
|
return /*#__PURE__*/React.createElement("div", {
|
|
21
17
|
style: {
|
|
22
|
-
width:
|
|
23
|
-
height:
|
|
18
|
+
width: 200,
|
|
19
|
+
height: 100
|
|
24
20
|
}
|
|
25
|
-
}, /*#__PURE__*/React.createElement(_.Skeleton,
|
|
21
|
+
}, /*#__PURE__*/React.createElement(_.Skeleton, props));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var ByOwnSize = exports.ByOwnSize = {
|
|
25
|
+
args: {
|
|
26
|
+
width: '200px',
|
|
27
|
+
height: '100px'
|
|
26
28
|
}
|
|
27
29
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Wrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").
|
|
2
|
+
export declare const Wrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$width: string;
|
|
4
|
+
$height: string;
|
|
5
|
+
}>>;
|
|
3
6
|
export declare const Inner: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -12,7 +12,13 @@ var shine = (0, _styledComponents.keyframes)(["0%{left:calc(0% - 200px);}100%{le
|
|
|
12
12
|
var Wrapper = exports.Wrapper = _styledComponents["default"].div.withConfig({
|
|
13
13
|
displayName: "styles__Wrapper",
|
|
14
14
|
componentId: "sc-mb3gd0-0"
|
|
15
|
-
})(["width:
|
|
15
|
+
})(["width:", ";height:", ";border-radius:10px;overflow:hidden;position:relative;background:#f1f2f6;"], function (_ref) {
|
|
16
|
+
var $width = _ref.$width;
|
|
17
|
+
return $width;
|
|
18
|
+
}, function (_ref2) {
|
|
19
|
+
var $height = _ref2.$height;
|
|
20
|
+
return $height;
|
|
21
|
+
});
|
|
16
22
|
var Inner = exports.Inner = _styledComponents["default"].div.withConfig({
|
|
17
23
|
displayName: "styles__Inner",
|
|
18
24
|
componentId: "sc-mb3gd0-1"
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,10 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "InvoiceboxLoader", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _InvoiceboxLoader.InvoiceboxLoader;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "Skeleton", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function get() {
|
|
9
15
|
return _Skeleton.Skeleton;
|
|
10
16
|
}
|
|
11
17
|
});
|
|
12
|
-
var _Skeleton = require("./components/common/Skeleton");
|
|
18
|
+
var _Skeleton = require("./components/common/Skeleton");
|
|
19
|
+
var _InvoiceboxLoader = require("./components/common/InvoiceboxLoader");
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invoicebox/ui",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.13",
|
|
4
4
|
"description": "Invoicebox UI",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "Apache License 2.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"storybook": "storybook dev -p 6006",
|
|
8
8
|
"build-storybook": "storybook build",
|
|
9
|
-
"build": "babel src --extensions .ts,.tsx --out-dir dist && tsc --project tsconfig.json",
|
|
9
|
+
"build": "rm -rf dist && babel src --extensions .ts,.tsx --out-dir dist && tsc --project tsconfig.json",
|
|
10
10
|
"release": "git checkout develop && npm run build && npm version $VERSION && git push && git push --tags && git checkout main && git merge develop && git push && npm publish && git checkout develop"
|
|
11
11
|
},
|
|
12
12
|
"bugs": {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@storybook/test": "^7.6.13",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
37
37
|
"@typescript-eslint/parser": "^5.62.0",
|
|
38
|
+
"babel-plugin-inline-json-import": "^0.3.2",
|
|
38
39
|
"babel-plugin-styled-components": "^2.1.4",
|
|
39
40
|
"eslint": "^8.56.0",
|
|
40
41
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -43,14 +44,16 @@
|
|
|
43
44
|
"prettier": "^3.2.5",
|
|
44
45
|
"prop-types": "^15.8.1",
|
|
45
46
|
"storybook": "^7.6.13",
|
|
46
|
-
"styled-components": "^6.1.8",
|
|
47
47
|
"typescript": "^4.9.5",
|
|
48
48
|
"webpack": "^5.90.1"
|
|
49
49
|
},
|
|
50
|
-
"
|
|
51
|
-
"react": "^
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"lottie-react": "^2.4.0",
|
|
52
52
|
"styled-components": "^6.1.8"
|
|
53
53
|
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"react": "^18.2.0"
|
|
56
|
+
},
|
|
54
57
|
"engines": {
|
|
55
58
|
"node": "^16.17.1"
|
|
56
59
|
},
|
package/dist/stories/Button.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface ButtonProps {
|
|
2
|
-
/**
|
|
3
|
-
* Is this the principal call to action on the page?
|
|
4
|
-
*/
|
|
5
|
-
primary?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* What background color to use
|
|
8
|
-
*/
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
/**
|
|
11
|
-
* How large should the button be?
|
|
12
|
-
*/
|
|
13
|
-
size?: 'small' | 'medium' | 'large';
|
|
14
|
-
/**
|
|
15
|
-
* Button contents
|
|
16
|
-
*/
|
|
17
|
-
label: string;
|
|
18
|
-
/**
|
|
19
|
-
* Optional click handler
|
|
20
|
-
*/
|
|
21
|
-
onClick?: () => void;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Primary UI component for user interaction
|
|
25
|
-
*/
|
|
26
|
-
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/stories/Button.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Button = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _styles = _interopRequireWildcard(require("./styles"));
|
|
10
|
-
var S = _styles;
|
|
11
|
-
var _excluded = ["primary", "size", "backgroundColor", "label"];
|
|
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 && Object.prototype.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
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
20
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
22
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23
|
-
/**
|
|
24
|
-
* Primary UI component for user interaction
|
|
25
|
-
*/
|
|
26
|
-
var Button = exports.Button = function Button(_ref) {
|
|
27
|
-
var _ref$primary = _ref.primary,
|
|
28
|
-
primary = _ref$primary === void 0 ? false : _ref$primary,
|
|
29
|
-
_ref$size = _ref.size,
|
|
30
|
-
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
31
|
-
backgroundColor = _ref.backgroundColor,
|
|
32
|
-
label = _ref.label,
|
|
33
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
-
var modeStyles = primary ? _styles.primaryStyles : _styles.secondaryStyles;
|
|
35
|
-
var sizeStyles = {
|
|
36
|
-
small: _styles.smallStyles,
|
|
37
|
-
medium: _styles.mediumStyles,
|
|
38
|
-
large: _styles.largeStyles
|
|
39
|
-
}[size];
|
|
40
|
-
return /*#__PURE__*/_react["default"].createElement(S.Wrapper, _extends({
|
|
41
|
-
type: "button",
|
|
42
|
-
style: _objectSpread(_objectSpread(_objectSpread({}, modeStyles), sizeStyles), backgroundColor ? {
|
|
43
|
-
backgroundColor: backgroundColor
|
|
44
|
-
} : {})
|
|
45
|
-
}, props), label);
|
|
46
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import { ButtonProps } from './Button';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
9
|
-
tags: string[];
|
|
10
|
-
argTypes: {
|
|
11
|
-
backgroundColor: {
|
|
12
|
-
control: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default meta;
|
|
17
|
-
type Story = StoryObj<typeof meta>;
|
|
18
|
-
export declare const Primary: Story;
|
|
19
|
-
export declare const Secondary: Story;
|
|
20
|
-
export declare const Large: Story;
|
|
21
|
-
export declare const Small: Story;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = exports.Small = exports.Secondary = exports.Primary = exports.Large = void 0;
|
|
7
|
-
var _Button = require("./Button");
|
|
8
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
9
|
-
var meta = {
|
|
10
|
-
title: 'Example/Button',
|
|
11
|
-
component: _Button.Button,
|
|
12
|
-
parameters: {
|
|
13
|
-
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
|
|
14
|
-
layout: 'centered'
|
|
15
|
-
},
|
|
16
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
17
|
-
tags: ['autodocs'],
|
|
18
|
-
// More on argTypes: https://storybook.js.org/docs/api/argtypes
|
|
19
|
-
argTypes: {
|
|
20
|
-
backgroundColor: {
|
|
21
|
-
control: 'color'
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
var _default = exports["default"] = meta;
|
|
26
|
-
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
27
|
-
var Primary = exports.Primary = {
|
|
28
|
-
args: {
|
|
29
|
-
primary: true,
|
|
30
|
-
label: 'Button'
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
var Secondary = exports.Secondary = {
|
|
34
|
-
args: {
|
|
35
|
-
label: 'Button'
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var Large = exports.Large = {
|
|
39
|
-
args: {
|
|
40
|
-
size: 'large',
|
|
41
|
-
label: 'Button'
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var Small = exports.Small = {
|
|
45
|
-
args: {
|
|
46
|
-
size: 'small',
|
|
47
|
-
label: 'Button'
|
|
48
|
-
}
|
|
49
|
-
};
|
package/dist/stories/styles.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Wrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
|
|
3
|
-
export declare const primaryStyles: {
|
|
4
|
-
color: string;
|
|
5
|
-
backgroundColor: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const secondaryStyles: {
|
|
8
|
-
color: string;
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
boxShadow: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const smallStyles: {
|
|
13
|
-
fontSize: string;
|
|
14
|
-
padding: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const mediumStyles: {
|
|
17
|
-
fontSize: string;
|
|
18
|
-
padding: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const largeStyles: {
|
|
21
|
-
fontSize: string;
|
|
22
|
-
padding: string;
|
|
23
|
-
};
|
package/dist/stories/styles.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.smallStyles = exports.secondaryStyles = exports.primaryStyles = exports.mediumStyles = exports.largeStyles = exports.Wrapper = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
var Wrapper = exports.Wrapper = _styledComponents["default"].button.withConfig({
|
|
10
|
-
displayName: "styles__Wrapper",
|
|
11
|
-
componentId: "sc-11ohbjf-0"
|
|
12
|
-
})(["font-family:'Nunito Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:700;border:0;border-radius:3em;cursor:pointer;display:inline-block;line-height:1;"]);
|
|
13
|
-
var primaryStyles = exports.primaryStyles = {
|
|
14
|
-
color: 'white',
|
|
15
|
-
backgroundColor: '#1ea7fd'
|
|
16
|
-
};
|
|
17
|
-
var secondaryStyles = exports.secondaryStyles = {
|
|
18
|
-
color: '#333',
|
|
19
|
-
backgroundColor: 'transparent',
|
|
20
|
-
boxShadow: 'rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset'
|
|
21
|
-
};
|
|
22
|
-
var smallStyles = exports.smallStyles = {
|
|
23
|
-
fontSize: '12px',
|
|
24
|
-
padding: '10px 16px'
|
|
25
|
-
};
|
|
26
|
-
var mediumStyles = exports.mediumStyles = {
|
|
27
|
-
fontSize: '14px',
|
|
28
|
-
padding: '11px 20px'
|
|
29
|
-
};
|
|
30
|
-
var largeStyles = exports.largeStyles = {
|
|
31
|
-
fontSize: '16px',
|
|
32
|
-
padding: '12px 24px'
|
|
33
|
-
};
|