@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,19 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchColorMenuOptionProps = {
|
|
3
3
|
/** Value */
|
|
4
4
|
value: string;
|
|
5
|
-
/** Value */
|
|
6
|
-
setAttribute(name: 'value', value: string): void;
|
|
7
5
|
};
|
|
8
|
-
export type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
6
|
+
export type TSinchColorMenuOptionStyle = {
|
|
7
|
+
'--sinch-comp-color-menu-option-color-default-border-initial'?: string;
|
|
8
|
+
'--sinch-comp-color-menu-option-color-default-border-selected'?: string;
|
|
9
|
+
'--sinch-comp-color-menu-option-color-default-border-focus'?: string;
|
|
10
|
+
'--sinch-comp-color-menu-option-color-default-border-hover'?: string;
|
|
11
|
+
'--sinch-comp-color-menu-option-color-default-border-active'?: string;
|
|
12
|
+
};
|
|
13
|
+
export type TSinchColorMenuOption = {
|
|
14
|
+
props: TSinchColorMenuOptionProps;
|
|
15
|
+
style: TSinchColorMenuOptionStyle;
|
|
19
16
|
};
|
|
17
|
+
export type TSinchColorMenuOptionElement = NectaryComponentVanillaByType<TSinchColorMenuOption>;
|
|
18
|
+
export type TSinchColorMenuOptionReact = NectaryComponentReactByType<TSinchColorMenuOption>;
|
package/color-swatch/index.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import '../text';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TSinchColorSwatch } from './types';
|
|
3
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
3
4
|
declare global {
|
|
5
|
+
interface NectaryComponentMap {
|
|
6
|
+
'sinch-color-swatch': TSinchColorSwatch;
|
|
7
|
+
}
|
|
4
8
|
interface HTMLElementTagNameMap {
|
|
5
|
-
'sinch-color-swatch':
|
|
9
|
+
'sinch-color-swatch': NectaryComponentVanilla<'sinch-color-swatch'>;
|
|
6
10
|
}
|
|
7
11
|
namespace JSX {
|
|
8
12
|
interface IntrinsicElements {
|
|
9
|
-
'sinch-color-swatch':
|
|
13
|
+
'sinch-color-swatch': NectaryComponentReact<'sinch-color-swatch'>;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
declare module 'react' {
|
|
14
18
|
namespace JSX {
|
|
15
19
|
interface IntrinsicElements {
|
|
16
|
-
'sinch-color-swatch':
|
|
20
|
+
'sinch-color-swatch': NectaryComponentReact<'sinch-color-swatch'>;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
}
|
package/color-swatch/types.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Color name */
|
|
4
|
-
name: string | null;
|
|
5
|
-
/** Color name */
|
|
6
|
-
setAttribute(name: 'name', value: string): void;
|
|
7
|
-
};
|
|
8
|
-
export type TSinchColorSwatchReact = TSinchElementReact<TSinchColorSwatchElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchColorSwatchProps = {
|
|
9
3
|
/** Color name */
|
|
10
4
|
name?: string;
|
|
11
|
-
} & {
|
|
12
|
-
style?: {
|
|
13
|
-
'--sinch-global-size-icon'?: string;
|
|
14
|
-
'--sinch-ref-color-violet-200'?: string;
|
|
15
|
-
'--sinch-ref-color-honey-200'?: string;
|
|
16
|
-
'--sinch-ref-color-grass-200'?: string;
|
|
17
|
-
'--sinch-ref-color-ocean-200'?: string;
|
|
18
|
-
};
|
|
19
5
|
};
|
|
6
|
+
export type TSinchColorSwatchStyle = {
|
|
7
|
+
'--sinch-global-size-icon'?: string;
|
|
8
|
+
'--sinch-ref-color-violet-200'?: string;
|
|
9
|
+
'--sinch-ref-color-honey-200'?: string;
|
|
10
|
+
'--sinch-ref-color-grass-200'?: string;
|
|
11
|
+
'--sinch-ref-color-ocean-200'?: string;
|
|
12
|
+
};
|
|
13
|
+
export type TSinchColorSwatch = {
|
|
14
|
+
props: TSinchColorSwatchProps;
|
|
15
|
+
style: TSinchColorSwatchStyle;
|
|
16
|
+
};
|
|
17
|
+
export type TSinchColorSwatchElement = NectaryComponentVanillaByType<TSinchColorSwatch>;
|
|
18
|
+
export type TSinchColorSwatchReact = NectaryComponentReactByType<TSinchColorSwatch>;
|
package/date-picker/index.d.ts
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import '../icon';
|
|
2
2
|
import '../text';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TSinchDatePicker } from './types';
|
|
4
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
4
5
|
declare global {
|
|
6
|
+
interface NectaryComponentMap {
|
|
7
|
+
'sinch-date-picker': TSinchDatePicker;
|
|
8
|
+
}
|
|
5
9
|
interface HTMLElementTagNameMap {
|
|
6
|
-
'sinch-date-picker':
|
|
10
|
+
'sinch-date-picker': NectaryComponentVanilla<'sinch-date-picker'>;
|
|
7
11
|
}
|
|
8
12
|
namespace JSX {
|
|
9
13
|
interface IntrinsicElements {
|
|
10
|
-
'sinch-date-picker':
|
|
14
|
+
'sinch-date-picker': NectaryComponentReact<'sinch-date-picker'>;
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
declare module 'react' {
|
|
15
19
|
namespace JSX {
|
|
16
20
|
interface IntrinsicElements {
|
|
17
|
-
'sinch-date-picker':
|
|
21
|
+
'sinch-date-picker': NectaryComponentReact<'sinch-date-picker'>;
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
}
|
package/date-picker/types.d.ts
CHANGED
|
@@ -1,50 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Date value in ISO 8601 format */
|
|
4
|
-
value: string;
|
|
5
|
-
/** Date min limit in ISO 8601 format */
|
|
6
|
-
min: string;
|
|
7
|
-
/** Date max limit in ISO 8601 format */
|
|
8
|
-
max: string;
|
|
9
|
-
/** BCP 47 language tag (e.g. en-US), which changes day and month display names in the calendar */
|
|
10
|
-
locale: string;
|
|
11
|
-
/** Date range mode */
|
|
12
|
-
range: boolean;
|
|
13
|
-
/** Label that is used for a11y */
|
|
14
|
-
prevYearAriaLabel: string;
|
|
15
|
-
/** Label that is used for a11y */
|
|
16
|
-
nextYearAriaLabel: string;
|
|
17
|
-
/** Label that is used for a11y */
|
|
18
|
-
prevMonthAriaLabel: string;
|
|
19
|
-
/** Label that is used for a11y */
|
|
20
|
-
nextMonthAriaLabel: string;
|
|
21
|
-
readonly prevYearButtonRect: TRect;
|
|
22
|
-
readonly nextYearButtonRect: TRect;
|
|
23
|
-
readonly prevMonthButtonRect: TRect;
|
|
24
|
-
readonly nextMonthButtonRect: TRect;
|
|
25
|
-
nthButtonRect(index: number): TRect | null;
|
|
26
|
-
/** Change value handler, return date in ISO 8601 format */
|
|
27
|
-
addEventListener(type: '-change', listener: (e: CustomEvent<string>) => void): void;
|
|
28
|
-
/** Date value in ISO 8601 format */
|
|
29
|
-
setAttribute(name: 'value', value: string): void;
|
|
30
|
-
/** Date min limit in ISO 8601 format */
|
|
31
|
-
setAttribute(name: 'min', value: string): void;
|
|
32
|
-
/** Date max limit in ISO 8601 format */
|
|
33
|
-
setAttribute(name: 'max', value: string): void;
|
|
34
|
-
/** BCP 47 language tag (e.g. en-US), which changes day and month display names in the calendar */
|
|
35
|
-
setAttribute(name: 'locale', value: string): void;
|
|
36
|
-
/** Date range mode */
|
|
37
|
-
setAttribute(name: 'range', value: ''): void;
|
|
38
|
-
/** Label that is used for a11y */
|
|
39
|
-
setAttribute(name: 'prev-year-aria-label', value: string): void;
|
|
40
|
-
/** Label that is used for a11y */
|
|
41
|
-
setAttribute(name: 'next-year-aria-label', value: string): void;
|
|
42
|
-
/** Label that is used for a11y */
|
|
43
|
-
setAttribute(name: 'prev-month-aria-label', value: string): void;
|
|
44
|
-
/** Label that is used for a11y */
|
|
45
|
-
setAttribute(name: 'next-month-aria-label', value: string): void;
|
|
46
|
-
};
|
|
47
|
-
export type TSinchDatePickerReact = TSinchElementReact<TSinchDatePickerElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, TRect } from '../types';
|
|
2
|
+
export type TSinchDatePickerProps = {
|
|
48
3
|
/** Date value in ISO 8601 format */
|
|
49
4
|
value: string;
|
|
50
5
|
/** Date min limit in ISO 8601 format */
|
|
@@ -65,37 +20,53 @@ export type TSinchDatePickerReact = TSinchElementReact<TSinchDatePickerElement>
|
|
|
65
20
|
'prev-month-aria-label': string;
|
|
66
21
|
/** Label that is used for a11y */
|
|
67
22
|
'next-month-aria-label': string;
|
|
23
|
+
readonly prevYearButtonRect?: TRect;
|
|
24
|
+
readonly nextYearButtonRect?: TRect;
|
|
25
|
+
readonly prevMonthButtonRect?: TRect;
|
|
26
|
+
readonly nextMonthButtonRect?: TRect;
|
|
27
|
+
};
|
|
28
|
+
export type TSinchDatePickerMethods = {
|
|
29
|
+
nthButtonRect(index: number): TRect | null;
|
|
30
|
+
};
|
|
31
|
+
export type TSinchDatePickerEvents = {
|
|
68
32
|
/** Change value handler, return date in ISO 8601 format */
|
|
69
|
-
'
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
33
|
+
'-change'?: (e: CustomEvent<string>) => void;
|
|
34
|
+
};
|
|
35
|
+
export type TSinchDatePickerStyle = {
|
|
36
|
+
'--sinch-comp-date-picker-font-day'?: string;
|
|
37
|
+
'--sinch-comp-date-picker-font-today'?: string;
|
|
38
|
+
'--sinch-comp-date-picker-font-weekday'?: string;
|
|
39
|
+
'--sinch-comp-date-picker-font-header'?: string;
|
|
40
|
+
'--sinch-comp-date-picker-day-shape-radius'?: string;
|
|
41
|
+
'--sinch-comp-date-picker-header-color-default-text-initial'?: string;
|
|
42
|
+
'--sinch-comp-date-picker-weekday-color-default-text-initial'?: string;
|
|
43
|
+
'--sinch-comp-date-picker-day-color-default-text-initial'?: string;
|
|
44
|
+
'--sinch-comp-date-picker-day-color-default-background-initial'?: string;
|
|
45
|
+
'--sinch-comp-date-picker-day-color-default-background-hover'?: string;
|
|
46
|
+
'--sinch-comp-date-picker-day-color-default-border-initial'?: string;
|
|
47
|
+
'--sinch-comp-date-picker-day-color-default-outline-focus'?: string;
|
|
48
|
+
'--sinch-comp-date-picker-day-color-default-range-background'?: string;
|
|
49
|
+
'--sinch-comp-date-picker-day-color-disabled-text-initial'?: string;
|
|
50
|
+
'--sinch-comp-date-picker-day-color-checked-text-initial'?: string;
|
|
51
|
+
'--sinch-comp-date-picker-day-color-checked-background-initial'?: string;
|
|
52
|
+
'--sinch-comp-date-picker-day-color-checked-border-initial'?: string;
|
|
53
|
+
'--sinch-comp-date-picker-today-color-default-text-initial'?: string;
|
|
54
|
+
'--sinch-comp-date-picker-today-color-default-background-initial'?: string;
|
|
55
|
+
'--sinch-comp-date-picker-today-color-default-background-hover'?: string;
|
|
56
|
+
'--sinch-comp-date-picker-today-color-default-border-initial'?: string;
|
|
57
|
+
'--sinch-comp-date-picker-today-color-disabled-text-initial'?: string;
|
|
58
|
+
'--sinch-comp-date-picker-today-color-disabled-border-initial'?: string;
|
|
59
|
+
'--sinch-comp-date-picker-today-color-checked-text-initial'?: string;
|
|
60
|
+
'--sinch-comp-date-picker-today-color-checked-background-initial'?: string;
|
|
61
|
+
'--sinch-comp-date-picker-today-color-checked-border-initial'?: string;
|
|
62
|
+
'--sinch-com-text-font'?: string;
|
|
63
|
+
'--sinch-global-color-text'?: string;
|
|
64
|
+
};
|
|
65
|
+
export type TSinchDatePicker = {
|
|
66
|
+
props: TSinchDatePickerProps;
|
|
67
|
+
methods: TSinchDatePickerMethods;
|
|
68
|
+
events: TSinchDatePickerEvents;
|
|
69
|
+
style: TSinchDatePickerStyle;
|
|
101
70
|
};
|
|
71
|
+
export type TSinchDatePickerElement = NectaryComponentVanillaByType<TSinchDatePicker>;
|
|
72
|
+
export type TSinchDatePickerReact = NectaryComponentReactByType<TSinchDatePicker>;
|
package/dialog/index.d.ts
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import '../icon';
|
|
2
2
|
import '../stop-events';
|
|
3
3
|
import '../title';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TSinchDialog } from './types';
|
|
5
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
5
6
|
declare global {
|
|
7
|
+
interface NectaryComponentMap {
|
|
8
|
+
'sinch-dialog': TSinchDialog;
|
|
9
|
+
}
|
|
6
10
|
interface HTMLElementTagNameMap {
|
|
7
|
-
'sinch-dialog':
|
|
11
|
+
'sinch-dialog': NectaryComponentVanilla<'sinch-dialog'>;
|
|
8
12
|
}
|
|
9
13
|
namespace JSX {
|
|
10
14
|
interface IntrinsicElements {
|
|
11
|
-
'sinch-dialog':
|
|
15
|
+
'sinch-dialog': NectaryComponentReact<'sinch-dialog'>;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
}
|
|
15
19
|
declare module 'react' {
|
|
16
20
|
namespace JSX {
|
|
17
21
|
interface IntrinsicElements {
|
|
18
|
-
'sinch-dialog':
|
|
22
|
+
'sinch-dialog': NectaryComponentReact<'sinch-dialog'>;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|
package/dialog/types.d.ts
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, TRect } from '../types';
|
|
2
2
|
export type TSinchDialogCloseDetail = 'close' | 'escape' | 'backdrop';
|
|
3
|
-
export type
|
|
4
|
-
/** Open/close state */
|
|
5
|
-
open: boolean;
|
|
6
|
-
/** Dialog caption */
|
|
7
|
-
caption: string;
|
|
8
|
-
readonly dialogRect: TRect;
|
|
9
|
-
readonly closeButtonRect: TRect;
|
|
10
|
-
/** close event handler */
|
|
11
|
-
addEventListener(type: '-close', listener: (e: CustomEvent<TSinchDialogCloseDetail>) => void): void;
|
|
12
|
-
/** Dialog caption */
|
|
13
|
-
setAttribute(name: 'caption', value: string): void;
|
|
14
|
-
/** Close button label that is used for a11y */
|
|
15
|
-
setAttribute(name: 'close-aria-label', value: string): void;
|
|
16
|
-
};
|
|
17
|
-
export type TSinchDialogReact = TSinchElementReact<TSinchDialogElement> & {
|
|
3
|
+
export type TSinchDialogProps = {
|
|
18
4
|
/** Controls whether the dialog should be open */
|
|
19
5
|
open: boolean;
|
|
20
6
|
/** Dialog caption */
|
|
@@ -23,23 +9,33 @@ export type TSinchDialogReact = TSinchElementReact<TSinchDialogElement> & {
|
|
|
23
9
|
'aria-label': string;
|
|
24
10
|
/** Close button label that is used for a11y */
|
|
25
11
|
'close-aria-label': string;
|
|
12
|
+
readonly dialogRect?: TRect;
|
|
13
|
+
readonly closeButtonRect?: TRect;
|
|
14
|
+
};
|
|
15
|
+
export type TSinchDialogEvents = {
|
|
26
16
|
/** close event handler */
|
|
27
|
-
'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
17
|
+
'-close'?: (e: CustomEvent<TSinchDialogCloseDetail>) => void;
|
|
18
|
+
};
|
|
19
|
+
export type TSinchDialogStyle = {
|
|
20
|
+
'--sinch-comp-dialog-max-width'?: string;
|
|
21
|
+
'--sinch-comp-dialog-max-height'?: string;
|
|
22
|
+
'--sinch-comp-dialog-width'?: string;
|
|
23
|
+
'--sinch-dialog-close-button-display'?: string;
|
|
24
|
+
'--sinch-comp-dialog-shape-radius'?: string;
|
|
25
|
+
'--sinch-comp-dialog-font-title'?: string;
|
|
26
|
+
'--sinch-comp-dialog-shadow'?: string;
|
|
27
|
+
'--sinch-comp-dialog-color-default-background-initial'?: string;
|
|
28
|
+
'--sinch-comp-dialog-color-default-icon-initial'?: string;
|
|
29
|
+
'--sinch-comp-dialog-color-default-title-initial'?: string;
|
|
30
|
+
'--sinch-global-size-icon'?: string;
|
|
31
|
+
'--sinch-global-color-icon'?: string;
|
|
32
|
+
'--sinch-global-color-text'?: string;
|
|
33
|
+
'--sinch-comp-title-font'?: string;
|
|
34
|
+
};
|
|
35
|
+
export type TSinchDialog = {
|
|
36
|
+
props: TSinchDialogProps;
|
|
37
|
+
events: TSinchDialogEvents;
|
|
38
|
+
style: TSinchDialogStyle;
|
|
45
39
|
};
|
|
40
|
+
export type TSinchDialogElement = NectaryComponentVanillaByType<TSinchDialog>;
|
|
41
|
+
export type TSinchDialogReact = NectaryComponentReactByType<TSinchDialog>;
|
package/emoji/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchEmoji } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-emoji': TSinchEmoji;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-emoji':
|
|
8
|
+
'sinch-emoji': NectaryComponentVanilla<'sinch-emoji'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-emoji':
|
|
12
|
+
'sinch-emoji': NectaryComponentReact<'sinch-emoji'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-emoji':
|
|
19
|
+
'sinch-emoji': NectaryComponentReact<'sinch-emoji'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/emoji/types.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchEmojiProps = {
|
|
3
3
|
/** Emoji character */
|
|
4
4
|
char: string;
|
|
5
|
-
/** Emoji character */
|
|
6
|
-
setAttribute(name: 'char', value: string): void;
|
|
7
5
|
};
|
|
8
|
-
export type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
6
|
+
export type TSinchEmojiStyle = {
|
|
7
|
+
'--sinch-comp-emoji-vertical-align'?: string;
|
|
8
|
+
'--sinch-global-size-icon'?: string;
|
|
9
|
+
};
|
|
10
|
+
export type TSinchEmoji = {
|
|
11
|
+
props: TSinchEmojiProps;
|
|
12
|
+
style: TSinchEmojiStyle;
|
|
16
13
|
};
|
|
14
|
+
export type TSinchEmojiElement = NectaryComponentVanillaByType<TSinchEmoji>;
|
|
15
|
+
export type TSinchEmojiReact = NectaryComponentReactByType<TSinchEmoji>;
|
package/emoji-picker/index.d.ts
CHANGED
|
@@ -8,21 +8,25 @@ import '../tabs-icon-option';
|
|
|
8
8
|
import '../emoji';
|
|
9
9
|
import '../text';
|
|
10
10
|
import '../icon';
|
|
11
|
-
import type {
|
|
11
|
+
import type { TSinchEmojiPicker } from './types';
|
|
12
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
12
13
|
declare global {
|
|
14
|
+
interface NectaryComponentMap {
|
|
15
|
+
'sinch-emoji-picker': TSinchEmojiPicker;
|
|
16
|
+
}
|
|
13
17
|
interface HTMLElementTagNameMap {
|
|
14
|
-
'sinch-emoji-picker':
|
|
18
|
+
'sinch-emoji-picker': NectaryComponentVanilla<'sinch-emoji-picker'>;
|
|
15
19
|
}
|
|
16
20
|
namespace JSX {
|
|
17
21
|
interface IntrinsicElements {
|
|
18
|
-
'sinch-emoji-picker':
|
|
22
|
+
'sinch-emoji-picker': NectaryComponentReact<'sinch-emoji-picker'>;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
declare module 'react' {
|
|
23
27
|
namespace JSX {
|
|
24
28
|
interface IntrinsicElements {
|
|
25
|
-
'sinch-emoji-picker':
|
|
29
|
+
'sinch-emoji-picker': NectaryComponentReact<'sinch-emoji-picker'>;
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
32
|
}
|
package/emoji-picker/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, TRect } from '../types';
|
|
2
2
|
export type TEmoji = {
|
|
3
3
|
emoji: string;
|
|
4
4
|
code: string;
|
|
@@ -10,26 +10,33 @@ export type TEmojiGroup = {
|
|
|
10
10
|
name: string;
|
|
11
11
|
emojis: TEmoji[];
|
|
12
12
|
};
|
|
13
|
-
export type
|
|
14
|
-
readonly skinToneButtonRect
|
|
15
|
-
readonly searchInputRect
|
|
16
|
-
readonly searchClearButtonRect
|
|
13
|
+
export type TSinchEmojiPickerProps = {
|
|
14
|
+
readonly skinToneButtonRect?: TRect;
|
|
15
|
+
readonly searchInputRect?: TRect;
|
|
16
|
+
readonly searchClearButtonRect?: TRect;
|
|
17
|
+
};
|
|
18
|
+
export type TSinchEmojiPickerMethods = {
|
|
17
19
|
nthSkinToneRect(index: number): TRect | null;
|
|
18
20
|
nthTabRect(index: number): TRect | null;
|
|
19
21
|
nthEmojiRect(index: number): TRect | null;
|
|
20
|
-
/** Change value event */
|
|
21
|
-
addEventListener(type: '-change', listener: (e: CustomEvent<string>) => void): void;
|
|
22
22
|
};
|
|
23
|
-
export type
|
|
23
|
+
export type TSinchEmojiPickerEvents = {
|
|
24
24
|
/** Change value handler */
|
|
25
|
-
'
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
'-change': (e: CustomEvent<string>) => void;
|
|
26
|
+
};
|
|
27
|
+
export type TSinchEmojiPickerStyle = {
|
|
28
|
+
'--sinch-comp-emoji-picker-font-not-found'?: string;
|
|
29
|
+
'--sinch-comp-emoji-picker-color-default-text-not-found'?: string;
|
|
30
|
+
'--sinch-global-color-text'?: string;
|
|
31
|
+
'--sinch-global-color-icon'?: string;
|
|
32
|
+
'--sinch-global-size-icon'?: string;
|
|
33
|
+
'--sinch-comp-text-font'?: string;
|
|
34
|
+
};
|
|
35
|
+
export type TSinchEmojiPicker = {
|
|
36
|
+
props: TSinchEmojiPickerProps;
|
|
37
|
+
methods: TSinchEmojiPickerMethods;
|
|
38
|
+
events: TSinchEmojiPickerEvents;
|
|
39
|
+
style: TSinchEmojiPickerStyle;
|
|
35
40
|
};
|
|
41
|
+
export type TSinchEmojiPickerElement = NectaryComponentVanillaByType<TSinchEmojiPicker>;
|
|
42
|
+
export type TSinchEmojiPickerReact = NectaryComponentReactByType<TSinchEmojiPicker>;
|
package/field/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchField } from './types';
|
|
2
|
+
import type { NectaryComponentVanilla, NectaryComponentReact } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-field': TSinchField;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-field':
|
|
8
|
+
'sinch-field': NectaryComponentVanilla<'sinch-field'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-field':
|
|
12
|
+
'sinch-field': NectaryComponentReact<'sinch-field'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-field':
|
|
19
|
+
'sinch-field': NectaryComponentReact<'sinch-field'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/field/types.d.ts
CHANGED
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Label */
|
|
4
|
-
label: string | null;
|
|
5
|
-
/** Optional text */
|
|
6
|
-
optionalText: string | null;
|
|
7
|
-
/** Additional text */
|
|
8
|
-
additionalText: string | null;
|
|
9
|
-
/** Invalid text, controls the overall invalid state of the text field */
|
|
10
|
-
invalidText: string | null;
|
|
11
|
-
/** Disabled */
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
/** Label */
|
|
14
|
-
setAttribute(name: 'label', value: string): void;
|
|
15
|
-
/** Optional text */
|
|
16
|
-
setAttribute(name: 'optionaltext', value: string): void;
|
|
17
|
-
/** Additional text */
|
|
18
|
-
setAttribute(name: 'additionaltext', value: string): void;
|
|
19
|
-
/** Invalid text, controls the overall invalid state of the text field */
|
|
20
|
-
setAttribute(name: 'invalidtext', value: string): void;
|
|
21
|
-
/** Disabled */
|
|
22
|
-
setAttribute(name: 'disabled', value: ''): void;
|
|
23
|
-
};
|
|
24
|
-
export type TSinchFieldReact = TSinchElementReact<TSinchFieldElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchFieldProps = {
|
|
25
3
|
/** Label that shows in UI */
|
|
26
4
|
label?: string;
|
|
27
5
|
/** Optional text */
|
|
@@ -32,18 +10,23 @@ export type TSinchFieldReact = TSinchElementReact<TSinchFieldElement> & {
|
|
|
32
10
|
invalidText?: string;
|
|
33
11
|
/** Disabled */
|
|
34
12
|
disabled?: boolean;
|
|
35
|
-
} & {
|
|
36
|
-
style?: {
|
|
37
|
-
'--sinch-comp-field-font-label'?: string;
|
|
38
|
-
'--sinch-comp-field-font-optional'?: string;
|
|
39
|
-
'--sinch-comp-field-font-additional'?: string;
|
|
40
|
-
'--sinch-comp-field-font-invalid'?: string;
|
|
41
|
-
'--sinch-comp-field-color-default-label-initial'?: string;
|
|
42
|
-
'--sinch-comp-field-color-default-optional-initial'?: string;
|
|
43
|
-
'--sinch-comp-field-color-default-additional-initial'?: string;
|
|
44
|
-
'--sinch-comp-field-color-disabled-label-initial'?: string;
|
|
45
|
-
'--sinch-comp-field-color-disabled-optional-initial'?: string;
|
|
46
|
-
'--sinch-comp-field-color-disabled-additional-initial'?: string;
|
|
47
|
-
'--sinch-comp-field-color-invalid-text-initial'?: string;
|
|
48
|
-
};
|
|
49
13
|
};
|
|
14
|
+
export type TSinchFieldStyle = {
|
|
15
|
+
'--sinch-comp-field-font-label'?: string;
|
|
16
|
+
'--sinch-comp-field-font-optional'?: string;
|
|
17
|
+
'--sinch-comp-field-font-additional'?: string;
|
|
18
|
+
'--sinch-comp-field-font-invalid'?: string;
|
|
19
|
+
'--sinch-comp-field-color-default-label-initial'?: string;
|
|
20
|
+
'--sinch-comp-field-color-default-optional-initial'?: string;
|
|
21
|
+
'--sinch-comp-field-color-default-additional-initial'?: string;
|
|
22
|
+
'--sinch-comp-field-color-disabled-label-initial'?: string;
|
|
23
|
+
'--sinch-comp-field-color-disabled-optional-initial'?: string;
|
|
24
|
+
'--sinch-comp-field-color-disabled-additional-initial'?: string;
|
|
25
|
+
'--sinch-comp-field-color-invalid-text-initial'?: string;
|
|
26
|
+
};
|
|
27
|
+
export type TSinchField = {
|
|
28
|
+
props: TSinchFieldProps;
|
|
29
|
+
style: TSinchFieldStyle;
|
|
30
|
+
};
|
|
31
|
+
export type TSinchFieldElement = NectaryComponentVanillaByType<TSinchField>;
|
|
32
|
+
export type TSinchFieldReact = NectaryComponentReactByType<TSinchField>;
|
package/file-drop/index.d.ts
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import '../text';
|
|
2
2
|
import '../file-picker';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TSinchFileDrop } from './types';
|
|
4
|
+
import type { NectaryComponentVanilla, NectaryComponentReact } from '../types';
|
|
4
5
|
declare global {
|
|
6
|
+
interface NectaryComponentMap {
|
|
7
|
+
'sinch-file-drop': TSinchFileDrop;
|
|
8
|
+
}
|
|
5
9
|
interface HTMLElementTagNameMap {
|
|
6
|
-
'sinch-file-drop':
|
|
10
|
+
'sinch-file-drop': NectaryComponentVanilla<'sinch-file-drop'>;
|
|
7
11
|
}
|
|
8
12
|
namespace JSX {
|
|
9
13
|
interface IntrinsicElements {
|
|
10
|
-
'sinch-file-drop':
|
|
14
|
+
'sinch-file-drop': NectaryComponentReact<'sinch-file-drop'>;
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
declare module 'react' {
|
|
15
19
|
namespace JSX {
|
|
16
20
|
interface IntrinsicElements {
|
|
17
|
-
'sinch-file-drop':
|
|
21
|
+
'sinch-file-drop': NectaryComponentReact<'sinch-file-drop'>;
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
}
|