@ultraviolet/plus 0.13.1 → 0.14.1
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/@ultraviolet/icons/dist/components/Icon/Icons.js +116 -112
- package/dist/@ultraviolet/icons/dist/components/Icon/SmallIcons.js +116 -112
- package/dist/@ultraviolet/icons/dist/components/Icon/assets/default-outline/pen.svg.js +20 -0
- package/dist/@ultraviolet/icons/dist/components/Icon/assets/default-solid/pen.svg.js +19 -0
- package/dist/@ultraviolet/icons/dist/components/Icon/assets/small-outline/pen.svg.js +20 -0
- package/dist/@ultraviolet/icons/dist/components/Icon/assets/small-solid/pen.svg.js +20 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/Icons.js +5 -1
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/account-experience.svg.js +48 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/saving-plan.svg.js +59 -0
- package/dist/index.d.ts +76 -49
- package/dist/src/components/EstimateCost/EstimateCostContent.js +2 -1
- package/dist/src/components/Navigation/Navigation.js +6 -27
- package/dist/src/components/Navigation/NavigationContent.js +17 -27
- package/dist/src/components/Navigation/NavigationProvider.js +47 -12
- package/dist/src/components/Navigation/components/Group.js +1 -1
- package/dist/src/components/Navigation/components/Item.js +3 -3
- package/dist/src/components/Navigation/components/PinnedItems.js +1 -1
- package/dist/src/index.js +1 -0
- package/package.json +5 -5
|
@@ -55,49 +55,50 @@ import { ReactComponent as Memo$R } from './assets/default/upload.svg.js';
|
|
|
55
55
|
import { ReactComponent as Memo$S } from './assets/default/view.svg.js';
|
|
56
56
|
import { ReactComponent as Memo$T } from './assets/default/west.svg.js';
|
|
57
57
|
import { ReactComponent as Memo$U } from './assets/default/youtube.svg.js';
|
|
58
|
-
import { ReactComponent as Memo$
|
|
59
|
-
import { ReactComponent as Memo$
|
|
60
|
-
import { ReactComponent as Memo$
|
|
61
|
-
import { ReactComponent as Memo$
|
|
62
|
-
import { ReactComponent as Memo$
|
|
63
|
-
import { ReactComponent as Memo$
|
|
64
|
-
import { ReactComponent as Memo$
|
|
65
|
-
import { ReactComponent as Memo$
|
|
66
|
-
import { ReactComponent as Memo$
|
|
67
|
-
import { ReactComponent as Memo$
|
|
68
|
-
import { ReactComponent as Memo$
|
|
69
|
-
import { ReactComponent as Memo$
|
|
70
|
-
import { ReactComponent as Memo$
|
|
71
|
-
import { ReactComponent as Memo$
|
|
72
|
-
import { ReactComponent as Memo$
|
|
73
|
-
import { ReactComponent as Memo$
|
|
74
|
-
import { ReactComponent as Memo$
|
|
75
|
-
import { ReactComponent as Memo$
|
|
76
|
-
import { ReactComponent as Memo$
|
|
77
|
-
import { ReactComponent as Memo$
|
|
78
|
-
import { ReactComponent as Memo$
|
|
79
|
-
import { ReactComponent as Memo$
|
|
80
|
-
import { ReactComponent as Memo$
|
|
81
|
-
import { ReactComponent as Memo$
|
|
82
|
-
import { ReactComponent as Memo$
|
|
83
|
-
import { ReactComponent as Memo$
|
|
84
|
-
import { ReactComponent as Memo$
|
|
85
|
-
import { ReactComponent as Memo$
|
|
86
|
-
import { ReactComponent as Memo$
|
|
87
|
-
import { ReactComponent as Memo$
|
|
88
|
-
import { ReactComponent as Memo$
|
|
89
|
-
import { ReactComponent as Memo$
|
|
90
|
-
import { ReactComponent as Memo$
|
|
91
|
-
import { ReactComponent as Memo$
|
|
92
|
-
import { ReactComponent as Memo$
|
|
93
|
-
import { ReactComponent as Memo$
|
|
94
|
-
import { ReactComponent as Memo$
|
|
95
|
-
import { ReactComponent as Memo$
|
|
96
|
-
import { ReactComponent as Memo$
|
|
97
|
-
import { ReactComponent as Memo$
|
|
98
|
-
import { ReactComponent as Memo$
|
|
99
|
-
import { ReactComponent as Memo$
|
|
100
|
-
import { ReactComponent as Memo$
|
|
58
|
+
import { ReactComponent as Memo$1B } from './assets/default-outline/address.svg.js';
|
|
59
|
+
import { ReactComponent as Memo$1C } from './assets/default-outline/alert-circle.svg.js';
|
|
60
|
+
import { ReactComponent as Memo$1D } from './assets/default-outline/auto-fix.svg.js';
|
|
61
|
+
import { ReactComponent as Memo$1E } from './assets/default-outline/book-open-outline.svg.js';
|
|
62
|
+
import { ReactComponent as Memo$1F } from './assets/default-outline/bullhorn.svg.js';
|
|
63
|
+
import { ReactComponent as Memo$1G } from './assets/default-outline/calculator.svg.js';
|
|
64
|
+
import { ReactComponent as Memo$1H } from './assets/default-outline/calendar-range.svg.js';
|
|
65
|
+
import { ReactComponent as Memo$1I } from './assets/default-outline/chat.svg.js';
|
|
66
|
+
import { ReactComponent as Memo$1J } from './assets/default-outline/check-circle.svg.js';
|
|
67
|
+
import { ReactComponent as Memo$1K } from './assets/default-outline/clock-outline.svg.js';
|
|
68
|
+
import { ReactComponent as Memo$1L } from './assets/default-outline/console.svg.js';
|
|
69
|
+
import { ReactComponent as Memo$1M } from './assets/default-outline/credential.svg.js';
|
|
70
|
+
import { ReactComponent as Memo$1N } from './assets/default-outline/credit-card.svg.js';
|
|
71
|
+
import { ReactComponent as Memo$1O } from './assets/default-outline/database.svg.js';
|
|
72
|
+
import { ReactComponent as Memo$1P } from './assets/default-outline/delete.svg.js';
|
|
73
|
+
import { ReactComponent as Memo$1Q } from './assets/default-outline/doc.svg.js';
|
|
74
|
+
import { ReactComponent as Memo$1R } from './assets/default-outline/earth.svg.js';
|
|
75
|
+
import { ReactComponent as Memo$1S } from './assets/default-outline/email-remove.svg.js';
|
|
76
|
+
import { ReactComponent as Memo$1T } from './assets/default-outline/email.svg.js';
|
|
77
|
+
import { ReactComponent as Memo$1U } from './assets/default-outline/eye-off.svg.js';
|
|
78
|
+
import { ReactComponent as Memo$1V } from './assets/default-outline/eye.svg.js';
|
|
79
|
+
import { ReactComponent as Memo$1W } from './assets/default-outline/filter.svg.js';
|
|
80
|
+
import { ReactComponent as Memo$1X } from './assets/default-outline/folder.svg.js';
|
|
81
|
+
import { ReactComponent as Memo$1Y } from './assets/default-outline/help-circle.svg.js';
|
|
82
|
+
import { ReactComponent as Memo$1Z } from './assets/default-outline/id.svg.js';
|
|
83
|
+
import { ReactComponent as Memo$1_ } from './assets/default-outline/information.svg.js';
|
|
84
|
+
import { ReactComponent as Memo$1$ } from './assets/default-outline/lock.svg.js';
|
|
85
|
+
import { ReactComponent as Memo$20 } from './assets/default-outline/members.svg.js';
|
|
86
|
+
import { ReactComponent as Memo$21 } from './assets/default-outline/moon.svg.js';
|
|
87
|
+
import { ReactComponent as Memo$22 } from './assets/default-outline/mosaic.svg.js';
|
|
88
|
+
import { ReactComponent as Memo$23 } from './assets/default-outline/pen.svg.js';
|
|
89
|
+
import { ReactComponent as Memo$24 } from './assets/default-outline/pencil.svg.js';
|
|
90
|
+
import { ReactComponent as Memo$25 } from './assets/default-outline/phone.svg.js';
|
|
91
|
+
import { ReactComponent as Memo$2f } from './assets/default-outline/pin.svg.js';
|
|
92
|
+
import { ReactComponent as Memo$26 } from './assets/default-outline/play.svg.js';
|
|
93
|
+
import { ReactComponent as Memo$27 } from './assets/default-outline/privacy.svg.js';
|
|
94
|
+
import { ReactComponent as Memo$28 } from './assets/default-outline/profile.svg.js';
|
|
95
|
+
import { ReactComponent as Memo$29 } from './assets/default-outline/rocket.svg.js';
|
|
96
|
+
import { ReactComponent as Memo$2a } from './assets/default-outline/settings.svg.js';
|
|
97
|
+
import { ReactComponent as Memo$2b } from './assets/default-outline/sun.svg.js';
|
|
98
|
+
import { ReactComponent as Memo$2c } from './assets/default-outline/support.svg.js';
|
|
99
|
+
import { ReactComponent as Memo$2d } from './assets/default-outline/unlock.svg.js';
|
|
100
|
+
import { ReactComponent as Memo$2g } from './assets/default-outline/unpin.svg.js';
|
|
101
|
+
import { ReactComponent as Memo$2e } from './assets/default-outline/weather-night.svg.js';
|
|
101
102
|
import { ReactComponent as Memo$V } from './assets/default-solid/address.svg.js';
|
|
102
103
|
import { ReactComponent as Memo$W } from './assets/default-solid/alert-circle.svg.js';
|
|
103
104
|
import { ReactComponent as Memo$X } from './assets/default-solid/auto-fix.svg.js';
|
|
@@ -128,19 +129,20 @@ import { ReactComponent as Memo$1j } from './assets/default-solid/lock.svg.js';
|
|
|
128
129
|
import { ReactComponent as Memo$1k } from './assets/default-solid/members.svg.js';
|
|
129
130
|
import { ReactComponent as Memo$1l } from './assets/default-solid/moon.svg.js';
|
|
130
131
|
import { ReactComponent as Memo$1m } from './assets/default-solid/mosaic.svg.js';
|
|
131
|
-
import { ReactComponent as Memo$1n } from './assets/default-solid/
|
|
132
|
-
import { ReactComponent as Memo$1o } from './assets/default-solid/
|
|
133
|
-
import { ReactComponent as Memo$
|
|
134
|
-
import { ReactComponent as Memo$
|
|
135
|
-
import { ReactComponent as Memo$1q } from './assets/default-solid/
|
|
136
|
-
import { ReactComponent as Memo$1r } from './assets/default-solid/
|
|
137
|
-
import { ReactComponent as Memo$1s } from './assets/default-solid/
|
|
138
|
-
import { ReactComponent as Memo$1t } from './assets/default-solid/
|
|
139
|
-
import { ReactComponent as Memo$1u } from './assets/default-solid/
|
|
140
|
-
import { ReactComponent as Memo$1v } from './assets/default-solid/
|
|
141
|
-
import { ReactComponent as Memo$1w } from './assets/default-solid/
|
|
142
|
-
import { ReactComponent as Memo$
|
|
143
|
-
import { ReactComponent as Memo$
|
|
132
|
+
import { ReactComponent as Memo$1n } from './assets/default-solid/pen.svg.js';
|
|
133
|
+
import { ReactComponent as Memo$1o } from './assets/default-solid/pencil.svg.js';
|
|
134
|
+
import { ReactComponent as Memo$1p } from './assets/default-solid/phone.svg.js';
|
|
135
|
+
import { ReactComponent as Memo$1z } from './assets/default-solid/pin.svg.js';
|
|
136
|
+
import { ReactComponent as Memo$1q } from './assets/default-solid/play.svg.js';
|
|
137
|
+
import { ReactComponent as Memo$1r } from './assets/default-solid/privacy.svg.js';
|
|
138
|
+
import { ReactComponent as Memo$1s } from './assets/default-solid/profile.svg.js';
|
|
139
|
+
import { ReactComponent as Memo$1t } from './assets/default-solid/rocket.svg.js';
|
|
140
|
+
import { ReactComponent as Memo$1u } from './assets/default-solid/settings.svg.js';
|
|
141
|
+
import { ReactComponent as Memo$1v } from './assets/default-solid/sun.svg.js';
|
|
142
|
+
import { ReactComponent as Memo$1w } from './assets/default-solid/support.svg.js';
|
|
143
|
+
import { ReactComponent as Memo$1x } from './assets/default-solid/unlock.svg.js';
|
|
144
|
+
import { ReactComponent as Memo$1A } from './assets/default-solid/unpin.svg.js';
|
|
145
|
+
import { ReactComponent as Memo$1y } from './assets/default-solid/weather-night.svg.js';
|
|
144
146
|
|
|
145
147
|
const ICONS = {
|
|
146
148
|
filled: {
|
|
@@ -231,19 +233,20 @@ const ICONS = {
|
|
|
231
233
|
members: Memo$1k,
|
|
232
234
|
moon: Memo$1l,
|
|
233
235
|
mosaic: Memo$1m,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
236
|
+
pen: Memo$1n,
|
|
237
|
+
pencil: Memo$1o,
|
|
238
|
+
phone: Memo$1p,
|
|
239
|
+
'play-circle-outline': Memo$1q,
|
|
240
|
+
privacy: Memo$1r,
|
|
241
|
+
profile: Memo$1s,
|
|
242
|
+
rocket: Memo$1t,
|
|
243
|
+
settings: Memo$1u,
|
|
244
|
+
sun: Memo$1v,
|
|
245
|
+
support: Memo$1w,
|
|
246
|
+
unlock: Memo$1x,
|
|
247
|
+
'weather-night': Memo$1y,
|
|
248
|
+
pin: Memo$1z,
|
|
249
|
+
unpin: Memo$1A
|
|
247
250
|
},
|
|
248
251
|
outlined: {
|
|
249
252
|
anchor: Memo,
|
|
@@ -303,49 +306,50 @@ const ICONS = {
|
|
|
303
306
|
view: Memo$S,
|
|
304
307
|
west: Memo$T,
|
|
305
308
|
youtube: Memo$U,
|
|
306
|
-
address: Memo$
|
|
307
|
-
alert: Memo$
|
|
308
|
-
'auto-fix': Memo$
|
|
309
|
-
'book-open-outline': Memo$
|
|
310
|
-
bullhorn: Memo$
|
|
311
|
-
calculator: Memo$
|
|
312
|
-
'calendar-range': Memo$
|
|
313
|
-
chat: Memo$
|
|
314
|
-
'checkbox-circle-outline': Memo$
|
|
315
|
-
'clock-outline': Memo$
|
|
316
|
-
console: Memo$
|
|
317
|
-
credentials: Memo$
|
|
318
|
-
'credit-card': Memo$
|
|
319
|
-
database: Memo$
|
|
320
|
-
delete: Memo$
|
|
321
|
-
doc: Memo$
|
|
322
|
-
earth: Memo$
|
|
323
|
-
'email-remove-outline': Memo$
|
|
324
|
-
'email-outline': Memo$
|
|
325
|
-
'eye-off': Memo$
|
|
326
|
-
eye: Memo$
|
|
327
|
-
filter: Memo$
|
|
328
|
-
folder: Memo$
|
|
329
|
-
'help-circle-outline': Memo$
|
|
330
|
-
id: Memo$
|
|
331
|
-
'information-outline': Memo$
|
|
332
|
-
lock: Memo$
|
|
333
|
-
members: Memo$
|
|
334
|
-
moon: Memo$
|
|
335
|
-
mosaic: Memo$
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
309
|
+
address: Memo$1B,
|
|
310
|
+
alert: Memo$1C,
|
|
311
|
+
'auto-fix': Memo$1D,
|
|
312
|
+
'book-open-outline': Memo$1E,
|
|
313
|
+
bullhorn: Memo$1F,
|
|
314
|
+
calculator: Memo$1G,
|
|
315
|
+
'calendar-range': Memo$1H,
|
|
316
|
+
chat: Memo$1I,
|
|
317
|
+
'checkbox-circle-outline': Memo$1J,
|
|
318
|
+
'clock-outline': Memo$1K,
|
|
319
|
+
console: Memo$1L,
|
|
320
|
+
credentials: Memo$1M,
|
|
321
|
+
'credit-card': Memo$1N,
|
|
322
|
+
database: Memo$1O,
|
|
323
|
+
delete: Memo$1P,
|
|
324
|
+
doc: Memo$1Q,
|
|
325
|
+
earth: Memo$1R,
|
|
326
|
+
'email-remove-outline': Memo$1S,
|
|
327
|
+
'email-outline': Memo$1T,
|
|
328
|
+
'eye-off': Memo$1U,
|
|
329
|
+
eye: Memo$1V,
|
|
330
|
+
filter: Memo$1W,
|
|
331
|
+
folder: Memo$1X,
|
|
332
|
+
'help-circle-outline': Memo$1Y,
|
|
333
|
+
id: Memo$1Z,
|
|
334
|
+
'information-outline': Memo$1_,
|
|
335
|
+
lock: Memo$1$,
|
|
336
|
+
members: Memo$20,
|
|
337
|
+
moon: Memo$21,
|
|
338
|
+
mosaic: Memo$22,
|
|
339
|
+
pen: Memo$23,
|
|
340
|
+
pencil: Memo$24,
|
|
341
|
+
phone: Memo$25,
|
|
342
|
+
'play-circle-outline': Memo$26,
|
|
343
|
+
privacy: Memo$27,
|
|
344
|
+
profile: Memo$28,
|
|
345
|
+
rocket: Memo$29,
|
|
346
|
+
settings: Memo$2a,
|
|
347
|
+
sun: Memo$2b,
|
|
348
|
+
support: Memo$2c,
|
|
349
|
+
unlock: Memo$2d,
|
|
350
|
+
'weather-night': Memo$2e,
|
|
351
|
+
pin: Memo$2f,
|
|
352
|
+
unpin: Memo$2g
|
|
349
353
|
}
|
|
350
354
|
};
|
|
351
355
|
|
|
@@ -55,49 +55,50 @@ import { ReactComponent as Memo$R } from './assets/small/upload.svg.js';
|
|
|
55
55
|
import { ReactComponent as Memo$S } from './assets/small/view.svg.js';
|
|
56
56
|
import { ReactComponent as Memo$T } from './assets/small/west.svg.js';
|
|
57
57
|
import { ReactComponent as Memo$U } from './assets/small/youtube.svg.js';
|
|
58
|
-
import { ReactComponent as Memo$
|
|
59
|
-
import { ReactComponent as Memo$
|
|
60
|
-
import { ReactComponent as Memo$
|
|
61
|
-
import { ReactComponent as Memo$
|
|
62
|
-
import { ReactComponent as Memo$
|
|
63
|
-
import { ReactComponent as Memo$
|
|
64
|
-
import { ReactComponent as Memo$
|
|
65
|
-
import { ReactComponent as Memo$
|
|
66
|
-
import { ReactComponent as Memo$
|
|
67
|
-
import { ReactComponent as Memo$
|
|
68
|
-
import { ReactComponent as Memo$
|
|
69
|
-
import { ReactComponent as Memo$
|
|
70
|
-
import { ReactComponent as Memo$
|
|
71
|
-
import { ReactComponent as Memo$
|
|
72
|
-
import { ReactComponent as Memo$
|
|
73
|
-
import { ReactComponent as Memo$
|
|
74
|
-
import { ReactComponent as Memo$
|
|
75
|
-
import { ReactComponent as Memo$
|
|
76
|
-
import { ReactComponent as Memo$
|
|
77
|
-
import { ReactComponent as Memo$
|
|
78
|
-
import { ReactComponent as Memo$
|
|
79
|
-
import { ReactComponent as Memo$
|
|
80
|
-
import { ReactComponent as Memo$
|
|
81
|
-
import { ReactComponent as Memo$
|
|
82
|
-
import { ReactComponent as Memo$
|
|
83
|
-
import { ReactComponent as Memo$
|
|
84
|
-
import { ReactComponent as Memo$
|
|
85
|
-
import { ReactComponent as Memo$
|
|
86
|
-
import { ReactComponent as Memo$
|
|
87
|
-
import { ReactComponent as Memo$
|
|
88
|
-
import { ReactComponent as Memo$
|
|
89
|
-
import { ReactComponent as Memo$
|
|
90
|
-
import { ReactComponent as Memo$
|
|
91
|
-
import { ReactComponent as Memo$
|
|
92
|
-
import { ReactComponent as Memo$
|
|
93
|
-
import { ReactComponent as Memo$
|
|
94
|
-
import { ReactComponent as Memo$
|
|
95
|
-
import { ReactComponent as Memo$
|
|
96
|
-
import { ReactComponent as Memo$
|
|
97
|
-
import { ReactComponent as Memo$
|
|
98
|
-
import { ReactComponent as Memo$
|
|
99
|
-
import { ReactComponent as Memo$
|
|
100
|
-
import { ReactComponent as Memo$
|
|
58
|
+
import { ReactComponent as Memo$1B } from './assets/small-outline/address.svg.js';
|
|
59
|
+
import { ReactComponent as Memo$1C } from './assets/small-outline/alert-circle.svg.js';
|
|
60
|
+
import { ReactComponent as Memo$1D } from './assets/small-outline/auto-fix.svg.js';
|
|
61
|
+
import { ReactComponent as Memo$1E } from './assets/small-outline/book-open-outline.svg.js';
|
|
62
|
+
import { ReactComponent as Memo$1F } from './assets/small-outline/bullhorn.svg.js';
|
|
63
|
+
import { ReactComponent as Memo$1G } from './assets/small-outline/calculator.svg.js';
|
|
64
|
+
import { ReactComponent as Memo$1H } from './assets/small-outline/calendar-range.svg.js';
|
|
65
|
+
import { ReactComponent as Memo$1I } from './assets/small-outline/chat.svg.js';
|
|
66
|
+
import { ReactComponent as Memo$1J } from './assets/small-outline/check-circle.svg.js';
|
|
67
|
+
import { ReactComponent as Memo$1K } from './assets/small-outline/clock-outline.svg.js';
|
|
68
|
+
import { ReactComponent as Memo$1L } from './assets/small-outline/console.svg.js';
|
|
69
|
+
import { ReactComponent as Memo$1M } from './assets/small-outline/credential.svg.js';
|
|
70
|
+
import { ReactComponent as Memo$1N } from './assets/small-outline/credit-card.svg.js';
|
|
71
|
+
import { ReactComponent as Memo$1O } from './assets/small-outline/database.svg.js';
|
|
72
|
+
import { ReactComponent as Memo$1P } from './assets/small-outline/delete.svg.js';
|
|
73
|
+
import { ReactComponent as Memo$1Q } from './assets/small-outline/doc.svg.js';
|
|
74
|
+
import { ReactComponent as Memo$1R } from './assets/small-outline/earth.svg.js';
|
|
75
|
+
import { ReactComponent as Memo$1S } from './assets/small-outline/email-remove.svg.js';
|
|
76
|
+
import { ReactComponent as Memo$1T } from './assets/small-outline/email.svg.js';
|
|
77
|
+
import { ReactComponent as Memo$1U } from './assets/small-outline/eye-off.svg.js';
|
|
78
|
+
import { ReactComponent as Memo$1V } from './assets/small-outline/eye.svg.js';
|
|
79
|
+
import { ReactComponent as Memo$1W } from './assets/small-outline/filter.svg.js';
|
|
80
|
+
import { ReactComponent as Memo$1X } from './assets/small-outline/folder.svg.js';
|
|
81
|
+
import { ReactComponent as Memo$1Y } from './assets/small-outline/help-circle.svg.js';
|
|
82
|
+
import { ReactComponent as Memo$1Z } from './assets/small-outline/id.svg.js';
|
|
83
|
+
import { ReactComponent as Memo$1_ } from './assets/small-outline/information.svg.js';
|
|
84
|
+
import { ReactComponent as Memo$1$ } from './assets/small-outline/lock.svg.js';
|
|
85
|
+
import { ReactComponent as Memo$20 } from './assets/small-outline/members.svg.js';
|
|
86
|
+
import { ReactComponent as Memo$21 } from './assets/small-outline/moon.svg.js';
|
|
87
|
+
import { ReactComponent as Memo$22 } from './assets/small-outline/mosaic.svg.js';
|
|
88
|
+
import { ReactComponent as Memo$23 } from './assets/small-outline/pen.svg.js';
|
|
89
|
+
import { ReactComponent as Memo$24 } from './assets/small-outline/pencil.svg.js';
|
|
90
|
+
import { ReactComponent as Memo$25 } from './assets/small-outline/phone.svg.js';
|
|
91
|
+
import { ReactComponent as Memo$2f } from './assets/small-outline/pin.svg.js';
|
|
92
|
+
import { ReactComponent as Memo$26 } from './assets/small-outline/play.svg.js';
|
|
93
|
+
import { ReactComponent as Memo$27 } from './assets/small-outline/privacy.svg.js';
|
|
94
|
+
import { ReactComponent as Memo$28 } from './assets/small-outline/profile.svg.js';
|
|
95
|
+
import { ReactComponent as Memo$29 } from './assets/small-outline/rocket.svg.js';
|
|
96
|
+
import { ReactComponent as Memo$2a } from './assets/small-outline/settings.svg.js';
|
|
97
|
+
import { ReactComponent as Memo$2b } from './assets/small-outline/sun.svg.js';
|
|
98
|
+
import { ReactComponent as Memo$2c } from './assets/small-outline/support.svg.js';
|
|
99
|
+
import { ReactComponent as Memo$2d } from './assets/small-outline/unlock.svg.js';
|
|
100
|
+
import { ReactComponent as Memo$2g } from './assets/small-outline/unpin.svg.js';
|
|
101
|
+
import { ReactComponent as Memo$2e } from './assets/small-outline/weather-night.svg.js';
|
|
101
102
|
import { ReactComponent as Memo$V } from './assets/small-solid/address.svg.js';
|
|
102
103
|
import { ReactComponent as Memo$W } from './assets/small-solid/alert-circle.svg.js';
|
|
103
104
|
import { ReactComponent as Memo$X } from './assets/small-solid/auto-fix.svg.js';
|
|
@@ -128,19 +129,20 @@ import { ReactComponent as Memo$1j } from './assets/small-solid/lock.svg.js';
|
|
|
128
129
|
import { ReactComponent as Memo$1k } from './assets/small-solid/members.svg.js';
|
|
129
130
|
import { ReactComponent as Memo$1l } from './assets/small-solid/moon.svg.js';
|
|
130
131
|
import { ReactComponent as Memo$1m } from './assets/small-solid/mosaic.svg.js';
|
|
131
|
-
import { ReactComponent as Memo$1n } from './assets/small-solid/
|
|
132
|
-
import { ReactComponent as Memo$1o } from './assets/small-solid/
|
|
133
|
-
import { ReactComponent as Memo$
|
|
134
|
-
import { ReactComponent as Memo$
|
|
135
|
-
import { ReactComponent as Memo$1q } from './assets/small-solid/
|
|
136
|
-
import { ReactComponent as Memo$1r } from './assets/small-solid/
|
|
137
|
-
import { ReactComponent as Memo$1s } from './assets/small-solid/
|
|
138
|
-
import { ReactComponent as Memo$1t } from './assets/small-solid/
|
|
139
|
-
import { ReactComponent as Memo$1u } from './assets/small-solid/
|
|
140
|
-
import { ReactComponent as Memo$1v } from './assets/small-solid/
|
|
141
|
-
import { ReactComponent as Memo$1w } from './assets/small-solid/
|
|
142
|
-
import { ReactComponent as Memo$
|
|
143
|
-
import { ReactComponent as Memo$
|
|
132
|
+
import { ReactComponent as Memo$1n } from './assets/small-solid/pen.svg.js';
|
|
133
|
+
import { ReactComponent as Memo$1o } from './assets/small-solid/pencil.svg.js';
|
|
134
|
+
import { ReactComponent as Memo$1p } from './assets/small-solid/phone.svg.js';
|
|
135
|
+
import { ReactComponent as Memo$1z } from './assets/small-solid/pin.svg.js';
|
|
136
|
+
import { ReactComponent as Memo$1q } from './assets/small-solid/play.svg.js';
|
|
137
|
+
import { ReactComponent as Memo$1r } from './assets/small-solid/privacy.svg.js';
|
|
138
|
+
import { ReactComponent as Memo$1s } from './assets/small-solid/profile.svg.js';
|
|
139
|
+
import { ReactComponent as Memo$1t } from './assets/small-solid/rocket.svg.js';
|
|
140
|
+
import { ReactComponent as Memo$1u } from './assets/small-solid/settings.svg.js';
|
|
141
|
+
import { ReactComponent as Memo$1v } from './assets/small-solid/sun.svg.js';
|
|
142
|
+
import { ReactComponent as Memo$1w } from './assets/small-solid/support.svg.js';
|
|
143
|
+
import { ReactComponent as Memo$1x } from './assets/small-solid/unlock.svg.js';
|
|
144
|
+
import { ReactComponent as Memo$1A } from './assets/small-solid/unpin.svg.js';
|
|
145
|
+
import { ReactComponent as Memo$1y } from './assets/small-solid/weather-night.svg.js';
|
|
144
146
|
|
|
145
147
|
const SMALL_ICONS = {
|
|
146
148
|
filled: {
|
|
@@ -231,19 +233,20 @@ const SMALL_ICONS = {
|
|
|
231
233
|
members: Memo$1k,
|
|
232
234
|
moon: Memo$1l,
|
|
233
235
|
mosaic: Memo$1m,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
236
|
+
pen: Memo$1n,
|
|
237
|
+
pencil: Memo$1o,
|
|
238
|
+
phone: Memo$1p,
|
|
239
|
+
'play-circle-outline': Memo$1q,
|
|
240
|
+
privacy: Memo$1r,
|
|
241
|
+
profile: Memo$1s,
|
|
242
|
+
rocket: Memo$1t,
|
|
243
|
+
settings: Memo$1u,
|
|
244
|
+
sun: Memo$1v,
|
|
245
|
+
support: Memo$1w,
|
|
246
|
+
unlock: Memo$1x,
|
|
247
|
+
'weather-night': Memo$1y,
|
|
248
|
+
pin: Memo$1z,
|
|
249
|
+
unpin: Memo$1A
|
|
247
250
|
},
|
|
248
251
|
outlined: {
|
|
249
252
|
anchor: Memo,
|
|
@@ -303,49 +306,50 @@ const SMALL_ICONS = {
|
|
|
303
306
|
view: Memo$S,
|
|
304
307
|
west: Memo$T,
|
|
305
308
|
youtube: Memo$U,
|
|
306
|
-
address: Memo$
|
|
307
|
-
alert: Memo$
|
|
308
|
-
'auto-fix': Memo$
|
|
309
|
-
'book-open-outline': Memo$
|
|
310
|
-
bullhorn: Memo$
|
|
311
|
-
calculator: Memo$
|
|
312
|
-
'calendar-range': Memo$
|
|
313
|
-
chat: Memo$
|
|
314
|
-
'checkbox-circle-outline': Memo$
|
|
315
|
-
'clock-outline': Memo$
|
|
316
|
-
console: Memo$
|
|
317
|
-
credentials: Memo$
|
|
318
|
-
'credit-card': Memo$
|
|
319
|
-
database: Memo$
|
|
320
|
-
delete: Memo$
|
|
321
|
-
doc: Memo$
|
|
322
|
-
earth: Memo$
|
|
323
|
-
'email-remove-outline': Memo$
|
|
324
|
-
'email-outline': Memo$
|
|
325
|
-
'eye-off': Memo$
|
|
326
|
-
eye: Memo$
|
|
327
|
-
filter: Memo$
|
|
328
|
-
folder: Memo$
|
|
329
|
-
'help-circle-outline': Memo$
|
|
330
|
-
id: Memo$
|
|
331
|
-
'information-outline': Memo$
|
|
332
|
-
lock: Memo$
|
|
333
|
-
members: Memo$
|
|
334
|
-
moon: Memo$
|
|
335
|
-
mosaic: Memo$
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
309
|
+
address: Memo$1B,
|
|
310
|
+
alert: Memo$1C,
|
|
311
|
+
'auto-fix': Memo$1D,
|
|
312
|
+
'book-open-outline': Memo$1E,
|
|
313
|
+
bullhorn: Memo$1F,
|
|
314
|
+
calculator: Memo$1G,
|
|
315
|
+
'calendar-range': Memo$1H,
|
|
316
|
+
chat: Memo$1I,
|
|
317
|
+
'checkbox-circle-outline': Memo$1J,
|
|
318
|
+
'clock-outline': Memo$1K,
|
|
319
|
+
console: Memo$1L,
|
|
320
|
+
credentials: Memo$1M,
|
|
321
|
+
'credit-card': Memo$1N,
|
|
322
|
+
database: Memo$1O,
|
|
323
|
+
delete: Memo$1P,
|
|
324
|
+
doc: Memo$1Q,
|
|
325
|
+
earth: Memo$1R,
|
|
326
|
+
'email-remove-outline': Memo$1S,
|
|
327
|
+
'email-outline': Memo$1T,
|
|
328
|
+
'eye-off': Memo$1U,
|
|
329
|
+
eye: Memo$1V,
|
|
330
|
+
filter: Memo$1W,
|
|
331
|
+
folder: Memo$1X,
|
|
332
|
+
'help-circle-outline': Memo$1Y,
|
|
333
|
+
id: Memo$1Z,
|
|
334
|
+
'information-outline': Memo$1_,
|
|
335
|
+
lock: Memo$1$,
|
|
336
|
+
members: Memo$20,
|
|
337
|
+
moon: Memo$21,
|
|
338
|
+
mosaic: Memo$22,
|
|
339
|
+
pen: Memo$23,
|
|
340
|
+
pencil: Memo$24,
|
|
341
|
+
phone: Memo$25,
|
|
342
|
+
'play-circle-outline': Memo$26,
|
|
343
|
+
privacy: Memo$27,
|
|
344
|
+
profile: Memo$28,
|
|
345
|
+
rocket: Memo$29,
|
|
346
|
+
settings: Memo$2a,
|
|
347
|
+
sun: Memo$2b,
|
|
348
|
+
support: Memo$2c,
|
|
349
|
+
unlock: Memo$2d,
|
|
350
|
+
'weather-night': Memo$2e,
|
|
351
|
+
pin: Memo$2f,
|
|
352
|
+
unpin: Memo$2g
|
|
349
353
|
}
|
|
350
354
|
};
|
|
351
355
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
|
|
4
|
+
var _path;
|
|
5
|
+
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); }
|
|
6
|
+
var SvgPen = function SvgPen(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 20,
|
|
10
|
+
height: 20,
|
|
11
|
+
fill: "none",
|
|
12
|
+
viewBox: "0 0 20 20"
|
|
13
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
14
|
+
d: "M17.137 2.863a.81.81 0 0 0-1.149 0l-.876.876 1.15 1.149.875-.876a.81.81 0 0 0 0-1.149M15.2 5.949l-1.149-1.15L4.014 14.838a3 3 0 0 0-.754 1.265l-.27.908.908-.27a3 3 0 0 0 1.265-.754zm-.273-4.147a2.313 2.313 0 0 1 3.27 3.27L6.225 17.048a4.5 4.5 0 0 1-1.897 1.13l-2.238.667a.75.75 0 0 1-.933-.933l.667-2.238a4.5 4.5 0 0 1 1.13-1.897z",
|
|
15
|
+
clipRule: "evenodd"
|
|
16
|
+
})));
|
|
17
|
+
};
|
|
18
|
+
var Memo = /*#__PURE__*/memo(SvgPen);
|
|
19
|
+
|
|
20
|
+
export { Memo as ReactComponent };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
|
|
4
|
+
var _path;
|
|
5
|
+
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); }
|
|
6
|
+
var SvgPen = function SvgPen(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 20,
|
|
10
|
+
height: 20,
|
|
11
|
+
fill: "none",
|
|
12
|
+
viewBox: "0 0 20 20"
|
|
13
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
14
|
+
d: "m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.154-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343"
|
|
15
|
+
})));
|
|
16
|
+
};
|
|
17
|
+
var Memo = /*#__PURE__*/memo(SvgPen);
|
|
18
|
+
|
|
19
|
+
export { Memo as ReactComponent };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
|
|
4
|
+
var _path;
|
|
5
|
+
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); }
|
|
6
|
+
var SvgPen = function SvgPen(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 16,
|
|
10
|
+
height: 16,
|
|
11
|
+
fill: "none",
|
|
12
|
+
viewBox: "0 0 16 16"
|
|
13
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
14
|
+
d: "M10.232 1.982a2.5 2.5 0 1 1 3.536 3.536l-7.262 7.261a3.5 3.5 0 0 1-1.135.759l-2.047.848a1.5 1.5 0 0 1-1.96-1.96l.693.287-.693-.287.848-2.047a3.5 3.5 0 0 1 .759-1.135zm2.475 1.06a1 1 0 0 0-1.414 0L4.03 10.306a2 2 0 0 0-.433.648l-.693-.287.693.287L2.75 13l2.047-.848c.243-.1.463-.248.649-.433l7.261-7.262a1 1 0 0 0 0-1.414",
|
|
15
|
+
clipRule: "evenodd"
|
|
16
|
+
})));
|
|
17
|
+
};
|
|
18
|
+
var Memo = /*#__PURE__*/memo(SvgPen);
|
|
19
|
+
|
|
20
|
+
export { Memo as ReactComponent };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
|
|
4
|
+
var _path;
|
|
5
|
+
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); }
|
|
6
|
+
var SvgPen = function SvgPen(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 16,
|
|
10
|
+
height: 16,
|
|
11
|
+
fill: "none",
|
|
12
|
+
viewBox: "0 0 16 16"
|
|
13
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
14
|
+
d: "M11.013 2.513a1.75 1.75 0 0 1 2.475 2.474L6.226 12.25a2.8 2.8 0 0 1-.892.596l-2.047.848a.75.75 0 0 1-.98-.98l.848-2.047a2.8 2.8 0 0 1 .596-.892z",
|
|
15
|
+
clipRule: "evenodd"
|
|
16
|
+
})));
|
|
17
|
+
};
|
|
18
|
+
var Memo = /*#__PURE__*/memo(SvgPen);
|
|
19
|
+
|
|
20
|
+
export { Memo as ReactComponent };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactComponent as Memo$1N } from './assets/abuse.svg.js';
|
|
2
|
+
import { ReactComponent as Memo$2d } from './assets/account-experience.svg.js';
|
|
2
3
|
import { ReactComponent as Memo } from './assets/additional-disk.svg.js';
|
|
3
4
|
import { ReactComponent as Memo$18 } from './assets/advanced-settings.svg.js';
|
|
4
5
|
import { ReactComponent as Memo$1 } from './assets/ansible.svg.js';
|
|
@@ -107,6 +108,7 @@ import { ReactComponent as Memo$s } from './assets/rpn-san.svg.js';
|
|
|
107
108
|
import { ReactComponent as Memo$t } from './assets/rpn-v1.svg.js';
|
|
108
109
|
import { ReactComponent as Memo$u } from './assets/rpn-v2.svg.js';
|
|
109
110
|
import { ReactComponent as Memo$v } from './assets/rpn.svg.js';
|
|
111
|
+
import { ReactComponent as Memo$2e } from './assets/saving-plan.svg.js';
|
|
110
112
|
import { ReactComponent as Memo$w } from './assets/sdk-go.svg.js';
|
|
111
113
|
import { ReactComponent as Memo$x } from './assets/sdk-python.svg.js';
|
|
112
114
|
import { ReactComponent as Memo$1O } from './assets/secret-manager.svg.js';
|
|
@@ -281,7 +283,9 @@ const PRODUCT_ICONS = {
|
|
|
281
283
|
vpsProServers: Memo$29,
|
|
282
284
|
vpsServers: Memo$2a,
|
|
283
285
|
vpsStartServers: Memo$2b,
|
|
284
|
-
environmentalFootprintCalculator: Memo$2c
|
|
286
|
+
environmentalFootprintCalculator: Memo$2c,
|
|
287
|
+
accountExperience: Memo$2d,
|
|
288
|
+
savingPlan: Memo$2e
|
|
285
289
|
};
|
|
286
290
|
|
|
287
291
|
export { PRODUCT_ICONS };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
|
|
4
|
+
var _g;
|
|
5
|
+
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); }
|
|
6
|
+
var SvgAccountExperience = function SvgAccountExperience(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 64,
|
|
10
|
+
height: 64,
|
|
11
|
+
fill: "none",
|
|
12
|
+
viewBox: "0 0 64 64"
|
|
13
|
+
}, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
14
|
+
className: "account-experience"
|
|
15
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
16
|
+
className: ".Square"
|
|
17
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
18
|
+
fill: "#F1EEFC",
|
|
19
|
+
className: "fillWeak"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
d: "M0 16C0 7.163 7.163 0 16 0h32c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16C7.163 64 0 56.837 0 48z"
|
|
22
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
23
|
+
fillRule: "evenodd",
|
|
24
|
+
d: "M48 2H16C8.268 2 2 8.268 2 16v32c0 7.732 6.268 14 14 14h32c7.732 0 14-6.268 14-14V16c0-7.732-6.268-14-14-14M16 0C7.163 0 0 7.163 0 16v32c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V16c0-8.837-7.163-16-16-16z",
|
|
25
|
+
clipRule: "evenodd"
|
|
26
|
+
}))), /*#__PURE__*/React.createElement("g", {
|
|
27
|
+
fill: "#521094",
|
|
28
|
+
fillRule: "evenodd",
|
|
29
|
+
className: "fill",
|
|
30
|
+
clipRule: "evenodd"
|
|
31
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
32
|
+
d: "M32 31a5.895 5.895 0 1 0 0-11.79A5.895 5.895 0 0 0 32 31m0 2a7.895 7.895 0 1 0 0-15.79A7.895 7.895 0 0 0 32 33m-3 4.158a6 6 0 0 0-6 6v5.631a1 1 0 1 1-2 0v-5.631a8 8 0 0 1 8-8h10.5a1 1 0 1 1 0 2z"
|
|
33
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
34
|
+
d: "M32 11c-11.046 0-20 8.954-20 20s8.954 20 20 20q1.144 0 2.254-.126l.223 1.988Q33.256 52.999 32 53c-12.15 0-22-9.85-22-22S19.85 9 32 9s22 9.85 22 22c0 2.345-.367 4.605-1.048 6.727l-1.904-.61A20 20 0 0 0 52 31c0-11.046-8.954-20-20-20"
|
|
35
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
36
|
+
fill: "#A060F6",
|
|
37
|
+
fillRule: "evenodd",
|
|
38
|
+
className: "fillStrong",
|
|
39
|
+
clipRule: "evenodd"
|
|
40
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
41
|
+
d: "M38.702 33a1 1 0 0 1 1-1h5.56a1 1 0 0 1 1 1v3.25a9.4 9.4 0 0 1 1.79 1.009l3.07-1.703a1 1 0 0 1 1.342.36l2.78 4.63a1 1 0 0 1-.372 1.388l-3.09 1.716a9 9 0 0 1 .001 1.69l3.09 1.715a1 1 0 0 1 .371 1.39l-2.78 4.63a1 1 0 0 1-1.343.36l-3.06-1.7c-.555.4-1.158.742-1.798 1.016V56a1 1 0 0 1-1 1h-5.561a1 1 0 0 1-1-1v-3.25a9.4 9.4 0 0 1-1.778-1l-3.032 1.684a1 1 0 0 1-1.343-.36l-2.78-4.63a1 1 0 0 1 .372-1.389l3.042-1.688a9 9 0 0 1 .001-1.743l-3.043-1.69a1 1 0 0 1-.372-1.389l2.78-4.63a1 1 0 0 1 1.343-.36l3.04 1.689a9.4 9.4 0 0 1 1.77-.994zm2 1v2.937a1 1 0 0 1-.679.947 7.4 7.4 0 0 0-2.36 1.321 1 1 0 0 1-1.126.106l-2.77-1.538-1.751 2.915 2.74 1.52a1 1 0 0 1 .498 1.057 6.8 6.8 0 0 0-.002 2.462 1 1 0 0 1-.498 1.055l-2.738 1.52 1.75 2.914 2.763-1.533a1 1 0 0 1 1.126.107 7.4 7.4 0 0 0 2.368 1.327 1 1 0 0 1 .679.947V55h3.56v-2.936a1 1 0 0 1 .679-.947 7.4 7.4 0 0 0 2.385-1.342 1 1 0 0 1 1.128-.109l2.793 1.55 1.75-2.914-2.783-1.545a1 1 0 0 1-.498-1.052 6.8 6.8 0 0 0-.002-2.418 1 1 0 0 1 .499-1.053l2.784-1.546-1.75-2.915-2.8 1.555a1 1 0 0 1-1.128-.108 7.4 7.4 0 0 0-2.378-1.336 1 1 0 0 1-.678-.947V34z"
|
|
42
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
43
|
+
d: "M42.5 42a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M38 44.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0"
|
|
44
|
+
})))));
|
|
45
|
+
};
|
|
46
|
+
var Memo = /*#__PURE__*/memo(SvgAccountExperience);
|
|
47
|
+
|
|
48
|
+
export { Memo as ReactComponent };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
|
|
4
|
+
var _g, _defs;
|
|
5
|
+
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); }
|
|
6
|
+
var SvgSavingPlan = function SvgSavingPlan(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 64,
|
|
10
|
+
height: 64,
|
|
11
|
+
fill: "none",
|
|
12
|
+
viewBox: "0 0 64 64"
|
|
13
|
+
}, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
14
|
+
className: "saving-plan",
|
|
15
|
+
clipPath: "url(#a)"
|
|
16
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
17
|
+
className: ".Square"
|
|
18
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
19
|
+
fill: "#F1EEFC",
|
|
20
|
+
className: "fillWeak"
|
|
21
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
22
|
+
d: "M0 16C0 7.163 7.163 0 16 0h32c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16C7.163 64 0 56.837 0 48z"
|
|
23
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
24
|
+
fillRule: "evenodd",
|
|
25
|
+
d: "M48 2H16C8.268 2 2 8.268 2 16v32c0 7.732 6.268 14 14 14h32c7.732 0 14-6.268 14-14V16c0-7.732-6.268-14-14-14M16 0C7.163 0 0 7.163 0 16v32c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V16c0-8.837-7.163-16-16-16z",
|
|
26
|
+
clipRule: "evenodd"
|
|
27
|
+
}))), /*#__PURE__*/React.createElement("g", {
|
|
28
|
+
fill: "#A060F6",
|
|
29
|
+
className: "fillStrong"
|
|
30
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
fillRule: "evenodd",
|
|
32
|
+
d: "M11 22.334c0-.567.448-1.026 1-1.026h40c.552 0 1 .46 1 1.026s-.448 1.025-1 1.025H12c-.552 0-1-.459-1-1.025",
|
|
33
|
+
clipRule: "evenodd"
|
|
34
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
35
|
+
d: "M17 16.18c-2.21 0-4 1.837-4 4.103v22.564c0 2.266 1.79 4.102 4 4.102h18.5l1.5 2.052H17c-3.314 0-6-2.755-6-6.154V20.283c0-3.399 2.686-6.154 6-6.154h2.5l1 2.051h3l1-2.051h15l1 2.051h3l1-2.051H47c3.314 0 6 2.755 6 6.154V36h-2V20.283c0-2.266-1.79-4.103-4-4.103z"
|
|
36
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
37
|
+
fillRule: "evenodd",
|
|
38
|
+
d: "M28 38a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2zm6 0h-4v2h4z",
|
|
39
|
+
clipRule: "evenodd"
|
|
40
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
41
|
+
fill: "#521094",
|
|
42
|
+
className: "fill"
|
|
43
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
44
|
+
fillRule: "evenodd",
|
|
45
|
+
d: "M22 11.051c-.552 0-1 .46-1 1.026v4.103c0 .566.448 1.025 1 1.025s1-.46 1-1.025v-4.103c0-.566-.448-1.026-1-1.026M22 9c1.657 0 3 1.378 3 3.077v4.103c0 1.699-1.343 3.076-3 3.076s-3-1.377-3-3.076v-4.103C19 10.377 20.343 9 22 9m20 2.051c-.552 0-1 .46-1 1.026v4.103c0 .566.448 1.025 1 1.025s1-.46 1-1.025v-4.103c0-.566-.448-1.026-1-1.026M42 9c1.657 0 3 1.378 3 3.077v4.103c0 1.699-1.343 3.076-3 3.076s-3-1.377-3-3.076v-4.103C39 10.377 40.343 9 42 9M18 30a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2zm6 0h-4v2h4zm4 0a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2zm6 0h-4v2h4zm4 0a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2zm6 0h-4v2h4zm-26 8a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2zm6 0h-4v2h4zm29.856-2.708a1 1 0 0 1 .294.708v9.572l2.857.018a1 1 0 0 1 .713 1.694l-11 11.41a1 1 0 0 1-1.44 0l-11-11.436a1 1 0 0 1 .727-1.693l2.843.019v-9.559a1 1 0 0 1 .998-1l14.3-.025a1 1 0 0 1 .708.292M39.85 37.023v9.567a1 1 0 0 1-1.007 1l-1.479-.01 8.637 8.978 8.66-8.983-1.517-.01a1 1 0 0 1-.994-1v-9.563z",
|
|
46
|
+
clipRule: "evenodd"
|
|
47
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
48
|
+
d: "m43.628 50.143-.836-.671 5.918-7.315.836.671zm4.642-.033q-.836 0-1.309-.44-.473-.45-.473-1.221v-.077q0-.78.473-1.221.473-.45 1.309-.451.814 0 1.298.451.484.44.484 1.221v.077q0 .77-.473 1.221-.473.44-1.309.44m0-.902q.32 0 .495-.198a.72.72 0 0 0 .187-.517v-.176a.72.72 0 0 0-.187-.517q-.175-.198-.495-.198a.66.66 0 0 0-.506.198.75.75 0 0 0-.176.517v.176a.75.75 0 0 0 .176.517.66.66 0 0 0 .506.198M44.068 45.6q-.836 0-1.309-.44-.473-.45-.473-1.221v-.077q0-.78.473-1.221.473-.45 1.309-.451.814 0 1.298.451.484.44.484 1.221v.077q0 .77-.473 1.221-.473.44-1.309.44m0-.902q.32 0 .495-.198a.72.72 0 0 0 .187-.517v-.176a.72.72 0 0 0-.187-.517q-.175-.198-.495-.198a.66.66 0 0 0-.506.198.75.75 0 0 0-.176.517v.176a.75.75 0 0 0 .176.517.66.66 0 0 0 .506.198"
|
|
49
|
+
})))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
50
|
+
id: "a",
|
|
51
|
+
className: "a"
|
|
52
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
53
|
+
fill: "#fff",
|
|
54
|
+
d: "M0 0h64v64H0z"
|
|
55
|
+
})))));
|
|
56
|
+
};
|
|
57
|
+
var Memo = /*#__PURE__*/memo(SvgSavingPlan);
|
|
58
|
+
|
|
59
|
+
export { Memo as ReactComponent };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode, MouseEventHandler, ComponentProps } from 'react';
|
|
2
|
+
import { ReactNode, MouseEventHandler, ComponentProps, RefObject } from 'react';
|
|
3
3
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
4
4
|
import { langs } from '@uiw/codemirror-extensions-langs';
|
|
5
5
|
import CodeMirror from '@uiw/react-codemirror';
|
|
@@ -145,6 +145,10 @@ type EstimateCostProps = {
|
|
|
145
145
|
* Hide the total price at the bottom of the component.
|
|
146
146
|
*/
|
|
147
147
|
hideTotal?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Hide the hourly price in total section at the bottom of the component.
|
|
150
|
+
*/
|
|
151
|
+
hideHourlyPriceOnTotal?: boolean;
|
|
148
152
|
/**
|
|
149
153
|
* Show a badge beta on the total price with how much discount is applied.
|
|
150
154
|
*/
|
|
@@ -419,14 +423,6 @@ type MessageProps = {
|
|
|
419
423
|
align?: 'left' | 'right';
|
|
420
424
|
};
|
|
421
425
|
|
|
422
|
-
declare const _default: {
|
|
423
|
-
readonly 'navigation.pin.tooltip': "Pin product";
|
|
424
|
-
readonly 'navigation.unpin.tooltip': "Unpin product";
|
|
425
|
-
readonly 'navigation.pinned.item.group.label': "Pinned items";
|
|
426
|
-
readonly 'navigation.expand.button': "Expand sidebar";
|
|
427
|
-
readonly 'navigation.collapse.button': "Collapse sidebar";
|
|
428
|
-
};
|
|
429
|
-
|
|
430
426
|
type NavigationProps = {
|
|
431
427
|
children: ReactNode;
|
|
432
428
|
/**
|
|
@@ -436,48 +432,12 @@ type NavigationProps = {
|
|
|
436
432
|
* some part of your logo
|
|
437
433
|
*/
|
|
438
434
|
logo?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
439
|
-
/**
|
|
440
|
-
* This enable / disable the pinned feature of the navigation
|
|
441
|
-
* Pinned allows the use to pin (or favorite) some items in the navigation
|
|
442
|
-
*/
|
|
443
|
-
pinnedFeature?: boolean;
|
|
444
|
-
/**
|
|
445
|
-
* This define how many items can be pinned at the same time.
|
|
446
|
-
* If you want to disable the limit just set `Infinity` to this prop
|
|
447
|
-
*/
|
|
448
|
-
pinLimit?: number;
|
|
449
|
-
/**
|
|
450
|
-
* The initial pinned items. This should be an array of labels you've set on
|
|
451
|
-
* your `<Navigation.Item>`
|
|
452
|
-
*/
|
|
453
|
-
initialPinned?: string[];
|
|
454
|
-
/**
|
|
455
|
-
* The initial expanded state of the navigation. If set to true the
|
|
456
|
-
* navigation will be expanded by default otherwise it will be collapsed
|
|
457
|
-
*/
|
|
458
|
-
initialExpanded?: boolean;
|
|
459
|
-
/**
|
|
460
|
-
* This function is triggered when the user click on the pin/unpin button
|
|
461
|
-
* of an item
|
|
462
|
-
*/
|
|
463
|
-
onClickPinUnpin?: (pinned: string[]) => void;
|
|
464
|
-
locales?: typeof _default;
|
|
465
|
-
/**
|
|
466
|
-
* This function is triggered when user click on expand button on the footer
|
|
467
|
-
* of the navigation. This is not triggered when the user resize the navigation
|
|
468
|
-
* and it automatically collapse / expand.
|
|
469
|
-
*/
|
|
470
|
-
onClickExpand?: (expanded: boolean) => void;
|
|
471
|
-
className?: string;
|
|
472
|
-
/**
|
|
473
|
-
* It defines the initial width of the navigation.
|
|
474
|
-
*/
|
|
475
|
-
width?: number;
|
|
476
435
|
/**
|
|
477
436
|
* This function is called when resize occur using the vertical bar on the left of the navigation.
|
|
478
437
|
*/
|
|
479
438
|
onWidthResize?: (width: number) => void;
|
|
480
439
|
id?: string;
|
|
440
|
+
className?: string;
|
|
481
441
|
};
|
|
482
442
|
/**
|
|
483
443
|
* Navigation is a component that allows you to create a sidebar navigation.
|
|
@@ -485,10 +445,15 @@ type NavigationProps = {
|
|
|
485
445
|
* to make it work in your application.
|
|
486
446
|
*/
|
|
487
447
|
declare const Navigation: {
|
|
488
|
-
({ children, logo,
|
|
448
|
+
({ children, logo, onWidthResize, className, id, }: NavigationProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
489
449
|
Group: ({ children, label }: {
|
|
490
450
|
children: ReactNode;
|
|
491
|
-
label: string;
|
|
451
|
+
label: string; /**
|
|
452
|
+
* The logo to be displayed in header of the navigation
|
|
453
|
+
* It can be a component or a function. The function will retrun you
|
|
454
|
+
* expanded state of the navigation so you can decide to show/hide
|
|
455
|
+
* some part of your logo
|
|
456
|
+
*/
|
|
492
457
|
}) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
493
458
|
Item: ({ children, categoryIcon, categoryIconVariant, label, subLabel, badgeText, badgeSentiment, href, onClick, toggle, active, noPinButton, type, hasParents, as, disabled, noExpand, toggleMenu, }: {
|
|
494
459
|
children?: ReactNode;
|
|
@@ -514,6 +479,68 @@ declare const Navigation: {
|
|
|
514
479
|
Separator: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
515
480
|
};
|
|
516
481
|
|
|
482
|
+
declare const _default: {
|
|
483
|
+
readonly 'navigation.pin.tooltip': "Pin product";
|
|
484
|
+
readonly 'navigation.unpin.tooltip': "Unpin product";
|
|
485
|
+
readonly 'navigation.pinned.item.group.label': "Pinned items";
|
|
486
|
+
readonly 'navigation.expand.button': "Expand sidebar";
|
|
487
|
+
readonly 'navigation.collapse.button': "Collapse sidebar";
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
type ContextProps = {
|
|
491
|
+
expanded: boolean;
|
|
492
|
+
toggleExpand: (toggle?: boolean) => void;
|
|
493
|
+
animation: boolean | 'expand' | 'collapse';
|
|
494
|
+
pinnedFeature?: boolean;
|
|
495
|
+
onClickPinUnpin?: (pinned: string[]) => void;
|
|
496
|
+
pinItem: (item: string) => void;
|
|
497
|
+
unpinItem: (item: string) => void;
|
|
498
|
+
pinnedItems: string[];
|
|
499
|
+
pinLimit: number;
|
|
500
|
+
navigationRef: RefObject<HTMLDivElement>;
|
|
501
|
+
locales: typeof _default;
|
|
502
|
+
width: number;
|
|
503
|
+
setWidth: (width: number) => void;
|
|
504
|
+
};
|
|
505
|
+
declare const useNavigation: () => ContextProps;
|
|
506
|
+
type NavigationProviderProps = {
|
|
507
|
+
children: ReactNode;
|
|
508
|
+
initialWidth?: number;
|
|
509
|
+
/**
|
|
510
|
+
* This enable / disable the pinned feature of the navigation
|
|
511
|
+
* Pinned allows the use to pin (or favorite) some items in the navigation
|
|
512
|
+
*/
|
|
513
|
+
pinnedFeature?: boolean;
|
|
514
|
+
/**
|
|
515
|
+
* This define how many items can be pinned at the same time.
|
|
516
|
+
* If you want to disable the limit just set `Infinity` to this prop
|
|
517
|
+
*/
|
|
518
|
+
pinLimit?: number;
|
|
519
|
+
/**
|
|
520
|
+
* The initial pinned items. This should be an array of labels you've set on
|
|
521
|
+
* your `<Navigation.Item>`
|
|
522
|
+
*/
|
|
523
|
+
initialPinned?: string[];
|
|
524
|
+
/**
|
|
525
|
+
* The initial expanded state of the navigation. If set to true the
|
|
526
|
+
* navigation will be expanded by default otherwise it will be collapsed
|
|
527
|
+
*/
|
|
528
|
+
initialExpanded?: boolean;
|
|
529
|
+
/**
|
|
530
|
+
* This function is triggered when the user click on the pin/unpin button
|
|
531
|
+
* of an item
|
|
532
|
+
*/
|
|
533
|
+
onClickPinUnpin?: (pinned: string[]) => void;
|
|
534
|
+
locales?: typeof _default;
|
|
535
|
+
/**
|
|
536
|
+
* This function is triggered when user click on expand button on the footer
|
|
537
|
+
* of the navigation. This is not triggered when the user resize the navigation
|
|
538
|
+
* and it automatically collapse / expand.
|
|
539
|
+
*/
|
|
540
|
+
onClickExpand?: (expanded: boolean) => void;
|
|
541
|
+
};
|
|
542
|
+
declare const NavigationProvider: ({ children, pinnedFeature, onClickPinUnpin, initialPinned, initialExpanded, locales, pinLimit, onClickExpand, initialWidth, }: NavigationProviderProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
543
|
+
|
|
517
544
|
type FAQProps = {
|
|
518
545
|
description: string;
|
|
519
546
|
productIconName?: ComponentProps<typeof ProductIcon>['name'];
|
|
@@ -571,4 +598,4 @@ declare const SteppedListContainer: {
|
|
|
571
598
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
572
599
|
};
|
|
573
600
|
|
|
574
|
-
export { CodeEditor, ContentCard, ContentCardGroup, Conversation, CustomerSatisfaction, EstimateCost, FAQ, Navigation, SteppedListContainer, _default$1 as estimateCostDefaultLocales };
|
|
601
|
+
export { CodeEditor, ContentCard, ContentCardGroup, Conversation, CustomerSatisfaction, EstimateCost, FAQ, Navigation, NavigationProvider, SteppedListContainer, _default$1 as estimateCostDefaultLocales, useNavigation };
|
|
@@ -69,6 +69,7 @@ const EstimateCostContent = ({
|
|
|
69
69
|
disableOverlayRight = false,
|
|
70
70
|
hideTimeUnit = false,
|
|
71
71
|
hideTotal = false,
|
|
72
|
+
hideHourlyPriceOnTotal = false,
|
|
72
73
|
discount = 0,
|
|
73
74
|
OverlayRight,
|
|
74
75
|
OverlayLeft,
|
|
@@ -247,7 +248,7 @@ const EstimateCostContent = ({
|
|
|
247
248
|
maximumFractionDigits: isLongFractionDigits ? maximumFractionDigitsLong[iteration.unit] : maximumFractionDigits[iteration.unit]
|
|
248
249
|
})}` : null]
|
|
249
250
|
})
|
|
250
|
-
}), totalPrice.hourly > 0 && totalPrice.hourly !== totalPrice.total && totalPrice.total > 0 ? jsx(RightAlignedText, {
|
|
251
|
+
}), hideHourlyPriceOnTotal && totalPrice.hourly > 0 && totalPrice.hourly !== totalPrice.total && totalPrice.total > 0 ? jsx(RightAlignedText, {
|
|
251
252
|
as: "p",
|
|
252
253
|
variant: "body",
|
|
253
254
|
children: jsxs(LineThrough, {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { NavigationContent } from './NavigationContent.js';
|
|
2
|
-
import { NavigationProvider } from './NavigationProvider.js';
|
|
3
2
|
import { Group } from './components/Group.js';
|
|
4
3
|
import { Item } from './components/Item.js';
|
|
5
4
|
import { PinnedItems } from './components/PinnedItems.js';
|
|
6
5
|
import { Separator } from './components/Separator.js';
|
|
7
|
-
import { NAVIGATION_WIDTH } from './constants.js';
|
|
8
|
-
import NavigationLocales from './locales/en.js';
|
|
9
6
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
10
7
|
|
|
11
8
|
/**
|
|
@@ -16,33 +13,15 @@ import { jsx } from '@emotion/react/jsx-runtime';
|
|
|
16
13
|
const Navigation = ({
|
|
17
14
|
children,
|
|
18
15
|
logo,
|
|
19
|
-
pinnedFeature = false,
|
|
20
|
-
onClickPinUnpin,
|
|
21
|
-
onClickExpand,
|
|
22
|
-
initialPinned,
|
|
23
|
-
initialExpanded = true,
|
|
24
|
-
locales = NavigationLocales,
|
|
25
|
-
pinLimit = 7,
|
|
26
|
-
width = NAVIGATION_WIDTH,
|
|
27
16
|
onWidthResize,
|
|
28
17
|
className,
|
|
29
18
|
id
|
|
30
|
-
}) => jsx(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
initialExpanded: initialExpanded,
|
|
37
|
-
children: jsx(NavigationContent, {
|
|
38
|
-
onClickExpand: onClickExpand,
|
|
39
|
-
logo: logo,
|
|
40
|
-
className: className,
|
|
41
|
-
width: width,
|
|
42
|
-
onWidthResize: onWidthResize,
|
|
43
|
-
id: id,
|
|
44
|
-
children: children
|
|
45
|
-
})
|
|
19
|
+
}) => jsx(NavigationContent, {
|
|
20
|
+
logo: logo,
|
|
21
|
+
className: className,
|
|
22
|
+
onWidthResize: onWidthResize,
|
|
23
|
+
id: id,
|
|
24
|
+
children: children
|
|
46
25
|
});
|
|
47
26
|
Navigation.Group = Group;
|
|
48
27
|
Navigation.Item = Item;
|
|
@@ -2,7 +2,7 @@ import _styled from '@emotion/styled/base';
|
|
|
2
2
|
import { Tooltip, Button, Stack } from '@ultraviolet/ui';
|
|
3
3
|
import { useRef, useCallback, useState, useEffect } from 'react';
|
|
4
4
|
import { useNavigation } from './NavigationProvider.js';
|
|
5
|
-
import {
|
|
5
|
+
import { NAVIGATION_MAX_WIDTH, NAVIGATION_MIN_WIDTH, NAVIGATION_COLLASPED_WIDTH, ANIMATION_DURATION } from './constants.js';
|
|
6
6
|
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
@@ -67,14 +67,24 @@ const Slider = /*#__PURE__*/_styled("div", {
|
|
|
67
67
|
const NavigationContent = ({
|
|
68
68
|
children,
|
|
69
69
|
logo,
|
|
70
|
-
onClickExpand,
|
|
71
|
-
width,
|
|
72
70
|
onWidthResize,
|
|
73
71
|
className,
|
|
74
72
|
id
|
|
75
73
|
}) => {
|
|
74
|
+
const context = useNavigation();
|
|
75
|
+
if (!context) {
|
|
76
|
+
throw new Error('Navigation should be inside NavigationProvider to use it properly.');
|
|
77
|
+
}
|
|
78
|
+
const {
|
|
79
|
+
setWidth,
|
|
80
|
+
width,
|
|
81
|
+
expanded,
|
|
82
|
+
toggleExpand,
|
|
83
|
+
animation,
|
|
84
|
+
locales,
|
|
85
|
+
navigationRef
|
|
86
|
+
} = context;
|
|
76
87
|
const sliderRef = useRef(null);
|
|
77
|
-
const navigationRef = useRef(null);
|
|
78
88
|
const contentRef = useRef(null);
|
|
79
89
|
const isScrollAtBottom = useCallback(() => {
|
|
80
90
|
if (contentRef.current) {
|
|
@@ -109,27 +119,6 @@ const NavigationContent = ({
|
|
|
109
119
|
},
|
|
110
120
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
111
121
|
[contentRef.current]);
|
|
112
|
-
const {
|
|
113
|
-
expanded,
|
|
114
|
-
setExpanded,
|
|
115
|
-
animation,
|
|
116
|
-
setAnimation,
|
|
117
|
-
locales
|
|
118
|
-
} = useNavigation();
|
|
119
|
-
|
|
120
|
-
// This function will be triggered when expand/collapse button is clicked
|
|
121
|
-
const toggleExpand = useCallback(() => {
|
|
122
|
-
onClickExpand?.(!expanded);
|
|
123
|
-
if (navigationRef.current) {
|
|
124
|
-
navigationRef.current.style.width = '';
|
|
125
|
-
}
|
|
126
|
-
setAnimation(expanded ? 'collapse' : 'expand');
|
|
127
|
-
setTimeout(() => {
|
|
128
|
-
setExpanded();
|
|
129
|
-
setFooterHasOverflowStyle(isScrollAtBottom());
|
|
130
|
-
setAnimation(false);
|
|
131
|
-
}, ANIMATION_DURATION);
|
|
132
|
-
}, [expanded, isScrollAtBottom, onClickExpand, setAnimation, setExpanded]);
|
|
133
122
|
|
|
134
123
|
// It will handle the resize of the navigation when the user drag the vertical bar
|
|
135
124
|
useEffect(() => {
|
|
@@ -168,6 +157,7 @@ const NavigationContent = ({
|
|
|
168
157
|
if (navigationRef.current) {
|
|
169
158
|
if (!shouldCollapseOnMouseUp && !shouldExpandOnMouseUp) {
|
|
170
159
|
onWidthResize?.(navigationRef.current.offsetWidth);
|
|
160
|
+
setWidth?.(navigationRef.current.offsetWidth);
|
|
171
161
|
}
|
|
172
162
|
if (!expanded) {
|
|
173
163
|
navigationRef.current.style.width = '';
|
|
@@ -186,7 +176,7 @@ const NavigationContent = ({
|
|
|
186
176
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
187
177
|
sliderRef.current?.removeEventListener('mousedown', mousedown);
|
|
188
178
|
};
|
|
189
|
-
}, [expanded, onWidthResize, toggleExpand]);
|
|
179
|
+
}, [expanded, navigationRef, onWidthResize, setWidth, toggleExpand]);
|
|
190
180
|
return jsxs(StyledNav, {
|
|
191
181
|
className: className,
|
|
192
182
|
id: id,
|
|
@@ -218,7 +208,7 @@ const NavigationContent = ({
|
|
|
218
208
|
sentiment: "neutral",
|
|
219
209
|
size: "small",
|
|
220
210
|
icon: expanded ? 'arrow-left-double' : 'arrow-right-double',
|
|
221
|
-
onClick: toggleExpand
|
|
211
|
+
onClick: () => toggleExpand()
|
|
222
212
|
})
|
|
223
213
|
})
|
|
224
214
|
})]
|
|
@@ -1,31 +1,63 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useContext, useState, useRef, useCallback, useMemo, createContext } from 'react';
|
|
2
|
+
import { ANIMATION_DURATION, NAVIGATION_WIDTH } from './constants.js';
|
|
2
3
|
import NavigationLocales from './locales/en.js';
|
|
3
4
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const NavigationContext = /*#__PURE__*/createContext({
|
|
6
7
|
expanded: true,
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* This function will trigger the expand/collapse of the navigation and
|
|
10
|
+
* will also trigger the animation
|
|
11
|
+
*/
|
|
12
|
+
toggleExpand: () => {},
|
|
8
13
|
animation: false,
|
|
9
|
-
setAnimation: () => {},
|
|
10
14
|
locales: NavigationLocales,
|
|
11
15
|
pinItem: () => {},
|
|
12
16
|
unpinItem: () => {},
|
|
13
17
|
pinnedItems: [],
|
|
14
|
-
pinLimit: 7
|
|
18
|
+
pinLimit: 7,
|
|
19
|
+
navigationRef: {
|
|
20
|
+
current: null
|
|
21
|
+
},
|
|
22
|
+
width: NAVIGATION_WIDTH,
|
|
23
|
+
setWidth: () => {}
|
|
15
24
|
});
|
|
16
25
|
const useNavigation = () => useContext(NavigationContext);
|
|
17
26
|
const NavigationProvider = ({
|
|
18
27
|
children,
|
|
19
|
-
pinnedFeature,
|
|
28
|
+
pinnedFeature = false,
|
|
20
29
|
onClickPinUnpin,
|
|
21
30
|
initialPinned,
|
|
22
|
-
initialExpanded,
|
|
23
|
-
locales,
|
|
24
|
-
pinLimit
|
|
31
|
+
initialExpanded = true,
|
|
32
|
+
locales = NavigationLocales,
|
|
33
|
+
pinLimit = 7,
|
|
34
|
+
onClickExpand,
|
|
35
|
+
initialWidth = NAVIGATION_WIDTH
|
|
25
36
|
}) => {
|
|
26
|
-
const [expanded, setExpanded] =
|
|
37
|
+
const [expanded, setExpanded] = useState(initialExpanded);
|
|
27
38
|
const [pinnedItems, setPinnedItems] = useState(initialPinned ?? []);
|
|
28
39
|
const [animation, setAnimation] = useState(false);
|
|
40
|
+
const [width, setWidth] = useState(initialWidth);
|
|
41
|
+
const navigationRef = useRef(null);
|
|
42
|
+
|
|
43
|
+
// This function will be triggered when expand/collapse button is clicked
|
|
44
|
+
const toggleExpand = useCallback(toggle => {
|
|
45
|
+
if (typeof toggle !== 'boolean' && toggle !== undefined) {
|
|
46
|
+
throw new Error(`toggleExpand only accepts boolean or undefined as parameter. You most likely did <button onClick={toggleExpand}> instead of <button onClick={() => toggleExpand()}>`);
|
|
47
|
+
}
|
|
48
|
+
if (toggle !== undefined && toggle === expanded) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
onClickExpand?.(!expanded);
|
|
52
|
+
if (navigationRef.current) {
|
|
53
|
+
navigationRef.current.style.width = '';
|
|
54
|
+
}
|
|
55
|
+
setAnimation(expanded ? 'collapse' : 'expand');
|
|
56
|
+
setTimeout(() => {
|
|
57
|
+
setExpanded(toggle !== undefined ? toggle : !expanded);
|
|
58
|
+
setAnimation(false);
|
|
59
|
+
}, ANIMATION_DURATION);
|
|
60
|
+
}, [expanded, onClickExpand, setAnimation, setExpanded]);
|
|
29
61
|
const pinItem = useCallback(item => {
|
|
30
62
|
setPinnedItems([...pinnedItems, item]);
|
|
31
63
|
onClickPinUnpin?.(pinnedItems);
|
|
@@ -36,7 +68,7 @@ const NavigationProvider = ({
|
|
|
36
68
|
}, [onClickPinUnpin, pinnedItems]);
|
|
37
69
|
const value = useMemo(() => ({
|
|
38
70
|
expanded,
|
|
39
|
-
|
|
71
|
+
toggleExpand,
|
|
40
72
|
pinnedItems,
|
|
41
73
|
pinItem,
|
|
42
74
|
unpinItem,
|
|
@@ -44,8 +76,11 @@ const NavigationProvider = ({
|
|
|
44
76
|
locales,
|
|
45
77
|
pinLimit,
|
|
46
78
|
animation,
|
|
47
|
-
setAnimation
|
|
48
|
-
|
|
79
|
+
setAnimation,
|
|
80
|
+
navigationRef,
|
|
81
|
+
width,
|
|
82
|
+
setWidth
|
|
83
|
+
}), [expanded, toggleExpand, pinnedItems, pinItem, unpinItem, pinnedFeature, locales, pinLimit, animation, width]);
|
|
49
84
|
return jsx(NavigationContext.Provider, {
|
|
50
85
|
value: value,
|
|
51
86
|
children: children
|
|
@@ -26,7 +26,7 @@ const Group = ({
|
|
|
26
26
|
}) => {
|
|
27
27
|
const context = useNavigation();
|
|
28
28
|
if (!context) {
|
|
29
|
-
throw new Error('Navigation.Group can only be used inside a
|
|
29
|
+
throw new Error('Navigation.Group can only be used inside a NavigationProvider.');
|
|
30
30
|
}
|
|
31
31
|
const {
|
|
32
32
|
expanded,
|
|
@@ -134,7 +134,7 @@ const Item = ({
|
|
|
134
134
|
}) => {
|
|
135
135
|
const context = useNavigation();
|
|
136
136
|
if (!context) {
|
|
137
|
-
throw new Error('Navigation.Item can only be used inside a
|
|
137
|
+
throw new Error('Navigation.Item can only be used inside a NavigationProvider.');
|
|
138
138
|
}
|
|
139
139
|
const {
|
|
140
140
|
expanded,
|
|
@@ -251,7 +251,7 @@ const Item = ({
|
|
|
251
251
|
as: "span",
|
|
252
252
|
variant: "bodySmallStrong",
|
|
253
253
|
sentiment: active ? 'primary' : 'neutral',
|
|
254
|
-
prominence: (categoryIcon || !hasParents) && !active ? 'strong' : '
|
|
254
|
+
prominence: (categoryIcon || !hasParents) && !active ? 'strong' : 'default',
|
|
255
255
|
animation: animation,
|
|
256
256
|
disabled: disabled,
|
|
257
257
|
children: label
|
|
@@ -296,7 +296,7 @@ const Item = ({
|
|
|
296
296
|
}) : null, hasHrefAndNoChildren ? jsx(AnimatedIcon, {
|
|
297
297
|
name: "open-in-new",
|
|
298
298
|
sentiment: "neutral",
|
|
299
|
-
prominence: "
|
|
299
|
+
prominence: "default",
|
|
300
300
|
disabled: disabled
|
|
301
301
|
}) : null, children ? jsxs(Stack, {
|
|
302
302
|
gap: 1,
|
|
@@ -5,7 +5,7 @@ import { jsx } from '@emotion/react/jsx-runtime';
|
|
|
5
5
|
const PinnedItems = () => {
|
|
6
6
|
const context = useNavigation();
|
|
7
7
|
if (!context) {
|
|
8
|
-
throw new Error('Navigation.PinnedItems can only be used inside a
|
|
8
|
+
throw new Error('Navigation.PinnedItems can only be used inside a NavigationProvider.');
|
|
9
9
|
}
|
|
10
10
|
const {
|
|
11
11
|
locales,
|
package/dist/src/index.js
CHANGED
|
@@ -6,5 +6,6 @@ export { default as estimateCostDefaultLocales } from './components/EstimateCost
|
|
|
6
6
|
export { CustomerSatisfaction } from './components/CustomerSatisfaction/index.js';
|
|
7
7
|
export { Conversation } from './components/Conversation/index.js';
|
|
8
8
|
export { Navigation } from './components/Navigation/Navigation.js';
|
|
9
|
+
export { NavigationProvider, useNavigation } from './components/Navigation/NavigationProvider.js';
|
|
9
10
|
export { FAQ } from './components/FAQ/index.js';
|
|
10
11
|
export { SteppedListContainer } from './components/SteppedListCard/SteppedListContainer.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/plus",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "Ultraviolet Plus",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"@emotion/babel-plugin": "11.11.0",
|
|
44
44
|
"@emotion/react": "11.11.4",
|
|
45
45
|
"@emotion/styled": "11.11.5",
|
|
46
|
-
"@types/react": "18.2.
|
|
46
|
+
"@types/react": "18.2.79",
|
|
47
47
|
"@types/react-dom": "18.2.25",
|
|
48
48
|
"react": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0",
|
|
50
|
-
"@ultraviolet/icons": "2.12.
|
|
51
|
-
"@ultraviolet/illustrations": "1.7.
|
|
50
|
+
"@ultraviolet/icons": "2.12.5",
|
|
51
|
+
"@ultraviolet/illustrations": "1.7.1"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@uiw/codemirror-extensions-langs": "4.21.25",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@uiw/react-codemirror": "4.21.25",
|
|
57
57
|
"react-intersection-observer": "9.8.2",
|
|
58
58
|
"@ultraviolet/themes": "1.10.0",
|
|
59
|
-
"@ultraviolet/ui": "1.
|
|
59
|
+
"@ultraviolet/ui": "1.48.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "rollup -c ../../rollup.config.mjs",
|