beth-clarity 1.1.27 → 1.1.29
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/clarity-design-system.es.js +726 -1739
- package/dist/clarity-design-system.umd.js +2 -2
- package/dist/components/Box/Box.d.ts +56 -0
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +5 -8
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +23 -0
- package/dist/components/ButtonGroup/index.d.ts +3 -0
- package/dist/components/ButtonIcon/ButtonIcon.d.ts +4 -8
- package/dist/components/Card/Card.d.ts +12 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Col/Col.d.ts +13 -0
- package/dist/components/Col/index.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/Row/Row.d.ts +9 -0
- package/dist/components/Row/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -3
- package/dist/components/index.d.ts +5 -0
- package/dist/styles/index.css +1 -1
- package/dist/types/table.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { default as React, ReactNode, CSSProperties } from 'react';
|
|
2
|
+
import { typography } from '../../tokens/typography';
|
|
3
|
+
type SpacingValue = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
4
|
+
type RadiusValue = 1 | 2 | 3 | 4 | 'full';
|
|
5
|
+
type ShadowValue = 1 | 2 | 3 | 'inset';
|
|
6
|
+
type BorderWidthValue = 0 | 1 | 2 | 3;
|
|
7
|
+
interface BoxBaseProps {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
display?: CSSProperties['display'];
|
|
11
|
+
position?: CSSProperties['position'];
|
|
12
|
+
flexDirection?: CSSProperties['flexDirection'];
|
|
13
|
+
alignItems?: CSSProperties['alignItems'];
|
|
14
|
+
justifyContent?: CSSProperties['justifyContent'];
|
|
15
|
+
gap?: SpacingValue;
|
|
16
|
+
m?: SpacingValue;
|
|
17
|
+
mt?: SpacingValue;
|
|
18
|
+
mr?: SpacingValue;
|
|
19
|
+
mb?: SpacingValue;
|
|
20
|
+
ml?: SpacingValue;
|
|
21
|
+
mx?: SpacingValue;
|
|
22
|
+
my?: SpacingValue;
|
|
23
|
+
p?: SpacingValue;
|
|
24
|
+
pt?: SpacingValue;
|
|
25
|
+
pr?: SpacingValue;
|
|
26
|
+
pb?: SpacingValue;
|
|
27
|
+
pl?: SpacingValue;
|
|
28
|
+
px?: SpacingValue;
|
|
29
|
+
py?: SpacingValue;
|
|
30
|
+
bg?: string;
|
|
31
|
+
color?: string;
|
|
32
|
+
fontSize?: Exclude<keyof typeof typography.fontSize, 'xs'>;
|
|
33
|
+
fontWeight?: keyof typeof typography.fontWeight;
|
|
34
|
+
textAlign?: CSSProperties['textAlign'];
|
|
35
|
+
lineHeight?: CSSProperties['lineHeight'];
|
|
36
|
+
letterSpacing?: keyof typeof typography.letterSpacing;
|
|
37
|
+
borderRadius?: RadiusValue;
|
|
38
|
+
borderTopLeftRadius?: RadiusValue;
|
|
39
|
+
borderTopRightRadius?: RadiusValue;
|
|
40
|
+
borderBottomLeftRadius?: RadiusValue;
|
|
41
|
+
borderBottomRightRadius?: RadiusValue;
|
|
42
|
+
boxShadow?: ShadowValue;
|
|
43
|
+
borderWidth?: BorderWidthValue;
|
|
44
|
+
borderTopWidth?: BorderWidthValue;
|
|
45
|
+
borderRightWidth?: BorderWidthValue;
|
|
46
|
+
borderBottomWidth?: BorderWidthValue;
|
|
47
|
+
borderLeftWidth?: BorderWidthValue;
|
|
48
|
+
borderXWidth?: BorderWidthValue;
|
|
49
|
+
borderYWidth?: BorderWidthValue;
|
|
50
|
+
borderColor?: string;
|
|
51
|
+
overflow?: CSSProperties['overflow'];
|
|
52
|
+
}
|
|
53
|
+
export type BoxProps = BoxBaseProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'children' | 'className'>;
|
|
54
|
+
export declare const Box: React.ForwardRefExoticComponent<BoxBaseProps & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "className" | "color"> & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SystemVariant
|
|
3
|
-
type
|
|
4
|
-
type ColorTone = '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
2
|
+
import { SystemVariant } from '../../types/common';
|
|
3
|
+
export type ButtonVariant = SystemVariant | 'primary' | 'secondary' | 'primary-outline' | 'secondary-outline' | 'danger-outline' | 'success-outline' | 'warning-outline';
|
|
5
4
|
export interface ButtonProps {
|
|
6
|
-
variant?:
|
|
7
|
-
product?: ProductName;
|
|
8
|
-
tone?: ColorTone;
|
|
9
|
-
hoverTone?: ColorTone;
|
|
5
|
+
variant?: ButtonVariant;
|
|
10
6
|
size?: 'small' | 'medium' | 'large';
|
|
11
7
|
disabled?: boolean;
|
|
12
8
|
loading?: boolean;
|
|
@@ -15,7 +11,8 @@ export interface ButtonProps {
|
|
|
15
11
|
type?: 'button' | 'submit' | 'reset';
|
|
16
12
|
className?: string;
|
|
17
13
|
title?: string;
|
|
14
|
+
customColor?: string;
|
|
15
|
+
customColorHover?: string;
|
|
18
16
|
}
|
|
19
17
|
export declare const Button: React.FC<ButtonProps>;
|
|
20
|
-
export {};
|
|
21
18
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SystemVariant, ProductVariant } from '../../types/common';
|
|
3
|
+
type ButtonGroupSize = 'small' | 'medium' | 'large';
|
|
4
|
+
export interface ButtonGroupItem {
|
|
5
|
+
id: string | number;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface ButtonGroupProps {
|
|
11
|
+
variant?: ProductVariant | SystemVariant;
|
|
12
|
+
size?: ButtonGroupSize;
|
|
13
|
+
filled?: boolean;
|
|
14
|
+
items: ButtonGroupItem[];
|
|
15
|
+
value?: string | number | (string | number)[];
|
|
16
|
+
multiple?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
onChange?: (value: string | number | (string | number)[]) => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=ButtonGroup.d.ts.map
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
type ProductName = 'elisa' | 'dora' | 'hub' | 'selena' | 'duda' | 'gray';
|
|
4
|
-
type ColorTone = '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
2
|
+
export type ButtonIconVariant = 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'ghost' | 'primary-outline' | 'secondary-outline' | 'danger-outline' | 'success-outline' | 'warning-outline';
|
|
5
3
|
export interface ButtonIconProps {
|
|
6
|
-
variant?:
|
|
7
|
-
product?: ProductName;
|
|
8
|
-
tone?: ColorTone;
|
|
9
|
-
hoverTone?: ColorTone;
|
|
4
|
+
variant?: ButtonIconVariant;
|
|
10
5
|
size?: 'small' | 'medium' | 'large';
|
|
11
6
|
disabled?: boolean;
|
|
12
7
|
loading?: boolean;
|
|
@@ -16,7 +11,8 @@ export interface ButtonIconProps {
|
|
|
16
11
|
className?: string;
|
|
17
12
|
'aria-label'?: string;
|
|
18
13
|
title?: string;
|
|
14
|
+
customColor?: string;
|
|
15
|
+
customColorHover?: string;
|
|
19
16
|
}
|
|
20
17
|
export declare const ButtonIcon: React.FC<ButtonIconProps>;
|
|
21
|
-
export {};
|
|
22
18
|
//# sourceMappingURL=ButtonIcon.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CardSubComponentProps, CardProps } from '../../types/card';
|
|
3
|
+
export type { CardProps };
|
|
4
|
+
declare const Header: React.FC<CardSubComponentProps>;
|
|
5
|
+
declare const Content: React.FC<CardSubComponentProps>;
|
|
6
|
+
declare const Footer: React.FC<CardSubComponentProps>;
|
|
7
|
+
export declare const Card: React.FC<CardProps> & {
|
|
8
|
+
Header: typeof Header;
|
|
9
|
+
Content: typeof Content;
|
|
10
|
+
Footer: typeof Footer;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
xs?: number | 'auto';
|
|
4
|
+
sm?: number | 'auto';
|
|
5
|
+
md?: number | 'auto';
|
|
6
|
+
lg?: number | 'auto';
|
|
7
|
+
xl?: number | 'auto';
|
|
8
|
+
xxl?: number | 'auto';
|
|
9
|
+
offset?: Partial<Record<'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl', number>>;
|
|
10
|
+
as?: keyof JSX.IntrinsicElements;
|
|
11
|
+
}
|
|
12
|
+
export declare const Col: React.FC<ColProps>;
|
|
13
|
+
//# sourceMappingURL=Col.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ElementType } from 'react';
|
|
2
2
|
import { DropdownProps, DropdownItemProps } from '../../types/dropdown';
|
|
3
3
|
declare const Trigger: React.FC<{
|
|
4
4
|
children: React.ReactNode;
|
|
@@ -9,7 +9,7 @@ declare const Content: React.FC<{
|
|
|
9
9
|
declare const Menu: React.FC<{
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
}>;
|
|
12
|
-
declare const Item:
|
|
12
|
+
declare const Item: <E extends ElementType = "a">({ as, children, ...props }: DropdownItemProps<E>) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare const Separator: React.FC;
|
|
14
14
|
export declare const Dropdown: React.FC<DropdownProps> & {
|
|
15
15
|
Trigger: typeof Trigger;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
noGutters?: boolean;
|
|
4
|
+
justify?: 'start' | 'center' | 'end' | 'between' | 'around';
|
|
5
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
6
|
+
as?: keyof JSX.IntrinsicElements;
|
|
7
|
+
}
|
|
8
|
+
export declare const Row: React.FC<RowProps>;
|
|
9
|
+
//# sourceMappingURL=Row.d.ts.map
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TabsProps, TabProps
|
|
2
|
+
import { TabsProps, TabProps } from '../../types/tabs';
|
|
3
3
|
declare const Tab: React.FC<TabProps>;
|
|
4
|
-
declare const TabContent: React.FC<TabContentProps>;
|
|
5
4
|
export declare const Tabs: React.FC<TabsProps> & {
|
|
6
5
|
Tab: typeof Tab;
|
|
7
|
-
Content: typeof TabContent;
|
|
8
6
|
};
|
|
9
7
|
export {};
|
|
10
8
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './Badge';
|
|
2
|
+
export * from './Box';
|
|
2
3
|
export * from './Button';
|
|
4
|
+
export * from './ButtonGroup';
|
|
3
5
|
export * from './Input';
|
|
4
6
|
export * from './Textarea';
|
|
5
7
|
export * from './Select';
|
|
@@ -19,4 +21,7 @@ export * from './Tooltip';
|
|
|
19
21
|
export * from './Command';
|
|
20
22
|
export * from './Table';
|
|
21
23
|
export * from './Spinner';
|
|
24
|
+
export * from './Row';
|
|
25
|
+
export * from './Col';
|
|
26
|
+
export * from './Card';
|
|
22
27
|
//# sourceMappingURL=index.d.ts.map
|