@proximus/lavender-spinner-native 0.1.0-alpha.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/CHANGELOG.md +21 -0
- package/dist/PxSpinner.d.ts +11 -0
- package/dist/PxSpinner.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +43 -0
- package/src/PxSpinner.tsx +43 -0
- package/src/index.ts +1 -0
- package/src/spinner.json +2094 -0
- package/tsconfig.json +8 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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.0 (2025-08-13)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **BCRI-000000:** remove default E2E on DEV env build for all components ([a5d27bf](https://github.com/Pxs-Corporate/react-native-lavender/commit/a5d27bfaaebf5b75f3160f31c64b590b7bd00b93))
|
|
11
|
+
- **BCRI-3651770:** spinner module ([7671419](https://github.com/Pxs-Corporate/react-native-lavender/commit/76714190c7f7908a4199e2e3194844dbdbe2fb0f))
|
|
12
|
+
- **BCRI-4210372:** automatic versionning ([9c1f0a0](https://github.com/Pxs-Corporate/react-native-lavender/commit/9c1f0a00e19a9d1a277044ea627632032a674102))
|
|
13
|
+
- **BCRI-4210372:** fix bad version numbers ([bc6a8ba](https://github.com/Pxs-Corporate/react-native-lavender/commit/bc6a8ba48c15347442f2ac38dacae7ffba3d95eb))
|
|
14
|
+
|
|
15
|
+
# (2025-08-13)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- **BCRI-000000:** remove default E2E on DEV env build for all components ([a5d27bf](https://github.com/Pxs-Corporate/react-native-lavender/commit/a5d27bfaaebf5b75f3160f31c64b590b7bd00b93))
|
|
20
|
+
- **BCRI-3651770:** spinner module ([7671419](https://github.com/Pxs-Corporate/react-native-lavender/commit/76714190c7f7908a4199e2e3194844dbdbe2fb0f))
|
|
21
|
+
- **BCRI-4210372:** automatic versionning ([9c1f0a0](https://github.com/Pxs-Corporate/react-native-lavender/commit/9c1f0a00e19a9d1a277044ea627632032a674102))
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AccessibilityProps, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface IPxSpinner extends AccessibilityProps {
|
|
4
|
+
testID?: string;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
duration?: number;
|
|
8
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
9
|
+
}
|
|
10
|
+
export declare function PxSpinner({ width, height, testID, ...accessibilityProps }: IPxSpinner): React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=PxSpinner.d.ts.map
|
|
@@ -0,0 +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"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@proximus/lavender-spinner-native",
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
|
+
"description": "Lavender spinner component",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "src/index.ts",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"clean": "rm -rf dist",
|
|
11
|
+
"prepublish": "yarn clean && yarn build",
|
|
12
|
+
"build": "npx tsc -p tsconfig.json"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"@proximus/lavender-common-native": "workspace:*",
|
|
16
|
+
"@proximus/lavender-styling-native": "workspace:*",
|
|
17
|
+
"@proximus/lavender-texts-native": "workspace:*",
|
|
18
|
+
"lottie-ios": "*",
|
|
19
|
+
"lottie-react-native": "*"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@proximus/lavender-common-native": "0.1.0-alpha.0",
|
|
23
|
+
"@proximus/lavender-styling-native": "0.1.0-alpha.0",
|
|
24
|
+
"@proximus/lavender-texts-native": "0.1.0-alpha.0",
|
|
25
|
+
"lottie-ios": "3.2.3",
|
|
26
|
+
"lottie-react-native": "5.1.3"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"lerna": {
|
|
32
|
+
"command": {
|
|
33
|
+
"publish": {
|
|
34
|
+
"assets": [
|
|
35
|
+
"dist",
|
|
36
|
+
"src",
|
|
37
|
+
"package.json"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"gitHead": "27525289a448a6e4f3c2d36a88b9dc54d0f15fbf"
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PxSpinner';
|