@cleartrip/ct-design-segment 4.0.0-SNAPSHOT-rnfinaltest62.0 → 4.0.0-SNAPSHOT-reactnative.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/type.d.ts +6 -6
- package/dist/type.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/type.ts +6 -6
package/dist/type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import type { TextStyle,
|
|
2
|
+
import type { TextStyle, Styles } from '@cleartrip/ct-design-types';
|
|
3
3
|
import { TypographyStyleConfigProps } from '@cleartrip/ct-design-typography';
|
|
4
4
|
import type { IButtonProps } from '@cleartrip/ct-design-button';
|
|
5
5
|
export interface IOption {
|
|
@@ -14,12 +14,12 @@ export declare enum SegmentVariant {
|
|
|
14
14
|
}
|
|
15
15
|
export type SegmentVariantType = `${SegmentVariant}`;
|
|
16
16
|
export interface SegmentStyleConfigProps {
|
|
17
|
-
root?:
|
|
18
|
-
optionButtonWrapper?:
|
|
17
|
+
root?: Styles[];
|
|
18
|
+
optionButtonWrapper?: Styles[];
|
|
19
19
|
segmentButton?: ISegmentButtonProps['styleConfig'];
|
|
20
|
-
animatedContainer?:
|
|
21
|
-
animatedBlock?:
|
|
22
|
-
optionButtonWrapperActive?:
|
|
20
|
+
animatedContainer?: Styles[];
|
|
21
|
+
animatedBlock?: Styles[];
|
|
22
|
+
optionButtonWrapperActive?: Styles[];
|
|
23
23
|
segmentButtonActive?: TextStyle[];
|
|
24
24
|
}
|
|
25
25
|
export interface ISegmentProps {
|
package/dist/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/Segment/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,SAAS,EAAE,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KnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAK3B,WAAW,CAAC,EAAE,uBAAuB,CAAC;CACvC;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE;QACZ,aAAa,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;QAC5C,WAAW,CAAC,EAAE,0BAA0B,CAAC;KAC1C,CAAC;IACF,OAAO,EAAE,kBAAkB,CAAC;CAC7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-segment",
|
|
3
|
-
"version": "4.0.0-SNAPSHOT-
|
|
3
|
+
"version": "4.0.0-SNAPSHOT-reactnative.0",
|
|
4
4
|
"description": "Segment component migrated to ct-design-style-manager",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "./dist/ct-design-segment.cjs.js",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"src"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@cleartrip/ct-design-button": "4.0.0-SNAPSHOT-
|
|
28
|
-
"@cleartrip/ct-design-container": "4.0.0-SNAPSHOT-
|
|
29
|
-
"@cleartrip/ct-design-style-manager": "4.0.0-SNAPSHOT-
|
|
30
|
-
"@cleartrip/ct-design-theme": "4.0.0-SNAPSHOT-
|
|
31
|
-
"@cleartrip/ct-design-tokens": "4.0.0-SNAPSHOT-
|
|
32
|
-
"@cleartrip/ct-design-types": "4.0.0-SNAPSHOT-
|
|
33
|
-
"@cleartrip/ct-design-typography": "4.0.0-SNAPSHOT-
|
|
34
|
-
"@cleartrip/ct-design-hooks": "4.0.0-SNAPSHOT-
|
|
27
|
+
"@cleartrip/ct-design-button": "4.0.0-SNAPSHOT-reactnative.0",
|
|
28
|
+
"@cleartrip/ct-design-container": "4.0.0-SNAPSHOT-reactnative.0",
|
|
29
|
+
"@cleartrip/ct-design-style-manager": "4.0.0-SNAPSHOT-reactnative.0",
|
|
30
|
+
"@cleartrip/ct-design-theme": "4.0.0-SNAPSHOT-reactnative.0",
|
|
31
|
+
"@cleartrip/ct-design-tokens": "4.0.0-SNAPSHOT-reactnative.0",
|
|
32
|
+
"@cleartrip/ct-design-types": "4.0.0-SNAPSHOT-reactnative.0",
|
|
33
|
+
"@cleartrip/ct-design-typography": "4.0.0-SNAPSHOT-reactnative.0",
|
|
34
|
+
"@cleartrip/ct-design-hooks": "4.0.0-SNAPSHOT-reactnative.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@cleartrip/ct-design-use-isomorphic-effect": "4.0.0-SNAPSHOT-
|
|
37
|
+
"@cleartrip/ct-design-use-isomorphic-effect": "4.0.0-SNAPSHOT-reactnative.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": ">=16.8.0",
|
package/src/type.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
import type { TextStyle,
|
|
3
|
+
import type { TextStyle, Styles } from '@cleartrip/ct-design-types';
|
|
4
4
|
import { TypographyStyleConfigProps } from '@cleartrip/ct-design-typography';
|
|
5
5
|
import type { IButtonProps } from '@cleartrip/ct-design-button';
|
|
6
6
|
|
|
@@ -19,12 +19,12 @@ export enum SegmentVariant {
|
|
|
19
19
|
export type SegmentVariantType = `${SegmentVariant}`;
|
|
20
20
|
|
|
21
21
|
export interface SegmentStyleConfigProps {
|
|
22
|
-
root?:
|
|
23
|
-
optionButtonWrapper?:
|
|
22
|
+
root?: Styles[];
|
|
23
|
+
optionButtonWrapper?: Styles[];
|
|
24
24
|
segmentButton?: ISegmentButtonProps['styleConfig'];
|
|
25
|
-
animatedContainer?:
|
|
26
|
-
animatedBlock?:
|
|
27
|
-
optionButtonWrapperActive?:
|
|
25
|
+
animatedContainer?: Styles[];
|
|
26
|
+
animatedBlock?: Styles[];
|
|
27
|
+
optionButtonWrapperActive?: Styles[];
|
|
28
28
|
segmentButtonActive?: TextStyle[];
|
|
29
29
|
}
|
|
30
30
|
|