@cleartrip/ct-design-dotted-loader 5.26.0-SNAPSHOT-native-main.0 → 5.26.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/dist/DottedLoader.native.d.ts.map +1 -1
- package/dist/type.d.ts +1 -0
- package/dist/type.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/DottedLoader.native.tsx +24 -18
- package/src/type.ts +6 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DottedLoader.native.d.ts","sourceRoot":"","sources":["../packages/components/DottedLoader/src/DottedLoader.native.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAa,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAKzE,OAAO,EAAQ,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAyFlD,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"DottedLoader.native.d.ts","sourceRoot":"","sources":["../packages/components/DottedLoader/src/DottedLoader.native.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAa,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAKzE,OAAO,EAAQ,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAyFlD,QAAA,MAAM,YAAY,wGAyBjB,CAAC;AAIF,eAAe,YAAY,CAAC"}
|
package/dist/type.d.ts
CHANGED
package/dist/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/DottedLoader/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAMzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,GAAG,gBAAgB,EAAE,CAAC;AAMlD,MAAM,WAAW,wBAAwB;IAIvC,IAAI,CA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,EAAE,MAAM,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-dotted-loader",
|
|
3
|
-
"version": "5.26.0
|
|
3
|
+
"version": "5.26.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "./dist/ct-design-dottedLoader.cjs.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@emotion/css": "11.13.4",
|
|
28
|
-
"@cleartrip/ct-design-container": "5.26.0
|
|
29
|
-
"@cleartrip/ct-design-style-manager": "5.
|
|
30
|
-
"@cleartrip/ct-design-theme": "5.26.0
|
|
28
|
+
"@cleartrip/ct-design-container": "5.26.0",
|
|
29
|
+
"@cleartrip/ct-design-style-manager": "5.26.0",
|
|
30
|
+
"@cleartrip/ct-design-theme": "5.26.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@cleartrip/ct-design-types": "5.26.0
|
|
33
|
+
"@cleartrip/ct-design-types": "5.26.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": ">=16.8.0",
|
|
@@ -103,24 +103,30 @@ const LoaderDot = ({ dotId, variant = DottedLoaderSize.MEDIUM, restingColor, pul
|
|
|
103
103
|
* is no emotion runtime to route it through).
|
|
104
104
|
*/
|
|
105
105
|
const DottedLoader = memo(
|
|
106
|
-
forwardRef<ContainerRef, IDottedLoaderProps>(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
106
|
+
forwardRef<ContainerRef, IDottedLoaderProps>(
|
|
107
|
+
({ variant = DottedLoaderSize.MEDIUM, dotColors, styleConfig, testID }, ref) => {
|
|
108
|
+
const { root: customRootStyles = [], loaderCont = [] } = styleConfig || {};
|
|
109
|
+
|
|
110
|
+
return (
|
|
111
|
+
<Container
|
|
112
|
+
testID={testID ? `${testID}-DottedLoader` : undefined}
|
|
113
|
+
ref={ref}
|
|
114
|
+
styleConfig={{ root: [staticLoaderStyles.root, ...customRootStyles] }}
|
|
115
|
+
>
|
|
116
|
+
{Array.from({ length: DOT_COUNT }).map((_, id) => (
|
|
117
|
+
<LoaderDot
|
|
118
|
+
key={id}
|
|
119
|
+
dotId={id}
|
|
120
|
+
variant={variant}
|
|
121
|
+
restingColor={dotColors?.restingColor}
|
|
122
|
+
pulseColor={dotColors?.pulseColor}
|
|
123
|
+
styleConfig={{ root: [...loaderCont] }}
|
|
124
|
+
/>
|
|
125
|
+
))}
|
|
126
|
+
</Container>
|
|
127
|
+
);
|
|
128
|
+
},
|
|
129
|
+
),
|
|
124
130
|
);
|
|
125
131
|
|
|
126
132
|
DottedLoader.displayName = 'DottedLoader';
|
package/src/type.ts
CHANGED
|
@@ -50,6 +50,12 @@ export interface IDottedLoaderProps {
|
|
|
50
50
|
*/
|
|
51
51
|
styleConfig?: IDottedLoaderStyleConfig;
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Identifier used to locate this component in end-to-end tests.
|
|
55
|
+
* Forwarded to the underlying React Native view.
|
|
56
|
+
*/
|
|
57
|
+
testID?: string;
|
|
58
|
+
|
|
53
59
|
// ---------------------------------------------------------------------
|
|
54
60
|
// Deprecated / legacy escape hatches retained for backward compatibility.
|
|
55
61
|
// ---------------------------------------------------------------------
|