@juspay/svelte-ui-components 1.0.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.
Files changed (76) hide show
  1. package/README.md +115 -0
  2. package/dist/Accordion/Accordion.svelte +35 -0
  3. package/dist/Accordion/Accordion.svelte.d.ts +18 -0
  4. package/dist/Animations/ModalAnimation.svelte +28 -0
  5. package/dist/Animations/ModalAnimation.svelte.d.ts +20 -0
  6. package/dist/Animations/OverlayAnimation.svelte +7 -0
  7. package/dist/Animations/OverlayAnimation.svelte.d.ts +27 -0
  8. package/dist/Badge/Badge.svelte +45 -0
  9. package/dist/Badge/Badge.svelte.d.ts +17 -0
  10. package/dist/Badge/properties.d.ts +4 -0
  11. package/dist/Badge/properties.js +1 -0
  12. package/dist/Banner/Banner.svelte +61 -0
  13. package/dist/Banner/Banner.svelte.d.ts +20 -0
  14. package/dist/Banner/properties.d.ts +5 -0
  15. package/dist/Banner/properties.js +1 -0
  16. package/dist/BrandLoader/BrandLoader.svelte +125 -0
  17. package/dist/BrandLoader/BrandLoader.svelte.d.ts +18 -0
  18. package/dist/BrandLoader/properties.d.ts +8 -0
  19. package/dist/BrandLoader/properties.js +7 -0
  20. package/dist/Button/Button.svelte +87 -0
  21. package/dist/Button/Button.svelte.d.ts +21 -0
  22. package/dist/Button/properties.d.ts +9 -0
  23. package/dist/Button/properties.js +7 -0
  24. package/dist/Carousel/Carousel.svelte +219 -0
  25. package/dist/Carousel/Carousel.svelte.d.ts +19 -0
  26. package/dist/Carousel/properties.d.ts +18 -0
  27. package/dist/Carousel/properties.js +7 -0
  28. package/dist/CheckListItem/CheckListItem.svelte +40 -0
  29. package/dist/CheckListItem/CheckListItem.svelte.d.ts +19 -0
  30. package/dist/Icon/Icon.svelte +32 -0
  31. package/dist/Icon/Icon.svelte.d.ts +20 -0
  32. package/dist/Icon/properties.d.ts +5 -0
  33. package/dist/Icon/properties.js +4 -0
  34. package/dist/Input/Input.svelte +218 -0
  35. package/dist/Input/Input.svelte.d.ts +26 -0
  36. package/dist/Input/properties.d.ts +25 -0
  37. package/dist/Input/properties.js +23 -0
  38. package/dist/InputButton/InputButton.svelte +157 -0
  39. package/dist/InputButton/InputButton.svelte.d.ts +27 -0
  40. package/dist/InputButton/properties.d.ts +8 -0
  41. package/dist/InputButton/properties.js +17 -0
  42. package/dist/ListItem/ListItem.svelte +196 -0
  43. package/dist/ListItem/ListItem.svelte.d.ts +32 -0
  44. package/dist/ListItem/properties.d.ts +8 -0
  45. package/dist/ListItem/properties.js +7 -0
  46. package/dist/Loader/Loader.svelte +89 -0
  47. package/dist/Loader/Loader.svelte.d.ts +15 -0
  48. package/dist/Modal/Modal.svelte +200 -0
  49. package/dist/Modal/Modal.svelte.d.ts +25 -0
  50. package/dist/Modal/properties.d.ts +15 -0
  51. package/dist/Modal/properties.js +12 -0
  52. package/dist/Select/Select.svelte +271 -0
  53. package/dist/Select/Select.svelte.d.ts +21 -0
  54. package/dist/Select/properties.d.ts +9 -0
  55. package/dist/Select/properties.js +1 -0
  56. package/dist/Status/Status.svelte +64 -0
  57. package/dist/Status/Status.svelte.d.ts +20 -0
  58. package/dist/Status/properties.d.ts +8 -0
  59. package/dist/Status/properties.js +6 -0
  60. package/dist/Table/Table.svelte +147 -0
  61. package/dist/Table/Table.svelte.d.ts +19 -0
  62. package/dist/Table/properties.d.ts +8 -0
  63. package/dist/Table/properties.js +1 -0
  64. package/dist/Toggle/Toggle.svelte +86 -0
  65. package/dist/Toggle/Toggle.svelte.d.ts +17 -0
  66. package/dist/Toolbar/Toolbar.svelte +95 -0
  67. package/dist/Toolbar/Toolbar.svelte.d.ts +25 -0
  68. package/dist/Toolbar/properties.d.ts +6 -0
  69. package/dist/Toolbar/properties.js +5 -0
  70. package/dist/index.d.ts +47 -0
  71. package/dist/index.js +30 -0
  72. package/dist/types.d.ts +19 -0
  73. package/dist/types.js +1 -0
  74. package/dist/utils.d.ts +11 -0
  75. package/dist/utils.js +147 -0
  76. package/package.json +162 -0
@@ -0,0 +1,23 @@
1
+ export const defaultInputProperties = {
2
+ value: '',
3
+ placeholder: '',
4
+ dataType: 'text',
5
+ label: '',
6
+ message: {
7
+ onError: 'error',
8
+ info: ''
9
+ },
10
+ validators: [],
11
+ focus: true,
12
+ disable: false,
13
+ validationPattern: null,
14
+ inProgressPattern: null,
15
+ addFocusColor: false,
16
+ maxLength: 1000,
17
+ minLength: 0,
18
+ actionInput: false,
19
+ useTextArea: false,
20
+ autoComplete: 'on',
21
+ name: '',
22
+ textTransformers: []
23
+ };
@@ -0,0 +1,157 @@
1
+ <script>import Button from "../Button/Button.svelte";
2
+ import Input from "../Input/Input.svelte";
3
+ import { createEventDispatcher } from "svelte";
4
+ import { defaultInputButtonProperties } from "./properties";
5
+ const dispatch = createEventDispatcher();
6
+ export let properties = defaultInputButtonProperties;
7
+ $:
8
+ state = "InProgress";
9
+ $: {
10
+ if (properties.rightButtonProperties != null) {
11
+ properties.rightButtonProperties.enable = state === "Valid";
12
+ properties = properties;
13
+ }
14
+ }
15
+ function rightButtonClick() {
16
+ if (state === "Valid") {
17
+ dispatch("rightButtonClick", { value: properties.inputProperties.value });
18
+ }
19
+ }
20
+ function leftButtonClick(event) {
21
+ event.preventDefault();
22
+ dispatch("leftButtonClick");
23
+ }
24
+ function triggerRightClickIfValid(event) {
25
+ if (event?.key === "Enter") {
26
+ rightButtonClick();
27
+ }
28
+ }
29
+ function handleState(event) {
30
+ if (event && event?.detail?.state) {
31
+ state = event.detail.state;
32
+ }
33
+ dispatch("stateChange", event);
34
+ }
35
+ </script>
36
+
37
+ {#if properties.inputProperties.label && properties.inputProperties.label !== ''}
38
+ <label class="label" for={properties.inputProperties.name}>
39
+ {properties.inputProperties.label}
40
+ </label>
41
+ {/if}
42
+
43
+ <div class="input-button-container">
44
+ <div class="input-button {state === 'Invalid' ? 'invalid' : 'valid'}">
45
+ {#if properties.leftButtonProperties != null}
46
+ <div class="left-button">
47
+ <Button properties={properties.leftButtonProperties} on:click={leftButtonClick}>
48
+ <slot name="left-icon" slot="icon" />
49
+ </Button>
50
+ </div>
51
+ {/if}
52
+ <div class="input">
53
+ <Input
54
+ properties={properties.inputProperties}
55
+ on:keyup={triggerRightClickIfValid}
56
+ on:stateChange={handleState}
57
+ on:input={(event) => dispatch('input', event)}
58
+ on:focus
59
+ --input-width="auto"
60
+ />
61
+ </div>
62
+ {#if properties.rightButtonProperties != null}
63
+ <div class="button">
64
+ <Button properties={properties.rightButtonProperties} on:click={rightButtonClick} />
65
+ </div>
66
+ {/if}
67
+ </div>
68
+ </div>
69
+ {#if properties.inputProperties.message.onError !== '' && state === 'Invalid'}
70
+ <div class="error-message">
71
+ {properties.inputProperties.message.onError}
72
+ </div>
73
+ {/if}
74
+ {#if typeof properties.inputProperties.message.info === 'string' && properties.inputProperties.message.info !== ''}
75
+ <div class="info-message">
76
+ {properties.inputProperties.message.info}
77
+ </div>
78
+ {/if}
79
+
80
+ <style>
81
+ .input-button-container {
82
+ height: var(--input-height, fit-content);
83
+ font-size: var(--input-font-size, 16px) !important;
84
+ font-weight: 500;
85
+ margin: var(--input-button-margin);
86
+ border-radius: var(--input-button-radius, 4px);
87
+ --button-width: 100%;
88
+ --input-border: none;
89
+ --input-focus-border: none;
90
+ }
91
+
92
+ .input-button {
93
+ display: flex;
94
+ align-items: center;
95
+ border-radius: var(--input-button-radius, 4px);
96
+ border: var(--input-button-border);
97
+ box-shadow: var(--input-button-box-shadow, 0px 1px 8px #2f537733);
98
+ }
99
+ .input-button-container:focus-within {
100
+ border: var(--input-button-focus-border);
101
+ }
102
+ .input {
103
+ flex: 2;
104
+ min-width: 0px;
105
+ }
106
+
107
+ .button {
108
+ flex: 1;
109
+ min-width: 0px;
110
+ --button-height: 54px;
111
+ }
112
+
113
+ .label {
114
+ font-weight: var(--input-label-msg-text-weight, 400);
115
+ font-size: var(--input-label-msg-text-size, 12px);
116
+ color: var(--input-label-msg-text-color, #637c95);
117
+ margin-bottom: 6px;
118
+ }
119
+
120
+ .invalid {
121
+ outline: 1px solid var(--input-field-error-stroke, #e11900);
122
+ }
123
+
124
+ .error-message {
125
+ font-weight: var(--input-error-msg-text-weight, 400);
126
+ font-size: var(--input-error-msg-text-size, 14px);
127
+ color: var(--input-error-msg-text-color, #fa1405);
128
+ margin-top: 12px;
129
+ }
130
+
131
+ .info-message {
132
+ font-weight: var(--input-info-msg-text-weight, 400);
133
+ font-size: var(--input-info-msg-text-size, 12px);
134
+ color: var(--input-info-msg-text-color, #fa1405);
135
+ margin-top: 12px;
136
+ }
137
+
138
+ .left-button {
139
+ --button-color: var(--left-button-color);
140
+ --button-text-color: var(--left-button-text-color);
141
+ --button-font-family: var(--left-button-font-family);
142
+ --button-font-weight: var(--left-button-font-weight);
143
+ --button-font-size: var(--left-button-font-size);
144
+ --button-height: var(--left-button-height, 54px);
145
+ --button-padding: var(--left-button-padding);
146
+ --button-border-radius: var(--left-button-border-radius);
147
+ --button-width: var(--left-button-width);
148
+ --cursor: var(--left-button-cursor);
149
+ --opacity: var(--left-button-opacity);
150
+ --button-border: var(--left-button-border);
151
+ display: flex;
152
+ justify-content: center;
153
+ align-items: center;
154
+ flex-direction: row;
155
+ --button-content-gap: var(--left-button-content-gap);
156
+ }
157
+ </style>
@@ -0,0 +1,27 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { type InputButtonProperties } from './properties';
3
+ declare const __propDef: {
4
+ props: {
5
+ properties?: InputButtonProperties | undefined;
6
+ };
7
+ events: {
8
+ focus: FocusEvent;
9
+ input: CustomEvent<any>;
10
+ rightButtonClick: CustomEvent<any>;
11
+ leftButtonClick: CustomEvent<any>;
12
+ stateChange: CustomEvent<any>;
13
+ } & {
14
+ [evt: string]: CustomEvent<any>;
15
+ };
16
+ slots: {
17
+ 'left-icon': {
18
+ slot: string;
19
+ };
20
+ };
21
+ };
22
+ export type InputButtonProps = typeof __propDef.props;
23
+ export type InputButtonEvents = typeof __propDef.events;
24
+ export type InputButtonSlots = typeof __propDef.slots;
25
+ export default class InputButton extends SvelteComponent<InputButtonProps, InputButtonEvents, InputButtonSlots> {
26
+ }
27
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ButtonProperties } from '../Button/properties';
2
+ import type { InputProperties } from '../Input/properties';
3
+ export type InputButtonProperties = {
4
+ inputProperties: InputProperties;
5
+ rightButtonProperties: ButtonProperties | null;
6
+ leftButtonProperties: ButtonProperties | null;
7
+ };
8
+ export declare const defaultInputButtonProperties: InputButtonProperties;
@@ -0,0 +1,17 @@
1
+ import { defaultInputProperties } from '../Input/properties';
2
+ const inputProperties = {
3
+ ...defaultInputProperties,
4
+ actionInput: true
5
+ };
6
+ const rightButtonProperties = {
7
+ text: 'click',
8
+ enable: false,
9
+ showLoader: false,
10
+ loaderType: null,
11
+ type: 'submit'
12
+ };
13
+ export const defaultInputButtonProperties = {
14
+ inputProperties,
15
+ rightButtonProperties,
16
+ leftButtonProperties: null
17
+ };
@@ -0,0 +1,196 @@
1
+ <script>import Accordion from "../Accordion/Accordion.svelte";
2
+ import Loader from "../Loader/Loader.svelte";
3
+ import { defaultListItemProperties } from "./properties";
4
+ import { createEventDispatcher } from "svelte";
5
+ const dispatch = createEventDispatcher();
6
+ export let properties = defaultListItemProperties;
7
+ export let showLoader = false;
8
+ export let showRightContentLoader = false;
9
+ export let expand = false;
10
+ function handleLeftImageClick() {
11
+ dispatch("leftImageClick");
12
+ }
13
+ function handleRightImageClick() {
14
+ dispatch("rightImageClick");
15
+ }
16
+ function handleCenterTextClick() {
17
+ dispatch("centerTextClick");
18
+ }
19
+ function handleItemClick() {
20
+ dispatch("itemClick");
21
+ }
22
+ function handleTopSectionClick() {
23
+ dispatch("topSectionClick");
24
+ }
25
+ </script>
26
+
27
+ {#if properties.leftImageUrl || properties.rightImageUrl || properties.label || $$slots.leftContent || $$slots.centerContent || $$slots.rightContent || $$slots.bottomContent}
28
+ <div class="item-container">
29
+ {#if showLoader}
30
+ <div class="item-loader" />
31
+ {/if}
32
+ <div class="item" on:click={handleItemClick} on:keydown role="button" tabindex="0">
33
+ <div
34
+ class="top-section"
35
+ on:click={handleTopSectionClick}
36
+ on:keydown
37
+ role="button"
38
+ tabindex="0"
39
+ >
40
+ <div class="left-content">
41
+ {#if properties.leftImageUrl}
42
+ <div on:click={handleLeftImageClick} on:keydown role="button" tabindex="0">
43
+ <img class="left-img" src={properties.leftImageUrl} alt="" />
44
+ </div>
45
+ {/if}
46
+ {#if $$slots.leftContent}
47
+ <slot name="leftContent" />
48
+ {/if}
49
+ </div>
50
+ <div class="center-content">
51
+ {#if properties.label}
52
+ <div
53
+ class="center-text"
54
+ on:click={handleCenterTextClick}
55
+ on:keydown
56
+ role="button"
57
+ tabindex="0"
58
+ >
59
+ <!-- eslint-disable-next-line -->
60
+ {@html properties.label}
61
+ </div>
62
+ {/if}
63
+ {#if $$slots.centerContent}
64
+ <slot name="centerContent" />
65
+ {/if}
66
+ </div>
67
+ <div class="right-content">
68
+ {#if $$slots.rightContent}
69
+ <slot name="rightContent" />
70
+ {/if}
71
+ {#if properties.rightImageUrl}
72
+ <div on:click={handleRightImageClick} on:keydown role="button" tabindex="0">
73
+ <img class="right-img" src={properties.rightImageUrl} alt="" />
74
+ </div>
75
+ {/if}
76
+ {#if showRightContentLoader}
77
+ <Loader />
78
+ {/if}
79
+ {#if properties.rightContentText && properties.rightContentText !== ''}
80
+ <span class="right-content-text">{properties.rightContentText}</span>
81
+ {/if}
82
+ </div>
83
+ </div>
84
+ <div class="bottom-section">
85
+ {#if $$slots.bottomContent && properties.useAccordion}
86
+ <Accordion bind:expand>
87
+ <slot name="bottomContent" />
88
+ </Accordion>
89
+ {/if}
90
+ </div>
91
+ </div>
92
+ </div>
93
+ {/if}
94
+
95
+ <style>
96
+ .item-container {
97
+ position: relative;
98
+ --loader-foreground: var(--list-item-loader-foreground, #86898d);
99
+ --loader-background: var(--list-item-loader-background, #ffffff);
100
+ --loader-foreground-end: var(--list-item-loader-foreground-end, #ffffff);
101
+ }
102
+
103
+ .item-loader {
104
+ position: absolute;
105
+ height: 100%;
106
+ width: 100%;
107
+ background: var(--list-item-loader-background-color, #00000030);
108
+ z-index: 20;
109
+ animation: fill-loader ease-in-out var(--list-item-loader-duration, 8s);
110
+ }
111
+
112
+ @keyframes fill-loader {
113
+ 0% {
114
+ width: 0;
115
+ }
116
+
117
+ 100% {
118
+ width: 100%;
119
+ }
120
+ }
121
+
122
+ .item {
123
+ display: flex;
124
+ flex-direction: column;
125
+ background-color: var(--list-item-background-color, transparent);
126
+ -webkit-tap-highlight-color: transparent;
127
+ cursor: var(--list-item-cursor, pointer);
128
+ -moz-box-shadow: var(--list-item-box-shadow, none);
129
+ -webkit-box-shadow: var(--list-item-box-shadow, none);
130
+ box-shadow: var(--list-item-box-shadow, none);
131
+ width: var(--list-item-box-width);
132
+ border-radius: var(--list-item-border-radius, 0px);
133
+ }
134
+
135
+ .top-section {
136
+ display: flex;
137
+ flex-direction: row;
138
+ margin-bottom: 0;
139
+ }
140
+
141
+ .left-content {
142
+ display: flex;
143
+ }
144
+
145
+ .center-text {
146
+ display: flex;
147
+ flex-direction: column;
148
+ padding: var(--list-item-center-text-padding, 0px 20px);
149
+ }
150
+
151
+ .center-content {
152
+ display: flex;
153
+ flex: 1;
154
+ min-width: 0;
155
+ }
156
+
157
+ .right-content {
158
+ display: flex;
159
+ }
160
+
161
+ .bottom-section {
162
+ flex-direction: row;
163
+ margin-top: 0;
164
+ }
165
+
166
+ .left-img {
167
+ height: var(--list-item-left-image-height, 24px);
168
+ width: var(--list-item-left-image-width, 24px);
169
+ padding: var(--list-item-left-image-padding, 0px);
170
+ border-radius: var(--list-item-left-image-border-radius, 0px);
171
+ margin: var(--list-item-left-image-margin, 0px);
172
+ filter: var(--list-item-left-image-filter, none);
173
+ }
174
+
175
+ .right-img {
176
+ height: var(--list-item-right-image-height, 18px);
177
+ width: var(--list-item-right-image-width, 18px);
178
+ padding: var(--list-item-right-image-padding, 0px);
179
+ border-radius: var(--list-item-right-image-border-radius, 0px);
180
+ margin: var(--list-item-right-image-margin, 0px);
181
+ }
182
+
183
+ .right-content-text {
184
+ color: var(--list-item-right-content-text-color, #2f3841);
185
+ font-size: var(--list-item-right-content-text-font-size, 12px);
186
+ font-weight: var(--list-item-right-content-text-font-weight, 300);
187
+ display: var(--list-item-right-content-display, flex);
188
+ align-items: var(--list-item-right-content-text-vertical-align);
189
+ padding: var(--list-item-right-content-text-padding, 0px);
190
+ margin: var(--list-item-right-content-text-margin, 0px);
191
+ border: var(--list-item-right-content-text-border);
192
+ cursor: var(--list-item-right-content-text-cursor, pointer);
193
+ font-family: var(--list-item-right-content-text-font-family);
194
+ justify-content: var(--list-item-right-content-text-justify-content);
195
+ }
196
+ </style>
@@ -0,0 +1,32 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import { type ListItemProperties } from './properties';
3
+ declare const __propDef: {
4
+ props: {
5
+ properties?: ListItemProperties | undefined;
6
+ showLoader?: boolean | undefined;
7
+ showRightContentLoader?: boolean | undefined;
8
+ expand?: boolean | undefined;
9
+ };
10
+ events: {
11
+ keydown: KeyboardEvent;
12
+ leftImageClick: CustomEvent<any>;
13
+ rightImageClick: CustomEvent<any>;
14
+ centerTextClick: CustomEvent<any>;
15
+ itemClick: CustomEvent<any>;
16
+ topSectionClick: CustomEvent<any>;
17
+ } & {
18
+ [evt: string]: CustomEvent<any>;
19
+ };
20
+ slots: {
21
+ leftContent: {};
22
+ centerContent: {};
23
+ rightContent: {};
24
+ bottomContent: {};
25
+ };
26
+ };
27
+ export type ListItemProps = typeof __propDef.props;
28
+ export type ListItemEvents = typeof __propDef.events;
29
+ export type ListItemSlots = typeof __propDef.slots;
30
+ export default class ListItem extends SvelteComponent<ListItemProps, ListItemEvents, ListItemSlots> {
31
+ }
32
+ export {};
@@ -0,0 +1,8 @@
1
+ export type ListItemProperties = {
2
+ leftImageUrl: string | null;
3
+ rightImageUrl: string | null;
4
+ label: string | null;
5
+ useAccordion: boolean;
6
+ rightContentText: string | null;
7
+ };
8
+ export declare const defaultListItemProperties: ListItemProperties;
@@ -0,0 +1,7 @@
1
+ export const defaultListItemProperties = {
2
+ leftImageUrl: null,
3
+ rightImageUrl: null,
4
+ label: null,
5
+ useAccordion: false,
6
+ rightContentText: null
7
+ };
@@ -0,0 +1,89 @@
1
+ <script context="module">export const prerender = true;
2
+ </script>
3
+
4
+ <div class="loader" />
5
+
6
+ <style>
7
+ .loader {
8
+ font-size: var(--loader-font-size, 10px);
9
+ text-indent: var(--loader-text-indent, -9999em);
10
+ width: var(--loader-width, 20px);
11
+ height: var(--loader-height, 20px);
12
+ border-radius: var(--loader-border-radius, 50%);
13
+ background: var(--loader-foreground);
14
+ background: -moz-linear-gradient(
15
+ left,
16
+ var(--loader-foreground) 10%,
17
+ var(--loader-foreground-end) 42%
18
+ );
19
+ background: -webkit-linear-gradient(
20
+ left,
21
+ var(--loader-foreground) 10%,
22
+ var(--loader-foreground-end) 42%
23
+ );
24
+ background: -o-linear-gradient(
25
+ left,
26
+ var(--loader-foreground) 10%,
27
+ var(--loader-foreground-end) 42%
28
+ );
29
+ background: -ms-linear-gradient(
30
+ left,
31
+ var(--loader-foreground) 10%,
32
+ var(--loader-foreground-end) 42%
33
+ );
34
+ background: linear-gradient(
35
+ to right,
36
+ var(--loader-foreground) 10%,
37
+ var(--loader-foreground-end) 42%
38
+ );
39
+ position: relative;
40
+ -webkit-animation: load3 1.4s infinite linear;
41
+ animation: load3 1.4s infinite linear;
42
+ -webkit-transform: translateZ(0);
43
+ -ms-transform: translateZ(0);
44
+ transform: translateZ(0);
45
+ }
46
+ .loader:before {
47
+ width: var(--loader-before-width, 10px);
48
+ height: var(--loader-before-height, 10px);
49
+ background: var(--loader-foreground);
50
+ border-radius: var(--loader-before-border-radius, 100% 0 0 0);
51
+ position: var(--loader-before-position, absolute);
52
+ top: var(--loader-before-top, 0);
53
+ left: var(--loader-before-left, 0);
54
+ content: '';
55
+ }
56
+ .loader:after {
57
+ background: var(--loader-background);
58
+ width: var(--loader-after-width, 15px);
59
+ height: var(--loader-after-height, 15px);
60
+ border-radius: var(--loader-after-border-radius, 50%);
61
+ content: '';
62
+ margin: var(--loader-after-margin, auto);
63
+ position: var(--loader-after-position, absolute);
64
+ top: var(--loader-after-top, 0);
65
+ left: var(--loader-after-left, 0);
66
+ bottom: var(--loader-after-bottom, 0);
67
+ right: var(--loader-after-right, 0);
68
+ }
69
+ @-webkit-keyframes load3 {
70
+ 0% {
71
+ -webkit-transform: rotate(0deg);
72
+ transform: rotate(0deg);
73
+ }
74
+ 100% {
75
+ -webkit-transform: rotate(360deg);
76
+ transform: rotate(360deg);
77
+ }
78
+ }
79
+ @keyframes load3 {
80
+ 0% {
81
+ -webkit-transform: rotate(0deg);
82
+ transform: rotate(0deg);
83
+ }
84
+ 100% {
85
+ -webkit-transform: rotate(360deg);
86
+ transform: rotate(360deg);
87
+ }
88
+ }
89
+ </style>
@@ -0,0 +1,15 @@
1
+ import { SvelteComponent } from "svelte";
2
+ export declare const prerender = true;
3
+ declare const __propDef: {
4
+ props: Record<string, never>;
5
+ events: {
6
+ [evt: string]: CustomEvent<any>;
7
+ };
8
+ slots: {};
9
+ };
10
+ export type LoaderProps = typeof __propDef.props;
11
+ export type LoaderEvents = typeof __propDef.events;
12
+ export type LoaderSlots = typeof __propDef.slots;
13
+ export default class Loader extends SvelteComponent<LoaderProps, LoaderEvents, LoaderSlots> {
14
+ }
15
+ export {};