@mdocify/components 0.0.2 → 0.0.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.
- package/package.json +1 -1
- package/src/callout.astro +9 -9
package/package.json
CHANGED
package/src/callout.astro
CHANGED
|
@@ -10,17 +10,17 @@ const icon = type === "danger" ? "triangle-alert" : type ==="success" ? "circle
|
|
|
10
10
|
|
|
11
11
|
<div class:list={[
|
|
12
12
|
'not-prose block m-1 border border-spacing-1.5 overflow-hidden rounded-xl [corner-shape:squircle]',
|
|
13
|
-
{'border-teal-700': type === 'tip'},
|
|
14
|
-
{'border-orange-700': type === 'warning'},
|
|
15
|
-
{'border-red-700': type === 'danger'},
|
|
16
|
-
{'border-green-700': type === 'success'}
|
|
13
|
+
{'border-teal-700!': type === 'tip'},
|
|
14
|
+
{'border-orange-700!': type === 'warning'},
|
|
15
|
+
{'border-red-700!': type === 'danger'},
|
|
16
|
+
{'border-green-700!': type === 'success'}
|
|
17
17
|
]}>
|
|
18
18
|
<div class:list={[
|
|
19
|
-
'flex font-semibold p-2 gap-2 justify-start items-center text-white',
|
|
20
|
-
{'bg-teal-500': type === 'tip'},
|
|
21
|
-
{'bg-orange-500': type === 'warning'},
|
|
22
|
-
{'bg-red-500': type === 'danger'},
|
|
23
|
-
{'bg-green-500': type === 'success'}
|
|
19
|
+
'not-prose flex font-semibold p-2 gap-2 justify-start items-center text-white',
|
|
20
|
+
{'bg-teal-500!': type === 'tip'},
|
|
21
|
+
{'bg-orange-500!': type === 'warning'},
|
|
22
|
+
{'bg-red-500!': type === 'danger'},
|
|
23
|
+
{'bg-green-500!': type === 'success'}
|
|
24
24
|
]}>
|
|
25
25
|
<slot name="icon">
|
|
26
26
|
<Icon name={icon} class="w-8" />
|