quirk-ui 0.0.4 → 0.0.6
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/assets/index.css +1 -1
- package/dist/assets/index.css.d.ts +7 -0
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index10.css.d.ts +6 -0
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index11.css.d.ts +7 -0
- package/dist/assets/index12.css +1 -0
- package/dist/assets/index12.css.d.ts +13 -0
- package/dist/assets/index13.css +1 -0
- package/dist/assets/index13.css.d.ts +8 -0
- package/dist/assets/index14.css +1 -0
- package/dist/assets/index14.css.d.ts +13 -0
- package/dist/assets/index15.css +1 -0
- package/dist/assets/index15.css.d.ts +10 -0
- package/dist/assets/index16.css +1 -0
- package/dist/assets/index16.css.d.ts +8 -0
- package/dist/assets/index17.css +1 -0
- package/dist/assets/index17.css.d.ts +11 -0
- package/dist/assets/index18.css +1 -0
- package/dist/assets/index18.css.d.ts +31 -0
- package/dist/assets/index19.css +1 -0
- package/dist/assets/index19.css.d.ts +7 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index2.css.d.ts +9 -0
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index20.css.d.ts +5 -0
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index21.css.d.ts +8 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index22.css.d.ts +6 -0
- package/dist/assets/index23.css +1 -0
- package/dist/assets/index23.css.d.ts +7 -0
- package/dist/assets/index24.css +1 -0
- package/dist/assets/index24.css.d.ts +7 -0
- package/dist/assets/index25.css +1 -0
- package/dist/assets/index25.css.d.ts +9 -0
- package/dist/assets/index26.css +1 -0
- package/dist/assets/index26.css.d.ts +21 -0
- package/dist/assets/index27.css +1 -0
- package/dist/assets/index27.css.d.ts +9 -0
- package/dist/assets/index28.css +1 -0
- package/dist/assets/index28.css.d.ts +12 -0
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index3.css.d.ts +8 -0
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index4.css.d.ts +8 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index5.css.d.ts +21 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index6.css.d.ts +11 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index7.css.d.ts +6 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index8.css.d.ts +10 -0
- package/dist/assets/index9.css +1 -0
- package/dist/assets/index9.css.d.ts +7 -0
- package/dist/components/Box/Box.test.js +20 -0
- package/dist/components/Box/__mocks__/styles.module.css.js +20 -0
- package/dist/components/Box/index.js +89 -0
- package/dist/components/Button/Button.test.js +33 -0
- package/dist/components/Button/__mocks__/styles.module.css.js +9 -0
- package/dist/components/Button/index.js +17 -7
- package/dist/components/ButtonGroup/ButtonGroup.test.js +37 -0
- package/dist/components/ButtonGroup/__mocks__/styles.module.css.js +7 -0
- package/dist/components/ButtonGroup/index.js +26 -0
- package/dist/components/Calendar/Calendar.test.js +40 -0
- package/dist/components/Calendar/index.js +7 -0
- package/dist/components/Checkbox/Checkbox.test.js +37 -0
- package/dist/components/Checkbox/__mocks__/styles.module.css.js +8 -0
- package/dist/components/Checkbox/index.js +45 -0
- package/dist/components/Container/Container.test.js +25 -0
- package/dist/components/Container/__mocks__/styles.module.css.js +11 -0
- package/dist/components/Container/index.js +31 -0
- package/dist/components/DatePicker/DatePicker.test.js +42 -0
- package/dist/components/DatePicker/index.js +56 -0
- package/dist/components/Divider/Divider.test.js +21 -0
- package/dist/components/Divider/__mocks__/styles.module.css.js +8 -0
- package/dist/components/Divider/index.js +19 -0
- package/dist/components/Fieldset/Fieldset.test.js +12 -0
- package/dist/components/Fieldset/index.js +19 -0
- package/dist/components/FileUpload/FileUpload.test.js +33 -0
- package/dist/components/FileUpload/index.js +99 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.test.js +36 -0
- package/dist/components/FloatingActionButton/__mocks__/styles.module.css.js +9 -0
- package/dist/components/FloatingActionButton/index.js +40 -0
- package/dist/components/Form/Form.test.js +20 -0
- package/dist/components/Form/index.js +29 -0
- package/dist/components/Grid/Grid.test.js +59 -0
- package/dist/components/Grid/index.js +32 -0
- package/dist/components/Heading/Heading.test.js +26 -0
- package/dist/components/Heading/__mocks__/styles.module.css.js +11 -0
- package/dist/components/Heading/index.js +20 -7
- package/dist/components/IconButton/IconButton.test.js +48 -0
- package/dist/components/IconButton/__mocks__/styles.module.css.js +12 -0
- package/dist/components/IconButton/index.js +39 -0
- package/dist/components/Input/Input.test.js +13 -0
- package/dist/components/Input/__mocks__/styles.module.css.js +9 -0
- package/dist/components/Input/index.js +45 -6
- package/dist/components/Label/Label.test.js +30 -0
- package/dist/components/Label/__mocks__/styles.module.css.js +16 -0
- package/dist/components/Label/index.js +94 -6
- package/dist/components/Link/Link.test.js +32 -0
- package/dist/components/Link/__mocks__/styles.module.css.js +8 -0
- package/dist/components/Link/index.js +5 -0
- package/dist/components/MultiSelect/MultiSelect.test.js +3144 -0
- package/dist/components/MultiSelect/index.js +45 -0
- package/dist/components/Radio/Radio.test.js +39 -0
- package/dist/components/Radio/__mocks__/styles.module.css.js +8 -0
- package/dist/components/Radio/index.js +37 -0
- package/dist/components/Range/Range.test.js +39 -0
- package/dist/components/Range/index.js +64 -0
- package/dist/components/Select/Select.test.js +48 -0
- package/dist/components/Select/index.js +43 -0
- package/dist/components/Spacer/Spacer.test.js +22 -0
- package/dist/components/Spacer/__mocks__/styles.module.css.js +12 -0
- package/dist/components/Spacer/index.js +29 -0
- package/dist/components/Stack/Stack.test.js +60 -0
- package/dist/components/Stack/__mocks__/styles.module.css.js +21 -0
- package/dist/components/Stack/index.js +65 -0
- package/dist/components/Switch/Switch.test.js +48 -0
- package/dist/components/Switch/index.js +57 -0
- package/dist/components/Table/Table.test.js +31 -0
- package/dist/components/Table/index.js +31 -0
- package/dist/components/Text/Text.test.js +65 -0
- package/dist/components/Text/__mocks__/styles.module.css.js +9 -0
- package/dist/components/Text/index.js +50 -0
- package/dist/components/Textarea/Textarea.test.js +37 -0
- package/dist/components/Textarea/index.js +47 -0
- package/dist/createLucideIcon-C8GTh_Qx.js +89 -0
- package/dist/index-BWTAh3RO.js +57529 -0
- package/dist/index-BtY6pil2.js +1621 -0
- package/dist/index-DhqFdMqD.js +1416 -0
- package/dist/lib/components/Box/Box.test.d.ts +0 -0
- package/dist/lib/components/Box/__mocks__/styles.module.css.d.ts +18 -0
- package/dist/lib/components/Box/index.d.ts +59 -0
- package/dist/lib/components/Button/Button.test.d.ts +0 -0
- package/dist/lib/components/Button/__mocks__/styles.module.css.d.ts +7 -0
- package/dist/lib/components/Button/index.d.ts +11 -1
- package/dist/lib/components/ButtonGroup/ButtonGroup.test.d.ts +0 -0
- package/dist/lib/components/ButtonGroup/__mocks__/styles.module.css.d.ts +5 -0
- package/dist/lib/components/ButtonGroup/index.d.ts +8 -0
- package/dist/lib/components/Calendar/Calendar.test.d.ts +0 -0
- package/dist/lib/components/Calendar/index.d.ts +6 -0
- package/dist/lib/components/Checkbox/Checkbox.test.d.ts +0 -0
- package/dist/lib/components/Checkbox/__mocks__/styles.module.css.d.ts +6 -0
- package/dist/lib/components/Checkbox/index.d.ts +10 -0
- package/dist/lib/components/Container/Container.test.d.ts +0 -0
- package/dist/lib/components/Container/__mocks__/styles.module.css.d.ts +9 -0
- package/dist/lib/components/Container/index.d.ts +20 -0
- package/dist/lib/components/DatePicker/DatePicker.test.d.ts +0 -0
- package/dist/lib/components/DatePicker/index.d.ts +13 -0
- package/dist/lib/components/Divider/Divider.test.d.ts +0 -0
- package/dist/lib/components/Divider/__mocks__/styles.module.css.d.ts +6 -0
- package/dist/lib/components/Divider/index.d.ts +12 -0
- package/dist/lib/components/Fieldset/Fieldset.test.d.ts +0 -0
- package/dist/lib/components/Fieldset/index.d.ts +7 -0
- package/dist/lib/components/FileUpload/FileUpload.test.d.ts +0 -0
- package/dist/lib/components/FileUpload/index.d.ts +13 -0
- package/dist/lib/components/FloatingActionButton/FloatingActionButton.test.d.ts +0 -0
- package/dist/lib/components/FloatingActionButton/__mocks__/styles.module.css.d.ts +7 -0
- package/dist/lib/components/FloatingActionButton/index.d.ts +18 -0
- package/dist/lib/components/Form/Form.test.d.ts +0 -0
- package/dist/lib/components/Form/index.d.ts +12 -0
- package/dist/lib/components/Grid/Grid.test.d.ts +0 -0
- package/dist/lib/components/Grid/index.d.ts +11 -0
- package/dist/lib/components/Heading/Heading.test.d.ts +0 -0
- package/dist/lib/components/Heading/__mocks__/styles.module.css.d.ts +9 -0
- package/dist/lib/components/Heading/index.d.ts +291 -1
- package/dist/lib/components/IconButton/IconButton.test.d.ts +0 -0
- package/dist/lib/components/IconButton/__mocks__/styles.module.css.d.ts +10 -0
- package/dist/lib/components/IconButton/index.d.ts +24 -0
- package/dist/lib/components/Input/Input.test.d.ts +0 -0
- package/dist/lib/components/Input/__mocks__/styles.module.css.d.ts +7 -0
- package/dist/lib/components/Input/index.d.ts +10 -1
- package/dist/lib/components/Label/Label.test.d.ts +0 -0
- package/dist/lib/components/Label/__mocks__/styles.module.css.d.ts +14 -0
- package/dist/lib/components/Label/index.d.ts +29 -1
- package/dist/lib/components/Link/Link.test.d.ts +0 -0
- package/dist/lib/components/Link/__mocks__/styles.module.css.d.ts +6 -0
- package/dist/lib/components/Link/index.d.ts +18 -0
- package/dist/lib/components/MultiSelect/MultiSelect.test.d.ts +0 -0
- package/dist/lib/components/MultiSelect/index.d.ts +17 -0
- package/dist/lib/components/Radio/Radio.test.d.ts +0 -0
- package/dist/lib/components/Radio/__mocks__/styles.module.css.d.ts +6 -0
- package/dist/lib/components/Radio/index.d.ts +12 -0
- package/dist/lib/components/Range/Range.test.d.ts +0 -0
- package/dist/lib/components/Range/index.d.ts +15 -0
- package/dist/lib/components/Select/Select.test.d.ts +0 -0
- package/dist/lib/components/Select/index.d.ts +18 -0
- package/dist/lib/components/Spacer/Spacer.test.d.ts +0 -0
- package/dist/lib/components/Spacer/__mocks__/styles.module.css.d.ts +10 -0
- package/dist/lib/components/Spacer/index.d.ts +20 -0
- package/dist/lib/components/Stack/Stack.test.d.ts +0 -0
- package/dist/lib/components/Stack/__mocks__/styles.module.css.d.ts +19 -0
- package/dist/lib/components/Stack/index.d.ts +42 -0
- package/dist/lib/components/Switch/Switch.test.d.ts +0 -0
- package/dist/lib/components/Switch/index.d.ts +18 -0
- package/dist/lib/components/Table/Table.test.d.ts +0 -0
- package/dist/lib/components/Table/index.d.ts +15 -0
- package/dist/lib/components/Text/Text.test.d.ts +0 -0
- package/dist/lib/components/Text/__mocks__/styles.module.css.d.ts +7 -0
- package/dist/lib/components/Text/index.d.ts +17 -0
- package/dist/lib/components/Textarea/Textarea.test.d.ts +0 -0
- package/dist/lib/components/Textarea/index.d.ts +13 -0
- package/dist/lib/main.d.ts +26 -1
- package/dist/lib/utils/renderRichText.d.ts +25 -0
- package/dist/magic-string.es-D4UQQyt0.js +859 -0
- package/dist/main.js +54 -6
- package/dist/trash-2-2Rn0a4s6.js +17 -0
- package/dist/utils/renderRichText.js +26 -0
- package/package.json +23 -6
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const sizeClassMap: {
|
|
3
|
+
readonly sm: string;
|
|
4
|
+
readonly md: string;
|
|
5
|
+
readonly lg: string;
|
|
6
|
+
};
|
|
7
|
+
declare const intentClassMap: {
|
|
8
|
+
readonly default: string;
|
|
9
|
+
readonly muted: string;
|
|
10
|
+
readonly accent: string;
|
|
11
|
+
readonly error: string;
|
|
12
|
+
};
|
|
13
|
+
type Size = keyof typeof sizeClassMap;
|
|
14
|
+
type Intent = keyof typeof intentClassMap;
|
|
15
|
+
type IconButtonProps = {
|
|
16
|
+
icon: React.ReactNode;
|
|
17
|
+
size?: Size;
|
|
18
|
+
intent?: Intent;
|
|
19
|
+
srOnlyLabel?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
23
|
+
export declare function IconButton({ icon, size, intent, srOnlyLabel, disabled, className, ...restProps }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
File without changes
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type InputProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
optional?: boolean;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
11
|
+
export declare function Input({ label, id, className, error, required, optional, tooltip, ...restProps }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
label: string;
|
|
3
|
+
text: string;
|
|
4
|
+
required: string;
|
|
5
|
+
optional: string;
|
|
6
|
+
default: string;
|
|
7
|
+
error: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
tooltipWrapper: string;
|
|
10
|
+
tooltipIcon: string;
|
|
11
|
+
tooltipText: string;
|
|
12
|
+
srOnly: string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -1,2 +1,30 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
declare const sizeClassMap: {
|
|
3
|
+
readonly sm: string;
|
|
4
|
+
readonly md: string;
|
|
5
|
+
readonly lg: string;
|
|
6
|
+
};
|
|
7
|
+
declare const intentClassMap: {
|
|
8
|
+
readonly default: string;
|
|
9
|
+
readonly muted: string;
|
|
10
|
+
readonly accent: string;
|
|
11
|
+
readonly error: string;
|
|
12
|
+
readonly disabled: string;
|
|
13
|
+
};
|
|
14
|
+
export type Size = keyof typeof sizeClassMap;
|
|
15
|
+
export type Intent = keyof typeof intentClassMap;
|
|
16
|
+
type LabelProps = {
|
|
17
|
+
htmlFor?: string;
|
|
18
|
+
size?: Size;
|
|
19
|
+
intent?: Intent;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
optional?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
srOnly?: boolean;
|
|
24
|
+
tooltip?: string;
|
|
25
|
+
showErrorIcon?: boolean;
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
className?: string;
|
|
28
|
+
} & React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
29
|
+
export declare function Label({ htmlFor, size, intent, required, optional, disabled, srOnly, tooltip, showErrorIcon, className, children, ...restProps }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const variantClassMap: {
|
|
3
|
+
readonly default: string;
|
|
4
|
+
readonly muted: string;
|
|
5
|
+
readonly underline: string;
|
|
6
|
+
};
|
|
7
|
+
type Variant = keyof typeof variantClassMap;
|
|
8
|
+
type LinkProps = {
|
|
9
|
+
href: string;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
variant?: Variant;
|
|
12
|
+
iconLeft?: React.ReactNode;
|
|
13
|
+
iconRight?: React.ReactNode;
|
|
14
|
+
useRouter?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
17
|
+
export declare function Link({ href, variant, iconLeft, iconRight, useRouter, className, children, ...restProps }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type Option = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
type MultiSelectProps = {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
value: string[];
|
|
10
|
+
options: Option[];
|
|
11
|
+
required?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
onChange?: (value: string[]) => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function MultiSelect({ id, name, label, value, options, required, disabled, onChange, className, ...restProps }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type RadioProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
11
|
+
export declare function Radio({ id, name, value, label, disabled, required, className, ...restProps }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type RangeProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
value?: number | null;
|
|
6
|
+
defaultValue?: number | null;
|
|
7
|
+
onValueChange?: (value: number) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
optional?: boolean;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange">;
|
|
14
|
+
export declare function Range({ label, id, value, defaultValue, onValueChange, className, error, required, optional, tooltip, ...restProps }: RangeProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Option = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
type SelectProps = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
options: Option[];
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function Select({ id, name, label, options, defaultValue, required, disabled, onChange, className, ...restProps }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const sizeClassMap: {
|
|
3
|
+
readonly sm: string;
|
|
4
|
+
readonly md: string;
|
|
5
|
+
readonly lg: string;
|
|
6
|
+
readonly xl: string;
|
|
7
|
+
};
|
|
8
|
+
declare const axisClassMap: {
|
|
9
|
+
readonly horizontal: string;
|
|
10
|
+
readonly vertical: string;
|
|
11
|
+
};
|
|
12
|
+
type Size = keyof typeof sizeClassMap;
|
|
13
|
+
type Axis = keyof typeof axisClassMap;
|
|
14
|
+
export type SpacerProps = {
|
|
15
|
+
size?: Size;
|
|
16
|
+
axis?: Axis;
|
|
17
|
+
className?: string;
|
|
18
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
19
|
+
export declare function Spacer({ size, axis, className, ...restProps }: SpacerProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
stack: string;
|
|
3
|
+
vertical: string;
|
|
4
|
+
horizontal: string;
|
|
5
|
+
gapSm: string;
|
|
6
|
+
gapMd: string;
|
|
7
|
+
gapLg: string;
|
|
8
|
+
alignStart: string;
|
|
9
|
+
alignCenter: string;
|
|
10
|
+
alignEnd: string;
|
|
11
|
+
alignStretch: string;
|
|
12
|
+
justifyStart: string;
|
|
13
|
+
justifyCenter: string;
|
|
14
|
+
justifyEnd: string;
|
|
15
|
+
justifySpaceBetween: string;
|
|
16
|
+
justifySpaceAround: string;
|
|
17
|
+
justifySpaceEvenly: string;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const directionClassMap: {
|
|
3
|
+
readonly stack: string;
|
|
4
|
+
readonly vertical: string;
|
|
5
|
+
readonly horizontal: string;
|
|
6
|
+
};
|
|
7
|
+
declare const gapClassMap: {
|
|
8
|
+
readonly sm: string;
|
|
9
|
+
readonly md: string;
|
|
10
|
+
readonly lg: string;
|
|
11
|
+
};
|
|
12
|
+
declare const alignClassMap: {
|
|
13
|
+
readonly start: string;
|
|
14
|
+
readonly center: string;
|
|
15
|
+
readonly end: string;
|
|
16
|
+
readonly stretch: string;
|
|
17
|
+
};
|
|
18
|
+
declare const justifyClassMap: {
|
|
19
|
+
readonly start: string;
|
|
20
|
+
readonly center: string;
|
|
21
|
+
readonly end: string;
|
|
22
|
+
readonly "space-between": string;
|
|
23
|
+
readonly "space-around": string;
|
|
24
|
+
readonly "space-evenly": string;
|
|
25
|
+
};
|
|
26
|
+
export type Direction = keyof typeof directionClassMap;
|
|
27
|
+
export type Align = keyof typeof alignClassMap;
|
|
28
|
+
export type Justify = keyof typeof justifyClassMap;
|
|
29
|
+
export type Gap = keyof typeof gapClassMap;
|
|
30
|
+
export type Tag = "div" | "ul" | "ol" | "nav" | "section";
|
|
31
|
+
export type StackProps = {
|
|
32
|
+
direction?: Direction;
|
|
33
|
+
gap?: Gap;
|
|
34
|
+
align?: Align;
|
|
35
|
+
justify?: Justify;
|
|
36
|
+
wrap?: boolean;
|
|
37
|
+
as?: Tag;
|
|
38
|
+
className?: string;
|
|
39
|
+
children: React.ReactNode;
|
|
40
|
+
} & React.HTMLAttributes<HTMLElement>;
|
|
41
|
+
export declare function Stack({ direction, gap, align, justify, wrap, as, className, children, ...restProps }: StackProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Size, Intent } from '../Label';
|
|
3
|
+
type SwitchProps = {
|
|
4
|
+
id?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
checked: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
optional?: boolean;
|
|
11
|
+
intent?: Intent;
|
|
12
|
+
size?: Size;
|
|
13
|
+
tooltip?: string;
|
|
14
|
+
showErrorIcon?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
17
|
+
export declare function Switch({ id, name, checked, disabled, label, required, optional, intent, size, tooltip, showErrorIcon, className, ...restProps }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TableColumn<T> = {
|
|
3
|
+
header: string;
|
|
4
|
+
accessor: keyof T;
|
|
5
|
+
className?: string;
|
|
6
|
+
cellRenderer?: (value: T[keyof T], row: T) => React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export type TableProps<T> = {
|
|
9
|
+
data: T[];
|
|
10
|
+
columns: TableColumn<T>[];
|
|
11
|
+
emptyMessage?: string;
|
|
12
|
+
onRowClick?: (row: T) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function Table<T>({ data, columns, emptyMessage, onRowClick, className, ...restProps }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const variantClassMap: {
|
|
3
|
+
readonly default: string;
|
|
4
|
+
readonly muted: string;
|
|
5
|
+
readonly lead: string;
|
|
6
|
+
readonly small: string;
|
|
7
|
+
};
|
|
8
|
+
type Variant = keyof typeof variantClassMap;
|
|
9
|
+
type Tag = "p" | "span" | "div" | "strong" | "em" | "small";
|
|
10
|
+
type TextProps = {
|
|
11
|
+
as?: Tag;
|
|
12
|
+
variant?: Variant;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
} & React.HTMLAttributes<HTMLElement>;
|
|
16
|
+
export declare function Text({ as, variant, children, className, ...restProps }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TextareaProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
optional?: boolean;
|
|
11
|
+
tooltip?: string;
|
|
12
|
+
} & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
13
|
+
export declare function Textarea({ id, name, label, error, disabled, required, className, optional, tooltip, ...restProps }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/lib/main.d.ts
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
export { ButtonGroup } from './components/ButtonGroup';
|
|
2
|
+
export { FloatingActionButton } from './components/FloatingActionButton';
|
|
1
3
|
export { Button } from './components/Button';
|
|
2
|
-
export {
|
|
4
|
+
export { IconButton } from './components/IconButton';
|
|
5
|
+
export { Heading } from './components/Heading';
|
|
6
|
+
export { Text } from './components/Text';
|
|
7
|
+
export { Link } from './components/Link';
|
|
8
|
+
export { Grid } from './components/Grid';
|
|
9
|
+
export { Container } from './components/Container';
|
|
10
|
+
export { Stack } from './components/Stack';
|
|
11
|
+
export { Box } from './components/Box';
|
|
12
|
+
export { Spacer } from './components/Spacer';
|
|
13
|
+
export { Divider } from './components/Divider';
|
|
14
|
+
export { Table } from './components/Table';
|
|
15
|
+
export type { TableColumn } from './components/Table';
|
|
16
|
+
export { Form } from './components/Form';
|
|
3
17
|
export { Label } from './components/Label';
|
|
18
|
+
export { Input } from './components/Input';
|
|
19
|
+
export { Fieldset } from './components/Fieldset';
|
|
20
|
+
export { Radio } from './components/Radio';
|
|
21
|
+
export { Checkbox } from './components/Checkbox';
|
|
22
|
+
export { Textarea } from './components/Textarea';
|
|
23
|
+
export { Select } from './components/Select';
|
|
24
|
+
export { Switch } from './components/Switch';
|
|
25
|
+
export { MultiSelect } from './components/MultiSelect';
|
|
26
|
+
export { DatePicker } from './components/DatePicker';
|
|
27
|
+
export { Range } from './components/Range';
|
|
28
|
+
export { FileUpload } from './components/FileUpload';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type RichTextNode = {
|
|
3
|
+
type: "paragraph";
|
|
4
|
+
content: (string | RichTextNode)[];
|
|
5
|
+
} | {
|
|
6
|
+
type: "heading";
|
|
7
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
|
+
content: (string | RichTextNode)[];
|
|
9
|
+
} | {
|
|
10
|
+
type: "list";
|
|
11
|
+
ordered: boolean;
|
|
12
|
+
items: RichTextNode[];
|
|
13
|
+
} | {
|
|
14
|
+
type: "listItem";
|
|
15
|
+
content: (string | RichTextNode)[];
|
|
16
|
+
} | {
|
|
17
|
+
type: "link";
|
|
18
|
+
href: string;
|
|
19
|
+
content: string | RichTextNode[];
|
|
20
|
+
} | {
|
|
21
|
+
type: "text";
|
|
22
|
+
text: string;
|
|
23
|
+
};
|
|
24
|
+
export declare function renderRichText(nodes: RichTextNode[]): React.ReactNode;
|
|
25
|
+
export {};
|