@nice-digital/nds-core 1.3.4-alpha.0 → 2.0.1-alpha.0

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 (43) hide show
  1. package/package.json +3 -3
  2. package/scss/colours/_index.scss +1 -0
  3. package/scss/colours/tokens/_alias.scss +163 -0
  4. package/scss/colours/tokens/_global.scss +47 -0
  5. package/scss/{helpers/_helpers-focus.scss → focus/_index.scss} +15 -11
  6. package/scss/{helpers/_helpers-glyphs.scss → glyphs/_index.scss} +12 -10
  7. package/scss/layout/_index.scss +43 -0
  8. package/scss/media-queries/_index.scss +29 -0
  9. package/scss/media-queries/vendor/_mq.scss +307 -0
  10. package/scss/{settings/_settings-modular-scale.scss → modular-scale/_index.scss} +9 -7
  11. package/scss/spacing/_index.scss +31 -0
  12. package/scss/typography/{_typography-headings.scss → _headings.scss} +20 -19
  13. package/scss/typography/_helpers.scss +172 -0
  14. package/scss/typography/_index.scss +4 -0
  15. package/scss/typography/_links.scss +78 -0
  16. package/scss/{settings/_settings-typography.scss → typography/_settings.scss} +38 -34
  17. package/scss/{helpers/_helpers-utils.scss → utils/_index.scss} +22 -19
  18. package/scss/{vendor/_vendor-is.scss → utils/vendor/_is.scss} +8 -6
  19. package/scss/visibility/_index.scss +65 -0
  20. package/scss/core.scss +0 -4
  21. package/scss/helpers/_helpers-clearfix.scss +0 -23
  22. package/scss/helpers/_helpers-lists.scss +0 -45
  23. package/scss/helpers/_helpers-print.scss +0 -35
  24. package/scss/helpers/_helpers-text.scss +0 -21
  25. package/scss/helpers/_helpers-visibility.scss +0 -37
  26. package/scss/helpers/_helpers.scss +0 -2
  27. package/scss/layout/_layout-container.scss +0 -12
  28. package/scss/layout/_layout.scss +0 -1
  29. package/scss/settings/_settings-breakpoints.scss +0 -25
  30. package/scss/settings/_settings-colour-global.scss +0 -27
  31. package/scss/settings/_settings-colours-nice.scss +0 -80
  32. package/scss/settings/_settings-colours-semantic.scss +0 -247
  33. package/scss/settings/_settings-glyphs.scss +0 -3
  34. package/scss/settings/_settings-layout.scss +0 -15
  35. package/scss/settings/_settings-mq.scss +0 -17
  36. package/scss/settings/_settings-print.scss +0 -5
  37. package/scss/settings/_settings-spacing.scss +0 -43
  38. package/scss/settings/_settings.scss +0 -4
  39. package/scss/typography/_typography-helpers.scss +0 -148
  40. package/scss/typography/_typography-links.scss +0 -73
  41. package/scss/typography/_typography.scss +0 -1
  42. package/scss/vendor/_vendor-math.scss +0 -79
  43. package/scss/vendor/_vendor.scss +0 -2
@@ -1,79 +0,0 @@
1
- @use "sass:math";
2
-
3
- @function power ($x, $n) {
4
- $ret: 1;
5
-
6
- @if $n > 0 {
7
- @for $i from 1 through $n {
8
- $ret: $ret * $x;
9
- }
10
- } @else {
11
- @for $i from $n to 0 {
12
- $ret: math.div($ret, $x);
13
- }
14
- }
15
-
16
- @return $ret;
17
- }
18
-
19
- @function factorial ($x) {
20
- $ret: 1;
21
-
22
- @if $x > 0 {
23
- @while $x > 0 {
24
- $ret: $ret * $x;
25
-
26
- $x: $x - 1;
27
- }
28
- }
29
-
30
- @return $ret;
31
- }
32
-
33
- @function sin ($x) {
34
- $ret: 0;
35
-
36
- @for $n from 0 to 25 {
37
- $ret: $ret + math.div(power(-1, $n) * power($x, 2 * $n + 1), factorial(2 * $n + 1));
38
- }
39
-
40
- @return $ret;
41
- }
42
-
43
- @function cos ($x) {
44
- $ret: 0;
45
-
46
- @for $n from 0 to 25 {
47
- $ret: $ret + math.div(power(-1, $n) * power($x, 2 * $n), factorial(2 * $n));
48
- }
49
-
50
- @return $ret;
51
- }
52
-
53
- @function exp ($x) {
54
- $ret: 0;
55
-
56
- @for $n from 0 to 25 {
57
- $ret: $ret + math.div(power($x, $n), factorial($n));
58
- }
59
-
60
- @return $ret;
61
- }
62
-
63
- @function ln($x) {
64
- $ret: 0;
65
- $n: 1;
66
- $dx: .001;
67
-
68
- @while $n <= $x {
69
- $ret: $ret + math.div($dx, $n);
70
-
71
- $n: $n + $dx;
72
- }
73
-
74
- @return $ret;
75
- }
76
-
77
- @function sqrt($x) {
78
- @return exp(0.5 * ln($x));
79
- }
@@ -1,2 +0,0 @@
1
- @import 'vendor-is',
2
- 'vendor-math';