@makolabs/ripple 1.0.3 → 1.0.5

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.
@@ -11,6 +11,7 @@
11
11
  size,
12
12
  hideCloseButton = false,
13
13
  class: className = '',
14
+ contentClass = '',
14
15
  children,
15
16
  footer
16
17
  }: ModalProps = $props();
@@ -54,7 +55,7 @@
54
55
 
55
56
  <!-- Modal Container -->
56
57
  <div
57
- class="{styles.container()} {className}"
58
+ class="{styles.container()} {contentClass || className}"
58
59
  transition:scale={{ duration: 200, easing: quintOut, start: 0.95 }}
59
60
  >
60
61
  <!-- Header -->
@@ -102,6 +102,7 @@ export type ModalProps = {
102
102
  size?: VariantSizes;
103
103
  hideCloseButton?: boolean;
104
104
  class?: string;
105
+ contentClass?: string;
105
106
  children?: Snippet;
106
107
  footer?: Snippet;
107
108
  };
@@ -1,5 +1,4 @@
1
1
  <script lang="ts">
2
- import { tv } from 'tailwind-variants';
3
2
  import type { Snippet } from 'svelte';
4
3
 
5
4
  export type PipelineStage = {
@@ -13,7 +12,6 @@
13
12
  stages: PipelineStage[];
14
13
  class?: string;
15
14
  size?: 'sm' | 'base' | 'lg';
16
- equalWidth?: boolean;
17
15
  children?: Snippet<[PipelineStage, number]>;
18
16
  }
19
17
 
@@ -21,7 +19,6 @@
21
19
  stages = [],
22
20
  class: className = '',
23
21
  size = 'base',
24
- equalWidth = true,
25
22
  children
26
23
  }: Props = $props();
27
24
 
@@ -29,37 +26,37 @@
29
26
  slots: {
30
27
  container: 'flex items-center gap-0 w-full',
31
28
  stage: 'relative transition-all duration-300',
32
- borderLayer: 'absolute inset-0 h-20 transition-all duration-300',
33
- innerLayer: 'relative h-20 flex items-center justify-center bg-white transition-all duration-300',
34
- content: 'text-center px-4',
35
- label: 'text-xs mb-1 leading-tight font-medium tracking-wide text-gray-600',
36
- count: 'text-2xl font-bold tracking-tight text-gray-900'
29
+ borderLayer: 'absolute inset-0 transition-all duration-300',
30
+ innerLayer: 'relative flex items-center justify-center bg-white transition-all duration-300',
31
+ content: 'text-center flex flex-col items-center justify-center',
32
+ label: 'font-medium text-gray-600 leading-tight break-words',
33
+ count: 'font-bold text-gray-900'
37
34
  },
38
35
  variants: {
39
36
  size: {
40
37
  sm: {
41
- stage: 'min-w-[100px]',
42
- borderLayer: 'h-16',
43
- innerLayer: 'h-16',
44
- label: 'text-xs',
45
- count: 'text-lg',
46
- content: 'px-3'
47
- },
48
- base: {
49
- stage: 'min-w-[120px]',
38
+ stage: 'min-w-[130px]',
50
39
  borderLayer: 'h-20',
51
40
  innerLayer: 'h-20',
52
- label: 'text-xs',
53
- count: 'text-2xl',
41
+ label: 'text-[11px] max-w-[100px]',
42
+ count: 'text-xl mt-0.5',
54
43
  content: 'px-4'
55
44
  },
56
- lg: {
57
- stage: 'min-w-[140px]',
45
+ base: {
46
+ stage: 'min-w-[150px]',
58
47
  borderLayer: 'h-24',
59
48
  innerLayer: 'h-24',
60
- label: 'text-sm',
61
- count: 'text-3xl',
49
+ label: 'text-xs max-w-[120px]',
50
+ count: 'text-2xl mt-1',
62
51
  content: 'px-5'
52
+ },
53
+ lg: {
54
+ stage: 'min-w-[180px]',
55
+ borderLayer: 'h-28',
56
+ innerLayer: 'h-28',
57
+ label: 'text-sm max-w-[150px]',
58
+ count: 'text-3xl mt-1',
59
+ content: 'px-6'
63
60
  }
64
61
  },
65
62
  color: {
@@ -9,7 +9,6 @@ interface Props {
9
9
  stages: PipelineStage[];
10
10
  class?: string;
11
11
  size?: 'sm' | 'base' | 'lg';
12
- equalWidth?: boolean;
13
12
  children?: Snippet<[PipelineStage, number]>;
14
13
  }
15
14
  declare const Pipeline: import("svelte").Component<Props, {}, "">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makolabs/ripple",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Simple Svelte 5 powered component library ✨",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {