@daffodil/design 0.42.3 → 0.43.1

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.
Files changed (91) hide show
  1. package/esm2020/molecules/callout/callout/callout.component.mjs +2 -2
  2. package/esm2020/molecules/card/card/card.component.mjs +2 -2
  3. package/esm2020/molecules/hero/hero/hero.component.mjs +2 -2
  4. package/esm2020/molecules/image-list/image-list.component.mjs +2 -2
  5. package/esm2020/molecules/list/list/list.component.mjs +2 -2
  6. package/esm2020/molecules/paginator/paginator.component.mjs +2 -2
  7. package/fesm2015/daffodil-design.mjs +12 -12
  8. package/fesm2015/daffodil-design.mjs.map +1 -1
  9. package/fesm2020/daffodil-design.mjs +12 -12
  10. package/fesm2020/daffodil-design.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/{src/scss → scss}/README.md +0 -0
  13. package/scss/accessibility/_errors.scss +12 -0
  14. package/scss/accessibility/_index.scss +1 -0
  15. package/scss/core/_index.scss +4 -0
  16. package/scss/core/map/map-deep-check/map-deep-check.scss +26 -0
  17. package/scss/core/map/map-deep-check/map-deep-check.spec.scss +43 -0
  18. package/scss/core/map/map-deep-get/map-deep-get.scss +27 -0
  19. package/scss/core/map/map-deep-get/map-deep-get.spec.scss +25 -0
  20. package/scss/core/string/split/string-split.scss +33 -0
  21. package/scss/core/string/split/string-split.spec.scss +35 -0
  22. package/scss/daff-global.scss +49 -0
  23. package/scss/daff-typography.scss +55 -0
  24. package/scss/daff-util.scss +21 -0
  25. package/scss/interactions/_index.scss +1 -0
  26. package/scss/interactions/mouse/_clickable.scss +22 -0
  27. package/scss/layout/_breakpoint.scss +21 -0
  28. package/scss/layout/_index.scss +2 -0
  29. package/scss/layout/_variables.scss +13 -0
  30. package/scss/theme.scss +77 -0
  31. package/scss/theming/README.md +59 -0
  32. package/scss/theming/_color-palettes.scss +116 -0
  33. package/scss/theming/_configure-palette.scss +20 -0
  34. package/scss/theming/_configure-theme.scss +68 -0
  35. package/scss/theming/_get-color.scss +18 -0
  36. package/scss/theming/_index.scss +6 -0
  37. package/scss/theming/_theme-css-variables.scss +43 -0
  38. package/scss/theming/contrast/_index.scss +5 -0
  39. package/scss/theming/contrast/contrast-ratio/contrast-ratio.scss +11 -0
  40. package/scss/theming/contrast/contrast-ratio/contrast-ratio.spec.scss +0 -0
  41. package/scss/theming/contrast/luminance/_variables.scss +268 -0
  42. package/scss/theming/contrast/luminance/luminance.scss +19 -0
  43. package/scss/theming/contrast/luminance/luminance.spec.scss +24 -0
  44. package/scss/theming/contrast/text-contrast/text-contrast.scss +34 -0
  45. package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +0 -0
  46. package/scss/theming/illuminate/illuminate.scss +145 -0
  47. package/scss/theming/illuminate/illuminate.spec.scss +15 -0
  48. package/scss/theming/prebuilt/internal-theme.scss +13 -0
  49. package/scss/typography/README.md +88 -0
  50. package/scss/typography/_classes.scss +20 -0
  51. package/scss/typography/_index.scss +5 -0
  52. package/scss/typography/mixins/_font-weight.scss +18 -0
  53. package/scss/typography/mixins/_sizes.scss +84 -0
  54. package/scss/typography/mixins/_text-transform.scss +4 -0
  55. package/scss/typography/mixins/_text-truncate.scss +23 -0
  56. package/scss/typography/utilities/_index.scss +1 -0
  57. package/scss/typography/utilities/_variables.scss +12 -0
  58. package/src/atoms/button/button-theme-variants/button.scss +35 -0
  59. package/src/atoms/button/button-theme-variants/focus.scss +6 -0
  60. package/src/atoms/button/button-theme-variants/icon.scss +21 -0
  61. package/src/atoms/button/button-theme-variants/raised.scss +56 -0
  62. package/src/atoms/button/button-theme-variants/stroked.scss +36 -0
  63. package/src/atoms/button/button-theme-variants/underline.scss +9 -0
  64. package/src/atoms/button/button-theme.scss +570 -0
  65. package/src/atoms/form/error-message/error-message-theme.scss +7 -0
  66. package/src/atoms/form/form-field/form-field/form-field-theme.scss +38 -0
  67. package/src/atoms/form/input/input-theme.scss +16 -0
  68. package/src/atoms/form/radio/radio.scss +0 -0
  69. package/src/atoms/form/select/select/select-theme.scss +19 -0
  70. package/src/atoms/loading-icon/loading-icon-theme.scss +57 -0
  71. package/src/atoms/progress-indicator/progress-indicator-theme.scss +60 -0
  72. package/src/molecules/accordion/accordion-item/accordion-item-theme.scss +12 -0
  73. package/src/molecules/article/article/_stops-article-cascade.scss +7 -0
  74. package/src/molecules/article/article/article-theme.scss +78 -0
  75. package/src/molecules/callout/callout-theme.scss +59 -0
  76. package/src/molecules/card/card/card-theme-variants/basic-card.scss +6 -0
  77. package/src/molecules/card/card/card-theme-variants/linkable-card.scss +23 -0
  78. package/src/molecules/card/card/card-theme-variants/stroked-card.scss +3 -0
  79. package/src/molecules/card/card/card-theme.scss +186 -0
  80. package/src/molecules/hero/hero-theme.scss +59 -0
  81. package/src/molecules/list/list/list-theme.scss +68 -0
  82. package/src/molecules/media-gallery/media-gallery-theme.scss +20 -0
  83. package/src/molecules/modal/modal-theme.scss +9 -0
  84. package/src/molecules/navbar/navbar-theme.scss +57 -0
  85. package/src/molecules/paginator/paginator-theme.scss +72 -0
  86. package/src/molecules/sidebar/sidebar/sidebar-theme.scss +13 -0
  87. package/src/molecules/sidebar/sidebar-viewport/sidebar-viewport-theme.scss +11 -0
  88. package/daff-global.scss +0 -2
  89. package/daff-theme.scss +0 -3634
  90. package/daff-typography.scss +0 -505
  91. package/daff-util.scss +0 -377
@@ -1,505 +0,0 @@
1
- //
2
- // @docs
3
- //
4
- // `daff-typography` is a generic typography library that
5
- // sets common typography settings for the daffodil design
6
- // package. It IS NOT necessary, but can be used.
7
- //
8
- // @note You SHOULD NOT import this as often as you like,
9
- // as it only contains CSS
10
- // and will effect your final compiled stylesheet size.
11
- //
12
- // @usage
13
- // ```
14
- //
15
- // ```
16
-
17
- //
18
- // @docs
19
- //
20
- // Sensible breakpoints to be used for layouts and interfaces.
21
- // These breakpoints are based on common devices viewport widths.
22
- $breakpoints: (
23
- desktop: 1920px,
24
- laptop: 1440px,
25
- small-laptop: 1200px,
26
- big-tablet: 1024px,
27
- tablet: 768px,
28
- mobile: 480px
29
- );
30
-
31
- //
32
- // Take a the list of breakpoints and retrieves the defined point.
33
- // If an invalid breakpoint is defined, it will display a warning.
34
- //
35
- // @usage
36
- // ```
37
- // @include breakpoint(mobile) {}
38
- // ```
39
- //
40
- @mixin breakpoint($point) {
41
- @if not map-has-key($map: $breakpoints, $key: $point) {
42
- @warn 'breakpoint(): "#{$key}" is not defined in your $breakpoints setting.';
43
- }
44
-
45
- @media (min-width: map-get($breakpoints, $point)) {
46
- @content;
47
- }
48
- }
49
-
50
- $body-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica,
51
- Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
52
- $base-font-family: $body-font-family;
53
- $monospace-font-family: ui-monospace, 'SFMono-Regular', SF Mono, Menlo, Consolas,
54
- 'Liberation Mono', monospace;
55
-
56
- // deprecated
57
- $desktop-font-size: 16px;
58
- $mobile-font-size: 16px;
59
-
60
- $large-font-size: 1.5rem;
61
- $medium-font-size: 1.25rem;
62
- $normal-font-size: 1rem;
63
- $small-font-size: 0.875rem;
64
-
65
- //
66
- // @docs
67
- //
68
- // Changes the weight (boldness) of text to 700
69
- //
70
- // @usage
71
- // ```
72
- // @include embolden(500);
73
- // ```
74
- //
75
- @mixin embolden($weight: 700) {
76
- font-weight: $weight;
77
- }
78
-
79
- //
80
- // @docs
81
- //
82
- // Changes the casing of a piece of text to uppercase
83
- //
84
- // @usage
85
- // ```
86
- // @include uppercase();
87
- // ```
88
- //
89
- @mixin uppercase() {
90
- text-transform: uppercase;
91
- }
92
-
93
- //
94
- // @docs
95
- //
96
- // Forces a line of text (with a fixed width) to ellipsis
97
- // once it reaches the width of its container.
98
- //
99
- // @usage
100
- // ```
101
- // @include single-line-ellipsis();
102
- // ```
103
- @mixin single-line-ellipsis() {
104
- display: block;
105
- overflow: hidden;
106
- text-overflow: ellipsis;
107
- white-space: nowrap;
108
- }
109
-
110
- @mixin headline-xl() {
111
- @include embolden();
112
- font-size: 2.5rem;
113
- line-height: 2.75rem;
114
-
115
- @include breakpoint(tablet) {
116
- font-size: 3.5rem;
117
- line-height: 4rem;
118
- }
119
- }
120
-
121
- @mixin headline-lg() {
122
- @include embolden();
123
- font-size: 2rem;
124
- line-height: 2.25rem;
125
-
126
- @include breakpoint(tablet) {
127
- font-size: 3rem;
128
- line-height: 3.5rem;
129
- }
130
- }
131
-
132
- @mixin headline-md() {
133
- @include embolden();
134
- font-size: 1.5rem;
135
- line-height: 1.75rem;
136
-
137
- @include breakpoint(tablet) {
138
- font-size: 2rem;
139
- line-height: 2.5rem;
140
- }
141
- }
142
-
143
- @mixin headline-sm() {
144
- @include embolden();
145
- font-size: 1.25rem;
146
- line-height: 1.5rem;
147
-
148
- @include breakpoint(tablet) {
149
- font-size: 1.5rem;
150
- line-height: 2rem;
151
- }
152
- }
153
- @mixin body-lg() {
154
- font-size: 1.5rem;
155
- font-weight: 400;
156
- line-height: 2rem;
157
- }
158
-
159
- @mixin body-md() {
160
- font-size: 1.25rem;
161
- font-weight: 400;
162
- line-height: 1.75rem;
163
- }
164
-
165
- @mixin body-sm() {
166
- font-size: 1rem;
167
- font-weight: 400;
168
- line-height: 1.5rem;
169
- }
170
-
171
- @mixin body-xs() {
172
- font-size: 0.875rem;
173
- font-weight: 400;
174
- line-height: 1.25rem;
175
- }
176
-
177
- @mixin subheading() {
178
- @include uppercase();
179
- font-size: 0.875rem;
180
- font-weight: 600;
181
- letter-spacing: 0.03125rem;
182
- line-height: 1rem;
183
- }
184
-
185
- @mixin caption() {
186
- font-size: 0.75rem;
187
- line-height: 1rem;
188
- font-weight: 400;
189
- }
190
-
191
-
192
- /*! modern-normalize | MIT License | https://github.com/sindresorhus/modern-normalize */
193
-
194
- /* Document
195
- ========================================================================== */
196
-
197
- /**
198
- * Use a better box model (opinionated).
199
- */
200
-
201
- html {
202
- box-sizing: border-box;
203
- }
204
-
205
- *,
206
- *::before,
207
- *::after {
208
- box-sizing: inherit;
209
- }
210
-
211
- /**
212
- * Use a more readable tab size (opinionated).
213
- */
214
-
215
- :root {
216
- -moz-tab-size: 4;
217
- tab-size: 4;
218
- }
219
-
220
- /**
221
- * 1. Correct the line height in all browsers.
222
- * 2. Prevent adjustments of font size after orientation changes in iOS.
223
- */
224
-
225
- html {
226
- line-height: 1.15; /* 1 */
227
- -webkit-text-size-adjust: 100%; /* 2 */
228
- }
229
-
230
- /* Sections
231
- ========================================================================== */
232
-
233
- /**
234
- * Remove the margin in all browsers.
235
- */
236
-
237
- body {
238
- margin: 0;
239
- }
240
-
241
- /**
242
- * Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
243
- */
244
-
245
- body {
246
- font-family:
247
- -apple-system,
248
- BlinkMacSystemFont,
249
- 'Segoe UI',
250
- Roboto,
251
- Helvetica,
252
- Arial,
253
- sans-serif,
254
- 'Apple Color Emoji',
255
- 'Segoe UI Emoji',
256
- 'Segoe UI Symbol';
257
- }
258
-
259
- /* Grouping content
260
- ========================================================================== */
261
-
262
- /**
263
- * Add the correct height in Firefox.
264
- */
265
-
266
- hr {
267
- height: 0;
268
- }
269
-
270
- /* Text-level semantics
271
- ========================================================================== */
272
-
273
- /**
274
- * Add the correct text decoration in Chrome, Edge, and Safari.
275
- */
276
-
277
- abbr[title] {
278
- text-decoration: underline dotted;
279
- }
280
-
281
- /**
282
- * Add the correct font weight in Chrome, Edge, and Safari.
283
- */
284
-
285
- b,
286
- strong {
287
- font-weight: bolder;
288
- }
289
-
290
- /**
291
- * 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
292
- * 2. Correct the odd `em` font sizing in all browsers.
293
- */
294
-
295
- code,
296
- kbd,
297
- samp,
298
- pre {
299
- font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; /* 1 */
300
- font-size: 1em; /* 2 */
301
- }
302
-
303
- /**
304
- * Add the correct font size in all browsers.
305
- */
306
-
307
- small {
308
- font-size: 80%;
309
- }
310
-
311
- /**
312
- * Prevent `sub` and `sup` elements from affecting the line height in all browsers.
313
- */
314
-
315
- sub,
316
- sup {
317
- font-size: 75%;
318
- line-height: 0;
319
- position: relative;
320
- vertical-align: baseline;
321
- }
322
-
323
- sub {
324
- bottom: -0.25em;
325
- }
326
-
327
- sup {
328
- top: -0.5em;
329
- }
330
-
331
- /* Forms
332
- ========================================================================== */
333
-
334
- /**
335
- * 1. Change the font styles in all browsers.
336
- * 2. Remove the margin in Firefox and Safari.
337
- */
338
-
339
- button,
340
- input,
341
- optgroup,
342
- select,
343
- textarea {
344
- font-family: inherit; /* 1 */
345
- font-size: 100%; /* 1 */
346
- line-height: 1.15; /* 1 */
347
- margin: 0; /* 2 */
348
- }
349
-
350
- /**
351
- * Remove the inheritance of text transform in Edge and Firefox.
352
- * 1. Remove the inheritance of text transform in Firefox.
353
- */
354
-
355
- button,
356
- select { /* 1 */
357
- text-transform: none;
358
- }
359
-
360
- /**
361
- * Correct the inability to style clickable types in iOS and Safari.
362
- */
363
-
364
- button,
365
- [type='button'],
366
- [type='reset'],
367
- [type='submit'] {
368
- -webkit-appearance: button;
369
- }
370
-
371
- /**
372
- * Remove the inner border and padding in Firefox.
373
- */
374
-
375
- button::-moz-focus-inner,
376
- [type='button']::-moz-focus-inner,
377
- [type='reset']::-moz-focus-inner,
378
- [type='submit']::-moz-focus-inner {
379
- border-style: none;
380
- padding: 0;
381
- }
382
-
383
- /**
384
- * Restore the focus styles unset by the previous rule.
385
- */
386
-
387
- button:-moz-focusring,
388
- [type='button']:-moz-focusring,
389
- [type='reset']:-moz-focusring,
390
- [type='submit']:-moz-focusring {
391
- outline: 1px dotted ButtonText;
392
- }
393
-
394
- /**
395
- * Correct the padding in Firefox.
396
- */
397
-
398
- fieldset {
399
- padding: 0.35em 0.75em 0.625em;
400
- }
401
-
402
- /**
403
- * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
404
- */
405
-
406
- legend {
407
- padding: 0;
408
- }
409
-
410
- /**
411
- * Add the correct vertical alignment in Chrome and Firefox.
412
- */
413
-
414
- progress {
415
- vertical-align: baseline;
416
- }
417
-
418
- /**
419
- * Correct the cursor style of increment and decrement buttons in Safari.
420
- */
421
-
422
- [type='number']::-webkit-inner-spin-button,
423
- [type='number']::-webkit-outer-spin-button {
424
- height: auto;
425
- }
426
-
427
- /**
428
- * 1. Correct the odd appearance in Chrome and Safari.
429
- * 2. Correct the outline style in Safari.
430
- */
431
-
432
- [type='search'] {
433
- -webkit-appearance: textfield; /* 1 */
434
- outline-offset: -2px; /* 2 */
435
- }
436
-
437
- /**
438
- * Remove the inner padding in Chrome and Safari on macOS.
439
- */
440
-
441
- [type='search']::-webkit-search-decoration {
442
- -webkit-appearance: none;
443
- }
444
-
445
- /**
446
- * 1. Correct the inability to style clickable types in iOS and Safari.
447
- * 2. Change font properties to `inherit` in Safari.
448
- */
449
-
450
- ::-webkit-file-upload-button {
451
- -webkit-appearance: button; /* 1 */
452
- font: inherit; /* 2 */
453
- }
454
-
455
- /* Interactive
456
- ========================================================================== */
457
-
458
- /*
459
- * Add the correct display in Chrome and Safari.
460
- */
461
-
462
- summary {
463
- display: list-item;
464
- }
465
-
466
-
467
- body,
468
- html {
469
- font-family: $body-font-family;
470
- font-size: 16px;
471
- font-weight: 400;
472
- line-height: 1.5;
473
- -webkit-font-smoothing: antialiased;
474
- -moz-osx-font-smoothing: grayscale;
475
- }
476
-
477
- a {
478
- color: currentColor;
479
-
480
- &:hover {
481
- text-decoration: none;
482
- }
483
- }
484
-
485
- h1,
486
- h2,
487
- h3,
488
- h4,
489
- h5,
490
- h6 {
491
- margin: 0;
492
- padding: 0;
493
- }
494
-
495
- .embolden { /* stylelint-disable-line selector-class-pattern */
496
- @include embolden();
497
- }
498
-
499
- .uppercase { /* stylelint-disable-line selector-class-pattern */
500
- @include uppercase();
501
- }
502
-
503
- .single-line-ellipsis { /* stylelint-disable-line selector-class-pattern */
504
- @include single-line-ellipsis();
505
- }