@symbo.ls/uikit 2.11.143 → 2.11.147
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.cjs.js +156 -148
- package/dist/index.cjs.js.map +3 -3
- package/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -4844,6 +4844,7 @@ var require_create = __commonJS({
|
|
|
4844
4844
|
var import_inherit = require_inherit();
|
|
4845
4845
|
var createState = function(element, parent, options) {
|
|
4846
4846
|
element.state = applyInitialState(element, parent, options);
|
|
4847
|
+
return element.state;
|
|
4847
4848
|
};
|
|
4848
4849
|
var applyInitialState = function(element, parent, options) {
|
|
4849
4850
|
const objectizeState = checkForTypes(element);
|
|
@@ -4879,20 +4880,18 @@ var require_create = __commonJS({
|
|
|
4879
4880
|
if ((0, import_utils14.isFunction)(state)) {
|
|
4880
4881
|
ref.__state = state;
|
|
4881
4882
|
return (0, import_utils14.exec)(state, element);
|
|
4882
|
-
}
|
|
4883
|
-
if ((0, import_utils14.is)(state)("string", "number")) {
|
|
4883
|
+
} else if ((0, import_utils14.is)(state)("string", "number")) {
|
|
4884
4884
|
ref.__state = state;
|
|
4885
4885
|
return {};
|
|
4886
|
-
}
|
|
4887
|
-
if (state === true) {
|
|
4886
|
+
} else if (state === true) {
|
|
4888
4887
|
ref.__state = element.key;
|
|
4889
4888
|
return {};
|
|
4890
|
-
}
|
|
4891
|
-
if (state) {
|
|
4889
|
+
} else if (state) {
|
|
4892
4890
|
ref.__hasRootState = true;
|
|
4893
4891
|
return state;
|
|
4892
|
+
} else {
|
|
4893
|
+
return false;
|
|
4894
4894
|
}
|
|
4895
|
-
return false;
|
|
4896
4895
|
};
|
|
4897
4896
|
var addProtoToArray = (state, proto) => {
|
|
4898
4897
|
for (const key in proto) {
|
|
@@ -4933,8 +4932,9 @@ var require_create = __commonJS({
|
|
|
4933
4932
|
} else {
|
|
4934
4933
|
Object.setPrototypeOf(state, proto);
|
|
4935
4934
|
}
|
|
4936
|
-
if (state.parent && state.parent.__children)
|
|
4935
|
+
if (state.parent && state.parent.__children) {
|
|
4937
4936
|
state.parent.__children[element.key] = state;
|
|
4937
|
+
}
|
|
4938
4938
|
};
|
|
4939
4939
|
}
|
|
4940
4940
|
});
|
|
@@ -10001,7 +10001,13 @@ var keySetters = {
|
|
|
10001
10001
|
isSubtree ? result : result && result.selector,
|
|
10002
10002
|
element
|
|
10003
10003
|
),
|
|
10004
|
-
"&": (key, props6, result, element, isSubtree) =>
|
|
10004
|
+
"&": (key, props6, result, element, isSubtree) => applyAndProps(
|
|
10005
|
+
key,
|
|
10006
|
+
props6,
|
|
10007
|
+
isSubtree ? result : result && result.selector,
|
|
10008
|
+
element
|
|
10009
|
+
),
|
|
10010
|
+
">": (key, props6, result, element, isSubtree) => applyAndProps(
|
|
10005
10011
|
key,
|
|
10006
10012
|
props6,
|
|
10007
10013
|
isSubtree ? result : result && result.selector,
|
|
@@ -10077,7 +10083,7 @@ var applyMediaProps = (key, props6, result, element) => {
|
|
|
10077
10083
|
result[mediaKey] = generatedClass;
|
|
10078
10084
|
return result[mediaKey];
|
|
10079
10085
|
};
|
|
10080
|
-
var
|
|
10086
|
+
var applyAndProps = (key, props6, result, element) => {
|
|
10081
10087
|
result[key] = convertPropsToClass(props6, result, element);
|
|
10082
10088
|
return result[key];
|
|
10083
10089
|
};
|
|
@@ -10469,14 +10475,15 @@ var Shape = {
|
|
|
10469
10475
|
// Atoms/Text.js
|
|
10470
10476
|
var import_scratch8 = __toESM(require_cjs());
|
|
10471
10477
|
var Text = {
|
|
10472
|
-
|
|
10478
|
+
deps: { getFontSizeByKey: import_scratch8.getFontSizeByKey, getFontFamily: import_scratch8.getFontFamily },
|
|
10479
|
+
text: ({ key, props: props6, state, deps }) => {
|
|
10473
10480
|
if (props6.text === true)
|
|
10474
10481
|
return state && state[key] || props6 && props6[key];
|
|
10475
10482
|
return props6.text;
|
|
10476
10483
|
},
|
|
10477
10484
|
class: {
|
|
10478
|
-
fontSize: ({ props: props6 }) => props6.fontSize ?
|
|
10479
|
-
fontFamily: ({ props: props6 }) => props6.fontFamily && { fontFamily:
|
|
10485
|
+
fontSize: ({ props: props6, deps }) => props6.fontSize ? deps.getFontSizeByKey(props6.fontSize) : null,
|
|
10486
|
+
fontFamily: ({ props: props6, deps }) => props6.fontFamily && { fontFamily: deps.getFontFamily(props6.fontFamily) || props6.fontFamily },
|
|
10480
10487
|
lineHeight: ({ props: props6 }) => props6.lineHeight && { lineHeight: props6.lineHeight },
|
|
10481
10488
|
// lineHeight: ({ props }) => props.lineHeight && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
|
|
10482
10489
|
textDecoration: ({ props: props6 }) => props6.textDecoration && { textDecoration: props6.textDecoration },
|
|
@@ -11971,6 +11978,25 @@ var Circle = {
|
|
|
11971
11978
|
}
|
|
11972
11979
|
};
|
|
11973
11980
|
|
|
11981
|
+
// InfoSet/index.js
|
|
11982
|
+
var InfoSet = {
|
|
11983
|
+
extend: Flex,
|
|
11984
|
+
childExtend: Flex,
|
|
11985
|
+
props: {
|
|
11986
|
+
flow: "column",
|
|
11987
|
+
childProps: {
|
|
11988
|
+
title: {
|
|
11989
|
+
fontSize: "Z",
|
|
11990
|
+
fontWeight: "500"
|
|
11991
|
+
},
|
|
11992
|
+
subTitle: {
|
|
11993
|
+
fontSize: "Y",
|
|
11994
|
+
color: "#A3A3A8"
|
|
11995
|
+
}
|
|
11996
|
+
}
|
|
11997
|
+
}
|
|
11998
|
+
};
|
|
11999
|
+
|
|
11974
12000
|
// Icon/index.js
|
|
11975
12001
|
var Icon = {
|
|
11976
12002
|
extend: Svg,
|
|
@@ -12227,26 +12253,24 @@ var CheckMark = {
|
|
|
12227
12253
|
}
|
|
12228
12254
|
};
|
|
12229
12255
|
|
|
12230
|
-
//
|
|
12231
|
-
var
|
|
12232
|
-
extend:
|
|
12233
|
-
childExtend: Flex,
|
|
12256
|
+
// Label/index.js
|
|
12257
|
+
var Label = {
|
|
12258
|
+
extend: Button,
|
|
12234
12259
|
props: {
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
12260
|
+
theme: "tertiary",
|
|
12261
|
+
fontSize: "Z2",
|
|
12262
|
+
emoji: "\u{1F44D}",
|
|
12263
|
+
text: "3",
|
|
12264
|
+
padding: "X2 Z",
|
|
12265
|
+
round: "C",
|
|
12266
|
+
lineHeight: 1,
|
|
12267
|
+
gap: "X2",
|
|
12268
|
+
fontWeight: "500"
|
|
12269
|
+
},
|
|
12270
|
+
emoji: {
|
|
12271
|
+
props: ({ parent }) => ({ text: parent.props.emoji })
|
|
12246
12272
|
}
|
|
12247
12273
|
};
|
|
12248
|
-
|
|
12249
|
-
// Card/index.js
|
|
12250
12274
|
var CardLabel = {
|
|
12251
12275
|
props: {
|
|
12252
12276
|
text: "-2.902x",
|
|
@@ -12257,6 +12281,21 @@ var CardLabel = {
|
|
|
12257
12281
|
round: "Y"
|
|
12258
12282
|
}
|
|
12259
12283
|
};
|
|
12284
|
+
|
|
12285
|
+
// Avatar/index.js
|
|
12286
|
+
var Avatar = {
|
|
12287
|
+
extend: Img,
|
|
12288
|
+
props: {
|
|
12289
|
+
display: "block",
|
|
12290
|
+
avatarType: "initials",
|
|
12291
|
+
borderRadius: "100%",
|
|
12292
|
+
boxSize: "A+A",
|
|
12293
|
+
cursor: "pointer"
|
|
12294
|
+
},
|
|
12295
|
+
attr: {
|
|
12296
|
+
src: ({ key, props: props6 }) => props6.src || `https://avatars.dicebear.com/api/${props6.avatarType || "adventurer-neutral"}/${props6.key || key}.svg`
|
|
12297
|
+
}
|
|
12298
|
+
};
|
|
12260
12299
|
var DropDownWithAvatar = {
|
|
12261
12300
|
extend: Flex,
|
|
12262
12301
|
avatar: { extend: Avatar },
|
|
@@ -12290,104 +12329,6 @@ var DropDownWithAvatar = {
|
|
|
12290
12329
|
}
|
|
12291
12330
|
}
|
|
12292
12331
|
};
|
|
12293
|
-
var AmountWithLabel = {
|
|
12294
|
-
extend: Flex,
|
|
12295
|
-
amount: { props: { text: "240.59" } },
|
|
12296
|
-
label: {
|
|
12297
|
-
extend: CardLabel,
|
|
12298
|
-
props: { text: "-0.25%" }
|
|
12299
|
-
},
|
|
12300
|
-
props: {
|
|
12301
|
-
align: "center flex-start",
|
|
12302
|
-
gap: "Y+V",
|
|
12303
|
-
amount: {
|
|
12304
|
-
fontSize: `${20 / 16}em`,
|
|
12305
|
-
fontWeight: "700"
|
|
12306
|
-
}
|
|
12307
|
-
}
|
|
12308
|
-
};
|
|
12309
|
-
var Card = {
|
|
12310
|
-
extend: InfoSet,
|
|
12311
|
-
heading: {
|
|
12312
|
-
title: { props: { text: "Total crypto assets" } },
|
|
12313
|
-
icon: { extend: Icon, props: { name: "arrowUpRight" } }
|
|
12314
|
-
},
|
|
12315
|
-
content: {
|
|
12316
|
-
extend: AmountWithLabel,
|
|
12317
|
-
amount: { props: { text: "$ 12,759" } },
|
|
12318
|
-
label: { props: { text: "+ 8.8%" } }
|
|
12319
|
-
},
|
|
12320
|
-
footer: {
|
|
12321
|
-
subTitle: {
|
|
12322
|
-
extend: Flex,
|
|
12323
|
-
caption: { props: { text: "Last update:" } },
|
|
12324
|
-
span: { props: { text: "an hour ago" } }
|
|
12325
|
-
}
|
|
12326
|
-
},
|
|
12327
|
-
props: {
|
|
12328
|
-
minWidth: "G",
|
|
12329
|
-
maxWidth: "G",
|
|
12330
|
-
padding: "A",
|
|
12331
|
-
round: "Z+V",
|
|
12332
|
-
gap: "Y",
|
|
12333
|
-
style: { background: "linear-gradient(to right, rgba(4, 116, 242, 1), rgba(0, 48, 103, 1))" },
|
|
12334
|
-
childProps: {
|
|
12335
|
-
alignItems: "center",
|
|
12336
|
-
title: { fontWeight: "700" },
|
|
12337
|
-
icon: { fontSize: "C", color: "#A3A3A8" },
|
|
12338
|
-
amount: { fontSize: `${24 / 16}em` },
|
|
12339
|
-
label: { padding: "Y Z", background: "#04040466" },
|
|
12340
|
-
subTitle: {
|
|
12341
|
-
gap: "Y",
|
|
12342
|
-
caption: { color: "rgba(224, 224, 226, 1)" },
|
|
12343
|
-
span: { color: "rgba(233, 233, 234, 1)" }
|
|
12344
|
-
}
|
|
12345
|
-
},
|
|
12346
|
-
heading: { justifyContent: "space-between" },
|
|
12347
|
-
content: { gap: "Y" }
|
|
12348
|
-
}
|
|
12349
|
-
};
|
|
12350
|
-
var ConvertCard = {
|
|
12351
|
-
extend: Card,
|
|
12352
|
-
heading: {
|
|
12353
|
-
title: { props: { text: "From" } },
|
|
12354
|
-
balance: { extend: BalancesIndicator },
|
|
12355
|
-
icon: null
|
|
12356
|
-
},
|
|
12357
|
-
content: {
|
|
12358
|
-
amount: { props: { text: "0.00" } },
|
|
12359
|
-
label: null,
|
|
12360
|
-
currency: { extend: DropDownWithAvatar },
|
|
12361
|
-
props: { align: "center space-between" }
|
|
12362
|
-
},
|
|
12363
|
-
footer: null,
|
|
12364
|
-
props: {
|
|
12365
|
-
background: "rgba(28, 28, 31, .5)",
|
|
12366
|
-
gap: "A",
|
|
12367
|
-
childProps: {
|
|
12368
|
-
title: {
|
|
12369
|
-
color: "rgba(163, 163, 168, 1)",
|
|
12370
|
-
fontWeight: "400"
|
|
12371
|
-
},
|
|
12372
|
-
amount: { color: "rgba(163, 163, 168, 1)" }
|
|
12373
|
-
}
|
|
12374
|
-
}
|
|
12375
|
-
};
|
|
12376
|
-
|
|
12377
|
-
// Avatar/index.js
|
|
12378
|
-
var Avatar = {
|
|
12379
|
-
extend: Img,
|
|
12380
|
-
props: {
|
|
12381
|
-
display: "block",
|
|
12382
|
-
avatarType: "initials",
|
|
12383
|
-
borderRadius: "100%",
|
|
12384
|
-
boxSize: "A+A",
|
|
12385
|
-
cursor: "pointer"
|
|
12386
|
-
},
|
|
12387
|
-
attr: {
|
|
12388
|
-
src: ({ key, props: props6 }) => props6.src || `https://avatars.dicebear.com/api/${props6.avatarType || "adventurer-neutral"}/${props6.key || key}.svg`
|
|
12389
|
-
}
|
|
12390
|
-
};
|
|
12391
12332
|
var AvatarWithIndicator = {
|
|
12392
12333
|
avatar: { extend: Avatar },
|
|
12393
12334
|
indicator: { extend: IndicatorDot },
|
|
@@ -12433,6 +12374,7 @@ var AvatarChooser = {
|
|
|
12433
12374
|
},
|
|
12434
12375
|
select: {
|
|
12435
12376
|
props: {
|
|
12377
|
+
id: "avatar-chooser",
|
|
12436
12378
|
outline: "none",
|
|
12437
12379
|
pointerEvents: "all",
|
|
12438
12380
|
appearance: "none",
|
|
@@ -12446,7 +12388,7 @@ var AvatarChooser = {
|
|
|
12446
12388
|
margin: "0 0 0 -B1+X",
|
|
12447
12389
|
padding: "0 A 0 B1+X"
|
|
12448
12390
|
},
|
|
12449
|
-
attr: { name: "avatar-chooser"
|
|
12391
|
+
attr: { name: "avatar-chooser" },
|
|
12450
12392
|
childExtend: { tag: "option" },
|
|
12451
12393
|
$setPropsCollection: ({ parent }) => parent.props.options,
|
|
12452
12394
|
on: {
|
|
@@ -14452,25 +14394,6 @@ var UploadProgress = {
|
|
|
14452
14394
|
}
|
|
14453
14395
|
};
|
|
14454
14396
|
|
|
14455
|
-
// Label/index.js
|
|
14456
|
-
var Label = {
|
|
14457
|
-
extend: Button,
|
|
14458
|
-
props: {
|
|
14459
|
-
theme: "tertiary",
|
|
14460
|
-
fontSize: "Z2",
|
|
14461
|
-
emoji: "\u{1F44D}",
|
|
14462
|
-
text: "3",
|
|
14463
|
-
padding: "X2 Z",
|
|
14464
|
-
round: "C",
|
|
14465
|
-
lineHeight: 1,
|
|
14466
|
-
gap: "X2",
|
|
14467
|
-
fontWeight: "500"
|
|
14468
|
-
},
|
|
14469
|
-
emoji: {
|
|
14470
|
-
props: ({ parent }) => ({ text: parent.props.emoji })
|
|
14471
|
-
}
|
|
14472
|
-
};
|
|
14473
|
-
|
|
14474
14397
|
// Pills/index.js
|
|
14475
14398
|
var Pills = {
|
|
14476
14399
|
extend: Flex,
|
|
@@ -14850,6 +14773,91 @@ var ChatUserWithNotification = {
|
|
|
14850
14773
|
}
|
|
14851
14774
|
};
|
|
14852
14775
|
|
|
14776
|
+
// Card/index.js
|
|
14777
|
+
var AmountWithLabel = {
|
|
14778
|
+
extend: Flex,
|
|
14779
|
+
amount: { props: { text: "240.59" } },
|
|
14780
|
+
label: {
|
|
14781
|
+
extend: CardLabel,
|
|
14782
|
+
props: { text: "-0.25%" }
|
|
14783
|
+
},
|
|
14784
|
+
props: {
|
|
14785
|
+
align: "center flex-start",
|
|
14786
|
+
gap: "Y+V",
|
|
14787
|
+
amount: {
|
|
14788
|
+
fontSize: `${20 / 16}em`,
|
|
14789
|
+
fontWeight: "700"
|
|
14790
|
+
}
|
|
14791
|
+
}
|
|
14792
|
+
};
|
|
14793
|
+
var Card = {
|
|
14794
|
+
extend: InfoSet,
|
|
14795
|
+
heading: {
|
|
14796
|
+
title: { props: { text: "Total crypto assets" } },
|
|
14797
|
+
icon: { extend: Icon, props: { name: "arrowUpRight" } }
|
|
14798
|
+
},
|
|
14799
|
+
contentx: {
|
|
14800
|
+
extend: AmountWithLabel,
|
|
14801
|
+
amount: { props: { text: "$ 12,759" } },
|
|
14802
|
+
label: { props: { text: "+ 8.8%" } }
|
|
14803
|
+
},
|
|
14804
|
+
footer: {
|
|
14805
|
+
subTitle: {
|
|
14806
|
+
extend: Flex,
|
|
14807
|
+
caption: { props: { text: "Last update:" } },
|
|
14808
|
+
span: { props: { text: "an hour ago" } }
|
|
14809
|
+
}
|
|
14810
|
+
},
|
|
14811
|
+
props: {
|
|
14812
|
+
minWidth: "G",
|
|
14813
|
+
maxWidth: "G",
|
|
14814
|
+
padding: "A",
|
|
14815
|
+
round: "Z+V",
|
|
14816
|
+
gap: "Y",
|
|
14817
|
+
style: { background: "linear-gradient(to right, rgba(4, 116, 242, 1), rgba(0, 48, 103, 1))" },
|
|
14818
|
+
childProps: {
|
|
14819
|
+
alignItems: "center",
|
|
14820
|
+
title: { fontWeight: "700" },
|
|
14821
|
+
icon: { fontSize: "C", color: "#A3A3A8" },
|
|
14822
|
+
amount: { fontSize: `${24 / 16}em` },
|
|
14823
|
+
label: { padding: "Y Z", background: "#04040466" },
|
|
14824
|
+
subTitle: {
|
|
14825
|
+
gap: "Y",
|
|
14826
|
+
caption: { color: "rgba(224, 224, 226, 1)" },
|
|
14827
|
+
span: { color: "rgba(233, 233, 234, 1)" }
|
|
14828
|
+
}
|
|
14829
|
+
},
|
|
14830
|
+
heading: { justifyContent: "space-between" },
|
|
14831
|
+
content: { gap: "Y" }
|
|
14832
|
+
}
|
|
14833
|
+
};
|
|
14834
|
+
var ConvertCard = {
|
|
14835
|
+
extend: Card,
|
|
14836
|
+
heading: {
|
|
14837
|
+
title: { props: { text: "From" } },
|
|
14838
|
+
balance: { extend: BalancesIndicator },
|
|
14839
|
+
icon: null
|
|
14840
|
+
},
|
|
14841
|
+
content: {
|
|
14842
|
+
amount: { props: { text: "0.00" } },
|
|
14843
|
+
label: null,
|
|
14844
|
+
currency: { extend: DropDownWithAvatar },
|
|
14845
|
+
props: { align: "center space-between" }
|
|
14846
|
+
},
|
|
14847
|
+
footer: null,
|
|
14848
|
+
props: {
|
|
14849
|
+
background: "rgba(28, 28, 31, .5)",
|
|
14850
|
+
gap: "A",
|
|
14851
|
+
childProps: {
|
|
14852
|
+
title: {
|
|
14853
|
+
color: "rgba(163, 163, 168, 1)",
|
|
14854
|
+
fontWeight: "400"
|
|
14855
|
+
},
|
|
14856
|
+
amount: { color: "rgba(163, 163, 168, 1)" }
|
|
14857
|
+
}
|
|
14858
|
+
}
|
|
14859
|
+
};
|
|
14860
|
+
|
|
14853
14861
|
// IconTextWithNotification/index.js
|
|
14854
14862
|
var IconTextWithNotification = {
|
|
14855
14863
|
extend: Flex,
|