decathlon-ui 0.1.6 → 0.1.8
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/badge/index.d.ts +2 -2
- package/dist/components/badge/index.d.ts.map +1 -1
- package/dist/components/badge/index.js +1 -2
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/button/index.js +1 -2
- package/dist/components/category-item/index.d.ts +2 -2
- package/dist/components/category-item/index.d.ts.map +1 -1
- package/dist/components/category-item/index.js +1 -2
- package/dist/components/filter-chip/index.d.ts +2 -2
- package/dist/components/filter-chip/index.d.ts.map +1 -1
- package/dist/components/filter-chip/index.js +1 -2
- package/dist/components/loading/index.d.ts +2 -2
- package/dist/components/loading/index.d.ts.map +1 -1
- package/dist/components/loading/index.js +1 -2
- package/dist/components/loading/loading.component.d.ts.map +1 -1
- package/dist/components/loading/loading.component.js +4 -2
- package/dist/components/range-slider/index.d.ts +2 -2
- package/dist/components/range-slider/index.d.ts.map +1 -1
- package/dist/components/range-slider/index.js +1 -2
- package/dist/components/search-button/index.d.ts +1 -2
- package/dist/components/search-button/index.d.ts.map +1 -1
- package/dist/components/search-button/index.js +1 -2
- package/dist/components/search-button/search-button.component.d.ts +1 -2
- package/dist/components/search-button/search-button.component.d.ts.map +1 -1
- package/dist/components/search-button/search-button.component.js +1 -2
- package/package.json +19 -9
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Badge } from "./badge.component";
|
|
2
|
+
export type { BadgeProps } from "./badge.types";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/badge/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./badge.types";
|
|
1
|
+
export { Badge } from "./badge.component";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Button } from "./button.component";
|
|
2
|
+
export type { ButtonProps } from "./button.props";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./button.types";
|
|
1
|
+
export { Button } from "./button.component";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { CategoryItem } from "./category-item.component";
|
|
2
|
+
export type { CategoryItemProps } from "./category-item.types";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/category-item/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/category-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./category-item.types";
|
|
1
|
+
export { CategoryItem } from "./category-item.component";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { FilterChip } from "./filter-chip.component";
|
|
2
|
+
export type { FilterChipProps } from "./filter-chip.types";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/filter-chip/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/filter-chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./filter-chip.types";
|
|
1
|
+
export { FilterChip } from "./filter-chip.component";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Loading } from "./loading.component";
|
|
2
|
+
export type { LoadingProps } from "./loading.types";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/loading/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/loading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./loading.types";
|
|
1
|
+
export { Loading } from "./loading.component";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading.component.d.ts","sourceRoot":"","sources":["../../../src/components/loading/loading.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loading.component.d.ts","sourceRoot":"","sources":["../../../src/components/loading/loading.component.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAmC1C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Lottie from 'lottie-react';
|
|
2
3
|
import LottieView from 'lottie-react-native';
|
|
3
|
-
import { View } from 'react-native';
|
|
4
|
+
import { Platform, View } from 'react-native';
|
|
5
|
+
import loadingAnimation from '../../assets/animations/loading-animation.json';
|
|
4
6
|
import { useLoadingStyles } from './loading.styles';
|
|
5
7
|
export const Loading = ({ source, isDotLottie = false, // TODO: trabalhar nisso depois para aceitar dotLottie
|
|
6
8
|
autoPlay = true, loop = true, speed = 1, containerStyle, style, onAnimationFinish, size = 100, }) => {
|
|
@@ -10,6 +12,6 @@ autoPlay = true, loop = true, speed = 1, containerStyle, style, onAnimationFinis
|
|
|
10
12
|
{ width: size, height: size },
|
|
11
13
|
containerStyle,
|
|
12
14
|
];
|
|
13
|
-
return (_jsx(View, { style: containerStyles, children: _jsx(LottieView, { source: source || require('../../assets/animations/loading-animation.json'), style: [styles.animation, style], autoPlay: autoPlay, loop: loop, speed: speed, onAnimationFinish: onAnimationFinish }) }));
|
|
15
|
+
return (_jsx(View, { style: containerStyles, children: Platform.OS === 'web' ? (_jsx(Lottie, { animationData: loadingAnimation, loop: true })) : (_jsx(LottieView, { source: source || require('../../assets/animations/loading-animation.json'), style: [styles.animation, style], autoPlay: autoPlay, loop: loop, speed: speed, onAnimationFinish: onAnimationFinish })) }));
|
|
14
16
|
};
|
|
15
17
|
export default Loading;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { RangeSlider } from "./range-slider.component";
|
|
2
|
+
export type { RangeSliderProps } from "./range-slider.types";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/range-slider/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/range-slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./range-slider.types";
|
|
1
|
+
export { RangeSlider } from "./range-slider.component";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/search-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/search-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { SearchButton };
|
|
1
|
+
export { SearchButton } from "./search-button.component";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SearchButtonProps } from "./search-button.props";
|
|
3
|
-
declare const SearchButton: React.FC<SearchButtonProps>;
|
|
4
|
-
export default SearchButton;
|
|
3
|
+
export declare const SearchButton: React.FC<SearchButtonProps>;
|
|
5
4
|
//# sourceMappingURL=search-button.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-button.component.d.ts","sourceRoot":"","sources":["../../../src/components/search-button/search-button.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,
|
|
1
|
+
{"version":3,"file":"search-button.component.d.ts","sourceRoot":"","sources":["../../../src/components/search-button/search-button.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAYpD,CAAC"}
|
|
@@ -2,8 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Text, TouchableOpacity } from "react-native";
|
|
3
3
|
import { SearchIcon } from "../../icons";
|
|
4
4
|
import { useSearchButtonStyles } from "./search-button.styles";
|
|
5
|
-
const SearchButton = ({ onPress, label = "Buscar", }) => {
|
|
5
|
+
export const SearchButton = ({ onPress, label = "Buscar", }) => {
|
|
6
6
|
const styles = useSearchButtonStyles();
|
|
7
7
|
return (_jsxs(TouchableOpacity, { style: styles.container, onPress: onPress, children: [_jsx(SearchIcon, { size: 20, color: "#3E4751" }), _jsx(Text, { style: styles.label, children: label })] }));
|
|
8
8
|
};
|
|
9
|
-
export default SearchButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decathlon-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Biblioteca de componentes React Native com Storybook e documentação via GitHub Pages.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
],
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"scripts": {
|
|
13
|
-
"storybook": "storybook dev -p 6006",
|
|
14
|
-
"build-storybook": "storybook build --output-dir docs",
|
|
13
|
+
"storybook": "npx storybook dev -p 6006",
|
|
14
|
+
"build-storybook": "npx storybook build --output-dir docs",
|
|
15
15
|
"build": "tsc -p tsconfig.build.json",
|
|
16
16
|
"prepublishOnly": "yarn build",
|
|
17
17
|
"generate-icons": "svgr --config-file svgr.config.js --out-dir src/icons/components src/icons/foundations/*.svg",
|
|
@@ -24,23 +24,33 @@
|
|
|
24
24
|
"react-native-svg": ">=12.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@
|
|
28
|
-
"@storybook/addon-
|
|
29
|
-
"@storybook/addon-links": "^9.
|
|
30
|
-
"@storybook/react
|
|
27
|
+
"@lottiefiles/react-lottie-player": "^3.5.4",
|
|
28
|
+
"@storybook/addon-docs": "9.0.15",
|
|
29
|
+
"@storybook/addon-links": "^9.0.15",
|
|
30
|
+
"@storybook/react": "9.0.15",
|
|
31
|
+
"@storybook/react-vite": "^9.0.15",
|
|
32
|
+
"@svgr/cli": "^8.1.0",
|
|
33
|
+
"@svgr/core": "^8.1.0",
|
|
34
|
+
"@svgr/plugin-jsx": "^8.1.0",
|
|
35
|
+
"@svgr/plugin-svgo": "^8.1.0",
|
|
31
36
|
"@types/react": "^18.2.24",
|
|
32
37
|
"@types/react-dom": "^18.2.8",
|
|
33
38
|
"@types/react-native": "^0.73.0",
|
|
34
39
|
"esbuild": "^0.25.5",
|
|
40
|
+
"lottie-react": "^2.4.1",
|
|
35
41
|
"lottie-react-native": "^5.0.0",
|
|
42
|
+
"lottie-web": "^5.12.2",
|
|
43
|
+
"prop-types": "^15.8.1",
|
|
36
44
|
"react": "^19.1.0",
|
|
37
45
|
"react-dom": "^19.1.0",
|
|
38
46
|
"react-native": "^0.78.0",
|
|
39
47
|
"react-native-svg": "^15.10.0",
|
|
48
|
+
"react-native-svg-web": "^1.0.9",
|
|
40
49
|
"react-native-web": "^0.19.9",
|
|
41
|
-
"storybook": "
|
|
50
|
+
"storybook": "9.0.15",
|
|
42
51
|
"typescript": "^5.2.2",
|
|
43
|
-
"vite": "^5.0.0"
|
|
52
|
+
"vite": "^5.0.0",
|
|
53
|
+
"vite-plugin-svgr": "^4.3.0"
|
|
44
54
|
},
|
|
45
55
|
"repository": {
|
|
46
56
|
"type": "git",
|