decathlon-ui 0.1.11 → 0.2.1

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.
@@ -15,9 +15,4 @@ export declare enum ButtonVariant {
15
15
  secondaryInverted = "secondary-inverted",
16
16
  converted = "converted"
17
17
  }
18
- export declare enum ButtonSize {
19
- small = "small",
20
- medium = "medium",
21
- large = "large"
22
- }
23
18
  //# sourceMappingURL=button.props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.props.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.props.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EACJ,SAAS,GACT,kBAAkB,GAClB,WAAW,GACX,oBAAoB,GACpB,WAAW,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,eAAe,qBAAqB;IACpC,SAAS,cAAc;IACvB,iBAAiB,uBAAuB;IACxC,SAAS,cAAc;CACxB;AAED,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB"}
1
+ {"version":3,"file":"button.props.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.props.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EACJ,SAAS,GACT,kBAAkB,GAClB,WAAW,GACX,oBAAoB,GACpB,WAAW,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,eAAe,qBAAqB;IACpC,SAAS,cAAc;IACvB,iBAAiB,uBAAuB;IACxC,SAAS,cAAc;CACxB"}
@@ -6,9 +6,3 @@ export var ButtonVariant;
6
6
  ButtonVariant["secondaryInverted"] = "secondary-inverted";
7
7
  ButtonVariant["converted"] = "converted";
8
8
  })(ButtonVariant || (ButtonVariant = {}));
9
- export var ButtonSize;
10
- (function (ButtonSize) {
11
- ButtonSize["small"] = "small";
12
- ButtonSize["medium"] = "medium";
13
- ButtonSize["large"] = "large";
14
- })(ButtonSize || (ButtonSize = {}));
@@ -1,4 +1,3 @@
1
1
  export { Button } from "./button.component";
2
- export { ButtonSize, ButtonVariant } from "./button.props";
3
2
  export type { ButtonProps } from "./button.props";
4
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,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
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
1
  export { Button } from "./button.component";
2
- export { ButtonSize, ButtonVariant } from "./button.props";
@@ -1,23 +1,23 @@
1
- export * from "./accordion";
2
- export * from "./action-button";
3
- export * from "./button";
4
- export * from "./card";
5
- export * from "./cashback-banner";
6
- export * from "./category-item";
7
- export * from "./checkbox";
8
- export * from "./filter-chip";
9
- export * from "./input";
10
- export * from "./loading";
11
- export * from "./order-card";
12
- export * from "./product-card";
13
- export * from "./product-highlight";
14
- export * from "./product-list-item";
15
- export * from "./product-review";
16
- export * from "./quick-add-product-card";
17
- export * from "./radio";
18
- export * from "./range-slider";
19
- export * from "./search-button";
20
- export * from "./seller-box";
21
- export * from "./toggle-switch";
22
- export * from "./typography";
1
+ export * from "./accordion/index";
2
+ export * from "./action-button/index";
3
+ export * from "./button/index";
4
+ export * from "./card/index";
5
+ export * from "./cashback-banner/index";
6
+ export * from "./category-item/index";
7
+ export * from "./checkbox/index";
8
+ export * from "./filter-chip/index";
9
+ export * from "./input/index";
10
+ export * from "./loading/index";
11
+ export * from "./order-card/index";
12
+ export * from "./product-card/index";
13
+ export * from "./product-highlight/index";
14
+ export * from "./product-list-item/index";
15
+ export * from "./product-review/index";
16
+ export * from "./quick-add-product-card/index";
17
+ export * from "./radio/index";
18
+ export * from "./range-slider/index";
19
+ export * from "./search-button/index";
20
+ export * from "./seller-box/index";
21
+ export * from "./toggle-switch/index";
22
+ export * from "./typography/index";
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC"}
@@ -1,22 +1,22 @@
1
- export * from "./accordion";
2
- export * from "./action-button";
3
- export * from "./button";
4
- export * from "./card";
5
- export * from "./cashback-banner";
6
- export * from "./category-item";
7
- export * from "./checkbox";
8
- export * from "./filter-chip";
9
- export * from "./input";
10
- export * from "./loading";
11
- export * from "./order-card";
12
- export * from "./product-card";
13
- export * from "./product-highlight";
14
- export * from "./product-list-item";
15
- export * from "./product-review";
16
- export * from "./quick-add-product-card";
17
- export * from "./radio";
18
- export * from "./range-slider";
19
- export * from "./search-button";
20
- export * from "./seller-box";
21
- export * from "./toggle-switch";
22
- export * from "./typography";
1
+ export * from "./accordion/index";
2
+ export * from "./action-button/index";
3
+ export * from "./button/index";
4
+ export * from "./card/index";
5
+ export * from "./cashback-banner/index";
6
+ export * from "./category-item/index";
7
+ export * from "./checkbox/index";
8
+ export * from "./filter-chip/index";
9
+ export * from "./input/index";
10
+ export * from "./loading/index";
11
+ export * from "./order-card/index";
12
+ export * from "./product-card/index";
13
+ export * from "./product-highlight/index";
14
+ export * from "./product-list-item/index";
15
+ export * from "./product-review/index";
16
+ export * from "./quick-add-product-card/index";
17
+ export * from "./radio/index";
18
+ export * from "./range-slider/index";
19
+ export * from "./search-button/index";
20
+ export * from "./seller-box/index";
21
+ export * from "./toggle-switch/index";
22
+ export * from "./typography/index";
@@ -1 +1 @@
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
+ {"version":3,"file":"loading.component.d.ts","sourceRoot":"","sources":["../../../src/components/loading/loading.component.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,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,8 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import Lottie from 'lottie-react';
3
2
  import LottieView from 'lottie-react-native';
4
- import { Platform, View } from 'react-native';
5
- import loadingAnimation from '../../assets/animations/loading-animation.json';
3
+ import { View } from 'react-native';
6
4
  import { useLoadingStyles } from './loading.styles';
7
5
  export const Loading = ({ source, isDotLottie = false, // TODO: trabalhar nisso depois para aceitar dotLottie
8
6
  autoPlay = true, loop = true, speed = 1, containerStyle, style, onAnimationFinish, size = 100, }) => {
@@ -12,6 +10,6 @@ autoPlay = true, loop = true, speed = 1, containerStyle, style, onAnimationFinis
12
10
  { width: size, height: size },
13
11
  containerStyle,
14
12
  ];
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 })) }));
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 }) }));
16
14
  };
17
15
  export default Loading;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { LoadingProps } from './loading.types';
3
+ export declare const Loading: React.FC<LoadingProps>;
4
+ export default Loading;
5
+ //# sourceMappingURL=loading.component.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loading.component.web.d.ts","sourceRoot":"","sources":["../../../src/components/loading/loading.component.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA4B1C,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Lottie from 'lottie-react';
3
+ import { View } from 'react-native';
4
+ import loadingAnimation from '../../assets/animations/loading-animation.json';
5
+ import { useLoadingStyles } from './loading.styles';
6
+ export const Loading = ({ source, isDotLottie = false, // TODO: trabalhar nisso depois para aceitar dotLottie
7
+ autoPlay = true, loop = true, speed = 1, containerStyle, style, onAnimationFinish, size = 100, }) => {
8
+ const styles = useLoadingStyles();
9
+ const containerStyles = [
10
+ styles.container,
11
+ { width: size, height: size },
12
+ containerStyle,
13
+ ];
14
+ return (_jsx(View, { style: containerStyles, children: _jsx(Lottie, { animationData: source || loadingAnimation, loop: loop, autoplay: autoPlay, style: [styles.animation, style] }) }));
15
+ };
16
+ export default Loading;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./components";
2
- export * from "./icons";
3
- export * from "./themes";
1
+ export * from "./components/index";
2
+ export * from "./icons/index";
3
+ export * from "./themes/index";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./components";
2
- export * from "./icons";
3
- export * from "./themes";
1
+ export * from "./components/index";
2
+ export * from "./icons/index";
3
+ export * from "./themes/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decathlon-ui",
3
- "version": "0.1.11",
3
+ "version": "0.2.1",
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",
@@ -12,7 +12,7 @@
12
12
  "scripts": {
13
13
  "storybook": "npx storybook dev -p 6006",
14
14
  "build-storybook": "npx storybook build --output-dir docs",
15
- "build": "tsc -p tsconfig.build.json",
15
+ "build": "tsc -p tsconfig.build.json && node copy-assets.js",
16
16
  "prepublishOnly": "yarn build",
17
17
  "generate-icons": "svgr --config-file svgr.config.js --out-dir src/icons/components src/icons/foundations/*.svg",
18
18
  "publish": "npm version patch && npm publish"