-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
147 lines (106 loc) · 4.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<title>stak-showcase</title>
<script src="components/st-checkbox.js" type="module"></script>
<script src="components/st-input.js" type="module"></script>
<script src="components/st-combo.js" type="module"></script>
<script src="components/st-accordion.js" type="module"></script>
<script src="components/st-textarea.js" type="module"></script>
<script src="components/st-datepicker.js" type="module"></script>
<script src="components/st-timepicker.js" type="module"></script>
<script src="components/st-tabs.js" type="module"></script>
<script src="components/st-grouplist.js" type="module"></script>
<style>
h1 {
background-color: #547b9d;
padding: 10px;
color: white;
}
body,
html {
margin: 0px;
margin-top: -11px;
}
.bodyWrapper {
padding: 10px;
}
</style>
</head>
<body style="font-family: 'Roboto', sans-serif; display:none" onload=" document.body.style.display='block'">
<h1>stak components</h1>
<div class="bodyWrapper">
<h3>Default display mode</h3>
<st-checkbox label="Checkbox">
</st-checkbox>
<st-input value="test" label="Input"></st-input>
<st-combo label="Combo">
<option value="1">Hello</option>
<option value="2">Hello2</option>
</st-combo>
<st-datepicker label="DatePicker"></st-datepicker>
<st-timepicker></st-timepicker>
<st-textarea label="TextArea">
</st-textarea>
<br /><br />
<h3>Block display mode</h3><br />
<st-checkbox display="block" label="Checkbox"></st-checkbox>
<st-input display="block" value="test" label="Input"></st-input>
<st-combo display="block" label="Combo">
<option value="1">Hello</option>
<option value="2">Hello2</option>
</st-combo>
<st-textarea display="block" label="TextArea">
</st-textarea>
<st-datepicker display="block" label="DatePicker"></st-datepicker>
<st-timepicker display="block"></st-timepicker>
<h3>No labels</h3>
<st-checkbox label=""></st-checkbox>
<st-input value="test" label=""></st-input>
<st-combo label="">
<option value="1">Hello</option>
<option value="2">Hello2</option>
</st-combo>
<st-datepicker label=""></st-datepicker>
<st-timepicker hoursLabel="" minutesLabel=""></st-timepicker>
<st-textarea label="">
</st-textarea>
<br/> <br/> <br/> <br/>
<h2>GroupList</h2>
<div id="test" style="width: 100px; height:100px; border:solid 2px red; padding: 5px;">
<br/><br/>
right click here
</div>
<st-grouplist id="group" for="#test" label="Nodes" placeholder="Search nodes...">
<option group="Node1" value="1">Create Node1 Action1</option>
<option group="Node1" value="2">Create Node1 Action2</option>
<option group="Node2" value="3">Create Node2 Action1</option>
<option group="Node2" value="4">Create Node2 Action2</option>
</st-grouplist>
<h2>Accordion</h2>
<st-accordion>
<st-accordion-tab name="hello">
hello again
</st-accordion-tab>
<st-accordion-tab name="hello2">
hello again2
</st-accordion-tab>
</st-accordion>
<h2>Tabs</h2>
<st-tabs>
<st-tab header="First tab">
hello again
</st-tab>
<st-tab header="Second tab">
hello again2
</st-tab>
</st-tabs>
</div>
</body>
</html>