@pushword/js-helper 0.0.69 → 0.0.72
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/package.json +9 -11
- package/src/app.css +1 -1
- package/src/app.js +7 -7
- package/src/encore.js +2 -0
- package/src/tailwind.config.js +18 -17
- package/src/tailwind.prose.scss +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushword/js-helper",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.72",
|
|
4
4
|
"description": "Pushword front end helpers. ",
|
|
5
5
|
"author": "Robin@PiedWeb <contact@piedweb.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,28 +8,26 @@
|
|
|
8
8
|
"prettier": "prettier ./src/*.{js,scss} --write"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"140.css": "^1.0.1",
|
|
12
11
|
"@symfony/webpack-encore": "^1.7",
|
|
13
|
-
"@tailwindcss/aspect-ratio": "^0.
|
|
14
|
-
"@tailwindcss/forms": "^0.
|
|
12
|
+
"@tailwindcss/aspect-ratio": "^0.4",
|
|
13
|
+
"@tailwindcss/forms": "^0.5",
|
|
14
|
+
"@tailwindcss/line-clamp": "^0.4",
|
|
15
15
|
"@tailwindcss/typography": "^0.5",
|
|
16
|
-
"
|
|
17
|
-
"ace-builds": "^1.4.12",
|
|
16
|
+
"ace-builds": "^1.9",
|
|
18
17
|
"autoprefixer": "^10.1.0",
|
|
19
|
-
"babel-preset-stage-2": "^6.24.1",
|
|
20
18
|
"codemirror": "^5.59.0",
|
|
21
19
|
"core-js": "^3.8.1",
|
|
22
20
|
"easymde": "^2.13.0",
|
|
23
21
|
"fslightbox": "^3.2.2",
|
|
24
|
-
"
|
|
25
|
-
"node-sass": "^5.0.0",
|
|
22
|
+
"node-sass": "^7.0",
|
|
26
23
|
"postcss": "^8.2.1",
|
|
27
24
|
"postcss-import": "^14.0.0",
|
|
28
|
-
"postcss-loader": "^
|
|
29
|
-
"sass-loader": "^
|
|
25
|
+
"postcss-loader": "^7.0",
|
|
26
|
+
"sass-loader": "^12.0",
|
|
30
27
|
"simple-jekyll-search": "^1.9.1",
|
|
31
28
|
"tailwindcss": "^3",
|
|
32
29
|
"tailwindcss-hero-patterns": "^0.0.1",
|
|
30
|
+
"tailwindcss-multi-column": "^1.0.2",
|
|
33
31
|
"webpack-watch-files-plugin": "^1.1.0"
|
|
34
32
|
},
|
|
35
33
|
"repository": {
|
package/src/app.css
CHANGED
package/src/app.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
require(
|
|
1
|
+
require('fslightbox');
|
|
2
2
|
import {
|
|
3
3
|
uncloakLinks,
|
|
4
4
|
readableEmail,
|
|
5
5
|
convertImageLinkToWebPLink,
|
|
6
6
|
replaceOn,
|
|
7
7
|
liveBlock,
|
|
8
|
-
} from
|
|
9
|
-
import { allClickable } from
|
|
8
|
+
} from '@pushword/js-helper/src/helpers.js';
|
|
9
|
+
import { allClickable } from '@pushword/js-helper/src/clickable.js';
|
|
10
10
|
|
|
11
11
|
function onDomChanged() {
|
|
12
12
|
liveBlock();
|
|
13
13
|
convertImageLinkToWebPLink();
|
|
14
14
|
uncloakLinks();
|
|
15
|
-
readableEmail(
|
|
15
|
+
readableEmail('.cea');
|
|
16
16
|
replaceOn();
|
|
17
17
|
refreshFsLightbox();
|
|
18
|
-
allClickable(
|
|
18
|
+
allClickable('.clickable');
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
function onPageLoaded() {
|
|
@@ -23,5 +23,5 @@ function onPageLoaded() {
|
|
|
23
23
|
new FsLightbox();
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
document.addEventListener(
|
|
27
|
-
document.addEventListener(
|
|
26
|
+
document.addEventListener('DOMContentLoaded', onPageLoaded());
|
|
27
|
+
document.addEventListener('DOMChanged', onDomChanged);
|
package/src/encore.js
CHANGED
|
@@ -66,6 +66,8 @@ module.exports = {
|
|
|
66
66
|
outputPath = outputPath ? outputPath : './../public/assets/';
|
|
67
67
|
publicPath = publicPath ? publicPath : '/assets';
|
|
68
68
|
|
|
69
|
+
Encore.configureRuntimeEnvironment('dev');
|
|
70
|
+
|
|
69
71
|
Encore.setOutputPath(outputPath)
|
|
70
72
|
.setPublicPath(publicPath)
|
|
71
73
|
.cleanupOutputBeforeBuild()
|
package/src/tailwind.config.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
const plugin = require(
|
|
2
|
-
const pushwordHelper = require(
|
|
1
|
+
const plugin = require('tailwindcss/plugin');
|
|
2
|
+
const pushwordHelper = require('@pushword/js-helper/src/tailwind.helpers.js');
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
|
-
mode:
|
|
5
|
+
mode: 'jit',
|
|
6
6
|
theme: {
|
|
7
7
|
minHeight: {
|
|
8
|
-
0:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
screen:
|
|
15
|
-
full:
|
|
8
|
+
0: '0',
|
|
9
|
+
'screen-1/4': '25vh',
|
|
10
|
+
'screen-3/4': '75vh',
|
|
11
|
+
'screen-1/3': '33vh',
|
|
12
|
+
'screen-2/3': '66vh',
|
|
13
|
+
'screen-1/2': '50vh',
|
|
14
|
+
screen: '100vh',
|
|
15
|
+
full: '100%',
|
|
16
16
|
},
|
|
17
17
|
extend: {
|
|
18
18
|
typography: pushwordHelper.extendTailwindTypography(),
|
|
19
19
|
colors: {
|
|
20
|
-
primary:
|
|
21
|
-
secondary:
|
|
20
|
+
primary: 'var(--primary)',
|
|
21
|
+
secondary: 'var(--secondary)',
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
variants: {},
|
|
26
26
|
plugins: [
|
|
27
|
-
require(
|
|
28
|
-
require(
|
|
29
|
-
require(
|
|
30
|
-
require(
|
|
27
|
+
require('tailwindcss-multi-column')(),
|
|
28
|
+
require('@tailwindcss/typography'),
|
|
29
|
+
require('@tailwindcss/aspect-ratio'),
|
|
30
|
+
require('@tailwindcss/line-clamp'),
|
|
31
|
+
require('@tailwindcss/forms'),
|
|
31
32
|
plugin(pushwordHelper.twFirstLetterPlugin),
|
|
32
33
|
plugin(pushwordHelper.twFirstChildPlugin),
|
|
33
34
|
plugin(pushwordHelper.twBleedPlugin),
|
package/src/tailwind.prose.scss
CHANGED
|
@@ -45,9 +45,21 @@ html {
|
|
|
45
45
|
* Pure css hamburger menu
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
|
-
.show-hide-input:checked ~ div,
|
|
49
48
|
.show-hide-input:checked ~ ul,
|
|
50
49
|
.show-hide-input:checked ~ nav {
|
|
51
50
|
max-height: 100vh;
|
|
52
51
|
padding-top: 1rem;
|
|
53
52
|
}
|
|
53
|
+
|
|
54
|
+
/** Pure CSS accordion and show more
|
|
55
|
+
Example https: //play.tailwindcss.com/VxdXWMH64M
|
|
56
|
+
|
|
57
|
+
**/
|
|
58
|
+
.show-hide-input:checked~div {
|
|
59
|
+
max-height: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.show-more>.show-hide-input:checked~div.show-more-btn {
|
|
63
|
+
max-height: 0;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
}
|