@bigbinary/neetoui 3.7.0-beta.8 → 4.0.1

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