@r2digisolutions/components 0.17.8 → 0.17.9

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,14 +44,6 @@
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
-
55
47
  const isClickable = $derived(!!onclick || hoverable);
56
48
  </script>
57
49
 
@@ -89,8 +81,7 @@
89
81
  <div
90
82
  class={[
91
83
  'flex min-w-0 flex-1 flex-col',
92
- padding !== 'none' ? paddingClasses[padding] : '',
93
- padding !== 'none' ? contentPadVars[padding] : ''
84
+ padding !== 'none' ? paddingClasses[padding] : ''
94
85
  ]}
95
86
  >
96
87
  {@render children()}
@@ -74,12 +74,11 @@
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' &&
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
- ],
77
+ /**
78
+ * `bar` is for a sibling of the padded body (Card `footer` snippet, or
79
+ * padding="none" + manual body pad). Never nest `bar` inside Card body padding.
80
+ */
81
+ variant === 'bar' && 'rounded-b-2xl border-t border-border bg-surface/50 px-4 py-3 sm:px-5',
83
82
  variant === 'sticky' &&
84
83
  '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)]',
85
84
  variant === 'plain' && 'gap-2',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.17.8",
3
+ "version": "0.17.9",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",