dash-ui-kit 1.0.5 → 1.0.8
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/react/components/badge/index.d.ts +33 -0
- package/dist/react/components/icons/index.d.ts +7 -0
- package/dist/react/components/index.d.ts +2 -1
- package/dist/react/components/input/index.d.ts +4 -3
- package/dist/react/components/overlayMenu/index.d.ts +2 -2
- package/dist/react/components/overlaySelect/index.d.ts +2 -2
- package/dist/react/components/select/index.d.ts +1 -1
- package/dist/react/components/switch/index.d.ts +1 -1
- package/dist/react/components/text/index.d.ts +2 -2
- package/dist/react/components/textarea/index.d.ts +1 -1
- package/dist/react/components/valueCard/index.d.ts +1 -1
- package/dist/react/index.cjs.js +1583 -304
- package/dist/react/index.cjs.js.map +1 -1
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.esm.js +1576 -305
- package/dist/react/index.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Content of the badge
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Visual style variant
|
|
9
|
+
*/
|
|
10
|
+
variant?: 'default' | 'flat' | 'solid' | 'bordered';
|
|
11
|
+
/**
|
|
12
|
+
* Color theme
|
|
13
|
+
*/
|
|
14
|
+
color?: 'blue' | 'white' | 'gray' | 'light-gray' | 'turquoise' | 'red' | 'orange';
|
|
15
|
+
/**
|
|
16
|
+
* Size of the badge
|
|
17
|
+
*/
|
|
18
|
+
size?: 'xxs' | 'xs' | 'sm' | 'xl';
|
|
19
|
+
/**
|
|
20
|
+
* Border radius variant
|
|
21
|
+
*/
|
|
22
|
+
borderRadius?: 'xs';
|
|
23
|
+
/**
|
|
24
|
+
* Additional CSS class name
|
|
25
|
+
*/
|
|
26
|
+
className?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Click handler
|
|
29
|
+
*/
|
|
30
|
+
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
31
|
+
}
|
|
32
|
+
export declare const Badge: React.FC<BadgeProps>;
|
|
33
|
+
export default Badge;
|
|
@@ -36,3 +36,10 @@ export declare const SettingsIcon: React.FC<IconProps>;
|
|
|
36
36
|
export declare const ShieldSmallIcon: React.FC<IconProps>;
|
|
37
37
|
export declare const QuestionMessageIcon: React.FC<IconProps>;
|
|
38
38
|
export declare const CheckmarkIcon: React.FC<IconProps>;
|
|
39
|
+
export declare const FingerprintIcon: React.FC<IconProps>;
|
|
40
|
+
export declare const FaceIcon: React.FC<IconProps>;
|
|
41
|
+
export declare const SignIcon: React.FC<IconProps>;
|
|
42
|
+
export declare const SignLockIcon: React.FC<IconProps>;
|
|
43
|
+
export declare const LockIcon: React.FC<IconProps>;
|
|
44
|
+
export declare const PendingIcon: React.FC<IconProps>;
|
|
45
|
+
export declare const SearchIcon: React.FC<IconProps>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Accordion, type AccordionProps } from './accordion';
|
|
2
|
+
export { Badge, type BadgeProps } from './badge';
|
|
2
3
|
export { Button, type ButtonProps } from './button';
|
|
3
4
|
export { Input, type InputProps } from './input';
|
|
4
5
|
export { Textarea, type TextareaProps } from './textarea';
|
|
@@ -23,4 +24,4 @@ export { DashLogo, type DashLogoProps } from './dashLogo';
|
|
|
23
24
|
export { Dialog, type DialogProps } from './dialog';
|
|
24
25
|
export { Tabs, type TabsProps, type TabItem } from './tabs';
|
|
25
26
|
export type { TimeDeltaFormat } from '../utils/datetime';
|
|
26
|
-
export { ArrowIcon, CopyIcon, SuccessIcon, ErrorIcon, QueuedIcon, PooledIcon, BroadcastedIcon, CalendarIcon, EyeOpenIcon, EyeClosedIcon, CheckIcon, KeyIcon, ProtectedMessageIcon, SmartphoneIcon, CrossIcon, WalletIcon, PlusIcon, FilterIcon, EditIcon, DeleteIcon, ChevronIcon, BurgerMenuIcon, KebabMenuIcon, CircleProcessIcon, CreditsIcon, WebIcon, ChainSmallIcon, SettingsIcon, ShieldSmallIcon, QuestionMessageIcon, CheckmarkIcon } from './icons';
|
|
27
|
+
export { ArrowIcon, CopyIcon, SuccessIcon, ErrorIcon, QueuedIcon, PooledIcon, BroadcastedIcon, CalendarIcon, EyeOpenIcon, EyeClosedIcon, CheckIcon, KeyIcon, ProtectedMessageIcon, SmartphoneIcon, CrossIcon, WalletIcon, PlusIcon, FilterIcon, EditIcon, DeleteIcon, ChevronIcon, BurgerMenuIcon, KebabMenuIcon, CircleProcessIcon, CreditsIcon, WebIcon, ChainSmallIcon, SettingsIcon, ShieldSmallIcon, QuestionMessageIcon, CheckmarkIcon, FingerprintIcon, FaceIcon, SignIcon, SignLockIcon, LockIcon, PendingIcon, SearchIcon } from './icons';
|
|
@@ -2,9 +2,9 @@ import React, { InputHTMLAttributes } from 'react';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const input: (props?: ({
|
|
4
4
|
theme?: "light" | "dark" | null | undefined;
|
|
5
|
-
colorScheme?: "default" | "brand" | "error" | "success" | null | undefined;
|
|
6
|
-
size?: "sm" | "
|
|
7
|
-
variant?: "outlined" | null | undefined;
|
|
5
|
+
colorScheme?: "default" | "light-gray" | "brand" | "error" | "success" | null | undefined;
|
|
6
|
+
size?: "sm" | "xl" | "md" | null | undefined;
|
|
7
|
+
variant?: "outlined" | "filled" | null | undefined;
|
|
8
8
|
disabled?: boolean | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
10
|
type InputVariants = VariantProps<typeof input>;
|
|
@@ -13,6 +13,7 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
13
13
|
error?: boolean;
|
|
14
14
|
success?: boolean;
|
|
15
15
|
prefix?: string | React.ReactNode;
|
|
16
|
+
prefixClassName?: string;
|
|
16
17
|
/**
|
|
17
18
|
* Controls visibility toggle for password inputs. When false, the eye icon is hidden and no extra right padding is applied.
|
|
18
19
|
* Defaults to true.
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const overlayMenuTrigger: (props?: ({
|
|
4
4
|
theme?: "light" | "dark" | null | undefined;
|
|
5
|
-
colorScheme?: "default" | "
|
|
6
|
-
size?: "sm" | "
|
|
5
|
+
colorScheme?: "default" | "gray" | "brand" | "lightGray" | "error" | "success" | null | undefined;
|
|
6
|
+
size?: "sm" | "xl" | "md" | null | undefined;
|
|
7
7
|
border?: boolean | null | undefined;
|
|
8
8
|
disabled?: boolean | null | undefined;
|
|
9
9
|
filled?: boolean | null | undefined;
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const overlaySelectTrigger: (props?: ({
|
|
4
4
|
theme?: "light" | "dark" | null | undefined;
|
|
5
|
-
colorScheme?: "default" | "
|
|
6
|
-
size?: "sm" | "
|
|
5
|
+
colorScheme?: "default" | "gray" | "brand" | "lightGray" | "error" | "success" | null | undefined;
|
|
6
|
+
size?: "sm" | "xl" | "md" | null | undefined;
|
|
7
7
|
border?: boolean | null | undefined;
|
|
8
8
|
disabled?: boolean | null | undefined;
|
|
9
9
|
filled?: boolean | null | undefined;
|
|
@@ -3,7 +3,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
declare const selectTrigger: (props?: ({
|
|
4
4
|
theme?: "light" | "dark" | null | undefined;
|
|
5
5
|
colorScheme?: "default" | "brand" | "error" | "success" | null | undefined;
|
|
6
|
-
size?: "sm" | "
|
|
6
|
+
size?: "sm" | "xl" | "md" | null | undefined;
|
|
7
7
|
border?: boolean | null | undefined;
|
|
8
8
|
disabled?: boolean | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const switchContainer: (props?: ({
|
|
4
4
|
theme?: "light" | "dark" | null | undefined;
|
|
5
|
-
size?: "sm" | "
|
|
5
|
+
size?: "sm" | "xl" | "md" | null | undefined;
|
|
6
6
|
disabled?: boolean | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
8
|
type SwitchVariants = VariantProps<typeof switchContainer>;
|
|
@@ -3,8 +3,8 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
declare const textStyles: (props?: ({
|
|
4
4
|
reset?: boolean | null | undefined;
|
|
5
5
|
theme?: "light" | "dark" | null | undefined;
|
|
6
|
-
color?: "default" | "
|
|
7
|
-
size?: "
|
|
6
|
+
color?: "default" | "blue" | "red" | "blue-dark" | null | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "xl" | "md" | "lg" | null | undefined;
|
|
8
8
|
weight?: "bold" | "normal" | 500 | null | undefined;
|
|
9
9
|
italic?: boolean | null | undefined;
|
|
10
10
|
underline?: boolean | null | undefined;
|
|
@@ -4,7 +4,7 @@ declare const textareaContainer: (props?: ({
|
|
|
4
4
|
theme?: "light" | "dark" | null | undefined;
|
|
5
5
|
hasValue?: boolean | null | undefined;
|
|
6
6
|
colorScheme?: "default" | "brand" | "error" | "success" | null | undefined;
|
|
7
|
-
size?: "sm" | "
|
|
7
|
+
size?: "sm" | "xl" | "md" | null | undefined;
|
|
8
8
|
variant?: "outlined" | null | undefined;
|
|
9
9
|
isValid?: boolean | "null" | null | undefined;
|
|
10
10
|
disabled?: boolean | null | undefined;
|
|
@@ -3,7 +3,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
declare const valueCard: (props?: ({
|
|
4
4
|
theme?: "light" | "dark" | null | undefined;
|
|
5
5
|
colorScheme?: "white" | "default" | "lightBlue" | "lightGray" | "green" | "transparent" | "yellow" | null | undefined;
|
|
6
|
-
size?: "
|
|
6
|
+
size?: "xs" | "sm" | "xl" | "md" | null | undefined;
|
|
7
7
|
clickable?: boolean | null | undefined;
|
|
8
8
|
loading?: boolean | null | undefined;
|
|
9
9
|
border?: boolean | null | undefined;
|