@7shifts/sous-chef 3.36.3 → 3.38.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 +0 -1
- package/dist/empty_states/EmptyState/EmptyState.d.ts +3 -3
- package/dist/empty_states/EmptyStateContainer/types.d.ts +7 -0
- package/dist/empty_states/Paywall/Paywall.d.ts +3 -2
- package/dist/i18n/locales/en.json +3 -0
- package/dist/i18n/locales/es.json +3 -0
- package/dist/i18n/locales/fr.json +3 -0
- package/dist/icons/components/IconHatChef.d.ts +9 -0
- package/dist/icons/components/IconPlateUtensils.d.ts +9 -0
- package/dist/icons/components/index.d.ts +2 -0
- package/dist/index.css +27 -4
- package/dist/index.js +312 -211
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +310 -211
- package/dist/index.modern.js.map +1 -1
- package/dist/layout/CalloutCard/CalloutCard.d.ts +3 -0
- package/dist/layout/Card/Card.d.ts +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
type Props = Omit<
|
|
4
|
-
declare const EmptyState: (
|
|
2
|
+
import { EmptyStateAsBanner, EmptyStateAsCard } from '../EmptyStateContainer/types';
|
|
3
|
+
type Props = Omit<EmptyStateAsCard, 'isPaywall'> | Omit<EmptyStateAsBanner, 'isPaywall'>;
|
|
4
|
+
declare const EmptyState: (props: Props) => React.JSX.Element;
|
|
5
5
|
export default EmptyState;
|
|
@@ -22,3 +22,10 @@ export type EmptyStateProps = {
|
|
|
22
22
|
/** This is used for setting a data-testid on the component*/
|
|
23
23
|
testId?: string;
|
|
24
24
|
};
|
|
25
|
+
export type EmptyStateAsCard = {
|
|
26
|
+
as?: 'card';
|
|
27
|
+
onClose?: () => void;
|
|
28
|
+
} & EmptyStateProps;
|
|
29
|
+
export type EmptyStateAsBanner = {
|
|
30
|
+
as?: 'banner';
|
|
31
|
+
} & EmptyStateProps;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { EmptyStateAsBanner, EmptyStateAsCard } from '../EmptyStateContainer/types';
|
|
3
|
+
type Props = Omit<EmptyStateAsCard, 'isPaywall'> | Omit<EmptyStateAsBanner, 'isPaywall'>;
|
|
4
|
+
declare const Paywall: (props: Props) => React.JSX.Element;
|
|
4
5
|
export default Paywall;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconSize } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
size?: IconSize;
|
|
5
|
+
color?: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
} & React.SVGProps<SVGSVGElement>;
|
|
8
|
+
declare const IconHatChef: React.ForwardRefExoticComponent<Omit<Props, 'ref'>>;
|
|
9
|
+
export default IconHatChef;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconSize } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
size?: IconSize;
|
|
5
|
+
color?: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
} & React.SVGProps<SVGSVGElement>;
|
|
8
|
+
declare const IconPlateUtensils: React.ForwardRefExoticComponent<Omit<Props, 'ref'>>;
|
|
9
|
+
export default IconPlateUtensils;
|
|
@@ -78,6 +78,7 @@ export { default as IconGreat } from './IconGreat';
|
|
|
78
78
|
export { default as IconGrinBeam } from './IconGrinBeam';
|
|
79
79
|
export { default as IconGripVertical } from './IconGripVertical';
|
|
80
80
|
export { default as IconHandshake } from './IconHandshake';
|
|
81
|
+
export { default as IconHatChef } from './IconHatChef';
|
|
81
82
|
export { default as IconImage } from './IconImage';
|
|
82
83
|
export { default as IconIslandTropical } from './IconIslandTropical';
|
|
83
84
|
export { default as IconItalic } from './IconItalic';
|
|
@@ -102,6 +103,7 @@ export { default as IconPaperclip } from './IconPaperclip';
|
|
|
102
103
|
export { default as IconPencil } from './IconPencil';
|
|
103
104
|
export { default as IconPercentage } from './IconPercentage';
|
|
104
105
|
export { default as IconPhone } from './IconPhone';
|
|
106
|
+
export { default as IconPlateUtensils } from './IconPlateUtensils';
|
|
105
107
|
export { default as IconPlug } from './IconPlug';
|
|
106
108
|
export { default as IconPlus } from './IconPlus';
|
|
107
109
|
export { default as IconPrint } from './IconPrint';
|
package/dist/index.css
CHANGED
|
@@ -1410,7 +1410,7 @@ h5._32amZ {
|
|
|
1410
1410
|
box-sizing: border-box;
|
|
1411
1411
|
background: white;
|
|
1412
1412
|
border: 1px solid var(--color-grey-200);
|
|
1413
|
-
border-radius:
|
|
1413
|
+
border-radius: 20px;
|
|
1414
1414
|
width: 100%;
|
|
1415
1415
|
height: 100%;
|
|
1416
1416
|
padding: 24px 20px;
|
|
@@ -1447,12 +1447,22 @@ h5._32amZ {
|
|
|
1447
1447
|
._L9ZA7 {
|
|
1448
1448
|
position: absolute;
|
|
1449
1449
|
z-index: var(--z-index-base);
|
|
1450
|
-
right:
|
|
1451
|
-
top:
|
|
1450
|
+
right: 6px;
|
|
1451
|
+
top: 6px;
|
|
1452
1452
|
}
|
|
1453
1453
|
._5YidV {
|
|
1454
1454
|
pointer-events: none;
|
|
1455
1455
|
}
|
|
1456
|
+
._37yla {
|
|
1457
|
+
position: absolute;
|
|
1458
|
+
width: 38px;
|
|
1459
|
+
height: 38px;
|
|
1460
|
+
top: 6px;
|
|
1461
|
+
right: 6px;
|
|
1462
|
+
}
|
|
1463
|
+
._3J4FP {
|
|
1464
|
+
pointer-events: none;
|
|
1465
|
+
}
|
|
1456
1466
|
._cQT44 {
|
|
1457
1467
|
position: absolute;
|
|
1458
1468
|
width: 38px;
|
|
@@ -4521,7 +4531,6 @@ input._1zowl {
|
|
|
4521
4531
|
}
|
|
4522
4532
|
}
|
|
4523
4533
|
._1AdW7 {
|
|
4524
|
-
max-width: 1000px;
|
|
4525
4534
|
display: flex;
|
|
4526
4535
|
flex-direction: row;
|
|
4527
4536
|
justify-content: space-between;
|
|
@@ -4559,4 +4568,18 @@ input._1zowl {
|
|
|
4559
4568
|
text-align: center;
|
|
4560
4569
|
flex-direction: column-reverse;
|
|
4561
4570
|
}
|
|
4571
|
+
}
|
|
4572
|
+
._3kFM9 {
|
|
4573
|
+
padding: 12px 16px;
|
|
4574
|
+
}
|
|
4575
|
+
._3kmTB {
|
|
4576
|
+
display: flex;
|
|
4577
|
+
justify-content: center;
|
|
4578
|
+
}
|
|
4579
|
+
._DrBEi {
|
|
4580
|
+
padding: 12px 16px;
|
|
4581
|
+
}
|
|
4582
|
+
._3YbH7 {
|
|
4583
|
+
display: flex;
|
|
4584
|
+
justify-content: center;
|
|
4562
4585
|
}
|