@govtechsg/sgds-web-component 3.21.2-rc.1 → 3.21.2-rc.2
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/components/ComboBox/index.umd.min.js +17 -9
- package/components/ComboBox/index.umd.min.js.map +1 -1
- package/components/ComboBox/sgds-combo-box.js +10 -2
- package/components/ComboBox/sgds-combo-box.js.map +1 -1
- package/components/Datepicker/datepicker-calendar.js +41 -30
- package/components/Datepicker/datepicker-calendar.js.map +1 -1
- package/components/Datepicker/datepicker-calendar2.js +1 -1
- package/components/Datepicker/datepicker-header.js +4 -3
- package/components/Datepicker/datepicker-header.js.map +1 -1
- package/components/Datepicker/index.umd.min.js +46 -35
- package/components/Datepicker/index.umd.min.js.map +1 -1
- package/components/Datepicker/sgds-datepicker.js +2 -2
- package/components/Datepicker/sgds-datepicker.js.map +1 -1
- package/components/Select/index.umd.min.js +10 -2
- package/components/Select/index.umd.min.js.map +1 -1
- package/components/Select/sgds-select.js +10 -2
- package/components/Select/sgds-select.js.map +1 -1
- package/components/index.umd.min.js +66 -39
- package/components/index.umd.min.js.map +1 -1
- package/css/fouc.css +1 -1
- package/custom-elements.json +645 -645
- package/index.umd.min.js +66 -39
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/components/ComboBox/sgds-combo-box.cjs.js +10 -2
- package/react/components/ComboBox/sgds-combo-box.cjs.js.map +1 -1
- package/react/components/ComboBox/sgds-combo-box.js +10 -2
- package/react/components/ComboBox/sgds-combo-box.js.map +1 -1
- package/react/components/Datepicker/datepicker-calendar.cjs.js +41 -30
- package/react/components/Datepicker/datepicker-calendar.cjs.js.map +1 -1
- package/react/components/Datepicker/datepicker-calendar.cjs2.js +1 -1
- package/react/components/Datepicker/datepicker-calendar.js +41 -30
- package/react/components/Datepicker/datepicker-calendar.js.map +1 -1
- package/react/components/Datepicker/datepicker-calendar2.js +1 -1
- package/react/components/Datepicker/datepicker-header.cjs.js +4 -3
- package/react/components/Datepicker/datepicker-header.cjs.js.map +1 -1
- package/react/components/Datepicker/datepicker-header.js +4 -3
- package/react/components/Datepicker/datepicker-header.js.map +1 -1
- package/react/components/Datepicker/sgds-datepicker.cjs.js +2 -2
- package/react/components/Datepicker/sgds-datepicker.cjs.js.map +1 -1
- package/react/components/Datepicker/sgds-datepicker.js +2 -2
- package/react/components/Datepicker/sgds-datepicker.js.map +1 -1
- package/react/components/Select/sgds-select.cjs.js +10 -2
- package/react/components/Select/sgds-select.cjs.js.map +1 -1
- package/react/components/Select/sgds-select.js +10 -2
- package/react/components/Select/sgds-select.js.map +1 -1
- package/react/index.cjs.js +6 -6
- package/react/index.d.ts +1 -1
- package/react/index.js +1 -1
- package/types/react.d.ts +16 -16
package/custom-elements.json
CHANGED
|
@@ -1214,441 +1214,207 @@
|
|
|
1214
1214
|
},
|
|
1215
1215
|
{
|
|
1216
1216
|
"kind": "javascript-module",
|
|
1217
|
-
"path": "src/components/
|
|
1217
|
+
"path": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
1218
1218
|
"declarations": [
|
|
1219
1219
|
{
|
|
1220
1220
|
"kind": "class",
|
|
1221
1221
|
"description": "",
|
|
1222
|
-
"name": "
|
|
1222
|
+
"name": "SgdsBreadcrumbItem",
|
|
1223
1223
|
"slots": [
|
|
1224
1224
|
{
|
|
1225
|
-
"description": "The
|
|
1225
|
+
"description": "The link of the item. Pass in anchor tags into this slot",
|
|
1226
1226
|
"name": "default"
|
|
1227
|
-
},
|
|
1228
|
-
{
|
|
1229
|
-
"description": "The slot for icon to the left of the button text",
|
|
1230
|
-
"name": "leftIcon"
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
"description": "The slot for icon to the right of the button text",
|
|
1234
|
-
"name": "rightIcon"
|
|
1235
1227
|
}
|
|
1236
1228
|
],
|
|
1237
1229
|
"members": [
|
|
1238
1230
|
{
|
|
1239
1231
|
"kind": "field",
|
|
1240
|
-
"name": "
|
|
1241
|
-
"type": {
|
|
1242
|
-
"text": "string"
|
|
1243
|
-
},
|
|
1244
|
-
"description": "The name of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
1245
|
-
"attribute": "name",
|
|
1246
|
-
"reflects": true
|
|
1247
|
-
},
|
|
1248
|
-
{
|
|
1249
|
-
"kind": "field",
|
|
1250
|
-
"name": "value",
|
|
1251
|
-
"type": {
|
|
1252
|
-
"text": "string"
|
|
1253
|
-
},
|
|
1254
|
-
"description": "The value of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
1255
|
-
"attribute": "value",
|
|
1256
|
-
"reflects": true
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
"kind": "field",
|
|
1260
|
-
"name": "type",
|
|
1261
|
-
"type": {
|
|
1262
|
-
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1263
|
-
},
|
|
1264
|
-
"default": "\"button\"",
|
|
1265
|
-
"description": "The behavior of the button with default as `type='button', `reset` resets all the controls to their initial values and `submit` submits the form data to the server",
|
|
1266
|
-
"attribute": "type",
|
|
1267
|
-
"reflects": true
|
|
1268
|
-
},
|
|
1269
|
-
{
|
|
1270
|
-
"kind": "field",
|
|
1271
|
-
"name": "form",
|
|
1232
|
+
"name": "dependencies",
|
|
1272
1233
|
"type": {
|
|
1273
|
-
"text": "string"
|
|
1234
|
+
"text": "Record<string, typeof SgdsElement>"
|
|
1274
1235
|
},
|
|
1275
|
-
"
|
|
1276
|
-
"
|
|
1277
|
-
"reflects": true
|
|
1236
|
+
"static": true,
|
|
1237
|
+
"default": "{\n \"sgds-link\": SgdsLink,\n \"sgds-icon\": SgdsIcon\n }"
|
|
1278
1238
|
},
|
|
1279
1239
|
{
|
|
1280
1240
|
"kind": "field",
|
|
1281
|
-
"name": "
|
|
1241
|
+
"name": "active",
|
|
1282
1242
|
"type": {
|
|
1283
|
-
"text": "
|
|
1243
|
+
"text": "boolean"
|
|
1284
1244
|
},
|
|
1285
|
-
"
|
|
1286
|
-
"
|
|
1245
|
+
"default": "false",
|
|
1246
|
+
"description": "Indicates the link matches the current location of the page. Programmatically handled by SgdsBreadcrumb to set this prop to true for the last breadcrumb item",
|
|
1247
|
+
"attribute": "active",
|
|
1287
1248
|
"reflects": true
|
|
1288
1249
|
},
|
|
1289
1250
|
{
|
|
1290
1251
|
"kind": "field",
|
|
1291
|
-
"name": "
|
|
1292
|
-
"
|
|
1293
|
-
|
|
1294
|
-
},
|
|
1295
|
-
"description": "Used to override the form owner's `method` attribute.",
|
|
1296
|
-
"attribute": "formmethod",
|
|
1297
|
-
"reflects": true
|
|
1252
|
+
"name": "_preventNavigation",
|
|
1253
|
+
"privacy": "private",
|
|
1254
|
+
"type": {}
|
|
1298
1255
|
},
|
|
1299
1256
|
{
|
|
1300
|
-
"kind": "
|
|
1301
|
-
"name": "
|
|
1302
|
-
"
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1257
|
+
"kind": "method",
|
|
1258
|
+
"name": "emit",
|
|
1259
|
+
"parameters": [
|
|
1260
|
+
{
|
|
1261
|
+
"name": "name",
|
|
1262
|
+
"type": {
|
|
1263
|
+
"text": "string"
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"name": "options",
|
|
1268
|
+
"optional": true,
|
|
1269
|
+
"type": {
|
|
1270
|
+
"text": "CustomEventInit<T>"
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
],
|
|
1274
|
+
"description": "Emits a custom event with more convenient defaults.",
|
|
1275
|
+
"type": {},
|
|
1276
|
+
"inheritedFrom": {
|
|
1277
|
+
"name": "SgdsElement",
|
|
1278
|
+
"module": "src/base/sgds-element.ts"
|
|
1279
|
+
}
|
|
1308
1280
|
},
|
|
1309
1281
|
{
|
|
1310
|
-
"kind": "
|
|
1311
|
-
"name": "
|
|
1312
|
-
"
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1282
|
+
"kind": "method",
|
|
1283
|
+
"name": "define",
|
|
1284
|
+
"static": true,
|
|
1285
|
+
"parameters": [
|
|
1286
|
+
{
|
|
1287
|
+
"name": "name",
|
|
1288
|
+
"type": {
|
|
1289
|
+
"text": "string"
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"name": "elementConstructor",
|
|
1294
|
+
"default": "this"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"name": "options",
|
|
1298
|
+
"default": "{}",
|
|
1299
|
+
"type": {
|
|
1300
|
+
"text": "ElementDefinitionOptions"
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
],
|
|
1304
|
+
"type": {},
|
|
1305
|
+
"inheritedFrom": {
|
|
1306
|
+
"name": "SgdsElement",
|
|
1307
|
+
"module": "src/base/sgds-element.ts"
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
],
|
|
1311
|
+
"attributes": [
|
|
1319
1312
|
{
|
|
1320
|
-
"
|
|
1321
|
-
"name": "fullWidth",
|
|
1313
|
+
"name": "active",
|
|
1322
1314
|
"type": {
|
|
1323
1315
|
"text": "boolean"
|
|
1324
1316
|
},
|
|
1325
1317
|
"default": "false",
|
|
1326
|
-
"description": "
|
|
1327
|
-
"
|
|
1328
|
-
|
|
1329
|
-
|
|
1318
|
+
"description": "Indicates the link matches the current location of the page. Programmatically handled by SgdsBreadcrumb to set this prop to true for the last breadcrumb item",
|
|
1319
|
+
"fieldName": "active"
|
|
1320
|
+
}
|
|
1321
|
+
],
|
|
1322
|
+
"superclass": {
|
|
1323
|
+
"name": "SgdsElement",
|
|
1324
|
+
"module": "/src/base/sgds-element"
|
|
1325
|
+
},
|
|
1326
|
+
"summary": "Breadcrumb Item are navigational links used in Breadcrumb component",
|
|
1327
|
+
"tagName": "sgds-breadcrumb-item",
|
|
1328
|
+
"customElement": true,
|
|
1329
|
+
"modulePath": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
1330
|
+
"cssProperties": [],
|
|
1331
|
+
"cssParts": [],
|
|
1332
|
+
"cssStates": [],
|
|
1333
|
+
"events": []
|
|
1334
|
+
}
|
|
1335
|
+
],
|
|
1336
|
+
"exports": [
|
|
1337
|
+
{
|
|
1338
|
+
"kind": "js",
|
|
1339
|
+
"name": "SgdsBreadcrumbItem",
|
|
1340
|
+
"declaration": {
|
|
1341
|
+
"name": "SgdsBreadcrumbItem",
|
|
1342
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
1343
|
+
}
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"kind": "js",
|
|
1347
|
+
"name": "default",
|
|
1348
|
+
"declaration": {
|
|
1349
|
+
"name": "SgdsBreadcrumbItem",
|
|
1350
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
]
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"kind": "javascript-module",
|
|
1357
|
+
"path": "src/components/Breadcrumb/sgds-breadcrumb.ts",
|
|
1358
|
+
"declarations": [
|
|
1359
|
+
{
|
|
1360
|
+
"kind": "class",
|
|
1361
|
+
"description": "",
|
|
1362
|
+
"name": "SgdsBreadcrumb",
|
|
1363
|
+
"slots": [
|
|
1364
|
+
{
|
|
1365
|
+
"description": "The slot to pass in custom elements of `SgdsBreadcrumbItems`.",
|
|
1366
|
+
"name": "default"
|
|
1367
|
+
}
|
|
1368
|
+
],
|
|
1369
|
+
"members": [
|
|
1330
1370
|
{
|
|
1331
1371
|
"kind": "field",
|
|
1332
|
-
"name": "
|
|
1372
|
+
"name": "dependencies",
|
|
1333
1373
|
"type": {
|
|
1334
|
-
"text": "
|
|
1374
|
+
"text": "object"
|
|
1335
1375
|
},
|
|
1336
|
-
"
|
|
1337
|
-
"
|
|
1338
|
-
"attribute": "hasLeftIconSlot"
|
|
1376
|
+
"static": true,
|
|
1377
|
+
"default": "{\n \"sgds-overflow-menu\": SgdsOverflowMenu\n }"
|
|
1339
1378
|
},
|
|
1340
1379
|
{
|
|
1341
1380
|
"kind": "field",
|
|
1342
|
-
"name": "
|
|
1381
|
+
"name": "ariaLabel",
|
|
1343
1382
|
"type": {
|
|
1344
|
-
"text": "
|
|
1383
|
+
"text": "string"
|
|
1345
1384
|
},
|
|
1346
|
-
"default": "
|
|
1347
|
-
"description": "
|
|
1348
|
-
"attribute": "
|
|
1385
|
+
"default": "\"breadcrumb\"",
|
|
1386
|
+
"description": "The aria-label of nav element within breadcrumb component.",
|
|
1387
|
+
"attribute": "ariaLabel"
|
|
1349
1388
|
},
|
|
1350
1389
|
{
|
|
1351
|
-
"kind": "
|
|
1352
|
-
"name": "
|
|
1390
|
+
"kind": "method",
|
|
1391
|
+
"name": "_replaceExcessItemsWithDropdown",
|
|
1353
1392
|
"privacy": "private",
|
|
1354
|
-
"
|
|
1393
|
+
"parameters": [
|
|
1394
|
+
{
|
|
1395
|
+
"name": "items",
|
|
1396
|
+
"type": {
|
|
1397
|
+
"text": "SgdsBreadcrumbItem[]"
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
],
|
|
1401
|
+
"description": "creates `<sgds-breadcrumb-item>\n <sgds-overflow-menu>\n <sgds-dropdown-item></sgds-dropdown-item>\n ...\n </sgds-overflow-menu>\n <sgds-breadcrumb-item>`",
|
|
1355
1402
|
"type": {}
|
|
1356
1403
|
},
|
|
1357
1404
|
{
|
|
1358
1405
|
"kind": "method",
|
|
1359
|
-
"name": "
|
|
1360
|
-
"privacy": "
|
|
1406
|
+
"name": "_handleSlotChange",
|
|
1407
|
+
"privacy": "private",
|
|
1361
1408
|
"parameters": [
|
|
1362
1409
|
{
|
|
1363
|
-
"name": "
|
|
1410
|
+
"name": "e",
|
|
1364
1411
|
"type": {
|
|
1365
|
-
"text": "
|
|
1412
|
+
"text": "Event"
|
|
1366
1413
|
}
|
|
1367
1414
|
}
|
|
1368
1415
|
],
|
|
1369
|
-
"type": {},
|
|
1370
|
-
"inheritedFrom": {
|
|
1371
|
-
"name": "ButtonElement",
|
|
1372
|
-
"module": "src/base/button-element.ts"
|
|
1373
|
-
}
|
|
1374
|
-
},
|
|
1375
|
-
{
|
|
1376
|
-
"kind": "field",
|
|
1377
|
-
"name": "_clickHandler",
|
|
1378
|
-
"privacy": "private",
|
|
1379
1416
|
"type": {}
|
|
1380
1417
|
},
|
|
1381
|
-
{
|
|
1382
|
-
"kind": "field",
|
|
1383
|
-
"name": "variant",
|
|
1384
|
-
"type": {
|
|
1385
|
-
"text": "\"primary\" | \"outline\" | \"ghost\" | \"danger\""
|
|
1386
|
-
},
|
|
1387
|
-
"default": "\"primary\"",
|
|
1388
|
-
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. `danger` is @deprecated since v3.5.6",
|
|
1389
|
-
"attribute": "variant",
|
|
1390
|
-
"reflects": true,
|
|
1391
|
-
"inheritedFrom": {
|
|
1392
|
-
"name": "ButtonElement",
|
|
1393
|
-
"module": "src/base/button-element.ts"
|
|
1394
|
-
}
|
|
1395
|
-
},
|
|
1396
|
-
{
|
|
1397
|
-
"kind": "field",
|
|
1398
|
-
"name": "tone",
|
|
1399
|
-
"type": {
|
|
1400
|
-
"text": "\"brand\" | \"danger\" | \"fixed-light\" | \"neutral\""
|
|
1401
|
-
},
|
|
1402
|
-
"default": "\"brand\"",
|
|
1403
|
-
"description": "Sets the visual colour of the button: `brand`, `danger`, `fixed-light`, `neutral`",
|
|
1404
|
-
"attribute": "tone",
|
|
1405
|
-
"reflects": true,
|
|
1406
|
-
"inheritedFrom": {
|
|
1407
|
-
"name": "ButtonElement",
|
|
1408
|
-
"module": "src/base/button-element.ts"
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
{
|
|
1412
|
-
"kind": "field",
|
|
1413
|
-
"name": "size",
|
|
1414
|
-
"type": {
|
|
1415
|
-
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
1416
|
-
},
|
|
1417
|
-
"default": "\"md\"",
|
|
1418
|
-
"description": "Specifies a small, medium or large button, the size is medium by default.",
|
|
1419
|
-
"attribute": "size",
|
|
1420
|
-
"reflects": true,
|
|
1421
|
-
"inheritedFrom": {
|
|
1422
|
-
"name": "ButtonElement",
|
|
1423
|
-
"module": "src/base/button-element.ts"
|
|
1424
|
-
}
|
|
1425
|
-
},
|
|
1426
|
-
{
|
|
1427
|
-
"kind": "field",
|
|
1428
|
-
"name": "active",
|
|
1429
|
-
"type": {
|
|
1430
|
-
"text": "boolean"
|
|
1431
|
-
},
|
|
1432
|
-
"default": "false",
|
|
1433
|
-
"description": "Manually set the visual state of the button to `:active`",
|
|
1434
|
-
"attribute": "active",
|
|
1435
|
-
"reflects": true,
|
|
1436
|
-
"inheritedFrom": {
|
|
1437
|
-
"name": "ButtonElement",
|
|
1438
|
-
"module": "src/base/button-element.ts"
|
|
1439
|
-
}
|
|
1440
|
-
},
|
|
1441
|
-
{
|
|
1442
|
-
"kind": "field",
|
|
1443
|
-
"name": "disabled",
|
|
1444
|
-
"type": {
|
|
1445
|
-
"text": "boolean"
|
|
1446
|
-
},
|
|
1447
|
-
"default": "false",
|
|
1448
|
-
"description": "The disabled state of the button",
|
|
1449
|
-
"attribute": "disabled",
|
|
1450
|
-
"reflects": true,
|
|
1451
|
-
"inheritedFrom": {
|
|
1452
|
-
"name": "ButtonElement",
|
|
1453
|
-
"module": "src/base/button-element.ts"
|
|
1454
|
-
}
|
|
1455
|
-
},
|
|
1456
|
-
{
|
|
1457
|
-
"kind": "field",
|
|
1458
|
-
"name": "href",
|
|
1459
|
-
"type": {
|
|
1460
|
-
"text": "string"
|
|
1461
|
-
},
|
|
1462
|
-
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
1463
|
-
"attribute": "href",
|
|
1464
|
-
"reflects": true,
|
|
1465
|
-
"inheritedFrom": {
|
|
1466
|
-
"name": "ButtonElement",
|
|
1467
|
-
"module": "src/base/button-element.ts"
|
|
1468
|
-
}
|
|
1469
|
-
},
|
|
1470
|
-
{
|
|
1471
|
-
"kind": "field",
|
|
1472
|
-
"name": "target",
|
|
1473
|
-
"type": {
|
|
1474
|
-
"text": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\""
|
|
1475
|
-
},
|
|
1476
|
-
"default": "\"_self\"",
|
|
1477
|
-
"description": "Where to display the linked URL, as the name for a browsing context. Forwards to the HTMLAnchor target attribute",
|
|
1478
|
-
"attribute": "target",
|
|
1479
|
-
"reflects": true,
|
|
1480
|
-
"inheritedFrom": {
|
|
1481
|
-
"name": "ButtonElement",
|
|
1482
|
-
"module": "src/base/button-element.ts"
|
|
1483
|
-
}
|
|
1484
|
-
},
|
|
1485
|
-
{
|
|
1486
|
-
"kind": "field",
|
|
1487
|
-
"name": "download",
|
|
1488
|
-
"type": {
|
|
1489
|
-
"text": "string"
|
|
1490
|
-
},
|
|
1491
|
-
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
1492
|
-
"attribute": "download",
|
|
1493
|
-
"reflects": true,
|
|
1494
|
-
"inheritedFrom": {
|
|
1495
|
-
"name": "ButtonElement",
|
|
1496
|
-
"module": "src/base/button-element.ts"
|
|
1497
|
-
}
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
"kind": "field",
|
|
1501
|
-
"name": "ariaLabel",
|
|
1502
|
-
"type": {
|
|
1503
|
-
"text": "string"
|
|
1504
|
-
},
|
|
1505
|
-
"description": "The aria-label attribute to passed to button element when necessary",
|
|
1506
|
-
"attribute": "ariaLabel",
|
|
1507
|
-
"inheritedFrom": {
|
|
1508
|
-
"name": "ButtonElement",
|
|
1509
|
-
"module": "src/base/button-element.ts"
|
|
1510
|
-
}
|
|
1511
|
-
},
|
|
1512
|
-
{
|
|
1513
|
-
"kind": "field",
|
|
1514
|
-
"name": "loading",
|
|
1515
|
-
"type": {
|
|
1516
|
-
"text": "boolean"
|
|
1517
|
-
},
|
|
1518
|
-
"description": "When true, shows a loading spinner",
|
|
1519
|
-
"attribute": "loading",
|
|
1520
|
-
"inheritedFrom": {
|
|
1521
|
-
"name": "ButtonElement",
|
|
1522
|
-
"module": "src/base/button-element.ts"
|
|
1523
|
-
}
|
|
1524
|
-
},
|
|
1525
|
-
{
|
|
1526
|
-
"kind": "method",
|
|
1527
|
-
"name": "focus",
|
|
1528
|
-
"privacy": "public",
|
|
1529
|
-
"parameters": [
|
|
1530
|
-
{
|
|
1531
|
-
"name": "options",
|
|
1532
|
-
"optional": true,
|
|
1533
|
-
"type": {
|
|
1534
|
-
"text": "FocusOptions"
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
],
|
|
1538
|
-
"description": "Sets focus on the button.",
|
|
1539
|
-
"type": {},
|
|
1540
|
-
"inheritedFrom": {
|
|
1541
|
-
"name": "ButtonElement",
|
|
1542
|
-
"module": "src/base/button-element.ts"
|
|
1543
|
-
}
|
|
1544
|
-
},
|
|
1545
|
-
{
|
|
1546
|
-
"kind": "method",
|
|
1547
|
-
"name": "click",
|
|
1548
|
-
"privacy": "public",
|
|
1549
|
-
"description": "Simulates a click on the button.",
|
|
1550
|
-
"type": {},
|
|
1551
|
-
"inheritedFrom": {
|
|
1552
|
-
"name": "ButtonElement",
|
|
1553
|
-
"module": "src/base/button-element.ts"
|
|
1554
|
-
}
|
|
1555
|
-
},
|
|
1556
|
-
{
|
|
1557
|
-
"kind": "method",
|
|
1558
|
-
"name": "blur",
|
|
1559
|
-
"privacy": "public",
|
|
1560
|
-
"description": "Removes focus from the button.",
|
|
1561
|
-
"type": {},
|
|
1562
|
-
"inheritedFrom": {
|
|
1563
|
-
"name": "ButtonElement",
|
|
1564
|
-
"module": "src/base/button-element.ts"
|
|
1565
|
-
}
|
|
1566
|
-
},
|
|
1567
|
-
{
|
|
1568
|
-
"kind": "method",
|
|
1569
|
-
"name": "_handleBlur",
|
|
1570
|
-
"privacy": "protected",
|
|
1571
|
-
"type": {},
|
|
1572
|
-
"inheritedFrom": {
|
|
1573
|
-
"name": "ButtonElement",
|
|
1574
|
-
"module": "src/base/button-element.ts"
|
|
1575
|
-
}
|
|
1576
|
-
},
|
|
1577
|
-
{
|
|
1578
|
-
"kind": "method",
|
|
1579
|
-
"name": "_handleFocus",
|
|
1580
|
-
"privacy": "protected",
|
|
1581
|
-
"type": {},
|
|
1582
|
-
"inheritedFrom": {
|
|
1583
|
-
"name": "ButtonElement",
|
|
1584
|
-
"module": "src/base/button-element.ts"
|
|
1585
|
-
}
|
|
1586
|
-
},
|
|
1587
|
-
{
|
|
1588
|
-
"kind": "method",
|
|
1589
|
-
"name": "_handleKeydown",
|
|
1590
|
-
"privacy": "protected",
|
|
1591
|
-
"parameters": [
|
|
1592
|
-
{
|
|
1593
|
-
"name": "event",
|
|
1594
|
-
"type": {
|
|
1595
|
-
"text": "KeyboardEvent"
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
],
|
|
1599
|
-
"type": {},
|
|
1600
|
-
"inheritedFrom": {
|
|
1601
|
-
"name": "ButtonElement",
|
|
1602
|
-
"module": "src/base/button-element.ts"
|
|
1603
|
-
}
|
|
1604
|
-
},
|
|
1605
|
-
{
|
|
1606
|
-
"kind": "method",
|
|
1607
|
-
"name": "_assignSpinnerSize",
|
|
1608
|
-
"privacy": "protected",
|
|
1609
|
-
"parameters": [
|
|
1610
|
-
{
|
|
1611
|
-
"name": "buttonSize",
|
|
1612
|
-
"type": {
|
|
1613
|
-
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
1614
|
-
}
|
|
1615
|
-
}
|
|
1616
|
-
],
|
|
1617
|
-
"type": {},
|
|
1618
|
-
"inheritedFrom": {
|
|
1619
|
-
"name": "ButtonElement",
|
|
1620
|
-
"module": "src/base/button-element.ts"
|
|
1621
|
-
}
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
"kind": "method",
|
|
1625
|
-
"name": "_assignSpinnerTone",
|
|
1626
|
-
"privacy": "protected",
|
|
1627
|
-
"return": {
|
|
1628
|
-
"type": {
|
|
1629
|
-
"text": "SpinnerTone"
|
|
1630
|
-
}
|
|
1631
|
-
},
|
|
1632
|
-
"parameters": [
|
|
1633
|
-
{
|
|
1634
|
-
"name": "buttonTone",
|
|
1635
|
-
"type": {
|
|
1636
|
-
"text": "ButtonTone"
|
|
1637
|
-
}
|
|
1638
|
-
},
|
|
1639
|
-
{
|
|
1640
|
-
"name": "buttonVariant",
|
|
1641
|
-
"type": {
|
|
1642
|
-
"text": "ButtonVariant"
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
],
|
|
1646
|
-
"type": {},
|
|
1647
|
-
"inheritedFrom": {
|
|
1648
|
-
"name": "ButtonElement",
|
|
1649
|
-
"module": "src/base/button-element.ts"
|
|
1650
|
-
}
|
|
1651
|
-
},
|
|
1652
1418
|
{
|
|
1653
1419
|
"kind": "method",
|
|
1654
1420
|
"name": "emit",
|
|
@@ -1704,472 +1470,486 @@
|
|
|
1704
1470
|
}
|
|
1705
1471
|
}
|
|
1706
1472
|
],
|
|
1707
|
-
"
|
|
1473
|
+
"attributes": [
|
|
1708
1474
|
{
|
|
1709
|
-
"
|
|
1710
|
-
"
|
|
1711
|
-
|
|
1475
|
+
"name": "ariaLabel",
|
|
1476
|
+
"type": {
|
|
1477
|
+
"text": "string"
|
|
1478
|
+
},
|
|
1479
|
+
"default": "\"breadcrumb\"",
|
|
1480
|
+
"description": "The aria-label of nav element within breadcrumb component.",
|
|
1481
|
+
"fieldName": "ariaLabel"
|
|
1482
|
+
}
|
|
1483
|
+
],
|
|
1484
|
+
"superclass": {
|
|
1485
|
+
"name": "SgdsElement",
|
|
1486
|
+
"module": "/src/base/sgds-element"
|
|
1487
|
+
},
|
|
1488
|
+
"summary": "Breadcrumbs help users to navigate and understand where they are on the current website or service.",
|
|
1489
|
+
"tagName": "sgds-breadcrumb",
|
|
1490
|
+
"customElement": true,
|
|
1491
|
+
"modulePath": "src/components/Breadcrumb/sgds-breadcrumb.ts",
|
|
1492
|
+
"cssProperties": [],
|
|
1493
|
+
"cssParts": [],
|
|
1494
|
+
"cssStates": [],
|
|
1495
|
+
"events": []
|
|
1496
|
+
}
|
|
1497
|
+
],
|
|
1498
|
+
"exports": [
|
|
1499
|
+
{
|
|
1500
|
+
"kind": "js",
|
|
1501
|
+
"name": "SgdsBreadcrumb",
|
|
1502
|
+
"declaration": {
|
|
1503
|
+
"name": "SgdsBreadcrumb",
|
|
1504
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb.ts"
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"kind": "js",
|
|
1509
|
+
"name": "default",
|
|
1510
|
+
"declaration": {
|
|
1511
|
+
"name": "SgdsBreadcrumb",
|
|
1512
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb.ts"
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
]
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"kind": "javascript-module",
|
|
1519
|
+
"path": "src/components/Button/sgds-button.ts",
|
|
1520
|
+
"declarations": [
|
|
1521
|
+
{
|
|
1522
|
+
"kind": "class",
|
|
1523
|
+
"description": "",
|
|
1524
|
+
"name": "SgdsButton",
|
|
1525
|
+
"slots": [
|
|
1526
|
+
{
|
|
1527
|
+
"description": "The button's label.",
|
|
1528
|
+
"name": "default"
|
|
1712
1529
|
},
|
|
1713
1530
|
{
|
|
1714
|
-
"description": "
|
|
1715
|
-
"name": "
|
|
1716
|
-
|
|
1531
|
+
"description": "The slot for icon to the left of the button text",
|
|
1532
|
+
"name": "leftIcon"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"description": "The slot for icon to the right of the button text",
|
|
1536
|
+
"name": "rightIcon"
|
|
1717
1537
|
}
|
|
1718
1538
|
],
|
|
1719
|
-
"
|
|
1539
|
+
"members": [
|
|
1720
1540
|
{
|
|
1541
|
+
"kind": "field",
|
|
1721
1542
|
"name": "name",
|
|
1722
1543
|
"type": {
|
|
1723
1544
|
"text": "string"
|
|
1724
1545
|
},
|
|
1725
1546
|
"description": "The name of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
1726
|
-
"
|
|
1547
|
+
"attribute": "name",
|
|
1548
|
+
"reflects": true
|
|
1727
1549
|
},
|
|
1728
1550
|
{
|
|
1551
|
+
"kind": "field",
|
|
1729
1552
|
"name": "value",
|
|
1730
1553
|
"type": {
|
|
1731
1554
|
"text": "string"
|
|
1732
1555
|
},
|
|
1733
1556
|
"description": "The value of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
1734
|
-
"
|
|
1557
|
+
"attribute": "value",
|
|
1558
|
+
"reflects": true
|
|
1735
1559
|
},
|
|
1736
1560
|
{
|
|
1561
|
+
"kind": "field",
|
|
1737
1562
|
"name": "type",
|
|
1738
1563
|
"type": {
|
|
1739
1564
|
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1740
1565
|
},
|
|
1741
1566
|
"default": "\"button\"",
|
|
1742
1567
|
"description": "The behavior of the button with default as `type='button', `reset` resets all the controls to their initial values and `submit` submits the form data to the server",
|
|
1743
|
-
"
|
|
1568
|
+
"attribute": "type",
|
|
1569
|
+
"reflects": true
|
|
1744
1570
|
},
|
|
1745
1571
|
{
|
|
1572
|
+
"kind": "field",
|
|
1746
1573
|
"name": "form",
|
|
1747
1574
|
"type": {
|
|
1748
1575
|
"text": "string"
|
|
1749
1576
|
},
|
|
1750
1577
|
"description": "The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\nvalue of this attribute must be an id of a form in the same document or shadow root as the button.",
|
|
1751
|
-
"
|
|
1578
|
+
"attribute": "form",
|
|
1579
|
+
"reflects": true
|
|
1752
1580
|
},
|
|
1753
1581
|
{
|
|
1754
|
-
"
|
|
1582
|
+
"kind": "field",
|
|
1583
|
+
"name": "formAction",
|
|
1755
1584
|
"type": {
|
|
1756
1585
|
"text": "string"
|
|
1757
1586
|
},
|
|
1758
1587
|
"description": "Used to override the form owner's `action` attribute.",
|
|
1759
|
-
"
|
|
1588
|
+
"attribute": "formaction",
|
|
1589
|
+
"reflects": true
|
|
1760
1590
|
},
|
|
1761
1591
|
{
|
|
1762
|
-
"
|
|
1592
|
+
"kind": "field",
|
|
1593
|
+
"name": "formMethod",
|
|
1763
1594
|
"type": {
|
|
1764
1595
|
"text": "\"post\" | \"get\""
|
|
1765
1596
|
},
|
|
1766
1597
|
"description": "Used to override the form owner's `method` attribute.",
|
|
1767
|
-
"
|
|
1598
|
+
"attribute": "formmethod",
|
|
1599
|
+
"reflects": true
|
|
1768
1600
|
},
|
|
1769
1601
|
{
|
|
1770
|
-
"
|
|
1602
|
+
"kind": "field",
|
|
1603
|
+
"name": "formNoValidate",
|
|
1771
1604
|
"type": {
|
|
1772
1605
|
"text": "boolean"
|
|
1773
1606
|
},
|
|
1774
1607
|
"description": "Used to override the form owner's `novalidate` attribute.",
|
|
1775
|
-
"
|
|
1608
|
+
"attribute": "formnovalidate",
|
|
1609
|
+
"reflects": true
|
|
1776
1610
|
},
|
|
1777
1611
|
{
|
|
1778
|
-
"
|
|
1612
|
+
"kind": "field",
|
|
1613
|
+
"name": "formTarget",
|
|
1779
1614
|
"type": {
|
|
1780
1615
|
"text": "| \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | string"
|
|
1781
1616
|
},
|
|
1782
1617
|
"description": "Used to override the form owner's `target` attribute.",
|
|
1783
|
-
"
|
|
1618
|
+
"attribute": "formtarget",
|
|
1619
|
+
"reflects": true
|
|
1784
1620
|
},
|
|
1785
1621
|
{
|
|
1622
|
+
"kind": "field",
|
|
1786
1623
|
"name": "fullWidth",
|
|
1787
1624
|
"type": {
|
|
1788
1625
|
"text": "boolean"
|
|
1789
1626
|
},
|
|
1790
1627
|
"default": "false",
|
|
1791
1628
|
"description": "When set, the button will be in full width.",
|
|
1792
|
-
"
|
|
1629
|
+
"attribute": "fullWidth",
|
|
1630
|
+
"reflects": true
|
|
1793
1631
|
},
|
|
1794
1632
|
{
|
|
1633
|
+
"kind": "field",
|
|
1795
1634
|
"name": "hasLeftIconSlot",
|
|
1796
1635
|
"type": {
|
|
1797
1636
|
"text": "boolean"
|
|
1798
1637
|
},
|
|
1799
1638
|
"default": "false",
|
|
1800
1639
|
"description": "Used only for SSR to indicate the presence of the `leftIcon` slot.",
|
|
1801
|
-
"
|
|
1640
|
+
"attribute": "hasLeftIconSlot"
|
|
1802
1641
|
},
|
|
1803
1642
|
{
|
|
1643
|
+
"kind": "field",
|
|
1804
1644
|
"name": "hasRightIconSlot",
|
|
1805
1645
|
"type": {
|
|
1806
1646
|
"text": "boolean"
|
|
1807
1647
|
},
|
|
1808
1648
|
"default": "false",
|
|
1809
1649
|
"description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
|
|
1810
|
-
"
|
|
1650
|
+
"attribute": "hasRightIconSlot"
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"kind": "field",
|
|
1654
|
+
"name": "hasSlotController",
|
|
1655
|
+
"privacy": "private",
|
|
1656
|
+
"default": "new HasSlotController(this, \"leftIcon\", \"rightIcon\")",
|
|
1657
|
+
"type": {}
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"kind": "method",
|
|
1661
|
+
"name": "_handleClick",
|
|
1662
|
+
"privacy": "protected",
|
|
1663
|
+
"parameters": [
|
|
1664
|
+
{
|
|
1665
|
+
"name": "event",
|
|
1666
|
+
"type": {
|
|
1667
|
+
"text": "MouseEvent"
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
],
|
|
1671
|
+
"type": {},
|
|
1672
|
+
"inheritedFrom": {
|
|
1673
|
+
"name": "ButtonElement",
|
|
1674
|
+
"module": "src/base/button-element.ts"
|
|
1675
|
+
}
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"kind": "field",
|
|
1679
|
+
"name": "_clickHandler",
|
|
1680
|
+
"privacy": "private",
|
|
1681
|
+
"type": {}
|
|
1811
1682
|
},
|
|
1812
1683
|
{
|
|
1684
|
+
"kind": "field",
|
|
1813
1685
|
"name": "variant",
|
|
1814
1686
|
"type": {
|
|
1815
|
-
"text": "
|
|
1687
|
+
"text": "\"primary\" | \"outline\" | \"ghost\" | \"danger\""
|
|
1816
1688
|
},
|
|
1817
1689
|
"default": "\"primary\"",
|
|
1818
1690
|
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. `danger` is @deprecated since v3.5.6",
|
|
1819
|
-
"
|
|
1691
|
+
"attribute": "variant",
|
|
1692
|
+
"reflects": true,
|
|
1820
1693
|
"inheritedFrom": {
|
|
1821
1694
|
"name": "ButtonElement",
|
|
1822
1695
|
"module": "src/base/button-element.ts"
|
|
1823
1696
|
}
|
|
1824
1697
|
},
|
|
1825
1698
|
{
|
|
1699
|
+
"kind": "field",
|
|
1826
1700
|
"name": "tone",
|
|
1827
1701
|
"type": {
|
|
1828
|
-
"text": "
|
|
1702
|
+
"text": "\"brand\" | \"danger\" | \"fixed-light\" | \"neutral\""
|
|
1829
1703
|
},
|
|
1830
1704
|
"default": "\"brand\"",
|
|
1831
1705
|
"description": "Sets the visual colour of the button: `brand`, `danger`, `fixed-light`, `neutral`",
|
|
1832
|
-
"
|
|
1706
|
+
"attribute": "tone",
|
|
1707
|
+
"reflects": true,
|
|
1833
1708
|
"inheritedFrom": {
|
|
1834
1709
|
"name": "ButtonElement",
|
|
1835
1710
|
"module": "src/base/button-element.ts"
|
|
1836
1711
|
}
|
|
1837
1712
|
},
|
|
1838
1713
|
{
|
|
1714
|
+
"kind": "field",
|
|
1839
1715
|
"name": "size",
|
|
1840
1716
|
"type": {
|
|
1841
1717
|
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
1842
1718
|
},
|
|
1843
1719
|
"default": "\"md\"",
|
|
1844
1720
|
"description": "Specifies a small, medium or large button, the size is medium by default.",
|
|
1845
|
-
"
|
|
1721
|
+
"attribute": "size",
|
|
1722
|
+
"reflects": true,
|
|
1846
1723
|
"inheritedFrom": {
|
|
1847
1724
|
"name": "ButtonElement",
|
|
1848
1725
|
"module": "src/base/button-element.ts"
|
|
1849
1726
|
}
|
|
1850
1727
|
},
|
|
1851
1728
|
{
|
|
1729
|
+
"kind": "field",
|
|
1852
1730
|
"name": "active",
|
|
1853
1731
|
"type": {
|
|
1854
1732
|
"text": "boolean"
|
|
1855
1733
|
},
|
|
1856
1734
|
"default": "false",
|
|
1857
1735
|
"description": "Manually set the visual state of the button to `:active`",
|
|
1858
|
-
"
|
|
1736
|
+
"attribute": "active",
|
|
1737
|
+
"reflects": true,
|
|
1859
1738
|
"inheritedFrom": {
|
|
1860
1739
|
"name": "ButtonElement",
|
|
1861
1740
|
"module": "src/base/button-element.ts"
|
|
1862
1741
|
}
|
|
1863
1742
|
},
|
|
1864
1743
|
{
|
|
1744
|
+
"kind": "field",
|
|
1865
1745
|
"name": "disabled",
|
|
1866
1746
|
"type": {
|
|
1867
1747
|
"text": "boolean"
|
|
1868
1748
|
},
|
|
1869
1749
|
"default": "false",
|
|
1870
1750
|
"description": "The disabled state of the button",
|
|
1871
|
-
"
|
|
1751
|
+
"attribute": "disabled",
|
|
1752
|
+
"reflects": true,
|
|
1872
1753
|
"inheritedFrom": {
|
|
1873
1754
|
"name": "ButtonElement",
|
|
1874
1755
|
"module": "src/base/button-element.ts"
|
|
1875
1756
|
}
|
|
1876
1757
|
},
|
|
1877
1758
|
{
|
|
1759
|
+
"kind": "field",
|
|
1878
1760
|
"name": "href",
|
|
1879
1761
|
"type": {
|
|
1880
1762
|
"text": "string"
|
|
1881
1763
|
},
|
|
1882
1764
|
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
1883
|
-
"
|
|
1765
|
+
"attribute": "href",
|
|
1766
|
+
"reflects": true,
|
|
1884
1767
|
"inheritedFrom": {
|
|
1885
1768
|
"name": "ButtonElement",
|
|
1886
1769
|
"module": "src/base/button-element.ts"
|
|
1887
1770
|
}
|
|
1888
1771
|
},
|
|
1889
1772
|
{
|
|
1773
|
+
"kind": "field",
|
|
1890
1774
|
"name": "target",
|
|
1891
1775
|
"type": {
|
|
1892
1776
|
"text": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\""
|
|
1893
1777
|
},
|
|
1894
1778
|
"default": "\"_self\"",
|
|
1895
1779
|
"description": "Where to display the linked URL, as the name for a browsing context. Forwards to the HTMLAnchor target attribute",
|
|
1896
|
-
"
|
|
1780
|
+
"attribute": "target",
|
|
1781
|
+
"reflects": true,
|
|
1782
|
+
"inheritedFrom": {
|
|
1783
|
+
"name": "ButtonElement",
|
|
1784
|
+
"module": "src/base/button-element.ts"
|
|
1785
|
+
}
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
"kind": "field",
|
|
1789
|
+
"name": "download",
|
|
1790
|
+
"type": {
|
|
1791
|
+
"text": "string"
|
|
1792
|
+
},
|
|
1793
|
+
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
1794
|
+
"attribute": "download",
|
|
1795
|
+
"reflects": true,
|
|
1796
|
+
"inheritedFrom": {
|
|
1797
|
+
"name": "ButtonElement",
|
|
1798
|
+
"module": "src/base/button-element.ts"
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"kind": "field",
|
|
1803
|
+
"name": "ariaLabel",
|
|
1804
|
+
"type": {
|
|
1805
|
+
"text": "string"
|
|
1806
|
+
},
|
|
1807
|
+
"description": "The aria-label attribute to passed to button element when necessary",
|
|
1808
|
+
"attribute": "ariaLabel",
|
|
1809
|
+
"inheritedFrom": {
|
|
1810
|
+
"name": "ButtonElement",
|
|
1811
|
+
"module": "src/base/button-element.ts"
|
|
1812
|
+
}
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"kind": "field",
|
|
1816
|
+
"name": "loading",
|
|
1817
|
+
"type": {
|
|
1818
|
+
"text": "boolean"
|
|
1819
|
+
},
|
|
1820
|
+
"description": "When true, shows a loading spinner",
|
|
1821
|
+
"attribute": "loading",
|
|
1822
|
+
"inheritedFrom": {
|
|
1823
|
+
"name": "ButtonElement",
|
|
1824
|
+
"module": "src/base/button-element.ts"
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
"kind": "method",
|
|
1829
|
+
"name": "focus",
|
|
1830
|
+
"privacy": "public",
|
|
1831
|
+
"parameters": [
|
|
1832
|
+
{
|
|
1833
|
+
"name": "options",
|
|
1834
|
+
"optional": true,
|
|
1835
|
+
"type": {
|
|
1836
|
+
"text": "FocusOptions"
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
],
|
|
1840
|
+
"description": "Sets focus on the button.",
|
|
1841
|
+
"type": {},
|
|
1842
|
+
"inheritedFrom": {
|
|
1843
|
+
"name": "ButtonElement",
|
|
1844
|
+
"module": "src/base/button-element.ts"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
"kind": "method",
|
|
1849
|
+
"name": "click",
|
|
1850
|
+
"privacy": "public",
|
|
1851
|
+
"description": "Simulates a click on the button.",
|
|
1852
|
+
"type": {},
|
|
1897
1853
|
"inheritedFrom": {
|
|
1898
1854
|
"name": "ButtonElement",
|
|
1899
1855
|
"module": "src/base/button-element.ts"
|
|
1900
1856
|
}
|
|
1901
1857
|
},
|
|
1902
1858
|
{
|
|
1903
|
-
"
|
|
1904
|
-
"
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
"
|
|
1908
|
-
"fieldName": "download",
|
|
1859
|
+
"kind": "method",
|
|
1860
|
+
"name": "blur",
|
|
1861
|
+
"privacy": "public",
|
|
1862
|
+
"description": "Removes focus from the button.",
|
|
1863
|
+
"type": {},
|
|
1909
1864
|
"inheritedFrom": {
|
|
1910
1865
|
"name": "ButtonElement",
|
|
1911
1866
|
"module": "src/base/button-element.ts"
|
|
1912
1867
|
}
|
|
1913
1868
|
},
|
|
1914
1869
|
{
|
|
1915
|
-
"
|
|
1916
|
-
"
|
|
1917
|
-
|
|
1918
|
-
},
|
|
1919
|
-
"description": "The aria-label attribute to passed to button element when necessary",
|
|
1920
|
-
"fieldName": "ariaLabel",
|
|
1870
|
+
"kind": "method",
|
|
1871
|
+
"name": "_handleBlur",
|
|
1872
|
+
"privacy": "protected",
|
|
1873
|
+
"type": {},
|
|
1921
1874
|
"inheritedFrom": {
|
|
1922
1875
|
"name": "ButtonElement",
|
|
1923
1876
|
"module": "src/base/button-element.ts"
|
|
1924
1877
|
}
|
|
1925
1878
|
},
|
|
1926
1879
|
{
|
|
1927
|
-
"
|
|
1928
|
-
"
|
|
1929
|
-
|
|
1930
|
-
},
|
|
1931
|
-
"description": "When true, shows a loading spinner",
|
|
1932
|
-
"fieldName": "loading",
|
|
1880
|
+
"kind": "method",
|
|
1881
|
+
"name": "_handleFocus",
|
|
1882
|
+
"privacy": "protected",
|
|
1883
|
+
"type": {},
|
|
1933
1884
|
"inheritedFrom": {
|
|
1934
1885
|
"name": "ButtonElement",
|
|
1935
1886
|
"module": "src/base/button-element.ts"
|
|
1936
1887
|
}
|
|
1937
|
-
}
|
|
1938
|
-
],
|
|
1939
|
-
"superclass": {
|
|
1940
|
-
"name": "ButtonElement",
|
|
1941
|
-
"module": "/src/base/button-element"
|
|
1942
|
-
},
|
|
1943
|
-
"summary": "Custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.",
|
|
1944
|
-
"tagName": "sgds-button",
|
|
1945
|
-
"customElement": true,
|
|
1946
|
-
"modulePath": "src/components/Button/sgds-button.ts",
|
|
1947
|
-
"cssProperties": [],
|
|
1948
|
-
"cssParts": [],
|
|
1949
|
-
"cssStates": []
|
|
1950
|
-
}
|
|
1951
|
-
],
|
|
1952
|
-
"exports": [
|
|
1953
|
-
{
|
|
1954
|
-
"kind": "js",
|
|
1955
|
-
"name": "SgdsButton",
|
|
1956
|
-
"declaration": {
|
|
1957
|
-
"name": "SgdsButton",
|
|
1958
|
-
"module": "src/components/Button/sgds-button.ts"
|
|
1959
|
-
}
|
|
1960
|
-
},
|
|
1961
|
-
{
|
|
1962
|
-
"kind": "js",
|
|
1963
|
-
"name": "default",
|
|
1964
|
-
"declaration": {
|
|
1965
|
-
"name": "SgdsButton",
|
|
1966
|
-
"module": "src/components/Button/sgds-button.ts"
|
|
1967
|
-
}
|
|
1968
|
-
}
|
|
1969
|
-
]
|
|
1970
|
-
},
|
|
1971
|
-
{
|
|
1972
|
-
"kind": "javascript-module",
|
|
1973
|
-
"path": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
1974
|
-
"declarations": [
|
|
1975
|
-
{
|
|
1976
|
-
"kind": "class",
|
|
1977
|
-
"description": "",
|
|
1978
|
-
"name": "SgdsBreadcrumbItem",
|
|
1979
|
-
"slots": [
|
|
1980
|
-
{
|
|
1981
|
-
"description": "The link of the item. Pass in anchor tags into this slot",
|
|
1982
|
-
"name": "default"
|
|
1983
|
-
}
|
|
1984
|
-
],
|
|
1985
|
-
"members": [
|
|
1986
|
-
{
|
|
1987
|
-
"kind": "field",
|
|
1988
|
-
"name": "dependencies",
|
|
1989
|
-
"type": {
|
|
1990
|
-
"text": "Record<string, typeof SgdsElement>"
|
|
1991
|
-
},
|
|
1992
|
-
"static": true,
|
|
1993
|
-
"default": "{\n \"sgds-link\": SgdsLink,\n \"sgds-icon\": SgdsIcon\n }"
|
|
1994
|
-
},
|
|
1995
|
-
{
|
|
1996
|
-
"kind": "field",
|
|
1997
|
-
"name": "active",
|
|
1998
|
-
"type": {
|
|
1999
|
-
"text": "boolean"
|
|
2000
|
-
},
|
|
2001
|
-
"default": "false",
|
|
2002
|
-
"description": "Indicates the link matches the current location of the page. Programmatically handled by SgdsBreadcrumb to set this prop to true for the last breadcrumb item",
|
|
2003
|
-
"attribute": "active",
|
|
2004
|
-
"reflects": true
|
|
2005
|
-
},
|
|
2006
|
-
{
|
|
2007
|
-
"kind": "field",
|
|
2008
|
-
"name": "_preventNavigation",
|
|
2009
|
-
"privacy": "private",
|
|
2010
|
-
"type": {}
|
|
2011
1888
|
},
|
|
2012
1889
|
{
|
|
2013
1890
|
"kind": "method",
|
|
2014
|
-
"name": "
|
|
1891
|
+
"name": "_handleKeydown",
|
|
1892
|
+
"privacy": "protected",
|
|
2015
1893
|
"parameters": [
|
|
2016
1894
|
{
|
|
2017
|
-
"name": "
|
|
2018
|
-
"type": {
|
|
2019
|
-
"text": "string"
|
|
2020
|
-
}
|
|
2021
|
-
},
|
|
2022
|
-
{
|
|
2023
|
-
"name": "options",
|
|
2024
|
-
"optional": true,
|
|
1895
|
+
"name": "event",
|
|
2025
1896
|
"type": {
|
|
2026
|
-
"text": "
|
|
1897
|
+
"text": "KeyboardEvent"
|
|
2027
1898
|
}
|
|
2028
1899
|
}
|
|
2029
1900
|
],
|
|
2030
|
-
"description": "Emits a custom event with more convenient defaults.",
|
|
2031
1901
|
"type": {},
|
|
2032
1902
|
"inheritedFrom": {
|
|
2033
|
-
"name": "
|
|
2034
|
-
"module": "src/base/
|
|
1903
|
+
"name": "ButtonElement",
|
|
1904
|
+
"module": "src/base/button-element.ts"
|
|
2035
1905
|
}
|
|
2036
1906
|
},
|
|
2037
1907
|
{
|
|
2038
1908
|
"kind": "method",
|
|
2039
|
-
"name": "
|
|
2040
|
-
"
|
|
1909
|
+
"name": "_assignSpinnerSize",
|
|
1910
|
+
"privacy": "protected",
|
|
2041
1911
|
"parameters": [
|
|
2042
1912
|
{
|
|
2043
|
-
"name": "
|
|
2044
|
-
"type": {
|
|
2045
|
-
"text": "string"
|
|
2046
|
-
}
|
|
2047
|
-
},
|
|
2048
|
-
{
|
|
2049
|
-
"name": "elementConstructor",
|
|
2050
|
-
"default": "this"
|
|
2051
|
-
},
|
|
2052
|
-
{
|
|
2053
|
-
"name": "options",
|
|
2054
|
-
"default": "{}",
|
|
1913
|
+
"name": "buttonSize",
|
|
2055
1914
|
"type": {
|
|
2056
|
-
"text": "
|
|
1915
|
+
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
2057
1916
|
}
|
|
2058
1917
|
}
|
|
2059
1918
|
],
|
|
2060
1919
|
"type": {},
|
|
2061
1920
|
"inheritedFrom": {
|
|
2062
|
-
"name": "
|
|
2063
|
-
"module": "src/base/
|
|
1921
|
+
"name": "ButtonElement",
|
|
1922
|
+
"module": "src/base/button-element.ts"
|
|
2064
1923
|
}
|
|
2065
|
-
}
|
|
2066
|
-
],
|
|
2067
|
-
"attributes": [
|
|
2068
|
-
{
|
|
2069
|
-
"name": "active",
|
|
2070
|
-
"type": {
|
|
2071
|
-
"text": "boolean"
|
|
2072
|
-
},
|
|
2073
|
-
"default": "false",
|
|
2074
|
-
"description": "Indicates the link matches the current location of the page. Programmatically handled by SgdsBreadcrumb to set this prop to true for the last breadcrumb item",
|
|
2075
|
-
"fieldName": "active"
|
|
2076
|
-
}
|
|
2077
|
-
],
|
|
2078
|
-
"superclass": {
|
|
2079
|
-
"name": "SgdsElement",
|
|
2080
|
-
"module": "/src/base/sgds-element"
|
|
2081
|
-
},
|
|
2082
|
-
"summary": "Breadcrumb Item are navigational links used in Breadcrumb component",
|
|
2083
|
-
"tagName": "sgds-breadcrumb-item",
|
|
2084
|
-
"customElement": true,
|
|
2085
|
-
"modulePath": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
2086
|
-
"cssProperties": [],
|
|
2087
|
-
"cssParts": [],
|
|
2088
|
-
"cssStates": [],
|
|
2089
|
-
"events": []
|
|
2090
|
-
}
|
|
2091
|
-
],
|
|
2092
|
-
"exports": [
|
|
2093
|
-
{
|
|
2094
|
-
"kind": "js",
|
|
2095
|
-
"name": "SgdsBreadcrumbItem",
|
|
2096
|
-
"declaration": {
|
|
2097
|
-
"name": "SgdsBreadcrumbItem",
|
|
2098
|
-
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
2099
|
-
}
|
|
2100
|
-
},
|
|
2101
|
-
{
|
|
2102
|
-
"kind": "js",
|
|
2103
|
-
"name": "default",
|
|
2104
|
-
"declaration": {
|
|
2105
|
-
"name": "SgdsBreadcrumbItem",
|
|
2106
|
-
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
]
|
|
2110
|
-
},
|
|
2111
|
-
{
|
|
2112
|
-
"kind": "javascript-module",
|
|
2113
|
-
"path": "src/components/Breadcrumb/sgds-breadcrumb.ts",
|
|
2114
|
-
"declarations": [
|
|
2115
|
-
{
|
|
2116
|
-
"kind": "class",
|
|
2117
|
-
"description": "",
|
|
2118
|
-
"name": "SgdsBreadcrumb",
|
|
2119
|
-
"slots": [
|
|
2120
|
-
{
|
|
2121
|
-
"description": "The slot to pass in custom elements of `SgdsBreadcrumbItems`.",
|
|
2122
|
-
"name": "default"
|
|
2123
|
-
}
|
|
2124
|
-
],
|
|
2125
|
-
"members": [
|
|
2126
|
-
{
|
|
2127
|
-
"kind": "field",
|
|
2128
|
-
"name": "dependencies",
|
|
2129
|
-
"type": {
|
|
2130
|
-
"text": "object"
|
|
2131
|
-
},
|
|
2132
|
-
"static": true,
|
|
2133
|
-
"default": "{\n \"sgds-overflow-menu\": SgdsOverflowMenu\n }"
|
|
2134
|
-
},
|
|
2135
|
-
{
|
|
2136
|
-
"kind": "field",
|
|
2137
|
-
"name": "ariaLabel",
|
|
2138
|
-
"type": {
|
|
2139
|
-
"text": "string"
|
|
2140
|
-
},
|
|
2141
|
-
"default": "\"breadcrumb\"",
|
|
2142
|
-
"description": "The aria-label of nav element within breadcrumb component.",
|
|
2143
|
-
"attribute": "ariaLabel"
|
|
2144
1924
|
},
|
|
2145
1925
|
{
|
|
2146
1926
|
"kind": "method",
|
|
2147
|
-
"name": "
|
|
2148
|
-
"privacy": "
|
|
1927
|
+
"name": "_assignSpinnerTone",
|
|
1928
|
+
"privacy": "protected",
|
|
1929
|
+
"return": {
|
|
1930
|
+
"type": {
|
|
1931
|
+
"text": "SpinnerTone"
|
|
1932
|
+
}
|
|
1933
|
+
},
|
|
2149
1934
|
"parameters": [
|
|
2150
1935
|
{
|
|
2151
|
-
"name": "
|
|
1936
|
+
"name": "buttonTone",
|
|
2152
1937
|
"type": {
|
|
2153
|
-
"text": "
|
|
1938
|
+
"text": "ButtonTone"
|
|
2154
1939
|
}
|
|
2155
|
-
}
|
|
2156
|
-
],
|
|
2157
|
-
"description": "creates `<sgds-breadcrumb-item>\n <sgds-overflow-menu>\n <sgds-dropdown-item></sgds-dropdown-item>\n ...\n </sgds-overflow-menu>\n <sgds-breadcrumb-item>`",
|
|
2158
|
-
"type": {}
|
|
2159
|
-
},
|
|
2160
|
-
{
|
|
2161
|
-
"kind": "method",
|
|
2162
|
-
"name": "_handleSlotChange",
|
|
2163
|
-
"privacy": "private",
|
|
2164
|
-
"parameters": [
|
|
1940
|
+
},
|
|
2165
1941
|
{
|
|
2166
|
-
"name": "
|
|
1942
|
+
"name": "buttonVariant",
|
|
2167
1943
|
"type": {
|
|
2168
|
-
"text": "
|
|
1944
|
+
"text": "ButtonVariant"
|
|
2169
1945
|
}
|
|
2170
1946
|
}
|
|
2171
1947
|
],
|
|
2172
|
-
"type": {}
|
|
1948
|
+
"type": {},
|
|
1949
|
+
"inheritedFrom": {
|
|
1950
|
+
"name": "ButtonElement",
|
|
1951
|
+
"module": "src/base/button-element.ts"
|
|
1952
|
+
}
|
|
2173
1953
|
},
|
|
2174
1954
|
{
|
|
2175
1955
|
"kind": "method",
|
|
@@ -2226,46 +2006,266 @@
|
|
|
2226
2006
|
}
|
|
2227
2007
|
}
|
|
2228
2008
|
],
|
|
2009
|
+
"events": [
|
|
2010
|
+
{
|
|
2011
|
+
"description": "Emitted when the button is blurred.",
|
|
2012
|
+
"name": "sgds-blur",
|
|
2013
|
+
"reactName": "onSgdsBlur"
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
"description": "Emitted when the button is focused.",
|
|
2017
|
+
"name": "sgds-focus",
|
|
2018
|
+
"reactName": "onSgdsFocus"
|
|
2019
|
+
}
|
|
2020
|
+
],
|
|
2229
2021
|
"attributes": [
|
|
2022
|
+
{
|
|
2023
|
+
"name": "name",
|
|
2024
|
+
"type": {
|
|
2025
|
+
"text": "string"
|
|
2026
|
+
},
|
|
2027
|
+
"description": "The name of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
2028
|
+
"fieldName": "name"
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
"name": "value",
|
|
2032
|
+
"type": {
|
|
2033
|
+
"text": "string"
|
|
2034
|
+
},
|
|
2035
|
+
"description": "The value of the button, submitted as a name/value pair with form data only when this button is the submitter. Only works with `type=\"submit\"`. Has no effect when the button is rendered as a link (i.e. when `href` is set).",
|
|
2036
|
+
"fieldName": "value"
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
"name": "type",
|
|
2040
|
+
"type": {
|
|
2041
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
2042
|
+
},
|
|
2043
|
+
"default": "\"button\"",
|
|
2044
|
+
"description": "The behavior of the button with default as `type='button', `reset` resets all the controls to their initial values and `submit` submits the form data to the server",
|
|
2045
|
+
"fieldName": "type"
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
"name": "form",
|
|
2049
|
+
"type": {
|
|
2050
|
+
"text": "string"
|
|
2051
|
+
},
|
|
2052
|
+
"description": "The \"form owner\" to associate the button with. If omitted, the closest containing form will be used instead. The\nvalue of this attribute must be an id of a form in the same document or shadow root as the button.",
|
|
2053
|
+
"fieldName": "form"
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
"name": "formaction",
|
|
2057
|
+
"type": {
|
|
2058
|
+
"text": "string"
|
|
2059
|
+
},
|
|
2060
|
+
"description": "Used to override the form owner's `action` attribute.",
|
|
2061
|
+
"fieldName": "formAction"
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"name": "formmethod",
|
|
2065
|
+
"type": {
|
|
2066
|
+
"text": "\"post\" | \"get\""
|
|
2067
|
+
},
|
|
2068
|
+
"description": "Used to override the form owner's `method` attribute.",
|
|
2069
|
+
"fieldName": "formMethod"
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
"name": "formnovalidate",
|
|
2073
|
+
"type": {
|
|
2074
|
+
"text": "boolean"
|
|
2075
|
+
},
|
|
2076
|
+
"description": "Used to override the form owner's `novalidate` attribute.",
|
|
2077
|
+
"fieldName": "formNoValidate"
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
"name": "formtarget",
|
|
2081
|
+
"type": {
|
|
2082
|
+
"text": "| \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | string"
|
|
2083
|
+
},
|
|
2084
|
+
"description": "Used to override the form owner's `target` attribute.",
|
|
2085
|
+
"fieldName": "formTarget"
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
"name": "fullWidth",
|
|
2089
|
+
"type": {
|
|
2090
|
+
"text": "boolean"
|
|
2091
|
+
},
|
|
2092
|
+
"default": "false",
|
|
2093
|
+
"description": "When set, the button will be in full width.",
|
|
2094
|
+
"fieldName": "fullWidth"
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"name": "hasLeftIconSlot",
|
|
2098
|
+
"type": {
|
|
2099
|
+
"text": "boolean"
|
|
2100
|
+
},
|
|
2101
|
+
"default": "false",
|
|
2102
|
+
"description": "Used only for SSR to indicate the presence of the `leftIcon` slot.",
|
|
2103
|
+
"fieldName": "hasLeftIconSlot"
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"name": "hasRightIconSlot",
|
|
2107
|
+
"type": {
|
|
2108
|
+
"text": "boolean"
|
|
2109
|
+
},
|
|
2110
|
+
"default": "false",
|
|
2111
|
+
"description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
|
|
2112
|
+
"fieldName": "hasRightIconSlot"
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"name": "variant",
|
|
2116
|
+
"type": {
|
|
2117
|
+
"text": "ButtonVariant"
|
|
2118
|
+
},
|
|
2119
|
+
"default": "\"primary\"",
|
|
2120
|
+
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. `danger` is @deprecated since v3.5.6",
|
|
2121
|
+
"fieldName": "variant",
|
|
2122
|
+
"inheritedFrom": {
|
|
2123
|
+
"name": "ButtonElement",
|
|
2124
|
+
"module": "src/base/button-element.ts"
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
"name": "tone",
|
|
2129
|
+
"type": {
|
|
2130
|
+
"text": "ButtonTone"
|
|
2131
|
+
},
|
|
2132
|
+
"default": "\"brand\"",
|
|
2133
|
+
"description": "Sets the visual colour of the button: `brand`, `danger`, `fixed-light`, `neutral`",
|
|
2134
|
+
"fieldName": "tone",
|
|
2135
|
+
"inheritedFrom": {
|
|
2136
|
+
"name": "ButtonElement",
|
|
2137
|
+
"module": "src/base/button-element.ts"
|
|
2138
|
+
}
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
"name": "size",
|
|
2142
|
+
"type": {
|
|
2143
|
+
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
2144
|
+
},
|
|
2145
|
+
"default": "\"md\"",
|
|
2146
|
+
"description": "Specifies a small, medium or large button, the size is medium by default.",
|
|
2147
|
+
"fieldName": "size",
|
|
2148
|
+
"inheritedFrom": {
|
|
2149
|
+
"name": "ButtonElement",
|
|
2150
|
+
"module": "src/base/button-element.ts"
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
"name": "active",
|
|
2155
|
+
"type": {
|
|
2156
|
+
"text": "boolean"
|
|
2157
|
+
},
|
|
2158
|
+
"default": "false",
|
|
2159
|
+
"description": "Manually set the visual state of the button to `:active`",
|
|
2160
|
+
"fieldName": "active",
|
|
2161
|
+
"inheritedFrom": {
|
|
2162
|
+
"name": "ButtonElement",
|
|
2163
|
+
"module": "src/base/button-element.ts"
|
|
2164
|
+
}
|
|
2165
|
+
},
|
|
2166
|
+
{
|
|
2167
|
+
"name": "disabled",
|
|
2168
|
+
"type": {
|
|
2169
|
+
"text": "boolean"
|
|
2170
|
+
},
|
|
2171
|
+
"default": "false",
|
|
2172
|
+
"description": "The disabled state of the button",
|
|
2173
|
+
"fieldName": "disabled",
|
|
2174
|
+
"inheritedFrom": {
|
|
2175
|
+
"name": "ButtonElement",
|
|
2176
|
+
"module": "src/base/button-element.ts"
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
"name": "href",
|
|
2181
|
+
"type": {
|
|
2182
|
+
"text": "string"
|
|
2183
|
+
},
|
|
2184
|
+
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
2185
|
+
"fieldName": "href",
|
|
2186
|
+
"inheritedFrom": {
|
|
2187
|
+
"name": "ButtonElement",
|
|
2188
|
+
"module": "src/base/button-element.ts"
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
"name": "target",
|
|
2193
|
+
"type": {
|
|
2194
|
+
"text": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\""
|
|
2195
|
+
},
|
|
2196
|
+
"default": "\"_self\"",
|
|
2197
|
+
"description": "Where to display the linked URL, as the name for a browsing context. Forwards to the HTMLAnchor target attribute",
|
|
2198
|
+
"fieldName": "target",
|
|
2199
|
+
"inheritedFrom": {
|
|
2200
|
+
"name": "ButtonElement",
|
|
2201
|
+
"module": "src/base/button-element.ts"
|
|
2202
|
+
}
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
"name": "download",
|
|
2206
|
+
"type": {
|
|
2207
|
+
"text": "string"
|
|
2208
|
+
},
|
|
2209
|
+
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
2210
|
+
"fieldName": "download",
|
|
2211
|
+
"inheritedFrom": {
|
|
2212
|
+
"name": "ButtonElement",
|
|
2213
|
+
"module": "src/base/button-element.ts"
|
|
2214
|
+
}
|
|
2215
|
+
},
|
|
2230
2216
|
{
|
|
2231
2217
|
"name": "ariaLabel",
|
|
2232
2218
|
"type": {
|
|
2233
2219
|
"text": "string"
|
|
2234
2220
|
},
|
|
2235
|
-
"
|
|
2236
|
-
"
|
|
2237
|
-
"
|
|
2221
|
+
"description": "The aria-label attribute to passed to button element when necessary",
|
|
2222
|
+
"fieldName": "ariaLabel",
|
|
2223
|
+
"inheritedFrom": {
|
|
2224
|
+
"name": "ButtonElement",
|
|
2225
|
+
"module": "src/base/button-element.ts"
|
|
2226
|
+
}
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
"name": "loading",
|
|
2230
|
+
"type": {
|
|
2231
|
+
"text": "boolean"
|
|
2232
|
+
},
|
|
2233
|
+
"description": "When true, shows a loading spinner",
|
|
2234
|
+
"fieldName": "loading",
|
|
2235
|
+
"inheritedFrom": {
|
|
2236
|
+
"name": "ButtonElement",
|
|
2237
|
+
"module": "src/base/button-element.ts"
|
|
2238
|
+
}
|
|
2238
2239
|
}
|
|
2239
2240
|
],
|
|
2240
2241
|
"superclass": {
|
|
2241
|
-
"name": "
|
|
2242
|
-
"module": "/src/base/
|
|
2242
|
+
"name": "ButtonElement",
|
|
2243
|
+
"module": "/src/base/button-element"
|
|
2243
2244
|
},
|
|
2244
|
-
"summary": "
|
|
2245
|
-
"tagName": "sgds-
|
|
2245
|
+
"summary": "Custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.",
|
|
2246
|
+
"tagName": "sgds-button",
|
|
2246
2247
|
"customElement": true,
|
|
2247
|
-
"modulePath": "src/components/
|
|
2248
|
+
"modulePath": "src/components/Button/sgds-button.ts",
|
|
2248
2249
|
"cssProperties": [],
|
|
2249
2250
|
"cssParts": [],
|
|
2250
|
-
"cssStates": []
|
|
2251
|
-
"events": []
|
|
2251
|
+
"cssStates": []
|
|
2252
2252
|
}
|
|
2253
2253
|
],
|
|
2254
2254
|
"exports": [
|
|
2255
2255
|
{
|
|
2256
2256
|
"kind": "js",
|
|
2257
|
-
"name": "
|
|
2257
|
+
"name": "SgdsButton",
|
|
2258
2258
|
"declaration": {
|
|
2259
|
-
"name": "
|
|
2260
|
-
"module": "src/components/
|
|
2259
|
+
"name": "SgdsButton",
|
|
2260
|
+
"module": "src/components/Button/sgds-button.ts"
|
|
2261
2261
|
}
|
|
2262
2262
|
},
|
|
2263
2263
|
{
|
|
2264
2264
|
"kind": "js",
|
|
2265
2265
|
"name": "default",
|
|
2266
2266
|
"declaration": {
|
|
2267
|
-
"name": "
|
|
2268
|
-
"module": "src/components/
|
|
2267
|
+
"name": "SgdsButton",
|
|
2268
|
+
"module": "src/components/Button/sgds-button.ts"
|
|
2269
2269
|
}
|
|
2270
2270
|
}
|
|
2271
2271
|
]
|
|
@@ -27538,7 +27538,7 @@
|
|
|
27538
27538
|
"package": {
|
|
27539
27539
|
"name": "@govtechsg/sgds-web-component",
|
|
27540
27540
|
"description": "",
|
|
27541
|
-
"version": "3.21.2-rc.
|
|
27541
|
+
"version": "3.21.2-rc.2",
|
|
27542
27542
|
"author": "GovTechSG",
|
|
27543
27543
|
"license": "MIT"
|
|
27544
27544
|
}
|