@nectary/components 4.8.2 → 4.9.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/index.d.ts +8 -4
- package/accordion/types.d.ts +11 -16
- package/accordion-item/index.d.ts +8 -4
- package/accordion-item/types.d.ts +30 -47
- package/action-menu/index.d.ts +8 -4
- package/action-menu/types.d.ts +7 -8
- package/action-menu-option/index.d.ts +8 -4
- package/action-menu-option/types.d.ts +28 -32
- package/action-menu-option/utils.d.ts +1 -2
- package/alert/index.d.ts +8 -4
- package/alert/types.d.ts +22 -27
- package/avatar/index.d.ts +8 -4
- package/avatar/types.d.ts +25 -42
- package/badge/index.d.ts +8 -4
- package/badge/types.d.ts +18 -32
- package/button/index.d.ts +8 -4
- package/button/types.d.ts +140 -160
- package/button-group/index.d.ts +8 -4
- package/button-group/types.d.ts +10 -9
- package/button-group-item/index.d.ts +8 -4
- package/button-group-item/types.d.ts +42 -42
- package/card/index.d.ts +8 -4
- package/card/types.d.ts +8 -19
- package/card-container/index.d.ts +7 -4
- package/card-container/types.d.ts +2 -2
- package/card-v2/index.d.ts +8 -4
- package/card-v2/types.d.ts +41 -53
- package/card-v2-title/index.d.ts +8 -4
- package/card-v2-title/types.d.ts +21 -33
- package/checkbox/index.d.ts +8 -4
- package/checkbox/types.d.ts +45 -65
- package/chip/index.d.ts +8 -4
- package/chip/types.d.ts +30 -44
- package/code-tag/index.d.ts +8 -4
- package/code-tag/types.d.ts +15 -16
- package/color-menu/index.d.ts +8 -4
- package/color-menu/types.d.ts +15 -22
- package/color-menu-option/index.d.ts +8 -4
- package/color-menu-option/types.d.ts +14 -15
- package/color-swatch/index.d.ts +8 -4
- package/color-swatch/types.d.ts +15 -16
- package/date-picker/index.d.ts +8 -4
- package/date-picker/types.d.ts +50 -79
- package/dialog/index.d.ts +8 -4
- package/dialog/types.d.ts +30 -34
- package/emoji/index.d.ts +8 -4
- package/emoji/types.d.ts +11 -12
- package/emoji-picker/index.d.ts +8 -4
- package/emoji-picker/types.d.ts +25 -18
- package/field/index.d.ts +8 -4
- package/field/types.d.ts +21 -38
- package/file-drop/index.d.ts +8 -4
- package/file-drop/types.d.ts +33 -55
- package/file-picker/index.d.ts +8 -4
- package/file-picker/types.d.ts +12 -22
- package/file-status/index.d.ts +8 -4
- package/file-status/types.d.ts +27 -32
- package/flag/index.d.ts +8 -4
- package/flag/types.d.ts +10 -11
- package/grid/index.d.ts +8 -4
- package/grid/types.d.ts +19 -17
- package/grid-item/index.d.ts +8 -4
- package/grid-item/types.d.ts +7 -12
- package/help-tooltip/index.d.ts +8 -4
- package/help-tooltip/types.d.ts +11 -6
- package/horizontal-stepper/index.d.ts +8 -4
- package/horizontal-stepper/types.d.ts +37 -38
- package/horizontal-stepper-item/index.d.ts +8 -4
- package/horizontal-stepper-item/types.d.ts +30 -39
- package/icon/index.d.ts +8 -4
- package/icon/types.d.ts +18 -28
- package/inline-alert/index.d.ts +8 -4
- package/inline-alert/types.d.ts +30 -33
- package/input/index.d.ts +8 -4
- package/input/types.d.ts +54 -89
- package/link/index.d.ts +8 -4
- package/link/types.d.ts +31 -57
- package/list/index.d.ts +7 -4
- package/list/types.d.ts +2 -2
- package/list-item/index.d.ts +8 -4
- package/list-item/types.d.ts +10 -8
- package/package.json +2 -2
- package/pagination/index.d.ts +8 -4
- package/pagination/types.d.ts +31 -27
- package/persistent-overlay/index.d.ts +8 -4
- package/persistent-overlay/types.d.ts +19 -21
- package/pop/index.d.ts +8 -4
- package/pop/types.d.ts +13 -23
- package/popover/index.d.ts +8 -4
- package/popover/types.d.ts +20 -32
- package/progress/index.d.ts +8 -4
- package/progress/types.d.ts +13 -14
- package/progress-stepper/index.d.ts +8 -4
- package/progress-stepper/types.d.ts +10 -15
- package/progress-stepper-item/index.d.ts +8 -4
- package/progress-stepper-item/types.d.ts +35 -44
- package/radio/index.d.ts +8 -4
- package/radio/types.d.ts +16 -15
- package/radio-option/index.d.ts +8 -4
- package/radio-option/types.d.ts +35 -40
- package/rich-text/index.d.ts +8 -4
- package/rich-text/types.d.ts +31 -31
- package/rich-text/utils.js +1 -1
- package/rich-textarea/index.d.ts +8 -4
- package/rich-textarea/types.d.ts +37 -43
- package/segment/index.d.ts +8 -4
- package/segment/types.d.ts +18 -21
- package/segment-collapse/index.d.ts +8 -4
- package/segment-collapse/types.d.ts +15 -12
- package/segmented-control/index.d.ts +8 -4
- package/segmented-control/types.d.ts +11 -8
- package/segmented-control-option/index.d.ts +8 -4
- package/segmented-control-option/types.d.ts +32 -34
- package/segmented-icon-control/index.d.ts +8 -4
- package/segmented-icon-control/types.d.ts +11 -10
- package/segmented-icon-control-option/index.d.ts +8 -4
- package/segmented-icon-control-option/types.d.ts +28 -28
- package/select-button/index.d.ts +12 -4
- package/select-button/types.d.ts +38 -58
- package/select-menu/index.d.ts +8 -4
- package/select-menu/types.d.ts +18 -38
- package/select-menu-option/index.d.ts +8 -4
- package/select-menu-option/types.d.ts +27 -33
- package/select-menu-option/utils.d.ts +2 -2
- package/skeleton/index.d.ts +8 -4
- package/skeleton/types.d.ts +14 -13
- package/skeleton-item/index.d.ts +8 -4
- package/skeleton-item/types.d.ts +20 -19
- package/spinner/index.d.ts +8 -4
- package/spinner/types.d.ts +12 -13
- package/table/index.d.ts +7 -4
- package/table/types.d.ts +2 -2
- package/table-body/index.d.ts +7 -4
- package/table-body/types.d.ts +2 -2
- package/table-cell/index.d.ts +8 -4
- package/table-cell/types.d.ts +11 -10
- package/table-head/index.d.ts +7 -4
- package/table-head/types.d.ts +2 -2
- package/table-head-cell/index.d.ts +8 -4
- package/table-head-cell/types.d.ts +15 -18
- package/table-row/index.d.ts +8 -4
- package/table-row/types.d.ts +14 -15
- package/tabs/index.d.ts +8 -4
- package/tabs/types.d.ts +19 -16
- package/tabs-icon-option/index.d.ts +8 -4
- package/tabs-icon-option/types.d.ts +21 -26
- package/tabs-option/index.d.ts +8 -4
- package/tabs-option/types.d.ts +26 -35
- package/tag/index.d.ts +8 -4
- package/tag/types.d.ts +22 -35
- package/text/index.d.ts +8 -4
- package/text/types.d.ts +21 -34
- package/textarea/index.d.ts +8 -4
- package/textarea/types.d.ts +30 -56
- package/tile-control/index.d.ts +8 -4
- package/tile-control/types.d.ts +15 -27
- package/tile-control-option/index.d.ts +8 -4
- package/tile-control-option/types.d.ts +41 -55
- package/time-picker/index.d.ts +8 -4
- package/time-picker/types.d.ts +42 -47
- package/title/index.d.ts +8 -4
- package/title/types.d.ts +18 -31
- package/toast/index.d.ts +8 -4
- package/toast/types.d.ts +31 -39
- package/toast-manager/index.d.ts +8 -4
- package/toast-manager/types.d.ts +13 -10
- package/toggle/index.d.ts +8 -4
- package/toggle/types.d.ts +29 -34
- package/tooltip/index.d.ts +8 -4
- package/tooltip/types.d.ts +25 -39
- package/types.d.ts +20 -6
- package/utils/adapters.d.ts +30 -0
- package/utils/adapters.js +1 -0
- package/vertical-stepper/index.d.ts +8 -4
- package/vertical-stepper/types.d.ts +29 -30
- package/vertical-stepper-item/index.d.ts +8 -4
- package/vertical-stepper-item/types.d.ts +34 -43
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
value: string;
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
text: string;
|
|
6
|
-
addEventListener(type: '-focus', listener: (e: CustomEvent<void>) => void): void;
|
|
7
|
-
addEventListener(type: '-blur', listener: (e: CustomEvent<void>) => void): void;
|
|
8
|
-
setAttribute(name: 'value', value: string): void;
|
|
9
|
-
setAttribute(name: 'text', value: string): void;
|
|
10
|
-
setAttribute(name: 'disabled', value: ''): void;
|
|
11
|
-
};
|
|
12
|
-
export type TSinchSegmentedControlOptionReact = TSinchElementReact<TSinchSegmentedControlOptionElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchSegmentedControlOptionProps = {
|
|
13
3
|
value: string;
|
|
14
4
|
text: string;
|
|
15
5
|
disabled?: boolean;
|
|
16
6
|
'aria-label': string;
|
|
17
|
-
'on-focus'?: (e: CustomEvent<void>) => void;
|
|
18
|
-
'on-blur'?: (e: CustomEvent<void>) => void;
|
|
19
|
-
} & {
|
|
20
|
-
style?: {
|
|
21
|
-
'--sinch-comp-segmented-control-shape-radius'?: string;
|
|
22
|
-
'--sinch-comp-segmented-control-color-default-text-initial'?: string;
|
|
23
|
-
'--sinch-comp-segmented-control-color-default-icon-initial'?: string;
|
|
24
|
-
'--sinch-comp-segmented-control-color-default-border-initial'?: string;
|
|
25
|
-
'--sinch-comp-segmented-control-color-default-background-initial'?: string;
|
|
26
|
-
'--sinch-comp-segmented-control-color-default-background-hover'?: string;
|
|
27
|
-
'--sinch-comp-segmented-control-color-default-outline-focus'?: string;
|
|
28
|
-
'--sinch-comp-segmented-control-color-checked-text-initial'?: string;
|
|
29
|
-
'--sinch-comp-segmented-control-color-checked-icon-initial'?: string;
|
|
30
|
-
'--sinch-comp-segmented-control-color-checked-border-initial'?: string;
|
|
31
|
-
'--sinch-comp-segmented-control-color-checked-background-initial'?: string;
|
|
32
|
-
'--sinch-comp-segmented-control-color-disabled-text-initial'?: string;
|
|
33
|
-
'--sinch-comp-segmented-control-color-disabled-icon-initial'?: string;
|
|
34
|
-
'--sinch-comp-segmented-control-color-disabled-border-initial'?: string;
|
|
35
|
-
'--sinch-comp-segmented-control-color-disabled-background-initial'?: string;
|
|
36
|
-
'--sinch-comp-segmented-control-font-label'?: string;
|
|
37
|
-
'--sinch-comp-segmented-control-size-icon'?: string;
|
|
38
|
-
};
|
|
39
7
|
};
|
|
8
|
+
export type TSinchSegmentedControlOptionEvents = {
|
|
9
|
+
'-focus'?: (e: CustomEvent<void>) => void;
|
|
10
|
+
'-blur'?: (e: CustomEvent<void>) => void;
|
|
11
|
+
};
|
|
12
|
+
export type TSinchSegmentedControlOptionStyle = {
|
|
13
|
+
'--sinch-comp-segmented-control-shape-radius'?: string;
|
|
14
|
+
'--sinch-comp-segmented-control-color-default-text-initial'?: string;
|
|
15
|
+
'--sinch-comp-segmented-control-color-default-icon-initial'?: string;
|
|
16
|
+
'--sinch-comp-segmented-control-color-default-border-initial'?: string;
|
|
17
|
+
'--sinch-comp-segmented-control-color-default-background-initial'?: string;
|
|
18
|
+
'--sinch-comp-segmented-control-color-default-background-hover'?: string;
|
|
19
|
+
'--sinch-comp-segmented-control-color-default-outline-focus'?: string;
|
|
20
|
+
'--sinch-comp-segmented-control-color-checked-text-initial'?: string;
|
|
21
|
+
'--sinch-comp-segmented-control-color-checked-icon-initial'?: string;
|
|
22
|
+
'--sinch-comp-segmented-control-color-checked-border-initial'?: string;
|
|
23
|
+
'--sinch-comp-segmented-control-color-checked-background-initial'?: string;
|
|
24
|
+
'--sinch-comp-segmented-control-color-disabled-text-initial'?: string;
|
|
25
|
+
'--sinch-comp-segmented-control-color-disabled-icon-initial'?: string;
|
|
26
|
+
'--sinch-comp-segmented-control-color-disabled-border-initial'?: string;
|
|
27
|
+
'--sinch-comp-segmented-control-color-disabled-background-initial'?: string;
|
|
28
|
+
'--sinch-comp-segmented-control-font-label'?: string;
|
|
29
|
+
'--sinch-comp-segmented-control-size-icon'?: string;
|
|
30
|
+
};
|
|
31
|
+
export type TSinchSegmentedControlOption = {
|
|
32
|
+
props: TSinchSegmentedControlOptionProps;
|
|
33
|
+
events: TSinchSegmentedControlOptionEvents;
|
|
34
|
+
style: TSinchSegmentedControlOptionStyle;
|
|
35
|
+
};
|
|
36
|
+
export type TSinchSegmentedControlOptionElement = NectaryComponentVanillaByType<TSinchSegmentedControlOption>;
|
|
37
|
+
export type TSinchSegmentedControlOptionReact = NectaryComponentReactByType<TSinchSegmentedControlOption>;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchSegmentedIconControl } from './types';
|
|
2
|
+
import type { NectaryComponentVanilla, NectaryComponentReact } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-segmented-icon-control': TSinchSegmentedIconControl;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-segmented-icon-control':
|
|
8
|
+
'sinch-segmented-icon-control': NectaryComponentVanilla<'sinch-segmented-icon-control'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-segmented-icon-control':
|
|
12
|
+
'sinch-segmented-icon-control': NectaryComponentReact<'sinch-segmented-icon-control'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-segmented-icon-control':
|
|
19
|
+
'sinch-segmented-icon-control': NectaryComponentReact<'sinch-segmented-icon-control'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
value: string;
|
|
4
|
-
multiple: boolean;
|
|
5
|
-
addEventListener(type: '-change', listener: (e: CustomEvent<string>) => void): void;
|
|
6
|
-
setAttribute(name: 'value', value: string): void;
|
|
7
|
-
setAttribute(name: 'multiple', value: ''): void;
|
|
8
|
-
};
|
|
9
|
-
export type TSinchSegmentedIconControlReact = TSinchElementReact<TSinchSegmentedIconControlElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchSegmentedIconControlProps = {
|
|
10
3
|
value: string;
|
|
11
4
|
multiple?: boolean;
|
|
12
5
|
'aria-label': string;
|
|
13
|
-
'on-change'?: (e: CustomEvent<string>) => void;
|
|
14
6
|
};
|
|
7
|
+
export type TSinchSegmentedIconControlEvents = {
|
|
8
|
+
'-change'?: (e: CustomEvent<string>) => void;
|
|
9
|
+
};
|
|
10
|
+
export type TSinchSegmentedIconControl = {
|
|
11
|
+
props: TSinchSegmentedIconControlProps;
|
|
12
|
+
events: TSinchSegmentedIconControlEvents;
|
|
13
|
+
};
|
|
14
|
+
export type TSinchSegmentedIconControlElement = NectaryComponentVanillaByType<TSinchSegmentedIconControl>;
|
|
15
|
+
export type TSinchSegmentedIconControlReact = NectaryComponentReactByType<TSinchSegmentedIconControl>;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchSegmentedIconControlOption } from './types';
|
|
2
|
+
import type { NectaryComponentVanilla, NectaryComponentReact } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-segmented-icon-control-option': TSinchSegmentedIconControlOption;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-segmented-icon-control-option':
|
|
8
|
+
'sinch-segmented-icon-control-option': NectaryComponentVanilla<'sinch-segmented-icon-control-option'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-segmented-icon-control-option':
|
|
12
|
+
'sinch-segmented-icon-control-option': NectaryComponentReact<'sinch-segmented-icon-control-option'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-segmented-icon-control-option':
|
|
19
|
+
'sinch-segmented-icon-control-option': NectaryComponentReact<'sinch-segmented-icon-control-option'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
value: string;
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
addEventListener(type: '-focus', listener: (e: CustomEvent<void>) => void): void;
|
|
6
|
-
addEventListener(type: '-blur', listener: (e: CustomEvent<void>) => void): void;
|
|
7
|
-
setAttribute(name: 'value', value: string): void;
|
|
8
|
-
setAttribute(name: 'disabled', value: ''): void;
|
|
9
|
-
};
|
|
10
|
-
export type TSinchSegmentedIconControlOptionReact = TSinchElementReact<TSinchSegmentedIconControlOptionElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchSegmentedIconControlOptionProps = {
|
|
11
3
|
value: string;
|
|
12
4
|
disabled?: boolean;
|
|
13
5
|
'aria-label': string;
|
|
14
|
-
'on-focus'?: (e: CustomEvent<void>) => void;
|
|
15
|
-
'on-blur'?: (e: CustomEvent<void>) => void;
|
|
16
|
-
} & {
|
|
17
|
-
style?: {
|
|
18
|
-
'--sinch-comp-segmented-control-shape-radius'?: string;
|
|
19
|
-
'--sinch-comp-segmented-control-color-default-icon-initial'?: string;
|
|
20
|
-
'--sinch-comp-segmented-control-color-default-border-initial'?: string;
|
|
21
|
-
'--sinch-comp-segmented-control-color-default-background-initial'?: string;
|
|
22
|
-
'--sinch-comp-segmented-control-color-default-background-hover'?: string;
|
|
23
|
-
'--sinch-comp-segmented-control-color-default-outline-focus'?: string;
|
|
24
|
-
'--sinch-comp-segmented-control-color-checked-icon-initial'?: string;
|
|
25
|
-
'--sinch-comp-segmented-control-color-checked-border-initial'?: string;
|
|
26
|
-
'--sinch-comp-segmented-control-color-checked-background-initial'?: string;
|
|
27
|
-
'--sinch-comp-segmented-control-color-disabled-icon-initial'?: string;
|
|
28
|
-
'--sinch-comp-segmented-control-color-disabled-border-initial'?: string;
|
|
29
|
-
'--sinch-comp-segmented-control-color-disabled-background-initial'?: string;
|
|
30
|
-
'--sinch-comp-segmented-control-size-icon'?: string;
|
|
31
|
-
};
|
|
32
6
|
};
|
|
7
|
+
export type TSinchSegmentedIconControlOptionEvents = {
|
|
8
|
+
'-focus'?: (e: CustomEvent<void>) => void;
|
|
9
|
+
'-blur'?: (e: CustomEvent<void>) => void;
|
|
10
|
+
};
|
|
11
|
+
export type TSinchSegmentedIconControlOptionStyle = {
|
|
12
|
+
'--sinch-comp-segmented-control-shape-radius'?: string;
|
|
13
|
+
'--sinch-comp-segmented-control-color-default-icon-initial'?: string;
|
|
14
|
+
'--sinch-comp-segmented-control-color-default-border-initial'?: string;
|
|
15
|
+
'--sinch-comp-segmented-control-color-default-background-initial'?: string;
|
|
16
|
+
'--sinch-comp-segmented-control-color-default-background-hover'?: string;
|
|
17
|
+
'--sinch-comp-segmented-control-color-default-outline-focus'?: string;
|
|
18
|
+
'--sinch-comp-segmented-control-color-checked-icon-initial'?: string;
|
|
19
|
+
'--sinch-comp-segmented-control-color-checked-border-initial'?: string;
|
|
20
|
+
'--sinch-comp-segmented-control-color-checked-background-initial'?: string;
|
|
21
|
+
'--sinch-comp-segmented-control-color-disabled-icon-initial'?: string;
|
|
22
|
+
'--sinch-comp-segmented-control-color-disabled-border-initial'?: string;
|
|
23
|
+
'--sinch-comp-segmented-control-color-disabled-background-initial'?: string;
|
|
24
|
+
'--sinch-comp-segmented-control-size-icon'?: string;
|
|
25
|
+
};
|
|
26
|
+
export type TSinchSegmentedIconControlOption = {
|
|
27
|
+
props: TSinchSegmentedIconControlOptionProps;
|
|
28
|
+
events: TSinchSegmentedIconControlOptionEvents;
|
|
29
|
+
style: TSinchSegmentedIconControlOptionStyle;
|
|
30
|
+
};
|
|
31
|
+
export type TSinchSegmentedIconControlOptionElement = NectaryComponentVanillaByType<TSinchSegmentedIconControlOption>;
|
|
32
|
+
export type TSinchSegmentedIconControlOptionReact = NectaryComponentReactByType<TSinchSegmentedIconControlOption>;
|
package/select-button/index.d.ts
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
import '../text';
|
|
2
2
|
import '../icon';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TSinchSelectButtonProps, TSinchSelectButtonStyle, TSinchSelectButtonEvents } from './types';
|
|
4
|
+
import type { NectaryComponentVanilla, NectaryComponentReact } from '../types';
|
|
4
5
|
declare global {
|
|
6
|
+
interface NectaryComponentMap {
|
|
7
|
+
'sinch-select-button': {
|
|
8
|
+
props: TSinchSelectButtonProps;
|
|
9
|
+
events: TSinchSelectButtonEvents;
|
|
10
|
+
style: TSinchSelectButtonStyle;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
5
13
|
interface HTMLElementTagNameMap {
|
|
6
|
-
'sinch-select-button':
|
|
14
|
+
'sinch-select-button': NectaryComponentVanilla<'sinch-select-button'>;
|
|
7
15
|
}
|
|
8
16
|
namespace JSX {
|
|
9
17
|
interface IntrinsicElements {
|
|
10
|
-
'sinch-select-button':
|
|
18
|
+
'sinch-select-button': NectaryComponentReact<'sinch-select-button'>;
|
|
11
19
|
}
|
|
12
20
|
}
|
|
13
21
|
}
|
|
14
22
|
declare module 'react' {
|
|
15
23
|
namespace JSX {
|
|
16
24
|
interface IntrinsicElements {
|
|
17
|
-
'sinch-select-button':
|
|
25
|
+
'sinch-select-button': NectaryComponentReact<'sinch-select-button'>;
|
|
18
26
|
}
|
|
19
27
|
}
|
|
20
28
|
}
|
package/select-button/types.d.ts
CHANGED
|
@@ -1,34 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
2
|
import type { TSinchSize } from '../utils/size';
|
|
3
|
-
export type
|
|
4
|
-
/** Text */
|
|
5
|
-
text: string;
|
|
6
|
-
/** Text that appears in the text field when it has no text set */
|
|
7
|
-
placeholder: string;
|
|
8
|
-
/** Invalid state */
|
|
9
|
-
invalid: boolean;
|
|
10
|
-
/** Disabled */
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
/** Size, `m` by default */
|
|
13
|
-
size: TSinchSize;
|
|
14
|
-
/** Click event */
|
|
15
|
-
addEventListener(type: '-click', listener: (e: CustomEvent<void>) => void): void;
|
|
16
|
-
/** Focus event */
|
|
17
|
-
addEventListener(type: '-focus', listener: (e: CustomEvent<void>) => void): void;
|
|
18
|
-
/** Blur event */
|
|
19
|
-
addEventListener(type: '-blur', listener: (e: CustomEvent<void>) => void): void;
|
|
20
|
-
/** Text */
|
|
21
|
-
setAttribute(name: 'text', value: string): void;
|
|
22
|
-
/** Text that appears in the text field when it has no value set */
|
|
23
|
-
setAttribute(name: 'placeholder', value: string): void;
|
|
24
|
-
/** Invalid state */
|
|
25
|
-
setAttribute(name: 'invalid', value: ''): void;
|
|
26
|
-
/** Disabled */
|
|
27
|
-
setAttribute(name: 'disabled', value: ''): void;
|
|
28
|
-
/** Size, `m` by default */
|
|
29
|
-
setAttribute(name: 'size', value: TSinchSize): void;
|
|
30
|
-
};
|
|
31
|
-
export type TSinchSelectButtonReact = TSinchElementReact<TSinchSelectButtonElement> & {
|
|
3
|
+
export type TSinchSelectButtonProps = {
|
|
32
4
|
/** Text */
|
|
33
5
|
text: string;
|
|
34
6
|
/** Label that is used for a11y` */
|
|
@@ -41,35 +13,43 @@ export type TSinchSelectButtonReact = TSinchElementReact<TSinchSelectButtonEleme
|
|
|
41
13
|
disabled?: boolean;
|
|
42
14
|
/** Size, `m` by default */
|
|
43
15
|
size?: TSinchSize;
|
|
16
|
+
};
|
|
17
|
+
export type TSinchSelectButtonEvents = {
|
|
44
18
|
/** Click handler */
|
|
45
|
-
'
|
|
19
|
+
'-click': (e: CustomEvent<void>) => void;
|
|
46
20
|
/** Focus handler */
|
|
47
|
-
'
|
|
21
|
+
'-focus'?: (e: CustomEvent<void>) => void;
|
|
48
22
|
/** Blur handler */
|
|
49
|
-
'
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
23
|
+
'-blur'?: (e: CustomEvent<void>) => void;
|
|
24
|
+
};
|
|
25
|
+
export type TSinchSelectButtonStyle = {
|
|
26
|
+
'--sinch-comp-select-button-size-container-l'?: string;
|
|
27
|
+
'--sinch-comp-select-button-size-icon-l'?: string;
|
|
28
|
+
'--sinch-comp-select-button-shape-radius-size-l'?: string;
|
|
29
|
+
'--sinch-comp-select-button-size-container-m'?: string;
|
|
30
|
+
'--sinch-comp-select-button-size-icon-m'?: string;
|
|
31
|
+
'--sinch-comp-select-button-shape-radius-size-m'?: string;
|
|
32
|
+
'--sinch-comp-select-button-size-container-s'?: string;
|
|
33
|
+
'--sinch-comp-select-button-size-icon-s'?: string;
|
|
34
|
+
'--sinch-comp-select-button-shape-radius-size-s'?: string;
|
|
35
|
+
'--sinch-comp-select-button-color-default-background-initial'?: string;
|
|
36
|
+
'--sinch-comp-select-button-color-default-icon-initial'?: string;
|
|
37
|
+
'--sinch-comp-select-button-color-default-text-initial'?: string;
|
|
38
|
+
'--sinch-comp-select-button-color-default-placeholder-initial'?: string;
|
|
39
|
+
'--sinch-comp-select-button-color-default-border-initial'?: string;
|
|
40
|
+
'--sinch-comp-select-button-color-default-border-focus'?: string;
|
|
41
|
+
'--sinch-comp-select-button-color-invalid-border-initial'?: string;
|
|
42
|
+
'--sinch-comp-select-button-color-disabled-icon-initial'?: string;
|
|
43
|
+
'--sinch-comp-select-button-color-disabled-text-initial'?: string;
|
|
44
|
+
'--sinch-comp-select-button-color-disabled-placeholder-initial'?: string;
|
|
45
|
+
'--sinch-comp-select-button-color-disabled-border-initial'?: string;
|
|
46
|
+
'--sinch-comp-select-button-font-input'?: string;
|
|
47
|
+
'--sinch-comp-select-button-font-placeholder'?: string;
|
|
48
|
+
};
|
|
49
|
+
export type TSinchSelectButton = {
|
|
50
|
+
props: TSinchSelectButtonProps;
|
|
51
|
+
events: TSinchSelectButtonEvents;
|
|
52
|
+
style: TSinchSelectButtonStyle;
|
|
75
53
|
};
|
|
54
|
+
export type TSinchSelectButtonElement = NectaryComponentVanillaByType<TSinchSelectButton>;
|
|
55
|
+
export type TSinchSelectButtonReact = NectaryComponentReactByType<TSinchSelectButton>;
|
package/select-menu/index.d.ts
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import '../input';
|
|
2
2
|
import '../icon';
|
|
3
3
|
import '../text';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TSinchSelectMenu } from './types';
|
|
5
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
5
6
|
declare global {
|
|
7
|
+
interface NectaryComponentMap {
|
|
8
|
+
'sinch-select-menu': TSinchSelectMenu;
|
|
9
|
+
}
|
|
6
10
|
interface HTMLElementTagNameMap {
|
|
7
|
-
'sinch-select-menu':
|
|
11
|
+
'sinch-select-menu': NectaryComponentVanilla<'sinch-select-menu'>;
|
|
8
12
|
}
|
|
9
13
|
namespace JSX {
|
|
10
14
|
interface IntrinsicElements {
|
|
11
|
-
'sinch-select-menu':
|
|
15
|
+
'sinch-select-menu': NectaryComponentReact<'sinch-select-menu'>;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
}
|
|
15
19
|
declare module 'react' {
|
|
16
20
|
namespace JSX {
|
|
17
21
|
interface IntrinsicElements {
|
|
18
|
-
'sinch-select-menu':
|
|
22
|
+
'sinch-select-menu': NectaryComponentReact<'sinch-select-menu'>;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|
package/select-menu/types.d.ts
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Selected value, CSV when multiple */
|
|
4
|
-
value: string;
|
|
5
|
-
/** How many rows to show and scroll the rest */
|
|
6
|
-
rows: number | null;
|
|
7
|
-
/** Allows multiple selection */
|
|
8
|
-
multiple: boolean;
|
|
9
|
-
/** Enforce the search bar appearing, by default it appears above a certain number of options */
|
|
10
|
-
searchable: boolean | null;
|
|
11
|
-
/** Controls the autocomplete of the search input */
|
|
12
|
-
'search-autocomplete': HTMLInputElement['autocomplete'];
|
|
13
|
-
/** Text for search bar's placeholder */
|
|
14
|
-
'search-placeholder': string;
|
|
15
|
-
/** Optionally control search value manually */
|
|
16
|
-
'search-value': string;
|
|
17
|
-
/** Change value event */
|
|
18
|
-
addEventListener(type: '-change', listener: (e: CustomEvent<string>) => void): void;
|
|
19
|
-
/** Change value event */
|
|
20
|
-
addEventListener(type: '-search-change', listener: (e: CustomEvent<string>) => void): void;
|
|
21
|
-
/** Selected value, CSV when multiple */
|
|
22
|
-
setAttribute(name: 'value', value: string): void;
|
|
23
|
-
/** How many rows to show and scroll the rest */
|
|
24
|
-
setAttribute(name: 'rows', value: string): void;
|
|
25
|
-
/** Allows multiple selection */
|
|
26
|
-
setAttribute(name: 'multiple', value: ''): void;
|
|
27
|
-
};
|
|
28
|
-
export type TSinchSelectMenuReact = TSinchElementReact<TSinchSelectMenuElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchSelectMenuProps = {
|
|
29
3
|
/** Selected value, CSV when multiple */
|
|
30
4
|
value: string;
|
|
31
5
|
/** How many rows to show and scroll the rest */
|
|
@@ -40,16 +14,22 @@ export type TSinchSelectMenuReact = TSinchElementReact<TSinchSelectMenuElement>
|
|
|
40
14
|
'search-placeholder'?: string;
|
|
41
15
|
/** Label that is used for a11y */
|
|
42
16
|
'aria-label': string;
|
|
17
|
+
};
|
|
18
|
+
export type TSinchSelectMenuEvents = {
|
|
43
19
|
/** Change value handler */
|
|
44
|
-
'
|
|
45
|
-
/** Optionally control search value manually */
|
|
46
|
-
'search-value'?: string;
|
|
20
|
+
'-search-change'?: (e: CustomEvent<string>) => void;
|
|
47
21
|
/** Change value handler */
|
|
48
|
-
'
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
22
|
+
'-change'?: (e: CustomEvent<string>) => void;
|
|
23
|
+
};
|
|
24
|
+
export type TSinchSelectMenuStyle = {
|
|
25
|
+
'--sinch-comp-select-menu-color-default-title-initial'?: string;
|
|
26
|
+
'--sinch-comp-select-menu-color-default-not-found-text-initial'?: string;
|
|
27
|
+
'--sinch-comp-select-menu-font-not-found-text'?: string;
|
|
28
|
+
};
|
|
29
|
+
export type TSinchSelectMenu = {
|
|
30
|
+
props: TSinchSelectMenuProps;
|
|
31
|
+
events: TSinchSelectMenuEvents;
|
|
32
|
+
style: TSinchSelectMenuStyle;
|
|
55
33
|
};
|
|
34
|
+
export type TSinchSelectMenuElement = NectaryComponentVanillaByType<TSinchSelectMenu>;
|
|
35
|
+
export type TSinchSelectMenuReact = NectaryComponentReactByType<TSinchSelectMenu>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import '../icon';
|
|
2
2
|
import '../text';
|
|
3
3
|
import { NectaryElement } from '../utils';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TSinchSelectMenuOption } from './types';
|
|
5
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
5
6
|
export declare class SelectMenuOption extends NectaryElement {
|
|
6
7
|
#private;
|
|
7
8
|
constructor();
|
|
@@ -17,19 +18,22 @@ export declare class SelectMenuOption extends NectaryElement {
|
|
|
17
18
|
matchesSearch(searchValue: string): boolean;
|
|
18
19
|
}
|
|
19
20
|
declare global {
|
|
21
|
+
interface NectaryComponentMap {
|
|
22
|
+
'sinch-select-menu-option': TSinchSelectMenuOption;
|
|
23
|
+
}
|
|
20
24
|
interface HTMLElementTagNameMap {
|
|
21
|
-
'sinch-select-menu-option':
|
|
25
|
+
'sinch-select-menu-option': NectaryComponentVanilla<'sinch-select-menu-option'>;
|
|
22
26
|
}
|
|
23
27
|
namespace JSX {
|
|
24
28
|
interface IntrinsicElements {
|
|
25
|
-
'sinch-select-menu-option':
|
|
29
|
+
'sinch-select-menu-option': NectaryComponentReact<'sinch-select-menu-option'>;
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
declare module 'react' {
|
|
30
34
|
namespace JSX {
|
|
31
35
|
interface IntrinsicElements {
|
|
32
|
-
'sinch-select-menu-option':
|
|
36
|
+
'sinch-select-menu-option': NectaryComponentReact<'sinch-select-menu-option'>;
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
}
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Value */
|
|
4
|
-
value: string;
|
|
5
|
-
/** Display text */
|
|
6
|
-
text: string;
|
|
7
|
-
/** Disabled state */
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
matchesSearch(value: string): boolean;
|
|
10
|
-
/** Value */
|
|
11
|
-
setAttribute(name: 'value', value: string): void;
|
|
12
|
-
/** Display text */
|
|
13
|
-
setAttribute(name: 'text', value: string): void;
|
|
14
|
-
/** Disabled state */
|
|
15
|
-
setAttribute(name: 'disabled', value: ''): void;
|
|
16
|
-
};
|
|
17
|
-
export type TSinchSelectMenuOptionReact = TSinchElementReact<TSinchSelectMenuOptionElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchSelectMenuOptionProps = {
|
|
18
3
|
/** Value */
|
|
19
4
|
value: string;
|
|
20
5
|
/** Display text */
|
|
@@ -23,20 +8,29 @@ export type TSinchSelectMenuOptionReact = TSinchElementReact<TSinchSelectMenuOpt
|
|
|
23
8
|
disabled?: boolean;
|
|
24
9
|
/** Label that is used for a11y */
|
|
25
10
|
'aria-label': string;
|
|
26
|
-
} & {
|
|
27
|
-
style?: {
|
|
28
|
-
'--sinch-comp-select-menu-size-icon'?: string;
|
|
29
|
-
'--sinch-comp-select-menu-font-option'?: string;
|
|
30
|
-
'--sinch-comp-select-menu-color-default-background-initial'?: string;
|
|
31
|
-
'--sinch-comp-select-menu-color-default-background-selected'?: string;
|
|
32
|
-
'--sinch-comp-select-menu-color-default-background-hover'?: string;
|
|
33
|
-
'--sinch-comp-select-menu-color-default-option-initial'?: string;
|
|
34
|
-
'--sinch-comp-select-menu-color-default-icon-initial'?: string;
|
|
35
|
-
'--sinch-comp-select-menu-color-disabled-background-initial'?: string;
|
|
36
|
-
'--sinch-comp-select-menu-color-disabled-option-initial'?: string;
|
|
37
|
-
'--sinch-comp-select-menu-color-disabled-icon-initial'?: string;
|
|
38
|
-
'--sinch-global-color-text'?: string;
|
|
39
|
-
'--sinch-global-color-icon'?: string;
|
|
40
|
-
'--sinch-global-size-icon'?: string;
|
|
41
|
-
};
|
|
42
11
|
};
|
|
12
|
+
export type TSinchSelectMenuOptionMethods = {
|
|
13
|
+
matchesSearch(value: string): boolean;
|
|
14
|
+
};
|
|
15
|
+
export type TSinchSelectMenuOptionStyle = {
|
|
16
|
+
'--sinch-comp-select-menu-size-icon'?: string;
|
|
17
|
+
'--sinch-comp-select-menu-font-option'?: string;
|
|
18
|
+
'--sinch-comp-select-menu-color-default-background-initial'?: string;
|
|
19
|
+
'--sinch-comp-select-menu-color-default-background-selected'?: string;
|
|
20
|
+
'--sinch-comp-select-menu-color-default-background-hover'?: string;
|
|
21
|
+
'--sinch-comp-select-menu-color-default-option-initial'?: string;
|
|
22
|
+
'--sinch-comp-select-menu-color-default-icon-initial'?: string;
|
|
23
|
+
'--sinch-comp-select-menu-color-disabled-background-initial'?: string;
|
|
24
|
+
'--sinch-comp-select-menu-color-disabled-option-initial'?: string;
|
|
25
|
+
'--sinch-comp-select-menu-color-disabled-icon-initial'?: string;
|
|
26
|
+
'--sinch-global-color-text'?: string;
|
|
27
|
+
'--sinch-global-color-icon'?: string;
|
|
28
|
+
'--sinch-global-size-icon'?: string;
|
|
29
|
+
};
|
|
30
|
+
export type TSinchSelectMenuOption = {
|
|
31
|
+
props: TSinchSelectMenuOptionProps;
|
|
32
|
+
methods: TSinchSelectMenuOptionMethods;
|
|
33
|
+
style: TSinchSelectMenuOptionStyle;
|
|
34
|
+
};
|
|
35
|
+
export type TSinchSelectMenuOptionElement = NectaryComponentVanillaByType<TSinchSelectMenuOption>;
|
|
36
|
+
export type TSinchSelectMenuOptionReact = NectaryComponentReactByType<TSinchSelectMenuOption>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const isSelectMenuOption: (el: Element) => el is
|
|
1
|
+
import type { NectaryComponentVanilla } from '../types';
|
|
2
|
+
export declare const isSelectMenuOption: (el: Element) => el is NectaryComponentVanilla<"sinch-select-menu-option">;
|
package/skeleton/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchSkeleton } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-skeleton': TSinchSkeleton;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-skeleton':
|
|
8
|
+
'sinch-skeleton': NectaryComponentVanilla<'sinch-skeleton'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-skeleton':
|
|
12
|
+
'sinch-skeleton': NectaryComponentReact<'sinch-skeleton'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-skeleton':
|
|
19
|
+
'sinch-skeleton': NectaryComponentReact<'sinch-skeleton'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/skeleton/types.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Card like container */
|
|
4
|
-
setAttribute(name: 'card', value: ''): void;
|
|
5
|
-
};
|
|
6
|
-
export type TSinchSkeletonReact = TSinchElementReact<TSinchSkeletonElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchSkeletonProps = {
|
|
7
3
|
/** Card like container */
|
|
8
4
|
card?: boolean;
|
|
9
|
-
} & {
|
|
10
|
-
style?: {
|
|
11
|
-
'--sinch-sys-color-surface-primary-default'?: string;
|
|
12
|
-
'--sinch-sys-color-surface-tertiary-default'?: string;
|
|
13
|
-
'--sinch-sys-color-border-subtle'?: string;
|
|
14
|
-
'--sinch-sys-shape-radius-l'?: string;
|
|
15
|
-
};
|
|
16
5
|
};
|
|
6
|
+
export type TSinchSkeletonStyle = {
|
|
7
|
+
'--sinch-sys-color-surface-primary-default'?: string;
|
|
8
|
+
'--sinch-sys-color-surface-tertiary-default'?: string;
|
|
9
|
+
'--sinch-sys-color-border-subtle'?: string;
|
|
10
|
+
'--sinch-sys-shape-radius-l'?: string;
|
|
11
|
+
};
|
|
12
|
+
export type TSinchSkeleton = {
|
|
13
|
+
props: TSinchSkeletonProps;
|
|
14
|
+
style: TSinchSkeletonStyle;
|
|
15
|
+
};
|
|
16
|
+
export type TSinchSkeletonElement = NectaryComponentVanillaByType<TSinchSkeleton>;
|
|
17
|
+
export type TSinchSkeletonReact = NectaryComponentReactByType<TSinchSkeleton>;
|