@silverlila/slider 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,30 @@
1
+ :where([data-slider-viewport]) {
2
+ position: relative;
3
+ display: flex;
4
+ gap: var(--slider-gap, 0px);
5
+ overflow-x: auto;
6
+ overflow-y: hidden;
7
+ overscroll-behavior-x: contain;
8
+ scroll-snap-type: x mandatory;
9
+ scrollbar-width: none;
10
+ }
11
+ :where([data-slider-viewport])::-webkit-scrollbar {
12
+ display: none;
13
+ }
14
+ :where([data-slider-viewport][data-axis='y']) {
15
+ flex-direction: column;
16
+ overflow-x: hidden;
17
+ overflow-y: auto;
18
+ overscroll-behavior-x: auto;
19
+ overscroll-behavior-y: contain;
20
+ scroll-snap-type: y mandatory;
21
+ }
22
+ :where([data-slider-viewport]) > * {
23
+ flex-shrink: 0;
24
+ flex-basis: calc(
25
+ (100% - (var(--slider-per-view) - 1) * var(--slider-gap, 0px)) / var(--slider-per-view)
26
+ );
27
+ min-width: 0;
28
+ min-height: 0;
29
+ scroll-snap-align: var(--slider-align, start);
30
+ }
package/package.json CHANGED
@@ -1,6 +1,89 @@
1
1
  {
2
2
  "name": "@silverlila/slider",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "A slider and carousel library built on native browser scrolling.",
5
+ "license": "MIT",
6
+ "author": "silvi lila",
7
+ "homepage": "https://silverlila.github.io/slider/",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/silverlila/slider.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/silverlila/slider/issues"
14
+ },
15
+ "type": "module",
16
+ "sideEffects": [
17
+ "*.css"
18
+ ],
19
+ "main": "./dist/index.js",
20
+ "module": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
26
+ },
27
+ "./core": {
28
+ "types": "./dist/core.d.ts",
29
+ "default": "./dist/core.js"
30
+ },
31
+ "./styles.css": "./dist/styles.css"
32
+ },
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "keywords": [
40
+ "slider",
41
+ "carousel",
42
+ "scroll-snap",
43
+ "react"
44
+ ],
45
+ "peerDependencies": {
46
+ "react": "^19"
47
+ },
48
+ "peerDependenciesMeta": {
49
+ "react": {
50
+ "optional": true
51
+ }
52
+ },
53
+ "dependencies": {
54
+ "use-scroller": "^2.0.0"
55
+ },
56
+ "devDependencies": {
57
+ "@changesets/cli": "^3.0.3",
58
+ "@eslint/js": "^9.30.1",
59
+ "@types/react": "^19.1.8",
60
+ "@types/react-dom": "^19.1.6",
61
+ "@vitejs/plugin-react": "^4.6.0",
62
+ "@vitest/browser-playwright": "^5.0.5",
63
+ "eslint": "^9.30.1",
64
+ "eslint-plugin-react-hooks": "^5.2.0",
65
+ "eslint-plugin-react-refresh": "^0.4.20",
66
+ "globals": "^16.3.0",
67
+ "playwright": "^1.64.1",
68
+ "react": "^19.3.1",
69
+ "react-dom": "^19.3.1",
70
+ "sugar-high": "^2.6.0",
71
+ "tsup": "^9.0.0",
72
+ "typescript": "~5.8.3",
73
+ "typescript-eslint": "^8.35.1",
74
+ "vite": "^7.0.4",
75
+ "vitest": "^5.0.5",
76
+ "vitest-browser-react": "^2.3.0"
77
+ },
78
+ "scripts": {
79
+ "dev": "vite",
80
+ "build": "tsup && cp src/styles.css dist/styles.css",
81
+ "typecheck": "tsc -b",
82
+ "lint": "eslint .",
83
+ "test": "vitest run",
84
+ "test:watch": "vitest",
85
+ "playground:build": "vite build --outDir dist-playground",
86
+ "changeset": "changeset",
87
+ "release": "changeset publish"
88
+ }
6
89
  }