@a-type/ui 6.1.44 → 6.1.45
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/components/forms/Field.module.css +3 -0
- package/dist/components/textArea/TextArea.module.css +2 -0
- package/dist/components/textArea/TextArea.stories.d.ts +1 -0
- package/dist/components/textArea/TextArea.stories.js +6 -0
- package/dist/components/textArea/TextArea.stories.js.map +1 -1
- package/package.json +1 -1
- package/src/components/forms/Field.module.css +3 -0
- package/src/components/textArea/TextArea.module.css +2 -0
- package/src/components/textArea/TextArea.stories.tsx +7 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@layer components {.root {
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-areas: 'label' 'control' 'description' 'error';
|
|
4
|
+
grid-template-columns: 1fr;
|
|
5
|
+
grid-template-rows: auto 1fr auto auto;
|
|
4
6
|
justify-content: start;
|
|
5
7
|
border: none;
|
|
6
8
|
padding: 0;
|
|
@@ -11,6 +13,7 @@
|
|
|
11
13
|
align-items: center;
|
|
12
14
|
grid-template-areas: 'control label' 'description description' 'error error';
|
|
13
15
|
grid-template-columns: auto 1fr;
|
|
16
|
+
grid-template-rows: auto auto auto;
|
|
14
17
|
&[data-reverse] {
|
|
15
18
|
grid-template-areas: 'label control' 'description description' 'error error';
|
|
16
19
|
grid-template-columns: auto 1fr;
|
|
@@ -35,4 +35,10 @@ export const ControlledFromOnChange = {
|
|
|
35
35
|
}, autoSize: true }));
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
|
+
export const Sized = {
|
|
39
|
+
args: {
|
|
40
|
+
style: { height: 400 },
|
|
41
|
+
placeholder: 'This text area has a fixed height of 400px',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
38
44
|
//# sourceMappingURL=TextArea.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.stories.js","sourceRoot":"","sources":["../../../src/components/textArea/TextArea.stories.tsx"],"names":[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AG,EAAE;QACtB,WAAW,EAAE,4CAA4C;KACzD;CACD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-areas: 'label' 'control' 'description' 'error';
|
|
4
|
+
grid-template-columns: 1fr;
|
|
5
|
+
grid-template-rows: auto 1fr auto auto;
|
|
4
6
|
justify-content: start;
|
|
5
7
|
border: none;
|
|
6
8
|
padding: 0;
|
|
@@ -11,6 +13,7 @@
|
|
|
11
13
|
align-items: center;
|
|
12
14
|
grid-template-areas: 'control label' 'description description' 'error error';
|
|
13
15
|
grid-template-columns: auto 1fr;
|
|
16
|
+
grid-template-rows: auto auto auto;
|
|
14
17
|
&[data-reverse] {
|
|
15
18
|
grid-template-areas: 'label control' 'description description' 'error error';
|
|
16
19
|
grid-template-columns: auto 1fr;
|