@cleartrip/ct-design-dialog 5.27.0-SNAPSHOT-native-main.11 → 5.27.0-SNAPSHOT-refresh-control.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 +2 -1
- package/dist/type.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/type.ts +6 -1
package/dist/type.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { Styles } from '@cleartrip/ct-design-types';
|
|
3
3
|
import type { IModalProps } from '@cleartrip/ct-design-modal';
|
|
4
|
+
import type { TypographyColorType } from '@cleartrip/ct-design-typography';
|
|
4
5
|
export type OverlayCloseIconProps = {
|
|
5
6
|
show: boolean;
|
|
6
7
|
isBack?: boolean;
|
|
@@ -29,7 +30,7 @@ export interface IDialogContentProps {
|
|
|
29
30
|
}
|
|
30
31
|
import { DialogAlignmentTypes, DialogTypes } from './constants';
|
|
31
32
|
export type DialogAlignmentType = `${DialogAlignmentTypes}`;
|
|
32
|
-
export type DialogType = `${DialogTypes}
|
|
33
|
+
export type DialogType = `${DialogTypes}` | TypographyColorType;
|
|
33
34
|
export interface IDialogAction {
|
|
34
35
|
label: ReactNode;
|
|
35
36
|
onClick: (e?: Event) => void;
|
package/dist/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/Dialog/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/Dialog/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAA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,SAAS,CAAC;IAMjB,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAM7B,IAAI,CAAC,EAAE,UAAU,CAAC;IAKlB,WAAW,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAMlC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,MAAM,WAAW,kBAAkB;IAKjC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAKhC,aAAa,EAAE,aAAa,EAAE,CAAC;IAK/B,WAAW,CAAC,EAAE;QACZ,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC;IAMF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-dialog",
|
|
3
|
-
"version": "5.27.0-SNAPSHOT-
|
|
3
|
+
"version": "5.27.0-SNAPSHOT-refresh-control.0",
|
|
4
4
|
"description": "Dialog Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "./dist/ct-design-dialog.cjs.js",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"src"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@cleartrip/ct-design-container": "5.27.0-SNAPSHOT-
|
|
28
|
-
"@cleartrip/ct-design-
|
|
29
|
-
"@cleartrip/ct-design-style-manager": "5.
|
|
30
|
-
"@cleartrip/ct-design-
|
|
31
|
-
"@cleartrip/ct-design-types": "5.27.0-SNAPSHOT-
|
|
32
|
-
"@cleartrip/ct-design-typography": "5.27.0-SNAPSHOT-
|
|
27
|
+
"@cleartrip/ct-design-container": "5.27.0-SNAPSHOT-refresh-control.0",
|
|
28
|
+
"@cleartrip/ct-design-modal": "5.27.0-SNAPSHOT-refresh-control.0",
|
|
29
|
+
"@cleartrip/ct-design-style-manager": "5.26.1-SNAPSHOT-refresh-control.0",
|
|
30
|
+
"@cleartrip/ct-design-theme": "5.27.0-SNAPSHOT-refresh-control.0",
|
|
31
|
+
"@cleartrip/ct-design-types": "5.27.0-SNAPSHOT-refresh-control.0",
|
|
32
|
+
"@cleartrip/ct-design-typography": "5.27.0-SNAPSHOT-refresh-control.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@cleartrip/ct-design-icons": "61.0.0-SNAPSHOT-
|
|
35
|
+
"@cleartrip/ct-design-icons": "61.0.0-SNAPSHOT-refresh-control.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=16.8.0",
|
package/src/type.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import type { Styles } from '@cleartrip/ct-design-types';
|
|
4
4
|
import type { IModalProps } from '@cleartrip/ct-design-modal';
|
|
5
|
+
import type { TypographyColorType } from '@cleartrip/ct-design-typography';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Legacy close-affordance config preserved from aldenui. Each flag
|
|
@@ -121,7 +122,11 @@ import { DialogAlignmentTypes, DialogTypes } from './constants';
|
|
|
121
122
|
|
|
122
123
|
export type DialogAlignmentType = `${DialogAlignmentTypes}`;
|
|
123
124
|
|
|
124
|
-
|
|
125
|
+
/**
|
|
126
|
+
* The action label's colour. `DialogTypes` names the two conventional choices, but the value is
|
|
127
|
+
* forwarded straight to Typography's `color`, so any theme text colour is valid.
|
|
128
|
+
*/
|
|
129
|
+
export type DialogType = `${DialogTypes}` | TypographyColorType;
|
|
125
130
|
|
|
126
131
|
/**
|
|
127
132
|
* A single entry in `DialogAction`'s `actionButtons` list.
|