@aiaiai-pt/design-system 0.2.2 → 0.2.3

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.
@@ -50,6 +50,8 @@
50
50
  header = undefined,
51
51
  /** @type {import('svelte').Snippet | undefined} */
52
52
  children = undefined,
53
+ /** @type {import('svelte').Snippet | undefined} */
54
+ footer = undefined,
53
55
  ...rest
54
56
  } = $props();
55
57
 
@@ -149,6 +151,12 @@
149
151
  <div class="panel-body" class:panel-body-no-scroll={!scrollBody}>
150
152
  {#if children}{@render children()}{/if}
151
153
  </div>
154
+
155
+ {#if footer}
156
+ <div class="panel-footer">
157
+ {@render footer()}
158
+ </div>
159
+ {/if}
152
160
  </aside>
153
161
  {/if}
154
162
 
@@ -259,14 +267,25 @@
259
267
 
260
268
  .panel-body {
261
269
  flex: 1;
270
+ min-height: 0;
262
271
  overflow-y: auto;
263
272
  padding: var(--panel-padding);
264
273
  }
265
274
 
266
275
  .panel-body-no-scroll {
267
276
  overflow: hidden;
277
+ padding: 0;
278
+ display: flex;
279
+ flex-direction: column;
280
+ }
281
+
282
+ .panel-footer {
283
+ flex-shrink: 0;
284
+ border-top: var(--panel-header-border);
285
+ padding: var(--space-md) var(--panel-padding);
268
286
  display: flex;
269
287
  flex-direction: column;
288
+ gap: var(--space-sm);
270
289
  }
271
290
 
272
291
  @keyframes slide-in-right {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiaiai-pt/design-system",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Design system tokens and Svelte components for aiaiai products",
5
5
  "license": "MIT",
6
6
  "type": "module",