@stackshift-ui/swiper-button 6.0.11-beta.2 → 7.0.0-beta.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/swiper-button",
3
3
  "description": "",
4
- "version": "6.0.11-beta.2",
4
+ "version": "7.0.0-beta.0",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,21 +29,21 @@
29
29
  "typescript": "^5.6.2",
30
30
  "vite-tsconfig-paths": "^5.0.1",
31
31
  "vitest": "^2.1.1",
32
- "@stackshift-ui/typescript-config": "6.0.10-beta.2",
33
- "@stackshift-ui/eslint-config": "6.0.10-beta.2"
32
+ "@stackshift-ui/eslint-config": "6.0.10",
33
+ "@stackshift-ui/typescript-config": "6.0.10"
34
34
  },
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
- "@stackshift-ui/scripts": "6.0.10-beta.2",
38
- "@stackshift-ui/button": "6.0.11-beta.2",
39
- "@stackshift-ui/system": "6.0.11-beta.2"
37
+ "@stackshift-ui/scripts": "6.1.0-beta.0",
38
+ "@stackshift-ui/system": "6.1.0-beta.0",
39
+ "@stackshift-ui/button": "6.1.0-beta.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@types/react": "16.8 - 19",
43
43
  "next": "10 - 14",
44
44
  "react": "16.8 - 19",
45
45
  "react-dom": "16.8 - 19",
46
- "@stackshift-ui/system": ">=6.0.11-beta.2"
46
+ "@stackshift-ui/system": ">=6.1.0-beta.0"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
49
  "next": {
@@ -5,7 +5,7 @@ import type { ElementType, HTMLProps, ReactNode } from "react";
5
5
 
6
6
  type Variant = "variant_a" | "variant_b";
7
7
 
8
- export interface SwiperButtonProps extends Omit<HTMLProps<HTMLElement>, "as" | "size"> {
8
+ export interface SwiperButtonProps extends Omit<HTMLProps<HTMLButtonElement>, "as" | "size"> {
9
9
  variant?: Variant;
10
10
  type?: "left" | "right";
11
11
  onClick?: () => void;
@@ -47,12 +47,11 @@ export const SwiperButton: React.FC<SwiperButtonProps> = ({
47
47
 
48
48
  return (
49
49
  <Component
50
- as="button"
51
50
  variant="unstyled"
52
51
  onClick={onClick}
53
52
  className={cn(classes, className)}
54
53
  data-testid={displayName.toLowerCase()}
55
- ariaLabel={ariaLabel}
54
+ aria-label={ariaLabel}
56
55
  {...props}>
57
56
  {children ? children : <Element type={type} />}
58
57
  </Component>