@juspay/svelte-ui-components 1.26.1 → 1.28.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
  };
@@ -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
 
@@ -43,12 +43,12 @@ function handleBackClick() {
43
43
  display: flex;
44
44
  flex-direction: column;
45
45
  padding: var(--toolbar-padding, 0px);
46
- height: fit-content;
47
- width: 100vw;
46
+ height: var(--toolbar-height, fit-content);
47
+ width: var(--toolbar-width, 100vw);
48
48
  position: var(--toolbar-position, fixed);
49
- top: 0;
50
- left: 0;
51
- right: 0;
49
+ top: var(--toolbar-top, 0);
50
+ left: var(--toolbar-left, 0);
51
+ right: var(--toolbar-right, 0);
52
52
  background: var(--toolbar-background, #ffffff);
53
53
  box-shadow: var(--toolbar-box-shadow, 0px 2px 12px #55687c1a);
54
54
  z-index: var(--toolbar-z-index, 10);
@@ -57,8 +57,8 @@ function handleBackClick() {
57
57
  .content {
58
58
  display: flex;
59
59
  flex-direction: row;
60
- padding: var(--toolbar-content-padding, 0px);
61
60
  align-items: center;
61
+ padding: var(--toolbar-content-padding, 0px);
62
62
  justify-content: var(--toolbar-justify-content, normal);
63
63
  visibility: var(--toolbar-content-visibility, visible);
64
64
  }
@@ -66,8 +66,8 @@ function handleBackClick() {
66
66
  .additional-content {
67
67
  display: flex;
68
68
  flex-direction: row;
69
- padding: var(--toolbar-additional-content-padding, 0px);
70
69
  align-items: center;
70
+ padding: var(--toolbar-additional-content-padding, 0px);
71
71
  height: var(--toolbar-additional-content-height, fit-content);
72
72
  justify-content: var(--toolbar-justify-additional-content, normal);
73
73
  visibility: var(--toolbar-additional-content-visibility, visible);
@@ -93,8 +93,4 @@ function handleBackClick() {
93
93
  .text {
94
94
  font-size: 18px;
95
95
  }
96
-
97
- .right-content {
98
- margin-left: auto;
99
- }
100
96
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "1.26.1",
3
+ "version": "1.28.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run package",