@sula-tech/webcomponents 0.9.2 → 0.10.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 (60) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{sula-avatar_19.cjs.entry.js → sula-avatar_20.cjs.entry.js} +98 -20
  3. package/dist/cjs/sula-avatar_20.cjs.entry.js.map +1 -0
  4. package/dist/cjs/webcomponents.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +1 -0
  6. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  7. package/dist/collection/components/sula-segmented-control/model/sula-segmented-control.model.js +16 -0
  8. package/dist/collection/components/sula-segmented-control/model/sula-segmented-control.model.js.map +1 -0
  9. package/dist/collection/components/sula-segmented-control/sula-segmented-control.css +1 -0
  10. package/dist/collection/components/sula-segmented-control/sula-segmented-control.js +241 -0
  11. package/dist/collection/components/sula-segmented-control/sula-segmented-control.js.map +1 -0
  12. package/dist/collection/components/sula-segmented-control/sula-segmented-control.stories.js +352 -0
  13. package/dist/collection/components/sula-segmented-control/sula-segmented-control.stories.js.map +1 -0
  14. package/dist/collection/components/sula-switch/sula-switch.js +4 -4
  15. package/dist/collection/components/sula-tag/sula-tag.js +3 -3
  16. package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
  17. package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
  18. package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
  19. package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
  20. package/dist/collection/testing/e2e-setup.js +47 -0
  21. package/dist/collection/testing/e2e-setup.js.map +1 -0
  22. package/dist/components/{p-Bgqd8BiV.js → p-BZgImhEG.js} +3 -3
  23. package/dist/components/{p-Bgqd8BiV.js.map → p-BZgImhEG.js.map} +1 -1
  24. package/dist/components/{p-Uq6L0wCA.js → p-BuA_ueQn.js} +3 -3
  25. package/dist/components/{p-Uq6L0wCA.js.map → p-BuA_ueQn.js.map} +1 -1
  26. package/dist/components/sula-avatar.js +1 -1
  27. package/dist/components/sula-badge.js +1 -1
  28. package/dist/components/sula-button.js +1 -1
  29. package/dist/components/sula-checkbox.js +1 -1
  30. package/dist/components/sula-chip.js +1 -1
  31. package/dist/components/sula-dropdown.js +1 -1
  32. package/dist/components/sula-icon.js +1 -1
  33. package/dist/components/sula-modal.js +2 -2
  34. package/dist/components/sula-progress-bar.js +1 -1
  35. package/dist/components/sula-search-bar.js +1 -1
  36. package/dist/components/sula-segmented-control.d.ts +11 -0
  37. package/dist/components/sula-segmented-control.js +113 -0
  38. package/dist/components/sula-segmented-control.js.map +1 -0
  39. package/dist/components/sula-switch.js +4 -4
  40. package/dist/components/sula-tag.js +4 -4
  41. package/dist/components/sula-textarea.js +6 -6
  42. package/dist/components/sula-textfield.js +3 -3
  43. package/dist/components/sula-tiles.js +2 -2
  44. package/dist/components/sula-timeline-list.js +2 -2
  45. package/dist/esm/loader.js +1 -1
  46. package/dist/esm/{sula-avatar_19.entry.js → sula-avatar_20.entry.js} +98 -21
  47. package/dist/esm/sula-avatar_20.entry.js.map +1 -0
  48. package/dist/esm/webcomponents.js +1 -1
  49. package/dist/types/components/sula-segmented-control/model/sula-segmented-control.model.d.ts +19 -0
  50. package/dist/types/components/sula-segmented-control/sula-segmented-control.d.ts +37 -0
  51. package/dist/types/components/sula-segmented-control/sula-segmented-control.stories.d.ts +136 -0
  52. package/dist/types/components.d.ts +84 -0
  53. package/dist/types/testing/e2e-setup.d.ts +1 -0
  54. package/dist/webcomponents/{p-9f81911a.entry.js → p-fbc8b4d8.entry.js} +186 -83
  55. package/dist/webcomponents/p-fbc8b4d8.entry.js.map +1 -0
  56. package/dist/webcomponents/webcomponents.esm.js +6 -1
  57. package/package.json +5 -2
  58. package/dist/cjs/sula-avatar_19.cjs.entry.js.map +0 -1
  59. package/dist/esm/sula-avatar_19.entry.js.map +0 -1
  60. package/dist/webcomponents/p-9f81911a.entry.js.map +0 -1
@@ -16,7 +16,7 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["sula-avatar_19",[[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"items":[1040],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"items":[1040],"value":[1040],"searchable":[516],"selectedItem":[32],"showItems":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32]},[[4,"click","handleDocumentClick"]],{"value":["handleValueChange"],"showItems":["handleShowItemsChange"]}],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"isFocus":[32]}],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"selectedValue":[16,"selected-value"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
19
+ return bootstrapLazy([["sula-avatar_20",[[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"items":[1040],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"items":[1040],"value":[1040],"searchable":[516],"selectedItem":[32],"showItems":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32]},[[4,"click","handleDocumentClick"]],{"value":["handleValueChange"],"showItems":["handleShowItemsChange"]}],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-segmented-control",{"items":[1040],"type":[1025],"size":[1025],"color":[1025]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"isFocus":[32]}],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"selectedValue":[16,"selected-value"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
20
20
  });
21
21
  //# sourceMappingURL=webcomponents.js.map
22
22
 
@@ -0,0 +1,19 @@
1
+ export declare enum SulaSegmentedControlType {
2
+ Icon = "icon",
3
+ Text = "text"
4
+ }
5
+ export declare enum SulaSegmentedControlSize {
6
+ Small = "small",
7
+ Default = "default"
8
+ }
9
+ export declare enum SulaSegmentedControlColor {
10
+ White = "white",
11
+ Gray = "gray"
12
+ }
13
+ export interface SulaSegmentedControlOption {
14
+ label?: string;
15
+ addChevron?: boolean;
16
+ value: string | number;
17
+ icon?: string;
18
+ selected?: boolean;
19
+ }
@@ -0,0 +1,37 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { SulaSegmentedControlColor, SulaSegmentedControlOption, SulaSegmentedControlSize, SulaSegmentedControlType } from './model/sula-segmented-control.model';
3
+ export declare class SulaSegmentedControl {
4
+ /**
5
+ * Items for the segmented control.
6
+ */
7
+ items: SulaSegmentedControlOption[];
8
+ /**
9
+ * Segmented control type.
10
+ */
11
+ type: SulaSegmentedControlType;
12
+ /**
13
+ * Segmented control size.
14
+ */
15
+ size: SulaSegmentedControlSize;
16
+ /**
17
+ * Segmented control color.
18
+ */
19
+ color: SulaSegmentedControlColor;
20
+ /**
21
+ * Emitted when an item is clicked.
22
+ */
23
+ itemClicked: EventEmitter<SulaSegmentedControlOption>;
24
+ /**
25
+ * Emitted when an item is hovered.
26
+ */
27
+ itemHovered: EventEmitter<SulaSegmentedControlOption>;
28
+ /**
29
+ * Emitted when an item is blurred.
30
+ */
31
+ itemBlur: EventEmitter<SulaSegmentedControlOption>;
32
+ handleItemClick(selectedItem: SulaSegmentedControlOption): void;
33
+ handleItemHover(hoveredItem: SulaSegmentedControlOption): void;
34
+ handleItemBlur(blurredItem: SulaSegmentedControlOption): void;
35
+ getCaretIconClass(item: SulaSegmentedControlOption): "text-text-primary" | "text-brand-primary" | "text-negative-negative-1" | "text-icon-primary";
36
+ render(): any;
37
+ }
@@ -0,0 +1,136 @@
1
+ import { SulaSegmentedControlColor, SulaSegmentedControlSize, SulaSegmentedControlType } from './model/sula-segmented-control.model';
2
+ declare const _default: {
3
+ title: string;
4
+ tags: string[];
5
+ argTypes: {
6
+ items: {
7
+ control: string;
8
+ description: string;
9
+ table: {
10
+ type: {
11
+ summary: string;
12
+ };
13
+ defaultValue: {
14
+ summary: string;
15
+ };
16
+ };
17
+ };
18
+ type: {
19
+ control: {
20
+ type: string;
21
+ };
22
+ options: SulaSegmentedControlType[];
23
+ description: string;
24
+ table: {
25
+ type: {
26
+ summary: string;
27
+ };
28
+ defaultValue: {
29
+ summary: string;
30
+ };
31
+ };
32
+ };
33
+ size: {
34
+ control: {
35
+ type: string;
36
+ };
37
+ options: SulaSegmentedControlSize[];
38
+ description: string;
39
+ table: {
40
+ type: {
41
+ summary: string;
42
+ };
43
+ defaultValue: {
44
+ summary: string;
45
+ };
46
+ };
47
+ };
48
+ color: {
49
+ control: {
50
+ type: string;
51
+ };
52
+ options: SulaSegmentedControlColor[];
53
+ description: string;
54
+ table: {
55
+ type: {
56
+ summary: string;
57
+ };
58
+ defaultValue: {
59
+ summary: string;
60
+ };
61
+ };
62
+ };
63
+ itemClicked: {
64
+ action: string;
65
+ description: string;
66
+ table: {
67
+ type: {
68
+ summary: string;
69
+ };
70
+ };
71
+ };
72
+ itemHovered: {
73
+ action: string;
74
+ description: string;
75
+ table: {
76
+ type: {
77
+ summary: string;
78
+ };
79
+ };
80
+ };
81
+ itemBlur: {
82
+ action: string;
83
+ description: string;
84
+ table: {
85
+ type: {
86
+ summary: string;
87
+ };
88
+ };
89
+ };
90
+ };
91
+ parameters: {
92
+ docs: {
93
+ description: {
94
+ component: string;
95
+ };
96
+ };
97
+ };
98
+ };
99
+ export default _default;
100
+ export declare const Playground: any;
101
+ export declare const TextType: any;
102
+ export declare const IconType: any;
103
+ export declare const WithChevron: any;
104
+ export declare const SmallSize: any;
105
+ export declare const Sizes: {
106
+ (): HTMLDivElement;
107
+ parameters: {
108
+ docs: {
109
+ description: {
110
+ story: string;
111
+ };
112
+ };
113
+ };
114
+ };
115
+ export declare const GrayBackground: any;
116
+ export declare const ColorVariations: {
117
+ (): HTMLDivElement;
118
+ parameters: {
119
+ docs: {
120
+ description: {
121
+ story: string;
122
+ };
123
+ };
124
+ };
125
+ };
126
+ export declare const ManyOptions: any;
127
+ export declare const AllVariations: {
128
+ (): HTMLDivElement;
129
+ parameters: {
130
+ docs: {
131
+ description: {
132
+ story: string;
133
+ };
134
+ };
135
+ };
136
+ };
@@ -16,6 +16,7 @@ import { SulaLoaderSize } from "./components/sula-loader/model/sula-loader.model
16
16
  import { SulaModalSlotOverflow, SulaModalType } from "./components/sula-modal/model/sula-modal.model";
17
17
  import { SulaProgressBarAppearance, SulaProgressBarState } from "./components/sula-progress-bar/model/sula-progress-bar.model";
18
18
  import { SulaSearchBarStyle } from "./components/sula-search-bar/model/sula-search.bar-model";
19
+ import { SulaSegmentedControlColor, SulaSegmentedControlOption, SulaSegmentedControlSize, SulaSegmentedControlType } from "./components/sula-segmented-control/model/sula-segmented-control.model";
19
20
  import { SulaSwitchType } from "./components/sula-switch/model/sula-switch.model";
20
21
  import { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from "./components/sula-tag/model/sula-tag.model";
21
22
  import { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textarea.model";
@@ -33,6 +34,7 @@ export { SulaLoaderSize } from "./components/sula-loader/model/sula-loader.model
33
34
  export { SulaModalSlotOverflow, SulaModalType } from "./components/sula-modal/model/sula-modal.model";
34
35
  export { SulaProgressBarAppearance, SulaProgressBarState } from "./components/sula-progress-bar/model/sula-progress-bar.model";
35
36
  export { SulaSearchBarStyle } from "./components/sula-search-bar/model/sula-search.bar-model";
37
+ export { SulaSegmentedControlColor, SulaSegmentedControlOption, SulaSegmentedControlSize, SulaSegmentedControlType } from "./components/sula-segmented-control/model/sula-segmented-control.model";
36
38
  export { SulaSwitchType } from "./components/sula-switch/model/sula-switch.model";
37
39
  export { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from "./components/sula-tag/model/sula-tag.model";
38
40
  export { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textarea.model";
@@ -370,6 +372,28 @@ export namespace Components {
370
372
  */
371
373
  "value"?: string;
372
374
  }
375
+ interface SulaSegmentedControl {
376
+ /**
377
+ * Segmented control color.
378
+ * @default SulaSegmentedControlColor.White
379
+ */
380
+ "color": SulaSegmentedControlColor;
381
+ /**
382
+ * Items for the segmented control.
383
+ * @default []
384
+ */
385
+ "items": SulaSegmentedControlOption[];
386
+ /**
387
+ * Segmented control size.
388
+ * @default SulaSegmentedControlSize.Default
389
+ */
390
+ "size": SulaSegmentedControlSize;
391
+ /**
392
+ * Segmented control type.
393
+ * @default SulaSegmentedControlType.Text
394
+ */
395
+ "type": SulaSegmentedControlType;
396
+ }
373
397
  interface SulaSwitch {
374
398
  /**
375
399
  * Is switch active
@@ -584,6 +608,10 @@ export interface SulaSearchBarCustomEvent<T> extends CustomEvent<T> {
584
608
  detail: T;
585
609
  target: HTMLSulaSearchBarElement;
586
610
  }
611
+ export interface SulaSegmentedControlCustomEvent<T> extends CustomEvent<T> {
612
+ detail: T;
613
+ target: HTMLSulaSegmentedControlElement;
614
+ }
587
615
  export interface SulaSwitchCustomEvent<T> extends CustomEvent<T> {
588
616
  detail: T;
589
617
  target: HTMLSulaSwitchElement;
@@ -784,6 +812,25 @@ declare global {
784
812
  prototype: HTMLSulaSearchBarElement;
785
813
  new (): HTMLSulaSearchBarElement;
786
814
  };
815
+ interface HTMLSulaSegmentedControlElementEventMap {
816
+ "itemClicked": SulaSegmentedControlOption;
817
+ "itemHovered": SulaSegmentedControlOption;
818
+ "itemBlur": SulaSegmentedControlOption;
819
+ }
820
+ interface HTMLSulaSegmentedControlElement extends Components.SulaSegmentedControl, HTMLStencilElement {
821
+ addEventListener<K extends keyof HTMLSulaSegmentedControlElementEventMap>(type: K, listener: (this: HTMLSulaSegmentedControlElement, ev: SulaSegmentedControlCustomEvent<HTMLSulaSegmentedControlElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
822
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
823
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
824
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
825
+ removeEventListener<K extends keyof HTMLSulaSegmentedControlElementEventMap>(type: K, listener: (this: HTMLSulaSegmentedControlElement, ev: SulaSegmentedControlCustomEvent<HTMLSulaSegmentedControlElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
826
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
827
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
828
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
829
+ }
830
+ var HTMLSulaSegmentedControlElement: {
831
+ prototype: HTMLSulaSegmentedControlElement;
832
+ new (): HTMLSulaSegmentedControlElement;
833
+ };
787
834
  interface HTMLSulaSwitchElementEventMap {
788
835
  "valueChanged": boolean;
789
836
  "focusedOn": void;
@@ -895,6 +942,7 @@ declare global {
895
942
  "sula-progress-bar": HTMLSulaProgressBarElement;
896
943
  "sula-radio-button": HTMLSulaRadioButtonElement;
897
944
  "sula-search-bar": HTMLSulaSearchBarElement;
945
+ "sula-segmented-control": HTMLSulaSegmentedControlElement;
898
946
  "sula-switch": HTMLSulaSwitchElement;
899
947
  "sula-tag": HTMLSulaTagElement;
900
948
  "sula-textarea": HTMLSulaTextareaElement;
@@ -1319,6 +1367,40 @@ declare namespace LocalJSX {
1319
1367
  */
1320
1368
  "value"?: string;
1321
1369
  }
1370
+ interface SulaSegmentedControl {
1371
+ /**
1372
+ * Segmented control color.
1373
+ * @default SulaSegmentedControlColor.White
1374
+ */
1375
+ "color"?: SulaSegmentedControlColor;
1376
+ /**
1377
+ * Items for the segmented control.
1378
+ * @default []
1379
+ */
1380
+ "items"?: SulaSegmentedControlOption[];
1381
+ /**
1382
+ * Emitted when an item is blurred.
1383
+ */
1384
+ "onItemBlur"?: (event: SulaSegmentedControlCustomEvent<SulaSegmentedControlOption>) => void;
1385
+ /**
1386
+ * Emitted when an item is clicked.
1387
+ */
1388
+ "onItemClicked"?: (event: SulaSegmentedControlCustomEvent<SulaSegmentedControlOption>) => void;
1389
+ /**
1390
+ * Emitted when an item is hovered.
1391
+ */
1392
+ "onItemHovered"?: (event: SulaSegmentedControlCustomEvent<SulaSegmentedControlOption>) => void;
1393
+ /**
1394
+ * Segmented control size.
1395
+ * @default SulaSegmentedControlSize.Default
1396
+ */
1397
+ "size"?: SulaSegmentedControlSize;
1398
+ /**
1399
+ * Segmented control type.
1400
+ * @default SulaSegmentedControlType.Text
1401
+ */
1402
+ "type"?: SulaSegmentedControlType;
1403
+ }
1322
1404
  interface SulaSwitch {
1323
1405
  /**
1324
1406
  * Is switch active
@@ -1559,6 +1641,7 @@ declare namespace LocalJSX {
1559
1641
  "sula-progress-bar": SulaProgressBar;
1560
1642
  "sula-radio-button": SulaRadioButton;
1561
1643
  "sula-search-bar": SulaSearchBar;
1644
+ "sula-segmented-control": SulaSegmentedControl;
1562
1645
  "sula-switch": SulaSwitch;
1563
1646
  "sula-tag": SulaTag;
1564
1647
  "sula-textarea": SulaTextarea;
@@ -1584,6 +1667,7 @@ declare module "@stencil/core" {
1584
1667
  "sula-progress-bar": LocalJSX.SulaProgressBar & JSXBase.HTMLAttributes<HTMLSulaProgressBarElement>;
1585
1668
  "sula-radio-button": LocalJSX.SulaRadioButton & JSXBase.HTMLAttributes<HTMLSulaRadioButtonElement>;
1586
1669
  "sula-search-bar": LocalJSX.SulaSearchBar & JSXBase.HTMLAttributes<HTMLSulaSearchBarElement>;
1670
+ "sula-segmented-control": LocalJSX.SulaSegmentedControl & JSXBase.HTMLAttributes<HTMLSulaSegmentedControlElement>;
1587
1671
  "sula-switch": LocalJSX.SulaSwitch & JSXBase.HTMLAttributes<HTMLSulaSwitchElement>;
1588
1672
  "sula-tag": LocalJSX.SulaTag & JSXBase.HTMLAttributes<HTMLSulaTagElement>;
1589
1673
  "sula-textarea": LocalJSX.SulaTextarea & JSXBase.HTMLAttributes<HTMLSulaTextareaElement>;
@@ -0,0 +1 @@
1
+ export {};