@7shifts/sous-chef 3.83.3 → 3.85.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/dist/feedback/MicroBanner/ButtonCTA/ButtonCTA.d.ts +9 -0
- package/dist/feedback/MicroBanner/ButtonCTA/index.d.ts +1 -0
- package/dist/feedback/MicroBanner/MicroBanner.d.ts +13 -0
- package/dist/feedback/MicroBanner/MicroBannerIcon/MicroBannerIcon.d.ts +7 -0
- package/dist/feedback/MicroBanner/MicroBannerIcon/index.d.ts +1 -0
- package/dist/feedback/MicroBanner/constants.d.ts +7 -0
- package/dist/feedback/MicroBanner/index.d.ts +1 -0
- package/dist/feedback/MicroBanner/types.d.ts +2 -0
- package/dist/feedback/index.d.ts +2 -1
- package/dist/i18n/locales/en.json +1 -1
- package/dist/i18n/locales/es.json +1 -1
- package/dist/i18n/locales/fr.json +1 -1
- package/dist/index.css +73 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +597 -516
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +699 -616
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MicroBannerTheme } from '../types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type ButtonCTAProps = {
|
|
4
|
+
button: React.ReactElement;
|
|
5
|
+
bannerTheme: MicroBannerTheme;
|
|
6
|
+
};
|
|
7
|
+
/** Infers theme prop for Sous Chef Button CTAs if not passed, primaryCTA is Upsell if banner theme is Upsell, default otherwise**/
|
|
8
|
+
declare const ButtonCTA: ({ button, bannerTheme }: ButtonCTAProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
9
|
+
export default ButtonCTA;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ButtonCTA';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MicroBannerTheme } from './types';
|
|
3
|
+
type Props = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
theme?: MicroBannerTheme;
|
|
6
|
+
icon?: React.ReactElement;
|
|
7
|
+
hideIcon?: boolean;
|
|
8
|
+
title?: string;
|
|
9
|
+
primaryButton?: React.ReactElement;
|
|
10
|
+
testId?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const MicroBanner: React.FC<Props>;
|
|
13
|
+
export default MicroBanner;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './MicroBannerIcon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './MicroBanner';
|
package/dist/feedback/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import Spinner from './Spinner';
|
|
2
2
|
import InlineBanner from './InlineBanner';
|
|
3
|
+
import MicroBanner from './MicroBanner';
|
|
3
4
|
import PersistentBanner from './PersistentBanner';
|
|
4
5
|
import CircularProgress from './CircularProgress';
|
|
5
6
|
import ProgressBar from './ProgressBar';
|
|
6
7
|
import { toast } from './Toast';
|
|
7
8
|
import Skeleton from './Skeleton';
|
|
8
|
-
export { Spinner, InlineBanner, PersistentBanner, CircularProgress, ProgressBar, toast, Skeleton };
|
|
9
|
+
export { Spinner, InlineBanner, MicroBanner, PersistentBanner, CircularProgress, ProgressBar, toast, Skeleton };
|
|
@@ -48,6 +48,6 @@
|
|
|
48
48
|
"emptyStateTitle": "Sin elementos de acción"
|
|
49
49
|
},
|
|
50
50
|
"PhoneField": {
|
|
51
|
-
"malformedPhoneNumber": "
|
|
51
|
+
"malformedPhoneNumber": "Por favor, ingresa un número de teléfono válido."
|
|
52
52
|
}
|
|
53
53
|
}
|
package/dist/index.css
CHANGED
|
@@ -2468,6 +2468,79 @@ input:disabled + ._kmvBP::after {
|
|
|
2468
2468
|
font-weight: var(--p-font-weight-normal);
|
|
2469
2469
|
color: var(--color-surface-on-color);
|
|
2470
2470
|
}
|
|
2471
|
+
._fRjhT {
|
|
2472
|
+
padding: 4px 4px 4px 8px;
|
|
2473
|
+
position: relative;
|
|
2474
|
+
border-radius: var(--border-radius-400);
|
|
2475
|
+
height: 46px;
|
|
2476
|
+
max-width: -moz-fit-content;
|
|
2477
|
+
max-width: fit-content;
|
|
2478
|
+
box-sizing: border-box;
|
|
2479
|
+
border: 1px solid var(--color-outline);
|
|
2480
|
+
display: flex;
|
|
2481
|
+
flex: 1 1 0;
|
|
2482
|
+
align-items: center;
|
|
2483
|
+
gap: 12px;
|
|
2484
|
+
}
|
|
2485
|
+
._UZMd0 {
|
|
2486
|
+
display: flex;
|
|
2487
|
+
width: 24px;
|
|
2488
|
+
height: 38px;
|
|
2489
|
+
align-items: center;
|
|
2490
|
+
justify-content: center;
|
|
2491
|
+
}
|
|
2492
|
+
._mJAeX {
|
|
2493
|
+
overflow: hidden;
|
|
2494
|
+
white-space: nowrap;
|
|
2495
|
+
}
|
|
2496
|
+
._mJAeX > p {
|
|
2497
|
+
overflow: hidden;
|
|
2498
|
+
text-overflow: ellipsis;
|
|
2499
|
+
}
|
|
2500
|
+
._ZFsBE {
|
|
2501
|
+
padding-left: 4px;
|
|
2502
|
+
}
|
|
2503
|
+
._UN43A {
|
|
2504
|
+
padding-right: 8px;
|
|
2505
|
+
}
|
|
2506
|
+
._bTamw {
|
|
2507
|
+
flex-shrink: 0;
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
._ULD-f {
|
|
2511
|
+
background: var(--color-info-container-variant);
|
|
2512
|
+
}
|
|
2513
|
+
._ULD-f ._UZMd0 {
|
|
2514
|
+
color: var(--color-info-on-container-variant);
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
._5MitA {
|
|
2518
|
+
background: var(--color-success-container-variant);
|
|
2519
|
+
}
|
|
2520
|
+
._5MitA ._UZMd0 {
|
|
2521
|
+
color: var(--color-success-on-container-variant);
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
._8wmuB {
|
|
2525
|
+
background: var(--color-danger-container-variant);
|
|
2526
|
+
}
|
|
2527
|
+
._8wmuB ._UZMd0 {
|
|
2528
|
+
color: var(--color-danger-on-container-variant);
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
._515OI {
|
|
2532
|
+
background: var(--color-warning-container-variant);
|
|
2533
|
+
}
|
|
2534
|
+
._515OI ._UZMd0 {
|
|
2535
|
+
color: var(--color-warning-on-container-variant);
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
._EfwcL {
|
|
2539
|
+
background: var(--color-upsell-container-variant);
|
|
2540
|
+
}
|
|
2541
|
+
._EfwcL ._UZMd0 {
|
|
2542
|
+
color: var(--color-upsell-on-container-variant);
|
|
2543
|
+
}
|
|
2471
2544
|
._FsCJQ {
|
|
2472
2545
|
font-family: var(--font-family-body);
|
|
2473
2546
|
font-size: var(--font-size-200);
|