@likable-hair/svelte 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.
package/buttons/Button.svelte
CHANGED
package/forms/Textfield.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script >export let label = "", placeholder = "", color = "", value = "", variant = 'outlined', width = "100%", textColor = "balck", borderRadius = "5px", borderColor = undefined;
|
|
1
|
+
<script >export let label = "", placeholder = "", color = "", value = "", variant = 'outlined', width = "100%", textColor = "balck", borderRadius = "5px", borderColor = undefined, backgroundColor = undefined, padding = undefined, paddingLeft = undefined, paddingRight = undefined, paddingBottom = undefined, paddingTop = undefined, fontSize = undefined;
|
|
2
2
|
import { v4 as uuidv4 } from 'uuid';
|
|
3
3
|
import { onMount } from 'svelte';
|
|
4
4
|
let inputId = uuidv4(), focused = false, legendWidth = 0, labelElement = undefined;
|
|
@@ -111,6 +111,12 @@ $: if (!!labelElement) {
|
|
|
111
111
|
aria-hidden="true"
|
|
112
112
|
style:border-radius={borderRadius}
|
|
113
113
|
style:border-color={borderColor}
|
|
114
|
+
style:background-color={backgroundColor}
|
|
115
|
+
style:padding={padding}
|
|
116
|
+
style:padding-left={paddingLeft}
|
|
117
|
+
style:padding-right={paddingRight}
|
|
118
|
+
style:padding-bottom={paddingBottom}
|
|
119
|
+
style:padding-top={paddingTop}
|
|
114
120
|
class="fieldset"
|
|
115
121
|
class:fieldset-outlined={variant == 'outlined'}
|
|
116
122
|
class:fieldset-boxed={variant == 'boxed'}
|
|
@@ -133,7 +139,9 @@ $: if (!!labelElement) {
|
|
|
133
139
|
<slot name="prepend-inner"></slot>
|
|
134
140
|
</div>
|
|
135
141
|
<input
|
|
142
|
+
style:background-color={backgroundColor}
|
|
136
143
|
style:color={textColor}
|
|
144
|
+
style:font-size={fontSize}
|
|
137
145
|
id={inputId}
|
|
138
146
|
class="input-outlined"
|
|
139
147
|
type="text"
|
|
@@ -158,7 +166,9 @@ $: if (!!labelElement) {
|
|
|
158
166
|
<slot name="prepend-inner"></slot>
|
|
159
167
|
</div>
|
|
160
168
|
<input
|
|
169
|
+
style:background-color={backgroundColor}
|
|
161
170
|
style:color={textColor}
|
|
171
|
+
style:font-size={fontSize}
|
|
162
172
|
id={inputId}
|
|
163
173
|
class="input-boxed"
|
|
164
174
|
type="text"
|
|
@@ -10,6 +10,13 @@ declare const __propDef: {
|
|
|
10
10
|
textColor?: string;
|
|
11
11
|
borderRadius?: string;
|
|
12
12
|
borderColor?: string;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
padding?: string;
|
|
15
|
+
paddingLeft?: string;
|
|
16
|
+
paddingRight?: string;
|
|
17
|
+
paddingBottom?: string;
|
|
18
|
+
paddingTop?: string;
|
|
19
|
+
fontSize?: string;
|
|
13
20
|
};
|
|
14
21
|
events: {
|
|
15
22
|
change: Event;
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ import Icon from '../media/Icon.svelte';
|
|
|
29
29
|
>
|
|
30
30
|
<div
|
|
31
31
|
style:flex-direction={singleSided || index % 2 == 0 ? 'row' : 'row-reverse'}
|
|
32
|
-
style:justify-content={singleSided || index % 2 == 0 ? 'start' : 'end'}
|
|
32
|
+
style:justify-content={singleSided || index % 2 == 0 ? 'start' : 'flex-end'}
|
|
33
33
|
class="time-line-body"
|
|
34
34
|
>
|
|
35
35
|
<slot name="item" item={item}>
|
|
@@ -159,7 +159,7 @@ import Icon from '../media/Icon.svelte';
|
|
|
159
159
|
.vertical-bottom-container {
|
|
160
160
|
display: flex;
|
|
161
161
|
flex-direction: column;
|
|
162
|
-
justify-content: end;
|
|
162
|
+
justify-content: flex-end;
|
|
163
163
|
height: 100%;
|
|
164
164
|
}
|
|
165
165
|
</style>
|