@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 CHANGED
@@ -48,7 +48,6 @@ class Example extends Component {
48
48
  ## Documentation
49
49
 
50
50
  You can find the components documentation in [here](https://zeroheight.com/31613d024/p/94f423-introducing-sous-chef--components).
51
- just to trigger a CI
52
51
 
53
52
  ## Contributing
54
53
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { EmptyStateProps } from '../EmptyStateContainer/types';
3
- type Props = Omit<EmptyStateProps, 'isPaywall'>;
4
- declare const EmptyState: ({ header, title, children, mediaUrl, actions, caption, size, testId }: Props) => React.JSX.Element;
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 { EmptyStateProps } from '../EmptyStateContainer/types';
3
- declare const Paywall: ({ header, title, children, mediaUrl, actions, size, caption, testId }: Omit<EmptyStateProps, 'isPaywall'>) => React.JSX.Element;
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;
@@ -33,5 +33,8 @@
33
33
  "october": "October",
34
34
  "november": "November",
35
35
  "december": "December"
36
+ },
37
+ "Card": {
38
+ "dismiss": "Dismiss"
36
39
  }
37
40
  }
@@ -33,5 +33,8 @@
33
33
  "october": "Octubre",
34
34
  "november": "Noviembre",
35
35
  "december": "Diciembre"
36
+ },
37
+ "Card": {
38
+ "dismiss": "Descartar"
36
39
  }
37
40
  }
@@ -33,5 +33,8 @@
33
33
  "october": "Octobre",
34
34
  "november": "Novembre",
35
35
  "december": "Décembre"
36
+ },
37
+ "Card": {
38
+ "dismiss": "Rejeter"
36
39
  }
37
40
  }
@@ -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: 8px;
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: 8px;
1451
- top: 8px;
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
  }