@newlogic-digital/ui 3.5.0 → 3.7.5
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 +11 -1
- package/package.json +29 -22
- package/src/data/main.json +23 -8
- package/src/emails/styles/main/+.css +3 -0
- package/src/emails/styles/main/Base/+.css +2 -0
- package/src/emails/styles/main/Base/config.css +22 -0
- package/src/emails/styles/main/Components/+.css +1 -0
- package/src/emails/styles/main/Components/Card.css +12 -0
- package/src/emails/styles/main/Ui/+.css +3 -0
- package/src/emails/styles/main/Ui/Btn.css +78 -0
- package/src/emails/styles/main/Ui/Heading.css +8 -0
- package/src/emails/styles/main/Ui/Text.css +12 -0
- package/src/emails/styles/main.css +92 -0
- package/src/emails/templates.test/Layout.latte +16 -4
- package/src/emails/templates.test/Sections/Footer.latte +22 -0
- package/src/emails/templates.test/Sections/Header.latte +37 -0
- package/src/emails/templates.test/Sections/Text.latte +24 -0
- package/src/icons.svg +28 -28
- package/src/scripts/Components/+.js +2 -1
- package/src/scripts/Components/Drawer.js +60 -0
- package/src/scripts/Components/Popover.js +65 -0
- package/src/scripts/Layout/+.js +0 -1
- package/src/scripts/Layout/Header.js +14 -26
- package/src/scripts/Libraries/+.js +3 -5
- package/src/scripts/Libraries/CookieConsent.js +65 -52
- package/src/scripts/Libraries/Dialog.js +19 -38
- package/src/scripts/Libraries/Form.js +6 -19
- package/src/scripts/Libraries/Naja.js +22 -18
- package/src/scripts/Libraries/ReCaptcha.js +9 -26
- package/src/scripts/Libraries/Reveal.js +32 -0
- package/src/scripts/Libraries/Ripple.js +3 -3
- package/src/scripts/Libraries/Stimulus.js +50 -5
- package/src/scripts/Libraries/Swup.js +44 -59
- package/src/scripts/Libraries/Toaster.js +55 -0
- package/src/scripts/Ui/Check.js +3 -3
- package/src/scripts/Ui/Control.js +42 -34
- package/src/scripts/Ui/ControlSelect.js +6 -5
- package/src/scripts/Ui/Text.js +6 -6
- package/src/scripts/Utils/+.js +3 -3
- package/src/scripts/Utils/cdn.js +0 -1
- package/src/scripts/Utils/initAfter.js +11 -0
- package/src/scripts/Utils/naja.js +41 -0
- package/src/scripts/Utils/utilities.js +8 -0
- package/src/scripts/main.js +2 -1
- package/src/styles/Components/+.css +3 -2
- package/src/styles/Components/Dialog/+.css +2 -0
- package/src/styles/Components/Dialog/Content.css +2 -0
- package/src/styles/Components/Dialog/CookieConsent.css +17 -0
- package/src/styles/Components/Dialog/Default.css +2 -26
- package/src/styles/Components/Drawer.css +18 -0
- package/src/styles/Components/Field.css +1 -1
- package/src/styles/Components/Popover.css +1 -0
- package/src/styles/Components/Toaster.css +2 -0
- package/src/styles/Layout/Header.css +7 -39
- package/src/styles/Layout/Main.css +9 -6
- package/src/styles/Layout/Nav.css +6 -30
- package/src/styles/Libraries/+.css +0 -5
- package/src/styles/Ui/+.css +0 -1
- package/src/styles/Ui/Badge.css +1 -0
- package/src/styles/Ui/Btn.css +6 -5
- package/src/styles/Ui/Check.css +1 -1
- package/src/styles/Ui/Control.css +14 -4
- package/src/styles/Ui/ControlSelect.css +10 -19
- package/src/styles/Ui/Group.css +1 -1
- package/src/styles/Ui/Heading.css +1 -0
- package/src/styles/Ui/Image.css +1 -1
- package/src/styles/Ui/Info.css +1 -1
- package/src/styles/Ui/Label.css +1 -1
- package/src/styles/Ui/Link.css +7 -1
- package/src/styles/Ui/Notice.css +9 -1
- package/src/styles/Ui/Progress.css +1 -1
- package/src/styles/Ui/Switch.css +1 -1
- package/src/styles/Ui/Text.css +1 -8
- package/src/styles/Ui/Title.css +1 -4
- package/src/styles/Utils/+.css +1 -3
- package/src/styles/Utils/config.css +14 -3
- package/src/styles/Utils/default.css +11 -4
- package/src/styles/Utils/theme/+.css +1 -1
- package/src/styles/Utils/theme/main.css +27 -13
- package/src/styles/Utils/utilities.css +42 -0
- package/src/styles/main.css +1 -4
- package/src/templates/Components/Dialog/Basic.latte +24 -0
- package/src/templates/Components/Dialog/CookieConsent.latte +27 -0
- package/src/templates/Components/Form/CookieConsent.latte +47 -0
- package/src/templates/Layout/Header.latte +31 -33
- package/src/templates/Layout/Main.latte +39 -28
- package/src/templates/Sections/CookieConsent.latte +69 -0
- package/src/templates/Sections/Site.latte +80 -8
- package/src/templates/Sections/Text.latte +64 -0
- package/src/templates/Sections/Ui/Docs/@intro.html +5 -5
- package/src/templates/Sections/Ui/Docs/@nav.html +50 -60
- package/src/templates/Sections/Ui/Docs/@styles.html +1 -1
- package/src/templates/Sections/Ui/Docs/Default.latte +86 -166
- package/src/templates/Sections/Ui/Icons.html +1 -1
- package/src/templates/Sections/Ui/Intro.html +33 -79
- package/src/templates/Ui/ControlDate.latte +1 -1
- package/src/templates/Ui/ControlTime.latte +1 -1
- package/src/views/dialog/basic.json.latte +1 -1
- package/src/views/email/email.latte +2 -2
- package/src/views/email/email.test.latte +2 -2
- package/src/views/gdpr.json +6 -4
- package/src/views/popover/info.json.latte +15 -0
- package/vite.config.js +17 -10
- package/src/emails/styles/email.css +0 -77
- package/src/emails/templates.test/Content.latte +0 -24
- package/src/emails/templates.test/Header.latte +0 -14
- package/src/scripts/Components/CookieConsent.js +0 -78
- package/src/scripts/Layout/Main.js +0 -50
- package/src/scripts/Libraries/Drawer.js +0 -42
- package/src/scripts/Libraries/Script.js +0 -18
- package/src/scripts/Libraries/Slider.js +0 -160
- package/src/scripts/Libraries/Tippy.js +0 -117
- package/src/scripts/Utils/Functions/+.js +0 -7
- package/src/scripts/Utils/Functions/importScript.js +0 -17
- package/src/scripts/Utils/Functions/importStyle.js +0 -18
- package/src/scripts/Utils/Functions/inputStep.js +0 -9
- package/src/scripts/Utils/Functions/inputValidity.js +0 -57
- package/src/scripts/Utils/Functions/loadStimulus.js +0 -42
- package/src/scripts/Utils/Functions/replaceScript.js +0 -4
- package/src/scripts/Utils/Functions/replaceTag.js +0 -8
- package/src/scripts/Utils/global.js +0 -15
- package/src/styles/Components/CookieConsent.css +0 -68
- package/src/styles/Components/Dropdown/+.css +0 -1
- package/src/styles/Components/Dropdown/Default.css +0 -8
- package/src/styles/Libraries/Dialog.css +0 -1
- package/src/styles/Libraries/Drawer.css +0 -64
- package/src/styles/Libraries/Hint.css +0 -186
- package/src/styles/Libraries/Ripple.css +0 -1
- package/src/styles/Libraries/Tippy.css +0 -73
- package/src/styles/Ui/Dot.css +0 -22
- package/src/styles/Utils/icons.css +0 -5
- package/src/styles/Utils/tailwind.css +0 -50
- package/src/templates/Components/CookieConsent.latte +0 -28
- package/src/templates/Components/Dialogs/Basic.latte +0 -22
- package/src/templates/Components/Items/.gitkeep +0 -0
- package/src/templates/Sections/Gdpr.latte +0 -127
- package/src/views/dropdown/tippy.json.latte +0 -19
- /package/src/{styles/Utils/print.css → emails/styles/main/Base/font.css} +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://ui.newlogic.cz/" target="_blank" rel="noopener noreferrer">
|
|
3
|
-
<img width="180" src="https://ui.newlogic.cz/favicons/
|
|
3
|
+
<img width="180" src="https://ui.newlogic.cz/favicons/favicon.svg" alt="Logo">
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
<p align="center">
|
|
@@ -18,6 +18,16 @@ Lightweight, modern and modular CSS framework with the best principles
|
|
|
18
18
|
- ✨️ Progressive
|
|
19
19
|
- ⚡️ Fast
|
|
20
20
|
|
|
21
|
+
## Příprava projektu pro implementaci
|
|
22
|
+
1. nainstalovat node - `npm i`
|
|
23
|
+
2. nainstalovat cms - `newlogic init cms`
|
|
24
|
+
3. vytvořit si db na devlogic.cz a nastavit v `config/local.neon`
|
|
25
|
+
4. spustit `docker compose up` a `vite`
|
|
26
|
+
5. spustit `make prepare`
|
|
27
|
+
6. spustit `make phinx-seed`
|
|
28
|
+
7. nastavit `FTP_SERVER`, `DB_USERNAME` a `DB_PASSWORD` a vytvořit prostor na devlogic.cz
|
|
29
|
+
8. commitnout změny a pushnout
|
|
30
|
+
|
|
21
31
|
Newlogic UI is component framework with easy syntax for backend integration. Modern approach of CSS properties, enriched with utility classes from TailwindCSS and powered by Winduum.
|
|
22
32
|
|
|
23
33
|
Javascript implementation is only **28 kB** and mainly intended for use on backend rendered websites and applications with PHP framework Nette
|
package/package.json
CHANGED
|
@@ -1,40 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newlogic-digital/ui",
|
|
3
|
-
"version": "3.5
|
|
3
|
+
"version": "3.7.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "vite.config.js",
|
|
6
6
|
"author": "New Logic Studio s.r.o.",
|
|
7
7
|
"description": "Lightweight, modern and modular CSS framework with the best principles",
|
|
8
8
|
"license": "GNU GPLv3",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"postinstall": "rm -rf node_modules/typed-query-selector",
|
|
11
|
-
"dev": "vite",
|
|
10
|
+
"postinstall": "rm -rf node_modules/typed-query-selector && ncu",
|
|
11
|
+
"dev": "npm run cleanup && vite",
|
|
12
|
+
"dev-emails": "npm run cleanup && vite --mode emails",
|
|
12
13
|
"preview": "vite preview",
|
|
13
|
-
"build": "vite build --mode development",
|
|
14
|
-
"build-production": "vite build",
|
|
14
|
+
"build": "npm run cleanup && vite build --mode development",
|
|
15
|
+
"build-production": "npm run cleanup && vite build",
|
|
15
16
|
"build-emails": "vite build --mode emails",
|
|
17
|
+
"cleanup": "git clean -qdfX public -e \\!userfiles",
|
|
16
18
|
"eslint": "eslint 'src/scripts/**/*.js'",
|
|
17
19
|
"eslint-fix": "eslint 'src/scripts/**/*.js' --fix",
|
|
18
20
|
"stylelint": "stylelint 'src/styles/**/*.css'",
|
|
19
|
-
"stylelint-fix": "stylelint 'src/styles/**/*.css' --fix"
|
|
21
|
+
"stylelint-fix": "stylelint 'src/styles/**/*.css' --fix",
|
|
22
|
+
"npm-update": "ncu -u && npm update",
|
|
23
|
+
"npm-sort": "npm r -S example && npm r -D example"
|
|
20
24
|
},
|
|
21
25
|
"dependencies": {
|
|
22
|
-
"@
|
|
23
|
-
"@hotwired/stimulus": "^3.2.
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
26
|
+
"@floating-ui/dom": "^1.6.12",
|
|
27
|
+
"@hotwired/stimulus": "^3.2.2",
|
|
28
|
+
"@newlogic-digital/cookieconsent-js": "^1.0.0",
|
|
29
|
+
"@newlogic-digital/utils-js": "^1.1.1",
|
|
30
|
+
"@simonwep/pickr": "^1.9.1",
|
|
31
|
+
"air-datepicker": "^3.5.3",
|
|
32
|
+
"eslint": "^9.15.0",
|
|
33
|
+
"naja": "^3.2.1",
|
|
34
|
+
"neostandard": "^0.11.8",
|
|
35
|
+
"stylelint-config-standard": "^36.0.1",
|
|
36
|
+
"swup": "^4.8.1",
|
|
37
|
+
"winduum": "^1.2.4"
|
|
30
38
|
},
|
|
31
39
|
"devDependencies": {
|
|
32
|
-
"@newlogic-digital/core": "^2.
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
40
|
+
"@newlogic-digital/core": "^2.1.2",
|
|
41
|
+
"@stylistic/stylelint-config": "^2.0.0",
|
|
42
|
+
"@tailwindcss/container-queries": "^0.1.1",
|
|
43
|
+
"@types/grecaptcha": "^3.0.9",
|
|
44
|
+
"npm-check-updates": "^17.1.11",
|
|
45
|
+
"vite": "^5.4.11"
|
|
38
46
|
},
|
|
39
47
|
"files": [
|
|
40
48
|
"src"
|
|
@@ -43,8 +51,7 @@
|
|
|
43
51
|
"./src/*": "./src/*"
|
|
44
52
|
},
|
|
45
53
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
47
|
-
"npm": ">=9.0.0"
|
|
54
|
+
"node": "^18.0.0 || >=20.0.0"
|
|
48
55
|
},
|
|
49
56
|
"repository": {
|
|
50
57
|
"type": "git",
|
package/src/data/main.json
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
+
"baseUrl": "https://localhost:5173",
|
|
2
3
|
"lang": "en",
|
|
3
4
|
"prefetch": [
|
|
4
5
|
"https://cdn.jsdelivr.net",
|
|
5
6
|
"https://fonts.gstatic.com",
|
|
6
7
|
"https://fonts.googleapis.com"
|
|
7
8
|
],
|
|
9
|
+
"preload": [
|
|
10
|
+
{
|
|
11
|
+
"href": "https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=block",
|
|
12
|
+
"rel": "preload stylesheet",
|
|
13
|
+
"as": "style",
|
|
14
|
+
"crossorigin": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"href": "https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2",
|
|
18
|
+
"as": "font",
|
|
19
|
+
"type": "font/woff2",
|
|
20
|
+
"crossorigin": true
|
|
21
|
+
}
|
|
22
|
+
],
|
|
8
23
|
"assets": {
|
|
9
24
|
"css": {
|
|
10
25
|
"all": [
|
|
11
|
-
"/src/styles/main.css"
|
|
12
|
-
"https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=block"
|
|
26
|
+
"/src/styles/main.css"
|
|
13
27
|
]
|
|
14
28
|
},
|
|
15
29
|
"js": {
|
|
@@ -17,7 +31,7 @@
|
|
|
17
31
|
}
|
|
18
32
|
},
|
|
19
33
|
"layout": {
|
|
20
|
-
"cookies":
|
|
34
|
+
"cookies": true,
|
|
21
35
|
"nav": [
|
|
22
36
|
{
|
|
23
37
|
"name": "Home",
|
|
@@ -34,11 +48,12 @@
|
|
|
34
48
|
]
|
|
35
49
|
},
|
|
36
50
|
"media": {
|
|
37
|
-
"min-
|
|
38
|
-
"
|
|
39
|
-
"min-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
51
|
+
"min-xl": "(min-width: 1216px)",
|
|
52
|
+
"max-lg": "(max-width: 959px)",
|
|
53
|
+
"min-lg": "(min-width: 960px)",
|
|
54
|
+
"min-md": "(min-width: 768px)",
|
|
55
|
+
"max-md": "(max-width: 767px)",
|
|
56
|
+
"min-xs": "(min-width: 360px)"
|
|
42
57
|
},
|
|
43
58
|
"lazy": {
|
|
44
59
|
"1x1": "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-primary: 131, 205, 79;
|
|
3
|
+
--color-main: 21, 23, 26;
|
|
4
|
+
--color-body-primary: 255, 255, 255;
|
|
5
|
+
--color-body-secondary: 245, 245, 245;
|
|
6
|
+
--color-body-tertiary: 230, 230, 230;
|
|
7
|
+
--color-light: 255, 255, 255;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--color-body-primary-dark: 21, 23, 26;
|
|
12
|
+
--color-body-secondary-dark: 41, 43, 46;
|
|
13
|
+
--color-body-tertiary-dark: 61, 63, 66;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:root {
|
|
17
|
+
--spacing-container: 20px;
|
|
18
|
+
--spacing-container-inner: 30px;
|
|
19
|
+
--rounded: 20px;
|
|
20
|
+
--transition-background: background-color 0.2s ease;
|
|
21
|
+
--transition-color: color 0.2s ease;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "Card.css";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.c-card {
|
|
2
|
+
background-color: rgb(var(--color-body-tertiary));
|
|
3
|
+
border-radius: var(--rounded);
|
|
4
|
+
|
|
5
|
+
@media (prefers-color-scheme: dark) {
|
|
6
|
+
background-color: rgb(var(--color-body-tertiary-dark)) !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
& > tr > td {
|
|
10
|
+
padding: 28px 24px;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.ui-btn-group {
|
|
2
|
+
width: auto;
|
|
3
|
+
|
|
4
|
+
& td {
|
|
5
|
+
padding-top: 10px;
|
|
6
|
+
padding-bottom: 10px;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
.ui-btn {
|
|
12
|
+
padding: 10px 15px;
|
|
13
|
+
background-color: rgb(var(--color-primary));
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
border-radius: var(--rounded);
|
|
16
|
+
font-weight: 700;
|
|
17
|
+
transition: var(--transition-background), var(--transition-color);
|
|
18
|
+
|
|
19
|
+
&.lg {
|
|
20
|
+
padding: 20px;
|
|
21
|
+
border-radius: 999px;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&, & span {
|
|
26
|
+
color: rgb(var(--color-light));
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& span {
|
|
31
|
+
transition: var(--transition-color);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.ghosted {
|
|
35
|
+
background-color: transparent;
|
|
36
|
+
|
|
37
|
+
&, & span {
|
|
38
|
+
color: rgb(var(--color-primary));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
background-color: rgba(var(--color-primary), 0.8) !important;
|
|
44
|
+
|
|
45
|
+
&[class*="text-main"] {
|
|
46
|
+
background-color: rgba(var(--color-main), 0.15) !important;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ui-btn-table {
|
|
52
|
+
& table {
|
|
53
|
+
background-color: rgb(var(--color-primary));
|
|
54
|
+
width: auto;
|
|
55
|
+
border-radius: 999px;
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
transition: var(--transition-background), var(--transition-color);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
& td {
|
|
61
|
+
padding: 16px 20px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&, & span {
|
|
65
|
+
color: rgb(var(--color-light));
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:hover {
|
|
70
|
+
& table {
|
|
71
|
+
background-color: rgba(var(--color-primary), 0.8) !important;
|
|
72
|
+
|
|
73
|
+
&[class*="text-main"] {
|
|
74
|
+
background-color: rgba(var(--color-main), 0.15) !important;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@import "tailwindcss/base.css";
|
|
2
|
+
@import "tailwindcss/components.css";
|
|
3
|
+
@import "tailwindcss/utilities.css";
|
|
4
|
+
@import "tailwindcss/variants.css";
|
|
5
|
+
@import "main/Base/font.css";
|
|
6
|
+
@import "main/Ui/+.css";
|
|
7
|
+
@import "main/Components/+.css";
|
|
8
|
+
|
|
9
|
+
:where([class*="border-"]) {
|
|
10
|
+
border-width: 0;
|
|
11
|
+
border-style: solid;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
table {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
a {
|
|
24
|
+
&, img {
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
color: rgb(var(--color-main));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
& img {
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.l-main {
|
|
35
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
36
|
+
width: 600px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.l-main-body {
|
|
40
|
+
background-color: rgb(var(--color-body-secondary));
|
|
41
|
+
border-radius: var(--rounded);
|
|
42
|
+
|
|
43
|
+
& > tr {
|
|
44
|
+
&:first-child > td {
|
|
45
|
+
padding-top: var(--spacing-container-inner);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:last-child > td {
|
|
49
|
+
padding-bottom: var(--spacing-container-inner);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dark-img {
|
|
55
|
+
display: none !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@media (prefers-color-scheme: dark) {
|
|
59
|
+
body {
|
|
60
|
+
background-color: rgb(var(--color-body-primary-dark));
|
|
61
|
+
color: rgb(var(--color-light));
|
|
62
|
+
border-radius: var(--rounded);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
a {
|
|
66
|
+
&, img {
|
|
67
|
+
color: rgb(var(--color-light)) !important;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.l-main-body {
|
|
72
|
+
background-color: rgb(var(--color-body-secondary-dark)) !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[class*="border-main/10"] {
|
|
76
|
+
border-color: rgba(var(--color-light), 0.15) !important;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[class*="text-main"] {
|
|
80
|
+
&, & span {
|
|
81
|
+
color: rgb(var(--color-light)) !important;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.light-img {
|
|
86
|
+
display: none !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dark-img {
|
|
90
|
+
display: block !important;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -5,19 +5,31 @@
|
|
|
5
5
|
<title>Email Template</title>
|
|
6
6
|
<!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]-->
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
|
+
|
|
9
|
+
{var $forceLightMode = false}
|
|
10
|
+
|
|
11
|
+
{if $forceLightMode}
|
|
12
|
+
<meta name="color-scheme" content="only light">
|
|
13
|
+
<meta name="supported-color-schemes" content="only light">
|
|
14
|
+
{else}
|
|
15
|
+
<meta name="color-scheme" content="light dark">
|
|
16
|
+
<meta name="supported-color-schemes" content="light dark">
|
|
17
|
+
{/if}
|
|
18
|
+
|
|
8
19
|
<style type="text/css" n:syntax="off">
|
|
9
|
-
@import '/src/emails/styles/
|
|
20
|
+
@import '/src/emails/styles/main.css';
|
|
10
21
|
</style>
|
|
11
22
|
</head>
|
|
12
23
|
<body>
|
|
13
|
-
<table class="
|
|
24
|
+
<table class="l-main" align="center">
|
|
14
25
|
<tr>
|
|
15
|
-
<td>
|
|
16
|
-
<table class="
|
|
26
|
+
<td class="p-container" align="center">
|
|
27
|
+
<table class="l-main-body w-full">
|
|
17
28
|
<block name="body" with="locals"></block>
|
|
18
29
|
</table>
|
|
19
30
|
</td>
|
|
20
31
|
</tr>
|
|
32
|
+
<include src="emails/templates.test/Sections/Footer.latte"></include>
|
|
21
33
|
</table>
|
|
22
34
|
</body>
|
|
23
35
|
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<tr class="s-footer">
|
|
2
|
+
<td class="p-container pt-[16px]">
|
|
3
|
+
<table class="s_body" align="center">
|
|
4
|
+
<tr>
|
|
5
|
+
<td class="px-container-inner">
|
|
6
|
+
<table>
|
|
7
|
+
<tr>
|
|
8
|
+
<td class="ui-text sm pr-[160px]">
|
|
9
|
+
Název webu<br>
|
|
10
|
+
Adresa
|
|
11
|
+
</td>
|
|
12
|
+
<td class="ui-text sm">
|
|
13
|
+
<a href="mailto:info@example.com"><span>info@example.com</span></a><br>
|
|
14
|
+
<a href="tel:+420111222333"><span>(+420) 111 222 333</span></a>
|
|
15
|
+
</td>
|
|
16
|
+
</tr>
|
|
17
|
+
</table>
|
|
18
|
+
</td>
|
|
19
|
+
</tr>
|
|
20
|
+
</table>
|
|
21
|
+
</td>
|
|
22
|
+
</tr>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<tr class="s-header">
|
|
2
|
+
<td>
|
|
3
|
+
<table class="s_body" align="center">
|
|
4
|
+
<tr>
|
|
5
|
+
<td class="px-container-inner">
|
|
6
|
+
<table>
|
|
7
|
+
<tr>
|
|
8
|
+
<td>
|
|
9
|
+
<a href="https://www.bookolosystem.com" target="_blank">
|
|
10
|
+
<img src="https://via.placeholder.com/160x60" alt="Logo" class="light-img w-[160px] h-[60px] block">
|
|
11
|
+
<!--[if !mso]><! -->
|
|
12
|
+
<img src="https://via.placeholder.com/160x60" alt="Logo" class="dark-img w-[160px] h-[60px] block"
|
|
13
|
+
style="{if $forceLightMode}background-color: rgb(245,245,245);border-radius: 8px;padding: 6px{/if}">
|
|
14
|
+
<!--<![endif]-->
|
|
15
|
+
</a>
|
|
16
|
+
</td>
|
|
17
|
+
<td class="text-right">
|
|
18
|
+
<table class="ui-btn-group" align="right">
|
|
19
|
+
<tr>
|
|
20
|
+
<td>
|
|
21
|
+
<a href="#" class="ui-btn"><span>Zobrazit web</span></a>
|
|
22
|
+
</td>
|
|
23
|
+
</tr>
|
|
24
|
+
</table>
|
|
25
|
+
</td>
|
|
26
|
+
</tr>
|
|
27
|
+
</table>
|
|
28
|
+
<table>
|
|
29
|
+
<tr><td class="border-b border-main/10 pb-[32px]"></td></tr>
|
|
30
|
+
<tr><td class="pb-[32px]"></td></tr>
|
|
31
|
+
</table>
|
|
32
|
+
</td>
|
|
33
|
+
</tr>
|
|
34
|
+
</table>
|
|
35
|
+
</td>
|
|
36
|
+
</tr>
|
|
37
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<tr class="s-text">
|
|
2
|
+
<td>
|
|
3
|
+
<table class="s_body" align="center">
|
|
4
|
+
<tr>
|
|
5
|
+
<td class="px-container-inner">
|
|
6
|
+
<table>
|
|
7
|
+
<tr>
|
|
8
|
+
<td class="ui-heading lg pb-[24px]">
|
|
9
|
+
Lorem ipsum
|
|
10
|
+
</td>
|
|
11
|
+
</tr>
|
|
12
|
+
<tr>
|
|
13
|
+
<td class="ui-text">
|
|
14
|
+
Hello David,<br>
|
|
15
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
16
|
+
</td>
|
|
17
|
+
</tr>
|
|
18
|
+
</table>
|
|
19
|
+
</td>
|
|
20
|
+
</tr>
|
|
21
|
+
</table>
|
|
22
|
+
</td>
|
|
23
|
+
</tr>
|
|
24
|
+
|
package/src/icons.svg
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
<svg class="hidden">
|
|
2
|
-
<
|
|
2
|
+
<symbol id="icon-chevron-left" viewBox="0 0 24 24">
|
|
3
3
|
<path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7" />
|
|
4
|
-
</
|
|
5
|
-
<
|
|
4
|
+
</symbol>
|
|
5
|
+
<symbol id="icon-chevron-right" viewBox="0 0 24 24">
|
|
6
6
|
<path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7" />
|
|
7
|
-
</
|
|
8
|
-
<
|
|
9
|
-
<path d="M10.998 15.467c.491.71 1.513.71 2.004 0l3.767-5.453c.581-.843 0-2.013-1.002-2.014H8.234C7.232 8 6.65 9.17 7.231 10.014z" />
|
|
10
|
-
</svg>
|
|
11
|
-
<svg id="icon-angle-up" fill="currentColor" viewBox="0 0 24 24" stroke="currentColor">
|
|
12
|
-
<path d="M10.998 15.467c.491.71 1.513.71 2.004 0l3.767-5.453c.581-.843 0-2.013-1.002-2.014H8.234C7.232 8 6.65 9.17 7.231 10.014z" style="transform: scaleY(-1) translateY(1px); transform-origin: 50% 50%;" />
|
|
13
|
-
</svg>
|
|
14
|
-
<svg id="icon-exclamation-circle" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
7
|
+
</symbol>
|
|
8
|
+
<symbol id="icon-exclamation-circle" viewBox="0 0 24 24">
|
|
15
9
|
<path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
16
|
-
</
|
|
17
|
-
<
|
|
18
|
-
<path stroke-linecap="round" stroke-linejoin="round"
|
|
19
|
-
</
|
|
20
|
-
<
|
|
21
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="
|
|
22
|
-
</
|
|
23
|
-
<
|
|
10
|
+
</symbol>
|
|
11
|
+
<symbol id="icon-x-mark" viewBox="0 0 24 24">
|
|
12
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
|
|
13
|
+
</symbol>
|
|
14
|
+
<symbol id="icon-bars-3" viewBox="0 0 24 24">
|
|
15
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
|
|
16
|
+
</symbol>
|
|
17
|
+
<symbol id="icon-moon" viewBox="0 0 24 24">
|
|
24
18
|
<path stroke-linecap="round" stroke-linejoin="round" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" />
|
|
25
|
-
</
|
|
26
|
-
<
|
|
19
|
+
</symbol>
|
|
20
|
+
<symbol id="icon-sun" viewBox="0 0 24 24">
|
|
27
21
|
<path stroke-linecap="round" stroke-linejoin="round" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" />
|
|
28
|
-
</
|
|
29
|
-
<
|
|
22
|
+
</symbol>
|
|
23
|
+
<symbol id="icon-at-symbol" viewBox="0 0 24 24">
|
|
30
24
|
<path stroke-linecap="round" stroke-linejoin="round" d="M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207" />
|
|
31
|
-
</
|
|
32
|
-
<
|
|
25
|
+
</symbol>
|
|
26
|
+
<symbol id="icon-calendar" viewBox="0 0 24 24">
|
|
33
27
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5" />
|
|
34
|
-
</
|
|
35
|
-
<
|
|
28
|
+
</symbol>
|
|
29
|
+
<symbol id="icon-clock" viewBox="0 0 24 24">
|
|
36
30
|
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
37
|
-
</
|
|
31
|
+
</symbol>
|
|
32
|
+
<symbol id="icon-angle-down-solid" viewBox="0 0 24 24">
|
|
33
|
+
<path d="M10.998 15.467c.491.71 1.513.71 2.004 0l3.767-5.453c.581-.843 0-2.013-1.002-2.014H8.234C7.232 8 6.65 9.17 7.231 10.014z" />
|
|
34
|
+
</symbol>
|
|
35
|
+
<symbol id="icon-angle-up-solid" viewBox="0 0 24 24">
|
|
36
|
+
<path d="M10.998 15.467c.491.71 1.513.71 2.004 0l3.767-5.453c.581-.843 0-2.013-1.002-2.014H8.234C7.232 8 6.65 9.17 7.231 10.014z" style="transform: scaleY(-1) translateY(1px); transform-origin: 50% 50%;" />
|
|
37
|
+
</symbol>
|
|
38
38
|
</svg>
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './Drawer.js'
|
|
2
|
+
import './Popover.js'
|