rds-ui-system 2.3.2 → 2.4.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/README.md +59 -4
- package/dist/index.d.ts +1 -0
- package/dist/lib/components/atoms/Button/Button.d.ts +19 -26
- package/dist/lib/components/atoms/Button/Button.test.d.ts +1 -0
- package/dist/lib/components/atoms/Checkbox/Checkbox.d.ts +11 -19
- package/dist/lib/components/atoms/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/lib/components/atoms/FilterChip/FilterChip.d.ts +10 -14
- package/dist/lib/components/atoms/FilterChip/FilterChip.test.d.ts +1 -0
- package/dist/lib/components/atoms/Heading/Heading.d.ts +13 -15
- package/dist/lib/components/atoms/Heading/Heading.test.d.ts +1 -0
- package/dist/lib/components/atoms/InfoText/InfoText.d.ts +7 -0
- package/dist/lib/components/atoms/InfoText/InfoText.test.d.ts +1 -0
- package/dist/lib/components/atoms/Input/Input.d.ts +13 -21
- package/dist/lib/components/atoms/Input/Input.test.d.ts +1 -0
- package/dist/lib/components/atoms/Link/Link.d.ts +5 -0
- package/dist/lib/components/atoms/Radio/Radio.d.ts +10 -16
- package/dist/lib/components/atoms/Radio/Radio.test.d.ts +1 -0
- package/dist/lib/components/atoms/SelectItem/SelectItem.d.ts +19 -0
- package/dist/lib/components/atoms/SelectItem/SelectItem.test.d.ts +1 -0
- package/dist/lib/components/atoms/Slider/Slider.d.ts +13 -0
- package/dist/lib/components/atoms/Slider/Slider.test.d.ts +1 -0
- package/dist/lib/components/atoms/Text/Text.d.ts +17 -14
- package/dist/lib/components/atoms/Text/Text.test.d.ts +1 -0
- package/dist/lib/components/atoms/Textarea/Textarea.d.ts +13 -20
- package/dist/lib/components/atoms/Textarea/Textarea.test.d.ts +1 -0
- package/dist/lib/components/atoms/index.d.ts +11 -13
- package/dist/lib/components/icons/Icon/Icon.d.ts +7 -15
- package/dist/lib/components/icons/Icon/Icon.test.d.ts +1 -0
- package/dist/lib/components/icons/iconMapping.d.ts +50 -237
- package/dist/lib/components/icons/index.d.ts +1 -1
- package/dist/lib/components/index.d.ts +4 -4
- package/dist/lib/components/molecules/Accordion/Accordion.d.ts +17 -0
- package/dist/lib/components/molecules/Accordion/Accordion.test.d.ts +1 -0
- package/dist/lib/components/molecules/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/lib/components/molecules/Dropdown/Dropdown.d.ts +8 -0
- package/dist/lib/components/molecules/MobileNav/MobileNav.d.ts +9 -0
- package/dist/lib/components/molecules/Modal/Modal.d.ts +15 -0
- package/dist/lib/components/molecules/Modal/Modal.test.d.ts +1 -0
- package/dist/lib/components/molecules/MultiSelect/MultiSelect.d.ts +17 -0
- package/dist/lib/components/molecules/MultiSelect/MultiSelect.test.d.ts +1 -0
- package/dist/lib/components/molecules/Pagination/Pagination.d.ts +14 -0
- package/dist/lib/components/molecules/Pagination/Pagination.test.d.ts +1 -0
- package/dist/lib/components/molecules/RadioGroup/RadioGroup.d.ts +14 -0
- package/dist/lib/components/molecules/RadioGroup/RadioGroup.test.d.ts +1 -0
- package/dist/lib/components/molecules/Select/Select.d.ts +19 -0
- package/dist/lib/components/molecules/Select/Select.test.d.ts +1 -0
- package/dist/lib/components/molecules/Toast/Toast.d.ts +14 -0
- package/dist/lib/components/molecules/index.d.ts +8 -1
- package/dist/lib/components/organisms/Header/Header.d.ts +19 -0
- package/dist/lib/components/organisms/ToastDisplay/ToastDisplay.d.ts +12 -0
- package/dist/lib/components/organisms/index.d.ts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/storybook-utils.d.ts +8 -0
- package/dist/rds-ui-system.css +1 -0
- package/dist/rds-ui-system.es.js +5926 -7300
- package/dist/rds-ui-system.umd.js +21 -4874
- package/package.json +53 -48
- package/dist/lib/components/atoms/Accordion/Accordion.d.ts +0 -18
- package/dist/lib/components/atoms/Box/Box.d.ts +0 -14
- package/dist/lib/components/atoms/Modal/Modal.d.ts +0 -17
- package/dist/lib/components/atoms/MultiSelect/MultiSelect.d.ts +0 -18
- package/dist/lib/components/atoms/Select/Select.d.ts +0 -21
- package/dist/lib/components/molecules/ml-banner/index.d.ts +0 -1
- package/dist/lib/components/organisms/or-footer/index.d.ts +0 -1
- package/dist/style.css +0 -1045
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Remondis UI Library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A React component library built with TypeScript, Vite & Storybook—published to npm via GitHub Actions + semantic-release.
|
|
4
|
+
|
|
5
|
+
## See the Storybook
|
|
4
6
|
|
|
5
7
|
https://storybook.remondis.io/
|
|
6
8
|
|
|
@@ -19,13 +21,17 @@ https://storybook.remondis.io/
|
|
|
19
21
|
|
|
20
22
|
## Getting Started
|
|
21
23
|
|
|
24
|
+
### Requirements
|
|
25
|
+
|
|
26
|
+
- Node 20.x
|
|
27
|
+
- pnpm 10.x
|
|
28
|
+
|
|
22
29
|
1. Install dependencies with `pnpm i` (first run `corepack enable` to enable pnpm)
|
|
23
30
|
2. Run `pnpm prepare` command to setup [Husky](https://typicode.github.io/husky) pre-commit hooks.
|
|
24
31
|
|
|
32
|
+
### Development
|
|
25
33
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Always prepending pnpm:
|
|
34
|
+
Always prepending pnpm in your local environment:
|
|
29
35
|
|
|
30
36
|
- `dev`: Bootstrap the Storybook preview with Hot Reload.
|
|
31
37
|
- `build`: Builds the static storybook project.
|
|
@@ -34,3 +40,52 @@ Always prepending pnpm:
|
|
|
34
40
|
- `format:prettier`: Formats files using the prettier rules defined in **.prettierrc**.
|
|
35
41
|
- `test`: Runs testing using watch mode.
|
|
36
42
|
- `test:cov`: Runs testing displaying a coverage report.
|
|
43
|
+
|
|
44
|
+
## Release Process
|
|
45
|
+
|
|
46
|
+
The Github Action for releasing a new version of the package consists of the following steps:
|
|
47
|
+
|
|
48
|
+
Triggered on push to `staging` (prerelease) or `main` (stable):
|
|
49
|
+
|
|
50
|
+
1. Checkout & Setup Node 20
|
|
51
|
+
2. Install pnpm & deps
|
|
52
|
+
3. Run tests
|
|
53
|
+
4. Build
|
|
54
|
+
5. Run Semantic Release
|
|
55
|
+
1. Analyzes commits (Conventional Commits)
|
|
56
|
+
2. Bumps version in package.json
|
|
57
|
+
3. Updates CHANGELOG.md
|
|
58
|
+
4. Commits CHANGELOG.md, dist/\*\*, package.json
|
|
59
|
+
5. Creates GitHub Release
|
|
60
|
+
6. Publishes npm package under correct dist-tag
|
|
61
|
+
6. The version in package.json will be bumped by this run
|
|
62
|
+
|
|
63
|
+
### Conventional commit types
|
|
64
|
+
|
|
65
|
+
`build`: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)\
|
|
66
|
+
`ci`: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)\
|
|
67
|
+
`chore`: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries\
|
|
68
|
+
`docs`: Documentation only changes\
|
|
69
|
+
**`feat`**: A new feature\
|
|
70
|
+
**`fix`**: A bug fix\
|
|
71
|
+
`perf`: A code change that improves performance\
|
|
72
|
+
`refactor`: A code change that neither fixes a bug nor adds a feature\
|
|
73
|
+
`revert`: Revert something\
|
|
74
|
+
`style`: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)\
|
|
75
|
+
`test`: Adding missing tests or correcting existing tests
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
`fix`: a commit of the type fix patches a bug in your codebase (this correlates with PATCH in Semantic Versioning).\
|
|
80
|
+
`feat`: a commit of the type feat introduces a new feature to the codebase (this correlates with MINOR in Semantic Versioning).\
|
|
81
|
+
`BREAKING CHANGE`: a commit that has a footer BREAKING CHANGE:, or appends a ! after the type/scope, introduces a breaking API change (correlating with MAJOR in Semantic Versioning). A BREAKING CHANGE can be part of commits of any type.
|
|
82
|
+
|
|
83
|
+
### Dry run and manual release
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
pnpm test
|
|
87
|
+
pnpm run build:lib
|
|
88
|
+
npx semantic-release --dry-run
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
To force a release: commit a Conventional-Commit to staging or main, and let Actions handle the rest.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,22 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, MouseEventHandler, ReactNode } from 'react'
|
|
2
|
-
import { IconName } from '../../icons/iconMapping'
|
|
1
|
+
import { ButtonHTMLAttributes, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { IconName } from '../../icons/iconMapping';
|
|
3
3
|
export declare const BUTTON_VARIANT: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export type ButtonVariant = keyof typeof BUTTON_VARIANT
|
|
13
|
-
export declare const buttonVariant: Record<ButtonVariant, string>
|
|
4
|
+
readonly DEFAULT: "default";
|
|
5
|
+
readonly OUTLINED: "outlined";
|
|
6
|
+
readonly TEXT: "text";
|
|
7
|
+
readonly UNSTYLED: "unstyled";
|
|
8
|
+
};
|
|
9
|
+
export type ButtonVariant = keyof typeof BUTTON_VARIANT;
|
|
10
|
+
export declare const buttonVariantStyles: Record<ButtonVariant, string>;
|
|
14
11
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
iconColor?: string
|
|
25
|
-
textColor?: string
|
|
12
|
+
label?: string;
|
|
13
|
+
variant?: ButtonVariant;
|
|
14
|
+
isIconSolid?: boolean;
|
|
15
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
iconName?: IconName;
|
|
19
|
+
iconColor?: string;
|
|
20
|
+
iconPosition?: 'leading' | 'trailing';
|
|
26
21
|
}
|
|
27
|
-
export declare const Button: import('react').ForwardRefExoticComponent<
|
|
28
|
-
ButtonProps & import('react').RefAttributes<HTMLButtonElement>
|
|
29
|
-
>
|
|
22
|
+
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import { InputHTMLAttributes
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
export declare const CHECKBOX_VARIANT: {
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export type CheckboxVariant = keyof typeof CHECKBOX_VARIANT
|
|
6
|
-
export declare const checkboxVariant: Record<CheckboxVariant, string
|
|
3
|
+
readonly DEFAULT: "primary";
|
|
4
|
+
};
|
|
5
|
+
export type CheckboxVariant = keyof typeof CHECKBOX_VARIANT;
|
|
6
|
+
export declare const checkboxVariant: Record<CheckboxVariant, string>;
|
|
7
7
|
export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
isRequired?: boolean
|
|
14
|
-
checked?: boolean
|
|
15
|
-
onChange?: ChangeEventHandler<HTMLInputElement>
|
|
16
|
-
id: string
|
|
17
|
-
readOnly?: boolean
|
|
18
|
-
value?: any
|
|
8
|
+
label?: string;
|
|
9
|
+
variant?: CheckboxVariant;
|
|
10
|
+
isError?: boolean;
|
|
11
|
+
id: string;
|
|
12
|
+
supportingText?: string;
|
|
19
13
|
}
|
|
20
|
-
export declare const Checkbox: import('react').ForwardRefExoticComponent<
|
|
21
|
-
CheckboxProps & import('react').RefAttributes<HTMLInputElement>
|
|
22
|
-
>
|
|
14
|
+
export declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, MouseEventHandler } from 'react'
|
|
1
|
+
import { ButtonHTMLAttributes, MouseEventHandler } from 'react';
|
|
2
2
|
export declare const FILTERCHIP_VARIANT: {
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export type FilterChipVariant = keyof typeof FILTERCHIP_VARIANT
|
|
6
|
-
export declare const filterChipVariant: Record<FilterChipVariant, string
|
|
3
|
+
readonly DEFAULT: "default";
|
|
4
|
+
};
|
|
5
|
+
export type FilterChipVariant = keyof typeof FILTERCHIP_VARIANT;
|
|
6
|
+
export declare const filterChipVariant: Record<FilterChipVariant, string>;
|
|
7
7
|
export interface FilterChipProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
bgFillColor?: string
|
|
13
|
-
textColor?: string
|
|
8
|
+
label: string;
|
|
9
|
+
variant?: FilterChipVariant;
|
|
10
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
11
|
+
className?: string;
|
|
14
12
|
}
|
|
15
|
-
export declare const FilterChip: import('react').ForwardRefExoticComponent<
|
|
16
|
-
FilterChipProps & import('react').RefAttributes<HTMLButtonElement>
|
|
17
|
-
>
|
|
13
|
+
export declare const FilterChip: import('react').ForwardRefExoticComponent<FilterChipProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react'
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export declare const HEADING_VARIANT: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export type HeadingVariant = keyof typeof HEADING_VARIANT
|
|
8
|
-
export declare const
|
|
3
|
+
readonly h1: "h1";
|
|
4
|
+
readonly h2: "h2";
|
|
5
|
+
readonly h3: "h3";
|
|
6
|
+
};
|
|
7
|
+
export type HeadingVariant = keyof typeof HEADING_VARIANT;
|
|
8
|
+
export declare const headingVariantStyles: Record<HeadingVariant, string>;
|
|
9
9
|
export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
label?: string;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
variant?: HeadingVariant;
|
|
13
|
+
bold?: boolean;
|
|
14
|
+
className?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const Heading: import('react').ForwardRefExoticComponent<
|
|
17
|
-
HeadingProps & import('react').RefAttributes<HTMLHeadingElement>
|
|
18
|
-
>
|
|
16
|
+
export declare const Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react'
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
export declare const INPUT_VARIANT: {
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export type InputVariant = keyof typeof INPUT_VARIANT
|
|
6
|
-
export declare const inputVariant: Record<InputVariant, string
|
|
3
|
+
readonly DEFAULT: "default";
|
|
4
|
+
};
|
|
5
|
+
export type InputVariant = keyof typeof INPUT_VARIANT;
|
|
6
|
+
export declare const inputVariant: Record<InputVariant, string>;
|
|
7
7
|
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
name?: string
|
|
16
|
-
type?: string
|
|
17
|
-
id: string
|
|
18
|
-
supportingText?: string
|
|
19
|
-
isRequired?: boolean
|
|
20
|
-
customClasses?: string
|
|
8
|
+
label?: string;
|
|
9
|
+
variant?: InputVariant;
|
|
10
|
+
isError?: boolean;
|
|
11
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
value?: string | number | string[];
|
|
13
|
+
supportingText?: string;
|
|
14
|
+
className?: string;
|
|
21
15
|
}
|
|
22
|
-
export declare const Input: import('react').ForwardRefExoticComponent<
|
|
23
|
-
InputProps & import('react').RefAttributes<HTMLInputElement>
|
|
24
|
-
>
|
|
16
|
+
export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, InputHTMLAttributes } from 'react';
|
|
2
2
|
export declare const RADIO_VARIANT: {
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export type RadioVariant = keyof typeof RADIO_VARIANT
|
|
6
|
-
export declare const radioboxVariant: Record<RadioVariant, string
|
|
3
|
+
readonly DEFAULT: "primary";
|
|
4
|
+
};
|
|
5
|
+
export type RadioVariant = keyof typeof RADIO_VARIANT;
|
|
6
|
+
export declare const radioboxVariant: Record<RadioVariant, string>;
|
|
7
7
|
export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
isError?: boolean
|
|
13
|
-
isRequired?: boolean
|
|
14
|
-
checked?: boolean
|
|
15
|
-
onChange?: ChangeEventHandler<HTMLInputElement>
|
|
16
|
-
id?: string
|
|
17
|
-
readOnly?: boolean
|
|
8
|
+
label: string;
|
|
9
|
+
variant?: RadioVariant;
|
|
10
|
+
isError?: boolean;
|
|
11
|
+
id?: string;
|
|
18
12
|
}
|
|
19
|
-
export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement
|
|
13
|
+
export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LiHTMLAttributes } from 'react';
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const SELECT_ITEM_VARIANT: {
|
|
7
|
+
DEFAULT: string;
|
|
8
|
+
GREY: string;
|
|
9
|
+
};
|
|
10
|
+
export type SelectItemVariant = keyof typeof SELECT_ITEM_VARIANT;
|
|
11
|
+
export interface SelectItemProps extends LiHTMLAttributes<HTMLLIElement> {
|
|
12
|
+
option: SelectOption;
|
|
13
|
+
isActive?: boolean;
|
|
14
|
+
onSelectionChange: (option: SelectOption) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
withCheckbox?: boolean;
|
|
17
|
+
variant?: SelectItemVariant;
|
|
18
|
+
}
|
|
19
|
+
export declare const SelectItem: ({ option, isActive, className, onSelectionChange, withCheckbox, variant, ...props }: SelectItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface SliderProps {
|
|
2
|
+
min: number;
|
|
3
|
+
max: number;
|
|
4
|
+
step?: number;
|
|
5
|
+
value?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onChange?: (value: number) => void;
|
|
8
|
+
trackColor?: string;
|
|
9
|
+
thumbColor?: string;
|
|
10
|
+
percentage?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Slider: ({ min, max, step, value, disabled, onChange, trackColor, thumbColor, percentage, }: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react'
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export declare const TEXT_VARIANT: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
readonly DEFAULT: "default";
|
|
4
|
+
readonly LARGE: "large";
|
|
5
|
+
readonly SMALL: "small";
|
|
6
|
+
readonly BUTTON: "button";
|
|
7
|
+
readonly TAB: "tab";
|
|
8
|
+
};
|
|
9
|
+
export type TextVariant = keyof typeof TEXT_VARIANT;
|
|
10
|
+
export declare const textVariantClasses: Record<TextVariant, string>;
|
|
7
11
|
export interface TextProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
text?: string;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
bold?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
variant?: TextVariant;
|
|
18
|
+
isDisabled?: boolean;
|
|
14
19
|
}
|
|
15
|
-
export declare const Text: import('react').ForwardRefExoticComponent<
|
|
16
|
-
TextProps & import('react').RefAttributes<HTMLParagraphElement>
|
|
17
|
-
>
|
|
20
|
+
export declare const Text: import('react').ForwardRefExoticComponent<TextProps & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import { TextareaHTMLAttributes, ReactNode } from 'react'
|
|
1
|
+
import { TextareaHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export declare const TEXTAREA_VARIANT: {
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export type Textarea = keyof typeof TEXTAREA_VARIANT
|
|
6
|
-
export declare const textarea: Record<Textarea, string
|
|
3
|
+
readonly DEFAULT: "default";
|
|
4
|
+
};
|
|
5
|
+
export type Textarea = keyof typeof TEXTAREA_VARIANT;
|
|
6
|
+
export declare const textarea: Record<Textarea, string>;
|
|
7
7
|
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
defaultValue?: string
|
|
16
|
-
isRequired?: boolean
|
|
17
|
-
supportingText?: string
|
|
18
|
-
id: string
|
|
19
|
-
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void
|
|
8
|
+
label?: string;
|
|
9
|
+
variant?: Textarea;
|
|
10
|
+
isError?: boolean;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
supportingText?: string;
|
|
14
|
+
id: string;
|
|
20
15
|
}
|
|
21
|
-
export declare const Textarea: import('react').ForwardRefExoticComponent<
|
|
22
|
-
TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>
|
|
23
|
-
>
|
|
16
|
+
export declare const Textarea: import('react').ForwardRefExoticComponent<TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
export * from './Button/Button'
|
|
2
|
-
export * from './Input/Input'
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './Modal/Modal'
|
|
13
|
-
export * from './Heading/Heading'
|
|
1
|
+
export * from './Button/Button';
|
|
2
|
+
export * from './Input/Input';
|
|
3
|
+
export * from './Checkbox/Checkbox';
|
|
4
|
+
export * from './FilterChip/FilterChip';
|
|
5
|
+
export * from './Radio/Radio';
|
|
6
|
+
export * from './Slider/Slider';
|
|
7
|
+
export * from './Text/Text';
|
|
8
|
+
export * from './Textarea/Textarea';
|
|
9
|
+
export * from './Heading/Heading';
|
|
10
|
+
export * from './InfoText/InfoText';
|
|
11
|
+
export * from './Link/Link';
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react'
|
|
2
|
-
import { IconName } from '../iconMapping'
|
|
3
|
-
export declare const ICON_VARIANT: {
|
|
4
|
-
readonly DEFAULT: 'default'
|
|
5
|
-
}
|
|
6
|
-
export type IconVariant = keyof typeof ICON_VARIANT
|
|
7
|
-
export declare const iconVariant: Record<IconVariant, string>
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { IconName } from '../iconMapping';
|
|
8
3
|
export interface IconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
iconColor?: string
|
|
4
|
+
name: IconName;
|
|
5
|
+
isIconSolid?: boolean;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
iconColor?: string;
|
|
14
8
|
}
|
|
15
|
-
export declare const Icon: import('react').ForwardRefExoticComponent<
|
|
16
|
-
IconProps & import('react').RefAttributes<HTMLSpanElement>
|
|
17
|
-
>
|
|
9
|
+
export declare const Icon: import('react').ForwardRefExoticComponent<IconProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|