@sportflow/ui 0.0.4 → 0.1.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/dist/index.es.js +6020 -447
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +17 -18
- package/package.json +10 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ChangeEvent } from 'react';
|
|
2
|
-
import { default as default_2 } from 'react';
|
|
3
1
|
import { Icon } from '@phosphor-icons/react';
|
|
4
2
|
import { JSX } from 'react/jsx-runtime';
|
|
5
3
|
|
|
@@ -20,25 +18,26 @@ export declare interface ButtonProps {
|
|
|
20
18
|
extraClassName?: string;
|
|
21
19
|
}
|
|
22
20
|
|
|
21
|
+
export declare function Counter({ value, suffix, variant, size, className, }: CounterProps): JSX.Element;
|
|
22
|
+
|
|
23
|
+
export declare interface CounterProps {
|
|
24
|
+
value: number;
|
|
25
|
+
suffix?: string;
|
|
26
|
+
variant?: "primary" | "secondary";
|
|
27
|
+
size?: "small" | "medium" | "large";
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
export declare type IconPosition = ButtonProps["iconPosition"];
|
|
24
32
|
|
|
25
|
-
export declare
|
|
26
|
-
|
|
27
|
-
export declare interface
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
placeholder?: string;
|
|
33
|
-
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
34
|
-
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
35
|
-
error?: string | null;
|
|
36
|
-
inputExtraClassName?: string;
|
|
37
|
-
labelExtraClassName?: string;
|
|
38
|
-
fullWidth?: boolean;
|
|
33
|
+
export declare function Navigation({ currentPage, totalPages, onPageChange, className, disabled, }: NavigationProps): JSX.Element;
|
|
34
|
+
|
|
35
|
+
export declare interface NavigationProps {
|
|
36
|
+
currentPage: number;
|
|
37
|
+
totalPages: number;
|
|
38
|
+
onPageChange: (page: number) => void;
|
|
39
|
+
className?: string;
|
|
39
40
|
disabled?: boolean;
|
|
40
|
-
rounded?: string;
|
|
41
|
-
showRequirements?: boolean;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
export declare function PasswordTooltip({ password, color, }: PasswordTooltipProps): JSX.Element;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sportflow/ui",
|
|
3
3
|
"description": "Librería de componentes frontend del equipo Sportflow",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.0
|
|
5
|
+
"version": "0.1.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
@@ -39,11 +39,16 @@
|
|
|
39
39
|
"Luciano-sp"
|
|
40
40
|
],
|
|
41
41
|
"license": "MIT",
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": ">=18.0.0",
|
|
44
|
+
"react-dom": ">=18.0.0"
|
|
45
|
+
},
|
|
42
46
|
"dependencies": {
|
|
43
47
|
"@phosphor-icons/react": "^2.1.10",
|
|
44
48
|
"@tailwindcss/vite": "^4.1.17",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
49
|
+
"clsx": "^2.1.1",
|
|
50
|
+
"framer-motion": "^12.23.26",
|
|
51
|
+
"tailwind-merge": "^3.4.0",
|
|
47
52
|
"tailwindcss": "^4.1.17",
|
|
48
53
|
"vite-plugin-dts": "^4.5.4"
|
|
49
54
|
},
|
|
@@ -69,6 +74,8 @@
|
|
|
69
74
|
"globals": "^16.5.0",
|
|
70
75
|
"husky": "^9.1.7",
|
|
71
76
|
"jsdom": "^27.2.0",
|
|
77
|
+
"react": "^19.2.0",
|
|
78
|
+
"react-dom": "^19.2.0",
|
|
72
79
|
"storybook": "^10.0.8",
|
|
73
80
|
"typescript": "~5.9.3",
|
|
74
81
|
"typescript-eslint": "^8.46.3",
|