@progress/kendo-themes-html 14.6.1 → 14.7.0-dev.0
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/package.json +1 -1
- package/src/label/tests/label.tsx +56 -0
package/package.json
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Label } from '..';
|
|
2
|
+
import { TextboxNormal } from '../../textbox';
|
|
3
|
+
|
|
4
|
+
const styles = `
|
|
5
|
+
#test-area {
|
|
6
|
+
max-width: 600px;
|
|
7
|
+
}
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
export default () =>(
|
|
11
|
+
<>
|
|
12
|
+
<style>{styles}</style>
|
|
13
|
+
<div id="test-area" className="k-d-grid k-grid-cols-2">
|
|
14
|
+
<span>Label</span>
|
|
15
|
+
<span>Label RTL</span>
|
|
16
|
+
<div>
|
|
17
|
+
<Label>Label</Label>
|
|
18
|
+
</div>
|
|
19
|
+
<div dir="rtl">
|
|
20
|
+
<Label>Label</Label>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div>
|
|
24
|
+
<Label optional>Optional label</Label>
|
|
25
|
+
</div>
|
|
26
|
+
<div dir="rtl">
|
|
27
|
+
<Label optional>Optional label</Label>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div>
|
|
31
|
+
<Label info="(field info)">Label with info</Label>
|
|
32
|
+
</div>
|
|
33
|
+
<div dir="rtl">
|
|
34
|
+
<Label info="(field info)">Label with info</Label>
|
|
35
|
+
</div>
|
|
36
|
+
{Label.states.map((state) => (
|
|
37
|
+
<>
|
|
38
|
+
<div>
|
|
39
|
+
<Label optional { ...{ [state]: true }}>Label {state}</Label>
|
|
40
|
+
</div>
|
|
41
|
+
<div dir="rtl">
|
|
42
|
+
<Label optional { ...{ [state]: true }}>Label {state}</Label>
|
|
43
|
+
</div>
|
|
44
|
+
</>
|
|
45
|
+
))}
|
|
46
|
+
<div className="label-field">
|
|
47
|
+
<Label optional>Label</Label>
|
|
48
|
+
<TextboxNormal placeholder="Placeholder" />
|
|
49
|
+
</div>
|
|
50
|
+
<div className="label-field" dir="rtl">
|
|
51
|
+
<Label optional>Label</Label>
|
|
52
|
+
<TextboxNormal placeholder="Placeholder" />
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</>
|
|
56
|
+
);
|