@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.
- package/.editorconfig +12 -0
- package/.github/workflows/publish.yml +28 -0
- package/README.md +37 -0
- package/assets/alpha.png +0 -0
- package/assets/apple-touch-icon.png +0 -0
- package/assets/github-mark-white.png +0 -0
- package/assets/github-mark.png +0 -0
- package/assets/logo-inverse.png +0 -0
- package/assets/logo.png +0 -0
- package/assets/logo.svg +9 -0
- package/babel.config.cjs +4 -0
- package/dist/app.css +167 -0
- package/dist/app.js +1 -0
- package/dist/x.css +167 -0
- package/dist/x.js +1 -0
- package/favicon.ico +0 -0
- package/favicon.svg +9 -0
- package/index.html +2214 -0
- package/index.js +1 -0
- package/jest.config.mjs +7 -0
- package/jsdoc.json +11 -0
- package/package.json +50 -0
- package/src/components/x/animate.js +296 -0
- package/src/components/x/appear.js +158 -0
- package/src/components/x/autocomplete.js +150 -0
- package/src/components/x/buttons.css +265 -0
- package/src/components/x/colors.css +64 -0
- package/src/components/x/debug.css +55 -0
- package/src/components/x/device.js +265 -0
- package/src/components/x/dropdown.css +164 -0
- package/src/components/x/dropdown.js +463 -0
- package/src/components/x/flex.css +163 -0
- package/src/components/x/flow.css +52 -0
- package/src/components/x/form.css +138 -0
- package/src/components/x/form.js +180 -0
- package/src/components/x/grid.css +109 -0
- package/src/components/x/helpers.css +928 -0
- package/src/components/x/hover.js +93 -0
- package/src/components/x/icons.css +58 -0
- package/src/components/x/lazyload.js +153 -0
- package/src/components/x/lib.js +679 -0
- package/src/components/x/links.css +114 -0
- package/src/components/x/loadmore.js +191 -0
- package/src/components/x/modal.css +286 -0
- package/src/components/x/modal.js +346 -0
- package/src/components/x/reset.css +213 -0
- package/src/components/x/scroll.css +100 -0
- package/src/components/x/scroll.js +301 -0
- package/src/components/x/sheets.css +15 -0
- package/src/components/x/sheets.js +147 -0
- package/src/components/x/slider.css +83 -0
- package/src/components/x/slider.js +330 -0
- package/src/components/x/space.css +56 -0
- package/src/components/x/sticky.css +28 -0
- package/src/components/x/sticky.js +156 -0
- package/src/components/x/typo.css +318 -0
- package/src/css/app.css +407 -0
- package/src/css/x.css +252 -0
- package/src/js/app.js +47 -0
- package/src/js/x.js +81 -0
package/.editorconfig
ADDED
|
@@ -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```
|
package/assets/alpha.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/assets/logo.png
ADDED
|
Binary file
|
package/assets/logo.svg
ADDED
|
@@ -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>
|
package/babel.config.cjs
ADDED