@bigbinary/neetoui 3.7.0-beta.9 → 4.0.2

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
@@ -23,6 +23,272 @@ Prefix the change with one of these keywords:
23
23
  - *Fixed*: for any bug fixes.
24
24
  - *Security*: in case of vulnerabilities.
25
25
 
26
+ ## 4.0.2 - 2022-09-12
27
+
28
+ - Fixed: navigation issue in *BlockNavigation* component
29
+
30
+ ## 4.0.1 - 2022-09-12
31
+
32
+ - Added: `secondary` style variant
33
+ - Added: `info` style variant
34
+ - Removed: `inactive` style variant
35
+ - Fixed issue with custom target in *Dropdown*
36
+ - Fixed alignment issues in Dropdown `sizing` Story
37
+ - Updated select styles of antd table pagination
38
+ - Fixed Menuhorizontal button size in Table
39
+
40
+ ## 4.0.0 - 2022-09-02
41
+
42
+ - Updated: Color palette
43
+ - Added: CSS variables support
44
+ - Added: Custom theming support
45
+ - Added: Default dark theme support
46
+ - Added: Design preview in Storybook
47
+ - Added: Guidelines to structure content in applications
48
+ - Changed: bundle type to `CJS`
49
+ - Fixed: delay while opening overlays
50
+ - Removed: `framer-motion` from dependencies.
51
+
52
+ ### Color palette 🎨
53
+
54
+ - Updated color naming convention
55
+ - Added CSS variables support for colors
56
+ - Implemented dynamic color palette to support default dark mode
57
+ - Served color codes as RBG numbers in CSS variables to achieve color transparency
58
+ - Enhanced contrast of status color (info, success, error, warning)
59
+ - Included existing pastel colors as the color swatches of primary, success, error, warning, and info
60
+ - Added new set of pastel colors
61
+ - Removed unused colors from the palette
62
+ - Updated utility classes to match the new variable naming
63
+ - Restructured documentation and created new documentation for color palette
64
+ - Deprecated `neeto-ui-accent1`, `neeto-ui-accent2`, `neeto-ui-accent3`, `neeto-ui-accent4` colors and utility classes
65
+ - Deprecated `neeto-ui-secondary-indigo`, `neeto-ui-secondary-green`, `neeto-ui-secondary-teal` colors and utility classes
66
+ - Deprecated `neeto-ui-pastel-teal`
67
+ - Renamed `neeto-ui-success` to `neeto-ui-success-500`
68
+ - Renamed `neeto-ui-info` to `neeto-ui-info-500`
69
+ - Renamed `neeto-ui-error` to `neeto-ui-error-500`
70
+ - Renamed `neeto-ui-warning` to `neeto-ui-warning-500`
71
+ - Renamed `neeto-ui-pastel-blue` to `neeto-ui-info-100`
72
+ - Renamed `neeto-ui-pastel-green` to `neeto-ui-success-100`
73
+ - Renamed `neeto-ui-pastel-yellow` to `neeto-ui-warning-100`
74
+ - Renamed `neeto-ui-pastel-red` to `neeto-ui-error-100`
75
+
76
+ ### Cosmetic changes 👁
77
+
78
+ #### Button
79
+
80
+ - Updated primary button color to `neeto-ui-primary-500`
81
+ - Added `:focus` rings to buttons for accessibility
82
+ - Updated `:focus-visible` styles to match the new design
83
+ - Updated border radius to `5px`
84
+ - Updated CSS transition from `all .3s ease-in-out` to `all .3s linear`
85
+ - Deprecated variants story in Storybook doc
86
+ - Created independent stories for `Styles`, `Sizes`, `Icon only` etc
87
+
88
+ #### Checkbox
89
+
90
+ - Replaced checked state icon with neetoIcon
91
+ - Updated checked state color to `neeto-ui-primary-500`
92
+ - Changed default state border color from `grey 300` to `grey 400`
93
+ - Updated `:hover` border color to `grey 500`
94
+ - Updated `:focus-visible` border color to `neeto-ui-primary-500`
95
+ - Updated focus ring styles to match `neeto-ui-primary` color
96
+ - Improved spacing in component
97
+
98
+ #### Radio
99
+
100
+ - Replaced checked state icon with neetoIcon
101
+ - Updated checked state color to `neeto-ui-primary-500`
102
+ - Changed default state border color from `grey 300` to `grey 400`
103
+ - Updated `:hover` border color to `grey 500`
104
+ - Updated `:focus-visible` border color to `neeto-ui-primary-500`
105
+ - Updated focus ring styles to match `neeto-ui-primary` color
106
+ - Improved spacing in component
107
+
108
+ #### Input
109
+
110
+ - Updated border-radius to `5px`
111
+ - Updated focus ring styles to match `neeto-ui-primary` color
112
+ - Fixed unwanted spacing in maxLength label
113
+ - Fixed alignment issues in Input with maxLength and no label text
114
+ - Fixed spacing inconsistencies in error test and helper text - used same margin value for both
115
+ - Fixed alignment issues in naked inputs
116
+ - Deprecate `variants` story in Storybook and created individual stories for `Input sizing`
117
+
118
+ #### Textarea
119
+
120
+ - Updated border-radius to `5px`
121
+ - Updated focus ring styles to match `neeto-ui-primary` color
122
+ - Fixed unwanted spacing in the maxLength label
123
+ - Fixed alignment issues in Input with maxLength and no label text
124
+ - Fix spacing inconsistencies in error test and helper text - used the same margin value for both
125
+ - Fixed alignment issues in naked inputs
126
+ - Added size prop to Textarea
127
+
128
+ #### Select
129
+
130
+ - Updated border-radius to `5px`
131
+ - Updated focus ring styles to match `neeto-ui-primary` color
132
+ - Replaced the default dropdown icons with neetoIcons
133
+ - Added CSS transition to the select options
134
+ - Applied Badge styles to Multi select items
135
+ - Replaced multivalue remove icon with neetoIcon
136
+ - Updated multivalue error styles
137
+ - Increased Story heights for better view
138
+
139
+ #### Email input
140
+
141
+ - Updated border radius to `5px`
142
+ - Updated selected values styles to match Tag styles
143
+ - Fixed prefix and suffix spacing
144
+ - Updated prefix icon size to `16px`
145
+ - Updated focus ring styles to match `neeto-ui-primary` color
146
+ - Fixed spacing issues in counter
147
+ - Fixed alignment issues in label row
148
+ - Fixed spacing inconsistencies in error test and helper text - used same margin for both
149
+ - Updated error styles of multivalue select
150
+
151
+ #### Label
152
+
153
+ - Updated label bottom margin to 8px
154
+ - Removed letter-spacing in label text
155
+
156
+ #### Dropdown & Action Dropdown
157
+
158
+ - Updated border-radius to `5px`
159
+ - Reduced the height of Dropdown options to `32px`
160
+ - Created Storybook examples with semantic markup for easy keyboard win
161
+ - Separated Delete/Remove actions with a border
162
+ - Updated `box-shadow`
163
+
164
+ #### Date Time picker
165
+
166
+ - Replaced default icons with neetoIcons
167
+ - Updated selection color to `neeto-ui-primary`
168
+ - Added border to date and time dropdown
169
+ - Updated box shadow of dropdown
170
+
171
+ #### Accordion
172
+
173
+ - Updated font weight of Accordion title to `500`
174
+ - Updated `border-radius` to `8px`
175
+
176
+ #### Avatar
177
+
178
+ - Updated background colors to new pastel colors
179
+ - Updated square variant `border-radius` to `5px`
180
+
181
+ #### Table
182
+
183
+ - Updated column title color to `grey 600`
184
+ - Updated column title font weight to 700
185
+ - Reduced cell padding from `12px 16px` to `8px 16px` to accommodate more number of row in a given height
186
+ - Removed border from pagination items
187
+ - Updated pagination buttons to match neetoUI button style
188
+ - Updated active pagination item styles to `neeto-ui-primary`
189
+ - Replaced default icons with neetoIcons
190
+
191
+ #### PageLoader
192
+
193
+ - Updated neeto logo
194
+
195
+ #### Color picker
196
+
197
+ - Added border to input
198
+
199
+ #### Alert & Modal
200
+
201
+ - Reduced outer padding from `32px ` to `24px` to provide the compact view
202
+ - Updated `border-radius` to `12px`
203
+
204
+ #### Toast
205
+
206
+ - Applied `48px` minimum height
207
+ - Applied dark theme to all variants
208
+ - Reduced text font weight to `400`
209
+
210
+ #### Tooltip
211
+
212
+ - Changed box shadow of light theme variant to `--neeto-ui-shadow-s`
213
+
214
+ #### Sidebar
215
+
216
+ - Increased width from `64px` to `72px`
217
+ - Changed background color from `neeto-ui-gray-200` to `neeto-ui-white`
218
+ - Added border on the right side
219
+ - Updated `padding-top` and `padding-bottom` to `24px`
220
+
221
+ ### Functionality changes 🛠️
222
+
223
+ #### Input
224
+
225
+ - 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
226
+
227
+ #### TextArea
228
+
229
+ - 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
230
+
231
+ #### Dropdown
232
+
233
+ - Changed: **BREAKING** Renamed `ulProps` prop to `dropdownProps`
234
+ - Added: `buttonSize` prop
235
+
236
+ #### ActionDropdown
237
+
238
+ - Changed: **BREAKING** Renamed `size` prop to `buttonSize`
239
+ - Changed: **BREAKING** Renamed `style` prop to `buttonStyle`
240
+
241
+ #### Tag
242
+
243
+ - Changed: **BREAKING** Renamed `style` prop to `type`
244
+ - Removed: **BREAKING** Renamed `color` and `indicatorColor` props
245
+ - Added: **BREAKING** `style` and `indicatorStyle` props with options `"success" | "warning" | "danger" | "primary" | "inactive"`
246
+
247
+ #### ColorPicker
248
+
249
+ - Added: `Size` prop
250
+
251
+ #### Typography
252
+
253
+ - Added: new variant **nano**
254
+
255
+ #### Modal
256
+
257
+ - Added: `description` prop in header
258
+ - Added: `initialFocusRef` and `finalFocusRef` to programmatically add focus to custom components.
259
+ - Added: `blockScrollOnMount` prop to enable/disable body scrolling when the modal opens.
260
+ - Added: focus trapping to focusable elements in Modal.
261
+
262
+ #### Sidebar
263
+
264
+ - Removed: **BREAKING** `footerLinks` props
265
+ - Removed: **BREAKING** `isCollapsed` prop and **expanded state** of sidebar
266
+
267
+ ## 3.5.17 - 2022-08-25
268
+
269
+ - Fixed: false positive type errors for tooltip
270
+
271
+ ## 3.5.16 - 2022-08-17
272
+
273
+ - Changed: avoided showing duplicate toastr when called multiple times with the same arguments.
274
+
275
+ ## 3.5.15 - 2022-08-05
276
+
277
+ - Fixed: Fixed false positive ts errors which were thrown since some of the fields were not marked optional.
278
+
279
+ ## 3.5.14 - 2022-08-01
280
+
281
+ - Added: neetoTestify and neetoSite to AppSwitcher
282
+
283
+ ## 3.5.13 - 2022-07-28
284
+
285
+ - Added: type support for all exported components. IDE will now auto-predict the component props.
286
+ - Changed: Deprecated babel-eslint was replaced with @babel/eslint-parser
287
+
288
+ ## 3.5.12 - 2022-07-25
289
+
290
+ - Security: Bump moment from 2.29.3 to 2.29.4
291
+
26
292
  ## 3.5.11 - 2022-07-06
27
293
 
28
294
  - 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.
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;