@stackshift-ui/swiper-pagination 7.0.0-beta.1 → 7.0.0-beta.3

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,37 @@
1
+ // src/swiper-pagination.tsx
2
+ import { DefaultComponent, useStackShiftUIComponents } from "@stackshift-ui/system";
3
+ import cn from "classnames";
4
+ import { jsx } from "react/jsx-runtime";
5
+ var displayName = "SwiperPagination";
6
+ var SwiperPagination = ({
7
+ isActive = false,
8
+ colorScheme = "blue",
9
+ onClick,
10
+ ariaLabel,
11
+ children,
12
+ className,
13
+ as = "button",
14
+ ...props
15
+ }) => {
16
+ const { [displayName]: Component = DefaultComponent } = useStackShiftUIComponents();
17
+ const variantClass = {
18
+ blue: `mr-1 ${isActive ? "bg-primary" : "bg-gray-200"} rounded-full p-1 focus:outline-none`,
19
+ white: `mr-2 inline-block h-2 w-2 rounded-full ${isActive ? "bg-white focus:outline-none" : "bg-gray-500 focus:outline-none"}`
20
+ };
21
+ const classes = variantClass[colorScheme];
22
+ return /* @__PURE__ */ jsx(
23
+ Component,
24
+ {
25
+ onClick,
26
+ "aria-label": ariaLabel,
27
+ as,
28
+ className: cn(classes, className),
29
+ ...props
30
+ }
31
+ );
32
+ };
33
+ SwiperPagination.displayName = displayName;
34
+
35
+ export {
36
+ SwiperPagination
37
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/swiper-pagination",
3
3
  "description": "",
4
- "version": "7.0.0-beta.1",
4
+ "version": "7.0.0-beta.3",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,20 +29,20 @@
29
29
  "typescript": "^5.6.2",
30
30
  "vite-tsconfig-paths": "^5.0.1",
31
31
  "vitest": "^2.1.1",
32
- "@stackshift-ui/eslint-config": "6.0.10",
33
- "@stackshift-ui/typescript-config": "6.0.10"
32
+ "@stackshift-ui/typescript-config": "6.0.10",
33
+ "@stackshift-ui/eslint-config": "6.0.10"
34
34
  },
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
- "@stackshift-ui/scripts": "6.1.0-beta.0",
38
- "@stackshift-ui/system": "6.1.0-beta.1"
37
+ "@stackshift-ui/scripts": "6.1.0-beta.2",
38
+ "@stackshift-ui/system": "6.1.0-beta.3"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@types/react": "16.8 - 19",
42
42
  "next": "10 - 14",
43
43
  "react": "16.8 - 19",
44
44
  "react-dom": "16.8 - 19",
45
- "@stackshift-ui/system": ">=6.1.0-beta.1"
45
+ "@stackshift-ui/system": ">=6.1.0-beta.3"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "next": {