@onsvisual/svelte-components 0.0.19 → 0.0.20
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.
|
@@ -7,7 +7,7 @@ export default class Divider extends SvelteComponentTyped<{
|
|
|
7
7
|
marginTop?: boolean;
|
|
8
8
|
marginBottom?: boolean;
|
|
9
9
|
themeOverrides?: any;
|
|
10
|
-
hr?:
|
|
10
|
+
hr?: "narrow" | "full";
|
|
11
11
|
}, {
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
13
13
|
}, {}> {
|
|
@@ -23,7 +23,7 @@ declare const __propDef: {
|
|
|
23
23
|
marginTop?: boolean;
|
|
24
24
|
marginBottom?: boolean;
|
|
25
25
|
themeOverrides?: object;
|
|
26
|
-
hr?:
|
|
26
|
+
hr?: "narrow" | "full" | null;
|
|
27
27
|
};
|
|
28
28
|
events: {
|
|
29
29
|
[evt: string]: CustomEvent<any>;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* (Optional) Include a horizontal rule
|
|
6
|
-
* @type {
|
|
6
|
+
* @type {"narrow"|"full"|null}
|
|
7
7
|
*/
|
|
8
|
-
export let hr =
|
|
8
|
+
export let hr = "narrow";
|
|
9
9
|
/**
|
|
10
10
|
* Sets the width of the container
|
|
11
11
|
* @type {"narrow"|"medium"|"wide"|"full"}
|
|
@@ -40,13 +40,21 @@
|
|
|
40
40
|
marginTop="{marginTop}"
|
|
41
41
|
marginBottom="{marginBottom}"
|
|
42
42
|
>
|
|
43
|
-
<hr
|
|
43
|
+
<hr class:hr-full="{hr === 'full'}" class:hr-narrow="{hr === 'narrow'}" />
|
|
44
44
|
</Container>
|
|
45
45
|
|
|
46
46
|
<style>
|
|
47
47
|
hr {
|
|
48
|
-
width: 75px;
|
|
49
48
|
border: none;
|
|
49
|
+
margin: -10px 0 0;
|
|
50
|
+
}
|
|
51
|
+
hr.hr-full,
|
|
52
|
+
hr.hr-narrow {
|
|
50
53
|
border-top: 2px solid var(--muted, #777);
|
|
51
|
-
|
|
54
|
+
}
|
|
55
|
+
hr.hr-full {
|
|
56
|
+
width: 100%;
|
|
57
|
+
}
|
|
58
|
+
hr.hr-narrow {
|
|
59
|
+
width: 75px;
|
|
52
60
|
}</style>
|