@confidencesystemsinc/sdk 1.8.3 → 2.0.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/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 +24 -24
- package/dist/index.js +4387 -4386
- 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: "
|
|
4
|
-
readonly primary: "
|
|
5
|
-
readonly secondary: "
|
|
6
|
-
readonly success: "
|
|
7
|
-
readonly info: "
|
|
8
|
-
readonly warning: "
|
|
9
|
-
readonly danger: "
|
|
10
|
-
readonly steel: "
|
|
11
|
-
readonly orange: "
|
|
12
|
-
readonly purple: "
|
|
13
|
-
readonly grayDark: "
|
|
14
|
-
readonly grayLight: "
|
|
3
|
+
readonly white: "bg-white text-dark-300 border border-gray-300";
|
|
4
|
+
readonly primary: "bg-primary-600";
|
|
5
|
+
readonly secondary: "bg-secondary-500";
|
|
6
|
+
readonly success: "bg-success-600";
|
|
7
|
+
readonly info: "bg-info-500";
|
|
8
|
+
readonly warning: "bg-warning-500 text-gray-800";
|
|
9
|
+
readonly danger: "bg-danger-500";
|
|
10
|
+
readonly steel: "bg-steel-500";
|
|
11
|
+
readonly orange: "bg-orange-500";
|
|
12
|
+
readonly purple: "bg-purple-500";
|
|
13
|
+
readonly grayDark: "bg-gray-900";
|
|
14
|
+
readonly grayLight: "bg-gray-100 text-gray-800";
|
|
15
15
|
};
|
|
16
16
|
export declare const BadgeOutline: {
|
|
17
|
-
readonly white: "
|
|
18
|
-
readonly primary: "
|
|
19
|
-
readonly secondary: "
|
|
20
|
-
readonly success: "
|
|
21
|
-
readonly info: "
|
|
22
|
-
readonly warning: "
|
|
23
|
-
readonly danger: "
|
|
24
|
-
readonly steel: "
|
|
25
|
-
readonly orange: "
|
|
26
|
-
readonly purple: "
|
|
27
|
-
readonly grayDark: "
|
|
28
|
-
readonly grayLight: "
|
|
17
|
+
readonly white: "text-white border border-white";
|
|
18
|
+
readonly primary: "text-primary-600 border border-primary-600";
|
|
19
|
+
readonly secondary: "text-secondary-500 border border-secondary-500";
|
|
20
|
+
readonly success: "text-success-600 border border-success-600";
|
|
21
|
+
readonly info: "text-info-500 border border-info-500";
|
|
22
|
+
readonly warning: "text-warning-500 border border-warning-500";
|
|
23
|
+
readonly danger: "text-danger-500 border border-danger-500";
|
|
24
|
+
readonly steel: "text-steel-500 border border-steel-500";
|
|
25
|
+
readonly orange: "text-orange-500 border border-orange-500";
|
|
26
|
+
readonly purple: "text-purple-500 border border-purple-500";
|
|
27
|
+
readonly grayDark: "text-gray-700 border border-gray-700";
|
|
28
|
+
readonly grayLight: "text-gray-500 border border-gray-100";
|
|
29
29
|
};
|
|
30
30
|
export declare const BadgeRoundness: {
|
|
31
|
-
readonly normal: "
|
|
32
|
-
readonly pill: "
|
|
31
|
+
readonly normal: "rounded";
|
|
32
|
+
readonly pill: "rounded-pill";
|
|
33
33
|
};
|
|
34
34
|
declare const BadgeSize: {
|
|
35
|
-
readonly big: "
|
|
36
|
-
readonly medium: "
|
|
37
|
-
readonly small: "
|
|
35
|
+
readonly big: "h-[24px] leading-[24px] text-md px-1";
|
|
36
|
+
readonly medium: "h-[22px] leading-[22px] text-sm px-[2px]";
|
|
37
|
+
readonly small: "h-[18px] leading-[18px] text-xs 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: "
|
|
4
|
-
readonly primary: "
|
|
5
|
-
readonly success: "
|
|
3
|
+
readonly default: "text-secondary-600 border-secondary-600";
|
|
4
|
+
readonly primary: "text-primary-600 border-primary-600";
|
|
5
|
+
readonly success: "text-success-600 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: "
|
|
6
|
-
readonly base: "
|
|
7
|
-
readonly small: "
|
|
8
|
-
readonly normal: "
|
|
9
|
-
readonly large: "
|
|
10
|
-
readonly NormalBlock: "
|
|
11
|
-
readonly box: "
|
|
12
|
-
readonly smallCollapse: "
|
|
13
|
-
readonly normalCollapse: "
|
|
5
|
+
readonly default: "min-w-fit h-[40px] text-base px-3";
|
|
6
|
+
readonly base: "w-full md:min-w-fit h-[40px] text-base px-3";
|
|
7
|
+
readonly small: "min-w-[106px] h-[30px] text-sm px-2";
|
|
8
|
+
readonly normal: "min-w-[140px] h-[38px] text-base px-3";
|
|
9
|
+
readonly large: "min-w-[160px] h-[40px] text-lg px-3";
|
|
10
|
+
readonly NormalBlock: "w-full h-[40px] text-lg px-3";
|
|
11
|
+
readonly box: "w-[38px] h-[38px]";
|
|
12
|
+
readonly smallCollapse: "h-[30px] text-sm px-2";
|
|
13
|
+
readonly normalCollapse: "h-[38px] text-base 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: "
|
|
19
|
-
readonly pill: "
|
|
18
|
+
readonly default: "rounded";
|
|
19
|
+
readonly pill: "rounded-pill";
|
|
20
20
|
};
|
|
21
21
|
export type ButtonRoundedType = keyof typeof ButtonRounded;
|
|
22
22
|
export interface ButtonProps extends ButtonHTMLAttributes<Omit<HTMLButtonElement, "type">> {
|