@cleartrip/ct-design-switch-button 2.2.0-beta.0 → 2.2.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.
|
@@ -3,12 +3,11 @@ export declare enum ButtonSize {
|
|
|
3
3
|
SMALL = "small",
|
|
4
4
|
LARGE = "large"
|
|
5
5
|
}
|
|
6
|
-
type ButtonType = ButtonSize
|
|
6
|
+
export type ButtonType = `${ButtonSize}`;
|
|
7
7
|
export interface BaseToggleSwitchProps {
|
|
8
8
|
cursor?: CSSObject['cursor'];
|
|
9
9
|
value?: Boolean;
|
|
10
10
|
disabled?: Boolean;
|
|
11
11
|
size?: ButtonType;
|
|
12
12
|
}
|
|
13
|
-
export {};
|
|
14
13
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/SwitchButton/src/BaseSwitch/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AACD,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/SwitchButton/src/BaseSwitch/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AACD,MAAM,MAAM,UAAU,GAAG,GAAG,UAAU,EAAE,CAAC;AAEzC,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB"}
|
package/dist/type.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent, ReactNode, SVGProps } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonType } from './BaseSwitch/type';
|
|
3
3
|
import { BaseStyleConfigProps, TypographyStyleConfigProps } from '@cleartrip/ct-design-types';
|
|
4
|
-
type ButtonType = ButtonSize;
|
|
5
4
|
export interface ToggleSwitchProps {
|
|
6
5
|
children?: ReactNode;
|
|
7
6
|
id?: string;
|
|
@@ -25,5 +24,4 @@ export interface ToggleSwitchProps {
|
|
|
25
24
|
labelTypography?: TypographyStyleConfigProps;
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
|
-
export {};
|
|
29
27
|
//# sourceMappingURL=type.d.ts.map
|
package/dist/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/SwitchButton/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/SwitchButton/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAE9F,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACzD,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE;QACZ,IAAI,CAAC,EAAE,oBAAoB,CAAC;QAC5B,SAAS,CAAC,EAAE,oBAAoB,CAAC;QACjC,eAAe,CAAC,EAAE,oBAAoB,CAAC;QACvC,WAAW,CAAC,EAAE,oBAAoB,CAAC;QACnC,UAAU,CAAC,EAAE,oBAAoB,CAAC;QAClC,aAAa,CAAC,EAAE,oBAAoB,CAAC;QACrC,IAAI,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC/B,cAAc,CAAC,EAAE,oBAAoB,CAAC;QACtC,eAAe,CAAC,EAAE,0BAA0B,CAAC;KAC9C,CAAC;CACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-switch-button",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "SwitchButton Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-design-switch-button.cjs.js",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cleartrip/ct-design-container": "2.2.0
|
|
19
|
-
"@cleartrip/ct-design-typography": "2.2.0
|
|
20
|
-
"@cleartrip/ct-design-theme": "2.2.0
|
|
18
|
+
"@cleartrip/ct-design-container": "2.2.0",
|
|
19
|
+
"@cleartrip/ct-design-typography": "2.2.0",
|
|
20
|
+
"@cleartrip/ct-design-theme": "2.2.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@cleartrip/ct-design-types": "2.2.0
|
|
23
|
+
"@cleartrip/ct-design-types": "2.2.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": ">=16.8.0",
|