@juspay/svelte-ui-components 2.1.0 → 2.2.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.
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Component } from 'svelte';
|
|
2
|
+
export type CarouselView = {
|
|
3
|
+
properties?: Record<string, unknown>;
|
|
4
|
+
component: Component<Record<string, unknown>>;
|
|
5
|
+
};
|
|
2
6
|
export type CarouselProperties = {
|
|
3
|
-
views:
|
|
4
|
-
properties?: Record<string, unknown>;
|
|
5
|
-
component: typeof SvelteComponent;
|
|
6
|
-
}[];
|
|
7
|
+
views: CarouselView[];
|
|
7
8
|
autoplay?: boolean;
|
|
8
9
|
autoplayInterval?: number;
|
|
9
10
|
showDots?: boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ButtonProperties } from '../Button/properties';
|
|
2
2
|
import type { InputProperties } from '../Input/properties';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
|
-
export type InputButtonProperties = {
|
|
4
|
+
export type InputButtonProperties = OptionalInputButtonProperties & {
|
|
5
5
|
value: string;
|
|
6
|
+
};
|
|
7
|
+
export type OptionalInputButtonProperties = {
|
|
6
8
|
inputProperties: Omit<InputProperties, 'value'>;
|
|
7
9
|
rightButtonProperties?: ButtonProperties | null;
|
|
8
10
|
leftButtonProperties?: ButtonProperties | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export { default as IconStack } from './IconStack/IconStack.svelte';
|
|
|
26
26
|
export type { ButtonProperties } from './Button/properties';
|
|
27
27
|
export type { ModalProperties, ModalAlign, ModalSize } from './Modal/properties';
|
|
28
28
|
export type { InputProperties, OptionalInputProps } from './Input/properties';
|
|
29
|
-
export type { InputButtonProperties } from './InputButton/properties';
|
|
29
|
+
export type { InputButtonProperties, OptionalInputButtonProperties } from './InputButton/properties';
|
|
30
30
|
export type { ListItemProperties } from './ListItem/properties';
|
|
31
31
|
export type { InputDataType } from './types';
|
|
32
32
|
export type { AutoCompleteType } from './types';
|