@wise/art 0.0.0-experimental-7f4f66a → 0.0.0-experimental-b088eec
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/README.md +16 -2
- package/dist/CheckMark-B4apF00o.js +40 -0
- package/dist/CheckMark-B4apF00o.js.map +1 -0
- package/dist/CheckMark-C6Gr_xXL.esm.js +38 -0
- package/dist/CheckMark-C6Gr_xXL.esm.js.map +1 -0
- package/dist/Confetti-C67U1Zdj.esm.js +35 -0
- package/dist/Confetti-C67U1Zdj.esm.js.map +1 -0
- package/dist/Confetti-DdxGAp4I.js +37 -0
- package/dist/Confetti-DdxGAp4I.js.map +1 -0
- package/dist/Flower-DasfcRBT.esm.js +28 -0
- package/dist/Flower-DasfcRBT.esm.js.map +1 -0
- package/dist/Flower-yjqCXxp6.js +30 -0
- package/dist/Flower-yjqCXxp6.js.map +1 -0
- package/dist/Globe-BqDlwkJm.js +46 -0
- package/dist/Globe-BqDlwkJm.js.map +1 -0
- package/dist/Globe-C9AZxd2Y.esm.js +44 -0
- package/dist/Globe-C9AZxd2Y.esm.js.map +1 -0
- package/dist/Graph-6nvvJntC.js +34 -0
- package/dist/Graph-6nvvJntC.js.map +1 -0
- package/dist/Graph-DVJ38E1p.esm.js +32 -0
- package/dist/Graph-DVJ38E1p.esm.js.map +1 -0
- package/dist/Illustration.css +1 -0
- package/dist/Interest-2Yff_wDq.js +53 -0
- package/dist/Interest-2Yff_wDq.js.map +1 -0
- package/dist/Interest-DjOcyx9v.esm.js +51 -0
- package/dist/Interest-DjOcyx9v.esm.js.map +1 -0
- package/dist/Jars-C7KdBy9e.js +53 -0
- package/dist/Jars-C7KdBy9e.js.map +1 -0
- package/dist/Jars-CHh_FiCl.esm.js +51 -0
- package/dist/Jars-CHh_FiCl.esm.js.map +1 -0
- package/dist/Lock-B7bG1MNN.js +44 -0
- package/dist/Lock-B7bG1MNN.js.map +1 -0
- package/dist/Lock-DddccsYd.esm.js +42 -0
- package/dist/Lock-DddccsYd.esm.js.map +1 -0
- package/dist/MagnifyingGlass-D3ECziZC.js +33 -0
- package/dist/MagnifyingGlass-D3ECziZC.js.map +1 -0
- package/dist/MagnifyingGlass-Dzg9rQC8.esm.js +31 -0
- package/dist/MagnifyingGlass-Dzg9rQC8.esm.js.map +1 -0
- package/dist/Marble-Befsfifz.esm.js +43 -0
- package/dist/Marble-Befsfifz.esm.js.map +1 -0
- package/dist/Marble-DSYM97l5.js +45 -0
- package/dist/Marble-DSYM97l5.js.map +1 -0
- package/dist/MarbleCard-DHWslCVG.esm.js +46 -0
- package/dist/MarbleCard-DHWslCVG.esm.js.map +1 -0
- package/dist/MarbleCard-kOCCz1Qh.js +48 -0
- package/dist/MarbleCard-kOCCz1Qh.js.map +1 -0
- package/dist/MultiCurrency-B6mXCM3m.esm.js +62 -0
- package/dist/MultiCurrency-B6mXCM3m.esm.js.map +1 -0
- package/dist/MultiCurrency-DP_lAn0S.js +64 -0
- package/dist/MultiCurrency-DP_lAn0S.js.map +1 -0
- package/dist/Plane-CIIUv-R9.js +40 -0
- package/dist/Plane-CIIUv-R9.js.map +1 -0
- package/dist/Plane-sDsU8h_j.esm.js +38 -0
- package/dist/Plane-sDsU8h_j.esm.js.map +1 -0
- package/dist/Scene-BIEwR0Eq.esm.js +54 -0
- package/dist/Scene-BIEwR0Eq.esm.js.map +1 -0
- package/dist/Scene-JIaToh60.js +56 -0
- package/dist/Scene-JIaToh60.js.map +1 -0
- package/dist/common-DBpCdW70.esm.js +14 -0
- package/dist/common-DBpCdW70.esm.js.map +1 -0
- package/dist/common-H4L6Hbbh.js +16 -0
- package/dist/common-H4L6Hbbh.js.map +1 -0
- package/dist/common.d.ts +15 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/flags/Flag.d.ts +14 -0
- package/dist/flags/Flag.d.ts.map +1 -0
- package/dist/flags/Flag.spec.d.ts +2 -0
- package/dist/flags/Flag.spec.d.ts.map +1 -0
- package/dist/flags/index.d.ts +3 -0
- package/dist/flags/index.d.ts.map +1 -0
- package/dist/flags/metadata.d.ts +2 -0
- package/dist/flags/metadata.d.ts.map +1 -0
- package/dist/illustrations/Illustration.d.ts +20 -0
- package/dist/illustrations/Illustration.d.ts.map +1 -0
- package/dist/illustrations/Illustration.spec.d.ts +2 -0
- package/dist/illustrations/Illustration.spec.d.ts.map +1 -0
- package/dist/illustrations/index.d.ts +5 -0
- package/dist/illustrations/index.d.ts.map +1 -0
- package/dist/illustrations/metadata.d.ts +128 -0
- package/dist/illustrations/metadata.d.ts.map +1 -0
- package/dist/illustrations3d/Illustration3D.d.ts +11 -0
- package/dist/illustrations3d/Illustration3D.d.ts.map +1 -0
- package/dist/illustrations3d/Scene.d.ts +10 -0
- package/dist/illustrations3d/Scene.d.ts.map +1 -0
- package/dist/illustrations3d/index.d.ts +5 -0
- package/dist/illustrations3d/index.d.ts.map +1 -0
- package/dist/illustrations3d/models/CheckMark.d.ts +3 -0
- package/dist/illustrations3d/models/CheckMark.d.ts.map +1 -0
- package/dist/illustrations3d/models/Confetti.d.ts +3 -0
- package/dist/illustrations3d/models/Confetti.d.ts.map +1 -0
- package/dist/illustrations3d/models/Flower.d.ts +3 -0
- package/dist/illustrations3d/models/Flower.d.ts.map +1 -0
- package/dist/illustrations3d/models/Globe.d.ts +3 -0
- package/dist/illustrations3d/models/Globe.d.ts.map +1 -0
- package/dist/illustrations3d/models/Graph.d.ts +3 -0
- package/dist/illustrations3d/models/Graph.d.ts.map +1 -0
- package/dist/illustrations3d/models/Interest.d.ts +3 -0
- package/dist/illustrations3d/models/Interest.d.ts.map +1 -0
- package/dist/illustrations3d/models/Jars.d.ts +3 -0
- package/dist/illustrations3d/models/Jars.d.ts.map +1 -0
- package/dist/illustrations3d/models/Lock.d.ts +3 -0
- package/dist/illustrations3d/models/Lock.d.ts.map +1 -0
- package/dist/illustrations3d/models/MagnifyingGlass.d.ts +3 -0
- package/dist/illustrations3d/models/MagnifyingGlass.d.ts.map +1 -0
- package/dist/illustrations3d/models/Marble.d.ts +3 -0
- package/dist/illustrations3d/models/Marble.d.ts.map +1 -0
- package/dist/illustrations3d/models/MarbleCard.d.ts +3 -0
- package/dist/illustrations3d/models/MarbleCard.d.ts.map +1 -0
- package/dist/illustrations3d/models/MultiCurrency.d.ts +3 -0
- package/dist/illustrations3d/models/MultiCurrency.d.ts.map +1 -0
- package/dist/illustrations3d/models/Plane.d.ts +3 -0
- package/dist/illustrations3d/models/Plane.d.ts.map +1 -0
- package/dist/illustrations3d/utils.d.ts +10 -0
- package/dist/illustrations3d/utils.d.ts.map +1 -0
- package/dist/illustrations3d/utils.spec.d.ts +2 -0
- package/dist/illustrations3d/utils.spec.d.ts.map +1 -0
- package/dist/index-B8dsCxbf.js +405 -0
- package/dist/index-B8dsCxbf.js.map +1 -0
- package/dist/index-BLcCygw5.esm.js +399 -0
- package/dist/index-BLcCygw5.esm.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +6 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/rive/RiveIllustration.d.ts +13 -0
- package/dist/rive/RiveIllustration.d.ts.map +1 -0
- package/dist/rive/index.d.ts +3 -0
- package/dist/rive/index.d.ts.map +1 -0
- package/dist/rive/index.esm.js +47 -0
- package/dist/rive/index.esm.js.map +1 -0
- package/dist/rive/index.js +53 -0
- package/dist/rive/index.js.map +1 -0
- package/package.json +6 -8
- package/src/flags/AllFlagsAndSizes.stories.tsx +48 -49
- package/src/illustrations/Illustration.stories.tsx +38 -35
- package/src/illustrations/metadata.ts +267 -5
- package/src/illustrations3d/Illustration3D.stories.tsx +34 -1
- package/src/illustrations3d/Illustration3D.tsx +2 -15
- package/src/illustrations3d/utils.ts +3 -17
|
@@ -4,10 +4,272 @@
|
|
|
4
4
|
* See: `scripts/generate-i10s-metadata.mjs`
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
|
|
8
|
+
|
|
9
9
|
export enum Assets {
|
|
10
|
-
|
|
10
|
+
API_INTEGRATIONS_BUSINESS = 'api-integrations-business',
|
|
11
|
+
APP_MARKETPLACE_BUSINESS = 'app-marketplace-business',
|
|
12
|
+
BACKPACK = 'backpack',
|
|
13
|
+
BATCH_PAYMENTS_BUSINESS = 'batch-payments-business',
|
|
14
|
+
BELL = 'bell',
|
|
15
|
+
BELL_BUSINESS = 'bell-business',
|
|
16
|
+
BRIEFCASE = 'briefcase',
|
|
17
|
+
BRIEFCASE_BUSINESS = 'briefcase-business',
|
|
18
|
+
BUSINESS_CARD = 'business-card',
|
|
19
|
+
BUSINESS_CARD_BUSINESS = 'business-card-business',
|
|
20
|
+
CALCULATOR_BUSINESS = 'calculator-business',
|
|
21
|
+
CALENDAR = 'calendar',
|
|
22
|
+
CALENDAR_BUSINESS = 'calendar-business',
|
|
23
|
+
CARD = 'card',
|
|
24
|
+
CARD_BUSINESS = 'card-business',
|
|
25
|
+
CHECK_MARK = 'check-mark',
|
|
26
|
+
CHECK_MARK_BUSINESS = 'check-mark-business',
|
|
27
|
+
CLOSED_WINDOW = 'closed-window',
|
|
28
|
+
COIN_PILE_DOWN = 'coin-pile-down',
|
|
29
|
+
COIN_PILE_DOWN_BUSINESS = 'coin-pile-down-business',
|
|
30
|
+
COIN_PILE_UP = 'coin-pile-up',
|
|
31
|
+
COIN_PILE_UP_BUSINESS = 'coin-pile-up-business',
|
|
32
|
+
COMPLIANCE_PLATFORM = 'compliance-platform',
|
|
33
|
+
CONFETTI = 'confetti',
|
|
34
|
+
CONFETTI_BUSINESS = 'confetti-business',
|
|
35
|
+
CONSTRUCTION_FENCE = 'construction-fence',
|
|
36
|
+
CONTROLS_PLATFORM = 'controls-platform',
|
|
37
|
+
CONVERT = 'convert',
|
|
38
|
+
CONVERT_BUSINESS = 'convert-business',
|
|
39
|
+
COOKIE = 'cookie',
|
|
40
|
+
DIGITAL_CARD = 'digital-card',
|
|
41
|
+
DIGITAL_CARD_2 = 'digital-card-2',
|
|
42
|
+
DIGITAL_CARD_BUSINESS = 'digital-card-business',
|
|
43
|
+
DOCUMENTS = 'documents',
|
|
44
|
+
DOCUMENTS_FOLDER_BUSINESS = 'documents-folder-business',
|
|
45
|
+
DOOR = 'door',
|
|
46
|
+
ECO_CARD = 'eco-card',
|
|
47
|
+
ELECTRIC_PLUG = 'electric-plug',
|
|
48
|
+
EMAIL = 'email',
|
|
49
|
+
EMAIL_SUCCESS = 'email-success',
|
|
50
|
+
EMAIL_SUCCESS_BUSINESS = 'email-success-business',
|
|
51
|
+
EXCLAMATION_MARK = 'exclamation-mark',
|
|
52
|
+
EXCLAMATION_MARK_BUSINESS = 'exclamation-mark-business',
|
|
53
|
+
FLAG = 'flag',
|
|
54
|
+
FLOWER = 'flower',
|
|
55
|
+
GEAR = 'gear',
|
|
56
|
+
GEAR_BUSINESS = 'gear-business',
|
|
57
|
+
GEAR_PLATFORM = 'gear-platform',
|
|
58
|
+
GET_PAID_WITH_CARD_BUSINESS = 'get-paid-with-card-business',
|
|
59
|
+
GIFT_BOX = 'gift-box',
|
|
60
|
+
GLOBE = 'globe',
|
|
61
|
+
GRAPH = 'graph',
|
|
62
|
+
GRAPH_BUSINESS = 'graph-business',
|
|
63
|
+
HEADSET = 'headset',
|
|
64
|
+
HEADSET_BUSINESS = 'headset-business',
|
|
65
|
+
HEART = 'heart',
|
|
66
|
+
HEART_2 = 'heart-2',
|
|
67
|
+
HEART_3 = 'heart-3',
|
|
68
|
+
HEART_4 = 'heart-4',
|
|
69
|
+
HEART_5 = 'heart-5',
|
|
70
|
+
HOUSE = 'house',
|
|
71
|
+
ID_CARD = 'id-card',
|
|
72
|
+
INFINITE = 'infinite',
|
|
73
|
+
INTEREST = 'interest',
|
|
74
|
+
INVITE_LETTER = 'invite-letter',
|
|
75
|
+
JARS = 'jars',
|
|
76
|
+
KEY = 'key',
|
|
77
|
+
KEY_BUSINESS = 'key-business',
|
|
78
|
+
LIGHT_BULB = 'light-bulb',
|
|
79
|
+
LIGHT_BULB_BUSINESS = 'light-bulb-business',
|
|
80
|
+
LOCK = 'lock',
|
|
81
|
+
LOCK_BUSINESS = 'lock-business',
|
|
82
|
+
LOCK_PLATFORM = 'lock-platform',
|
|
83
|
+
MAGNIFYING_GLASS = 'magnifying-glass',
|
|
84
|
+
MAGNIFYING_GLASS_BUSINESS = 'magnifying-glass-business',
|
|
85
|
+
MAP = 'map',
|
|
86
|
+
MAP_BUSINESS = 'map-business',
|
|
87
|
+
MARBLE = 'marble',
|
|
88
|
+
MARBLE_BUSINESS = 'marble-business',
|
|
89
|
+
MARBLE_CARD = 'marble-card',
|
|
90
|
+
MARBLE_CARD_BUSINESS = 'marble-card-business',
|
|
91
|
+
MARBLE_CARD_BUSINESS_FLAG_ONLY = 'marble-card-business-flag-only',
|
|
92
|
+
MARBLE_CARD_FLAG_ONLY = 'marble-card-flag-only',
|
|
93
|
+
MARBLE_CARD_FLAG_ONLY_BUSINESS = 'marble-card-flag-only-business',
|
|
94
|
+
MEGAPHONE = 'megaphone',
|
|
95
|
+
MEGAPHONE_BUSINESS = 'megaphone-business',
|
|
96
|
+
MULTI_CURRENCY = 'multi-currency',
|
|
97
|
+
MULTI_CURRENCY_BUSINESS = 'multi-currency-business',
|
|
98
|
+
ONE_INVITE_LETTER_OPENED = 'one-invite-letter-opened',
|
|
99
|
+
PALM_TREE = 'palm-tree',
|
|
100
|
+
PASSKEY = 'passkey',
|
|
101
|
+
PERCENTAGE = 'percentage',
|
|
102
|
+
PERCENTAGE_BUSINESS = 'percentage-business',
|
|
103
|
+
PERSONAL_CARD = 'personal-card',
|
|
104
|
+
PHONES = 'phones',
|
|
105
|
+
PIE_CHART = 'pie-chart',
|
|
106
|
+
PIE_CHART_BUSINESS = 'pie-chart-business',
|
|
107
|
+
PLANE = 'plane',
|
|
108
|
+
PLANE_2 = 'plane-2',
|
|
109
|
+
PLANE_BUSINESS = 'plane-business',
|
|
110
|
+
PUZZLE_PIECES = 'puzzle-pieces',
|
|
111
|
+
PUZZLE_PIECES_BUSINESS = 'puzzle-pieces-business',
|
|
112
|
+
QUESTION_MARK = 'question-mark',
|
|
113
|
+
QUESTION_MARK_BUSINESS = 'question-mark-business',
|
|
114
|
+
RECEIVE = 'receive',
|
|
115
|
+
RECEIVE_BUSINESS = 'receive-business',
|
|
116
|
+
RED_PACKET = 'red-packet',
|
|
117
|
+
REMINDER_LETTER = 'reminder-letter',
|
|
118
|
+
ROCKET_PLATFORM = 'rocket-platform',
|
|
119
|
+
SAND_TIMER = 'sand-timer',
|
|
120
|
+
SAND_TIMER_BUSINESS = 'sand-timer-business',
|
|
121
|
+
SATELLITE_PLATFORM = 'satellite-platform',
|
|
122
|
+
SHOPPING_BAG = 'shopping-bag',
|
|
123
|
+
SKIP_AUTHENTICATION = 'skip-authentication',
|
|
124
|
+
SPEECH_BUBBLE = 'speech-bubble',
|
|
125
|
+
STOPWATCH_PLATFORM = 'stopwatch-platform',
|
|
126
|
+
TARGET_PLATFORM = 'target-platform',
|
|
127
|
+
TOOL = 'tool',
|
|
128
|
+
TREASURY_PLATFORM = 'treasury-platform',
|
|
129
|
+
TWO_INVITE_LETTERS_OPENED = 'two-invite-letters-opened',
|
|
130
|
+
WALLET = 'wallet',
|
|
11
131
|
}
|
|
12
|
-
|
|
13
|
-
export
|
|
132
|
+
|
|
133
|
+
export const illustrationNames = [
|
|
134
|
+
'api-integrations-business',
|
|
135
|
+
'app-marketplace-business',
|
|
136
|
+
'backpack',
|
|
137
|
+
'batch-payments-business',
|
|
138
|
+
'bell',
|
|
139
|
+
'bell-business',
|
|
140
|
+
'briefcase',
|
|
141
|
+
'briefcase-business',
|
|
142
|
+
'business-card',
|
|
143
|
+
'business-card-business',
|
|
144
|
+
'calculator-business',
|
|
145
|
+
'calendar',
|
|
146
|
+
'calendar-business',
|
|
147
|
+
'card',
|
|
148
|
+
'card-business',
|
|
149
|
+
'check-mark',
|
|
150
|
+
'check-mark-business',
|
|
151
|
+
'closed-window',
|
|
152
|
+
'coin-pile-down',
|
|
153
|
+
'coin-pile-down-business',
|
|
154
|
+
'coin-pile-up',
|
|
155
|
+
'coin-pile-up-business',
|
|
156
|
+
'compliance-platform',
|
|
157
|
+
'confetti',
|
|
158
|
+
'confetti-business',
|
|
159
|
+
'construction-fence',
|
|
160
|
+
'controls-platform',
|
|
161
|
+
'convert',
|
|
162
|
+
'convert-business',
|
|
163
|
+
'cookie',
|
|
164
|
+
'digital-card',
|
|
165
|
+
'digital-card-2',
|
|
166
|
+
'digital-card-business',
|
|
167
|
+
'documents',
|
|
168
|
+
'documents-folder-business',
|
|
169
|
+
'door',
|
|
170
|
+
'eco-card',
|
|
171
|
+
'electric-plug',
|
|
172
|
+
'email',
|
|
173
|
+
'email-success',
|
|
174
|
+
'email-success-business',
|
|
175
|
+
'exclamation-mark',
|
|
176
|
+
'exclamation-mark-business',
|
|
177
|
+
'flag',
|
|
178
|
+
'flower',
|
|
179
|
+
'gear',
|
|
180
|
+
'gear-business',
|
|
181
|
+
'gear-platform',
|
|
182
|
+
'get-paid-with-card-business',
|
|
183
|
+
'gift-box',
|
|
184
|
+
'globe',
|
|
185
|
+
'graph',
|
|
186
|
+
'graph-business',
|
|
187
|
+
'headset',
|
|
188
|
+
'headset-business',
|
|
189
|
+
'heart',
|
|
190
|
+
'heart-2',
|
|
191
|
+
'heart-3',
|
|
192
|
+
'heart-4',
|
|
193
|
+
'heart-5',
|
|
194
|
+
'house',
|
|
195
|
+
'id-card',
|
|
196
|
+
'infinite',
|
|
197
|
+
'interest',
|
|
198
|
+
'invite-letter',
|
|
199
|
+
'jars',
|
|
200
|
+
'key',
|
|
201
|
+
'key-business',
|
|
202
|
+
'light-bulb',
|
|
203
|
+
'light-bulb-business',
|
|
204
|
+
'lock',
|
|
205
|
+
'lock-business',
|
|
206
|
+
'lock-platform',
|
|
207
|
+
'magnifying-glass',
|
|
208
|
+
'magnifying-glass-business',
|
|
209
|
+
'map',
|
|
210
|
+
'map-business',
|
|
211
|
+
'marble',
|
|
212
|
+
'marble-business',
|
|
213
|
+
'marble-card',
|
|
214
|
+
'marble-card-business',
|
|
215
|
+
'marble-card-business-flag-only',
|
|
216
|
+
'marble-card-flag-only',
|
|
217
|
+
'marble-card-flag-only-business',
|
|
218
|
+
'megaphone',
|
|
219
|
+
'megaphone-business',
|
|
220
|
+
'multi-currency',
|
|
221
|
+
'multi-currency-business',
|
|
222
|
+
'one-invite-letter-opened',
|
|
223
|
+
'palm-tree',
|
|
224
|
+
'passkey',
|
|
225
|
+
'percentage',
|
|
226
|
+
'percentage-business',
|
|
227
|
+
'personal-card',
|
|
228
|
+
'phones',
|
|
229
|
+
'pie-chart',
|
|
230
|
+
'pie-chart-business',
|
|
231
|
+
'plane',
|
|
232
|
+
'plane-2',
|
|
233
|
+
'plane-business',
|
|
234
|
+
'puzzle-pieces',
|
|
235
|
+
'puzzle-pieces-business',
|
|
236
|
+
'question-mark',
|
|
237
|
+
'question-mark-business',
|
|
238
|
+
'receive',
|
|
239
|
+
'receive-business',
|
|
240
|
+
'red-packet',
|
|
241
|
+
'reminder-letter',
|
|
242
|
+
'rocket-platform',
|
|
243
|
+
'sand-timer',
|
|
244
|
+
'sand-timer-business',
|
|
245
|
+
'satellite-platform',
|
|
246
|
+
'shopping-bag',
|
|
247
|
+
'skip-authentication',
|
|
248
|
+
'speech-bubble',
|
|
249
|
+
'stopwatch-platform',
|
|
250
|
+
'target-platform',
|
|
251
|
+
'tool',
|
|
252
|
+
'treasury-platform',
|
|
253
|
+
'two-invite-letters-opened',
|
|
254
|
+
'wallet',
|
|
255
|
+
] as const;
|
|
256
|
+
|
|
257
|
+
export type IllustrationNames = typeof illustrationNames[number];
|
|
258
|
+
|
|
259
|
+
export const illustration3DNames = [
|
|
260
|
+
'check-mark',
|
|
261
|
+
'confetti',
|
|
262
|
+
'flower',
|
|
263
|
+
'globe',
|
|
264
|
+
'graph',
|
|
265
|
+
'interest',
|
|
266
|
+
'jars',
|
|
267
|
+
'lock',
|
|
268
|
+
'magnifying-glass',
|
|
269
|
+
'marble',
|
|
270
|
+
'marble-card',
|
|
271
|
+
'multi-currency',
|
|
272
|
+
'plane',
|
|
273
|
+
] as const;
|
|
274
|
+
|
|
275
|
+
export type Illustration3DNames = typeof illustration3DNames[number];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
|
|
4
4
|
import { Sizes } from '../common';
|
|
5
|
-
import { Assets } from '../illustrations/metadata';
|
|
5
|
+
import { Assets, illustration3DNames } from '../illustrations/metadata';
|
|
6
6
|
|
|
7
7
|
import Illustration3D from './Illustration3D';
|
|
8
8
|
|
|
@@ -10,6 +10,39 @@ export default {
|
|
|
10
10
|
title: '3D Illustrations',
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
+
export const All = () => {
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
<span className="np-text-body-large-bold">
|
|
17
|
+
Total number of 3D illustrations: {illustration3DNames.length}
|
|
18
|
+
</span>
|
|
19
|
+
<div
|
|
20
|
+
style={{
|
|
21
|
+
display: 'grid',
|
|
22
|
+
gridTemplateColumns: 'repeat(auto-fill, minmax(250px, 1fr))',
|
|
23
|
+
gap: 'var(--padding-small)',
|
|
24
|
+
}}
|
|
25
|
+
>
|
|
26
|
+
{illustration3DNames.map((name) => (
|
|
27
|
+
<div
|
|
28
|
+
key={name}
|
|
29
|
+
style={{
|
|
30
|
+
display: 'grid',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyItems: 'center',
|
|
33
|
+
}}
|
|
34
|
+
>
|
|
35
|
+
<Illustration3D name={name} size={Sizes.SMALL} />
|
|
36
|
+
<span>
|
|
37
|
+
<code>{name}</code>
|
|
38
|
+
</span>
|
|
39
|
+
</div>
|
|
40
|
+
))}
|
|
41
|
+
</div>
|
|
42
|
+
</>
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
|
|
13
46
|
export const Confetti = () => {
|
|
14
47
|
return (
|
|
15
48
|
<>
|
|
@@ -4,24 +4,11 @@ import { lazy, Suspense, useEffect, useState, LazyExoticComponent } from 'react'
|
|
|
4
4
|
|
|
5
5
|
import { LargeSize, MediumSize, SmallSize, Sizes } from '../common';
|
|
6
6
|
import Illustration, { Assets } from '../illustrations';
|
|
7
|
+
import { type Illustration3DNames } from '../illustrations/metadata';
|
|
8
|
+
export type { Illustration3DNames };
|
|
7
9
|
|
|
8
10
|
import { useBattery, isConnectionSlow, isBatteryLow, isWebGL2Available } from './utils';
|
|
9
11
|
|
|
10
|
-
export type Illustration3DNames =
|
|
11
|
-
| 'lock'
|
|
12
|
-
| 'globe'
|
|
13
|
-
| 'confetti'
|
|
14
|
-
| 'check-mark'
|
|
15
|
-
| 'flower'
|
|
16
|
-
| 'graph'
|
|
17
|
-
| 'jars'
|
|
18
|
-
| 'magnifying-glass'
|
|
19
|
-
| 'marble'
|
|
20
|
-
| 'marble-card'
|
|
21
|
-
| 'multi-currency'
|
|
22
|
-
| 'plane'
|
|
23
|
-
| 'interest';
|
|
24
|
-
|
|
25
12
|
export type Props = {
|
|
26
13
|
name: Illustration3DNames;
|
|
27
14
|
size?: SmallSize | MediumSize | LargeSize;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
2
|
|
|
3
|
-
import type
|
|
3
|
+
import { illustration3DNames, type IllustrationNames } from '../illustrations/metadata';
|
|
4
4
|
|
|
5
5
|
export function useBattery() {
|
|
6
6
|
const [batteryData, setBatteryData] = useState<{ level: number }>({ level: 1.0 });
|
|
@@ -62,22 +62,8 @@ export function defineSrc(asset: string): string {
|
|
|
62
62
|
return `https://wise.com/web-art/assets/illustrations3d/${asset}`;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
const
|
|
66
|
-
'lock',
|
|
67
|
-
'globe',
|
|
68
|
-
'confetti',
|
|
69
|
-
'check-mark',
|
|
70
|
-
'flower',
|
|
71
|
-
'graph',
|
|
72
|
-
'jars',
|
|
73
|
-
'magnifying-glass',
|
|
74
|
-
'marble',
|
|
75
|
-
'marble-card',
|
|
76
|
-
'multi-currency',
|
|
77
|
-
'plane',
|
|
78
|
-
'interest',
|
|
79
|
-
];
|
|
65
|
+
const illustration3DSet = new Set<string>(illustration3DNames);
|
|
80
66
|
|
|
81
67
|
export function isIllustrationSupport3D(asset: IllustrationNames): boolean {
|
|
82
|
-
return
|
|
68
|
+
return illustration3DSet.has(asset);
|
|
83
69
|
}
|