@fragment-build/ui 1.13.2 → 1.13.4
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/components/color-input/ColorInput.d.ts +4 -2
- package/dist/components/color-input/ColorInput.js +4 -3
- package/dist/components/color-input/ColorInput.js.map +1 -1
- package/dist/components/color-input/ColorInput.stories.d.ts +1 -0
- package/dist/components/color-input/ColorInput.stories.js +6 -0
- package/dist/components/color-input/ColorInput.stories.js.map +1 -1
- package/dist/hooks/breakpoints.d.ts +86 -0
- package/dist/hooks/breakpoints.js +121 -1
- package/dist/hooks/breakpoints.js.map +1 -1
- package/package.json +4 -5
|
@@ -2,5 +2,7 @@ import type { InputProps } from '@nextui-org/react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Primary UI component for selecting a color
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export interface ColorInputProps extends InputProps {
|
|
6
|
+
placeholderValue?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ColorInput: ({ defaultValue, placeholderValue, label, errorMessage, onValueChange, isInvalid, value: controlledValue, placeholder, ...rest }: ColorInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,8 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import { Avatar, Input } from '../base';
|
|
4
4
|
import { withFragment } from '../../withFragment';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
;
|
|
6
|
+
export const ColorInput = withFragment(({ defaultValue = '', placeholderValue, label = 'Color', errorMessage = "Please enter a valid color in hex format e.g. #f3f or #ff33ff", onValueChange, isInvalid, value: controlledValue, placeholder, ...rest }) => {
|
|
7
|
+
const [value, setValue] = useState(controlledValue || defaultValue);
|
|
7
8
|
useEffect(() => onValueChange && onValueChange(value), [value, onValueChange]);
|
|
8
9
|
useEffect(() => {
|
|
9
10
|
if (!controlledValue)
|
|
@@ -21,6 +22,6 @@ export const ColorInput = withFragment(({ defaultValue, label = 'Color', errorMe
|
|
|
21
22
|
rest.onChange(e);
|
|
22
23
|
setValue(e.currentTarget.value);
|
|
23
24
|
};
|
|
24
|
-
return (_jsx(Input, { ...rest, label: label, type: "text", value: value, onValueChange: setValue, isInvalid: invalid, errorMessage: invalid && errorMessage, endContent: (_jsx(Avatar, { as: "button", size: "sm", showFallback: true, fallback: _jsx("input", { type: 'color', className: "w-full h-full opacity-0 cursor-pointer", onChange: handleOnChange }), style: { backgroundColor: value }, classNames: { base: 'shrink-0 self-center -mb-0.5', fallback: 'w-full h-full' } })) }));
|
|
25
|
+
return (_jsx(Input, { ...rest, label: label, type: "text", value: value, onValueChange: setValue, isInvalid: invalid, errorMessage: invalid && errorMessage, placeholder: placeholder || placeholderValue, endContent: (_jsx(Avatar, { as: "button", size: "sm", showFallback: true, fallback: _jsx("input", { type: 'color', className: "w-full h-full opacity-0 cursor-pointer", value: value || placeholderValue, onChange: handleOnChange }), style: { backgroundColor: value || placeholderValue }, classNames: { base: 'shrink-0 self-center -mb-0.5', fallback: 'w-full h-full' } })) }));
|
|
25
26
|
}, 'colorInput');
|
|
26
27
|
//# sourceMappingURL=ColorInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorInput.js","sourceRoot":"","sources":["../../../src/components/color-input/ColorInput.tsx"],"names":[],"mappings":";AACA,OAAO,EAAe,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ColorInput.js","sourceRoot":"","sources":["../../../src/components/color-input/ColorInput.tsx"],"names":[],"mappings":";AACA,OAAO,EAAe,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EA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AAQ,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;IACjC,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,KAAK,OACA,IAAI,EACR,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,QAAQ,EACvB,SAAS,EAAE,OAAO,EAClB,YAAY,EAAE,OAAO,IAAI,YAAY,EACrC,WAAW,EAAE,WAAW,IAAI,gBAAgB,EAC5C,UAAU,EAAE,CACV,KAAC,MAAM,IACL,EAAE,EAAC,QAAQ,EACX,IAAI,EAAC,IAAI,EACT,YAAY,QACZ,QAAQ,EAAE,gBAAO,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,wCAAwC,EAAC,KAAK,EAAE,KAAK,IAAI,gBAAgB,EAAE,QAAQ,EAAE,cAAc,GAAI,EAC/I,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,IAAI,gBAAgB,EAAE,EACrD,UAAU,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE,QAAQ,EAAE,eAAe,EAAE,GAC/E,CACH,GACD,CACH,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorInput.stories.js","sourceRoot":"","sources":["../../../src/components/color-input/ColorInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,qGAAqG;AACrG,MAAM,IAAI,GAA4B;IACpC,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,8FAA8F;AAC9F,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,aAAa,EAAE,OAAO,CAAC,GAAG;KAC3B;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"ColorInput.stories.js","sourceRoot":"","sources":["../../../src/components/color-input/ColorInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,qGAAqG;AACrG,MAAM,IAAI,GAA4B;IACpC,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,8FAA8F;AAC9F,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,aAAa,EAAE,OAAO,CAAC,GAAG;KAC3B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,IAAI,EAAE;QACJ,aAAa,EAAE,OAAO,CAAC,GAAG;QAC1B,gBAAgB,EAAE,SAAS;KAC5B;CACF,CAAC"}
|
|
@@ -1 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breakpoints from Tailwind V2
|
|
3
|
+
*
|
|
4
|
+
* @see https://tailwindcss.com/docs/breakpoints
|
|
5
|
+
*/
|
|
6
|
+
export declare const breakpointsTailwind: {
|
|
7
|
+
sm: number;
|
|
8
|
+
md: number;
|
|
9
|
+
lg: number;
|
|
10
|
+
xl: number;
|
|
11
|
+
'2xl': number;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Reactive media query hook that returns the truthy value of the media query.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} query
|
|
17
|
+
* @returns {boolean} boolean value of the query
|
|
18
|
+
*
|
|
19
|
+
* @see https://react-hooks-library.vercel.app/core/useMediaQuery
|
|
20
|
+
*/
|
|
21
|
+
export declare function useMediaQuery(query: string): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Reactive hooks and utilities to be used with user provided breakpoints.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} breakpoints
|
|
26
|
+
* @returns functions to be used as hooks
|
|
27
|
+
*
|
|
28
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
29
|
+
*/
|
|
30
|
+
export declare function BreakPointHooks<BreakPoints extends Record<string, number>>(breakpoints: BreakPoints): {
|
|
31
|
+
/**
|
|
32
|
+
* Hook that returns a boolean if screen width is greater than given breakpoint.
|
|
33
|
+
*
|
|
34
|
+
* @param k {string} breakpoint
|
|
35
|
+
* @returns boolean
|
|
36
|
+
*
|
|
37
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
38
|
+
**/
|
|
39
|
+
useGreater: (k: keyof BreakPoints) => boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Hook that returns a boolean if screen width is smaller than given breakpoint.
|
|
42
|
+
*
|
|
43
|
+
* @param k {string} breakpoint
|
|
44
|
+
* @param k {string} breakpoint
|
|
45
|
+
*
|
|
46
|
+
* @returns boolean
|
|
47
|
+
*
|
|
48
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
49
|
+
**/
|
|
50
|
+
useSmaller: (k: keyof BreakPoints) => boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Hook that returns a boolean if screen width is between two given breakpoint.
|
|
53
|
+
*
|
|
54
|
+
* @param a {string} breakpoint
|
|
55
|
+
* @param b {string} breakpoint
|
|
56
|
+
*
|
|
57
|
+
* @returns boolean
|
|
58
|
+
*
|
|
59
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
60
|
+
**/
|
|
61
|
+
useBetween: (a: keyof BreakPoints, b: keyof BreakPoints) => boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Utility function that returns a boolean if screen width is greater than given breakpoint.
|
|
64
|
+
*
|
|
65
|
+
* @param k {string} breakpoint
|
|
66
|
+
*
|
|
67
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
68
|
+
**/
|
|
69
|
+
isGreater(k: keyof BreakPoints): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Utility function that returns a boolean if screen width is smaller than given breakpoint.
|
|
72
|
+
*
|
|
73
|
+
* @param k {string} breakpoint
|
|
74
|
+
*
|
|
75
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
76
|
+
**/
|
|
77
|
+
isSmaller(k: keyof BreakPoints): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Utility function that returns a boolean if screen width is between two given breakpoint.
|
|
80
|
+
*
|
|
81
|
+
* @param k {string} breakpoint
|
|
82
|
+
*
|
|
83
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
84
|
+
**/
|
|
85
|
+
isInBetween(a: keyof BreakPoints, b: keyof BreakPoints): boolean;
|
|
86
|
+
};
|
|
1
87
|
export declare const useGreater: (k: "sm" | "md" | "lg" | "xl" | "2xl") => boolean, useBetween: (a: "sm" | "md" | "lg" | "xl" | "2xl", b: "sm" | "md" | "lg" | "xl" | "2xl") => boolean, useSmaller: (k: "sm" | "md" | "lg" | "xl" | "2xl") => boolean;
|
|
@@ -1,3 +1,123 @@
|
|
|
1
|
-
|
|
1
|
+
// this file is based on @react-hooks-library/core with some fixes
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Breakpoints from Tailwind V2
|
|
5
|
+
*
|
|
6
|
+
* @see https://tailwindcss.com/docs/breakpoints
|
|
7
|
+
*/
|
|
8
|
+
export const breakpointsTailwind = {
|
|
9
|
+
sm: 640,
|
|
10
|
+
md: 768,
|
|
11
|
+
lg: 1024,
|
|
12
|
+
xl: 1280,
|
|
13
|
+
'2xl': 1536
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Reactive media query hook that returns the truthy value of the media query.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} query
|
|
19
|
+
* @returns {boolean} boolean value of the query
|
|
20
|
+
*
|
|
21
|
+
* @see https://react-hooks-library.vercel.app/core/useMediaQuery
|
|
22
|
+
*/
|
|
23
|
+
export function useMediaQuery(query) {
|
|
24
|
+
const [matches, setMatches] = useState(typeof window === 'undefined' ? false : window.matchMedia(query).matches);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
setMatches(window.matchMedia(query).matches);
|
|
27
|
+
}, []);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
const mediaQuery = window.matchMedia(query);
|
|
30
|
+
const handler = (event) => {
|
|
31
|
+
setMatches(event.matches);
|
|
32
|
+
};
|
|
33
|
+
mediaQuery.addEventListener('change', handler);
|
|
34
|
+
return () => mediaQuery.removeEventListener('change', handler);
|
|
35
|
+
}, [query]);
|
|
36
|
+
return matches;
|
|
37
|
+
}
|
|
38
|
+
function match(query) {
|
|
39
|
+
if (typeof window === 'undefined')
|
|
40
|
+
return false;
|
|
41
|
+
return window.matchMedia(query).matches;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Reactive hooks and utilities to be used with user provided breakpoints.
|
|
45
|
+
*
|
|
46
|
+
* @param {string} breakpoints
|
|
47
|
+
* @returns functions to be used as hooks
|
|
48
|
+
*
|
|
49
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
50
|
+
*/
|
|
51
|
+
export function BreakPointHooks(breakpoints) {
|
|
52
|
+
return {
|
|
53
|
+
/**
|
|
54
|
+
* Hook that returns a boolean if screen width is greater than given breakpoint.
|
|
55
|
+
*
|
|
56
|
+
* @param k {string} breakpoint
|
|
57
|
+
* @returns boolean
|
|
58
|
+
*
|
|
59
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
60
|
+
**/
|
|
61
|
+
useGreater: (k) => {
|
|
62
|
+
return useMediaQuery(`(min-width: ${breakpoints[k]}px)`);
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* Hook that returns a boolean if screen width is smaller than given breakpoint.
|
|
66
|
+
*
|
|
67
|
+
* @param k {string} breakpoint
|
|
68
|
+
* @param k {string} breakpoint
|
|
69
|
+
*
|
|
70
|
+
* @returns boolean
|
|
71
|
+
*
|
|
72
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
73
|
+
**/
|
|
74
|
+
useSmaller: (k) => {
|
|
75
|
+
return useMediaQuery(`(max-width: ${breakpoints[k]}px)`);
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* Hook that returns a boolean if screen width is between two given breakpoint.
|
|
79
|
+
*
|
|
80
|
+
* @param a {string} breakpoint
|
|
81
|
+
* @param b {string} breakpoint
|
|
82
|
+
*
|
|
83
|
+
* @returns boolean
|
|
84
|
+
*
|
|
85
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
86
|
+
**/
|
|
87
|
+
useBetween: (a, b) => {
|
|
88
|
+
return useMediaQuery(`(min-width: ${breakpoints[a]}px) and (max-width: ${breakpoints[b]}px)`);
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Utility function that returns a boolean if screen width is greater than given breakpoint.
|
|
92
|
+
*
|
|
93
|
+
* @param k {string} breakpoint
|
|
94
|
+
*
|
|
95
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
96
|
+
**/
|
|
97
|
+
isGreater(k) {
|
|
98
|
+
return match(`(min-width: ${breakpoints[k]}px)`);
|
|
99
|
+
},
|
|
100
|
+
/**
|
|
101
|
+
* Utility function that returns a boolean if screen width is smaller than given breakpoint.
|
|
102
|
+
*
|
|
103
|
+
* @param k {string} breakpoint
|
|
104
|
+
*
|
|
105
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
106
|
+
**/
|
|
107
|
+
isSmaller(k) {
|
|
108
|
+
return match(`(max-width: ${breakpoints[k]}px)`);
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* Utility function that returns a boolean if screen width is between two given breakpoint.
|
|
112
|
+
*
|
|
113
|
+
* @param k {string} breakpoint
|
|
114
|
+
*
|
|
115
|
+
* @see https://react-hooks-library.vercel.app/core/BreakPointHooks
|
|
116
|
+
**/
|
|
117
|
+
isInBetween(a, b) {
|
|
118
|
+
return match(`(min-width: ${breakpoints[a]}px) and (max-width: ${breakpoints[b]}px)`);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
2
122
|
export const { useGreater, useBetween, useSmaller } = BreakPointHooks(breakpointsTailwind);
|
|
3
123
|
//# sourceMappingURL=breakpoints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../src/hooks/breakpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../src/hooks/breakpoints.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,IAAI;CACZ,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAA;IAEhH,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAA;IAC9C,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QAC3C,MAAM,OAAO,GAAG,CAAC,KAA0B,EAAE,EAAE;YAC7C,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QAC3B,CAAC,C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I;QACJ,WAAW,CAAC,CAAiB,EAAE,CAAiB;YAC9C,OAAO,KAAK,CACV,eAAe,WAAW,CAAC,CAAC,CAAC,uBAAuB,WAAW,CAAC,CAAC,CAAC,KAAK,CACxE,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fragment-build/ui",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@types/lodash.defaultsdeep": "4.6.9",
|
|
22
22
|
"@types/react": "18.3.11",
|
|
23
23
|
"@types/react-dom": "18.3.1",
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
25
|
-
"@typescript-eslint/parser": "8.
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "8.10.0",
|
|
25
|
+
"@typescript-eslint/parser": "8.10.0",
|
|
26
26
|
"@vitejs/plugin-react": "4.3.2",
|
|
27
27
|
"@vitejs/plugin-react-swc": "3.7.1",
|
|
28
28
|
"autoprefixer": "10.4.20",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"storybook": "8.3.5",
|
|
37
37
|
"storybook-dark-mode": "4.0.2",
|
|
38
38
|
"typescript": "5.6.3",
|
|
39
|
-
"typescript-eslint": "8.
|
|
39
|
+
"typescript-eslint": "8.10.0",
|
|
40
40
|
"vite": "5.4.9"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@nextui-org/react": "2.4.8",
|
|
51
|
-
"@react-hooks-library/core": "0.6.2",
|
|
52
51
|
"@tabler/icons-react": "3.19.0",
|
|
53
52
|
"apexcharts": "3.54.1",
|
|
54
53
|
"framer-motion": "11.11.9",
|