rds-ui-system 2.0.8-staging.4 → 2.0.9
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/package.json +1 -1
- package/dist/images/legend.png +0 -0
- package/dist/index.d.ts +0 -1
- package/dist/lib/components/atoms/Accordion/Accordion.d.ts +0 -18
- package/dist/lib/components/atoms/Box/Box.d.ts +0 -12
- package/dist/lib/components/atoms/Button/Button.d.ts +0 -39
- package/dist/lib/components/atoms/Checkbox/Checkbox.d.ts +0 -29
- package/dist/lib/components/atoms/FilterChip/FilterChip.d.ts +0 -18
- package/dist/lib/components/atoms/Heading/Heading.d.ts +0 -22
- package/dist/lib/components/atoms/Input/Input.d.ts +0 -34
- package/dist/lib/components/atoms/Modal/Modal.d.ts +0 -21
- package/dist/lib/components/atoms/MultiSelect/MultiSelect.d.ts +0 -24
- package/dist/lib/components/atoms/Radio/Radio.d.ts +0 -29
- package/dist/lib/components/atoms/Select/Select.d.ts +0 -27
- package/dist/lib/components/atoms/Text/Text.d.ts +0 -26
- package/dist/lib/components/atoms/Textarea/Textarea.d.ts +0 -33
- package/dist/lib/components/atoms/index.d.ts +0 -13
- package/dist/lib/components/icons/Icon/Icon.d.ts +0 -14
- package/dist/lib/components/icons/iconMapping.d.ts +0 -2
- package/dist/lib/components/icons/index.d.ts +0 -1
- package/dist/lib/components/index.d.ts +0 -4
- package/dist/lib/components/molecules/index.d.ts +0 -1
- package/dist/lib/components/molecules/ml-banner/index.d.ts +0 -1
- package/dist/lib/components/organisms/Filter/Filter.d.ts +0 -6
- package/dist/lib/components/organisms/index.d.ts +0 -2
- package/dist/lib/components/organisms/or-footer/index.d.ts +0 -1
- package/dist/lib/index.d.ts +0 -1
- package/dist/rds-ui-system.es.js +0 -3966
- package/dist/rds-ui-system.umd.js +0 -3836
- package/dist/style.css +0 -995
package/package.json
CHANGED
package/dist/images/legend.png
DELETED
|
Binary file
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/index'
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes } from 'react'
|
|
2
|
-
export declare const ACCORDION_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'default'
|
|
4
|
-
}
|
|
5
|
-
export type AccordionVariant = keyof typeof ACCORDION_VARIANT
|
|
6
|
-
export declare const accordionVariant: Record<AccordionVariant, string>
|
|
7
|
-
export interface AccordionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
-
options?: any
|
|
9
|
-
selectedCatOptions?: any
|
|
10
|
-
setSelectedCatOptions?: any
|
|
11
|
-
variant?: AccordionVariant
|
|
12
|
-
}
|
|
13
|
-
export declare const Accordion: ({
|
|
14
|
-
options,
|
|
15
|
-
selectedCatOptions,
|
|
16
|
-
setSelectedCatOptions,
|
|
17
|
-
variant,
|
|
18
|
-
}: AccordionProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, ReactNode } from 'react'
|
|
2
|
-
export declare const BOX_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'default'
|
|
4
|
-
}
|
|
5
|
-
export type BoxVariant = keyof typeof BOX_VARIANT
|
|
6
|
-
export declare const boxVariant: Record<BoxVariant, string>
|
|
7
|
-
export interface BoxProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
-
children?: ReactNode
|
|
9
|
-
variant?: BoxVariant
|
|
10
|
-
isDisabled?: boolean
|
|
11
|
-
}
|
|
12
|
-
export declare const Box: ({ variant, isDisabled, children }: BoxProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, MouseEventHandler, ReactNode } from 'react'
|
|
2
|
-
import { IconMapping } from '../../icons/iconMapping'
|
|
3
|
-
export declare const BUTTON_VARIANT: {
|
|
4
|
-
readonly DEFAULT: 'default'
|
|
5
|
-
readonly HOVERED: 'hovered'
|
|
6
|
-
readonly FOCUSED: 'focused'
|
|
7
|
-
readonly PRESSED: 'pressed'
|
|
8
|
-
readonly ICON: 'icon'
|
|
9
|
-
readonly ICONPLUS: 'iconplus'
|
|
10
|
-
readonly OUTLINED: 'outlined'
|
|
11
|
-
}
|
|
12
|
-
export type ButtonVariant = keyof typeof BUTTON_VARIANT
|
|
13
|
-
export declare const ICONBUTTON_VARIANT: {
|
|
14
|
-
readonly DEFAULT: 'default'
|
|
15
|
-
}
|
|
16
|
-
export type IconButtonVariant = keyof typeof ICONBUTTON_VARIANT
|
|
17
|
-
export declare const buttonVariant: Record<ButtonVariant, string>
|
|
18
|
-
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
19
|
-
label?: string
|
|
20
|
-
variant?: ButtonVariant
|
|
21
|
-
isDisabled?: boolean
|
|
22
|
-
isOutlined?: boolean
|
|
23
|
-
onClick?: MouseEventHandler<HTMLButtonElement>
|
|
24
|
-
children?: ReactNode
|
|
25
|
-
type: 'button' | 'reset' | 'submit' | undefined
|
|
26
|
-
customClasses?: string
|
|
27
|
-
iconName?: IconMapping
|
|
28
|
-
}
|
|
29
|
-
export declare const Button: ({
|
|
30
|
-
label,
|
|
31
|
-
variant,
|
|
32
|
-
isDisabled,
|
|
33
|
-
isOutlined,
|
|
34
|
-
onClick,
|
|
35
|
-
children,
|
|
36
|
-
type,
|
|
37
|
-
customClasses,
|
|
38
|
-
iconName,
|
|
39
|
-
}: ButtonProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ChangeEventHandler } from 'react'
|
|
2
|
-
export declare const CHECKBOX_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'primary'
|
|
4
|
-
}
|
|
5
|
-
export type CheckboxVariant = keyof typeof CHECKBOX_VARIANT
|
|
6
|
-
export declare const checkboxVariant: Record<CheckboxVariant, string>
|
|
7
|
-
export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
8
|
-
label?: string
|
|
9
|
-
placeholder?: string
|
|
10
|
-
variant?: CheckboxVariant
|
|
11
|
-
isDisabled?: boolean
|
|
12
|
-
isError?: boolean
|
|
13
|
-
isRequired?: boolean
|
|
14
|
-
checked?: boolean
|
|
15
|
-
onChange?: ChangeEventHandler<HTMLInputElement>
|
|
16
|
-
id: string
|
|
17
|
-
readOnly?: boolean
|
|
18
|
-
}
|
|
19
|
-
export declare const Checkbox: ({
|
|
20
|
-
placeholder,
|
|
21
|
-
label,
|
|
22
|
-
isDisabled,
|
|
23
|
-
isError,
|
|
24
|
-
isRequired,
|
|
25
|
-
onChange,
|
|
26
|
-
checked,
|
|
27
|
-
id,
|
|
28
|
-
readOnly,
|
|
29
|
-
}: CheckboxProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, MouseEventHandler } from 'react'
|
|
2
|
-
export declare const FILTERCHIP_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'default'
|
|
4
|
-
}
|
|
5
|
-
export type FilterChipVariant = keyof typeof FILTERCHIP_VARIANT
|
|
6
|
-
export declare const filterChipVariant: Record<FilterChipVariant, string>
|
|
7
|
-
export interface FilterChipProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
-
label: string
|
|
9
|
-
isDisabled?: boolean
|
|
10
|
-
variant?: FilterChipVariant
|
|
11
|
-
onClick?: MouseEventHandler<HTMLButtonElement>
|
|
12
|
-
}
|
|
13
|
-
export declare const FilterChip: ({
|
|
14
|
-
label,
|
|
15
|
-
isDisabled,
|
|
16
|
-
variant,
|
|
17
|
-
onClick,
|
|
18
|
-
}: FilterChipProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, ReactNode } from 'react'
|
|
2
|
-
export declare const HEADING_VARIANT: {
|
|
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 headingVariant: Record<HeadingVariant, string>
|
|
9
|
-
export interface HeadingProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
10
|
-
label?: string
|
|
11
|
-
children?: ReactNode
|
|
12
|
-
variant?: HeadingVariant
|
|
13
|
-
bold?: boolean
|
|
14
|
-
customClasses?: string
|
|
15
|
-
}
|
|
16
|
-
export declare const Heading: ({
|
|
17
|
-
variant,
|
|
18
|
-
children,
|
|
19
|
-
bold,
|
|
20
|
-
label,
|
|
21
|
-
customClasses,
|
|
22
|
-
}: HeadingProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react'
|
|
2
|
-
export declare const INPUT_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'default'
|
|
4
|
-
}
|
|
5
|
-
export type InputVariant = keyof typeof INPUT_VARIANT
|
|
6
|
-
export declare const inputVariant: Record<InputVariant, string>
|
|
7
|
-
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
8
|
-
label?: string
|
|
9
|
-
placeholder?: string
|
|
10
|
-
variant?: InputVariant
|
|
11
|
-
isDisabled?: boolean
|
|
12
|
-
isError?: boolean
|
|
13
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void
|
|
14
|
-
value?: string | number | string[]
|
|
15
|
-
name?: string
|
|
16
|
-
type?: string
|
|
17
|
-
id: string
|
|
18
|
-
supportingText?: string
|
|
19
|
-
isRequired?: boolean
|
|
20
|
-
}
|
|
21
|
-
export declare const Input: ({
|
|
22
|
-
placeholder,
|
|
23
|
-
label,
|
|
24
|
-
variant,
|
|
25
|
-
isDisabled,
|
|
26
|
-
isError,
|
|
27
|
-
onChange,
|
|
28
|
-
value: propValue,
|
|
29
|
-
name,
|
|
30
|
-
type,
|
|
31
|
-
id,
|
|
32
|
-
supportingText,
|
|
33
|
-
isRequired,
|
|
34
|
-
}: InputProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, ReactNode } from 'react'
|
|
2
|
-
export declare const MODAL_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'default'
|
|
4
|
-
}
|
|
5
|
-
export type ModalVariant = keyof typeof MODAL_VARIANT
|
|
6
|
-
export interface ModalProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
|
-
children?: ReactNode
|
|
8
|
-
variant?: ModalVariant
|
|
9
|
-
isDisabled?: boolean
|
|
10
|
-
customWidth?: boolean
|
|
11
|
-
width?: string
|
|
12
|
-
onClick?: () => void
|
|
13
|
-
}
|
|
14
|
-
export declare const Modal: ({
|
|
15
|
-
variant,
|
|
16
|
-
isDisabled,
|
|
17
|
-
children,
|
|
18
|
-
customWidth,
|
|
19
|
-
onClick,
|
|
20
|
-
width,
|
|
21
|
-
}: ModalProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SelectHTMLAttributes } from 'react'
|
|
2
|
-
export declare const MULTISELECT_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'default'
|
|
4
|
-
}
|
|
5
|
-
export type MultiSelectVariant = keyof typeof MULTISELECT_VARIANT
|
|
6
|
-
export declare const multiSelectVariant: Record<MultiSelectVariant, string>
|
|
7
|
-
export interface MultiSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
8
|
-
id?: string
|
|
9
|
-
selectedOptions?: any
|
|
10
|
-
onSelectionChange: (selectedOption: any) => void
|
|
11
|
-
options?: any
|
|
12
|
-
isDisabled?: boolean
|
|
13
|
-
label?: string
|
|
14
|
-
variant?: MultiSelectVariant
|
|
15
|
-
}
|
|
16
|
-
export declare const MultiSelect: ({
|
|
17
|
-
id,
|
|
18
|
-
selectedOptions,
|
|
19
|
-
onSelectionChange,
|
|
20
|
-
options,
|
|
21
|
-
isDisabled,
|
|
22
|
-
label,
|
|
23
|
-
variant,
|
|
24
|
-
}: MultiSelectProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ChangeEventHandler } from 'react'
|
|
2
|
-
export declare const RADIO_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'primary'
|
|
4
|
-
}
|
|
5
|
-
export type RadioVariant = keyof typeof RADIO_VARIANT
|
|
6
|
-
export declare const radioboxVariant: Record<RadioVariant, string>
|
|
7
|
-
export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
8
|
-
label?: string
|
|
9
|
-
placeholder?: string
|
|
10
|
-
variant?: RadioVariant
|
|
11
|
-
isDisabled?: boolean
|
|
12
|
-
isError?: boolean
|
|
13
|
-
isRequired?: boolean
|
|
14
|
-
checked?: boolean
|
|
15
|
-
onChange?: ChangeEventHandler<HTMLInputElement>
|
|
16
|
-
id?: string
|
|
17
|
-
readOnly?: boolean
|
|
18
|
-
}
|
|
19
|
-
export declare const Radio: ({
|
|
20
|
-
placeholder,
|
|
21
|
-
label,
|
|
22
|
-
isDisabled,
|
|
23
|
-
isError,
|
|
24
|
-
isRequired,
|
|
25
|
-
onChange,
|
|
26
|
-
checked,
|
|
27
|
-
id,
|
|
28
|
-
readOnly,
|
|
29
|
-
}: RadioProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SelectHTMLAttributes } from 'react'
|
|
2
|
-
export declare const SELECT_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'default'
|
|
4
|
-
}
|
|
5
|
-
export type SelectVariant = keyof typeof SELECT_VARIANT
|
|
6
|
-
export declare const selectVariant: Record<SelectVariant, string>
|
|
7
|
-
export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
8
|
-
id: string
|
|
9
|
-
options?: any[]
|
|
10
|
-
selectedOptions?: any
|
|
11
|
-
onSelectionChange: (selectedOption: any) => void
|
|
12
|
-
label?: string
|
|
13
|
-
prepopulatedId?: any
|
|
14
|
-
boxText?: string
|
|
15
|
-
isDisabled?: boolean
|
|
16
|
-
variant?: SelectVariant
|
|
17
|
-
}
|
|
18
|
-
export declare const Select: ({
|
|
19
|
-
id,
|
|
20
|
-
options,
|
|
21
|
-
selectedOptions,
|
|
22
|
-
onSelectionChange,
|
|
23
|
-
label,
|
|
24
|
-
prepopulatedId,
|
|
25
|
-
boxText,
|
|
26
|
-
isDisabled,
|
|
27
|
-
}: SelectProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react'
|
|
2
|
-
export declare const TEXT_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'default'
|
|
4
|
-
readonly IMPORTANT: 'important'
|
|
5
|
-
readonly SMALL: 'small'
|
|
6
|
-
}
|
|
7
|
-
export type TextVariant = keyof typeof TEXT_VARIANT
|
|
8
|
-
export declare const textVariant: Record<TextVariant, string>
|
|
9
|
-
export interface TextProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
10
|
-
text?: string
|
|
11
|
-
children?: ReactNode
|
|
12
|
-
variant?: TextVariant
|
|
13
|
-
isDisabled?: boolean
|
|
14
|
-
bold?: boolean
|
|
15
|
-
small?: boolean
|
|
16
|
-
important?: boolean
|
|
17
|
-
}
|
|
18
|
-
export declare const Text: ({
|
|
19
|
-
variant,
|
|
20
|
-
isDisabled,
|
|
21
|
-
text,
|
|
22
|
-
children,
|
|
23
|
-
bold,
|
|
24
|
-
small,
|
|
25
|
-
important,
|
|
26
|
-
}: TextProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { TextareaHTMLAttributes, ReactNode } from 'react'
|
|
2
|
-
export declare const TEXTAREA_VARIANT: {
|
|
3
|
-
readonly DEFAULT: 'default'
|
|
4
|
-
}
|
|
5
|
-
export type Textarea = keyof typeof TEXTAREA_VARIANT
|
|
6
|
-
export declare const textarea: Record<Textarea, string>
|
|
7
|
-
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement | HTMLLabelElement> {
|
|
8
|
-
value?: string
|
|
9
|
-
label?: string
|
|
10
|
-
placeholder?: string
|
|
11
|
-
variant?: Textarea
|
|
12
|
-
isDisabled?: boolean
|
|
13
|
-
isError?: boolean
|
|
14
|
-
children?: ReactNode
|
|
15
|
-
defaultValue?: string
|
|
16
|
-
isRequired?: boolean
|
|
17
|
-
supportingText?: string
|
|
18
|
-
id: string
|
|
19
|
-
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void
|
|
20
|
-
}
|
|
21
|
-
export declare const Textarea: ({
|
|
22
|
-
value,
|
|
23
|
-
placeholder,
|
|
24
|
-
label,
|
|
25
|
-
variant,
|
|
26
|
-
isDisabled,
|
|
27
|
-
isError,
|
|
28
|
-
defaultValue,
|
|
29
|
-
isRequired,
|
|
30
|
-
onChange,
|
|
31
|
-
supportingText,
|
|
32
|
-
id,
|
|
33
|
-
}: TextareaProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './Button/Button'
|
|
2
|
-
export * from './Input/Input'
|
|
3
|
-
export * from './Accordion/Accordion'
|
|
4
|
-
export * from './Checkbox/Checkbox'
|
|
5
|
-
export * from './FilterChip/FilterChip'
|
|
6
|
-
export * from './Radio/Radio'
|
|
7
|
-
export * from './Select/Select'
|
|
8
|
-
export * from './MultiSelect/MultiSelect'
|
|
9
|
-
export * from './Text/Text'
|
|
10
|
-
export * from './Textarea/Textarea'
|
|
11
|
-
export * from './Box/Box'
|
|
12
|
-
export * from './Modal/Modal'
|
|
13
|
-
export * from './Heading/Heading'
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HTMLProps } from 'react'
|
|
2
|
-
import { IconMapping } 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>
|
|
8
|
-
export interface IconProps extends HTMLProps<HTMLSpanElement> {
|
|
9
|
-
name: IconMapping
|
|
10
|
-
variant?: IconVariant
|
|
11
|
-
isOutlined?: boolean
|
|
12
|
-
isDisabled?: boolean
|
|
13
|
-
}
|
|
14
|
-
export declare const Icon: ({ name, isOutlined, isDisabled }: IconProps) => import('react/jsx-runtime').JSX.Element
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Icon/Icon'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ml-banner'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MlBanner: () => import('react/jsx-runtime').JSX.Element
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const OrFooter: () => import('react/jsx-runtime').JSX.Element
|
package/dist/lib/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components'
|