@juspay/svelte-ui-components 1.24.0 → 1.26.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/dist/Accordion/Accordion.svelte.d.ts +3 -1
- package/dist/Animations/ModalAnimation.svelte.d.ts +5 -3
- package/dist/Animations/OverlayAnimation.svelte.d.ts +2 -0
- package/dist/Badge/Badge.svelte.d.ts +3 -1
- package/dist/Banner/Banner.svelte.d.ts +3 -1
- package/dist/BrandLoader/BrandLoader.svelte.d.ts +3 -1
- package/dist/Button/Button.svelte.d.ts +4 -2
- package/dist/Carousel/Carousel.svelte.d.ts +3 -1
- package/dist/CheckListItem/CheckListItem.svelte.d.ts +2 -0
- package/dist/GridItem/GridItem.svelte.d.ts +6 -4
- package/dist/Icon/Icon.svelte.d.ts +3 -1
- package/dist/IconStack/IconStack.svelte +53 -0
- package/dist/IconStack/IconStack.svelte.d.ts +19 -0
- package/dist/IconStack/properties.d.ts +4 -0
- package/dist/IconStack/properties.js +1 -0
- package/dist/Img/Img.svelte.d.ts +3 -1
- package/dist/Input/Input.svelte.d.ts +4 -2
- package/dist/InputButton/InputButton.svelte.d.ts +4 -2
- package/dist/ListItem/ListItem.svelte +5 -0
- package/dist/ListItem/ListItem.svelte.d.ts +7 -5
- package/dist/ListItem/properties.d.ts +5 -0
- package/dist/Loader/Loader.svelte.d.ts +2 -0
- package/dist/Modal/Modal.svelte +15 -2
- package/dist/Modal/Modal.svelte.d.ts +3 -1
- package/dist/Modal/properties.d.ts +3 -0
- package/dist/Select/Select.svelte.d.ts +4 -2
- package/dist/Status/Status.svelte.d.ts +3 -1
- package/dist/Stepper/Step.svelte.d.ts +2 -0
- package/dist/Stepper/Stepper.svelte.d.ts +2 -0
- package/dist/Table/Table.svelte.d.ts +3 -1
- package/dist/Toast/Toast.svelte.d.ts +3 -1
- package/dist/Toggle/Toggle.svelte.d.ts +4 -2
- package/dist/Toolbar/Toolbar.svelte.d.ts +3 -1
- package/dist/types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
expand?: boolean
|
|
4
|
+
expand?: boolean;
|
|
5
5
|
};
|
|
6
6
|
events: {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
@@ -9,6 +9,8 @@ declare const __propDef: {
|
|
|
9
9
|
slots: {
|
|
10
10
|
default: {};
|
|
11
11
|
};
|
|
12
|
+
exports?: {} | undefined;
|
|
13
|
+
bindings?: string | undefined;
|
|
12
14
|
};
|
|
13
15
|
export type AccordionProps = typeof __propDef.props;
|
|
14
16
|
export type AccordionEvents = typeof __propDef.events;
|
|
@@ -3,9 +3,9 @@ import type { ModalAlign } from '../Modal/properties';
|
|
|
3
3
|
import type { ModalTransition } from '../types';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
6
|
-
enable?: boolean
|
|
7
|
-
align?: ModalAlign
|
|
8
|
-
transitionType?: ModalTransition
|
|
6
|
+
enable?: boolean;
|
|
7
|
+
align?: ModalAlign;
|
|
8
|
+
transitionType?: ModalTransition;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
@@ -13,6 +13,8 @@ declare const __propDef: {
|
|
|
13
13
|
slots: {
|
|
14
14
|
default: {};
|
|
15
15
|
};
|
|
16
|
+
exports?: {} | undefined;
|
|
17
|
+
bindings?: string | undefined;
|
|
16
18
|
};
|
|
17
19
|
export type ModalAnimationProps = typeof __propDef.props;
|
|
18
20
|
export type ModalAnimationEvents = typeof __propDef.events;
|
|
@@ -2,12 +2,14 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { BadgeProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: BadgeProperties | null
|
|
5
|
+
properties?: BadgeProperties | null;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
11
13
|
};
|
|
12
14
|
export type BadgeProps = typeof __propDef.props;
|
|
13
15
|
export type BadgeEvents = typeof __propDef.events;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { BannerProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: BannerProperties | null
|
|
5
|
+
properties?: BannerProperties | null;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
click: MouseEvent;
|
|
@@ -11,6 +11,8 @@ declare const __propDef: {
|
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
12
12
|
};
|
|
13
13
|
slots: {};
|
|
14
|
+
exports?: {} | undefined;
|
|
15
|
+
bindings?: string | undefined;
|
|
14
16
|
};
|
|
15
17
|
export type BannerProps = typeof __propDef.props;
|
|
16
18
|
export type BannerEvents = typeof __propDef.events;
|
|
@@ -3,12 +3,14 @@ export declare const prerender = true;
|
|
|
3
3
|
import type { BrandLoaderProperties } from './properties';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
6
|
-
properties?: BrandLoaderProperties
|
|
6
|
+
properties?: BrandLoaderProperties;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
|
+
exports?: {} | undefined;
|
|
13
|
+
bindings?: string | undefined;
|
|
12
14
|
};
|
|
13
15
|
export type BrandLoaderProps = typeof __propDef.props;
|
|
14
16
|
export type BrandLoaderEvents = typeof __propDef.events;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
properties?: import("./properties").ButtonProperties
|
|
5
|
-
showProgressBar?: boolean
|
|
4
|
+
properties?: import("./properties").ButtonProperties;
|
|
5
|
+
showProgressBar?: boolean;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
click: CustomEvent<any>;
|
|
@@ -12,6 +12,8 @@ declare const __propDef: {
|
|
|
12
12
|
slots: {
|
|
13
13
|
icon: {};
|
|
14
14
|
};
|
|
15
|
+
exports?: {} | undefined;
|
|
16
|
+
bindings?: string | undefined;
|
|
15
17
|
};
|
|
16
18
|
export type ButtonProps = typeof __propDef.props;
|
|
17
19
|
export type ButtonEvents = typeof __propDef.events;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { CarouselProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: CarouselProperties
|
|
5
|
+
properties?: CarouselProperties;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
keydown: KeyboardEvent;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type CarouselProps = typeof __propDef.props;
|
|
15
17
|
export type CarouselEvents = typeof __propDef.events;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
icon?: string
|
|
5
|
-
text?: string
|
|
6
|
-
headerIcon?: string
|
|
7
|
-
showLoader?: boolean
|
|
4
|
+
icon?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
headerIcon?: string;
|
|
7
|
+
showLoader?: boolean;
|
|
8
8
|
};
|
|
9
9
|
events: {
|
|
10
10
|
keydown: KeyboardEvent;
|
|
@@ -13,6 +13,8 @@ declare const __propDef: {
|
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
};
|
|
15
15
|
slots: {};
|
|
16
|
+
exports?: {} | undefined;
|
|
17
|
+
bindings?: string | undefined;
|
|
16
18
|
};
|
|
17
19
|
export type GridItemProps = typeof __propDef.props;
|
|
18
20
|
export type GridItemEvents = typeof __propDef.events;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { IconProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: IconProperties
|
|
5
|
+
properties?: IconProperties;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
click: MouseEvent;
|
|
@@ -11,6 +11,8 @@ declare const __propDef: {
|
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
12
12
|
};
|
|
13
13
|
slots: {};
|
|
14
|
+
exports?: {} | undefined;
|
|
15
|
+
bindings?: string | undefined;
|
|
14
16
|
};
|
|
15
17
|
export type IconProps = typeof __propDef.props;
|
|
16
18
|
export type IconEvents = typeof __propDef.events;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script>import {} from "./properties";
|
|
2
|
+
export let icons;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<div class="stack-container">
|
|
6
|
+
{#each icons as icon, i}
|
|
7
|
+
<div class="stack-icon" style="z-index: {icons.length - i}">
|
|
8
|
+
{#if icon.type === 'image'}
|
|
9
|
+
<img src={icon.content} alt="icon" />
|
|
10
|
+
{:else}
|
|
11
|
+
<div class="text-container">
|
|
12
|
+
<span>{icon.content}</span>
|
|
13
|
+
</div>
|
|
14
|
+
{/if}
|
|
15
|
+
</div>
|
|
16
|
+
{/each}
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<style>
|
|
20
|
+
.stack-container {
|
|
21
|
+
display: flex;
|
|
22
|
+
margin: var(--stack-container-margin, 0px);
|
|
23
|
+
}
|
|
24
|
+
.stack-icon {
|
|
25
|
+
display: flex;
|
|
26
|
+
width: var(--stack-icon-width, 36px);
|
|
27
|
+
height: var(--stack-icon-height, 36px);
|
|
28
|
+
background: var(--stack-icon-bg, white);
|
|
29
|
+
border-radius: var(--stack-icon-radius, 50%);
|
|
30
|
+
margin: var(--stack-icon-margin, 0px 0px 0px -14px);
|
|
31
|
+
align-items: var(--stack-icon-align-items, center);
|
|
32
|
+
border: var(--stack-icon-border, 1px solid #ffffff40);
|
|
33
|
+
justify-content: var(--stack-icon-justify-content, center);
|
|
34
|
+
box-shadow: var(--stack-icon-shadow, 0 2px 4px #00000026);
|
|
35
|
+
}
|
|
36
|
+
.stack-icon img {
|
|
37
|
+
width: var(--stack-img-width, 36px);
|
|
38
|
+
height: var(--stack-img-height, 36px);
|
|
39
|
+
}
|
|
40
|
+
.text-container {
|
|
41
|
+
display: flex;
|
|
42
|
+
width: var(--text-conatiner-width, 36px);
|
|
43
|
+
height: var(--text-conatiner-height, 36px);
|
|
44
|
+
align-items: var(--text-container-align-items, center);
|
|
45
|
+
justify-content: var(--text-container-justify-content, center);
|
|
46
|
+
}
|
|
47
|
+
.text-container span {
|
|
48
|
+
color: var(--text-color, #666);
|
|
49
|
+
font-size: var(--text-size, 13px);
|
|
50
|
+
font-weight: var(--text-weight, 500);
|
|
51
|
+
text-align: var(--text-align, center);
|
|
52
|
+
}
|
|
53
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { type IconProperties } from './properties';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
icons: IconProperties[];
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type IconStackProps = typeof __propDef.props;
|
|
15
|
+
export type IconStackEvents = typeof __propDef.events;
|
|
16
|
+
export type IconStackSlots = typeof __propDef.slots;
|
|
17
|
+
export default class IconStack extends SvelteComponent<IconStackProps, IconStackEvents, IconStackSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/Img/Img.svelte.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
src: string;
|
|
5
5
|
alt: string;
|
|
6
|
-
fallback?: string | null
|
|
6
|
+
fallback?: string | null;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
|
+
exports?: {} | undefined;
|
|
13
|
+
bindings?: string | undefined;
|
|
12
14
|
};
|
|
13
15
|
export type ImgProps = typeof __propDef.props;
|
|
14
16
|
export type ImgEvents = typeof __propDef.events;
|
|
@@ -2,8 +2,8 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import { type InputProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: InputProperties
|
|
6
|
-
focus?: (
|
|
5
|
+
properties?: InputProperties;
|
|
6
|
+
focus?: () => void;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
keydown: KeyboardEvent;
|
|
@@ -20,6 +20,8 @@ declare const __propDef: {
|
|
|
20
20
|
[evt: string]: CustomEvent<any>;
|
|
21
21
|
};
|
|
22
22
|
slots: {};
|
|
23
|
+
exports?: {} | undefined;
|
|
24
|
+
bindings?: string | undefined;
|
|
23
25
|
};
|
|
24
26
|
export type InputProps = typeof __propDef.props;
|
|
25
27
|
export type InputEvents = typeof __propDef.events;
|
|
@@ -2,8 +2,8 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import { type InputButtonProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: InputButtonProperties
|
|
6
|
-
focus?: (
|
|
5
|
+
properties?: InputButtonProperties;
|
|
6
|
+
focus?: () => void;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
valueChange: CustomEvent<any>;
|
|
@@ -23,6 +23,8 @@ declare const __propDef: {
|
|
|
23
23
|
slot: string;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
exports?: {} | undefined;
|
|
27
|
+
bindings?: string | undefined;
|
|
26
28
|
};
|
|
27
29
|
export type InputButtonProps = typeof __propDef.props;
|
|
28
30
|
export type InputButtonEvents = typeof __propDef.events;
|
|
@@ -38,6 +38,7 @@ function handleTopSectionClick() {
|
|
|
38
38
|
on:keydown
|
|
39
39
|
role="button"
|
|
40
40
|
tabindex="0"
|
|
41
|
+
data-pw={properties.testId}
|
|
41
42
|
>
|
|
42
43
|
<div
|
|
43
44
|
class="top-section"
|
|
@@ -46,6 +47,7 @@ function handleTopSectionClick() {
|
|
|
46
47
|
on:keydown
|
|
47
48
|
role="button"
|
|
48
49
|
tabindex="0"
|
|
50
|
+
data-pw={properties.topSectionTestId}
|
|
49
51
|
>
|
|
50
52
|
<div class="left-content">
|
|
51
53
|
{#if properties.leftImageUrl}
|
|
@@ -55,6 +57,7 @@ function handleTopSectionClick() {
|
|
|
55
57
|
on:keydown
|
|
56
58
|
role="button"
|
|
57
59
|
tabindex="0"
|
|
60
|
+
data-pw={properties.leftImageTestId}
|
|
58
61
|
>
|
|
59
62
|
<Img
|
|
60
63
|
src={properties.leftImageUrl}
|
|
@@ -76,6 +79,7 @@ function handleTopSectionClick() {
|
|
|
76
79
|
on:keydown
|
|
77
80
|
role="button"
|
|
78
81
|
tabindex="0"
|
|
82
|
+
data-pw={properties.centerTextTestId}
|
|
79
83
|
>
|
|
80
84
|
<!-- eslint-disable-next-line -->
|
|
81
85
|
{@html properties.label}
|
|
@@ -96,6 +100,7 @@ function handleTopSectionClick() {
|
|
|
96
100
|
on:keydown
|
|
97
101
|
role="button"
|
|
98
102
|
tabindex="0"
|
|
103
|
+
data-pw={properties.rightImageTestId}
|
|
99
104
|
>
|
|
100
105
|
<img class="right-img" src={properties.rightImageUrl} alt="" />
|
|
101
106
|
</div>
|
|
@@ -2,11 +2,11 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import { type ListItemProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: ListItemProperties
|
|
6
|
-
showLoader?: boolean
|
|
7
|
-
showRightContentLoader?: boolean
|
|
8
|
-
expand?: boolean
|
|
9
|
-
preventFocus?: boolean
|
|
5
|
+
properties?: ListItemProperties;
|
|
6
|
+
showLoader?: boolean;
|
|
7
|
+
showRightContentLoader?: boolean;
|
|
8
|
+
expand?: boolean;
|
|
9
|
+
preventFocus?: boolean;
|
|
10
10
|
};
|
|
11
11
|
events: {
|
|
12
12
|
keydown: KeyboardEvent;
|
|
@@ -24,6 +24,8 @@ declare const __propDef: {
|
|
|
24
24
|
rightContent: {};
|
|
25
25
|
bottomContent: {};
|
|
26
26
|
};
|
|
27
|
+
exports?: {} | undefined;
|
|
28
|
+
bindings?: string | undefined;
|
|
27
29
|
};
|
|
28
30
|
export type ListItemProps = typeof __propDef.props;
|
|
29
31
|
export type ListItemEvents = typeof __propDef.events;
|
|
@@ -5,5 +5,10 @@ export type ListItemProperties = {
|
|
|
5
5
|
label: string | null;
|
|
6
6
|
useAccordion: boolean;
|
|
7
7
|
rightContentText: string | null;
|
|
8
|
+
testId?: string;
|
|
9
|
+
topSectionTestId?: string;
|
|
10
|
+
rightImageTestId?: string;
|
|
11
|
+
leftImageTestId?: string;
|
|
12
|
+
centerTextTestId?: string;
|
|
8
13
|
};
|
|
9
14
|
export declare const defaultListItemProperties: ListItemProperties;
|
package/dist/Modal/Modal.svelte
CHANGED
|
@@ -71,6 +71,7 @@ onDestroy(() => {
|
|
|
71
71
|
on:keydown
|
|
72
72
|
role="button"
|
|
73
73
|
tabindex="0"
|
|
74
|
+
data-pw={properties.testId}
|
|
74
75
|
>
|
|
75
76
|
<ModalAnimation
|
|
76
77
|
enable={properties.enableTransition}
|
|
@@ -81,7 +82,13 @@ onDestroy(() => {
|
|
|
81
82
|
{#if properties.header.leftImage !== null || properties.header.text !== null || properties.header.rightImage !== null}
|
|
82
83
|
<div class="header">
|
|
83
84
|
{#if properties.header.leftImage}
|
|
84
|
-
<div
|
|
85
|
+
<div
|
|
86
|
+
on:click={handleLeftImageClick}
|
|
87
|
+
on:keydown
|
|
88
|
+
role="button"
|
|
89
|
+
tabindex="0"
|
|
90
|
+
data-pw={properties.leftImageTestId}
|
|
91
|
+
>
|
|
85
92
|
<img class="header-left-img" src={properties.header.leftImage} alt="" />
|
|
86
93
|
</div>
|
|
87
94
|
{/if}
|
|
@@ -91,7 +98,13 @@ onDestroy(() => {
|
|
|
91
98
|
</div>
|
|
92
99
|
{/if}
|
|
93
100
|
{#if properties.header.rightImage}
|
|
94
|
-
<div
|
|
101
|
+
<div
|
|
102
|
+
role="button"
|
|
103
|
+
tabindex="0"
|
|
104
|
+
on:click={handleRightImageClick}
|
|
105
|
+
on:keydown
|
|
106
|
+
data-pw={properties.rightImageTestId}
|
|
107
|
+
>
|
|
95
108
|
<img class="header-right-img" src={properties.header.rightImage} alt="" />
|
|
96
109
|
</div>
|
|
97
110
|
{/if}
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { ModalProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: ModalProperties
|
|
5
|
+
properties?: ModalProperties;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
keydown: KeyboardEvent;
|
|
@@ -19,6 +19,8 @@ declare const __propDef: {
|
|
|
19
19
|
content: {};
|
|
20
20
|
footer: {};
|
|
21
21
|
};
|
|
22
|
+
exports?: {} | undefined;
|
|
23
|
+
bindings?: string | undefined;
|
|
22
24
|
};
|
|
23
25
|
export type ModalProps = typeof __propDef.props;
|
|
24
26
|
export type ModalEvents = typeof __propDef.events;
|
|
@@ -2,8 +2,8 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { SelectProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
dropDownIconAlt?: string
|
|
6
|
-
properties?: SelectProperties
|
|
5
|
+
dropDownIconAlt?: string;
|
|
6
|
+
properties?: SelectProperties;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
keydown: KeyboardEvent;
|
|
@@ -16,6 +16,8 @@ declare const __propDef: {
|
|
|
16
16
|
leftContent: {};
|
|
17
17
|
bottomContent: {};
|
|
18
18
|
};
|
|
19
|
+
exports?: {} | undefined;
|
|
20
|
+
bindings?: string | undefined;
|
|
19
21
|
};
|
|
20
22
|
export type SelectProps = typeof __propDef.props;
|
|
21
23
|
export type SelectEvents = typeof __propDef.events;
|
|
@@ -3,7 +3,7 @@ export declare const prerender = true;
|
|
|
3
3
|
import type { StatusProperties } from './properties';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
6
|
-
properties?: StatusProperties
|
|
6
|
+
properties?: StatusProperties;
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
buttonClick: CustomEvent<any>;
|
|
@@ -11,6 +11,8 @@ declare const __propDef: {
|
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
12
12
|
};
|
|
13
13
|
slots: {};
|
|
14
|
+
exports?: {} | undefined;
|
|
15
|
+
bindings?: string | undefined;
|
|
14
16
|
};
|
|
15
17
|
export type StatusProps = typeof __propDef.props;
|
|
16
18
|
export type StatusEvents = typeof __propDef.events;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type StepperProps = typeof __propDef.props;
|
|
15
17
|
export type StepperEvents = typeof __propDef.events;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { TableProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: TableProperties
|
|
5
|
+
properties?: TableProperties;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
keydown: KeyboardEvent;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type TableProps = typeof __propDef.props;
|
|
15
17
|
export type TableEvents = typeof __propDef.events;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import { type ToastProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: ToastProperties
|
|
5
|
+
properties?: ToastProperties;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
keypress: KeyboardEvent;
|
|
@@ -13,6 +13,8 @@ declare const __propDef: {
|
|
|
13
13
|
slots: {
|
|
14
14
|
bottomContent: {};
|
|
15
15
|
};
|
|
16
|
+
exports?: {} | undefined;
|
|
17
|
+
bindings?: string | undefined;
|
|
16
18
|
};
|
|
17
19
|
export type ToastProps = typeof __propDef.props;
|
|
18
20
|
export type ToastEvents = typeof __propDef.events;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
checked?: boolean
|
|
5
|
-
text?: string
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
text?: string;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
click: CustomEvent<any>;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type ToggleProps = typeof __propDef.props;
|
|
15
17
|
export type ToggleEvents = typeof __propDef.events;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { ToolbarProperties } from './properties';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
properties?: ToolbarProperties
|
|
5
|
+
properties?: ToolbarProperties;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
keydown: KeyboardEvent;
|
|
@@ -16,6 +16,8 @@ declare const __propDef: {
|
|
|
16
16
|
rightContent: {};
|
|
17
17
|
additionalContent: {};
|
|
18
18
|
};
|
|
19
|
+
exports?: {} | undefined;
|
|
20
|
+
bindings?: string | undefined;
|
|
19
21
|
};
|
|
20
22
|
export type ToolbarProps = typeof __propDef.props;
|
|
21
23
|
export type ToolbarEvents = typeof __propDef.events;
|
package/dist/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { FlyParams } from 'svelte/transition';
|
|
|
3
3
|
* @name InputDataType
|
|
4
4
|
* @description Different types of input data which can be passed to the Input Component
|
|
5
5
|
*/
|
|
6
|
-
export type InputDataType = 'text' | 'tel' | 'password' | 'email';
|
|
6
|
+
export type InputDataType = 'text' | 'tel' | 'password' | 'email' | 'number';
|
|
7
7
|
export type ModalTransition = 'IN' | 'ALL';
|
|
8
8
|
export type AutoCompleteType = 'tel' | 'name' | 'email' | 'one-time-code' | 'postal-code' | 'street-address' | 'on' | 'address-level1';
|
|
9
9
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/svelte-ui-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev --host",
|
|
6
6
|
"build": "vite build && npm run package",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"svelte-check": "^3.6.0",
|
|
55
55
|
"tslib": "^2.6.2",
|
|
56
56
|
"typescript": "^5.2.2",
|
|
57
|
-
"vite": "^4.5.
|
|
57
|
+
"vite": "^4.5.5",
|
|
58
58
|
"vitest": "^0.34.6",
|
|
59
59
|
"type-decoder": "^1.2.0"
|
|
60
60
|
},
|