@newlogic-digital/ui 3.0.4 → 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.
- package/README.md +6 -10
- package/gulpfile.js +17 -168
- package/package.json +13 -8
- package/src/emails/email.css +3 -3
- package/src/emails/email.twig +1 -1
- package/src/icons.svg +32 -0
- package/src/main.json +12 -10
- package/src/scripts/Components/+.js +2 -2
- package/src/scripts/Components/CookieConsent.js +66 -64
- package/src/scripts/Components/Form.js +28 -21
- package/src/scripts/Layout/+.js +2 -1
- package/src/scripts/Layout/Header.js +18 -0
- package/src/scripts/Layout/Main.js +49 -45
- package/src/scripts/Libraries/+.js +12 -10
- package/src/scripts/Libraries/Anchor.js +18 -43
- package/src/scripts/Libraries/CookieConsent.js +37 -58
- package/src/scripts/Libraries/Dialog.js +56 -55
- package/src/scripts/Libraries/Drawer.js +23 -23
- package/src/scripts/Libraries/NativeSlider.js +86 -86
- package/src/scripts/Libraries/ReCaptcha.js +20 -18
- package/src/scripts/Libraries/Ripple.js +16 -32
- package/src/scripts/Libraries/Stimulus.js +30 -34
- package/src/scripts/Libraries/Swup.js +47 -50
- package/src/scripts/Libraries/Tabs.js +12 -18
- package/src/scripts/Libraries/Tippy.js +118 -0
- package/src/scripts/Ui/+.js +5 -3
- package/src/scripts/Ui/Checkbox.js +19 -0
- package/src/scripts/Ui/Input.js +188 -161
- package/src/scripts/Ui/Radio.js +23 -0
- package/src/scripts/Ui/Select.js +64 -37
- package/src/scripts/Ui/Text.js +25 -0
- package/src/scripts/Utils/Functions/+.js +6 -6
- package/src/scripts/Utils/Functions/dataValue.js +28 -25
- package/src/scripts/Utils/Functions/importScript.js +9 -11
- package/src/scripts/Utils/Functions/importStyle.js +18 -5
- package/src/scripts/Utils/Functions/inView.js +19 -21
- package/src/scripts/Utils/Functions/loadStimulus.js +22 -20
- package/src/scripts/Utils/cdn.js +6 -4
- package/src/scripts/Utils/global.js +10 -33
- package/src/scripts/main.js +6 -6
- package/src/styles/Components/CookieConsent.css +40 -179
- package/src/styles/Components/Dialog/Default.css +12 -15
- package/src/styles/Components/Form/CookieConsent.css +7 -12
- package/src/styles/Layout/+.css +2 -0
- package/src/{templates/Sections/.gitkeep → styles/Layout/Header.css} +0 -0
- package/src/styles/Layout/Main.css +28 -63
- package/src/styles/Layout/Nav.css +43 -0
- package/src/styles/Libraries/+.css +1 -1
- package/src/styles/Libraries/Datepicker.css +85 -39
- package/src/styles/Libraries/Dialog.css +6 -5
- package/src/styles/Libraries/Drawer.css +15 -14
- package/src/styles/Libraries/Hint.css +29 -23
- package/src/styles/Libraries/Lazysizes.css +2 -1
- package/src/styles/Libraries/NativeSlider.css +18 -17
- package/src/styles/Libraries/Ripple.css +8 -5
- package/src/styles/Libraries/Tabs.css +4 -4
- package/src/styles/Libraries/Tippy.css +87 -0
- package/src/styles/Ui/+.css +5 -1
- package/src/styles/Ui/Badge.css +33 -19
- package/src/styles/Ui/Btn.css +80 -53
- package/src/styles/Ui/Checkbox.css +80 -41
- package/src/styles/Ui/Dropdown.css +5 -0
- package/src/styles/Ui/Heading.css +12 -12
- package/src/styles/Ui/Icon.css +27 -8
- package/src/styles/Ui/Image.css +23 -0
- package/src/styles/Ui/Input.css +295 -220
- package/src/styles/Ui/Label.css +14 -0
- package/src/styles/Ui/Link.css +3 -3
- package/src/styles/Ui/Notice.css +14 -16
- package/src/styles/Ui/Progress.css +10 -21
- package/src/styles/Ui/Radio.css +3 -8
- package/src/styles/Ui/Select.css +63 -112
- package/src/styles/Ui/Switch.css +70 -0
- package/src/styles/Ui/{Wsw.css → Text.css} +61 -80
- package/src/styles/Ui/Title.css +8 -4
- package/src/styles/Utils/default.css +75 -67
- package/src/styles/Utils/icons.css +9 -0
- package/src/styles/Utils/keyframes.css +182 -0
- package/src/styles/Utils/normalize.css +223 -0
- package/src/styles/Utils/print.css +1 -1
- package/src/styles/Utils/tailwind/base.css +15 -0
- package/src/styles/Utils/tailwind/gutters.css +264 -263
- package/src/styles/Utils/theme/main.css +24 -21
- package/src/styles/Utils/vars.css +58 -35
- package/src/styles/Utils/vendor.css +1 -2
- package/src/styles/main.css +6 -3
- package/src/styles/tailwind.css +1 -4
- package/src/templates/Components/CookieConsent.twig +30 -0
- package/src/templates/Components/Dialogs/Basic.twig +7 -3
- package/src/templates/Layout/Header.twig +42 -0
- package/src/templates/Layout/Main.twig +52 -67
- package/src/templates/Sections/Gdpr.twig +64 -0
- package/src/templates/Sections/Ui.twig +2104 -0
- package/src/templates/dialog-basic.twig +2 -2
- package/src/templates/gdpr.json +11 -0
- package/src/templates/index.json +8 -2
- package/src/templates/json-tippy.twig +16 -0
- package/src/templates/ui.json +11 -0
- package/CHANGELOG +0 -231
- package/src/icons/iconfont.css +0 -171
- package/src/icons/selection.json +0 -1
- package/src/icons/variables.css +0 -31
- package/src/scripts/Ui/Wsw.js +0 -25
- package/src/scripts/Utils/Functions/bodyLoaded.js +0 -12
- package/src/styles/Libraries/Animate.css +0 -184
- package/src/styles/Utils/reference.css +0 -2
- package/src/styles/Utils/tailwind/content.css +0 -24
- package/src/styles/Utils/theme/vars.css +0 -19
- package/src/styles/preload.css +0 -29
|
@@ -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
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* */
|
|
1
|
+
/* empty */
|