@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/skeleton-item/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchSkeletonItem } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-skeleton-item': TSinchSkeletonItem;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-skeleton-item':
|
|
8
|
+
'sinch-skeleton-item': NectaryComponentVanilla<'sinch-skeleton-item'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-skeleton-item':
|
|
12
|
+
'sinch-skeleton-item': NectaryComponentReact<'sinch-skeleton-item'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-skeleton-item':
|
|
19
|
+
'sinch-skeleton-item': NectaryComponentReact<'sinch-skeleton-item'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/skeleton-item/types.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, TRect } from '../types';
|
|
2
2
|
import type { TSinchSizeEx } from '../utils/size';
|
|
3
3
|
export type TSinchSkeletonItemBoundingBox = TRect & {
|
|
4
4
|
radius: number;
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
7
|
-
/** Size */
|
|
8
|
-
setAttribute(name: 'size', value: TSinchSizeEx): void;
|
|
9
|
-
};
|
|
10
|
-
export type TSinchSkeletonItemReact = TSinchElementReact<TSinchSkeletonItemElement> & {
|
|
6
|
+
export type TSinchSkeletonItemProps = {
|
|
11
7
|
/** Size */
|
|
12
8
|
size?: TSinchSizeEx;
|
|
13
|
-
} & {
|
|
14
|
-
style?: {
|
|
15
|
-
'--sinch-sys-size-xs'?: string;
|
|
16
|
-
'--sinch-sys-size-s'?: string;
|
|
17
|
-
'--sinch-sys-size-m'?: string;
|
|
18
|
-
'--sinch-sys-size-l'?: string;
|
|
19
|
-
'--sinch-sys-shape-radius-xs'?: string;
|
|
20
|
-
'--sinch-sys-shape-radius-s'?: string;
|
|
21
|
-
'--sinch-sys-shape-radius-m'?: string;
|
|
22
|
-
'--sinch-sys-shape-radius-l'?: string;
|
|
23
|
-
'--sinch-sys-color-border-subtle'?: string;
|
|
24
|
-
'--sinch-local-shape-radius'?: string;
|
|
25
|
-
};
|
|
26
9
|
};
|
|
10
|
+
export type TSinchSkeletonItemStyle = {
|
|
11
|
+
'--sinch-sys-size-xs'?: string;
|
|
12
|
+
'--sinch-sys-size-s'?: string;
|
|
13
|
+
'--sinch-sys-size-m'?: string;
|
|
14
|
+
'--sinch-sys-size-l'?: string;
|
|
15
|
+
'--sinch-sys-shape-radius-xs'?: string;
|
|
16
|
+
'--sinch-sys-shape-radius-s'?: string;
|
|
17
|
+
'--sinch-sys-shape-radius-m'?: string;
|
|
18
|
+
'--sinch-sys-shape-radius-l'?: string;
|
|
19
|
+
'--sinch-sys-color-border-subtle'?: string;
|
|
20
|
+
'--sinch-local-shape-radius'?: string;
|
|
21
|
+
};
|
|
22
|
+
export type TSinchSkeletonItem = {
|
|
23
|
+
props: TSinchSkeletonItemProps;
|
|
24
|
+
style: TSinchSkeletonItemStyle;
|
|
25
|
+
};
|
|
26
|
+
export type TSinchSkeletonItemElement = NectaryComponentVanillaByType<TSinchSkeletonItem>;
|
|
27
|
+
export type TSinchSkeletonItemReact = NectaryComponentReactByType<TSinchSkeletonItem>;
|
package/spinner/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchSpinner } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-spinner': TSinchSpinner;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-spinner':
|
|
8
|
+
'sinch-spinner': NectaryComponentVanilla<'sinch-spinner'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-spinner':
|
|
12
|
+
'sinch-spinner': NectaryComponentReact<'sinch-spinner'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-spinner':
|
|
19
|
+
'sinch-spinner': NectaryComponentReact<'sinch-spinner'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/spinner/types.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
2
|
import type { TSinchSize } from '../utils/size';
|
|
3
|
-
export type
|
|
4
|
-
/** Spinner size */
|
|
5
|
-
size: TSinchSize;
|
|
6
|
-
/** Spinner size */
|
|
7
|
-
setAttribute(name: 'size', value: TSinchSize): void;
|
|
8
|
-
};
|
|
9
|
-
export type TSinchSpinnerReact = TSinchElementReact<TSinchSpinnerElement> & {
|
|
3
|
+
export type TSinchSpinnerProps = {
|
|
10
4
|
/** Spinner size */
|
|
11
5
|
size?: TSinchSize;
|
|
12
|
-
} & {
|
|
13
|
-
style?: {
|
|
14
|
-
'--sinch-global-color-icon'?: string;
|
|
15
|
-
'--sinch-sys-color-text-default'?: string;
|
|
16
|
-
};
|
|
17
6
|
};
|
|
7
|
+
export type TSinchSpinnerStyle = {
|
|
8
|
+
'--sinch-global-color-icon'?: string;
|
|
9
|
+
'--sinch-sys-color-text-default'?: string;
|
|
10
|
+
};
|
|
11
|
+
export type TSinchSpinner = {
|
|
12
|
+
props: TSinchSpinnerProps;
|
|
13
|
+
style: TSinchSpinnerStyle;
|
|
14
|
+
};
|
|
15
|
+
export type TSinchSpinnerElement = NectaryComponentVanillaByType<TSinchSpinner>;
|
|
16
|
+
export type TSinchSpinnerReact = NectaryComponentReactByType<TSinchSpinner>;
|
package/table/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-table': {};
|
|
5
|
+
}
|
|
3
6
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-table':
|
|
7
|
+
'sinch-table': NectaryComponentVanilla<'sinch-table'>;
|
|
5
8
|
}
|
|
6
9
|
namespace JSX {
|
|
7
10
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-table':
|
|
11
|
+
'sinch-table': NectaryComponentReact<'sinch-table'>;
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
declare module 'react' {
|
|
13
16
|
namespace JSX {
|
|
14
17
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-table':
|
|
18
|
+
'sinch-table': NectaryComponentReact<'sinch-table'>;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
21
|
}
|
package/table/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType } from '../types';
|
|
2
2
|
export type TSinchTableElement = HTMLElement;
|
|
3
|
-
export type TSinchTableReact =
|
|
3
|
+
export type TSinchTableReact = NectaryComponentReactByType<TSinchTableElement>;
|
package/table-body/index.d.ts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentVanilla, NectaryComponentReact } from '../types';
|
|
2
2
|
declare global {
|
|
3
|
+
interface NectaryComponentMap {
|
|
4
|
+
'sinch-table-body': {};
|
|
5
|
+
}
|
|
3
6
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-table-body':
|
|
7
|
+
'sinch-table-body': NectaryComponentVanilla<'sinch-table-body'>;
|
|
5
8
|
}
|
|
6
9
|
namespace JSX {
|
|
7
10
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-table-body':
|
|
11
|
+
'sinch-table-body': NectaryComponentReact<'sinch-table-body'>;
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
declare module 'react' {
|
|
13
16
|
namespace JSX {
|
|
14
17
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-table-body':
|
|
18
|
+
'sinch-table-body': NectaryComponentReact<'sinch-table-body'>;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
21
|
}
|
package/table-body/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType } from '../types';
|
|
2
2
|
export type TSinchTableBodyElement = HTMLElement;
|
|
3
|
-
export type TSinchTableBodyReact =
|
|
3
|
+
export type TSinchTableBodyReact = NectaryComponentReactByType<TSinchTableBodyElement>;
|
package/table-cell/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchTableCell } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-table-cell': TSinchTableCell;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-table-cell':
|
|
8
|
+
'sinch-table-cell': NectaryComponentVanilla<'sinch-table-cell'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-table-cell':
|
|
12
|
+
'sinch-table-cell': NectaryComponentReact<'sinch-table-cell'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-table-cell':
|
|
19
|
+
'sinch-table-cell': NectaryComponentReact<'sinch-table-cell'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/table-cell/types.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
2
|
export type TSinchTableAlignType = 'start' | 'center' | 'end';
|
|
3
|
-
export type
|
|
4
|
-
align: TSinchTableAlignType;
|
|
5
|
-
setAttribute(name: 'align', value: TSinchTableAlignType): void;
|
|
6
|
-
};
|
|
7
|
-
export type TSinchTableCellReact = TSinchElementReact<TSinchTableCellElement> & {
|
|
3
|
+
export type TSinchTableCellProps = {
|
|
8
4
|
align?: TSinchTableAlignType;
|
|
9
|
-
} & {
|
|
10
|
-
style?: {
|
|
11
|
-
'--sinch-comp-table-color-cell-default-border-initial'?: string;
|
|
12
|
-
};
|
|
13
5
|
};
|
|
6
|
+
export type TSinchTableCellStyle = {
|
|
7
|
+
'--sinch-comp-table-color-cell-default-border-initial'?: string;
|
|
8
|
+
};
|
|
9
|
+
export type TSinchTableCell = {
|
|
10
|
+
props: TSinchTableCellProps;
|
|
11
|
+
style: TSinchTableCellStyle;
|
|
12
|
+
};
|
|
13
|
+
export type TSinchTableCellElement = NectaryComponentVanillaByType<TSinchTableCell>;
|
|
14
|
+
export type TSinchTableCellReact = NectaryComponentReactByType<TSinchTableCell>;
|
package/table-head/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-table-head': {};
|
|
5
|
+
}
|
|
3
6
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-table-head':
|
|
7
|
+
'sinch-table-head': NectaryComponentVanilla<'sinch-table-head'>;
|
|
5
8
|
}
|
|
6
9
|
namespace JSX {
|
|
7
10
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-table-head':
|
|
11
|
+
'sinch-table-head': NectaryComponentReact<'sinch-table-head'>;
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
declare module 'react' {
|
|
13
16
|
namespace JSX {
|
|
14
17
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-table-head':
|
|
18
|
+
'sinch-table-head': NectaryComponentReact<'sinch-table-head'>;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
21
|
}
|
package/table-head/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType } from '../types';
|
|
2
2
|
export type TSinchTableHeadElement = HTMLElement;
|
|
3
|
-
export type TSinchTableHeadReact =
|
|
3
|
+
export type TSinchTableHeadReact = NectaryComponentReactByType<TSinchTableHeadElement>;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import '../text';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TSinchTableHeaderCell } from './types';
|
|
3
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
3
4
|
declare global {
|
|
5
|
+
interface NectaryComponentMap {
|
|
6
|
+
'sinch-table-head-cell': TSinchTableHeaderCell;
|
|
7
|
+
}
|
|
4
8
|
interface HTMLElementTagNameMap {
|
|
5
|
-
'sinch-table-head-cell':
|
|
9
|
+
'sinch-table-head-cell': NectaryComponentVanilla<'sinch-table-head-cell'>;
|
|
6
10
|
}
|
|
7
11
|
namespace JSX {
|
|
8
12
|
interface IntrinsicElements {
|
|
9
|
-
'sinch-table-head-cell':
|
|
13
|
+
'sinch-table-head-cell': NectaryComponentReact<'sinch-table-head-cell'>;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
declare module 'react' {
|
|
14
18
|
namespace JSX {
|
|
15
19
|
interface IntrinsicElements {
|
|
16
|
-
'sinch-table-head-cell':
|
|
20
|
+
'sinch-table-head-cell': NectaryComponentReact<'sinch-table-head-cell'>;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import type { TSinchTableAlignType } from '../table-cell/types';
|
|
2
|
-
import type {
|
|
3
|
-
export type
|
|
4
|
-
text: string | null;
|
|
5
|
-
align: TSinchTableAlignType;
|
|
6
|
-
fit: boolean;
|
|
7
|
-
setAttribute(name: 'text', value: string): void;
|
|
8
|
-
setAttribute(name: 'align', value: TSinchTableAlignType): void;
|
|
9
|
-
setAttribute(name: 'fit', value: ''): void;
|
|
10
|
-
};
|
|
11
|
-
export type TSinchTableHeaderCellReact = TSinchElementReact<TSinchTableHeaderCellElement> & {
|
|
2
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
3
|
+
export type TSinchTableHeaderCellProps = {
|
|
12
4
|
text?: string;
|
|
13
5
|
fit?: boolean;
|
|
14
6
|
align?: TSinchTableAlignType;
|
|
15
|
-
} & {
|
|
16
|
-
style?: {
|
|
17
|
-
'--sinch-comp-table-color-head-cell-default-border-initial'?: string;
|
|
18
|
-
'--sinch-comp-table-color-head-cell-default-icon-initial'?: string;
|
|
19
|
-
'--sinch-comp-table-color-head-cell-default-text-initial'?: string;
|
|
20
|
-
'--sinch-global-color-icon'?: string;
|
|
21
|
-
'--sinch-global-color-text'?: string;
|
|
22
|
-
};
|
|
23
7
|
};
|
|
8
|
+
export type TSinchTableHeaderCellStyle = {
|
|
9
|
+
'--sinch-comp-table-color-head-cell-default-border-initial'?: string;
|
|
10
|
+
'--sinch-comp-table-color-head-cell-default-icon-initial'?: string;
|
|
11
|
+
'--sinch-comp-table-color-head-cell-default-text-initial'?: string;
|
|
12
|
+
'--sinch-global-color-icon'?: string;
|
|
13
|
+
'--sinch-global-color-text'?: string;
|
|
14
|
+
};
|
|
15
|
+
export type TSinchTableHeaderCell = {
|
|
16
|
+
props: TSinchTableHeaderCellProps;
|
|
17
|
+
style: TSinchTableHeaderCellStyle;
|
|
18
|
+
};
|
|
19
|
+
export type TSinchTableHeaderCellElement = NectaryComponentVanillaByType<TSinchTableHeaderCell>;
|
|
20
|
+
export type TSinchTableHeaderCellReact = NectaryComponentReactByType<TSinchTableHeaderCell>;
|
package/table-row/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchTableRow } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-table-row': TSinchTableRow;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-table-row':
|
|
8
|
+
'sinch-table-row': NectaryComponentVanilla<'sinch-table-row'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-table-row':
|
|
12
|
+
'sinch-table-row': NectaryComponentReact<'sinch-table-row'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-table-row':
|
|
19
|
+
'sinch-table-row': NectaryComponentReact<'sinch-table-row'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/table-row/types.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
sticky: boolean;
|
|
4
|
-
selected: boolean;
|
|
5
|
-
setAttribute(name: 'sticky', value: ''): void;
|
|
6
|
-
setAttribute(name: 'selected', value: ''): void;
|
|
7
|
-
};
|
|
8
|
-
export type TSinchTableRowReact = TSinchElementReact<TSinchTableRowElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchTableRowProps = {
|
|
9
3
|
sticky?: boolean;
|
|
10
4
|
selected?: boolean;
|
|
11
|
-
} & {
|
|
12
|
-
style?: {
|
|
13
|
-
'--sinch-comp-table-color-row-default-background-initial'?: string;
|
|
14
|
-
'--sinch-comp-table-color-row-default-background-hover'?: string;
|
|
15
|
-
'--sinch-comp-table-color-row-default-background-sticky'?: string;
|
|
16
|
-
'--sinch-comp-table-color-row-checked-background-initial'?: string;
|
|
17
|
-
};
|
|
18
5
|
};
|
|
6
|
+
export type TSinchTableRowStyle = {
|
|
7
|
+
'--sinch-comp-table-color-row-default-background-initial'?: string;
|
|
8
|
+
'--sinch-comp-table-color-row-default-background-hover'?: string;
|
|
9
|
+
'--sinch-comp-table-color-row-default-background-sticky'?: string;
|
|
10
|
+
'--sinch-comp-table-color-row-checked-background-initial'?: string;
|
|
11
|
+
};
|
|
12
|
+
export type TSinchTableRow = {
|
|
13
|
+
props: TSinchTableRowProps;
|
|
14
|
+
style: TSinchTableRowStyle;
|
|
15
|
+
};
|
|
16
|
+
export type TSinchTableRowElement = NectaryComponentVanillaByType<TSinchTableRow>;
|
|
17
|
+
export type TSinchTableRowReact = NectaryComponentReactByType<TSinchTableRow>;
|
package/tabs/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchTabs } from './types';
|
|
2
|
+
import type { NectaryComponentVanilla, NectaryComponentReact } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-tabs': TSinchTabs;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-tabs':
|
|
8
|
+
'sinch-tabs': NectaryComponentVanilla<'sinch-tabs'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-tabs':
|
|
12
|
+
'sinch-tabs': NectaryComponentReact<'sinch-tabs'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-tabs':
|
|
19
|
+
'sinch-tabs': NectaryComponentReact<'sinch-tabs'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
package/tabs/types.d.ts
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Value */
|
|
4
|
-
value: string;
|
|
5
|
-
nthOptionRect(index: number): TRect | null;
|
|
6
|
-
/** Change value event */
|
|
7
|
-
addEventListener(type: '-change', listener: (e: CustomEvent<string>) => void): void;
|
|
8
|
-
/** Value */
|
|
9
|
-
setAttribute(name: 'value', value: string): void;
|
|
10
|
-
};
|
|
11
|
-
export type TSinchTabsReact = TSinchElementReact<TSinchTabsElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, TRect } from '../types';
|
|
2
|
+
export type TSinchTabsProps = {
|
|
12
3
|
/** Value */
|
|
13
4
|
value: string;
|
|
14
5
|
/** Label that is used for a11y */
|
|
15
6
|
'aria-label': string;
|
|
7
|
+
};
|
|
8
|
+
export type TSinchTabsMethods = {
|
|
9
|
+
nthOptionRect(index: number): TRect | null;
|
|
10
|
+
};
|
|
11
|
+
export type TSinchTabsEvents = {
|
|
16
12
|
/** Change value event */
|
|
17
|
-
'
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
'-change'?: (e: CustomEvent<string>) => void;
|
|
14
|
+
};
|
|
15
|
+
export type TSinchTabsStyle = {
|
|
16
|
+
'--sinch-comp-tab-color-default-border-initial'?: string;
|
|
17
|
+
};
|
|
18
|
+
export type TSinchTabs = {
|
|
19
|
+
props: TSinchTabsProps;
|
|
20
|
+
methods: TSinchTabsMethods;
|
|
21
|
+
events: TSinchTabsEvents;
|
|
22
|
+
style: TSinchTabsStyle;
|
|
22
23
|
};
|
|
24
|
+
export type TSinchTabsElement = NectaryComponentVanillaByType<TSinchTabs>;
|
|
25
|
+
export type TSinchTabsReact = NectaryComponentReactByType<TSinchTabs>;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchTabsIconOption } from './types';
|
|
2
|
+
import type { NectaryComponentVanilla, NectaryComponentReact } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-tabs-icon-option': TSinchTabsIconOption;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-tabs-icon-option':
|
|
8
|
+
'sinch-tabs-icon-option': NectaryComponentVanilla<'sinch-tabs-icon-option'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-tabs-icon-option':
|
|
12
|
+
'sinch-tabs-icon-option': NectaryComponentReact<'sinch-tabs-icon-option'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-tabs-icon-option':
|
|
19
|
+
'sinch-tabs-icon-option': NectaryComponentReact<'sinch-tabs-icon-option'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -1,33 +1,28 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Value */
|
|
4
|
-
value: string;
|
|
5
|
-
/** Disabled */
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
/** Value */
|
|
8
|
-
setAttribute(name: 'value', value: string): void;
|
|
9
|
-
/** Disabled */
|
|
10
|
-
setAttribute(name: 'disabled', value: ''): void;
|
|
11
|
-
};
|
|
12
|
-
export type TSinchTabsIconOptionReact = TSinchElementReact<TSinchTabsIconOptionElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchTabsIconOptionProps = {
|
|
13
3
|
/** Value */
|
|
14
4
|
value: string;
|
|
15
5
|
/** Label that is used for a11y */
|
|
16
6
|
'aria-label': string;
|
|
17
7
|
/** Disabled */
|
|
18
8
|
disabled?: boolean;
|
|
19
|
-
} & {
|
|
20
|
-
style?: {
|
|
21
|
-
'--sinch-comp-tab-size-icon'?: string;
|
|
22
|
-
'--sinch-comp-tab-shape-radius'?: string;
|
|
23
|
-
'--sinch-comp-tab-color-default-background-initial'?: string;
|
|
24
|
-
'--sinch-comp-tab-color-default-background-hover'?: string;
|
|
25
|
-
'--sinch-comp-tab-color-default-icon-initial'?: string;
|
|
26
|
-
'--sinch-comp-tab-color-default-outline-focus'?: string;
|
|
27
|
-
'--sinch-comp-tab-color-checked-icon-initial'?: string;
|
|
28
|
-
'--sinch-comp-tab-color-checked-border-initial'?: string;
|
|
29
|
-
'--sinch-comp-tab-color-disabled-icon-initial'?: string;
|
|
30
|
-
'--sinch-global-color-icon'?: string;
|
|
31
|
-
'--sinch-global-size-icon'?: string;
|
|
32
|
-
};
|
|
33
9
|
};
|
|
10
|
+
export type TSinchTabsIconOptionStyle = {
|
|
11
|
+
'--sinch-comp-tab-size-icon'?: string;
|
|
12
|
+
'--sinch-comp-tab-shape-radius'?: string;
|
|
13
|
+
'--sinch-comp-tab-color-default-background-initial'?: string;
|
|
14
|
+
'--sinch-comp-tab-color-default-background-hover'?: string;
|
|
15
|
+
'--sinch-comp-tab-color-default-icon-initial'?: string;
|
|
16
|
+
'--sinch-comp-tab-color-default-outline-focus'?: string;
|
|
17
|
+
'--sinch-comp-tab-color-checked-icon-initial'?: string;
|
|
18
|
+
'--sinch-comp-tab-color-checked-border-initial'?: string;
|
|
19
|
+
'--sinch-comp-tab-color-disabled-icon-initial'?: string;
|
|
20
|
+
'--sinch-global-color-icon'?: string;
|
|
21
|
+
'--sinch-global-size-icon'?: string;
|
|
22
|
+
};
|
|
23
|
+
export type TSinchTabsIconOption = {
|
|
24
|
+
props: TSinchTabsIconOptionProps;
|
|
25
|
+
style: TSinchTabsIconOptionStyle;
|
|
26
|
+
};
|
|
27
|
+
export type TSinchTabsIconOptionElement = NectaryComponentVanillaByType<TSinchTabsIconOption>;
|
|
28
|
+
export type TSinchTabsIconOptionReact = NectaryComponentReactByType<TSinchTabsIconOption>;
|
package/tabs-option/index.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import '../text';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TSinchTabsOption } from './types';
|
|
3
|
+
import type { NectaryComponentVanilla, NectaryComponentReact } from '../types';
|
|
3
4
|
declare global {
|
|
5
|
+
interface NectaryComponentMap {
|
|
6
|
+
'sinch-tabs-option': TSinchTabsOption;
|
|
7
|
+
}
|
|
4
8
|
interface HTMLElementTagNameMap {
|
|
5
|
-
'sinch-tabs-option':
|
|
9
|
+
'sinch-tabs-option': NectaryComponentVanilla<'sinch-tabs-option'>;
|
|
6
10
|
}
|
|
7
11
|
namespace JSX {
|
|
8
12
|
interface IntrinsicElements {
|
|
9
|
-
'sinch-tabs-option':
|
|
13
|
+
'sinch-tabs-option': NectaryComponentReact<'sinch-tabs-option'>;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
declare module 'react' {
|
|
14
18
|
namespace JSX {
|
|
15
19
|
interface IntrinsicElements {
|
|
16
|
-
'sinch-tabs-option':
|
|
20
|
+
'sinch-tabs-option': NectaryComponentReact<'sinch-tabs-option'>;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
}
|