@govtechsg/sgds-web-component 3.23.0 → 3.24.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/components/ComboBox/index.umd.min.js +1 -1
  2. package/components/ComboBox/index.umd.min.js.map +1 -1
  3. package/components/ComboBox/sgds-combo-box.d.ts +2 -0
  4. package/components/ComboBox/sgds-combo-box.js +14 -5
  5. package/components/ComboBox/sgds-combo-box.js.map +1 -1
  6. package/components/Datepicker/datepicker-calendar.js +4 -4
  7. package/components/Datepicker/datepicker-calendar.js.map +1 -1
  8. package/components/Datepicker/datepicker-header.js +2 -2
  9. package/components/Datepicker/datepicker-header.js.map +1 -1
  10. package/components/Datepicker/datepicker-input.js +13 -48
  11. package/components/Datepicker/datepicker-input.js.map +1 -1
  12. package/components/Datepicker/index.umd.min.js +342 -342
  13. package/components/Datepicker/index.umd.min.js.map +1 -1
  14. package/components/Datepicker/sgds-datepicker.js +6 -6
  15. package/components/Datepicker/sgds-datepicker.js.map +1 -1
  16. package/components/index.umd.min.js +219 -219
  17. package/components/index.umd.min.js.map +1 -1
  18. package/css/fouc.css +2 -2
  19. package/css/reboot.css +12 -6
  20. package/css/utility.css +8 -0
  21. package/custom-elements.json +753 -746
  22. package/index.umd.min.js +296 -296
  23. package/index.umd.min.js.map +1 -1
  24. package/package.json +1 -3
  25. package/react/components/ComboBox/sgds-combo-box.cjs.js +14 -5
  26. package/react/components/ComboBox/sgds-combo-box.cjs.js.map +1 -1
  27. package/react/components/ComboBox/sgds-combo-box.js +14 -5
  28. package/react/components/ComboBox/sgds-combo-box.js.map +1 -1
  29. package/react/components/Datepicker/datepicker-calendar.cjs.js +4 -4
  30. package/react/components/Datepicker/datepicker-calendar.cjs.js.map +1 -1
  31. package/react/components/Datepicker/datepicker-calendar.js +4 -4
  32. package/react/components/Datepicker/datepicker-calendar.js.map +1 -1
  33. package/react/components/Datepicker/datepicker-header.cjs.js +2 -2
  34. package/react/components/Datepicker/datepicker-header.cjs.js.map +1 -1
  35. package/react/components/Datepicker/datepicker-header.js +2 -2
  36. package/react/components/Datepicker/datepicker-header.js.map +1 -1
  37. package/react/components/Datepicker/datepicker-input.cjs.js +13 -52
  38. package/react/components/Datepicker/datepicker-input.cjs.js.map +1 -1
  39. package/react/components/Datepicker/datepicker-input.js +13 -48
  40. package/react/components/Datepicker/datepicker-input.js.map +1 -1
  41. package/react/components/Datepicker/sgds-datepicker.cjs.js +6 -6
  42. package/react/components/Datepicker/sgds-datepicker.cjs.js.map +1 -1
  43. package/react/components/Datepicker/sgds-datepicker.js +6 -6
  44. package/react/components/Datepicker/sgds-datepicker.js.map +1 -1
  45. package/react/index.cjs.js +8 -8
  46. package/react/index.d.ts +2 -2
  47. package/react/index.js +2 -2
  48. package/react/utils/date-helpers.cjs.js +120 -0
  49. package/react/utils/date-helpers.cjs.js.map +1 -0
  50. package/react/utils/date-helpers.js +108 -0
  51. package/react/utils/date-helpers.js.map +1 -0
  52. package/react/utils/date-mask.cjs.js +203 -0
  53. package/react/utils/date-mask.cjs.js.map +1 -0
  54. package/react/utils/date-mask.js +199 -0
  55. package/react/utils/date-mask.js.map +1 -0
  56. package/react/utils/time.cjs.js +7 -7
  57. package/react/utils/time.cjs.js.map +1 -1
  58. package/react/utils/time.js +1 -1
  59. package/react/utils/time.js.map +1 -1
  60. package/themes/responsive.css +15 -0
  61. package/themes/root.css +5 -0
  62. package/types/react.d.ts +18 -18
  63. package/utils/date-helpers.d.ts +22 -0
  64. package/utils/date-helpers.js +107 -0
  65. package/utils/date-helpers.js.map +1 -0
  66. package/utils/date-mask.d.ts +44 -0
  67. package/utils/date-mask.js +198 -0
  68. package/utils/date-mask.js.map +1 -0
  69. package/utils/time.js +1 -1
  70. package/utils/time.js.map +1 -1
@@ -1214,318 +1214,620 @@
1214
1214
  },
1215
1215
  {
1216
1216
  "kind": "javascript-module",
1217
- "path": "src/components/Button/sgds-button.ts",
1217
+ "path": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
1218
1218
  "declarations": [
1219
1219
  {
1220
1220
  "kind": "class",
1221
1221
  "description": "",
1222
- "name": "SgdsButton",
1222
+ "name": "SgdsBreadcrumbItem",
1223
1223
  "slots": [
1224
1224
  {
1225
- "description": "The button's label.",
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": "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
- "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
1236
+ "static": true,
1237
+ "default": "{\n \"sgds-link\": SgdsLink,\n \"sgds-icon\": SgdsIcon\n }"
1278
1238
  },
1279
1239
  {
1280
1240
  "kind": "field",
1281
- "name": "formAction",
1241
+ "name": "active",
1282
1242
  "type": {
1283
- "text": "string"
1243
+ "text": "boolean"
1284
1244
  },
1285
- "description": "Used to override the form owner's `action` attribute.",
1286
- "attribute": "formaction",
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": "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
1252
+ "name": "_preventNavigation",
1253
+ "privacy": "private",
1254
+ "type": {}
1298
1255
  },
1299
1256
  {
1300
- "kind": "field",
1301
- "name": "formNoValidate",
1302
- "type": {
1303
- "text": "boolean"
1304
- },
1305
- "description": "Used to override the form owner's `novalidate` attribute.",
1306
- "attribute": "formnovalidate",
1307
- "reflects": true
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": "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
- },
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
- "kind": "field",
1321
- "name": "fullWidth",
1313
+ "name": "active",
1322
1314
  "type": {
1323
1315
  "text": "boolean"
1324
1316
  },
1325
1317
  "default": "false",
1326
- "description": "When set, the button will be in full width.",
1327
- "attribute": "fullWidth",
1328
- "reflects": true
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": "hasLeftIconSlot",
1372
+ "name": "dependencies",
1333
1373
  "type": {
1334
- "text": "boolean"
1374
+ "text": "object"
1335
1375
  },
1336
- "default": "false",
1337
- "description": "Used only for SSR to indicate the presence of the `leftIcon` slot.",
1338
- "attribute": "hasLeftIconSlot"
1376
+ "static": true,
1377
+ "default": "{\n \"sgds-overflow-menu\": SgdsOverflowMenu\n }"
1339
1378
  },
1340
1379
  {
1341
1380
  "kind": "field",
1342
- "name": "hasRightIconSlot",
1381
+ "name": "ariaLabel",
1343
1382
  "type": {
1344
- "text": "boolean"
1383
+ "text": "string"
1345
1384
  },
1346
- "default": "false",
1347
- "description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
1348
- "attribute": "hasRightIconSlot"
1385
+ "default": "\"breadcrumb\"",
1386
+ "description": "The aria-label of nav element within breadcrumb component.",
1387
+ "attribute": "ariaLabel"
1349
1388
  },
1350
1389
  {
1351
- "kind": "field",
1352
- "name": "hasSlotController",
1390
+ "kind": "method",
1391
+ "name": "_replaceExcessItemsWithDropdown",
1353
1392
  "privacy": "private",
1354
- "default": "new HasSlotController(this, \"leftIcon\", \"rightIcon\")",
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": "_handleClick",
1360
- "privacy": "protected",
1406
+ "name": "_handleSlotChange",
1407
+ "privacy": "private",
1361
1408
  "parameters": [
1362
1409
  {
1363
- "name": "event",
1410
+ "name": "e",
1364
1411
  "type": {
1365
- "text": "MouseEvent"
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
1418
  {
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,
1419
+ "kind": "method",
1420
+ "name": "emit",
1421
+ "parameters": [
1422
+ {
1423
+ "name": "name",
1424
+ "type": {
1425
+ "text": "string"
1426
+ }
1427
+ },
1428
+ {
1429
+ "name": "options",
1430
+ "optional": true,
1431
+ "type": {
1432
+ "text": "CustomEventInit<T>"
1433
+ }
1434
+ }
1435
+ ],
1436
+ "description": "Emits a custom event with more convenient defaults.",
1437
+ "type": {},
1391
1438
  "inheritedFrom": {
1392
- "name": "ButtonElement",
1393
- "module": "src/base/button-element.ts"
1439
+ "name": "SgdsElement",
1440
+ "module": "src/base/sgds-element.ts"
1441
+ }
1442
+ },
1443
+ {
1444
+ "kind": "method",
1445
+ "name": "define",
1446
+ "static": true,
1447
+ "parameters": [
1448
+ {
1449
+ "name": "name",
1450
+ "type": {
1451
+ "text": "string"
1452
+ }
1453
+ },
1454
+ {
1455
+ "name": "elementConstructor",
1456
+ "default": "this"
1457
+ },
1458
+ {
1459
+ "name": "options",
1460
+ "default": "{}",
1461
+ "type": {
1462
+ "text": "ElementDefinitionOptions"
1463
+ }
1464
+ }
1465
+ ],
1466
+ "type": {},
1467
+ "inheritedFrom": {
1468
+ "name": "SgdsElement",
1469
+ "module": "src/base/sgds-element.ts"
1394
1470
  }
1471
+ }
1472
+ ],
1473
+ "attributes": [
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
+ },
1530
+ {
1531
+ "description": "The slot for icon to the left of the button text",
1532
+ "name": "leftIcon"
1395
1533
  },
1534
+ {
1535
+ "description": "The slot for icon to the right of the button text",
1536
+ "name": "rightIcon"
1537
+ }
1538
+ ],
1539
+ "members": [
1396
1540
  {
1397
1541
  "kind": "field",
1398
- "name": "tone",
1542
+ "name": "name",
1399
1543
  "type": {
1400
- "text": "\"brand\" | \"danger\" | \"fixed-light\" | \"neutral\""
1544
+ "text": "string"
1401
1545
  },
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
- }
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).",
1547
+ "attribute": "name",
1548
+ "reflects": true
1410
1549
  },
1411
1550
  {
1412
1551
  "kind": "field",
1413
- "name": "size",
1552
+ "name": "value",
1414
1553
  "type": {
1415
- "text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
1554
+ "text": "string"
1416
1555
  },
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
- }
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).",
1557
+ "attribute": "value",
1558
+ "reflects": true
1425
1559
  },
1426
1560
  {
1427
1561
  "kind": "field",
1428
- "name": "active",
1562
+ "name": "type",
1429
1563
  "type": {
1430
- "text": "boolean"
1564
+ "text": "\"button\" | \"submit\" | \"reset\""
1431
1565
  },
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
- }
1566
+ "default": "\"button\"",
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",
1568
+ "attribute": "type",
1569
+ "reflects": true
1440
1570
  },
1441
1571
  {
1442
1572
  "kind": "field",
1443
- "name": "disabled",
1573
+ "name": "form",
1444
1574
  "type": {
1445
- "text": "boolean"
1575
+ "text": "string"
1446
1576
  },
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
- }
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.",
1578
+ "attribute": "form",
1579
+ "reflects": true
1455
1580
  },
1456
1581
  {
1457
1582
  "kind": "field",
1458
- "name": "href",
1583
+ "name": "formAction",
1459
1584
  "type": {
1460
1585
  "text": "string"
1461
1586
  },
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
- }
1587
+ "description": "Used to override the form owner's `action` attribute.",
1588
+ "attribute": "formaction",
1589
+ "reflects": true
1469
1590
  },
1470
1591
  {
1471
1592
  "kind": "field",
1472
- "name": "target",
1593
+ "name": "formMethod",
1473
1594
  "type": {
1474
- "text": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\""
1595
+ "text": "\"post\" | \"get\""
1475
1596
  },
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
- }
1597
+ "description": "Used to override the form owner's `method` attribute.",
1598
+ "attribute": "formmethod",
1599
+ "reflects": true
1484
1600
  },
1485
1601
  {
1486
1602
  "kind": "field",
1487
- "name": "download",
1603
+ "name": "formNoValidate",
1488
1604
  "type": {
1489
- "text": "string"
1605
+ "text": "boolean"
1490
1606
  },
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
- }
1607
+ "description": "Used to override the form owner's `novalidate` attribute.",
1608
+ "attribute": "formnovalidate",
1609
+ "reflects": true
1498
1610
  },
1499
1611
  {
1500
1612
  "kind": "field",
1501
- "name": "ariaLabel",
1613
+ "name": "formTarget",
1502
1614
  "type": {
1503
- "text": "string"
1615
+ "text": "| \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | string"
1504
1616
  },
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
- }
1617
+ "description": "Used to override the form owner's `target` attribute.",
1618
+ "attribute": "formtarget",
1619
+ "reflects": true
1511
1620
  },
1512
1621
  {
1513
1622
  "kind": "field",
1514
- "name": "loading",
1623
+ "name": "fullWidth",
1515
1624
  "type": {
1516
1625
  "text": "boolean"
1517
1626
  },
1518
- "description": "When true, shows a loading spinner",
1519
- "attribute": "loading",
1520
- "inheritedFrom": {
1521
- "name": "ButtonElement",
1522
- "module": "src/base/button-element.ts"
1523
- }
1627
+ "default": "false",
1628
+ "description": "When set, the button will be in full width.",
1629
+ "attribute": "fullWidth",
1630
+ "reflects": true
1524
1631
  },
1525
1632
  {
1526
- "kind": "method",
1527
- "name": "focus",
1528
- "privacy": "public",
1633
+ "kind": "field",
1634
+ "name": "hasLeftIconSlot",
1635
+ "type": {
1636
+ "text": "boolean"
1637
+ },
1638
+ "default": "false",
1639
+ "description": "Used only for SSR to indicate the presence of the `leftIcon` slot.",
1640
+ "attribute": "hasLeftIconSlot"
1641
+ },
1642
+ {
1643
+ "kind": "field",
1644
+ "name": "hasRightIconSlot",
1645
+ "type": {
1646
+ "text": "boolean"
1647
+ },
1648
+ "default": "false",
1649
+ "description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
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": {}
1682
+ },
1683
+ {
1684
+ "kind": "field",
1685
+ "name": "variant",
1686
+ "type": {
1687
+ "text": "\"primary\" | \"outline\" | \"ghost\" | \"danger\""
1688
+ },
1689
+ "default": "\"primary\"",
1690
+ "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.",
1691
+ "attribute": "variant",
1692
+ "reflects": true,
1693
+ "inheritedFrom": {
1694
+ "name": "ButtonElement",
1695
+ "module": "src/base/button-element.ts"
1696
+ }
1697
+ },
1698
+ {
1699
+ "kind": "field",
1700
+ "name": "tone",
1701
+ "type": {
1702
+ "text": "\"brand\" | \"danger\" | \"fixed-light\" | \"neutral\""
1703
+ },
1704
+ "default": "\"brand\"",
1705
+ "description": "Sets the visual colour of the button: `brand`, `danger`, `fixed-light`, `neutral`",
1706
+ "attribute": "tone",
1707
+ "reflects": true,
1708
+ "inheritedFrom": {
1709
+ "name": "ButtonElement",
1710
+ "module": "src/base/button-element.ts"
1711
+ }
1712
+ },
1713
+ {
1714
+ "kind": "field",
1715
+ "name": "size",
1716
+ "type": {
1717
+ "text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
1718
+ },
1719
+ "default": "\"md\"",
1720
+ "description": "Specifies a small, medium or large button, the size is medium by default.",
1721
+ "attribute": "size",
1722
+ "reflects": true,
1723
+ "inheritedFrom": {
1724
+ "name": "ButtonElement",
1725
+ "module": "src/base/button-element.ts"
1726
+ }
1727
+ },
1728
+ {
1729
+ "kind": "field",
1730
+ "name": "active",
1731
+ "type": {
1732
+ "text": "boolean"
1733
+ },
1734
+ "default": "false",
1735
+ "description": "Manually set the visual state of the button to `:active`",
1736
+ "attribute": "active",
1737
+ "reflects": true,
1738
+ "inheritedFrom": {
1739
+ "name": "ButtonElement",
1740
+ "module": "src/base/button-element.ts"
1741
+ }
1742
+ },
1743
+ {
1744
+ "kind": "field",
1745
+ "name": "disabled",
1746
+ "type": {
1747
+ "text": "boolean"
1748
+ },
1749
+ "default": "false",
1750
+ "description": "The disabled state of the button",
1751
+ "attribute": "disabled",
1752
+ "reflects": true,
1753
+ "inheritedFrom": {
1754
+ "name": "ButtonElement",
1755
+ "module": "src/base/button-element.ts"
1756
+ }
1757
+ },
1758
+ {
1759
+ "kind": "field",
1760
+ "name": "href",
1761
+ "type": {
1762
+ "text": "string"
1763
+ },
1764
+ "description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
1765
+ "attribute": "href",
1766
+ "reflects": true,
1767
+ "inheritedFrom": {
1768
+ "name": "ButtonElement",
1769
+ "module": "src/base/button-element.ts"
1770
+ }
1771
+ },
1772
+ {
1773
+ "kind": "field",
1774
+ "name": "target",
1775
+ "type": {
1776
+ "text": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\""
1777
+ },
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
+ "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",
1529
1831
  "parameters": [
1530
1832
  {
1531
1833
  "name": "options",
@@ -2037,616 +2339,209 @@
2037
2339
  "type": {
2038
2340
  "text": "HTMLAnchorElement[] | SgdsLink[]"
2039
2341
  },
2040
- "privacy": "private"
2041
- },
2042
- {
2043
- "kind": "field",
2044
- "name": "imagePosition",
2045
- "type": {
2046
- "text": "CardImagePosition"
2047
- },
2048
- "default": "\"before\"",
2049
- "description": "Sets the image position of the card. Available options: `before`, `after`",
2050
- "attribute": "imagePosition",
2051
- "reflects": true
2052
- },
2053
- {
2054
- "kind": "field",
2055
- "name": "imageAdjustment",
2056
- "type": {
2057
- "text": "CardImageAdjustment"
2058
- },
2059
- "default": "\"default\"",
2060
- "description": "Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio`",
2061
- "attribute": "imageAdjustment",
2062
- "reflects": true
2063
- },
2064
- {
2065
- "kind": "field",
2066
- "name": "hasImageSlot",
2067
- "type": {
2068
- "text": "boolean"
2069
- },
2070
- "default": "false",
2071
- "description": "Used only for SSR to indicate the presence of the `image` slot.",
2072
- "attribute": "hasImageSlot"
2073
- },
2074
- {
2075
- "kind": "field",
2076
- "name": "hasIconSlot",
2077
- "type": {
2078
- "text": "boolean"
2079
- },
2080
- "default": "false",
2081
- "description": "Used only for SSR to indicate the presence of the `icon` slot.",
2082
- "attribute": "hasIconSlot"
2083
- },
2084
- {
2085
- "kind": "field",
2086
- "name": "hasUpperSlot",
2087
- "type": {
2088
- "text": "boolean"
2089
- },
2090
- "default": "false",
2091
- "description": "Used only for SSR to indicate the presence of the `upper` slot.",
2092
- "attribute": "hasUpperSlot"
2093
- },
2094
- {
2095
- "kind": "field",
2096
- "name": "linkSlotItems",
2097
- "type": {
2098
- "text": "HTMLAnchorElement | null"
2099
- },
2100
- "privacy": "private"
2101
- },
2102
- {
2103
- "kind": "field",
2104
- "name": "footerSlotItems",
2105
- "type": {
2106
- "text": "HTMLAnchorElement | null"
2107
- },
2108
- "privacy": "private"
2109
- },
2110
- {
2111
- "kind": "field",
2112
- "name": "hasSlotController",
2113
- "privacy": "private",
2114
- "default": "new HasSlotController(this, \"image\", \"icon\", \"upper\")",
2115
- "type": {}
2116
- },
2117
- {
2118
- "kind": "method",
2119
- "name": "handleImgSlotChange",
2120
- "parameters": [
2121
- {
2122
- "name": "e",
2123
- "type": {
2124
- "text": "Event"
2125
- }
2126
- }
2127
- ],
2128
- "type": {}
2129
- },
2130
- {
2131
- "kind": "field",
2132
- "name": "stretchedLink",
2133
- "type": {
2134
- "text": "boolean"
2135
- },
2136
- "default": "false",
2137
- "description": "Extends the link passed in either `footer` or `link`(deprecated) slot.",
2138
- "attribute": "stretchedLink",
2139
- "reflects": true,
2140
- "inheritedFrom": {
2141
- "name": "CardElement",
2142
- "module": "src/base/card-element.ts"
2143
- }
2144
- },
2145
- {
2146
- "kind": "field",
2147
- "name": "disabled",
2148
- "type": {
2149
- "text": "boolean"
2150
- },
2151
- "default": "false",
2152
- "description": "Disables the card",
2153
- "attribute": "disabled",
2154
- "reflects": true,
2155
- "inheritedFrom": {
2156
- "name": "CardElement",
2157
- "module": "src/base/card-element.ts"
2158
- }
2159
- },
2160
- {
2161
- "kind": "field",
2162
- "name": "hideBorder",
2163
- "type": {
2164
- "text": "boolean"
2165
- },
2166
- "default": "false",
2167
- "description": "When true, hides the default border of the card.",
2168
- "attribute": "hideBorder",
2169
- "reflects": true,
2170
- "inheritedFrom": {
2171
- "name": "CardElement",
2172
- "module": "src/base/card-element.ts"
2173
- }
2174
- },
2175
- {
2176
- "kind": "field",
2177
- "name": "tinted",
2178
- "type": {
2179
- "text": "boolean"
2180
- },
2181
- "default": "false",
2182
- "description": "When true, applies a tinted background color to the card.",
2183
- "attribute": "tinted",
2184
- "reflects": true,
2185
- "inheritedFrom": {
2186
- "name": "CardElement",
2187
- "module": "src/base/card-element.ts"
2188
- }
2189
- },
2190
- {
2191
- "kind": "field",
2192
- "name": "orientation",
2193
- "type": {
2194
- "text": "CardOrientation"
2195
- },
2196
- "default": "\"vertical\"",
2197
- "description": "Sets the orientation of the card. Available options: `vertical`, `horizontal`",
2198
- "attribute": "orientation",
2199
- "reflects": true,
2200
- "inheritedFrom": {
2201
- "name": "CardElement",
2202
- "module": "src/base/card-element.ts"
2203
- }
2204
- },
2205
- {
2206
- "kind": "method",
2207
- "name": "handleTitleSlotChange",
2208
- "parameters": [
2209
- {
2210
- "name": "e",
2211
- "type": {
2212
- "text": "Event"
2213
- }
2214
- }
2215
- ],
2216
- "type": {},
2217
- "inheritedFrom": {
2218
- "name": "CardElement",
2219
- "module": "src/base/card-element.ts"
2220
- }
2221
- },
2222
- {
2223
- "kind": "method",
2224
- "name": "_forwardAnchorAttributes",
2225
- "privacy": "protected",
2226
- "parameters": [
2227
- {
2228
- "name": "anchor",
2229
- "type": {
2230
- "text": "HTMLAnchorElement | null"
2231
- }
2232
- }
2233
- ],
2234
- "type": {},
2235
- "inheritedFrom": {
2236
- "name": "CardElement",
2237
- "module": "src/base/card-element.ts"
2238
- }
2239
- },
2240
- {
2241
- "kind": "method",
2242
- "name": "warnLinkSlotMisused",
2243
- "parameters": [
2244
- {
2245
- "name": "e",
2246
- "type": {
2247
- "text": "Event"
2248
- }
2249
- }
2250
- ],
2251
- "type": {},
2252
- "inheritedFrom": {
2253
- "name": "CardElement",
2254
- "module": "src/base/card-element.ts"
2255
- }
2256
- },
2257
- {
2258
- "kind": "method",
2259
- "name": "emit",
2260
- "parameters": [
2261
- {
2262
- "name": "name",
2263
- "type": {
2264
- "text": "string"
2265
- }
2266
- },
2267
- {
2268
- "name": "options",
2269
- "optional": true,
2270
- "type": {
2271
- "text": "CustomEventInit<T>"
2272
- }
2273
- }
2274
- ],
2275
- "description": "Emits a custom event with more convenient defaults.",
2276
- "type": {},
2277
- "inheritedFrom": {
2278
- "name": "SgdsElement",
2279
- "module": "src/base/sgds-element.ts"
2280
- }
2281
- },
2282
- {
2283
- "kind": "method",
2284
- "name": "define",
2285
- "static": true,
2286
- "parameters": [
2287
- {
2288
- "name": "name",
2289
- "type": {
2290
- "text": "string"
2291
- }
2292
- },
2293
- {
2294
- "name": "elementConstructor",
2295
- "default": "this"
2296
- },
2297
- {
2298
- "name": "options",
2299
- "default": "{}",
2300
- "type": {
2301
- "text": "ElementDefinitionOptions"
2302
- }
2303
- }
2304
- ],
2305
- "type": {},
2306
- "inheritedFrom": {
2307
- "name": "SgdsElement",
2308
- "module": "src/base/sgds-element.ts"
2309
- }
2310
- }
2311
- ],
2312
- "attributes": [
2342
+ "privacy": "private"
2343
+ },
2313
2344
  {
2345
+ "kind": "field",
2314
2346
  "name": "imagePosition",
2315
2347
  "type": {
2316
2348
  "text": "CardImagePosition"
2317
2349
  },
2318
2350
  "default": "\"before\"",
2319
2351
  "description": "Sets the image position of the card. Available options: `before`, `after`",
2320
- "fieldName": "imagePosition"
2352
+ "attribute": "imagePosition",
2353
+ "reflects": true
2321
2354
  },
2322
2355
  {
2356
+ "kind": "field",
2323
2357
  "name": "imageAdjustment",
2324
2358
  "type": {
2325
2359
  "text": "CardImageAdjustment"
2326
2360
  },
2327
2361
  "default": "\"default\"",
2328
2362
  "description": "Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio`",
2329
- "fieldName": "imageAdjustment"
2363
+ "attribute": "imageAdjustment",
2364
+ "reflects": true
2330
2365
  },
2331
2366
  {
2367
+ "kind": "field",
2332
2368
  "name": "hasImageSlot",
2333
2369
  "type": {
2334
2370
  "text": "boolean"
2335
2371
  },
2336
2372
  "default": "false",
2337
2373
  "description": "Used only for SSR to indicate the presence of the `image` slot.",
2338
- "fieldName": "hasImageSlot"
2374
+ "attribute": "hasImageSlot"
2339
2375
  },
2340
2376
  {
2377
+ "kind": "field",
2341
2378
  "name": "hasIconSlot",
2342
2379
  "type": {
2343
2380
  "text": "boolean"
2344
2381
  },
2345
2382
  "default": "false",
2346
2383
  "description": "Used only for SSR to indicate the presence of the `icon` slot.",
2347
- "fieldName": "hasIconSlot"
2384
+ "attribute": "hasIconSlot"
2348
2385
  },
2349
2386
  {
2387
+ "kind": "field",
2350
2388
  "name": "hasUpperSlot",
2351
2389
  "type": {
2352
2390
  "text": "boolean"
2353
2391
  },
2354
2392
  "default": "false",
2355
2393
  "description": "Used only for SSR to indicate the presence of the `upper` slot.",
2356
- "fieldName": "hasUpperSlot"
2357
- },
2358
- {
2359
- "name": "stretchedLink",
2360
- "type": {
2361
- "text": "boolean"
2362
- },
2363
- "default": "false",
2364
- "description": "Extends the link passed in either `footer` or `link`(deprecated) slot.",
2365
- "fieldName": "stretchedLink",
2366
- "inheritedFrom": {
2367
- "name": "CardElement",
2368
- "module": "src/base/card-element.ts"
2369
- }
2370
- },
2371
- {
2372
- "name": "disabled",
2373
- "type": {
2374
- "text": "boolean"
2375
- },
2376
- "default": "false",
2377
- "description": "Disables the card",
2378
- "fieldName": "disabled",
2379
- "inheritedFrom": {
2380
- "name": "CardElement",
2381
- "module": "src/base/card-element.ts"
2382
- }
2383
- },
2384
- {
2385
- "name": "hideBorder",
2386
- "type": {
2387
- "text": "boolean"
2388
- },
2389
- "default": "false",
2390
- "description": "When true, hides the default border of the card.",
2391
- "fieldName": "hideBorder",
2392
- "inheritedFrom": {
2393
- "name": "CardElement",
2394
- "module": "src/base/card-element.ts"
2395
- }
2396
- },
2397
- {
2398
- "name": "tinted",
2399
- "type": {
2400
- "text": "boolean"
2401
- },
2402
- "default": "false",
2403
- "description": "When true, applies a tinted background color to the card.",
2404
- "fieldName": "tinted",
2405
- "inheritedFrom": {
2406
- "name": "CardElement",
2407
- "module": "src/base/card-element.ts"
2408
- }
2394
+ "attribute": "hasUpperSlot"
2409
2395
  },
2410
- {
2411
- "name": "orientation",
2412
- "type": {
2413
- "text": "CardOrientation"
2414
- },
2415
- "default": "\"vertical\"",
2416
- "description": "Sets the orientation of the card. Available options: `vertical`, `horizontal`",
2417
- "fieldName": "orientation",
2418
- "inheritedFrom": {
2419
- "name": "CardElement",
2420
- "module": "src/base/card-element.ts"
2421
- }
2422
- }
2423
- ],
2424
- "superclass": {
2425
- "name": "CardElement",
2426
- "module": "/src/base/card-element"
2427
- },
2428
- "summary": "Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.",
2429
- "tagName": "sgds-card",
2430
- "customElement": true,
2431
- "modulePath": "src/components/Card/sgds-card.ts",
2432
- "cssProperties": [],
2433
- "cssParts": [],
2434
- "cssStates": [],
2435
- "events": []
2436
- }
2437
- ],
2438
- "exports": [
2439
- {
2440
- "kind": "js",
2441
- "name": "SgdsCard",
2442
- "declaration": {
2443
- "name": "SgdsCard",
2444
- "module": "src/components/Card/sgds-card.ts"
2445
- }
2446
- },
2447
- {
2448
- "kind": "js",
2449
- "name": "default",
2450
- "declaration": {
2451
- "name": "SgdsCard",
2452
- "module": "src/components/Card/sgds-card.ts"
2453
- }
2454
- }
2455
- ]
2456
- },
2457
- {
2458
- "kind": "javascript-module",
2459
- "path": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
2460
- "declarations": [
2461
- {
2462
- "kind": "class",
2463
- "description": "",
2464
- "name": "SgdsBreadcrumbItem",
2465
- "slots": [
2466
- {
2467
- "description": "The link of the item. Pass in anchor tags into this slot",
2468
- "name": "default"
2469
- }
2470
- ],
2471
- "members": [
2472
2396
  {
2473
2397
  "kind": "field",
2474
- "name": "dependencies",
2398
+ "name": "linkSlotItems",
2475
2399
  "type": {
2476
- "text": "Record<string, typeof SgdsElement>"
2400
+ "text": "HTMLAnchorElement | null"
2477
2401
  },
2478
- "static": true,
2479
- "default": "{\n \"sgds-link\": SgdsLink,\n \"sgds-icon\": SgdsIcon\n }"
2402
+ "privacy": "private"
2480
2403
  },
2481
2404
  {
2482
2405
  "kind": "field",
2483
- "name": "active",
2406
+ "name": "footerSlotItems",
2484
2407
  "type": {
2485
- "text": "boolean"
2408
+ "text": "HTMLAnchorElement | null"
2486
2409
  },
2487
- "default": "false",
2488
- "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",
2489
- "attribute": "active",
2490
- "reflects": true
2410
+ "privacy": "private"
2491
2411
  },
2492
2412
  {
2493
2413
  "kind": "field",
2494
- "name": "_preventNavigation",
2414
+ "name": "hasSlotController",
2495
2415
  "privacy": "private",
2416
+ "default": "new HasSlotController(this, \"image\", \"icon\", \"upper\")",
2496
2417
  "type": {}
2497
2418
  },
2498
2419
  {
2499
2420
  "kind": "method",
2500
- "name": "emit",
2501
- "parameters": [
2502
- {
2503
- "name": "name",
2504
- "type": {
2505
- "text": "string"
2506
- }
2507
- },
2508
- {
2509
- "name": "options",
2510
- "optional": true,
2511
- "type": {
2512
- "text": "CustomEventInit<T>"
2513
- }
2514
- }
2515
- ],
2516
- "description": "Emits a custom event with more convenient defaults.",
2517
- "type": {},
2518
- "inheritedFrom": {
2519
- "name": "SgdsElement",
2520
- "module": "src/base/sgds-element.ts"
2521
- }
2522
- },
2523
- {
2524
- "kind": "method",
2525
- "name": "define",
2526
- "static": true,
2421
+ "name": "handleImgSlotChange",
2527
2422
  "parameters": [
2528
2423
  {
2529
- "name": "name",
2530
- "type": {
2531
- "text": "string"
2532
- }
2533
- },
2534
- {
2535
- "name": "elementConstructor",
2536
- "default": "this"
2537
- },
2538
- {
2539
- "name": "options",
2540
- "default": "{}",
2424
+ "name": "e",
2541
2425
  "type": {
2542
- "text": "ElementDefinitionOptions"
2426
+ "text": "Event"
2543
2427
  }
2544
2428
  }
2545
2429
  ],
2546
- "type": {},
2547
- "inheritedFrom": {
2548
- "name": "SgdsElement",
2549
- "module": "src/base/sgds-element.ts"
2550
- }
2551
- }
2552
- ],
2553
- "attributes": [
2554
- {
2555
- "name": "active",
2556
- "type": {
2557
- "text": "boolean"
2558
- },
2559
- "default": "false",
2560
- "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",
2561
- "fieldName": "active"
2562
- }
2563
- ],
2564
- "superclass": {
2565
- "name": "SgdsElement",
2566
- "module": "/src/base/sgds-element"
2567
- },
2568
- "summary": "Breadcrumb Item are navigational links used in Breadcrumb component",
2569
- "tagName": "sgds-breadcrumb-item",
2570
- "customElement": true,
2571
- "modulePath": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
2572
- "cssProperties": [],
2573
- "cssParts": [],
2574
- "cssStates": [],
2575
- "events": []
2576
- }
2577
- ],
2578
- "exports": [
2579
- {
2580
- "kind": "js",
2581
- "name": "SgdsBreadcrumbItem",
2582
- "declaration": {
2583
- "name": "SgdsBreadcrumbItem",
2584
- "module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
2585
- }
2586
- },
2587
- {
2588
- "kind": "js",
2589
- "name": "default",
2590
- "declaration": {
2591
- "name": "SgdsBreadcrumbItem",
2592
- "module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
2593
- }
2594
- }
2595
- ]
2596
- },
2597
- {
2598
- "kind": "javascript-module",
2599
- "path": "src/components/Breadcrumb/sgds-breadcrumb.ts",
2600
- "declarations": [
2601
- {
2602
- "kind": "class",
2603
- "description": "",
2604
- "name": "SgdsBreadcrumb",
2605
- "slots": [
2430
+ "type": {}
2431
+ },
2606
2432
  {
2607
- "description": "The slot to pass in custom elements of `SgdsBreadcrumbItems`.",
2608
- "name": "default"
2609
- }
2610
- ],
2611
- "members": [
2433
+ "kind": "field",
2434
+ "name": "stretchedLink",
2435
+ "type": {
2436
+ "text": "boolean"
2437
+ },
2438
+ "default": "false",
2439
+ "description": "Extends the link passed in either `footer` or `link`(deprecated) slot.",
2440
+ "attribute": "stretchedLink",
2441
+ "reflects": true,
2442
+ "inheritedFrom": {
2443
+ "name": "CardElement",
2444
+ "module": "src/base/card-element.ts"
2445
+ }
2446
+ },
2612
2447
  {
2613
2448
  "kind": "field",
2614
- "name": "dependencies",
2449
+ "name": "disabled",
2615
2450
  "type": {
2616
- "text": "object"
2451
+ "text": "boolean"
2617
2452
  },
2618
- "static": true,
2619
- "default": "{\n \"sgds-overflow-menu\": SgdsOverflowMenu\n }"
2453
+ "default": "false",
2454
+ "description": "Disables the card",
2455
+ "attribute": "disabled",
2456
+ "reflects": true,
2457
+ "inheritedFrom": {
2458
+ "name": "CardElement",
2459
+ "module": "src/base/card-element.ts"
2460
+ }
2620
2461
  },
2621
2462
  {
2622
2463
  "kind": "field",
2623
- "name": "ariaLabel",
2464
+ "name": "hideBorder",
2624
2465
  "type": {
2625
- "text": "string"
2466
+ "text": "boolean"
2626
2467
  },
2627
- "default": "\"breadcrumb\"",
2628
- "description": "The aria-label of nav element within breadcrumb component.",
2629
- "attribute": "ariaLabel"
2468
+ "default": "false",
2469
+ "description": "When true, hides the default border of the card.",
2470
+ "attribute": "hideBorder",
2471
+ "reflects": true,
2472
+ "inheritedFrom": {
2473
+ "name": "CardElement",
2474
+ "module": "src/base/card-element.ts"
2475
+ }
2476
+ },
2477
+ {
2478
+ "kind": "field",
2479
+ "name": "tinted",
2480
+ "type": {
2481
+ "text": "boolean"
2482
+ },
2483
+ "default": "false",
2484
+ "description": "When true, applies a tinted background color to the card.",
2485
+ "attribute": "tinted",
2486
+ "reflects": true,
2487
+ "inheritedFrom": {
2488
+ "name": "CardElement",
2489
+ "module": "src/base/card-element.ts"
2490
+ }
2491
+ },
2492
+ {
2493
+ "kind": "field",
2494
+ "name": "orientation",
2495
+ "type": {
2496
+ "text": "CardOrientation"
2497
+ },
2498
+ "default": "\"vertical\"",
2499
+ "description": "Sets the orientation of the card. Available options: `vertical`, `horizontal`",
2500
+ "attribute": "orientation",
2501
+ "reflects": true,
2502
+ "inheritedFrom": {
2503
+ "name": "CardElement",
2504
+ "module": "src/base/card-element.ts"
2505
+ }
2630
2506
  },
2631
2507
  {
2632
2508
  "kind": "method",
2633
- "name": "_replaceExcessItemsWithDropdown",
2634
- "privacy": "private",
2509
+ "name": "handleTitleSlotChange",
2635
2510
  "parameters": [
2636
2511
  {
2637
- "name": "items",
2512
+ "name": "e",
2638
2513
  "type": {
2639
- "text": "SgdsBreadcrumbItem[]"
2514
+ "text": "Event"
2640
2515
  }
2641
2516
  }
2642
2517
  ],
2643
- "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>`",
2644
- "type": {}
2518
+ "type": {},
2519
+ "inheritedFrom": {
2520
+ "name": "CardElement",
2521
+ "module": "src/base/card-element.ts"
2522
+ }
2645
2523
  },
2646
2524
  {
2647
2525
  "kind": "method",
2648
- "name": "_handleSlotChange",
2649
- "privacy": "private",
2526
+ "name": "_forwardAnchorAttributes",
2527
+ "privacy": "protected",
2528
+ "parameters": [
2529
+ {
2530
+ "name": "anchor",
2531
+ "type": {
2532
+ "text": "HTMLAnchorElement | null"
2533
+ }
2534
+ }
2535
+ ],
2536
+ "type": {},
2537
+ "inheritedFrom": {
2538
+ "name": "CardElement",
2539
+ "module": "src/base/card-element.ts"
2540
+ }
2541
+ },
2542
+ {
2543
+ "kind": "method",
2544
+ "name": "warnLinkSlotMisused",
2650
2545
  "parameters": [
2651
2546
  {
2652
2547
  "name": "e",
@@ -2655,7 +2550,11 @@
2655
2550
  }
2656
2551
  }
2657
2552
  ],
2658
- "type": {}
2553
+ "type": {},
2554
+ "inheritedFrom": {
2555
+ "name": "CardElement",
2556
+ "module": "src/base/card-element.ts"
2557
+ }
2659
2558
  },
2660
2559
  {
2661
2560
  "kind": "method",
@@ -2714,23 +2613,124 @@
2714
2613
  ],
2715
2614
  "attributes": [
2716
2615
  {
2717
- "name": "ariaLabel",
2616
+ "name": "imagePosition",
2718
2617
  "type": {
2719
- "text": "string"
2618
+ "text": "CardImagePosition"
2720
2619
  },
2721
- "default": "\"breadcrumb\"",
2722
- "description": "The aria-label of nav element within breadcrumb component.",
2723
- "fieldName": "ariaLabel"
2620
+ "default": "\"before\"",
2621
+ "description": "Sets the image position of the card. Available options: `before`, `after`",
2622
+ "fieldName": "imagePosition"
2623
+ },
2624
+ {
2625
+ "name": "imageAdjustment",
2626
+ "type": {
2627
+ "text": "CardImageAdjustment"
2628
+ },
2629
+ "default": "\"default\"",
2630
+ "description": "Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio`",
2631
+ "fieldName": "imageAdjustment"
2632
+ },
2633
+ {
2634
+ "name": "hasImageSlot",
2635
+ "type": {
2636
+ "text": "boolean"
2637
+ },
2638
+ "default": "false",
2639
+ "description": "Used only for SSR to indicate the presence of the `image` slot.",
2640
+ "fieldName": "hasImageSlot"
2641
+ },
2642
+ {
2643
+ "name": "hasIconSlot",
2644
+ "type": {
2645
+ "text": "boolean"
2646
+ },
2647
+ "default": "false",
2648
+ "description": "Used only for SSR to indicate the presence of the `icon` slot.",
2649
+ "fieldName": "hasIconSlot"
2650
+ },
2651
+ {
2652
+ "name": "hasUpperSlot",
2653
+ "type": {
2654
+ "text": "boolean"
2655
+ },
2656
+ "default": "false",
2657
+ "description": "Used only for SSR to indicate the presence of the `upper` slot.",
2658
+ "fieldName": "hasUpperSlot"
2659
+ },
2660
+ {
2661
+ "name": "stretchedLink",
2662
+ "type": {
2663
+ "text": "boolean"
2664
+ },
2665
+ "default": "false",
2666
+ "description": "Extends the link passed in either `footer` or `link`(deprecated) slot.",
2667
+ "fieldName": "stretchedLink",
2668
+ "inheritedFrom": {
2669
+ "name": "CardElement",
2670
+ "module": "src/base/card-element.ts"
2671
+ }
2672
+ },
2673
+ {
2674
+ "name": "disabled",
2675
+ "type": {
2676
+ "text": "boolean"
2677
+ },
2678
+ "default": "false",
2679
+ "description": "Disables the card",
2680
+ "fieldName": "disabled",
2681
+ "inheritedFrom": {
2682
+ "name": "CardElement",
2683
+ "module": "src/base/card-element.ts"
2684
+ }
2685
+ },
2686
+ {
2687
+ "name": "hideBorder",
2688
+ "type": {
2689
+ "text": "boolean"
2690
+ },
2691
+ "default": "false",
2692
+ "description": "When true, hides the default border of the card.",
2693
+ "fieldName": "hideBorder",
2694
+ "inheritedFrom": {
2695
+ "name": "CardElement",
2696
+ "module": "src/base/card-element.ts"
2697
+ }
2698
+ },
2699
+ {
2700
+ "name": "tinted",
2701
+ "type": {
2702
+ "text": "boolean"
2703
+ },
2704
+ "default": "false",
2705
+ "description": "When true, applies a tinted background color to the card.",
2706
+ "fieldName": "tinted",
2707
+ "inheritedFrom": {
2708
+ "name": "CardElement",
2709
+ "module": "src/base/card-element.ts"
2710
+ }
2711
+ },
2712
+ {
2713
+ "name": "orientation",
2714
+ "type": {
2715
+ "text": "CardOrientation"
2716
+ },
2717
+ "default": "\"vertical\"",
2718
+ "description": "Sets the orientation of the card. Available options: `vertical`, `horizontal`",
2719
+ "fieldName": "orientation",
2720
+ "inheritedFrom": {
2721
+ "name": "CardElement",
2722
+ "module": "src/base/card-element.ts"
2723
+ }
2724
2724
  }
2725
2725
  ],
2726
2726
  "superclass": {
2727
- "name": "SgdsElement",
2728
- "module": "/src/base/sgds-element"
2727
+ "name": "CardElement",
2728
+ "module": "/src/base/card-element"
2729
2729
  },
2730
- "summary": "Breadcrumbs help users to navigate and understand where they are on the current website or service.",
2731
- "tagName": "sgds-breadcrumb",
2730
+ "summary": "Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.",
2731
+ "tagName": "sgds-card",
2732
2732
  "customElement": true,
2733
- "modulePath": "src/components/Breadcrumb/sgds-breadcrumb.ts",
2733
+ "modulePath": "src/components/Card/sgds-card.ts",
2734
2734
  "cssProperties": [],
2735
2735
  "cssParts": [],
2736
2736
  "cssStates": [],
@@ -2740,18 +2740,18 @@
2740
2740
  "exports": [
2741
2741
  {
2742
2742
  "kind": "js",
2743
- "name": "SgdsBreadcrumb",
2743
+ "name": "SgdsCard",
2744
2744
  "declaration": {
2745
- "name": "SgdsBreadcrumb",
2746
- "module": "src/components/Breadcrumb/sgds-breadcrumb.ts"
2745
+ "name": "SgdsCard",
2746
+ "module": "src/components/Card/sgds-card.ts"
2747
2747
  }
2748
2748
  },
2749
2749
  {
2750
2750
  "kind": "js",
2751
2751
  "name": "default",
2752
2752
  "declaration": {
2753
- "name": "SgdsBreadcrumb",
2754
- "module": "src/components/Breadcrumb/sgds-breadcrumb.ts"
2753
+ "name": "SgdsCard",
2754
+ "module": "src/components/Card/sgds-card.ts"
2755
2755
  }
2756
2756
  }
2757
2757
  ]
@@ -4481,6 +4481,13 @@
4481
4481
  "name": "_handleValueChange",
4482
4482
  "type": {}
4483
4483
  },
4484
+ {
4485
+ "kind": "method",
4486
+ "name": "_emitChangeEvents",
4487
+ "privacy": "private",
4488
+ "description": "Emits sgds-change and sgds-select events. Call after setting this.value from user interaction.",
4489
+ "type": {}
4490
+ },
4484
4491
  {
4485
4492
  "kind": "method",
4486
4493
  "name": "_handleOptionListChange",
@@ -27948,7 +27955,7 @@
27948
27955
  "package": {
27949
27956
  "name": "@govtechsg/sgds-web-component",
27950
27957
  "description": "",
27951
- "version": "3.23.0",
27958
+ "version": "3.24.0-rc.0",
27952
27959
  "author": "GovTechSG",
27953
27960
  "license": "MIT"
27954
27961
  }