@juspay/svelte-ui-components 4.54.0 → 4.54.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.
@@ -134,6 +134,14 @@
134
134
  transform: rotate(90deg);
135
135
  }
136
136
 
137
+ /* The rotate still happens. Only the 120ms slide is removed, so a reduced-motion
138
+ user gets the open or closed chevron immediately instead of watching it turn. */
139
+ @media (prefers-reduced-motion: reduce) {
140
+ .chevron {
141
+ transition: none;
142
+ }
143
+ }
144
+
137
145
  .counts {
138
146
  display: flex;
139
147
  gap: var(--diff-small-gap, 8px);
@@ -18,6 +18,7 @@
18
18
  import { truncateToWidth } from '../_chart/labels';
19
19
  import {
20
20
  DEFAULT_CHART_CORNER_RADIUS,
21
+ CHART_LABEL_PLATE_PADDING,
21
22
  DEFAULT_CHART_MAX_HEIGHT,
22
23
  type TooltipAnchor
23
24
  } from '../_chart/types';
@@ -369,8 +370,10 @@
369
370
  measureText(truncateColumnLabel(label), colLabelFont).width,
370
371
  fontMetrics?.columnWidths[columnIndex] ?? 0
371
372
  );
372
- const canvasLeft = -(marginX + firstColumnLabelGutter) + 2;
373
- const canvasRight = plotWidth + lastColumnLabelGutter + marginX - 2;
373
+ // Inset by the plate padding: a header clamped any closer paints its plate
374
+ // outside the SVG, where it is clipped.
375
+ const canvasLeft = -(marginX + firstColumnLabelGutter) + CHART_LABEL_PLATE_PADDING;
376
+ const canvasRight = plotWidth + lastColumnLabelGutter + marginX - CHART_LABEL_PLATE_PADDING;
374
377
  const min = canvasLeft + textWidth / 2;
375
378
  const max = canvasRight - textWidth / 2;
376
379
  // Text wider than the whole canvas keeps its centre; the colWidth-based
@@ -1,10 +1,11 @@
1
1
  <script lang="ts">
2
2
  import { onMount, type Snippet } from 'svelte';
3
+ import { CHART_LABEL_PLATE_PADDING } from './types';
3
4
 
4
5
  let { children }: { children: Snippet } = $props();
5
6
  let group: SVGGElement | null = $state(null);
6
7
  let bounds: { x: number; y: number; width: number; height: number } | null = $state(null);
7
- const PADDING = 3;
8
+ const PADDING = CHART_LABEL_PLATE_PADDING;
8
9
 
9
10
  onMount(() => {
10
11
  const text = group?.querySelector('text');
@@ -18,6 +18,12 @@ export declare const DEFAULT_CHART_CORNER_RADIUS = 4;
18
18
  * an explicit `maxHeight` to override it.
19
19
  */
20
20
  export declare const DEFAULT_CHART_MAX_HEIGHT = 420;
21
+ /**
22
+ * Padding (px) a label plate draws around its text's bounding box. A label that
23
+ * is clamped to a canvas edge must stay at least this far inside it, otherwise
24
+ * its plate paints outside the SVG and is clipped there.
25
+ */
26
+ export declare const CHART_LABEL_PLATE_PADDING = 3;
21
27
  export type Margin = {
22
28
  top: number;
23
29
  right: number;
@@ -17,3 +17,9 @@ export const DEFAULT_CHART_CORNER_RADIUS = 4;
17
17
  * an explicit `maxHeight` to override it.
18
18
  */
19
19
  export const DEFAULT_CHART_MAX_HEIGHT = 420;
20
+ /**
21
+ * Padding (px) a label plate draws around its text's bounding box. A label that
22
+ * is clamped to a canvas edge must stay at least this far inside it, otherwise
23
+ * its plate paints outside the SVG and is clipped there.
24
+ */
25
+ export const CHART_LABEL_PLATE_PADDING = 3;
package/dist/utils.js CHANGED
@@ -386,8 +386,14 @@ function scrollLocksFor(container) {
386
386
  locks = new WeakMap();
387
387
  Object.defineProperty(owner, scrollLocksKey, { value: locks });
388
388
  }
389
- // The same real owner can be adopted into another document while held.
390
- Object.defineProperty(activeOwner, activeScrollLocksKey, { value: locks, configurable: true });
389
+ // The same real owner can be adopted into another document while held. A sealed or
390
+ // non-extensible owner cannot carry the pointer, so it keeps only the document registry.
391
+ try {
392
+ Object.defineProperty(activeOwner, activeScrollLocksKey, { value: locks, configurable: true });
393
+ }
394
+ catch {
395
+ // Locking still works; adoption of such an owner while held is not tracked.
396
+ }
391
397
  return locks;
392
398
  }
393
399
  const bodyScrollReleases = [];
@@ -415,9 +421,15 @@ export function acquireScrollLock(container = typeof document === 'undefined' ?
415
421
  ]);
416
422
  }
417
423
  }
418
- lock = { count: 0, overflow };
424
+ lock = {
425
+ count: 0,
426
+ overflow,
427
+ originalCssText: container.style.cssText,
428
+ lockedCssText: ''
429
+ };
419
430
  scrollLocks.set(container, lock);
420
431
  container.style.setProperty('overflow', 'hidden', 'important');
432
+ lock.lockedCssText = container.style.cssText;
421
433
  }
422
434
  lock.count += 1;
423
435
  const heldLock = lock;
@@ -429,11 +441,18 @@ export function acquireScrollLock(container = typeof document === 'undefined' ?
429
441
  released = true;
430
442
  heldLock.count -= 1;
431
443
  if (heldLock.count === 0) {
432
- container.style.removeProperty('overflow');
433
- container.style.removeProperty('overflow-x');
434
- container.style.removeProperty('overflow-y');
435
- for (const [name, value, priority] of heldLock.overflow) {
436
- container.style.setProperty(name, value, priority);
444
+ if (container.style.cssText === heldLock.lockedCssText) {
445
+ // Nothing else wrote to the inline style while held: put it back verbatim, which keeps the
446
+ // declaration order that removing and re-adding the overflow longhands would change.
447
+ container.style.cssText = heldLock.originalCssText;
448
+ }
449
+ else {
450
+ container.style.removeProperty('overflow');
451
+ container.style.removeProperty('overflow-x');
452
+ container.style.removeProperty('overflow-y');
453
+ for (const [name, value, priority] of heldLock.overflow) {
454
+ container.style.setProperty(name, value, priority);
455
+ }
437
456
  }
438
457
  scrollLocks.delete(container);
439
458
  Reflect.deleteProperty(container, activeScrollLocksKey);
@@ -444,7 +463,15 @@ export function acquireScrollLock(container = typeof document === 'undefined' ?
444
463
  export function resolveScrollContainer(node, container) {
445
464
  const resolved = typeof container === 'function' ? container() : container;
446
465
  if (typeof resolved === 'object') {
447
- return resolved !== null && resolved.nodeType === 1 && typeof resolved.style === 'object'
466
+ // A custom-element Object property can be a JSON lookalike with nodeType 1
467
+ // and a plain style object. acquireScrollLock calls style.setProperty, so
468
+ // that lookalike must resolve to null instead of throwing.
469
+ return resolved !== null &&
470
+ resolved.nodeType === 1 &&
471
+ typeof resolved.getRootNode === 'function' &&
472
+ typeof resolved.style === 'object' &&
473
+ resolved.style !== null &&
474
+ typeof resolved.style.setProperty === 'function'
448
475
  ? resolved
449
476
  : null;
450
477
  }
package/dist-wc/index.js CHANGED
@@ -7078,10 +7078,14 @@ function scrollLocksFor(e) {
7078
7078
  let t = e;
7079
7079
  if (t[activeScrollLocksKey]) return t[activeScrollLocksKey];
7080
7080
  let n = e.ownerDocument, i = n[scrollLocksKey];
7081
- return i || (i = /* @__PURE__ */ new WeakMap(), Object.defineProperty(n, scrollLocksKey, { value: i })), Object.defineProperty(t, activeScrollLocksKey, {
7082
- value: i,
7083
- configurable: !0
7084
- }), i;
7081
+ i || (i = /* @__PURE__ */ new WeakMap(), Object.defineProperty(n, scrollLocksKey, { value: i }));
7082
+ try {
7083
+ Object.defineProperty(t, activeScrollLocksKey, {
7084
+ value: i,
7085
+ configurable: !0
7086
+ });
7087
+ } catch {}
7088
+ return i;
7085
7089
  }
7086
7090
  var bodyScrollReleases = [];
7087
7091
  function acquireScrollLock(e = typeof document > "u" ? null : document.body) {
@@ -7099,22 +7103,27 @@ function acquireScrollLock(e = typeof document > "u" ? null : document.body) {
7099
7103
  }
7100
7104
  n = {
7101
7105
  count: 0,
7102
- overflow: i
7103
- }, t.set(e, n), e.style.setProperty("overflow", "hidden", "important");
7106
+ overflow: i,
7107
+ originalCssText: e.style.cssText,
7108
+ lockedCssText: ""
7109
+ }, t.set(e, n), e.style.setProperty("overflow", "hidden", "important"), n.lockedCssText = e.style.cssText;
7104
7110
  }
7105
7111
  n.count += 1;
7106
7112
  let i = n, a = !1;
7107
7113
  return () => {
7108
7114
  if (!a && (a = !0, --i.count, i.count === 0)) {
7109
- e.style.removeProperty("overflow"), e.style.removeProperty("overflow-x"), e.style.removeProperty("overflow-y");
7110
- for (let [t, n, a] of i.overflow) e.style.setProperty(t, n, a);
7115
+ if (e.style.cssText === i.lockedCssText) e.style.cssText = i.originalCssText;
7116
+ else {
7117
+ e.style.removeProperty("overflow"), e.style.removeProperty("overflow-x"), e.style.removeProperty("overflow-y");
7118
+ for (let [t, n, a] of i.overflow) e.style.setProperty(t, n, a);
7119
+ }
7111
7120
  t.delete(e), Reflect.deleteProperty(e, activeScrollLocksKey);
7112
7121
  }
7113
7122
  };
7114
7123
  }
7115
7124
  function resolveScrollContainer(e, t) {
7116
7125
  let n = typeof t == "function" ? t() : t;
7117
- return typeof n == "object" ? n !== null && n.nodeType === 1 && typeof n.style == "object" ? n : null : t === void 0 ? e?.ownerDocument.body ?? (typeof document > "u" ? null : document.body) : null;
7126
+ return typeof n == "object" ? n !== null && n.nodeType === 1 && typeof n.getRootNode == "function" && typeof n.style == "object" && n.style !== null && typeof n.style.setProperty == "function" ? n : null : t === void 0 ? e?.ownerDocument.body ?? (typeof document > "u" ? null : document.body) : null;
7118
7127
  }
7119
7128
  function lockBodyScroll() {
7120
7129
  typeof document < "u" && bodyScrollReleases.push(acquireScrollLock(document.body));
@@ -12468,129 +12477,152 @@ var rest_excludes$80 = new Set([
12468
12477
  };
12469
12478
  function Input_wc(e, t) {
12470
12479
  push(t, !0), append_styles$1(e, $$css$160);
12471
- let n = prop(t, "inputAriaLabel", 7), i = prop(t, "inputId", 7), a = prop(t, "inputAutofocus", 7), o = /* @__PURE__ */ rest_props(t, rest_excludes$80), s = t.$$host, c = /* @__PURE__ */ user_derived(() => dispatchEvents(s, o)), l = (e) => {
12480
+ let n = (e) => {
12481
+ var n = comment(), i = first_child(n), a = (e) => {
12482
+ var n = comment();
12483
+ snippet(first_child(n), () => t.labelSuffix), append(e, n);
12484
+ }, o = (e) => {
12485
+ var n = comment();
12486
+ slot(first_child(n), t, "label-suffix", {}, null), append(e, n);
12487
+ };
12488
+ if_block(i, (e) => {
12489
+ t.labelSuffix ? e(a) : e(o, -1);
12490
+ }), append(e, n);
12491
+ }, i = prop(t, "inputAriaLabel", 7), a = prop(t, "inputId", 7), o = prop(t, "inputAutofocus", 7), s = /* @__PURE__ */ rest_props(t, rest_excludes$80), c = t.$$host, l = /* @__PURE__ */ user_derived(() => dispatchEvents(c, s)), u = (e) => {
12472
12492
  if (e == null) return null;
12473
12493
  if (typeof e == "boolean") return e;
12474
12494
  let t = String(e).trim().toLowerCase();
12475
12495
  return t === "false" ? !1 : t === "" || t === "true" || t === "spellcheck" ? !0 : null;
12476
- }, u = t.$$host.querySelector("[slot=\"left-icon\"]") !== null, f = t.$$host.querySelector("[slot=\"right-icon\"]") !== null;
12477
- var p = {
12496
+ }, f = t.$$host.querySelector("[slot=\"left-icon\"]") !== null, p = t.$$host.querySelector("[slot=\"right-icon\"]") !== null, h = t.$$host.querySelector("[slot=\"label-suffix\"]") !== null;
12497
+ var S = {
12478
12498
  get inputAriaLabel() {
12479
- return n();
12499
+ return i();
12480
12500
  },
12481
12501
  set inputAriaLabel(e) {
12482
- n(e), flushSync();
12502
+ i(e), flushSync();
12483
12503
  },
12484
12504
  get inputId() {
12485
- return i();
12505
+ return a();
12486
12506
  },
12487
12507
  set inputId(e) {
12488
- i(e), flushSync();
12508
+ a(e), flushSync();
12489
12509
  },
12490
12510
  get inputAutofocus() {
12491
- return a();
12511
+ return o();
12492
12512
  },
12493
12513
  set inputAutofocus(e) {
12494
- a(e), flushSync();
12514
+ o(e), flushSync();
12495
12515
  }
12496
- }, h = comment(), S = first_child(h), C = (e) => {
12516
+ }, C = comment(), k = first_child(C), R = (e) => {
12497
12517
  {
12498
- let s = (e) => {
12518
+ let c = (e) => {
12499
12519
  var n = comment();
12500
12520
  slot(first_child(n), t, "left-icon", {}, null), append(e, n);
12501
- }, u = (e) => {
12521
+ }, f = (e) => {
12502
12522
  var n = comment();
12503
12523
  slot(first_child(n), t, "right-icon", {}, null), append(e, n);
12504
- }, f = /* @__PURE__ */ user_derived(() => l(t.spellcheck));
12505
- Input(e, spread_props(() => o, () => get(c), {
12524
+ }, p = /* @__PURE__ */ user_derived(() => u(t.spellcheck)), S = /* @__PURE__ */ user_derived(() => h ? n : t.labelSuffix);
12525
+ Input(e, spread_props(() => s, () => get(l), {
12506
12526
  get id() {
12507
- return i();
12527
+ return a();
12508
12528
  },
12509
12529
  get ariaLabel() {
12510
- return n();
12530
+ return i();
12511
12531
  },
12512
12532
  get autofocus() {
12513
- return a();
12533
+ return o();
12514
12534
  },
12515
12535
  get spellcheck() {
12516
- return get(f);
12536
+ return get(p);
12537
+ },
12538
+ get labelSuffix() {
12539
+ return get(S);
12517
12540
  },
12518
- leftIcon: s,
12519
- rightIcon: u,
12541
+ leftIcon: c,
12542
+ rightIcon: f,
12520
12543
  $$slots: {
12521
12544
  leftIcon: !0,
12522
12545
  rightIcon: !0
12523
12546
  }
12524
12547
  }));
12525
12548
  }
12526
- }, k = (e) => {
12549
+ }, G = (e) => {
12527
12550
  {
12528
- let s = (e) => {
12551
+ let c = (e) => {
12529
12552
  var n = comment();
12530
12553
  slot(first_child(n), t, "left-icon", {}, null), append(e, n);
12531
- }, u = /* @__PURE__ */ user_derived(() => l(t.spellcheck));
12532
- Input(e, spread_props(() => o, () => get(c), {
12554
+ }, f = /* @__PURE__ */ user_derived(() => u(t.spellcheck)), p = /* @__PURE__ */ user_derived(() => h ? n : t.labelSuffix);
12555
+ Input(e, spread_props(() => s, () => get(l), {
12533
12556
  get id() {
12534
- return i();
12557
+ return a();
12535
12558
  },
12536
12559
  get ariaLabel() {
12537
- return n();
12560
+ return i();
12538
12561
  },
12539
12562
  get autofocus() {
12540
- return a();
12563
+ return o();
12541
12564
  },
12542
12565
  get spellcheck() {
12543
- return get(u);
12566
+ return get(f);
12567
+ },
12568
+ get labelSuffix() {
12569
+ return get(p);
12544
12570
  },
12545
- leftIcon: s,
12571
+ leftIcon: c,
12546
12572
  $$slots: { leftIcon: !0 }
12547
12573
  }));
12548
12574
  }
12549
- }, R = (e) => {
12575
+ }, te = (e) => {
12550
12576
  {
12551
- let s = (e) => {
12577
+ let c = (e) => {
12552
12578
  var n = comment();
12553
12579
  slot(first_child(n), t, "right-icon", {}, null), append(e, n);
12554
- }, u = /* @__PURE__ */ user_derived(() => l(t.spellcheck));
12555
- Input(e, spread_props(() => o, () => get(c), {
12580
+ }, f = /* @__PURE__ */ user_derived(() => u(t.spellcheck)), p = /* @__PURE__ */ user_derived(() => h ? n : t.labelSuffix);
12581
+ Input(e, spread_props(() => s, () => get(l), {
12556
12582
  get id() {
12557
- return i();
12583
+ return a();
12558
12584
  },
12559
12585
  get ariaLabel() {
12560
- return n();
12586
+ return i();
12561
12587
  },
12562
12588
  get autofocus() {
12563
- return a();
12589
+ return o();
12564
12590
  },
12565
12591
  get spellcheck() {
12566
- return get(u);
12592
+ return get(f);
12593
+ },
12594
+ get labelSuffix() {
12595
+ return get(p);
12567
12596
  },
12568
- rightIcon: s,
12597
+ rightIcon: c,
12569
12598
  $$slots: { rightIcon: !0 }
12570
12599
  }));
12571
12600
  }
12572
- }, G = (e) => {
12601
+ }, ne = (e) => {
12573
12602
  {
12574
- let s = /* @__PURE__ */ user_derived(() => l(t.spellcheck));
12575
- Input(e, spread_props(() => o, () => get(c), {
12603
+ let c = /* @__PURE__ */ user_derived(() => u(t.spellcheck)), f = /* @__PURE__ */ user_derived(() => h ? n : t.labelSuffix);
12604
+ Input(e, spread_props(() => s, () => get(l), {
12576
12605
  get id() {
12577
- return i();
12606
+ return a();
12578
12607
  },
12579
12608
  get ariaLabel() {
12580
- return n();
12609
+ return i();
12581
12610
  },
12582
12611
  get autofocus() {
12583
- return a();
12612
+ return o();
12584
12613
  },
12585
12614
  get spellcheck() {
12586
- return get(s);
12615
+ return get(c);
12616
+ },
12617
+ get labelSuffix() {
12618
+ return get(f);
12587
12619
  }
12588
12620
  }));
12589
12621
  }
12590
12622
  };
12591
- return if_block(S, (e) => {
12592
- u && f ? e(C) : u ? e(k, 1) : f ? e(R, 2) : e(G, -1);
12593
- }), append(e, h), pop(p);
12623
+ return if_block(k, (e) => {
12624
+ f && p ? e(R) : f ? e(G, 1) : p ? e(te, 2) : e(ne, -1);
12625
+ }), append(e, C), pop(S);
12594
12626
  }
12595
12627
  customElements.define("sui-input", create_custom_element(Input_wc, {
12596
12628
  value: {
@@ -12765,7 +12797,11 @@ customElements.define("sui-input", create_custom_element(Input_wc, {
12765
12797
  attribute: "input-autofocus",
12766
12798
  type: "Boolean"
12767
12799
  }
12768
- }, ["left-icon", "right-icon"], [], { mode: "open" }, formAssociated({ disabled: "disable" })));
12800
+ }, [
12801
+ "label-suffix",
12802
+ "left-icon",
12803
+ "right-icon"
12804
+ ], [], { mode: "open" }, formAssociated({ disabled: "disable" })));
12769
12805
  //#endregion
12770
12806
  //#region src/lib/KeyboardInput/KeyboardInput.svelte
12771
12807
  var root$82 = /* @__PURE__ */ from_html("<span class=\"separator svelte-14lwsom\"> </span>"), root_1$76 = /* @__PURE__ */ from_html("<!> <kbd class=\"key svelte-14lwsom\"> </kbd>", 1), root_2$60 = /* @__PURE__ */ from_html("<span></span>"), $$css$159 = {
@@ -13520,9 +13556,70 @@ var rest_excludes$74 = new Set([
13520
13556
  code: "\n /* A custom element defaults to `display: inline`, which has no definite\n width for a percentage to resolve against -- so a component sizing itself\n with `width: 100%` resolved against the wrong ancestor, and layout depended\n on the consumer's surrounding markup rather than on the component. The value\n matches this component's own root element (block-level), and is a token so a\n consumer can change it without reaching inside the shadow root -- which they\n could not do, since a stylesheet cannot add a rule there. */:host {display:var(--sui-progress-display, block);}"
13521
13557
  };
13522
13558
  function Progress_wc(e, t) {
13523
- append_styles$1(e, $$css$150);
13524
- let n = /* @__PURE__ */ rest_props(t, rest_excludes$74);
13525
- Progress(e, spread_props(() => n));
13559
+ push(t, !0), append_styles$1(e, $$css$150);
13560
+ let n = (e) => {
13561
+ var n = comment(), i = first_child(n), a = (e) => {
13562
+ var n = comment();
13563
+ snippet(first_child(n), () => t.leadingLabel), append(e, n);
13564
+ }, o = (e) => {
13565
+ var n = comment();
13566
+ slot(first_child(n), t, "leading-label", {}, null), append(e, n);
13567
+ };
13568
+ if_block(i, (e) => {
13569
+ t.leadingLabel ? e(a) : e(o, -1);
13570
+ }), append(e, n);
13571
+ }, i = (e) => {
13572
+ var n = comment(), i = first_child(n), a = (e) => {
13573
+ var n = comment();
13574
+ snippet(first_child(n), () => t.headerStart), append(e, n);
13575
+ }, o = (e) => {
13576
+ var n = comment();
13577
+ slot(first_child(n), t, "header-start", {}, null), append(e, n);
13578
+ };
13579
+ if_block(i, (e) => {
13580
+ t.headerStart ? e(a) : e(o, -1);
13581
+ }), append(e, n);
13582
+ }, a = (e) => {
13583
+ var n = comment(), i = first_child(n), a = (e) => {
13584
+ var n = comment();
13585
+ snippet(first_child(n), () => t.headerEnd), append(e, n);
13586
+ }, o = (e) => {
13587
+ var n = comment();
13588
+ slot(first_child(n), t, "header-end", {}, null), append(e, n);
13589
+ };
13590
+ if_block(i, (e) => {
13591
+ t.headerEnd ? e(a) : e(o, -1);
13592
+ }), append(e, n);
13593
+ }, o = (e) => {
13594
+ var n = comment(), i = first_child(n), a = (e) => {
13595
+ var n = comment();
13596
+ snippet(first_child(n), () => t.note), append(e, n);
13597
+ }, o = (e) => {
13598
+ var n = comment();
13599
+ slot(first_child(n), t, "note", {}, null), append(e, n);
13600
+ };
13601
+ if_block(i, (e) => {
13602
+ t.note ? e(a) : e(o, -1);
13603
+ }), append(e, n);
13604
+ }, s = /* @__PURE__ */ rest_props(t, rest_excludes$74), c = t.$$host.querySelector("[slot=\"leading-label\"]") !== null, l = t.$$host.querySelector("[slot=\"header-start\"]") !== null, u = t.$$host.querySelector("[slot=\"header-end\"]") !== null, f = t.$$host.querySelector("[slot=\"note\"]") !== null;
13605
+ {
13606
+ let p = /* @__PURE__ */ user_derived(() => c ? n : t.leadingLabel), h = /* @__PURE__ */ user_derived(() => l ? i : t.headerStart), S = /* @__PURE__ */ user_derived(() => u ? a : t.headerEnd), C = /* @__PURE__ */ user_derived(() => f ? o : t.note);
13607
+ Progress(e, spread_props(() => s, {
13608
+ get leadingLabel() {
13609
+ return get(p);
13610
+ },
13611
+ get headerStart() {
13612
+ return get(h);
13613
+ },
13614
+ get headerEnd() {
13615
+ return get(S);
13616
+ },
13617
+ get note() {
13618
+ return get(C);
13619
+ }
13620
+ }));
13621
+ }
13622
+ pop();
13526
13623
  }
13527
13624
  customElements.define("sui-progress", create_custom_element(Progress_wc, {
13528
13625
  value: {
@@ -13552,7 +13649,12 @@ customElements.define("sui-progress", create_custom_element(Progress_wc, {
13552
13649
  headerStart: { type: "Object" },
13553
13650
  headerEnd: { type: "Object" },
13554
13651
  note: { type: "Object" }
13555
- }, [], [], { mode: "open" }));
13652
+ }, [
13653
+ "leading-label",
13654
+ "header-start",
13655
+ "header-end",
13656
+ "note"
13657
+ ], [], { mode: "open" }));
13556
13658
  //#endregion
13557
13659
  //#region src/lib/Radio/Radio.svelte
13558
13660
  var root$78 = /* @__PURE__ */ from_html("<span> </span>"), root_1$72 = /* @__PURE__ */ from_html("<div role=\"alert\" class=\"field-error svelte-14bh706\"> </div>"), root_2$57 = /* @__PURE__ */ from_html("<div class=\"field-info svelte-14bh706\"> </div>"), root_3$51 = /* @__PURE__ */ from_html("<label><input type=\"radio\" class=\"radio-input svelte-14bh706\"/> <span><span></span></span> <!></label> <!> <!>", 1), $$css$149 = {
@@ -38982,7 +39084,7 @@ function SankeyChart(e, t) {
38982
39084
  }
38983
39085
  return e;
38984
39086
  }), Gt = /* @__PURE__ */ user_derived(() => get(Bt).nodes.length > 0 ? Math.max(...get(Bt).nodes.map((e) => e.column)) + 1 : 0), qt = /* @__PURE__ */ user_derived(() => get(Gt) <= 1 ? get(Rt) : (get(Rt) - a()) / (get(Gt) - 1)), Zt = (e) => truncateToWidth(e, Math.max(0, get(qt) - 6), get(Mt)), Qt = (e, t) => {
38985
- let n = e * get(qt) + a() / 2, i = Math.max(measureText(Zt(t), get(Mt)).width, get(kt)?.columnWidths[e] ?? 0), o = -(ut() + get(Lt)) + 2, s = get(Rt) + get(It) + ut() - 2, c = o + i / 2, l = s - i / 2;
39087
+ let n = e * get(qt) + a() / 2, i = Math.max(measureText(Zt(t), get(Mt)).width, get(kt)?.columnWidths[e] ?? 0), o = -(ut() + get(Lt)) + 3, s = get(Rt) + get(It) + ut() - 3, c = o + i / 2, l = s - i / 2;
38986
39088
  return l < c ? n : Math.min(Math.max(n, c), l);
38987
39089
  }, $t = (e) => e === 0 && ct() === "left" || e === get(Gt) - 1 && e !== 0 && lt() === "left", en = (e, t) => truncateToWidth(e, t === 0 && ct() === "left" ? Math.max(0, get(Lt) + ut() - 10 - at()) : t === get(Gt) - 1 && lt() === "right" ? Math.max(0, get(It) + ut() - 10 - at()) : Math.max(0, get(qt) - a() - 20 - at()), get(jt)), tn = /* @__PURE__ */ user_derived(() => {
38988
39090
  let e = new SvelteMap();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "4.54.0",
3
+ "version": "4.54.2",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",