@warp-ds/elements 2.9.2-next.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 (69) hide show
  1. package/dist/custom-elements.json +275 -58
  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/index.d.ts +305 -289
  36. package/dist/packages/attention/attention.js +23 -21
  37. package/dist/packages/attention/attention.js.map +3 -3
  38. package/dist/packages/button/button.d.ts +54 -37
  39. package/dist/packages/button/button.js +17 -15
  40. package/dist/packages/button/button.js.map +3 -3
  41. package/dist/packages/button/button.react.stories.d.ts +2 -2
  42. package/dist/packages/button/react.d.ts +1 -1
  43. package/dist/packages/modal/index.d.ts +4 -4
  44. package/dist/packages/modal/index.js +4 -4
  45. package/dist/packages/modal/modal.d.ts +21 -12
  46. package/dist/packages/modal/modal.js +4 -4
  47. package/dist/packages/modal/modal.js.map +3 -3
  48. package/dist/packages/modal/modal.react.stories.d.ts +3 -3
  49. package/dist/packages/modal/modal.stories.d.ts +2 -1
  50. package/dist/packages/modal/modal.stories.js +85 -3
  51. package/dist/packages/modal/react.d.ts +2 -2
  52. package/dist/packages/modal-footer/modal-footer.d.ts +5 -3
  53. package/dist/packages/modal-footer/modal-footer.js +4 -4
  54. package/dist/packages/modal-footer/modal-footer.js.map +3 -3
  55. package/dist/packages/modal-footer/react.d.ts +1 -1
  56. package/dist/packages/modal-header/modal-header.d.ts +21 -11
  57. package/dist/packages/modal-header/modal-header.js +1 -1
  58. package/dist/packages/modal-header/modal-header.js.map +3 -3
  59. package/dist/packages/modal-header/react.d.ts +2 -2
  60. package/dist/packages/page-indicator/page-indicator.d.ts +9 -14
  61. package/dist/packages/page-indicator/page-indicator.js.map +2 -2
  62. package/dist/packages/pagination/pagination.d.ts +11 -11
  63. package/dist/packages/pagination/pagination.js.map +2 -2
  64. package/dist/packages/pill/pill.d.ts +14 -29
  65. package/dist/packages/pill/pill.js.map +2 -2
  66. package/dist/packages/pill/pill.react.stories.d.ts +2 -2
  67. package/dist/packages/pill/react.d.ts +1 -1
  68. package/dist/web-types.json +272 -70
  69. package/package.json +5 -5
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { Pill } from './react';
4
4
  declare const _default: {
5
5
  title: string;
6
- render(args: Omit<Omit<Omit<React.HTMLAttributes<import("./pill").WarpPill>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "onclick" | "onclose" | "render" | "renderOptions" | "onClick" | "canClose" | "onClose" | "suggestion" | "openSrLabel" | "openAriaLabel" | "closeSrLabel" | "closeAriaLabel" | "openFilterSrText" | "removeFilterSrText" | "_labelClasses" | "_closeClasses" | "_onClick" | "_onClose"> & {
6
+ render(args: Omit<Omit<Omit<React.HTMLAttributes<import("./pill").WarpPill>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "onclick" | "onclose" | "render" | "renderOptions" | "onClick" | "canClose" | "onClose" | "suggestion" | "openSrLabel" | "openAriaLabel" | "closeSrLabel" | "closeAriaLabel"> & {
7
7
  onClick?: (e: Event) => void;
8
8
  onclick?: (e: Event) => void;
9
9
  onClose?: (e: Event) => void;
@@ -15,7 +15,7 @@ declare const _default: {
15
15
  closeSrLabel?: string;
16
16
  closeAriaLabel?: string;
17
17
  } & React.RefAttributes<import("./pill").WarpPill>): React.JSX.Element;
18
- component: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.HTMLAttributes<import("./pill").WarpPill>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "onclick" | "onclose" | "render" | "renderOptions" | "onClick" | "canClose" | "onClose" | "suggestion" | "openSrLabel" | "openAriaLabel" | "closeSrLabel" | "closeAriaLabel" | "openFilterSrText" | "removeFilterSrText" | "_labelClasses" | "_closeClasses" | "_onClick" | "_onClose"> & {
18
+ component: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.HTMLAttributes<import("./pill").WarpPill>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "onclick" | "onclose" | "render" | "renderOptions" | "onClick" | "canClose" | "onClose" | "suggestion" | "openSrLabel" | "openAriaLabel" | "closeSrLabel" | "closeAriaLabel"> & {
19
19
  onClick?: (e: Event) => void;
20
20
  onclick?: (e: Event) => void;
21
21
  onClose?: (e: Event) => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WarpPill } from './pill.js';
3
- export declare const Pill: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.HTMLAttributes<WarpPill>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "onclick" | "onclose" | "render" | "renderOptions" | "onClick" | "canClose" | "onClose" | "suggestion" | "openSrLabel" | "openAriaLabel" | "closeSrLabel" | "closeAriaLabel" | "openFilterSrText" | "removeFilterSrText" | "_labelClasses" | "_closeClasses" | "_onClick" | "_onClose"> & {
3
+ export declare const Pill: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.HTMLAttributes<WarpPill>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "onclick" | "onclose" | "render" | "renderOptions" | "onClick" | "canClose" | "onClose" | "suggestion" | "openSrLabel" | "openAriaLabel" | "closeSrLabel" | "closeAriaLabel"> & {
4
4
  onClick?: (e: Event) => void;
5
5
  onclick?: (e: Event) => void;
6
6
  onClose?: (e: Event) => void;
@@ -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.9.1",
4
+ "version": "2.9.2-next.1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -397,76 +397,185 @@
397
397
  },
398
398
  {
399
399
  "name": "w-button",
400
- "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)\n---\n",
400
+ "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)\n---\n",
401
401
  "doc-url": "",
402
402
  "attributes": [
403
403
  {
404
404
  "name": "type",
405
+ "description": "Native button type.\nControls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`.",
405
406
  "value": { "type": "'button' | 'submit' | 'reset'" }
406
407
  },
407
408
  {
408
409
  "name": "autofocus",
410
+ "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.",
409
411
  "value": { "type": "boolean", "default": "false" }
410
412
  },
411
413
  {
412
414
  "name": "variant",
415
+ "description": "Visual style of the button.\nDefaults to `secondary`. Use the variant that matches the action priority, risk, and placement.",
413
416
  "value": {
414
417
  "type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link'"
415
418
  }
416
419
  },
417
420
  {
418
421
  "name": "quiet",
422
+ "description": "Deprecated quiet visual treatment flag\nUse `variant=\"quiet\"` instead.",
419
423
  "value": { "type": "boolean", "default": "false" }
420
424
  },
421
425
  {
422
426
  "name": "icon-only",
427
+ "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.",
423
428
  "value": { "type": "boolean", "default": "false" }
424
429
  },
425
430
  {
426
431
  "name": "small",
432
+ "description": "Renders the compact button size.\nUse this in dense layouts where the default button size is too large.",
427
433
  "value": { "type": "boolean", "default": "false" }
428
434
  },
429
435
  {
430
436
  "name": "loading",
437
+ "description": "Shows the loading state.\nUse after the user has triggered an action and the action is in progress.",
431
438
  "value": { "type": "boolean", "default": "false" }
432
439
  },
433
- { "name": "href", "value": { "type": "string" } },
434
- { "name": "target", "value": { "type": "string" } },
440
+ {
441
+ "name": "href",
442
+ "description": "URL for rendering the button as a link.\nWhen set, the component renders `w-link` instead of a native `button`.",
443
+ "value": { "type": "string" }
444
+ },
445
+ {
446
+ "name": "target",
447
+ "description": "Link browsing context.\nPassed to the rendered link when `href` is set.",
448
+ "value": { "type": "string" }
449
+ },
435
450
  {
436
451
  "name": "disabled",
452
+ "description": "Visually disables the button.\nDisabled buttons are discouraged because they can hide the reason an action is unavailable.",
437
453
  "value": { "type": "boolean", "default": "false" }
438
454
  },
439
- { "name": "rel", "value": { "type": "string" } },
455
+ {
456
+ "name": "rel",
457
+ "description": "Link relationship.\nPassed to the rendered link when `href` is set. If `target=\"_blank\"` is set and `rel` is omitted, `noopener` is used.",
458
+ "value": { "type": "string" }
459
+ },
440
460
  {
441
461
  "name": "full-width",
462
+ "description": "Makes the button fill its parent width.\nUseful in narrow layouts where the button should span the available inline space.",
442
463
  "value": { "type": "boolean", "default": "false" }
443
464
  },
444
- { "name": "button-class", "value": { "type": "string" } },
445
- { "name": "name", "value": { "type": "string" } },
446
- { "name": "value", "value": { "type": "string" } }
465
+ {
466
+ "name": "button-class",
467
+ "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.",
468
+ "value": { "type": "string" }
469
+ },
470
+ {
471
+ "name": "name",
472
+ "description": "Form control name.\nUsed when the button participates in form handling.",
473
+ "value": { "type": "string" }
474
+ },
475
+ {
476
+ "name": "value",
477
+ "description": "Form control value.\nUsed with `name` when the button participates in form handling. Resets to its initial value when the form is reset.",
478
+ "value": { "type": "string" }
479
+ },
480
+ {
481
+ "name": "commandfor",
482
+ "description": "The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
483
+ "value": { "type": "string" }
484
+ },
485
+ {
486
+ "name": "command",
487
+ "description": "The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
488
+ "value": { "type": "string" }
489
+ }
447
490
  ],
448
491
  "events": [],
449
492
  "js": {
450
493
  "properties": [
451
- { "name": "type", "type": "'button' | 'submit' | 'reset'" },
452
- { "name": "autofocus", "type": "boolean" },
494
+ {
495
+ "name": "type",
496
+ "description": "Native button type.\nControls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`.",
497
+ "type": "'button' | 'submit' | 'reset'"
498
+ },
499
+ {
500
+ "name": "autofocus",
501
+ "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.",
502
+ "type": "boolean"
503
+ },
453
504
  {
454
505
  "name": "variant",
506
+ "description": "Visual style of the button.\nDefaults to `secondary`. Use the variant that matches the action priority, risk, and placement.",
455
507
  "type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link'"
456
508
  },
457
- { "name": "quiet", "type": "boolean" },
458
- { "name": "iconOnly", "type": "boolean" },
459
- { "name": "small", "type": "boolean" },
460
- { "name": "loading", "type": "boolean" },
461
- { "name": "href", "type": "string" },
462
- { "name": "target", "type": "string" },
463
- { "name": "disabled", "type": "boolean" },
464
- { "name": "rel", "type": "string" },
465
- { "name": "fullWidth", "type": "boolean" },
466
- { "name": "buttonClass", "type": "string" },
467
- { "name": "name", "type": "string" },
468
- { "name": "value", "type": "string" },
469
- { "name": "ariaValueTextLoading" }
509
+ {
510
+ "name": "quiet",
511
+ "description": "Deprecated quiet visual treatment flag\nUse `variant=\"quiet\"` instead.",
512
+ "type": "boolean"
513
+ },
514
+ {
515
+ "name": "iconOnly",
516
+ "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.",
517
+ "type": "boolean"
518
+ },
519
+ {
520
+ "name": "small",
521
+ "description": "Renders the compact button size.\nUse this in dense layouts where the default button size is too large.",
522
+ "type": "boolean"
523
+ },
524
+ {
525
+ "name": "loading",
526
+ "description": "Shows the loading state.\nUse after the user has triggered an action and the action is in progress.",
527
+ "type": "boolean"
528
+ },
529
+ {
530
+ "name": "href",
531
+ "description": "URL for rendering the button as a link.\nWhen set, the component renders `w-link` instead of a native `button`.",
532
+ "type": "string"
533
+ },
534
+ {
535
+ "name": "target",
536
+ "description": "Link browsing context.\nPassed to the rendered link when `href` is set.",
537
+ "type": "string"
538
+ },
539
+ {
540
+ "name": "disabled",
541
+ "description": "Visually disables the button.\nDisabled buttons are discouraged because they can hide the reason an action is unavailable.",
542
+ "type": "boolean"
543
+ },
544
+ {
545
+ "name": "rel",
546
+ "description": "Link relationship.\nPassed to the rendered link when `href` is set. If `target=\"_blank\"` is set and `rel` is omitted, `noopener` is used.",
547
+ "type": "string"
548
+ },
549
+ {
550
+ "name": "fullWidth",
551
+ "description": "Makes the button fill its parent width.\nUseful in narrow layouts where the button should span the available inline space.",
552
+ "type": "boolean"
553
+ },
554
+ {
555
+ "name": "buttonClass",
556
+ "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.",
557
+ "type": "string"
558
+ },
559
+ {
560
+ "name": "name",
561
+ "description": "Form control name.\nUsed when the button participates in form handling.",
562
+ "type": "string"
563
+ },
564
+ {
565
+ "name": "value",
566
+ "description": "Form control value.\nUsed with `name` when the button participates in form handling. Resets to its initial value when the form is reset.",
567
+ "type": "string"
568
+ },
569
+ {
570
+ "name": "commandfor",
571
+ "description": "The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
572
+ "type": "string"
573
+ },
574
+ {
575
+ "name": "command",
576
+ "description": "The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
577
+ "type": "string"
578
+ }
470
579
  ],
471
580
  "events": []
472
581
  }
@@ -1242,16 +1351,18 @@
1242
1351
  },
1243
1352
  {
1244
1353
  "name": "w-modal",
1245
- "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)\n---\n\n\n### **Events:**\n - **shown**\n- **hidden**\n\n### **Slots:**\n - **header** - Typically where you would use the `w-modal-header` component.\n- **content** - The main content of the modal.\n- **footer** - Typically where you would use the `w-modal-footer` component, for things like actions.",
1354
+ "description": "Modals (or dialogs) display important information that users need to acknowledge.\n---\n\n\n### **Events:**\n - **shown**\n- **hidden**\n\n### **Slots:**\n - **header** - Typically where you would use the `w-modal-header` component.\n- **content** - The main content of the modal.\n- **footer** - Typically where you would use the `w-modal-footer` component, for things like actions.",
1246
1355
  "doc-url": "",
1247
1356
  "attributes": [
1248
1357
  {
1249
1358
  "name": "show",
1359
+ "description": "Controls if the modal should show or hide.\n\nYou can also call the `open()` and `close()` methods.",
1250
1360
  "value": { "type": "boolean", "default": "false" }
1251
1361
  },
1252
1362
  { "name": "content-id", "value": { "type": "string" } },
1253
1363
  {
1254
1364
  "name": "ignore-backdrop-clicks",
1365
+ "description": "Ignores clicks to the backdrop when set",
1255
1366
  "value": { "type": "boolean", "default": "false" }
1256
1367
  }
1257
1368
  ],
@@ -1275,12 +1386,17 @@
1275
1386
  ],
1276
1387
  "js": {
1277
1388
  "properties": [
1278
- { "name": "show", "type": "boolean" },
1389
+ {
1390
+ "name": "show",
1391
+ "description": "Controls if the modal should show or hide.\n\nYou can also call the `open()` and `close()` methods.",
1392
+ "type": "boolean"
1393
+ },
1279
1394
  { "name": "contentId", "type": "string" },
1280
- { "name": "ignoreBackdropClicks", "type": "boolean" },
1281
- { "name": "dialogEl", "type": "HTMLDialogElement" },
1282
- { "name": "dialogInnerEl", "type": "HTMLElement" },
1283
- { "name": "contentEl", "type": "HTMLElement" }
1395
+ {
1396
+ "name": "ignoreBackdropClicks",
1397
+ "description": "Ignores clicks to the backdrop when set",
1398
+ "type": "boolean"
1399
+ }
1284
1400
  ],
1285
1401
  "events": [
1286
1402
  { "name": "shown", "type": "CustomEvent" },
@@ -1290,7 +1406,7 @@
1290
1406
  },
1291
1407
  {
1292
1408
  "name": "w-modal-footer",
1293
- "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)\n---\n",
1409
+ "description": "The footer section of a modal, typically where you place actions.\n---\n",
1294
1410
  "doc-url": "",
1295
1411
  "attributes": [],
1296
1412
  "events": [],
@@ -1298,16 +1414,22 @@
1298
1414
  },
1299
1415
  {
1300
1416
  "name": "w-modal-header",
1301
- "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)\n---\n\n\n### **Events:**\n - **backClicked**\n\n### **Slots:**\n - **top** - 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.",
1417
+ "description": "The header section of a modal, typically where you place the title and a close button.\n---\n\n\n### **Events:**\n - **backClicked**\n\n### **Slots:**\n - **top** - 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.",
1302
1418
  "doc-url": "",
1303
1419
  "attributes": [
1304
- { "name": "title", "value": { "type": "string" } },
1420
+ {
1421
+ "name": "title",
1422
+ "description": "A short but descriptive title for the modal",
1423
+ "value": { "type": "string" }
1424
+ },
1305
1425
  {
1306
1426
  "name": "back",
1427
+ "description": "Whether the modal header should have a back button",
1307
1428
  "value": { "type": "boolean", "default": "false" }
1308
1429
  },
1309
1430
  {
1310
1431
  "name": "no-close",
1432
+ "description": "Lets you hide the close button in the header",
1311
1433
  "value": { "type": "boolean", "default": "false" }
1312
1434
  }
1313
1435
  ],
@@ -1320,31 +1442,39 @@
1320
1442
  "events": [{ "name": "backClicked", "type": "CustomEvent" }],
1321
1443
  "js": {
1322
1444
  "properties": [
1323
- { "name": "title", "type": "string" },
1324
- { "name": "back", "type": "boolean" },
1325
- { "name": "noClose", "type": "boolean" },
1326
- { "name": "titleEl", "type": "HTMLElement" },
1327
- { "name": "titleClasses" },
1328
- { "name": "backButton" },
1329
- { "name": "closeButton" }
1445
+ {
1446
+ "name": "title",
1447
+ "description": "A short but descriptive title for the modal",
1448
+ "type": "string"
1449
+ },
1450
+ {
1451
+ "name": "back",
1452
+ "description": "Whether the modal header should have a back button",
1453
+ "type": "boolean"
1454
+ },
1455
+ {
1456
+ "name": "noClose",
1457
+ "description": "Lets you hide the close button in the header",
1458
+ "type": "boolean"
1459
+ }
1330
1460
  ],
1331
1461
  "events": [{ "name": "backClicked", "type": "CustomEvent" }]
1332
1462
  }
1333
1463
  },
1334
1464
  {
1335
1465
  "name": "w-page-indicator",
1336
- "description": "A page indicator component that displays a series of dots representing pages.\nOne dot is highlighted to indicate the currently selected page.\n---\n",
1466
+ "description": "A page indicator component that displays a series of dots representing pages.\n\nOne dot is highlighted to indicate the currently selected page.\n---\n",
1337
1467
  "doc-url": "",
1338
1468
  "attributes": [
1339
1469
  {
1340
1470
  "name": "selected-page",
1341
- "description": "Currently selected page (1-based index, clamped to valid range)",
1342
- "value": { "type": "number" }
1471
+ "description": "Currently selected page (1-based index)",
1472
+ "value": { "type": "number", "default": "1" }
1343
1473
  },
1344
1474
  {
1345
1475
  "name": "page-count",
1346
- "description": "Total number of pages (minimum 1)",
1347
- "value": { "type": "number" }
1476
+ "description": "Total number of pages",
1477
+ "value": { "type": "number", "default": "1" }
1348
1478
  }
1349
1479
  ],
1350
1480
  "events": [],
@@ -1352,12 +1482,12 @@
1352
1482
  "properties": [
1353
1483
  {
1354
1484
  "name": "selectedPage",
1355
- "description": "Currently selected page (1-based index, clamped to valid range)",
1485
+ "description": "Currently selected page (1-based index)",
1356
1486
  "type": "number"
1357
1487
  },
1358
1488
  {
1359
1489
  "name": "pageCount",
1360
- "description": "Total number of pages (minimum 1)",
1490
+ "description": "Total number of pages",
1361
1491
  "type": "number"
1362
1492
  }
1363
1493
  ],
@@ -1366,73 +1496,145 @@
1366
1496
  },
1367
1497
  {
1368
1498
  "name": "w-pagination",
1369
- "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)\n---\n\n\n### **Events:**\n - **page-click** - Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.",
1499
+ "description": "Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.\n---\n\n\n### **Events:**\n - **page-click** - Triggered when a link in the pagination is clicked. Contains the page number in `string` form.",
1370
1500
  "doc-url": "",
1371
1501
  "attributes": [
1372
- { "name": "base-url", "value": { "type": "string" } },
1373
- { "name": "pages", "value": { "type": "number" } },
1374
- { "name": "current-page", "value": { "type": "number" } },
1375
- { "name": "visible-pages", "value": { "type": "number" } }
1502
+ {
1503
+ "name": "base-url",
1504
+ "description": "The base URL used to construct page links, for example `/search?page=`.\n\nThe page number is appended to this URL.",
1505
+ "value": { "type": "string" }
1506
+ },
1507
+ {
1508
+ "name": "pages",
1509
+ "description": "The total number of pages.",
1510
+ "value": { "type": "number" }
1511
+ },
1512
+ {
1513
+ "name": "current-page",
1514
+ "description": "The currently active page number.",
1515
+ "value": { "type": "number", "default": "1" }
1516
+ },
1517
+ {
1518
+ "name": "visible-pages",
1519
+ "description": "The maximum number of page numbers visible.",
1520
+ "value": { "type": "number", "default": "7" }
1521
+ }
1376
1522
  ],
1377
1523
  "events": [
1378
1524
  {
1379
1525
  "name": "page-click",
1380
1526
  "type": "CustomEvent",
1381
- "description": "Triggered when a link button in the pagination is clicked. Contains the page number in `string` form."
1527
+ "description": "Triggered when a link in the pagination is clicked. Contains the page number in `string` form."
1382
1528
  }
1383
1529
  ],
1384
1530
  "js": {
1385
1531
  "properties": [
1386
- { "name": "baseUrl", "type": "string" },
1387
- { "name": "pages", "type": "number" },
1388
- { "name": "currentPageNumber", "type": "number" },
1389
- { "name": "visiblePages", "type": "number" }
1532
+ {
1533
+ "name": "baseUrl",
1534
+ "description": "The base URL used to construct page links, for example `/search?page=`.\n\nThe page number is appended to this URL.",
1535
+ "type": "string"
1536
+ },
1537
+ {
1538
+ "name": "pages",
1539
+ "description": "The total number of pages.",
1540
+ "type": "number"
1541
+ },
1542
+ {
1543
+ "name": "currentPageNumber",
1544
+ "description": "The currently active page number.",
1545
+ "type": "number"
1546
+ },
1547
+ {
1548
+ "name": "visiblePages",
1549
+ "description": "The maximum number of page numbers visible.",
1550
+ "type": "number"
1551
+ }
1390
1552
  ],
1391
1553
  "events": [
1392
1554
  {
1393
1555
  "name": "page-click",
1394
1556
  "type": "CustomEvent",
1395
- "description": "Triggered when a link button in the pagination is clicked. Contains the page number in `string` form."
1557
+ "description": "Triggered when a link in the pagination is clicked. Contains the page number in `string` form."
1396
1558
  }
1397
1559
  ]
1398
1560
  }
1399
1561
  },
1400
1562
  {
1401
1563
  "name": "w-pill",
1402
- "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)\n---\n\n\n### **Events:**\n - **w-pill-click**\n- **w-pill-close**",
1564
+ "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\n\n### **Events:**\n - **w-pill-click** - Fires when the pill itself is clicked.\n- **w-pill-close** - Fires when the pill's close button is clicked.",
1403
1565
  "doc-url": "",
1404
1566
  "attributes": [
1405
1567
  {
1406
1568
  "name": "can-close",
1569
+ "description": "Whether the pill should be removable via a close button.",
1407
1570
  "value": { "type": "boolean", "default": "false" }
1408
1571
  },
1409
1572
  {
1410
1573
  "name": "suggestion",
1574
+ "description": "Whether the pill should be rendered as a suggestion.",
1411
1575
  "value": { "type": "boolean", "default": "false" }
1412
1576
  },
1413
1577
  { "name": "open-sr-label", "value": { "type": "string" } },
1414
- { "name": "open-aria-label", "value": { "type": "string" } },
1578
+ {
1579
+ "name": "open-aria-label",
1580
+ "description": "Label read by screen readers when targeting the pill.",
1581
+ "value": { "type": "string" }
1582
+ },
1415
1583
  { "name": "close-sr-label", "value": { "type": "string" } },
1416
- { "name": "close-aria-label", "value": { "type": "string" } }
1584
+ {
1585
+ "name": "close-aria-label",
1586
+ "description": "Label read by screen readers when targeting the close button.",
1587
+ "value": { "type": "string" }
1588
+ }
1417
1589
  ],
1418
1590
  "events": [
1419
- { "name": "w-pill-click", "type": "CustomEvent" },
1420
- { "name": "w-pill-close", "type": "CustomEvent" }
1591
+ {
1592
+ "name": "w-pill-click",
1593
+ "type": "CustomEvent",
1594
+ "description": "Fires when the pill itself is clicked."
1595
+ },
1596
+ {
1597
+ "name": "w-pill-close",
1598
+ "type": "CustomEvent",
1599
+ "description": "Fires when the pill's close button is clicked."
1600
+ }
1421
1601
  ],
1422
1602
  "js": {
1423
1603
  "properties": [
1424
- { "name": "canClose", "type": "boolean" },
1425
- { "name": "suggestion", "type": "boolean" },
1604
+ {
1605
+ "name": "canClose",
1606
+ "description": "Whether the pill should be removable via a close button.",
1607
+ "type": "boolean"
1608
+ },
1609
+ {
1610
+ "name": "suggestion",
1611
+ "description": "Whether the pill should be rendered as a suggestion.",
1612
+ "type": "boolean"
1613
+ },
1426
1614
  { "name": "openSrLabel", "type": "string" },
1427
- { "name": "openAriaLabel", "type": "string" },
1615
+ {
1616
+ "name": "openAriaLabel",
1617
+ "description": "Label read by screen readers when targeting the pill.",
1618
+ "type": "string"
1619
+ },
1428
1620
  { "name": "closeSrLabel", "type": "string" },
1429
- { "name": "closeAriaLabel", "type": "string" },
1430
- { "name": "openFilterSrText" },
1431
- { "name": "removeFilterSrText" }
1621
+ {
1622
+ "name": "closeAriaLabel",
1623
+ "description": "Label read by screen readers when targeting the close button.",
1624
+ "type": "string"
1625
+ }
1432
1626
  ],
1433
1627
  "events": [
1434
- { "name": "w-pill-click", "type": "CustomEvent" },
1435
- { "name": "w-pill-close", "type": "CustomEvent" }
1628
+ {
1629
+ "name": "w-pill-click",
1630
+ "type": "CustomEvent",
1631
+ "description": "Fires when the pill itself is clicked."
1632
+ },
1633
+ {
1634
+ "name": "w-pill-close",
1635
+ "type": "CustomEvent",
1636
+ "description": "Fires when the pill's close button is clicked."
1637
+ }
1436
1638
  ]
1437
1639
  }
1438
1640
  },
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "2.9.2-next.1",
5
- "packageManager": "pnpm@10.33.2",
4
+ "version": "2.10.0-next.1",
5
+ "packageManager": "pnpm@10.33.4",
6
6
  "description": "Custom elements for Warp",
7
7
  "exports": {
8
8
  ".": {
@@ -307,7 +307,7 @@
307
307
  },
308
308
  "license": "Apache-2.0",
309
309
  "devDependencies": {
310
- "@biomejs/biome": "2.4.14",
310
+ "@biomejs/biome": "2.4.15",
311
311
  "@chbphone55/classnames": "2.0.0",
312
312
  "@custom-elements-manifest/analyzer": "^0.11.0",
313
313
  "@eik/cli": "2.0.39",
@@ -333,7 +333,7 @@
333
333
  "@storybook/react-vite": "^10.3.5",
334
334
  "@storybook/web-components": "^10.3.5",
335
335
  "@storybook/web-components-vite": "^10.3.5",
336
- "@types/node": "24.12.2",
336
+ "@types/node": "24.12.4",
337
337
  "@types/react": "^19.2.0",
338
338
  "@types/react-dom": "^19.2.0",
339
339
  "@vitejs/plugin-react": "^6.0.1",
@@ -354,7 +354,7 @@
354
354
  "date-fns": "^4.1.0",
355
355
  "element-collapse": "1.1.0",
356
356
  "esbuild": "0.28.0",
357
- "express": "4.22.1",
357
+ "express": "4.22.2",
358
358
  "glob": "13.0.6",
359
359
  "globals": "17.6.0",
360
360
  "html-format": "1.1.7",