@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
package/tooltip/types.d.ts
CHANGED
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, TRect } from '../types';
|
|
2
2
|
export type TSinchTooltipOrientation = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
3
3
|
export type TSinchTooltipTextAlign = 'center' | 'right' | 'left';
|
|
4
4
|
export type TSinchTooltipType = 'slow' | 'fast';
|
|
5
|
-
export type
|
|
6
|
-
/** Text */
|
|
7
|
-
text: string;
|
|
8
|
-
/** Orientation, where it *points to* from origin */
|
|
9
|
-
orientation: TSinchTooltipOrientation;
|
|
10
|
-
/** Type */
|
|
11
|
-
type: TSinchTooltipType;
|
|
12
|
-
/** Text Align */
|
|
13
|
-
'text-align': TSinchTooltipTextAlign;
|
|
14
|
-
readonly footprintRect: TRect;
|
|
15
|
-
readonly tooltipRect: TRect;
|
|
16
|
-
/** Show event */
|
|
17
|
-
addEventListener(type: '-show', listener: (e: CustomEvent<void>) => void): void;
|
|
18
|
-
/** Hide event */
|
|
19
|
-
addEventListener(type: '-hide', listener: (e: CustomEvent<void>) => void): void;
|
|
20
|
-
/** Text */
|
|
21
|
-
setAttribute(name: 'text', value: string): void;
|
|
22
|
-
/** Orientation, where it *points to* from origin */
|
|
23
|
-
setAttribute(name: 'orientation', value: TSinchTooltipOrientation): void;
|
|
24
|
-
/** Type */
|
|
25
|
-
setAttribute(name: 'type', value: TSinchTooltipType): void;
|
|
26
|
-
/** Text Align */
|
|
27
|
-
setAttribute(name: 'text-align', value: TSinchTooltipTextAlign): void;
|
|
28
|
-
};
|
|
29
|
-
export type TSinchTooltipReact = TSinchElementReact<TSinchTooltipElement> & {
|
|
5
|
+
export type TSinchTooltipProps = {
|
|
30
6
|
/** Text */
|
|
31
7
|
text: string;
|
|
32
8
|
/** Orientation, where it *points to* from origin */
|
|
@@ -35,19 +11,29 @@ export type TSinchTooltipReact = TSinchElementReact<TSinchTooltipElement> & {
|
|
|
35
11
|
type?: TSinchTooltipType;
|
|
36
12
|
/** Text Align */
|
|
37
13
|
'text-align'?: TSinchTooltipTextAlign;
|
|
14
|
+
readonly footprintRect?: TRect;
|
|
15
|
+
readonly tooltipRect?: TRect;
|
|
16
|
+
};
|
|
17
|
+
export type TSinchTooltipEvents = {
|
|
38
18
|
/** Show event handler */
|
|
39
|
-
'
|
|
19
|
+
'-show'?: (e: CustomEvent<void>) => void;
|
|
40
20
|
/** Hide event handler */
|
|
41
|
-
'
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
21
|
+
'-hide'?: (e: CustomEvent<void>) => void;
|
|
22
|
+
};
|
|
23
|
+
export type TSinchTooltipStyle = {
|
|
24
|
+
'--sinch-comp-tooltip-shadow'?: string;
|
|
25
|
+
'--sinch-comp-tooltip-shape-radius'?: string;
|
|
26
|
+
'--sinch-comp-tooltip-color-background'?: string;
|
|
27
|
+
'--sinch-comp-tooltip-color-text'?: string;
|
|
28
|
+
'--sinch-local-color-background'?: string;
|
|
29
|
+
'--sinch-comp-tooltip-font-body'?: string;
|
|
30
|
+
'--sinch-comp-text-align'?: string;
|
|
31
|
+
'--sinch-global-color-text'?: string;
|
|
32
|
+
};
|
|
33
|
+
export type TSinchTooltip = {
|
|
34
|
+
props: TSinchTooltipProps;
|
|
35
|
+
events: TSinchTooltipEvents;
|
|
36
|
+
style: TSinchTooltipStyle;
|
|
53
37
|
};
|
|
38
|
+
export type TSinchTooltipElement = NectaryComponentVanillaByType<TSinchTooltip>;
|
|
39
|
+
export type TSinchTooltipReact = NectaryComponentReactByType<TSinchTooltip>;
|
package/types.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { ClassAttributes, DOMAttributes, HTMLAttributes } from 'react'
|
|
2
|
-
|
|
3
|
-
export type TSinchElementReact<TElement> =
|
|
4
|
-
Pick<HTMLAttributes<HTMLElement>, 'id' | 'className' | 'style' | 'slot' | 'children'> &
|
|
5
|
-
ClassAttributes<TElement> &
|
|
6
|
-
Pick<DOMAttributes<TElement>, 'onClick' | 'onDoubleClick' | 'onMouseDown' | 'onMouseUp' | 'onMouseMove' | 'onMouseOver' | 'onMouseOut' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp' | 'onKeyPress'> &
|
|
7
|
-
{ class?: string }
|
|
2
|
+
import type { ReactifyEvents, ReactifyElement, SafeSelect, CamelCaseify, RemoveReadonly, SetAttributes, ExtendEventListeners } from './utils/adapters'
|
|
8
3
|
|
|
9
4
|
export type TRect = {
|
|
10
5
|
x: number,
|
|
@@ -12,3 +7,22 @@ export type TRect = {
|
|
|
12
7
|
width: number,
|
|
13
8
|
height: number,
|
|
14
9
|
}
|
|
10
|
+
|
|
11
|
+
export type NectaryComponentVanillaByType<T extends object> =
|
|
12
|
+
Omit<HTMLElement, 'addEventListener' | 'removeEventListener'> &
|
|
13
|
+
ExtendEventListeners<Required<SafeSelect<T, 'events'>>> &
|
|
14
|
+
SetAttributes<Required<RemoveReadonly<SafeSelect<T, 'props'>>>> &
|
|
15
|
+
Required<CamelCaseify<SafeSelect<T, 'props'>>> &
|
|
16
|
+
Required<SafeSelect<T, 'methods'>>
|
|
17
|
+
|
|
18
|
+
export type NectaryComponentReactByType<T extends object> =
|
|
19
|
+
ReactifyElement<HTMLElement> &
|
|
20
|
+
ReactifyEvents<SafeSelect<T, 'events'>> &
|
|
21
|
+
RemoveReadonly<SafeSelect<T, 'props'>> &
|
|
22
|
+
{ style?: SafeSelect<T, 'style'> }
|
|
23
|
+
|
|
24
|
+
export type NectaryComponentVanilla<K extends keyof NectaryComponentMap> =
|
|
25
|
+
NectaryComponentVanillaByType<NectaryComponentMap[K]>
|
|
26
|
+
|
|
27
|
+
export type NectaryComponentReact<K extends keyof NectaryComponentMap> =
|
|
28
|
+
NectaryComponentReactByType<NectaryComponentMap[K]>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ClassAttributes, DOMAttributes, HTMLAttributes } from 'react';
|
|
2
|
+
export type SafeSelect<T extends object, K extends string | number | symbol> = K extends keyof T ? T[K] extends object ? T[K] : {} : {};
|
|
3
|
+
type CamelCaseString<S extends string> = S extends `${infer P1}-${infer P2}${infer P3}` ? `${Lowercase<P1>}${Uppercase<P2>}${CamelCaseString<P3>}` : S;
|
|
4
|
+
export type CamelCaseify<T> = T extends object ? {
|
|
5
|
+
[K in keyof T as K extends string ? CamelCaseString<K> : K]: T[K];
|
|
6
|
+
} : T;
|
|
7
|
+
export type RemoveReadonly<T> = {
|
|
8
|
+
[P in keyof T as T[P] extends {
|
|
9
|
+
readonly [K: string]: any;
|
|
10
|
+
} ? never : P]: T[P];
|
|
11
|
+
};
|
|
12
|
+
type ExtractEventTypes<T> = {
|
|
13
|
+
[K in keyof T]: T[K] extends (e: infer E) => void ? E : T[K];
|
|
14
|
+
};
|
|
15
|
+
export type ExtendEventListeners<Events> = {
|
|
16
|
+
addEventListener<K extends keyof (ExtractEventTypes<Events> & HTMLElementEventMap)>(type: K, listener: (this: HTMLElement, ev: (ExtractEventTypes<Events> & HTMLElementEventMap)[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
17
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
18
|
+
removeEventListener<K extends keyof (ExtractEventTypes<Events> & HTMLElementEventMap)>(type: K, listener: (this: HTMLElement, ev: (ExtractEventTypes<Events> & HTMLElementEventMap)[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
19
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
20
|
+
};
|
|
21
|
+
export type SetAttributes<Props> = {
|
|
22
|
+
setAttribute<K extends keyof Props>(attr: K, value: Props[K] extends boolean ? '' : Props[K]): void;
|
|
23
|
+
};
|
|
24
|
+
export type ReactifyElement<TElement> = Pick<HTMLAttributes<HTMLElement>, 'id' | 'className' | 'style' | 'slot' | 'children'> & ClassAttributes<TElement> & Pick<DOMAttributes<TElement>, 'onClick' | 'onDoubleClick' | 'onMouseDown' | 'onMouseUp' | 'onMouseMove' | 'onMouseOver' | 'onMouseOut' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp' | 'onKeyPress'> & {
|
|
25
|
+
class?: string;
|
|
26
|
+
};
|
|
27
|
+
export type ReactifyEvents<T> = {
|
|
28
|
+
[K in keyof T as K extends string ? `on${K}` : never]: T[K];
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TSinchVerticalStepper } from './types';
|
|
2
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
3
|
declare global {
|
|
4
|
+
interface NectaryComponentMap {
|
|
5
|
+
'sinch-vertical-stepper': TSinchVerticalStepper;
|
|
6
|
+
}
|
|
3
7
|
interface HTMLElementTagNameMap {
|
|
4
|
-
'sinch-vertical-stepper':
|
|
8
|
+
'sinch-vertical-stepper': NectaryComponentVanilla<'sinch-vertical-stepper'>;
|
|
5
9
|
}
|
|
6
10
|
namespace JSX {
|
|
7
11
|
interface IntrinsicElements {
|
|
8
|
-
'sinch-vertical-stepper':
|
|
12
|
+
'sinch-vertical-stepper': NectaryComponentReact<'sinch-vertical-stepper'>;
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
declare module 'react' {
|
|
13
17
|
namespace JSX {
|
|
14
18
|
interface IntrinsicElements {
|
|
15
|
-
'sinch-vertical-stepper':
|
|
19
|
+
'sinch-vertical-stepper': NectaryComponentReact<'sinch-vertical-stepper'>;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
/** Current item index, starting from 1 */
|
|
4
|
-
index: string;
|
|
5
|
-
/** Current item index, starting from 1 */
|
|
6
|
-
setAttribute(name: 'index', value: string): void;
|
|
7
|
-
};
|
|
8
|
-
export type TSinchVerticalStepperReact = TSinchElementReact<TSinchVerticalStepperElement> & {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
|
+
export type TSinchVerticalStepperProps = {
|
|
9
3
|
/** Current item index, starting from 1 */
|
|
10
4
|
index: string;
|
|
11
5
|
/** Label that is used for a11y */
|
|
12
6
|
'aria-label': string;
|
|
13
|
-
} & {
|
|
14
|
-
style?: {
|
|
15
|
-
'--sinch-comp-vertical-stepper-color-background-default'?: string;
|
|
16
|
-
'--sinch-comp-vertical-stepper-color-background-visited-skip'?: string;
|
|
17
|
-
'--sinch-comp-vertical-stepper-color-background-active'?: string;
|
|
18
|
-
'--sinch-comp-vertical-stepper-color-background-visited'?: string;
|
|
19
|
-
'--sinch-comp-vertical-stepper-color-background-visited-error'?: string;
|
|
20
|
-
'--sinch-comp-vertical-stepper-color-border-default'?: string;
|
|
21
|
-
'--sinch-comp-vertical-stepper-color-border-visited-skip'?: string;
|
|
22
|
-
'--sinch-comp-vertical-stepper-color-border-active'?: string;
|
|
23
|
-
'--sinch-comp-vertical-stepper-color-border-visited'?: string;
|
|
24
|
-
'--sinch-comp-vertical-stepper-color-border-visited-error'?: string;
|
|
25
|
-
'--sinch-comp-vertical-stepper-color-icon-default'?: string;
|
|
26
|
-
'--sinch-comp-vertical-stepper-color-icon-visited-skip'?: string;
|
|
27
|
-
'--sinch-comp-vertical-stepper-color-icon-active'?: string;
|
|
28
|
-
'--sinch-comp-vertical-stepper-color-icon-visited'?: string;
|
|
29
|
-
'--sinch-comp-vertical-stepper-color-icon-visited-error'?: string;
|
|
30
|
-
'--sinch-comp-vertical-stepper-color-label'?: string;
|
|
31
|
-
'--sinch-comp-vertical-stepper-color-description'?: string;
|
|
32
|
-
'--sinch-comp-vertical-stepper-color-progress'?: string;
|
|
33
|
-
'--sinch-comp-vertical-stepper-color-progress-visited'?: string;
|
|
34
|
-
};
|
|
35
7
|
};
|
|
8
|
+
export type TSinchVerticalStepperStyle = {
|
|
9
|
+
'--sinch-comp-vertical-stepper-color-background-default'?: string;
|
|
10
|
+
'--sinch-comp-vertical-stepper-color-background-visited-skip'?: string;
|
|
11
|
+
'--sinch-comp-vertical-stepper-color-background-active'?: string;
|
|
12
|
+
'--sinch-comp-vertical-stepper-color-background-visited'?: string;
|
|
13
|
+
'--sinch-comp-vertical-stepper-color-background-visited-error'?: string;
|
|
14
|
+
'--sinch-comp-vertical-stepper-color-border-default'?: string;
|
|
15
|
+
'--sinch-comp-vertical-stepper-color-border-visited-skip'?: string;
|
|
16
|
+
'--sinch-comp-vertical-stepper-color-border-active'?: string;
|
|
17
|
+
'--sinch-comp-vertical-stepper-color-border-visited'?: string;
|
|
18
|
+
'--sinch-comp-vertical-stepper-color-border-visited-error'?: string;
|
|
19
|
+
'--sinch-comp-vertical-stepper-color-icon-default'?: string;
|
|
20
|
+
'--sinch-comp-vertical-stepper-color-icon-visited-skip'?: string;
|
|
21
|
+
'--sinch-comp-vertical-stepper-color-icon-active'?: string;
|
|
22
|
+
'--sinch-comp-vertical-stepper-color-icon-visited'?: string;
|
|
23
|
+
'--sinch-comp-vertical-stepper-color-icon-visited-error'?: string;
|
|
24
|
+
'--sinch-comp-vertical-stepper-color-label'?: string;
|
|
25
|
+
'--sinch-comp-vertical-stepper-color-description'?: string;
|
|
26
|
+
'--sinch-comp-vertical-stepper-color-progress'?: string;
|
|
27
|
+
'--sinch-comp-vertical-stepper-color-progress-visited'?: string;
|
|
28
|
+
};
|
|
29
|
+
export type TSinchVerticalStepper = {
|
|
30
|
+
props: TSinchVerticalStepperProps;
|
|
31
|
+
style: TSinchVerticalStepperStyle;
|
|
32
|
+
};
|
|
33
|
+
export type TSinchVerticalStepperElement = NectaryComponentVanillaByType<TSinchVerticalStepper>;
|
|
34
|
+
export type TSinchVerticalStepperReact = NectaryComponentReactByType<TSinchVerticalStepper>;
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import '../icon';
|
|
2
2
|
import '../title';
|
|
3
3
|
import '../text';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TSinchVerticalStepperItem } from './types';
|
|
5
|
+
import type { NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
5
6
|
declare global {
|
|
7
|
+
interface NectaryComponentMap {
|
|
8
|
+
'sinch-vertical-stepper-item': TSinchVerticalStepperItem;
|
|
9
|
+
}
|
|
6
10
|
interface HTMLElementTagNameMap {
|
|
7
|
-
'sinch-vertical-stepper-item':
|
|
11
|
+
'sinch-vertical-stepper-item': NectaryComponentVanilla<'sinch-vertical-stepper-item'>;
|
|
8
12
|
}
|
|
9
13
|
namespace JSX {
|
|
10
14
|
interface IntrinsicElements {
|
|
11
|
-
'sinch-vertical-stepper-item':
|
|
15
|
+
'sinch-vertical-stepper-item': NectaryComponentReact<'sinch-vertical-stepper-item'>;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
}
|
|
15
19
|
declare module 'react' {
|
|
16
20
|
namespace JSX {
|
|
17
21
|
interface IntrinsicElements {
|
|
18
|
-
'sinch-vertical-stepper-item':
|
|
22
|
+
'sinch-vertical-stepper-item': NectaryComponentReact<'sinch-vertical-stepper-item'>;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|
|
@@ -1,51 +1,42 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
2
2
|
export type TSinchVerticalStepperStatusType = 'error' | 'skip';
|
|
3
|
-
export type
|
|
4
|
-
/** Label */
|
|
5
|
-
label: string;
|
|
6
|
-
/** Description */
|
|
7
|
-
description: string | null;
|
|
8
|
-
/** Status */
|
|
9
|
-
status: TSinchVerticalStepperStatusType | 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: TSinchVerticalStepperStatusType): void;
|
|
16
|
-
};
|
|
17
|
-
export type TSinchVerticalStepperItemReact = TSinchElementReact<TSinchVerticalStepperItemElement> & {
|
|
3
|
+
export type TSinchVerticalStepperItemProps = {
|
|
18
4
|
/** Label */
|
|
19
5
|
label: string;
|
|
20
6
|
/** Description */
|
|
21
7
|
description?: string;
|
|
22
8
|
/** Status */
|
|
23
9
|
status?: TSinchVerticalStepperStatusType;
|
|
24
|
-
} & {
|
|
25
|
-
style?: {
|
|
26
|
-
'--sinch-comp-vertical-stepper-color-background-default'?: string;
|
|
27
|
-
'--sinch-comp-vertical-stepper-color-background-active'?: string;
|
|
28
|
-
'--sinch-comp-vertical-stepper-color-background-visited'?: string;
|
|
29
|
-
'--sinch-comp-vertical-stepper-color-background-visited-error'?: string;
|
|
30
|
-
'--sinch-comp-vertical-stepper-color-background-visited-skip'?: string;
|
|
31
|
-
'--sinch-comp-vertical-stepper-color-border-default'?: string;
|
|
32
|
-
'--sinch-comp-vertical-stepper-color-border-active'?: string;
|
|
33
|
-
'--sinch-comp-vertical-stepper-color-border-visited'?: string;
|
|
34
|
-
'--sinch-comp-vertical-stepper-color-border-visited-error'?: string;
|
|
35
|
-
'--sinch-comp-vertical-stepper-color-border-visited-skip'?: string;
|
|
36
|
-
'--sinch-comp-vertical-stepper-color-icon-default'?: string;
|
|
37
|
-
'--sinch-comp-vertical-stepper-color-icon-active'?: string;
|
|
38
|
-
'--sinch-comp-vertical-stepper-color-icon-visited'?: string;
|
|
39
|
-
'--sinch-comp-vertical-stepper-color-icon-visited-error'?: string;
|
|
40
|
-
'--sinch-comp-vertical-stepper-color-icon-visited-skip'?: string;
|
|
41
|
-
'--sinch-comp-vertical-stepper-color-label'?: string;
|
|
42
|
-
'--sinch-comp-vertical-stepper-color-description'?: string;
|
|
43
|
-
'--sinch-comp-vertical-stepper-color-progress'?: string;
|
|
44
|
-
'--sinch-comp-vertical-stepper-color-progress-visited'?: string;
|
|
45
|
-
'--sinch-local-color-background'?: string;
|
|
46
|
-
'--sinch-local-color-border'?: string;
|
|
47
|
-
'--sinch-local-color-text'?: string;
|
|
48
|
-
'--sinch-local-color-icon'?: string;
|
|
49
|
-
'--sinch-global-size-icon'?: string;
|
|
50
|
-
};
|
|
51
10
|
};
|
|
11
|
+
export type TSinchVerticalStepperItemStyle = {
|
|
12
|
+
'--sinch-comp-vertical-stepper-color-background-default'?: string;
|
|
13
|
+
'--sinch-comp-vertical-stepper-color-background-active'?: string;
|
|
14
|
+
'--sinch-comp-vertical-stepper-color-background-visited'?: string;
|
|
15
|
+
'--sinch-comp-vertical-stepper-color-background-visited-error'?: string;
|
|
16
|
+
'--sinch-comp-vertical-stepper-color-background-visited-skip'?: string;
|
|
17
|
+
'--sinch-comp-vertical-stepper-color-border-default'?: string;
|
|
18
|
+
'--sinch-comp-vertical-stepper-color-border-active'?: string;
|
|
19
|
+
'--sinch-comp-vertical-stepper-color-border-visited'?: string;
|
|
20
|
+
'--sinch-comp-vertical-stepper-color-border-visited-error'?: string;
|
|
21
|
+
'--sinch-comp-vertical-stepper-color-border-visited-skip'?: string;
|
|
22
|
+
'--sinch-comp-vertical-stepper-color-icon-default'?: string;
|
|
23
|
+
'--sinch-comp-vertical-stepper-color-icon-active'?: string;
|
|
24
|
+
'--sinch-comp-vertical-stepper-color-icon-visited'?: string;
|
|
25
|
+
'--sinch-comp-vertical-stepper-color-icon-visited-error'?: string;
|
|
26
|
+
'--sinch-comp-vertical-stepper-color-icon-visited-skip'?: string;
|
|
27
|
+
'--sinch-comp-vertical-stepper-color-label'?: string;
|
|
28
|
+
'--sinch-comp-vertical-stepper-color-description'?: string;
|
|
29
|
+
'--sinch-comp-vertical-stepper-color-progress'?: string;
|
|
30
|
+
'--sinch-comp-vertical-stepper-color-progress-visited'?: string;
|
|
31
|
+
'--sinch-local-color-background'?: string;
|
|
32
|
+
'--sinch-local-color-border'?: string;
|
|
33
|
+
'--sinch-local-color-text'?: string;
|
|
34
|
+
'--sinch-local-color-icon'?: string;
|
|
35
|
+
'--sinch-global-size-icon'?: string;
|
|
36
|
+
};
|
|
37
|
+
export type TSinchVerticalStepperItem = {
|
|
38
|
+
props: TSinchVerticalStepperItemProps;
|
|
39
|
+
style: TSinchVerticalStepperItemStyle;
|
|
40
|
+
};
|
|
41
|
+
export type TSinchVerticalStepperItemElement = NectaryComponentVanillaByType<TSinchVerticalStepperItem>;
|
|
42
|
+
export type TSinchVerticalStepperItemReact = NectaryComponentReactByType<TSinchVerticalStepperItem>;
|