rds-ui-system 2.2.0 → 2.3.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 CHANGED
@@ -1,7 +1,8 @@
1
1
  # Remondis UI Library
2
2
 
3
3
  ## Preview on vercel
4
- https://rds-ui-system-react.vercel.app/
4
+
5
+ https://storybook.remondis.io/
5
6
 
6
7
  ## Features
7
8
 
@@ -1,12 +1,14 @@
1
- import { ButtonHTMLAttributes, ReactNode } from 'react'
1
+ import { HTMLAttributes, ReactNode } from 'react'
2
2
  export declare const BOX_VARIANT: {
3
3
  readonly DEFAULT: 'default'
4
4
  }
5
5
  export type BoxVariant = keyof typeof BOX_VARIANT
6
6
  export declare const boxVariant: Record<BoxVariant, string>
7
- export interface BoxProps extends ButtonHTMLAttributes<HTMLButtonElement> {
7
+ export interface BoxProps extends HTMLAttributes<HTMLDivElement> {
8
8
  children?: ReactNode
9
9
  variant?: BoxVariant
10
10
  isDisabled?: boolean
11
11
  }
12
- export declare const Box: ({ variant, isDisabled, children }: BoxProps) => import('react/jsx-runtime').JSX.Element
12
+ export declare const Box: import('react').ForwardRefExoticComponent<
13
+ BoxProps & import('react').RefAttributes<HTMLDivElement>
14
+ >
@@ -1,5 +1,5 @@
1
1
  import { ButtonHTMLAttributes, MouseEventHandler, ReactNode } from 'react'
2
- import { IconMapping } from '../../icons/iconMapping'
2
+ import { IconName } from '../../icons/iconMapping'
3
3
  export declare const BUTTON_VARIANT: {
4
4
  readonly DEFAULT: 'default'
5
5
  readonly HOVERED: 'hovered'
@@ -10,10 +10,6 @@ export declare const BUTTON_VARIANT: {
10
10
  readonly OUTLINED: 'outlined'
11
11
  }
12
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
13
  export declare const buttonVariant: Record<ButtonVariant, string>
18
14
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
19
15
  label?: string
@@ -22,18 +18,12 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
22
18
  isOutlined?: boolean
23
19
  onClick?: MouseEventHandler<HTMLButtonElement>
24
20
  children?: ReactNode
25
- type: 'button' | 'reset' | 'submit' | undefined
26
21
  customClasses?: string
27
- iconName?: IconMapping
22
+ name?: IconName
23
+ bgFillColor?: string
24
+ iconColor?: string
25
+ textColor?: string
28
26
  }
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
27
+ export declare const Button: import('react').ForwardRefExoticComponent<
28
+ ButtonProps & import('react').RefAttributes<HTMLButtonElement>
29
+ >
@@ -15,15 +15,8 @@ export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
15
15
  onChange?: ChangeEventHandler<HTMLInputElement>
16
16
  id: string
17
17
  readOnly?: boolean
18
+ value?: any
18
19
  }
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
20
+ export declare const Checkbox: import('react').ForwardRefExoticComponent<
21
+ CheckboxProps & import('react').RefAttributes<HTMLInputElement>
22
+ >
@@ -9,10 +9,9 @@ export interface FilterChipProps extends ButtonHTMLAttributes<HTMLButtonElement>
9
9
  isDisabled?: boolean
10
10
  variant?: FilterChipVariant
11
11
  onClick?: MouseEventHandler<HTMLButtonElement>
12
+ bgFillColor?: string
13
+ textColor?: string
12
14
  }
13
- export declare const FilterChip: ({
14
- label,
15
- isDisabled,
16
- variant,
17
- onClick,
18
- }: FilterChipProps) => import('react/jsx-runtime').JSX.Element
15
+ export declare const FilterChip: import('react').ForwardRefExoticComponent<
16
+ FilterChipProps & import('react').RefAttributes<HTMLButtonElement>
17
+ >
@@ -1,4 +1,4 @@
1
- import { ButtonHTMLAttributes, ReactNode } from 'react'
1
+ import { HTMLAttributes, ReactNode } from 'react'
2
2
  export declare const HEADING_VARIANT: {
3
3
  readonly h1: 'h1'
4
4
  readonly h2: 'h2'
@@ -6,17 +6,13 @@ export declare const HEADING_VARIANT: {
6
6
  }
7
7
  export type HeadingVariant = keyof typeof HEADING_VARIANT
8
8
  export declare const headingVariant: Record<HeadingVariant, string>
9
- export interface HeadingProps extends ButtonHTMLAttributes<HTMLButtonElement> {
9
+ export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
10
10
  label?: string
11
11
  children?: ReactNode
12
12
  variant?: HeadingVariant
13
13
  bold?: boolean
14
14
  customClasses?: string
15
15
  }
16
- export declare const Heading: ({
17
- variant,
18
- children,
19
- bold,
20
- label,
21
- customClasses,
22
- }: HeadingProps) => import('react/jsx-runtime').JSX.Element
16
+ export declare const Heading: import('react').ForwardRefExoticComponent<
17
+ HeadingProps & import('react').RefAttributes<HTMLHeadingElement>
18
+ >
@@ -17,18 +17,8 @@ export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
17
17
  id: string
18
18
  supportingText?: string
19
19
  isRequired?: boolean
20
+ customClasses?: string
20
21
  }
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
22
+ export declare const Input: import('react').ForwardRefExoticComponent<
23
+ InputProps & import('react').RefAttributes<HTMLInputElement>
24
+ >
@@ -12,10 +12,6 @@ export interface ModalProps extends ButtonHTMLAttributes<HTMLButtonElement> {
12
12
  onClick?: () => void
13
13
  customClasses?: string
14
14
  }
15
- export declare const Modal: ({
16
- children,
17
- onClick,
18
- width,
19
- height,
20
- customClasses,
21
- }: ModalProps) => import('react/jsx-runtime').JSX.Element
15
+ export declare const Modal: import('react').ForwardRefExoticComponent<
16
+ ModalProps & import('react').RefAttributes<HTMLDivElement>
17
+ >
@@ -1,10 +1,10 @@
1
- import { SelectHTMLAttributes } from 'react'
1
+ import { HTMLAttributes } from 'react'
2
2
  export declare const MULTISELECT_VARIANT: {
3
3
  readonly DEFAULT: 'default'
4
4
  }
5
5
  export type MultiSelectVariant = keyof typeof MULTISELECT_VARIANT
6
6
  export declare const multiSelectVariant: Record<MultiSelectVariant, string>
7
- export interface MultiSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
7
+ export interface MultiSelectProps extends HTMLAttributes<HTMLDivElement> {
8
8
  id?: string
9
9
  selectedOptions?: any
10
10
  onSelectionChange: (selectedOption: any) => void
@@ -13,12 +13,6 @@ export interface MultiSelectProps extends SelectHTMLAttributes<HTMLSelectElement
13
13
  label?: string
14
14
  variant?: MultiSelectVariant
15
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
16
+ export declare const MultiSelect: import('react').ForwardRefExoticComponent<
17
+ MultiSelectProps & import('react').RefAttributes<HTMLDivElement>
18
+ >
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes, ChangeEventHandler } from 'react'
1
+ import React, { InputHTMLAttributes, ChangeEventHandler } from 'react'
2
2
  export declare const RADIO_VARIANT: {
3
3
  readonly DEFAULT: 'primary'
4
4
  }
@@ -16,14 +16,4 @@ export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
16
16
  id?: string
17
17
  readOnly?: boolean
18
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
19
+ export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>
@@ -1,10 +1,10 @@
1
- import { SelectHTMLAttributes } from 'react'
1
+ import { HTMLAttributes } from 'react'
2
2
  export declare const SELECT_VARIANT: {
3
3
  readonly DEFAULT: 'default'
4
4
  }
5
5
  export type SelectVariant = keyof typeof SELECT_VARIANT
6
6
  export declare const selectVariant: Record<SelectVariant, string>
7
- export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
7
+ export interface SelectProps extends HTMLAttributes<HTMLDivElement> {
8
8
  id: string
9
9
  options?: any[]
10
10
  selectedOptions?: any
@@ -16,14 +16,6 @@ export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
16
16
  variant?: SelectVariant
17
17
  topPull?: boolean
18
18
  }
19
- export declare const Select: ({
20
- id,
21
- options,
22
- selectedOptions,
23
- onSelectionChange,
24
- label,
25
- prepopulatedId,
26
- boxText,
27
- isDisabled,
28
- topPull,
29
- }: SelectProps) => import('react/jsx-runtime').JSX.Element
19
+ export declare const Select: import('react').ForwardRefExoticComponent<
20
+ SelectProps & import('react').RefAttributes<HTMLDivElement>
21
+ >
@@ -1,30 +1,17 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react'
2
2
  export declare const TEXT_VARIANT: {
3
3
  readonly DEFAULT: 'default'
4
- readonly IMPORTANT: 'important'
5
- readonly SMALL: 'small'
6
4
  }
7
5
  export type TextVariant = keyof typeof TEXT_VARIANT
8
6
  export declare const textVariant: Record<TextVariant, string>
9
7
  export interface TextProps extends HTMLAttributes<HTMLParagraphElement> {
10
8
  text?: string
11
9
  children?: ReactNode
12
- variant?: TextVariant
13
10
  isDisabled?: boolean
14
11
  bold?: boolean
15
- small?: boolean
16
- important?: boolean
17
12
  customClasses?: string
18
13
  title?: string
19
14
  }
20
- export declare const Text: ({
21
- variant,
22
- isDisabled,
23
- text,
24
- children,
25
- bold,
26
- small,
27
- important,
28
- customClasses,
29
- title,
30
- }: TextProps) => import('react/jsx-runtime').JSX.Element
15
+ export declare const Text: import('react').ForwardRefExoticComponent<
16
+ TextProps & import('react').RefAttributes<HTMLParagraphElement>
17
+ >
@@ -4,7 +4,7 @@ export declare const TEXTAREA_VARIANT: {
4
4
  }
5
5
  export type Textarea = keyof typeof TEXTAREA_VARIANT
6
6
  export declare const textarea: Record<Textarea, string>
7
- export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement | HTMLLabelElement> {
7
+ export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
8
8
  value?: string
9
9
  label?: string
10
10
  placeholder?: string
@@ -18,16 +18,6 @@ export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElemen
18
18
  id: string
19
19
  onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void
20
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
21
+ export declare const Textarea: import('react').ForwardRefExoticComponent<
22
+ TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>
23
+ >
@@ -1,14 +1,17 @@
1
- import { HTMLProps } from 'react'
2
- import { IconMapping } from '../iconMapping'
1
+ import { HTMLAttributes } from 'react'
2
+ import { IconName } from '../iconMapping'
3
3
  export declare const ICON_VARIANT: {
4
4
  readonly DEFAULT: 'default'
5
5
  }
6
6
  export type IconVariant = keyof typeof ICON_VARIANT
7
7
  export declare const iconVariant: Record<IconVariant, string>
8
- export interface IconProps extends HTMLProps<HTMLSpanElement> {
9
- name: IconMapping
8
+ export interface IconProps extends HTMLAttributes<HTMLSpanElement> {
9
+ name: IconName
10
10
  variant?: IconVariant
11
11
  isOutlined?: boolean
12
12
  isDisabled?: boolean
13
+ iconColor?: string
13
14
  }
14
- export declare const Icon: ({ name, isOutlined, isDisabled }: IconProps) => import('react/jsx-runtime').JSX.Element
15
+ export declare const Icon: import('react').ForwardRefExoticComponent<
16
+ IconProps & import('react').RefAttributes<HTMLSpanElement>
17
+ >
@@ -1,2 +1,228 @@
1
- export declare const iconMapping: Record<string, (isOutlined: boolean, isDisabled: boolean) => React.ReactNode>
2
- export type IconMapping = keyof typeof iconMapping
1
+ export declare const iconMapping: {
2
+ readonly Warning: (
3
+ isOutlined: boolean,
4
+ isDisabled: boolean,
5
+ bgFillColor: string,
6
+ ) => import('react/jsx-runtime').JSX.Element
7
+ readonly Error: (
8
+ isOutlined: boolean,
9
+ isDisabled: boolean,
10
+ bgFillColor: string,
11
+ ) => import('react/jsx-runtime').JSX.Element
12
+ readonly Checked: (
13
+ isOutlined: boolean,
14
+ isDisabled: boolean,
15
+ bgFillColor: string,
16
+ ) => import('react/jsx-runtime').JSX.Element
17
+ readonly Add: (
18
+ isOutlined: boolean,
19
+ isDisabled: boolean,
20
+ bgFillColor: string,
21
+ ) => import('react/jsx-runtime').JSX.Element
22
+ readonly AddBox: (
23
+ isOutlined: boolean,
24
+ isDisabled: boolean,
25
+ bgFillColor: string,
26
+ ) => import('react/jsx-runtime').JSX.Element
27
+ readonly AddCircle: (
28
+ isOutlined: boolean,
29
+ isDisabled: boolean,
30
+ bgFillColor: string,
31
+ ) => import('react/jsx-runtime').JSX.Element
32
+ readonly Remove: (
33
+ isOutlined: boolean,
34
+ isDisabled: boolean,
35
+ bgFillColor: string,
36
+ ) => import('react/jsx-runtime').JSX.Element
37
+ readonly RemoveCircle: (
38
+ isOutlined: boolean,
39
+ isDisabled: boolean,
40
+ bgFillColor: string,
41
+ ) => import('react/jsx-runtime').JSX.Element
42
+ readonly Block: (
43
+ isOutlined: boolean,
44
+ isDisabled: boolean,
45
+ bgFillColor: string,
46
+ ) => import('react/jsx-runtime').JSX.Element
47
+ readonly ContentCopy: (
48
+ isOutlined: boolean,
49
+ isDisabled: boolean,
50
+ bgFillColor: string,
51
+ ) => import('react/jsx-runtime').JSX.Element
52
+ readonly SaveAlt: (
53
+ isOutlined: boolean,
54
+ isDisabled: boolean,
55
+ bgFillColor: string,
56
+ ) => import('react/jsx-runtime').JSX.Element
57
+ readonly Unarchive: (
58
+ isOutlined: boolean,
59
+ isDisabled: boolean,
60
+ bgFillColor: string,
61
+ ) => import('react/jsx-runtime').JSX.Element
62
+ readonly MoreHoriz: (
63
+ isOutlined: boolean,
64
+ isDisabled: boolean,
65
+ bgFillColor: string,
66
+ ) => import('react/jsx-runtime').JSX.Element
67
+ readonly MoreVert: (
68
+ isOutlined: boolean,
69
+ isDisabled: boolean,
70
+ bgFillColor: string,
71
+ ) => import('react/jsx-runtime').JSX.Element
72
+ readonly Menu: (
73
+ isOutlined: boolean,
74
+ isDisabled: boolean,
75
+ bgFillColor: string,
76
+ ) => import('react/jsx-runtime').JSX.Element
77
+ readonly Refresh: (
78
+ isOutlined: boolean,
79
+ isDisabled: boolean,
80
+ bgFillColor: string,
81
+ ) => import('react/jsx-runtime').JSX.Element
82
+ readonly Move: (
83
+ isOutlined: boolean,
84
+ isDisabled: boolean,
85
+ bgFillColor: string,
86
+ ) => import('react/jsx-runtime').JSX.Element
87
+ readonly South: (
88
+ isOutlined: boolean,
89
+ isDisabled: boolean,
90
+ bgFillColor: string,
91
+ ) => import('react/jsx-runtime').JSX.Element
92
+ readonly North: (
93
+ isOutlined: boolean,
94
+ isDisabled: boolean,
95
+ bgFillColor: string,
96
+ ) => import('react/jsx-runtime').JSX.Element
97
+ readonly West: (
98
+ isOutlined: boolean,
99
+ isDisabled: boolean,
100
+ bgFillColor: string,
101
+ ) => import('react/jsx-runtime').JSX.Element
102
+ readonly ExpandMore: (
103
+ isOutlined: boolean,
104
+ isDisabled: boolean,
105
+ bgFillColor: string,
106
+ ) => import('react/jsx-runtime').JSX.Element
107
+ readonly ExpandLess: (
108
+ isOutlined: boolean,
109
+ isDisabled: boolean,
110
+ bgFillColor: string,
111
+ ) => import('react/jsx-runtime').JSX.Element
112
+ readonly Close: (
113
+ isOutlined: boolean,
114
+ isDisabled: boolean,
115
+ bgFillColor: string,
116
+ ) => import('react/jsx-runtime').JSX.Element
117
+ readonly Cancel: (
118
+ isOutlined: boolean,
119
+ isDisabled: boolean,
120
+ bgFillColor: string,
121
+ ) => import('react/jsx-runtime').JSX.Element
122
+ readonly Delete: (
123
+ isOutlined: boolean,
124
+ isDisabled: boolean,
125
+ bgFillColor: string,
126
+ ) => import('react/jsx-runtime').JSX.Element
127
+ readonly FilterAlt: (
128
+ isOutlined: boolean,
129
+ isDisabled: boolean,
130
+ bgFillColor: string,
131
+ ) => import('react/jsx-runtime').JSX.Element
132
+ readonly Edit: (
133
+ isOutlined: boolean,
134
+ isDisabled: boolean,
135
+ bgFillColor: string,
136
+ ) => import('react/jsx-runtime').JSX.Element
137
+ readonly CheckCircle: (
138
+ isOutlined: boolean,
139
+ isDisabled: boolean,
140
+ bgFillColor: string,
141
+ ) => import('react/jsx-runtime').JSX.Element
142
+ readonly CalendarToday: (
143
+ isOutlined: boolean,
144
+ isDisabled: boolean,
145
+ bgFillColor: string,
146
+ ) => import('react/jsx-runtime').JSX.Element
147
+ readonly AccountCircle: (
148
+ isOutlined: boolean,
149
+ isDisabled: boolean,
150
+ bgFillColor: string,
151
+ ) => import('react/jsx-runtime').JSX.Element
152
+ readonly Done: (
153
+ isOutlined: boolean,
154
+ isDisabled: boolean,
155
+ bgFillColor: string,
156
+ ) => import('react/jsx-runtime').JSX.Element
157
+ readonly LogIn: (
158
+ isOutlined: boolean,
159
+ isDisabled: boolean,
160
+ bgFillColor: string,
161
+ ) => import('react/jsx-runtime').JSX.Element
162
+ readonly OpenWith: (
163
+ isOutlined: boolean,
164
+ isDisabled: boolean,
165
+ bgFillColor: string,
166
+ ) => import('react/jsx-runtime').JSX.Element
167
+ readonly Search: (
168
+ isOutlined: boolean,
169
+ isDisabled: boolean,
170
+ bgFillColor: string,
171
+ ) => import('react/jsx-runtime').JSX.Element
172
+ readonly Info: (
173
+ isOutlined: boolean,
174
+ isDisabled: boolean,
175
+ bgFillColor: string,
176
+ ) => import('react/jsx-runtime').JSX.Element
177
+ readonly Help: (
178
+ isOutlined: boolean,
179
+ isDisabled: boolean,
180
+ bgFillColor: string,
181
+ ) => import('react/jsx-runtime').JSX.Element
182
+ readonly KeyboardArrowLeft: (
183
+ isOutlined: boolean,
184
+ isDisabled: boolean,
185
+ bgFillColor: string,
186
+ ) => import('react/jsx-runtime').JSX.Element
187
+ readonly KeyboardArrowRight: (
188
+ isOutlined: boolean,
189
+ isDisabled: boolean,
190
+ bgFillColor: string,
191
+ ) => import('react/jsx-runtime').JSX.Element
192
+ readonly DownloadDone: (
193
+ isOutlined: boolean,
194
+ isDisabled: boolean,
195
+ bgFillColor: string,
196
+ ) => import('react/jsx-runtime').JSX.Element
197
+ readonly Place: (
198
+ isOutlined: boolean,
199
+ isDisabled: boolean,
200
+ bgFillColor: string,
201
+ ) => import('react/jsx-runtime').JSX.Element
202
+ readonly OpenInNew: (
203
+ isOutlined: boolean,
204
+ isDisabled: boolean,
205
+ bgFillColor: string,
206
+ ) => import('react/jsx-runtime').JSX.Element
207
+ readonly Schedule: (
208
+ isOutlined: boolean,
209
+ isDisabled: boolean,
210
+ bgFillColor: string,
211
+ ) => import('react/jsx-runtime').JSX.Element
212
+ readonly ZoomIn: (
213
+ isOutlined: boolean,
214
+ isDisabled: boolean,
215
+ bgFillColor: string,
216
+ ) => import('react/jsx-runtime').JSX.Element
217
+ readonly ZoomOut: (
218
+ isOutlined: boolean,
219
+ isDisabled: boolean,
220
+ bgFillColor: string,
221
+ ) => import('react/jsx-runtime').JSX.Element
222
+ readonly Photo: (
223
+ isOutlined: boolean,
224
+ isDisabled: boolean,
225
+ bgFillColor: string,
226
+ ) => import('react/jsx-runtime').JSX.Element
227
+ }
228
+ export type IconName = keyof typeof iconMapping