@proximus/lavender-spinner-native 0.1.0-alpha.1 → 0.1.0-alpha.12

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.
@@ -1 +1 @@
1
- {"version":3,"file":"PxSpinner.d.ts","sourceRoot":"","sources":["../src/PxSpinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAK9E,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACvC;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAU,EACV,MAAW,EACX,MAAM,EACN,GAAG,kBAAkB,EACtB,EAAE,UAAU,qBAuBZ"}
1
+ {"version":3,"file":"PxSpinner.d.ts","sourceRoot":"","sources":["../src/PxSpinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAM9E,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACvC;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAU,EACV,MAAW,EACX,MAAM,EACN,GAAG,kBAAkB,EACtB,EAAE,UAAU,qBA6BZ"}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { View } from 'react-native';
3
+ import LottieView from 'lottie-react-native';
4
+ import { a11y, e2eID } from '@proximus/lavender-common-native';
5
+ import spinner from './spinner.json';
6
+ import { Header } from '@proximus/lavender-texts-native';
7
+ export function PxSpinner({ width = 98, height = 98, testID, ...accessibilityProps }) {
8
+ return (React.createElement(View, null,
9
+ React.createElement(Header, null, "lottie not working anymore on IOS"),
10
+ React.createElement(View, { style: {
11
+ width,
12
+ height,
13
+ }, ...e2eID(testID), ...a11y({
14
+ accessible: true,
15
+ accessibilityRole: 'spinbutton',
16
+ accessibilityLabel: 'Loading',
17
+ ...accessibilityProps,
18
+ }) },
19
+ React.createElement(LottieView, { style: {
20
+ width,
21
+ height,
22
+ }, source: spinner, loop: true, autoPlay: true }))));
23
+ }
package/package.json CHANGED
@@ -1,42 +1,21 @@
1
1
  {
2
2
  "name": "@proximus/lavender-spinner-native",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.12",
4
4
  "description": "Lavender spinner component",
5
5
  "license": "MIT",
6
- "main": "src/index.ts",
6
+ "main": "dist/index.js",
7
+ "files": [
8
+ "dist"
9
+ ],
7
10
  "type": "module",
8
- "scripts": {
9
- "clean": "rm -rf dist",
10
- "prepublish": "yarn clean && yarn build",
11
- "build": "npx tsc -p tsconfig.json"
12
- },
13
11
  "peerDependencies": {
14
- "@proximus/lavender-common-native": "workspace:*",
15
- "@proximus/lavender-styling-native": "workspace:*",
16
- "@proximus/lavender-texts-native": "workspace:*",
12
+ "@proximus/lavender-common-native": "*",
13
+ "@proximus/lavender-styling-native": "*",
14
+ "@proximus/lavender-texts-native": "*",
17
15
  "lottie-ios": "*",
18
16
  "lottie-react-native": "*"
19
17
  },
20
- "devDependencies": {
21
- "@proximus/lavender-common-native": "0.1.0-alpha.1",
22
- "@proximus/lavender-styling-native": "0.1.0-alpha.1",
23
- "@proximus/lavender-texts-native": "0.1.0-alpha.1",
24
- "lottie-ios": "3.2.3",
25
- "lottie-react-native": "5.1.3"
26
- },
27
18
  "publishConfig": {
28
19
  "access": "public"
29
- },
30
- "lerna": {
31
- "command": {
32
- "publish": {
33
- "assets": [
34
- "dist",
35
- "src",
36
- "package.json"
37
- ]
38
- }
39
- }
40
- },
41
- "gitHead": "d422a1d369000e1e249afb26de2cef08930c2407"
20
+ }
42
21
  }
package/CHANGELOG.md DELETED
@@ -1,27 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [0.1.0-alpha.1](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-spinner-native@0.1.0-alpha.0...@proximus/lavender-spinner-native@0.1.0-alpha.1) (2025-08-13)
7
-
8
- ### Bug Fixes
9
-
10
- - **BCRI-4210372:** fix types field in modules ([68ac126](https://github.com/Pxs-Corporate/react-native-lavender/commit/68ac12657112473ae9e0e683076b1d9172be9ce6))
11
-
12
- # 0.1.0-alpha.0 (2025-08-13)
13
-
14
- ### Features
15
-
16
- - **BCRI-000000:** remove default E2E on DEV env build for all components ([a5d27bf](https://github.com/Pxs-Corporate/react-native-lavender/commit/a5d27bfaaebf5b75f3160f31c64b590b7bd00b93))
17
- - **BCRI-3651770:** spinner module ([7671419](https://github.com/Pxs-Corporate/react-native-lavender/commit/76714190c7f7908a4199e2e3194844dbdbe2fb0f))
18
- - **BCRI-4210372:** automatic versionning ([9c1f0a0](https://github.com/Pxs-Corporate/react-native-lavender/commit/9c1f0a00e19a9d1a277044ea627632032a674102))
19
- - **BCRI-4210372:** fix bad version numbers ([bc6a8ba](https://github.com/Pxs-Corporate/react-native-lavender/commit/bc6a8ba48c15347442f2ac38dacae7ffba3d95eb))
20
-
21
- # (2025-08-13)
22
-
23
- ### Features
24
-
25
- - **BCRI-000000:** remove default E2E on DEV env build for all components ([a5d27bf](https://github.com/Pxs-Corporate/react-native-lavender/commit/a5d27bfaaebf5b75f3160f31c64b590b7bd00b93))
26
- - **BCRI-3651770:** spinner module ([7671419](https://github.com/Pxs-Corporate/react-native-lavender/commit/76714190c7f7908a4199e2e3194844dbdbe2fb0f))
27
- - **BCRI-4210372:** automatic versionning ([9c1f0a0](https://github.com/Pxs-Corporate/react-native-lavender/commit/9c1f0a00e19a9d1a277044ea627632032a674102))
package/src/PxSpinner.tsx DELETED
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- import { AccessibilityProps, StyleProp, View, ViewStyle } from 'react-native';
3
- import LottieView from 'lottie-react-native';
4
- import { a11y, e2eID } from '@proximus/lavender-common-native';
5
- import spinner from './spinner.json';
6
-
7
- export interface IPxSpinner extends AccessibilityProps {
8
- testID?: string;
9
- width?: number;
10
- height?: number;
11
- duration?: number;
12
- containerStyle?: StyleProp<ViewStyle>;
13
- }
14
-
15
- export function PxSpinner({
16
- width = 98,
17
- height = 98,
18
- testID,
19
- ...accessibilityProps
20
- }: IPxSpinner) {
21
- return (
22
- <View
23
- style={{}}
24
- {...e2eID(testID)}
25
- {...a11y({
26
- accessible: true,
27
- accessibilityRole: 'spinbutton',
28
- accessibilityLabel: 'Loading',
29
- ...accessibilityProps,
30
- })}
31
- >
32
- <LottieView
33
- style={{
34
- width,
35
- height,
36
- }}
37
- source={spinner}
38
- autoPlay
39
- loop
40
- />
41
- </View>
42
- );
43
- }