@genesislcap/foundation-zero 14.96.1 → 14.97.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/custom-elements.json +221 -282
- package/dist/dts/url-input/url-input.d.ts +2 -8
- package/dist/dts/url-input/url-input.d.ts.map +1 -1
- package/dist/dts/url-input/url-input.template.d.ts.map +1 -1
- package/dist/esm/url-input/url-input.js +5 -25
- package/dist/esm/url-input/url-input.template.js +3 -16
- package/package.json +7 -7
|
@@ -784,225 +784,6 @@
|
|
|
784
784
|
}
|
|
785
785
|
]
|
|
786
786
|
},
|
|
787
|
-
{
|
|
788
|
-
"kind": "javascript-module",
|
|
789
|
-
"path": "src/_config/index.ts",
|
|
790
|
-
"declarations": [],
|
|
791
|
-
"exports": [
|
|
792
|
-
{
|
|
793
|
-
"kind": "js",
|
|
794
|
-
"name": "*",
|
|
795
|
-
"declaration": {
|
|
796
|
-
"name": "*",
|
|
797
|
-
"package": "./styles"
|
|
798
|
-
}
|
|
799
|
-
},
|
|
800
|
-
{
|
|
801
|
-
"kind": "js",
|
|
802
|
-
"name": "*",
|
|
803
|
-
"declaration": {
|
|
804
|
-
"name": "*",
|
|
805
|
-
"package": "./tokens"
|
|
806
|
-
}
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
"kind": "js",
|
|
810
|
-
"name": "*",
|
|
811
|
-
"declaration": {
|
|
812
|
-
"name": "*",
|
|
813
|
-
"package": "./values"
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
]
|
|
817
|
-
},
|
|
818
|
-
{
|
|
819
|
-
"kind": "javascript-module",
|
|
820
|
-
"path": "src/accordion/accordion.stories.ts",
|
|
821
|
-
"declarations": [
|
|
822
|
-
{
|
|
823
|
-
"kind": "variable",
|
|
824
|
-
"name": "meta",
|
|
825
|
-
"type": {
|
|
826
|
-
"text": "Meta"
|
|
827
|
-
},
|
|
828
|
-
"default": "{\n title: 'Accordion',\n component: 'zero-accordion',\n}"
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
"kind": "variable",
|
|
832
|
-
"name": "Primary",
|
|
833
|
-
"type": {
|
|
834
|
-
"text": "StoryObj"
|
|
835
|
-
},
|
|
836
|
-
"default": "{\n render: () => html`\n <zero-accordion>\n <zero-accordion-item slot=\"item\" id=\"accordion-1\">\n Accordion one content\n <div slot=\"heading\">Accordion one</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-2\">\n Accordion two content\n <div slot=\"heading\">Accordion two</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-3\">\n Accordion three content\n <div slot=\"heading\">Accordion three</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-4\">\n Accordion four content\n <div slot=\"heading\">Accordion four</div>\n </zero-accordion-item>\n </zero-accordion>\n `,\n}"
|
|
837
|
-
}
|
|
838
|
-
],
|
|
839
|
-
"exports": [
|
|
840
|
-
{
|
|
841
|
-
"kind": "js",
|
|
842
|
-
"name": "default",
|
|
843
|
-
"declaration": {
|
|
844
|
-
"name": "meta",
|
|
845
|
-
"module": "src/accordion/accordion.stories.ts"
|
|
846
|
-
}
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
"kind": "js",
|
|
850
|
-
"name": "Primary",
|
|
851
|
-
"declaration": {
|
|
852
|
-
"name": "Primary",
|
|
853
|
-
"module": "src/accordion/accordion.stories.ts"
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
]
|
|
857
|
-
},
|
|
858
|
-
{
|
|
859
|
-
"kind": "javascript-module",
|
|
860
|
-
"path": "src/accordion/accordion.styles.ts",
|
|
861
|
-
"declarations": [
|
|
862
|
-
{
|
|
863
|
-
"kind": "function",
|
|
864
|
-
"name": "zeroAccordionStyles",
|
|
865
|
-
"return": {
|
|
866
|
-
"type": {
|
|
867
|
-
"text": "ElementStyles"
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
"parameters": [
|
|
871
|
-
{
|
|
872
|
-
"name": "context",
|
|
873
|
-
"type": {
|
|
874
|
-
"text": "ElementDefinitionContext"
|
|
875
|
-
}
|
|
876
|
-
},
|
|
877
|
-
{
|
|
878
|
-
"name": "definition",
|
|
879
|
-
"type": {
|
|
880
|
-
"text": "FoundationElementDefinition"
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
]
|
|
884
|
-
}
|
|
885
|
-
],
|
|
886
|
-
"exports": [
|
|
887
|
-
{
|
|
888
|
-
"kind": "js",
|
|
889
|
-
"name": "zeroAccordionStyles",
|
|
890
|
-
"declaration": {
|
|
891
|
-
"name": "zeroAccordionStyles",
|
|
892
|
-
"module": "src/accordion/accordion.styles.ts"
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
]
|
|
896
|
-
},
|
|
897
|
-
{
|
|
898
|
-
"kind": "javascript-module",
|
|
899
|
-
"path": "src/accordion/accordion.template.ts",
|
|
900
|
-
"declarations": [
|
|
901
|
-
{
|
|
902
|
-
"kind": "function",
|
|
903
|
-
"name": "zeroAccordionTemplate",
|
|
904
|
-
"return": {
|
|
905
|
-
"type": {
|
|
906
|
-
"text": "ViewTemplate<Accordion>"
|
|
907
|
-
}
|
|
908
|
-
},
|
|
909
|
-
"parameters": [
|
|
910
|
-
{
|
|
911
|
-
"name": "context",
|
|
912
|
-
"type": {
|
|
913
|
-
"text": "ElementDefinitionContext"
|
|
914
|
-
}
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
"name": "definition",
|
|
918
|
-
"type": {
|
|
919
|
-
"text": "FoundationElementDefinition"
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
]
|
|
923
|
-
}
|
|
924
|
-
],
|
|
925
|
-
"exports": [
|
|
926
|
-
{
|
|
927
|
-
"kind": "js",
|
|
928
|
-
"name": "zeroAccordionTemplate",
|
|
929
|
-
"declaration": {
|
|
930
|
-
"name": "zeroAccordionTemplate",
|
|
931
|
-
"module": "src/accordion/accordion.template.ts"
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
]
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
"kind": "javascript-module",
|
|
938
|
-
"path": "src/accordion/accordion.ts",
|
|
939
|
-
"declarations": [
|
|
940
|
-
{
|
|
941
|
-
"kind": "class",
|
|
942
|
-
"description": "",
|
|
943
|
-
"name": "Accordion",
|
|
944
|
-
"superclass": {
|
|
945
|
-
"name": "FoundationAccordion",
|
|
946
|
-
"package": "@genesislcap/foundation-ui"
|
|
947
|
-
},
|
|
948
|
-
"tagName": "%%prefix%%-card",
|
|
949
|
-
"customElement": true
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
"kind": "variable",
|
|
953
|
-
"name": "zeroAccordion"
|
|
954
|
-
}
|
|
955
|
-
],
|
|
956
|
-
"exports": [
|
|
957
|
-
{
|
|
958
|
-
"kind": "js",
|
|
959
|
-
"name": "Accordion",
|
|
960
|
-
"declaration": {
|
|
961
|
-
"name": "Accordion",
|
|
962
|
-
"module": "src/accordion/accordion.ts"
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"kind": "js",
|
|
967
|
-
"name": "zeroAccordion",
|
|
968
|
-
"declaration": {
|
|
969
|
-
"name": "zeroAccordion",
|
|
970
|
-
"module": "src/accordion/accordion.ts"
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
]
|
|
974
|
-
},
|
|
975
|
-
{
|
|
976
|
-
"kind": "javascript-module",
|
|
977
|
-
"path": "src/accordion/index.ts",
|
|
978
|
-
"declarations": [],
|
|
979
|
-
"exports": [
|
|
980
|
-
{
|
|
981
|
-
"kind": "js",
|
|
982
|
-
"name": "*",
|
|
983
|
-
"declaration": {
|
|
984
|
-
"name": "*",
|
|
985
|
-
"package": "./accordion"
|
|
986
|
-
}
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
"kind": "js",
|
|
990
|
-
"name": "*",
|
|
991
|
-
"declaration": {
|
|
992
|
-
"name": "*",
|
|
993
|
-
"package": "./accordion.styles"
|
|
994
|
-
}
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
"kind": "js",
|
|
998
|
-
"name": "*",
|
|
999
|
-
"declaration": {
|
|
1000
|
-
"name": "*",
|
|
1001
|
-
"package": "./accordion.template"
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
]
|
|
1005
|
-
},
|
|
1006
787
|
{
|
|
1007
788
|
"kind": "javascript-module",
|
|
1008
789
|
"path": "src/accordion-item/accordion-item.styles.ts",
|
|
@@ -1423,6 +1204,194 @@
|
|
|
1423
1204
|
}
|
|
1424
1205
|
]
|
|
1425
1206
|
},
|
|
1207
|
+
{
|
|
1208
|
+
"kind": "javascript-module",
|
|
1209
|
+
"path": "src/accordion/accordion.stories.ts",
|
|
1210
|
+
"declarations": [
|
|
1211
|
+
{
|
|
1212
|
+
"kind": "variable",
|
|
1213
|
+
"name": "meta",
|
|
1214
|
+
"type": {
|
|
1215
|
+
"text": "Meta"
|
|
1216
|
+
},
|
|
1217
|
+
"default": "{\n title: 'Accordion',\n component: 'zero-accordion',\n}"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"kind": "variable",
|
|
1221
|
+
"name": "Primary",
|
|
1222
|
+
"type": {
|
|
1223
|
+
"text": "StoryObj"
|
|
1224
|
+
},
|
|
1225
|
+
"default": "{\n render: () => html`\n <zero-accordion>\n <zero-accordion-item slot=\"item\" id=\"accordion-1\">\n Accordion one content\n <div slot=\"heading\">Accordion one</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-2\">\n Accordion two content\n <div slot=\"heading\">Accordion two</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-3\">\n Accordion three content\n <div slot=\"heading\">Accordion three</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-4\">\n Accordion four content\n <div slot=\"heading\">Accordion four</div>\n </zero-accordion-item>\n </zero-accordion>\n `,\n}"
|
|
1226
|
+
}
|
|
1227
|
+
],
|
|
1228
|
+
"exports": [
|
|
1229
|
+
{
|
|
1230
|
+
"kind": "js",
|
|
1231
|
+
"name": "default",
|
|
1232
|
+
"declaration": {
|
|
1233
|
+
"name": "meta",
|
|
1234
|
+
"module": "src/accordion/accordion.stories.ts"
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"kind": "js",
|
|
1239
|
+
"name": "Primary",
|
|
1240
|
+
"declaration": {
|
|
1241
|
+
"name": "Primary",
|
|
1242
|
+
"module": "src/accordion/accordion.stories.ts"
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
]
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"kind": "javascript-module",
|
|
1249
|
+
"path": "src/accordion/accordion.styles.ts",
|
|
1250
|
+
"declarations": [
|
|
1251
|
+
{
|
|
1252
|
+
"kind": "function",
|
|
1253
|
+
"name": "zeroAccordionStyles",
|
|
1254
|
+
"return": {
|
|
1255
|
+
"type": {
|
|
1256
|
+
"text": "ElementStyles"
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
"parameters": [
|
|
1260
|
+
{
|
|
1261
|
+
"name": "context",
|
|
1262
|
+
"type": {
|
|
1263
|
+
"text": "ElementDefinitionContext"
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"name": "definition",
|
|
1268
|
+
"type": {
|
|
1269
|
+
"text": "FoundationElementDefinition"
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
]
|
|
1273
|
+
}
|
|
1274
|
+
],
|
|
1275
|
+
"exports": [
|
|
1276
|
+
{
|
|
1277
|
+
"kind": "js",
|
|
1278
|
+
"name": "zeroAccordionStyles",
|
|
1279
|
+
"declaration": {
|
|
1280
|
+
"name": "zeroAccordionStyles",
|
|
1281
|
+
"module": "src/accordion/accordion.styles.ts"
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
]
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"kind": "javascript-module",
|
|
1288
|
+
"path": "src/accordion/accordion.template.ts",
|
|
1289
|
+
"declarations": [
|
|
1290
|
+
{
|
|
1291
|
+
"kind": "function",
|
|
1292
|
+
"name": "zeroAccordionTemplate",
|
|
1293
|
+
"return": {
|
|
1294
|
+
"type": {
|
|
1295
|
+
"text": "ViewTemplate<Accordion>"
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
"parameters": [
|
|
1299
|
+
{
|
|
1300
|
+
"name": "context",
|
|
1301
|
+
"type": {
|
|
1302
|
+
"text": "ElementDefinitionContext"
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"name": "definition",
|
|
1307
|
+
"type": {
|
|
1308
|
+
"text": "FoundationElementDefinition"
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
]
|
|
1312
|
+
}
|
|
1313
|
+
],
|
|
1314
|
+
"exports": [
|
|
1315
|
+
{
|
|
1316
|
+
"kind": "js",
|
|
1317
|
+
"name": "zeroAccordionTemplate",
|
|
1318
|
+
"declaration": {
|
|
1319
|
+
"name": "zeroAccordionTemplate",
|
|
1320
|
+
"module": "src/accordion/accordion.template.ts"
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
]
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"kind": "javascript-module",
|
|
1327
|
+
"path": "src/accordion/accordion.ts",
|
|
1328
|
+
"declarations": [
|
|
1329
|
+
{
|
|
1330
|
+
"kind": "class",
|
|
1331
|
+
"description": "",
|
|
1332
|
+
"name": "Accordion",
|
|
1333
|
+
"superclass": {
|
|
1334
|
+
"name": "FoundationAccordion",
|
|
1335
|
+
"package": "@genesislcap/foundation-ui"
|
|
1336
|
+
},
|
|
1337
|
+
"tagName": "%%prefix%%-card",
|
|
1338
|
+
"customElement": true
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"kind": "variable",
|
|
1342
|
+
"name": "zeroAccordion"
|
|
1343
|
+
}
|
|
1344
|
+
],
|
|
1345
|
+
"exports": [
|
|
1346
|
+
{
|
|
1347
|
+
"kind": "js",
|
|
1348
|
+
"name": "Accordion",
|
|
1349
|
+
"declaration": {
|
|
1350
|
+
"name": "Accordion",
|
|
1351
|
+
"module": "src/accordion/accordion.ts"
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"kind": "js",
|
|
1356
|
+
"name": "zeroAccordion",
|
|
1357
|
+
"declaration": {
|
|
1358
|
+
"name": "zeroAccordion",
|
|
1359
|
+
"module": "src/accordion/accordion.ts"
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
]
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"kind": "javascript-module",
|
|
1366
|
+
"path": "src/accordion/index.ts",
|
|
1367
|
+
"declarations": [],
|
|
1368
|
+
"exports": [
|
|
1369
|
+
{
|
|
1370
|
+
"kind": "js",
|
|
1371
|
+
"name": "*",
|
|
1372
|
+
"declaration": {
|
|
1373
|
+
"name": "*",
|
|
1374
|
+
"package": "./accordion"
|
|
1375
|
+
}
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"kind": "js",
|
|
1379
|
+
"name": "*",
|
|
1380
|
+
"declaration": {
|
|
1381
|
+
"name": "*",
|
|
1382
|
+
"package": "./accordion.styles"
|
|
1383
|
+
}
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
"kind": "js",
|
|
1387
|
+
"name": "*",
|
|
1388
|
+
"declaration": {
|
|
1389
|
+
"name": "*",
|
|
1390
|
+
"package": "./accordion.template"
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
]
|
|
1394
|
+
},
|
|
1426
1395
|
{
|
|
1427
1396
|
"kind": "javascript-module",
|
|
1428
1397
|
"path": "src/anchor/anchor.stories.ts",
|
|
@@ -1611,6 +1580,37 @@
|
|
|
1611
1580
|
}
|
|
1612
1581
|
]
|
|
1613
1582
|
},
|
|
1583
|
+
{
|
|
1584
|
+
"kind": "javascript-module",
|
|
1585
|
+
"path": "src/_config/index.ts",
|
|
1586
|
+
"declarations": [],
|
|
1587
|
+
"exports": [
|
|
1588
|
+
{
|
|
1589
|
+
"kind": "js",
|
|
1590
|
+
"name": "*",
|
|
1591
|
+
"declaration": {
|
|
1592
|
+
"name": "*",
|
|
1593
|
+
"package": "./styles"
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"kind": "js",
|
|
1598
|
+
"name": "*",
|
|
1599
|
+
"declaration": {
|
|
1600
|
+
"name": "*",
|
|
1601
|
+
"package": "./tokens"
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
"kind": "js",
|
|
1606
|
+
"name": "*",
|
|
1607
|
+
"declaration": {
|
|
1608
|
+
"name": "*",
|
|
1609
|
+
"package": "./values"
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
]
|
|
1613
|
+
},
|
|
1614
1614
|
{
|
|
1615
1615
|
"kind": "javascript-module",
|
|
1616
1616
|
"path": "src/anchored-region/anchored-region.stories.ts",
|
|
@@ -14946,7 +14946,7 @@
|
|
|
14946
14946
|
{
|
|
14947
14947
|
"kind": "variable",
|
|
14948
14948
|
"name": "zeroUrlInputTemplate",
|
|
14949
|
-
"default": "html<UrlInput>`\n
|
|
14949
|
+
"default": "html<UrlInput>`\n ${getPrefixedUrlInput('zero')}\n`"
|
|
14950
14950
|
}
|
|
14951
14951
|
],
|
|
14952
14952
|
"exports": [
|
|
@@ -14968,58 +14968,13 @@
|
|
|
14968
14968
|
"kind": "class",
|
|
14969
14969
|
"description": "",
|
|
14970
14970
|
"name": "UrlInput",
|
|
14971
|
-
"members": [
|
|
14972
|
-
{
|
|
14973
|
-
"kind": "field",
|
|
14974
|
-
"name": "value",
|
|
14975
|
-
"type": {
|
|
14976
|
-
"text": "string"
|
|
14977
|
-
},
|
|
14978
|
-
"default": "''"
|
|
14979
|
-
},
|
|
14980
|
-
{
|
|
14981
|
-
"kind": "field",
|
|
14982
|
-
"name": "focused",
|
|
14983
|
-
"type": {
|
|
14984
|
-
"text": "boolean"
|
|
14985
|
-
}
|
|
14986
|
-
},
|
|
14987
|
-
{
|
|
14988
|
-
"kind": "method",
|
|
14989
|
-
"name": "saveUrl",
|
|
14990
|
-
"privacy": "public",
|
|
14991
|
-
"parameters": [
|
|
14992
|
-
{
|
|
14993
|
-
"name": "url",
|
|
14994
|
-
"type": {
|
|
14995
|
-
"text": "string"
|
|
14996
|
-
}
|
|
14997
|
-
}
|
|
14998
|
-
]
|
|
14999
|
-
},
|
|
15000
|
-
{
|
|
15001
|
-
"kind": "method",
|
|
15002
|
-
"name": "focus",
|
|
15003
|
-
"privacy": "public"
|
|
15004
|
-
}
|
|
15005
|
-
],
|
|
15006
14971
|
"superclass": {
|
|
15007
|
-
"name": "
|
|
14972
|
+
"name": "FoundationUrlInput",
|
|
15008
14973
|
"package": "@genesislcap/foundation-ui"
|
|
15009
14974
|
},
|
|
15010
14975
|
"tagName": "%%prefix%%-url-input",
|
|
15011
14976
|
"customElement": true
|
|
15012
14977
|
},
|
|
15013
|
-
{
|
|
15014
|
-
"kind": "variable",
|
|
15015
|
-
"name": "defaultUrlInputConfig",
|
|
15016
|
-
"default": "foundationUrlInputConfig"
|
|
15017
|
-
},
|
|
15018
|
-
{
|
|
15019
|
-
"kind": "variable",
|
|
15020
|
-
"name": "zeroUrlInputShadowOptions",
|
|
15021
|
-
"default": "foundationUrlInputShadowOptions"
|
|
15022
|
-
},
|
|
15023
14978
|
{
|
|
15024
14979
|
"kind": "variable",
|
|
15025
14980
|
"name": "zeroUrlInput"
|
|
@@ -15034,22 +14989,6 @@
|
|
|
15034
14989
|
"module": "src/url-input/url-input.ts"
|
|
15035
14990
|
}
|
|
15036
14991
|
},
|
|
15037
|
-
{
|
|
15038
|
-
"kind": "js",
|
|
15039
|
-
"name": "defaultUrlInputConfig",
|
|
15040
|
-
"declaration": {
|
|
15041
|
-
"name": "defaultUrlInputConfig",
|
|
15042
|
-
"module": "src/url-input/url-input.ts"
|
|
15043
|
-
}
|
|
15044
|
-
},
|
|
15045
|
-
{
|
|
15046
|
-
"kind": "js",
|
|
15047
|
-
"name": "zeroUrlInputShadowOptions",
|
|
15048
|
-
"declaration": {
|
|
15049
|
-
"name": "zeroUrlInputShadowOptions",
|
|
15050
|
-
"module": "src/url-input/url-input.ts"
|
|
15051
|
-
}
|
|
15052
|
-
},
|
|
15053
14992
|
{
|
|
15054
14993
|
"kind": "js",
|
|
15055
14994
|
"name": "zeroUrlInput",
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UrlInput as FoundationUrlInput } from '@genesislcap/foundation-ui';
|
|
2
2
|
/**
|
|
3
3
|
* @tagname %%prefix%%-url-input
|
|
4
4
|
*/
|
|
5
|
-
export declare class UrlInput extends
|
|
6
|
-
value: string;
|
|
7
|
-
focused: boolean;
|
|
8
|
-
saveUrl(url: string): void;
|
|
9
|
-
focus(): void;
|
|
5
|
+
export declare class UrlInput extends FoundationUrlInput {
|
|
10
6
|
}
|
|
11
|
-
export declare const defaultUrlInputConfig: {};
|
|
12
|
-
export declare const zeroUrlInputShadowOptions: ShadowRootInit;
|
|
13
7
|
export declare const zeroUrlInput: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof UrlInput>;
|
|
14
8
|
//# sourceMappingURL=url-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url-input.d.ts","sourceRoot":"","sources":["../../../src/url-input/url-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,
|
|
1
|
+
{"version":3,"file":"url-input.d.ts","sourceRoot":"","sources":["../../../src/url-input/url-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,IAAI,kBAAkB,EAC/B,MAAM,4BAA4B,CAAC;AAIpC;;GAEG;AACH,qBAAa,QAAS,SAAQ,kBAAkB;CAAG;AAEnD,eAAO,MAAM,YAAY,wTAMvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url-input.template.d.ts","sourceRoot":"","sources":["../../../src/url-input/url-input.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"url-input.template.d.ts","sourceRoot":"","sources":["../../../src/url-input/url-input.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,eAAO,MAAM,oBAAoB,+DAEhC,CAAC"}
|
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defaultUrlInputConfig as foundationUrlInputConfig, foundationUrlInputShadowOptions, TextField as FoundationTextField, } from '@genesislcap/foundation-ui';
|
|
3
|
-
import { observable } from '@microsoft/fast-element';
|
|
1
|
+
import { defaultUrlInputConfig as foundationUrlInputConfig, foundationUrlInputShadowOptions, UrlInput as FoundationUrlInput, } from '@genesislcap/foundation-ui';
|
|
4
2
|
import { zeroUrlInputStyles as styles } from './url-input.styles';
|
|
5
|
-
import { zeroUrlInputTemplate } from './url-input.template';
|
|
3
|
+
import { zeroUrlInputTemplate as template } from './url-input.template';
|
|
6
4
|
/**
|
|
7
5
|
* @tagname %%prefix%%-url-input
|
|
8
6
|
*/
|
|
9
|
-
export class UrlInput extends
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.value = '';
|
|
13
|
-
}
|
|
14
|
-
saveUrl(url) {
|
|
15
|
-
this.value = url.startsWith('http') ? url : 'https://' + url;
|
|
16
|
-
this.focused = false;
|
|
17
|
-
}
|
|
18
|
-
focus() {
|
|
19
|
-
this.focused = true;
|
|
20
|
-
}
|
|
7
|
+
export class UrlInput extends FoundationUrlInput {
|
|
21
8
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
], UrlInput.prototype, "value", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
observable
|
|
27
|
-
], UrlInput.prototype, "focused", void 0);
|
|
28
|
-
export const defaultUrlInputConfig = foundationUrlInputConfig;
|
|
29
|
-
export const zeroUrlInputShadowOptions = foundationUrlInputShadowOptions;
|
|
30
|
-
export const zeroUrlInput = UrlInput.compose(Object.assign({ baseName: 'url-input', template: zeroUrlInputTemplate, styles, shadowOptions: foundationUrlInputShadowOptions }, foundationUrlInputConfig));
|
|
9
|
+
export const zeroUrlInput = UrlInput.compose(Object.assign({ baseName: 'url-input', template,
|
|
10
|
+
styles, shadowOptions: foundationUrlInputShadowOptions }, foundationUrlInputConfig));
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPrefixedUrlInput } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { html } from '@microsoft/fast-element';
|
|
2
3
|
export const zeroUrlInputTemplate = html `
|
|
3
|
-
|
|
4
|
-
<zero-text-field
|
|
5
|
-
class="url-input"
|
|
6
|
-
required
|
|
7
|
-
type="url"
|
|
8
|
-
:value=${(x) => (x.focused && !x.readOnly ? x.value : '')}
|
|
9
|
-
@blur=${(x, c) => { var _a; return (!x.readOnly ? x.saveUrl((_a = c.event) === null || _a === void 0 ? void 0 : _a.target['value']) : ''); }}
|
|
10
|
-
@focus=${(x) => x.focus()}
|
|
11
|
-
:readOnly=${(x) => x.readOnly}
|
|
12
|
-
}
|
|
13
|
-
></zero-text-field>
|
|
14
|
-
${when((x) => x.readOnly || !x.focused, html `
|
|
15
|
-
<a class="url-input-link" href=${(x) => x.value} target="_blank">${(x) => x.value}</a>
|
|
16
|
-
`)}
|
|
17
|
-
</div>
|
|
4
|
+
${getPrefixedUrlInput('zero')}
|
|
18
5
|
`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-zero",
|
|
3
3
|
"description": "Genesis Foundation Zero Design System",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.97.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"storybook": "storybook dev -p 6006"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@genesislcap/genx": "14.
|
|
68
|
+
"@genesislcap/genx": "14.97.0",
|
|
69
69
|
"@storybook/addon-essentials": "^7.1.0",
|
|
70
70
|
"@storybook/addon-links": "^7.1.0",
|
|
71
71
|
"@storybook/addons": "^7.1.0",
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
"storybook": "^7.1.0"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@genesislcap/foundation-comms": "14.
|
|
82
|
-
"@genesislcap/foundation-logger": "14.
|
|
83
|
-
"@genesislcap/foundation-ui": "14.
|
|
84
|
-
"@genesislcap/foundation-utils": "14.
|
|
81
|
+
"@genesislcap/foundation-comms": "14.97.0",
|
|
82
|
+
"@genesislcap/foundation-logger": "14.97.0",
|
|
83
|
+
"@genesislcap/foundation-ui": "14.97.0",
|
|
84
|
+
"@genesislcap/foundation-utils": "14.97.0",
|
|
85
85
|
"@microsoft/fast-colors": "^5.1.4",
|
|
86
86
|
"@microsoft/fast-components": "^2.21.3",
|
|
87
87
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"access": "public"
|
|
99
99
|
},
|
|
100
100
|
"customElements": "dist/custom-elements.json",
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "8a8a410a437d11bd1ada9d540411d3701f1382e5"
|
|
102
102
|
}
|