@warp-ds/elements 2.10.0-next.13 → 2.10.0-next.15

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 (125) hide show
  1. package/dist/custom-elements.json +384 -0
  2. package/dist/docs/attention/api.md +48 -0
  3. package/dist/docs/attention/attention.md +48 -0
  4. package/dist/docs/button/api.md +8 -0
  5. package/dist/docs/button/button.md +8 -0
  6. package/dist/docs/card/api.md +8 -0
  7. package/dist/docs/card/card.md +8 -0
  8. package/dist/docs/checkbox/api.md +48 -0
  9. package/dist/docs/checkbox/checkbox.md +48 -0
  10. package/dist/docs/checkbox-group/api.md +24 -0
  11. package/dist/docs/checkbox-group/checkbox-group.md +24 -0
  12. package/dist/docs/combobox/api.md +8 -0
  13. package/dist/docs/combobox/combobox.md +8 -0
  14. package/dist/docs/datepicker/api.md +8 -0
  15. package/dist/docs/datepicker/datepicker.md +8 -0
  16. package/dist/docs/index.md +2 -0
  17. package/dist/docs/modal/api.md +16 -0
  18. package/dist/docs/modal/modal.md +16 -0
  19. package/dist/docs/slider-thumb/api.md +16 -0
  20. package/dist/docs/slider-thumb/slider-thumb.md +16 -0
  21. package/dist/docs/snackbar/accessibility.md +20 -0
  22. package/dist/docs/snackbar/api.md +30 -0
  23. package/dist/docs/snackbar/examples.md +191 -0
  24. package/dist/docs/snackbar/snackbar.md +385 -0
  25. package/dist/docs/snackbar/styling.md +72 -0
  26. package/dist/docs/snackbar/usage.md +60 -0
  27. package/dist/docs/snackbar-item/api.md +41 -0
  28. package/dist/docs/snackbar-item/snackbar-item.md +49 -0
  29. package/dist/docs/step/api.md +16 -0
  30. package/dist/docs/step/step.md +16 -0
  31. package/dist/docs/switch/api.md +8 -0
  32. package/dist/docs/switch/switch.md +8 -0
  33. package/dist/docs/textarea/api.md +40 -0
  34. package/dist/docs/textarea/textarea.md +40 -0
  35. package/dist/docs/textfield/api.md +32 -0
  36. package/dist/docs/textfield/textfield.md +32 -0
  37. package/dist/index.d.ts +292 -1
  38. package/dist/packages/affix/affix.js +4 -4
  39. package/dist/packages/affix/affix.js.map +2 -2
  40. package/dist/packages/alert/alert.js +2 -2
  41. package/dist/packages/alert/alert.js.map +2 -2
  42. package/dist/packages/attention/attention.d.ts +5 -0
  43. package/dist/packages/attention/attention.js +14 -14
  44. package/dist/packages/attention/attention.js.map +2 -2
  45. package/dist/packages/button/button.d.ts +5 -0
  46. package/dist/packages/button/button.js +3 -3
  47. package/dist/packages/button/button.js.map +2 -2
  48. package/dist/packages/button/button.react.stories.d.ts +2 -2
  49. package/dist/packages/button/button.test.js +0 -1
  50. package/dist/packages/button/react.d.ts +1 -1
  51. package/dist/packages/datepicker/DatePicker.test.js +5 -3
  52. package/dist/packages/datepicker/datepicker.js +49 -48
  53. package/dist/packages/datepicker/datepicker.js.map +3 -3
  54. package/dist/packages/datepicker/datepicker.test.js +1 -1
  55. package/dist/packages/datepicker/utils.d.ts +3 -0
  56. package/dist/packages/datepicker/utils.js +33 -0
  57. package/dist/packages/datepicker/utils.test.d.ts +1 -0
  58. package/dist/packages/datepicker/utils.test.js +29 -0
  59. package/dist/packages/expandable/expandable.js +9 -9
  60. package/dist/packages/expandable/expandable.js.map +4 -4
  61. package/dist/packages/global.d.ts +1 -0
  62. package/dist/packages/global.js +5 -0
  63. package/dist/packages/icon/icon.d.ts +5 -0
  64. package/dist/packages/icon/icon.js +2 -2
  65. package/dist/packages/icon/icon.js.map +2 -2
  66. package/dist/packages/interaction-type-detection.d.ts +22 -0
  67. package/dist/packages/interaction-type-detection.js +38 -0
  68. package/dist/packages/modal/modal.js +1 -1
  69. package/dist/packages/modal/modal.js.map +2 -2
  70. package/dist/packages/modal-header/modal-header.js +3 -3
  71. package/dist/packages/modal-header/modal-header.js.map +2 -2
  72. package/dist/packages/pagination/pagination.js +1 -1
  73. package/dist/packages/pagination/pagination.js.map +2 -2
  74. package/dist/packages/pill/pill.js +4 -4
  75. package/dist/packages/pill/pill.js.map +2 -2
  76. package/dist/packages/select/select.js +3 -3
  77. package/dist/packages/select/select.js.map +2 -2
  78. package/dist/packages/snackbar/locales/da/messages.d.mts +1 -0
  79. package/dist/packages/snackbar/locales/da/messages.mjs +1 -0
  80. package/dist/packages/snackbar/locales/en/messages.d.mts +1 -0
  81. package/dist/packages/snackbar/locales/en/messages.mjs +1 -0
  82. package/dist/packages/snackbar/locales/fi/messages.d.mts +1 -0
  83. package/dist/packages/snackbar/locales/fi/messages.mjs +1 -0
  84. package/dist/packages/snackbar/locales/nb/messages.d.mts +1 -0
  85. package/dist/packages/snackbar/locales/nb/messages.mjs +1 -0
  86. package/dist/packages/snackbar/locales/sv/messages.d.mts +1 -0
  87. package/dist/packages/snackbar/locales/sv/messages.mjs +1 -0
  88. package/dist/packages/snackbar/react.d.ts +2 -0
  89. package/dist/packages/snackbar/react.js +11 -0
  90. package/dist/packages/snackbar/snackbar.d.ts +132 -0
  91. package/dist/packages/snackbar/snackbar.hydration.test.d.ts +1 -0
  92. package/dist/packages/snackbar/snackbar.hydration.test.js +13 -0
  93. package/dist/packages/snackbar/snackbar.js +2646 -0
  94. package/dist/packages/snackbar/snackbar.js.map +7 -0
  95. package/dist/packages/snackbar/snackbar.react.stories.d.ts +12 -0
  96. package/dist/packages/snackbar/snackbar.react.stories.js +160 -0
  97. package/dist/packages/snackbar/snackbar.stories.d.ts +20 -0
  98. package/dist/packages/snackbar/snackbar.stories.js +291 -0
  99. package/dist/packages/snackbar/snackbar.test.d.ts +4 -0
  100. package/dist/packages/snackbar/snackbar.test.js +17 -0
  101. package/dist/packages/snackbar/styles.d.ts +1 -0
  102. package/dist/packages/snackbar/styles.js +35 -0
  103. package/dist/packages/snackbar-item/react.d.ts +5 -0
  104. package/dist/packages/snackbar-item/react.js +15 -0
  105. package/dist/packages/snackbar-item/snackbar-item.d.ts +69 -0
  106. package/dist/packages/snackbar-item/snackbar-item.js +2601 -0
  107. package/dist/packages/snackbar-item/snackbar-item.js.map +7 -0
  108. package/dist/packages/snackbar-item/snackbar-item.react.test.d.ts +1 -0
  109. package/dist/packages/snackbar-item/snackbar-item.react.test.js +5 -0
  110. package/dist/packages/snackbar-item/styles.d.ts +1 -0
  111. package/dist/packages/snackbar-item/styles.js +111 -0
  112. package/dist/packages/step/step.js +9 -9
  113. package/dist/packages/step/step.js.map +2 -2
  114. package/dist/packages/tabs/tabs.react.stories.d.ts +4 -4
  115. package/dist/packages/tabs/tabs.react.stories.js +1 -1
  116. package/dist/packages/tabs/tabs.stories.d.ts +1 -1
  117. package/dist/packages/tabs/tabs.stories.js +1 -1
  118. package/dist/packages/toast/toast.js +6 -6
  119. package/dist/packages/toast/toast.js.map +4 -4
  120. package/dist/packages/utils/element-collapse.d.ts +12 -0
  121. package/dist/packages/utils/element-collapse.js +92 -0
  122. package/dist/packages/utils/expand-transition.js +1 -1
  123. package/dist/web-types.json +88 -3
  124. package/eik/index.js +12 -12
  125. package/package.json +1 -3
@@ -4006,6 +4006,18 @@
4006
4006
  "text": "HTMLTableCellElement"
4007
4007
  }
4008
4008
  },
4009
+ {
4010
+ "kind": "field",
4011
+ "name": "#inputLocale",
4012
+ "privacy": "private",
4013
+ "readonly": true
4014
+ },
4015
+ {
4016
+ "kind": "field",
4017
+ "name": "#inputValue",
4018
+ "privacy": "private",
4019
+ "readonly": true
4020
+ },
4009
4021
  {
4010
4022
  "kind": "method",
4011
4023
  "name": "resetFormControl",
@@ -7434,6 +7446,378 @@
7434
7446
  }
7435
7447
  ]
7436
7448
  },
7449
+ {
7450
+ "kind": "javascript-module",
7451
+ "path": "packages/snackbar-item/snackbar-item.ts",
7452
+ "declarations": [
7453
+ {
7454
+ "kind": "class",
7455
+ "description": "An item to show in a `w-snackbar`.\n\nSee the `create` function on `w-snackbar` for a convenience API which helps you make snackbar items.",
7456
+ "name": "WarpSnackbarItem",
7457
+ "cssProperties": [
7458
+ {
7459
+ "name": "--w-c-snackbar-item-radius"
7460
+ },
7461
+ {
7462
+ "name": "--w-c-snackbar-item-max-width"
7463
+ },
7464
+ {
7465
+ "name": "--w-c-snackbar-item-min-width"
7466
+ },
7467
+ {
7468
+ "name": "--w-c-snackbar-item-padding"
7469
+ },
7470
+ {
7471
+ "name": "--w-c-snackbar-item-bg"
7472
+ },
7473
+ {
7474
+ "name": "--w-c-snackbar-item-action-bg-active"
7475
+ },
7476
+ {
7477
+ "name": "--w-c-snackbar-item-action-bg-hover"
7478
+ },
7479
+ {
7480
+ "name": "--w-c-snackbar-item-color"
7481
+ },
7482
+ {
7483
+ "name": "--w-c-snackbar-item-action-color-active"
7484
+ },
7485
+ {
7486
+ "name": "--w-c-snackbar-item-action-color-hover"
7487
+ },
7488
+ {
7489
+ "name": "--w-c-snackbar-item-box-shadow"
7490
+ }
7491
+ ],
7492
+ "cssParts": [
7493
+ {
7494
+ "description": "the container wrapping the message, icon and actions.",
7495
+ "name": "item"
7496
+ },
7497
+ {
7498
+ "description": "the icon for the variant.",
7499
+ "name": "icon"
7500
+ },
7501
+ {
7502
+ "description": "the default slot, body of the snackbar item.",
7503
+ "name": "message"
7504
+ },
7505
+ {
7506
+ "description": "close and action button.",
7507
+ "name": "action"
7508
+ }
7509
+ ],
7510
+ "slots": [
7511
+ {
7512
+ "description": "the snackbar message.",
7513
+ "name": "default"
7514
+ },
7515
+ {
7516
+ "description": "icon preceeding the message.",
7517
+ "name": "icon"
7518
+ },
7519
+ {
7520
+ "description": "action following the message.",
7521
+ "name": "action"
7522
+ }
7523
+ ],
7524
+ "members": [
7525
+ {
7526
+ "kind": "field",
7527
+ "name": "actionPlacement",
7528
+ "type": {
7529
+ "text": "SnackbarActionPlacement"
7530
+ },
7531
+ "default": "'inline'",
7532
+ "description": "The placement of the action and close buttons.",
7533
+ "attribute": "action-placement",
7534
+ "reflects": true,
7535
+ "parsedType": {
7536
+ "text": "'inline' | 'block'"
7537
+ }
7538
+ },
7539
+ {
7540
+ "kind": "field",
7541
+ "name": "duration",
7542
+ "type": {
7543
+ "text": "number"
7544
+ },
7545
+ "description": "How long the message should stay in the document before removing itself.",
7546
+ "attribute": "duration",
7547
+ "reflects": true
7548
+ },
7549
+ {
7550
+ "kind": "field",
7551
+ "name": "root",
7552
+ "type": {
7553
+ "text": "HTMLDivElement | null"
7554
+ },
7555
+ "privacy": "private"
7556
+ },
7557
+ {
7558
+ "kind": "field",
7559
+ "name": "hasAction",
7560
+ "type": {
7561
+ "text": "boolean"
7562
+ },
7563
+ "privacy": "private",
7564
+ "default": "false"
7565
+ },
7566
+ {
7567
+ "kind": "field",
7568
+ "name": "#expanded",
7569
+ "privacy": "private",
7570
+ "type": {
7571
+ "text": "boolean"
7572
+ },
7573
+ "default": "false"
7574
+ },
7575
+ {
7576
+ "kind": "field",
7577
+ "name": "#durationLeft",
7578
+ "privacy": "private",
7579
+ "type": {
7580
+ "text": "number"
7581
+ }
7582
+ },
7583
+ {
7584
+ "kind": "field",
7585
+ "name": "#lastFocused",
7586
+ "privacy": "private",
7587
+ "type": {
7588
+ "text": "HTMLElement | null"
7589
+ },
7590
+ "default": "null"
7591
+ },
7592
+ {
7593
+ "kind": "field",
7594
+ "name": "#timer",
7595
+ "privacy": "private",
7596
+ "type": {
7597
+ "text": "ReturnType<typeof setTimeout> | null"
7598
+ },
7599
+ "default": "null"
7600
+ },
7601
+ {
7602
+ "kind": "field",
7603
+ "name": "#timerPaused",
7604
+ "privacy": "private",
7605
+ "type": {
7606
+ "text": "boolean"
7607
+ },
7608
+ "default": "false"
7609
+ },
7610
+ {
7611
+ "kind": "method",
7612
+ "name": "close",
7613
+ "return": {
7614
+ "type": {
7615
+ "text": "void"
7616
+ }
7617
+ },
7618
+ "description": "Remove the snackbar item from the document.\n\nMoves focus to the last focused element outside of the snackbar item, if available.",
7619
+ "type": {
7620
+ "text": "close() => void"
7621
+ }
7622
+ },
7623
+ {
7624
+ "kind": "method",
7625
+ "name": "#onFocusIn",
7626
+ "privacy": "private",
7627
+ "parameters": [
7628
+ {
7629
+ "name": "e",
7630
+ "type": {
7631
+ "text": "FocusEvent"
7632
+ }
7633
+ }
7634
+ ],
7635
+ "description": "Listen to focusin, not focus, as focus does not bubble.\n\nWe're interested in running code when an action button gets focus,\nsuch as pausing the countdown and storing the last focused element\noutside of the snackbar so we can return there when it closes.\n\nOnly save the first instance of `relatedTarget` so we don't overwrite\nit when focus moves from an action button to the close button."
7636
+ },
7637
+ {
7638
+ "kind": "method",
7639
+ "name": "#onFocusOut",
7640
+ "privacy": "private",
7641
+ "parameters": [
7642
+ {
7643
+ "name": "e",
7644
+ "type": {
7645
+ "text": "FocusEvent"
7646
+ }
7647
+ }
7648
+ ],
7649
+ "description": "Listen to focusout, not blur, as blur does not bubble.\n\nUnpause the countdown by clearing this.#lastFocused\nif the focus is moving outside of the snackbar item."
7650
+ },
7651
+ {
7652
+ "kind": "method",
7653
+ "name": "#onMouseEnter",
7654
+ "privacy": "private"
7655
+ },
7656
+ {
7657
+ "kind": "method",
7658
+ "name": "#onMouseLeave",
7659
+ "privacy": "private"
7660
+ },
7661
+ {
7662
+ "kind": "method",
7663
+ "name": "#hasAction",
7664
+ "privacy": "private"
7665
+ }
7666
+ ],
7667
+ "attributes": [
7668
+ {
7669
+ "name": "action-placement",
7670
+ "type": {
7671
+ "text": "SnackbarActionPlacement"
7672
+ },
7673
+ "default": "'inline'",
7674
+ "description": "The placement of the action and close buttons.",
7675
+ "fieldName": "actionPlacement",
7676
+ "parsedType": {
7677
+ "text": "'inline' | 'block'"
7678
+ }
7679
+ },
7680
+ {
7681
+ "name": "duration",
7682
+ "type": {
7683
+ "text": "number"
7684
+ },
7685
+ "description": "How long the message should stay in the document before removing itself.",
7686
+ "fieldName": "duration"
7687
+ }
7688
+ ],
7689
+ "superclass": {
7690
+ "name": "LitElement",
7691
+ "package": "lit"
7692
+ },
7693
+ "parent": {
7694
+ "name": "w-snackbar",
7695
+ "description": ""
7696
+ },
7697
+ "tagName": "w-snackbar-item",
7698
+ "customElement": true,
7699
+ "modulePath": "packages/snackbar-item/snackbar-item.ts",
7700
+ "definitionPath": "packages/snackbar-item/snackbar-item.ts"
7701
+ }
7702
+ ],
7703
+ "exports": [
7704
+ {
7705
+ "kind": "js",
7706
+ "name": "WarpSnackbarItem",
7707
+ "declaration": {
7708
+ "name": "WarpSnackbarItem",
7709
+ "module": "packages/snackbar-item/snackbar-item.ts"
7710
+ }
7711
+ },
7712
+ {
7713
+ "kind": "custom-element-definition",
7714
+ "name": "w-snackbar-item",
7715
+ "declaration": {
7716
+ "name": "WarpSnackbarItem",
7717
+ "module": "packages/snackbar-item/snackbar-item.ts"
7718
+ }
7719
+ }
7720
+ ]
7721
+ },
7722
+ {
7723
+ "kind": "javascript-module",
7724
+ "path": "packages/snackbar/snackbar.ts",
7725
+ "declarations": [
7726
+ {
7727
+ "kind": "class",
7728
+ "description": "A Snackbar shows brief user feedback messages that overlay content, with an optional action such as Undo.\n\nInclude one `<w-snackbar></w-snackbar>` in the document `<body>`. Use the `create` function to create messages.",
7729
+ "name": "WarpSnackbar",
7730
+ "cssProperties": [
7731
+ {
7732
+ "name": "--w-c-snackbar-container-gap"
7733
+ },
7734
+ {
7735
+ "name": "--w-c-snackbar-position-bottom"
7736
+ },
7737
+ {
7738
+ "name": "--w-c-snackbar-position-left"
7739
+ },
7740
+ {
7741
+ "name": "--w-c-snackbar-position-right"
7742
+ },
7743
+ {
7744
+ "name": "--w-c-snackbar-position-top"
7745
+ },
7746
+ {
7747
+ "name": "--w-c-snackbar-z-index"
7748
+ }
7749
+ ],
7750
+ "cssParts": [
7751
+ {
7752
+ "description": "the live region that positions messages on the screen.",
7753
+ "name": "container"
7754
+ }
7755
+ ],
7756
+ "slots": [
7757
+ {
7758
+ "description": "`w-snackbar-item` gets placed inside the default slot by the `create` function.",
7759
+ "name": "default"
7760
+ }
7761
+ ],
7762
+ "members": [
7763
+ {
7764
+ "kind": "method",
7765
+ "name": "create",
7766
+ "return": {
7767
+ "type": {
7768
+ "text": ""
7769
+ }
7770
+ },
7771
+ "parameters": [
7772
+ {
7773
+ "name": "message",
7774
+ "type": {
7775
+ "text": "string"
7776
+ }
7777
+ },
7778
+ {
7779
+ "name": "options",
7780
+ "default": "{}",
7781
+ "type": {
7782
+ "text": "CreateSnackbarOptions"
7783
+ }
7784
+ }
7785
+ ],
7786
+ "description": "Creates a snackbar item and immediately adds it to the snackbar.\n\nBy default the snackbar item automatically closes after 4 seconds (`SnackbarDuration.Short`).\n\nIf you include an `action` in the options the default `duration` is\nset to 10 seconds (`SnackbarDuration.Long`) and can not be made shorter. \n\nA `duration` of 10 seconds or longer forces the close button to be visible.\n\nThe default `variant` is `neutral` which does not have an icon.\n\nSet `duration` to `SnackbarDuration.Infinite` if you want a persistent message.",
7787
+ "type": {
7788
+ "text": "create(message: string, options: CreateSnackbarOptions = {}) => void"
7789
+ }
7790
+ }
7791
+ ],
7792
+ "superclass": {
7793
+ "name": "LitElement",
7794
+ "package": "lit"
7795
+ },
7796
+ "tagName": "w-snackbar",
7797
+ "customElement": true,
7798
+ "modulePath": "packages/snackbar/snackbar.ts",
7799
+ "definitionPath": "packages/snackbar/snackbar.ts"
7800
+ }
7801
+ ],
7802
+ "exports": [
7803
+ {
7804
+ "kind": "js",
7805
+ "name": "WarpSnackbar",
7806
+ "declaration": {
7807
+ "name": "WarpSnackbar",
7808
+ "module": "packages/snackbar/snackbar.ts"
7809
+ }
7810
+ },
7811
+ {
7812
+ "kind": "custom-element-definition",
7813
+ "name": "w-snackbar",
7814
+ "declaration": {
7815
+ "name": "WarpSnackbar",
7816
+ "module": "packages/snackbar/snackbar.ts"
7817
+ }
7818
+ }
7819
+ ]
7820
+ },
7437
7821
  {
7438
7822
  "kind": "javascript-module",
7439
7823
  "path": "packages/step/step.ts",
@@ -8,15 +8,21 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
8
8
  |-|-|-|-|
9
9
  | _actualDirection (JS only) | `unknown` | `-` | - |
10
10
  | _initialPlacement (JS only) | `unknown` | `-` | - |
11
+ | activeAttentionType (JS only) | `activeAttentionType() => void` | `-` | - |
11
12
  | callout | `boolean` | `false` | Renders the component as an inline callout. |
12
13
  | can-close | `boolean` | `false` | Shows a close button inside the attention component. |
14
+ | close (JS only) | `close() => void` | `-` | - |
13
15
  | cross-axis | `boolean` | `false` | Allows overflow checks on the cross axis when flipping. |
16
+ | defaultAriaLabel (JS only) | `defaultAriaLabel() => void` | `-` | - |
14
17
  | distance | `number` | `8` | Distance offset between trigger and attention panel. |
15
18
  | fallback-placements | `Directions[]` | `[]` | Ordered list of fallback placements. |
16
19
  | flip | `boolean` | `false` | Enables automatic flipping when placement has no space. |
20
+ | handleDone (JS only) | `handleDone() => void` | `-` | - |
17
21
  | highlight | `boolean` | `false` | Renders the component with highlight styling. |
22
+ | keypressed (JS only) | `keypressed(e: KeyboardEvent) => void` | `-` | - |
18
23
  | no-arrow | `boolean` | `false` | Hides the directional arrow of the attention component. |
19
24
  | placement | [`Directions`](#directions) | `'bottom'` | Preferred placement relative to the trigger element. |
25
+ | pointingAtDirection (JS only) | `pointingAtDirection() => void` | `-` | - |
20
26
  | popover | `boolean` | `false` | Enables native popover behavior for the attention element. |
21
27
  | show | `boolean` | `false` | Controls whether the attention panel is visible. |
22
28
  | skidding | `number` | `0` | Cross-axis offset for fine-grained positioning. |
@@ -38,6 +44,13 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
38
44
  - Type: `unknown`
39
45
  - Default: `-`
40
46
 
47
+ #### activeAttentionType (JS only)
48
+
49
+
50
+
51
+ - Type: `activeAttentionType() => void`
52
+ - Default: `-`
53
+
41
54
  #### callout
42
55
 
43
56
  Renders the component as an inline callout.
@@ -54,6 +67,13 @@ Adds an internal dismiss action that lets users close the attention panel.
54
67
  - Type: `boolean`
55
68
  - Default: `false`
56
69
 
70
+ #### close (JS only)
71
+
72
+
73
+
74
+ - Type: `close() => void`
75
+ - Default: `-`
76
+
57
77
  #### cross-axis
58
78
 
59
79
  Allows overflow checks on the cross axis when flipping.
@@ -62,6 +82,13 @@ Use with `flip` to improve collision handling when space is constrained horizont
62
82
  - Type: `boolean`
63
83
  - Default: `false`
64
84
 
85
+ #### defaultAriaLabel (JS only)
86
+
87
+
88
+
89
+ - Type: `defaultAriaLabel() => void`
90
+ - Default: `-`
91
+
65
92
  #### distance
66
93
 
67
94
  Distance offset between trigger and attention panel.
@@ -86,6 +113,13 @@ Allows the component to choose an alternative side if the preferred placement wo
86
113
  - Type: `boolean`
87
114
  - Default: `false`
88
115
 
116
+ #### handleDone (JS only)
117
+
118
+
119
+
120
+ - Type: `handleDone() => void`
121
+ - Default: `-`
122
+
89
123
  #### highlight
90
124
 
91
125
  Renders the component with highlight styling.
@@ -94,6 +128,13 @@ Use highlight mode to visually emphasize important contextual information.
94
128
  - Type: `boolean`
95
129
  - Default: `false`
96
130
 
131
+ #### keypressed (JS only)
132
+
133
+
134
+
135
+ - Type: `keypressed(e: KeyboardEvent) => void`
136
+ - Default: `-`
137
+
97
138
  #### no-arrow
98
139
 
99
140
  Hides the directional arrow of the attention component.
@@ -110,6 +151,13 @@ Sets the initial direction for positioning, for example `top`, `right`, `bottom`
110
151
  - Type: [`Directions`](#directions)
111
152
  - Default: `'bottom'`
112
153
 
154
+ #### pointingAtDirection (JS only)
155
+
156
+
157
+
158
+ - Type: `pointingAtDirection() => void`
159
+ - Default: `-`
160
+
113
161
  #### popover
114
162
 
115
163
  Enables native popover behavior for the attention element.
@@ -258,15 +258,21 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
258
258
  |-|-|-|-|
259
259
  | _actualDirection (JS only) | `unknown` | `-` | - |
260
260
  | _initialPlacement (JS only) | `unknown` | `-` | - |
261
+ | activeAttentionType (JS only) | `activeAttentionType() => void` | `-` | - |
261
262
  | callout | `boolean` | `false` | Renders the component as an inline callout. |
262
263
  | can-close | `boolean` | `false` | Shows a close button inside the attention component. |
264
+ | close (JS only) | `close() => void` | `-` | - |
263
265
  | cross-axis | `boolean` | `false` | Allows overflow checks on the cross axis when flipping. |
266
+ | defaultAriaLabel (JS only) | `defaultAriaLabel() => void` | `-` | - |
264
267
  | distance | `number` | `8` | Distance offset between trigger and attention panel. |
265
268
  | fallback-placements | `Directions[]` | `[]` | Ordered list of fallback placements. |
266
269
  | flip | `boolean` | `false` | Enables automatic flipping when placement has no space. |
270
+ | handleDone (JS only) | `handleDone() => void` | `-` | - |
267
271
  | highlight | `boolean` | `false` | Renders the component with highlight styling. |
272
+ | keypressed (JS only) | `keypressed(e: KeyboardEvent) => void` | `-` | - |
268
273
  | no-arrow | `boolean` | `false` | Hides the directional arrow of the attention component. |
269
274
  | placement | [`Directions`](#directions) | `'bottom'` | Preferred placement relative to the trigger element. |
275
+ | pointingAtDirection (JS only) | `pointingAtDirection() => void` | `-` | - |
270
276
  | popover | `boolean` | `false` | Enables native popover behavior for the attention element. |
271
277
  | show | `boolean` | `false` | Controls whether the attention panel is visible. |
272
278
  | skidding | `number` | `0` | Cross-axis offset for fine-grained positioning. |
@@ -288,6 +294,13 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
288
294
  - Type: `unknown`
289
295
  - Default: `-`
290
296
 
297
+ #### activeAttentionType (JS only)
298
+
299
+
300
+
301
+ - Type: `activeAttentionType() => void`
302
+ - Default: `-`
303
+
291
304
  #### callout
292
305
 
293
306
  Renders the component as an inline callout.
@@ -304,6 +317,13 @@ Adds an internal dismiss action that lets users close the attention panel.
304
317
  - Type: `boolean`
305
318
  - Default: `false`
306
319
 
320
+ #### close (JS only)
321
+
322
+
323
+
324
+ - Type: `close() => void`
325
+ - Default: `-`
326
+
307
327
  #### cross-axis
308
328
 
309
329
  Allows overflow checks on the cross axis when flipping.
@@ -312,6 +332,13 @@ Use with `flip` to improve collision handling when space is constrained horizont
312
332
  - Type: `boolean`
313
333
  - Default: `false`
314
334
 
335
+ #### defaultAriaLabel (JS only)
336
+
337
+
338
+
339
+ - Type: `defaultAriaLabel() => void`
340
+ - Default: `-`
341
+
315
342
  #### distance
316
343
 
317
344
  Distance offset between trigger and attention panel.
@@ -336,6 +363,13 @@ Allows the component to choose an alternative side if the preferred placement wo
336
363
  - Type: `boolean`
337
364
  - Default: `false`
338
365
 
366
+ #### handleDone (JS only)
367
+
368
+
369
+
370
+ - Type: `handleDone() => void`
371
+ - Default: `-`
372
+
339
373
  #### highlight
340
374
 
341
375
  Renders the component with highlight styling.
@@ -344,6 +378,13 @@ Use highlight mode to visually emphasize important contextual information.
344
378
  - Type: `boolean`
345
379
  - Default: `false`
346
380
 
381
+ #### keypressed (JS only)
382
+
383
+
384
+
385
+ - Type: `keypressed(e: KeyboardEvent) => void`
386
+ - Default: `-`
387
+
347
388
  #### no-arrow
348
389
 
349
390
  Hides the directional arrow of the attention component.
@@ -360,6 +401,13 @@ Sets the initial direction for positioning, for example `top`, `right`, `bottom`
360
401
  - Type: [`Directions`](#directions)
361
402
  - Default: `'bottom'`
362
403
 
404
+ #### pointingAtDirection (JS only)
405
+
406
+
407
+
408
+ - Type: `pointingAtDirection() => void`
409
+ - Default: `-`
410
+
363
411
  #### popover
364
412
 
365
413
  Enables native popover behavior for the attention element.
@@ -18,6 +18,7 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
18
18
  | name | `string \| undefined` | `-` | Form control name. |
19
19
  | quiet | `boolean` | `false` | Deprecated quiet visual treatment flag. **Deprecated**: Use `variant="quiet"` instead |
20
20
  | rel | `string \| undefined` | `-` | Link relationship. |
21
+ | resetFormControl (JS only) | `resetFormControl() => void` | `-` | - |
21
22
  | shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | Shadow root configuration. |
22
23
  | small | `boolean` | `false` | Renders the compact button size. |
23
24
  | target | `string \| undefined` | `-` | Link browsing context. |
@@ -125,6 +126,13 @@ Passed to the rendered link when `href` is set. If `target="_blank"` is set and
125
126
  - Type: `string | undefined`
126
127
  - Default: `-`
127
128
 
129
+ #### resetFormControl (JS only)
130
+
131
+
132
+
133
+ - Type: `resetFormControl() => void`
134
+ - Default: `-`
135
+
128
136
  #### shadowRootOptions (JS only)
129
137
 
130
138
  Shadow root configuration.
@@ -361,6 +361,7 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
361
361
  | name | `string \| undefined` | `-` | Form control name. |
362
362
  | quiet | `boolean` | `false` | Deprecated quiet visual treatment flag. **Deprecated**: Use `variant="quiet"` instead |
363
363
  | rel | `string \| undefined` | `-` | Link relationship. |
364
+ | resetFormControl (JS only) | `resetFormControl() => void` | `-` | - |
364
365
  | shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | Shadow root configuration. |
365
366
  | small | `boolean` | `false` | Renders the compact button size. |
366
367
  | target | `string \| undefined` | `-` | Link browsing context. |
@@ -468,6 +469,13 @@ Passed to the rendered link when `href` is set. If `target="_blank"` is set and
468
469
  - Type: `string | undefined`
469
470
  - Default: `-`
470
471
 
472
+ #### resetFormControl (JS only)
473
+
474
+
475
+
476
+ - Type: `resetFormControl() => void`
477
+ - Default: `-`
478
+
471
479
  #### shadowRootOptions (JS only)
472
480
 
473
481
  Shadow root configuration.
@@ -9,6 +9,7 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
9
9
  | buttonText (JS only) | `unknown` | `-` | - |
10
10
  | clickable | `boolean` | `false` | Whether the whole card is interactive. |
11
11
  | flat | `boolean` | `false` | Whether the card uses the flat visual treatment. |
12
+ | keypressed (JS only) | `keypressed(e: KeyboardEvent) => void` | `-` | - |
12
13
  | selected | `boolean` | `false` | Whether the card is visually selected. |
13
14
 
14
15
  ### Property Details
@@ -38,6 +39,13 @@ Flat cards use a bordered surface instead of the default elevated surface. Use t
38
39
  - Type: `boolean`
39
40
  - Default: `false`
40
41
 
42
+ #### keypressed (JS only)
43
+
44
+
45
+
46
+ - Type: `keypressed(e: KeyboardEvent) => void`
47
+ - Default: `-`
48
+
41
49
  #### selected
42
50
 
43
51
  Whether the card is visually selected.
@@ -248,6 +248,7 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
248
248
  | buttonText (JS only) | `unknown` | `-` | - |
249
249
  | clickable | `boolean` | `false` | Whether the whole card is interactive. |
250
250
  | flat | `boolean` | `false` | Whether the card uses the flat visual treatment. |
251
+ | keypressed (JS only) | `keypressed(e: KeyboardEvent) => void` | `-` | - |
251
252
  | selected | `boolean` | `false` | Whether the card is visually selected. |
252
253
 
253
254
  ### Property Details
@@ -277,6 +278,13 @@ Flat cards use a bordered surface instead of the default elevated surface. Use t
277
278
  - Type: `boolean`
278
279
  - Default: `false`
279
280
 
281
+ #### keypressed (JS only)
282
+
283
+
284
+
285
+ - Type: `keypressed(e: KeyboardEvent) => void`
286
+ - Default: `-`
287
+
280
288
  #### selected
281
289
 
282
290
  Whether the card is visually selected.