@r2digisolutions/components 0.17.7 → 0.17.8

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.
@@ -44,6 +44,14 @@
44
44
  lg: 'px-5 py-5 sm:px-6 sm:py-6'
45
45
  };
46
46
 
47
+ /** Lets nested `FormActions variant="bar"` bleed to the card edges. */
48
+ const contentPadVars: Record<CardPadding, string> = {
49
+ none: '',
50
+ sm: '[--card-pad-x:0.75rem] [--card-pad-y:0.625rem]',
51
+ md: '[--card-pad-x:1rem] [--card-pad-y:0.875rem] sm:[--card-pad-x:1.25rem] sm:[--card-pad-y:1rem]',
52
+ lg: '[--card-pad-x:1.25rem] [--card-pad-y:1.25rem] sm:[--card-pad-x:1.5rem] sm:[--card-pad-y:1.5rem]'
53
+ };
54
+
47
55
  const isClickable = $derived(!!onclick || hoverable);
48
56
  </script>
49
57
 
@@ -81,7 +89,8 @@
81
89
  <div
82
90
  class={[
83
91
  'flex min-w-0 flex-1 flex-col',
84
- padding !== 'none' ? paddingClasses[padding] : ''
92
+ padding !== 'none' ? paddingClasses[padding] : '',
93
+ padding !== 'none' ? contentPadVars[padding] : ''
85
94
  ]}
86
95
  >
87
96
  {@render children()}
@@ -74,7 +74,12 @@
74
74
  class={[
75
75
  'gap-3 sm:flex-row sm:items-center flex w-full flex-col',
76
76
  alignClasses[align],
77
- variant === 'bar' && 'rounded-b-2xl border-border bg-surface/50 px-4 py-3 sm:px-5 border-t',
77
+ variant === 'bar' &&
78
+ [
79
+ // Bleed through Card body padding when `--card-pad-*` is set; no-op otherwise.
80
+ '-mx-[length:var(--card-pad-x,0px)] -mb-[length:var(--card-pad-y,0px)]',
81
+ 'rounded-b-2xl border-t border-border bg-surface/50 px-4 py-3 sm:px-5'
82
+ ],
78
83
  variant === 'sticky' &&
79
84
  'border-border bg-surface-elevated/95 px-4 py-3 backdrop-blur-md dark:shadow-black/30 sm:px-5 shrink-0 border-t shadow-[0_-8px_24px_rgb(0,0,0,0.06)]',
80
85
  variant === 'plain' && 'gap-2',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.17.7",
3
+ "version": "0.17.8",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",