@nectary/components 0.8.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 (132) hide show
  1. package/accordion/index.d.ts +21 -0
  2. package/accordion/index.js +118 -0
  3. package/accordion-item/index.d.ts +33 -0
  4. package/accordion-item/index.js +139 -0
  5. package/alert/index.d.ts +26 -0
  6. package/alert/index.js +91 -0
  7. package/alert-button/index.d.ts +23 -0
  8. package/alert-button/index.js +62 -0
  9. package/alert-close/index.d.ts +22 -0
  10. package/alert-close/index.js +41 -0
  11. package/button/index.d.ts +32 -0
  12. package/button/index.js +100 -0
  13. package/checkbox/index.d.ts +29 -0
  14. package/checkbox/index.js +134 -0
  15. package/help-tooltip/index.d.ts +15 -0
  16. package/help-tooltip/index.js +80 -0
  17. package/icon/cancel/index.d.ts +11 -0
  18. package/icon/cancel/index.js +4 -0
  19. package/icon/close/index.d.ts +11 -0
  20. package/icon/close/index.js +4 -0
  21. package/icon/create-icon-class.d.ts +308 -0
  22. package/icon/create-icon-class.js +53 -0
  23. package/icon/east/index.d.ts +11 -0
  24. package/icon/east/index.js +4 -0
  25. package/icon/help-outline/index.d.ts +11 -0
  26. package/icon/help-outline/index.js +4 -0
  27. package/icon/more-horiz/index.d.ts +11 -0
  28. package/icon/more-horiz/index.js +4 -0
  29. package/icon/more-vert/index.d.ts +11 -0
  30. package/icon/more-vert/index.js +4 -0
  31. package/icon/north/index.d.ts +11 -0
  32. package/icon/north/index.js +4 -0
  33. package/icon/north-east/index.d.ts +11 -0
  34. package/icon/north-east/index.js +4 -0
  35. package/icon/north-west/index.d.ts +11 -0
  36. package/icon/north-west/index.js +4 -0
  37. package/icon/open-in-new/index.d.ts +11 -0
  38. package/icon/open-in-new/index.js +4 -0
  39. package/icon/south/index.d.ts +11 -0
  40. package/icon/south/index.js +4 -0
  41. package/icon/south-east/index.d.ts +11 -0
  42. package/icon/south-east/index.js +4 -0
  43. package/icon/south-west/index.d.ts +11 -0
  44. package/icon/south-west/index.js +4 -0
  45. package/icon/types.d.ts +7 -0
  46. package/icon/types.js +1 -0
  47. package/icon/west/index.d.ts +11 -0
  48. package/icon/west/index.js +4 -0
  49. package/icon-branded/barchart-down/index.d.ts +11 -0
  50. package/icon-branded/barchart-down/index.js +4 -0
  51. package/icon-branded/barchart-up/index.d.ts +11 -0
  52. package/icon-branded/barchart-up/index.js +4 -0
  53. package/icon-branded/campaigns/index.d.ts +11 -0
  54. package/icon-branded/campaigns/index.js +4 -0
  55. package/icon-branded/chatbot/index.d.ts +11 -0
  56. package/icon-branded/chatbot/index.js +4 -0
  57. package/icon-branded/contact/index.d.ts +11 -0
  58. package/icon-branded/contact/index.js +4 -0
  59. package/icon-branded/create-icon-class.d.ts +309 -0
  60. package/icon-branded/create-icon-class.js +61 -0
  61. package/icon-branded/home/index.d.ts +11 -0
  62. package/icon-branded/home/index.js +4 -0
  63. package/icon-branded/multiple-channels/index.d.ts +11 -0
  64. package/icon-branded/multiple-channels/index.js +4 -0
  65. package/icon-branded/rocket/index.d.ts +11 -0
  66. package/icon-branded/rocket/index.js +4 -0
  67. package/icon-branded/settings/index.d.ts +11 -0
  68. package/icon-branded/settings/index.js +4 -0
  69. package/icon-branded/types.d.ts +9 -0
  70. package/icon-branded/types.js +1 -0
  71. package/icon-branded/user/index.d.ts +11 -0
  72. package/icon-branded/user/index.js +4 -0
  73. package/icon-branded/users/index.d.ts +11 -0
  74. package/icon-branded/users/index.js +4 -0
  75. package/index.d.ts +56 -0
  76. package/index.js +56 -0
  77. package/input/index.d.ts +35 -0
  78. package/input/index.js +203 -0
  79. package/link/index.d.ts +30 -0
  80. package/link/index.js +118 -0
  81. package/logo/create-logo-class.d.ts +309 -0
  82. package/logo/create-logo-class.js +63 -0
  83. package/logo/sinch-icon/index.d.ts +11 -0
  84. package/logo/sinch-icon/index.js +4 -0
  85. package/logo/sinch-icon-wordmark/index.d.ts +11 -0
  86. package/logo/sinch-icon-wordmark/index.js +4 -0
  87. package/logo/types.d.ts +9 -0
  88. package/logo/types.js +1 -0
  89. package/package.json +34 -0
  90. package/radio/index.d.ts +19 -0
  91. package/radio/index.js +185 -0
  92. package/radio-option/index.d.ts +28 -0
  93. package/radio-option/index.js +134 -0
  94. package/readme.md +172 -0
  95. package/select/index.d.ts +37 -0
  96. package/select/index.js +492 -0
  97. package/select-option/index.d.ts +27 -0
  98. package/select-option/index.js +107 -0
  99. package/spinner/index.d.ts +21 -0
  100. package/spinner/index.js +23 -0
  101. package/table/index.d.ts +13 -0
  102. package/table/index.js +18 -0
  103. package/table-body/index.d.ts +13 -0
  104. package/table-body/index.js +18 -0
  105. package/table-cell/index.d.ts +20 -0
  106. package/table-cell/index.js +27 -0
  107. package/table-head/index.d.ts +13 -0
  108. package/table-head/index.js +18 -0
  109. package/table-head-cell/index.d.ts +24 -0
  110. package/table-head-cell/index.js +74 -0
  111. package/table-head-sort/index.d.ts +25 -0
  112. package/table-head-sort/index.js +92 -0
  113. package/table-row/index.d.ts +17 -0
  114. package/table-row/index.js +26 -0
  115. package/tabs/index.d.ts +19 -0
  116. package/tabs/index.js +181 -0
  117. package/tabs-option/index.d.ts +28 -0
  118. package/tabs-option/index.js +129 -0
  119. package/tag/index.d.ts +27 -0
  120. package/tag/index.js +79 -0
  121. package/tag-close/index.d.ts +24 -0
  122. package/tag-close/index.js +70 -0
  123. package/textarea/index.d.ts +35 -0
  124. package/textarea/index.js +201 -0
  125. package/theme.css +112 -0
  126. package/toggle/index.d.ts +31 -0
  127. package/toggle/index.js +144 -0
  128. package/tooltip/index.d.ts +26 -0
  129. package/tooltip/index.js +68 -0
  130. package/types.d.ts +3 -0
  131. package/utils.d.ts +31 -0
  132. package/utils.js +146 -0
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-campaigns': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-campaigns': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M40.761 11.657 7.085 20.52a.114.114 0 0 0-.017.216l9.857 4.413-1.855 1.36-8.82-3.948a2.115 2.115 0 0 1 .326-3.975l34.355-9.04a1.506 1.506 0 0 1 1.884 1.587l-1.785 20.52c-.02.23-.083.453-.186.658a5.471 5.471 0 0 1-7.129 2.547l-12.391-5.549 1.855-1.36 11.354 5.083a3.47 3.47 0 0 0 4.508-1.586l1.72-19.789Z"/><path id="accent" d="M24.854 30.89 19 37.394v-8.863L37.06 16.33a1 1 0 1 0-1.12-1.658L17 27.47v9.925c0 1.833 2.26 2.7 3.487 1.338l6.285-6.983-1.918-.86Z"/></svg>';
4
+ defineCustomElement('sinch-icon-campaigns', createIconClass(templateHTML));
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-chatbot': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-chatbot': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M25 10.874A4.002 4.002 0 0 0 24 3a4 4 0 0 0-1 7.874V13H12a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h2v5.69L23.95 35H36a3 3 0 0 0 3-3V16a3 3 0 0 0-3-3H25v-2.126ZM26 7a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm10 8.01a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H23.43L16 37.25V33h-4a1 1 0 0 1-1-1V16a1 1 0 0 1 1-1l24 .01Z"/><path id="accent" d="M18 18a4 4 0 0 0-3.465 6s1.152-2 3.465-2c2.313 0 3.465 2 3.465 2A4 4 0 0 0 18 18Zm12 0a4 4 0 0 0-3.465 6s1.152-2 3.465-2c2.313 0 3.465 2 3.465 2A4 4 0 0 0 30 18ZM19 28a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4Zm8 1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"/></svg>';
4
+ defineCustomElement('sinch-icon-chatbot', createIconClass(templateHTML));
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-contact': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-contact': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M25 11h-8c-5.523 0-10 4.477-10 10v10h18c5.523 0 10-4.477 10-10s-4.477-10-10-10Zm-8-2C10.373 9 5 14.373 5 21v12h20c6.627 0 12-5.373 12-12S31.627 9 25 9h-8Z"/><path d="M16 21a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm7 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm7 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"/><path id="accent" d="M23 39a11.97 11.97 0 0 1-8.944-4h2.943A9.956 9.956 0 0 0 23 37h18V26.922a9.91 9.91 0 0 0-4.198-8.106 11.906 11.906 0 0 0-.878-2.79A11.923 11.923 0 0 1 43 26.922V39H23Z"/></svg>';
4
+ defineCustomElement('sinch-icon-contact', createIconClass(templateHTML));
@@ -0,0 +1,309 @@
1
+ export declare const createIconClass: (templateHTML: string) => {
2
+ new (): {
3
+ $svg: SVGElement;
4
+ size: number;
5
+ inverted: boolean;
6
+ connectedCallback(): void;
7
+ attributeChangedCallback(name: string, _: string | null, newVal: string | null): void;
8
+ accessKey: string;
9
+ readonly accessKeyLabel: string;
10
+ autocapitalize: string;
11
+ dir: string;
12
+ draggable: boolean;
13
+ hidden: boolean;
14
+ innerText: string;
15
+ lang: string;
16
+ readonly offsetHeight: number;
17
+ readonly offsetLeft: number;
18
+ readonly offsetParent: Element | null;
19
+ readonly offsetTop: number;
20
+ readonly offsetWidth: number;
21
+ outerText: string;
22
+ spellcheck: boolean;
23
+ title: string;
24
+ translate: boolean;
25
+ attachInternals(): ElementInternals;
26
+ click(): void;
27
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
28
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
29
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
30
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
31
+ readonly attributes: NamedNodeMap;
32
+ readonly classList: DOMTokenList;
33
+ className: string;
34
+ readonly clientHeight: number;
35
+ readonly clientLeft: number;
36
+ readonly clientTop: number;
37
+ readonly clientWidth: number;
38
+ id: string;
39
+ readonly localName: string;
40
+ readonly namespaceURI: string | null;
41
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
42
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
43
+ outerHTML: string;
44
+ readonly ownerDocument: Document;
45
+ readonly part: DOMTokenList;
46
+ readonly prefix: string | null;
47
+ readonly scrollHeight: number;
48
+ scrollLeft: number;
49
+ scrollTop: number;
50
+ readonly scrollWidth: number;
51
+ readonly shadowRoot: ShadowRoot | null;
52
+ slot: string;
53
+ readonly tagName: string;
54
+ attachShadow(init: ShadowRootInit): ShadowRoot;
55
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
56
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
57
+ closest<E extends Element = Element>(selectors: string): E | null;
58
+ getAttribute(qualifiedName: string): string | null;
59
+ getAttributeNS(namespace: string | null, localName: string): string | null;
60
+ getAttributeNames(): string[];
61
+ getAttributeNode(qualifiedName: string): Attr | null;
62
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
63
+ getBoundingClientRect(): DOMRect;
64
+ getClientRects(): DOMRectList;
65
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
66
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
67
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
68
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
69
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
70
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
71
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
72
+ hasAttribute(qualifiedName: string): boolean;
73
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
74
+ hasAttributes(): boolean;
75
+ hasPointerCapture(pointerId: number): boolean;
76
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
77
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
78
+ insertAdjacentText(where: InsertPosition, data: string): void;
79
+ matches(selectors: string): boolean;
80
+ releasePointerCapture(pointerId: number): void;
81
+ removeAttribute(qualifiedName: string): void;
82
+ removeAttributeNS(namespace: string | null, localName: string): void;
83
+ removeAttributeNode(attr: Attr): Attr;
84
+ requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
85
+ requestPointerLock(): void;
86
+ scroll(options?: ScrollToOptions | undefined): void;
87
+ scroll(x: number, y: number): void;
88
+ scrollBy(options?: ScrollToOptions | undefined): void;
89
+ scrollBy(x: number, y: number): void;
90
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
91
+ scrollTo(options?: ScrollToOptions | undefined): void;
92
+ scrollTo(x: number, y: number): void;
93
+ setAttribute(qualifiedName: string, value: string): void;
94
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
95
+ setAttributeNode(attr: Attr): Attr | null;
96
+ setAttributeNodeNS(attr: Attr): Attr | null;
97
+ setPointerCapture(pointerId: number): void;
98
+ toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
99
+ webkitMatchesSelector(selectors: string): boolean;
100
+ readonly baseURI: string;
101
+ readonly childNodes: NodeListOf<ChildNode>;
102
+ readonly firstChild: ChildNode | null;
103
+ readonly isConnected: boolean;
104
+ readonly lastChild: ChildNode | null;
105
+ readonly nextSibling: ChildNode | null;
106
+ readonly nodeName: string;
107
+ readonly nodeType: number;
108
+ nodeValue: string | null;
109
+ readonly parentElement: HTMLElement | null;
110
+ readonly parentNode: ParentNode | null;
111
+ readonly previousSibling: ChildNode | null;
112
+ textContent: string | null;
113
+ appendChild<T extends Node>(node: T): T;
114
+ cloneNode(deep?: boolean | undefined): Node;
115
+ compareDocumentPosition(other: Node): number;
116
+ contains(other: Node | null): boolean;
117
+ getRootNode(options?: GetRootNodeOptions | undefined): Node;
118
+ hasChildNodes(): boolean;
119
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
120
+ isDefaultNamespace(namespace: string | null): boolean;
121
+ isEqualNode(otherNode: Node | null): boolean;
122
+ isSameNode(otherNode: Node | null): boolean;
123
+ lookupNamespaceURI(prefix: string | null): string | null;
124
+ lookupPrefix(namespace: string | null): string | null;
125
+ normalize(): void;
126
+ removeChild<T_2 extends Node>(child: T_2): T_2;
127
+ replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
128
+ readonly ATTRIBUTE_NODE: number;
129
+ readonly CDATA_SECTION_NODE: number;
130
+ readonly COMMENT_NODE: number;
131
+ readonly DOCUMENT_FRAGMENT_NODE: number;
132
+ readonly DOCUMENT_NODE: number;
133
+ readonly DOCUMENT_POSITION_CONTAINED_BY: number;
134
+ readonly DOCUMENT_POSITION_CONTAINS: number;
135
+ readonly DOCUMENT_POSITION_DISCONNECTED: number;
136
+ readonly DOCUMENT_POSITION_FOLLOWING: number;
137
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
138
+ readonly DOCUMENT_POSITION_PRECEDING: number;
139
+ readonly DOCUMENT_TYPE_NODE: number;
140
+ readonly ELEMENT_NODE: number;
141
+ readonly ENTITY_NODE: number;
142
+ readonly ENTITY_REFERENCE_NODE: number;
143
+ readonly NOTATION_NODE: number;
144
+ readonly PROCESSING_INSTRUCTION_NODE: number;
145
+ readonly TEXT_NODE: number;
146
+ dispatchEvent(event: Event): boolean;
147
+ ariaAtomic: string;
148
+ ariaAutoComplete: string;
149
+ ariaBusy: string;
150
+ ariaChecked: string;
151
+ ariaColCount: string;
152
+ ariaColIndex: string;
153
+ ariaColSpan: string;
154
+ ariaCurrent: string;
155
+ ariaDisabled: string;
156
+ ariaExpanded: string;
157
+ ariaHasPopup: string;
158
+ ariaHidden: string;
159
+ ariaKeyShortcuts: string;
160
+ ariaLabel: string;
161
+ ariaLevel: string;
162
+ ariaLive: string;
163
+ ariaModal: string;
164
+ ariaMultiLine: string;
165
+ ariaMultiSelectable: string;
166
+ ariaOrientation: string;
167
+ ariaPlaceholder: string;
168
+ ariaPosInSet: string;
169
+ ariaPressed: string;
170
+ ariaReadOnly: string;
171
+ ariaRequired: string;
172
+ ariaRoleDescription: string;
173
+ ariaRowCount: string;
174
+ ariaRowIndex: string;
175
+ ariaRowSpan: string;
176
+ ariaSelected: string;
177
+ ariaSetSize: string;
178
+ ariaSort: string;
179
+ ariaValueMax: string;
180
+ ariaValueMin: string;
181
+ ariaValueNow: string;
182
+ ariaValueText: string;
183
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
184
+ getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
185
+ after(...nodes: (string | Node)[]): void;
186
+ before(...nodes: (string | Node)[]): void;
187
+ remove(): void;
188
+ replaceWith(...nodes: (string | Node)[]): void;
189
+ innerHTML: string;
190
+ readonly nextElementSibling: Element | null;
191
+ readonly previousElementSibling: Element | null;
192
+ readonly childElementCount: number;
193
+ readonly children: HTMLCollection;
194
+ readonly firstElementChild: Element | null;
195
+ readonly lastElementChild: Element | null;
196
+ append(...nodes: (string | Node)[]): void;
197
+ prepend(...nodes: (string | Node)[]): void;
198
+ querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
199
+ querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
200
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
201
+ querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
202
+ querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
203
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
204
+ replaceChildren(...nodes: (string | Node)[]): void;
205
+ readonly assignedSlot: HTMLSlotElement | null;
206
+ oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
207
+ oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
208
+ onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
209
+ readonly style: CSSStyleDeclaration;
210
+ contentEditable: string;
211
+ enterKeyHint: string;
212
+ inputMode: string;
213
+ readonly isContentEditable: boolean;
214
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
215
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
216
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
217
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
218
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
219
+ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
220
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
221
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
222
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
223
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
224
+ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
225
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
226
+ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
227
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
228
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
229
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
230
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
231
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
232
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
233
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
234
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
235
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
236
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
237
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
238
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
239
+ onerror: OnErrorEventHandler;
240
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
241
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
242
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
243
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
244
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
245
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
246
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
247
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
248
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
249
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
250
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
251
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
252
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
253
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
254
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
255
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
256
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
257
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
258
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
259
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
260
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
261
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
262
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
263
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
264
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
265
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
266
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
267
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
268
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
269
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
270
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
271
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
272
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
274
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
275
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
278
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
279
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
280
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
281
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
283
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
284
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
285
+ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
286
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
287
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
288
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
289
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
290
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
291
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
292
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
293
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
294
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
295
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
296
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
297
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
298
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
301
+ autofocus: boolean;
302
+ readonly dataset: DOMStringMap;
303
+ nonce?: string | undefined;
304
+ tabIndex: number;
305
+ blur(): void;
306
+ focus(options?: FocusOptions | undefined): void;
307
+ };
308
+ readonly observedAttributes: string[];
309
+ };
@@ -0,0 +1,61 @@
1
+ import { getBooleanAttribute, getIntegerAttribute, updateAttribute, updateBooleanAttribute, updateIntegerAttribute } from '../utils';
2
+ const iconStylesHtml = '<style>:host{display:inline-block;vertical-align:middle}svg{display:block;fill:var(--sinch-color-stormy-500)}#accent{fill:var(--sinch-color-text-link)}:host([inverted]:not([inverted=false])) svg{fill:var(--sinch-color-snow-100)}:host([inverted]:not([inverted=false])) #accent{fill:var(--sinch-color-honey-500)}</style>';
3
+ const DEFAULT_SIZE = 48;
4
+ const MIN_SIZE = 4;
5
+ const MAX_SIZE = 256;
6
+ export const createIconClass = templateHTML => {
7
+ const template = document.createElement('template');
8
+ template.innerHTML = iconStylesHtml + templateHTML;
9
+ return class extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ const shadowRoot = this.attachShadow({
13
+ mode: 'production' === 'development' ? 'open' : 'closed'
14
+ });
15
+ shadowRoot.appendChild(template.content.cloneNode(true));
16
+ this.$svg = shadowRoot.querySelector('svg');
17
+ }
18
+
19
+ static get observedAttributes() {
20
+ return ['size'];
21
+ }
22
+
23
+ set size(value) {
24
+ updateAttribute(this, 'size', value);
25
+ }
26
+
27
+ get size() {
28
+ return getIntegerAttribute(this, 'size', DEFAULT_SIZE);
29
+ }
30
+
31
+ set inverted(isInverted) {
32
+ updateBooleanAttribute(this, 'inverted', isInverted);
33
+ }
34
+
35
+ get inverted() {
36
+ return getBooleanAttribute(this, 'inverted');
37
+ }
38
+
39
+ connectedCallback() {
40
+ updateAttribute(this.$svg, 'preserveAspectRatio', 'xMinYMin meet');
41
+
42
+ if (!this.hasAttribute('size')) {
43
+ updateAttribute(this, 'size', DEFAULT_SIZE);
44
+ }
45
+ }
46
+
47
+ attributeChangedCallback(name, _, newVal) {
48
+ switch (name) {
49
+ case 'size':
50
+ {
51
+ updateIntegerAttribute(this.$svg, 'height', newVal, {
52
+ min: MIN_SIZE,
53
+ max: MAX_SIZE
54
+ });
55
+ break;
56
+ }
57
+ }
58
+ }
59
+
60
+ };
61
+ };
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-home': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-home': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M25.076 10.128a1 1 0 0 0-1.152 0l-11.5 8.092a1 1 0 0 0-.424.818V35.5c0 .552.448 1.5 1 1.5h6V24.5a3 3 0 0 1 3-3h5a3 3 0 0 1 3 3V37h6c.552 0 1-.948 1-1.5V19.038a1 1 0 0 0-.425-.818l-11.5-8.092ZM28 37V24.5a1 1 0 0 0-1-1h-5a1 1 0 0 0-1 1V37h7ZM22.773 8.492a3 3 0 0 1 3.454 0l11.5 8.093A3 3 0 0 1 39 19.038V35.5c0 1.657-1.343 3.5-3 3.5H13c-1.657 0-3-1.843-3-3.5V19.038a3 3 0 0 1 1.274-2.453l11.5-8.093Z"/><path id="accent" fill-rule="evenodd" clip-rule="evenodd" d="M23.923 3.183a1 1 0 0 1 1.17.011l17 12.5a1 1 0 0 1-1.185 1.612L24.488 5.232 11.587 14.34l-3.99 2.964a1 1 0 1 1-1.193-1.606L10 13.026V7a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v2.128l8.423-5.945ZM13.501 10.54V8H12v3.599l1.5-1.06Z"/></svg>';
4
+ defineCustomElement('sinch-icon-home', createIconClass(templateHTML));
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-multiple-channels': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-multiple-channels': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2v5.266L20.777 24H28a2 2 0 0 0 2-2V12h7.5a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-.5.5H34v4.131L27.803 26h-6.56l-2.513 1.545c.346.284.788.455 1.27.455h7.197L36 33.868V32h1.5a.5.5 0 0 1 .5.5v4c0 .5 0 1.5-.5 1.5h-27c-.5 0-.5-.5-.5-1.5v-4a.5.5 0 0 1 .5-.5h16.78L25 30H10a2 2 0 0 0-2 2v5c0 2 0 3 2 3h28c2 0 2-1 2-3v-5a2 2 0 0 0-2-2h-2v-2h2a2 2 0 0 0 2-2V12a2 2 0 0 0-2-2h-8V8a2 2 0 0 0-2-2H10Zm0 2.5a.5.5 0 0 1 .5-.5h17a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-.5.5h-7.277L14 25.734V22h-3.5a.5.5 0 0 1-.5-.5v-13Z"/><path id="accent" fill-rule="evenodd" clip-rule="evenodd" d="M13 12a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2H13Zm0 4a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2H13Zm-1 19a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Zm16 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"/></svg>';
4
+ defineCustomElement('sinch-icon-multiple-channels', createIconClass(templateHTML));
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-rocket': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-rocket': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M37.643 6.083c.953.142 2.045.523 2.743 1.222.298.298.46.688.557 1.02.103.353.166.754.2 1.175.07.844.034 1.867-.097 2.945-.26 2.142-1.085 4.626-2.173 6.53-1.086 1.902-2.941 3.741-4.46 5.07a39.759 39.759 0 0 1-2.408 1.944v8.464a2 2 0 0 1-.867 1.648l-6.38 4.386a2 2 0 0 1-3.073-1.163l-1.583-6.333-6.108-6.109L7.66 25.3a2 2 0 0 1-1.163-3.073l4.386-6.38a2 2 0 0 1 1.648-.866h7.95a30.882 30.882 0 0 1 2.054-2.578c1.405-1.58 3.408-3.479 5.6-4.351 1.991-.793 4.324-1.575 6.444-1.897 1.06-.16 2.112-.214 3.064-.071ZM19.163 16.98H12.53l-4.386 6.379 5.91 1.477 5.107-7.856Zm-3.378 8.865 5.334 5.334 9.312-6.518.002-.002.01-.006.038-.027.154-.111a37.704 37.704 0 0 0 2.462-1.975c1.481-1.296 3.126-2.957 4.04-4.556.912-1.597 1.684-3.797 1.924-5.78.12-.985.145-1.867.09-2.54a4.046 4.046 0 0 0-.127-.776.96.96 0 0 0-.072-.188c-.302-.292-.936-.54-1.604-.64-.684-.102-1.52-.072-2.469.071-1.897.288-4.065 1.006-6.004 1.778-1.739.692-3.485 2.292-4.847 3.822a28.839 28.839 0 0 0-2.04 2.582l-.113.164-.027.041-.006.01h-.001l-6.056 9.317Zm14.22 1.555-7.863 5.505 1.484 5.934 6.379-4.386V27.4Z"/><path id="accent" d="M30 18.984a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12.583 38.532a3.5 3.5 0 1 0-4.193-5.605c-1.548 1.158-2.205 4.904-2.205 6.904 0 .5 4.85-.14 6.398-1.299Z"/></svg>';
4
+ defineCustomElement('sinch-icon-rocket', createIconClass(templateHTML));
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-settings': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-settings': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="m32.204 13.831-.313.195c-2.46 1.537-5.662.153-6.317-2.713-.388-1.701-2.76-1.701-3.148 0-.655 2.866-3.856 4.25-6.317 2.713l-.313-.195c-1.348-.842-2.935.775-2.04 2.177 1.595 2.497.26 5.865-2.595 6.502-1.562.35-1.562 2.63 0 2.98 2.854.637 4.19 4.006 2.596 6.502-.896 1.402.69 3.019 2.04 2.177l.311-.195c2.462-1.537 5.663-.153 6.318 2.713.388 1.701 2.76 1.701 3.148 0 .655-2.866 3.856-4.25 6.317-2.713l.313.195c1.348.842 2.935-.775 2.04-2.177-1.595-2.497-.26-5.865 2.595-6.502 1.562-.35 1.562-2.63 0-2.98-2.854-.637-4.19-4.006-2.596-6.502.896-1.402-.69-3.019-2.04-2.177ZM27.51 10.85c-.867-3.799-6.155-3.799-7.022 0-.348 1.52-2.044 2.25-3.345 1.438l-.312-.195c-3.184-1.988-6.781 1.836-4.74 5.031.833 1.306.133 3.064-1.355 3.397-3.65.815-3.65 6.145 0 6.96 1.488.333 2.188 2.091 1.355 3.397-2.041 3.195 1.556 7.019 4.74 5.031l.312-.195c1.301-.812 2.998-.081 3.345 1.438.867 3.799 6.155 3.799 7.022 0 .348-1.52 2.044-2.25 3.345-1.438l.312.195c3.184 1.988 6.781-1.836 4.74-5.031-.833-1.306-.133-3.064 1.355-3.397 3.65-.815 3.65-6.145 0-6.96-1.488-.333-2.188-2.091-1.355-3.397 2.041-3.195-1.556-7.019-4.74-5.031l-.312.195c-1.301.812-2.998.081-3.345-1.438Z"/><path id="accent" fill-rule="evenodd" clip-rule="evenodd" d="M24 21a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-5 3a5 5 0 1 1 10 0 5 5 0 0 1-10 0Z"/></svg>';
4
+ defineCustomElement('sinch-icon-settings', createIconClass(templateHTML));
@@ -0,0 +1,9 @@
1
+ import type { TSinchElementReact } from '../types';
2
+ export declare type TSinchIconBrandedElement = HTMLElement & {
3
+ size: number;
4
+ inverted: boolean;
5
+ };
6
+ export declare type TSinchIconBrandedReact = TSinchElementReact<TSinchIconBrandedElement> & {
7
+ size?: number;
8
+ inverted?: boolean;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-user': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-user': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="accent" fill-rule="evenodd" clip-rule="evenodd" d="M24 13a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-6 4a6 6 0 1 1 12 0 6 6 0 0 1-12 0Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.724 31.24C16.111 32.705 15 34.929 15 38a1 1 0 1 1-2 0c0-3.596 1.322-6.371 3.378-8.24 2.04-1.854 4.74-2.76 7.425-2.76 5.385 0 10.909 3.675 11.196 10.96a1 1 0 1 1-1.998.08c-.239-6.05-4.715-9.04-9.198-9.04-2.25 0-4.451.76-6.08 2.24Z"/></svg>';
4
+ defineCustomElement('sinch-icon-user', createIconClass(templateHTML));
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-users': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-users': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19 11a6 6 0 1 0 0 12 6 6 0 0 0 0-12Zm-4 6a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z"/><path d="M10 38c0-3.071 1.112-5.295 2.723-6.76 1.628-1.48 3.83-2.24 6.08-2.24 4.483 0 8.959 2.991 9.198 9.04a1 1 0 1 0 1.998-.08C29.712 30.676 24.188 27 18.803 27c-2.685 0-5.385.906-7.425 2.76C9.322 31.629 8 34.404 8 38a1 1 0 1 0 2 0Z"/><path id="accent" d="M30.296 11.457A6 6 0 0 0 28 11v2a4 4 0 0 1 0 8v2a6 6 0 0 0 2.296-11.543ZM32 29.804v-2.158c3.731 1.352 6.793 4.82 7 10.316a1 1 0 1 1-2 .075c-.16-4.26-2.296-6.982-5-8.233Z"/></svg>';
4
+ defineCustomElement('sinch-icon-users', createIconClass(templateHTML));
package/index.d.ts ADDED
@@ -0,0 +1,56 @@
1
+ import './theme.css';
2
+ import './accordion';
3
+ import './accordion-item';
4
+ import './alert';
5
+ import './alert-button';
6
+ import './alert-close';
7
+ import './button';
8
+ import './checkbox';
9
+ import './input';
10
+ import './help-tooltip';
11
+ import './link';
12
+ import './select';
13
+ import './select-option';
14
+ import './radio';
15
+ import './radio-option';
16
+ import './tabs';
17
+ import './tag';
18
+ import './tag-close';
19
+ import './textarea';
20
+ import './toggle';
21
+ import './tooltip';
22
+ import './icon/cancel';
23
+ import './icon/close';
24
+ import './icon/east';
25
+ import './icon/help-outline';
26
+ import './icon/more-horiz';
27
+ import './icon/more-vert';
28
+ import './icon/north';
29
+ import './icon/north-east';
30
+ import './icon/north-west';
31
+ import './icon/open-in-new';
32
+ import './icon/south';
33
+ import './icon/south-east';
34
+ import './icon/south-west';
35
+ import './icon/west';
36
+ import './table';
37
+ import './table-cell';
38
+ import './table-head';
39
+ import './table-head-cell';
40
+ import './table-head-sort';
41
+ import './table-body';
42
+ import './table-row';
43
+ import './spinner';
44
+ import './logo/sinch-icon';
45
+ import './logo/sinch-icon-wordmark';
46
+ import './icon-branded/barchart-down';
47
+ import './icon-branded/barchart-up';
48
+ import './icon-branded/campaigns';
49
+ import './icon-branded/chatbot';
50
+ import './icon-branded/contact';
51
+ import './icon-branded/home';
52
+ import './icon-branded/multiple-channels';
53
+ import './icon-branded/rocket';
54
+ import './icon-branded/settings';
55
+ import './icon-branded/user';
56
+ import './icon-branded/users';