@pushword/js-helper 0.0.68 → 0.0.71

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushword/js-helper",
3
- "version": "0.0.68",
3
+ "version": "0.0.71",
4
4
  "description": "Pushword front end helpers. ",
5
5
  "author": "Robin@PiedWeb <contact@piedweb.com>",
6
6
  "license": "MIT",
@@ -9,27 +9,28 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "140.css": "^1.0.1",
12
- "@symfony/webpack-encore": "^1.7",
13
- "@tailwindcss/aspect-ratio": "^0.2",
14
- "@tailwindcss/forms": "^0.4",
12
+ "@symfony/webpack-encore": "^3.0",
13
+ "@tailwindcss/aspect-ratio": "^0.4",
14
+ "@tailwindcss/forms": "^0.5",
15
+ "@tailwindcss/line-clamp": "^0.4",
15
16
  "@tailwindcss/typography": "^0.5",
16
- "tailwindcss-multi-column": "^1.0.2",
17
- "ace-builds": "^1.4.12",
17
+ "ace-builds": "^1.9",
18
18
  "autoprefixer": "^10.1.0",
19
19
  "babel-preset-stage-2": "^6.24.1",
20
20
  "codemirror": "^5.59.0",
21
21
  "core-js": "^3.8.1",
22
22
  "easymde": "^2.13.0",
23
- "fslightbox": "^3.2.2",
24
23
  "file-loader": "^6.0",
25
- "node-sass": "^5.0.0",
24
+ "fslightbox": "^3.2.2",
25
+ "node-sass": "^7.0",
26
26
  "postcss": "^8.2.1",
27
27
  "postcss-import": "^14.0.0",
28
- "postcss-loader": "^4.1",
29
- "sass-loader": "^10.1.0",
28
+ "postcss-loader": "^7.0",
29
+ "sass-loader": "^13.0.2",
30
30
  "simple-jekyll-search": "^1.9.1",
31
31
  "tailwindcss": "^3",
32
32
  "tailwindcss-hero-patterns": "^0.0.1",
33
+ "tailwindcss-multi-column": "^1.0.2",
33
34
  "webpack-watch-files-plugin": "^1.1.0"
34
35
  },
35
36
  "repository": {
package/src/encore.js CHANGED
@@ -8,6 +8,7 @@ function getFilesToWatch(basePath = './..') {
8
8
  basePath + '/vendor/pushword/core/src/templates/*.html.twig',
9
9
  basePath + '/vendor/pushword/conversation/src/templates/*.html.twig',
10
10
  basePath + '/vendor/pushword/admin-block-editor/src/templates/page/*.html.twig',
11
+ basePath + '/vendor/pushword/advanced-main-image/src/templates/page/*.html.twig',
11
12
  basePath + '/templates/*.html.twig',
12
13
  basePath + '/templates/**/*.html.twig',
13
14
  basePath + '/templates/**/**/*.html.twig',
@@ -65,6 +66,8 @@ module.exports = {
65
66
  outputPath = outputPath ? outputPath : './../public/assets/';
66
67
  publicPath = publicPath ? publicPath : '/assets';
67
68
 
69
+ Encore.configureRuntimeEnvironment('dev');
70
+
68
71
  Encore.setOutputPath(outputPath)
69
72
  .setPublicPath(publicPath)
70
73
  .cleanupOutputBeforeBuild()
@@ -1,33 +1,34 @@
1
- const plugin = require("tailwindcss/plugin");
2
- const pushwordHelper = require("@pushword/js-helper/src/tailwind.helpers.js");
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: "jit",
5
+ mode: 'jit',
6
6
  theme: {
7
7
  minHeight: {
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%",
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: "var(--primary)",
21
- secondary: "var(--secondary)",
20
+ primary: 'var(--primary)',
21
+ secondary: 'var(--secondary)',
22
22
  },
23
23
  },
24
24
  },
25
25
  variants: {},
26
26
  plugins: [
27
- require("tailwindcss-multi-column")(),
28
- require("@tailwindcss/typography"),
29
- require("@tailwindcss/aspect-ratio"),
30
- require("@tailwindcss/forms"),
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),
@@ -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
+ }