@govtechsg/sgds-web-component 3.21.2-rc.3 → 3.21.2-rc.4
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/base/button-element.d.ts +1 -1
- package/base/button-element.js +1 -1
- package/base/button-element.js.map +1 -1
- package/components/Button/index.umd.min.js.map +1 -1
- package/components/Datepicker/index.umd.min.js.map +1 -1
- package/components/FileUpload/index.umd.min.js.map +1 -1
- package/components/Footer/index.umd.min.js +1 -1
- package/components/Footer/index.umd.min.js.map +1 -1
- package/components/IconButton/index.umd.min.js.map +1 -1
- package/components/Mainnav/index.umd.min.js.map +1 -1
- package/components/Pagination/index.umd.min.js.map +1 -1
- package/components/QuantityToggle/index.umd.min.js.map +1 -1
- package/components/Sidebar/index.umd.min.js.map +1 -1
- package/components/Subnav/index.umd.min.js +1 -1
- package/components/Subnav/index.umd.min.js.map +1 -1
- package/components/SystemBanner/index.umd.min.js.map +1 -1
- package/components/Table/index.umd.min.js +6 -7
- package/components/Table/index.umd.min.js.map +1 -1
- package/components/Table/sgds-table.js +6 -6
- package/components/Table/sgds-table.js.map +1 -1
- package/components/index.umd.min.js +7 -8
- package/components/index.umd.min.js.map +1 -1
- package/css/fouc.css +1 -1
- package/css/grid.css +30 -4
- package/css/grid.js +1 -1
- package/custom-elements.json +655 -655
- package/index.umd.min.js +7 -8
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/base/button-element.cjs.js +1 -1
- package/react/base/button-element.cjs.js.map +1 -1
- package/react/base/button-element.js +1 -1
- package/react/base/button-element.js.map +1 -1
- package/react/components/Table/sgds-table.cjs.js +6 -6
- package/react/components/Table/sgds-table.cjs.js.map +1 -1
- package/react/components/Table/sgds-table.js +6 -6
- package/react/components/Table/sgds-table.js.map +1 -1
- package/react/css/grid.cjs.js +1 -1
- package/react/css/grid.js +1 -1
- package/react/index.cjs.js +6 -6
- package/react/index.d.ts +1 -1
- package/react/index.js +1 -1
- package/themes/root.css +2 -0
- package/types/react.d.ts +18 -18
package/custom-elements.json
CHANGED
|
@@ -1214,211 +1214,445 @@
|
|
|
1214
1214
|
},
|
|
1215
1215
|
{
|
|
1216
1216
|
"kind": "javascript-module",
|
|
1217
|
-
"path": "src/components/
|
|
1217
|
+
"path": "src/components/Button/sgds-button.ts",
|
|
1218
1218
|
"declarations": [
|
|
1219
1219
|
{
|
|
1220
1220
|
"kind": "class",
|
|
1221
1221
|
"description": "",
|
|
1222
|
-
"name": "
|
|
1222
|
+
"name": "SgdsButton",
|
|
1223
1223
|
"slots": [
|
|
1224
1224
|
{
|
|
1225
|
-
"description": "The
|
|
1225
|
+
"description": "The button's label.",
|
|
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"
|
|
1227
1235
|
}
|
|
1228
1236
|
],
|
|
1229
1237
|
"members": [
|
|
1230
1238
|
{
|
|
1231
1239
|
"kind": "field",
|
|
1232
|
-
"name": "
|
|
1240
|
+
"name": "name",
|
|
1233
1241
|
"type": {
|
|
1234
|
-
"text": "
|
|
1242
|
+
"text": "string"
|
|
1235
1243
|
},
|
|
1236
|
-
"
|
|
1237
|
-
"
|
|
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
|
|
1238
1247
|
},
|
|
1239
1248
|
{
|
|
1240
1249
|
"kind": "field",
|
|
1241
|
-
"name": "
|
|
1250
|
+
"name": "value",
|
|
1242
1251
|
"type": {
|
|
1243
|
-
"text": "
|
|
1252
|
+
"text": "string"
|
|
1244
1253
|
},
|
|
1245
|
-
"
|
|
1246
|
-
"
|
|
1247
|
-
"attribute": "active",
|
|
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",
|
|
1248
1256
|
"reflects": true
|
|
1249
1257
|
},
|
|
1250
1258
|
{
|
|
1251
1259
|
"kind": "field",
|
|
1252
|
-
"name": "
|
|
1253
|
-
"
|
|
1254
|
-
|
|
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
|
|
1255
1268
|
},
|
|
1256
1269
|
{
|
|
1257
|
-
"kind": "
|
|
1258
|
-
"name": "
|
|
1259
|
-
"
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
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
|
-
}
|
|
1270
|
+
"kind": "field",
|
|
1271
|
+
"name": "form",
|
|
1272
|
+
"type": {
|
|
1273
|
+
"text": "string"
|
|
1274
|
+
},
|
|
1275
|
+
"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.",
|
|
1276
|
+
"attribute": "form",
|
|
1277
|
+
"reflects": true
|
|
1280
1278
|
},
|
|
1281
1279
|
{
|
|
1282
|
-
"kind": "
|
|
1283
|
-
"name": "
|
|
1284
|
-
"
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
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": [
|
|
1280
|
+
"kind": "field",
|
|
1281
|
+
"name": "formAction",
|
|
1282
|
+
"type": {
|
|
1283
|
+
"text": "string"
|
|
1284
|
+
},
|
|
1285
|
+
"description": "Used to override the form owner's `action` attribute.",
|
|
1286
|
+
"attribute": "formaction",
|
|
1287
|
+
"reflects": true
|
|
1288
|
+
},
|
|
1312
1289
|
{
|
|
1313
|
-
"
|
|
1290
|
+
"kind": "field",
|
|
1291
|
+
"name": "formMethod",
|
|
1292
|
+
"type": {
|
|
1293
|
+
"text": "\"post\" | \"get\""
|
|
1294
|
+
},
|
|
1295
|
+
"description": "Used to override the form owner's `method` attribute.",
|
|
1296
|
+
"attribute": "formmethod",
|
|
1297
|
+
"reflects": true
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"kind": "field",
|
|
1301
|
+
"name": "formNoValidate",
|
|
1314
1302
|
"type": {
|
|
1315
1303
|
"text": "boolean"
|
|
1316
1304
|
},
|
|
1317
|
-
"
|
|
1318
|
-
"
|
|
1319
|
-
"
|
|
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": [
|
|
1305
|
+
"description": "Used to override the form owner's `novalidate` attribute.",
|
|
1306
|
+
"attribute": "formnovalidate",
|
|
1307
|
+
"reflects": true
|
|
1308
|
+
},
|
|
1364
1309
|
{
|
|
1365
|
-
"
|
|
1366
|
-
"name": "
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1310
|
+
"kind": "field",
|
|
1311
|
+
"name": "formTarget",
|
|
1312
|
+
"type": {
|
|
1313
|
+
"text": "| \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | string"
|
|
1314
|
+
},
|
|
1315
|
+
"description": "Used to override the form owner's `target` attribute.",
|
|
1316
|
+
"attribute": "formtarget",
|
|
1317
|
+
"reflects": true
|
|
1318
|
+
},
|
|
1370
1319
|
{
|
|
1371
1320
|
"kind": "field",
|
|
1372
|
-
"name": "
|
|
1321
|
+
"name": "fullWidth",
|
|
1373
1322
|
"type": {
|
|
1374
|
-
"text": "
|
|
1323
|
+
"text": "boolean"
|
|
1375
1324
|
},
|
|
1376
|
-
"
|
|
1377
|
-
"
|
|
1325
|
+
"default": "false",
|
|
1326
|
+
"description": "When set, the button will be in full width.",
|
|
1327
|
+
"attribute": "fullWidth",
|
|
1328
|
+
"reflects": true
|
|
1378
1329
|
},
|
|
1379
1330
|
{
|
|
1380
1331
|
"kind": "field",
|
|
1381
|
-
"name": "
|
|
1332
|
+
"name": "hasLeftIconSlot",
|
|
1382
1333
|
"type": {
|
|
1383
|
-
"text": "
|
|
1334
|
+
"text": "boolean"
|
|
1384
1335
|
},
|
|
1385
|
-
"default": "
|
|
1386
|
-
"description": "
|
|
1387
|
-
"attribute": "
|
|
1336
|
+
"default": "false",
|
|
1337
|
+
"description": "Used only for SSR to indicate the presence of the `leftIcon` slot.",
|
|
1338
|
+
"attribute": "hasLeftIconSlot"
|
|
1388
1339
|
},
|
|
1389
1340
|
{
|
|
1390
|
-
"kind": "
|
|
1391
|
-
"name": "
|
|
1341
|
+
"kind": "field",
|
|
1342
|
+
"name": "hasRightIconSlot",
|
|
1343
|
+
"type": {
|
|
1344
|
+
"text": "boolean"
|
|
1345
|
+
},
|
|
1346
|
+
"default": "false",
|
|
1347
|
+
"description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
|
|
1348
|
+
"attribute": "hasRightIconSlot"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"kind": "field",
|
|
1352
|
+
"name": "hasSlotController",
|
|
1392
1353
|
"privacy": "private",
|
|
1393
|
-
"
|
|
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>`",
|
|
1354
|
+
"default": "new HasSlotController(this, \"leftIcon\", \"rightIcon\")",
|
|
1402
1355
|
"type": {}
|
|
1403
1356
|
},
|
|
1404
1357
|
{
|
|
1405
1358
|
"kind": "method",
|
|
1406
|
-
"name": "
|
|
1407
|
-
"privacy": "
|
|
1359
|
+
"name": "_handleClick",
|
|
1360
|
+
"privacy": "protected",
|
|
1408
1361
|
"parameters": [
|
|
1409
1362
|
{
|
|
1410
|
-
"name": "
|
|
1363
|
+
"name": "event",
|
|
1411
1364
|
"type": {
|
|
1412
|
-
"text": "
|
|
1365
|
+
"text": "MouseEvent"
|
|
1413
1366
|
}
|
|
1414
1367
|
}
|
|
1415
1368
|
],
|
|
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",
|
|
1416
1379
|
"type": {}
|
|
1417
1380
|
},
|
|
1418
1381
|
{
|
|
1419
|
-
"kind": "
|
|
1420
|
-
"name": "
|
|
1421
|
-
"
|
|
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`. The `danger` value is deprecated since v3.5.6 — use `variant=\"primary\"` with `tone=\"danger\"` instead.",
|
|
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
|
+
{
|
|
1653
|
+
"kind": "method",
|
|
1654
|
+
"name": "emit",
|
|
1655
|
+
"parameters": [
|
|
1422
1656
|
{
|
|
1423
1657
|
"name": "name",
|
|
1424
1658
|
"type": {
|
|
@@ -1470,486 +1704,472 @@
|
|
|
1470
1704
|
}
|
|
1471
1705
|
}
|
|
1472
1706
|
],
|
|
1473
|
-
"
|
|
1474
|
-
{
|
|
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"
|
|
1529
|
-
},
|
|
1707
|
+
"events": [
|
|
1530
1708
|
{
|
|
1531
|
-
"description": "
|
|
1532
|
-
"name": "
|
|
1709
|
+
"description": "Emitted when the button is blurred.",
|
|
1710
|
+
"name": "sgds-blur",
|
|
1711
|
+
"reactName": "onSgdsBlur"
|
|
1533
1712
|
},
|
|
1534
1713
|
{
|
|
1535
|
-
"description": "
|
|
1536
|
-
"name": "
|
|
1714
|
+
"description": "Emitted when the button is focused.",
|
|
1715
|
+
"name": "sgds-focus",
|
|
1716
|
+
"reactName": "onSgdsFocus"
|
|
1537
1717
|
}
|
|
1538
1718
|
],
|
|
1539
|
-
"
|
|
1719
|
+
"attributes": [
|
|
1540
1720
|
{
|
|
1541
|
-
"kind": "field",
|
|
1542
1721
|
"name": "name",
|
|
1543
1722
|
"type": {
|
|
1544
1723
|
"text": "string"
|
|
1545
1724
|
},
|
|
1546
1725
|
"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).",
|
|
1547
|
-
"
|
|
1548
|
-
"reflects": true
|
|
1726
|
+
"fieldName": "name"
|
|
1549
1727
|
},
|
|
1550
1728
|
{
|
|
1551
|
-
"kind": "field",
|
|
1552
1729
|
"name": "value",
|
|
1553
1730
|
"type": {
|
|
1554
1731
|
"text": "string"
|
|
1555
1732
|
},
|
|
1556
1733
|
"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).",
|
|
1557
|
-
"
|
|
1558
|
-
"reflects": true
|
|
1734
|
+
"fieldName": "value"
|
|
1559
1735
|
},
|
|
1560
1736
|
{
|
|
1561
|
-
"kind": "field",
|
|
1562
1737
|
"name": "type",
|
|
1563
1738
|
"type": {
|
|
1564
1739
|
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1565
1740
|
},
|
|
1566
1741
|
"default": "\"button\"",
|
|
1567
1742
|
"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",
|
|
1568
|
-
"
|
|
1569
|
-
"reflects": true
|
|
1743
|
+
"fieldName": "type"
|
|
1570
1744
|
},
|
|
1571
1745
|
{
|
|
1572
|
-
"kind": "field",
|
|
1573
1746
|
"name": "form",
|
|
1574
1747
|
"type": {
|
|
1575
1748
|
"text": "string"
|
|
1576
1749
|
},
|
|
1577
1750
|
"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.",
|
|
1578
|
-
"
|
|
1579
|
-
"reflects": true
|
|
1751
|
+
"fieldName": "form"
|
|
1580
1752
|
},
|
|
1581
1753
|
{
|
|
1582
|
-
"
|
|
1583
|
-
"name": "formAction",
|
|
1754
|
+
"name": "formaction",
|
|
1584
1755
|
"type": {
|
|
1585
1756
|
"text": "string"
|
|
1586
1757
|
},
|
|
1587
1758
|
"description": "Used to override the form owner's `action` attribute.",
|
|
1588
|
-
"
|
|
1589
|
-
"reflects": true
|
|
1759
|
+
"fieldName": "formAction"
|
|
1590
1760
|
},
|
|
1591
1761
|
{
|
|
1592
|
-
"
|
|
1593
|
-
"name": "formMethod",
|
|
1762
|
+
"name": "formmethod",
|
|
1594
1763
|
"type": {
|
|
1595
1764
|
"text": "\"post\" | \"get\""
|
|
1596
1765
|
},
|
|
1597
1766
|
"description": "Used to override the form owner's `method` attribute.",
|
|
1598
|
-
"
|
|
1599
|
-
"reflects": true
|
|
1767
|
+
"fieldName": "formMethod"
|
|
1600
1768
|
},
|
|
1601
1769
|
{
|
|
1602
|
-
"
|
|
1603
|
-
"name": "formNoValidate",
|
|
1770
|
+
"name": "formnovalidate",
|
|
1604
1771
|
"type": {
|
|
1605
1772
|
"text": "boolean"
|
|
1606
1773
|
},
|
|
1607
1774
|
"description": "Used to override the form owner's `novalidate` attribute.",
|
|
1608
|
-
"
|
|
1609
|
-
"reflects": true
|
|
1775
|
+
"fieldName": "formNoValidate"
|
|
1610
1776
|
},
|
|
1611
1777
|
{
|
|
1612
|
-
"
|
|
1613
|
-
"name": "formTarget",
|
|
1778
|
+
"name": "formtarget",
|
|
1614
1779
|
"type": {
|
|
1615
1780
|
"text": "| \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | string"
|
|
1616
1781
|
},
|
|
1617
1782
|
"description": "Used to override the form owner's `target` attribute.",
|
|
1618
|
-
"
|
|
1619
|
-
"reflects": true
|
|
1783
|
+
"fieldName": "formTarget"
|
|
1620
1784
|
},
|
|
1621
1785
|
{
|
|
1622
|
-
"kind": "field",
|
|
1623
1786
|
"name": "fullWidth",
|
|
1624
1787
|
"type": {
|
|
1625
1788
|
"text": "boolean"
|
|
1626
1789
|
},
|
|
1627
1790
|
"default": "false",
|
|
1628
1791
|
"description": "When set, the button will be in full width.",
|
|
1629
|
-
"
|
|
1630
|
-
"reflects": true
|
|
1792
|
+
"fieldName": "fullWidth"
|
|
1631
1793
|
},
|
|
1632
1794
|
{
|
|
1633
|
-
"kind": "field",
|
|
1634
1795
|
"name": "hasLeftIconSlot",
|
|
1635
1796
|
"type": {
|
|
1636
1797
|
"text": "boolean"
|
|
1637
1798
|
},
|
|
1638
1799
|
"default": "false",
|
|
1639
1800
|
"description": "Used only for SSR to indicate the presence of the `leftIcon` slot.",
|
|
1640
|
-
"
|
|
1801
|
+
"fieldName": "hasLeftIconSlot"
|
|
1641
1802
|
},
|
|
1642
1803
|
{
|
|
1643
|
-
"kind": "field",
|
|
1644
1804
|
"name": "hasRightIconSlot",
|
|
1645
1805
|
"type": {
|
|
1646
1806
|
"text": "boolean"
|
|
1647
1807
|
},
|
|
1648
1808
|
"default": "false",
|
|
1649
1809
|
"description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
|
|
1650
|
-
"
|
|
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": {}
|
|
1810
|
+
"fieldName": "hasRightIconSlot"
|
|
1682
1811
|
},
|
|
1683
1812
|
{
|
|
1684
|
-
"kind": "field",
|
|
1685
1813
|
"name": "variant",
|
|
1686
1814
|
"type": {
|
|
1687
|
-
"text": "
|
|
1815
|
+
"text": "ButtonVariant"
|
|
1688
1816
|
},
|
|
1689
1817
|
"default": "\"primary\"",
|
|
1690
|
-
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. `danger` is
|
|
1691
|
-
"
|
|
1692
|
-
"reflects": true,
|
|
1818
|
+
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. The `danger` value is deprecated since v3.5.6 — use `variant=\"primary\"` with `tone=\"danger\"` instead.",
|
|
1819
|
+
"fieldName": "variant",
|
|
1693
1820
|
"inheritedFrom": {
|
|
1694
1821
|
"name": "ButtonElement",
|
|
1695
1822
|
"module": "src/base/button-element.ts"
|
|
1696
1823
|
}
|
|
1697
1824
|
},
|
|
1698
1825
|
{
|
|
1699
|
-
"kind": "field",
|
|
1700
1826
|
"name": "tone",
|
|
1701
1827
|
"type": {
|
|
1702
|
-
"text": "
|
|
1828
|
+
"text": "ButtonTone"
|
|
1703
1829
|
},
|
|
1704
1830
|
"default": "\"brand\"",
|
|
1705
1831
|
"description": "Sets the visual colour of the button: `brand`, `danger`, `fixed-light`, `neutral`",
|
|
1706
|
-
"
|
|
1707
|
-
"reflects": true,
|
|
1832
|
+
"fieldName": "tone",
|
|
1708
1833
|
"inheritedFrom": {
|
|
1709
1834
|
"name": "ButtonElement",
|
|
1710
1835
|
"module": "src/base/button-element.ts"
|
|
1711
1836
|
}
|
|
1712
1837
|
},
|
|
1713
1838
|
{
|
|
1714
|
-
"kind": "field",
|
|
1715
1839
|
"name": "size",
|
|
1716
1840
|
"type": {
|
|
1717
1841
|
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
1718
1842
|
},
|
|
1719
1843
|
"default": "\"md\"",
|
|
1720
1844
|
"description": "Specifies a small, medium or large button, the size is medium by default.",
|
|
1721
|
-
"
|
|
1722
|
-
"reflects": true,
|
|
1845
|
+
"fieldName": "size",
|
|
1723
1846
|
"inheritedFrom": {
|
|
1724
1847
|
"name": "ButtonElement",
|
|
1725
1848
|
"module": "src/base/button-element.ts"
|
|
1726
1849
|
}
|
|
1727
1850
|
},
|
|
1728
1851
|
{
|
|
1729
|
-
"kind": "field",
|
|
1730
1852
|
"name": "active",
|
|
1731
1853
|
"type": {
|
|
1732
1854
|
"text": "boolean"
|
|
1733
1855
|
},
|
|
1734
1856
|
"default": "false",
|
|
1735
1857
|
"description": "Manually set the visual state of the button to `:active`",
|
|
1736
|
-
"
|
|
1737
|
-
"reflects": true,
|
|
1858
|
+
"fieldName": "active",
|
|
1738
1859
|
"inheritedFrom": {
|
|
1739
1860
|
"name": "ButtonElement",
|
|
1740
1861
|
"module": "src/base/button-element.ts"
|
|
1741
1862
|
}
|
|
1742
1863
|
},
|
|
1743
1864
|
{
|
|
1744
|
-
"kind": "field",
|
|
1745
1865
|
"name": "disabled",
|
|
1746
1866
|
"type": {
|
|
1747
1867
|
"text": "boolean"
|
|
1748
1868
|
},
|
|
1749
1869
|
"default": "false",
|
|
1750
1870
|
"description": "The disabled state of the button",
|
|
1751
|
-
"
|
|
1752
|
-
"reflects": true,
|
|
1871
|
+
"fieldName": "disabled",
|
|
1753
1872
|
"inheritedFrom": {
|
|
1754
1873
|
"name": "ButtonElement",
|
|
1755
1874
|
"module": "src/base/button-element.ts"
|
|
1756
1875
|
}
|
|
1757
1876
|
},
|
|
1758
1877
|
{
|
|
1759
|
-
"kind": "field",
|
|
1760
1878
|
"name": "href",
|
|
1761
1879
|
"type": {
|
|
1762
1880
|
"text": "string"
|
|
1763
1881
|
},
|
|
1764
1882
|
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
1765
|
-
"
|
|
1766
|
-
"reflects": true,
|
|
1883
|
+
"fieldName": "href",
|
|
1767
1884
|
"inheritedFrom": {
|
|
1768
1885
|
"name": "ButtonElement",
|
|
1769
1886
|
"module": "src/base/button-element.ts"
|
|
1770
1887
|
}
|
|
1771
1888
|
},
|
|
1772
1889
|
{
|
|
1773
|
-
"kind": "field",
|
|
1774
1890
|
"name": "target",
|
|
1775
1891
|
"type": {
|
|
1776
1892
|
"text": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\""
|
|
1777
1893
|
},
|
|
1778
|
-
"default": "\"_self\"",
|
|
1779
|
-
"description": "Where to display the linked URL, as the name for a browsing context. Forwards to the HTMLAnchor target attribute",
|
|
1780
|
-
"
|
|
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": {},
|
|
1894
|
+
"default": "\"_self\"",
|
|
1895
|
+
"description": "Where to display the linked URL, as the name for a browsing context. Forwards to the HTMLAnchor target attribute",
|
|
1896
|
+
"fieldName": "target",
|
|
1853
1897
|
"inheritedFrom": {
|
|
1854
1898
|
"name": "ButtonElement",
|
|
1855
1899
|
"module": "src/base/button-element.ts"
|
|
1856
1900
|
}
|
|
1857
1901
|
},
|
|
1858
1902
|
{
|
|
1859
|
-
"
|
|
1860
|
-
"
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
"
|
|
1903
|
+
"name": "download",
|
|
1904
|
+
"type": {
|
|
1905
|
+
"text": "string"
|
|
1906
|
+
},
|
|
1907
|
+
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
1908
|
+
"fieldName": "download",
|
|
1864
1909
|
"inheritedFrom": {
|
|
1865
1910
|
"name": "ButtonElement",
|
|
1866
1911
|
"module": "src/base/button-element.ts"
|
|
1867
1912
|
}
|
|
1868
1913
|
},
|
|
1869
1914
|
{
|
|
1870
|
-
"
|
|
1871
|
-
"
|
|
1872
|
-
|
|
1873
|
-
|
|
1915
|
+
"name": "ariaLabel",
|
|
1916
|
+
"type": {
|
|
1917
|
+
"text": "string"
|
|
1918
|
+
},
|
|
1919
|
+
"description": "The aria-label attribute to passed to button element when necessary",
|
|
1920
|
+
"fieldName": "ariaLabel",
|
|
1874
1921
|
"inheritedFrom": {
|
|
1875
1922
|
"name": "ButtonElement",
|
|
1876
1923
|
"module": "src/base/button-element.ts"
|
|
1877
1924
|
}
|
|
1878
1925
|
},
|
|
1879
1926
|
{
|
|
1880
|
-
"
|
|
1881
|
-
"
|
|
1882
|
-
|
|
1883
|
-
|
|
1927
|
+
"name": "loading",
|
|
1928
|
+
"type": {
|
|
1929
|
+
"text": "boolean"
|
|
1930
|
+
},
|
|
1931
|
+
"description": "When true, shows a loading spinner",
|
|
1932
|
+
"fieldName": "loading",
|
|
1884
1933
|
"inheritedFrom": {
|
|
1885
1934
|
"name": "ButtonElement",
|
|
1886
1935
|
"module": "src/base/button-element.ts"
|
|
1887
1936
|
}
|
|
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": {}
|
|
1888
2011
|
},
|
|
1889
2012
|
{
|
|
1890
2013
|
"kind": "method",
|
|
1891
|
-
"name": "
|
|
1892
|
-
"privacy": "protected",
|
|
2014
|
+
"name": "emit",
|
|
1893
2015
|
"parameters": [
|
|
1894
2016
|
{
|
|
1895
|
-
"name": "
|
|
2017
|
+
"name": "name",
|
|
1896
2018
|
"type": {
|
|
1897
|
-
"text": "
|
|
2019
|
+
"text": "string"
|
|
2020
|
+
}
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
"name": "options",
|
|
2024
|
+
"optional": true,
|
|
2025
|
+
"type": {
|
|
2026
|
+
"text": "CustomEventInit<T>"
|
|
1898
2027
|
}
|
|
1899
2028
|
}
|
|
1900
2029
|
],
|
|
2030
|
+
"description": "Emits a custom event with more convenient defaults.",
|
|
1901
2031
|
"type": {},
|
|
1902
2032
|
"inheritedFrom": {
|
|
1903
|
-
"name": "
|
|
1904
|
-
"module": "src/base/
|
|
2033
|
+
"name": "SgdsElement",
|
|
2034
|
+
"module": "src/base/sgds-element.ts"
|
|
1905
2035
|
}
|
|
1906
2036
|
},
|
|
1907
2037
|
{
|
|
1908
2038
|
"kind": "method",
|
|
1909
|
-
"name": "
|
|
1910
|
-
"
|
|
2039
|
+
"name": "define",
|
|
2040
|
+
"static": true,
|
|
1911
2041
|
"parameters": [
|
|
1912
2042
|
{
|
|
1913
|
-
"name": "
|
|
2043
|
+
"name": "name",
|
|
1914
2044
|
"type": {
|
|
1915
|
-
"text": "
|
|
2045
|
+
"text": "string"
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
"name": "elementConstructor",
|
|
2050
|
+
"default": "this"
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"name": "options",
|
|
2054
|
+
"default": "{}",
|
|
2055
|
+
"type": {
|
|
2056
|
+
"text": "ElementDefinitionOptions"
|
|
1916
2057
|
}
|
|
1917
2058
|
}
|
|
1918
2059
|
],
|
|
1919
2060
|
"type": {},
|
|
1920
2061
|
"inheritedFrom": {
|
|
1921
|
-
"name": "
|
|
1922
|
-
"module": "src/base/
|
|
2062
|
+
"name": "SgdsElement",
|
|
2063
|
+
"module": "src/base/sgds-element.ts"
|
|
1923
2064
|
}
|
|
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 }"
|
|
1924
2134
|
},
|
|
1925
2135
|
{
|
|
1926
|
-
"kind": "
|
|
1927
|
-
"name": "
|
|
1928
|
-
"
|
|
1929
|
-
|
|
1930
|
-
"type": {
|
|
1931
|
-
"text": "SpinnerTone"
|
|
1932
|
-
}
|
|
2136
|
+
"kind": "field",
|
|
2137
|
+
"name": "ariaLabel",
|
|
2138
|
+
"type": {
|
|
2139
|
+
"text": "string"
|
|
1933
2140
|
},
|
|
2141
|
+
"default": "\"breadcrumb\"",
|
|
2142
|
+
"description": "The aria-label of nav element within breadcrumb component.",
|
|
2143
|
+
"attribute": "ariaLabel"
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
"kind": "method",
|
|
2147
|
+
"name": "_replaceExcessItemsWithDropdown",
|
|
2148
|
+
"privacy": "private",
|
|
1934
2149
|
"parameters": [
|
|
1935
2150
|
{
|
|
1936
|
-
"name": "
|
|
2151
|
+
"name": "items",
|
|
1937
2152
|
"type": {
|
|
1938
|
-
"text": "
|
|
2153
|
+
"text": "SgdsBreadcrumbItem[]"
|
|
1939
2154
|
}
|
|
1940
|
-
}
|
|
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": [
|
|
1941
2165
|
{
|
|
1942
|
-
"name": "
|
|
2166
|
+
"name": "e",
|
|
1943
2167
|
"type": {
|
|
1944
|
-
"text": "
|
|
2168
|
+
"text": "Event"
|
|
1945
2169
|
}
|
|
1946
2170
|
}
|
|
1947
2171
|
],
|
|
1948
|
-
"type": {}
|
|
1949
|
-
"inheritedFrom": {
|
|
1950
|
-
"name": "ButtonElement",
|
|
1951
|
-
"module": "src/base/button-element.ts"
|
|
1952
|
-
}
|
|
2172
|
+
"type": {}
|
|
1953
2173
|
},
|
|
1954
2174
|
{
|
|
1955
2175
|
"kind": "method",
|
|
@@ -2006,266 +2226,46 @@
|
|
|
2006
2226
|
}
|
|
2007
2227
|
}
|
|
2008
2228
|
],
|
|
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
|
-
],
|
|
2021
2229
|
"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
|
-
},
|
|
2216
2230
|
{
|
|
2217
2231
|
"name": "ariaLabel",
|
|
2218
2232
|
"type": {
|
|
2219
2233
|
"text": "string"
|
|
2220
2234
|
},
|
|
2221
|
-
"
|
|
2222
|
-
"
|
|
2223
|
-
"
|
|
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
|
-
}
|
|
2235
|
+
"default": "\"breadcrumb\"",
|
|
2236
|
+
"description": "The aria-label of nav element within breadcrumb component.",
|
|
2237
|
+
"fieldName": "ariaLabel"
|
|
2239
2238
|
}
|
|
2240
2239
|
],
|
|
2241
2240
|
"superclass": {
|
|
2242
|
-
"name": "
|
|
2243
|
-
"module": "/src/base/
|
|
2241
|
+
"name": "SgdsElement",
|
|
2242
|
+
"module": "/src/base/sgds-element"
|
|
2244
2243
|
},
|
|
2245
|
-
"summary": "
|
|
2246
|
-
"tagName": "sgds-
|
|
2244
|
+
"summary": "Breadcrumbs help users to navigate and understand where they are on the current website or service.",
|
|
2245
|
+
"tagName": "sgds-breadcrumb",
|
|
2247
2246
|
"customElement": true,
|
|
2248
|
-
"modulePath": "src/components/
|
|
2247
|
+
"modulePath": "src/components/Breadcrumb/sgds-breadcrumb.ts",
|
|
2249
2248
|
"cssProperties": [],
|
|
2250
2249
|
"cssParts": [],
|
|
2251
|
-
"cssStates": []
|
|
2250
|
+
"cssStates": [],
|
|
2251
|
+
"events": []
|
|
2252
2252
|
}
|
|
2253
2253
|
],
|
|
2254
2254
|
"exports": [
|
|
2255
2255
|
{
|
|
2256
2256
|
"kind": "js",
|
|
2257
|
-
"name": "
|
|
2257
|
+
"name": "SgdsBreadcrumb",
|
|
2258
2258
|
"declaration": {
|
|
2259
|
-
"name": "
|
|
2260
|
-
"module": "src/components/
|
|
2259
|
+
"name": "SgdsBreadcrumb",
|
|
2260
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb.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": "SgdsBreadcrumb",
|
|
2268
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb.ts"
|
|
2269
2269
|
}
|
|
2270
2270
|
}
|
|
2271
2271
|
]
|
|
@@ -10163,7 +10163,7 @@
|
|
|
10163
10163
|
"text": "\"primary\" | \"outline\" | \"ghost\" | \"danger\""
|
|
10164
10164
|
},
|
|
10165
10165
|
"default": "\"primary\"",
|
|
10166
|
-
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. `danger` is
|
|
10166
|
+
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. The `danger` value is deprecated since v3.5.6 — use `variant=\"primary\"` with `tone=\"danger\"` instead.",
|
|
10167
10167
|
"attribute": "variant",
|
|
10168
10168
|
"reflects": true,
|
|
10169
10169
|
"inheritedFrom": {
|
|
@@ -10527,7 +10527,7 @@
|
|
|
10527
10527
|
"text": "ButtonVariant"
|
|
10528
10528
|
},
|
|
10529
10529
|
"default": "\"primary\"",
|
|
10530
|
-
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. `danger` is
|
|
10530
|
+
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. The `danger` value is deprecated since v3.5.6 — use `variant=\"primary\"` with `tone=\"danger\"` instead.",
|
|
10531
10531
|
"fieldName": "variant",
|
|
10532
10532
|
"inheritedFrom": {
|
|
10533
10533
|
"name": "ButtonElement",
|
|
@@ -24708,7 +24708,7 @@
|
|
|
24708
24708
|
"text": "\"primary\" | \"outline\" | \"ghost\" | \"danger\""
|
|
24709
24709
|
},
|
|
24710
24710
|
"default": "\"primary\"",
|
|
24711
|
-
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. `danger` is
|
|
24711
|
+
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. The `danger` value is deprecated since v3.5.6 — use `variant=\"primary\"` with `tone=\"danger\"` instead.",
|
|
24712
24712
|
"attribute": "variant",
|
|
24713
24713
|
"reflects": true
|
|
24714
24714
|
},
|
|
@@ -24976,7 +24976,7 @@
|
|
|
24976
24976
|
"text": "ButtonVariant"
|
|
24977
24977
|
},
|
|
24978
24978
|
"default": "\"primary\"",
|
|
24979
|
-
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. `danger` is
|
|
24979
|
+
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. The `danger` value is deprecated since v3.5.6 — use `variant=\"primary\"` with `tone=\"danger\"` instead.",
|
|
24980
24980
|
"fieldName": "variant"
|
|
24981
24981
|
},
|
|
24982
24982
|
{
|
|
@@ -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.4",
|
|
27542
27542
|
"author": "GovTechSG",
|
|
27543
27543
|
"license": "MIT"
|
|
27544
27544
|
}
|