@policystudio/policy-studio-ui-vue 1.0.11 → 1.0.15
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/assets/scss/base.scss +7 -0
- package/src/assets/scss/tailwind.css +2328 -472
- package/src/components/buttons/PsButton.vue +33 -9
- package/src/components/controls/PsCheckbox.vue +26 -38
- package/src/components/controls/PsSwitch.vue +6 -1
- package/src/components/controls/PsToggle.vue +39 -0
- package/src/components/forms/PsInput.vue +98 -0
- package/src/index.js +14 -2
- package/src/stories/Button.stories.js +2 -2
- package/src/stories/Checkbox.stories.js +7 -10
- package/src/stories/Colors.stories.mdx +55 -9
- package/src/stories/ElevationSystem.stories.mdx +7 -7
- package/src/stories/Input.stories.js +85 -0
- package/src/stories/Toggle.stories.js +22 -0
- package/src/stories/Typography.stories.mdx +87 -1
- package/tailwind.config.js +11 -9
|
@@ -68,7 +68,7 @@ import { Meta } from '@storybook/addon-docs';
|
|
|
68
68
|
|
|
69
69
|
.link-item img {
|
|
70
70
|
height: 40px;
|
|
71
|
-
width: 40px;
|
|
71
|
+
width: 40px;
|
|
72
72
|
margin-right: 15px;
|
|
73
73
|
flex: none;
|
|
74
74
|
}
|
|
@@ -118,3 +118,89 @@ We use the Lato typographic family: https://fonts.google.com/specimen/Lato
|
|
|
118
118
|
### 1.2. Font sizes
|
|
119
119
|
Keeping typography consistent and sticking to logical hierarchies ensures that elements in the UI are clear and easily recognizable when scanning the page. Text sizes, styles, and layouts were selected to balance content and UI and to foster familiarity.
|
|
120
120
|
|
|
121
|
+
<table>
|
|
122
|
+
<tr>
|
|
123
|
+
<td class="psui-w-48">
|
|
124
|
+
<p class="psui-font-bold">Headline 1</p>
|
|
125
|
+
psui-text-h1
|
|
126
|
+
</td>
|
|
127
|
+
<td class="psui-text-h1">The lazy fox jumped overthe brown dog</td>
|
|
128
|
+
</tr>
|
|
129
|
+
<tr>
|
|
130
|
+
<td>
|
|
131
|
+
<p class="psui-font-bold">Headline 2</p>
|
|
132
|
+
psui-text-h2
|
|
133
|
+
</td>
|
|
134
|
+
<td class="psui-text-h2">The lazy fox jumped over the brown dog</td>
|
|
135
|
+
</tr>
|
|
136
|
+
<tr>
|
|
137
|
+
<td>
|
|
138
|
+
<p class="psui-font-bold">Headline 3</p>
|
|
139
|
+
psui-text-h3
|
|
140
|
+
</td>
|
|
141
|
+
<td class="psui-text-h3">The lazy fox jumped over the brown dog</td>
|
|
142
|
+
</tr>
|
|
143
|
+
<tr>
|
|
144
|
+
<td>
|
|
145
|
+
<p class="psui-font-bold">Headline 4</p>
|
|
146
|
+
psui-text-h4
|
|
147
|
+
</td>
|
|
148
|
+
<td class="psui-text-h4">The lazy fox jumped over the brown dog</td>
|
|
149
|
+
</tr>
|
|
150
|
+
<tr>
|
|
151
|
+
<td>
|
|
152
|
+
<p class="psui-font-bold">Headline 5</p>
|
|
153
|
+
psui-text-h5
|
|
154
|
+
</td>
|
|
155
|
+
<td class="psui-text-h5">The lazy fox jumped over the brown dog</td>
|
|
156
|
+
</tr>
|
|
157
|
+
<tr>
|
|
158
|
+
<td>
|
|
159
|
+
<p class="psui-font-bold">Headline 6</p>
|
|
160
|
+
psui-text-h6
|
|
161
|
+
</td>
|
|
162
|
+
<td class="psui-text-h6">The lazy fox jumped over the brown dog</td>
|
|
163
|
+
</tr>
|
|
164
|
+
<tr>
|
|
165
|
+
<td>
|
|
166
|
+
<p class="psui-font-bold">Paragraph</p>
|
|
167
|
+
psui-text-p
|
|
168
|
+
</td>
|
|
169
|
+
<td class="psui-text-p">
|
|
170
|
+
This tool allows you to dive into the cost-effectiveness findings relevant to your City or County. We’ve also embedded explanations of terms and concepts throughout the tool, as well as much of the supplementary information contained in the cost-effectiveness studies.
|
|
171
|
+
</td>
|
|
172
|
+
</tr>
|
|
173
|
+
<tr>
|
|
174
|
+
<td>
|
|
175
|
+
<p class="psui-font-bold">Small</p>
|
|
176
|
+
psui-text-small
|
|
177
|
+
</td>
|
|
178
|
+
<td class="psui-text-small">
|
|
179
|
+
This tool allows you to dive into the cost-effectiveness findings relevant to your City or County. We’ve also embedded explanations of terms and concepts throughout the tool, as well as much of the supplementary information contained in the cost-effectiveness studies.
|
|
180
|
+
</td>
|
|
181
|
+
</tr>
|
|
182
|
+
<tr>
|
|
183
|
+
<td>
|
|
184
|
+
<p class="psui-font-bold">XSmall</p>
|
|
185
|
+
psui-text-xsmall
|
|
186
|
+
</td>
|
|
187
|
+
<td class="psui-text-xsmall">
|
|
188
|
+
This tool allows you to dive into the cost-effectiveness findings relevant to your City or County. We’ve also embedded explanations of terms and concepts throughout the tool, as well as much of the supplementary information contained in the cost-effectiveness studies.
|
|
189
|
+
</td>
|
|
190
|
+
</tr>
|
|
191
|
+
<tr>
|
|
192
|
+
<td>
|
|
193
|
+
<p class="psui-font-bold">Accent</p>
|
|
194
|
+
psui-text-accent
|
|
195
|
+
</td>
|
|
196
|
+
<td class="psui-text-accent">UPPERCASE THE LAZY FOX JUNPED OVER THE BROWN DOG</td>
|
|
197
|
+
</tr>
|
|
198
|
+
<tr>
|
|
199
|
+
<td>
|
|
200
|
+
<p class="psui-font-bold">Accent Small</p>
|
|
201
|
+
psui-text-accent-small
|
|
202
|
+
</td>
|
|
203
|
+
<td class="psui-text-accent-small">UPPERCASE THE LAZY FOX JUNPED OVER THE BROWN DOG</td>
|
|
204
|
+
</tr>
|
|
205
|
+
</table>
|
|
206
|
+
|
package/tailwind.config.js
CHANGED
|
@@ -37,18 +37,20 @@ module.exports = {
|
|
|
37
37
|
'red-70':'#AA3937',
|
|
38
38
|
'red-80':'#832F2E',
|
|
39
39
|
|
|
40
|
-
'
|
|
40
|
+
'sky': '#518BE2',
|
|
41
41
|
'teal': '#57C0BA',
|
|
42
42
|
'emerald': '#8CCA82',
|
|
43
43
|
'mustard': '#E9CF74',
|
|
44
|
-
'orange': '#FF906D'
|
|
44
|
+
'orange': '#FF906D',
|
|
45
|
+
'pink': '#FF77B8',
|
|
46
|
+
'purple': '#9278C9'
|
|
45
47
|
},
|
|
46
48
|
fontFamily: {
|
|
47
49
|
'sans': ['Lato'],
|
|
48
50
|
},
|
|
49
51
|
fontSize: {
|
|
50
52
|
small: ['14px', '130%'],
|
|
51
|
-
|
|
53
|
+
xsmall: ['12px', '130%'],
|
|
52
54
|
accent: ['14px', '130%', { letterSpacing: '0.6px' }],
|
|
53
55
|
accentSmall: ['12px', '130%', { letterSpacing: '0.6px' }],
|
|
54
56
|
p: ['16px', '120%'],
|
|
@@ -60,12 +62,12 @@ module.exports = {
|
|
|
60
62
|
h6: ['17px', '120%'],
|
|
61
63
|
},
|
|
62
64
|
boxShadow: {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
'elevation--5': '0px 1px 0px #FFFFFF, inset 0px 1px 2px rgba(0, 0, 0, 0.1)',
|
|
66
|
+
'elevation-5': '0px 0px 4px rgba(0, 0, 0, 0.03), 0px 1px 2px rgba(0, 0, 0, 0.1)',
|
|
67
|
+
'elevation-10': '0px 0px 8px rgba(0, 0, 0, 0.04), 0px 2px 5px rgba(0, 0, 0, 0.08)',
|
|
68
|
+
'elevation-20': '0px 0px 8px rgba(0, 0, 0, 0.04), 0px 5px 6px rgba(0, 0, 0, 0.1)',
|
|
69
|
+
'elevation-30': '0px 0px 8px rgba(0, 0, 0, 0.05), 0px 10px 15px rgba(0, 0, 0, 0.15)',
|
|
70
|
+
'elevation-40': '0px 0px 20px rgba(0, 0, 0, 0.05), 0px 30px 60px rgba(0, 0, 0, 0.2)',
|
|
69
71
|
sm: '0px 0px 4px rgba(0, 0, 0, 0.03), 0px 1px 2px rgba(0, 0, 0, 0.1)',
|
|
70
72
|
default: '0px 0px 8px rgba(0, 0, 0, 0.04), 0px 2px 5px rgba(0, 0, 0, 0.08)',
|
|
71
73
|
md: '0px 0px 8px rgba(0, 0, 0, 0.04), 0px 5px 6px rgba(0, 0, 0, 0.1)',
|