@datacrest/dcuikit 1.0.5 → 1.0.7
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/build/components/Molecule/AlertDialog/AlertDialog.d.ts +1 -1
- package/build/components/Molecule/ProfileCard/const.d.ts +33 -0
- package/build/index.esm.js +5 -5
- package/build/index.esm.js.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/tsconfig.prod.tsbuildinfo +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { AlertDialogProps } from './types';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import type { AlertDialogProps } from './types';
|
|
3
3
|
declare const AlertDialogComponent: ({ title, description, trigger, action, cancel, onAction, onCancel, variant, disabled, open, onOpenChange, }: AlertDialogProps) => React.JSX.Element;
|
|
4
4
|
export default AlertDialogComponent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const PROFILE_CARD_SIZES: {
|
|
2
|
+
readonly xsmall: "xsmall";
|
|
2
3
|
readonly small: "small";
|
|
3
4
|
readonly medium: "medium";
|
|
4
5
|
readonly large: "large";
|
|
@@ -12,7 +13,39 @@ export declare const SAMPLE_PROFILES: {
|
|
|
12
13
|
avatarUrl: string;
|
|
13
14
|
}[];
|
|
14
15
|
export declare const sizeClasses: {
|
|
16
|
+
xsmall: string;
|
|
15
17
|
small: string;
|
|
16
18
|
medium: string;
|
|
17
19
|
large: string;
|
|
18
20
|
};
|
|
21
|
+
export declare const PROFILE_CARD_STYLE_MAP: {
|
|
22
|
+
readonly xsmall: {
|
|
23
|
+
readonly containerPadding: "p-1.5";
|
|
24
|
+
readonly avatarSize: "w-8 h-8";
|
|
25
|
+
readonly nameTextSize: "text-sm";
|
|
26
|
+
readonly metaTextSize: "text-xs";
|
|
27
|
+
readonly chevronSize: "w-3 h-3";
|
|
28
|
+
};
|
|
29
|
+
readonly small: {
|
|
30
|
+
readonly containerPadding: "p-2";
|
|
31
|
+
readonly avatarSize: "w-10 h-10";
|
|
32
|
+
readonly nameTextSize: "text-base";
|
|
33
|
+
readonly metaTextSize: "text-sm";
|
|
34
|
+
readonly chevronSize: "w-4 h-4";
|
|
35
|
+
};
|
|
36
|
+
readonly medium: {
|
|
37
|
+
readonly containerPadding: "p-3";
|
|
38
|
+
readonly avatarSize: "w-12 h-12";
|
|
39
|
+
readonly nameTextSize: "text-lg";
|
|
40
|
+
readonly metaTextSize: "text-sm";
|
|
41
|
+
readonly chevronSize: "w-4 h-4";
|
|
42
|
+
};
|
|
43
|
+
readonly large: {
|
|
44
|
+
readonly containerPadding: "p-4";
|
|
45
|
+
readonly avatarSize: "w-14 h-14";
|
|
46
|
+
readonly nameTextSize: "text-xl";
|
|
47
|
+
readonly metaTextSize: "text-sm";
|
|
48
|
+
readonly chevronSize: "w-4 h-4";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export type ProfileCardSize = keyof typeof PROFILE_CARD_STYLE_MAP;
|