@nectary/components 0.30.0 → 0.32.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.
- package/accordion-item/types.d.ts +0 -2
- package/action-menu-option/types.d.ts +0 -2
- package/alert-button/types.d.ts +0 -2
- package/alert-close/types.d.ts +1 -4
- package/button/types.d.ts +13 -2
- package/card-button/types.d.ts +0 -2
- package/card-link/types.d.ts +0 -2
- package/checkbox/types.d.ts +0 -2
- package/date-picker/index.js +4 -4
- package/date-picker/types.d.ts +16 -1
- package/date-picker/utils.d.ts +1 -1
- package/date-picker/utils.js +10 -7
- package/dialog/index.js +2 -2
- package/dropdown/types.d.ts +0 -2
- package/icon-button/index.js +1 -1
- package/icon-button/types.d.ts +0 -2
- package/icons-branded/ai/index.d.ts +11 -0
- package/icons-branded/ai/index.js +4 -0
- package/icons-branded/custom-message/index.d.ts +11 -0
- package/icons-branded/custom-message/index.js +4 -0
- package/icons-branded/integration/index.d.ts +11 -0
- package/icons-branded/integration/index.js +4 -0
- package/icons-branded/line-chart-down/index.d.ts +11 -0
- package/icons-branded/line-chart-down/index.js +4 -0
- package/icons-branded/line-chart-up/index.d.ts +11 -0
- package/icons-branded/line-chart-up/index.js +4 -0
- package/icons-branded/time/index.d.ts +11 -0
- package/icons-branded/time/index.js +4 -0
- package/illustrations/5g/index.d.ts +11 -0
- package/illustrations/5g/index.js +4 -0
- package/illustrations/about-page/index.d.ts +11 -0
- package/illustrations/about-page/index.js +4 -0
- package/illustrations/bank/index.d.ts +11 -0
- package/illustrations/bank/index.js +4 -0
- package/illustrations/boost/index.d.ts +11 -0
- package/illustrations/boost/index.js +4 -0
- package/illustrations/buildvoicebot/index.d.ts +11 -0
- package/illustrations/buildvoicebot/index.js +4 -0
- package/illustrations/call-center/index.d.ts +11 -0
- package/illustrations/call-center/index.js +4 -0
- package/illustrations/cat-texting/index.d.ts +11 -0
- package/illustrations/cat-texting/index.js +4 -0
- package/illustrations/chat-bot/index.d.ts +11 -0
- package/illustrations/chat-bot/index.js +4 -0
- package/illustrations/check/index.d.ts +11 -0
- package/illustrations/check/index.js +4 -0
- package/illustrations/code/index.d.ts +11 -0
- package/illustrations/code/index.js +4 -0
- package/illustrations/contact-us/index.d.ts +11 -0
- package/illustrations/contact-us/index.js +4 -0
- package/illustrations/contactus/index.d.ts +11 -0
- package/illustrations/contactus/index.js +4 -0
- package/illustrations/conversation-api/index.d.ts +11 -0
- package/illustrations/conversation-api/index.js +4 -0
- package/illustrations/cooking/index.d.ts +11 -0
- package/illustrations/cooking/index.js +4 -0
- package/illustrations/costumer-support/index.d.ts +11 -0
- package/illustrations/costumer-support/index.js +4 -0
- package/illustrations/credit-card/index.d.ts +11 -0
- package/illustrations/credit-card/index.js +4 -0
- package/illustrations/credit-card-30-degrees/index.d.ts +11 -0
- package/illustrations/credit-card-30-degrees/index.js +4 -0
- package/illustrations/cute-bee/index.d.ts +11 -0
- package/illustrations/cute-bee/index.js +4 -0
- package/illustrations/decorative-flamingo/index.d.ts +11 -0
- package/illustrations/decorative-flamingo/index.js +4 -0
- package/illustrations/decorative-rainbow/index.d.ts +11 -0
- package/illustrations/decorative-rainbow/index.js +4 -0
- package/illustrations/delivery-service-package/index.d.ts +11 -0
- package/illustrations/delivery-service-package/index.js +4 -0
- package/illustrations/desktop/index.d.ts +11 -0
- package/illustrations/desktop/index.js +4 -0
- package/illustrations/document/index.d.ts +11 -0
- package/illustrations/document/index.js +4 -0
- package/illustrations/flower-hand/index.d.ts +11 -0
- package/illustrations/flower-hand/index.js +4 -0
- package/illustrations/football/index.d.ts +11 -0
- package/illustrations/football/index.js +4 -0
- package/illustrations/geometric-shapes-passing/index.d.ts +11 -0
- package/illustrations/geometric-shapes-passing/index.js +4 -0
- package/illustrations/girl-on-phone/index.d.ts +11 -0
- package/illustrations/girl-on-phone/index.js +4 -0
- package/illustrations/global-reach/index.d.ts +11 -0
- package/illustrations/global-reach/index.js +4 -0
- package/illustrations/hand-ok/index.d.ts +11 -0
- package/illustrations/hand-ok/index.js +4 -0
- package/illustrations/hands-laptop/index.d.ts +11 -0
- package/illustrations/hands-laptop/index.js +4 -0
- package/illustrations/handset-omnichannel-messages/index.d.ts +11 -0
- package/illustrations/handset-omnichannel-messages/index.js +4 -0
- package/illustrations/happy-text/index.d.ts +11 -0
- package/illustrations/happy-text/index.js +4 -0
- package/illustrations/headphones/index.d.ts +11 -0
- package/illustrations/headphones/index.js +4 -0
- package/illustrations/heart/index.d.ts +11 -0
- package/illustrations/heart/index.js +4 -0
- package/illustrations/hero-messages/index.d.ts +11 -0
- package/illustrations/hero-messages/index.js +4 -0
- package/illustrations/hero-page/index.d.ts +11 -0
- package/illustrations/hero-page/index.js +4 -0
- package/illustrations/jump/index.d.ts +11 -0
- package/illustrations/jump/index.js +4 -0
- package/illustrations/laptop-holding/index.d.ts +11 -0
- package/illustrations/laptop-holding/index.js +4 -0
- package/illustrations/laptop-sitting-verified/index.d.ts +11 -0
- package/illustrations/laptop-sitting-verified/index.js +4 -0
- package/illustrations/lightning/index.d.ts +11 -0
- package/illustrations/lightning/index.js +4 -0
- package/illustrations/lock/index.d.ts +11 -0
- package/illustrations/lock/index.js +4 -0
- package/illustrations/lying-and-looking-at-the-phone/index.d.ts +11 -0
- package/illustrations/lying-and-looking-at-the-phone/index.js +4 -0
- package/illustrations/magnifying-glass/index.d.ts +11 -0
- package/illustrations/magnifying-glass/index.js +4 -0
- package/illustrations/man-on-right/index.d.ts +11 -0
- package/illustrations/man-on-right/index.js +4 -0
- package/illustrations/meeting-scrum/index.d.ts +11 -0
- package/illustrations/meeting-scrum/index.js +4 -0
- package/illustrations/meeting-scrum-2/index.d.ts +11 -0
- package/illustrations/meeting-scrum-2/index.js +4 -0
- package/illustrations/megaphone/index.d.ts +11 -0
- package/illustrations/megaphone/index.js +4 -0
- package/illustrations/menu/index.d.ts +11 -0
- package/illustrations/menu/index.js +4 -0
- package/illustrations/message-passing/index.d.ts +11 -0
- package/illustrations/message-passing/index.js +4 -0
- package/illustrations/message-recieved/index.d.ts +11 -0
- package/illustrations/message-recieved/index.js +4 -0
- package/illustrations/messages/index.d.ts +11 -0
- package/illustrations/messages/index.js +4 -0
- package/illustrations/messages-on-yellow-bg/index.d.ts +11 -0
- package/illustrations/messages-on-yellow-bg/index.js +4 -0
- package/illustrations/messages-shopping/index.d.ts +11 -0
- package/illustrations/messages-shopping/index.js +4 -0
- package/illustrations/monitor/index.d.ts +11 -0
- package/illustrations/monitor/index.js +4 -0
- package/illustrations/numbers-passing/index.d.ts +11 -0
- package/illustrations/numbers-passing/index.js +4 -0
- package/illustrations/office-worker/index.d.ts +11 -0
- package/illustrations/office-worker/index.js +4 -0
- package/illustrations/old-person-on-phone/index.d.ts +11 -0
- package/illustrations/old-person-on-phone/index.js +4 -0
- package/illustrations/omnichannel-messaging/index.d.ts +11 -0
- package/illustrations/omnichannel-messaging/index.js +4 -0
- package/illustrations/on-the-phone/index.d.ts +11 -0
- package/illustrations/on-the-phone/index.js +4 -0
- package/illustrations/parcel-delivery/index.d.ts +11 -0
- package/illustrations/parcel-delivery/index.js +4 -0
- package/illustrations/passing-heart/index.d.ts +11 -0
- package/illustrations/passing-heart/index.js +4 -0
- package/illustrations/passing-heart-cool/index.d.ts +11 -0
- package/illustrations/passing-heart-cool/index.js +4 -0
- package/illustrations/person-on-phone/index.d.ts +11 -0
- package/illustrations/person-on-phone/index.js +4 -0
- package/illustrations/person-on-walk/index.d.ts +11 -0
- package/illustrations/person-on-walk/index.js +4 -0
- package/illustrations/person-with-dog/index.d.ts +11 -0
- package/illustrations/person-with-dog/index.js +4 -0
- package/illustrations/person-with-phone/index.d.ts +11 -0
- package/illustrations/person-with-phone/index.js +4 -0
- package/illustrations/pineapple/index.d.ts +11 -0
- package/illustrations/pineapple/index.js +4 -0
- package/illustrations/pizza/index.d.ts +11 -0
- package/illustrations/pizza/index.js +4 -0
- package/illustrations/plane/index.d.ts +11 -0
- package/illustrations/plane/index.js +4 -0
- package/illustrations/presenting-charts/index.d.ts +11 -0
- package/illustrations/presenting-charts/index.js +4 -0
- package/illustrations/product-page/index.d.ts +11 -0
- package/illustrations/product-page/index.js +4 -0
- package/illustrations/product-page-2/index.d.ts +11 -0
- package/illustrations/product-page-2/index.js +4 -0
- package/illustrations/scooter/index.d.ts +11 -0
- package/illustrations/scooter/index.js +4 -0
- package/illustrations/security/index.d.ts +11 -0
- package/illustrations/security/index.js +4 -0
- package/illustrations/security-camera/index.d.ts +11 -0
- package/illustrations/security-camera/index.js +4 -0
- package/illustrations/sherlockholmes/index.d.ts +11 -0
- package/illustrations/sherlockholmes/index.js +4 -0
- package/illustrations/shoe/index.d.ts +11 -0
- package/illustrations/shoe/index.js +4 -0
- package/illustrations/shopping/index.d.ts +11 -0
- package/illustrations/shopping/index.js +4 -0
- package/illustrations/shopping-cart/index.d.ts +11 -0
- package/illustrations/shopping-cart/index.js +4 -0
- package/illustrations/sick-kid/index.d.ts +11 -0
- package/illustrations/sick-kid/index.js +4 -0
- package/illustrations/sitting-messaging/index.d.ts +11 -0
- package/illustrations/sitting-messaging/index.js +4 -0
- package/illustrations/sitting-person/index.d.ts +11 -0
- package/illustrations/sitting-person/index.js +4 -0
- package/illustrations/sitting-person-2/index.d.ts +11 -0
- package/illustrations/sitting-person-2/index.js +4 -0
- package/illustrations/sofa/index.d.ts +11 -0
- package/illustrations/sofa/index.js +4 -0
- package/illustrations/stats/index.d.ts +11 -0
- package/illustrations/stats/index.js +4 -0
- package/illustrations/support-center/index.d.ts +11 -0
- package/illustrations/support-center/index.js +4 -0
- package/illustrations/supporting-device/index.d.ts +11 -0
- package/illustrations/supporting-device/index.js +4 -0
- package/illustrations/supporting-device-2/index.d.ts +11 -0
- package/illustrations/supporting-device-2/index.js +4 -0
- package/illustrations/supporting-device-3/index.d.ts +11 -0
- package/illustrations/supporting-device-3/index.js +4 -0
- package/illustrations/supporting-device-4/index.d.ts +11 -0
- package/illustrations/supporting-device-4/index.js +4 -0
- package/illustrations/surf/index.d.ts +11 -0
- package/illustrations/surf/index.js +4 -0
- package/illustrations/taxi/index.d.ts +11 -0
- package/illustrations/taxi/index.js +4 -0
- package/illustrations/taxi-2/index.d.ts +11 -0
- package/illustrations/taxi-2/index.js +4 -0
- package/illustrations/teamwork-from-phone/index.d.ts +11 -0
- package/illustrations/teamwork-from-phone/index.js +4 -0
- package/illustrations/telemast/index.d.ts +11 -0
- package/illustrations/telemast/index.js +4 -0
- package/illustrations/texting-sitting/index.d.ts +11 -0
- package/illustrations/texting-sitting/index.js +4 -0
- package/illustrations/texting-sofa/index.d.ts +11 -0
- package/illustrations/texting-sofa/index.js +4 -0
- package/illustrations/train/index.d.ts +11 -0
- package/illustrations/train/index.js +4 -0
- package/illustrations/video-voice-call/index.d.ts +11 -0
- package/illustrations/video-voice-call/index.js +4 -0
- package/illustrations/voicebot/index.d.ts +11 -0
- package/illustrations/voicebot/index.js +4 -0
- package/illustrations/walking-on-phone/index.d.ts +11 -0
- package/illustrations/walking-on-phone/index.js +4 -0
- package/illustrations/what-tools/index.d.ts +11 -0
- package/illustrations/what-tools/index.js +4 -0
- package/illustrations/win-together/index.d.ts +11 -0
- package/illustrations/win-together/index.js +4 -0
- package/illustrations/win-together-two-people/index.d.ts +11 -0
- package/illustrations/win-together-two-people/index.js +4 -0
- package/illustrations/wizard/index.d.ts +11 -0
- package/illustrations/wizard/index.js +4 -0
- package/illustrations/woman-hand-lifted/index.d.ts +11 -0
- package/illustrations/woman-hand-lifted/index.js +4 -0
- package/illustrations/woman-on-left/index.d.ts +11 -0
- package/illustrations/woman-on-left/index.js +4 -0
- package/illustrations/woman-on-right/index.d.ts +11 -0
- package/illustrations/woman-on-right/index.js +4 -0
- package/input/types.d.ts +35 -10
- package/link/index.d.ts +1 -1
- package/link/index.js +1 -1
- package/package.json +1 -1
- package/pagination/types.d.ts +0 -2
- package/popover/index.js +2 -2
- package/radio-option/types.d.ts +0 -2
- package/search/types.d.ts +0 -2
- package/segment/index.js +30 -3
- package/segment-collapse/types.d.ts +0 -2
- package/segmented-control-option/index.js +1 -1
- package/segmented-control-option/types.d.ts +0 -2
- package/segmented-icon-control-option/types.d.ts +0 -2
- package/select/index.js +1 -1
- package/select/types.d.ts +0 -2
- package/tabs-option/types.d.ts +0 -2
- package/tag-close/types.d.ts +1 -4
- package/text/index.js +1 -3
- package/textarea/types.d.ts +0 -2
- package/time-picker/index.d.ts +17 -0
- package/time-picker/index.js +525 -0
- package/time-picker/types.d.ts +31 -0
- package/time-picker/types.js +1 -0
- package/time-picker/utils.d.ts +11 -0
- package/time-picker/utils.js +94 -0
- package/toggle/types.d.ts +0 -2
- package/utils.js +1 -1
- /package/{illustration → illustrations}/create-illustration-class.d.ts +0 -0
- /package/{illustration → illustrations}/create-illustration-class.js +0 -0
- /package/{illustration → illustrations}/phone-and-cat/index.d.ts +0 -0
- /package/{illustration → illustrations}/phone-and-cat/index.js +0 -0
- /package/{illustration → illustrations}/types.d.ts +0 -0
- /package/{illustration → illustrations}/types.js +0 -0
- /package/{illustration → illustrations}/utils.d.ts +0 -0
- /package/{illustration → illustrations}/utils.js +0 -0
package/input/types.d.ts
CHANGED
|
@@ -2,38 +2,63 @@ import type { TSinchElementReact } from '../types';
|
|
|
2
2
|
import type { SyntheticEvent } from 'react';
|
|
3
3
|
export declare type TSinchInputType = 'text' | 'password';
|
|
4
4
|
export declare type TSinchInputElement = HTMLElement & {
|
|
5
|
+
/** Text field type, `text` by default */
|
|
5
6
|
type: TSinchInputType;
|
|
7
|
+
/** Value */
|
|
6
8
|
value: string;
|
|
9
|
+
/** Label */
|
|
7
10
|
label: string;
|
|
11
|
+
/** Text that appears in the text field when it has no value set */
|
|
8
12
|
placeholder: string | null;
|
|
13
|
+
/** Optional text */
|
|
9
14
|
optionalText: string | null;
|
|
10
|
-
|
|
15
|
+
/** Additional text */
|
|
11
16
|
additionalText: string | null;
|
|
17
|
+
/** Invalid text, controls the overall invalid state of the text field */
|
|
18
|
+
invalidText: string | null;
|
|
19
|
+
/** Disabled */
|
|
12
20
|
disabled: boolean;
|
|
13
|
-
selectionStart:
|
|
14
|
-
selectionEnd:
|
|
15
|
-
selectionDirection:
|
|
16
|
-
|
|
17
|
-
blur(): void;
|
|
21
|
+
selectionStart: number | null;
|
|
22
|
+
selectionEnd: number | null;
|
|
23
|
+
selectionDirection: 'forward' | 'backward' | 'none' | null;
|
|
24
|
+
/** Change value event */
|
|
18
25
|
addEventListener(type: 'change', listener: (e: CustomEvent<string>) => void): void;
|
|
26
|
+
/** Text field type, `text` by default */
|
|
19
27
|
setAttribute(name: 'type', value: TSinchInputType): void;
|
|
28
|
+
/** Value */
|
|
20
29
|
setAttribute(name: 'value', value: string): void;
|
|
30
|
+
/** Label */
|
|
21
31
|
setAttribute(name: 'label', value: string): void;
|
|
32
|
+
/** Text that appears in the text field when it has no value set */
|
|
22
33
|
setAttribute(name: 'placeholder', value: string): void;
|
|
34
|
+
/** Optional text */
|
|
23
35
|
setAttribute(name: 'optionaltext', value: string): void;
|
|
24
|
-
|
|
36
|
+
/** Additional text */
|
|
25
37
|
setAttribute(name: 'additionaltext', value: string): void;
|
|
38
|
+
/** Invalid text, controls the overall invalid state of the text field */
|
|
39
|
+
setAttribute(name: 'invalidtext', value: string): void;
|
|
40
|
+
/** Disabled */
|
|
26
41
|
setAttribute(name: 'disabled', value: ''): void;
|
|
27
42
|
};
|
|
28
43
|
export declare type TSinchInputReact = TSinchElementReact<TSinchInputElement> & {
|
|
29
|
-
|
|
44
|
+
/** Controlled value, doesn't change on its own and requres an onChange-value state loop */
|
|
30
45
|
value: string;
|
|
46
|
+
/** Label that shows in UI */
|
|
31
47
|
label: string;
|
|
48
|
+
/** Label that is used for a11y – might be different from `label` */
|
|
49
|
+
'aria-label': string;
|
|
50
|
+
/** Text field type, `text` by default */
|
|
51
|
+
type?: TSinchInputType;
|
|
52
|
+
/** Text that appears in the text field when it has no value set */
|
|
32
53
|
placeholder?: string;
|
|
54
|
+
/** Optional text */
|
|
33
55
|
optionalText?: string;
|
|
34
|
-
|
|
56
|
+
/** Additional text */
|
|
35
57
|
additionalText?: string;
|
|
58
|
+
/** Invalid text, controls the overall invalid state of the text field */
|
|
59
|
+
invalidText?: string;
|
|
60
|
+
/** Disabled */
|
|
36
61
|
disabled?: boolean;
|
|
37
|
-
|
|
62
|
+
/** Change value handler */
|
|
38
63
|
onChange: (e: SyntheticEvent<TSinchInputElement, CustomEvent<string>>) => void;
|
|
39
64
|
};
|
package/link/index.d.ts
CHANGED
package/link/index.js
CHANGED
|
@@ -7,7 +7,7 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
|
|
|
7
7
|
|
|
8
8
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
9
9
|
|
|
10
|
-
import '../icons/
|
|
10
|
+
import '../icons/open-in-new';
|
|
11
11
|
import { defineCustomElement, getBooleanAttribute, getAttribute, updateBooleanAttribute, updateAttribute, NectaryElement, isAttrTrue } from '../utils';
|
|
12
12
|
const templateHTML = '<style>:host{display:inline;outline:0}a{font:var(--sinch-font-body);font-size:inherit;line-height:inherit;color:var(--sinch-color-text-link);fill:var(--sinch-color-text-link);--sinch-size-icon:1em}#icon{display:none;margin-left:.2em;vertical-align:-.25em}a:hover{color:var(--sinch-color-tropical-600);fill:var(--sinch-color-tropical-600)}:host([disabled]:not([disabled=false])) a{color:var(--sinch-color-tropical-200);pointer-events:none;cursor:initial;fill:var(--sinch-color-tropical-200)}:host([external]:not([external=false])) #icon{display:inline-block}</style><a><span id="content"></span><sinch-icon-open-in-new id="icon"></sinch-icon-open-in-new></a>';
|
|
13
13
|
const template = document.createElement('template');
|
package/package.json
CHANGED
package/pagination/types.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import type { SyntheticEvent } from 'react';
|
|
|
3
3
|
export declare type TSinchPaginationElement = HTMLElement & {
|
|
4
4
|
value: number;
|
|
5
5
|
max: number;
|
|
6
|
-
focus(): void;
|
|
7
|
-
blur(): void;
|
|
8
6
|
readonly prevButtonRect: TRect;
|
|
9
7
|
readonly nextButtonRect: TRect;
|
|
10
8
|
nthButtonRect(index: number): TRect | null;
|
package/popover/index.js
CHANGED
|
@@ -153,7 +153,7 @@ defineCustomElement('sinch-popover', (_$target = new WeakMap(), _$dialog = new W
|
|
|
153
153
|
|
|
154
154
|
_classPrivateFieldGet(this, _$dialog).addEventListener('cancel', _classPrivateFieldGet(this, _onCancel));
|
|
155
155
|
|
|
156
|
-
_classPrivateFieldGet(this, _$dialog).addEventListener('
|
|
156
|
+
_classPrivateFieldGet(this, _$dialog).addEventListener('mousedown', _classPrivateFieldGet(this, _onBackdropClick));
|
|
157
157
|
|
|
158
158
|
this.addEventListener('close', _classPrivateFieldGet(this, _onCloseReactHandler));
|
|
159
159
|
|
|
@@ -169,7 +169,7 @@ defineCustomElement('sinch-popover', (_$target = new WeakMap(), _$dialog = new W
|
|
|
169
169
|
disconnectedCallback() {
|
|
170
170
|
_classPrivateFieldGet(this, _$dialog).removeEventListener('cancel', _classPrivateFieldGet(this, _onCancel));
|
|
171
171
|
|
|
172
|
-
_classPrivateFieldGet(this, _$dialog).removeEventListener('
|
|
172
|
+
_classPrivateFieldGet(this, _$dialog).removeEventListener('mousedown', _classPrivateFieldGet(this, _onBackdropClick));
|
|
173
173
|
|
|
174
174
|
this.removeEventListener('close', _classPrivateFieldGet(this, _onCloseReactHandler));
|
|
175
175
|
|
package/radio-option/types.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ export declare type TSinchRadioOptionElement = HTMLElement & {
|
|
|
4
4
|
checked: boolean;
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
text: string;
|
|
7
|
-
focus(): void;
|
|
8
|
-
blur(): void;
|
|
9
7
|
setAttribute(name: 'value', value: string): void;
|
|
10
8
|
setAttribute(name: 'checked', value: ''): void;
|
|
11
9
|
setAttribute(name: 'disabled', value: ''): void;
|
package/search/types.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ export declare type TSinchSearchElement = HTMLElement & {
|
|
|
9
9
|
selectionEnd: HTMLInputElement['selectionEnd'];
|
|
10
10
|
selectionDirection: HTMLInputElement['selectionDirection'];
|
|
11
11
|
readonly dropdownRect: TRect;
|
|
12
|
-
focus(): void;
|
|
13
|
-
blur(): void;
|
|
14
12
|
addEventListener(type: 'change', listener: (e: CustomEvent<string>) => void): void;
|
|
15
13
|
setAttribute(name: 'value', value: string): void;
|
|
16
14
|
setAttribute(name: 'label', value: string): void;
|
package/segment/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _classPrivateFieldGet from '@babel/runtime/helpers/classPrivateFieldGet';
|
|
2
2
|
import _classPrivateFieldSet from '@babel/runtime/helpers/classPrivateFieldSet';
|
|
3
3
|
|
|
4
|
-
var _$caption, _$previewSlot, _$previewWrapper, _$infoSlot, _$infoWrapper, _$collapseSlot, _$collapseWrapper, _onPreviewSlotChange, _onInfoSlotChange, _onCollapseSlotChange;
|
|
4
|
+
var _$caption, _$previewSlot, _$previewWrapper, _$infoSlot, _$infoWrapper, _$collapseSlot, _$collapseWrapper, _$actionSlot, _$actionWrapper, _onPreviewSlotChange, _onInfoSlotChange, _onCollapseSlotChange, _onActionSlotChange;
|
|
5
5
|
|
|
6
6
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
7
7
|
|
|
@@ -10,11 +10,11 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
10
10
|
import '../title';
|
|
11
11
|
import { getTitleLevelFromType } from '../title/utils';
|
|
12
12
|
import { defineCustomElement, getAttribute, getBooleanAttribute, getLiteralAttribute, getRect, isAttrTrue, NectaryElement, setClass, updateAttribute, updateBooleanAttribute, updateLiteralAttribute } from '../utils';
|
|
13
|
-
const templateHTML = '<style>:host{display:block}#wrapper{display:flex;flex-direction:column;gap:16px;width:100%;height:100%;border:1px solid var(--sinch-color-snow-700);border-radius:var(--sinch-shape-radius-l);box-sizing:border-box;background-color:var(--sinch-color-snow-100);color:var(--sinch-color-text-default);font:var(--sinch-font-body);box-shadow:var(--sinch-elevation-level-2);padding:8px 24px 16px
|
|
13
|
+
const templateHTML = '<style>:host{display:block}#wrapper{display:flex;flex-direction:column;gap:16px;width:100%;height:100%;border:1px solid var(--sinch-color-snow-700);border-radius:var(--sinch-shape-radius-l);box-sizing:border-box;background-color:var(--sinch-color-snow-100);color:var(--sinch-color-text-default);font:var(--sinch-font-body);box-shadow:var(--sinch-elevation-level-2);padding:8px 24px 16px}#header{display:flex;flex-direction:row;align-items:center;height:48px;gap:8px;--sinch-size-icon:32px}#caption{font:var(--sinch-font-title-l);color:var(--sinch-color-text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:1em}#info{display:flex;flex-direction:row;align-items:center;gap:8px;margin-left:auto;align-self:stretch}#info.empty{display:none}#preview{flex:1;flex-basis:auto;height:48px;min-width:0;overflow:hidden;margin-left:24px}#preview.empty{display:none}#info.empty+#collapse{margin-left:auto}#collapse.empty{display:none}#preview:not(.empty)+#info.empty+#collapse:not(.empty),#preview:not(.empty)+#info:not(.empty){margin-left:24px}#content-wrapper{flex:1;min-height:0;overflow-y:auto}#action{display:flex;flex-direction:row;justify-content:flex-end;gap:16px}#action.empty{display:none}:host([collapsed]:not([collapsed=false])) :is(#content-wrapper,#action){display:none}:host([collapsed]:not([collapsed=false])) #wrapper{padding-bottom:8px}::slotted([slot=icon]){margin-right:8px}</style><div id="wrapper"><div id="header"><slot name="icon"></slot><sinch-title id="caption" level="3" type="m"></sinch-title><div id="preview"><slot name="preview"></slot></div><div id="info"><slot name="info"></slot></div><div id="collapse"><slot name="collapse"></slot></div></div><div id="content-wrapper"><slot name="content"></slot></div><div id="action"><slot name="action"></slot></div></div>';
|
|
14
14
|
import { assertSize, sizeValues } from './utils';
|
|
15
15
|
const template = document.createElement('template');
|
|
16
16
|
template.innerHTML = templateHTML;
|
|
17
|
-
defineCustomElement('sinch-segment', (_$caption = new WeakMap(), _$previewSlot = new WeakMap(), _$previewWrapper = new WeakMap(), _$infoSlot = new WeakMap(), _$infoWrapper = new WeakMap(), _$collapseSlot = new WeakMap(), _$collapseWrapper = new WeakMap(), _onPreviewSlotChange = new WeakMap(), _onInfoSlotChange = new WeakMap(), _onCollapseSlotChange = new WeakMap(), class extends NectaryElement {
|
|
17
|
+
defineCustomElement('sinch-segment', (_$caption = new WeakMap(), _$previewSlot = new WeakMap(), _$previewWrapper = new WeakMap(), _$infoSlot = new WeakMap(), _$infoWrapper = new WeakMap(), _$collapseSlot = new WeakMap(), _$collapseWrapper = new WeakMap(), _$actionSlot = new WeakMap(), _$actionWrapper = new WeakMap(), _onPreviewSlotChange = new WeakMap(), _onInfoSlotChange = new WeakMap(), _onCollapseSlotChange = new WeakMap(), _onActionSlotChange = new WeakMap(), class extends NectaryElement {
|
|
18
18
|
constructor() {
|
|
19
19
|
super();
|
|
20
20
|
|
|
@@ -53,6 +53,16 @@ defineCustomElement('sinch-segment', (_$caption = new WeakMap(), _$previewSlot =
|
|
|
53
53
|
value: void 0
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
+
_classPrivateFieldInitSpec(this, _$actionSlot, {
|
|
57
|
+
writable: true,
|
|
58
|
+
value: void 0
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
_classPrivateFieldInitSpec(this, _$actionWrapper, {
|
|
62
|
+
writable: true,
|
|
63
|
+
value: void 0
|
|
64
|
+
});
|
|
65
|
+
|
|
56
66
|
_classPrivateFieldInitSpec(this, _onPreviewSlotChange, {
|
|
57
67
|
writable: true,
|
|
58
68
|
value: () => {
|
|
@@ -74,6 +84,13 @@ defineCustomElement('sinch-segment', (_$caption = new WeakMap(), _$previewSlot =
|
|
|
74
84
|
}
|
|
75
85
|
});
|
|
76
86
|
|
|
87
|
+
_classPrivateFieldInitSpec(this, _onActionSlotChange, {
|
|
88
|
+
writable: true,
|
|
89
|
+
value: () => {
|
|
90
|
+
setClass(_classPrivateFieldGet(this, _$actionWrapper), 'empty', _classPrivateFieldGet(this, _$actionSlot).assignedElements().length === 0);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
77
94
|
const shadowRoot = this.attachShadow();
|
|
78
95
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
79
96
|
|
|
@@ -85,11 +102,15 @@ defineCustomElement('sinch-segment', (_$caption = new WeakMap(), _$previewSlot =
|
|
|
85
102
|
|
|
86
103
|
_classPrivateFieldSet(this, _$collapseSlot, shadowRoot.querySelector('slot[name="collapse"]'));
|
|
87
104
|
|
|
105
|
+
_classPrivateFieldSet(this, _$actionSlot, shadowRoot.querySelector('slot[name="action"]'));
|
|
106
|
+
|
|
88
107
|
_classPrivateFieldSet(this, _$previewWrapper, shadowRoot.querySelector('#preview'));
|
|
89
108
|
|
|
90
109
|
_classPrivateFieldSet(this, _$infoWrapper, shadowRoot.querySelector('#info'));
|
|
91
110
|
|
|
92
111
|
_classPrivateFieldSet(this, _$collapseWrapper, shadowRoot.querySelector('#collapse'));
|
|
112
|
+
|
|
113
|
+
_classPrivateFieldSet(this, _$actionWrapper, shadowRoot.querySelector('#action'));
|
|
93
114
|
}
|
|
94
115
|
|
|
95
116
|
connectedCallback() {
|
|
@@ -99,11 +120,15 @@ defineCustomElement('sinch-segment', (_$caption = new WeakMap(), _$previewSlot =
|
|
|
99
120
|
|
|
100
121
|
_classPrivateFieldGet(this, _$collapseSlot).addEventListener('slotchange', _classPrivateFieldGet(this, _onCollapseSlotChange));
|
|
101
122
|
|
|
123
|
+
_classPrivateFieldGet(this, _$actionSlot).addEventListener('slotchange', _classPrivateFieldGet(this, _onActionSlotChange));
|
|
124
|
+
|
|
102
125
|
_classPrivateFieldGet(this, _onPreviewSlotChange).call(this);
|
|
103
126
|
|
|
104
127
|
_classPrivateFieldGet(this, _onInfoSlotChange).call(this);
|
|
105
128
|
|
|
106
129
|
_classPrivateFieldGet(this, _onCollapseSlotChange).call(this);
|
|
130
|
+
|
|
131
|
+
_classPrivateFieldGet(this, _onActionSlotChange).call(this);
|
|
107
132
|
}
|
|
108
133
|
|
|
109
134
|
disconnectedCallback() {
|
|
@@ -112,6 +137,8 @@ defineCustomElement('sinch-segment', (_$caption = new WeakMap(), _$previewSlot =
|
|
|
112
137
|
_classPrivateFieldGet(this, _$infoSlot).removeEventListener('slotchange', _classPrivateFieldGet(this, _onInfoSlotChange));
|
|
113
138
|
|
|
114
139
|
_classPrivateFieldGet(this, _$collapseSlot).removeEventListener('slotchange', _classPrivateFieldGet(this, _onCollapseSlotChange));
|
|
140
|
+
|
|
141
|
+
_classPrivateFieldGet(this, _$actionSlot).removeEventListener('slotchange', _classPrivateFieldGet(this, _onActionSlotChange));
|
|
115
142
|
}
|
|
116
143
|
|
|
117
144
|
static get observedAttributes() {
|
|
@@ -2,8 +2,6 @@ import type { TSinchElementReact } from '../types';
|
|
|
2
2
|
import type { SyntheticEvent } from 'react';
|
|
3
3
|
export declare type TSinchSegmentExpandElement = HTMLElement & {
|
|
4
4
|
value: boolean;
|
|
5
|
-
focus(): void;
|
|
6
|
-
blur(): void;
|
|
7
5
|
addEventListener(type: 'change', listener: (e: CustomEvent<boolean>) => void): void;
|
|
8
6
|
setAttribute(name: 'value', value: string): void;
|
|
9
7
|
};
|
|
@@ -8,7 +8,7 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
|
|
|
8
8
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
9
9
|
|
|
10
10
|
import { defineCustomElement, getAttribute, getBooleanAttribute, isAttrTrue, NectaryElement, updateAttribute, updateBooleanAttribute, updateExplicitBooleanAttribute } from '../utils';
|
|
11
|
-
const templateHTML = '<style>:host{display:block;outline:0}#wrapper{display:flex;position:relative;flex-direction:row;align-items:center;gap:12px;width:100%;height:
|
|
11
|
+
const templateHTML = '<style>:host{display:block;outline:0}#wrapper{display:flex;position:relative;flex-direction:row;align-items:center;gap:12px;width:100%;height:32px;padding:0 16px;box-sizing:border-box;border:1px solid var(--sinch-color-snow-600);border-left-width:0;border-right-width:0;color:var(--sinch-color-stormy-500);background-color:var(--sinch-color-snow-100);--sinch-color-icon:var(--sinch-color-stormy-500);--sinch-size-icon:16px}#wrapper:hover{background-color:var(--sinch-color-snow-500)}:host(:first-child) #wrapper{border-left-width:1px;border-top-left-radius:4px;border-bottom-left-radius:4px}:host(:last-child) #wrapper{border-right-width:1px;border-top-right-radius:4px;border-bottom-right-radius:4px}#content{font:var(--sinch-font-title-s);flex-shrink:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([checked]:not([checked=false])) #wrapper{border-color:var(--sinch-color-stormy-500)}:host([checked]:not([checked=false]):not(:first-child)) #wrapper::before{content:"";width:1px;background-color:var(--sinch-color-stormy-500);position:absolute;left:0;top:-1px;bottom:-1px}:host([checked]:not([checked=false]):not(:last-child)) #wrapper::after{content:"";width:1px;background-color:var(--sinch-color-stormy-500);position:absolute;right:0;top:-1px;bottom:-1px}#button{all:initial;position:absolute;left:0;top:0;box-sizing:border-box;width:100%;height:100%;cursor:pointer;z-index:1}#button:disabled{cursor:unset}#button:focus::before{content:"";position:absolute;left:-3px;right:-3px;top:-4px;bottom:-4px;border-style:solid;border-color:var(--sinch-color-aqua-400);border-width:0}#button:focus-visible::before{border-width:2px}:host(:first-child) #button:focus::before{left:-4px;border-top-left-radius:6px;border-bottom-left-radius:6px}:host(:last-child) #button:focus::before{right:-4px;border-top-right-radius:6px;border-bottom-right-radius:6px}@supports not selector(:focus-visible){#button:focus::before{border-width:2px}}:host([disabled]:not([disabled=false])) #wrapper{background-color:var(--sinch-color-snow-100);color:var(--sinch-color-stormy-100);--sinch-color-icon:var(--sinch-color-stormy-100)}</style><div id="wrapper"><slot name="icon"></slot><label for="button" id="content"></label> <button id="button"></button></div>';
|
|
12
12
|
const template = document.createElement('template');
|
|
13
13
|
template.innerHTML = templateHTML;
|
|
14
14
|
defineCustomElement('sinch-segmented-control-option', (_$button = new WeakMap(), _$label = new WeakMap(), _onClick = new WeakMap(), class extends NectaryElement {
|
|
@@ -3,8 +3,6 @@ export declare type TSinchSegmentedControlOptionElement = HTMLElement & {
|
|
|
3
3
|
value: string;
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
text: string;
|
|
6
|
-
focus(): void;
|
|
7
|
-
blur(): void;
|
|
8
6
|
setAttribute(name: 'value', value: string): void;
|
|
9
7
|
setAttribute(name: 'text', value: string): void;
|
|
10
8
|
setAttribute(name: 'disabled', value: ''): void;
|
|
@@ -2,8 +2,6 @@ import type { TSinchElementReact } from '../types';
|
|
|
2
2
|
export declare type TSinchSegmentedIconControlOptionElement = HTMLElement & {
|
|
3
3
|
value: string;
|
|
4
4
|
disabled: boolean;
|
|
5
|
-
focus(): void;
|
|
6
|
-
blur(): void;
|
|
7
5
|
setAttribute(name: 'value', value: string): void;
|
|
8
6
|
setAttribute(name: 'disabled', value: ''): void;
|
|
9
7
|
};
|
package/select/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(
|
|
|
13
13
|
|
|
14
14
|
import '../dropdown';
|
|
15
15
|
import { defineCustomElement, getAttribute, getBooleanAttribute, getIntegerAttribute, isAttrTrue, NectaryElement, updateAttribute, updateBooleanAttribute, updateExplicitBooleanAttribute, updateIntegerAttribute } from '../utils';
|
|
16
|
-
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0;--sinch-color-icon:var(--sinch-color-stormy-500)}#wrapper{position:relative;--sinch-popover-expand-width:1}sinch-dropdown{display:block}#button{all:initial;display:flex;align-items:center;gap:8px;border:1px solid var(--sinch-color-stormy-200);border-radius:var(--sinch-shape-radius-s);box-sizing:border-box;width:100%;height:48px;margin:2px 0;padding:8px 12px;font:var(--sinch-font-body);color:var(--sinch-color-text-default);background-color:var(--sinch-color-snow-100);cursor:pointer}#button:focus{border-color:var(--sinch-color-stormy-600)}#dropdown-icon{fill:var(--sinch-color-stormy-500)}#button>*{pointer-events:none}#button[data-unselected]{color:var(--sinch-color-text-muted)}#button:disabled{border-color:var(--sinch-color-snow-500);color:var(--sinch-color-stormy-100);cursor:initial}#button:disabled #dropdown-icon{fill:var(--sinch-color-stormy-100)}:host([invalidtext]:not([invalidtext=""])) #button:not(:disabled){border-color:var(--sinch-color-text-invalid)}#content{flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#bottom,#top{display:flex;align-items:baseline}#top{height:24px}#bottom{height:20px}#additional,#invalid,#label,#optional{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#label{font:var(--sinch-font-title-s);color:var(--sinch-color-text-default)}#optional{flex:1;text-align:right;font:var(--sinch-font-small-text);color:var(--sinch-color-text-muted)}#additional{flex:1;text-align:right;font:var(--sinch-font-extra-small-text);color:var(--sinch-color-text-muted)}#invalid{font:var(--sinch-font-extra-small-text);color:var(--sinch-color-text-invalid)}::slotted(sinch-help-tooltip){align-self:center;margin:0 8px}:host([disabled]:not([disabled=false])) :is(#label,#additional,#optional,#invalid){color:var(--sinch-color-stormy-100)}:host([disabled]:not([disabled=false])){--sinch-color-icon:var(--sinch-color-stormy-100)}</style><div id="wrapper"><div id="top"><label id="label" for="
|
|
16
|
+
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0;--sinch-color-icon:var(--sinch-color-stormy-500)}#wrapper{position:relative;--sinch-popover-expand-width:1}sinch-dropdown{display:block}#button{all:initial;display:flex;align-items:center;gap:8px;border:1px solid var(--sinch-color-stormy-200);border-radius:var(--sinch-shape-radius-s);box-sizing:border-box;width:100%;height:48px;margin:2px 0;padding:8px 12px;font:var(--sinch-font-body);color:var(--sinch-color-text-default);background-color:var(--sinch-color-snow-100);cursor:pointer}#button:focus{border-color:var(--sinch-color-stormy-600)}#dropdown-icon{fill:var(--sinch-color-stormy-500)}#button>*{pointer-events:none}#button[data-unselected]{color:var(--sinch-color-text-muted)}#button:disabled{border-color:var(--sinch-color-snow-500);color:var(--sinch-color-stormy-100);cursor:initial}#button:disabled #dropdown-icon{fill:var(--sinch-color-stormy-100)}:host([invalidtext]:not([invalidtext=""])) #button:not(:disabled){border-color:var(--sinch-color-text-invalid)}#content{flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#bottom,#top{display:flex;align-items:baseline}#top{height:24px}#bottom{height:20px}#additional,#invalid,#label,#optional{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#label{font:var(--sinch-font-title-s);color:var(--sinch-color-text-default)}#optional{flex:1;text-align:right;font:var(--sinch-font-small-text);color:var(--sinch-color-text-muted)}#additional{flex:1;text-align:right;font:var(--sinch-font-extra-small-text);color:var(--sinch-color-text-muted)}#invalid{font:var(--sinch-font-extra-small-text);color:var(--sinch-color-text-invalid)}::slotted(sinch-help-tooltip){align-self:center;margin:0 8px}:host([disabled]:not([disabled=false])) :is(#label,#additional,#optional,#invalid){color:var(--sinch-color-stormy-100)}:host([disabled]:not([disabled=false])){--sinch-color-icon:var(--sinch-color-stormy-100)}</style><div id="wrapper"><div id="top"><label id="label" for="button"></label><slot name="tooltip"></slot><span id="optional"></span></div><sinch-dropdown id="dropdown"><button slot="target" id="button"><span id="content"></span> <svg id="dropdown-icon" width="12" height="8" aria-hidden="true"><path d="M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2 1.41.59Z"/></svg></button><slot name="option" slot="option"></slot></sinch-dropdown><div id="bottom"><span id="invalid"></span> <span id="additional"></span></div></div>';
|
|
17
17
|
const template = document.createElement('template');
|
|
18
18
|
template.innerHTML = templateHTML;
|
|
19
19
|
defineCustomElement('sinch-select', (_$button = new WeakMap(), _$buttonContent = new WeakMap(), _$label = new WeakMap(), _$optionalText = new WeakMap(), _$additionalText = new WeakMap(), _$invalidText = new WeakMap(), _$dropdown = new WeakMap(), _$optionSlot = new WeakMap(), _$sh = new WeakMap(), _createElement = new WeakSet(), _updateButtonContent = new WeakSet(), _onValueChange = new WeakMap(), _getOptionWithValue = new WeakSet(), _onLabelClick = new WeakMap(), _onDropdownClick = new WeakMap(), _onDropdownClose = new WeakMap(), class extends NectaryElement {
|
package/select/types.d.ts
CHANGED
|
@@ -10,8 +10,6 @@ export declare type TSinchSelectElement = HTMLElement & {
|
|
|
10
10
|
maxVisibleItems: number | null;
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
readonly dropdownRect: TRect;
|
|
13
|
-
focus(): void;
|
|
14
|
-
blur(): void;
|
|
15
13
|
addEventListener(type: 'change', listener: (e: CustomEvent<string>) => void): void;
|
|
16
14
|
setAttribute(name: 'value', value: string): void;
|
|
17
15
|
setAttribute(name: 'label', value: string): void;
|
package/tabs-option/types.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ export declare type TSinchTabsOptionElement = HTMLElement & {
|
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
checked: boolean;
|
|
6
6
|
text: string;
|
|
7
|
-
focus(): void;
|
|
8
|
-
blur(): void;
|
|
9
7
|
setAttribute(name: 'value', value: string): void;
|
|
10
8
|
setAttribute(name: 'disabled', value: ''): void;
|
|
11
9
|
setAttribute(name: 'checked', value: ''): void;
|
package/tag-close/types.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import type { TSinchElementReact } from '../types';
|
|
2
|
-
export declare type TSinchTagCloseElement = HTMLElement
|
|
3
|
-
focus(): void;
|
|
4
|
-
blur(): void;
|
|
5
|
-
};
|
|
2
|
+
export declare type TSinchTagCloseElement = HTMLElement;
|
|
6
3
|
export declare type TSinchTagCloseReact = TSinchElementReact<TSinchTagCloseElement>;
|
package/text/index.js
CHANGED
|
@@ -7,9 +7,7 @@ template.innerHTML = templateHTML;
|
|
|
7
7
|
defineCustomElement('sinch-text', class extends NectaryElement {
|
|
8
8
|
constructor() {
|
|
9
9
|
super();
|
|
10
|
-
const shadowRoot = this.attachShadow(
|
|
11
|
-
delegatesFocus: false
|
|
12
|
-
});
|
|
10
|
+
const shadowRoot = this.attachShadow();
|
|
13
11
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
14
12
|
}
|
|
15
13
|
|
package/textarea/types.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ export declare type TSinchTextareaElement = HTMLElement & {
|
|
|
13
13
|
selectionDirection: HTMLTextAreaElement['selectionDirection'];
|
|
14
14
|
rows: HTMLTextAreaElement['rows'];
|
|
15
15
|
resizable: boolean;
|
|
16
|
-
focus(): void;
|
|
17
|
-
blur(): void;
|
|
18
16
|
addEventListener(type: 'change', listener: (e: CustomEvent<string>) => void): void;
|
|
19
17
|
setAttribute(name: 'value', value: string): void;
|
|
20
18
|
setAttribute(name: 'label', value: string): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import '../icon-button';
|
|
2
|
+
import '../icons/done';
|
|
3
|
+
import '../icons/arrow-drop-up';
|
|
4
|
+
import '../icons/arrow-drop-down';
|
|
5
|
+
import '../segmented-control';
|
|
6
|
+
import '../segmented-control-option';
|
|
7
|
+
import type { TSinchTimePickerElement, TSinchTimePickerReact } from './types';
|
|
8
|
+
declare global {
|
|
9
|
+
namespace JSX {
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
'sinch-time-picker': TSinchTimePickerReact;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
'sinch-time-picker': TSinchTimePickerElement;
|
|
16
|
+
}
|
|
17
|
+
}
|