@juspay/svelte-ui-components 1.26.0 → 1.27.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.
@@ -15,6 +15,11 @@
15
15
  <div>{properties.text}</div>
16
16
  {/if}
17
17
  </div>
18
+ {#if $$slots.rightContent}
19
+ <div class="right-content">
20
+ <slot name="rightContent" />
21
+ </div>
22
+ {/if}
18
23
  </div>
19
24
  {/if}
20
25
 
@@ -42,6 +47,8 @@
42
47
  }
43
48
 
44
49
  .banner-text {
50
+ flex: var(--banner-text-flex);
51
+ order: var(--banner-text-order);
45
52
  size: var(--banner-text-size, 14px);
46
53
  font-family: var(--banner-font-family, Euclid Circular A);
47
54
  font-style: var(--banner-font-style, normal);
@@ -58,4 +65,9 @@
58
65
  .link-text {
59
66
  color: var(--banner-linktext-color, #0099ff);
60
67
  }
68
+
69
+ .right-content {
70
+ order: var(--banner-right-content-order);
71
+ display: var(--banner-right-content-display, flex);
72
+ }
61
73
  </style>
@@ -10,7 +10,9 @@ declare const __propDef: {
10
10
  } & {
11
11
  [evt: string]: CustomEvent<any>;
12
12
  };
13
- slots: {};
13
+ slots: {
14
+ rightContent: {};
15
+ };
14
16
  exports?: {} | undefined;
15
17
  bindings?: string | undefined;
16
18
  };
@@ -1,8 +1,8 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import { type IconProperties } from './properties';
2
+ import { type IconStackProperties } from './properties';
3
3
  declare const __propDef: {
4
4
  props: {
5
- icons: IconProperties[];
5
+ icons: IconStackProperties[];
6
6
  };
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
@@ -1,4 +1,4 @@
1
- export type IconProperties = {
1
+ export type IconStackProperties = {
2
2
  type: "image" | "text";
3
3
  content: string;
4
4
  };
@@ -242,6 +242,7 @@ onDestroy(() => {
242
242
  }
243
243
 
244
244
  .select:hover {
245
+ color: var(--select-hover-color, #000);
245
246
  background-color: var(--select-hover-bgcolor, #ffffff);
246
247
  }
247
248
 
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export { default as Stepper } from './Stepper/Stepper.svelte';
22
22
  export { default as Step } from './Stepper/Step.svelte';
23
23
  export { default as Toast } from './Toast/Toast.svelte';
24
24
  export { default as GridItem } from './GridItem/GridItem.svelte';
25
+ export { default as IconStack } from './IconStack/IconStack.svelte';
25
26
  export type { ButtonProperties } from './Button/properties';
26
27
  export type { ModalProperties, ModalAlign, ModalSize } from './Modal/properties';
27
28
  export type { InputProperties } from './Input/properties';
@@ -43,6 +44,7 @@ export type { BannerProperties } from './Banner/properties';
43
44
  export type { TableProperties } from './Table/properties';
44
45
  export type { StepperProperties } from './Stepper/properties';
45
46
  export type { ToastProperties } from './Toast/properties';
47
+ export type { IconStackProperties } from './IconStack/properties';
46
48
  export { defaultIconProperties } from './Icon/properties';
47
49
  export { defaultButtonProperties } from './Button/properties';
48
50
  export { defaultModalProperties } from './Modal/properties';
package/dist/index.js CHANGED
@@ -22,6 +22,7 @@ export { default as Stepper } from './Stepper/Stepper.svelte';
22
22
  export { default as Step } from './Stepper/Step.svelte';
23
23
  export { default as Toast } from './Toast/Toast.svelte';
24
24
  export { default as GridItem } from './GridItem/GridItem.svelte';
25
+ export { default as IconStack } from './IconStack/IconStack.svelte';
25
26
  export { defaultIconProperties } from './Icon/properties';
26
27
  export { defaultButtonProperties } from './Button/properties';
27
28
  export { defaultModalProperties } from './Modal/properties';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run package",