cetec-design-system 0.0.26 → 0.0.28
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/cetec-design-system.es.js +1516 -0
- package/dist/components/Box/Box.d.ts +7 -0
- package/dist/components/Box/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +12 -0
- package/dist/components/Button/ButtonContent.d.ts +8 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/CheckBox/CheckBox.d.ts +8 -0
- package/dist/components/CheckBox/index.d.ts +1 -0
- package/dist/components/CheckboxInput/CheckboxInput.d.ts +8 -0
- package/dist/components/CheckboxInput/index.d.ts +1 -0
- package/dist/components/Code/Code.d.ts +8 -0
- package/dist/components/Code/Pre.d.ts +7 -0
- package/dist/components/Code/index.d.ts +2 -0
- package/dist/components/Divider/Divider.d.ts +7 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Heading/Heading.d.ts +7 -0
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +14 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/IconButton/IconButton.d.ts +19 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +10 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Label/Label.d.ts +7 -0
- package/dist/components/Label/index.d.ts +1 -0
- package/dist/components/Link/Link.d.ts +16 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/PandaPatterns.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +7 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/RadioInput/RadioInput.d.ts +9 -0
- package/dist/components/RadioInput/index.d.ts +1 -0
- package/dist/components/Slot.d.ts +4 -0
- package/dist/components/Spinner/Spinner.d.ts +4 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Text/Text.d.ts +8 -0
- package/dist/components/Text/Text.stories.d.ts +7 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +6 -0
- package/dist/components/TextInput/index.d.ts +1 -0
- package/dist/components/Textarea/Textarea.d.ts +8 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +1 -0
- package/dist/components/ThemeSwitcher/index.d.ts +1 -0
- package/dist/components/Toggle/Toggle.d.ts +8 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/ToggleInput/ToggleInput.d.ts +8 -0
- package/dist/components/ToggleInput/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cetec-components.css +0 -1
- package/dist/cetec-components.es.js +0 -26960
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React, ComponentPropsWithoutRef, ElementType } from 'react';
|
|
2
|
+
import { BoxVariantProps } from '../../../styled-system/recipes';
|
|
3
|
+
import { SystemStyleObject } from '../../../styled-system/types';
|
|
4
|
+
export type BoxProps = Omit<ComponentPropsWithoutRef<ElementType>, 'as'> & SystemStyleObject & BoxVariantProps & {
|
|
5
|
+
as?: ElementType;
|
|
6
|
+
};
|
|
7
|
+
export declare const Box: React.FC<BoxProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Box, type BoxProps } from './Box';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
import { ButtonVariantProps } from '../../../styled-system/recipes';
|
|
4
|
+
export type ButtonProps = BoxProps & ButtonVariantProps & {
|
|
5
|
+
href?: string;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
children?: string | ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
type?: 'submit' | 'reset' | 'button';
|
|
10
|
+
};
|
|
11
|
+
export declare const Button: FC<ButtonProps>;
|
|
12
|
+
export default Button;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* ButtonContent handles rendering the children alongside an optional Spinner.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ButtonContent: ({ loading, children, }: {
|
|
6
|
+
loading: boolean;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button, type ButtonProps } from './Button';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
import { CheckboxVariantProps } from '../../../styled-system/recipes';
|
|
3
|
+
export type CheckBoxProps = Omit<BoxProps, keyof CheckboxVariantProps> & CheckboxVariantProps & {
|
|
4
|
+
indeterminate?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const CheckBox: React.FC<CheckBoxProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckBox } from './CheckBox';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
export type CheckBoxInputProps = BoxProps & {
|
|
4
|
+
error?: boolean;
|
|
5
|
+
children?: string | ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const CheckBoxInput: FC<CheckBoxInputProps>;
|
|
8
|
+
export default CheckBoxInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckBoxInput, type CheckBoxInputProps } from './CheckboxInput';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
import { TextProps } from '../Text';
|
|
3
|
+
import { CodeVariantProps } from '../../../styled-system/recipes';
|
|
4
|
+
export type CodeProps = Omit<BoxProps, keyof CodeVariantProps | keyof TextProps> & CodeVariantProps & TextProps & {
|
|
5
|
+
children?: string | React.ReactNode;
|
|
6
|
+
lang?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const Code: React.FC<CodeProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from '../Box/Box';
|
|
2
|
+
import { DividerVariantProps } from '../../../styled-system/recipes';
|
|
3
|
+
export type DividerProps = Omit<BoxProps, keyof DividerVariantProps> & DividerVariantProps & {
|
|
4
|
+
direction?: string;
|
|
5
|
+
weight?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const Divider: React.FC<DividerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Divider, type DividerProps } from './Divider';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TextProps } from '../Text';
|
|
2
|
+
import { HeadingVariantProps } from '../../../styled-system/recipes';
|
|
3
|
+
export type HeadingProps = Omit<TextProps, keyof HeadingVariantProps> & HeadingVariantProps & {
|
|
4
|
+
children?: string | React.ReactNode;
|
|
5
|
+
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
6
|
+
};
|
|
7
|
+
export declare const Heading: React.FC<HeadingProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Heading, type HeadingProps } from './Heading';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SVGAttributes } from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
import { IconNamesList } from './icons';
|
|
4
|
+
import { numericSizes } from '../../styles/tokens';
|
|
5
|
+
import { ConditionalValue } from '../../../styled-system/types';
|
|
6
|
+
import { WithEscapeHatch } from '../../../styled-system/types/prop-type';
|
|
7
|
+
import { ColorToken } from '../../../styled-system/tokens';
|
|
8
|
+
export type AllowedIconSizes = keyof typeof numericSizes;
|
|
9
|
+
export type IconProps = Omit<BoxProps, 'size'> & SVGAttributes<SVGElement> & {
|
|
10
|
+
name: IconNamesList;
|
|
11
|
+
size?: AllowedIconSizes;
|
|
12
|
+
fill?: ConditionalValue<WithEscapeHatch<ColorToken | `var(--${string})`>>;
|
|
13
|
+
};
|
|
14
|
+
export declare const Icon: React.FC<IconProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC, ReactElement } from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
import { IconButtonVariantProps } from '../../../styled-system/recipes';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
/**
|
|
6
|
+
* The IconButton component builds on Box.
|
|
7
|
+
* It automatically renders as a "button" (or an "a" if an href is provided)
|
|
8
|
+
* and applies the iconButton recipe styles.
|
|
9
|
+
*
|
|
10
|
+
* It requires exactly one child which must be an <Icon /> element.
|
|
11
|
+
*/
|
|
12
|
+
export type IconButtonProps = BoxProps & IconButtonVariantProps & {
|
|
13
|
+
href?: string;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
children: ReactElement<typeof Icon>;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
type?: 'submit' | 'reset' | 'button';
|
|
18
|
+
};
|
|
19
|
+
export declare const IconButton: FC<IconButtonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IconButton, type IconButtonProps } from './IconButton';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TextProps } from '../Text';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
import { InputVariantProps } from '../../../styled-system/recipes';
|
|
4
|
+
export type InputProps = Omit<BoxProps, keyof InputVariantProps | keyof TextProps> & TextProps & InputVariantProps & {
|
|
5
|
+
label?: string;
|
|
6
|
+
type?: string | HTMLInputElement;
|
|
7
|
+
variant?: 'stacked' | 'internalLabel';
|
|
8
|
+
children?: string | React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const Input: React.FC<InputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Input, type InputProps } from './Input';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
import { LabelVariantProps } from '../../../styled-system/recipes';
|
|
3
|
+
export type LabelProps = Omit<BoxProps, keyof LabelVariantProps> & LabelVariantProps & {
|
|
4
|
+
htmlFor?: string;
|
|
5
|
+
children?: string | React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const Label: React.FC<LabelProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Label, type LabelProps } from './Label';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
import { LinkVariantProps } from '../../../styled-system/recipes';
|
|
3
|
+
import { FontSizeToken, FontToken, FontWeightToken } from '../../../styled-system/tokens';
|
|
4
|
+
export type LinkProps = Omit<BoxProps, keyof LinkVariantProps> & LinkVariantProps & {
|
|
5
|
+
href: string;
|
|
6
|
+
external?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
size?: FontSizeToken;
|
|
9
|
+
family?: FontToken;
|
|
10
|
+
italic?: boolean;
|
|
11
|
+
bold?: boolean;
|
|
12
|
+
weight?: FontWeightToken;
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export declare const Link: React.FC<LinkProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Link, type LinkProps } from './Link';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
import { RadioVariantProps } from '../../../styled-system/recipes';
|
|
3
|
+
export type RadioProps = Omit<BoxProps, keyof RadioVariantProps> & RadioVariantProps & {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const Radio: React.FC<RadioProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Radio, type RadioProps } from './Radio';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RadioInputVariantProps } from '../../../styled-system/recipes';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
import { FC, ReactNode } from 'react';
|
|
4
|
+
export type RadioInputProps = BoxProps & RadioInputVariantProps & {
|
|
5
|
+
error?: boolean;
|
|
6
|
+
children?: string | ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const RadioInput: FC<RadioInputProps>;
|
|
9
|
+
export default RadioInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioInput, type RadioInputProps } from './RadioInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Spinner, type SpinnerProps } from './Spinner';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React, ReactNode, ElementType } from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
import { TextVariantProps } from '../../../styled-system/recipes';
|
|
4
|
+
export type TextProps = Omit<BoxProps, keyof TextVariantProps> & TextVariantProps & {
|
|
5
|
+
children: string | ReactNode;
|
|
6
|
+
as?: ElementType;
|
|
7
|
+
};
|
|
8
|
+
export declare const Text: React.FC<TextProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Text, type TextProps } from './Text';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BoxProps } from '../Box/Box';
|
|
2
|
+
import { TextinputVariantProps } from '../../../styled-system/recipes';
|
|
3
|
+
export type TextInputProps = Omit<BoxProps, keyof TextinputVariantProps> & TextinputVariantProps & {
|
|
4
|
+
error?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const TextInput: React.FC<TextInputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextInput, type TextInputProps } from './TextInput';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
import { TextareaVariantProps } from '../../../styled-system/recipes';
|
|
3
|
+
export type TextareaProps = Omit<BoxProps, keyof TextareaVariantProps> & TextareaVariantProps & {
|
|
4
|
+
autoSize?: boolean;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const Textarea: React.FC<TextareaProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Textarea, type TextareaProps } from './Textarea';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ThemeSwitcher: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ThemeSwitcher } from './ThemeSwitcher';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
import { ToggleVariantProps } from '../../../styled-system/recipes';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export type ToggleProps = Omit<BoxProps, keyof ToggleVariantProps> & ToggleVariantProps & {
|
|
5
|
+
error?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const Toggle: React.FC<ToggleProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toggle, type ToggleProps } from './Toggle';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
import { ToggleInputVariantProps } from '../../../styled-system/recipes';
|
|
4
|
+
export type ToggleInputProps = BoxProps & ToggleInputVariantProps & {
|
|
5
|
+
error?: boolean;
|
|
6
|
+
children?: string | ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const ToggleInput: FC<ToggleInputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ToggleInput, type ToggleInputProps } from './ToggleInput';
|