@warp-ds/elements 2.7.0-next.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/custom-elements.json +752 -0
  2. package/dist/index.d.ts +220 -0
  3. package/dist/packages/affix/affix.js +11 -11
  4. package/dist/packages/affix/affix.js.map +3 -3
  5. package/dist/packages/alert/alert.js +7 -7
  6. package/dist/packages/alert/alert.js.map +3 -3
  7. package/dist/packages/attention/attention.js +22 -22
  8. package/dist/packages/attention/attention.js.map +3 -3
  9. package/dist/packages/breadcrumbs/breadcrumbs.js +9 -9
  10. package/dist/packages/breadcrumbs/breadcrumbs.js.map +3 -3
  11. package/dist/packages/button/button.js +11 -11
  12. package/dist/packages/button/button.js.map +3 -3
  13. package/dist/packages/card/card.js +8 -8
  14. package/dist/packages/card/card.js.map +3 -3
  15. package/dist/packages/checkbox/checkbox.a11y.test.d.ts +1 -0
  16. package/dist/packages/checkbox/checkbox.a11y.test.js +73 -0
  17. package/dist/packages/checkbox/checkbox.d.ts +49 -0
  18. package/dist/packages/checkbox/checkbox.js +2594 -0
  19. package/dist/packages/checkbox/checkbox.js.map +7 -0
  20. package/dist/packages/checkbox/checkbox.react.stories.d.ts +12 -0
  21. package/dist/packages/checkbox/checkbox.react.stories.js +10 -0
  22. package/dist/packages/checkbox/checkbox.stories.d.ts +25 -0
  23. package/dist/packages/checkbox/checkbox.stories.js +183 -0
  24. package/dist/packages/checkbox/checkbox.test.d.ts +1 -0
  25. package/dist/packages/checkbox/checkbox.test.js +142 -0
  26. package/dist/packages/checkbox/react.d.ts +5 -0
  27. package/dist/packages/checkbox/react.js +15 -0
  28. package/dist/packages/checkbox/styles.d.ts +1 -0
  29. package/dist/packages/checkbox/styles.js +134 -0
  30. package/dist/packages/checkbox-group/checkbox-group.a11y.test.d.ts +2 -0
  31. package/dist/packages/checkbox-group/checkbox-group.a11y.test.js +109 -0
  32. package/dist/packages/checkbox-group/checkbox-group.d.ts +33 -0
  33. package/dist/packages/checkbox-group/checkbox-group.js +71 -0
  34. package/dist/packages/checkbox-group/checkbox-group.js.map +7 -0
  35. package/dist/packages/checkbox-group/checkbox-group.test.d.ts +2 -0
  36. package/dist/packages/checkbox-group/checkbox-group.test.js +112 -0
  37. package/dist/packages/checkbox-group/locales/da/messages.d.mts +1 -0
  38. package/dist/packages/checkbox-group/locales/da/messages.mjs +1 -0
  39. package/dist/packages/checkbox-group/locales/en/messages.d.mts +1 -0
  40. package/dist/packages/checkbox-group/locales/en/messages.mjs +1 -0
  41. package/dist/packages/checkbox-group/locales/fi/messages.d.mts +1 -0
  42. package/dist/packages/checkbox-group/locales/fi/messages.mjs +1 -0
  43. package/dist/packages/checkbox-group/locales/nb/messages.d.mts +1 -0
  44. package/dist/packages/checkbox-group/locales/nb/messages.mjs +1 -0
  45. package/dist/packages/checkbox-group/locales/sv/messages.d.mts +1 -0
  46. package/dist/packages/checkbox-group/locales/sv/messages.mjs +1 -0
  47. package/dist/packages/checkbox-group/react.d.ts +2 -0
  48. package/dist/packages/checkbox-group/react.js +11 -0
  49. package/dist/packages/combobox/combobox.js +11 -11
  50. package/dist/packages/combobox/combobox.js.map +3 -3
  51. package/dist/packages/datepicker/datepicker.js +42 -42
  52. package/dist/packages/datepicker/datepicker.js.map +3 -3
  53. package/dist/packages/expandable/expandable.js +11 -11
  54. package/dist/packages/expandable/expandable.js.map +3 -3
  55. package/dist/packages/i18n.d.ts +2 -0
  56. package/dist/packages/i18n.js +87 -2
  57. package/dist/packages/modal-header/modal-header.js +15 -15
  58. package/dist/packages/modal-header/modal-header.js.map +3 -3
  59. package/dist/packages/page-indicator/page-indicator.js +7 -7
  60. package/dist/packages/page-indicator/page-indicator.js.map +3 -3
  61. package/dist/packages/pagination/pagination.js +24 -24
  62. package/dist/packages/pagination/pagination.js.map +3 -3
  63. package/dist/packages/pill/pill.js +10 -10
  64. package/dist/packages/pill/pill.js.map +3 -3
  65. package/dist/packages/select/select.js +20 -20
  66. package/dist/packages/select/select.js.map +3 -3
  67. package/dist/packages/slider/slider.js +21 -21
  68. package/dist/packages/slider/slider.js.map +3 -3
  69. package/dist/packages/step/step.js +13 -13
  70. package/dist/packages/step/step.js.map +3 -3
  71. package/dist/packages/step-indicator/step-indicator.a11y.test.js +6 -2
  72. package/dist/packages/textarea/textarea.a11y.test.js +1 -1
  73. package/dist/packages/textarea/textarea.test.js +2 -1
  74. package/dist/packages/toast/toast.js +13 -13
  75. package/dist/packages/toast/toast.js.map +3 -3
  76. package/dist/setup-tests.js +1 -1
  77. package/dist/web-types.json +160 -1
  78. package/package.json +1 -1
@@ -58,5 +58,5 @@ expect.extend({
58
58
  const container = resolveAxeContainer(received);
59
59
  const results = await runAxe(container);
60
60
  return toHaveNoViolations(results);
61
- }
61
+ },
62
62
  });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@warp-ds/elements",
4
- "version": "2.6.0",
4
+ "version": "2.7.0-next.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1271,6 +1271,165 @@
1271
1271
  "events": [],
1272
1272
  "js": { "properties": [], "events": [] }
1273
1273
  },
1274
+ {
1275
+ "name": "w-checkbox",
1276
+ "description": "\n---\n\n\n### **Events:**\n - **change**\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks whether the checkbox passes constraint validation\n- **reportValidity(): _boolean_** - Checks validity and shows the browser's validation message if invalid",
1277
+ "doc-url": "",
1278
+ "attributes": [
1279
+ {
1280
+ "name": "name",
1281
+ "description": "The name of the checkbox, submitted as a name/value pair with form data.",
1282
+ "value": { "type": "string", "default": "''" }
1283
+ },
1284
+ {
1285
+ "name": "value",
1286
+ "description": "The value of the checkbox, submitted as a name/value pair with form data.",
1287
+ "value": { "type": "string | null", "default": "null" }
1288
+ },
1289
+ {
1290
+ "name": "indeterminate",
1291
+ "description": "Draws the checkbox in an indeterminate state.",
1292
+ "value": { "type": "boolean", "default": "false" }
1293
+ },
1294
+ {
1295
+ "name": "checked",
1296
+ "description": "Draws the checkbox in a checked state (reflected to attribute).",
1297
+ "value": { "type": "boolean", "default": "false" }
1298
+ },
1299
+ {
1300
+ "name": "disabled",
1301
+ "description": "Disables the checkbox.",
1302
+ "value": { "type": "boolean", "default": "false" }
1303
+ },
1304
+ {
1305
+ "name": "required",
1306
+ "description": "Makes the checkbox a required field.",
1307
+ "value": { "type": "boolean", "default": "false" }
1308
+ },
1309
+ {
1310
+ "name": "invalid",
1311
+ "description": "Draws the checkbox in an invalid state.",
1312
+ "value": { "type": "boolean", "default": "false" }
1313
+ }
1314
+ ],
1315
+ "events": [{ "name": "change", "type": "Event" }],
1316
+ "js": {
1317
+ "properties": [
1318
+ { "name": "input", "type": "HTMLInputElement | null" },
1319
+ {
1320
+ "name": "name",
1321
+ "description": "The name of the checkbox, submitted as a name/value pair with form data.",
1322
+ "type": "string"
1323
+ },
1324
+ {
1325
+ "name": "value",
1326
+ "description": "The value of the checkbox, submitted as a name/value pair with form data.",
1327
+ "type": "string | null"
1328
+ },
1329
+ {
1330
+ "name": "indeterminate",
1331
+ "description": "Draws the checkbox in an indeterminate state.",
1332
+ "type": "boolean"
1333
+ },
1334
+ {
1335
+ "name": "checked",
1336
+ "description": "Draws the checkbox in a checked state (reflected to attribute).",
1337
+ "type": "boolean"
1338
+ },
1339
+ {
1340
+ "name": "disabled",
1341
+ "description": "Disables the checkbox.",
1342
+ "type": "boolean"
1343
+ },
1344
+ {
1345
+ "name": "required",
1346
+ "description": "Makes the checkbox a required field.",
1347
+ "type": "boolean"
1348
+ },
1349
+ {
1350
+ "name": "invalid",
1351
+ "description": "Draws the checkbox in an invalid state.",
1352
+ "type": "boolean"
1353
+ },
1354
+ {
1355
+ "name": "validationMessage",
1356
+ "description": "Returns the validation message if the checkbox is invalid, otherwise an empty string",
1357
+ "type": "string"
1358
+ },
1359
+ {
1360
+ "name": "validity",
1361
+ "description": "Returns the validity state of the checkbox",
1362
+ "type": "ValidityState"
1363
+ }
1364
+ ],
1365
+ "events": [{ "name": "change", "type": "Event" }]
1366
+ }
1367
+ },
1368
+ {
1369
+ "name": "w-checkbox-group",
1370
+ "description": "\n---\n\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks whether the group passes constraint validation\n- **reportValidity(): _boolean_** - Checks validity and shows the validation message if invalid\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox group.",
1371
+ "doc-url": "",
1372
+ "attributes": [
1373
+ {
1374
+ "name": "label",
1375
+ "description": "The group label displayed above the checkboxes.",
1376
+ "value": { "type": "string" }
1377
+ },
1378
+ {
1379
+ "name": "name",
1380
+ "description": "The name applied to child checkboxes when they do not provide one.",
1381
+ "value": { "type": "string" }
1382
+ },
1383
+ {
1384
+ "name": "optional",
1385
+ "description": "Whether to show optional text next to the label.",
1386
+ "value": { "type": "boolean" }
1387
+ },
1388
+ { "name": "help-text", "value": { "type": "string" } },
1389
+ {
1390
+ "name": "required",
1391
+ "description": "Makes the checkbox group required.",
1392
+ "value": { "type": "boolean" }
1393
+ },
1394
+ {
1395
+ "name": "invalid",
1396
+ "description": "Marks the checkbox group as invalid.",
1397
+ "value": { "type": "boolean" }
1398
+ }
1399
+ ],
1400
+ "events": [],
1401
+ "js": {
1402
+ "properties": [
1403
+ {
1404
+ "name": "label",
1405
+ "description": "The group label displayed above the checkboxes.",
1406
+ "type": "string"
1407
+ },
1408
+ {
1409
+ "name": "name",
1410
+ "description": "The name applied to child checkboxes when they do not provide one.",
1411
+ "type": "string"
1412
+ },
1413
+ {
1414
+ "name": "optional",
1415
+ "description": "Whether to show optional text next to the label.",
1416
+ "type": "boolean"
1417
+ },
1418
+ { "name": "helpText", "type": "string" },
1419
+ {
1420
+ "name": "required",
1421
+ "description": "Makes the checkbox group required.",
1422
+ "type": "boolean"
1423
+ },
1424
+ {
1425
+ "name": "invalid",
1426
+ "description": "Marks the checkbox group as invalid.",
1427
+ "type": "boolean"
1428
+ }
1429
+ ],
1430
+ "events": []
1431
+ }
1432
+ },
1274
1433
  {
1275
1434
  "name": "w-slider-thumb",
1276
1435
  "description": "Component to place inside a `<w-slider>`.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)\n---\n\n\n### **Events:**\n - **slidervalidity**",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "2.7.0-next.1",
4
+ "version": "2.7.0",
5
5
  "packageManager": "pnpm@10.20.0",
6
6
  "description": "Custom elements for Warp",
7
7
  "exports": {