@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
package/README.md CHANGED
@@ -10,9 +10,7 @@
10
10
 
11
11
  # 🎨 Newlogic UI
12
12
 
13
- > v3 is still in early development
14
-
15
- Modern and modular CSS framework with the best principles.
13
+ Lightweight, modern and modular CSS framework with the best principles
16
14
 
17
15
  - 💡 Modern
18
16
  - 📦 Modular
@@ -20,7 +18,9 @@ Modern and modular CSS framework with the best principles.
20
18
  - ✨️ Progressive
21
19
  - ⚡️ Fast
22
20
 
23
- Newlogic UI is component framework with simple syntax. Inspired by popular frameworks like Bootstrap and Bulma. It uses Tailwind CSS for utility classes. The modern approach comes first.
21
+ Newlogic UI is component framework with easy syntax. Modern approach of CSS properties, enriched with utility classes from Tailwind. Inspired by favourite frameworks like Boostrap and Bulma
22
+
23
+ Javascript implementation is mainly intended for use on backend rendered websites and applications such as with PHP
24
24
 
25
25
  ## ⚙️ Under the hood
26
26
  * **[Newlogic Core](https://core.newlogic.cz/)** - set of tools that can be used to create modern web applications
@@ -32,9 +32,9 @@ Newlogic UI is component framework with simple syntax. Inspired by popular frame
32
32
  * **Easy syntax** - .ui-btn (ui elements), .c-component (components), .c-section (sections) etc.
33
33
 
34
34
 
35
- The core of the Newlogic UI is Newlogic Core, which compiles modern JS and CSS code and contains other tools for web development. The source code is written in way that it can be used with other tools or a completely different environment than NodeJS, such as Deno. In general the rule is that the source code should be executable in current or future browsers, so it's written with W3C standards in mind. The framework is modular and you can really use only what is needed for your project.
35
+ The core of the Newlogic UI is Newlogic Core, which compiles modern JS and CSS syntax and contains other tools for web development. Source code can be used with any other tools or even different environment than NodeJS, eg. Deno and is written in W3C standards and should be runnable in current or future version of browsers. The framework is modular, and you can really use only what is needed for your project.
36
36
 
37
- ##🪄 Instalation
37
+ ## 🪄 Instalation
38
38
 
39
39
  Creating a new project (using Newlogic Core)
40
40
  ```sh
@@ -56,7 +56,6 @@ $ npm i @newlogic-newlogic/ui
56
56
 
57
57
  ```css
58
58
  /* main.css or individual modules */
59
- @import "node_modules/@newlogic/ui/src/icons/style.css"
60
59
  @import "node_modules/@newlogic/ui/src/styles/main.css"
61
60
  ```
62
61
 
@@ -75,10 +74,7 @@ import "node_modules/@newlogic/ui/src/scripts/main.js"
75
74
  Each Newlogic Core project has to have config via `gulpfile.js`, docs - [core.newlogic.cz](https://core.newlogic.cz/)
76
75
 
77
76
  ## 📌 Future plans
78
- - finishing docs and translating it to english
79
- - lighthouse optimization
80
- - upgrading form elements
81
- - new elements - dropdown, notificaton, snack and more
77
+ - performance optimization
82
78
 
83
79
  ## Licence
84
- GNU GPLv3
80
+ GNU GPLv3
package/gulpfile.js CHANGED
@@ -1,10 +1,15 @@
1
- import {Core} from "@newlogic-digital/core";
2
- import postcssMixins from "postcss-mixins";
1
+ import { defineConfig } from '@newlogic-digital/core'
2
+ import cms from "./src/module.cms.js"
3
3
 
4
- export default new Core().init({
4
+ export default defineConfig({
5
+ config: true,
6
+ modules: {cms},
7
+ serve: {
8
+ https: true
9
+ },
5
10
  scripts: {
6
11
  importResolution: {
7
- directories: ["Components", "Sections", "Layout", "Libraries", "Utils/Functions"]
12
+ directories: ['Components', 'Sections', 'Layout', 'Libraries', 'Utils/Functions', 'Ui']
8
13
  },
9
14
  importMap: {
10
15
  build: false,
@@ -14,180 +19,23 @@ export default new Core().init({
14
19
  styles: {
15
20
  purge: {
16
21
  enabled: true,
17
- content: ['src/scripts/**/*.js', 'src/templates/**/*.twig', 'temp/cdn/*.js'],
22
+ content: ['src/scripts/**/*.js', 'src/templates/**/*.twig', 'www/templates/**/*.tpl', 'temp/cdn/*.js', 'admin_ex/js/templates/*.html', 'index.html'],
18
23
  options: {
19
24
  safelist: {
20
25
  standard: [/(class|is-|to-|grecaptcha)/],
21
- deep: [/(ui-wsw|wsw|datepicker)/]
26
+ deep: [/(ui-text|wsw|datepicker)/]
22
27
  }
23
28
  }
24
29
  },
25
30
  vendor: {
26
- path: "Utils/vendor.css"
31
+ path: 'Utils/vendor.css'
27
32
  },
28
33
  importResolution: {
29
- directories: ["Components", "Sections", "Layout", "Libraries", "Ui"]
34
+ directories: ['Components', 'Sections', 'Layout', 'Libraries', 'Ui']
30
35
  },
31
- themePath: "Utils/theme/{THEME}.{FORMAT}",
36
+ themePath: 'Utils/theme/{THEME}.{FORMAT}',
32
37
  postcss: {
33
- extend: [postcssMixins]
38
+ extend: []
34
39
  }
35
- },
36
- tailwind: {
37
- darkMode: "class", // or "media" or "class"
38
- corePlugins: {
39
- preflight: false,
40
- container: false,
41
- ringWidth: false,
42
- ringColor: false,
43
- ringOpacity: false,
44
- ringOffsetWidth: false,
45
- ringOffsetColor: false,
46
- gradientColorStops: false,
47
- backgroundImage: false,
48
- boxShadow: false
49
- },
50
- theme: {
51
- extend: {
52
- colors: {
53
- background: ({ opacityVariable, opacityValue }) => {
54
- if (opacityValue !== undefined) {
55
- return `rgba(var(--color-background), ${opacityValue})`
56
- }
57
- if (opacityVariable !== undefined) {
58
- return `rgba(var(--color-background), var(${opacityVariable}, 1))`
59
- }
60
- return `rgb(var(--color-background))`
61
- },
62
- default: ({ opacityVariable, opacityValue }) => {
63
- if (opacityValue !== undefined) {
64
- return `rgba(var(--color-default), ${opacityValue})`
65
- }
66
- if (opacityVariable !== undefined) {
67
- return `rgba(var(--color-default), var(${opacityVariable}, 1))`
68
- }
69
- return `rgb(var(--color-default))`
70
- },
71
- invert: ({ opacityVariable, opacityValue }) => {
72
- if (opacityValue !== undefined) {
73
- return `rgba(var(--color-invert), ${opacityValue})`
74
- }
75
- if (opacityVariable !== undefined) {
76
- return `rgba(var(--color-invert), var(${opacityVariable}, 1))`
77
- }
78
- return `rgb(var(--color-invert))`
79
- },
80
- light: ({ opacityVariable, opacityValue }) => {
81
- if (opacityValue !== undefined) {
82
- return `rgba(var(--color-light), ${opacityValue})`
83
- }
84
- if (opacityVariable !== undefined) {
85
- return `rgba(var(--color-light), var(${opacityVariable}, 1))`
86
- }
87
- return `rgb(var(--color-light))`
88
- },
89
- dark: ({ opacityVariable, opacityValue }) => {
90
- if (opacityValue !== undefined) {
91
- return `rgba(var(--color-dark), ${opacityValue})`
92
- }
93
- if (opacityVariable !== undefined) {
94
- return `rgba(var(--color-dark), var(${opacityVariable}, 1))`
95
- }
96
- return `rgb(var(--color-dark))`
97
- },
98
- primary: ({ opacityVariable, opacityValue }) => {
99
- if (opacityValue !== undefined) {
100
- return `rgba(var(--color-primary), ${opacityValue})`
101
- }
102
- if (opacityVariable !== undefined) {
103
- return `rgba(var(--color-primary), var(${opacityVariable}, 1))`
104
- }
105
- return `rgb(var(--color-primary))`
106
- },
107
- secondary: ({ opacityVariable, opacityValue }) => {
108
- if (opacityValue !== undefined) {
109
- return `rgba(var(--color-secondary), ${opacityValue})`
110
- }
111
- if (opacityVariable !== undefined) {
112
- return `rgba(var(--color-secondary), var(${opacityVariable}, 1))`
113
- }
114
- return `rgb(var(--color-secondary))`
115
- },
116
- warning: ({ opacityVariable, opacityValue }) => {
117
- if (opacityValue !== undefined) {
118
- return `rgba(var(--color-warning), ${opacityValue})`
119
- }
120
- if (opacityVariable !== undefined) {
121
- return `rgba(var(--color-warning), var(${opacityVariable}, 1))`
122
- }
123
- return `rgb(var(--color-warning))`
124
- },
125
- error: ({ opacityVariable, opacityValue }) => {
126
- if (opacityValue !== undefined) {
127
- return `rgba(var(--color-error), ${opacityValue})`
128
- }
129
- if (opacityVariable !== undefined) {
130
- return `rgba(var(--color-error), var(${opacityVariable}, 1))`
131
- }
132
- return `rgb(var(--color-error))`
133
- },
134
- info: ({ opacityVariable, opacityValue }) => {
135
- if (opacityValue !== undefined) {
136
- return `rgba(var(--color-info), ${opacityValue})`
137
- }
138
- if (opacityVariable !== undefined) {
139
- return `rgba(var(--color-info), var(${opacityVariable}, 1))`
140
- }
141
- return `rgb(var(--color-info))`
142
- },
143
- success: ({ opacityVariable, opacityValue }) => {
144
- if (opacityValue !== undefined) {
145
- return `rgba(var(--color-success), ${opacityValue})`
146
- }
147
- if (opacityVariable !== undefined) {
148
- return `rgba(var(--color-success), var(${opacityVariable}, 1))`
149
- }
150
- return `rgb(var(--color-success))`
151
- }
152
- }
153
- },
154
- fontFamily: {
155
- primary: "var(--font-primary)",
156
- secondary: "var(--font-secondary)"
157
- },
158
- fontWeight: {
159
- light: "var(--weight-light)",
160
- normal: "var(--weight-normal)",
161
- medium: "var(--weight-medium)",
162
- semibold: "var(--weight-semibold)",
163
- bold: "var(--weight-bold)",
164
- extrabold: "var(--weight-extrabold)"
165
- },
166
- zIndex: {
167
- "0": 0,
168
- "10": "var(--z-10)",
169
- "20": "var(--z-20)",
170
- "30": "var(--z-30)",
171
- "40": "var(--z-40)",
172
- "50": "var(--z-50)",
173
- "auto": "auto"
174
- },
175
- screens: {
176
- "m": {"max": "47.9375em"},
177
- "t": "48em",
178
- "d": "60em",
179
- "w": "76em",
180
- "hd": "88em",
181
- "touch": {"max": "59.9375em"},
182
- }
183
- },
184
- variants: {
185
- extend: {
186
- backgroundColor: ['checked'],
187
- borderColor: ['checked'],
188
- textColor: ['checked'],
189
- }
190
- },
191
- plugins: [],
192
40
  }
193
- })
41
+ })
package/package.json CHANGED
@@ -1,22 +1,27 @@
1
1
  {
2
2
  "name": "@newlogic-digital/ui",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "type": "module",
5
5
  "main": "gulpfile.js",
6
6
  "author": "New Logic Studio s.r.o.",
7
- "description": "Modern and modular CSS framework with the best principles",
7
+ "description": "Lightweight, modern and modular CSS framework with the best principles",
8
8
  "license": "GNU GPLv3",
9
+ "scripts": {
10
+ "utils:eslint": "eslint 'src/scripts/**/*.js' --fix",
11
+ "utils:stylelint": "stylelint 'src/styles/**/*.css' --fix"
12
+ },
9
13
  "imports": {},
10
14
  "dependencies": {
11
- "@simonwep/pickr": "^1.8.0",
12
- "cleave.js": "^1.6.0",
13
- "stimulus": "2.0.0",
15
+ "@simonwep/pickr": "^1.8.2",
16
+ "@hotwired/stimulus": "3.0.1",
14
17
  "swup": "2.0.14",
15
- "vanillajs-datepicker": "^1.1.4"
18
+ "tippy.js": "^6.3.7",
19
+ "vanillajs-datepicker": "^1.2.0"
16
20
  },
17
21
  "devDependencies": {
18
- "@newlogic-digital/core": "^0.2.6",
19
- "postcss-mixins": "^7.0.3"
22
+ "@newlogic-digital/core": "~0.9.5",
23
+ "eslint-config-standard": "^16.0.3",
24
+ "stylelint-config-standard": "^24.0.0"
20
25
  },
21
26
  "files": [
22
27
  "src",
@@ -1,7 +1,7 @@
1
- @import "../styles/Utils/theme/core.css";
1
+ @import "../styles/Utils/theme/main.css";
2
2
 
3
3
  :root {
4
- --width : 660px;
4
+ --width: 660px;
5
5
  --container: 30px;
6
6
  }
7
7
 
@@ -23,22 +23,26 @@ p {
23
23
  margin: 0;
24
24
  }
25
25
 
26
- .nlm_container_wrapper {
26
+ .elm_container_wrapper {
27
27
  background-color: #fff;
28
28
  width: 100%;
29
29
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
30
30
  color: var(--color-default);
31
- & .nlm_container {
31
+
32
+ & .elm_container {
32
33
  margin: 0;
33
34
  width: 100%;
34
35
  background-color: #fff;
36
+
35
37
  & > tr > td {
36
38
  padding: 0 var(--container);
37
- &.nlm_full {
39
+
40
+ &.elm_full {
38
41
  padding: 0;
39
42
  }
40
43
  }
41
- & .nlm_inner_container {
44
+
45
+ & .elm_inner_container {
42
46
  width: var(--width);
43
47
  min-width: var(--width);
44
48
  padding: 0;
@@ -46,17 +50,19 @@ p {
46
50
  }
47
51
  }
48
52
 
49
- .nlm_content {
53
+ .elm_content {
50
54
  & .elm_content_info {
51
55
  color: #606060;
52
56
  font-size: 13px;
53
57
  line-height: 2;
58
+
54
59
  & a {
55
60
  &, & span {
56
61
  color: #606060;
57
62
  }
58
63
  }
59
64
  }
65
+
60
66
  & .elm_content_heading {
61
67
  font-size: 22px;
62
68
  font-weight: 600;
@@ -66,6 +72,6 @@ p {
66
72
 
67
73
  @media print {
68
74
  * {
69
- -webkit-print-color-adjust:exact;
75
+ -webkit-print-color-adjust: exact;
70
76
  }
71
- }
77
+ }
@@ -6,21 +6,21 @@
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
8
  <style type="text/css" n:syntax="off">
9
- {{ fetch ("/temp/emails/email.css") }}
9
+ {{ fetch ('/temp/emails/email.css') }}
10
10
  </style>
11
11
  </head>
12
12
  <body>
13
- <table class="nlm_container_wrapper">
13
+ <table class="elm_container_wrapper">
14
14
  <tr>
15
15
  <td>
16
- <table class="nlm_container">
17
- <tr class="nlm_header">
16
+ <table class="elm_container">
17
+ <tr class="elm_header">
18
18
  <td>
19
- <table class="nlm_inner_container">
19
+ <table class="elm_inner_container">
20
20
  <tr>
21
21
  <td>
22
22
  <br />
23
- <a href="#"><img src="https://www.newlogic.cz/assets/img/logo.png" width="160" alt="" style="width: 160px" /></a>
23
+ <a href="#"><img src="https://via.placeholder.com/160x60" width="160" alt="" style="width: 160px" /></a>
24
24
  <br />
25
25
  <br />
26
26
  </td>
@@ -30,7 +30,7 @@
30
30
  </tr>
31
31
  <tr class="nlm_content">
32
32
  <td>
33
- <table class="nlm_inner_container">
33
+ <table class="elm_inner_container">
34
34
  <tr>
35
35
  <td>
36
36
  <br />
package/src/icons.svg ADDED
@@ -0,0 +1,32 @@
1
+ <svg hidden="">
2
+ <symbol id="icon-chevron-left" fill="none" viewBox="0 0 24 24" stroke="currentColor">
3
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
4
+ </symbol>
5
+ <symbol id="icon-chevron-right" fill="none" viewBox="0 0 24 24" stroke="currentColor">
6
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
7
+ </symbol>
8
+ <symbol id="icon-angle-down" fill="currentColor" viewBox="0 0 24 24" stroke="currentColor">
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
+ </symbol>
11
+ <symbol 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
+ </symbol>
14
+ <symbol id="icon-exclamation-circle" fill="none" viewBox="0 0 24 24" stroke="currentColor">
15
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
16
+ </symbol>
17
+ <symbol id="icon-x" fill="none" viewBox="0 0 24 24" stroke="currentColor">
18
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M6 18L18 6M6 6l12 12" />
19
+ </symbol>
20
+ <symbol id="icon-menu" fill="none" viewBox="0 0 24 24" stroke="currentColor">
21
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
22
+ </symbol>
23
+ <symbol id="icon-moon" fill="none" viewBox="0 0 24 24" stroke="currentColor">
24
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" 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
+ </symbol>
26
+ <symbol id="icon-sun" fill="none" viewBox="0 0 24 24" stroke="currentColor">
27
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" 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
+ </symbol>
29
+ <symbol id="icon-at-symbol" fill="none" viewBox="0 0 24 24" stroke="currentColor">
30
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" 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
+ </symbol>
32
+ </svg>
package/src/main.json CHANGED
@@ -5,45 +5,32 @@
5
5
  "https://fonts.googleapis.com"
6
6
  ],
7
7
  "assets": {
8
- "fonts": {
9
- "google": {
10
- "families": ["Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700&display=block"]
11
- },
12
- "custom": {
13
- "families": ["iconfont"],
14
- "urls": ["/public/assets/css/iconfont.css"],
15
- "testStrings": {
16
- "iconfont": "\ue905"
17
- }
18
- },
19
- "inline": false
20
- },
21
8
  "css": {
22
9
  "all": [
23
- "/public/assets/css/main.css"
10
+ "/src/styles/main.css",
11
+ "https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=block"
24
12
  ],
25
- "core.src": "/src/styles/main.css",
26
- "icons.src": "/src/icons/style.css",
27
- "preload": "/public/assets/css/preload.css",
28
- "tailwind": "/temp/tailwind.css"
13
+ "tailwind": "/temp/tailwind.css",
14
+ "tailwind.src": "/src/styles/tailwind.css",
15
+ "ratio": "/temp/ratio.css"
29
16
  },
30
17
  "js": {
31
18
  "importmap": "/public/importmap.json",
32
- "core.es5": "/public/assets/js/es5/core.js",
33
- "core": "/public/assets/js/main.js",
34
- "core.src": "/src/scripts/main.js",
35
- "es-module-shims": "https://cdn.jsdelivr.net/npm/es-module-shims@0.10.4/dist/es-module-shims.js",
36
- "lazysizes": "https://cdn.jsdelivr.net/npm/lazysizes@5.2.2/lazysizes.min.js",
37
- "polyfills": "/public/assets/js/es5/polyfills.js"
19
+ "main": "/src/scripts/main.js",
20
+ "lazysizes": "https://cdn.jsdelivr.net/npm/lazysizes@5.3.2/lazysizes.min.js"
38
21
  }
39
22
  },
40
23
  "layout": {
41
24
  "template": "Layout/Main.twig",
42
- "cookies": true,
25
+ "cookies": false,
43
26
  "nav": [
44
27
  {
45
- "name": "Domů",
28
+ "name": "Home",
46
29
  "url": "/"
30
+ },
31
+ {
32
+ "name": "Documentation",
33
+ "url": "/ui"
47
34
  }
48
35
  ]
49
36
  },
@@ -62,4 +49,4 @@
62
49
  "8x5": "data:image/gif;base64,R0lGODlhCAAFAIAAAP///wAAACwAAAAACAAFAAACBYSPqctYADs=",
63
50
  "3x2": "data:image/gif;base64,R0lGODlhAwACAIAAAP///wAAACwAAAAAAwACAAACAoRfADs="
64
51
  }
65
- }
52
+ }
@@ -1,2 +1,2 @@
1
- import './CookieConsent.js';
2
- import './Form.js';
1
+ import './CookieConsent.js'
2
+ import './Form.js'