@awenovations/aura 0.0.21 → 0.0.22
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/dist/icons/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"lastGenerated":
|
|
1
|
+
{"lastGenerated":1725306192870,"icons":[{"name":"apple","size":"large"},{"name":"apple","size":"medium"},{"name":"apple","size":"small"},{"name":"arrow-circle-left","size":"large"},{"name":"arrow-circle-left","size":"medium"},{"name":"arrow-circle-left","size":"small"},{"name":"bug","size":"large"},{"name":"bug","size":"medium"},{"name":"bug","size":"small"},{"name":"caret-down","size":"large"},{"name":"caret-down","size":"medium"},{"name":"caret-down","size":"small"},{"name":"circle-plus","size":"large"},{"name":"circle-plus","size":"medium"},{"name":"circle-plus","size":"small"},{"name":"google-color","size":"large"},{"name":"google-color","size":"medium"},{"name":"google-color","size":"small"},{"name":"microsoft-color","size":"large"},{"name":"microsoft-color","size":"medium"},{"name":"microsoft-color","size":"small"},{"name":"plan","size":"large"},{"name":"plan","size":"medium"},{"name":"plan","size":"small"},{"name":"user-story","size":"large"},{"name":"user-story","size":"medium"},{"name":"user-story","size":"small"}]}
|
|
@@ -33,6 +33,24 @@ export const meta = {
|
|
|
33
33
|
</TextField>
|
|
34
34
|
</Story>
|
|
35
35
|
|
|
36
|
+
<Story name="Fixed Width">
|
|
37
|
+
<TextField width="100%" placeholder="Placeholder...">
|
|
38
|
+
<span slot="label">Label</span>
|
|
39
|
+
</TextField>
|
|
40
|
+
</Story>
|
|
41
|
+
|
|
42
|
+
<Story name="Full Width">
|
|
43
|
+
<div style="display: flex; gap: 1rem;">
|
|
44
|
+
<TextField fullWidth placeholder="Placeholder...">
|
|
45
|
+
<span slot="label">Full Width</span>
|
|
46
|
+
</TextField>
|
|
47
|
+
|
|
48
|
+
<TextField placeholder="Placeholder...">
|
|
49
|
+
<span slot="label">Normal width</span>
|
|
50
|
+
</TextField>
|
|
51
|
+
</div>
|
|
52
|
+
</Story>
|
|
53
|
+
|
|
36
54
|
<Story name="Multi Line">
|
|
37
55
|
<TextField height='100px' value="Test thing" type="multi" placeholder="Placeholder...">
|
|
38
56
|
<span slot="label">Label</span>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { createEventDispatcher } from "svelte";
|
|
4
4
|
import FormItem from "../form-item/form-item.svelte";
|
|
5
|
+
export let fullWidth = false;
|
|
5
6
|
export let type = "text";
|
|
6
7
|
export let value = "";
|
|
7
8
|
export let required = false;
|
|
@@ -28,7 +29,7 @@ function onInput(e) {
|
|
|
28
29
|
}
|
|
29
30
|
</script>
|
|
30
31
|
|
|
31
|
-
<div class=
|
|
32
|
+
<div class={classNames('aura-text-field-wrapper', { fullWidth, userSetWidth: !!width })}>
|
|
32
33
|
{#if $$slots.label}
|
|
33
34
|
<label for={id} class="label">
|
|
34
35
|
<slot name="label" />
|
|
@@ -114,6 +115,12 @@ function onInput(e) {
|
|
|
114
115
|
display: flex;
|
|
115
116
|
flex-direction: column;
|
|
116
117
|
}
|
|
118
|
+
.aura-text-field-wrapper:not(.fullWidth):not(.userSetWidth) {
|
|
119
|
+
max-width: 400px;
|
|
120
|
+
}
|
|
121
|
+
.aura-text-field-wrapper.fullWidth {
|
|
122
|
+
flex: 1;
|
|
123
|
+
}
|
|
117
124
|
.aura-text-field-wrapper label {
|
|
118
125
|
text-align: left;
|
|
119
126
|
}
|