@nectary/components 4.8.1 → 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 +9 -4
- package/tag/index.js +18 -1
- package/tag/types.d.ts +24 -31
- 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,47 +1,38 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
2
|
export type TSinchHorizontalStepperStatusType = 'error' | 'skip';
|
|
3
|
-
export type
|
|
4
|
-
/** Label */
|
|
5
|
-
label: string;
|
|
6
|
-
/** Description */
|
|
7
|
-
description: string | null;
|
|
8
|
-
/** Status */
|
|
9
|
-
status: TSinchHorizontalStepperStatusType | null;
|
|
10
|
-
/** Label */
|
|
11
|
-
setAttribute(name: 'label', value: string): void;
|
|
12
|
-
/** Description */
|
|
13
|
-
setAttribute(name: 'description', value: string): void;
|
|
14
|
-
/** Status */
|
|
15
|
-
setAttribute(name: 'status', value: TSinchHorizontalStepperStatusType): void;
|
|
16
|
-
};
|
|
17
|
-
export type TSinchHorizontalStepperItemReact = TSinchElementReact<TSinchHorizontalStepperItemElement> & {
|
|
3
|
+
export type TSinchHorizontalStepperItemProps = {
|
|
18
4
|
/** Label */
|
|
19
5
|
label: string;
|
|
20
6
|
/** Description */
|
|
21
7
|
description?: string;
|
|
22
8
|
/** Status */
|
|
23
9
|
status?: TSinchHorizontalStepperStatusType;
|
|
24
|
-
} & {
|
|
25
|
-
style?: {
|
|
26
|
-
'--sinch-comp-horizontal-stepper-color-background-default'?: string;
|
|
27
|
-
'--sinch-comp-horizontal-stepper-color-background-active'?: string;
|
|
28
|
-
'--sinch-comp-horizontal-stepper-color-background-visited'?: string;
|
|
29
|
-
'--sinch-comp-horizontal-stepper-color-background-visited-error'?: string;
|
|
30
|
-
'--sinch-comp-horizontal-stepper-color-background-visited-skip'?: string;
|
|
31
|
-
'--sinch-comp-horizontal-stepper-color-border-default'?: string;
|
|
32
|
-
'--sinch-comp-horizontal-stepper-color-border-active'?: string;
|
|
33
|
-
'--sinch-comp-horizontal-stepper-color-border-visited'?: string;
|
|
34
|
-
'--sinch-comp-horizontal-stepper-color-border-visited-error'?: string;
|
|
35
|
-
'--sinch-comp-horizontal-stepper-color-border-visited-skip'?: string;
|
|
36
|
-
'--sinch-comp-horizontal-stepper-color-icon-default'?: string;
|
|
37
|
-
'--sinch-comp-horizontal-stepper-color-icon-active'?: string;
|
|
38
|
-
'--sinch-comp-horizontal-stepper-color-icon-visited'?: string;
|
|
39
|
-
'--sinch-comp-horizontal-stepper-color-icon-visited-error'?: string;
|
|
40
|
-
'--sinch-comp-horizontal-stepper-color-icon-visited-skip'?: string;
|
|
41
|
-
'--sinch-comp-horizontal-stepper-color-label'?: string;
|
|
42
|
-
'--sinch-comp-horizontal-stepper-color-description'?: string;
|
|
43
|
-
'--sinch-sys-font-desktop-title-s'?: string;
|
|
44
|
-
'--sinch-global-size-icon'?: string;
|
|
45
|
-
'--sinch-global-color-text'?: string;
|
|
46
|
-
};
|
|
47
10
|
};
|
|
11
|
+
export type TSinchHorizontalStepperItemStyle = {
|
|
12
|
+
'--sinch-comp-horizontal-stepper-color-background-default'?: string;
|
|
13
|
+
'--sinch-comp-horizontal-stepper-color-background-active'?: string;
|
|
14
|
+
'--sinch-comp-horizontal-stepper-color-background-visited'?: string;
|
|
15
|
+
'--sinch-comp-horizontal-stepper-color-background-visited-error'?: string;
|
|
16
|
+
'--sinch-comp-horizontal-stepper-color-background-visited-skip'?: string;
|
|
17
|
+
'--sinch-comp-horizontal-stepper-color-border-default'?: string;
|
|
18
|
+
'--sinch-comp-horizontal-stepper-color-border-active'?: string;
|
|
19
|
+
'--sinch-comp-horizontal-stepper-color-border-visited'?: string;
|
|
20
|
+
'--sinch-comp-horizontal-stepper-color-border-visited-error'?: string;
|
|
21
|
+
'--sinch-comp-horizontal-stepper-color-border-visited-skip'?: string;
|
|
22
|
+
'--sinch-comp-horizontal-stepper-color-icon-default'?: string;
|
|
23
|
+
'--sinch-comp-horizontal-stepper-color-icon-active'?: string;
|
|
24
|
+
'--sinch-comp-horizontal-stepper-color-icon-visited'?: string;
|
|
25
|
+
'--sinch-comp-horizontal-stepper-color-icon-visited-error'?: string;
|
|
26
|
+
'--sinch-comp-horizontal-stepper-color-icon-visited-skip'?: string;
|
|
27
|
+
'--sinch-comp-horizontal-stepper-color-label'?: string;
|
|
28
|
+
'--sinch-comp-horizontal-stepper-color-description'?: string;
|
|
29
|
+
'--sinch-sys-font-desktop-title-s'?: string;
|
|
30
|
+
'--sinch-global-size-icon'?: string;
|
|
31
|
+
'--sinch-global-color-text'?: string;
|
|
32
|
+
};
|
|
33
|
+
export type TSinchHorizontalStepperItem = {
|
|
34
|
+
props: TSinchHorizontalStepperItemProps;
|
|
35
|
+
style: TSinchHorizontalStepperItemStyle;
|
|
36
|
+
};
|
|
37
|
+
export type TSinchHorizontalStepperItemElement = NectaryComponentVanillaByType<TSinchHorizontalStepperItem>;
|
|
38
|
+
export type TSinchHorizontalStepperItemReact = NectaryComponentReactByType<TSinchHorizontalStepperItem>;
|
package/icon/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchIcon } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-icon': TSinchIcon;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-icon':
|
|
8
|
+
'sinch-icon': NectaryComponentVanilla<'sinch-icon'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-icon':
|
|
12
|
+
'sinch-icon': NectaryComponentReact<'sinch-icon'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-icon':
|
|
19
|
+
'sinch-icon': NectaryComponentReact<'sinch-icon'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/icon/types.d.ts
CHANGED
|
@@ -1,41 +1,31 @@
|
|
|
1
1
|
import type { TSinchIcons } from './generated-icon-type';
|
|
2
|
-
import type {
|
|
2
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
3
3
|
export { TSinchIcons };
|
|
4
|
-
export type
|
|
4
|
+
export type TSinchIconProps = ({
|
|
5
5
|
/** Icon font version */
|
|
6
6
|
'icons-version': '1';
|
|
7
7
|
/** Icon name */
|
|
8
8
|
name: string;
|
|
9
|
-
/** Icon name */
|
|
10
|
-
setAttribute(name: 'name', value: string): void;
|
|
11
9
|
} | {
|
|
12
10
|
/** Icon font version */
|
|
13
11
|
'icons-version': '2';
|
|
14
12
|
/** Icon name */
|
|
15
13
|
name: TSinchIcons;
|
|
16
|
-
/** Icon name */
|
|
17
|
-
setAttribute(name: 'name', value: TSinchIcons): void;
|
|
18
14
|
});
|
|
19
|
-
export type
|
|
20
|
-
|
|
21
|
-
'
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
'--sinch-comp-icon-font-feature-settings'?: string;
|
|
34
|
-
'--sinch-comp-icon-font-family-zero-to-d'?: string;
|
|
35
|
-
'--sinch-comp-icon-font-family-e-to-o'?: string;
|
|
36
|
-
'--sinch-comp-icon-font-family-p-to-z'?: string;
|
|
37
|
-
'--sinch-global-size-icon'?: string;
|
|
38
|
-
'--sinch-global-color-icon'?: string;
|
|
39
|
-
'--sinch-sys-color-text-default'?: string;
|
|
40
|
-
};
|
|
15
|
+
export type TSinchIconStyle = {
|
|
16
|
+
'--sinch-comp-icon-font-weight'?: string;
|
|
17
|
+
'--sinch-comp-icon-font-family'?: string;
|
|
18
|
+
'--sinch-comp-icon-font-feature-settings'?: string;
|
|
19
|
+
'--sinch-comp-icon-font-family-zero-to-d'?: string;
|
|
20
|
+
'--sinch-comp-icon-font-family-e-to-o'?: string;
|
|
21
|
+
'--sinch-comp-icon-font-family-p-to-z'?: string;
|
|
22
|
+
'--sinch-global-size-icon'?: string;
|
|
23
|
+
'--sinch-global-color-icon'?: string;
|
|
24
|
+
'--sinch-sys-color-text-default'?: string;
|
|
25
|
+
};
|
|
26
|
+
export type TSinchIcon = {
|
|
27
|
+
props: TSinchIconProps;
|
|
28
|
+
style: TSinchIconStyle;
|
|
41
29
|
};
|
|
30
|
+
export type TSinchIconElement = NectaryComponentVanillaByType<TSinchIcon>;
|
|
31
|
+
export type TSinchIconReact = NectaryComponentReactByType<TSinchIcon>;
|
package/inline-alert/index.d.ts
CHANGED
|
@@ -2,21 +2,25 @@ import '../icon';
|
|
|
2
2
|
import '../rich-text';
|
|
3
3
|
import '../text';
|
|
4
4
|
import '../title';
|
|
5
|
-
import type {
|
|
5
|
+
import type { TSinchInlineAlert } from './types';
|
|
6
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
6
7
|
declare global {
|
|
8
|
+
interface NectaryComponentMap {
|
|
9
|
+
'sinch-inline-alert': TSinchInlineAlert;
|
|
10
|
+
}
|
|
7
11
|
interface HTMLElementTagNameMap {
|
|
8
|
-
'sinch-inline-alert':
|
|
12
|
+
'sinch-inline-alert': NectaryComponentVanilla<'sinch-inline-alert'>;
|
|
9
13
|
}
|
|
10
14
|
namespace JSX {
|
|
11
15
|
interface IntrinsicElements {
|
|
12
|
-
'sinch-inline-alert':
|
|
16
|
+
'sinch-inline-alert': NectaryComponentReact<'sinch-inline-alert'>;
|
|
13
17
|
}
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
20
|
declare module 'react' {
|
|
17
21
|
namespace JSX {
|
|
18
22
|
interface IntrinsicElements {
|
|
19
|
-
'sinch-inline-alert':
|
|
23
|
+
'sinch-inline-alert': NectaryComponentReact<'sinch-inline-alert'>;
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
}
|
package/inline-alert/types.d.ts
CHANGED
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
2
|
export type TSinchInlineAlertType = 'info' | 'success' | 'warn' | 'error';
|
|
3
|
-
export type
|
|
3
|
+
export type TSinchInlineAlertProps = {
|
|
4
4
|
type: TSinchInlineAlertType;
|
|
5
|
-
text
|
|
6
|
-
caption: string;
|
|
7
|
-
setAttribute(name: 'type', value: TSinchInlineAlertType): void;
|
|
8
|
-
setAttribute(name: 'text', value: string): void;
|
|
9
|
-
setAttribute(name: 'caption', value: string): void;
|
|
10
|
-
};
|
|
11
|
-
export type TSinchInlineAlertReact = TSinchElementReact<TSinchInlineAlertElement> & {
|
|
12
|
-
type: TSinchInlineAlertType;
|
|
13
|
-
text?: string;
|
|
5
|
+
text?: string | null;
|
|
14
6
|
caption?: string;
|
|
15
|
-
} & {
|
|
16
|
-
style?: {
|
|
17
|
-
'--sinch-comp-inline-alert-shape-radius'?: string;
|
|
18
|
-
'--sinch-comp-inline-alert-color-success-default-background'?: string;
|
|
19
|
-
'--sinch-comp-inline-alert-color-success-default-text'?: string;
|
|
20
|
-
'--sinch-comp-inline-alert-color-success-default-icon'?: string;
|
|
21
|
-
'--sinch-comp-inline-alert-color-warning-default-background'?: string;
|
|
22
|
-
'--sinch-comp-inline-alert-color-warning-default-text'?: string;
|
|
23
|
-
'--sinch-comp-inline-alert-color-warning-default-icon'?: string;
|
|
24
|
-
'--sinch-comp-inline-alert-color-error-default-background'?: string;
|
|
25
|
-
'--sinch-comp-inline-alert-color-error-default-text'?: string;
|
|
26
|
-
'--sinch-comp-inline-alert-color-error-default-icon'?: string;
|
|
27
|
-
'--sinch-comp-inline-alert-color-info-default-background'?: string;
|
|
28
|
-
'--sinch-comp-inline-alert-color-info-default-text'?: string;
|
|
29
|
-
'--sinch-comp-inline-alert-color-info-default-icon'?: string;
|
|
30
|
-
'--sinch-comp-inline-alert-font-title'?: string;
|
|
31
|
-
'--sinch-comp-inline-alert-font-body'?: string;
|
|
32
|
-
'--sinch-comp-title-font'?: string;
|
|
33
|
-
'--sinch-comp-rich-text-font'?: string;
|
|
34
|
-
'--sinch-global-color-text'?: string;
|
|
35
|
-
'--sinch-global-color-icon'?: string;
|
|
36
|
-
};
|
|
37
7
|
};
|
|
8
|
+
export type TSinchInlineAlertStyle = {
|
|
9
|
+
'--sinch-comp-inline-alert-shape-radius'?: string;
|
|
10
|
+
'--sinch-comp-inline-alert-color-success-default-background'?: string;
|
|
11
|
+
'--sinch-comp-inline-alert-color-success-default-text'?: string;
|
|
12
|
+
'--sinch-comp-inline-alert-color-success-default-icon'?: string;
|
|
13
|
+
'--sinch-comp-inline-alert-color-warning-default-background'?: string;
|
|
14
|
+
'--sinch-comp-inline-alert-color-warning-default-text'?: string;
|
|
15
|
+
'--sinch-comp-inline-alert-color-warning-default-icon'?: string;
|
|
16
|
+
'--sinch-comp-inline-alert-color-error-default-background'?: string;
|
|
17
|
+
'--sinch-comp-inline-alert-color-error-default-text'?: string;
|
|
18
|
+
'--sinch-comp-inline-alert-color-error-default-icon'?: string;
|
|
19
|
+
'--sinch-comp-inline-alert-color-info-default-background'?: string;
|
|
20
|
+
'--sinch-comp-inline-alert-color-info-default-text'?: string;
|
|
21
|
+
'--sinch-comp-inline-alert-color-info-default-icon'?: string;
|
|
22
|
+
'--sinch-comp-inline-alert-font-title'?: string;
|
|
23
|
+
'--sinch-comp-inline-alert-font-body'?: string;
|
|
24
|
+
'--sinch-comp-title-font'?: string;
|
|
25
|
+
'--sinch-comp-rich-text-font'?: string;
|
|
26
|
+
'--sinch-global-color-text'?: string;
|
|
27
|
+
'--sinch-global-color-icon'?: string;
|
|
28
|
+
};
|
|
29
|
+
export type TSinchInlineAlert = {
|
|
30
|
+
props: TSinchInlineAlertProps;
|
|
31
|
+
style: TSinchInlineAlertStyle;
|
|
32
|
+
};
|
|
33
|
+
export type TSinchInlineAlertElement = NectaryComponentVanillaByType<TSinchInlineAlert>;
|
|
34
|
+
export type TSinchInlineAlertReact = NectaryComponentReactByType<TSinchInlineAlert>;
|
package/input/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchInput } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-input': TSinchInput;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-input':
|
|
8
|
+
'sinch-input': NectaryComponentVanilla<'sinch-input'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-input':
|
|
12
|
+
'sinch-input': NectaryComponentReact<'sinch-input'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-input':
|
|
19
|
+
'sinch-input': NectaryComponentReact<'sinch-input'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/input/types.d.ts
CHANGED
|
@@ -1,71 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, NectaryComponentVanilla } from '../types';
|
|
2
2
|
import type { TSinchSize } from '../utils/size';
|
|
3
3
|
export type TSinchInputType = 'text' | 'password' | 'number';
|
|
4
4
|
export type TSinchInputClipboardEvent = CustomEvent<{
|
|
5
5
|
value: string;
|
|
6
6
|
replaceWith: (value: string) => void;
|
|
7
7
|
}>;
|
|
8
|
-
export type
|
|
9
|
-
/** Text field type, `text` by default */
|
|
10
|
-
type: TSinchInputType;
|
|
11
|
-
/** Value */
|
|
12
|
-
value: string;
|
|
13
|
-
/** Mask */
|
|
14
|
-
mask: string | null;
|
|
15
|
-
/** Text that appears in the text field when it has no value set */
|
|
16
|
-
placeholder: string | null;
|
|
17
|
-
/** The HTML autocomplete attribute */
|
|
18
|
-
autocomplete: HTMLInputElement['autocomplete'];
|
|
19
|
-
/** Invalid state */
|
|
20
|
-
invalid: boolean;
|
|
21
|
-
/** Disabled */
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
/** Whether the input should be autocofused */
|
|
24
|
-
autofocus: boolean;
|
|
25
|
-
/** Size, `m` by default */
|
|
26
|
-
size: TSinchSize;
|
|
27
|
-
selectionStart: number | null;
|
|
28
|
-
selectionEnd: number | null;
|
|
29
|
-
selectionDirection: 'forward' | 'backward' | 'none' | null;
|
|
30
|
-
setSelectionRange(selectionStart: number, selectionEnd: number): void;
|
|
31
|
-
/** Change value event */
|
|
32
|
-
addEventListener(type: '-change', listener: (e: CustomEvent<string>) => void): void;
|
|
33
|
-
/** Focus event */
|
|
34
|
-
addEventListener(type: '-focus', listener: (e: CustomEvent<void>) => void): void;
|
|
35
|
-
/** Blur event */
|
|
36
|
-
addEventListener(type: '-blur', listener: (e: CustomEvent<void>) => void): void;
|
|
37
|
-
/** Wheel event */
|
|
38
|
-
addEventListener(type: '-wheel', listener: (e: CustomEvent<void>) => void): void;
|
|
39
|
-
/** Text field type, `text` by default */
|
|
40
|
-
setAttribute(name: 'type', value: TSinchInputType): void;
|
|
41
|
-
/** Value */
|
|
42
|
-
setAttribute(name: 'value', value: string): void;
|
|
43
|
-
/** Mask */
|
|
44
|
-
setAttribute(name: 'mask', value: string): void;
|
|
45
|
-
/** Text that appears in the text field when it has no value set */
|
|
46
|
-
setAttribute(name: 'placeholder', value: string): void;
|
|
47
|
-
/** The HTML autocomplete attribute */
|
|
48
|
-
setAttribute(name: 'autocomplete', value: string): void;
|
|
49
|
-
/** Invalid state */
|
|
50
|
-
setAttribute(name: 'invalid', value: ''): void;
|
|
51
|
-
/** Disabled */
|
|
52
|
-
setAttribute(name: 'disabled', value: ''): void;
|
|
53
|
-
/** Autofocus */
|
|
54
|
-
setAttribute(name: 'autofocus', value: ''): void;
|
|
55
|
-
/** Size, `m` by default */
|
|
56
|
-
setAttribute(name: 'size', value: TSinchSize): void;
|
|
57
|
-
};
|
|
58
|
-
export type TSinchInputReact = TSinchElementReact<TSinchInputElement> & {
|
|
8
|
+
export type TSinchInputProps = {
|
|
59
9
|
/** Controlled value, doesn't change on its own and requres an onChange-value state loop */
|
|
60
10
|
value: string;
|
|
61
11
|
/** Mask */
|
|
62
|
-
mask?: string;
|
|
12
|
+
mask?: string | null;
|
|
63
13
|
/** Label that is used for a11y – might be different from `label` */
|
|
64
14
|
'aria-label': string;
|
|
65
15
|
/** Text field type, `text` by default */
|
|
66
16
|
type?: TSinchInputType;
|
|
67
17
|
/** The HTML autocomplete attribute */
|
|
68
|
-
autocomplete?: string;
|
|
18
|
+
autocomplete?: string | null;
|
|
69
19
|
/** Text that appears in the text field when it has no value set */
|
|
70
20
|
placeholder?: string;
|
|
71
21
|
/** Invalid state */
|
|
@@ -76,43 +26,58 @@ export type TSinchInputReact = TSinchElementReact<TSinchInputElement> & {
|
|
|
76
26
|
autofocus?: boolean;
|
|
77
27
|
/** Size, `m` by default */
|
|
78
28
|
size?: TSinchSize;
|
|
29
|
+
selectionStart?: number | null;
|
|
30
|
+
selectionEnd?: number | null;
|
|
31
|
+
selectionDirection?: 'forward' | 'backward' | 'none' | null;
|
|
32
|
+
};
|
|
33
|
+
export type TSinchInputMethods = {
|
|
34
|
+
setSelectionRange(selectionStart: number, selectionEnd: number): void;
|
|
35
|
+
};
|
|
36
|
+
export type TSinchInputEvents = {
|
|
79
37
|
/** Change value handler */
|
|
80
|
-
'
|
|
38
|
+
'-change'?: (e: CustomEvent<string>) => void;
|
|
81
39
|
/** Focus handler */
|
|
82
|
-
'
|
|
40
|
+
'-focus'?: (e: CustomEvent<void>) => void;
|
|
83
41
|
/** Blur handler */
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
target:
|
|
42
|
+
'-blur'?: (e: CustomEvent<void>) => void;
|
|
43
|
+
'-cut'?: (e: TSinchInputClipboardEvent) => void;
|
|
44
|
+
'-copy'?: (e: TSinchInputClipboardEvent) => void;
|
|
45
|
+
'-paste'?: (e: TSinchInputClipboardEvent) => void;
|
|
46
|
+
'-wheel'?: (e: CustomEvent<void> & {
|
|
47
|
+
target: NectaryComponentVanilla<'sinch-input'>;
|
|
90
48
|
}) => void;
|
|
91
|
-
} & {
|
|
92
|
-
style?: {
|
|
93
|
-
'--sinch-comp-input-size-container-l'?: string;
|
|
94
|
-
'--sinch-comp-input-size-container-m'?: string;
|
|
95
|
-
'--sinch-comp-input-size-container-s'?: string;
|
|
96
|
-
'--sinch-comp-input-size-icon-l'?: string;
|
|
97
|
-
'--sinch-comp-input-size-icon-m'?: string;
|
|
98
|
-
'--sinch-comp-input-size-icon-s'?: string;
|
|
99
|
-
'--sinch-comp-input-shape-radius-size-l'?: string;
|
|
100
|
-
'--sinch-comp-input-shape-radius-size-m'?: string;
|
|
101
|
-
'--sinch-comp-input-shape-radius-size-s'?: string;
|
|
102
|
-
'--sinch-comp-input-font-input'?: string;
|
|
103
|
-
'--sinch-comp-input-font-placeholder'?: string;
|
|
104
|
-
'--sinch-sys-font-body-monospace-m'?: string;
|
|
105
|
-
'--sinch-comp-input-color-default-background-initial'?: string;
|
|
106
|
-
'--sinch-comp-input-color-default-text-initial'?: string;
|
|
107
|
-
'--sinch-comp-input-color-default-text-placeholder'?: string;
|
|
108
|
-
'--sinch-comp-input-color-default-border-initial'?: string;
|
|
109
|
-
'--sinch-comp-input-color-default-border-focus'?: string;
|
|
110
|
-
'--sinch-comp-input-color-default-icon-initial'?: string;
|
|
111
|
-
'--sinch-comp-input-color-disabled-text-initial'?: string;
|
|
112
|
-
'--sinch-comp-input-color-disabled-border-initial'?: string;
|
|
113
|
-
'--sinch-comp-input-color-disabled-icon-initial'?: string;
|
|
114
|
-
'--sinch-comp-input-color-invalid-border-initial'?: string;
|
|
115
|
-
'--sinch-global-size-icon'?: string;
|
|
116
|
-
'--sinch-global-color-icon'?: string;
|
|
117
|
-
};
|
|
118
49
|
};
|
|
50
|
+
export type TSinchInputStyle = {
|
|
51
|
+
'--sinch-comp-input-size-container-l'?: string;
|
|
52
|
+
'--sinch-comp-input-size-container-m'?: string;
|
|
53
|
+
'--sinch-comp-input-size-container-s'?: string;
|
|
54
|
+
'--sinch-comp-input-size-icon-l'?: string;
|
|
55
|
+
'--sinch-comp-input-size-icon-m'?: string;
|
|
56
|
+
'--sinch-comp-input-size-icon-s'?: string;
|
|
57
|
+
'--sinch-comp-input-shape-radius-size-l'?: string;
|
|
58
|
+
'--sinch-comp-input-shape-radius-size-m'?: string;
|
|
59
|
+
'--sinch-comp-input-shape-radius-size-s'?: string;
|
|
60
|
+
'--sinch-comp-input-font-input'?: string;
|
|
61
|
+
'--sinch-comp-input-font-placeholder'?: string;
|
|
62
|
+
'--sinch-sys-font-body-monospace-m'?: string;
|
|
63
|
+
'--sinch-comp-input-color-default-background-initial'?: string;
|
|
64
|
+
'--sinch-comp-input-color-default-text-initial'?: string;
|
|
65
|
+
'--sinch-comp-input-color-default-text-placeholder'?: string;
|
|
66
|
+
'--sinch-comp-input-color-default-border-initial'?: string;
|
|
67
|
+
'--sinch-comp-input-color-default-border-focus'?: string;
|
|
68
|
+
'--sinch-comp-input-color-default-icon-initial'?: string;
|
|
69
|
+
'--sinch-comp-input-color-disabled-text-initial'?: string;
|
|
70
|
+
'--sinch-comp-input-color-disabled-border-initial'?: string;
|
|
71
|
+
'--sinch-comp-input-color-disabled-icon-initial'?: string;
|
|
72
|
+
'--sinch-comp-input-color-invalid-border-initial'?: string;
|
|
73
|
+
'--sinch-global-size-icon'?: string;
|
|
74
|
+
'--sinch-global-color-icon'?: string;
|
|
75
|
+
};
|
|
76
|
+
export type TSinchInput = {
|
|
77
|
+
props: TSinchInputProps;
|
|
78
|
+
methods: TSinchInputMethods;
|
|
79
|
+
events: TSinchInputEvents;
|
|
80
|
+
style: TSinchInputStyle;
|
|
81
|
+
};
|
|
82
|
+
export type TSinchInputElement = NectaryComponentVanillaByType<TSinchInput>;
|
|
83
|
+
export type TSinchInputReact = NectaryComponentReactByType<TSinchInput>;
|
package/link/index.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import '../icon';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TSinchLink } from './types';
|
|
3
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
3
4
|
declare global {
|
|
5
|
+
interface NectaryComponentMap {
|
|
6
|
+
'sinch-link': TSinchLink;
|
|
7
|
+
}
|
|
4
8
|
interface HTMLElementTagNameMap {
|
|
5
|
-
'sinch-link':
|
|
9
|
+
'sinch-link': NectaryComponentVanilla<'sinch-link'>;
|
|
6
10
|
}
|
|
7
11
|
namespace JSX {
|
|
8
12
|
interface IntrinsicElements {
|
|
9
|
-
'sinch-link':
|
|
13
|
+
'sinch-link': NectaryComponentReact<'sinch-link'>;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
declare module 'react' {
|
|
14
18
|
namespace JSX {
|
|
15
19
|
interface IntrinsicElements {
|
|
16
|
-
'sinch-link':
|
|
20
|
+
'sinch-link': NectaryComponentReact<'sinch-link'>;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
}
|
package/link/types.d.ts
CHANGED
|
@@ -1,39 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Text content of hyperlink */
|
|
4
|
-
text: string;
|
|
5
|
-
/** URL that hyperlink point to */
|
|
6
|
-
href: string;
|
|
7
|
-
/** Disabled */
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
/** Replaces the anchor tag behaviour to use history instead */
|
|
10
|
-
'use-history': boolean;
|
|
11
|
-
/** Sets `target="_blank" and a special external icon on the left side */
|
|
12
|
-
external: boolean;
|
|
13
|
-
/** Special standalone (`display: block`) mode with an arrow icon on the right side */
|
|
14
|
-
standalone: boolean;
|
|
15
|
-
/** Prevents default behaviour on hyperlink click */
|
|
16
|
-
preventDefault: boolean;
|
|
17
|
-
/** Click event */
|
|
18
|
-
addEventListener(type: '-click', listener: (e: CustomEvent<void>) => void): void;
|
|
19
|
-
/** Focus event */
|
|
20
|
-
addEventListener(type: '-focus', listener: (e: CustomEvent<void>) => void): void;
|
|
21
|
-
/** Blur event */
|
|
22
|
-
addEventListener(type: '-blur', listener: (e: CustomEvent<void>) => void): void;
|
|
23
|
-
/** Text content of hyperlink */
|
|
24
|
-
setAttribute(name: 'text', value: string): void;
|
|
25
|
-
/** URL that hyperlink point to */
|
|
26
|
-
setAttribute(name: 'href', value: string): void;
|
|
27
|
-
/** Disabled */
|
|
28
|
-
setAttribute(name: 'disabled', value: ''): void;
|
|
29
|
-
/** Sets `target="_blank" and a special external icon on the left side */
|
|
30
|
-
setAttribute(name: 'external', value: ''): void;
|
|
31
|
-
/** Special standalone (`display: block`) mode with an arrow icon on the right side */
|
|
32
|
-
setAttribute(name: 'standalone', value: ''): void;
|
|
33
|
-
/** Prevents default behaviour on hyperlink click */
|
|
34
|
-
setAttribute(name: 'preventdefault', value: ''): void;
|
|
35
|
-
};
|
|
36
|
-
export type TSinchLinkReact = TSinchElementReact<TSinchLinkElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchLinkProps = {
|
|
37
3
|
/** Text content of hyperlink */
|
|
38
4
|
text: string;
|
|
39
5
|
/** URL that hyperlink point to */
|
|
@@ -50,28 +16,36 @@ export type TSinchLinkReact = TSinchElementReact<TSinchLinkElement> & {
|
|
|
50
16
|
preventDefault?: boolean;
|
|
51
17
|
/** Label that is used for a11y – might be different from `text` */
|
|
52
18
|
'aria-label': string;
|
|
19
|
+
};
|
|
20
|
+
export type TSinchLinkEvents = {
|
|
53
21
|
/** Click even handler */
|
|
54
|
-
'
|
|
22
|
+
'-click'?: (e: CustomEvent<void>) => void;
|
|
55
23
|
/** Focus even handler */
|
|
56
|
-
'
|
|
24
|
+
'-focus'?: (e: CustomEvent<void>) => void;
|
|
57
25
|
/** Blur even handler */
|
|
58
|
-
'
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
26
|
+
'-blur'?: (e: CustomEvent<void>) => void;
|
|
27
|
+
};
|
|
28
|
+
export type TSinchLinkStyle = {
|
|
29
|
+
'--sinch-comp-link-default-font-initial'?: string;
|
|
30
|
+
'--sinch-comp-link-default-text-decoration-initial'?: string;
|
|
31
|
+
'--sinch-comp-link-default-text-decoration-hover'?: string;
|
|
32
|
+
'--sinch-comp-link-default-text-decoration-disabled'?: string;
|
|
33
|
+
'--sinch-comp-link-standalone-font-initial'?: string;
|
|
34
|
+
'--sinch-comp-link-color-default-text-initial'?: string;
|
|
35
|
+
'--sinch-comp-link-color-default-text-hover'?: string;
|
|
36
|
+
'--sinch-comp-link-color-default-icon-initial'?: string;
|
|
37
|
+
'--sinch-comp-link-color-default-icon-hover'?: string;
|
|
38
|
+
'--sinch-comp-link-color-default-outline-focus'?: string;
|
|
39
|
+
'--sinch-comp-link-color-disabled-text-initial'?: string;
|
|
40
|
+
'--sinch-comp-link-color-disabled-icon-initial'?: string;
|
|
41
|
+
'--sinch-global-color-icon'?: string;
|
|
42
|
+
'--sinch-global-size-icon'?: string;
|
|
43
|
+
'--sinch-global-text-white-space'?: string;
|
|
44
|
+
};
|
|
45
|
+
export type TSinchLink = {
|
|
46
|
+
props: TSinchLinkProps;
|
|
47
|
+
events: TSinchLinkEvents;
|
|
48
|
+
style: TSinchLinkStyle;
|
|
77
49
|
};
|
|
50
|
+
export type TSinchLinkElement = NectaryComponentVanillaByType<TSinchLink>;
|
|
51
|
+
export type TSinchLinkReact = NectaryComponentReactByType<TSinchLink>;
|
package/list/index.d.ts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
2
|
declare global {
|
|
3
|
+
interface NectaryComponentMap {
|
|
4
|
+
'sinch-list': {};
|
|
5
|
+
}
|
|
3
6
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-list':
|
|
7
|
+
'sinch-list': NectaryComponentVanilla<'sinch-list'>;
|
|
5
8
|
}
|
|
6
9
|
namespace JSX {
|
|
7
10
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-list':
|
|
11
|
+
'sinch-list': NectaryComponentReact<'sinch-list'>;
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
declare module 'react' {
|
|
13
16
|
namespace JSX {
|
|
14
17
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-list':
|
|
18
|
+
'sinch-list': NectaryComponentReact<'sinch-list'>;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
21
|
}
|
package/list/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType } from '../types';
|
|
2
2
|
export type TSinchListElement = HTMLElement;
|
|
3
|
-
export type TSinchListReact =
|
|
3
|
+
export type TSinchListReact = NectaryComponentReactByType<TSinchListElement>;
|
package/list-item/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchListItem } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-list-item': TSinchListItem;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-list-item':
|
|
8
|
+
'sinch-list-item': NectaryComponentVanilla<'sinch-list-item'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-list-item':
|
|
12
|
+
'sinch-list-item': NectaryComponentReact<'sinch-list-item'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-list-item':
|
|
19
|
+
'sinch-list-item': NectaryComponentReact<'sinch-list-item'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|