@reshape-biotech/design-system 2.2.2 → 2.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.
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
<Modal.Trigger>
|
|
151
151
|
<Button variant="primary">Open Custom Modal</Button>
|
|
152
152
|
</Modal.Trigger>
|
|
153
|
-
<Modal.Content class="min-w-full
|
|
153
|
+
<Modal.Content class="min-w-full bg-accent p-8">
|
|
154
154
|
<Modal.Title class="text-xl text-primary-inverse">Custom Styled Modal</Modal.Title>
|
|
155
155
|
<div class="space-y-4 pt-4">
|
|
156
156
|
<p class="text-sm text-secondary-inverse">
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
3
|
import type { ModalBottomProps } from '../types';
|
|
3
4
|
|
|
4
5
|
let { children, class: className = '', ...restProps }: ModalBottomProps = $props();
|
|
5
6
|
|
|
6
7
|
const baseClasses = 'border-t border-static -mx-5';
|
|
7
|
-
const finalClasses =
|
|
8
|
+
const finalClasses = twMerge(baseClasses, className);
|
|
8
9
|
</script>
|
|
9
10
|
|
|
10
11
|
<div class={finalClasses} {...restProps}>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Dialog } from 'bits-ui';
|
|
3
3
|
import { scale } from 'svelte/transition';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
5
|
import { Icon } from '../../icons';
|
|
5
6
|
import type { ModalContentProps } from '../types';
|
|
6
7
|
import Overlay from './modal-overlay.svelte';
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
|
|
17
18
|
const baseClasses =
|
|
18
19
|
'fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 bg-surface p-5 shadow-lg sm:rounded-lg';
|
|
19
|
-
const finalClasses =
|
|
20
|
+
const finalClasses = twMerge(baseClasses, className);
|
|
20
21
|
</script>
|
|
21
22
|
|
|
22
23
|
{#snippet withCloseButton()}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Dialog } from 'bits-ui';
|
|
3
3
|
import type { ModalTitleProps } from '../types';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
5
|
|
|
5
6
|
let { children, class: className = '', icon, ...restProps }: ModalTitleProps = $props();
|
|
6
7
|
|
|
7
8
|
const baseClasses = 'text-xl font-semibold tracking-tight text-primary';
|
|
8
|
-
const finalClasses =
|
|
9
|
+
const finalClasses = twMerge(baseClasses, className);
|
|
9
10
|
</script>
|
|
10
11
|
|
|
11
12
|
<div class="space-y-6">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reshape-biotech/design-system",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build",
|
|
@@ -389,6 +389,7 @@
|
|
|
389
389
|
},
|
|
390
390
|
"dependencies": {
|
|
391
391
|
"bits-ui": "^1.8.0",
|
|
392
|
-
"echarts": "^5.6.0"
|
|
392
|
+
"echarts": "^5.6.0",
|
|
393
|
+
"tailwind-merge": "^3.3.1"
|
|
393
394
|
}
|
|
394
395
|
}
|