@andreyshpigunov/x 0.3.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.
Files changed (60) hide show
  1. package/.editorconfig +12 -0
  2. package/.github/workflows/publish.yml +28 -0
  3. package/README.md +37 -0
  4. package/assets/alpha.png +0 -0
  5. package/assets/apple-touch-icon.png +0 -0
  6. package/assets/github-mark-white.png +0 -0
  7. package/assets/github-mark.png +0 -0
  8. package/assets/logo-inverse.png +0 -0
  9. package/assets/logo.png +0 -0
  10. package/assets/logo.svg +9 -0
  11. package/babel.config.cjs +4 -0
  12. package/dist/app.css +167 -0
  13. package/dist/app.js +1 -0
  14. package/dist/x.css +167 -0
  15. package/dist/x.js +1 -0
  16. package/favicon.ico +0 -0
  17. package/favicon.svg +9 -0
  18. package/index.html +2214 -0
  19. package/index.js +1 -0
  20. package/jest.config.mjs +7 -0
  21. package/jsdoc.json +11 -0
  22. package/package.json +50 -0
  23. package/src/components/x/animate.js +296 -0
  24. package/src/components/x/appear.js +158 -0
  25. package/src/components/x/autocomplete.js +150 -0
  26. package/src/components/x/buttons.css +265 -0
  27. package/src/components/x/colors.css +64 -0
  28. package/src/components/x/debug.css +55 -0
  29. package/src/components/x/device.js +265 -0
  30. package/src/components/x/dropdown.css +164 -0
  31. package/src/components/x/dropdown.js +463 -0
  32. package/src/components/x/flex.css +163 -0
  33. package/src/components/x/flow.css +52 -0
  34. package/src/components/x/form.css +138 -0
  35. package/src/components/x/form.js +180 -0
  36. package/src/components/x/grid.css +109 -0
  37. package/src/components/x/helpers.css +928 -0
  38. package/src/components/x/hover.js +93 -0
  39. package/src/components/x/icons.css +58 -0
  40. package/src/components/x/lazyload.js +153 -0
  41. package/src/components/x/lib.js +679 -0
  42. package/src/components/x/links.css +114 -0
  43. package/src/components/x/loadmore.js +191 -0
  44. package/src/components/x/modal.css +286 -0
  45. package/src/components/x/modal.js +346 -0
  46. package/src/components/x/reset.css +213 -0
  47. package/src/components/x/scroll.css +100 -0
  48. package/src/components/x/scroll.js +301 -0
  49. package/src/components/x/sheets.css +15 -0
  50. package/src/components/x/sheets.js +147 -0
  51. package/src/components/x/slider.css +83 -0
  52. package/src/components/x/slider.js +330 -0
  53. package/src/components/x/space.css +56 -0
  54. package/src/components/x/sticky.css +28 -0
  55. package/src/components/x/sticky.js +156 -0
  56. package/src/components/x/typo.css +318 -0
  57. package/src/css/app.css +407 -0
  58. package/src/css/x.css +252 -0
  59. package/src/js/app.js +47 -0
  60. package/src/js/x.js +81 -0
package/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.log]
12
+ max_line_length = 0
@@ -0,0 +1,28 @@
1
+ name: Publish to npm on Release
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - name: Checkout repo
13
+ uses: actions/checkout@v4
14
+
15
+ - name: Use Node.js
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: 20
19
+ registry-url: https://registry.npmjs.org/
20
+
21
+ - name: Install deps
22
+ run: npm ci
23
+
24
+ - name: Publish to npm
25
+ env:
26
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27
+ NPM_CONFIG_REGISTRY: https://registry.npmjs.org/
28
+ run: npm publish --access public
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # X
2
+
3
+ Small and simple Javascript library with interesting features.
4
+
5
+ ## Modules
6
+
7
+ - Animate
8
+ - Appear
9
+ - Device
10
+ - Form
11
+ - Hover
12
+ - Lazyload
13
+ - Lib
14
+ - Loadmore
15
+ - Modal
16
+ - Scroll
17
+ - Sheets
18
+ - Slides
19
+ - Sticky
20
+
21
+ And several CSS styles for fast prototyping or usage as base styles.
22
+
23
+ [View details](https://andreyshpigunov.github.io/x/)
24
+
25
+ # Build
26
+
27
+ ## Building project
28
+ ```npm run build```
29
+
30
+ ## Publishing on NPM with CI/CD
31
+ - update version in package.json
32
+ - commit and push changes
33
+ - on GitHub create release
34
+ - creating release trigger CI/CD publishing process
35
+
36
+ ## Install from NPM
37
+ ```npm i @andreyshpigunov/x@version```
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Generated by Pixelmator Pro 3.6.6 -->
3
+ <svg width="240" height="240" viewBox="0 0 240 240" xmlns="http://www.w3.org/2000/svg">
4
+ <linearGradient id="linearGradient1" x1="123.272648" y1="239.90132" x2="123.272648" y2="-0.132868" gradientUnits="userSpaceOnUse">
5
+ <stop offset="0" stop-color="#cb43f6" stop-opacity="1"/>
6
+ <stop offset="1" stop-color="#ec4cbd" stop-opacity="1"/>
7
+ </linearGradient>
8
+ <path id="X" fill="url(#linearGradient1)" fill-rule="evenodd" stroke="none" d="M 172.608353 240 L 120.065979 155.254242 L 69.557487 240 L 0 240 L 84.472801 117.22036 L -0 0 L 77.015144 0 L 121.760933 74.576263 L 165.828705 0 L 240 0 L 157.354111 117.22036 L 244.133759 240 Z"/>
9
+ </svg>
@@ -0,0 +1,4 @@
1
+ // babel.config.cjs
2
+ module.exports = {
3
+ presets: ['@babel/preset-env'],
4
+ };