@juspay/svelte-ui-components 1.22.0 → 1.23.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.
@@ -3,10 +3,14 @@ export let expand = false;
3
3
  let maxHeight = 0;
4
4
  let accordionRef;
5
5
  function updateMaxHeight() {
6
- if (expand) {
7
- accordionRef.style.maxHeight = `${maxHeight}px`;
8
- } else {
9
- accordionRef.style.maxHeight = "0";
6
+ try {
7
+ if (expand) {
8
+ accordionRef.style.maxHeight = `${maxHeight}px`;
9
+ } else {
10
+ accordionRef.style.maxHeight = "0";
11
+ }
12
+ } catch (e) {
13
+ console.error("Error while updating style of accordian", e);
10
14
  }
11
15
  }
12
16
  afterUpdate(updateMaxHeight);
@@ -75,10 +75,12 @@ function handleButtonClick() {
75
75
 
76
76
  .button-icon {
77
77
  order: var(--button-icon-order, 2);
78
+ display: var(--button-icon-display);
78
79
  }
79
80
 
80
81
  .button-text {
81
82
  order: var(--button-text-order, 3);
83
+ display: var(--button-text-display);
82
84
  }
83
85
 
84
86
  button:hover {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run package",