@govtechsg/sgds-web-component 3.16.1-rc.2 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Accordion/accordion-item.js +1 -1
- package/components/Accordion/index.umd.min.js +13 -11
- package/components/Accordion/index.umd.min.js.map +1 -1
- package/components/Accordion/sgds-accordion-item.d.ts +4 -1
- package/components/Accordion/sgds-accordion-item.js +15 -11
- package/components/Accordion/sgds-accordion-item.js.map +1 -1
- package/components/Accordion/sgds-accordion.d.ts +1 -1
- package/components/Accordion/sgds-accordion.js.map +1 -1
- package/components/ComboBox/combo-box.js +1 -1
- package/components/ComboBox/index.umd.min.js +3 -3
- package/components/ComboBox/index.umd.min.js.map +1 -1
- package/components/ComboBox/sgds-combo-box.js +6 -1
- package/components/ComboBox/sgds-combo-box.js.map +1 -1
- package/components/Datepicker/datepicker.js +1 -1
- package/components/Datepicker/index.umd.min.js +4 -4
- package/components/Datepicker/index.umd.min.js.map +1 -1
- package/components/Datepicker/sgds-datepicker.js +1 -1
- package/components/Datepicker/sgds-datepicker.js.map +1 -1
- package/components/Input/index.umd.min.js +2 -2
- package/components/Input/index.umd.min.js.map +1 -1
- package/components/Input/sgds-input.js +1 -1
- package/components/Input/sgds-input.js.map +1 -1
- package/components/QuantityToggle/index.umd.min.js +3 -3
- package/components/QuantityToggle/index.umd.min.js.map +1 -1
- package/components/QuantityToggle/sgds-quantity-toggle.js +1 -1
- package/components/QuantityToggle/sgds-quantity-toggle.js.map +1 -1
- package/components/Radio/index.umd.min.js +9 -9
- package/components/Radio/index.umd.min.js.map +1 -1
- package/components/Radio/sgds-radio-group.d.ts +2 -0
- package/components/Radio/sgds-radio-group.js +10 -1
- package/components/Radio/sgds-radio-group.js.map +1 -1
- package/components/Radio/sgds-radio.d.ts +2 -0
- package/components/Radio/sgds-radio.js +6 -1
- package/components/Radio/sgds-radio.js.map +1 -1
- package/components/Select/index.umd.min.js +2 -2
- package/components/Select/index.umd.min.js.map +1 -1
- package/components/Select/sgds-select.js +2 -1
- package/components/Select/sgds-select.js.map +1 -1
- package/components/Tab/index.umd.min.js +3 -2
- package/components/Tab/index.umd.min.js.map +1 -1
- package/components/Tab/sgds-tab-group.js +1 -0
- package/components/Tab/sgds-tab-group.js.map +1 -1
- package/components/Tab/tab-group.js +1 -1
- package/components/Tab/tab.js +1 -1
- package/components/Textarea/index.umd.min.js +4 -4
- package/components/Textarea/index.umd.min.js.map +1 -1
- package/components/Textarea/sgds-textarea.js +1 -1
- package/components/Textarea/sgds-textarea.js.map +1 -1
- package/components/Toast/index.umd.min.js +1 -1
- package/components/Toast/index.umd.min.js.map +1 -1
- package/components/Toast/toast.js +1 -1
- package/components/index.umd.min.js +25 -22
- package/components/index.umd.min.js.map +1 -1
- package/css/fouc.css +1 -1
- package/custom-elements.json +550 -503
- package/index.umd.min.js +25 -22
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/components/Accordion/accordion-item.cjs.js +1 -1
- package/react/components/Accordion/accordion-item.js +1 -1
- package/react/components/Accordion/sgds-accordion-item.cjs.js +15 -11
- package/react/components/Accordion/sgds-accordion-item.cjs.js.map +1 -1
- package/react/components/Accordion/sgds-accordion-item.js +15 -11
- package/react/components/Accordion/sgds-accordion-item.js.map +1 -1
- package/react/components/Accordion/sgds-accordion.cjs.js.map +1 -1
- package/react/components/Accordion/sgds-accordion.js.map +1 -1
- package/react/components/ComboBox/combo-box.cjs.js +1 -1
- package/react/components/ComboBox/combo-box.js +1 -1
- package/react/components/ComboBox/sgds-combo-box.cjs.js +6 -1
- package/react/components/ComboBox/sgds-combo-box.cjs.js.map +1 -1
- package/react/components/ComboBox/sgds-combo-box.js +6 -1
- package/react/components/ComboBox/sgds-combo-box.js.map +1 -1
- package/react/components/Datepicker/datepicker.cjs.js +1 -1
- package/react/components/Datepicker/datepicker.js +1 -1
- package/react/components/Datepicker/sgds-datepicker.cjs.js +1 -1
- package/react/components/Datepicker/sgds-datepicker.cjs.js.map +1 -1
- package/react/components/Datepicker/sgds-datepicker.js +1 -1
- package/react/components/Datepicker/sgds-datepicker.js.map +1 -1
- package/react/components/Input/sgds-input.cjs.js +1 -1
- package/react/components/Input/sgds-input.cjs.js.map +1 -1
- package/react/components/Input/sgds-input.js +1 -1
- package/react/components/Input/sgds-input.js.map +1 -1
- package/react/components/QuantityToggle/sgds-quantity-toggle.cjs.js +1 -1
- package/react/components/QuantityToggle/sgds-quantity-toggle.cjs.js.map +1 -1
- package/react/components/QuantityToggle/sgds-quantity-toggle.js +1 -1
- package/react/components/QuantityToggle/sgds-quantity-toggle.js.map +1 -1
- package/react/components/Radio/sgds-radio-group.cjs.js +10 -1
- package/react/components/Radio/sgds-radio-group.cjs.js.map +1 -1
- package/react/components/Radio/sgds-radio-group.js +10 -1
- package/react/components/Radio/sgds-radio-group.js.map +1 -1
- package/react/components/Radio/sgds-radio.cjs.js +6 -1
- package/react/components/Radio/sgds-radio.cjs.js.map +1 -1
- package/react/components/Radio/sgds-radio.js +6 -1
- package/react/components/Radio/sgds-radio.js.map +1 -1
- package/react/components/Select/sgds-select.cjs.js +2 -1
- package/react/components/Select/sgds-select.cjs.js.map +1 -1
- package/react/components/Select/sgds-select.js +2 -1
- package/react/components/Select/sgds-select.js.map +1 -1
- package/react/components/Tab/sgds-tab-group.cjs.js +1 -0
- package/react/components/Tab/sgds-tab-group.cjs.js.map +1 -1
- package/react/components/Tab/sgds-tab-group.js +1 -0
- package/react/components/Tab/sgds-tab-group.js.map +1 -1
- package/react/components/Tab/tab-group.cjs.js +1 -1
- package/react/components/Tab/tab-group.js +1 -1
- package/react/components/Tab/tab.cjs.js +1 -1
- package/react/components/Tab/tab.js +1 -1
- package/react/components/Textarea/sgds-textarea.cjs.js +1 -1
- package/react/components/Textarea/sgds-textarea.cjs.js.map +1 -1
- package/react/components/Textarea/sgds-textarea.js +1 -1
- package/react/components/Textarea/sgds-textarea.js.map +1 -1
- package/react/components/Toast/toast.cjs.js +1 -1
- package/react/components/Toast/toast.js +1 -1
- package/react/index.cjs.js +6 -6
- package/react/index.d.ts +1 -1
- package/react/index.js +1 -1
- package/react/styles/form-text-control.cjs.js +1 -1
- package/react/styles/form-text-control.js +1 -1
- package/styles/form-text-control.js +1 -1
- package/types/react.d.ts +22 -18
package/custom-elements.json
CHANGED
|
@@ -116,16 +116,24 @@
|
|
|
116
116
|
"description": "",
|
|
117
117
|
"name": "SgdsAccordionItem",
|
|
118
118
|
"slots": [
|
|
119
|
+
{
|
|
120
|
+
"description": "An icon placed before the header text, typically used to provide visual context for the accordion item.",
|
|
121
|
+
"name": "icon"
|
|
122
|
+
},
|
|
119
123
|
{
|
|
120
124
|
"description": "The accordion-item button header slot.",
|
|
121
125
|
"name": "header"
|
|
122
126
|
},
|
|
127
|
+
{
|
|
128
|
+
"description": "A badge placed after the header text, aligned to the right via auto left margin.",
|
|
129
|
+
"name": "badge"
|
|
130
|
+
},
|
|
123
131
|
{
|
|
124
132
|
"description": "The accordion-item content slot.",
|
|
125
133
|
"name": "content"
|
|
126
134
|
},
|
|
127
135
|
{
|
|
128
|
-
"description": "The caret icon of accordion-item.",
|
|
136
|
+
"description": "The caret icon of accordion-item. Defaults to a chevron-down icon.",
|
|
129
137
|
"name": "caret"
|
|
130
138
|
}
|
|
131
139
|
],
|
|
@@ -380,7 +388,7 @@
|
|
|
380
388
|
"kind": "field",
|
|
381
389
|
"name": "density",
|
|
382
390
|
"type": {
|
|
383
|
-
"text": "\"default\" | \"compact\""
|
|
391
|
+
"text": "\"default\" | \"compact\" | \"spacious\""
|
|
384
392
|
},
|
|
385
393
|
"default": "\"default\"",
|
|
386
394
|
"description": "The density of accordion",
|
|
@@ -1180,152 +1188,448 @@
|
|
|
1180
1188
|
},
|
|
1181
1189
|
{
|
|
1182
1190
|
"kind": "javascript-module",
|
|
1183
|
-
"path": "src/components/
|
|
1191
|
+
"path": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
1184
1192
|
"declarations": [
|
|
1185
1193
|
{
|
|
1186
1194
|
"kind": "class",
|
|
1187
1195
|
"description": "",
|
|
1188
|
-
"name": "
|
|
1196
|
+
"name": "SgdsBreadcrumbItem",
|
|
1189
1197
|
"slots": [
|
|
1190
1198
|
{
|
|
1191
|
-
"description": "The
|
|
1199
|
+
"description": "The link of the item. Pass in anchor tags into this slot",
|
|
1192
1200
|
"name": "default"
|
|
1193
|
-
},
|
|
1194
|
-
{
|
|
1195
|
-
"description": "The slot for icon to the left of the button text",
|
|
1196
|
-
"name": "leftIcon"
|
|
1197
|
-
},
|
|
1198
|
-
{
|
|
1199
|
-
"description": "The slot for icon to the right of the button text",
|
|
1200
|
-
"name": "rightIcon"
|
|
1201
1201
|
}
|
|
1202
1202
|
],
|
|
1203
1203
|
"members": [
|
|
1204
1204
|
{
|
|
1205
1205
|
"kind": "field",
|
|
1206
|
-
"name": "
|
|
1206
|
+
"name": "dependencies",
|
|
1207
1207
|
"type": {
|
|
1208
|
-
"text": "
|
|
1208
|
+
"text": "Record<string, typeof SgdsElement>"
|
|
1209
1209
|
},
|
|
1210
|
-
"
|
|
1211
|
-
"
|
|
1212
|
-
"attribute": "type",
|
|
1213
|
-
"reflects": true
|
|
1210
|
+
"static": true,
|
|
1211
|
+
"default": "{\n \"sgds-link\": SgdsLink\n }"
|
|
1214
1212
|
},
|
|
1215
1213
|
{
|
|
1216
1214
|
"kind": "field",
|
|
1217
|
-
"name": "
|
|
1215
|
+
"name": "active",
|
|
1218
1216
|
"type": {
|
|
1219
|
-
"text": "
|
|
1217
|
+
"text": "boolean"
|
|
1220
1218
|
},
|
|
1221
|
-
"
|
|
1222
|
-
"
|
|
1219
|
+
"default": "false",
|
|
1220
|
+
"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",
|
|
1221
|
+
"attribute": "active",
|
|
1223
1222
|
"reflects": true
|
|
1224
1223
|
},
|
|
1225
1224
|
{
|
|
1226
|
-
"kind": "
|
|
1227
|
-
"name": "
|
|
1228
|
-
"
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1225
|
+
"kind": "method",
|
|
1226
|
+
"name": "emit",
|
|
1227
|
+
"parameters": [
|
|
1228
|
+
{
|
|
1229
|
+
"name": "name",
|
|
1230
|
+
"type": {
|
|
1231
|
+
"text": "string"
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"name": "options",
|
|
1236
|
+
"optional": true,
|
|
1237
|
+
"type": {
|
|
1238
|
+
"text": "CustomEventInit<T>"
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
],
|
|
1242
|
+
"description": "Emits a custom event with more convenient defaults.",
|
|
1243
|
+
"type": {},
|
|
1244
|
+
"inheritedFrom": {
|
|
1245
|
+
"name": "SgdsElement",
|
|
1246
|
+
"module": "src/base/sgds-element.ts"
|
|
1247
|
+
}
|
|
1234
1248
|
},
|
|
1235
1249
|
{
|
|
1236
|
-
"kind": "
|
|
1237
|
-
"name": "
|
|
1238
|
-
"
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1250
|
+
"kind": "method",
|
|
1251
|
+
"name": "define",
|
|
1252
|
+
"static": true,
|
|
1253
|
+
"parameters": [
|
|
1254
|
+
{
|
|
1255
|
+
"name": "name",
|
|
1256
|
+
"type": {
|
|
1257
|
+
"text": "string"
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"name": "elementConstructor",
|
|
1262
|
+
"default": "this"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"name": "options",
|
|
1266
|
+
"default": "{}",
|
|
1267
|
+
"type": {
|
|
1268
|
+
"text": "ElementDefinitionOptions"
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
],
|
|
1272
|
+
"type": {},
|
|
1273
|
+
"inheritedFrom": {
|
|
1274
|
+
"name": "SgdsElement",
|
|
1275
|
+
"module": "src/base/sgds-element.ts"
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
],
|
|
1279
|
+
"attributes": [
|
|
1245
1280
|
{
|
|
1246
|
-
"
|
|
1247
|
-
"name": "formNoValidate",
|
|
1281
|
+
"name": "active",
|
|
1248
1282
|
"type": {
|
|
1249
1283
|
"text": "boolean"
|
|
1250
1284
|
},
|
|
1251
|
-
"
|
|
1252
|
-
"
|
|
1253
|
-
"
|
|
1254
|
-
}
|
|
1285
|
+
"default": "false",
|
|
1286
|
+
"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",
|
|
1287
|
+
"fieldName": "active"
|
|
1288
|
+
}
|
|
1289
|
+
],
|
|
1290
|
+
"superclass": {
|
|
1291
|
+
"name": "SgdsElement",
|
|
1292
|
+
"module": "/src/base/sgds-element"
|
|
1293
|
+
},
|
|
1294
|
+
"summary": "Breadcrumb Item are navigational links used in Breadcrumb component",
|
|
1295
|
+
"tagName": "sgds-breadcrumb-item",
|
|
1296
|
+
"customElement": true,
|
|
1297
|
+
"modulePath": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
1298
|
+
"cssProperties": [],
|
|
1299
|
+
"cssParts": [],
|
|
1300
|
+
"cssStates": [],
|
|
1301
|
+
"events": []
|
|
1302
|
+
}
|
|
1303
|
+
],
|
|
1304
|
+
"exports": [
|
|
1305
|
+
{
|
|
1306
|
+
"kind": "js",
|
|
1307
|
+
"name": "SgdsBreadcrumbItem",
|
|
1308
|
+
"declaration": {
|
|
1309
|
+
"name": "SgdsBreadcrumbItem",
|
|
1310
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
1311
|
+
}
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"kind": "js",
|
|
1315
|
+
"name": "default",
|
|
1316
|
+
"declaration": {
|
|
1317
|
+
"name": "SgdsBreadcrumbItem",
|
|
1318
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
]
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"kind": "javascript-module",
|
|
1325
|
+
"path": "src/components/Breadcrumb/sgds-breadcrumb.ts",
|
|
1326
|
+
"declarations": [
|
|
1327
|
+
{
|
|
1328
|
+
"kind": "class",
|
|
1329
|
+
"description": "",
|
|
1330
|
+
"name": "SgdsBreadcrumb",
|
|
1331
|
+
"slots": [
|
|
1255
1332
|
{
|
|
1256
|
-
"
|
|
1257
|
-
"name": "
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
"description": "Used to override the form owner's `target` attribute.",
|
|
1262
|
-
"attribute": "formtarget",
|
|
1263
|
-
"reflects": true
|
|
1264
|
-
},
|
|
1333
|
+
"description": "The slot to pass in custom elements of `SgdsBreadcrumbItems`.",
|
|
1334
|
+
"name": "default"
|
|
1335
|
+
}
|
|
1336
|
+
],
|
|
1337
|
+
"members": [
|
|
1265
1338
|
{
|
|
1266
1339
|
"kind": "field",
|
|
1267
|
-
"name": "
|
|
1340
|
+
"name": "dependencies",
|
|
1268
1341
|
"type": {
|
|
1269
|
-
"text": "
|
|
1342
|
+
"text": "object"
|
|
1270
1343
|
},
|
|
1271
|
-
"
|
|
1272
|
-
"
|
|
1273
|
-
"attribute": "fullWidth",
|
|
1274
|
-
"reflects": true
|
|
1344
|
+
"static": true,
|
|
1345
|
+
"default": "{\n \"sgds-overflow-menu\": SgdsOverflowMenu\n }"
|
|
1275
1346
|
},
|
|
1276
1347
|
{
|
|
1277
1348
|
"kind": "field",
|
|
1278
|
-
"name": "
|
|
1349
|
+
"name": "ariaLabel",
|
|
1279
1350
|
"type": {
|
|
1280
|
-
"text": "
|
|
1351
|
+
"text": "string"
|
|
1281
1352
|
},
|
|
1282
|
-
"default": "
|
|
1283
|
-
"description": "
|
|
1284
|
-
"attribute": "
|
|
1353
|
+
"default": "\"breadcrumb\"",
|
|
1354
|
+
"description": "The aria-label of nav element within breadcrumb component.",
|
|
1355
|
+
"attribute": "ariaLabel"
|
|
1285
1356
|
},
|
|
1286
1357
|
{
|
|
1287
|
-
"kind": "
|
|
1288
|
-
"name": "
|
|
1289
|
-
"
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1358
|
+
"kind": "method",
|
|
1359
|
+
"name": "_replaceExcessItemsWithDropdown",
|
|
1360
|
+
"privacy": "private",
|
|
1361
|
+
"parameters": [
|
|
1362
|
+
{
|
|
1363
|
+
"name": "items",
|
|
1364
|
+
"type": {
|
|
1365
|
+
"text": "SgdsBreadcrumbItem[]"
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
],
|
|
1369
|
+
"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>`",
|
|
1370
|
+
"type": {}
|
|
1295
1371
|
},
|
|
1296
1372
|
{
|
|
1297
|
-
"kind": "
|
|
1298
|
-
"name": "
|
|
1373
|
+
"kind": "method",
|
|
1374
|
+
"name": "_handleSlotChange",
|
|
1299
1375
|
"privacy": "private",
|
|
1300
|
-
"
|
|
1376
|
+
"parameters": [
|
|
1377
|
+
{
|
|
1378
|
+
"name": "e",
|
|
1379
|
+
"type": {
|
|
1380
|
+
"text": "Event"
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
],
|
|
1301
1384
|
"type": {}
|
|
1302
1385
|
},
|
|
1303
1386
|
{
|
|
1304
1387
|
"kind": "method",
|
|
1305
|
-
"name": "
|
|
1306
|
-
"privacy": "protected",
|
|
1388
|
+
"name": "emit",
|
|
1307
1389
|
"parameters": [
|
|
1308
1390
|
{
|
|
1309
|
-
"name": "
|
|
1391
|
+
"name": "name",
|
|
1310
1392
|
"type": {
|
|
1311
|
-
"text": "
|
|
1393
|
+
"text": "string"
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
"name": "options",
|
|
1398
|
+
"optional": true,
|
|
1399
|
+
"type": {
|
|
1400
|
+
"text": "CustomEventInit<T>"
|
|
1312
1401
|
}
|
|
1313
1402
|
}
|
|
1314
1403
|
],
|
|
1404
|
+
"description": "Emits a custom event with more convenient defaults.",
|
|
1315
1405
|
"type": {},
|
|
1316
1406
|
"inheritedFrom": {
|
|
1317
|
-
"name": "
|
|
1318
|
-
"module": "src/base/
|
|
1407
|
+
"name": "SgdsElement",
|
|
1408
|
+
"module": "src/base/sgds-element.ts"
|
|
1319
1409
|
}
|
|
1320
1410
|
},
|
|
1411
|
+
{
|
|
1412
|
+
"kind": "method",
|
|
1413
|
+
"name": "define",
|
|
1414
|
+
"static": true,
|
|
1415
|
+
"parameters": [
|
|
1416
|
+
{
|
|
1417
|
+
"name": "name",
|
|
1418
|
+
"type": {
|
|
1419
|
+
"text": "string"
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"name": "elementConstructor",
|
|
1424
|
+
"default": "this"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"name": "options",
|
|
1428
|
+
"default": "{}",
|
|
1429
|
+
"type": {
|
|
1430
|
+
"text": "ElementDefinitionOptions"
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
],
|
|
1434
|
+
"type": {},
|
|
1435
|
+
"inheritedFrom": {
|
|
1436
|
+
"name": "SgdsElement",
|
|
1437
|
+
"module": "src/base/sgds-element.ts"
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
],
|
|
1441
|
+
"attributes": [
|
|
1442
|
+
{
|
|
1443
|
+
"name": "ariaLabel",
|
|
1444
|
+
"type": {
|
|
1445
|
+
"text": "string"
|
|
1446
|
+
},
|
|
1447
|
+
"default": "\"breadcrumb\"",
|
|
1448
|
+
"description": "The aria-label of nav element within breadcrumb component.",
|
|
1449
|
+
"fieldName": "ariaLabel"
|
|
1450
|
+
}
|
|
1451
|
+
],
|
|
1452
|
+
"superclass": {
|
|
1453
|
+
"name": "SgdsElement",
|
|
1454
|
+
"module": "/src/base/sgds-element"
|
|
1455
|
+
},
|
|
1456
|
+
"summary": "Breadcrumbs help users to navigate and understand where they are on the current website or service.",
|
|
1457
|
+
"tagName": "sgds-breadcrumb",
|
|
1458
|
+
"customElement": true,
|
|
1459
|
+
"modulePath": "src/components/Breadcrumb/sgds-breadcrumb.ts",
|
|
1460
|
+
"cssProperties": [],
|
|
1461
|
+
"cssParts": [],
|
|
1462
|
+
"cssStates": [],
|
|
1463
|
+
"events": []
|
|
1464
|
+
}
|
|
1465
|
+
],
|
|
1466
|
+
"exports": [
|
|
1467
|
+
{
|
|
1468
|
+
"kind": "js",
|
|
1469
|
+
"name": "SgdsBreadcrumb",
|
|
1470
|
+
"declaration": {
|
|
1471
|
+
"name": "SgdsBreadcrumb",
|
|
1472
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb.ts"
|
|
1473
|
+
}
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"kind": "js",
|
|
1477
|
+
"name": "default",
|
|
1478
|
+
"declaration": {
|
|
1479
|
+
"name": "SgdsBreadcrumb",
|
|
1480
|
+
"module": "src/components/Breadcrumb/sgds-breadcrumb.ts"
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
]
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"kind": "javascript-module",
|
|
1487
|
+
"path": "src/components/Button/sgds-button.ts",
|
|
1488
|
+
"declarations": [
|
|
1489
|
+
{
|
|
1490
|
+
"kind": "class",
|
|
1491
|
+
"description": "",
|
|
1492
|
+
"name": "SgdsButton",
|
|
1493
|
+
"slots": [
|
|
1494
|
+
{
|
|
1495
|
+
"description": "The button's label.",
|
|
1496
|
+
"name": "default"
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
"description": "The slot for icon to the left of the button text",
|
|
1500
|
+
"name": "leftIcon"
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"description": "The slot for icon to the right of the button text",
|
|
1504
|
+
"name": "rightIcon"
|
|
1505
|
+
}
|
|
1506
|
+
],
|
|
1507
|
+
"members": [
|
|
1508
|
+
{
|
|
1509
|
+
"kind": "field",
|
|
1510
|
+
"name": "type",
|
|
1511
|
+
"type": {
|
|
1512
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1513
|
+
},
|
|
1514
|
+
"default": "\"button\"",
|
|
1515
|
+
"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",
|
|
1516
|
+
"attribute": "type",
|
|
1517
|
+
"reflects": true
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
"kind": "field",
|
|
1521
|
+
"name": "form",
|
|
1522
|
+
"type": {
|
|
1523
|
+
"text": "string"
|
|
1524
|
+
},
|
|
1525
|
+
"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.",
|
|
1526
|
+
"attribute": "form",
|
|
1527
|
+
"reflects": true
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
"kind": "field",
|
|
1531
|
+
"name": "formAction",
|
|
1532
|
+
"type": {
|
|
1533
|
+
"text": "string"
|
|
1534
|
+
},
|
|
1535
|
+
"description": "Used to override the form owner's `action` attribute.",
|
|
1536
|
+
"attribute": "formaction",
|
|
1537
|
+
"reflects": true
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
"kind": "field",
|
|
1541
|
+
"name": "formMethod",
|
|
1542
|
+
"type": {
|
|
1543
|
+
"text": "\"post\" | \"get\""
|
|
1544
|
+
},
|
|
1545
|
+
"description": "Used to override the form owner's `method` attribute.",
|
|
1546
|
+
"attribute": "formmethod",
|
|
1547
|
+
"reflects": true
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"kind": "field",
|
|
1551
|
+
"name": "formNoValidate",
|
|
1552
|
+
"type": {
|
|
1553
|
+
"text": "boolean"
|
|
1554
|
+
},
|
|
1555
|
+
"description": "Used to override the form owner's `novalidate` attribute.",
|
|
1556
|
+
"attribute": "formnovalidate",
|
|
1557
|
+
"reflects": true
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"kind": "field",
|
|
1561
|
+
"name": "formTarget",
|
|
1562
|
+
"type": {
|
|
1563
|
+
"text": "| \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | string"
|
|
1564
|
+
},
|
|
1565
|
+
"description": "Used to override the form owner's `target` attribute.",
|
|
1566
|
+
"attribute": "formtarget",
|
|
1567
|
+
"reflects": true
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
"kind": "field",
|
|
1571
|
+
"name": "fullWidth",
|
|
1572
|
+
"type": {
|
|
1573
|
+
"text": "boolean"
|
|
1574
|
+
},
|
|
1575
|
+
"default": "false",
|
|
1576
|
+
"description": "When set, the button will be in full width.",
|
|
1577
|
+
"attribute": "fullWidth",
|
|
1578
|
+
"reflects": true
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"kind": "field",
|
|
1582
|
+
"name": "hasLeftIconSlot",
|
|
1583
|
+
"type": {
|
|
1584
|
+
"text": "boolean"
|
|
1585
|
+
},
|
|
1586
|
+
"default": "false",
|
|
1587
|
+
"description": "Used only for SSR to indicate the presence of the `leftIcon` slot.",
|
|
1588
|
+
"attribute": "hasLeftIconSlot"
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"kind": "field",
|
|
1592
|
+
"name": "hasRightIconSlot",
|
|
1593
|
+
"type": {
|
|
1594
|
+
"text": "boolean"
|
|
1595
|
+
},
|
|
1596
|
+
"default": "false",
|
|
1597
|
+
"description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
|
|
1598
|
+
"attribute": "hasRightIconSlot"
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"kind": "field",
|
|
1602
|
+
"name": "hasSlotController",
|
|
1603
|
+
"privacy": "private",
|
|
1604
|
+
"default": "new HasSlotController(this, \"leftIcon\", \"rightIcon\")",
|
|
1605
|
+
"type": {}
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
"kind": "method",
|
|
1609
|
+
"name": "_handleClick",
|
|
1610
|
+
"privacy": "protected",
|
|
1611
|
+
"parameters": [
|
|
1612
|
+
{
|
|
1613
|
+
"name": "event",
|
|
1614
|
+
"type": {
|
|
1615
|
+
"text": "MouseEvent"
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
],
|
|
1619
|
+
"type": {},
|
|
1620
|
+
"inheritedFrom": {
|
|
1621
|
+
"name": "ButtonElement",
|
|
1622
|
+
"module": "src/base/button-element.ts"
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"kind": "field",
|
|
1627
|
+
"name": "_clickHandler",
|
|
1628
|
+
"privacy": "private",
|
|
1629
|
+
"type": {}
|
|
1630
|
+
},
|
|
1321
1631
|
{
|
|
1322
1632
|
"kind": "field",
|
|
1323
|
-
"name": "_clickHandler",
|
|
1324
|
-
"privacy": "private",
|
|
1325
|
-
"type": {}
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
"kind": "field",
|
|
1329
1633
|
"name": "variant",
|
|
1330
1634
|
"type": {
|
|
1331
1635
|
"text": "\"primary\" | \"outline\" | \"ghost\" | \"danger\""
|
|
@@ -1733,463 +2037,167 @@
|
|
|
1733
2037
|
{
|
|
1734
2038
|
"name": "hasRightIconSlot",
|
|
1735
2039
|
"type": {
|
|
1736
|
-
"text": "boolean"
|
|
1737
|
-
},
|
|
1738
|
-
"default": "false",
|
|
1739
|
-
"description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
|
|
1740
|
-
"fieldName": "hasRightIconSlot"
|
|
1741
|
-
},
|
|
1742
|
-
{
|
|
1743
|
-
"name": "variant",
|
|
1744
|
-
"type": {
|
|
1745
|
-
"text": "ButtonVariant"
|
|
1746
|
-
},
|
|
1747
|
-
"default": "\"primary\"",
|
|
1748
|
-
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. `danger` is @deprecated since v3.5.6",
|
|
1749
|
-
"fieldName": "variant",
|
|
1750
|
-
"inheritedFrom": {
|
|
1751
|
-
"name": "ButtonElement",
|
|
1752
|
-
"module": "src/base/button-element.ts"
|
|
1753
|
-
}
|
|
1754
|
-
},
|
|
1755
|
-
{
|
|
1756
|
-
"name": "tone",
|
|
1757
|
-
"type": {
|
|
1758
|
-
"text": "ButtonTone"
|
|
1759
|
-
},
|
|
1760
|
-
"default": "\"brand\"",
|
|
1761
|
-
"description": "Sets the visual colour of the button: `brand`, `danger`, `fixed-light`, `neutral`",
|
|
1762
|
-
"fieldName": "tone",
|
|
1763
|
-
"inheritedFrom": {
|
|
1764
|
-
"name": "ButtonElement",
|
|
1765
|
-
"module": "src/base/button-element.ts"
|
|
1766
|
-
}
|
|
1767
|
-
},
|
|
1768
|
-
{
|
|
1769
|
-
"name": "size",
|
|
1770
|
-
"type": {
|
|
1771
|
-
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
1772
|
-
},
|
|
1773
|
-
"default": "\"md\"",
|
|
1774
|
-
"description": "Specifies a small, medium or large button, the size is medium by default.",
|
|
1775
|
-
"fieldName": "size",
|
|
1776
|
-
"inheritedFrom": {
|
|
1777
|
-
"name": "ButtonElement",
|
|
1778
|
-
"module": "src/base/button-element.ts"
|
|
1779
|
-
}
|
|
1780
|
-
},
|
|
1781
|
-
{
|
|
1782
|
-
"name": "active",
|
|
1783
|
-
"type": {
|
|
1784
|
-
"text": "boolean"
|
|
1785
|
-
},
|
|
1786
|
-
"default": "false",
|
|
1787
|
-
"description": "Manually set the visual state of the button to `:active`",
|
|
1788
|
-
"fieldName": "active",
|
|
1789
|
-
"inheritedFrom": {
|
|
1790
|
-
"name": "ButtonElement",
|
|
1791
|
-
"module": "src/base/button-element.ts"
|
|
1792
|
-
}
|
|
1793
|
-
},
|
|
1794
|
-
{
|
|
1795
|
-
"name": "disabled",
|
|
1796
|
-
"type": {
|
|
1797
|
-
"text": "boolean"
|
|
1798
|
-
},
|
|
1799
|
-
"default": "false",
|
|
1800
|
-
"description": "The disabled state of the button",
|
|
1801
|
-
"fieldName": "disabled",
|
|
1802
|
-
"inheritedFrom": {
|
|
1803
|
-
"name": "ButtonElement",
|
|
1804
|
-
"module": "src/base/button-element.ts"
|
|
1805
|
-
}
|
|
1806
|
-
},
|
|
1807
|
-
{
|
|
1808
|
-
"name": "href",
|
|
1809
|
-
"type": {
|
|
1810
|
-
"text": "string"
|
|
1811
|
-
},
|
|
1812
|
-
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
1813
|
-
"fieldName": "href",
|
|
1814
|
-
"inheritedFrom": {
|
|
1815
|
-
"name": "ButtonElement",
|
|
1816
|
-
"module": "src/base/button-element.ts"
|
|
1817
|
-
}
|
|
1818
|
-
},
|
|
1819
|
-
{
|
|
1820
|
-
"name": "target",
|
|
1821
|
-
"type": {
|
|
1822
|
-
"text": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\""
|
|
1823
|
-
},
|
|
1824
|
-
"default": "\"_self\"",
|
|
1825
|
-
"description": "Where to display the linked URL, as the name for a browsing context. Forwards to the HTMLAnchor target attribute",
|
|
1826
|
-
"fieldName": "target",
|
|
1827
|
-
"inheritedFrom": {
|
|
1828
|
-
"name": "ButtonElement",
|
|
1829
|
-
"module": "src/base/button-element.ts"
|
|
1830
|
-
}
|
|
1831
|
-
},
|
|
1832
|
-
{
|
|
1833
|
-
"name": "download",
|
|
1834
|
-
"type": {
|
|
1835
|
-
"text": "string"
|
|
1836
|
-
},
|
|
1837
|
-
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
1838
|
-
"fieldName": "download",
|
|
1839
|
-
"inheritedFrom": {
|
|
1840
|
-
"name": "ButtonElement",
|
|
1841
|
-
"module": "src/base/button-element.ts"
|
|
1842
|
-
}
|
|
1843
|
-
},
|
|
1844
|
-
{
|
|
1845
|
-
"name": "ariaLabel",
|
|
1846
|
-
"type": {
|
|
1847
|
-
"text": "string"
|
|
1848
|
-
},
|
|
1849
|
-
"description": "The aria-label attribute to passed to button element when necessary",
|
|
1850
|
-
"fieldName": "ariaLabel",
|
|
1851
|
-
"inheritedFrom": {
|
|
1852
|
-
"name": "ButtonElement",
|
|
1853
|
-
"module": "src/base/button-element.ts"
|
|
1854
|
-
}
|
|
1855
|
-
},
|
|
1856
|
-
{
|
|
1857
|
-
"name": "loading",
|
|
1858
|
-
"type": {
|
|
1859
|
-
"text": "boolean"
|
|
1860
|
-
},
|
|
1861
|
-
"description": "When true, shows a loading spinner",
|
|
1862
|
-
"fieldName": "loading",
|
|
1863
|
-
"inheritedFrom": {
|
|
1864
|
-
"name": "ButtonElement",
|
|
1865
|
-
"module": "src/base/button-element.ts"
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
1868
|
-
],
|
|
1869
|
-
"superclass": {
|
|
1870
|
-
"name": "ButtonElement",
|
|
1871
|
-
"module": "/src/base/button-element"
|
|
1872
|
-
},
|
|
1873
|
-
"summary": "Custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.",
|
|
1874
|
-
"tagName": "sgds-button",
|
|
1875
|
-
"customElement": true,
|
|
1876
|
-
"modulePath": "src/components/Button/sgds-button.ts",
|
|
1877
|
-
"cssProperties": [],
|
|
1878
|
-
"cssParts": [],
|
|
1879
|
-
"cssStates": []
|
|
1880
|
-
}
|
|
1881
|
-
],
|
|
1882
|
-
"exports": [
|
|
1883
|
-
{
|
|
1884
|
-
"kind": "js",
|
|
1885
|
-
"name": "SgdsButton",
|
|
1886
|
-
"declaration": {
|
|
1887
|
-
"name": "SgdsButton",
|
|
1888
|
-
"module": "src/components/Button/sgds-button.ts"
|
|
1889
|
-
}
|
|
1890
|
-
},
|
|
1891
|
-
{
|
|
1892
|
-
"kind": "js",
|
|
1893
|
-
"name": "default",
|
|
1894
|
-
"declaration": {
|
|
1895
|
-
"name": "SgdsButton",
|
|
1896
|
-
"module": "src/components/Button/sgds-button.ts"
|
|
1897
|
-
}
|
|
1898
|
-
}
|
|
1899
|
-
]
|
|
1900
|
-
},
|
|
1901
|
-
{
|
|
1902
|
-
"kind": "javascript-module",
|
|
1903
|
-
"path": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
1904
|
-
"declarations": [
|
|
1905
|
-
{
|
|
1906
|
-
"kind": "class",
|
|
1907
|
-
"description": "",
|
|
1908
|
-
"name": "SgdsBreadcrumbItem",
|
|
1909
|
-
"slots": [
|
|
1910
|
-
{
|
|
1911
|
-
"description": "The link of the item. Pass in anchor tags into this slot",
|
|
1912
|
-
"name": "default"
|
|
1913
|
-
}
|
|
1914
|
-
],
|
|
1915
|
-
"members": [
|
|
1916
|
-
{
|
|
1917
|
-
"kind": "field",
|
|
1918
|
-
"name": "dependencies",
|
|
1919
|
-
"type": {
|
|
1920
|
-
"text": "Record<string, typeof SgdsElement>"
|
|
1921
|
-
},
|
|
1922
|
-
"static": true,
|
|
1923
|
-
"default": "{\n \"sgds-link\": SgdsLink\n }"
|
|
1924
|
-
},
|
|
1925
|
-
{
|
|
1926
|
-
"kind": "field",
|
|
1927
|
-
"name": "active",
|
|
1928
|
-
"type": {
|
|
1929
|
-
"text": "boolean"
|
|
1930
|
-
},
|
|
1931
|
-
"default": "false",
|
|
1932
|
-
"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",
|
|
1933
|
-
"attribute": "active",
|
|
1934
|
-
"reflects": true
|
|
1935
|
-
},
|
|
1936
|
-
{
|
|
1937
|
-
"kind": "method",
|
|
1938
|
-
"name": "emit",
|
|
1939
|
-
"parameters": [
|
|
1940
|
-
{
|
|
1941
|
-
"name": "name",
|
|
1942
|
-
"type": {
|
|
1943
|
-
"text": "string"
|
|
1944
|
-
}
|
|
1945
|
-
},
|
|
1946
|
-
{
|
|
1947
|
-
"name": "options",
|
|
1948
|
-
"optional": true,
|
|
1949
|
-
"type": {
|
|
1950
|
-
"text": "CustomEventInit<T>"
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
],
|
|
1954
|
-
"description": "Emits a custom event with more convenient defaults.",
|
|
1955
|
-
"type": {},
|
|
1956
|
-
"inheritedFrom": {
|
|
1957
|
-
"name": "SgdsElement",
|
|
1958
|
-
"module": "src/base/sgds-element.ts"
|
|
1959
|
-
}
|
|
1960
|
-
},
|
|
1961
|
-
{
|
|
1962
|
-
"kind": "method",
|
|
1963
|
-
"name": "define",
|
|
1964
|
-
"static": true,
|
|
1965
|
-
"parameters": [
|
|
1966
|
-
{
|
|
1967
|
-
"name": "name",
|
|
1968
|
-
"type": {
|
|
1969
|
-
"text": "string"
|
|
1970
|
-
}
|
|
1971
|
-
},
|
|
1972
|
-
{
|
|
1973
|
-
"name": "elementConstructor",
|
|
1974
|
-
"default": "this"
|
|
1975
|
-
},
|
|
1976
|
-
{
|
|
1977
|
-
"name": "options",
|
|
1978
|
-
"default": "{}",
|
|
1979
|
-
"type": {
|
|
1980
|
-
"text": "ElementDefinitionOptions"
|
|
1981
|
-
}
|
|
1982
|
-
}
|
|
1983
|
-
],
|
|
1984
|
-
"type": {},
|
|
1985
|
-
"inheritedFrom": {
|
|
1986
|
-
"name": "SgdsElement",
|
|
1987
|
-
"module": "src/base/sgds-element.ts"
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
],
|
|
1991
|
-
"attributes": [
|
|
1992
|
-
{
|
|
1993
|
-
"name": "active",
|
|
1994
|
-
"type": {
|
|
1995
|
-
"text": "boolean"
|
|
1996
|
-
},
|
|
1997
|
-
"default": "false",
|
|
1998
|
-
"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",
|
|
1999
|
-
"fieldName": "active"
|
|
2000
|
-
}
|
|
2001
|
-
],
|
|
2002
|
-
"superclass": {
|
|
2003
|
-
"name": "SgdsElement",
|
|
2004
|
-
"module": "/src/base/sgds-element"
|
|
2005
|
-
},
|
|
2006
|
-
"summary": "Breadcrumb Item are navigational links used in Breadcrumb component",
|
|
2007
|
-
"tagName": "sgds-breadcrumb-item",
|
|
2008
|
-
"customElement": true,
|
|
2009
|
-
"modulePath": "src/components/Breadcrumb/sgds-breadcrumb-item.ts",
|
|
2010
|
-
"cssProperties": [],
|
|
2011
|
-
"cssParts": [],
|
|
2012
|
-
"cssStates": [],
|
|
2013
|
-
"events": []
|
|
2014
|
-
}
|
|
2015
|
-
],
|
|
2016
|
-
"exports": [
|
|
2017
|
-
{
|
|
2018
|
-
"kind": "js",
|
|
2019
|
-
"name": "SgdsBreadcrumbItem",
|
|
2020
|
-
"declaration": {
|
|
2021
|
-
"name": "SgdsBreadcrumbItem",
|
|
2022
|
-
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
2023
|
-
}
|
|
2024
|
-
},
|
|
2025
|
-
{
|
|
2026
|
-
"kind": "js",
|
|
2027
|
-
"name": "default",
|
|
2028
|
-
"declaration": {
|
|
2029
|
-
"name": "SgdsBreadcrumbItem",
|
|
2030
|
-
"module": "src/components/Breadcrumb/sgds-breadcrumb-item.ts"
|
|
2031
|
-
}
|
|
2032
|
-
}
|
|
2033
|
-
]
|
|
2034
|
-
},
|
|
2035
|
-
{
|
|
2036
|
-
"kind": "javascript-module",
|
|
2037
|
-
"path": "src/components/Breadcrumb/sgds-breadcrumb.ts",
|
|
2038
|
-
"declarations": [
|
|
2039
|
-
{
|
|
2040
|
-
"kind": "class",
|
|
2041
|
-
"description": "",
|
|
2042
|
-
"name": "SgdsBreadcrumb",
|
|
2043
|
-
"slots": [
|
|
2040
|
+
"text": "boolean"
|
|
2041
|
+
},
|
|
2042
|
+
"default": "false",
|
|
2043
|
+
"description": "Used only for SSR to indicate the presence of the `rightIcon` slot.",
|
|
2044
|
+
"fieldName": "hasRightIconSlot"
|
|
2045
|
+
},
|
|
2044
2046
|
{
|
|
2045
|
-
"
|
|
2046
|
-
"
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2047
|
+
"name": "variant",
|
|
2048
|
+
"type": {
|
|
2049
|
+
"text": "ButtonVariant"
|
|
2050
|
+
},
|
|
2051
|
+
"default": "\"primary\"",
|
|
2052
|
+
"description": "Sets the visual variants such as: `primary`, `outline`, `ghost`. `danger` is @deprecated since v3.5.6",
|
|
2053
|
+
"fieldName": "variant",
|
|
2054
|
+
"inheritedFrom": {
|
|
2055
|
+
"name": "ButtonElement",
|
|
2056
|
+
"module": "src/base/button-element.ts"
|
|
2057
|
+
}
|
|
2058
|
+
},
|
|
2050
2059
|
{
|
|
2051
|
-
"
|
|
2052
|
-
"name": "dependencies",
|
|
2060
|
+
"name": "tone",
|
|
2053
2061
|
"type": {
|
|
2054
|
-
"text": "
|
|
2062
|
+
"text": "ButtonTone"
|
|
2055
2063
|
},
|
|
2056
|
-
"
|
|
2057
|
-
"
|
|
2064
|
+
"default": "\"brand\"",
|
|
2065
|
+
"description": "Sets the visual colour of the button: `brand`, `danger`, `fixed-light`, `neutral`",
|
|
2066
|
+
"fieldName": "tone",
|
|
2067
|
+
"inheritedFrom": {
|
|
2068
|
+
"name": "ButtonElement",
|
|
2069
|
+
"module": "src/base/button-element.ts"
|
|
2070
|
+
}
|
|
2058
2071
|
},
|
|
2059
2072
|
{
|
|
2060
|
-
"
|
|
2061
|
-
"name": "ariaLabel",
|
|
2073
|
+
"name": "size",
|
|
2062
2074
|
"type": {
|
|
2063
|
-
"text": "
|
|
2075
|
+
"text": "\"xs\" | \"sm\" | \"md\" | \"lg\""
|
|
2064
2076
|
},
|
|
2065
|
-
"default": "\"
|
|
2066
|
-
"description": "
|
|
2067
|
-
"
|
|
2077
|
+
"default": "\"md\"",
|
|
2078
|
+
"description": "Specifies a small, medium or large button, the size is medium by default.",
|
|
2079
|
+
"fieldName": "size",
|
|
2080
|
+
"inheritedFrom": {
|
|
2081
|
+
"name": "ButtonElement",
|
|
2082
|
+
"module": "src/base/button-element.ts"
|
|
2083
|
+
}
|
|
2068
2084
|
},
|
|
2069
2085
|
{
|
|
2070
|
-
"
|
|
2071
|
-
"
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
"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>`",
|
|
2082
|
-
"type": {}
|
|
2086
|
+
"name": "active",
|
|
2087
|
+
"type": {
|
|
2088
|
+
"text": "boolean"
|
|
2089
|
+
},
|
|
2090
|
+
"default": "false",
|
|
2091
|
+
"description": "Manually set the visual state of the button to `:active`",
|
|
2092
|
+
"fieldName": "active",
|
|
2093
|
+
"inheritedFrom": {
|
|
2094
|
+
"name": "ButtonElement",
|
|
2095
|
+
"module": "src/base/button-element.ts"
|
|
2096
|
+
}
|
|
2083
2097
|
},
|
|
2084
2098
|
{
|
|
2085
|
-
"
|
|
2086
|
-
"
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
"type": {}
|
|
2099
|
+
"name": "disabled",
|
|
2100
|
+
"type": {
|
|
2101
|
+
"text": "boolean"
|
|
2102
|
+
},
|
|
2103
|
+
"default": "false",
|
|
2104
|
+
"description": "The disabled state of the button",
|
|
2105
|
+
"fieldName": "disabled",
|
|
2106
|
+
"inheritedFrom": {
|
|
2107
|
+
"name": "ButtonElement",
|
|
2108
|
+
"module": "src/base/button-element.ts"
|
|
2109
|
+
}
|
|
2097
2110
|
},
|
|
2098
2111
|
{
|
|
2099
|
-
"
|
|
2100
|
-
"
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
"text": "string"
|
|
2106
|
-
}
|
|
2107
|
-
},
|
|
2108
|
-
{
|
|
2109
|
-
"name": "options",
|
|
2110
|
-
"optional": true,
|
|
2111
|
-
"type": {
|
|
2112
|
-
"text": "CustomEventInit<T>"
|
|
2113
|
-
}
|
|
2114
|
-
}
|
|
2115
|
-
],
|
|
2116
|
-
"description": "Emits a custom event with more convenient defaults.",
|
|
2117
|
-
"type": {},
|
|
2112
|
+
"name": "href",
|
|
2113
|
+
"type": {
|
|
2114
|
+
"text": "string"
|
|
2115
|
+
},
|
|
2116
|
+
"description": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.",
|
|
2117
|
+
"fieldName": "href",
|
|
2118
2118
|
"inheritedFrom": {
|
|
2119
|
-
"name": "
|
|
2120
|
-
"module": "src/base/
|
|
2119
|
+
"name": "ButtonElement",
|
|
2120
|
+
"module": "src/base/button-element.ts"
|
|
2121
2121
|
}
|
|
2122
2122
|
},
|
|
2123
2123
|
{
|
|
2124
|
-
"
|
|
2125
|
-
"
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
"text": "string"
|
|
2132
|
-
}
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
"name": "elementConstructor",
|
|
2136
|
-
"default": "this"
|
|
2137
|
-
},
|
|
2138
|
-
{
|
|
2139
|
-
"name": "options",
|
|
2140
|
-
"default": "{}",
|
|
2141
|
-
"type": {
|
|
2142
|
-
"text": "ElementDefinitionOptions"
|
|
2143
|
-
}
|
|
2144
|
-
}
|
|
2145
|
-
],
|
|
2146
|
-
"type": {},
|
|
2124
|
+
"name": "target",
|
|
2125
|
+
"type": {
|
|
2126
|
+
"text": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\""
|
|
2127
|
+
},
|
|
2128
|
+
"default": "\"_self\"",
|
|
2129
|
+
"description": "Where to display the linked URL, as the name for a browsing context. Forwards to the HTMLAnchor target attribute",
|
|
2130
|
+
"fieldName": "target",
|
|
2147
2131
|
"inheritedFrom": {
|
|
2148
|
-
"name": "
|
|
2149
|
-
"module": "src/base/
|
|
2132
|
+
"name": "ButtonElement",
|
|
2133
|
+
"module": "src/base/button-element.ts"
|
|
2150
2134
|
}
|
|
2151
|
-
}
|
|
2152
|
-
|
|
2153
|
-
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
"name": "download",
|
|
2138
|
+
"type": {
|
|
2139
|
+
"text": "string"
|
|
2140
|
+
},
|
|
2141
|
+
"description": "Tells the browser to download the linked file as this filename. Only used when `href` is set.",
|
|
2142
|
+
"fieldName": "download",
|
|
2143
|
+
"inheritedFrom": {
|
|
2144
|
+
"name": "ButtonElement",
|
|
2145
|
+
"module": "src/base/button-element.ts"
|
|
2146
|
+
}
|
|
2147
|
+
},
|
|
2154
2148
|
{
|
|
2155
2149
|
"name": "ariaLabel",
|
|
2156
2150
|
"type": {
|
|
2157
2151
|
"text": "string"
|
|
2158
2152
|
},
|
|
2159
|
-
"
|
|
2160
|
-
"
|
|
2161
|
-
"
|
|
2153
|
+
"description": "The aria-label attribute to passed to button element when necessary",
|
|
2154
|
+
"fieldName": "ariaLabel",
|
|
2155
|
+
"inheritedFrom": {
|
|
2156
|
+
"name": "ButtonElement",
|
|
2157
|
+
"module": "src/base/button-element.ts"
|
|
2158
|
+
}
|
|
2159
|
+
},
|
|
2160
|
+
{
|
|
2161
|
+
"name": "loading",
|
|
2162
|
+
"type": {
|
|
2163
|
+
"text": "boolean"
|
|
2164
|
+
},
|
|
2165
|
+
"description": "When true, shows a loading spinner",
|
|
2166
|
+
"fieldName": "loading",
|
|
2167
|
+
"inheritedFrom": {
|
|
2168
|
+
"name": "ButtonElement",
|
|
2169
|
+
"module": "src/base/button-element.ts"
|
|
2170
|
+
}
|
|
2162
2171
|
}
|
|
2163
2172
|
],
|
|
2164
2173
|
"superclass": {
|
|
2165
|
-
"name": "
|
|
2166
|
-
"module": "/src/base/
|
|
2174
|
+
"name": "ButtonElement",
|
|
2175
|
+
"module": "/src/base/button-element"
|
|
2167
2176
|
},
|
|
2168
|
-
"summary": "
|
|
2169
|
-
"tagName": "sgds-
|
|
2177
|
+
"summary": "Custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.",
|
|
2178
|
+
"tagName": "sgds-button",
|
|
2170
2179
|
"customElement": true,
|
|
2171
|
-
"modulePath": "src/components/
|
|
2180
|
+
"modulePath": "src/components/Button/sgds-button.ts",
|
|
2172
2181
|
"cssProperties": [],
|
|
2173
2182
|
"cssParts": [],
|
|
2174
|
-
"cssStates": []
|
|
2175
|
-
"events": []
|
|
2183
|
+
"cssStates": []
|
|
2176
2184
|
}
|
|
2177
2185
|
],
|
|
2178
2186
|
"exports": [
|
|
2179
2187
|
{
|
|
2180
2188
|
"kind": "js",
|
|
2181
|
-
"name": "
|
|
2189
|
+
"name": "SgdsButton",
|
|
2182
2190
|
"declaration": {
|
|
2183
|
-
"name": "
|
|
2184
|
-
"module": "src/components/
|
|
2191
|
+
"name": "SgdsButton",
|
|
2192
|
+
"module": "src/components/Button/sgds-button.ts"
|
|
2185
2193
|
}
|
|
2186
2194
|
},
|
|
2187
2195
|
{
|
|
2188
2196
|
"kind": "js",
|
|
2189
2197
|
"name": "default",
|
|
2190
2198
|
"declaration": {
|
|
2191
|
-
"name": "
|
|
2192
|
-
"module": "src/components/
|
|
2199
|
+
"name": "SgdsButton",
|
|
2200
|
+
"module": "src/components/Button/sgds-button.ts"
|
|
2193
2201
|
}
|
|
2194
2202
|
}
|
|
2195
2203
|
]
|
|
@@ -14716,6 +14724,17 @@
|
|
|
14716
14724
|
"attribute": "required",
|
|
14717
14725
|
"reflects": true
|
|
14718
14726
|
},
|
|
14727
|
+
{
|
|
14728
|
+
"kind": "field",
|
|
14729
|
+
"name": "autofocus",
|
|
14730
|
+
"type": {
|
|
14731
|
+
"text": "boolean"
|
|
14732
|
+
},
|
|
14733
|
+
"default": "false",
|
|
14734
|
+
"description": "Automatically focuses the selected radio input in the group when it becomes checked.",
|
|
14735
|
+
"attribute": "autofocus",
|
|
14736
|
+
"reflects": true
|
|
14737
|
+
},
|
|
14719
14738
|
{
|
|
14720
14739
|
"kind": "method",
|
|
14721
14740
|
"name": "_handleValueChange",
|
|
@@ -15078,6 +15097,15 @@
|
|
|
15078
15097
|
"description": "Makes the input as a required field.",
|
|
15079
15098
|
"fieldName": "required"
|
|
15080
15099
|
},
|
|
15100
|
+
{
|
|
15101
|
+
"name": "autofocus",
|
|
15102
|
+
"type": {
|
|
15103
|
+
"text": "boolean"
|
|
15104
|
+
},
|
|
15105
|
+
"default": "false",
|
|
15106
|
+
"description": "Automatically focuses the selected radio input in the group when it becomes checked.",
|
|
15107
|
+
"fieldName": "autofocus"
|
|
15108
|
+
},
|
|
15081
15109
|
{
|
|
15082
15110
|
"name": "label",
|
|
15083
15111
|
"type": {
|
|
@@ -15246,6 +15274,16 @@
|
|
|
15246
15274
|
"attribute": "invalid",
|
|
15247
15275
|
"reflects": true
|
|
15248
15276
|
},
|
|
15277
|
+
{
|
|
15278
|
+
"kind": "field",
|
|
15279
|
+
"name": "autofocus",
|
|
15280
|
+
"type": {
|
|
15281
|
+
"text": "boolean"
|
|
15282
|
+
},
|
|
15283
|
+
"default": "false",
|
|
15284
|
+
"description": "Automatically focuses the radio input when it becomes checked.",
|
|
15285
|
+
"attribute": "autofocus"
|
|
15286
|
+
},
|
|
15249
15287
|
{
|
|
15250
15288
|
"kind": "field",
|
|
15251
15289
|
"name": "input",
|
|
@@ -15404,6 +15442,15 @@
|
|
|
15404
15442
|
"default": "false",
|
|
15405
15443
|
"description": "Marks the radio input as invalid. Replace the pseudo :invalid selector for absent in custom elements",
|
|
15406
15444
|
"fieldName": "invalid"
|
|
15445
|
+
},
|
|
15446
|
+
{
|
|
15447
|
+
"name": "autofocus",
|
|
15448
|
+
"type": {
|
|
15449
|
+
"text": "boolean"
|
|
15450
|
+
},
|
|
15451
|
+
"default": "false",
|
|
15452
|
+
"description": "Automatically focuses the radio input when it becomes checked.",
|
|
15453
|
+
"fieldName": "autofocus"
|
|
15407
15454
|
}
|
|
15408
15455
|
],
|
|
15409
15456
|
"superclass": {
|
|
@@ -26259,7 +26306,7 @@
|
|
|
26259
26306
|
"package": {
|
|
26260
26307
|
"name": "@govtechsg/sgds-web-component",
|
|
26261
26308
|
"description": "",
|
|
26262
|
-
"version": "3.
|
|
26309
|
+
"version": "3.17.0",
|
|
26263
26310
|
"author": "GovTechSG",
|
|
26264
26311
|
"license": "MIT"
|
|
26265
26312
|
}
|