@hyvor/design 0.0.22 → 0.0.23
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.
|
@@ -2,13 +2,19 @@
|
|
|
2
2
|
export let color = "default";
|
|
3
3
|
export let interactive = false;
|
|
4
4
|
export let outline = false;
|
|
5
|
+
export let fill = false;
|
|
6
|
+
let styleClass = "default";
|
|
7
|
+
if (outline) {
|
|
8
|
+
styleClass = fill ? "outline-fill" : "outline";
|
|
9
|
+
}
|
|
5
10
|
</script>
|
|
6
11
|
|
|
7
12
|
<span
|
|
8
|
-
class="color-{color} style-{
|
|
13
|
+
class="color-{color} style-{styleClass} size-{size}"
|
|
9
14
|
class:interactive
|
|
10
15
|
class:has-start={$$slots.start}
|
|
11
16
|
class:has-end={$$slots.end}
|
|
17
|
+
{...$$restProps}
|
|
12
18
|
>
|
|
13
19
|
|
|
14
20
|
{#if $$slots.start}
|
|
@@ -107,4 +113,30 @@ span.style-outline.color-blue {
|
|
|
107
113
|
span.style-outline.color-orange {
|
|
108
114
|
color: var(--orange-dark);
|
|
109
115
|
border: 1px solid var(--orange-dark);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
span.style-outline-fill.color-default {
|
|
119
|
+
background-color: var(--gray-light);
|
|
120
|
+
color: var(--gray-dark);
|
|
121
|
+
border: 1px solid var(--gray);
|
|
122
|
+
}
|
|
123
|
+
span.style-outline-fill.color-green {
|
|
124
|
+
background-color: var(--green-light);
|
|
125
|
+
color: var(--green-dark);
|
|
126
|
+
border: 1px solid var(--green-dark);
|
|
127
|
+
}
|
|
128
|
+
span.style-outline-fill.color-red {
|
|
129
|
+
background-color: var(--red-light);
|
|
130
|
+
color: var(--red-dark);
|
|
131
|
+
border: 1px solid var(--red-dark);
|
|
132
|
+
}
|
|
133
|
+
span.style-outline-fill.color-blue {
|
|
134
|
+
background-color: var(--blue-light);
|
|
135
|
+
color: var(--blue-dark);
|
|
136
|
+
border: 1px solid var(--blue-dark);
|
|
137
|
+
}
|
|
138
|
+
span.style-outline-fill.color-orange {
|
|
139
|
+
background-color: var(--orange-light);
|
|
140
|
+
color: var(--orange-dark);
|
|
141
|
+
border: 1px solid var(--orange-dark);
|
|
110
142
|
}</style>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
+
[x: string]: any;
|
|
4
5
|
size?: "small" | "medium" | "large" | "x-small" | undefined;
|
|
5
6
|
color?: "default" | "green" | "red" | "blue" | "orange" | undefined;
|
|
6
7
|
interactive?: boolean | undefined;
|
|
7
8
|
outline?: boolean | undefined;
|
|
9
|
+
fill?: boolean | undefined;
|
|
8
10
|
};
|
|
9
11
|
events: {
|
|
10
12
|
[evt: string]: CustomEvent<any>;
|