@thenamespace/ens-components 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +29 -16
- package/dist/index.js.map +1 -1
- package/dist/types/components/atoms/icon/Icon.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ interface TextProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
112
112
|
}
|
|
113
113
|
declare const Text: React$1.FC<TextProps>;
|
|
114
114
|
|
|
115
|
-
type IconName = "person" | "x" | "search" | "square-user" | "globe" | "pin" | "box" | "book" | "map-pin" | "mail" | "discord" | "github" | "telegram" | "youtube" | "image" | "circle-person" | "twitter" | "circle-alert" | "check-circle" | "alert-triangle" | "info" | "x-circle" | "rotate-circle" | "logout" | "edit" | "copy" | "clock";
|
|
115
|
+
type IconName = "person" | "x" | "search" | "square-user" | "globe" | "pin" | "box" | "book" | "map-pin" | "mail" | "discord" | "github" | "telegram" | "youtube" | "image" | "circle-person" | "twitter" | "circle-alert" | "check-circle" | "alert-triangle" | "info" | "x-circle" | "rotate-circle" | "logout" | "edit" | "copy" | "clock" | "image" | "xSocial";
|
|
116
116
|
interface IconProps {
|
|
117
117
|
name: IconName;
|
|
118
118
|
color?: string;
|
package/dist/index.js
CHANGED
|
@@ -713,7 +713,8 @@ const icons$1 = {
|
|
|
713
713
|
logout: LogOut,
|
|
714
714
|
edit: SquarePen,
|
|
715
715
|
copy: Copy,
|
|
716
|
-
clock: Clock
|
|
716
|
+
clock: Clock,
|
|
717
|
+
xSocial: XIcon
|
|
717
718
|
};
|
|
718
719
|
const Icon = ({
|
|
719
720
|
name,
|
|
@@ -11314,76 +11315,88 @@ var TextRecordCategory = /* @__PURE__ */ ((TextRecordCategory2) => {
|
|
|
11314
11315
|
})(TextRecordCategory || {});
|
|
11315
11316
|
const supportedTexts = [
|
|
11316
11317
|
{
|
|
11317
|
-
icon: "
|
|
11318
|
+
icon: "image",
|
|
11318
11319
|
key: "avatar",
|
|
11319
11320
|
category: "image" /* Image */,
|
|
11320
|
-
label: "Avatar"
|
|
11321
|
+
label: "Avatar",
|
|
11322
|
+
placeholder: "Your avatar image url..."
|
|
11321
11323
|
},
|
|
11322
11324
|
{
|
|
11323
|
-
icon: "
|
|
11325
|
+
icon: "image",
|
|
11324
11326
|
key: "header",
|
|
11325
11327
|
category: "image" /* Image */,
|
|
11326
|
-
label: "Header"
|
|
11328
|
+
label: "Header",
|
|
11329
|
+
placeholder: "Your header image url..."
|
|
11327
11330
|
},
|
|
11328
11331
|
{
|
|
11329
11332
|
icon: "person",
|
|
11330
11333
|
key: "name",
|
|
11331
11334
|
category: "general" /* General */,
|
|
11332
|
-
label: "Nickname"
|
|
11335
|
+
label: "Nickname",
|
|
11336
|
+
placeholder: "e.g. John"
|
|
11333
11337
|
},
|
|
11334
11338
|
{
|
|
11335
11339
|
icon: "book",
|
|
11336
11340
|
key: "description",
|
|
11337
11341
|
category: "general" /* General */,
|
|
11338
|
-
label: "Short bio"
|
|
11342
|
+
label: "Short bio",
|
|
11343
|
+
placeholder: "e.g. john"
|
|
11339
11344
|
},
|
|
11340
11345
|
{
|
|
11341
11346
|
icon: "globe",
|
|
11342
11347
|
key: "url",
|
|
11343
11348
|
category: "general" /* General */,
|
|
11344
|
-
label: "Website"
|
|
11349
|
+
label: "Website",
|
|
11350
|
+
placeholder: "e.g. https://celo.org"
|
|
11345
11351
|
},
|
|
11346
11352
|
{
|
|
11347
11353
|
icon: "map-pin",
|
|
11348
11354
|
key: "location",
|
|
11349
11355
|
category: "general" /* General */,
|
|
11350
|
-
label: "Location"
|
|
11356
|
+
label: "Location",
|
|
11357
|
+
placeholder: "e.g. Jupiter"
|
|
11351
11358
|
},
|
|
11352
11359
|
{
|
|
11353
11360
|
icon: "mail",
|
|
11354
11361
|
key: "mail",
|
|
11355
11362
|
category: "general" /* General */,
|
|
11356
|
-
label: "E-Mail"
|
|
11363
|
+
label: "E-Mail",
|
|
11364
|
+
placeholder: "e.g. example@email.com"
|
|
11357
11365
|
},
|
|
11358
11366
|
{
|
|
11359
|
-
icon: "
|
|
11367
|
+
icon: "xSocial",
|
|
11360
11368
|
key: "com.twitter",
|
|
11361
11369
|
category: "social" /* Social */,
|
|
11362
|
-
label: "Twitter"
|
|
11370
|
+
label: "Twitter",
|
|
11371
|
+
placeholder: "e.g. celonames"
|
|
11363
11372
|
},
|
|
11364
11373
|
{
|
|
11365
11374
|
icon: "discord",
|
|
11366
11375
|
key: "com.discord",
|
|
11367
11376
|
category: "social" /* Social */,
|
|
11368
|
-
label: "Discord"
|
|
11377
|
+
label: "Discord",
|
|
11378
|
+
placeholder: "e.g. celonames"
|
|
11369
11379
|
},
|
|
11370
11380
|
{
|
|
11371
11381
|
icon: "github",
|
|
11372
11382
|
key: "com.github",
|
|
11373
11383
|
category: "social" /* Social */,
|
|
11374
|
-
label: "Github"
|
|
11384
|
+
label: "Github",
|
|
11385
|
+
placeholder: "e.g. celonames"
|
|
11375
11386
|
},
|
|
11376
11387
|
{
|
|
11377
11388
|
icon: "telegram",
|
|
11378
11389
|
key: "org.telegram",
|
|
11379
11390
|
category: "social" /* Social */,
|
|
11380
|
-
label: "Telegram"
|
|
11391
|
+
label: "Telegram",
|
|
11392
|
+
placeholder: "e.g. celonames"
|
|
11381
11393
|
},
|
|
11382
11394
|
{
|
|
11383
11395
|
icon: "youtube",
|
|
11384
11396
|
key: "com.youtube",
|
|
11385
11397
|
category: "social" /* Social */,
|
|
11386
|
-
label: "Youtube"
|
|
11398
|
+
label: "Youtube",
|
|
11399
|
+
placeholder: "e.g. celonames"
|
|
11387
11400
|
}
|
|
11388
11401
|
];
|
|
11389
11402
|
const getSupportedText = (key) => {
|