@juspay/svelte-ui-components 1.34.1 → 1.34.2

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 (89) hide show
  1. package/dist/Accordion/Accordion.svelte +17 -30
  2. package/dist/Accordion/Accordion.svelte.d.ts +6 -20
  3. package/dist/Animations/ModalAnimation.svelte +44 -30
  4. package/dist/Animations/ModalAnimation.svelte.d.ts +9 -21
  5. package/dist/Animations/OverlayAnimation.svelte +9 -2
  6. package/dist/Animations/OverlayAnimation.svelte.d.ts +6 -28
  7. package/dist/Badge/Badge.svelte +9 -8
  8. package/dist/Badge/Badge.svelte.d.ts +3 -18
  9. package/dist/Banner/Banner.svelte +20 -19
  10. package/dist/Banner/Banner.svelte.d.ts +3 -23
  11. package/dist/Banner/properties.d.ts +6 -2
  12. package/dist/BrandLoader/BrandLoader.svelte +11 -12
  13. package/dist/BrandLoader/BrandLoader.svelte.d.ts +3 -19
  14. package/dist/BrandLoader/properties.d.ts +1 -4
  15. package/dist/BrandLoader/properties.js +1 -7
  16. package/dist/Button/Button.svelte +38 -27
  17. package/dist/Button/Button.svelte.d.ts +4 -23
  18. package/dist/Button/properties.d.ts +9 -5
  19. package/dist/Button/properties.js +1 -7
  20. package/dist/Carousel/Carousel.svelte +132 -108
  21. package/dist/Carousel/Carousel.svelte.d.ts +3 -20
  22. package/dist/Carousel/properties.d.ts +6 -12
  23. package/dist/Carousel/properties.js +1 -7
  24. package/dist/CheckListItem/CheckListItem.svelte +18 -12
  25. package/dist/CheckListItem/CheckListItem.svelte.d.ts +4 -23
  26. package/dist/CheckListItem/properties.d.ts +7 -0
  27. package/dist/CheckListItem/properties.js +1 -0
  28. package/dist/GridItem/GridItem.svelte +17 -11
  29. package/dist/GridItem/GridItem.svelte.d.ts +4 -24
  30. package/dist/GridItem/properties.d.ts +8 -0
  31. package/dist/GridItem/properties.js +1 -0
  32. package/dist/Icon/Icon.svelte +8 -6
  33. package/dist/Icon/Icon.svelte.d.ts +3 -21
  34. package/dist/Icon/properties.d.ts +3 -2
  35. package/dist/Icon/properties.js +1 -4
  36. package/dist/IconStack/IconStack.svelte +5 -3
  37. package/dist/IconStack/IconStack.svelte.d.ts +4 -19
  38. package/dist/IconStack/properties.d.ts +4 -1
  39. package/dist/Img/Img.svelte +13 -9
  40. package/dist/Img/Img.svelte.d.ts +4 -20
  41. package/dist/Img/properties.d.ts +2 -2
  42. package/dist/Input/Input.svelte +172 -139
  43. package/dist/Input/Input.svelte.d.ts +6 -32
  44. package/dist/Input/properties.d.ts +23 -22
  45. package/dist/Input/properties.js +1 -23
  46. package/dist/InputButton/InputButton.svelte +76 -78
  47. package/dist/InputButton/InputButton.svelte.d.ts +6 -35
  48. package/dist/InputButton/properties.d.ts +6 -4
  49. package/dist/InputButton/properties.js +1 -18
  50. package/dist/ListItem/ListItem.svelte +87 -64
  51. package/dist/ListItem/ListItem.svelte.d.ts +4 -35
  52. package/dist/ListItem/properties.d.ts +21 -7
  53. package/dist/ListItem/properties.js +1 -8
  54. package/dist/Loader/Loader.svelte +1 -4
  55. package/dist/Loader/Loader.svelte.d.ts +24 -15
  56. package/dist/Modal/Modal.svelte +117 -95
  57. package/dist/Modal/Modal.svelte.d.ts +3 -29
  58. package/dist/Modal/properties.d.ts +21 -13
  59. package/dist/Modal/properties.js +1 -14
  60. package/dist/Select/Select.svelte +170 -142
  61. package/dist/Select/Select.svelte.d.ts +3 -26
  62. package/dist/Select/properties.d.ts +19 -10
  63. package/dist/Status/Status.svelte +15 -15
  64. package/dist/Status/Status.svelte.d.ts +3 -21
  65. package/dist/Status/properties.d.ts +2 -2
  66. package/dist/Status/properties.js +1 -6
  67. package/dist/Stepper/Step.svelte +13 -13
  68. package/dist/Stepper/Step.svelte.d.ts +4 -23
  69. package/dist/Stepper/Stepper.svelte +10 -7
  70. package/dist/Stepper/Stepper.svelte.d.ts +3 -20
  71. package/dist/Stepper/properties.d.ts +12 -0
  72. package/dist/Table/Table.svelte +73 -47
  73. package/dist/Table/Table.svelte.d.ts +3 -20
  74. package/dist/Table/properties.d.ts +5 -5
  75. package/dist/Toast/Toast.svelte +144 -76
  76. package/dist/Toast/Toast.svelte.d.ts +24 -23
  77. package/dist/Toast/properties.d.ts +10 -11
  78. package/dist/Toast/properties.js +1 -4
  79. package/dist/Toggle/Toggle.svelte +12 -11
  80. package/dist/Toggle/Toggle.svelte.d.ts +4 -21
  81. package/dist/Toggle/properties.d.ts +5 -0
  82. package/dist/Toggle/properties.js +1 -0
  83. package/dist/Toolbar/Toolbar.svelte +27 -20
  84. package/dist/Toolbar/Toolbar.svelte.d.ts +3 -26
  85. package/dist/Toolbar/properties.d.ts +10 -4
  86. package/dist/Toolbar/properties.js +1 -5
  87. package/dist/index.d.ts +0 -11
  88. package/dist/index.js +0 -11
  89. package/package.json +29 -29
@@ -1,116 +1,114 @@
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
- let inputRef;
8
- $:
9
- state = "InProgress";
10
- $: {
11
- if (properties.rightButtonProperties != null) {
12
- properties.rightButtonProperties.enable = state === "Valid";
13
- properties = properties;
14
- }
15
- }
16
- function rightButtonClick() {
17
- if (state === "Valid") {
18
- dispatch("rightButtonClick", { value: properties.inputProperties.value });
19
- }
20
- }
21
- function leftButtonClick(event) {
22
- event.preventDefault();
23
- dispatch("leftButtonClick");
24
- }
25
- function bottomButtonClick() {
26
- if (state === "Valid") {
27
- dispatch("bottomButtonClick", { value: properties.inputProperties.value });
28
- }
29
- }
30
- function triggerRightClickIfValid(event) {
31
- if (event?.key === "Enter") {
32
- rightButtonClick();
33
- }
34
- }
35
- function handleState(event) {
36
- if (event && event?.detail?.state) {
37
- state = event.detail.state;
38
- }
39
- dispatch("stateChange", event);
40
- }
41
- function onFocusOut(event) {
42
- dispatch("focusout", event);
43
- }
44
- function onInputClick(event) {
45
- dispatch("inputClick", event);
46
- }
47
- export function focus() {
48
- inputRef?.focus();
49
- }
1
+ <script lang="ts">
2
+ import Button from '../Button/Button.svelte';
3
+ import Input from '../Input/Input.svelte';
4
+ import type { InputButtonProperties } from './properties';
5
+ import type { ValidationState } from '../types';
6
+ import type { SvelteComponent } from 'svelte';
7
+
8
+ let {
9
+ value = $bindable(''),
10
+ inputProperties,
11
+ rightButtonProperties,
12
+ leftButtonProperties,
13
+ bottomButtonProperties,
14
+ leftIcon
15
+ }: InputButtonProperties = $props();
16
+
17
+ let validationState = $state<ValidationState>('InProgress');
18
+
19
+ let inputRef: SvelteComponent | null = $state(null);
20
+
21
+ // Derive enable state for right button
22
+ let isRightButtonEnabled = $derived(validationState === 'Valid');
23
+
24
+ function rightButtonClick(event: MouseEvent): void {
25
+ if (validationState === 'Valid') {
26
+ rightButtonProperties?.onclick?.(event);
27
+ }
28
+ }
29
+
30
+ function bottomButtonClick(event: MouseEvent): void {
31
+ if (validationState === 'Valid') {
32
+ bottomButtonProperties?.onclick?.(event);
33
+ }
34
+ }
35
+
36
+ function triggerRightClickIfValid(event: KeyboardEvent): void {
37
+ if (event?.key === 'Enter' && validationState === 'Valid') {
38
+ rightButtonProperties?.onkeyup?.(event);
39
+ }
40
+ }
41
+
42
+ function handleStateChange(state: ValidationState): void {
43
+ validationState = state;
44
+ inputProperties.onStateChange?.(state);
45
+ }
46
+
47
+ export function focus() {
48
+ inputRef?.focus();
49
+ }
50
50
  </script>
51
51
 
52
- {#if properties.inputProperties.label && properties.inputProperties.label !== ''}
53
- <label class="label" for={properties.inputProperties.name}>
54
- {properties.inputProperties.label}
52
+ {#if inputProperties.label && inputProperties.label !== ''}
53
+ <label class="label" for={inputProperties.name}>
54
+ {inputProperties.label}
55
55
  </label>
56
56
  {/if}
57
57
 
58
58
  <div class="input-button-container">
59
- <div class="input-button {state === 'Invalid' ? 'invalid' : 'valid'}">
60
- {#if properties.leftButtonProperties != null}
59
+ <div class="input-button {validationState === 'Invalid' ? 'invalid' : 'valid'}">
60
+ {#if leftButtonProperties != null}
61
61
  <div class="left-button">
62
- <Button properties={properties.leftButtonProperties} on:click={leftButtonClick}>
63
- <slot name="left-icon" slot="icon" />
64
- </Button>
62
+ <Button {...leftButtonProperties} icon={leftIcon} />
65
63
  </div>
66
64
  {/if}
67
- <div class="input">
65
+ <!-- svelte-ignore a11y_no_static_element_interactions -->
66
+ <div class="input" onkeyup={triggerRightClickIfValid}>
68
67
  <Input
69
- properties={properties.inputProperties}
70
- on:keyup={triggerRightClickIfValid}
71
- on:stateChange={handleState}
72
- on:input={(event) => dispatch('input', event)}
73
- on:focusout={onFocusOut}
74
- on:valueChange
75
- on:focus
76
- on:click={onInputClick}
77
- --input-width="auto"
68
+ {...inputProperties}
69
+ bind:value
78
70
  bind:this={inputRef}
71
+ onStateChange={handleStateChange}
72
+ --input-width="auto"
79
73
  />
80
74
  </div>
81
- {#if properties.rightButtonProperties != null}
75
+ {#if rightButtonProperties != null}
82
76
  <div class="right-button">
83
- <Button properties={properties.rightButtonProperties} on:click={rightButtonClick} />
77
+ <Button
78
+ {...rightButtonProperties}
79
+ enable={isRightButtonEnabled}
80
+ onclick={rightButtonClick}
81
+ />
84
82
  </div>
85
83
  {/if}
86
84
  </div>
87
- {#if properties.bottomButtonProperties != null}
85
+ {#if bottomButtonProperties != null}
88
86
  <div class="bottom-button">
89
- <Button properties={properties.bottomButtonProperties} on:click={bottomButtonClick} />
87
+ <Button {...bottomButtonProperties} onclick={bottomButtonClick} />
90
88
  </div>
91
89
  {/if}
92
90
  </div>
93
- {#if properties.inputProperties.message.onError !== '' && state === 'Invalid'}
91
+ {#if inputProperties.onErrorMessage !== '' && validationState === 'Invalid'}
94
92
  <div class="error-message">
95
- {properties.inputProperties.message.onError}
93
+ {inputProperties.onErrorMessage}
96
94
  </div>
97
95
  {/if}
98
- {#if typeof properties.inputProperties.message.info === 'string' && properties.inputProperties.message.info !== ''}
96
+ {#if typeof inputProperties.infoMessage === 'string' && inputProperties.infoMessage !== ''}
99
97
  <div class="info-message">
100
- {properties.inputProperties.message.info}
98
+ {inputProperties.infoMessage}
101
99
  </div>
102
100
  {/if}
103
101
 
104
102
  <style>
105
103
  .input-button-container {
104
+ --button-width: 100%;
105
+ --input-border: none;
106
+ --input-focus-border: none;
106
107
  height: var(--input-height, fit-content);
107
108
  font-size: var(--input-font-size, 16px) !important;
108
109
  font-weight: 500;
109
110
  margin: var(--input-button-margin);
110
111
  border-radius: var(--input-button-radius, 4px);
111
- --button-width: 100%;
112
- --input-border: none;
113
- --input-focus-border: none;
114
112
  border: var(--input-button-container-border);
115
113
  background: var(--input-button-container-background);
116
114
  padding: var(--input-button-container-padding);
@@ -1,35 +1,6 @@
1
- import { SvelteComponent } from "svelte";
2
- import { type InputButtonProperties } from './properties';
3
- declare const __propDef: {
4
- props: {
5
- properties?: InputButtonProperties;
6
- focus?: () => void;
7
- };
8
- events: {
9
- valueChange: CustomEvent<any>;
10
- focus: FocusEvent;
11
- input: CustomEvent<any>;
12
- rightButtonClick: CustomEvent<any>;
13
- leftButtonClick: CustomEvent<any>;
14
- bottomButtonClick: CustomEvent<any>;
15
- stateChange: CustomEvent<any>;
16
- focusout: CustomEvent<any>;
17
- inputClick: CustomEvent<any>;
18
- } & {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {
22
- 'left-icon': {
23
- slot: string;
24
- };
25
- };
26
- exports?: {} | undefined;
27
- bindings?: string | undefined;
28
- };
29
- export type InputButtonProps = typeof __propDef.props;
30
- export type InputButtonEvents = typeof __propDef.events;
31
- export type InputButtonSlots = typeof __propDef.slots;
32
- export default class InputButton extends SvelteComponent<InputButtonProps, InputButtonEvents, InputButtonSlots> {
33
- get focus(): () => void;
34
- }
35
- export {};
1
+ import type { InputButtonProperties } from './properties';
2
+ declare const InputButton: import("svelte").Component<InputButtonProperties, {
3
+ focus: () => void;
4
+ }, "value">;
5
+ type InputButton = ReturnType<typeof InputButton>;
6
+ export default InputButton;
@@ -1,9 +1,11 @@
1
1
  import type { ButtonProperties } from '../Button/properties';
2
2
  import type { InputProperties } from '../Input/properties';
3
+ import type { Snippet } from 'svelte';
3
4
  export type InputButtonProperties = {
4
- inputProperties: InputProperties;
5
- rightButtonProperties: ButtonProperties | null;
6
- leftButtonProperties: ButtonProperties | null;
5
+ value: string;
6
+ inputProperties: Omit<InputProperties, 'value'>;
7
+ rightButtonProperties?: ButtonProperties | null;
8
+ leftButtonProperties?: ButtonProperties | null;
7
9
  bottomButtonProperties?: ButtonProperties | null;
10
+ leftIcon?: Snippet;
8
11
  };
9
- export declare const defaultInputButtonProperties: InputButtonProperties;
@@ -1,18 +1 @@
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
- bottomButtonProperties: null
18
- };
1
+ export {};
@@ -1,108 +1,131 @@
1
- <script>import Accordion from "../Accordion/Accordion.svelte";
2
- import Loader from "../Loader/Loader.svelte";
3
- import Img from "../Img/Img.svelte";
4
- import { defaultListItemProperties } from "./properties";
5
- import { createEventDispatcher } from "svelte";
6
- const dispatch = createEventDispatcher();
7
- export let properties = defaultListItemProperties;
8
- export let showLoader = false;
9
- export let showRightContentLoader = false;
10
- export let expand = false;
11
- export let preventFocus = false;
12
- function handleLeftImageClick() {
13
- dispatch("leftImageClick");
14
- }
15
- function handleRightImageClick() {
16
- dispatch("rightImageClick");
17
- }
18
- function handleCenterTextClick() {
19
- dispatch("centerTextClick");
20
- }
21
- function handleItemClick() {
22
- dispatch("itemClick");
23
- }
24
- function handleTopSectionClick() {
25
- dispatch("topSectionClick");
26
- }
1
+ <script lang="ts">
2
+ import Accordion from '../Accordion/Accordion.svelte';
3
+ import Loader from '../Loader/Loader.svelte';
4
+ import Img from '../Img/Img.svelte';
5
+ import type { ListItemProperties } from './properties';
6
+
7
+ let {
8
+ leftImageUrl,
9
+ leftImageFallbackUrl,
10
+ rightImageUrl,
11
+ label,
12
+ useAccordion = false,
13
+ rightContentText,
14
+ testId,
15
+ topSectionTestId,
16
+ rightImageTestId,
17
+ leftImageTestId,
18
+ centerTextTestId,
19
+ showLoader = false,
20
+ showRightContentLoader = false,
21
+ expand = $bindable(false),
22
+ preventFocus = false,
23
+ leftContent,
24
+ centerContent,
25
+ rightContent,
26
+ bottomContent,
27
+ onleftImageClick,
28
+ onrightImageClick,
29
+ oncenterTextClick,
30
+ onitemClick,
31
+ ontopSectionClick,
32
+ onkeydown
33
+ }: ListItemProperties = $props();
34
+
35
+ function handleLeftImageClick(event: MouseEvent): void {
36
+ onleftImageClick?.(event);
37
+ }
38
+
39
+ function handleRightImageClick(event: MouseEvent): void {
40
+ onrightImageClick?.(event);
41
+ }
42
+
43
+ function handleCenterTextClick(event: MouseEvent): void {
44
+ oncenterTextClick?.(event);
45
+ }
46
+
47
+ function handleItemClick(event: MouseEvent): void {
48
+ onitemClick?.(event);
49
+ }
50
+
51
+ function handleTopSectionClick(event: MouseEvent): void {
52
+ ontopSectionClick?.(event);
53
+ }
27
54
  </script>
28
55
 
29
- {#if properties.leftImageUrl || properties.rightImageUrl || properties.label || $$slots.leftContent || $$slots.centerContent || $$slots.rightContent || $$slots.bottomContent}
56
+ {#if leftImageUrl || rightImageUrl || label || leftContent || centerContent || rightContent || bottomContent}
30
57
  <div class="item-container">
31
58
  {#if showLoader}
32
- <div class="item-loader" />
59
+ <div class="item-loader"></div>
33
60
  {/if}
34
61
  <div
35
62
  class="item"
36
63
  class:prevent-focus={preventFocus}
37
- on:click={handleItemClick}
38
- on:keydown
64
+ onclick={handleItemClick}
65
+ {onkeydown}
39
66
  role="button"
40
67
  tabindex="0"
41
- data-pw={properties.testId}
68
+ data-pw={testId}
42
69
  >
43
70
  <div
44
71
  class="top-section"
45
72
  class:prevent-focus={preventFocus}
46
- on:click={handleTopSectionClick}
47
- on:keydown
73
+ onclick={handleTopSectionClick}
74
+ {onkeydown}
48
75
  role="button"
49
76
  tabindex="0"
50
- data-pw={properties.topSectionTestId}
77
+ data-pw={topSectionTestId}
51
78
  >
52
79
  <div class="left-content">
53
- {#if properties.leftImageUrl}
80
+ {#if leftImageUrl}
54
81
  <div
55
82
  class:prevent-focus={preventFocus}
56
- on:click={handleLeftImageClick}
57
- on:keydown
83
+ onclick={handleLeftImageClick}
84
+ {onkeydown}
58
85
  role="button"
59
86
  tabindex="0"
60
- data-pw={properties.leftImageTestId}
87
+ data-pw={leftImageTestId}
61
88
  >
62
- <Img
63
- src={properties.leftImageUrl}
64
- alt=""
65
- fallback={properties.leftImageFallbackUrl}
66
- />
89
+ <Img src={leftImageUrl} alt="" fallback={leftImageFallbackUrl} />
67
90
  </div>
68
91
  {/if}
69
- {#if $$slots.leftContent}
70
- <slot name="leftContent" />
92
+ {#if leftContent}
93
+ {@render leftContent?.()}
71
94
  {/if}
72
95
  </div>
73
96
  <div class="center-content">
74
- {#if properties.label}
97
+ {#if label}
75
98
  <div
76
99
  class="center-text"
77
100
  class:prevent-focus={preventFocus}
78
- on:click={handleCenterTextClick}
79
- on:keydown
101
+ onclick={handleCenterTextClick}
102
+ {onkeydown}
80
103
  role="button"
81
104
  tabindex="0"
82
- data-pw={properties.centerTextTestId}
105
+ data-pw={centerTextTestId}
83
106
  >
84
107
  <!-- eslint-disable-next-line -->
85
- {@html properties.label}
108
+ {@html label}
86
109
  </div>
87
110
  {/if}
88
- {#if $$slots.centerContent}
89
- <slot name="centerContent" />
111
+ {#if centerContent}
112
+ {@render centerContent?.()}
90
113
  {/if}
91
114
  </div>
92
115
  <div class="right-content">
93
- {#if $$slots.rightContent}
94
- <slot name="rightContent" />
116
+ {#if rightContent}
117
+ {@render rightContent?.()}
95
118
  {/if}
96
- {#if properties.rightImageUrl}
119
+ {#if rightImageUrl}
97
120
  <div
98
121
  class:prevent-focus={preventFocus}
99
- on:click={handleRightImageClick}
100
- on:keydown
122
+ onclick={handleRightImageClick}
123
+ {onkeydown}
101
124
  role="button"
102
125
  tabindex="0"
103
- data-pw={properties.rightImageTestId}
126
+ data-pw={rightImageTestId}
104
127
  >
105
- <img class="right-img" src={properties.rightImageUrl} alt="" />
128
+ <img class="right-img" src={rightImageUrl} alt="" />
106
129
  </div>
107
130
  {/if}
108
131
  {#if showRightContentLoader}
@@ -110,15 +133,15 @@ function handleTopSectionClick() {
110
133
  <Loader />
111
134
  </div>
112
135
  {/if}
113
- {#if properties.rightContentText && properties.rightContentText !== ''}
114
- <span class="right-content-text">{properties.rightContentText}</span>
136
+ {#if rightContentText && rightContentText !== ''}
137
+ <span class="right-content-text">{rightContentText}</span>
115
138
  {/if}
116
139
  </div>
117
140
  </div>
118
141
  <div class="bottom-section">
119
- {#if $$slots.bottomContent && properties.useAccordion}
120
- <Accordion bind:expand>
121
- <slot name="bottomContent" />
142
+ {#if bottomContent && useAccordion}
143
+ <Accordion {expand}>
144
+ {@render bottomContent?.()}
122
145
  </Accordion>
123
146
  {/if}
124
147
  </div>
@@ -1,35 +1,4 @@
1
- import { SvelteComponent } from "svelte";
2
- import { type ListItemProperties } from './properties';
3
- declare const __propDef: {
4
- props: {
5
- properties?: ListItemProperties;
6
- showLoader?: boolean;
7
- showRightContentLoader?: boolean;
8
- expand?: boolean;
9
- preventFocus?: boolean;
10
- };
11
- events: {
12
- keydown: KeyboardEvent;
13
- leftImageClick: CustomEvent<any>;
14
- rightImageClick: CustomEvent<any>;
15
- centerTextClick: CustomEvent<any>;
16
- itemClick: CustomEvent<any>;
17
- topSectionClick: CustomEvent<any>;
18
- } & {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {
22
- leftContent: {};
23
- centerContent: {};
24
- rightContent: {};
25
- bottomContent: {};
26
- };
27
- exports?: {} | undefined;
28
- bindings?: string | undefined;
29
- };
30
- export type ListItemProps = typeof __propDef.props;
31
- export type ListItemEvents = typeof __propDef.events;
32
- export type ListItemSlots = typeof __propDef.slots;
33
- export default class ListItem extends SvelteComponent<ListItemProps, ListItemEvents, ListItemSlots> {
34
- }
35
- export {};
1
+ import type { ListItemProperties } from './properties';
2
+ declare const ListItem: import("svelte").Component<ListItemProperties, {}, "expand">;
3
+ type ListItem = ReturnType<typeof ListItem>;
4
+ export default ListItem;
@@ -1,14 +1,28 @@
1
+ import type { Snippet } from 'svelte';
1
2
  export type ListItemProperties = {
2
- leftImageUrl: string | null;
3
- leftImageFallbackUrl: string | null;
4
- rightImageUrl: string | null;
5
- label: string | null;
6
- useAccordion: boolean;
7
- rightContentText: string | null;
3
+ leftImageUrl?: string | null;
4
+ leftImageFallbackUrl?: string | null;
5
+ rightImageUrl?: string | null;
6
+ label?: string | null;
7
+ useAccordion?: boolean;
8
+ rightContentText?: string | null;
8
9
  testId?: string;
9
10
  topSectionTestId?: string;
10
11
  rightImageTestId?: string;
11
12
  leftImageTestId?: string;
12
13
  centerTextTestId?: string;
14
+ showLoader?: boolean;
15
+ showRightContentLoader?: boolean;
16
+ expand?: boolean;
17
+ preventFocus?: boolean;
18
+ leftContent?: Snippet;
19
+ centerContent?: Snippet;
20
+ rightContent?: Snippet;
21
+ bottomContent?: Snippet;
22
+ onleftImageClick?: (event: MouseEvent) => void;
23
+ onrightImageClick?: (event: MouseEvent) => void;
24
+ oncenterTextClick?: (event: MouseEvent) => void;
25
+ onitemClick?: (event: MouseEvent) => void;
26
+ ontopSectionClick?: (event: MouseEvent) => void;
27
+ onkeydown?: (event: KeyboardEvent) => void;
13
28
  };
14
- export declare const defaultListItemProperties: ListItemProperties;
@@ -1,8 +1 @@
1
- export const defaultListItemProperties = {
2
- leftImageUrl: null,
3
- leftImageFallbackUrl: null,
4
- rightImageUrl: null,
5
- label: null,
6
- useAccordion: false,
7
- rightContentText: null
8
- };
1
+ export {};
@@ -1,7 +1,4 @@
1
- <script context="module">export const prerender = true;
2
- </script>
3
-
4
- <div class="loader" />
1
+ <div class="loader"></div>
5
2
 
6
3
  <style>
7
4
  .loader {
@@ -1,17 +1,26 @@
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
- exports?: {} | undefined;
10
- bindings?: string | undefined;
1
+ export default Loader;
2
+ type Loader = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
11
8
  };
12
- export type LoaderProps = typeof __propDef.props;
13
- export type LoaderEvents = typeof __propDef.events;
14
- export type LoaderSlots = typeof __propDef.slots;
15
- export default class Loader extends SvelteComponent<LoaderProps, LoaderEvents, LoaderSlots> {
9
+ declare const Loader: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
15
+ new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
16
+ $$bindings?: Bindings;
17
+ } & Exports;
18
+ (internal: unknown, props: {
19
+ $$events?: Events;
20
+ $$slots?: Slots;
21
+ }): Exports & {
22
+ $set?: any;
23
+ $on?: any;
24
+ };
25
+ z_$$bindings?: Bindings;
16
26
  }
17
- export {};