@nectary/components 4.8.2 → 4.9.1
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 +3 -3
- 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/index.js +1 -1
- package/select-menu/types.d.ts +19 -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
package/list-item/types.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { NectaryComponentReactByType } from '../types';
|
|
2
|
+
export type TSinchListItemStyle = {
|
|
3
|
+
'--sinch-comp-list-color-default-background-initial'?: string;
|
|
4
|
+
'--sinch-comp-list-color-default-background-hover'?: string;
|
|
5
|
+
'--sinch-comp-list-color-default-border-initial'?: string;
|
|
6
|
+
};
|
|
7
|
+
export type TSinchListItem = {
|
|
8
|
+
style: TSinchListItemStyle;
|
|
9
9
|
};
|
|
10
|
+
export type TSinchListItemElement = HTMLElement;
|
|
11
|
+
export type TSinchListItemReact = NectaryComponentReactByType<TSinchListItemElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nectary/components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"**/*/*.css",
|
|
6
6
|
"**/*/*.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.22.15",
|
|
23
|
-
"@nectary/assets": "2.
|
|
23
|
+
"@nectary/assets": "2.3.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@babel/cli": "^7.22.15",
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"typescript": "^5.2.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@nectary/theme-base": "1.4.
|
|
37
|
+
"@nectary/theme-base": "1.4.2"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/pagination/index.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import '../icon';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TSinchPagination } from './types';
|
|
3
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
3
4
|
declare global {
|
|
5
|
+
interface NectaryComponentMap {
|
|
6
|
+
'sinch-pagination': TSinchPagination;
|
|
7
|
+
}
|
|
4
8
|
interface HTMLElementTagNameMap {
|
|
5
|
-
'sinch-pagination':
|
|
9
|
+
'sinch-pagination': NectaryComponentVanilla<'sinch-pagination'>;
|
|
6
10
|
}
|
|
7
11
|
namespace JSX {
|
|
8
12
|
interface IntrinsicElements {
|
|
9
|
-
'sinch-pagination':
|
|
13
|
+
'sinch-pagination': NectaryComponentReact<'sinch-pagination'>;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
declare module 'react' {
|
|
14
18
|
namespace JSX {
|
|
15
19
|
interface IntrinsicElements {
|
|
16
|
-
'sinch-pagination':
|
|
20
|
+
'sinch-pagination': NectaryComponentReact<'sinch-pagination'>;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
}
|
package/pagination/types.d.ts
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, TRect } from '../types';
|
|
2
|
+
export type TSinchPaginationProps = {
|
|
3
3
|
value: number;
|
|
4
4
|
max: number;
|
|
5
|
-
readonly prevButtonRect
|
|
6
|
-
readonly nextButtonRect
|
|
5
|
+
readonly prevButtonRect?: TRect;
|
|
6
|
+
readonly nextButtonRect?: TRect;
|
|
7
|
+
};
|
|
8
|
+
export type TSinchPaginationMethods = {
|
|
7
9
|
nthButtonRect(index: number): TRect | null;
|
|
8
|
-
addEventListener(type: '-change', listener: (e: CustomEvent<number>) => void): void;
|
|
9
|
-
setAttribute(name: 'value', value: string): void;
|
|
10
|
-
setAttribute(name: 'max', value: string): void;
|
|
11
10
|
};
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
11
|
+
export type TSinchPaginationEvents = {
|
|
12
|
+
'-change': (e: CustomEvent<number>) => void;
|
|
13
|
+
};
|
|
14
|
+
export type TSinchPaginationStyle = {
|
|
15
|
+
'--sinch-comp-pagination-shape-radius'?: string;
|
|
16
|
+
'--sinch-comp-pagination-font-default-page-number'?: string;
|
|
17
|
+
'--sinch-comp-pagination-font-checked-page-number'?: string;
|
|
18
|
+
'--sinch-comp-pagination-color-default-icon-default'?: string;
|
|
19
|
+
'--sinch-comp-pagination-color-default-text-initial'?: string;
|
|
20
|
+
'--sinch-comp-pagination-color-default-background-initial'?: string;
|
|
21
|
+
'--sinch-comp-pagination-color-default-background-hover'?: string;
|
|
22
|
+
'--sinch-comp-pagination-color-default-outline-focus'?: string;
|
|
23
|
+
'--sinch-comp-pagination-color-checked-background-initial'?: string;
|
|
24
|
+
'--sinch-comp-pagination-color-checked-background-hover'?: string;
|
|
25
|
+
'--sinch-comp-pagination-color-disabled-icon-initial'?: string;
|
|
26
|
+
'--sinch-global-color-icon'?: string;
|
|
27
|
+
'--sinch-icon-size'?: string;
|
|
28
|
+
};
|
|
29
|
+
export type TSinchPagination = {
|
|
30
|
+
props: TSinchPaginationProps;
|
|
31
|
+
methods: TSinchPaginationMethods;
|
|
32
|
+
events: TSinchPaginationEvents;
|
|
33
|
+
style: TSinchPaginationStyle;
|
|
32
34
|
};
|
|
35
|
+
export type TSinchPaginationElement = NectaryComponentVanillaByType<TSinchPagination>;
|
|
36
|
+
export type TSinchPaginationReact = NectaryComponentReactByType<TSinchPagination>;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import '../dialog';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TSinchPersistentOverlay } from './types';
|
|
3
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
3
4
|
declare global {
|
|
5
|
+
interface NectaryComponentMap {
|
|
6
|
+
'sinch-persistent-overlay': TSinchPersistentOverlay;
|
|
7
|
+
}
|
|
4
8
|
interface HTMLElementTagNameMap {
|
|
5
|
-
'sinch-persistent-overlay':
|
|
9
|
+
'sinch-persistent-overlay': NectaryComponentVanilla<'sinch-persistent-overlay'>;
|
|
6
10
|
}
|
|
7
11
|
namespace JSX {
|
|
8
12
|
interface IntrinsicElements {
|
|
9
|
-
'sinch-persistent-overlay':
|
|
13
|
+
'sinch-persistent-overlay': NectaryComponentReact<'sinch-persistent-overlay'>;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
declare module 'react' {
|
|
14
18
|
namespace JSX {
|
|
15
19
|
interface IntrinsicElements {
|
|
16
|
-
'sinch-persistent-overlay':
|
|
20
|
+
'sinch-persistent-overlay': NectaryComponentReact<'sinch-persistent-overlay'>;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
}
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export type
|
|
4
|
-
/** Open/close state */
|
|
5
|
-
open: TSinchDialogElement['open'];
|
|
6
|
-
/** Dialog caption */
|
|
7
|
-
caption: TSinchDialogElement['caption'];
|
|
8
|
-
/** Dialog caption */
|
|
9
|
-
setAttribute(name: 'caption', value: TSinchDialogElement['caption']): void;
|
|
10
|
-
/** visibility altered event handler */
|
|
11
|
-
addEventListener(type: '-visibility-altered', listener: (e: CustomEvent) => void): void;
|
|
12
|
-
};
|
|
13
|
-
export type TSinchPersistentOverlayReact = TSinchElementReact<TSinchPersistentOverlayElement> & {
|
|
1
|
+
import type { TSinchDialogProps } from '../dialog/types';
|
|
2
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
3
|
+
export type TSinchPersistentOverlayProps = {
|
|
14
4
|
/** Controls whether the dialog should be open */
|
|
15
|
-
open:
|
|
5
|
+
open: TSinchDialogProps['open'];
|
|
16
6
|
/** Dialog caption */
|
|
17
|
-
caption:
|
|
7
|
+
caption: TSinchDialogProps['caption'];
|
|
18
8
|
/** Label that is used for a11y */
|
|
19
|
-
'aria-label':
|
|
9
|
+
'aria-label': TSinchDialogProps['aria-label'];
|
|
10
|
+
};
|
|
11
|
+
export type TSinchPersistentOverlayEvents = {
|
|
20
12
|
/** visibility altered event handler */
|
|
21
|
-
'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
'-visibility-altered': (e: CustomEvent) => void;
|
|
14
|
+
};
|
|
15
|
+
export type TSinchPersistentOverlayStyle = {
|
|
16
|
+
'--sinch-dialog-close-button-display'?: string;
|
|
17
|
+
};
|
|
18
|
+
export type TSinchPersistentOverlay = {
|
|
19
|
+
props: TSinchPersistentOverlayProps;
|
|
20
|
+
events: TSinchPersistentOverlayEvents;
|
|
21
|
+
style: TSinchPersistentOverlayStyle;
|
|
26
22
|
};
|
|
23
|
+
export type TSinchPersistentOverlayElement = NectaryComponentVanillaByType<TSinchPersistentOverlay>;
|
|
24
|
+
export type TSinchPersistentOverlayReact = NectaryComponentReactByType<TSinchPersistentOverlay>;
|
package/pop/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchPop } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-pop': TSinchPop;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-pop':
|
|
8
|
+
'sinch-pop': NectaryComponentVanilla<'sinch-pop'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-pop':
|
|
12
|
+
'sinch-pop': NectaryComponentReact<'sinch-pop'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-pop':
|
|
19
|
+
'sinch-pop': NectaryComponentReact<'sinch-pop'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/pop/types.d.ts
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, TRect } from '../types';
|
|
2
2
|
export type TSinchPopOrientation = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom-center' | 'bottom-stretch' | 'top-center' | 'top-stretch' | 'center-right' | 'center-left';
|
|
3
|
-
export type
|
|
4
|
-
/** Open/close state */
|
|
5
|
-
open: boolean;
|
|
6
|
-
/** Orientation, where it *points to* from origin */
|
|
7
|
-
orientation: TSinchPopOrientation;
|
|
8
|
-
/** Modal/non-modal mode */
|
|
9
|
-
modal: boolean;
|
|
10
|
-
inset: number;
|
|
11
|
-
readonly footprintRect: TRect;
|
|
12
|
-
readonly popoverRect: TRect;
|
|
13
|
-
/** Close event */
|
|
14
|
-
addEventListener(type: '-close', listener: (e: CustomEvent<void>) => void): void;
|
|
15
|
-
/** Open/close state */
|
|
16
|
-
setAttribute(name: 'open', value: ''): void;
|
|
17
|
-
/** Orientation, where it *points to* from origin */
|
|
18
|
-
setAttribute(name: 'orientation', value: TSinchPopOrientation): void;
|
|
19
|
-
/** Modal/non-modal mode */
|
|
20
|
-
setAttribute(name: 'modal', value: boolean): void;
|
|
21
|
-
setAttribute(name: 'inset', value: string): void;
|
|
22
|
-
};
|
|
23
|
-
export type TSinchPopReact = TSinchElementReact<TSinchPopElement> & {
|
|
3
|
+
export type TSinchPopProps = {
|
|
24
4
|
/** Open/close state */
|
|
25
5
|
open: boolean;
|
|
26
6
|
/** Orientation, where it *points to* from origin */
|
|
@@ -30,6 +10,16 @@ export type TSinchPopReact = TSinchElementReact<TSinchPopElement> & {
|
|
|
30
10
|
inset?: number;
|
|
31
11
|
/** Label that is used for a11y */
|
|
32
12
|
'aria-label': string;
|
|
13
|
+
readonly footprintRect?: TRect;
|
|
14
|
+
readonly popoverRect?: TRect;
|
|
15
|
+
};
|
|
16
|
+
export type TSinchPopEvents = {
|
|
33
17
|
/** Close event handler */
|
|
34
|
-
'
|
|
18
|
+
'-close'?: (e: CustomEvent<void>) => void;
|
|
19
|
+
};
|
|
20
|
+
export type TSinchPop = {
|
|
21
|
+
props: TSinchPopProps;
|
|
22
|
+
events: TSinchPopEvents;
|
|
35
23
|
};
|
|
24
|
+
export type TSinchPopElement = NectaryComponentVanillaByType<TSinchPop>;
|
|
25
|
+
export type TSinchPopReact = NectaryComponentReactByType<TSinchPop>;
|
package/popover/index.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import '../pop';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TSinchPopover } from './types';
|
|
3
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
3
4
|
declare global {
|
|
5
|
+
interface NectaryComponentMap {
|
|
6
|
+
'sinch-popover': TSinchPopover;
|
|
7
|
+
}
|
|
4
8
|
interface HTMLElementTagNameMap {
|
|
5
|
-
'sinch-popover':
|
|
9
|
+
'sinch-popover': NectaryComponentVanilla<'sinch-popover'>;
|
|
6
10
|
}
|
|
7
11
|
namespace JSX {
|
|
8
12
|
interface IntrinsicElements {
|
|
9
|
-
'sinch-popover':
|
|
13
|
+
'sinch-popover': NectaryComponentReact<'sinch-popover'>;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
declare module 'react' {
|
|
14
18
|
namespace JSX {
|
|
15
19
|
interface IntrinsicElements {
|
|
16
|
-
'sinch-popover':
|
|
20
|
+
'sinch-popover': NectaryComponentReact<'sinch-popover'>;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
}
|
package/popover/types.d.ts
CHANGED
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, TRect } from '../types';
|
|
2
2
|
export type TSinchPopoverOrientation = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom' | 'top';
|
|
3
|
-
export type
|
|
4
|
-
/** Open/close state */
|
|
5
|
-
open: boolean;
|
|
6
|
-
/** Orientation, where it *points to* from origin */
|
|
7
|
-
orientation: TSinchPopoverOrientation;
|
|
8
|
-
/** Modal/non-modal mode */
|
|
9
|
-
modal: boolean;
|
|
10
|
-
/** Show tip */
|
|
11
|
-
tip: boolean;
|
|
12
|
-
readonly footprintRect: TRect;
|
|
13
|
-
readonly popoverRect: TRect;
|
|
14
|
-
/** Close event */
|
|
15
|
-
addEventListener(type: '-close', listener: (e: CustomEvent<void>) => void): void;
|
|
16
|
-
/** Open/close state */
|
|
17
|
-
setAttribute(name: 'open', value: ''): void;
|
|
18
|
-
/** Orientation, where it *points to* from origin */
|
|
19
|
-
setAttribute(name: 'orientation', value: TSinchPopoverOrientation): void;
|
|
20
|
-
/** Modal/non-modal mode */
|
|
21
|
-
setAttribute(name: 'modal', value: ''): void;
|
|
22
|
-
/** Show tip */
|
|
23
|
-
setAttribute(name: 'tip', value: ''): void;
|
|
24
|
-
};
|
|
25
|
-
export type TSinchPopoverReact = TSinchElementReact<TSinchPopoverElement> & {
|
|
3
|
+
export type TSinchPopoverProps = {
|
|
26
4
|
/** Open/close state */
|
|
27
5
|
open: boolean;
|
|
28
6
|
/** Orientation, where it *points to* from origin */
|
|
@@ -33,13 +11,23 @@ export type TSinchPopoverReact = TSinchElementReact<TSinchPopoverElement> & {
|
|
|
33
11
|
tip?: boolean;
|
|
34
12
|
/** Label that is used for a11y */
|
|
35
13
|
'aria-label': string;
|
|
14
|
+
readonly footprintRect?: TRect;
|
|
15
|
+
readonly popoverRect?: TRect;
|
|
16
|
+
};
|
|
17
|
+
export type TSinchPopoverEvents = {
|
|
36
18
|
/** Close event handler */
|
|
37
|
-
'
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
19
|
+
'-close'?: (e: CustomEvent<void>) => void;
|
|
20
|
+
};
|
|
21
|
+
export type TSinchPopoverStyle = {
|
|
22
|
+
'--sinch-comp-popover-shape-radius'?: string;
|
|
23
|
+
'--sinch-comp-popover-shadow'?: string;
|
|
24
|
+
'--sinch-comp-popover-color-default-background-initial'?: string;
|
|
25
|
+
'--sinch-comp-popover-color-default-border-initial'?: string;
|
|
26
|
+
};
|
|
27
|
+
export type TSinchPopover = {
|
|
28
|
+
props: TSinchPopoverProps;
|
|
29
|
+
events: TSinchPopoverEvents;
|
|
30
|
+
style: TSinchPopoverStyle;
|
|
45
31
|
};
|
|
32
|
+
export type TSinchPopoverElement = NectaryComponentVanillaByType<TSinchPopover>;
|
|
33
|
+
export type TSinchPopoverReact = NectaryComponentReactByType<TSinchPopover>;
|
package/progress/index.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import '../text';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TSinchProgress } from './types';
|
|
3
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
3
4
|
declare global {
|
|
5
|
+
interface NectaryComponentMap {
|
|
6
|
+
'sinch-progress': TSinchProgress;
|
|
7
|
+
}
|
|
4
8
|
interface HTMLElementTagNameMap {
|
|
5
|
-
'sinch-progress':
|
|
9
|
+
'sinch-progress': NectaryComponentVanilla<'sinch-progress'>;
|
|
6
10
|
}
|
|
7
11
|
namespace JSX {
|
|
8
12
|
interface IntrinsicElements {
|
|
9
|
-
'sinch-progress':
|
|
13
|
+
'sinch-progress': NectaryComponentReact<'sinch-progress'>;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
declare module 'react' {
|
|
14
18
|
namespace JSX {
|
|
15
19
|
interface IntrinsicElements {
|
|
16
|
-
'sinch-progress':
|
|
20
|
+
'sinch-progress': NectaryComponentReact<'sinch-progress'>;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
}
|
package/progress/types.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
value: number;
|
|
4
|
-
detailed: boolean;
|
|
5
|
-
setAttribute(name: 'value', value: string): void;
|
|
6
|
-
setAttribute(name: 'detailed', value: ''): void;
|
|
7
|
-
};
|
|
8
|
-
export type TSinchProgressReact = TSinchElementReact<TSinchProgressElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchProgressProps = {
|
|
9
3
|
value: number;
|
|
10
4
|
detailed?: boolean;
|
|
11
5
|
'aria-label': string;
|
|
12
|
-
} & {
|
|
13
|
-
style?: {
|
|
14
|
-
'--sinch-comp-progress-color-default-background-initial'?: string;
|
|
15
|
-
'--sinch-comp-progress-color-default-bar-initial'?: string;
|
|
16
|
-
'--sinch-comp-progress-color-default-text-initial'?: string;
|
|
17
|
-
};
|
|
18
6
|
};
|
|
7
|
+
export type TSinchProgressStyle = {
|
|
8
|
+
'--sinch-comp-progress-color-default-background-initial'?: string;
|
|
9
|
+
'--sinch-comp-progress-color-default-bar-initial'?: string;
|
|
10
|
+
'--sinch-comp-progress-color-default-text-initial'?: string;
|
|
11
|
+
};
|
|
12
|
+
export type TSinchProgress = {
|
|
13
|
+
props: TSinchProgressProps;
|
|
14
|
+
style: TSinchProgressStyle;
|
|
15
|
+
};
|
|
16
|
+
export type TSinchProgressElement = NectaryComponentVanillaByType<TSinchProgress>;
|
|
17
|
+
export type TSinchProgressReact = NectaryComponentReactByType<TSinchProgress>;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchProgressStepper } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-progress-stepper': TSinchProgressStepper;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-progress-stepper':
|
|
8
|
+
'sinch-progress-stepper': NectaryComponentVanilla<'sinch-progress-stepper'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-progress-stepper':
|
|
12
|
+
'sinch-progress-stepper': NectaryComponentReact<'sinch-progress-stepper'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-progress-stepper':
|
|
19
|
+
'sinch-progress-stepper': NectaryComponentReact<'sinch-progress-stepper'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchProgressStepperProps = {
|
|
3
3
|
/** Current selected item value */
|
|
4
4
|
value: string;
|
|
5
5
|
/** Current progress value */
|
|
6
6
|
progressValue: string;
|
|
7
|
-
nthOptionRect(index: number): TRect | null;
|
|
8
|
-
/** Change value event */
|
|
9
|
-
addEventListener(type: '-change', listener: (e: CustomEvent<string>) => void): void;
|
|
10
|
-
/** Current selected item value */
|
|
11
|
-
setAttribute(name: 'value', value: string): void;
|
|
12
|
-
/** Current progress value */
|
|
13
|
-
setAttribute(name: 'progressvalue', value: string): void;
|
|
14
7
|
};
|
|
15
|
-
export type
|
|
16
|
-
/** Current selected item value */
|
|
17
|
-
value: string;
|
|
18
|
-
/** Current progress value */
|
|
19
|
-
progressValue: string;
|
|
8
|
+
export type TSinchProgressStepperEvents = {
|
|
20
9
|
/** Change selected value event */
|
|
21
|
-
'
|
|
10
|
+
'-change'?: (e: CustomEvent<string>) => void;
|
|
11
|
+
};
|
|
12
|
+
export type TSinchProgressStepper = {
|
|
13
|
+
props: TSinchProgressStepperProps;
|
|
14
|
+
events: TSinchProgressStepperEvents;
|
|
22
15
|
};
|
|
16
|
+
export type TSinchProgressStepperElement = NectaryComponentVanillaByType<TSinchProgressStepper>;
|
|
17
|
+
export type TSinchProgressStepperReact = NectaryComponentReactByType<TSinchProgressStepper>;
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import '../icon';
|
|
2
2
|
import '../text';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TSinchProgressStepperItem } from './types';
|
|
4
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
4
5
|
declare global {
|
|
6
|
+
interface NectaryComponentMap {
|
|
7
|
+
'sinch-progress-stepper-item': TSinchProgressStepperItem;
|
|
8
|
+
}
|
|
5
9
|
interface HTMLElementTagNameMap {
|
|
6
|
-
'sinch-progress-stepper-item':
|
|
10
|
+
'sinch-progress-stepper-item': NectaryComponentVanilla<'sinch-progress-stepper-item'>;
|
|
7
11
|
}
|
|
8
12
|
namespace JSX {
|
|
9
13
|
interface IntrinsicElements {
|
|
10
|
-
'sinch-progress-stepper-item':
|
|
14
|
+
'sinch-progress-stepper-item': NectaryComponentReact<'sinch-progress-stepper-item'>;
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
declare module 'react' {
|
|
15
19
|
namespace JSX {
|
|
16
20
|
interface IntrinsicElements {
|
|
17
|
-
'sinch-progress-stepper-item':
|
|
21
|
+
'sinch-progress-stepper-item': NectaryComponentReact<'sinch-progress-stepper-item'>;
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
}
|
|
@@ -1,51 +1,42 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Value */
|
|
4
|
-
value: string;
|
|
5
|
-
/** Text */
|
|
6
|
-
text: string;
|
|
7
|
-
/** Invalid */
|
|
8
|
-
invalid: boolean;
|
|
9
|
-
/** Value */
|
|
10
|
-
setAttribute(name: 'value', value: string): void;
|
|
11
|
-
/** Text */
|
|
12
|
-
setAttribute(name: 'text', value: string): void;
|
|
13
|
-
/** Invalid */
|
|
14
|
-
setAttribute(name: 'invalid', value: ''): void;
|
|
15
|
-
};
|
|
16
|
-
export type TSinchProgressStepperItemReact = TSinchElementReact<TSinchProgressStepperItemElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchProgressStepperItemProps = {
|
|
17
3
|
/** Value */
|
|
18
4
|
value: string;
|
|
19
5
|
/** Text */
|
|
20
6
|
text: string;
|
|
21
7
|
/** Invalid */
|
|
22
8
|
invalid?: boolean;
|
|
23
|
-
} & {
|
|
24
|
-
style?: {
|
|
25
|
-
'--sinch-comp-progress-stepper-step-shape-radius'?: string;
|
|
26
|
-
'--sinch-comp-progress-stepper-step-color-incomplete-background-hover'?: string;
|
|
27
|
-
'--sinch-comp-progress-stepper-step-color-incomplete-label-default'?: string;
|
|
28
|
-
'--sinch-comp-progress-stepper-step-color-incomplete-current-label-default'?: string;
|
|
29
|
-
'--sinch-comp-progress-stepper-step-color-incomplete-progress-background'?: string;
|
|
30
|
-
'--sinch-comp-progress-stepper-step-color-incomplete-progress-bar'?: string;
|
|
31
|
-
'--sinch-comp-progress-stepper-step-color-complete-background-hover'?: string;
|
|
32
|
-
'--sinch-comp-progress-stepper-step-color-complete-label-default'?: string;
|
|
33
|
-
'--sinch-comp-progress-stepper-step-color-complete-current-label-default'?: string;
|
|
34
|
-
'--sinch-comp-progress-stepper-step-color-complete-progress-background'?: string;
|
|
35
|
-
'--sinch-comp-progress-stepper-step-color-complete-progress-bar'?: string;
|
|
36
|
-
'--sinch-comp-progress-stepper-step-color-invalid-background-hover'?: string;
|
|
37
|
-
'--sinch-comp-progress-stepper-step-color-invalid-label-default'?: string;
|
|
38
|
-
'--sinch-comp-progress-stepper-step-color-invalid-icon-default'?: string;
|
|
39
|
-
'--sinch-comp-progress-stepper-step-color-invalid-progress-background'?: string;
|
|
40
|
-
'--sinch-comp-progress-stepper-step-color-inactive-label-default'?: string;
|
|
41
|
-
'--sinch-comp-progress-stepper-step-color-inactive-progress-background'?: string;
|
|
42
|
-
'--sinch-comp-progress-stepper-step-color-outline-focus'?: string;
|
|
43
|
-
'--sinch-comp-progress-stepper-step-font-incomplete-label'?: string;
|
|
44
|
-
'--sinch-comp-progress-stepper-step-font-complete-label'?: string;
|
|
45
|
-
'--sinch-comp-progress-stepper-step-font-inactive-label'?: string;
|
|
46
|
-
'--sinch-comp-progress-stepper-step-font-invalid-label'?: string;
|
|
47
|
-
'--sinch-comp-progress-stepper-step-font-incomplete-current-label'?: string;
|
|
48
|
-
'--sinch-comp-progress-stepper-step-font-complete-current-label'?: string;
|
|
49
|
-
'--sinch-comp-progress-stepper-step-font-invalid-current-label'?: string;
|
|
50
|
-
};
|
|
51
9
|
};
|
|
10
|
+
export type TSinchProgressStepperItemStyle = {
|
|
11
|
+
'--sinch-comp-progress-stepper-step-shape-radius'?: string;
|
|
12
|
+
'--sinch-comp-progress-stepper-step-color-incomplete-background-hover'?: string;
|
|
13
|
+
'--sinch-comp-progress-stepper-step-color-incomplete-label-default'?: string;
|
|
14
|
+
'--sinch-comp-progress-stepper-step-color-incomplete-current-label-default'?: string;
|
|
15
|
+
'--sinch-comp-progress-stepper-step-color-incomplete-progress-background'?: string;
|
|
16
|
+
'--sinch-comp-progress-stepper-step-color-incomplete-progress-bar'?: string;
|
|
17
|
+
'--sinch-comp-progress-stepper-step-color-complete-background-hover'?: string;
|
|
18
|
+
'--sinch-comp-progress-stepper-step-color-complete-label-default'?: string;
|
|
19
|
+
'--sinch-comp-progress-stepper-step-color-complete-current-label-default'?: string;
|
|
20
|
+
'--sinch-comp-progress-stepper-step-color-complete-progress-background'?: string;
|
|
21
|
+
'--sinch-comp-progress-stepper-step-color-complete-progress-bar'?: string;
|
|
22
|
+
'--sinch-comp-progress-stepper-step-color-invalid-background-hover'?: string;
|
|
23
|
+
'--sinch-comp-progress-stepper-step-color-invalid-label-default'?: string;
|
|
24
|
+
'--sinch-comp-progress-stepper-step-color-invalid-icon-default'?: string;
|
|
25
|
+
'--sinch-comp-progress-stepper-step-color-invalid-progress-background'?: string;
|
|
26
|
+
'--sinch-comp-progress-stepper-step-color-inactive-label-default'?: string;
|
|
27
|
+
'--sinch-comp-progress-stepper-step-color-inactive-progress-background'?: string;
|
|
28
|
+
'--sinch-comp-progress-stepper-step-color-outline-focus'?: string;
|
|
29
|
+
'--sinch-comp-progress-stepper-step-font-incomplete-label'?: string;
|
|
30
|
+
'--sinch-comp-progress-stepper-step-font-complete-label'?: string;
|
|
31
|
+
'--sinch-comp-progress-stepper-step-font-inactive-label'?: string;
|
|
32
|
+
'--sinch-comp-progress-stepper-step-font-invalid-label'?: string;
|
|
33
|
+
'--sinch-comp-progress-stepper-step-font-incomplete-current-label'?: string;
|
|
34
|
+
'--sinch-comp-progress-stepper-step-font-complete-current-label'?: string;
|
|
35
|
+
'--sinch-comp-progress-stepper-step-font-invalid-current-label'?: string;
|
|
36
|
+
};
|
|
37
|
+
export type TSinchProgressStepperItem = {
|
|
38
|
+
props: TSinchProgressStepperItemProps;
|
|
39
|
+
style: TSinchProgressStepperItemStyle;
|
|
40
|
+
};
|
|
41
|
+
export type TSinchProgressStepperItemElement = NectaryComponentVanillaByType<TSinchProgressStepperItem>;
|
|
42
|
+
export type TSinchProgressStepperItemReact = NectaryComponentReactByType<TSinchProgressStepperItem>;
|
package/radio/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchRadio } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-radio': TSinchRadio;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-radio':
|
|
8
|
+
'sinch-radio': NectaryComponentVanilla<'sinch-radio'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-radio':
|
|
12
|
+
'sinch-radio': NectaryComponentReact<'sinch-radio'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-radio':
|
|
19
|
+
'sinch-radio': NectaryComponentReact<'sinch-radio'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|