@cleartrip/ct-design-button 4.0.0-SNAPSHOT-rnfinaltest20.0 → 4.0.0-SNAPSHOT-rnfinaltest21.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/style.d.ts CHANGED
@@ -28,15 +28,18 @@ export declare const getOutlinedButtonColorStyles: (theme: Theme, color: ButtonC
28
28
  backgroundColor: string;
29
29
  borderColor?: undefined;
30
30
  } | {
31
- backgroundColor: string;
32
- borderColor: string;
31
+ backgroundColor: any;
32
+ borderColor: any;
33
33
  };
34
34
  export declare const getButtonVariantColorStyles: (theme: Theme, color: ButtonColorType, variant: ButtonVariantType, disabled: boolean, _isHover: boolean) => {
35
35
  backgroundColor: string;
36
+ } | {
37
+ backgroundColor: any;
38
+ borderColor: any;
36
39
  };
37
40
  export declare const getContainedButtonLabelColor: (color: ButtonColorType, disabled: boolean, theme: Theme) => string;
38
- export declare const getOutlinedButtonLabelColor: (color: ButtonColorType, disabled: boolean, theme: Theme) => string;
39
- export declare const getButtonVariantLabelColor: (variant: ButtonVariantType, color: ButtonColorType, disabled: boolean, theme: Theme, loading: boolean) => string;
41
+ export declare const getOutlinedButtonLabelColor: (color: ButtonColorType, disabled: boolean, theme: Theme) => any;
42
+ export declare const getButtonVariantLabelColor: (variant: ButtonVariantType, color: ButtonColorType, disabled: boolean, theme: Theme, loading: boolean) => any;
40
43
  export declare const getTypographyVariant: (size: ButtonSizeType) => TypographyVariant.HM3 | TypographyVariant.HM4;
41
44
  export declare const getDefaultButtonStyles: (disabled: boolean) => {};
42
45
  export declare const getButtonStyles: ({ theme, size, variant, color, disabled, isFullWidth, loading, isHover, }: {
@@ -56,6 +59,15 @@ export declare const getButtonStyles: ({ theme, size, variant, color, disabled,
56
59
  height: 32;
57
60
  paddingTop: 4;
58
61
  paddingBottom: 4;
62
+ } | {
63
+ minWidth: number;
64
+ backgroundColor: any;
65
+ borderColor: any;
66
+ borderWidth: 0;
67
+ borderStyle?: undefined;
68
+ height: 32;
69
+ paddingTop: 4;
70
+ paddingBottom: 4;
59
71
  } | {
60
72
  minWidth: number;
61
73
  backgroundColor: string;
@@ -64,6 +76,15 @@ export declare const getButtonStyles: ({ theme, size, variant, color, disabled,
64
76
  height: 32;
65
77
  paddingTop: 4;
66
78
  paddingBottom: 4;
79
+ } | {
80
+ minWidth: number;
81
+ backgroundColor: any;
82
+ borderColor: any;
83
+ borderWidth: 1;
84
+ borderStyle: "solid";
85
+ height: 32;
86
+ paddingTop: 4;
87
+ paddingBottom: 4;
67
88
  } | {
68
89
  minWidth: number;
69
90
  backgroundColor: string;
@@ -72,6 +93,15 @@ export declare const getButtonStyles: ({ theme, size, variant, color, disabled,
72
93
  height: 40;
73
94
  paddingTop: 8;
74
95
  paddingBottom: 8;
96
+ } | {
97
+ minWidth: number;
98
+ backgroundColor: any;
99
+ borderColor: any;
100
+ borderWidth: 0;
101
+ borderStyle?: undefined;
102
+ height: 40;
103
+ paddingTop: 8;
104
+ paddingBottom: 8;
75
105
  } | {
76
106
  minWidth: number;
77
107
  backgroundColor: string;
@@ -80,6 +110,15 @@ export declare const getButtonStyles: ({ theme, size, variant, color, disabled,
80
110
  height: 40;
81
111
  paddingTop: 8;
82
112
  paddingBottom: 8;
113
+ } | {
114
+ minWidth: number;
115
+ backgroundColor: any;
116
+ borderColor: any;
117
+ borderWidth: 1;
118
+ borderStyle: "solid";
119
+ height: 40;
120
+ paddingTop: 8;
121
+ paddingBottom: 8;
83
122
  } | {
84
123
  minWidth: number;
85
124
  backgroundColor: string;
@@ -88,6 +127,15 @@ export declare const getButtonStyles: ({ theme, size, variant, color, disabled,
88
127
  height: 48;
89
128
  paddingTop: 12;
90
129
  paddingBottom: 12;
130
+ } | {
131
+ minWidth: number;
132
+ backgroundColor: any;
133
+ borderColor: any;
134
+ borderWidth: 0;
135
+ borderStyle?: undefined;
136
+ height: 48;
137
+ paddingTop: 12;
138
+ paddingBottom: 12;
91
139
  } | {
92
140
  minWidth: number;
93
141
  backgroundColor: string;
@@ -96,6 +144,15 @@ export declare const getButtonStyles: ({ theme, size, variant, color, disabled,
96
144
  height: 48;
97
145
  paddingTop: 12;
98
146
  paddingBottom: 12;
147
+ } | {
148
+ minWidth: number;
149
+ backgroundColor: any;
150
+ borderColor: any;
151
+ borderWidth: 1;
152
+ borderStyle: "solid";
153
+ height: 48;
154
+ paddingTop: 12;
155
+ paddingBottom: 12;
99
156
  };
100
157
  export declare const getSpinnerDimmension: (size: ButtonSizeType, theme: Theme) => 12 | 16 | 20;
101
158
  //# sourceMappingURL=style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../packages/components/Button/src/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAe,eAAe,EAAc,cAAc,EAAiB,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEpH,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,EAAE,MAAM,cAAc;;;;;;;;;;;;CA+BrE,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,OAAO,KAAK,EAAE,SAAS,iBAAiB,EAAE,UAAU,OAAO;;;;;;CAyBjG,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,OAAO,KAAK,EAAE,OAAO,eAAe,EAAE,UAAU,OAAO;;CA6BpG,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,OAAO,KAAK,EAAE,OAAO,eAAe,EAAE,UAAU,OAAO;;;;;;CAuCnG,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,OAAO,KAAK,EACZ,OAAO,eAAe,EACtB,SAAS,iBAAiB,EAC1B,UAAU,OAAO,EACjB,UAAU,OAAO;;CAclB,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,OAAO,eAAe,EAAE,UAAU,OAAO,EAAE,OA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;;;;cAAN,MAAM;;;;;;;;cAAN,MAAM;;;;;;;;;cAAN,MAAM;;;;;;;;cAAN,MAAM;;;;;;;;;cAAN,MAAM;;;;;;;;cAAN,MAAM;;;;;;;;;cAAN,MAAM;;;;;;;;cAAN,MAAM;;;;;;;;CAEjE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,MAAM,cAAc,EAAE,OAAO,KAAK,iBAStE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-design-button",
3
- "version": "4.0.0-SNAPSHOT-rnfinaltest20.0",
3
+ "version": "4.0.0-SNAPSHOT-rnfinaltest21.0",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "react-native": "src/index.ts",
@@ -26,14 +26,14 @@
26
26
  "dependencies": {
27
27
  "@emotion/react": "^11.14.0",
28
28
  "@emotion/styled": "^11.14.0",
29
- "@cleartrip/ct-design-typography": "4.0.0-SNAPSHOT-rnfinaltest20.0",
30
- "@cleartrip/ct-design-container": "4.0.0-SNAPSHOT-rnfinaltest20.0",
31
- "@cleartrip/ct-design-conditional-wrap": "4.0.0-SNAPSHOT-rnfinaltest20.0",
32
- "@cleartrip/ct-design-types": "4.0.0-SNAPSHOT-rnfinaltest20.0",
33
- "@cleartrip/ct-design-dotted-loader": "4.0.0-SNAPSHOT-rnfinaltest20.0",
34
- "@cleartrip/ct-design-theme": "4.0.0-SNAPSHOT-rnfinaltest20.0",
35
- "@cleartrip/ct-design-style-manager": "4.0.0-SNAPSHOT-rnfinaltest20.0",
36
- "@cleartrip/ct-design-event-propagation": "4.0.0-SNAPSHOT-rnfinaltest20.0"
29
+ "@cleartrip/ct-design-typography": "4.0.0-SNAPSHOT-rnfinaltest21.0",
30
+ "@cleartrip/ct-design-container": "4.0.0-SNAPSHOT-rnfinaltest21.0",
31
+ "@cleartrip/ct-design-conditional-wrap": "4.0.0-SNAPSHOT-rnfinaltest21.0",
32
+ "@cleartrip/ct-design-types": "4.0.0-SNAPSHOT-rnfinaltest21.0",
33
+ "@cleartrip/ct-design-dotted-loader": "4.0.0-SNAPSHOT-rnfinaltest21.0",
34
+ "@cleartrip/ct-design-theme": "4.0.0-SNAPSHOT-rnfinaltest21.0",
35
+ "@cleartrip/ct-design-style-manager": "4.0.0-SNAPSHOT-rnfinaltest21.0",
36
+ "@cleartrip/ct-design-event-propagation": "4.0.0-SNAPSHOT-rnfinaltest21.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@emotion/babel-plugin": "^11.12.0"