@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.
@@ -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;
@@ -4,8 +4,10 @@
4
4
  @apply --mx-fg(inherit);
5
5
 
6
6
  resize: vertical;
7
+ min-height: 100%;
7
8
  &[data-auto-size='true'] {
8
9
  resize: none;
10
+ height: auto;
9
11
  }
10
12
  }
11
13
 
@@ -21,3 +21,4 @@ export declare const Default: Story;
21
21
  export declare const Tall: Story;
22
22
  export declare const Controlled: Story;
23
23
  export declare const ControlledFromOnChange: Story;
24
+ export declare const Sized: Story;
@@ -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":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,IAAI,GAAG;IACZ,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,QAAQ;IAC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github.com/a-type/ui"
@@ -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;
@@ -4,8 +4,10 @@
4
4
  @apply --mx-fg(inherit);
5
5
 
6
6
  resize: vertical;
7
+ min-height: 100%;
7
8
  &[data-auto-size='true'] {
8
9
  resize: none;
10
+ height: auto;
9
11
  }
10
12
  }
11
13
 
@@ -50,3 +50,10 @@ export const ControlledFromOnChange: Story = {
50
50
  );
51
51
  },
52
52
  };
53
+
54
+ export const Sized: Story = {
55
+ args: {
56
+ style: { height: 400 },
57
+ placeholder: 'This text area has a fixed height of 400px',
58
+ },
59
+ };