@likable-hair/svelte 0.0.23 → 0.0.24
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/common/Card.svelte +6 -11
- package/common/Card.svelte.d.ts +5 -1
- package/package.json +1 -1
package/common/Card.svelte
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
<script >export let outlined = false, maxWidth = undefined, maxHeight = undefined, minWidth = undefined, minHeight = undefined, width = 'fit-content', height = undefined, padding = "5px", borderRadius = "5px", backgroundColor = "rgb(252, 252, 252)", color = undefined, borderColor = undefined, borderWidth = undefined,
|
|
1
|
+
<script >export let outlined = false, maxWidth = undefined, maxHeight = undefined, minWidth = undefined, minHeight = undefined, width = 'fit-content', height = undefined, padding = "5px", borderRadius = "5px", backgroundColor = "rgb(252, 252, 252)", color = undefined, borderColor = undefined, borderWidth = undefined, marginBottom = undefined, marginTop = undefined, marginLeft = undefined, marginRight = undefined, boxShadow = "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
|
-
<style>
|
|
5
|
-
.shadow-lg {
|
|
6
|
-
--shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
7
|
-
--shadow-colored: 0 10px 15px -3px #000, 0 4px 6px -4px #000;
|
|
8
|
-
box-shadow: inset 0 0 0 calc(1px + 0px) rgb(255 255 255/0.1), 0 0 #0000, 0 0 #0000;
|
|
9
|
-
}
|
|
10
|
-
</style>
|
|
11
|
-
|
|
12
4
|
<div
|
|
13
5
|
style:width={width}
|
|
14
6
|
style:max-width={maxWidth}
|
|
@@ -22,10 +14,13 @@
|
|
|
22
14
|
style:color={color}
|
|
23
15
|
style:border-color={borderColor}
|
|
24
16
|
style:border-width={borderWidth}
|
|
25
|
-
style={
|
|
17
|
+
style:margin-bottom={marginBottom}
|
|
18
|
+
style:margin-top={marginTop}
|
|
19
|
+
style:margin-left={marginLeft}
|
|
20
|
+
style:margin-right={marginRight}
|
|
21
|
+
style:box-shadow={boxShadow}
|
|
26
22
|
style:display="flex"
|
|
27
23
|
style:flex-direction="column"
|
|
28
|
-
class="shadow-lg"
|
|
29
24
|
class:border-solid={outlined}
|
|
30
25
|
>
|
|
31
26
|
<div
|
package/common/Card.svelte.d.ts
CHANGED
|
@@ -14,7 +14,11 @@ declare const __propDef: {
|
|
|
14
14
|
color?: string;
|
|
15
15
|
borderColor?: string;
|
|
16
16
|
borderWidth?: string;
|
|
17
|
-
|
|
17
|
+
marginBottom?: string;
|
|
18
|
+
marginTop?: string;
|
|
19
|
+
marginLeft?: string;
|
|
20
|
+
marginRight?: string;
|
|
21
|
+
boxShadow?: string;
|
|
18
22
|
};
|
|
19
23
|
events: {
|
|
20
24
|
[evt: string]: CustomEvent<any>;
|