@juspay/svelte-ui-components 4.31.0 → 4.31.1

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 (2) hide show
  1. package/dist-wc/index.js +59 -50
  2. package/package.json +1 -1
package/dist-wc/index.js CHANGED
@@ -33570,60 +33570,69 @@ var rest_excludes$35 = new Set([
33570
33570
  };
33571
33571
  function StatCard_wc(e, t) {
33572
33572
  push(t, !0), append_styles$1(e, $$css$73);
33573
- let n = (e) => {
33574
- var n = comment(), i = first_child(n), a = (e) => {
33575
- AnimatedNumber(e, {
33576
- get value() {
33577
- return t.value;
33578
- },
33579
- get animateOnMount() {
33580
- return t.animateOnMount;
33581
- }
33582
- });
33583
- }, o = (e) => {
33584
- var n = text();
33585
- template_effect(() => set_text(n, t.value)), append(e, n);
33586
- };
33587
- if_block(i, (e) => {
33588
- get(c) ? e(a) : e(o, -1);
33589
- }), append(e, n);
33590
- }, i = prop(t, "statCardTitle", 7), a = /* @__PURE__ */ rest_props(t, rest_excludes$35), o = t.$$host, s = /* @__PURE__ */ user_derived(() => dispatchEvents(o, a)), c = /* @__PURE__ */ user_derived(() => isAnimatableMetric(String(t.value ?? "")) && (t.animatePrimary ? t.primary === void 0 || t.primary === "auto" || t.primary === "value" : !!t.animateValue));
33591
- return StatCard(e, spread_props(() => a, () => get(s), {
33592
- get title() {
33593
- return i();
33594
- },
33595
- headerRight: (e) => {
33596
- var n = comment();
33597
- slot(first_child(n), t, "header-right", {}, null), append(e, n);
33598
- },
33599
- footer: (e) => {
33600
- var n = comment();
33601
- slot(first_child(n), t, "footer", {}, null), append(e, n);
33602
- },
33603
- valueSnippet: (e) => {
33604
- var i = comment();
33605
- slot(first_child(i), t, "value-snippet", {}, (e) => {
33606
- n(e);
33607
- }), append(e, i);
33608
- },
33609
- children: (e, n) => {
33610
- var i = comment();
33611
- slot(first_child(i), t, "default", {}, null), append(e, i);
33612
- },
33613
- $$slots: {
33614
- headerRight: !0,
33615
- footer: !0,
33616
- valueSnippet: !0,
33617
- default: !0
33618
- }
33619
- })), pop({
33573
+ let n = prop(t, "statCardTitle", 7), i = /* @__PURE__ */ rest_props(t, rest_excludes$35), a = t.$$host, o = /* @__PURE__ */ user_derived(() => dispatchEvents(a, i)), s = t.$$host.querySelector("[slot=\"value-snippet\"]") !== null;
33574
+ var c = {
33620
33575
  get statCardTitle() {
33621
- return i();
33576
+ return n();
33622
33577
  },
33623
33578
  set statCardTitle(e) {
33624
- i(e), flushSync();
33579
+ n(e), flushSync();
33625
33580
  }
33626
- });
33581
+ }, l = comment(), u = first_child(l), f = (e) => {
33582
+ StatCard(e, spread_props(() => i, () => get(o), {
33583
+ get title() {
33584
+ return n();
33585
+ },
33586
+ headerRight: (e) => {
33587
+ var n = comment();
33588
+ slot(first_child(n), t, "header-right", {}, null), append(e, n);
33589
+ },
33590
+ footer: (e) => {
33591
+ var n = comment();
33592
+ slot(first_child(n), t, "footer", {}, null), append(e, n);
33593
+ },
33594
+ valueSnippet: (e) => {
33595
+ var n = comment();
33596
+ slot(first_child(n), t, "value-snippet", {}, null), append(e, n);
33597
+ },
33598
+ children: (e, n) => {
33599
+ var i = comment();
33600
+ slot(first_child(i), t, "default", {}, null), append(e, i);
33601
+ },
33602
+ $$slots: {
33603
+ headerRight: !0,
33604
+ footer: !0,
33605
+ valueSnippet: !0,
33606
+ default: !0
33607
+ }
33608
+ }));
33609
+ }, p = (e) => {
33610
+ StatCard(e, spread_props(() => i, () => get(o), {
33611
+ get title() {
33612
+ return n();
33613
+ },
33614
+ headerRight: (e) => {
33615
+ var n = comment();
33616
+ slot(first_child(n), t, "header-right", {}, null), append(e, n);
33617
+ },
33618
+ footer: (e) => {
33619
+ var n = comment();
33620
+ slot(first_child(n), t, "footer", {}, null), append(e, n);
33621
+ },
33622
+ children: (e, n) => {
33623
+ var i = comment();
33624
+ slot(first_child(i), t, "default", {}, null), append(e, i);
33625
+ },
33626
+ $$slots: {
33627
+ headerRight: !0,
33628
+ footer: !0,
33629
+ default: !0
33630
+ }
33631
+ }));
33632
+ };
33633
+ return if_block(u, (e) => {
33634
+ s ? e(f) : e(p, -1);
33635
+ }), append(e, l), pop(c);
33627
33636
  }
33628
33637
  customElements.define("sui-stat-card", create_custom_element(StatCard_wc, {
33629
33638
  statCardTitle: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "4.31.0",
3
+ "version": "4.31.1",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",