pdap-design-system 1.0.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. package/CONTRIBUTING.md +31 -1
  2. package/README.md +97 -24
  3. package/bin/pdap-design-system-cli.js +27 -0
  4. package/dist/components/Button/PdapButton.vue.d.ts +36 -0
  5. package/dist/components/Button/index.d.ts +2 -0
  6. package/dist/components/Button/types.d.ts +4 -0
  7. package/dist/components/FlexContainer/FlexContainer.vue.d.ts +36 -0
  8. package/dist/components/FlexContainer/index.d.ts +2 -0
  9. package/dist/components/FlexContainer/types.d.ts +4 -0
  10. package/dist/components/Footer/PdapFooter.vue.d.ts +29 -0
  11. package/dist/components/Footer/index.d.ts +2 -0
  12. package/dist/components/Footer/types.d.ts +9 -0
  13. package/dist/components/Form/InputsGenerator/FormInputsGenerator.vue.d.ts +37 -0
  14. package/dist/components/Form/InputsGenerator/index.d.ts +2 -0
  15. package/dist/components/Form/PdapForm.vue.d.ts +39 -0
  16. package/dist/components/Form/index.d.ts +2 -0
  17. package/dist/components/Form/types.d.ts +35 -0
  18. package/dist/components/GridContainer/GridContainer.vue.d.ts +39 -0
  19. package/dist/components/GridContainer/index.d.ts +2 -0
  20. package/dist/components/GridContainer/types.d.ts +7 -0
  21. package/dist/components/GridItem/GridItem.vue.d.ts +39 -0
  22. package/dist/components/GridItem/index.d.ts +2 -0
  23. package/dist/components/GridItem/types.d.ts +5 -0
  24. package/dist/components/Header/PdapHeader.vue.d.ts +29 -0
  25. package/dist/components/Header/index.d.ts +2 -0
  26. package/dist/components/Header/types.d.ts +4 -0
  27. package/dist/components/Input/Checkbox/InputCheckbox.vue.d.ts +24 -0
  28. package/dist/components/Input/Checkbox/index.d.ts +2 -0
  29. package/dist/components/Input/PdapInput.vue.d.ts +19 -0
  30. package/dist/components/Input/Text/InputText.vue.d.ts +24 -0
  31. package/dist/components/Input/Text/index.d.ts +2 -0
  32. package/dist/components/Input/index.d.ts +2 -0
  33. package/dist/components/Input/types.d.ts +20 -0
  34. package/dist/components/Input/utils.d.ts +4 -0
  35. package/dist/components/Nav/PdapNav.vue.d.ts +12 -0
  36. package/dist/components/Nav/index.d.ts +2 -0
  37. package/dist/components/Nav/types.d.ts +12 -0
  38. package/dist/components/TileIcon/TileIcon.vue.d.ts +12 -0
  39. package/dist/components/TileIcon/index.d.ts +2 -0
  40. package/dist/components/TileIcon/types.d.ts +4 -0
  41. package/dist/components/index.d.ts +12 -0
  42. package/dist/index.cjs +2 -0
  43. package/dist/index.d.ts +12 -0
  44. package/dist/index.js +1728 -0
  45. package/dist/styles.css +1 -0
  46. package/dist/tools/testing/serializer.d.ts +7 -0
  47. package/dist/tools/testing/setup.d.ts +1 -0
  48. package/dist/utils/vuelidate.d.ts +36 -0
  49. package/package.json +106 -20
  50. package/system/css/global-styles.css +0 -735
  51. package/system/css/normalize.css +0 -349
  52. package/system/demo.html +0 -185
  53. package/system/js/nav.js +0 -12
  54. /package/{system → dist}/images/acronym.svg +0 -0
  55. /package/{system → dist}/images/favicon.png +0 -0
  56. /package/{system → dist}/images/icons/automation.svg +0 -0
  57. /package/{system → dist}/images/icons/community.svg +0 -0
  58. /package/{system → dist}/images/icons/scrapers.svg +0 -0
  59. /package/{system → dist}/images/icons/sources.svg +0 -0
  60. /package/{system → dist}/images/icons/standard.svg +0 -0
  61. /package/{system → dist}/images/lockup.svg +0 -0
  62. /package/{system → dist}/images/logo.svg +0 -0
  63. /package/{system → dist}/images/webclip.gif +0 -0
@@ -1,349 +0,0 @@
1
- /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
-
3
- /* Document
4
- ========================================================================== */
5
-
6
- /**
7
- * 1. Correct the line height in all browsers.
8
- * 2. Prevent adjustments of font size after orientation changes in iOS.
9
- */
10
-
11
- html {
12
- line-height: 1.15; /* 1 */
13
- -webkit-text-size-adjust: 100%; /* 2 */
14
- }
15
-
16
- /* Sections
17
- ========================================================================== */
18
-
19
- /**
20
- * Remove the margin in all browsers.
21
- */
22
-
23
- body {
24
- margin: 0;
25
- }
26
-
27
- /**
28
- * Render the `main` element consistently in IE.
29
- */
30
-
31
- main {
32
- display: block;
33
- }
34
-
35
- /**
36
- * Correct the font size and margin on `h1` elements within `section` and
37
- * `article` contexts in Chrome, Firefox, and Safari.
38
- */
39
-
40
- h1 {
41
- font-size: 2em;
42
- margin: 0.67em 0;
43
- }
44
-
45
- /* Grouping content
46
- ========================================================================== */
47
-
48
- /**
49
- * 1. Add the correct box sizing in Firefox.
50
- * 2. Show the overflow in Edge and IE.
51
- */
52
-
53
- hr {
54
- box-sizing: content-box; /* 1 */
55
- height: 0; /* 1 */
56
- overflow: visible; /* 2 */
57
- }
58
-
59
- /**
60
- * 1. Correct the inheritance and scaling of font size in all browsers.
61
- * 2. Correct the odd `em` font sizing in all browsers.
62
- */
63
-
64
- pre {
65
- font-family: monospace, monospace; /* 1 */
66
- font-size: 1em; /* 2 */
67
- }
68
-
69
- /* Text-level semantics
70
- ========================================================================== */
71
-
72
- /**
73
- * Remove the gray background on active links in IE 10.
74
- */
75
-
76
- a {
77
- background-color: transparent;
78
- }
79
-
80
- /**
81
- * 1. Remove the bottom border in Chrome 57-
82
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
83
- */
84
-
85
- abbr[title] {
86
- border-bottom: none; /* 1 */
87
- text-decoration: underline; /* 2 */
88
- text-decoration: underline dotted; /* 2 */
89
- }
90
-
91
- /**
92
- * Add the correct font weight in Chrome, Edge, and Safari.
93
- */
94
-
95
- b,
96
- strong {
97
- font-weight: bolder;
98
- }
99
-
100
- /**
101
- * 1. Correct the inheritance and scaling of font size in all browsers.
102
- * 2. Correct the odd `em` font sizing in all browsers.
103
- */
104
-
105
- code,
106
- kbd,
107
- samp {
108
- font-family: monospace, monospace; /* 1 */
109
- font-size: 1em; /* 2 */
110
- }
111
-
112
- /**
113
- * Add the correct font size in all browsers.
114
- */
115
-
116
- small {
117
- font-size: 80%;
118
- }
119
-
120
- /**
121
- * Prevent `sub` and `sup` elements from affecting the line height in
122
- * all browsers.
123
- */
124
-
125
- sub,
126
- sup {
127
- font-size: 75%;
128
- line-height: 0;
129
- position: relative;
130
- vertical-align: baseline;
131
- }
132
-
133
- sub {
134
- bottom: -0.25em;
135
- }
136
-
137
- sup {
138
- top: -0.5em;
139
- }
140
-
141
- /* Embedded content
142
- ========================================================================== */
143
-
144
- /**
145
- * Remove the border on images inside links in IE 10.
146
- */
147
-
148
- img {
149
- border-style: none;
150
- }
151
-
152
- /* Forms
153
- ========================================================================== */
154
-
155
- /**
156
- * 1. Change the font styles in all browsers.
157
- * 2. Remove the margin in Firefox and Safari.
158
- */
159
-
160
- button,
161
- input,
162
- optgroup,
163
- select,
164
- textarea {
165
- font-family: inherit; /* 1 */
166
- font-size: 100%; /* 1 */
167
- line-height: 1.15; /* 1 */
168
- margin: 0; /* 2 */
169
- }
170
-
171
- /**
172
- * Show the overflow in IE.
173
- * 1. Show the overflow in Edge.
174
- */
175
-
176
- button,
177
- input { /* 1 */
178
- overflow: visible;
179
- }
180
-
181
- /**
182
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
183
- * 1. Remove the inheritance of text transform in Firefox.
184
- */
185
-
186
- button,
187
- select { /* 1 */
188
- text-transform: none;
189
- }
190
-
191
- /**
192
- * Correct the inability to style clickable types in iOS and Safari.
193
- */
194
-
195
- button,
196
- [type="button"],
197
- [type="reset"],
198
- [type="submit"] {
199
- -webkit-appearance: button;
200
- }
201
-
202
- /**
203
- * Remove the inner border and padding in Firefox.
204
- */
205
-
206
- button::-moz-focus-inner,
207
- [type="button"]::-moz-focus-inner,
208
- [type="reset"]::-moz-focus-inner,
209
- [type="submit"]::-moz-focus-inner {
210
- border-style: none;
211
- padding: 0;
212
- }
213
-
214
- /**
215
- * Restore the focus styles unset by the previous rule.
216
- */
217
-
218
- button:-moz-focusring,
219
- [type="button"]:-moz-focusring,
220
- [type="reset"]:-moz-focusring,
221
- [type="submit"]:-moz-focusring {
222
- outline: 1px dotted ButtonText;
223
- }
224
-
225
- /**
226
- * Correct the padding in Firefox.
227
- */
228
-
229
- fieldset {
230
- padding: 0.35em 0.75em 0.625em;
231
- }
232
-
233
- /**
234
- * 1. Correct the text wrapping in Edge and IE.
235
- * 2. Correct the color inheritance from `fieldset` elements in IE.
236
- * 3. Remove the padding so developers are not caught out when they zero out
237
- * `fieldset` elements in all browsers.
238
- */
239
-
240
- legend {
241
- box-sizing: border-box; /* 1 */
242
- color: inherit; /* 2 */
243
- display: table; /* 1 */
244
- max-width: 100%; /* 1 */
245
- padding: 0; /* 3 */
246
- white-space: normal; /* 1 */
247
- }
248
-
249
- /**
250
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
251
- */
252
-
253
- progress {
254
- vertical-align: baseline;
255
- }
256
-
257
- /**
258
- * Remove the default vertical scrollbar in IE 10+.
259
- */
260
-
261
- textarea {
262
- overflow: auto;
263
- }
264
-
265
- /**
266
- * 1. Add the correct box sizing in IE 10.
267
- * 2. Remove the padding in IE 10.
268
- */
269
-
270
- [type="checkbox"],
271
- [type="radio"] {
272
- box-sizing: border-box; /* 1 */
273
- padding: 0; /* 2 */
274
- }
275
-
276
- /**
277
- * Correct the cursor style of increment and decrement buttons in Chrome.
278
- */
279
-
280
- [type="number"]::-webkit-inner-spin-button,
281
- [type="number"]::-webkit-outer-spin-button {
282
- height: auto;
283
- }
284
-
285
- /**
286
- * 1. Correct the odd appearance in Chrome and Safari.
287
- * 2. Correct the outline style in Safari.
288
- */
289
-
290
- [type="search"] {
291
- -webkit-appearance: textfield; /* 1 */
292
- outline-offset: -2px; /* 2 */
293
- }
294
-
295
- /**
296
- * Remove the inner padding in Chrome and Safari on macOS.
297
- */
298
-
299
- [type="search"]::-webkit-search-decoration {
300
- -webkit-appearance: none;
301
- }
302
-
303
- /**
304
- * 1. Correct the inability to style clickable types in iOS and Safari.
305
- * 2. Change font properties to `inherit` in Safari.
306
- */
307
-
308
- ::-webkit-file-upload-button {
309
- -webkit-appearance: button; /* 1 */
310
- font: inherit; /* 2 */
311
- }
312
-
313
- /* Interactive
314
- ========================================================================== */
315
-
316
- /*
317
- * Add the correct display in Edge, IE 10+, and Firefox.
318
- */
319
-
320
- details {
321
- display: block;
322
- }
323
-
324
- /*
325
- * Add the correct display in all browsers.
326
- */
327
-
328
- summary {
329
- display: list-item;
330
- }
331
-
332
- /* Misc
333
- ========================================================================== */
334
-
335
- /**
336
- * Add the correct display in IE 10+.
337
- */
338
-
339
- template {
340
- display: none;
341
- }
342
-
343
- /**
344
- * Add the correct display in IE 10.
345
- */
346
-
347
- [hidden] {
348
- display: none;
349
- }
package/system/demo.html DELETED
@@ -1,185 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>PDAP design system</title>
6
- <meta content="width=device-width, initial-scale=1" name="viewport">
7
- <meta name="description" content="Design system for the Police Data Accessibility Project and its services.">
8
- <meta name="keywords" content="design, system, design system">
9
- <link href="css/normalize.css" rel="stylesheet" type="text/css">
10
- <link href="css/global-styles.css" rel="stylesheet" type="text/css">
11
- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
12
- <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js" type="text/javascript"></script>
13
- <script type="text/javascript">WebFont.load({ google: { families: ["Libre Franklin:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"] }});</script>
14
- <link rel="preconnect" href="https://fonts.googleapis.com">
15
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
16
- <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,600;0,900;1,400;1,600;1,900&display=swap" rel="stylesheet">
17
- <!-- [if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js" type="text/javascript"></script><![endif] -->
18
- <!-- Global site tag (gtag.js) - Google Analytics -->
19
- <script async src="https://www.googletagmanager.com/gtag/js?id=G-REKS6B95BL"></script>
20
- <script>
21
- window.dataLayer = window.dataLayer || [];
22
- function gtag(){dataLayer.push(arguments);}
23
- gtag('js', new Date());
24
- gtag('config', 'G-REKS6B95BL');
25
- </script>
26
- <!-- Google ads tag (gtag.js) -->
27
- <script async src="https://www.googletagmanager.com/gtag/js?id=AW-11016541790"></script>
28
- <script>
29
- window.dataLayer = window.dataLayer || [];
30
- function gtag(){dataLayer.push(arguments);}
31
- gtag('js', new Date());
32
- gtag('config', 'AW-11016541790');
33
- </script>
34
- <!-- Event snippet for newsletter signup conversion page
35
- In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
36
- <script>
37
- function gtag_report_conversion(url) {
38
- var callback = function () {
39
- if (typeof(url) != 'undefined') {
40
- window.location = url;
41
- }
42
- };
43
- gtag('event', 'conversion', {
44
- 'send_to': 'AW-11016541790/BTkiCN2cyoEYEN6sjIUp',
45
- 'event_callback': callback
46
- });
47
- return false;
48
- }
49
- </script>
50
- <link href="images/favicon.png" rel="shortcut icon" type="image/x-icon">
51
- <link href="images/webclip.gif" rel="apple-touch-icon">
52
- </head>
53
- <body>
54
- <div data-collapse="medium" data-animation="default" data-duration="400" role="banner" class="navbar nav">
55
- <a href="index.html" aria-current="page" class="brand nav-brand current"><img src="images/lockup.svg" loading="lazy" width="250" alt="Police Data Accessibility Project Logo" class="logo"></a>
56
- <div class="nav-container-last">
57
- <div class="nav-container container">
58
- <div class="menu-button nav-button">
59
- <div class="nav-menu-icon"><i class="fa fa-bars"></i></div>
60
- </div>
61
- </div>
62
- </div>
63
- <nav role="navigation" class="nav-menu">
64
- <a href="index.html" class="nav-link">Home</a>
65
- <a href="demo.html" aria-current="page" class="nav-link current">Current page</a>
66
- <a href="donate.html" class="nav-link">Page</a>
67
- </nav>
68
- </div>
69
- <div class="section">
70
- <div class="container">
71
- <h1 class="shout">Shout</h1>
72
- <p>For big messages, saying big things.</p>
73
- <h1>Heading 1</h1>
74
- <p>This is a paragraph. There's a max line length, so that things stay readable at unexpected screen and font sizes. The text is large to encourage brevity and readability.</p>
75
- <h2>Heading 2</h2>
76
- <p>Another paragraph.</p>
77
- <h3>Heading 3</h3>
78
- <p>This paragraph has <code>&lt;code&gt;</code> in it.</p>
79
- <h4>Heading 4</h4>
80
- <div>
81
- <pre><code>This is a whole code block!
82
- It has many lines.</code></pre>
83
- </div>
84
- <h5>Heading <code>code</code> 5</h5>
85
- <p>Another paragraph.</p>
86
- <h6>Heading 6</h6>
87
- <div class="small">
88
- <p>Another paragraph, inside a div with class "small".</p>
89
- </div>
90
- </div>
91
- </div>
92
- <div class="section">
93
- <div class="container small">
94
- <h3>Testimonials</h3>
95
- <div class="boxed">
96
- <p class="quote">“PDAP's work was invaluable in helping us find and access data we otherwise wouldn't have been able to.”</p>
97
- <p class="citation">&mdash;Dr. Jesse Wozniak, Director of Law & Public Policy at the <a href="https://apa-pgh.org/">Alliance for Police Accountability</a></p>
98
- </div>
99
- </div>
100
- </div>
101
- <div class="section">
102
- <div class="container">
103
- <div class="layout-grid grid-2">
104
- <div class="shout-box grid-span-2">
105
- <h1 class="shout">This is a grid layout.<br></h1>
106
- <p class="bottom-0">The grid is our main tool for layout. The div containing this paragraph and the header above it spans multiple grid columns.</p>
107
- </div>
108
- <div>
109
- <h3>This doesn't span columns.</h3>
110
- <p>Here's a button though!</p>
111
- <a href="https://airtable.com/shrbFfWk6fjzGnNsk"><div class="button">Normal button.</div></a>
112
- </div>
113
- <div>
114
- <h3>Neither does this.</h3>
115
- <p>This is a deprioritized button.</p>
116
- <a href="https://airtable.com/shrS4PAZTYVT1zSq8"><div class="button button-outline">Outline button.</div></a>
117
- </div>
118
- </div>
119
- <div class="layout-grid grid-3">
120
- <h2 class="grid-span-3 top-45 bottom-0">More grids</h2>
121
- <div>
122
- <p>For some applications, we will need custom grids.</p>
123
- </div>
124
- <div>
125
- <p>Instead of <code>grid-3</code>, make a new custom grid class with the right column widths.</p>
126
- </div>
127
- <div>
128
- <p>You may want to override the spacing, too!</p>
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
- <div class="section">
134
- <div class="container">
135
- <div class="form">
136
- <h3>Here's a little form.</h3>
137
- <p class="small">We could use more styles for these.</p>
138
- <form action="https://buttondown.email/api/emails/embed-subscribe/pdap" method="post" target="popupwindow" onsubmit="window.open('https://buttondown.email/pdap', 'popupwindow')" style="max-width:500px;">
139
- <input type="email" class="input input-text" maxlength="256" name="email" id="bd-email" placeholder="Placeholder..."/>
140
- <input type="submit" class="button" value="Get Updates"/>
141
- </form>
142
- </div>
143
- </div>
144
- </div>
145
- <div class="section">
146
- <div class="container">
147
- <div class="layout-grid grid-2 top-45">
148
- <h2 class="grid-span-2">How do you make nice tiles with icons?</h2>
149
- <div>
150
- <img class="tile-icon" src="images/icons/automation.svg">
151
- <h3>Good question.</h3>
152
- <p>Here's how you do it! These are custom SVG icons.</p>
153
- </div>
154
- <div>
155
- <img class="tile-icon" src="images/icons/standard.svg">
156
- <h3>This is another tile.</h3>
157
- <p><i class="fa fa-info-circle"></i> Here's how to do a <a href="https://fontawesome.com/">fontawesome</a> icon.</p>
158
- </div>
159
- </div>
160
- </div>
161
- </div>
162
- <div class="section">
163
- <div class="airtable-box">
164
- <div class="container">
165
- <p><a href="https://airtable.com/shrUAtA8qYasEaepI">Always link to the source</a> of an embed.</p>
166
- </div>
167
- <iframe class="airtable-embed" src="https://airtable.com/embed/shrUAtA8qYasEaepI?backgroundColor=gray&viewControls=on" frameborder="0" onmousewheel="scroll" width="100%" height="750" style="background: transparent; border: 1px solid #512a4f;"></iframe>
168
- </div>
169
- </div>
170
- <div class="footer section">
171
- <div class="container">
172
- <div class="footer-actions">
173
- <a href="https://github.com/orgs/Police-Data-Accessibility-Project" class="button button-footer">GitHub</a>
174
- <a href="https://discord.gg/wMqex8nKZJ" class="button button-footer">Discord</a>
175
- <a href="https://www.linkedin.com/company/pdap" class="button button-footer">LinkedIn</a>
176
- </div>
177
- <p class="footer-p">© 2023 Police Data Accessibility Project<br></p>
178
- <p class="footer-p">PDAP is a non-profit. EIN: 85-4207132. <a href="https://docs.pdap.io/meta/policy/pdap-privacy-policy" alt="Privacy Policy">Privacy Policy</a>. <a href="mailto:contact@pdap.io">contact@pdap.io</a><br><br></p>
179
- <p class="footer-p"><a href="https://www.guidestar.org/profile/85-4207132" target="_blank"><img src="https://widgets.guidestar.org/gximage2?o=9973356&l=v4" /></a><img src="images/acronym.svg" loading="lazy" width="150" alt="" class="footer-logo"></p>
180
- </div>
181
- </div>
182
- <script src="js/nav.js" type="text/javascript"></script>
183
- <!-- [if lte IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/placeholders/3.0.2/placeholders.min.js"></script><![endif] -->
184
- </body>
185
- </html>
package/system/js/nav.js DELETED
@@ -1,12 +0,0 @@
1
- document.addEventListener("DOMContentLoaded", function() {
2
- var menuButton = document.querySelector(".menu-button");
3
- var navMenu = document.querySelector(".nav-menu");
4
-
5
- menuButton.addEventListener("click", function() {
6
- if (navMenu.style.display === "none" || navMenu.style.display === "") {
7
- navMenu.style.display = "block";
8
- } else {
9
- navMenu.style.display = "none";
10
- }
11
- });
12
- });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes