wcs-core 7.2.2 → 7.3.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 (63) hide show
  1. package/dist/cjs/accessibility-5f681a74.js.map +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/wcs-accordion-panel.cjs.entry.js +1 -1
  4. package/dist/cjs/wcs-accordion-panel.cjs.entry.js.map +1 -1
  5. package/dist/cjs/wcs-accordion.cjs.entry.js +2 -1
  6. package/dist/cjs/wcs-accordion.cjs.entry.js.map +1 -1
  7. package/dist/cjs/wcs-checkbox.cjs.entry.js +3 -2
  8. package/dist/cjs/wcs-checkbox.cjs.entry.js.map +1 -1
  9. package/dist/cjs/wcs-chip.cjs.entry.js +102 -0
  10. package/dist/cjs/wcs-chip.cjs.entry.js.map +1 -0
  11. package/dist/cjs/wcs.cjs.js +1 -1
  12. package/dist/collection/collection-manifest.json +1 -0
  13. package/dist/collection/components/accordion/accordion.e2e.js +187 -0
  14. package/dist/collection/components/accordion/accordion.e2e.js.map +1 -0
  15. package/dist/collection/components/accordion/accordion.js +2 -1
  16. package/dist/collection/components/accordion/accordion.js.map +1 -1
  17. package/dist/collection/components/accordion-panel/accordion-panel.js +2 -2
  18. package/dist/collection/components/accordion-panel/accordion-panel.js.map +1 -1
  19. package/dist/collection/components/checkbox/checkbox.css +3 -0
  20. package/dist/collection/components/checkbox/checkbox.js +20 -1
  21. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  22. package/dist/collection/components/chip/chip-interface.js +2 -0
  23. package/dist/collection/components/chip/chip-interface.js.map +1 -0
  24. package/dist/collection/components/chip/chip.css +220 -0
  25. package/dist/collection/components/chip/chip.e2e.js +209 -0
  26. package/dist/collection/components/chip/chip.e2e.js.map +1 -0
  27. package/dist/collection/components/chip/chip.js +341 -0
  28. package/dist/collection/components/chip/chip.js.map +1 -0
  29. package/dist/collection/utils/accessibility.js +16 -0
  30. package/dist/collection/utils/accessibility.js.map +1 -1
  31. package/dist/esm/accessibility-069640cf.js.map +1 -1
  32. package/dist/esm/loader.js +1 -1
  33. package/dist/esm/wcs-accordion-panel.entry.js +1 -1
  34. package/dist/esm/wcs-accordion-panel.entry.js.map +1 -1
  35. package/dist/esm/wcs-accordion.entry.js +2 -1
  36. package/dist/esm/wcs-accordion.entry.js.map +1 -1
  37. package/dist/esm/wcs-checkbox.entry.js +3 -2
  38. package/dist/esm/wcs-checkbox.entry.js.map +1 -1
  39. package/dist/esm/wcs-chip.entry.js +98 -0
  40. package/dist/esm/wcs-chip.entry.js.map +1 -0
  41. package/dist/esm/wcs.js +1 -1
  42. package/dist/types/components/accordion-panel/accordion-panel.d.ts +5 -0
  43. package/dist/types/components/checkbox/checkbox.d.ts +4 -0
  44. package/dist/types/components/chip/chip-interface.d.ts +4 -0
  45. package/dist/types/components/chip/chip.d.ts +132 -0
  46. package/dist/types/components.d.ts +342 -0
  47. package/dist/types/utils/accessibility.d.ts +7 -0
  48. package/dist/wcs/p-828b45b4.entry.js +2 -0
  49. package/dist/wcs/p-828b45b4.entry.js.map +1 -0
  50. package/dist/wcs/p-990698a7.entry.js +2 -0
  51. package/dist/wcs/p-990698a7.entry.js.map +1 -0
  52. package/dist/wcs/p-ed3b0709.entry.js +2 -0
  53. package/dist/wcs/p-ed3b0709.entry.js.map +1 -0
  54. package/dist/wcs/{p-6c6079ee.entry.js → p-f2eeb249.entry.js} +2 -2
  55. package/dist/wcs/{p-6c6079ee.entry.js.map → p-f2eeb249.entry.js.map} +1 -1
  56. package/dist/wcs/p-fb2751c2.js.map +1 -1
  57. package/dist/wcs/wcs.esm.js +1 -1
  58. package/dist/wcs/wcs.esm.js.map +1 -1
  59. package/package.json +1 -1
  60. package/dist/wcs/p-02f31010.entry.js +0 -2
  61. package/dist/wcs/p-02f31010.entry.js.map +0 -1
  62. package/dist/wcs/p-4fb2d985.entry.js +0 -2
  63. package/dist/wcs/p-4fb2d985.entry.js.map +0 -1
@@ -0,0 +1,4 @@
1
+ import { WcsSize } from '../../shared-types';
2
+ export type WcsChipMode = 'selectable' | 'dismissible';
3
+ export type WcsChipSize = Extract<WcsSize, 's'>;
4
+ export type WcsChipVariant = 'primary' | 'secondary';
@@ -0,0 +1,132 @@
1
+ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ import { WcsChipMode, WcsChipVariant } from './chip-interface';
3
+ /**
4
+ * The chip component is a small, interactive element that can be used to represent an input, filter, or tag.
5
+ * It can be in one of two modes: 'selectable' or 'dismissible'.
6
+ * - In 'selectable' mode, the chip can be selected or deselected, and emits an event when clicked.
7
+ * - In 'dismissible' mode, the chip can be dismissed (removed) by clicking a dismiss icon, and emits an event when the dismiss icon is clicked.
8
+ *
9
+ * @cssprop --wcs-chip-height - Height of the chip
10
+ * @cssprop --wcs-chip-font-size - Font size of the chip text
11
+ * @cssprop --wcs-chip-font-weight - Font weight of the chip text
12
+ *
13
+ * @cssprop --wcs-chip-focus-outline-border-width - Border width of the chip focus outline
14
+ *
15
+ * @cssprop --wcs-chip-padding-vertical - Vertical padding (top - bottom) of the chip
16
+ * @cssprop --wcs-chip-padding-horizontal - Horizontal padding (left - right) of the chip
17
+ * @cssprop --wcs-chip-padding-horizontal-dismissible - Horizontal padding (left - right) of the chip with 'dismissible' mode
18
+ *
19
+ * @cssprop --wcs-chip-selectable-background-color - Background color of the chip with 'selectable' mode in default state
20
+ * @cssprop --wcs-chip-selectable-background-color-pressed - Background color of the chip with 'selectable' mode when pressed
21
+ * @cssprop --wcs-chip-selectable-background-color-hover - Background color of the chip with 'selectable' mode when hovered
22
+ * @cssprop --wcs-chip-selectable-background-color-selected - Background color of the chip with 'selectable' mode when selected
23
+ * @cssprop --wcs-chip-selectable-background-color-selected-hover - Background color of the chip with 'selectable' mode when selected and hovered
24
+ * @cssprop --wcs-chip-selectable-background-color-selected-pressed - Background color of the chip with 'selectable' mode when selected and pressed
25
+ * @cssprop --wcs-chip-selectable-background-color-selected-disabled - Background color of the chip with 'selectable' mode when selected and disabled
26
+ *
27
+ * @cssprop --wcs-chip-selectable-color - Text color of the chip with 'selectable' mode in default state
28
+ * @cssprop --wcs-chip-selectable-color-hover - Text color of the chip with 'selectable' mode when hovered
29
+ * @cssprop --wcs-chip-selectable-color-pressed - Text color of the chip with 'selectable' mode when pressed
30
+ * @cssprop --wcs-chip-selectable-color-disabled - Text color of the chip with 'selectable' mode when disabled
31
+ * @cssprop --wcs-chip-selectable-color-selected - Text color of the chip with 'selectable' mode when selected
32
+ * @cssprop --wcs-chip-selectable-color-selected-hover - Text color of the chip with 'selectable' mode when selected and hovered
33
+ * @cssprop --wcs-chip-selectable-color-selected-pressed - Text color of the chip with 'selectable' mode when selected and pressed
34
+ *
35
+ * @cssprop --wcs-chip-border-radius - Border radius of the chip
36
+ * @cssprop --wcs-chip-border-line-width - Border line width of the chip
37
+ * @cssprop --wcs-chip-selectable-border-color - Border color of the chip with 'selectable' mode in default state
38
+ * @cssprop --wcs-chip-selectable-border-color-hover - Border color of the chip with 'selectable' mode when hovered
39
+ * @cssprop --wcs-chip-selectable-border-color-pressed - Border color of the chip with 'selectable' mode when pressed
40
+ * @cssprop --wcs-chip-selectable-border-color-disabled - Border color of the chip with 'selectable' mode when disabled
41
+ *
42
+ * @cssprop --wcs-chip-selectable-content-gap - Gap between content elements in chip with 'selectable' mode
43
+ * @cssprop --wcs-chip-selectable-focus-outline-color - Focus outline color of the chip with 'selectable' mode
44
+ *
45
+ * @cssprop --wcs-chip-dismissible-content-gap - Gap between content elements in chip with 'dismissible' mode
46
+ * @cssprop --wcs-chip-dismissible-padding-right - Right padding of the chip with 'dismissible' mode
47
+ * @cssprop --wcs-chip-dismissible-button-outline-radius - Outline radius of the button for the chip with 'dismissible' mode
48
+ *
49
+ * @cssprop --wcs-chip-dismissible-primary-focus-outline-color - Focus outline color of the chip with 'dismissible' mode and 'primary' variant
50
+ * @cssprop --wcs-chip-dismissible-primary-border-color - Border color of the chip with 'dismissible' mode and 'primary' variant
51
+ * @cssprop --wcs-chip-dismissible-primary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'primary' variant when disabled
52
+ * @cssprop --wcs-chip-dismissible-primary-color - Text color of the chip with 'dismissible' mode and 'primary' variant
53
+ * @cssprop --wcs-chip-dismissible-primary-color-hover - Text color of the chip with 'dismissible' mode and 'primary' variant when hovered
54
+ * @cssprop --wcs-chip-dismissible-primary-color-pressed - Text color of the chip with 'dismissible' mode and 'primary' variant when pressed
55
+ * @cssprop --wcs-chip-dismissible-primary-color-disabled - Text color of the chip with 'dismissible' mode and 'primary' variant when disabled
56
+ * @cssprop --wcs-chip-dismissible-primary-background-color - Background color of the chip with 'dismissible' mode and 'primary' variant
57
+ * @cssprop --wcs-chip-dismissible-primary-background-color-hover - Background color of the chip with 'dismissible' mode and 'primary' variant when hovered
58
+ * @cssprop --wcs-chip-dismissible-primary-background-color-pressed - Background color of the chip with 'dismissible' mode and 'primary' variant when pressed
59
+ * @cssprop --wcs-chip-dismissible-primary-background-color-disabled - Background color of the chip with 'dismissible' mode and 'primary' variant when disabled
60
+ *
61
+ * @cssprop --wcs-chip-dismissible-secondary-button-focus-outline-color - Button focus outline color of the chip with 'dismissible' mode and 'secondary' variant
62
+ * @cssprop --wcs-chip-dismissible-secondary-border-color - Border color of the chip with 'dismissible' mode and 'secondary' variant
63
+ * @cssprop --wcs-chip-dismissible-secondary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'secondary' variant when disabled
64
+ * @cssprop --wcs-chip-dismissible-secondary-color - Text color of the chip with 'dismissible' mode and 'secondary' variant
65
+ * @cssprop --wcs-chip-dismissible-secondary-color-disabled - Text color of the chip with 'dismissible' mode and 'secondary' variant when disabled
66
+ * @cssprop --wcs-chip-dismissible-secondary-background-color - Background color of the chip with 'dismissible' mode and 'secondary' variant
67
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color - Button background color of the chip with 'dismissible' mode and 'secondary' variant
68
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-hover - Button background color of the chip with 'dismissible' mode and 'secondary' variant when hovered
69
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-pressed - Button background color of the chip with 'dismissible' mode and 'secondary' variant when pressed
70
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-disabled - Button background color of the chip with 'dismissible' mode and 'secondary' variant when disabled
71
+ */
72
+ export declare class Chip implements ComponentInterface {
73
+ el: HTMLWcsChipElement;
74
+ /**
75
+ * Unique value representing the chip identifier in events.
76
+ */
77
+ value: string;
78
+ /**
79
+ * Text label displayed on the chip.
80
+ */
81
+ label: string;
82
+ /**
83
+ * If `true`, the chip is selected.
84
+ * This property is only used in 'selectable' mode.
85
+ */
86
+ selected: boolean;
87
+ /**
88
+ * If `true`, the chip is open.
89
+ * This property is used to control the visibility of the chip in the dismissible mode.
90
+ * When the user clicks the dismiss icon, this property automatically becomes `false`, hiding the chip.
91
+ */
92
+ open: boolean;
93
+ /**
94
+ * If `true`, the chip is disabled.
95
+ * The chip will not respond to click events and will not emit any events.
96
+ * This property is used in both 'selectable' and 'dismissible' modes.
97
+ */
98
+ disabled: boolean;
99
+ /**
100
+ * Defines the visual style of the chip for the dismissible mode.
101
+ */
102
+ variant: WcsChipVariant;
103
+ /**
104
+ * Defines the mode of the chip.
105
+ * Can be 'selectable' or 'dismissible'.
106
+ * - 'selectable': The chip can be selected and emits an event when clicked.
107
+ * - 'dismissible': The chip can be dismissed (removed) and emits an event when the dismiss icon is clicked.
108
+ */
109
+ mode: WcsChipMode;
110
+ /**
111
+ * Emitted when the chip is clicked in 'selectable' mode.
112
+ */
113
+ wcsChipSelectChange: EventEmitter<{
114
+ value: string;
115
+ selected: boolean;
116
+ }>;
117
+ /**
118
+ * Emitted when the dismiss icon is clicked in 'dismissible' mode.
119
+ */
120
+ wcsChipDismiss: EventEmitter<{
121
+ value: string;
122
+ }>;
123
+ private select;
124
+ private dismiss;
125
+ private focusNextChip;
126
+ private isActionableChip;
127
+ private focusChip;
128
+ private handleClick;
129
+ private handleDismiss;
130
+ private handleKeydown;
131
+ render(): any;
132
+ }
@@ -12,6 +12,7 @@ import { BadgeColor, BadgeShape, BadgeSize } from "./components/badge/badge-inte
12
12
  import { WcsButtonMode, WcsButtonShape, WcsButtonSize, WcsButtonType } from "./components/button/button-interface";
13
13
  import { CardMode, CardOrientation } from "./components/card/card-interface";
14
14
  import { CheckboxChangeEventDetail, CheckboxLabelAlignment } from "./components/checkbox/checkbox-interface";
15
+ import { WcsChipMode, WcsChipVariant } from "./components/chip/chip-interface";
15
16
  import { CategoryOpenedEventDetail, MenuOpenedEventDetail } from "./components/com-nav/com-nav-interface";
16
17
  import { CounterChangeEventDetail, WcsCounterSize } from "./components/counter/counter-interface";
17
18
  import { WcsDropdownPlacement } from "./components/dropdown/dropdown-interface";
@@ -40,6 +41,7 @@ export { BadgeColor, BadgeShape, BadgeSize } from "./components/badge/badge-inte
40
41
  export { WcsButtonMode, WcsButtonShape, WcsButtonSize, WcsButtonType } from "./components/button/button-interface";
41
42
  export { CardMode, CardOrientation } from "./components/card/card-interface";
42
43
  export { CheckboxChangeEventDetail, CheckboxLabelAlignment } from "./components/checkbox/checkbox-interface";
44
+ export { WcsChipMode, WcsChipVariant } from "./components/chip/chip-interface";
43
45
  export { CategoryOpenedEventDetail, MenuOpenedEventDetail } from "./components/com-nav/com-nav-interface";
44
46
  export { CounterChangeEventDetail, WcsCounterSize } from "./components/counter/counter-interface";
45
47
  export { WcsDropdownPlacement } from "./components/dropdown/dropdown-interface";
@@ -534,8 +536,101 @@ export namespace Components {
534
536
  */
535
537
  "labelAlignment": CheckboxLabelAlignment;
536
538
  "name": string;
539
+ /**
540
+ * If `true`, the user must fill in a value before submitting a form.
541
+ */
542
+ "required": boolean;
537
543
  "setAriaAttribute": (attr: AriaAttributeName, value: string | null | undefined) => Promise<void>;
538
544
  }
545
+ /**
546
+ * The chip component is a small, interactive element that can be used to represent an input, filter, or tag.
547
+ * It can be in one of two modes: 'selectable' or 'dismissible'.
548
+ * - In 'selectable' mode, the chip can be selected or deselected, and emits an event when clicked.
549
+ * - In 'dismissible' mode, the chip can be dismissed (removed) by clicking a dismiss icon, and emits an event when the dismiss icon is clicked.
550
+ * @cssprop --wcs-chip-height - Height of the chip
551
+ * @cssprop --wcs-chip-font-size - Font size of the chip text
552
+ * @cssprop --wcs-chip-font-weight - Font weight of the chip text
553
+ * @cssprop --wcs-chip-focus-outline-border-width - Border width of the chip focus outline
554
+ * @cssprop --wcs-chip-padding-vertical - Vertical padding (top - bottom) of the chip
555
+ * @cssprop --wcs-chip-padding-horizontal - Horizontal padding (left - right) of the chip
556
+ * @cssprop --wcs-chip-padding-horizontal-dismissible - Horizontal padding (left - right) of the chip with 'dismissible' mode
557
+ * @cssprop --wcs-chip-selectable-background-color - Background color of the chip with 'selectable' mode in default state
558
+ * @cssprop --wcs-chip-selectable-background-color-pressed - Background color of the chip with 'selectable' mode when pressed
559
+ * @cssprop --wcs-chip-selectable-background-color-hover - Background color of the chip with 'selectable' mode when hovered
560
+ * @cssprop --wcs-chip-selectable-background-color-selected - Background color of the chip with 'selectable' mode when selected
561
+ * @cssprop --wcs-chip-selectable-background-color-selected-hover - Background color of the chip with 'selectable' mode when selected and hovered
562
+ * @cssprop --wcs-chip-selectable-background-color-selected-pressed - Background color of the chip with 'selectable' mode when selected and pressed
563
+ * @cssprop --wcs-chip-selectable-background-color-selected-disabled - Background color of the chip with 'selectable' mode when selected and disabled
564
+ * @cssprop --wcs-chip-selectable-color - Text color of the chip with 'selectable' mode in default state
565
+ * @cssprop --wcs-chip-selectable-color-hover - Text color of the chip with 'selectable' mode when hovered
566
+ * @cssprop --wcs-chip-selectable-color-pressed - Text color of the chip with 'selectable' mode when pressed
567
+ * @cssprop --wcs-chip-selectable-color-disabled - Text color of the chip with 'selectable' mode when disabled
568
+ * @cssprop --wcs-chip-selectable-color-selected - Text color of the chip with 'selectable' mode when selected
569
+ * @cssprop --wcs-chip-selectable-color-selected-hover - Text color of the chip with 'selectable' mode when selected and hovered
570
+ * @cssprop --wcs-chip-selectable-color-selected-pressed - Text color of the chip with 'selectable' mode when selected and pressed
571
+ * @cssprop --wcs-chip-border-radius - Border radius of the chip
572
+ * @cssprop --wcs-chip-border-line-width - Border line width of the chip
573
+ * @cssprop --wcs-chip-selectable-border-color - Border color of the chip with 'selectable' mode in default state
574
+ * @cssprop --wcs-chip-selectable-border-color-hover - Border color of the chip with 'selectable' mode when hovered
575
+ * @cssprop --wcs-chip-selectable-border-color-pressed - Border color of the chip with 'selectable' mode when pressed
576
+ * @cssprop --wcs-chip-selectable-border-color-disabled - Border color of the chip with 'selectable' mode when disabled
577
+ * @cssprop --wcs-chip-selectable-content-gap - Gap between content elements in chip with 'selectable' mode
578
+ * @cssprop --wcs-chip-selectable-focus-outline-color - Focus outline color of the chip with 'selectable' mode
579
+ * @cssprop --wcs-chip-dismissible-content-gap - Gap between content elements in chip with 'dismissible' mode
580
+ * @cssprop --wcs-chip-dismissible-padding-right - Right padding of the chip with 'dismissible' mode
581
+ * @cssprop --wcs-chip-dismissible-button-outline-radius - Outline radius of the button for the chip with 'dismissible' mode
582
+ * @cssprop --wcs-chip-dismissible-primary-focus-outline-color - Focus outline color of the chip with 'dismissible' mode and 'primary' variant
583
+ * @cssprop --wcs-chip-dismissible-primary-border-color - Border color of the chip with 'dismissible' mode and 'primary' variant
584
+ * @cssprop --wcs-chip-dismissible-primary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'primary' variant when disabled
585
+ * @cssprop --wcs-chip-dismissible-primary-color - Text color of the chip with 'dismissible' mode and 'primary' variant
586
+ * @cssprop --wcs-chip-dismissible-primary-color-hover - Text color of the chip with 'dismissible' mode and 'primary' variant when hovered
587
+ * @cssprop --wcs-chip-dismissible-primary-color-pressed - Text color of the chip with 'dismissible' mode and 'primary' variant when pressed
588
+ * @cssprop --wcs-chip-dismissible-primary-color-disabled - Text color of the chip with 'dismissible' mode and 'primary' variant when disabled
589
+ * @cssprop --wcs-chip-dismissible-primary-background-color - Background color of the chip with 'dismissible' mode and 'primary' variant
590
+ * @cssprop --wcs-chip-dismissible-primary-background-color-hover - Background color of the chip with 'dismissible' mode and 'primary' variant when hovered
591
+ * @cssprop --wcs-chip-dismissible-primary-background-color-pressed - Background color of the chip with 'dismissible' mode and 'primary' variant when pressed
592
+ * @cssprop --wcs-chip-dismissible-primary-background-color-disabled - Background color of the chip with 'dismissible' mode and 'primary' variant when disabled
593
+ * @cssprop --wcs-chip-dismissible-secondary-button-focus-outline-color - Button focus outline color of the chip with 'dismissible' mode and 'secondary' variant
594
+ * @cssprop --wcs-chip-dismissible-secondary-border-color - Border color of the chip with 'dismissible' mode and 'secondary' variant
595
+ * @cssprop --wcs-chip-dismissible-secondary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'secondary' variant when disabled
596
+ * @cssprop --wcs-chip-dismissible-secondary-color - Text color of the chip with 'dismissible' mode and 'secondary' variant
597
+ * @cssprop --wcs-chip-dismissible-secondary-color-disabled - Text color of the chip with 'dismissible' mode and 'secondary' variant when disabled
598
+ * @cssprop --wcs-chip-dismissible-secondary-background-color - Background color of the chip with 'dismissible' mode and 'secondary' variant
599
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color - Button background color of the chip with 'dismissible' mode and 'secondary' variant
600
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-hover - Button background color of the chip with 'dismissible' mode and 'secondary' variant when hovered
601
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-pressed - Button background color of the chip with 'dismissible' mode and 'secondary' variant when pressed
602
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-disabled - Button background color of the chip with 'dismissible' mode and 'secondary' variant when disabled
603
+ */
604
+ interface WcsChip {
605
+ /**
606
+ * If `true`, the chip is disabled. The chip will not respond to click events and will not emit any events. This property is used in both 'selectable' and 'dismissible' modes.
607
+ */
608
+ "disabled": boolean;
609
+ /**
610
+ * Text label displayed on the chip.
611
+ */
612
+ "label": string;
613
+ /**
614
+ * Defines the mode of the chip. Can be 'selectable' or 'dismissible'. - 'selectable': The chip can be selected and emits an event when clicked. - 'dismissible': The chip can be dismissed (removed) and emits an event when the dismiss icon is clicked.
615
+ */
616
+ "mode": WcsChipMode;
617
+ /**
618
+ * If `true`, the chip is open. This property is used to control the visibility of the chip in the dismissible mode. When the user clicks the dismiss icon, this property automatically becomes `false`, hiding the chip.
619
+ */
620
+ "open": boolean;
621
+ /**
622
+ * If `true`, the chip is selected. This property is only used in 'selectable' mode.
623
+ */
624
+ "selected": boolean;
625
+ /**
626
+ * Unique value representing the chip identifier in events.
627
+ */
628
+ "value": string;
629
+ /**
630
+ * Defines the visual style of the chip for the dismissible mode.
631
+ */
632
+ "variant": WcsChipVariant;
633
+ }
539
634
  /**
540
635
  * *Part of communication design system*
541
636
  * The com-nav component is a container for navigation links to external or internal pages of the website.
@@ -2484,6 +2579,10 @@ export interface WcsCheckboxCustomEvent<T> extends CustomEvent<T> {
2484
2579
  detail: T;
2485
2580
  target: HTMLWcsCheckboxElement;
2486
2581
  }
2582
+ export interface WcsChipCustomEvent<T> extends CustomEvent<T> {
2583
+ detail: T;
2584
+ target: HTMLWcsChipElement;
2585
+ }
2487
2586
  export interface WcsComNavCategoryCustomEvent<T> extends CustomEvent<T> {
2488
2587
  detail: T;
2489
2588
  target: HTMLWcsComNavCategoryElement;
@@ -2991,6 +3090,83 @@ declare global {
2991
3090
  prototype: HTMLWcsCheckboxElement;
2992
3091
  new (): HTMLWcsCheckboxElement;
2993
3092
  };
3093
+ interface HTMLWcsChipElementEventMap {
3094
+ "wcsChipSelectChange": { value: string; selected: boolean };
3095
+ "wcsChipDismiss": { value: string };
3096
+ }
3097
+ /**
3098
+ * The chip component is a small, interactive element that can be used to represent an input, filter, or tag.
3099
+ * It can be in one of two modes: 'selectable' or 'dismissible'.
3100
+ * - In 'selectable' mode, the chip can be selected or deselected, and emits an event when clicked.
3101
+ * - In 'dismissible' mode, the chip can be dismissed (removed) by clicking a dismiss icon, and emits an event when the dismiss icon is clicked.
3102
+ * @cssprop --wcs-chip-height - Height of the chip
3103
+ * @cssprop --wcs-chip-font-size - Font size of the chip text
3104
+ * @cssprop --wcs-chip-font-weight - Font weight of the chip text
3105
+ * @cssprop --wcs-chip-focus-outline-border-width - Border width of the chip focus outline
3106
+ * @cssprop --wcs-chip-padding-vertical - Vertical padding (top - bottom) of the chip
3107
+ * @cssprop --wcs-chip-padding-horizontal - Horizontal padding (left - right) of the chip
3108
+ * @cssprop --wcs-chip-padding-horizontal-dismissible - Horizontal padding (left - right) of the chip with 'dismissible' mode
3109
+ * @cssprop --wcs-chip-selectable-background-color - Background color of the chip with 'selectable' mode in default state
3110
+ * @cssprop --wcs-chip-selectable-background-color-pressed - Background color of the chip with 'selectable' mode when pressed
3111
+ * @cssprop --wcs-chip-selectable-background-color-hover - Background color of the chip with 'selectable' mode when hovered
3112
+ * @cssprop --wcs-chip-selectable-background-color-selected - Background color of the chip with 'selectable' mode when selected
3113
+ * @cssprop --wcs-chip-selectable-background-color-selected-hover - Background color of the chip with 'selectable' mode when selected and hovered
3114
+ * @cssprop --wcs-chip-selectable-background-color-selected-pressed - Background color of the chip with 'selectable' mode when selected and pressed
3115
+ * @cssprop --wcs-chip-selectable-background-color-selected-disabled - Background color of the chip with 'selectable' mode when selected and disabled
3116
+ * @cssprop --wcs-chip-selectable-color - Text color of the chip with 'selectable' mode in default state
3117
+ * @cssprop --wcs-chip-selectable-color-hover - Text color of the chip with 'selectable' mode when hovered
3118
+ * @cssprop --wcs-chip-selectable-color-pressed - Text color of the chip with 'selectable' mode when pressed
3119
+ * @cssprop --wcs-chip-selectable-color-disabled - Text color of the chip with 'selectable' mode when disabled
3120
+ * @cssprop --wcs-chip-selectable-color-selected - Text color of the chip with 'selectable' mode when selected
3121
+ * @cssprop --wcs-chip-selectable-color-selected-hover - Text color of the chip with 'selectable' mode when selected and hovered
3122
+ * @cssprop --wcs-chip-selectable-color-selected-pressed - Text color of the chip with 'selectable' mode when selected and pressed
3123
+ * @cssprop --wcs-chip-border-radius - Border radius of the chip
3124
+ * @cssprop --wcs-chip-border-line-width - Border line width of the chip
3125
+ * @cssprop --wcs-chip-selectable-border-color - Border color of the chip with 'selectable' mode in default state
3126
+ * @cssprop --wcs-chip-selectable-border-color-hover - Border color of the chip with 'selectable' mode when hovered
3127
+ * @cssprop --wcs-chip-selectable-border-color-pressed - Border color of the chip with 'selectable' mode when pressed
3128
+ * @cssprop --wcs-chip-selectable-border-color-disabled - Border color of the chip with 'selectable' mode when disabled
3129
+ * @cssprop --wcs-chip-selectable-content-gap - Gap between content elements in chip with 'selectable' mode
3130
+ * @cssprop --wcs-chip-selectable-focus-outline-color - Focus outline color of the chip with 'selectable' mode
3131
+ * @cssprop --wcs-chip-dismissible-content-gap - Gap between content elements in chip with 'dismissible' mode
3132
+ * @cssprop --wcs-chip-dismissible-padding-right - Right padding of the chip with 'dismissible' mode
3133
+ * @cssprop --wcs-chip-dismissible-button-outline-radius - Outline radius of the button for the chip with 'dismissible' mode
3134
+ * @cssprop --wcs-chip-dismissible-primary-focus-outline-color - Focus outline color of the chip with 'dismissible' mode and 'primary' variant
3135
+ * @cssprop --wcs-chip-dismissible-primary-border-color - Border color of the chip with 'dismissible' mode and 'primary' variant
3136
+ * @cssprop --wcs-chip-dismissible-primary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'primary' variant when disabled
3137
+ * @cssprop --wcs-chip-dismissible-primary-color - Text color of the chip with 'dismissible' mode and 'primary' variant
3138
+ * @cssprop --wcs-chip-dismissible-primary-color-hover - Text color of the chip with 'dismissible' mode and 'primary' variant when hovered
3139
+ * @cssprop --wcs-chip-dismissible-primary-color-pressed - Text color of the chip with 'dismissible' mode and 'primary' variant when pressed
3140
+ * @cssprop --wcs-chip-dismissible-primary-color-disabled - Text color of the chip with 'dismissible' mode and 'primary' variant when disabled
3141
+ * @cssprop --wcs-chip-dismissible-primary-background-color - Background color of the chip with 'dismissible' mode and 'primary' variant
3142
+ * @cssprop --wcs-chip-dismissible-primary-background-color-hover - Background color of the chip with 'dismissible' mode and 'primary' variant when hovered
3143
+ * @cssprop --wcs-chip-dismissible-primary-background-color-pressed - Background color of the chip with 'dismissible' mode and 'primary' variant when pressed
3144
+ * @cssprop --wcs-chip-dismissible-primary-background-color-disabled - Background color of the chip with 'dismissible' mode and 'primary' variant when disabled
3145
+ * @cssprop --wcs-chip-dismissible-secondary-button-focus-outline-color - Button focus outline color of the chip with 'dismissible' mode and 'secondary' variant
3146
+ * @cssprop --wcs-chip-dismissible-secondary-border-color - Border color of the chip with 'dismissible' mode and 'secondary' variant
3147
+ * @cssprop --wcs-chip-dismissible-secondary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'secondary' variant when disabled
3148
+ * @cssprop --wcs-chip-dismissible-secondary-color - Text color of the chip with 'dismissible' mode and 'secondary' variant
3149
+ * @cssprop --wcs-chip-dismissible-secondary-color-disabled - Text color of the chip with 'dismissible' mode and 'secondary' variant when disabled
3150
+ * @cssprop --wcs-chip-dismissible-secondary-background-color - Background color of the chip with 'dismissible' mode and 'secondary' variant
3151
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color - Button background color of the chip with 'dismissible' mode and 'secondary' variant
3152
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-hover - Button background color of the chip with 'dismissible' mode and 'secondary' variant when hovered
3153
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-pressed - Button background color of the chip with 'dismissible' mode and 'secondary' variant when pressed
3154
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-disabled - Button background color of the chip with 'dismissible' mode and 'secondary' variant when disabled
3155
+ */
3156
+ interface HTMLWcsChipElement extends Components.WcsChip, HTMLStencilElement {
3157
+ addEventListener<K extends keyof HTMLWcsChipElementEventMap>(type: K, listener: (this: HTMLWcsChipElement, ev: WcsChipCustomEvent<HTMLWcsChipElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
3158
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3159
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3160
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3161
+ removeEventListener<K extends keyof HTMLWcsChipElementEventMap>(type: K, listener: (this: HTMLWcsChipElement, ev: WcsChipCustomEvent<HTMLWcsChipElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
3162
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3163
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3164
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3165
+ }
3166
+ var HTMLWcsChipElement: {
3167
+ prototype: HTMLWcsChipElement;
3168
+ new (): HTMLWcsChipElement;
3169
+ };
2994
3170
  /**
2995
3171
  * *Part of communication design system*
2996
3172
  * The com-nav component is a container for navigation links to external or internal pages of the website.
@@ -4536,6 +4712,7 @@ declare global {
4536
4712
  "wcs-card-header": HTMLWcsCardHeaderElement;
4537
4713
  "wcs-card-media": HTMLWcsCardMediaElement;
4538
4714
  "wcs-checkbox": HTMLWcsCheckboxElement;
4715
+ "wcs-chip": HTMLWcsChipElement;
4539
4716
  "wcs-com-nav": HTMLWcsComNavElement;
4540
4717
  "wcs-com-nav-category": HTMLWcsComNavCategoryElement;
4541
4718
  "wcs-com-nav-item": HTMLWcsComNavItemElement;
@@ -4662,6 +4839,9 @@ declare namespace LocalJSX {
4662
4839
  * Specifies whether the component should highlight when open with primary color. if true, the background color will be the primary color. if false, the background color will be wcs-light.
4663
4840
  */
4664
4841
  "highlight"?: boolean;
4842
+ /**
4843
+ * Emitted when the open property changes. Note that this event is stopped from propagating when using the component inside a wcs-accordion as the accordion handles the open state of its accordion-panel children.
4844
+ */
4665
4845
  "onWcsOpenChange"?: (event: WcsAccordionPanelCustomEvent<boolean>) => void;
4666
4846
  "open"?: boolean;
4667
4847
  }
@@ -5059,6 +5239,107 @@ declare namespace LocalJSX {
5059
5239
  * Emitted when the checkbox has focus.
5060
5240
  */
5061
5241
  "onWcsFocus"?: (event: WcsCheckboxCustomEvent<FocusEvent>) => void;
5242
+ /**
5243
+ * If `true`, the user must fill in a value before submitting a form.
5244
+ */
5245
+ "required"?: boolean;
5246
+ }
5247
+ /**
5248
+ * The chip component is a small, interactive element that can be used to represent an input, filter, or tag.
5249
+ * It can be in one of two modes: 'selectable' or 'dismissible'.
5250
+ * - In 'selectable' mode, the chip can be selected or deselected, and emits an event when clicked.
5251
+ * - In 'dismissible' mode, the chip can be dismissed (removed) by clicking a dismiss icon, and emits an event when the dismiss icon is clicked.
5252
+ * @cssprop --wcs-chip-height - Height of the chip
5253
+ * @cssprop --wcs-chip-font-size - Font size of the chip text
5254
+ * @cssprop --wcs-chip-font-weight - Font weight of the chip text
5255
+ * @cssprop --wcs-chip-focus-outline-border-width - Border width of the chip focus outline
5256
+ * @cssprop --wcs-chip-padding-vertical - Vertical padding (top - bottom) of the chip
5257
+ * @cssprop --wcs-chip-padding-horizontal - Horizontal padding (left - right) of the chip
5258
+ * @cssprop --wcs-chip-padding-horizontal-dismissible - Horizontal padding (left - right) of the chip with 'dismissible' mode
5259
+ * @cssprop --wcs-chip-selectable-background-color - Background color of the chip with 'selectable' mode in default state
5260
+ * @cssprop --wcs-chip-selectable-background-color-pressed - Background color of the chip with 'selectable' mode when pressed
5261
+ * @cssprop --wcs-chip-selectable-background-color-hover - Background color of the chip with 'selectable' mode when hovered
5262
+ * @cssprop --wcs-chip-selectable-background-color-selected - Background color of the chip with 'selectable' mode when selected
5263
+ * @cssprop --wcs-chip-selectable-background-color-selected-hover - Background color of the chip with 'selectable' mode when selected and hovered
5264
+ * @cssprop --wcs-chip-selectable-background-color-selected-pressed - Background color of the chip with 'selectable' mode when selected and pressed
5265
+ * @cssprop --wcs-chip-selectable-background-color-selected-disabled - Background color of the chip with 'selectable' mode when selected and disabled
5266
+ * @cssprop --wcs-chip-selectable-color - Text color of the chip with 'selectable' mode in default state
5267
+ * @cssprop --wcs-chip-selectable-color-hover - Text color of the chip with 'selectable' mode when hovered
5268
+ * @cssprop --wcs-chip-selectable-color-pressed - Text color of the chip with 'selectable' mode when pressed
5269
+ * @cssprop --wcs-chip-selectable-color-disabled - Text color of the chip with 'selectable' mode when disabled
5270
+ * @cssprop --wcs-chip-selectable-color-selected - Text color of the chip with 'selectable' mode when selected
5271
+ * @cssprop --wcs-chip-selectable-color-selected-hover - Text color of the chip with 'selectable' mode when selected and hovered
5272
+ * @cssprop --wcs-chip-selectable-color-selected-pressed - Text color of the chip with 'selectable' mode when selected and pressed
5273
+ * @cssprop --wcs-chip-border-radius - Border radius of the chip
5274
+ * @cssprop --wcs-chip-border-line-width - Border line width of the chip
5275
+ * @cssprop --wcs-chip-selectable-border-color - Border color of the chip with 'selectable' mode in default state
5276
+ * @cssprop --wcs-chip-selectable-border-color-hover - Border color of the chip with 'selectable' mode when hovered
5277
+ * @cssprop --wcs-chip-selectable-border-color-pressed - Border color of the chip with 'selectable' mode when pressed
5278
+ * @cssprop --wcs-chip-selectable-border-color-disabled - Border color of the chip with 'selectable' mode when disabled
5279
+ * @cssprop --wcs-chip-selectable-content-gap - Gap between content elements in chip with 'selectable' mode
5280
+ * @cssprop --wcs-chip-selectable-focus-outline-color - Focus outline color of the chip with 'selectable' mode
5281
+ * @cssprop --wcs-chip-dismissible-content-gap - Gap between content elements in chip with 'dismissible' mode
5282
+ * @cssprop --wcs-chip-dismissible-padding-right - Right padding of the chip with 'dismissible' mode
5283
+ * @cssprop --wcs-chip-dismissible-button-outline-radius - Outline radius of the button for the chip with 'dismissible' mode
5284
+ * @cssprop --wcs-chip-dismissible-primary-focus-outline-color - Focus outline color of the chip with 'dismissible' mode and 'primary' variant
5285
+ * @cssprop --wcs-chip-dismissible-primary-border-color - Border color of the chip with 'dismissible' mode and 'primary' variant
5286
+ * @cssprop --wcs-chip-dismissible-primary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'primary' variant when disabled
5287
+ * @cssprop --wcs-chip-dismissible-primary-color - Text color of the chip with 'dismissible' mode and 'primary' variant
5288
+ * @cssprop --wcs-chip-dismissible-primary-color-hover - Text color of the chip with 'dismissible' mode and 'primary' variant when hovered
5289
+ * @cssprop --wcs-chip-dismissible-primary-color-pressed - Text color of the chip with 'dismissible' mode and 'primary' variant when pressed
5290
+ * @cssprop --wcs-chip-dismissible-primary-color-disabled - Text color of the chip with 'dismissible' mode and 'primary' variant when disabled
5291
+ * @cssprop --wcs-chip-dismissible-primary-background-color - Background color of the chip with 'dismissible' mode and 'primary' variant
5292
+ * @cssprop --wcs-chip-dismissible-primary-background-color-hover - Background color of the chip with 'dismissible' mode and 'primary' variant when hovered
5293
+ * @cssprop --wcs-chip-dismissible-primary-background-color-pressed - Background color of the chip with 'dismissible' mode and 'primary' variant when pressed
5294
+ * @cssprop --wcs-chip-dismissible-primary-background-color-disabled - Background color of the chip with 'dismissible' mode and 'primary' variant when disabled
5295
+ * @cssprop --wcs-chip-dismissible-secondary-button-focus-outline-color - Button focus outline color of the chip with 'dismissible' mode and 'secondary' variant
5296
+ * @cssprop --wcs-chip-dismissible-secondary-border-color - Border color of the chip with 'dismissible' mode and 'secondary' variant
5297
+ * @cssprop --wcs-chip-dismissible-secondary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'secondary' variant when disabled
5298
+ * @cssprop --wcs-chip-dismissible-secondary-color - Text color of the chip with 'dismissible' mode and 'secondary' variant
5299
+ * @cssprop --wcs-chip-dismissible-secondary-color-disabled - Text color of the chip with 'dismissible' mode and 'secondary' variant when disabled
5300
+ * @cssprop --wcs-chip-dismissible-secondary-background-color - Background color of the chip with 'dismissible' mode and 'secondary' variant
5301
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color - Button background color of the chip with 'dismissible' mode and 'secondary' variant
5302
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-hover - Button background color of the chip with 'dismissible' mode and 'secondary' variant when hovered
5303
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-pressed - Button background color of the chip with 'dismissible' mode and 'secondary' variant when pressed
5304
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-disabled - Button background color of the chip with 'dismissible' mode and 'secondary' variant when disabled
5305
+ */
5306
+ interface WcsChip {
5307
+ /**
5308
+ * If `true`, the chip is disabled. The chip will not respond to click events and will not emit any events. This property is used in both 'selectable' and 'dismissible' modes.
5309
+ */
5310
+ "disabled"?: boolean;
5311
+ /**
5312
+ * Text label displayed on the chip.
5313
+ */
5314
+ "label"?: string;
5315
+ /**
5316
+ * Defines the mode of the chip. Can be 'selectable' or 'dismissible'. - 'selectable': The chip can be selected and emits an event when clicked. - 'dismissible': The chip can be dismissed (removed) and emits an event when the dismiss icon is clicked.
5317
+ */
5318
+ "mode"?: WcsChipMode;
5319
+ /**
5320
+ * Emitted when the dismiss icon is clicked in 'dismissible' mode.
5321
+ */
5322
+ "onWcsChipDismiss"?: (event: WcsChipCustomEvent<{ value: string }>) => void;
5323
+ /**
5324
+ * Emitted when the chip is clicked in 'selectable' mode.
5325
+ */
5326
+ "onWcsChipSelectChange"?: (event: WcsChipCustomEvent<{ value: string; selected: boolean }>) => void;
5327
+ /**
5328
+ * If `true`, the chip is open. This property is used to control the visibility of the chip in the dismissible mode. When the user clicks the dismiss icon, this property automatically becomes `false`, hiding the chip.
5329
+ */
5330
+ "open"?: boolean;
5331
+ /**
5332
+ * If `true`, the chip is selected. This property is only used in 'selectable' mode.
5333
+ */
5334
+ "selected"?: boolean;
5335
+ /**
5336
+ * Unique value representing the chip identifier in events.
5337
+ */
5338
+ "value"?: string;
5339
+ /**
5340
+ * Defines the visual style of the chip for the dismissible mode.
5341
+ */
5342
+ "variant"?: WcsChipVariant;
5062
5343
  }
5063
5344
  /**
5064
5345
  * *Part of communication design system*
@@ -7025,6 +7306,7 @@ declare namespace LocalJSX {
7025
7306
  "wcs-card-header": WcsCardHeader;
7026
7307
  "wcs-card-media": WcsCardMedia;
7027
7308
  "wcs-checkbox": WcsCheckbox;
7309
+ "wcs-chip": WcsChip;
7028
7310
  "wcs-com-nav": WcsComNav;
7029
7311
  "wcs-com-nav-category": WcsComNavCategory;
7030
7312
  "wcs-com-nav-item": WcsComNavItem;
@@ -7379,6 +7661,66 @@ declare module "@stencil/core" {
7379
7661
  * @cssprop --wcs-checkbox-transition-duration - Duration of the transition
7380
7662
  */
7381
7663
  "wcs-checkbox": LocalJSX.WcsCheckbox & JSXBase.HTMLAttributes<HTMLWcsCheckboxElement>;
7664
+ /**
7665
+ * The chip component is a small, interactive element that can be used to represent an input, filter, or tag.
7666
+ * It can be in one of two modes: 'selectable' or 'dismissible'.
7667
+ * - In 'selectable' mode, the chip can be selected or deselected, and emits an event when clicked.
7668
+ * - In 'dismissible' mode, the chip can be dismissed (removed) by clicking a dismiss icon, and emits an event when the dismiss icon is clicked.
7669
+ * @cssprop --wcs-chip-height - Height of the chip
7670
+ * @cssprop --wcs-chip-font-size - Font size of the chip text
7671
+ * @cssprop --wcs-chip-font-weight - Font weight of the chip text
7672
+ * @cssprop --wcs-chip-focus-outline-border-width - Border width of the chip focus outline
7673
+ * @cssprop --wcs-chip-padding-vertical - Vertical padding (top - bottom) of the chip
7674
+ * @cssprop --wcs-chip-padding-horizontal - Horizontal padding (left - right) of the chip
7675
+ * @cssprop --wcs-chip-padding-horizontal-dismissible - Horizontal padding (left - right) of the chip with 'dismissible' mode
7676
+ * @cssprop --wcs-chip-selectable-background-color - Background color of the chip with 'selectable' mode in default state
7677
+ * @cssprop --wcs-chip-selectable-background-color-pressed - Background color of the chip with 'selectable' mode when pressed
7678
+ * @cssprop --wcs-chip-selectable-background-color-hover - Background color of the chip with 'selectable' mode when hovered
7679
+ * @cssprop --wcs-chip-selectable-background-color-selected - Background color of the chip with 'selectable' mode when selected
7680
+ * @cssprop --wcs-chip-selectable-background-color-selected-hover - Background color of the chip with 'selectable' mode when selected and hovered
7681
+ * @cssprop --wcs-chip-selectable-background-color-selected-pressed - Background color of the chip with 'selectable' mode when selected and pressed
7682
+ * @cssprop --wcs-chip-selectable-background-color-selected-disabled - Background color of the chip with 'selectable' mode when selected and disabled
7683
+ * @cssprop --wcs-chip-selectable-color - Text color of the chip with 'selectable' mode in default state
7684
+ * @cssprop --wcs-chip-selectable-color-hover - Text color of the chip with 'selectable' mode when hovered
7685
+ * @cssprop --wcs-chip-selectable-color-pressed - Text color of the chip with 'selectable' mode when pressed
7686
+ * @cssprop --wcs-chip-selectable-color-disabled - Text color of the chip with 'selectable' mode when disabled
7687
+ * @cssprop --wcs-chip-selectable-color-selected - Text color of the chip with 'selectable' mode when selected
7688
+ * @cssprop --wcs-chip-selectable-color-selected-hover - Text color of the chip with 'selectable' mode when selected and hovered
7689
+ * @cssprop --wcs-chip-selectable-color-selected-pressed - Text color of the chip with 'selectable' mode when selected and pressed
7690
+ * @cssprop --wcs-chip-border-radius - Border radius of the chip
7691
+ * @cssprop --wcs-chip-border-line-width - Border line width of the chip
7692
+ * @cssprop --wcs-chip-selectable-border-color - Border color of the chip with 'selectable' mode in default state
7693
+ * @cssprop --wcs-chip-selectable-border-color-hover - Border color of the chip with 'selectable' mode when hovered
7694
+ * @cssprop --wcs-chip-selectable-border-color-pressed - Border color of the chip with 'selectable' mode when pressed
7695
+ * @cssprop --wcs-chip-selectable-border-color-disabled - Border color of the chip with 'selectable' mode when disabled
7696
+ * @cssprop --wcs-chip-selectable-content-gap - Gap between content elements in chip with 'selectable' mode
7697
+ * @cssprop --wcs-chip-selectable-focus-outline-color - Focus outline color of the chip with 'selectable' mode
7698
+ * @cssprop --wcs-chip-dismissible-content-gap - Gap between content elements in chip with 'dismissible' mode
7699
+ * @cssprop --wcs-chip-dismissible-padding-right - Right padding of the chip with 'dismissible' mode
7700
+ * @cssprop --wcs-chip-dismissible-button-outline-radius - Outline radius of the button for the chip with 'dismissible' mode
7701
+ * @cssprop --wcs-chip-dismissible-primary-focus-outline-color - Focus outline color of the chip with 'dismissible' mode and 'primary' variant
7702
+ * @cssprop --wcs-chip-dismissible-primary-border-color - Border color of the chip with 'dismissible' mode and 'primary' variant
7703
+ * @cssprop --wcs-chip-dismissible-primary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'primary' variant when disabled
7704
+ * @cssprop --wcs-chip-dismissible-primary-color - Text color of the chip with 'dismissible' mode and 'primary' variant
7705
+ * @cssprop --wcs-chip-dismissible-primary-color-hover - Text color of the chip with 'dismissible' mode and 'primary' variant when hovered
7706
+ * @cssprop --wcs-chip-dismissible-primary-color-pressed - Text color of the chip with 'dismissible' mode and 'primary' variant when pressed
7707
+ * @cssprop --wcs-chip-dismissible-primary-color-disabled - Text color of the chip with 'dismissible' mode and 'primary' variant when disabled
7708
+ * @cssprop --wcs-chip-dismissible-primary-background-color - Background color of the chip with 'dismissible' mode and 'primary' variant
7709
+ * @cssprop --wcs-chip-dismissible-primary-background-color-hover - Background color of the chip with 'dismissible' mode and 'primary' variant when hovered
7710
+ * @cssprop --wcs-chip-dismissible-primary-background-color-pressed - Background color of the chip with 'dismissible' mode and 'primary' variant when pressed
7711
+ * @cssprop --wcs-chip-dismissible-primary-background-color-disabled - Background color of the chip with 'dismissible' mode and 'primary' variant when disabled
7712
+ * @cssprop --wcs-chip-dismissible-secondary-button-focus-outline-color - Button focus outline color of the chip with 'dismissible' mode and 'secondary' variant
7713
+ * @cssprop --wcs-chip-dismissible-secondary-border-color - Border color of the chip with 'dismissible' mode and 'secondary' variant
7714
+ * @cssprop --wcs-chip-dismissible-secondary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'secondary' variant when disabled
7715
+ * @cssprop --wcs-chip-dismissible-secondary-color - Text color of the chip with 'dismissible' mode and 'secondary' variant
7716
+ * @cssprop --wcs-chip-dismissible-secondary-color-disabled - Text color of the chip with 'dismissible' mode and 'secondary' variant when disabled
7717
+ * @cssprop --wcs-chip-dismissible-secondary-background-color - Background color of the chip with 'dismissible' mode and 'secondary' variant
7718
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color - Button background color of the chip with 'dismissible' mode and 'secondary' variant
7719
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-hover - Button background color of the chip with 'dismissible' mode and 'secondary' variant when hovered
7720
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-pressed - Button background color of the chip with 'dismissible' mode and 'secondary' variant when pressed
7721
+ * @cssprop --wcs-chip-dismissible-secondary-button-background-color-disabled - Button background color of the chip with 'dismissible' mode and 'secondary' variant when disabled
7722
+ */
7723
+ "wcs-chip": LocalJSX.WcsChip & JSXBase.HTMLAttributes<HTMLWcsChipElement>;
7382
7724
  /**
7383
7725
  * *Part of communication design system*
7384
7726
  * The com-nav component is a container for navigation links to external or internal pages of the website.
@@ -5,3 +5,10 @@ export declare const wcsFocusableElements: string[];
5
5
  */
6
6
  export declare function isWcsFocusableElement(element: any): boolean;
7
7
  export declare function isFocusable(element: any): boolean;
8
+ /**
9
+ * Finds the next focusable element after the given startElement.
10
+ * It checks the next siblings of the startElement and returns the first focusable element found.
11
+ * If no focusable element is found, it returns null.
12
+ * @param startElement The element from which to start searching for the next focusable element.
13
+ */
14
+ export declare function findNextFocusableElement(startElement: HTMLElement): HTMLElement | null;
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,H as s,g as i}from"./p-32e583ea.js";const a=":host{--wcs-accordion-gap:var(--wcs-semantic-spacing-base);display:flex;flex-direction:column;gap:var(--wcs-accordion-gap)}";const c=a;const n=class{constructor(e){t(this,e);this.accordionPanels=[];this.hideActionText=true;this.highlight=false;this.groupContentWithHeader=false}componentWillLoad(){this.accordionPanels=this.getAllAccordionPanelsFromHostElement();this.updateHideActiontextOnPanel();this.updateHighlightOnPanel();this.updateGroupContentWithHeader()}wcsOpenChangeHandler(t){t.stopImmediatePropagation();if(t.detail){this.closeAllAccordionsExcept(t.target)}}updateHideActiontextOnPanel(){this.accordionPanels.forEach((t=>{t.hideActionText=this.hideActionText}))}updateHighlightOnPanel(){this.accordionPanels.forEach((t=>{t.highlight=this.highlight}))}updateGroupContentWithHeader(){this.accordionPanels.forEach((t=>{t.groupContentWithHeader=this.groupContentWithHeader}))}render(){return e(s,{key:"0f1933aeff3cc2d73e6fc5051bac74656e418a02"},e("slot",{key:"effc61fd6ac1edcb598d9bc4053363030a1fc2e9"}))}getAllAccordionPanelsFromHostElement(){return Array.from(this.el.children).filter((t=>t.tagName==="WCS-ACCORDION-PANEL"))}closeAllAccordionsExcept(t){this.accordionPanels.filter((e=>e!==t)).forEach((t=>t.close()))}get el(){return i(this)}static get watchers(){return{hideActionText:["updateHideActiontextOnPanel"],highlight:["updateHighlightOnPanel"],groupContentWithHeader:["updateGroupContentWithHeader"]}}};n.style=c;export{n as wcs_accordion};
2
+ //# sourceMappingURL=p-828b45b4.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["accordionCss","WcsAccordionStyle0","Accordion","this","accordionPanels","componentWillLoad","getAllAccordionPanelsFromHostElement","updateHideActiontextOnPanel","updateHighlightOnPanel","updateGroupContentWithHeader","wcsOpenChangeHandler","event","stopImmediatePropagation","detail","closeAllAccordionsExcept","target","forEach","opt","hideActionText","highlight","groupContentWithHeader","render","h","Host","key","Array","from","el","children","filter","tagName","eventTarget","a","close"],"sources":["src/components/accordion/accordion.scss?tag=wcs-accordion&encapsulation=shadow","src/components/accordion/accordion.tsx"],"sourcesContent":[":host {\n --wcs-accordion-gap: var(--wcs-semantic-spacing-base);\n\n display: flex;\n flex-direction: column;\n gap: var(--wcs-accordion-gap);\n}\n","import { Component, Element, h, Host, Listen, Prop, Watch } from '@stencil/core';\n\n/**\n * The accordion component is a vertical stack of interactive headings used to toggle the display of further information.\n * \n * @cssprop --wcs-accordion-gap - Gap between accordion panels\n */\n@Component({\n tag: 'wcs-accordion',\n styleUrl: 'accordion.scss',\n shadow: true\n})\nexport class Accordion {\n @Element() private el!: HTMLWcsAccordionElement;\n private accordionPanels: HTMLWcsAccordionPanelElement[] = [];\n\n /**\n * Specifies whether accordion-panel components should display the open/close text.\n * if false, it won't show the open/close text in all accordion-panel.\n */\n @Prop({reflect: true}) hideActionText: boolean = true;\n\n /**\n * Specifies whether accordion-panel components should highlight when open with primary color.\n * if true, the background color of the accordion-panel will be the primary color.\n * if false, the background color of the accordion-panel will be wcs-light.\n */\n @Prop({reflect: true}) highlight: boolean = false;\n\n /**\n * @deprecated **The content is now always grouped with the panel header**\n * \n * ~~Specifies whether accordion-panel components should group the content with header in one card~~\n * ~~if true, there will be only one card with the header and the content~~\n * ~~Nothing change when the panel is close~~\n */\n @Prop({reflect: true}) groupContentWithHeader: boolean = false;\n\n componentWillLoad(): Promise<void> | void {\n this.accordionPanels = this.getAllAccordionPanelsFromHostElement();\n\n this.updateHideActiontextOnPanel();\n this.updateHighlightOnPanel();\n this.updateGroupContentWithHeader();\n }\n\n @Listen('wcsOpenChange')\n wcsOpenChangeHandler(event: CustomEvent<boolean>) {\n event.stopImmediatePropagation();\n if (event.detail) {\n this.closeAllAccordionsExcept(event.target);\n }\n }\n\n @Watch('hideActionText')\n private updateHideActiontextOnPanel() {\n this.accordionPanels.forEach((opt: HTMLWcsAccordionPanelElement) => {\n opt.hideActionText = this.hideActionText;\n })\n }\n\n @Watch('highlight')\n private updateHighlightOnPanel() {\n this.accordionPanels.forEach((opt: HTMLWcsAccordionPanelElement) => {\n opt.highlight = this.highlight;\n })\n }\n @Watch('groupContentWithHeader')\n private updateGroupContentWithHeader() {\n this.accordionPanels.forEach((opt: HTMLWcsAccordionPanelElement) => {\n opt.groupContentWithHeader = this.groupContentWithHeader;\n })\n }\n\n\n render() {\n return (\n <Host>\n <slot/>\n </Host>\n );\n }\n\n private getAllAccordionPanelsFromHostElement(): HTMLWcsAccordionPanelElement[] {\n return Array.from(this.el.children)\n .filter(el => el.tagName === 'WCS-ACCORDION-PANEL') as HTMLWcsAccordionPanelElement[];\n }\n\n /**\n * Close all accordion panels except the one that match the eventTarget reference\n */\n private closeAllAccordionsExcept(eventTarget: EventTarget): void {\n this.accordionPanels.filter(a => a !== eventTarget).forEach(a => a.close());\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAe,8HACrB,MAAAC,EAAeD,E,MCWFE,EAAS,M,yBAEVC,KAAAC,gBAAkD,G,oBAMT,K,eAOL,M,4BASa,K,CAEzD,iBAAAC,GACIF,KAAKC,gBAAkBD,KAAKG,uCAE5BH,KAAKI,8BACLJ,KAAKK,yBACLL,KAAKM,8B,CAIT,oBAAAC,CAAqBC,GACjBA,EAAMC,2BACN,GAAID,EAAME,OAAQ,CACdV,KAAKW,yBAAyBH,EAAMI,O,EAKpC,2BAAAR,GACJJ,KAAKC,gBAAgBY,SAASC,IAC1BA,EAAIC,eAAiBf,KAAKe,cAAc,G,CAKxC,sBAAAV,GACJL,KAAKC,gBAAgBY,SAASC,IAC1BA,EAAIE,UAAYhB,KAAKgB,SAAS,G,CAI9B,4BAAAV,GACJN,KAAKC,gBAAgBY,SAASC,IAC1BA,EAAIG,uBAAyBjB,KAAKiB,sBAAsB,G,CAKhE,MAAAC,GACI,OACIC,EAACC,EAAI,CAAAC,IAAA,4CACDF,EAAA,QAAAE,IAAA,6C,CAKJ,oCAAAlB,GACJ,OAAOmB,MAAMC,KAAKvB,KAAKwB,GAAGC,UACrBC,QAAOF,GAAMA,EAAGG,UAAY,uB,CAM7B,wBAAAhB,CAAyBiB,GAC7B5B,KAAKC,gBAAgByB,QAAOG,GAAKA,IAAMD,IAAaf,SAAQgB,GAAKA,EAAEC,S"}