@drawbridge/components 0.0.66 → 0.0.68
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/chunk-24RIMAX7.mjs +18 -0
- package/dist/chunk-34VHCLEM.mjs +18 -0
- package/dist/chunk-3ZVT66SF.mjs +18 -0
- package/dist/chunk-DTGGUHVT.mjs +18 -0
- package/dist/chunk-G3FIQDKF.mjs +18 -0
- package/dist/chunk-GDO334JM.mjs +18 -0
- package/dist/chunk-KJMXWB22.mjs +18 -0
- package/dist/chunk-OSTKXL5W.mjs +18 -0
- package/dist/chunk-PLX5YT4F.mjs +18 -0
- package/dist/chunk-S6X5EEMX.mjs +18 -0
- package/dist/chunk-TOR3Z64G.mjs +18 -0
- package/dist/chunk-WQXZE4EX.mjs +18 -0
- package/dist/chunk-WRQM5ECM.mjs +18 -0
- package/dist/chunk-YEC7KSKN.mjs +18 -0
- package/dist/icons/discord.js +37 -0
- package/dist/icons/discord.mjs +6 -0
- package/dist/icons/facebook.js +37 -0
- package/dist/icons/facebook.mjs +6 -0
- package/dist/icons/github.js +37 -0
- package/dist/icons/github.mjs +6 -0
- package/dist/icons/instagram.js +37 -0
- package/dist/icons/instagram.mjs +6 -0
- package/dist/icons/linkedin.js +37 -0
- package/dist/icons/linkedin.mjs +6 -0
- package/dist/icons/pinterest.js +37 -0
- package/dist/icons/pinterest.mjs +6 -0
- package/dist/icons/snapchat.js +37 -0
- package/dist/icons/snapchat.mjs +6 -0
- package/dist/icons/social.js +258 -0
- package/dist/icons/social.mjs +65 -0
- package/dist/icons/spotify.js +37 -0
- package/dist/icons/spotify.mjs +6 -0
- package/dist/icons/threads.js +37 -0
- package/dist/icons/threads.mjs +6 -0
- package/dist/icons/tiktok.js +37 -0
- package/dist/icons/tiktok.mjs +6 -0
- package/dist/icons/twitch.js +37 -0
- package/dist/icons/twitch.mjs +6 -0
- package/dist/icons/whatsapp.js +37 -0
- package/dist/icons/whatsapp.mjs +6 -0
- package/dist/icons/x.js +37 -0
- package/dist/icons/x.mjs +6 -0
- package/dist/icons/youtube.js +37 -0
- package/dist/icons/youtube.mjs +6 -0
- package/dist/input-number.mjs +3 -3
- package/dist/provider-font.js +3 -0
- package/dist/provider-font.mjs +3 -0
- package/package.json +62 -2
- package/types/icons/discord.d.ts +5 -0
- package/types/icons/facebook.d.ts +5 -0
- package/types/icons/github.d.ts +5 -0
- package/types/icons/instagram.d.ts +5 -0
- package/types/icons/linkedin.d.ts +5 -0
- package/types/icons/pinterest.d.ts +5 -0
- package/types/icons/snapchat.d.ts +5 -0
- package/types/icons/social.d.ts +7 -0
- package/types/icons/spotify.d.ts +5 -0
- package/types/icons/threads.d.ts +5 -0
- package/types/icons/tiktok.d.ts +5 -0
- package/types/icons/twitch.d.ts +5 -0
- package/types/icons/whatsapp.d.ts +5 -0
- package/types/icons/x.d.ts +5 -0
- package/types/icons/youtube.d.ts +5 -0
package/dist/input-number.mjs
CHANGED
package/dist/provider-font.js
CHANGED
|
@@ -35,6 +35,7 @@ var toWeight = (value) => {
|
|
|
35
35
|
if (value.includes("regular")) return "normal";
|
|
36
36
|
return value;
|
|
37
37
|
};
|
|
38
|
+
var toStyle = (value) => value.includes("italic") ? "italic" : void 0;
|
|
38
39
|
var ProviderFont = (0, import_react.memo)(({
|
|
39
40
|
body,
|
|
40
41
|
children,
|
|
@@ -62,6 +63,7 @@ var ProviderFont = (0, import_react.memo)(({
|
|
|
62
63
|
if (body == null ? void 0 : body.weight) {
|
|
63
64
|
url2.push(":" + body.weight);
|
|
64
65
|
fonts2.body.fontWeight = toWeight(body.weight);
|
|
66
|
+
fonts2.body.fontStyle = toStyle(body.weight);
|
|
65
67
|
}
|
|
66
68
|
if (!same) {
|
|
67
69
|
url2.push("%7C" + headingFamily.replace(/ /g, "+"));
|
|
@@ -69,6 +71,7 @@ var ProviderFont = (0, import_react.memo)(({
|
|
|
69
71
|
if (heading == null ? void 0 : heading.weight) {
|
|
70
72
|
url2.push((same ? "," : ":") + heading.weight);
|
|
71
73
|
fonts2.heading.fontWeight = toWeight(heading.weight);
|
|
74
|
+
fonts2.heading.fontStyle = toStyle(heading.weight);
|
|
72
75
|
}
|
|
73
76
|
url2.push("&display=swap");
|
|
74
77
|
return { url: url2, fonts: fonts2 };
|
package/dist/provider-font.mjs
CHANGED
|
@@ -12,6 +12,7 @@ var toWeight = (value) => {
|
|
|
12
12
|
if (value.includes("regular")) return "normal";
|
|
13
13
|
return value;
|
|
14
14
|
};
|
|
15
|
+
var toStyle = (value) => value.includes("italic") ? "italic" : void 0;
|
|
15
16
|
var ProviderFont = memo(({
|
|
16
17
|
body,
|
|
17
18
|
children,
|
|
@@ -39,6 +40,7 @@ var ProviderFont = memo(({
|
|
|
39
40
|
if (body == null ? void 0 : body.weight) {
|
|
40
41
|
url2.push(":" + body.weight);
|
|
41
42
|
fonts2.body.fontWeight = toWeight(body.weight);
|
|
43
|
+
fonts2.body.fontStyle = toStyle(body.weight);
|
|
42
44
|
}
|
|
43
45
|
if (!same) {
|
|
44
46
|
url2.push("%7C" + headingFamily.replace(/ /g, "+"));
|
|
@@ -46,6 +48,7 @@ var ProviderFont = memo(({
|
|
|
46
48
|
if (heading == null ? void 0 : heading.weight) {
|
|
47
49
|
url2.push((same ? "," : ":") + heading.weight);
|
|
48
50
|
fonts2.heading.fontWeight = toWeight(heading.weight);
|
|
51
|
+
fonts2.heading.fontStyle = toStyle(heading.weight);
|
|
49
52
|
}
|
|
50
53
|
url2.push("&display=swap");
|
|
51
54
|
return { url: url2, fonts: fonts2 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drawbridge/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.68",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./advertisement": {
|
|
6
6
|
"types": "./types/advertisement.d.ts",
|
|
@@ -102,6 +102,10 @@
|
|
|
102
102
|
"types": "./types/icons/copy.d.ts",
|
|
103
103
|
"default": "./dist/icons/copy.js"
|
|
104
104
|
},
|
|
105
|
+
"./icons/discord": {
|
|
106
|
+
"types": "./types/icons/discord.d.ts",
|
|
107
|
+
"default": "./dist/icons/discord.js"
|
|
108
|
+
},
|
|
105
109
|
"./icons/document": {
|
|
106
110
|
"types": "./types/icons/document.d.ts",
|
|
107
111
|
"default": "./dist/icons/document.js"
|
|
@@ -126,6 +130,10 @@
|
|
|
126
130
|
"types": "./types/icons/external.d.ts",
|
|
127
131
|
"default": "./dist/icons/external.js"
|
|
128
132
|
},
|
|
133
|
+
"./icons/facebook": {
|
|
134
|
+
"types": "./types/icons/facebook.d.ts",
|
|
135
|
+
"default": "./dist/icons/facebook.js"
|
|
136
|
+
},
|
|
129
137
|
"./icons/filter": {
|
|
130
138
|
"types": "./types/icons/filter.d.ts",
|
|
131
139
|
"default": "./dist/icons/filter.js"
|
|
@@ -134,6 +142,10 @@
|
|
|
134
142
|
"types": "./types/icons/flag.d.ts",
|
|
135
143
|
"default": "./dist/icons/flag.js"
|
|
136
144
|
},
|
|
145
|
+
"./icons/github": {
|
|
146
|
+
"types": "./types/icons/github.d.ts",
|
|
147
|
+
"default": "./dist/icons/github.js"
|
|
148
|
+
},
|
|
137
149
|
"./icons/google": {
|
|
138
150
|
"types": "./types/icons/google.d.ts",
|
|
139
151
|
"default": "./dist/icons/google.js"
|
|
@@ -146,6 +158,10 @@
|
|
|
146
158
|
"types": "./types/icons/image.d.ts",
|
|
147
159
|
"default": "./dist/icons/image.js"
|
|
148
160
|
},
|
|
161
|
+
"./icons/instagram": {
|
|
162
|
+
"types": "./types/icons/instagram.d.ts",
|
|
163
|
+
"default": "./dist/icons/instagram.js"
|
|
164
|
+
},
|
|
149
165
|
"./icons/italic": {
|
|
150
166
|
"types": "./types/icons/italic.d.ts",
|
|
151
167
|
"default": "./dist/icons/italic.js"
|
|
@@ -154,6 +170,10 @@
|
|
|
154
170
|
"types": "./types/icons/link.d.ts",
|
|
155
171
|
"default": "./dist/icons/link.js"
|
|
156
172
|
},
|
|
173
|
+
"./icons/linkedin": {
|
|
174
|
+
"types": "./types/icons/linkedin.d.ts",
|
|
175
|
+
"default": "./dist/icons/linkedin.js"
|
|
176
|
+
},
|
|
157
177
|
"./icons/loader": {
|
|
158
178
|
"types": "./types/icons/loader.d.ts",
|
|
159
179
|
"default": "./dist/icons/loader.js"
|
|
@@ -194,6 +214,10 @@
|
|
|
194
214
|
"types": "./types/icons/pencil.d.ts",
|
|
195
215
|
"default": "./dist/icons/pencil.js"
|
|
196
216
|
},
|
|
217
|
+
"./icons/pinterest": {
|
|
218
|
+
"types": "./types/icons/pinterest.d.ts",
|
|
219
|
+
"default": "./dist/icons/pinterest.js"
|
|
220
|
+
},
|
|
197
221
|
"./icons/play": {
|
|
198
222
|
"types": "./types/icons/play.d.ts",
|
|
199
223
|
"default": "./dist/icons/play.js"
|
|
@@ -238,10 +262,22 @@
|
|
|
238
262
|
"types": "./types/icons/shop.d.ts",
|
|
239
263
|
"default": "./dist/icons/shop.js"
|
|
240
264
|
},
|
|
265
|
+
"./icons/snapchat": {
|
|
266
|
+
"types": "./types/icons/snapchat.d.ts",
|
|
267
|
+
"default": "./dist/icons/snapchat.js"
|
|
268
|
+
},
|
|
269
|
+
"./icons/social": {
|
|
270
|
+
"types": "./types/icons/social.d.ts",
|
|
271
|
+
"default": "./dist/icons/social.js"
|
|
272
|
+
},
|
|
241
273
|
"./icons/sparkles": {
|
|
242
274
|
"types": "./types/icons/sparkles.d.ts",
|
|
243
275
|
"default": "./dist/icons/sparkles.js"
|
|
244
276
|
},
|
|
277
|
+
"./icons/spotify": {
|
|
278
|
+
"types": "./types/icons/spotify.d.ts",
|
|
279
|
+
"default": "./dist/icons/spotify.js"
|
|
280
|
+
},
|
|
245
281
|
"./icons/star": {
|
|
246
282
|
"types": "./types/icons/star.d.ts",
|
|
247
283
|
"default": "./dist/icons/star.js"
|
|
@@ -250,6 +286,14 @@
|
|
|
250
286
|
"types": "./types/icons/switch.d.ts",
|
|
251
287
|
"default": "./dist/icons/switch.js"
|
|
252
288
|
},
|
|
289
|
+
"./icons/threads": {
|
|
290
|
+
"types": "./types/icons/threads.d.ts",
|
|
291
|
+
"default": "./dist/icons/threads.js"
|
|
292
|
+
},
|
|
293
|
+
"./icons/tiktok": {
|
|
294
|
+
"types": "./types/icons/tiktok.d.ts",
|
|
295
|
+
"default": "./dist/icons/tiktok.js"
|
|
296
|
+
},
|
|
253
297
|
"./icons/times": {
|
|
254
298
|
"types": "./types/icons/times.d.ts",
|
|
255
299
|
"default": "./dist/icons/times.js"
|
|
@@ -258,6 +302,10 @@
|
|
|
258
302
|
"types": "./types/icons/trash.d.ts",
|
|
259
303
|
"default": "./dist/icons/trash.js"
|
|
260
304
|
},
|
|
305
|
+
"./icons/twitch": {
|
|
306
|
+
"types": "./types/icons/twitch.d.ts",
|
|
307
|
+
"default": "./dist/icons/twitch.js"
|
|
308
|
+
},
|
|
261
309
|
"./icons/underline": {
|
|
262
310
|
"types": "./types/icons/underline.d.ts",
|
|
263
311
|
"default": "./dist/icons/underline.js"
|
|
@@ -274,6 +322,18 @@
|
|
|
274
322
|
"types": "./types/icons/warning.d.ts",
|
|
275
323
|
"default": "./dist/icons/warning.js"
|
|
276
324
|
},
|
|
325
|
+
"./icons/whatsapp": {
|
|
326
|
+
"types": "./types/icons/whatsapp.d.ts",
|
|
327
|
+
"default": "./dist/icons/whatsapp.js"
|
|
328
|
+
},
|
|
329
|
+
"./icons/x": {
|
|
330
|
+
"types": "./types/icons/x.d.ts",
|
|
331
|
+
"default": "./dist/icons/x.js"
|
|
332
|
+
},
|
|
333
|
+
"./icons/youtube": {
|
|
334
|
+
"types": "./types/icons/youtube.d.ts",
|
|
335
|
+
"default": "./dist/icons/youtube.js"
|
|
336
|
+
},
|
|
277
337
|
"./input-checkbox": {
|
|
278
338
|
"types": "./types/input-checkbox.d.ts",
|
|
279
339
|
"default": "./dist/input-checkbox.js"
|
|
@@ -355,7 +415,7 @@
|
|
|
355
415
|
"devDependencies": {
|
|
356
416
|
"@types/react": "18.0.0",
|
|
357
417
|
"tsup": "8.5.1",
|
|
358
|
-
"@drawbridge/drawbridge-agents": "0.1.
|
|
418
|
+
"@drawbridge/drawbridge-agents": "0.1.28"
|
|
359
419
|
},
|
|
360
420
|
"dependencies": {
|
|
361
421
|
"embla-carousel-fade": "8.6.0",
|