@bigbinary/neetoui 3.7.0-beta.9 → 4.0.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/CHANGELOG.md CHANGED
@@ -8,6 +8,7 @@
8
8
  ** Represent a version as second level heading and write the version number inside a square bracket, eg: ## [3.3.2]
9
9
 
10
10
  --->
11
+
11
12
  # Changelog
12
13
 
13
14
  All notable changes to this project will be documented in this file.
@@ -16,17 +17,269 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
16
17
 
17
18
  Prefix the change with one of these keywords:
18
19
 
19
- - *Added*: for new features.
20
- - *Changed*: for changes in existing functionality.
21
- - *Deprecated*: for soon-to-be removed features.
22
- - *Removed*: for now removed features.
23
- - *Fixed*: for any bug fixes.
24
- - *Security*: in case of vulnerabilities.
20
+ - _Added_: for new features.
21
+ - _Changed_: for changes in existing functionality.
22
+ - _Deprecated_: for soon-to-be removed features.
23
+ - _Removed_: for now removed features.
24
+ - _Fixed_: for any bug fixes.
25
+ - _Security_: in case of vulnerabilities.
26
+
27
+ ## 4.0.0 - 2022-09-02
28
+
29
+ - Updated: Color palette
30
+ - Added: CSS variables support
31
+ - Added: Custom theming support
32
+ - Added: Default dark theme support
33
+ - Added: Design preview in Storybook
34
+ - Added: Guidelines to structure content in applications
35
+ - Changed: bundle type to `CJS`
36
+ - Fixed: delay while opening overlays
37
+ - Removed: `framer-motion` from dependencies.
38
+
39
+ ### Color palette 🎨
40
+
41
+ - Updated color naming convention
42
+ - Added CSS variables support for colors
43
+ - Implemented dynamic color palette to support default dark mode
44
+ - Served color codes as RBG numbers in CSS variables to achieve color transparency
45
+ - Enhanced contrast of status color (info, success, error, warning)
46
+ - Included existing pastel colors as the color swatches of primary, success, error, warning, and info
47
+ - Added new set of pastel colors
48
+ - Removed unused colors from the palette
49
+ - Updated utility classes to match the new variable naming
50
+ - Restructured documentation and created new documentation for color palette
51
+ - Deprecated `neeto-ui-accent1`, `neeto-ui-accent2`, `neeto-ui-accent3`, `neeto-ui-accent4` colors and utility classes
52
+ - Deprecated `neeto-ui-secondary-indigo`, `neeto-ui-secondary-green`, `neeto-ui-secondary-teal` colors and utility classes
53
+ - Deprecated `neeto-ui-pastel-teal`
54
+ - Renamed `neeto-ui-success` to `neeto-ui-success-500`
55
+ - Renamed `neeto-ui-info` to `neeto-ui-info-500`
56
+ - Renamed `neeto-ui-error` to `neeto-ui-error-500`
57
+ - Renamed `neeto-ui-warning` to `neeto-ui-warning-500`
58
+ - Renamed `neeto-ui-pastel-blue` to `neeto-ui-info-100`
59
+ - Renamed `neeto-ui-pastel-green` to `neeto-ui-success-100`
60
+ - Renamed `neeto-ui-pastel-yellow` to `neeto-ui-warning-100`
61
+ - Renamed `neeto-ui-pastel-red` to `neeto-ui-error-100`
62
+
63
+ ### Cosmetic changes 👁
64
+
65
+ #### Button
66
+
67
+ - Updated primary button color to `neeto-ui-primary-500`
68
+ - Added `:focus` rings to buttons for accessibility
69
+ - Updated `:focus-visible` styles to match the new design
70
+ - Updated border radius to `5px`
71
+ - Updated CSS transition from `all .3s ease-in-out` to `all .3s linear`
72
+ - Deprecated variants story in Storybook doc
73
+ - Created independent stories for `Styles`, `Sizes`, `Icon only` etc
74
+
75
+ #### Checkbox
76
+
77
+ - Replaced checked state icon with neetoIcon
78
+ - Updated checked state color to `neeto-ui-primary-500`
79
+ - Changed default state border color from `grey 300` to `grey 400`
80
+ - Updated `:hover` border color to `grey 500`
81
+ - Updated `:focus-visible` border color to `neeto-ui-primary-500`
82
+ - Updated focus ring styles to match `neeto-ui-primary` color
83
+ - Improved spacing in component
84
+
85
+ #### Radio
86
+
87
+ - Replaced checked state icon with neetoIcon
88
+ - Updated checked state color to `neeto-ui-primary-500`
89
+ - Changed default state border color from `grey 300` to `grey 400`
90
+ - Updated `:hover` border color to `grey 500`
91
+ - Updated `:focus-visible` border color to `neeto-ui-primary-500`
92
+ - Updated focus ring styles to match `neeto-ui-primary` color
93
+ - Improved spacing in component
94
+
95
+ #### Input
96
+
97
+ - Updated border-radius to `5px`
98
+ - Updated focus ring styles to match `neeto-ui-primary` color
99
+ - Fixed unwanted spacing in maxLength label
100
+ - Fixed alignment issues in Input with maxLength and no label text
101
+ - Fixed spacing inconsistencies in error test and helper text - used same margin value for both
102
+ - Fixed alignment issues in naked inputs
103
+ - Deprecate `variants` story in Storybook and created individual stories for `Input sizing`
104
+
105
+ #### Textarea
106
+
107
+ - Updated border-radius to `5px`
108
+ - Updated focus ring styles to match `neeto-ui-primary` color
109
+ - Fixed unwanted spacing in the maxLength label
110
+ - Fixed alignment issues in Input with maxLength and no label text
111
+ - Fix spacing inconsistencies in error test and helper text - used the same margin value for both
112
+ - Fixed alignment issues in naked inputs
113
+ - Added size prop to Textarea
114
+
115
+ #### Select
116
+
117
+ - Updated border-radius to `5px`
118
+ - Updated focus ring styles to match `neeto-ui-primary` color
119
+ - Replaced the default dropdown icons with neetoIcons
120
+ - Added CSS transition to the select options
121
+ - Applied Badge styles to Multi select items
122
+ - Replaced multivalue remove icon with neetoIcon
123
+ - Updated multivalue error styles
124
+ - Increased Story heights for better view
125
+
126
+ #### Email input
127
+
128
+ - Updated border radius to `5px`
129
+ - Updated selected values styles to match Tag styles
130
+ - Fixed prefix and suffix spacing
131
+ - Updated prefix icon size to `16px`
132
+ - Updated focus ring styles to match `neeto-ui-primary` color
133
+ - Fixed spacing issues in counter
134
+ - Fixed alignment issues in label row
135
+ - Fixed spacing inconsistencies in error test and helper text - used same margin for both
136
+ - Updated error styles of multivalue select
137
+
138
+ #### Label
139
+
140
+ - Updated label bottom margin to 8px
141
+ - Removed letter-spacing in label text
142
+
143
+ #### Dropdown & Action Dropdown
144
+
145
+ - Updated border-radius to `5px`
146
+ - Reduced the height of Dropdown options to `32px`
147
+ - Created Storybook examples with semantic markup for easy keyboard win
148
+ - Separated Delete/Remove actions with a border
149
+ - Updated `box-shadow`
150
+
151
+ #### Date Time picker
152
+
153
+ - Replaced default icons with neetoIcons
154
+ - Updated selection color to `neeto-ui-primary`
155
+ - Added border to date and time dropdown
156
+ - Updated box shadow of dropdown
157
+
158
+ #### Accordion
159
+
160
+ - Updated font weight of Accordion title to `500`
161
+ - Updated `border-radius` to `8px`
162
+
163
+ #### Avatar
164
+
165
+ - Updated background colors to new pastel colors
166
+ - Updated square variant `border-radius` to `5px`
167
+
168
+ #### Table
169
+
170
+ - Updated column title color to `grey 600`
171
+ - Updated column title font weight to 700
172
+ - Reduced cell padding from `12px 16px` to `8px 16px` to accommodate more number of row in a given height
173
+ - Removed border from pagination items
174
+ - Updated pagination buttons to match neetoUI button style
175
+ - Updated active pagination item styles to `neeto-ui-primary`
176
+ - Replaced default icons with neetoIcons
177
+
178
+ #### PageLoader
179
+
180
+ - Updated neeto logo
181
+
182
+ #### Color picker
183
+
184
+ - Added border to input
185
+
186
+ #### Alert & Modal
187
+
188
+ - Reduced outer padding from `32px ` to `24px` to provide the compact view
189
+ - Updated `border-radius` to `12px`
190
+
191
+ #### Toast
192
+
193
+ - Applied `48px` minimum height
194
+ - Applied dark theme to all variants
195
+ - Reduced text font weight to `400`
196
+
197
+ #### Tooltip
198
+
199
+ - Changed box shadow of light theme variant to `--neeto-ui-shadow-s`
200
+
201
+ #### Sidebar
202
+
203
+ - Increased width from `64px` to `72px`
204
+ - Changed background color from `neeto-ui-gray-200` to `neeto-ui-white`
205
+ - Added border on the right side
206
+ - Updated `padding-top` and `padding-bottom` to `24px`
207
+
208
+ ### Functionality changes 🛠️
209
+
210
+ #### Input
211
+
212
+ - Changed: `maxlength` prop logic to allow typing characters beyond the specified maxlength. The character count will be shown only when the input length reaches 90% of maxlength and changes the state to error when input exceeds the maxlength
213
+
214
+ #### TextArea
215
+
216
+ - Changed: `maxlength` prop logic to allow typing characters beyond the specified maxlength. Character count will be shown only when the input length reaches 90% of maxlength and changes the state to error when input exceeds the maxlength
217
+
218
+ #### Dropdown
219
+
220
+ - Changed: **BREAKING** Renamed `ulProps` prop to `dropdownProps`
221
+ - Added: `buttonSize` prop
222
+
223
+ #### ActionDropdown
224
+
225
+ - Changed: **BREAKING** Renamed `size` prop to `buttonSize`
226
+ - Changed: **BREAKING** Renamed `style` prop to `buttonStyle`
227
+
228
+ #### Tag
229
+
230
+ - Changed: **BREAKING** Renamed `style` prop to `type`
231
+ - Removed: **BREAKING** Renamed `color` and `indicatorColor` props
232
+ - Added: **BREAKING** `style` and `indicatorStyle` props with options `"success" | "warning" | "danger" | "primary" | "inactive"`
233
+
234
+ #### ColorPicker
235
+
236
+ - Added: `Size` prop
237
+
238
+ #### Typography
239
+
240
+ - Added: new variant **nano**
241
+
242
+ #### Modal
243
+
244
+ - Added: `description` prop in header
245
+ - Added: `initialFocusRef` and `finalFocusRef` to programmatically add focus to custom components.
246
+ - Added: `blockScrollOnMount` prop to enable/disable body scrolling when the modal opens.
247
+ - Added: focus trapping to focusable elements in Modal.
248
+
249
+ #### Sidebar
250
+
251
+ - Removed: **BREAKING** `footerLinks` props
252
+ - Removed: **BREAKING** `isCollapsed` prop and **expanded state** of sidebar
253
+
254
+ ## 3.5.17 - 2022-08-25
255
+
256
+ - Fixed: false positive type errors for tooltip
257
+
258
+ ## 3.5.16 - 2022-08-17
259
+
260
+ - Changed: avoided showing duplicate toastr when called multiple times with the same arguments.
261
+
262
+ ## 3.5.15 - 2022-08-05
263
+
264
+ - Fixed: Fixed false positive ts errors which were thrown since some of the fields were not marked optional.
265
+
266
+ ## 3.5.14 - 2022-08-01
267
+
268
+ - Added: neetoTestify and neetoSite to AppSwitcher
269
+
270
+ ## 3.5.13 - 2022-07-28
271
+
272
+ - Added: type support for all exported components. IDE will now auto-predict the component props.
273
+ - Changed: Deprecated babel-eslint was replaced with @babel/eslint-parser
274
+
275
+ ## 3.5.12 - 2022-07-25
276
+
277
+ - Security: Bump moment from 2.29.3 to 2.29.4
25
278
 
26
279
  ## 3.5.11 - 2022-07-06
27
280
 
28
- - Added: a *Button* component in neetoui/formik that automatically disables itself if the form is not in a submittable state. Example: the form contains any invalid data, the form content has not been changed, or the form is already being submitted. To make this work, you need to import *Button* from "neetoui/formik" as your submit button.
29
- - Changed: *ActionBlock* will now use the above-mentioned logic internally. So its submit/cancel buttons will also be automatically enabled or disabled.
281
+ - Added: a _Button_ component in neetoui/formik that automatically disables itself if the form is not in a submittable state. Example: the form contains any invalid data, the form content has not been changed, or the form is already being submitted. To make this work, you need to import _Button_ from "neetoui/formik" as your submit button.
282
+ - Changed: _ActionBlock_ will now use the above-mentioned logic internally. So its submit/cancel buttons will also be automatically enabled or disabled.
30
283
 
31
284
  ## 3.5.10 - 2022-07-05
32
285
 
@@ -34,7 +287,7 @@ Prefix the change with one of these keywords:
34
287
 
35
288
  ## 3.5.9 - 2022-07-05
36
289
 
37
- - Fixed: Checkbox in *Table* component cut off in lower screen resolutions.
290
+ - Fixed: Checkbox in _Table_ component cut off in lower screen resolutions.
38
291
 
39
292
  ## 3.5.8 - 2022-07-01
40
293
 
@@ -42,7 +295,7 @@ Prefix the change with one of these keywords:
42
295
 
43
296
  ## 3.5.7 - 2022-06-24
44
297
 
45
- - Added: `startsFrom` to `counter` prop of *EmailInput* component.
298
+ - Added: `startsFrom` to `counter` prop of _EmailInput_ component.
46
299
 
47
300
  ## 3.5.6 - 2022-06-13
48
301
 
@@ -50,19 +303,19 @@ Prefix the change with one of these keywords:
50
303
 
51
304
  ## 3.5.5 - 2022-06-09
52
305
 
53
- - Fixed: issue with `onClose` function reference when closing the *Modal* using `Esc`.
306
+ - Fixed: issue with `onClose` function reference when closing the _Modal_ using `Esc`.
54
307
 
55
308
  ## 3.5.4 - 2022-06-08
56
309
 
57
- Fixed: `TypeError` issue in *Toastr* component.
310
+ Fixed: `TypeError` issue in _Toastr_ component.
58
311
 
59
312
  ## 3.5.3 - 2022-06-07
60
313
 
61
- - Fixed: issue with `closeOnEsc` prop when the *Dropdown* is controlled.
314
+ - Fixed: issue with `closeOnEsc` prop when the _Dropdown_ is controlled.
62
315
 
63
316
  ## 3.5.2 - 2022-06-07
64
317
 
65
- - Fixed : placeholder content extending into multiple lines in *Select* component.
318
+ - Fixed : placeholder content extending into multiple lines in _Select_ component.
66
319
 
67
320
  ## 3.5.1 - 2022-06-07
68
321
 
@@ -82,22 +335,22 @@ Fixed: `TypeError` issue in *Toastr* component.
82
335
 
83
336
  ## 3.4.3
84
337
 
85
- - Added: `prefix` and `suffix` to *EmailInput*.
338
+ - Added: `prefix` and `suffix` to _EmailInput_.
86
339
 
87
340
  ## 3.4.2
88
341
 
89
- - Fixed: issue with search not working with `isCreatable` *Select*.
342
+ - Fixed: issue with search not working with `isCreatable` _Select_.
90
343
 
91
344
  ## 3.4.1
92
345
 
93
- - Fixed: issue with `autoFocus` not working on *Input* when inside *Dropdown*.
346
+ - Fixed: issue with `autoFocus` not working on _Input_ when inside _Dropdown_.
94
347
 
95
348
  ## 3.4.0
96
349
 
97
350
  - Removed: all instances of TailwindCSS.
98
- - Added: `label` prop in *Tags* molecule.
99
- - Changed: Added `neetoCal` into *AppSwitcher* app list .
100
- - Removed: `count` limiting (to 99) logic from *MenuBar.Block*.
351
+ - Added: `label` prop in _Tags_ molecule.
352
+ - Changed: Added `neetoCal` into _AppSwitcher_ app list .
353
+ - Removed: `count` limiting (to 99) logic from _MenuBar.Block_.
101
354
 
102
355
  ## 3.3.13
103
356
 
@@ -105,20 +358,20 @@ Fixed: `TypeError` issue in *Toastr* component.
105
358
 
106
359
  ## 3.3.12
107
360
 
108
- - Fixed: loading state in *ActionBlock* component.
361
+ - Fixed: loading state in _ActionBlock_ component.
109
362
 
110
363
  ## 3.3.11
111
364
 
112
- - Added: New input format for the *EmailInput* component.
365
+ - Added: New input format for the _EmailInput_ component.
113
366
 
114
367
  ## 3.3.10
115
368
 
116
- - Fixed: Removed unnecessary scrollbar in *Table* component.
117
- - Added: `maxHeight` prop to the *EmailInput* component.
369
+ - Fixed: Removed unnecessary scrollbar in _Table_ component.
370
+ - Added: `maxHeight` prop to the _EmailInput_ component.
118
371
 
119
372
  ## 3.3.9
120
373
 
121
- - Fixed: *ActionDropdown* issues with common props for button and dropdown
374
+ - Fixed: _ActionDropdown_ issues with common props for button and dropdown
122
375
 
123
376
  ## 3.3.7
124
377
 
@@ -126,44 +379,44 @@ Fixed: `TypeError` issue in *Toastr* component.
126
379
 
127
380
  ## 3.3.6
128
381
 
129
- - Fixed: Reset Formik data on continue action in *BlockNavigation* component.
382
+ - Fixed: Reset Formik data on continue action in _BlockNavigation_ component.
130
383
 
131
384
  ## 3.3.5
132
385
 
133
- - Added: active state to `NavLink` in *Sidebar* component.
386
+ - Added: active state to `NavLink` in _Sidebar_ component.
134
387
 
135
388
  ## 3.3.4
136
389
 
137
- - Added: `hideOnTargetExit` prop to *Tooltip* component
390
+ - Added: `hideOnTargetExit` prop to _Tooltip_ component
138
391
 
139
392
  ## 3.3.3
140
393
 
141
- - Added: data-cy for in *Alert* component elements
394
+ - Added: data-cy for in _Alert_ component elements
142
395
 
143
396
  ## 3.3.2
144
397
 
145
- - Fixed: Added override for `onClick` prop in *Dropdown* component
398
+ - Fixed: Added override for `onClick` prop in _Dropdown_ component
146
399
 
147
400
  ## 3.3.1
148
401
 
149
- - Fixed: Typography of Header in *Alert* component.
150
- - Fixed: Max width issue in *Dropdown* component.
402
+ - Fixed: Typography of Header in _Alert_ component.
403
+ - Fixed: Max width issue in _Dropdown_ component.
151
404
 
152
405
  ## 3.3.0
153
406
 
154
- - Changed: **BREAKING** `isLoading` prop of *Table* to `loading`.
155
- - Changed: Implemented *Dropdown* component with Tippy.js and removed `react-popper`
156
- - Deprecated: **BREAKING** `loading` prop of *Pane*, *Modal* and *Alert* components.
157
- - Removed: **BREAKING** `placement` prop from *Tooltip* (Use position instead).
407
+ - Changed: **BREAKING** `isLoading` prop of _Table_ to `loading`.
408
+ - Changed: Implemented _Dropdown_ component with Tippy.js and removed `react-popper`
409
+ - Deprecated: **BREAKING** `loading` prop of _Pane_, _Modal_ and _Alert_ components.
410
+ - Removed: **BREAKING** `placement` prop from _Tooltip_ (Use position instead).
158
411
 
159
412
  #### UI
160
413
 
161
- - Changed: colors of `$neeto-ui-warning` and `$neeto-ui-error` in *Color Palette*
162
- - Changed: the text color in *Table* to `$neeto-ui-black`
163
- - Changed: UI of *Tag* of component
164
- - Changed: look and feel of *Danger Button*
165
- - Changed: Contrast of *Avatar*, *Accordian*, *Toastr* and *Callout*
166
- - Changed: Made *Modal* Header text and Close icon aligned in a line
167
- - Added: new variant for *Danger Button* -`danger-text`
414
+ - Changed: colors of `$neeto-ui-warning` and `$neeto-ui-error` in _Color Palette_
415
+ - Changed: the text color in _Table_ to `$neeto-ui-black`
416
+ - Changed: UI of _Tag_ of component
417
+ - Changed: look and feel of _Danger Button_
418
+ - Changed: Contrast of _Avatar_, _Accordian_, _Toastr_ and _Callout_
419
+ - Changed: Made _Modal_ Header text and Close icon aligned in a line
420
+ - Added: new variant for _Danger Button_ -`danger-text`
168
421
  - Added: new accent colors
169
422
  - ![accent-colors](https://user-images.githubusercontent.com/48869249/160755429-d2830f42-3086-4cbe-b9f5-4f0bca4f1a32.png)
package/README.md CHANGED
@@ -69,4 +69,4 @@ https://neetoui.onrender.com
69
69
  ## Other Libraries
70
70
 
71
71
  - [neetoIcons](https://github.com/bigbinary/neeto-icons): **NeetoIcons** is the official icons library from BigBinary.
72
- - [neetoUtils](https://github.com/bigbinary/neeto-utils): **NeetoUtils** is a collection of react hooks and utility functions used at BigBinary.
72
+ - [neetoEditor](https://github.com/bigbinary/neeto-editor-tiptap): **NeetoEditor** is a prose-mirror based rich-text editor used at BigBinary.
package/formik.d.ts ADDED
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ import {
3
+ Input as PlainInput,
4
+ Radio as PlainRadio,
5
+ Switch as PlainSwitch,
6
+ Textarea as PlainTextarea,
7
+ Checkbox as PlainCheckbox,
8
+ Select as PlainSelect,
9
+ EmailInput as PlainEmailInput,
10
+ Button as PlainButton,
11
+ ButtonProps,
12
+ } from "./index";
13
+
14
+ export interface ActionBlockProps {
15
+ className?: string;
16
+ submitButtonProps?: ButtonProps;
17
+ cancelButtonProps?: ButtonProps;
18
+ }
19
+ export interface BlockNavigationProps {
20
+ isDirty?: boolean;
21
+ }
22
+
23
+ export const ActionBlock: React.FC<ActionBlockProps>;
24
+ export const BlockNavigation: React.FC<BlockNavigationProps>;
25
+
26
+ export const Input: typeof PlainInput;
27
+ export const Radio: typeof PlainRadio;
28
+ export const Switch: typeof PlainSwitch;
29
+ export const Textarea: typeof PlainTextarea;
30
+ export const Checkbox: typeof PlainCheckbox;
31
+ export const Select: typeof PlainSelect;
32
+ export const EmailInput: typeof PlainEmailInput;
33
+ export const Button: typeof PlainButton;