@7shifts/sous-chef 3.37.0 → 3.39.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;
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { EmptyStateProps } from '../types';
3
- declare const EmptyStateContainerStack: ({ header, title, children, mediaUrl, actions, caption, isPaywall, testId }: EmptyStateProps) => React.JSX.Element;
3
+ type Props = {
4
+ mediaComponent?: React.ReactNode;
5
+ } & EmptyStateProps;
6
+ declare const EmptyStateContainerStack: ({ header, title, children, mediaUrl, actions, caption, isPaywall, testId, mediaComponent }: Props) => React.JSX.Element;
4
7
  export default EmptyStateContainerStack;
@@ -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,12 @@
33
33
  "october": "October",
34
34
  "november": "November",
35
35
  "december": "December"
36
+ },
37
+ "Card": {
38
+ "dismiss": "Dismiss"
39
+ },
40
+ "DataTable": {
41
+ "emptyStateTitle": "No results found",
42
+ "emptyStateCaption": "Try adding a new item to the list or adjust your search terms."
36
43
  }
37
44
  }
@@ -33,5 +33,12 @@
33
33
  "october": "Octubre",
34
34
  "november": "Noviembre",
35
35
  "december": "Diciembre"
36
+ },
37
+ "Card": {
38
+ "dismiss": "Descartar"
39
+ },
40
+ "DataTable": {
41
+ "emptyStateTitle": "No se encontraron resultados",
42
+ "emptyStateCaption": "Intenta agregar un nuevo elemento a la lista o ajusta tus términos de búsqueda."
36
43
  }
37
44
  }
@@ -33,5 +33,12 @@
33
33
  "october": "Octobre",
34
34
  "november": "Novembre",
35
35
  "december": "Décembre"
36
+ },
37
+ "Card": {
38
+ "dismiss": "Rejeter"
39
+ },
40
+ "DataTable": {
41
+ "emptyStateTitle": "Aucun résultat trouvé",
42
+ "emptyStateCaption": "Essayez d'ajouter un nouvel élément à la liste ou ajustez vos termes de recherche."
36
43
  }
37
44
  }
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;
@@ -2420,6 +2430,46 @@ input:disabled + ._2W10t::after {
2420
2430
  right: -1px;
2421
2431
  bottom: -1px;
2422
2432
  }
2433
+ ._3mHDL {
2434
+ display: flex;
2435
+ width: 100%;
2436
+ justify-content: center;
2437
+ }
2438
+ ._11ygA {
2439
+ display: flex;
2440
+ justify-content: space-between;
2441
+ width: 424px;
2442
+ gap: 20px;
2443
+ flex-direction: column;
2444
+ align-items: center;
2445
+ }
2446
+ ._6o4Ut {
2447
+ display: flex;
2448
+ flex-direction: column;
2449
+ justify-content: center;
2450
+ gap: 20px;
2451
+ }
2452
+ ._1bs2I {
2453
+ max-width: 500px;
2454
+ }
2455
+ ._WwD-g {
2456
+ max-width: 667px;
2457
+ }
2458
+ ._1b3C0 {
2459
+ color: var(--color-grey-500);
2460
+ font-size: 12px;
2461
+ text-align: center;
2462
+ }
2463
+ ._3q5OJ {
2464
+ display: flex;
2465
+ gap: 8px;
2466
+ }
2467
+
2468
+ @media screen and (max-width: 900px) {
2469
+ ._3q5OJ:not(._3DOZC) {
2470
+ justify-content: center;
2471
+ }
2472
+ }
2423
2473
  ._1JTKu {
2424
2474
  flex: 1;
2425
2475
  display: "flex";
@@ -4485,43 +4535,7 @@ input._1zowl {
4485
4535
  background-color: var(--color-blueberry-200);
4486
4536
  color: var(--color-blueberry-600);
4487
4537
  }
4488
- ._11ygA {
4489
- display: flex;
4490
- justify-content: space-between;
4491
- width: 424px;
4492
- gap: 20px;
4493
- flex-direction: column;
4494
- align-items: center;
4495
- }
4496
- ._6o4Ut {
4497
- display: flex;
4498
- flex-direction: column;
4499
- justify-content: center;
4500
- gap: 20px;
4501
- }
4502
- ._1bs2I {
4503
- max-width: 500px;
4504
- }
4505
- ._WwD-g {
4506
- max-width: 667px;
4507
- }
4508
- ._1b3C0 {
4509
- color: var(--color-grey-500);
4510
- font-size: 12px;
4511
- text-align: center;
4512
- }
4513
- ._3q5OJ {
4514
- display: flex;
4515
- gap: 8px;
4516
- }
4517
-
4518
- @media screen and (max-width: 900px) {
4519
- ._3q5OJ:not(._3DOZC) {
4520
- justify-content: center;
4521
- }
4522
- }
4523
4538
  ._1AdW7 {
4524
- max-width: 1000px;
4525
4539
  display: flex;
4526
4540
  flex-direction: row;
4527
4541
  justify-content: space-between;
@@ -4559,4 +4573,18 @@ input._1zowl {
4559
4573
  text-align: center;
4560
4574
  flex-direction: column-reverse;
4561
4575
  }
4576
+ }
4577
+ ._3kFM9 {
4578
+ padding: 12px 16px;
4579
+ }
4580
+ ._3kmTB {
4581
+ display: flex;
4582
+ justify-content: center;
4583
+ }
4584
+ ._DrBEi {
4585
+ padding: 12px 16px;
4586
+ }
4587
+ ._3YbH7 {
4588
+ display: flex;
4589
+ justify-content: center;
4562
4590
  }