@warp-ds/elements 2.9.1 → 2.10.0-next.1

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 (97) hide show
  1. package/dist/custom-elements.json +347 -284
  2. package/dist/docs/button/accessibility.md +42 -0
  3. package/dist/docs/button/api.md +63 -39
  4. package/dist/docs/button/button.md +322 -40
  5. package/dist/docs/button/examples.md +126 -0
  6. package/dist/docs/button/usage.md +89 -0
  7. package/dist/docs/modal/accessibility.md +1 -0
  8. package/dist/docs/modal/api.md +51 -0
  9. package/dist/docs/modal/examples.md +67 -0
  10. package/dist/docs/modal/modal.md +238 -0
  11. package/dist/docs/modal/usage.md +110 -0
  12. package/dist/docs/modal-footer/accessibility.md +1 -0
  13. package/dist/docs/modal-footer/api.md +11 -0
  14. package/dist/docs/modal-footer/examples.md +1 -0
  15. package/dist/docs/modal-footer/modal-footer.md +23 -0
  16. package/dist/docs/modal-footer/usage.md +1 -0
  17. package/dist/docs/modal-header/accessibility.md +1 -0
  18. package/dist/docs/modal-header/api.md +42 -0
  19. package/dist/docs/modal-header/examples.md +1 -0
  20. package/dist/docs/modal-header/modal-header.md +54 -0
  21. package/dist/docs/modal-header/usage.md +1 -0
  22. package/dist/docs/page-indicator/api.md +6 -6
  23. package/dist/docs/page-indicator/examples.md +8 -0
  24. package/dist/docs/page-indicator/page-indicator.md +23 -6
  25. package/dist/docs/page-indicator/usage.md +8 -0
  26. package/dist/docs/pagination/api.md +12 -10
  27. package/dist/docs/pagination/examples.md +20 -0
  28. package/dist/docs/pagination/pagination.md +50 -12
  29. package/dist/docs/pagination/usage.md +18 -0
  30. package/dist/docs/pill/accessibility.md +2 -0
  31. package/dist/docs/pill/api.md +10 -26
  32. package/dist/docs/pill/examples.md +23 -0
  33. package/dist/docs/pill/pill.md +43 -28
  34. package/dist/docs/pill/usage.md +8 -0
  35. package/dist/docs/radio/accessibility.md +1 -0
  36. package/dist/docs/radio/api.md +57 -0
  37. package/dist/docs/radio/examples.md +1 -0
  38. package/dist/docs/radio/radio.md +69 -0
  39. package/dist/docs/radio/usage.md +1 -0
  40. package/dist/docs/radio-group/accessibility.md +1 -0
  41. package/dist/docs/radio-group/api.md +69 -0
  42. package/dist/docs/radio-group/examples.md +68 -0
  43. package/dist/docs/radio-group/radio-group.md +311 -0
  44. package/dist/docs/radio-group/styling.md +118 -0
  45. package/dist/docs/radio-group/usage.md +44 -0
  46. package/dist/docs/select/accessibility.md +2 -0
  47. package/dist/docs/select/api.md +20 -16
  48. package/dist/docs/select/examples.md +116 -0
  49. package/dist/docs/select/select.md +168 -18
  50. package/dist/docs/select/usage.md +30 -0
  51. package/dist/index.d.ts +441 -474
  52. package/dist/packages/attention/attention.js +23 -21
  53. package/dist/packages/attention/attention.js.map +3 -3
  54. package/dist/packages/button/button.d.ts +54 -37
  55. package/dist/packages/button/button.js +17 -15
  56. package/dist/packages/button/button.js.map +3 -3
  57. package/dist/packages/button/button.react.stories.d.ts +2 -2
  58. package/dist/packages/button/react.d.ts +1 -1
  59. package/dist/packages/modal/index.d.ts +4 -4
  60. package/dist/packages/modal/index.js +4 -4
  61. package/dist/packages/modal/modal.d.ts +21 -12
  62. package/dist/packages/modal/modal.js +4 -4
  63. package/dist/packages/modal/modal.js.map +3 -3
  64. package/dist/packages/modal/modal.react.stories.d.ts +3 -3
  65. package/dist/packages/modal/modal.stories.d.ts +2 -1
  66. package/dist/packages/modal/modal.stories.js +85 -3
  67. package/dist/packages/modal/react.d.ts +2 -2
  68. package/dist/packages/modal-footer/modal-footer.d.ts +5 -3
  69. package/dist/packages/modal-footer/modal-footer.js +4 -4
  70. package/dist/packages/modal-footer/modal-footer.js.map +3 -3
  71. package/dist/packages/modal-footer/react.d.ts +1 -1
  72. package/dist/packages/modal-header/modal-header.d.ts +21 -11
  73. package/dist/packages/modal-header/modal-header.js +1 -1
  74. package/dist/packages/modal-header/modal-header.js.map +3 -3
  75. package/dist/packages/modal-header/react.d.ts +2 -2
  76. package/dist/packages/page-indicator/page-indicator.d.ts +9 -14
  77. package/dist/packages/page-indicator/page-indicator.js.map +2 -2
  78. package/dist/packages/pagination/pagination.d.ts +11 -11
  79. package/dist/packages/pagination/pagination.js.map +2 -2
  80. package/dist/packages/pill/pill.d.ts +14 -29
  81. package/dist/packages/pill/pill.js.map +2 -2
  82. package/dist/packages/pill/pill.react.stories.d.ts +2 -2
  83. package/dist/packages/pill/react.d.ts +1 -1
  84. package/dist/packages/radio/radio.d.ts +51 -13
  85. package/dist/packages/radio/radio.js +3 -3
  86. package/dist/packages/radio/radio.js.map +3 -3
  87. package/dist/packages/radio/radio.react.stories.d.ts +1 -1
  88. package/dist/packages/radio/radio.stories.d.ts +2 -2
  89. package/dist/packages/radio/react.d.ts +2 -2
  90. package/dist/packages/radio-group/radio-group.d.ts +43 -5
  91. package/dist/packages/radio-group/radio-group.js +7 -7
  92. package/dist/packages/radio-group/radio-group.js.map +3 -3
  93. package/dist/packages/radio-group/react.d.ts +4 -4
  94. package/dist/packages/select/select.d.ts +32 -48
  95. package/dist/packages/select/select.js.map +2 -2
  96. package/dist/web-types.json +349 -115
  97. package/package.json +5 -5
@@ -1131,7 +1131,7 @@
1131
1131
  "declarations": [
1132
1132
  {
1133
1133
  "kind": "class",
1134
- "description": "Buttons are used to perform actions, widh different visuals for different needs.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)",
1134
+ "description": "Performs an action or renders a link with button styling.\nUse button variants to match action priority, risk, and context.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)",
1135
1135
  "name": "WarpButton",
1136
1136
  "members": [
1137
1137
  {
@@ -1141,7 +1141,8 @@
1141
1141
  "text": "object"
1142
1142
  },
1143
1143
  "static": true,
1144
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
1144
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }",
1145
+ "description": "Shadow root configuration.\nDelegates focus from the host to the internal control."
1145
1146
  },
1146
1147
  {
1147
1148
  "kind": "field",
@@ -1149,6 +1150,7 @@
1149
1150
  "type": {
1150
1151
  "text": "ButtonType"
1151
1152
  },
1153
+ "description": "Native button type.\nControls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`.",
1152
1154
  "attribute": "type",
1153
1155
  "reflects": true,
1154
1156
  "parsedType": {
@@ -1162,6 +1164,7 @@
1162
1164
  "text": "boolean"
1163
1165
  },
1164
1166
  "default": "false",
1167
+ "description": "Focuses the button when it is first rendered.\nApplies only when the component renders a native button. Link buttons with `href` do not autofocus through this component.",
1165
1168
  "attribute": "autofocus",
1166
1169
  "reflects": true
1167
1170
  },
@@ -1171,6 +1174,7 @@
1171
1174
  "type": {
1172
1175
  "text": "ButtonVariant"
1173
1176
  },
1177
+ "description": "Visual style of the button.\nDefaults to `secondary`. Use the variant that matches the action priority, risk, and placement.",
1174
1178
  "attribute": "variant",
1175
1179
  "reflects": true,
1176
1180
  "parsedType": {
@@ -1184,6 +1188,7 @@
1184
1188
  "text": "boolean"
1185
1189
  },
1186
1190
  "default": "false",
1191
+ "description": "Deprecated quiet visual treatment flag\nUse `variant=\"quiet\"` instead.",
1187
1192
  "deprecated": "Use `variant=\"quiet\"` instead",
1188
1193
  "attribute": "quiet",
1189
1194
  "reflects": true
@@ -1195,6 +1200,7 @@
1195
1200
  "text": "boolean"
1196
1201
  },
1197
1202
  "default": "false",
1203
+ "description": "Marks the button as icon-only.\nUse this when the button has no visible text. Include accessible text in the slotted content so the internal button has a name.",
1198
1204
  "attribute": "icon-only",
1199
1205
  "reflects": true
1200
1206
  },
@@ -1205,6 +1211,7 @@
1205
1211
  "text": "boolean"
1206
1212
  },
1207
1213
  "default": "false",
1214
+ "description": "Renders the compact button size.\nUse this in dense layouts where the default button size is too large.",
1208
1215
  "attribute": "small",
1209
1216
  "reflects": true
1210
1217
  },
@@ -1215,6 +1222,7 @@
1215
1222
  "text": "boolean"
1216
1223
  },
1217
1224
  "default": "false",
1225
+ "description": "Shows the loading state.\nUse after the user has triggered an action and the action is in progress.",
1218
1226
  "attribute": "loading",
1219
1227
  "reflects": true
1220
1228
  },
@@ -1224,6 +1232,7 @@
1224
1232
  "type": {
1225
1233
  "text": "string"
1226
1234
  },
1235
+ "description": "URL for rendering the button as a link.\nWhen set, the component renders `w-link` instead of a native `button`.",
1227
1236
  "attribute": "href",
1228
1237
  "reflects": true
1229
1238
  },
@@ -1233,6 +1242,7 @@
1233
1242
  "type": {
1234
1243
  "text": "string"
1235
1244
  },
1245
+ "description": "Link browsing context.\nPassed to the rendered link when `href` is set.",
1236
1246
  "attribute": "target",
1237
1247
  "reflects": true
1238
1248
  },
@@ -1243,6 +1253,7 @@
1243
1253
  "text": "boolean"
1244
1254
  },
1245
1255
  "default": "false",
1256
+ "description": "Visually disables the button.\nDisabled buttons are discouraged because they can hide the reason an action is unavailable.",
1246
1257
  "attribute": "disabled",
1247
1258
  "reflects": true
1248
1259
  },
@@ -1252,6 +1263,7 @@
1252
1263
  "type": {
1253
1264
  "text": "string"
1254
1265
  },
1266
+ "description": "Link relationship.\nPassed to the rendered link when `href` is set. If `target=\"_blank\"` is set and `rel` is omitted, `noopener` is used.",
1255
1267
  "attribute": "rel",
1256
1268
  "reflects": true
1257
1269
  },
@@ -1262,6 +1274,7 @@
1262
1274
  "text": "boolean"
1263
1275
  },
1264
1276
  "default": "false",
1277
+ "description": "Makes the button fill its parent width.\nUseful in narrow layouts where the button should span the available inline space.",
1265
1278
  "attribute": "full-width",
1266
1279
  "reflects": true
1267
1280
  },
@@ -1271,6 +1284,7 @@
1271
1284
  "type": {
1272
1285
  "text": "string"
1273
1286
  },
1287
+ "description": "Deprecated class applied to the internal control\nThis class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the button appearance.",
1274
1288
  "deprecated": "This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button.",
1275
1289
  "attribute": "button-class",
1276
1290
  "reflects": true
@@ -1281,6 +1295,7 @@
1281
1295
  "type": {
1282
1296
  "text": "string"
1283
1297
  },
1298
+ "description": "Form control name.\nUsed when the button participates in form handling.",
1284
1299
  "attribute": "name",
1285
1300
  "reflects": true
1286
1301
  },
@@ -1290,9 +1305,44 @@
1290
1305
  "type": {
1291
1306
  "text": "string"
1292
1307
  },
1308
+ "description": "Form control value.\nUsed with `name` when the button participates in form handling. Resets to its initial value when the form is reset.",
1293
1309
  "attribute": "value",
1294
1310
  "reflects": true
1295
1311
  },
1312
+ {
1313
+ "kind": "field",
1314
+ "name": "commandfor",
1315
+ "type": {
1316
+ "text": "string"
1317
+ },
1318
+ "description": "The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
1319
+ "attribute": "commandfor"
1320
+ },
1321
+ {
1322
+ "kind": "field",
1323
+ "name": "command",
1324
+ "type": {
1325
+ "text": "string"
1326
+ },
1327
+ "description": "The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
1328
+ "attribute": "command"
1329
+ },
1330
+ {
1331
+ "kind": "field",
1332
+ "name": "buttonEl",
1333
+ "type": {
1334
+ "text": "HTMLButtonElement | null"
1335
+ },
1336
+ "privacy": "private"
1337
+ },
1338
+ {
1339
+ "kind": "field",
1340
+ "name": "ariaValueTextLoading",
1341
+ "type": {
1342
+ "text": "string"
1343
+ },
1344
+ "privacy": "private"
1345
+ },
1296
1346
  {
1297
1347
  "kind": "field",
1298
1348
  "name": "#initialValue",
@@ -1302,6 +1352,25 @@
1302
1352
  },
1303
1353
  "default": "null"
1304
1354
  },
1355
+ {
1356
+ "kind": "method",
1357
+ "name": "closestWithId",
1358
+ "privacy": "private",
1359
+ "return": {
1360
+ "type": {
1361
+ "text": "HTMLElement | null"
1362
+ }
1363
+ },
1364
+ "parameters": [
1365
+ {
1366
+ "name": "id",
1367
+ "type": {
1368
+ "text": "string"
1369
+ }
1370
+ }
1371
+ ],
1372
+ "description": "Traverse up the shadow roots looking for the ID to support use inside other Lit components."
1373
+ },
1305
1374
  {
1306
1375
  "kind": "method",
1307
1376
  "name": "resetFormControl",
@@ -1313,10 +1382,6 @@
1313
1382
  "type": {
1314
1383
  "text": "resetFormControl() => void"
1315
1384
  }
1316
- },
1317
- {
1318
- "kind": "field",
1319
- "name": "ariaValueTextLoading"
1320
1385
  }
1321
1386
  ],
1322
1387
  "attributes": [
@@ -1325,6 +1390,7 @@
1325
1390
  "type": {
1326
1391
  "text": "ButtonType"
1327
1392
  },
1393
+ "description": "Native button type.\nControls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`.",
1328
1394
  "fieldName": "type",
1329
1395
  "parsedType": {
1330
1396
  "text": "'button' | 'submit' | 'reset'"
@@ -1336,6 +1402,7 @@
1336
1402
  "text": "boolean"
1337
1403
  },
1338
1404
  "default": "false",
1405
+ "description": "Focuses the button when it is first rendered.\nApplies only when the component renders a native button. Link buttons with `href` do not autofocus through this component.",
1339
1406
  "fieldName": "autofocus"
1340
1407
  },
1341
1408
  {
@@ -1343,6 +1410,7 @@
1343
1410
  "type": {
1344
1411
  "text": "ButtonVariant"
1345
1412
  },
1413
+ "description": "Visual style of the button.\nDefaults to `secondary`. Use the variant that matches the action priority, risk, and placement.",
1346
1414
  "fieldName": "variant",
1347
1415
  "parsedType": {
1348
1416
  "text": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link'"
@@ -1354,6 +1422,7 @@
1354
1422
  "text": "boolean"
1355
1423
  },
1356
1424
  "default": "false",
1425
+ "description": "Deprecated quiet visual treatment flag\nUse `variant=\"quiet\"` instead.",
1357
1426
  "deprecated": "Use `variant=\"quiet\"` instead",
1358
1427
  "fieldName": "quiet"
1359
1428
  },
@@ -1363,6 +1432,7 @@
1363
1432
  "text": "boolean"
1364
1433
  },
1365
1434
  "default": "false",
1435
+ "description": "Marks the button as icon-only.\nUse this when the button has no visible text. Include accessible text in the slotted content so the internal button has a name.",
1366
1436
  "fieldName": "iconOnly"
1367
1437
  },
1368
1438
  {
@@ -1371,6 +1441,7 @@
1371
1441
  "text": "boolean"
1372
1442
  },
1373
1443
  "default": "false",
1444
+ "description": "Renders the compact button size.\nUse this in dense layouts where the default button size is too large.",
1374
1445
  "fieldName": "small"
1375
1446
  },
1376
1447
  {
@@ -1379,6 +1450,7 @@
1379
1450
  "text": "boolean"
1380
1451
  },
1381
1452
  "default": "false",
1453
+ "description": "Shows the loading state.\nUse after the user has triggered an action and the action is in progress.",
1382
1454
  "fieldName": "loading"
1383
1455
  },
1384
1456
  {
@@ -1386,6 +1458,7 @@
1386
1458
  "type": {
1387
1459
  "text": "string"
1388
1460
  },
1461
+ "description": "URL for rendering the button as a link.\nWhen set, the component renders `w-link` instead of a native `button`.",
1389
1462
  "fieldName": "href"
1390
1463
  },
1391
1464
  {
@@ -1393,6 +1466,7 @@
1393
1466
  "type": {
1394
1467
  "text": "string"
1395
1468
  },
1469
+ "description": "Link browsing context.\nPassed to the rendered link when `href` is set.",
1396
1470
  "fieldName": "target"
1397
1471
  },
1398
1472
  {
@@ -1401,6 +1475,7 @@
1401
1475
  "text": "boolean"
1402
1476
  },
1403
1477
  "default": "false",
1478
+ "description": "Visually disables the button.\nDisabled buttons are discouraged because they can hide the reason an action is unavailable.",
1404
1479
  "fieldName": "disabled"
1405
1480
  },
1406
1481
  {
@@ -1408,6 +1483,7 @@
1408
1483
  "type": {
1409
1484
  "text": "string"
1410
1485
  },
1486
+ "description": "Link relationship.\nPassed to the rendered link when `href` is set. If `target=\"_blank\"` is set and `rel` is omitted, `noopener` is used.",
1411
1487
  "fieldName": "rel"
1412
1488
  },
1413
1489
  {
@@ -1416,6 +1492,7 @@
1416
1492
  "text": "boolean"
1417
1493
  },
1418
1494
  "default": "false",
1495
+ "description": "Makes the button fill its parent width.\nUseful in narrow layouts where the button should span the available inline space.",
1419
1496
  "fieldName": "fullWidth"
1420
1497
  },
1421
1498
  {
@@ -1423,6 +1500,7 @@
1423
1500
  "type": {
1424
1501
  "text": "string"
1425
1502
  },
1503
+ "description": "Deprecated class applied to the internal control\nThis class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the button appearance.",
1426
1504
  "deprecated": "This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button.",
1427
1505
  "fieldName": "buttonClass"
1428
1506
  },
@@ -1431,6 +1509,7 @@
1431
1509
  "type": {
1432
1510
  "text": "string"
1433
1511
  },
1512
+ "description": "Form control name.\nUsed when the button participates in form handling.",
1434
1513
  "fieldName": "name"
1435
1514
  },
1436
1515
  {
@@ -1438,7 +1517,24 @@
1438
1517
  "type": {
1439
1518
  "text": "string"
1440
1519
  },
1520
+ "description": "Form control value.\nUsed with `name` when the button participates in form handling. Resets to its initial value when the form is reset.",
1441
1521
  "fieldName": "value"
1522
+ },
1523
+ {
1524
+ "name": "commandfor",
1525
+ "type": {
1526
+ "text": "string"
1527
+ },
1528
+ "description": "The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
1529
+ "fieldName": "commandfor"
1530
+ },
1531
+ {
1532
+ "name": "command",
1533
+ "type": {
1534
+ "text": "string"
1535
+ },
1536
+ "description": "The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
1537
+ "fieldName": "command"
1442
1538
  }
1443
1539
  ],
1444
1540
  "mixins": [
@@ -4255,8 +4351,8 @@
4255
4351
  "declarations": [
4256
4352
  {
4257
4353
  "kind": "class",
4258
- "description": "Modals (or dialogs) display important information that users need to acknowledge.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)",
4259
- "name": "ModalMain",
4354
+ "description": "Modals (or dialogs) display important information that users need to acknowledge.",
4355
+ "name": "WarpModal",
4260
4356
  "slots": [
4261
4357
  {
4262
4358
  "description": "Typically where you would use the `w-modal-header` component.",
@@ -4279,6 +4375,7 @@
4279
4375
  "text": "boolean"
4280
4376
  },
4281
4377
  "default": "false",
4378
+ "description": "Controls if the modal should show or hide.\n\nYou can also call the `open()` and `close()` methods.",
4282
4379
  "attribute": "show"
4283
4380
  },
4284
4381
  {
@@ -4296,6 +4393,7 @@
4296
4393
  "text": "boolean"
4297
4394
  },
4298
4395
  "default": "false",
4396
+ "description": "Ignores clicks to the backdrop when set",
4299
4397
  "attribute": "ignore-backdrop-clicks"
4300
4398
  },
4301
4399
  {
@@ -4303,21 +4401,24 @@
4303
4401
  "name": "dialogEl",
4304
4402
  "type": {
4305
4403
  "text": "HTMLDialogElement"
4306
- }
4404
+ },
4405
+ "privacy": "private"
4307
4406
  },
4308
4407
  {
4309
4408
  "kind": "field",
4310
4409
  "name": "dialogInnerEl",
4311
4410
  "type": {
4312
4411
  "text": "HTMLElement"
4313
- }
4412
+ },
4413
+ "privacy": "private"
4314
4414
  },
4315
4415
  {
4316
4416
  "kind": "field",
4317
4417
  "name": "contentEl",
4318
4418
  "type": {
4319
4419
  "text": "HTMLElement"
4320
- }
4420
+ },
4421
+ "privacy": "private"
4321
4422
  },
4322
4423
  {
4323
4424
  "kind": "method",
@@ -4336,19 +4437,18 @@
4336
4437
  {
4337
4438
  "kind": "method",
4338
4439
  "name": "handleListeners",
4440
+ "privacy": "private",
4339
4441
  "parameters": [
4340
4442
  {
4341
4443
  "name": "verb",
4342
4444
  "default": "'addEventListener'"
4343
4445
  }
4344
- ],
4345
- "type": {
4346
- "text": "handleListeners(verb = 'addEventListener') => void"
4347
- }
4446
+ ]
4348
4447
  },
4349
4448
  {
4350
4449
  "kind": "method",
4351
4450
  "name": "eventPreventer",
4451
+ "privacy": "private",
4352
4452
  "parameters": [
4353
4453
  {
4354
4454
  "name": "evt",
@@ -4356,14 +4456,12 @@
4356
4456
  "text": "Event"
4357
4457
  }
4358
4458
  }
4359
- ],
4360
- "type": {
4361
- "text": "eventPreventer(evt: Event) => void"
4362
- }
4459
+ ]
4363
4460
  },
4364
4461
  {
4365
4462
  "kind": "method",
4366
4463
  "name": "closeOnBackdropClick",
4464
+ "privacy": "private",
4367
4465
  "parameters": [
4368
4466
  {
4369
4467
  "name": "evt",
@@ -4371,14 +4469,12 @@
4371
4469
  "text": "MouseEvent"
4372
4470
  }
4373
4471
  }
4374
- ],
4375
- "type": {
4376
- "text": "closeOnBackdropClick(evt: MouseEvent) => void"
4377
- }
4472
+ ]
4378
4473
  },
4379
4474
  {
4380
4475
  "kind": "method",
4381
4476
  "name": "interceptEscape",
4477
+ "privacy": "private",
4382
4478
  "parameters": [
4383
4479
  {
4384
4480
  "name": "evt",
@@ -4386,17 +4482,12 @@
4386
4482
  "text": "KeyboardEvent"
4387
4483
  }
4388
4484
  }
4389
- ],
4390
- "type": {
4391
- "text": "interceptEscape(evt: KeyboardEvent) => void"
4392
- }
4485
+ ]
4393
4486
  },
4394
4487
  {
4395
4488
  "kind": "method",
4396
4489
  "name": "modifyBorderRadius",
4397
- "type": {
4398
- "text": "modifyBorderRadius() => void"
4399
- }
4490
+ "privacy": "private"
4400
4491
  }
4401
4492
  ],
4402
4493
  "events": [
@@ -4420,6 +4511,7 @@
4420
4511
  "text": "boolean"
4421
4512
  },
4422
4513
  "default": "false",
4514
+ "description": "Controls if the modal should show or hide.\n\nYou can also call the `open()` and `close()` methods.",
4423
4515
  "fieldName": "show"
4424
4516
  },
4425
4517
  {
@@ -4435,6 +4527,7 @@
4435
4527
  "text": "boolean"
4436
4528
  },
4437
4529
  "default": "false",
4530
+ "description": "Ignores clicks to the backdrop when set",
4438
4531
  "fieldName": "ignoreBackdropClicks"
4439
4532
  }
4440
4533
  ],
@@ -4452,9 +4545,23 @@
4452
4545
  "customElement": true,
4453
4546
  "modulePath": "packages/modal/modal.ts",
4454
4547
  "definitionPath": "packages/modal/modal.ts"
4548
+ },
4549
+ {
4550
+ "kind": "variable",
4551
+ "name": "ModalMain",
4552
+ "default": "WarpModal",
4553
+ "deprecated": "Exported for backwards compatibility. Use WarpModal."
4455
4554
  }
4456
4555
  ],
4457
4556
  "exports": [
4557
+ {
4558
+ "kind": "js",
4559
+ "name": "WarpModal",
4560
+ "declaration": {
4561
+ "name": "WarpModal",
4562
+ "module": "packages/modal/modal.ts"
4563
+ }
4564
+ },
4458
4565
  {
4459
4566
  "kind": "js",
4460
4567
  "name": "ModalMain",
@@ -4467,7 +4574,7 @@
4467
4574
  "kind": "custom-element-definition",
4468
4575
  "name": "w-modal",
4469
4576
  "declaration": {
4470
- "name": "ModalMain",
4577
+ "name": "WarpModal",
4471
4578
  "module": "packages/modal/modal.ts"
4472
4579
  }
4473
4580
  }
@@ -4479,8 +4586,8 @@
4479
4586
  "declarations": [
4480
4587
  {
4481
4588
  "kind": "class",
4482
- "description": "The footer section of a modal, typically where you place actions.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)",
4483
- "name": "ModalFooter",
4589
+ "description": "The footer section of a modal, typically where you place actions.",
4590
+ "name": "WarpModalFooter",
4484
4591
  "members": [],
4485
4592
  "mixins": [
4486
4593
  {
@@ -4496,13 +4603,31 @@
4496
4603
  "name": "LitElement",
4497
4604
  "package": "lit"
4498
4605
  },
4606
+ "parent": {
4607
+ "name": "w-modal",
4608
+ "description": ""
4609
+ },
4499
4610
  "tagName": "w-modal-footer",
4500
4611
  "customElement": true,
4501
4612
  "modulePath": "packages/modal-footer/modal-footer.ts",
4502
4613
  "definitionPath": "packages/modal-footer/modal-footer.ts"
4614
+ },
4615
+ {
4616
+ "kind": "variable",
4617
+ "name": "ModalFooter",
4618
+ "default": "WarpModalFooter",
4619
+ "deprecated": "Exported for backwards compatibility. Use WarpModalFooter."
4503
4620
  }
4504
4621
  ],
4505
4622
  "exports": [
4623
+ {
4624
+ "kind": "js",
4625
+ "name": "WarpModalFooter",
4626
+ "declaration": {
4627
+ "name": "WarpModalFooter",
4628
+ "module": "packages/modal-footer/modal-footer.ts"
4629
+ }
4630
+ },
4506
4631
  {
4507
4632
  "kind": "js",
4508
4633
  "name": "ModalFooter",
@@ -4515,7 +4640,7 @@
4515
4640
  "kind": "custom-element-definition",
4516
4641
  "name": "w-modal-footer",
4517
4642
  "declaration": {
4518
- "name": "ModalFooter",
4643
+ "name": "WarpModalFooter",
4519
4644
  "module": "packages/modal-footer/modal-footer.ts"
4520
4645
  }
4521
4646
  }
@@ -4527,8 +4652,8 @@
4527
4652
  "declarations": [
4528
4653
  {
4529
4654
  "kind": "class",
4530
- "description": "The header section of a modal, typically where you place the title and a close button.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)",
4531
- "name": "ModalHeader",
4655
+ "description": "The header section of a modal, typically where you place the title and a close button.",
4656
+ "name": "WarpModalHeader",
4532
4657
  "slots": [
4533
4658
  {
4534
4659
  "description": "Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.",
@@ -4542,6 +4667,7 @@
4542
4667
  "type": {
4543
4668
  "text": "string"
4544
4669
  },
4670
+ "description": "A short but descriptive title for the modal",
4545
4671
  "attribute": "title"
4546
4672
  },
4547
4673
  {
@@ -4551,6 +4677,7 @@
4551
4677
  "text": "boolean"
4552
4678
  },
4553
4679
  "default": "false",
4680
+ "description": "Whether the modal header should have a back button",
4554
4681
  "attribute": "back"
4555
4682
  },
4556
4683
  {
@@ -4560,48 +4687,61 @@
4560
4687
  "text": "boolean"
4561
4688
  },
4562
4689
  "default": "false",
4690
+ "description": "Lets you hide the close button in the header",
4563
4691
  "attribute": "no-close"
4564
4692
  },
4693
+ {
4694
+ "kind": "field",
4695
+ "name": "_hasTopContent",
4696
+ "type": {
4697
+ "text": "boolean"
4698
+ },
4699
+ "privacy": "private",
4700
+ "default": "false"
4701
+ },
4565
4702
  {
4566
4703
  "kind": "field",
4567
4704
  "name": "titleEl",
4568
4705
  "type": {
4569
4706
  "text": "HTMLElement"
4570
- }
4707
+ },
4708
+ "privacy": "private"
4571
4709
  },
4572
4710
  {
4573
4711
  "kind": "field",
4574
4712
  "name": "titleClasses",
4713
+ "privacy": "private",
4575
4714
  "readonly": true
4576
4715
  },
4577
4716
  {
4578
4717
  "kind": "field",
4579
4718
  "name": "backButton",
4719
+ "privacy": "private",
4580
4720
  "readonly": true
4581
4721
  },
4582
4722
  {
4583
4723
  "kind": "field",
4584
4724
  "name": "closeButton",
4725
+ "privacy": "private",
4585
4726
  "readonly": true
4586
4727
  },
4587
4728
  {
4588
4729
  "kind": "method",
4589
4730
  "name": "emitBack",
4590
- "type": {
4591
- "text": "emitBack() => void"
4592
- }
4731
+ "privacy": "private"
4593
4732
  },
4594
4733
  {
4595
4734
  "kind": "method",
4596
4735
  "name": "handleTopSlotChange",
4736
+ "privacy": "private",
4597
4737
  "parameters": [
4598
4738
  {
4599
- "name": "slotEvent"
4739
+ "name": "slotEvent",
4740
+ "type": {
4741
+ "text": "Event"
4742
+ }
4600
4743
  }
4601
- ],
4602
- "type": {
4603
- "text": "handleTopSlotChange(slotEvent) => void"
4604
- }
4744
+ ]
4605
4745
  }
4606
4746
  ],
4607
4747
  "events": [
@@ -4618,6 +4758,7 @@
4618
4758
  "type": {
4619
4759
  "text": "string"
4620
4760
  },
4761
+ "description": "A short but descriptive title for the modal",
4621
4762
  "fieldName": "title"
4622
4763
  },
4623
4764
  {
@@ -4626,6 +4767,7 @@
4626
4767
  "text": "boolean"
4627
4768
  },
4628
4769
  "default": "false",
4770
+ "description": "Whether the modal header should have a back button",
4629
4771
  "fieldName": "back"
4630
4772
  },
4631
4773
  {
@@ -4634,6 +4776,7 @@
4634
4776
  "text": "boolean"
4635
4777
  },
4636
4778
  "default": "false",
4779
+ "description": "Lets you hide the close button in the header",
4637
4780
  "fieldName": "noClose"
4638
4781
  }
4639
4782
  ],
@@ -4647,13 +4790,31 @@
4647
4790
  "name": "LitElement",
4648
4791
  "package": "lit"
4649
4792
  },
4793
+ "parent": {
4794
+ "name": "w-modal",
4795
+ "description": ""
4796
+ },
4650
4797
  "tagName": "w-modal-header",
4651
4798
  "customElement": true,
4652
4799
  "modulePath": "packages/modal-header/modal-header.ts",
4653
4800
  "definitionPath": "packages/modal-header/modal-header.ts"
4801
+ },
4802
+ {
4803
+ "kind": "variable",
4804
+ "name": "ModalHeader",
4805
+ "default": "WarpModalHeader",
4806
+ "deprecated": "Exported for backwards compatibility. Use WarpModalHeader."
4654
4807
  }
4655
4808
  ],
4656
4809
  "exports": [
4810
+ {
4811
+ "kind": "js",
4812
+ "name": "WarpModalHeader",
4813
+ "declaration": {
4814
+ "name": "WarpModalHeader",
4815
+ "module": "packages/modal-header/modal-header.ts"
4816
+ }
4817
+ },
4657
4818
  {
4658
4819
  "kind": "js",
4659
4820
  "name": "ModalHeader",
@@ -4666,7 +4827,7 @@
4666
4827
  "kind": "custom-element-definition",
4667
4828
  "name": "w-modal-header",
4668
4829
  "declaration": {
4669
- "name": "ModalHeader",
4830
+ "name": "WarpModalHeader",
4670
4831
  "module": "packages/modal-header/modal-header.ts"
4671
4832
  }
4672
4833
  }
@@ -4678,7 +4839,7 @@
4678
4839
  "declarations": [
4679
4840
  {
4680
4841
  "kind": "class",
4681
- "description": "A page indicator component that displays a series of dots representing pages.\nOne dot is highlighted to indicate the currently selected page.",
4842
+ "description": "A page indicator component that displays a series of dots representing pages.\n\nOne dot is highlighted to indicate the currently selected page.",
4682
4843
  "name": "WarpPageIndicator",
4683
4844
  "members": [
4684
4845
  {
@@ -4687,7 +4848,8 @@
4687
4848
  "type": {
4688
4849
  "text": "number"
4689
4850
  },
4690
- "description": "Currently selected page (1-based index, clamped to valid range)",
4851
+ "description": "Currently selected page (1-based index)",
4852
+ "default": "1",
4691
4853
  "attribute": "selected-page",
4692
4854
  "reflects": true
4693
4855
  },
@@ -4697,7 +4859,8 @@
4697
4859
  "type": {
4698
4860
  "text": "number"
4699
4861
  },
4700
- "description": "Total number of pages (minimum 1)",
4862
+ "description": "Total number of pages",
4863
+ "default": "1",
4701
4864
  "attribute": "page-count",
4702
4865
  "reflects": true
4703
4866
  },
@@ -4728,7 +4891,8 @@
4728
4891
  "type": {
4729
4892
  "text": "number"
4730
4893
  },
4731
- "description": "Currently selected page (1-based index, clamped to valid range)",
4894
+ "description": "Currently selected page (1-based index)",
4895
+ "default": "1",
4732
4896
  "fieldName": "selectedPage"
4733
4897
  },
4734
4898
  {
@@ -4736,7 +4900,8 @@
4736
4900
  "type": {
4737
4901
  "text": "number"
4738
4902
  },
4739
- "description": "Total number of pages (minimum 1)",
4903
+ "description": "Total number of pages",
4904
+ "default": "1",
4740
4905
  "fieldName": "pageCount"
4741
4906
  }
4742
4907
  ],
@@ -4775,7 +4940,7 @@
4775
4940
  "declarations": [
4776
4941
  {
4777
4942
  "kind": "class",
4778
- "description": "Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)",
4943
+ "description": "Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.",
4779
4944
  "name": "WarpPagination",
4780
4945
  "members": [
4781
4946
  {
@@ -4784,6 +4949,7 @@
4784
4949
  "type": {
4785
4950
  "text": "string"
4786
4951
  },
4952
+ "description": "The base URL used to construct page links, for example `/search?page=`.\n\nThe page number is appended to this URL.",
4787
4953
  "attribute": "base-url",
4788
4954
  "reflects": true
4789
4955
  },
@@ -4793,6 +4959,7 @@
4793
4959
  "type": {
4794
4960
  "text": "number"
4795
4961
  },
4962
+ "description": "The total number of pages.",
4796
4963
  "attribute": "pages",
4797
4964
  "reflects": true
4798
4965
  },
@@ -4802,6 +4969,8 @@
4802
4969
  "type": {
4803
4970
  "text": "number"
4804
4971
  },
4972
+ "description": "The currently active page number.",
4973
+ "default": "1",
4805
4974
  "attribute": "current-page",
4806
4975
  "reflects": true
4807
4976
  },
@@ -4811,6 +4980,8 @@
4811
4980
  "type": {
4812
4981
  "text": "number"
4813
4982
  },
4983
+ "description": "The maximum number of page numbers visible.",
4984
+ "default": "7",
4814
4985
  "attribute": "visible-pages",
4815
4986
  "reflects": true
4816
4987
  },
@@ -4834,7 +5005,7 @@
4834
5005
  "type": {
4835
5006
  "text": "CustomEvent"
4836
5007
  },
4837
- "description": "Triggered when a link button in the pagination is clicked. Contains the page number in `string` form."
5008
+ "description": "Triggered when a link in the pagination is clicked. Contains the page number in `string` form."
4838
5009
  }
4839
5010
  ],
4840
5011
  "attributes": [
@@ -4843,6 +5014,7 @@
4843
5014
  "type": {
4844
5015
  "text": "string"
4845
5016
  },
5017
+ "description": "The base URL used to construct page links, for example `/search?page=`.\n\nThe page number is appended to this URL.",
4846
5018
  "fieldName": "baseUrl"
4847
5019
  },
4848
5020
  {
@@ -4850,6 +5022,7 @@
4850
5022
  "type": {
4851
5023
  "text": "number"
4852
5024
  },
5025
+ "description": "The total number of pages.",
4853
5026
  "fieldName": "pages"
4854
5027
  },
4855
5028
  {
@@ -4857,6 +5030,8 @@
4857
5030
  "type": {
4858
5031
  "text": "number"
4859
5032
  },
5033
+ "description": "The currently active page number.",
5034
+ "default": "1",
4860
5035
  "fieldName": "currentPageNumber"
4861
5036
  },
4862
5037
  {
@@ -4864,6 +5039,8 @@
4864
5039
  "type": {
4865
5040
  "text": "number"
4866
5041
  },
5042
+ "description": "The maximum number of page numbers visible.",
5043
+ "default": "7",
4867
5044
  "fieldName": "visiblePages"
4868
5045
  }
4869
5046
  ],
@@ -4902,7 +5079,7 @@
4902
5079
  "declarations": [
4903
5080
  {
4904
5081
  "kind": "class",
4905
- "description": "Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)",
5082
+ "description": "Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.",
4906
5083
  "name": "WarpPill",
4907
5084
  "members": [
4908
5085
  {
@@ -4912,6 +5089,7 @@
4912
5089
  "text": "boolean"
4913
5090
  },
4914
5091
  "default": "false",
5092
+ "description": "Whether the pill should be removable via a close button.",
4915
5093
  "attribute": "can-close"
4916
5094
  },
4917
5095
  {
@@ -4921,6 +5099,7 @@
4921
5099
  "text": "boolean"
4922
5100
  },
4923
5101
  "default": "false",
5102
+ "description": "Whether the pill should be rendered as a suggestion.",
4924
5103
  "attribute": "suggestion"
4925
5104
  },
4926
5105
  {
@@ -4938,6 +5117,7 @@
4938
5117
  "type": {
4939
5118
  "text": "string"
4940
5119
  },
5120
+ "description": "Label read by screen readers when targeting the pill.",
4941
5121
  "attribute": "open-aria-label"
4942
5122
  },
4943
5123
  {
@@ -4955,15 +5135,46 @@
4955
5135
  "type": {
4956
5136
  "text": "string"
4957
5137
  },
5138
+ "description": "Label read by screen readers when targeting the close button.",
4958
5139
  "attribute": "close-aria-label"
4959
5140
  },
4960
5141
  {
4961
5142
  "kind": "field",
4962
- "name": "openFilterSrText"
5143
+ "name": "openFilterSrText",
5144
+ "type": {
5145
+ "text": "string"
5146
+ },
5147
+ "privacy": "private"
4963
5148
  },
4964
5149
  {
4965
5150
  "kind": "field",
4966
- "name": "removeFilterSrText"
5151
+ "name": "removeFilterSrText",
5152
+ "type": {
5153
+ "text": "string"
5154
+ },
5155
+ "privacy": "private"
5156
+ },
5157
+ {
5158
+ "kind": "field",
5159
+ "name": "_labelClasses",
5160
+ "privacy": "private",
5161
+ "readonly": true
5162
+ },
5163
+ {
5164
+ "kind": "field",
5165
+ "name": "_closeClasses",
5166
+ "privacy": "private",
5167
+ "readonly": true
5168
+ },
5169
+ {
5170
+ "kind": "method",
5171
+ "name": "_onClick",
5172
+ "privacy": "private"
5173
+ },
5174
+ {
5175
+ "kind": "method",
5176
+ "name": "_onClose",
5177
+ "privacy": "private"
4967
5178
  }
4968
5179
  ],
4969
5180
  "events": [
@@ -4971,13 +5182,15 @@
4971
5182
  "name": "w-pill-click",
4972
5183
  "type": {
4973
5184
  "text": "CustomEvent"
4974
- }
5185
+ },
5186
+ "description": "Fires when the pill itself is clicked."
4975
5187
  },
4976
5188
  {
4977
5189
  "name": "w-pill-close",
4978
5190
  "type": {
4979
5191
  "text": "CustomEvent"
4980
- }
5192
+ },
5193
+ "description": "Fires when the pill's close button is clicked."
4981
5194
  }
4982
5195
  ],
4983
5196
  "attributes": [
@@ -4987,6 +5200,7 @@
4987
5200
  "text": "boolean"
4988
5201
  },
4989
5202
  "default": "false",
5203
+ "description": "Whether the pill should be removable via a close button.",
4990
5204
  "fieldName": "canClose"
4991
5205
  },
4992
5206
  {
@@ -4995,6 +5209,7 @@
4995
5209
  "text": "boolean"
4996
5210
  },
4997
5211
  "default": "false",
5212
+ "description": "Whether the pill should be rendered as a suggestion.",
4998
5213
  "fieldName": "suggestion"
4999
5214
  },
5000
5215
  {
@@ -5010,6 +5225,7 @@
5010
5225
  "type": {
5011
5226
  "text": "string"
5012
5227
  },
5228
+ "description": "Label read by screen readers when targeting the pill.",
5013
5229
  "fieldName": "openAriaLabel"
5014
5230
  },
5015
5231
  {
@@ -5025,6 +5241,7 @@
5025
5241
  "type": {
5026
5242
  "text": "string"
5027
5243
  },
5244
+ "description": "Label read by screen readers when targeting the close button.",
5028
5245
  "fieldName": "closeAriaLabel"
5029
5246
  }
5030
5247
  ],
@@ -5064,17 +5281,8 @@
5064
5281
  {
5065
5282
  "kind": "class",
5066
5283
  "description": "",
5067
- "name": "WRadio",
5284
+ "name": "WarpRadio",
5068
5285
  "members": [
5069
- {
5070
- "kind": "field",
5071
- "name": "shadowRootOptions",
5072
- "type": {
5073
- "text": "object"
5074
- },
5075
- "static": true,
5076
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
5077
- },
5078
5286
  {
5079
5287
  "kind": "field",
5080
5288
  "name": "name",
@@ -5140,14 +5348,6 @@
5140
5348
  "attribute": "invalid",
5141
5349
  "reflects": true
5142
5350
  },
5143
- {
5144
- "kind": "field",
5145
- "name": "tabIndex",
5146
- "type": {
5147
- "text": "number"
5148
- },
5149
- "description": "Override tabIndex setter to set _groupTabIndex (for backwards compatibility).\nRadio-group should use _groupTabIndex directly for clarity."
5150
- },
5151
5351
  {
5152
5352
  "kind": "field",
5153
5353
  "name": "#defaultChecked",
@@ -5201,62 +5401,6 @@
5201
5401
  "name": "handleKeyDown",
5202
5402
  "privacy": "private"
5203
5403
  },
5204
- {
5205
- "kind": "method",
5206
- "name": "resetFormControl",
5207
- "return": {
5208
- "type": {
5209
- "text": "void"
5210
- }
5211
- },
5212
- "type": {
5213
- "text": "resetFormControl() => void"
5214
- }
5215
- },
5216
- {
5217
- "kind": "field",
5218
- "name": "validationMessage",
5219
- "type": {
5220
- "text": "string"
5221
- },
5222
- "description": "Returns the validation message if the radio is invalid, otherwise an empty string",
5223
- "readonly": true
5224
- },
5225
- {
5226
- "kind": "field",
5227
- "name": "validity",
5228
- "type": {
5229
- "text": "ValidityState"
5230
- },
5231
- "description": "Returns the validity state of the radio",
5232
- "readonly": true
5233
- },
5234
- {
5235
- "kind": "method",
5236
- "name": "checkValidity",
5237
- "return": {
5238
- "type": {
5239
- "text": "boolean"
5240
- }
5241
- },
5242
- "description": "Checks whether the radio passes constraint validation",
5243
- "type": {
5244
- "text": "checkValidity() => boolean"
5245
- }
5246
- },
5247
- {
5248
- "kind": "method",
5249
- "name": "reportValidity",
5250
- "return": {
5251
- "type": {
5252
- "text": "boolean"
5253
- }
5254
- },
5255
- "description": "Checks validity and shows the browser's validation message if invalid",
5256
- "type": {
5257
- "text": "reportValidity() => boolean"
5258
- }
5259
- },
5260
5404
  {
5261
5405
  "kind": "method",
5262
5406
  "name": "isInGroup",
@@ -5283,7 +5427,7 @@
5283
5427
  "privacy": "private",
5284
5428
  "return": {
5285
5429
  "type": {
5286
- "text": "WRadio[]"
5430
+ "text": "WarpRadio[]"
5287
5431
  }
5288
5432
  }
5289
5433
  },
@@ -5307,14 +5451,6 @@
5307
5451
  "description": "Computed tabindex for the internal focusable element.\nPriority: group-managed > standalone-managed > default",
5308
5452
  "readonly": true
5309
5453
  },
5310
- {
5311
- "kind": "field",
5312
- "name": "_standaloneTabIndex",
5313
- "type": {
5314
- "text": "number | undefined"
5315
- },
5316
- "description": "Internal tabindex for standalone radios (not in a group).\nNon-reflecting to avoid DOM changes during hydration."
5317
- },
5318
5454
  {
5319
5455
  "kind": "method",
5320
5456
  "name": "uncheckOtherRadios",
@@ -5429,13 +5565,31 @@
5429
5565
  "name": "LitElement",
5430
5566
  "package": "lit"
5431
5567
  },
5568
+ "parent": {
5569
+ "name": "w-radio-group",
5570
+ "description": ""
5571
+ },
5432
5572
  "tagName": "w-radio",
5433
5573
  "customElement": true,
5434
5574
  "modulePath": "packages/radio/radio.ts",
5435
5575
  "definitionPath": "packages/radio/radio.ts"
5576
+ },
5577
+ {
5578
+ "kind": "variable",
5579
+ "name": "WRadio",
5580
+ "default": "WarpRadio",
5581
+ "deprecated": "Exported for backwards compatibility only, use `WarpRadio`"
5436
5582
  }
5437
5583
  ],
5438
5584
  "exports": [
5585
+ {
5586
+ "kind": "js",
5587
+ "name": "WarpRadio",
5588
+ "declaration": {
5589
+ "name": "WarpRadio",
5590
+ "module": "packages/radio/radio.ts"
5591
+ }
5592
+ },
5439
5593
  {
5440
5594
  "kind": "js",
5441
5595
  "name": "WRadio",
@@ -5448,7 +5602,7 @@
5448
5602
  "kind": "custom-element-definition",
5449
5603
  "name": "w-radio",
5450
5604
  "declaration": {
5451
- "name": "WRadio",
5605
+ "name": "WarpRadio",
5452
5606
  "module": "packages/radio/radio.ts"
5453
5607
  }
5454
5608
  }
@@ -5460,8 +5614,8 @@
5460
5614
  "declarations": [
5461
5615
  {
5462
5616
  "kind": "class",
5463
- "description": "",
5464
- "name": "WRadioGroup",
5617
+ "description": "Radios allow users to select a single option from a list of choices.\n\nUse with `w-radio`.",
5618
+ "name": "WarpRadioGroup",
5465
5619
  "slots": [
5466
5620
  {
5467
5621
  "description": "Alternative to the `label` attribute should you need custom HTML.",
@@ -5473,14 +5627,6 @@
5473
5627
  }
5474
5628
  ],
5475
5629
  "members": [
5476
- {
5477
- "kind": "field",
5478
- "name": "hasInteracted",
5479
- "type": {
5480
- "text": "boolean"
5481
- },
5482
- "default": "false"
5483
- },
5484
5630
  {
5485
5631
  "kind": "field",
5486
5632
  "name": "hasWarnedMissingName",
@@ -5506,6 +5652,7 @@
5506
5652
  "text": "string"
5507
5653
  },
5508
5654
  "default": "''",
5655
+ "description": "Label for the radio group.",
5509
5656
  "attribute": "label"
5510
5657
  },
5511
5658
  {
@@ -5515,6 +5662,7 @@
5515
5662
  "text": "string"
5516
5663
  },
5517
5664
  "default": "''",
5665
+ "description": "Help text for the radio group.\n\nIf you set `required` and `invalid` the group gets a default error message, but you can override it with this attribute.",
5518
5666
  "attribute": "help-text"
5519
5667
  },
5520
5668
  {
@@ -5524,6 +5672,7 @@
5524
5672
  "text": "boolean"
5525
5673
  },
5526
5674
  "default": "false",
5675
+ "description": "Whether to show optional text next to the label.",
5527
5676
  "attribute": "optional",
5528
5677
  "reflects": true
5529
5678
  },
@@ -5534,6 +5683,7 @@
5534
5683
  "text": "boolean"
5535
5684
  },
5536
5685
  "default": "false",
5686
+ "description": "Marks the radio group as invalid.",
5537
5687
  "attribute": "invalid",
5538
5688
  "reflects": true
5539
5689
  },
@@ -5544,6 +5694,7 @@
5544
5694
  "text": "string | null"
5545
5695
  },
5546
5696
  "default": "null",
5697
+ "description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the select when submitting the form.",
5547
5698
  "attribute": "name",
5548
5699
  "reflects": true
5549
5700
  },
@@ -5554,6 +5705,7 @@
5554
5705
  "text": "boolean"
5555
5706
  },
5556
5707
  "default": "false",
5708
+ "description": "Disables the radio group and all child radios.",
5557
5709
  "attribute": "disabled",
5558
5710
  "reflects": true
5559
5711
  },
@@ -5564,6 +5716,7 @@
5564
5716
  "text": "boolean"
5565
5717
  },
5566
5718
  "default": "false",
5719
+ "description": "Makes selecting a radio in the the group required.",
5567
5720
  "attribute": "required",
5568
5721
  "reflects": true
5569
5722
  },
@@ -5590,14 +5743,14 @@
5590
5743
  "name": "nameManagedRadios",
5591
5744
  "privacy": "private",
5592
5745
  "readonly": true,
5593
- "default": "new WeakSet<WRadio>()"
5746
+ "default": "new WeakSet<WarpRadio>()"
5594
5747
  },
5595
5748
  {
5596
5749
  "kind": "field",
5597
5750
  "name": "disabledManagedRadios",
5598
5751
  "privacy": "private",
5599
5752
  "readonly": true,
5600
- "default": "new WeakSet<WRadio>()"
5753
+ "default": "new WeakSet<WarpRadio>()"
5601
5754
  },
5602
5755
  {
5603
5756
  "kind": "field",
@@ -5607,27 +5760,6 @@
5607
5760
  },
5608
5761
  "privacy": "private"
5609
5762
  },
5610
- {
5611
- "kind": "field",
5612
- "name": "shadowRootOptions",
5613
- "type": {
5614
- "text": "object"
5615
- },
5616
- "static": true,
5617
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true }"
5618
- },
5619
- {
5620
- "kind": "field",
5621
- "name": "validationTarget",
5622
- "readonly": true
5623
- },
5624
- {
5625
- "kind": "method",
5626
- "name": "resetFormControl",
5627
- "type": {
5628
- "text": "resetFormControl() => void"
5629
- }
5630
- },
5631
5763
  {
5632
5764
  "kind": "field",
5633
5765
  "name": "handleRadioClick",
@@ -5654,7 +5786,7 @@
5654
5786
  "privacy": "private",
5655
5787
  "return": {
5656
5788
  "type": {
5657
- "text": "WRadio[]"
5789
+ "text": "WarpRadio[]"
5658
5790
  }
5659
5791
  },
5660
5792
  "parameters": [
@@ -5677,7 +5809,7 @@
5677
5809
  {
5678
5810
  "name": "selected",
5679
5811
  "type": {
5680
- "text": "WRadio"
5812
+ "text": "WarpRadio"
5681
5813
  }
5682
5814
  },
5683
5815
  {
@@ -5724,7 +5856,7 @@
5724
5856
  {
5725
5857
  "name": "radio",
5726
5858
  "type": {
5727
- "text": "WRadio"
5859
+ "text": "WarpRadio"
5728
5860
  }
5729
5861
  }
5730
5862
  ]
@@ -5737,7 +5869,7 @@
5737
5869
  {
5738
5870
  "name": "radios",
5739
5871
  "type": {
5740
- "text": "WRadio[]"
5872
+ "text": "WarpRadio[]"
5741
5873
  }
5742
5874
  }
5743
5875
  ]
@@ -5760,37 +5892,6 @@
5760
5892
  }
5761
5893
  ]
5762
5894
  },
5763
- {
5764
- "kind": "method",
5765
- "name": "focus",
5766
- "privacy": "public",
5767
- "parameters": [
5768
- {
5769
- "name": "options",
5770
- "optional": true,
5771
- "type": {
5772
- "text": "FocusOptions"
5773
- }
5774
- }
5775
- ],
5776
- "type": {
5777
- "text": "focus(options?: FocusOptions) => void"
5778
- }
5779
- },
5780
- {
5781
- "kind": "method",
5782
- "name": "checkValidity",
5783
- "type": {
5784
- "text": "checkValidity() => void"
5785
- }
5786
- },
5787
- {
5788
- "kind": "method",
5789
- "name": "reportValidity",
5790
- "type": {
5791
- "text": "reportValidity() => void"
5792
- }
5793
- },
5794
5895
  {
5795
5896
  "kind": "method",
5796
5897
  "name": "hasSlottedContent",
@@ -5827,7 +5928,7 @@
5827
5928
  {
5828
5929
  "name": "radios",
5829
5930
  "type": {
5830
- "text": "WRadio[]"
5931
+ "text": "WarpRadio[]"
5831
5932
  }
5832
5933
  }
5833
5934
  ]
@@ -5889,6 +5990,7 @@
5889
5990
  "text": "string"
5890
5991
  },
5891
5992
  "default": "''",
5993
+ "description": "Label for the radio group.",
5892
5994
  "fieldName": "label"
5893
5995
  },
5894
5996
  {
@@ -5897,6 +5999,7 @@
5897
5999
  "text": "string"
5898
6000
  },
5899
6001
  "default": "''",
6002
+ "description": "Help text for the radio group.\n\nIf you set `required` and `invalid` the group gets a default error message, but you can override it with this attribute.",
5900
6003
  "fieldName": "helpText"
5901
6004
  },
5902
6005
  {
@@ -5905,6 +6008,7 @@
5905
6008
  "text": "boolean"
5906
6009
  },
5907
6010
  "default": "false",
6011
+ "description": "Whether to show optional text next to the label.",
5908
6012
  "fieldName": "optional"
5909
6013
  },
5910
6014
  {
@@ -5913,6 +6017,7 @@
5913
6017
  "text": "boolean"
5914
6018
  },
5915
6019
  "default": "false",
6020
+ "description": "Marks the radio group as invalid.",
5916
6021
  "fieldName": "invalid"
5917
6022
  },
5918
6023
  {
@@ -5921,6 +6026,7 @@
5921
6026
  "text": "string | null"
5922
6027
  },
5923
6028
  "default": "null",
6029
+ "description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the select when submitting the form.",
5924
6030
  "fieldName": "name"
5925
6031
  },
5926
6032
  {
@@ -5929,6 +6035,7 @@
5929
6035
  "text": "boolean"
5930
6036
  },
5931
6037
  "default": "false",
6038
+ "description": "Disables the radio group and all child radios.",
5932
6039
  "fieldName": "disabled"
5933
6040
  },
5934
6041
  {
@@ -5937,6 +6044,7 @@
5937
6044
  "text": "boolean"
5938
6045
  },
5939
6046
  "default": "false",
6047
+ "description": "Makes selecting a radio in the the group required.",
5940
6048
  "fieldName": "required"
5941
6049
  }
5942
6050
  ],
@@ -5954,9 +6062,23 @@
5954
6062
  "customElement": true,
5955
6063
  "modulePath": "packages/radio-group/radio-group.ts",
5956
6064
  "definitionPath": "packages/radio-group/radio-group.ts"
6065
+ },
6066
+ {
6067
+ "kind": "variable",
6068
+ "name": "WRadioGroup",
6069
+ "default": "WarpRadioGroup",
6070
+ "deprecated": "Exported for backwards compatibility only, use `WarpRadioGroup`"
5957
6071
  }
5958
6072
  ],
5959
6073
  "exports": [
6074
+ {
6075
+ "kind": "js",
6076
+ "name": "WarpRadioGroup",
6077
+ "declaration": {
6078
+ "name": "WarpRadioGroup",
6079
+ "module": "packages/radio-group/radio-group.ts"
6080
+ }
6081
+ },
5960
6082
  {
5961
6083
  "kind": "js",
5962
6084
  "name": "WRadioGroup",
@@ -5969,7 +6091,7 @@
5969
6091
  "kind": "custom-element-definition",
5970
6092
  "name": "w-radio-group",
5971
6093
  "declaration": {
5972
- "name": "WRadioGroup",
6094
+ "name": "WarpRadioGroup",
5973
6095
  "module": "packages/radio-group/radio-group.ts"
5974
6096
  }
5975
6097
  }
@@ -5981,7 +6103,7 @@
5981
6103
  "declarations": [
5982
6104
  {
5983
6105
  "kind": "class",
5984
- "description": "A dropdown component for selecting a single value.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)",
6106
+ "description": "A dropdown component for selecting a single value.",
5985
6107
  "name": "WarpSelect",
5986
6108
  "members": [
5987
6109
  {
@@ -6013,7 +6135,7 @@
6013
6135
  "type": {
6014
6136
  "text": "string"
6015
6137
  },
6016
- "description": "The content displayed as the help text. Paired with `invalid` to show the text as a validation error.",
6138
+ "description": "The content displayed as the help text.\n\nPaired with `invalid` to show the text as a validation error.",
6017
6139
  "attribute": "help-text",
6018
6140
  "reflects": true
6019
6141
  },
@@ -6024,7 +6146,7 @@
6024
6146
  "text": "boolean"
6025
6147
  },
6026
6148
  "default": "false",
6027
- "description": "Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.",
6149
+ "description": "Renders the field in an invalid state.\n\nPaired with `help-text` to provide feedback about the error.",
6028
6150
  "attribute": "invalid",
6029
6151
  "reflects": true
6030
6152
  },
@@ -6057,7 +6179,7 @@
6057
6179
  "type": {
6058
6180
  "text": "string"
6059
6181
  },
6060
- "description": "The content to disply as the label",
6182
+ "description": "The content to display as the label.",
6061
6183
  "attribute": "label",
6062
6184
  "reflects": true
6063
6185
  },
@@ -6068,7 +6190,7 @@
6068
6190
  "text": "boolean"
6069
6191
  },
6070
6192
  "default": "false",
6071
- "description": "Whether to show optional text",
6193
+ "description": "Whether to show the optional indicator after the label.",
6072
6194
  "attribute": "optional",
6073
6195
  "reflects": true
6074
6196
  },
@@ -6112,6 +6234,7 @@
6112
6234
  "type": {
6113
6235
  "text": "string"
6114
6236
  },
6237
+ "description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the select when submitting the form.",
6115
6238
  "attribute": "name",
6116
6239
  "reflects": true
6117
6240
  },
@@ -6121,6 +6244,7 @@
6121
6244
  "type": {
6122
6245
  "text": "string"
6123
6246
  },
6247
+ "description": "Lets you set the current value.",
6124
6248
  "attribute": "value",
6125
6249
  "reflects": true
6126
6250
  },
@@ -6146,18 +6270,6 @@
6146
6270
  "text": "MutationObserver | undefined"
6147
6271
  }
6148
6272
  },
6149
- {
6150
- "kind": "method",
6151
- "name": "resetFormControl",
6152
- "return": {
6153
- "type": {
6154
- "text": "void"
6155
- }
6156
- },
6157
- "type": {
6158
- "text": "resetFormControl() => void"
6159
- }
6160
- },
6161
6273
  {
6162
6274
  "kind": "method",
6163
6275
  "name": "#getOptionNodes",
@@ -6214,42 +6326,6 @@
6214
6326
  }
6215
6327
  ]
6216
6328
  },
6217
- {
6218
- "kind": "method",
6219
- "name": "formStateRestoreCallback",
6220
- "parameters": [
6221
- {
6222
- "name": "state",
6223
- "type": {
6224
- "text": "string | File | FormData | null"
6225
- }
6226
- },
6227
- {
6228
- "name": "_reason",
6229
- "type": {
6230
- "text": "'autocomplete' | 'restore'"
6231
- }
6232
- }
6233
- ],
6234
- "type": {
6235
- "text": "formStateRestoreCallback(state: string | File | FormData | null, _reason: 'autocomplete' | 'restore') => void"
6236
- }
6237
- },
6238
- {
6239
- "kind": "method",
6240
- "name": "handleKeyDown",
6241
- "parameters": [
6242
- {
6243
- "name": "event",
6244
- "type": {
6245
- "text": "KeyboardEvent"
6246
- }
6247
- }
6248
- ],
6249
- "type": {
6250
- "text": "handleKeyDown(event: KeyboardEvent) => void"
6251
- }
6252
- },
6253
6329
  {
6254
6330
  "kind": "field",
6255
6331
  "name": "#classes",
@@ -6279,21 +6355,6 @@
6279
6355
  "name": "#helpId",
6280
6356
  "privacy": "private",
6281
6357
  "readonly": true
6282
- },
6283
- {
6284
- "kind": "method",
6285
- "name": "onChange",
6286
- "parameters": [
6287
- {
6288
- "name": "event",
6289
- "type": {
6290
- "text": "Event"
6291
- }
6292
- }
6293
- ],
6294
- "type": {
6295
- "text": "onChange(event: Event) => void"
6296
- }
6297
6358
  }
6298
6359
  ],
6299
6360
  "events": [
@@ -6329,7 +6390,7 @@
6329
6390
  "type": {
6330
6391
  "text": "string"
6331
6392
  },
6332
- "description": "The content displayed as the help text. Paired with `invalid` to show the text as a validation error.",
6393
+ "description": "The content displayed as the help text.\n\nPaired with `invalid` to show the text as a validation error.",
6333
6394
  "fieldName": "helpText"
6334
6395
  },
6335
6396
  {
@@ -6338,7 +6399,7 @@
6338
6399
  "text": "boolean"
6339
6400
  },
6340
6401
  "default": "false",
6341
- "description": "Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.",
6402
+ "description": "Renders the field in an invalid state.\n\nPaired with `help-text` to provide feedback about the error.",
6342
6403
  "fieldName": "invalid"
6343
6404
  },
6344
6405
  {
@@ -6365,7 +6426,7 @@
6365
6426
  "type": {
6366
6427
  "text": "string"
6367
6428
  },
6368
- "description": "The content to disply as the label",
6429
+ "description": "The content to display as the label.",
6369
6430
  "fieldName": "label"
6370
6431
  },
6371
6432
  {
@@ -6374,7 +6435,7 @@
6374
6435
  "text": "boolean"
6375
6436
  },
6376
6437
  "default": "false",
6377
- "description": "Whether to show optional text",
6438
+ "description": "Whether to show the optional indicator after the label.",
6378
6439
  "fieldName": "optional"
6379
6440
  },
6380
6441
  {
@@ -6410,6 +6471,7 @@
6410
6471
  "type": {
6411
6472
  "text": "string"
6412
6473
  },
6474
+ "description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the select when submitting the form.",
6413
6475
  "fieldName": "name"
6414
6476
  },
6415
6477
  {
@@ -6417,6 +6479,7 @@
6417
6479
  "type": {
6418
6480
  "text": "string"
6419
6481
  },
6482
+ "description": "Lets you set the current value.",
6420
6483
  "fieldName": "value"
6421
6484
  }
6422
6485
  ],