@newlogic-digital/ui 3.0.1 → 3.1.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 (113) hide show
  1. package/README.md +8 -12
  2. package/gulpfile.js +16 -168
  3. package/package.json +13 -8
  4. package/src/emails/email.css +15 -9
  5. package/src/emails/email.twig +7 -7
  6. package/src/icons.svg +32 -0
  7. package/src/main.json +14 -27
  8. package/src/scripts/Components/+.js +2 -2
  9. package/src/scripts/Components/CookieConsent.js +66 -64
  10. package/src/scripts/Components/Form.js +28 -21
  11. package/src/scripts/Layout/+.js +2 -1
  12. package/src/scripts/Layout/Header.js +18 -0
  13. package/src/scripts/Layout/Main.js +49 -45
  14. package/src/scripts/Libraries/+.js +12 -10
  15. package/src/scripts/Libraries/Anchor.js +18 -43
  16. package/src/scripts/Libraries/CookieConsent.js +37 -58
  17. package/src/scripts/Libraries/Dialog.js +56 -55
  18. package/src/scripts/Libraries/Drawer.js +23 -23
  19. package/src/scripts/Libraries/NativeSlider.js +86 -86
  20. package/src/scripts/Libraries/ReCaptcha.js +20 -18
  21. package/src/scripts/Libraries/Ripple.js +16 -32
  22. package/src/scripts/Libraries/Stimulus.js +30 -34
  23. package/src/scripts/Libraries/Swup.js +47 -50
  24. package/src/scripts/Libraries/Tabs.js +12 -18
  25. package/src/scripts/Libraries/Tippy.js +118 -0
  26. package/src/scripts/Ui/+.js +5 -3
  27. package/src/scripts/Ui/Checkbox.js +19 -0
  28. package/src/scripts/Ui/Input.js +188 -161
  29. package/src/scripts/Ui/Radio.js +23 -0
  30. package/src/scripts/Ui/Select.js +64 -37
  31. package/src/scripts/Ui/Text.js +25 -0
  32. package/src/scripts/Utils/Functions/+.js +6 -6
  33. package/src/scripts/Utils/Functions/dataValue.js +28 -25
  34. package/src/scripts/Utils/Functions/importScript.js +9 -11
  35. package/src/scripts/Utils/Functions/importStyle.js +18 -5
  36. package/src/scripts/Utils/Functions/inView.js +19 -21
  37. package/src/scripts/Utils/Functions/loadStimulus.js +22 -20
  38. package/src/scripts/Utils/cdn.js +6 -4
  39. package/src/scripts/Utils/global.js +10 -33
  40. package/src/scripts/main.js +6 -6
  41. package/src/styles/Components/CookieConsent.css +40 -179
  42. package/src/styles/Components/Dialog/Default.css +12 -15
  43. package/src/styles/Components/Form/CookieConsent.css +7 -12
  44. package/src/styles/Components/Item/+.css +1 -0
  45. package/src/styles/Layout/+.css +2 -0
  46. package/src/{templates/Components/Dialogs/.gitkeep → styles/Layout/Header.css} +0 -0
  47. package/src/styles/Layout/Main.css +28 -63
  48. package/src/styles/Layout/Nav.css +43 -0
  49. package/src/styles/Libraries/+.css +1 -1
  50. package/src/styles/Libraries/Datepicker.css +85 -39
  51. package/src/styles/Libraries/Dialog.css +6 -5
  52. package/src/styles/Libraries/Drawer.css +15 -15
  53. package/src/styles/Libraries/Hint.css +29 -23
  54. package/src/styles/Libraries/Lazysizes.css +2 -1
  55. package/src/styles/Libraries/NativeSlider.css +19 -18
  56. package/src/styles/Libraries/Ripple.css +8 -5
  57. package/src/styles/Libraries/Tabs.css +4 -4
  58. package/src/styles/Libraries/Tippy.css +87 -0
  59. package/src/styles/Sections/+.css +1 -0
  60. package/src/styles/Ui/+.css +5 -1
  61. package/src/styles/Ui/Badge.css +33 -19
  62. package/src/styles/Ui/Btn.css +80 -53
  63. package/src/styles/Ui/Checkbox.css +80 -41
  64. package/src/styles/Ui/Dropdown.css +5 -0
  65. package/src/styles/Ui/Heading.css +12 -12
  66. package/src/styles/Ui/Icon.css +27 -8
  67. package/src/styles/Ui/Image.css +23 -0
  68. package/src/styles/Ui/Input.css +295 -220
  69. package/src/styles/Ui/Label.css +14 -0
  70. package/src/styles/Ui/Link.css +3 -3
  71. package/src/styles/Ui/Notice.css +14 -16
  72. package/src/styles/Ui/Progress.css +10 -21
  73. package/src/styles/Ui/Radio.css +3 -8
  74. package/src/styles/Ui/Select.css +63 -112
  75. package/src/styles/Ui/Switch.css +70 -0
  76. package/src/styles/Ui/{Wsw.css → Text.css} +61 -80
  77. package/src/styles/Ui/Title.css +8 -4
  78. package/src/styles/Utils/default.css +75 -67
  79. package/src/styles/Utils/icons.css +9 -0
  80. package/src/styles/Utils/keyframes.css +182 -0
  81. package/src/styles/Utils/normalize.css +223 -0
  82. package/src/styles/Utils/print.css +1 -0
  83. package/src/styles/Utils/tailwind/base.css +15 -0
  84. package/src/styles/Utils/tailwind/gutters.css +264 -263
  85. package/src/styles/Utils/theme/main.css +24 -21
  86. package/src/styles/Utils/vars.css +58 -35
  87. package/src/styles/Utils/vendor.css +1 -2
  88. package/src/styles/main.css +6 -3
  89. package/src/styles/tailwind.css +1 -4
  90. package/src/templates/Components/CookieConsent.twig +30 -0
  91. package/src/templates/Components/Dialogs/Basic.twig +7 -3
  92. package/src/templates/Layout/Header.twig +42 -0
  93. package/src/templates/Layout/Main.twig +47 -64
  94. package/src/templates/Sections/Gdpr.twig +64 -0
  95. package/src/templates/Sections/Ui.twig +2104 -0
  96. package/src/templates/dialog-basic.twig +2 -2
  97. package/src/templates/gdpr.json +11 -0
  98. package/src/templates/index.json +8 -2
  99. package/src/templates/json-tippy.twig +16 -0
  100. package/src/templates/ui.json +11 -0
  101. package/CHANGELOG +0 -231
  102. package/src/icons/selection.json +0 -1
  103. package/src/icons/style.css +0 -171
  104. package/src/icons/variables.css +0 -31
  105. package/src/scripts/Ui/Wsw.js +0 -25
  106. package/src/scripts/Utils/Functions/bodyLoaded.js +0 -12
  107. package/src/styles/Libraries/Animate.css +0 -184
  108. package/src/styles/Utils/reference.css +0 -2
  109. package/src/styles/Utils/tailwind/content.css +0 -24
  110. package/src/styles/Utils/theme/vars.css +0 -19
  111. package/src/styles/preload.css +0 -29
  112. package/src/templates/Layout/Preload.twig +0 -21
  113. package/src/templates/Sections/.gitkeep +0 -0
@@ -0,0 +1,223 @@
1
+ /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
2
+
3
+ /**
4
+ 1. Correct the line height in all browsers.
5
+ 2. Prevent adjustments of font size after orientation changes in iOS.
6
+ 3. Use a more readable tab size (opinionated).
7
+ */
8
+
9
+ html {
10
+ -webkit-text-size-adjust: 100%; /* 2 */
11
+ tab-size: 4; /* 3 */
12
+ }
13
+
14
+ /*
15
+ Sections
16
+ ========
17
+ */
18
+
19
+ /**
20
+ 1. Remove the margin in all browsers.
21
+ */
22
+
23
+ body {
24
+ margin: 0; /* 1 */
25
+ }
26
+
27
+ /*
28
+ Text-level semantics
29
+ ====================
30
+ */
31
+
32
+ /**
33
+ Add the correct text decoration in Chrome, Edge, and Safari.
34
+ */
35
+
36
+ abbr[title] {
37
+ text-decoration: underline dotted;
38
+ }
39
+
40
+ /**
41
+ Add the correct font weight in Edge and Safari.
42
+ */
43
+
44
+ b,
45
+ strong {
46
+ font-weight: var(--font-bold);
47
+ }
48
+
49
+ /**
50
+ 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
51
+ 2. Correct the odd 'em' font sizing in all browsers.
52
+ */
53
+
54
+ code,
55
+ kbd,
56
+ samp,
57
+ pre {
58
+ font-family:
59
+ ui-monospace,
60
+ SFMono-Regular,
61
+ Consolas,
62
+ 'Liberation Mono',
63
+ Menlo,
64
+ monospace; /* 1 */
65
+ font-size: 1em; /* 2 */
66
+ }
67
+
68
+ /**
69
+ Add the correct font size in all browsers.
70
+ */
71
+
72
+ small {
73
+ font-size: 80%;
74
+ }
75
+
76
+ /**
77
+ Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
78
+ */
79
+
80
+ sub,
81
+ sup {
82
+ font-size: 75%;
83
+ line-height: 0;
84
+ position: relative;
85
+ vertical-align: baseline;
86
+ }
87
+
88
+ sub {
89
+ bottom: -0.25em;
90
+ }
91
+
92
+ sup {
93
+ top: -0.5em;
94
+ }
95
+
96
+ /*
97
+ Tabular data
98
+ ============
99
+ */
100
+
101
+ /**
102
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
103
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
104
+ */
105
+
106
+ table {
107
+ text-indent: 0; /* 1 */
108
+ border-color: inherit; /* 2 */
109
+ }
110
+
111
+ /*
112
+ Forms
113
+ =====
114
+ */
115
+
116
+ /**
117
+ 1. Change the font styles in all browsers.
118
+ 2. Remove the margin in Firefox and Safari.
119
+ */
120
+
121
+ button,
122
+ input,
123
+ optgroup,
124
+ select,
125
+ textarea {
126
+ font-family: inherit; /* 1 */
127
+ font-size: 100%; /* 1 */
128
+ line-height: 1.15; /* 1 */
129
+ margin: 0; /* 2 */
130
+ }
131
+
132
+ /**
133
+ Remove the inheritance of text transform in Edge and Firefox.
134
+ */
135
+
136
+ button,
137
+ select {
138
+ text-transform: none;
139
+ }
140
+
141
+ /**
142
+ Remove the inner border and padding in Firefox.
143
+ */
144
+
145
+ ::-moz-focus-inner {
146
+ border-style: none;
147
+ padding: 0;
148
+ }
149
+
150
+ /**
151
+ Remove the additional ':invalid' styles in Firefox.
152
+ See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
153
+ */
154
+
155
+ :-moz-ui-invalid {
156
+ box-shadow: none;
157
+ }
158
+
159
+ /**
160
+ Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
161
+ */
162
+
163
+ legend {
164
+ padding: 0;
165
+ }
166
+
167
+ /**
168
+ Add the correct vertical alignment in Chrome and Firefox.
169
+ */
170
+
171
+ progress {
172
+ vertical-align: baseline;
173
+ }
174
+
175
+ /**
176
+ Correct the cursor style of increment and decrement buttons in Safari.
177
+ */
178
+
179
+ ::-webkit-inner-spin-button,
180
+ ::-webkit-outer-spin-button {
181
+ height: auto;
182
+ }
183
+
184
+ /**
185
+ 1. Correct the odd appearance in Chrome and Safari.
186
+ 2. Correct the outline style in Safari.
187
+ */
188
+
189
+ [type='search'] {
190
+ -webkit-appearance: textfield; /* 1 */
191
+ outline-offset: -2px; /* 2 */
192
+ }
193
+
194
+ /**
195
+ Remove the inner padding in Chrome and Safari on macOS.
196
+ */
197
+
198
+ ::-webkit-search-decoration {
199
+ -webkit-appearance: none;
200
+ }
201
+
202
+ /**
203
+ 1. Correct the inability to style clickable types in iOS and Safari.
204
+ 2. Change font properties to 'inherit' in Safari.
205
+ */
206
+
207
+ ::-webkit-file-upload-button {
208
+ -webkit-appearance: button; /* 1 */
209
+ font: inherit; /* 2 */
210
+ }
211
+
212
+ /*
213
+ Interactive
214
+ ===========
215
+ */
216
+
217
+ /*
218
+ Add the correct display in Chrome and Safari.
219
+ */
220
+
221
+ summary {
222
+ display: list-item;
223
+ }
@@ -0,0 +1 @@
1
+ /* empty */
@@ -0,0 +1,15 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ @layer utilities {
6
+ .current {
7
+ background-color: currentColor;
8
+ color: currentColor;
9
+ }
10
+
11
+ .animation {
12
+ animation-duration: 0.5s;
13
+ animation-fill-mode: both;
14
+ }
15
+ }