reshaped 3.7.0-canary.13 → 3.7.0-canary.14
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/CHANGELOG.md +2 -1
- package/dist/bundle.css +1 -1
- package/dist/bundle.js +1 -1
- package/dist/components/FormControl/FormControl.module.css +1 -1
- package/dist/components/FormControl/tests/FormControl.stories.d.ts +4 -0
- package/dist/components/FormControl/tests/FormControl.stories.js +18 -0
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
.root{border:none}.label{display:block;margin-bottom:var(--rs-unit-x1)}.caption{display:block;margin-top:var(--rs-unit-x1)}.caption+.caption{margin-top:0}
|
1
|
+
.root{border:none}.label{display:block;margin-bottom:var(--rs-unit-x1)}.label:last-child{margin-bottom:0}.caption{display:block;margin-top:var(--rs-unit-x1)}.caption+.caption{margin-top:0}
|
@@ -2,6 +2,7 @@ import { expect } from "storybook/test";
|
|
2
2
|
import { Example } from "../../../utilities/storybook/index.js";
|
3
3
|
import FormControl from "../index.js";
|
4
4
|
import TextField from "../../TextField/index.js";
|
5
|
+
import View from "../../View/index.js";
|
5
6
|
export default {
|
6
7
|
title: "Utility components/FormControl",
|
7
8
|
component: FormControl,
|
@@ -88,3 +89,20 @@ export const required = {
|
|
88
89
|
</Example.Item>
|
89
90
|
</Example>),
|
90
91
|
};
|
92
|
+
export const composition = {
|
93
|
+
name: "test: composition",
|
94
|
+
render: () => (<Example>
|
95
|
+
<Example.Item title="horizontal">
|
96
|
+
<FormControl>
|
97
|
+
<View direction="row" gap={10} align="center">
|
98
|
+
<View width="100px">
|
99
|
+
<FormControl.Label>Label</FormControl.Label>
|
100
|
+
</View>
|
101
|
+
<View.Item grow>
|
102
|
+
<TextField name="name" placeholder="Enter value"/>
|
103
|
+
</View.Item>
|
104
|
+
</View>
|
105
|
+
</FormControl>
|
106
|
+
</Example.Item>
|
107
|
+
</Example>),
|
108
|
+
};
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "reshaped",
|
3
3
|
"description": "Professionally crafted design system in React & Figma for building products of any scale and complexity",
|
4
|
-
"version": "3.7.0-canary.
|
4
|
+
"version": "3.7.0-canary.14",
|
5
5
|
"license": "MIT",
|
6
6
|
"email": "hello@reshaped.so",
|
7
7
|
"homepage": "https://reshaped.so",
|