@confidencesystemsinc/sdk 1.8.3 → 2.0.2
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/components/badge.d.ts +29 -29
- package/dist/components/task/TaskDropdownBadge.d.ts +3 -3
- package/dist/components/ui/button.d.ts +11 -11
- package/dist/index.cjs +25 -25
- package/dist/index.js +6246 -6245
- package/dist/theme.css +1 -1
- package/package.json +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
export declare const BadgeSolid: {
|
|
3
|
-
readonly white: "cnf
|
|
4
|
-
readonly primary: "cnf
|
|
5
|
-
readonly secondary: "cnf
|
|
6
|
-
readonly success: "cnf
|
|
7
|
-
readonly info: "cnf
|
|
8
|
-
readonly warning: "cnf
|
|
9
|
-
readonly danger: "cnf
|
|
10
|
-
readonly steel: "cnf
|
|
11
|
-
readonly orange: "cnf
|
|
12
|
-
readonly purple: "cnf
|
|
13
|
-
readonly grayDark: "cnf
|
|
14
|
-
readonly grayLight: "cnf
|
|
3
|
+
readonly white: "cnf:bg-white cnf:text-dark-300 cnf:border cnf:border-gray-300";
|
|
4
|
+
readonly primary: "cnf:bg-primary-600";
|
|
5
|
+
readonly secondary: "cnf:bg-secondary-500";
|
|
6
|
+
readonly success: "cnf:bg-success-600";
|
|
7
|
+
readonly info: "cnf:bg-info-500";
|
|
8
|
+
readonly warning: "cnf:bg-warning-500 cnf:text-gray-800";
|
|
9
|
+
readonly danger: "cnf:bg-danger-500";
|
|
10
|
+
readonly steel: "cnf:bg-steel-500";
|
|
11
|
+
readonly orange: "cnf:bg-orange-500";
|
|
12
|
+
readonly purple: "cnf:bg-purple-500";
|
|
13
|
+
readonly grayDark: "cnf:bg-gray-900";
|
|
14
|
+
readonly grayLight: "cnf:bg-gray-100 cnf:text-gray-800";
|
|
15
15
|
};
|
|
16
16
|
export declare const BadgeOutline: {
|
|
17
|
-
readonly white: "cnf
|
|
18
|
-
readonly primary: "cnf
|
|
19
|
-
readonly secondary: "cnf
|
|
20
|
-
readonly success: "cnf
|
|
21
|
-
readonly info: "cnf
|
|
22
|
-
readonly warning: "cnf
|
|
23
|
-
readonly danger: "cnf
|
|
24
|
-
readonly steel: "cnf
|
|
25
|
-
readonly orange: "cnf
|
|
26
|
-
readonly purple: "cnf
|
|
27
|
-
readonly grayDark: "cnf
|
|
28
|
-
readonly grayLight: "cnf
|
|
17
|
+
readonly white: "cnf:text-white cnf:border cnf:border-white";
|
|
18
|
+
readonly primary: "cnf:text-primary-600 cnf:border cnf:border-primary-600";
|
|
19
|
+
readonly secondary: "cnf:text-secondary-500 cnf:border cnf:border-secondary-500";
|
|
20
|
+
readonly success: "cnf:text-success-600 cnf:border cnf:border-success-600";
|
|
21
|
+
readonly info: "cnf:text-info-500 cnf:border cnf:border-info-500";
|
|
22
|
+
readonly warning: "cnf:text-warning-500 cnf:border cnf:border-warning-500";
|
|
23
|
+
readonly danger: "cnf:text-danger-500 cnf:border cnf:border-danger-500";
|
|
24
|
+
readonly steel: "cnf:text-steel-500 cnf:border cnf:border-steel-500";
|
|
25
|
+
readonly orange: "cnf:text-orange-500 cnf:border cnf:border-orange-500";
|
|
26
|
+
readonly purple: "cnf:text-purple-500 cnf:border cnf:border-purple-500";
|
|
27
|
+
readonly grayDark: "cnf:text-gray-700 cnf:border cnf:border-gray-700";
|
|
28
|
+
readonly grayLight: "cnf:text-gray-500 cnf:border cnf:border-gray-100";
|
|
29
29
|
};
|
|
30
30
|
export declare const BadgeRoundness: {
|
|
31
|
-
readonly normal: "cnf
|
|
32
|
-
readonly pill: "cnf
|
|
31
|
+
readonly normal: "cnf:rounded";
|
|
32
|
+
readonly pill: "cnf:rounded-pill";
|
|
33
33
|
};
|
|
34
34
|
declare const BadgeSize: {
|
|
35
|
-
readonly big: "cnf
|
|
36
|
-
readonly medium: "cnf
|
|
37
|
-
readonly small: "cnf
|
|
35
|
+
readonly big: "cnf:h-[24px] cnf:leading-[24px] cnf:text-md cnf:px-1";
|
|
36
|
+
readonly medium: "cnf:h-[22px] cnf:leading-[22px] cnf:text-sm cnf:px-[2px]";
|
|
37
|
+
readonly small: "cnf:h-[18px] cnf:leading-[18px] cnf:text-xs cnf:px-[2px]";
|
|
38
38
|
};
|
|
39
39
|
export interface BadgeProps extends ComponentPropsWithoutRef<"div"> {
|
|
40
40
|
category?: "solid" | "outline";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TaskVerificationType } from './ConfidenceTask';
|
|
2
2
|
declare const TASK_DROPDOWN_BADGE_VARIANTS: {
|
|
3
|
-
readonly default: "cnf
|
|
4
|
-
readonly primary: "cnf
|
|
5
|
-
readonly success: "cnf
|
|
3
|
+
readonly default: "cnf:text-secondary-600 cnf:border-secondary-600";
|
|
4
|
+
readonly primary: "cnf:text-primary-600 cnf:border-primary-600";
|
|
5
|
+
readonly success: "cnf:text-success-600 cnf:border-success-600";
|
|
6
6
|
};
|
|
7
7
|
interface TaskDropdownBadgeProps {
|
|
8
8
|
title: string;
|
|
@@ -2,21 +2,21 @@ import { ReactNode, ButtonHTMLAttributes, CSSProperties } from 'react';
|
|
|
2
2
|
export type ButtonCategoryType = "solid" | "link" | "linkHoverSolid" | "outline";
|
|
3
3
|
export declare const ButtonSize: {
|
|
4
4
|
readonly none: "";
|
|
5
|
-
readonly default: "cnf
|
|
6
|
-
readonly base: "cnf
|
|
7
|
-
readonly small: "cnf
|
|
8
|
-
readonly normal: "cnf
|
|
9
|
-
readonly large: "cnf
|
|
10
|
-
readonly NormalBlock: "cnf
|
|
11
|
-
readonly box: "cnf
|
|
12
|
-
readonly smallCollapse: "cnf
|
|
13
|
-
readonly normalCollapse: "cnf
|
|
5
|
+
readonly default: "cnf:min-w-fit cnf:h-[40px] cnf:text-base cnf:px-3";
|
|
6
|
+
readonly base: "cnf:w-full cnf:md:min-w-fit cnf:h-[40px] cnf:text-base cnf:px-3";
|
|
7
|
+
readonly small: "cnf:min-w-[106px] cnf:h-[30px] cnf:text-sm cnf:px-2";
|
|
8
|
+
readonly normal: "cnf:min-w-[140px] cnf:h-[38px] cnf:text-base cnf:px-3";
|
|
9
|
+
readonly large: "cnf:min-w-[160px] cnf:h-[40px] cnf:text-lg cnf:px-3";
|
|
10
|
+
readonly NormalBlock: "cnf:w-full cnf:h-[40px] cnf:text-lg cnf:px-3";
|
|
11
|
+
readonly box: "cnf:w-[38px] cnf:h-[38px]";
|
|
12
|
+
readonly smallCollapse: "cnf:h-[30px] cnf:text-sm cnf:px-2";
|
|
13
|
+
readonly normalCollapse: "cnf:h-[38px] cnf:text-base cnf:px-3";
|
|
14
14
|
};
|
|
15
15
|
export type ButtonSizeType = keyof typeof ButtonSize;
|
|
16
16
|
export declare const ButtonRounded: {
|
|
17
17
|
readonly none: "";
|
|
18
|
-
readonly default: "cnf
|
|
19
|
-
readonly pill: "cnf
|
|
18
|
+
readonly default: "cnf:rounded";
|
|
19
|
+
readonly pill: "cnf:rounded-pill";
|
|
20
20
|
};
|
|
21
21
|
export type ButtonRoundedType = keyof typeof ButtonRounded;
|
|
22
22
|
export interface ButtonProps extends ButtonHTMLAttributes<Omit<HTMLButtonElement, "type">> {
|