@juspay/svelte-ui-components 2.83.0 → 2.84.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.
@@ -37,7 +37,19 @@
37
37
 
38
38
  <!-- svelte-ignore a11y_click_events_have_key_events -->
39
39
  <!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
40
- <label class="container {classes ?? ''}" class:disabled onclick={handleClick} data-pw={testId}>
40
+ <!-- preventDefault stops the label's default activation from firing a synthesized
41
+ click that re-toggles the native input AFTER handleClick has flipped the state,
42
+ which left input.checked out of sync with the rendered box (and with
43
+ :checked-based selectors/testing probes). State has one owner: handleClick. -->
44
+ <label
45
+ class="container {classes ?? ''}"
46
+ class:disabled
47
+ onclick={(e: MouseEvent) => {
48
+ e.preventDefault();
49
+ handleClick();
50
+ }}
51
+ data-pw={testId}
52
+ >
41
53
  <input
42
54
  type="checkbox"
43
55
  class="native-checkbox"
@@ -72,6 +72,15 @@
72
72
  padding: var(--toolbar-content-padding, 0px);
73
73
  justify-content: var(--toolbar-justify-content, normal);
74
74
  visibility: var(--toolbar-content-visibility, visible);
75
+
76
+ /* Content-row geometry: lets a fixed-height toolbar keep its row vertically
77
+ centered (height 100%) and clamp/center the row on wide viewports —
78
+ previously only reachable by piercing the component's internal DOM. All
79
+ defaults reproduce the previous rendering exactly. */
80
+ width: var(--toolbar-content-width, auto);
81
+ height: var(--toolbar-content-height, auto);
82
+ max-width: var(--toolbar-content-max-width, none);
83
+ margin: var(--toolbar-content-margin, 0);
75
84
  }
76
85
 
77
86
  .additional-content {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "2.83.0",
3
+ "version": "2.84.1",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",