@dscout/particle 1.0.0-alpha.2 → 1.0.0-alpha.3
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/lib/components/advanced_options.js +15 -3
- package/lib/components/attribute_input.js +15 -3
- package/lib/components/attribute_selector.js +14 -3
- package/lib/components/button.js +18 -6
- package/lib/components/button_control.js +15 -3
- package/lib/components/button_icon.js +142 -40
- package/lib/components/button_mode.js +18 -6
- package/lib/components/button_plain.js +16 -4
- package/lib/components/card.js +12 -2
- package/lib/components/checkbox_input.js +15 -3
- package/lib/components/collapsing_menu.js +15 -3
- package/lib/components/common_button.js +65 -5
- package/lib/components/common_input.js +15 -3
- package/lib/components/container.js +74 -14
- package/lib/components/container_header.js +2 -2
- package/lib/components/drag_and_drop.js +14 -3
- package/lib/components/dropdown_input_toggle.js +15 -4
- package/lib/components/editing_container.js +2 -3
- package/lib/components/email_input.js +15 -3
- package/lib/components/file_input.js +15 -3
- package/lib/components/link_text.js +283 -0
- package/lib/components/number_input.js +15 -3
- package/lib/components/password_input.js +15 -3
- package/lib/components/radio_input.js +15 -3
- package/lib/components/range_input.js +15 -3
- package/lib/components/search_input.js +15 -3
- package/lib/components/select_input.js +15 -3
- package/lib/components/tags_input.js +16 -3
- package/lib/components/text_input.js +15 -3
- package/lib/components/textarea.js +15 -3
- package/lib/components/togglable_fieldset.js +15 -3
- package/lib/components/toggle.js +15 -3
- package/lib/index.js +8 -16
- package/lib/stylesheets/particle.css +4495 -3192
- package/lib/stylesheets/particle.css.map +1 -0
- package/lib/stylesheets/particle.min.css +1 -1
- package/lib/stylesheets/particle.min.css.gz +0 -0
- package/lib/utils/data_attributes.js +18 -0
- package/lib/utils/markscout.js +2 -2
- package/package.json +29 -27
- package/styles/_base.scss +5 -8
- package/styles/_reset.scss +5 -0
- package/styles/components/_icons.scss +7 -14
- package/styles/components/attribute_selector/_base.scss +3 -3
- package/styles/components/button_icon/_base.scss +22 -0
- package/styles/components/button_icon/themes/_bandit.scss +5 -0
- package/styles/components/button_icon/themes/_researcher.scss +5 -0
- package/styles/components/button_icon/themes/_theme_builder.scss +12 -0
- package/styles/components/buttons/_base.scss +245 -382
- package/styles/components/buttons/themes/_bandit.scss +16 -16
- package/styles/components/buttons/themes/_theme_builder.scss +49 -73
- package/styles/components/card/_base.scss +0 -8
- package/styles/components/container/_base.scss +10 -20
- package/styles/components/container/themes/_theme_builder.scss +15 -14
- package/styles/components/footnote/_base.scss +1 -1
- package/styles/components/input_group/_base.scss +4 -4
- package/styles/components/link_text/_base.scss +52 -0
- package/styles/components/link_text/themes/_bandit.scss +5 -0
- package/styles/components/link_text/themes/_researcher.scss +5 -0
- package/styles/components/link_text/themes/_theme_builder.scss +11 -0
- package/styles/components/menu/_base.scss +2 -3
- package/styles/components/pill/_base.scss +13 -0
- package/styles/components/segmented_controls/_base.scss +1 -1
- package/styles/components/swappable/_base.scss +10 -2
- package/styles/particle.scss +2 -2
- package/styles/themes/_bandit.scss +40 -5
- package/styles/themes/_bandit_colors.scss +9 -0
- package/styles/themes/_researcher.scss +8 -5
- package/styles/themes/_researcher_colors.scss +91 -0
- package/styles/themes/_theme_builder.scss +215 -0
- package/styles/utilities/_alignment.scss +14 -137
- package/styles/utilities/_borders.scss +0 -44
- package/styles/utilities/_colors.scss +76 -605
- package/styles/utilities/_dimensions.scss +51 -265
- package/styles/utilities/_display.scss +1 -64
- package/styles/utilities/_overflow.scss +0 -55
- package/styles/utilities/_radii.scss +102 -30
- package/styles/utilities/_shadows.scss +0 -59
- package/styles/utilities/_spacing.scss +69 -534
- package/styles/utilities/_typography.scss +11 -333
- package/CHANGELOG.md +0 -1548
- package/lib/components/container_inner.js +0 -93
- package/lib/components/controls.js +0 -106
- package/styles/_mixins.scss +0 -134
- package/styles/_tables.scss +0 -138
- package/styles/_theme_builder.scss +0 -356
- package/styles/_variables.scss +0 -248
- package/styles/components/_links.scss +0 -141
- package/styles/css_variables/_bandit.scss +0 -45
- package/styles/css_variables/_researcher.scss +0 -5
|
@@ -1,69 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
@styleguide
|
|
3
|
-
@title Font Sizes
|
|
4
|
-
|
|
5
|
-
Use font-size classes on any text elements.
|
|
6
|
-
|
|
7
|
-
<h1 class="font-size--headline">Headline</h1>
|
|
8
|
-
|
|
9
|
-
```html
|
|
10
|
-
<h1 class="font-size--headline">Headline</h1>
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
<h3 class="font-size--subheadline">Subheadline</h3>
|
|
14
|
-
|
|
15
|
-
```html
|
|
16
|
-
<h3 class="font-size--subheadline">Subheadline</h3>
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
<span class="font-size--xxxl">XXXL Text</span>
|
|
20
|
-
|
|
21
|
-
```html
|
|
22
|
-
<span class="font-size--xxxl">XXXL Text</span>
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
<span class="font-size--xxl">XXL Text</span>
|
|
26
|
-
|
|
27
|
-
```html
|
|
28
|
-
<span class="font-size--xxl">XXL Text</span>
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
<span class="font-size--xl">XL Text</span>
|
|
32
|
-
|
|
33
|
-
```html
|
|
34
|
-
<span class="font-size--xl">XL Text</span>
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
<span class="font-size--l">Large Text</span>
|
|
38
|
-
|
|
39
|
-
```html
|
|
40
|
-
<span class="font-size--l">Large Text</span>
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
<span class="font-size--base">Base Font Size</span>
|
|
44
|
-
|
|
45
|
-
```html
|
|
46
|
-
<span class="font-size--m">Base Font Size</span>
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
<span class="font-size--s">Small Text</span>
|
|
50
|
-
|
|
51
|
-
```html
|
|
52
|
-
<span class="font-size--s">Small Text</span>
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
<span class="font-size--xs">XS Text</span>
|
|
56
|
-
|
|
57
|
-
```html
|
|
58
|
-
<span class="font-size--xs">XS Text</span>
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
<span class="font-size--xxs">XXS Text</span>
|
|
62
|
-
|
|
63
|
-
```html
|
|
64
|
-
<span class="font-size--xxs">XXS Text</span>
|
|
65
|
-
```
|
|
66
|
-
*/
|
|
1
|
+
/*=== Font size ===*/
|
|
67
2
|
|
|
68
3
|
.font-size--xxs { font-size: var(--font-size--xxs); }
|
|
69
4
|
.font-size--xs { font-size: var(--font-size--xs); }
|
|
@@ -77,164 +12,30 @@ Use font-size classes on any text elements.
|
|
|
77
12
|
.font-size--headline { font-size: var(--font-size--headline); }
|
|
78
13
|
.font-size--subheadline { font-size: var(--font-size--subheadline); }
|
|
79
14
|
|
|
80
|
-
|
|
81
|
-
@styleguide
|
|
82
|
-
@title Font Family
|
|
83
|
-
|
|
84
|
-
Set the font family to one of three supported enums:
|
|
85
|
-
|
|
86
|
-
- `stack`
|
|
87
|
-
- `emoji`
|
|
88
|
-
- `monospace`
|
|
89
|
-
|
|
90
|
-
<p class="font--stack">Default font stack</p>
|
|
91
|
-
|
|
92
|
-
```html
|
|
93
|
-
<p class="font--stack">Default font stack</p>
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
<p class="font--emoji">👍</p>
|
|
97
|
-
|
|
98
|
-
```html
|
|
99
|
-
<p class="font--emoji">👍</p>
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
<p class="font--monospace">Monospace</p>
|
|
103
|
-
|
|
104
|
-
```html
|
|
105
|
-
<p class="font--monospace">Monospace</p>
|
|
106
|
-
```
|
|
107
|
-
*/
|
|
15
|
+
/*=== Font family ===*/
|
|
108
16
|
|
|
109
17
|
.font--stack { font-family: var(--font--stack); }
|
|
110
18
|
.font--emoji { font-family: var(--font--emoji); }
|
|
111
19
|
.font--monospace { font-family: var(--font--monospace); }
|
|
112
20
|
|
|
113
|
-
|
|
114
|
-
@styleguide
|
|
115
|
-
@title Line Heights
|
|
116
|
-
|
|
117
|
-
Use the line-height class names on any text element.
|
|
118
|
-
|
|
119
|
-
<p class="line-height--copy">Regular line-height</p>
|
|
120
|
-
|
|
121
|
-
```html
|
|
122
|
-
<p class="line-height--copy">Regular line-height</p>
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
<p class="line-height--solid">Solid line-height</p>
|
|
126
|
-
|
|
127
|
-
```html
|
|
128
|
-
<p class="line-height--solid">Solid line-height</p>
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
<h3 class="line-height--title">Title line-height</h3>
|
|
132
|
-
|
|
133
|
-
```html
|
|
134
|
-
<h3 class="line-height--title">Title line-height</h3>
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
<span class="line-height--loose">Loose line-height</span>
|
|
138
|
-
|
|
139
|
-
```html
|
|
140
|
-
<span class="line-height--loose">Loose line-height</span>
|
|
141
|
-
```
|
|
142
|
-
*/
|
|
143
|
-
|
|
144
|
-
// === LINE HEIGHTS === //
|
|
145
|
-
// 1.2 Minor Third
|
|
146
|
-
// http://type-scale.com
|
|
21
|
+
/*=== Line heights ===*/
|
|
147
22
|
|
|
148
23
|
.line-height--copy { line-height: var(--line-height--copy); }
|
|
149
24
|
.line-height--solid { line-height: var(--line-height--solid); }
|
|
150
25
|
.line-height--title { line-height: var(--line-height--title); }
|
|
151
26
|
.line-height--loose { line-height: var(--line-height--loose); }
|
|
152
27
|
|
|
153
|
-
/*
|
|
154
|
-
@styleguide
|
|
155
|
-
@title Letter Spacings
|
|
156
|
-
|
|
157
|
-
Use the "tracked" classes on any text element.
|
|
158
|
-
|
|
159
|
-
<p class="tracked--loose">Loose</p>
|
|
160
|
-
|
|
161
|
-
```html
|
|
162
|
-
<p class="tracked--loose">Loose</p>
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
<p class="tracked--looser">Looser</p>
|
|
166
|
-
|
|
167
|
-
```html
|
|
168
|
-
<p class="tracked--looser">Looser</p>
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
<p class="tracked--tight">Tight</p>
|
|
172
28
|
|
|
173
|
-
|
|
174
|
-
<p class="tracked--tight">Tight</p>
|
|
175
|
-
```
|
|
29
|
+
/*=== Tracking ===*/
|
|
176
30
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
```html
|
|
180
|
-
<p class="tracked--mega">Mega</p>
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
<p class="tracked--tighter">Tighter</p>
|
|
184
|
-
|
|
185
|
-
```html
|
|
186
|
-
<p class="tracked--tighter">Tighter</p>
|
|
187
|
-
```
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
// === TRACKING === //
|
|
191
|
-
|
|
192
|
-
.tracked--tighter { letter-spacing: var(--tracked--tigher); }
|
|
31
|
+
.tracked--tighter { letter-spacing: var(--tracked--tighter); }
|
|
193
32
|
.tracked--tight { letter-spacing: var(--tracked--tight); }
|
|
194
33
|
.tracked--loose { letter-spacing: var(--tracked--loose); }
|
|
195
34
|
.tracked--looser { letter-spacing: var(--tracked--looser); }
|
|
196
35
|
.tracked--mega { letter-spacing: var(--tracked--mega); }
|
|
197
36
|
|
|
198
|
-
/*
|
|
199
|
-
@styleguide
|
|
200
|
-
@title Font Weights
|
|
201
|
-
|
|
202
|
-
Use the font weight classes on any text element.
|
|
203
|
-
|
|
204
|
-
<p class="font-weight--normal">Normal</p>
|
|
205
|
-
|
|
206
|
-
```html
|
|
207
|
-
<p class="font-weight--normal">Normal</p>
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
<span class="font-weight--semibold">Semibold</span>
|
|
211
|
-
|
|
212
|
-
```html
|
|
213
|
-
<span class="font-weight--semibold">Semibold</span>
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
<span class="font-weight--bold">Bold</span>
|
|
217
37
|
|
|
218
|
-
|
|
219
|
-
<span class="font-weight--bold">Bold</span>
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
Use numbers between 1 and 9 to set the numerical font-weight between 100 and 900.
|
|
223
|
-
|
|
224
|
-
<h1 class="font-weight--1">100</h1>
|
|
225
|
-
|
|
226
|
-
```html
|
|
227
|
-
<h1 class="font-weight--1">100</h1>
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
<p class="font-weight--7">700</p>
|
|
231
|
-
|
|
232
|
-
```html
|
|
233
|
-
<p class="font-weight--7">700</p>
|
|
234
|
-
```
|
|
235
|
-
*/
|
|
236
|
-
|
|
237
|
-
// === FONT WEIGHTS === //
|
|
38
|
+
/*=== Font weight ===*/
|
|
238
39
|
|
|
239
40
|
.font-weight--normal { font-weight: var(--font-weight--normal); }
|
|
240
41
|
.font-weight--bold { font-weight: var(--font-weight--bold); }
|
|
@@ -249,158 +50,35 @@ Use numbers between 1 and 9 to set the numerical font-weight between 100 and 900
|
|
|
249
50
|
.font-weight--8 { font-weight: 800; }
|
|
250
51
|
.font-weight--9 { font-weight: 900; }
|
|
251
52
|
|
|
252
|
-
/*
|
|
253
|
-
@styleguide
|
|
254
|
-
@title Text Transform
|
|
255
|
-
|
|
256
|
-
Apply the following `text-transform` properties:
|
|
257
|
-
|
|
258
|
-
- `capitalize`
|
|
259
|
-
- `uppercase`
|
|
260
|
-
- `lowercase`
|
|
261
|
-
|
|
262
|
-
<h2 class="text-transform--c">capitalize this heading</h2>
|
|
263
|
-
|
|
264
|
-
```html
|
|
265
|
-
<h2 class="text-transform--c">capitalize this heading</h2>
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
<h4 class="text-transform--u">uppercase</h4>
|
|
269
53
|
|
|
270
|
-
|
|
271
|
-
<h4 class="text-transform--u">uppercase</h4>
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
<p class="text-transform--l">MAKE IT LOWERCASE</p>
|
|
275
|
-
|
|
276
|
-
```html
|
|
277
|
-
<p class="text-transform--l">MAKE IT LOWERCASE</p>
|
|
278
|
-
```
|
|
279
|
-
*/
|
|
280
|
-
|
|
281
|
-
// === TEXT TRANSFORM === //
|
|
54
|
+
/*=== Text transform ===*/
|
|
282
55
|
|
|
283
56
|
.text-transform--c { text-transform: capitalize; }
|
|
284
57
|
.text-transform--u { text-transform: uppercase; }
|
|
285
58
|
.text-transform--l { text-transform: lowercase; }
|
|
286
59
|
|
|
287
|
-
/*
|
|
288
|
-
@styleguide
|
|
289
|
-
@title Whitespace
|
|
290
|
-
|
|
291
|
-
Apply the following `white-space` properties:
|
|
292
|
-
|
|
293
|
-
- `pre-wrap`
|
|
294
|
-
- `nowrap`
|
|
295
|
-
- `pre-line`
|
|
296
|
-
|
|
297
|
-
<p class="white-space--pre-wrap">
|
|
298
|
-
Line
|
|
299
|
-
breaks and lots of spaces
|
|
300
|
-
</p>
|
|
301
|
-
|
|
302
|
-
```html
|
|
303
|
-
<p class="white-space--pre-wrap">
|
|
304
|
-
Line
|
|
305
|
-
breaks and lots of spaces
|
|
306
|
-
</p>
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
<p class="white-space--nowrap">Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a break tag is encountered</p>
|
|
310
|
-
|
|
311
|
-
```html
|
|
312
|
-
<p class="white-space--nowrap">Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a break tag is encountered</p>
|
|
313
|
-
```
|
|
314
|
-
|
|
315
|
-
<p class="white-space--pre-line">Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary, and on line breaks</p>
|
|
316
|
-
|
|
317
|
-
```html
|
|
318
|
-
<p class="white-space--pre-line">Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary, and on line breaks</p>
|
|
319
|
-
```
|
|
320
|
-
*/
|
|
321
60
|
|
|
322
|
-
|
|
61
|
+
/*=== Whitespace ===*/
|
|
323
62
|
|
|
324
63
|
.white-space--pre-wrap { white-space: pre-wrap; }
|
|
325
64
|
.white-space--nowrap { white-space: nowrap; }
|
|
326
65
|
.white-space--pre-line { white-space: pre-line; }
|
|
327
66
|
|
|
328
67
|
|
|
329
|
-
|
|
330
|
-
@styleguide
|
|
331
|
-
@title Text Decoration
|
|
332
|
-
|
|
333
|
-
Set the following text decoration properties:
|
|
334
|
-
- `none`
|
|
335
|
-
- `underline`
|
|
336
|
-
|
|
337
|
-
Note that this sets the shorthand property, which includes `text-decoration-line`,
|
|
338
|
-
`text-decoration-style`, `text-decoration-color`, and `text-decoration-thickness`.
|
|
339
|
-
If you are applying these utility classes to an element that has one of those
|
|
340
|
-
long-hand text decoration properties set, you may run into specificity issues
|
|
341
|
-
depending on how and where those selectors are defined.
|
|
342
|
-
*/
|
|
68
|
+
/*=== Text decoration ===*/
|
|
343
69
|
|
|
344
70
|
.text-decoration--none { text-decoration: none; }
|
|
345
71
|
.text-decoration--underline { text-decoration: underline; }
|
|
346
72
|
|
|
347
|
-
/*
|
|
348
|
-
@styleguide
|
|
349
|
-
@title Line wrap
|
|
350
|
-
|
|
351
|
-
Apply `.line-wrap` to force otherwise-unbreakable words to wrap. Applies
|
|
352
|
-
`hyphens: auto`, which delegates to the browser to determine whether to
|
|
353
|
-
hyphenate (hyphenation depends on the HTML `lang` attribute).
|
|
354
|
-
|
|
355
|
-
Without `.line-wrap`:
|
|
356
|
-
|
|
357
|
-
<div class="width--10 border b-color--gray-4">
|
|
358
|
-
supercalifragilisticexpialidocious
|
|
359
|
-
</div>
|
|
360
|
-
|
|
361
|
-
```html
|
|
362
|
-
<div class="width--10 border b-color--gray-4">
|
|
363
|
-
supercalifragilisticexpialidocious
|
|
364
|
-
</div>
|
|
365
|
-
```
|
|
366
73
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
<div class="width--10 border b-color--gray-4 line-wrap">
|
|
370
|
-
supercalifragilisticexpialidocious
|
|
371
|
-
</div>
|
|
372
|
-
|
|
373
|
-
```html
|
|
374
|
-
<div class="width--10 border b-color--gray-4 line-wrap">
|
|
375
|
-
supercalifragilisticexpialidocious
|
|
376
|
-
</div>
|
|
377
|
-
```
|
|
378
|
-
*/
|
|
74
|
+
/*=== Line wrap ===*/
|
|
379
75
|
|
|
380
76
|
.line-wrap {
|
|
381
77
|
overflow-wrap: break-word;
|
|
382
78
|
hyphens: auto;
|
|
383
79
|
}
|
|
384
80
|
|
|
385
|
-
|
|
386
|
-
@styleguide
|
|
387
|
-
@title Truncate Text
|
|
388
|
-
|
|
389
|
-
Combine this class with a width to truncate text or just leave as is to
|
|
390
|
-
truncate at width of containing element.
|
|
391
|
-
|
|
392
|
-
<div class="width--10 truncate">
|
|
393
|
-
Pork chop spare ribs pork loin pastrami turkey. Tenderloin corned beef
|
|
394
|
-
t-bone, jowl ham pork loin biltong picanha.
|
|
395
|
-
</div>
|
|
396
|
-
|
|
397
|
-
```html
|
|
398
|
-
<div class="width--10 truncate">
|
|
399
|
-
Pork chop spare ribs pork loin pastrami turkey. Tenderloin corned beef
|
|
400
|
-
t-bone, jowl ham pork loin biltong picanha.
|
|
401
|
-
</div>
|
|
402
|
-
```
|
|
403
|
-
*/
|
|
81
|
+
/*=== Truncate ===*/
|
|
404
82
|
|
|
405
83
|
.truncate {
|
|
406
84
|
overflow: hidden;
|