@7shifts/sous-chef 1.5.8 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "1.5.8",
3
+ "version": "2.1.1",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",
@@ -12,7 +12,9 @@
12
12
  "node": ">=10"
13
13
  },
14
14
  "scripts": {
15
+ "prebuild": "run-s build-icons",
15
16
  "build": "./scripts/build.sh",
17
+ "build-icons": "./scripts/build-icons.sh",
16
18
  "compile": "microbundle-crl --no-compress --format modern,cjs",
17
19
  "start": "microbundle-crl watch --no-compress --format modern,cjs",
18
20
  "prepare": "run-s build",
@@ -26,15 +28,17 @@
26
28
  "storybook:build": "build-storybook -o ./.storybook/dist"
27
29
  },
28
30
  "peerDependencies": {
29
- "react": "^16.0.0",
30
- "react-dom": "^16.0.0"
31
+ "react": ">16.0.0",
32
+ "react-dom": ">16.0.0"
31
33
  },
32
34
  "devDependencies": {
33
- "@babel/core": "^7.14.3",
35
+ "@babel/core": "^7.16.7",
36
+ "@babel/plugin-transform-regenerator": "^7.16.7",
34
37
  "@storybook/addon-actions": "^6.4.12",
35
38
  "@storybook/addon-essentials": "^6.4.12",
36
39
  "@storybook/addon-links": "^6.4.12",
37
40
  "@storybook/react": "^6.4.12",
41
+ "@svgr/cli": "^6.2.0",
38
42
  "@testing-library/jest-dom": "^5.12.0",
39
43
  "@testing-library/react": "^11.2.7",
40
44
  "@testing-library/user-event": "^13.2.1",
@@ -47,8 +51,8 @@
47
51
  "@typescript-eslint/eslint-plugin": "^2.26.0",
48
52
  "@typescript-eslint/parser": "^2.26.0",
49
53
  "babel-eslint": "^10.0.3",
50
- "babel-loader": "^8.2.2",
51
- "chromatic": "^5.9.2",
54
+ "babel-loader": "^8.2.3",
55
+ "chromatic": "^6.3.4",
52
56
  "cross-env": "^7.0.2",
53
57
  "eslint": "^6.8.0",
54
58
  "eslint-config-prettier": "^6.7.0",
package/CHANGELOG.md DELETED
@@ -1,230 +0,0 @@
1
- ## 1.5.8 (February 14th, 2022)
2
-
3
- ### Bug fixes
4
-
5
- - DataTableRow: Updated hover state to only appear if there's an onClick (i.e. row action) similar to previous component (ResourceTable).
6
- - DataTableEditableCell: Added hover state styles to DataTableEditableCell to keep proper styles after the changes to DataTableRow (above).
7
-
8
- ## 1.5.7 (January 31st, 2022)
9
-
10
- ### Enhancements
11
-
12
- - TextField: Added new props:
13
- - `onFocus`, accepts an event callback to be passed which receives the current input value
14
- - `onKeyDown`, accepts an event callback to be passed which receives the key pressed when the input has focus
15
- - `maxLength`, specifies the maximum length allowed by the underlying `input`
16
-
17
- ## 1.5.6 (January 21st, 2022)
18
-
19
- ### Enhancements
20
-
21
- - TextField: Added new string prop `autoComplete` which has no default value. Options are "off" or "on".
22
-
23
- ## 1.5.5 (January 13th, 2022)
24
-
25
- ### Bug fixes
26
-
27
- - DataTableEditableCell: Added new prop 'step' which is set to 'any' if the input type is set to 'currency'. ([#72](https://github.com/7shifts/sous-chef/pull/72))
28
-
29
- ## 1.5.4 (January 10th, 2022)
30
-
31
- ### Enhancements
32
-
33
- - MultiSelectField: Added new prop closeOnSelect which is set to false by default in order for the dropdown to stay open while selecting options. ([#71](https://github.com/7shifts/sous-chef/pull/71))
34
-
35
- ## 1.5.3 (December 13th, 2021)
36
-
37
- ### Enhancements
38
-
39
- - Button: Updated link button themes to have proper one shade darker color (excluding contrast, icon, and toolbar theme) on hover. ([#70](https://github.com/7shifts/sous-chef/pull/70))
40
-
41
- ## 1.5.2 (November 10th, 2021)
42
-
43
- ### Enhancements
44
-
45
- - PasswordField: Updated met criteria bullet to IconCheck to be consistent with mobile ([#69](https://github.com/7shifts/sous-chef/pull/69))
46
-
47
- ### New Components
48
-
49
- - IconCheck: added for now to use in PasswordCriteria. ([#69](https://github.com/7shifts/sous-chef/pull/69))
50
-
51
- ## 1.5.1 (October 20th, 2021)
52
-
53
- ### Bug fixes
54
-
55
- - DataTable: Exported `DataTableCustomComponent` type ([#67](https://github.com/7shifts/sous-chef/pull/67))
56
-
57
- ## 1.5.0 (October 19th, 2021)
58
-
59
- ### New components
60
-
61
- - PillSelectField ([#65](https://github.com/7shifts/sous-chef/pull/65))
62
-
63
- ### Bug fixes
64
-
65
- - Field: Updated to align properly when using FormRow with only one form field with with label ([#66](https://github.com/7shifts/sous-chef/pull/66))
66
-
67
- ## 1.4.1 (October 8th, 2021)
68
-
69
- ### Enhancements
70
-
71
- - DataTable: Updated flow types ([#62](https://github.com/7shifts/sous-chef/pull/62))
72
- - Tooltip: Added the prop `onClose` to listen when the overlay closed ([#64](https://github.com/7shifts/sous-chef/pull/64))
73
-
74
- ## 1.4.0 (October 7th, 2021)
75
-
76
- ### Enhancements
77
-
78
- - Updated SelectField to support disabled options
79
-
80
- ## 1.3.1 (September 29th, 2021)
81
-
82
- ### Bug fixes
83
-
84
- - Avatar: updated to show the proper background when the image url is not available ([#57](https://github.com/7shifts/sous-chef/pull/57))
85
- - PaginationControls: updated to have the title with the first character capitalized ([#58](https://github.com/7shifts/sous-chef/pull/58))
86
- - DataTable: Added missing exports ([#59](https://github.com/7shifts/sous-chef/pull/59))
87
-
88
- ## 1.3.0 (September 27th, 2021)
89
-
90
- ### New components
91
-
92
- - DataTable ([#50](https://github.com/7shifts/sous-chef/pull/50)) - And added editable functionality ([#54](https://github.com/7shifts/sous-chef/pull/54))
93
-
94
- ## 1.2.2 (September 24rd, 2021)
95
-
96
- ### Bug fixes
97
-
98
- - TextField: Removed the support for Formik `Field` as it was a breaking change in the `TextField` component ([#56](https://github.com/7shifts/sous-chef/pull/56))
99
-
100
- ## 1.2.1 (September 23rd, 2021)
101
-
102
- ### Bug fixes
103
-
104
- - Modal: When a scroll was showing, the top content was getting cut off on the top. Also updated the flow type ([#55](https://github.com/7shifts/sous-chef/pull/55))
105
-
106
- ### Enhancements
107
-
108
- - Form: Updated the field components to work with formik components such as `Field` and `FieldArray`. It also suports now dynamic fields ([#53](https://github.com/7shifts/sous-chef/pull/53))
109
-
110
- ## 1.2.0 (September 15th, 2021)
111
-
112
- ### New components
113
-
114
- - Modal ([#49](https://github.com/7shifts/sous-chef/pull/49))
115
-
116
- ### Bug fixes
117
-
118
- - Avatar: The fallback image was not being applied properly ([#46](https://github.com/7shifts/sous-chef/pull/46))
119
-
120
- ## 1.1.4 (August 17, 2021)
121
-
122
- ### Bug fixes
123
-
124
- - Button: Fixed the padding when having only an icon inside the Button ([#45](https://github.com/7shifts/sous-chef/pull/45))
125
-
126
- ## 1.1.3 (August 5, 2021)
127
-
128
- ### Bug fixes
129
-
130
- - MultiSelectField: It was not wrapping to the next line when multiple options were select and they didn't fit on the space given ([#44](https://github.com/7shifts/sous-chef/pull/44))
131
-
132
- ## 1.1.2 (August 4, 2021)
133
-
134
- ### Bug fixes
135
-
136
- - SelectField: When using the `prefix` prop it had a missaligned prefix ([#43](https://github.com/7shifts/sous-chef/pull/43))
137
- - SelectField: Implemented the `onBlur` prop ([#42](https://github.com/7shifts/sous-chef/pull/42))
138
- - MultiSelectField: Implemented the `onBlur` prop ([#42](https://github.com/7shifts/sous-chef/pull/42))
139
-
140
- ## 1.1.1 (July 28, 2021)
141
-
142
- ### Enhancements
143
-
144
- - Badge: Added the `title` prop to make it easier adding a black tooltip ([#40](https://github.com/7shifts/sous-chef/pull/40))
145
-
146
- ### New components
147
-
148
- - IconExclaim ([#41](https://github.com/7shifts/sous-chef/pull/41))
149
-
150
- ## 1.1.0 (July 23, 2021)
151
-
152
- ### New components
153
-
154
- - Badge ([#37](https://github.com/7shifts/sous-chef/pull/37))
155
- - Avatar ([#38](https://github.com/7shifts/sous-chef/pull/38))
156
- - IconComment ([#39](https://github.com/7shifts/sous-chef/pull/39))
157
- - IconLocation ([#39](https://github.com/7shifts/sous-chef/pull/39))
158
- - IconMinusCircle ([#39](https://github.com/7shifts/sous-chef/pull/39))
159
- - IconUserPlus ([#39](https://github.com/7shifts/sous-chef/pull/39))
160
-
161
- ### Bug fixes
162
-
163
- - SelectField: When there is no container with size defined the component will grow with the content until it fills the space ([#36](https://github.com/7shifts/sous-chef/pull/36))
164
-
165
- ### Enhancements
166
-
167
- - SelectField: Added the `prefix` prop and the `asToolbarField` so the component will look as a toolbar filter with no border ([#36](https://github.com/7shifts/sous-chef/pull/36))
168
-
169
- ## 1.0.3 (July 15, 2021)
170
-
171
- ### Bug fixes
172
-
173
- - Button: Fixed global CSS overrites when button behaves like link ([#35](https://github.com/7shifts/sous-chef/pull/35))
174
-
175
- ## 1.0.2 (July 15, 2021)
176
-
177
- ### Bug fixes
178
-
179
- - TextAreaField: Fixed global CSS overrites ([#34](https://github.com/7shifts/sous-chef/pull/34))
180
-
181
- ## 1.0.1 (July 14, 2021)
182
-
183
- ### Enhancements
184
-
185
- - TextField: Added the possibility of using `useRef` ([#33](https://github.com/7shifts/sous-chef/pull/33))
186
-
187
- ## 1.0.0 (June 25, 2021)
188
-
189
- ### New components
190
-
191
- - Tooltip ([#16](https://github.com/7shifts/sous-chef/pull/16))
192
- - MultiSelectField ([#19](https://github.com/7shifts/sous-chef/pull/19))
193
- - TextAreaField ([#21](https://github.com/7shifts/sous-chef/pull/21))
194
- - RadioGroupField ([#22](https://github.com/7shifts/sous-chef/pull/22))
195
- - WeekField ([#24](https://github.com/7shifts/sous-chef/pull/24))
196
- - DateRangeField ([#25](https://github.com/7shifts/sous-chef/pull/25))
197
- - IconRemove ([#26](https://github.com/7shifts/sous-chef/pull/26))
198
-
199
- ### Enhancements
200
-
201
- - Button: Added the possibility of making Butons act as links ([#23](https://github.com/7shifts/sous-chef/pull/23))
202
- - SelectField and MultiSelectField: Added the possibility of customizing the select options ([#27](https://github.com/7shifts/sous-chef/pull/27))
203
-
204
- ### Bug fixes
205
-
206
- - Form: consolidated the Flow types for `useFormik` and `<Formik ...>` ([#28](https://github.com/7shifts/sous-chef/pull/28))
207
- - Icons: added missing Flow types ([#26](https://github.com/7shifts/sous-chef/pull/26))
208
-
209
- ### Pre existing components
210
-
211
- - Button
212
- - PaginationControls
213
- - Toggle
214
- - Inline
215
- - Stack
216
- - ResourceTable
217
- - Spinner
218
- - CheckboxField
219
- - DateField
220
- - DateRangeField
221
- - Form
222
- - FormRow
223
- - MultiSelectField
224
- - PasswordField
225
- - RadioGroupField
226
- - SelectField
227
- - TextAreaField
228
- - TextField
229
- - WeekField
230
- - Tooltip
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- rotate?: number;
8
- dataTestId?: string;
9
- };
10
- declare const IconArrowDown: React.FC<Props>;
11
- export default IconArrowDown;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconArrowLeft: React.FC<Props>;
9
- export default IconArrowLeft;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconArrowRight: React.FC<Props>;
9
- export default IconArrowRight;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconArrowUp: React.FC<Props>;
9
- export default IconArrowUp;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconCalendar: React.FC<Props>;
9
- export default IconCalendar;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconCheck: React.FC<Props>;
9
- export default IconCheck;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- declare type Props = {
3
- size?: 'small' | 'medium';
4
- color?: string;
5
- rotate?: number;
6
- dataTestId?: string;
7
- };
8
- declare const IconChevronDown: React.FC<Props>;
9
- export default IconChevronDown;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- declare type Props = {
4
- size?: 'small' | 'medium';
5
- color?: Color;
6
- };
7
- declare const IconChevronUp: React.FC<Props>;
8
- export default IconChevronUp;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconClose: React.FC<Props>;
9
- export default IconClose;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconComment: React.FC<Props>;
9
- export default IconComment;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconDelete: React.FC<Props>;
9
- export default IconDelete;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconEdit: React.FC<Props>;
9
- export default IconEdit;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconExclaim: React.FC<Props>;
9
- export default IconExclaim;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconEye: React.FC<Props>;
9
- export default IconEye;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconEyeSlash: React.FC<Props>;
9
- export default IconEyeSlash;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconLocation: React.FC<Props>;
9
- export default IconLocation;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconMinusCircle: React.FC<Props>;
9
- export default IconMinusCircle;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconMore: React.FC<Props>;
9
- export default IconMore;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- declare type Props = {
4
- size?: 'small' | 'medium' | 'default' | 'large';
5
- color?: Color;
6
- };
7
- declare const IconRemove: React.FC<Props>;
8
- export default IconRemove;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { IconSize } from './types';
3
- declare type Props = {
4
- size?: IconSize;
5
- color?: string;
6
- };
7
- declare const IconUser: React.FC<Props>;
8
- export default IconUser;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../foundation/colors';
3
- import { IconSize } from './types';
4
- declare type Props = {
5
- size?: IconSize;
6
- color?: Color;
7
- };
8
- declare const IconUserPlus: React.FC<Props>;
9
- export default IconUserPlus;