@newlogic-digital/ui 4.2.0 → 4.3.0-next.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 (50) hide show
  1. package/package.json +24 -22
  2. package/src/+.css +1 -0
  3. package/src/data/main.json +19 -9
  4. package/src/data/socials.json +24 -0
  5. package/src/icons/simpleicons/apple.svg +3 -0
  6. package/src/icons/simpleicons/facebook.svg +3 -0
  7. package/src/icons/simpleicons/google.svg +3 -0
  8. package/src/icons/simpleicons/instagram.svg +3 -0
  9. package/src/icons/simpleicons/linkedin.svg +1 -0
  10. package/src/icons/simpleicons/messenger.svg +3 -0
  11. package/src/icons/simpleicons/threads.svg +3 -0
  12. package/src/icons/simpleicons/whatsapp.svg +3 -0
  13. package/src/icons/simpleicons/x.svg +3 -0
  14. package/src/icons/simpleicons/youtube.svg +3 -0
  15. package/src/icons/solid/newlogic-logomark.svg +3 -0
  16. package/src/icons/solid/newlogic-logotype.svg +11 -0
  17. package/src/pages/example/control-select.json +8 -0
  18. package/src/scripts/components/(ui)/+.js +1 -0
  19. package/src/scripts/components/(ui)/Image.js +4 -0
  20. package/src/scripts/composables/stimulus.js +1 -1
  21. package/src/styles/base/defaults.css +2 -4
  22. package/src/styles/components/(ui)/+.css +1 -0
  23. package/src/styles/components/(ui)/Button.css +14 -2
  24. package/src/styles/components/(ui)/Check.css +7 -0
  25. package/src/styles/components/(ui)/Control.css +2 -0
  26. package/src/styles/components/(ui)/ControlSelect.css +7 -0
  27. package/src/styles/components/(ui)/Heading.css +23 -2
  28. package/src/styles/components/(ui)/Label.css +9 -0
  29. package/src/styles/components/(ui)/Marquee.css +2 -0
  30. package/src/styles/components/(ui)/Text.css +50 -1
  31. package/src/styles/components/+.css +0 -1
  32. package/src/styles/emails/theme/config.css +3 -1
  33. package/src/styles/emails/utils/common.css +1 -1
  34. package/src/styles/main.css +1 -1
  35. package/src/styles/theme/main.css +13 -13
  36. package/src/styles/tinymce.css +1 -0
  37. package/src/styles/utils/index.css +22 -0
  38. package/src/templates/components/(example)/ControlSelect.latte +26 -0
  39. package/src/templates/components/(ui)/Pagination.latte +19 -0
  40. package/src/templates/components/Example.latte +0 -1
  41. package/src/templates/components/cookieconsent/CookieConsentDialog.latte +7 -16
  42. package/src/templates/components/dialog/DialogBasic.latte +1 -1
  43. package/src/templates/emails/layouts/default.latte +2 -2
  44. package/src/templates/layouts/default.latte +8 -8
  45. package/vite.config.js +7 -7
  46. package/src/icons.svg +0 -8
  47. package/src/styles/components/cookieconsent/+.css +0 -1
  48. package/src/styles/components/cookieconsent/CookieConsentDialog.css +0 -19
  49. /package/src/templates/components/{(layout) → footer}/Footer.latte +0 -0
  50. /package/src/templates/components/{(layout) → header}/Header.latte +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newlogic-digital/ui",
3
- "version": "4.2.0",
3
+ "version": "4.3.0-next.1",
4
4
  "type": "module",
5
5
  "main": "vite.config.js",
6
6
  "author": "New Logic Studio s.r.o.",
@@ -15,35 +15,37 @@
15
15
  "build-production": "npm run cleanup && vite build",
16
16
  "build-emails": "vite build --mode emails",
17
17
  "cleanup": "git clean -qdfX public -e \\!userfiles",
18
- "eslint": "eslint 'src/scripts/**/*.js'",
19
- "eslint-fix": "eslint 'src/scripts/**/*.js' --fix",
20
- "stylelint": "stylelint 'src/styles/**/*.css'",
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"
18
+ "eslint": "eslint",
19
+ "eslint-fix": "eslint --fix",
20
+ "stylelint": "stylelint 'src/**/*.css'",
21
+ "stylelint-fix": "stylelint 'src/**/*.css' --fix",
22
+ "lint": "npm run eslint && npm run stylelint"
24
23
  },
25
24
  "dependencies": {
26
- "@floating-ui/dom": "^1.7.0",
25
+ "@floating-ui/dom": "^1.7.6",
27
26
  "@hotwired/stimulus": "^3.2.2",
28
- "@newlogic-digital/cookieconsent-js": "^1.0.0",
27
+ "@newlogic-digital/cookieconsent-js": "^1.1.1",
29
28
  "@newlogic-digital/naja-extensions": "^1.0.3",
30
- "@newlogic-digital/stimulus-components": "^1.1.0",
29
+ "@newlogic-digital/stimulus-components": "^1.2.0",
31
30
  "@newlogic-digital/swup-plugins": "^1.0.0",
32
- "@newlogic-digital/utils-js": "^1.1.4",
33
- "naja": "^3.2.1",
31
+ "@newlogic-digital/utils-js": "^1.2.0",
32
+ "@tailwindcss/vite": "^4.2.1",
33
+ "naja": "^3.3.3",
34
34
  "slide-element": "^2.3.1",
35
- "swup": "^4.8.2",
36
- "winduum": "^2.2.1",
37
- "winduum-stimulus": "^2.0.11"
35
+ "swup": "^4.8.3",
36
+ "winduum": "^2.2.17",
37
+ "winduum-stimulus": "^2.0.12"
38
38
  },
39
39
  "devDependencies": {
40
- "@eslint/js": "^9.26.0",
41
- "@newlogic-digital/core": "^3.1.0",
42
- "@stylistic/eslint-plugin": "^4.2.0",
43
- "@stylistic/stylelint-config": "^2.0.0",
44
- "eslint": "^9.26.0",
45
- "npm-check-updates": "^18.0.1",
46
- "stylelint-config-standard": "^38.0.0"
40
+ "@eslint/js": "^10.0.1",
41
+ "@newlogic-digital/core": "^4.0.0-next.16",
42
+ "@stylistic/eslint-plugin": "^5.10.0",
43
+ "@stylistic/stylelint-config": "^4.0.0",
44
+ "eslint": "^10.0.3",
45
+ "globals": "^17.4.0",
46
+ "npm-check-updates": "^19.6.3",
47
+ "stylelint-config-standard": "^40.0.0",
48
+ "vite": "^8.0.0-beta.13"
47
49
  },
48
50
  "browserslist": [
49
51
  "> 1%",
package/src/+.css ADDED
@@ -0,0 +1 @@
1
+ @import "./styles/main.css";
@@ -2,6 +2,16 @@
2
2
  "baseUrl": "https://localhost:5173",
3
3
  "lang": "en",
4
4
  "cookieConsent": true,
5
+ "head": [
6
+ {
7
+ "src": "components/header/Header.latte"
8
+ }
9
+ ],
10
+ "foot": [
11
+ {
12
+ "src": "components/footer/Footer.latte"
13
+ }
14
+ ],
5
15
  "prefetch": [
6
16
  "https://cdn.jsdelivr.net",
7
17
  "https://fonts.gstatic.com",
@@ -9,8 +19,8 @@
9
19
  ],
10
20
  "preload": [
11
21
  {
12
- "href": "https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=block",
13
- "rel": "preload stylesheet",
22
+ "href": "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=block",
23
+ "rel": "preload",
14
24
  "as": "style",
15
25
  "crossorigin": true
16
26
  }
@@ -18,7 +28,8 @@
18
28
  "assets": {
19
29
  "css": {
20
30
  "all": [
21
- "/src/styles/main.css"
31
+ "/src/styles/main.css",
32
+ "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=block"
22
33
  ]
23
34
  },
24
35
  "js": {
@@ -26,11 +37,10 @@
26
37
  }
27
38
  },
28
39
  "media": {
29
- "min-xl": "(min-width: 1216px)",
30
- "max-lg": "(max-width: 959px)",
31
- "min-lg": "(min-width: 960px)",
32
- "min-md": "(min-width: 744px)",
33
- "max-md": "(max-width: 767px)",
34
- "min-xs": "(min-width: 360px)"
40
+ "xl": "1216px",
41
+ "lg": "960px",
42
+ "md": "744px",
43
+ "sm": "416px",
44
+ "xs": "360px"
35
45
  }
36
46
  }
@@ -0,0 +1,24 @@
1
+ {
2
+ "socials": [
3
+ {
4
+ "name": "Instagram",
5
+ "url": "https://instagram.com",
6
+ "icon": "#simpleicons-solid/instagram"
7
+ },
8
+ {
9
+ "name": "LinkedIn",
10
+ "url": "https://LinkedIn.com",
11
+ "icon": "#simpleicons-solid/linkedin"
12
+ },
13
+ {
14
+ "name": "X",
15
+ "url": "https://x.com",
16
+ "icon": "#simpleicons-solid/x"
17
+ },
18
+ {
19
+ "name": "Facebook",
20
+ "url": "https://facebook.com",
21
+ "icon": "#simpleicons-solid/facebook"
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,3 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"/>
3
+ </svg>
@@ -0,0 +1 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>
@@ -0,0 +1,3 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 0C5.24 0 0 4.952 0 11.64c0 3.499 1.434 6.521 3.769 8.61a.96.96 0 0 1 .323.683l.065 2.135a.96.96 0 0 0 1.347.85l2.381-1.053a.96.96 0 0 1 .641-.046A13 13 0 0 0 12 23.28c6.76 0 12-4.952 12-11.64S18.76 0 12 0m6.806 7.44c.522-.03.971.567.63 1.094l-4.178 6.457a.707.707 0 0 1-.977.208l-3.87-2.504a.44.44 0 0 0-.49.007l-4.363 3.01c-.637.438-1.415-.317-.995-.966l4.179-6.457a.706.706 0 0 1 .977-.21l3.87 2.505c.15.097.344.094.491-.007l4.362-3.008a.7.7 0 0 1 .364-.13"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.783 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.964-.065-1.19.408-2.285 1.33-3.082.88-.76 2.119-1.207 3.583-1.291a13.853 13.853 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32L7.734 7.847c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388.108.046.216.094.321.142 1.49.7 2.58 1.761 3.154 3.07.797 1.82.871 4.79-1.548 7.158-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69c-.242 0-.487.007-.739.021-1.836.103-2.98.946-2.916 2.143.067 1.256 1.452 1.839 2.784 1.767 1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M17.8075 0L12.5356 5.27199L7.2635 0L0 0L0 24H6.19233L11.4642 18.7277L16.7363 24H24L24 0L17.8075 0ZM17.8075 1.70562V10.544L13.3884 6.12467L17.8075 1.70562ZM19.0137 13.4561L19.0137 1.20651L22.7936 1.20651L22.7936 21.9413L2.05922 1.20651L6.76427 1.20651L19.0137 13.4561ZM6.19233 22.2945L6.19233 13.4561L10.6114 17.875L6.19233 22.2945ZM4.98611 10.544L4.98611 22.7938H1.20621L1.20621 2.05895L21.9411 22.7938H17.2359L4.98611 10.544Z"/>
3
+ </svg>
@@ -0,0 +1,11 @@
1
+ <svg role="img" viewBox="0 0 120 24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M16.2163 18.8114H13.2394L3.5514 7.57133V18.8114H0V1.29779H2.97691L12.6649 12.8516V1.29779H16.2163V18.8114Z"/>
3
+ <path d="M31.7841 13.2819H21.6544C22.001 15.2242 23.3605 16.4111 24.9865 16.4111C26.0262 16.4111 27.3324 16.2762 28.292 14.6307L31.4375 15.3051C30.2646 18.1106 27.8921 19.4594 24.9865 19.4594C21.2279 19.4594 18.1624 16.573 18.1624 12.3377C18.1624 8.10248 21.2279 5.18906 25.0399 5.18906C28.5852 5.18906 31.6508 7.9676 31.7841 12.068V13.2819ZM21.761 10.7731H28.1854C27.7322 9.04665 26.4527 8.29132 25.0399 8.29132C23.707 8.29132 22.1876 9.1006 21.761 10.7731Z"/>
4
+ <path d="M48.049 18.8108H44.8286L42.1765 11.1827L39.4973 18.8108H36.2768L31.7845 5.83778H35.3297L38.0088 13.8032L40.7692 5.83778H43.5566L46.317 13.8292L48.9962 5.83778H52.5414L48.049 18.8108Z"/>
5
+ <path d="M53.8381 18.8109V0H57.0814V18.8109H53.8381Z"/>
6
+ <path d="M73.2976 12.3242C73.2976 16.5999 70.0531 19.4594 66.202 19.4594C62.3508 19.4594 59.0272 16.5999 59.0272 12.3242C59.0272 8.04858 62.2717 5.18906 66.202 5.18906C70.1323 5.18906 73.2976 8.04858 73.2976 12.3242ZM69.9212 12.3242C69.9212 9.79153 68.022 8.26645 66.202 8.26645C64.3819 8.26645 62.4036 9.79153 62.4036 12.3242C62.4036 14.857 64.3028 16.382 66.202 16.382C68.1012 16.382 69.9212 14.857 69.9212 12.3242Z"/>
7
+ <path d="M88.2174 17.6406C88.2174 21.7288 85.4775 24 81.316 24C78.3177 24 76.1465 22.9045 75.0351 21.0608L77.8008 18.8965C78.8088 20.2057 79.6359 20.8203 81.316 20.8203C83.4872 20.8203 84.9089 19.4309 84.9089 17.1062V16.8925C83.9525 17.6941 82.6343 18.1216 80.8508 18.1216C77.6198 18.1216 74.5956 15.2893 74.5956 11.6286C74.5956 7.96795 77.6198 5.18906 80.8508 5.18906C82.6343 5.18906 83.9525 5.6433 84.9089 6.41819V5.58986H88.1915L88.2174 17.6406ZM84.9089 11.6286C84.9089 9.54444 83.2546 8.15499 81.4453 8.15499C79.4033 8.15499 77.8783 9.54444 77.8783 11.6286C77.8783 13.7128 79.4033 15.1022 81.4453 15.1022C83.2546 15.1022 84.9089 13.7128 84.9089 11.6286Z"/>
8
+ <path d="M94.7036 2.0441C94.7036 3.18259 93.8765 4.03646 92.7576 4.03646C91.6387 4.03646 90.8116 3.18259 90.8116 2.0441C90.8116 0.905616 91.6144 0 92.7576 0C93.9009 0 94.7036 0.957366 94.7036 2.0441ZM91.1522 18.8109V5.89944H94.363V18.8109H91.1522Z"/>
9
+ <path d="M107.057 13.5786L110.271 14.4149C109.533 17.4902 106.82 19.4594 103.684 19.4594C99.8376 19.4594 96.6495 16.573 96.6495 12.3377C96.6495 8.10248 99.8376 5.18906 103.684 5.18906C106.741 5.18906 109.402 7.13134 110.271 10.1527L106.925 11.1238C106.451 9.23548 105.212 8.45317 103.684 8.45317C101.497 8.45317 100.022 10.0448 100.022 12.3377C100.022 14.6307 101.497 16.1953 103.684 16.1953C105.212 16.1953 106.451 15.44 107.057 13.5786Z"/>
10
+ <path d="M120.001 16.2247C120.001 18.1011 118.541 19.4599 116.757 19.4599C114.974 19.4599 113.514 18.1011 113.514 16.2247C113.514 14.3483 114.974 12.9734 116.757 12.9734C118.541 12.9734 120.001 14.3321 120.001 16.2247ZM119.303 16.2247C119.303 14.7365 118.168 13.6366 116.757 13.6366C115.347 13.6366 114.228 14.7365 114.228 16.2247C114.228 17.7129 115.379 18.7805 116.757 18.7805C118.136 18.7805 119.303 17.6805 119.303 16.2247ZM117.503 16.6129L118.33 17.5997H117.455L116.709 16.6938H116.303V17.5997H115.557V14.6557H116.984C117.73 14.6557 118.184 15.06 118.184 15.6424C118.184 16.0953 117.925 16.4512 117.503 16.6129ZM116.968 16.063C117.276 16.063 117.471 15.9012 117.471 15.6586C117.471 15.4321 117.276 15.2865 116.968 15.2865H116.303V16.063H116.968Z"/>
11
+ </svg>
@@ -0,0 +1,8 @@
1
+ {
2
+ "title": "Example Popover Autocomplete",
3
+ "body": [
4
+ {
5
+ "src": "components/(example)/ControlSelect.latte"
6
+ }
7
+ ]
8
+ }
@@ -7,6 +7,7 @@ import './Details.js'
7
7
  import './Dialog.js'
8
8
  import './Drawer.js'
9
9
  import './Form.js'
10
+ import './Image.js'
10
11
  import './Popover.js'
11
12
  import './Range.js'
12
13
  import './Tabs.js'
@@ -0,0 +1,4 @@
1
+ import { useStimulus } from '../../composables/stimulus.js'
2
+ import { Image } from 'winduum-stimulus/components/image/index.js'
3
+
4
+ useStimulus.register('x-image', Image)
@@ -4,7 +4,7 @@ import stimulus from 'winduum-stimulus'
4
4
  import { initAfter } from '../utils/+.js'
5
5
 
6
6
  const initConfig = {
7
- controllers: ['x-button', 'x-control', 'x-text', 'x-check', 'x-dialog'],
7
+ controllers: ['x-button', 'x-control', 'x-text', 'x-check', 'x-dialog', 'x-image'],
8
8
  actions: [
9
9
  ['.x-button', 'click->x-button#ripple'],
10
10
  ['.x-check', 'change->x-form#validateField'],
@@ -1,17 +1,15 @@
1
1
  @import "winduum/src/base/defaults.css";
2
- @import "winduum/tailwindcss/base/defaults.css";
3
2
 
4
3
  :where(svg) {
5
4
  display: block;
6
5
 
7
- &:has([href]) {
6
+ &:has([href*="-outline"]) {
8
7
  stroke-width: 1.5;
9
8
  stroke: currentcolor;
10
9
  fill: none;
11
10
  }
12
11
 
13
- &:has([href*="-solid"]) {
14
- stroke: none;
12
+ &:has([href*="-solid"], [href*="-mini"], [href*="-micro"]) {
15
13
  fill: currentcolor;
16
14
  }
17
15
  }
@@ -13,6 +13,7 @@
13
13
  @import "./Info.css";
14
14
  @import "./Label.css";
15
15
  @import "./Link.css";
16
+ @import "./Marquee.css";
16
17
  @import "./Notice.css";
17
18
  @import "./Popover.css";
18
19
  @import "./Progress.css";
@@ -1,8 +1,6 @@
1
1
  @import "winduum/src/components/button/props/default.css" layer(theme);
2
2
  @import "winduum/src/components/button/props/interactive.css" layer(theme);
3
3
  @import "winduum/src/components/button/default.css" layer(utilities);
4
- @import "winduum/src/components/button/lg.css" layer(utilities);
5
- @import "winduum/src/components/button/sm.css" layer(utilities);
6
4
  @import "winduum/src/components/button/interactive.css" layer(utilities);
7
5
  @import "winduum/src/components/button/bordered.css" layer(utilities);
8
6
  @import "winduum/src/components/button/ghosted.css" layer(utilities);
@@ -10,3 +8,17 @@
10
8
  @import "winduum/src/components/button/square.css" layer(utilities);
11
9
  @import "winduum/src/components/button/circle.css" layer(utilities);
12
10
  @import "winduum/src/components/button/spinner.css" layer(utilities);
11
+
12
+ @utility lg {
13
+ .x-button:is(&) {
14
+ --x-button-block-size: 3rem;
15
+ --x-button-padding-inline: 1.5rem;
16
+ }
17
+ }
18
+
19
+ @utility sm {
20
+ .x-button:is(&) {
21
+ --x-button-block-size: 2rem;
22
+ --x-button-padding-inline: 1rem;
23
+ }
24
+ }
@@ -2,3 +2,10 @@
2
2
  @import "winduum/src/components/check/default.css" layer(utilities);
3
3
  @import "winduum/src/components/check/interactive.css" layer(utilities);
4
4
  @import "winduum/src/components/check/invalid.css" layer(utilities);
5
+
6
+ @layer theme {
7
+ :root,
8
+ :host {
9
+ --x-check-line-height: var(--x-check-size);
10
+ }
11
+ }
@@ -1,11 +1,13 @@
1
1
  @import "winduum/src/components/control/props/default.css" layer(theme);
2
2
  @import "winduum/src/components/control/props/floating.css" layer(theme);
3
3
  @import "winduum/src/components/control/props/select.css" layer(theme);
4
+ @import "winduum/src/components/control/props/select-picker.css" layer(theme);
4
5
  @import "winduum/src/components/control/props/icon.css" layer(theme);
5
6
  @import "winduum/src/components/control/default.css" layer(utilities);
6
7
  @import "winduum/src/components/control/interactive.css" layer(utilities);
7
8
  @import "winduum/src/components/control/file.css" layer(utilities);
8
9
  @import "winduum/src/components/control/select.css" layer(utilities);
10
+ @import "winduum/src/components/control/select-picker.css" layer(utilities);
9
11
  @import "winduum/src/components/control/icon.css" layer(utilities);
10
12
  @import "winduum/src/components/control/floating.css" layer(utilities);
11
13
  @import "winduum/src/components/control/invalid.css" layer(utilities);
@@ -1 +1,8 @@
1
1
  @import "@newlogic-digital/stimulus-components/src/control-select/index.css" layer(utilities);
2
+
3
+ @layer theme {
4
+ :root,
5
+ :host {
6
+ --x-control-select-icon-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z" clip-rule="evenodd" /></svg>');
7
+ }
8
+ }
@@ -1,14 +1,35 @@
1
1
  @import "winduum/src/components/heading/props/default.css" layer(theme);
2
2
  @import "winduum/src/components/heading/default.css" layer(utilities);
3
3
 
4
+ @layer theme {
5
+ :root,
6
+ :host {
7
+ --x-heading-font-size: var(--text-4xl);
8
+ --x-heading-font-weight: var(--font-weight-medium);
9
+ --x-heading-line-height: 1.2;
10
+ }
11
+ }
12
+
13
+ @utility xs {
14
+ .x-heading:is(&) {
15
+ --x-heading-font-size: var(--text-2xl);
16
+ }
17
+ }
18
+
4
19
  @utility sm {
5
20
  .x-heading:is(&) {
6
- --x-heading-font-size: var(--text-lg);
21
+ --x-heading-font-size: var(--text-3xl);
7
22
  }
8
23
  }
9
24
 
10
25
  @utility lg {
11
26
  .x-heading:is(&) {
12
- --x-heading-font-size: var(--text-3xl);
27
+ --x-heading-font-size: var(--text-5xl);
28
+ }
29
+ }
30
+
31
+ @utility xl {
32
+ .x-heading:is(&) {
33
+ --x-heading-font-size: var(--text-6xl);
13
34
  }
14
35
  }
@@ -1,2 +1,11 @@
1
1
  @import "winduum/src/components/label/props/default.css" layer(theme);
2
2
  @import "winduum/src/components/label/default.css" layer(utilities);
3
+
4
+ @layer theme {
5
+ :root,
6
+ :host {
7
+ --x-label-font-size: var(--text-2xs);
8
+ --x-label-line-height: calc(1em + 0.125rem);
9
+ --x-label-font-weight: var(--font-weight-medium);
10
+ }
11
+ }
@@ -0,0 +1,2 @@
1
+ @import "winduum/src/components/marquee/default.css" layer(utilities);
2
+ @import "winduum/src/components/marquee/keyframes/default.css";
@@ -1,2 +1,51 @@
1
- @import "winduum/src/components/text/props/default.css" layer(theme);
2
1
  @import "winduum/src/components/text/default.css" layer(utilities);
2
+
3
+ @layer theme {
4
+ :root,
5
+ :host {
6
+ --x-text-font-size: var(--text-base);
7
+ --x-text-line-height: 1.5;
8
+ --x-text-letter-spacing: -0.02em;
9
+ --x-text-content-bold: var(--font-weight-semibold);
10
+ --x-text-content-margin-block: calc(var(--spacing) * 4);
11
+ --x-text-heading-font-weight: var(--font-weight-medium);
12
+ --x-text-heading-line-height: 1.2;
13
+ --x-text-heading-margin-block: calc(var(--spacing) * 6) calc(var(--spacing) * 4);
14
+ --x-text-heading-1-font-size: var(--text-5xl);
15
+ --x-text-heading-2-font-size: var(--text-4xl);
16
+ --x-text-heading-3-font-size: var(--text-3xl);
17
+ --x-text-heading-4-font-size: var(--text-2xl);
18
+ --x-text-heading-5-font-size: var(--text-xl);
19
+ --x-text-heading-6-font-size: var(--text-lg);
20
+ --x-text-list-marker-size: 0.375em;
21
+ --x-text-hr-margin-block: 3em;
22
+ --x-text-blockquote-font-size: var(--text-lg);
23
+ --x-text-blockquote-margin-block: calc(var(--spacing) * 9);
24
+ --x-text-blockquote-border-inline-start-width: 0.125rem;
25
+ --x-text-blockquote-border-inline-start-color: var(--color-main);
26
+ --x-text-figure-margin-block: calc(var(--spacing) * 12);
27
+ --x-text-img-border-radius: var(--radius-2xl);
28
+ --x-text-figcaption-font-weight: var(--font-weight-normal);
29
+ --x-text-figcaption-margin-block-start: 0.5rem;
30
+ --x-text-figcaption-padding-inline-start: 0.5rem;
31
+ --x-text-figcaption-border-inline-start: 0.125rem solid var(--color-accent);
32
+ }
33
+ }
34
+
35
+ @utility lg {
36
+ .x-text:is(&) {
37
+ --x-text-font-size: var(--text-lg);
38
+ }
39
+ }
40
+
41
+ @utility sm {
42
+ .x-text:is(&) {
43
+ --x-text-font-size: var(--text-sm);
44
+ }
45
+ }
46
+
47
+ @utility xs {
48
+ .x-text:is(&) {
49
+ --x-text-font-size: var(--text-xs);
50
+ }
51
+ }
@@ -1,3 +1,2 @@
1
1
  @import "./(layout)/+.css";
2
2
  @import "./(ui)/+.css";
3
- @import "./cookieconsent/+.css";
@@ -10,7 +10,9 @@
10
10
  "Apple Color Emoji",
11
11
  "Segoe UI Emoji",
12
12
  "Segoe UI Symbol";
13
- --spacing-container: 24px;
13
+ --spacing-container: 20px;
14
14
  --radius: 12px;
15
15
  --container: 600px;
16
16
  }
17
+
18
+ @custom-media --media-container (width < 640px);
@@ -2,7 +2,7 @@
2
2
  min-width: var(--container);
3
3
  width: var(--container);
4
4
 
5
- @media (max-width: 647px) {
5
+ @media (--media-container) {
6
6
  min-width: 100% !important;
7
7
  width: 100% !important;
8
8
  }
@@ -5,7 +5,7 @@
5
5
  @import "./base/defaults.css" layer(base);
6
6
  @import "./components/+.css";
7
7
  @import "./utils/+.css";
8
- @import "tailwindcss/utilities" layer(utilities);
8
+ @import "tailwindcss/utilities" layer(utilities) source("../");
9
9
  @import "winduum/tailwindcss/variants/dark.css";
10
10
  @import "./base/breakpoints.css";
11
11
  @import "./base/keyframes.css";
@@ -1,30 +1,30 @@
1
1
  @import "./dark.css";
2
2
 
3
3
  @theme {
4
- --default-font-family: "Poppins", sans-serif;
4
+ --default-font-family: "Inter", sans-serif;
5
5
  --default-color-space: srgb;
6
6
  --default-color-scheme: inherit;
7
7
  --color-accent: var(--color-primary);
8
8
  --color-accent-foreground: var(--color-primary-foreground);
9
- --color-primary: #83cd4f;
10
- --color-primary-foreground: var(--color-dark);
11
- --color-main: #111315;
9
+ --color-primary: #076cff;
10
+ --color-primary-foreground: var(--color-light);
11
+ --color-main: #181818;
12
12
  --color-main-foreground: var(--color-body);
13
13
  --color-main-primary: var(--color-main);
14
- --color-main-secondary: color-mix(in var(--default-color-space), var(--color-main) 75%, var(--color-main-foreground));
15
- --color-main-tertiary: color-mix(in var(--default-color-space), var(--color-main) 50%, var(--color-main-foreground));
14
+ --color-main-secondary: color-mix(in var(--default-color-space), var(--color-main) 80%, var(--color-main-foreground));
15
+ --color-main-tertiary: color-mix(in var(--default-color-space), var(--color-main) 49%, var(--color-main-foreground));
16
16
  --color-body: #fff;
17
17
  --color-body-foreground: var(--color-main);
18
18
  --color-body-primary: var(--color-body);
19
- --color-body-secondary: color-mix(in var(--default-color-space), var(--color-body) 95%, var(--color-body-foreground));
20
- --color-body-tertiary: color-mix(in var(--default-color-space), var(--color-body) 90%, var(--color-body-foreground));
19
+ --color-body-secondary: color-mix(in var(--default-color-space), var(--color-body) 82%, var(--color-body-foreground));
20
+ --color-body-tertiary: color-mix(in var(--default-color-space), var(--color-body) 93%, var(--color-body-foreground));
21
21
  --color-light: #fff;
22
22
  --color-light-foreground: var(--color-dark);
23
- --color-dark: #111315;
23
+ --color-dark: #181818;
24
24
  --color-dark-foreground: var(--color-light);
25
- --color-success: #16a34a;
26
- --color-error: #dc2626;
27
- --color-warning: #eab308;
28
- --color-info: #0ea5e9;
25
+ --color-success: #00c951;
26
+ --color-error: #e7000b;
27
+ --color-warning: #fcc800;
28
+ --color-info: #00bcff;
29
29
  --container-width: 80rem;
30
30
  }
@@ -1,2 +1,3 @@
1
1
  @import "./theme/main.css";
2
2
  @import "./components/(ui)/Text.css";
3
+ @import "tailwindcss/theme.css";
@@ -3,3 +3,25 @@
3
3
  @import "winduum/src/utilities/skeleton/props/default.css" layer(theme);
4
4
  @import "winduum/src/utilities/spinner/keyframes/ring.css";
5
5
  @import "winduum/tailwindcss/utilities/index.css";
6
+
7
+ @layer theme {
8
+ :root,
9
+ :host {
10
+ --container-width: 82rem;
11
+ --container-padding: 1.25rem;
12
+ }
13
+
14
+ @media (--media-md) {
15
+ :root,
16
+ :host {
17
+ --container-padding: 2rem;
18
+ }
19
+ }
20
+
21
+ @media (--media-lg) {
22
+ :root,
23
+ :host {
24
+ --container-padding: 4rem;
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,26 @@
1
+ <div class="x-control w-full max-w-80 mx-auto" tabindex="-1" data-controller="x-control-select">
2
+ <select>
3
+ <option value="0">Doporučujeme</option>
4
+ <option value="1">Nejprodávanější</option>
5
+ <option value="2">Od nejlevnějšího</option>
6
+ <option value="3">Od nejdražšího</option>
7
+ <option value="4">Nejnovější</option>
8
+ </select>
9
+ <div aria-hidden="true" class="max-h-80">
10
+ <div data-option="0" tabindex="0" data-active>Doporučujeme</div>
11
+ <div data-option="1" tabindex="0">Nejprodávanější</div>
12
+ <div data-option="2" tabindex="0">Od nejlevnějšího</div>
13
+ <div data-option="3" tabindex="0">Od nejdražšího</div>
14
+ <div data-option="4" tabindex="0">Nejnovější</div>
15
+ </div>
16
+ </div>
17
+ <div><br></div>
18
+ <div class="x-control w-full max-w-80 mx-auto">
19
+ <select>
20
+ <option value="0">Doporučujeme</option>
21
+ <option value="1">Nejprodávanější</option>
22
+ <option value="2">Od nejlevnějšího</option>
23
+ <option value="3">Od nejdražšího</option>
24
+ <option value="4">Nejnovější</option>
25
+ </select>
26
+ </div>
@@ -0,0 +1,19 @@
1
+ <nav n:class="'x-pagination flex gap-2', $classAttribute ?? ''" aria-label="{_'Stránkování'}">
2
+ <a
3
+ n:attr="href: $iterator->counter !== 4 ? '#'"
4
+ n:class="
5
+ 'x-button square sm',
6
+ $iterator->first ? 'pointer-events-none' : 'muted'
7
+ "
8
+ n:foreach="range(1,5) as $item"
9
+ aria-current={$iterator->first ? 'page' : null}
10
+ >
11
+ {if $iterator->last}
12
+ 8
13
+ {elseif $iterator->counter === 4}
14
+ ...
15
+ {else}
16
+ {$iterator->counter}
17
+ {/if}
18
+ </a>
19
+ </nav>
@@ -2,7 +2,6 @@
2
2
  <div class="p-4 bg-body-secondary rounded w-full max-w-xl mx-auto">
3
3
  <h1 class="x-heading lg mb-4">Hello world!</h1>
4
4
  <div class="x-text mb-4">Want to dig deeper into Newlogic UI?</div>
5
-
6
5
  <a href="https://ui.newlogic.cz/" class="x-link underline">Read the docs &rarr;</a>
7
6
  </div>
8
7
  <div class="flex justify-center mt-4">
@@ -1,26 +1,17 @@
1
- {var $center = true}
2
-
3
- <dialog class="x-cookieconsent-dialog x-dialog {if $center}center{/if}" data-controller="x-cookieconsent-dialog">
4
- <div class="x-dialog-content">
5
- <div class="mt-2 mb-4 md:mb-6">
6
- {if true}
7
- <div class="x-image w-40 my-4">
8
- <img src="{placeholder(160, 46)}" alt="">
9
- </div>
10
- {/if}
11
- <div class="x-heading text-3xl md:my-8">Nastavení soukromí a&nbsp;cookies&nbsp;🍪</div>
12
- </div>
13
- <div class="x-text">
1
+ <dialog class="x-cookieconsent-dialog x-dialog" data-controller="x-cookieconsent-dialog">
2
+ <div class="x-dialog-content max-w-md text-center p-6 lg:p-8">
3
+ <div class="x-heading max-md:text-2xl text-3xl mt-2 mb-6 md:mb-8">Nastavení soukromí a&nbsp;cookies&nbsp;🍪</div>
4
+ <div class="x-text max-md:text-sm">
14
5
  <p>Webové stránky používají k poskytování služeb, personalizaci reklam a analýze návštěvnosti soubory&nbsp;cookies.</p>
15
6
  <p>Následující volbou souhlasíte s našimi <a href="/gdpr">zásady&nbsp;ochrany osobních údajů a cookies</a>. Svá&nbsp;nastavení můžete kdykoli změnit.</p>
16
7
  </div>
17
- <div class="flex items-center mt-6 md:mt-8 gap-4 {if $center}flex-col{else}max-md:flex-col{/if} px-4">
8
+ <div class="flex items-center mt-8 md:mt-10 gap-4 flex-col">
18
9
  <div class="flex flex-col w-full">
19
10
  <button class="x-button lg w-full" data-action="click->x-cookieconsent-dialog#approve">Ano, souhlasím</button>
20
11
  </div>
21
12
  <div class="flex w-full gap-4">
22
- <a class="x-button ghosted lg accent-main flex-1 px-4" href="/gdpr"><span>Přizpůsobit</span></a>
23
- <button class="x-button ghosted lg accent-main flex-1 px-4" data-action="click->x-cookieconsent-dialog#decline"><span>Nesouhlasím</span></button>
13
+ <a class="x-button bordered lg accent-main flex-1 px-4" href="/gdpr"><span>Přizpůsobit</span></a>
14
+ <button class="x-button bordered lg accent-main flex-1 px-4" data-action="click->x-cookieconsent-dialog#decline"><span>Nesouhlasím</span></button>
24
15
  </div>
25
16
  </div>
26
17
  </div>
@@ -4,7 +4,7 @@
4
4
  <h2 class="x-heading">Dialog Basic</h2>
5
5
  <button class="x-button square ghosted accent-main" type="button" data-action="click->x-dialog#close">
6
6
  <svg>
7
- <use href="#icon-x-mark"></use>
7
+ <use href="#heroicons-outline/x-mark"></use>
8
8
  </svg>
9
9
  </button>
10
10
  </div>
@@ -18,7 +18,7 @@
18
18
 
19
19
  <link rel="stylesheet" href="/src/styles/emails/main.css">
20
20
 
21
- <script type="module" n:if="VITE_SERVER">
21
+ <script type="module" n:if="\VITE_SERVER">
22
22
  if (import.meta.hot && window.location.search === '?send') {
23
23
  import.meta.hot.send('my:send', {
24
24
  filename: window.location.href,
@@ -32,7 +32,7 @@
32
32
  <body>
33
33
  <table class="x-main w-full" align="center">
34
34
  <tr>
35
- <td class="p-[20px]" align="center">
35
+ <td class="p-container" align="center">
36
36
  <table class="x-main-body container">
37
37
  {include '../../utils/sections.latte', sections => $body}
38
38
  </table>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html lang="en">
2
+ <html lang="{$lang}">
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title>{$title}</title>
@@ -38,7 +38,7 @@
38
38
  <link n:foreach="$modulepreload as $url" href="{$url|asset}" rel="modulepreload">
39
39
  {/if}
40
40
 
41
- <script>
41
+ <script n:if="false">
42
42
  (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) && document.documentElement.classList.add('dark')
43
43
  </script>
44
44
 
@@ -50,11 +50,15 @@
50
50
  <link rel="manifest" href="/favicons/manifest.webmanifest">
51
51
  </head>
52
52
  <body data-controller="x-app invoke" data-naja-snippet-append>
53
- {include '../components/(layout)/Header.latte'}
53
+ {if isset($head)}
54
+ {include '../utils/sections.latte', sections => $head}
55
+ {/if}
54
56
  <main class="x-main view-transition-main">
55
57
  {include '../utils/sections.latte', sections => $body}
56
58
  </main>
57
- {include '../components/(layout)/Footer.latte'}
59
+ {if isset($foot)}
60
+ {include '../utils/sections.latte', sections => $foot}
61
+ {/if}
58
62
 
59
63
  {if $cookieConsent}
60
64
  {include '../components/cookieconsent/CookieConsentDialog.latte'}
@@ -63,9 +67,5 @@
63
67
  <ol class="x-toaster items-end">
64
68
  {*include TEMPLATES_DIR . 'Components/(ui)/Toast.latte'*}
65
69
  </ol>
66
-
67
- {if true} {* load only on first load in production *}
68
- {fetch('/src/icons.svg')|noescape}
69
- {/if}
70
70
  </body>
71
71
  </html>
package/vite.config.js CHANGED
@@ -2,11 +2,11 @@ import { defineConfig } from 'vite'
2
2
  import core from '@newlogic-digital/core'
3
3
 
4
4
  export default defineConfig({
5
- plugins: [
6
- core({
7
- css: {
8
- transformer: 'lightningcss'
9
- }
10
- })
11
- ]
5
+ plugins: [
6
+ core({
7
+ css: {
8
+ transformer: 'lightningcss',
9
+ },
10
+ }),
11
+ ],
12
12
  })
package/src/icons.svg DELETED
@@ -1,8 +0,0 @@
1
- <svg class="hidden">
2
- <symbol id="icon-exclamation-circle" viewBox="0 0 24 24">
3
- <path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
4
- </symbol>
5
- <symbol id="icon-x-mark" viewBox="0 0 24 24">
6
- <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
7
- </symbol>
8
- </svg>
@@ -1 +0,0 @@
1
- @import "./CookieConsentDialog.css";
@@ -1,19 +0,0 @@
1
- @layer utilities {
2
- .x-cookieconsent-dialog {
3
- .x-dialog-content {
4
- max-width: 32rem;
5
- }
6
-
7
- &.center {
8
- .x-dialog-content {
9
- max-width: 26rem;
10
- text-align: center;
11
-
12
- & .x-image {
13
- margin-left: auto;
14
- margin-right: auto;
15
- }
16
- }
17
- }
18
- }
19
- }