@streamscloud/kit 0.94.5 → 0.94.7

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.
@@ -24,6 +24,8 @@ export {};
24
24
  Container surface with border, panel background, and rounded corners. Optional `header` and `footer`
25
25
  snippets render in chrome with their own dividers. Pass `on.click` to switch to button-mode — the
26
26
  whole card becomes a clickable target with hover and focus state, no `interactive` flag needed.
27
+ When a parent stretches the card (a grid row, a flex row), the body takes the free height, so body
28
+ content with `block-size: 100%` can pin its own bottom row.
27
29
 
28
30
  ### CSS Custom Properties
29
31
  | Property | Description | Default |
@@ -59,7 +61,8 @@ whole card becomes a clickable target with hover and focus state, no `interactiv
59
61
  --_card--header-padding: var(--sc-kit--card--header--padding, var(--sc-kit--space--3) var(--_card--chrome-padding-inline));
60
62
  --_card--body-padding: var(--sc-kit--card--body--padding, var(--_card--body-padding-default));
61
63
  --_card--footer-padding: var(--sc-kit--card--footer--padding, var(--sc-kit--space--3) var(--_card--chrome-padding-inline));
62
- display: block;
64
+ display: flex;
65
+ flex-direction: column;
63
66
  width: 100%;
64
67
  box-sizing: border-box;
65
68
  background: var(--_card--background);
@@ -89,6 +92,8 @@ whole card becomes a clickable target with hover and focus state, no `interactiv
89
92
  --_card--chrome-padding-inline: var(--sc-kit--space--6);
90
93
  }
91
94
  .card__body {
95
+ flex: 1 1 0%;
96
+ min-height: 0;
92
97
  padding: var(--_card--body-padding);
93
98
  }
94
99
  .card__header {
@@ -21,6 +21,8 @@ type Props = {
21
21
  * Container surface with border, panel background, and rounded corners. Optional `header` and `footer`
22
22
  * snippets render in chrome with their own dividers. Pass `on.click` to switch to button-mode — the
23
23
  * whole card becomes a clickable target with hover and focus state, no `interactive` flag needed.
24
+ * When a parent stretches the card (a grid row, a flex row), the body takes the free height, so body
25
+ * content with `block-size: 100%` can pin its own bottom row.
24
26
  *
25
27
  * ### CSS Custom Properties
26
28
  * | Property | Description | Default |
@@ -32,7 +32,7 @@ const handleActionsClosed = () => {
32
32
  <span class="nav-menu-item__badge">{badgeText}</span>
33
33
  {/if}
34
34
  </span>
35
- <span class="nav-menu-item__label">{label}</span>
35
+ <span class="nav-menu-item__label" class:nav-menu-item__label--active-plain={activePlain}>{label}</span>
36
36
  {/snippet}
37
37
 
38
38
  <div
@@ -44,11 +44,24 @@ const handleActionsClosed = () => {
44
44
  class:nav-menu-item--with-actions={actionsShown}
45
45
  class:nav-menu-item--actions-opened={actionsOpened}>
46
46
  {#if href && !disabled}
47
- <a class="nav-menu-item__control" href={href} target={target} rel={rel} aria-current={active ? 'page' : undefined} onclick={handleClick}>
47
+ <a
48
+ class="nav-menu-item__control"
49
+ class:nav-menu-item__control--with-actions={actionsShown}
50
+ href={href}
51
+ target={target}
52
+ rel={rel}
53
+ aria-current={active ? 'page' : undefined}
54
+ onclick={handleClick}>
48
55
  {@render content()}
49
56
  </a>
50
57
  {:else}
51
- <button type="button" class="nav-menu-item__control" disabled={disabled} aria-current={active ? 'page' : undefined} onclick={handleClick}>
58
+ <button
59
+ type="button"
60
+ class="nav-menu-item__control"
61
+ class:nav-menu-item__control--with-actions={actionsShown}
62
+ disabled={disabled}
63
+ aria-current={active ? 'page' : undefined}
64
+ onclick={handleClick}>
52
65
  {@render content()}
53
66
  </button>
54
67
  {/if}
@@ -127,9 +140,6 @@ signal and hover keeps working on the active row; `'filled'` plates it and suppr
127
140
  .nav-menu-item--active-filled {
128
141
  background: var(--_nav-menu-item--background-active);
129
142
  }
130
- .nav-menu-item--active-plain {
131
- font-weight: var(--_nav-menu-item--font-weight-active);
132
- }
133
143
  .nav-menu-item--disabled {
134
144
  color: var(--_nav-menu-item--color-disabled);
135
145
  }
@@ -169,7 +179,7 @@ signal and hover keeps working on the active row; `'filled'` plates it and suppr
169
179
  outline: 2px solid var(--sc-kit--color--border--focus);
170
180
  outline-offset: -2px;
171
181
  }
172
- .nav-menu-item--with-actions > .nav-menu-item__control {
182
+ .nav-menu-item__control--with-actions {
173
183
  padding-right: calc(var(--_nav-menu-item--actions-size) + var(--_nav-menu-item--actions-inset) * 2);
174
184
  }
175
185
 
@@ -213,6 +223,9 @@ signal and hover keeps working on the active row; `'filled'` plates it and suppr
213
223
  white-space: nowrap;
214
224
  overflow: hidden;
215
225
  }
226
+ .nav-menu-item__label--active-plain {
227
+ font-weight: var(--_nav-menu-item--font-weight-active);
228
+ }
216
229
 
217
230
  .nav-menu-item__actions {
218
231
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.94.5",
3
+ "version": "0.94.7",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",