@sonic-equipment/ui 0.0.76 → 0.0.78
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/index.d.ts +21 -8
- package/dist/index.js +832 -229
- package/dist/src/buttons/link/link.d.ts +1 -1
- package/dist/src/carousel/usp-carousel/usp-carousel.d.ts +8 -0
- package/dist/src/media/image/image.d.ts +12 -2
- package/dist/src/pages/product-listing-page/product-listing-page-category-carousel/product-listing-page-category-carousel.d.ts +3 -0
- package/dist/src/pages/search-result-page/search-results-page-category-carousel/search-results-page-category-carousel.d.ts +1 -0
- package/dist/src/shared/api/bff/model/bff.model.d.ts +9 -1
- package/dist/src/shared/feature-flags/feature-flags.stories.d.ts +9 -0
- package/dist/src/shared/feature-flags/use-feature-flags.d.ts +8 -5
- package/dist/src/shared/model/category.d.ts +12 -0
- package/dist/src/shared/model/image.d.ts +2 -2
- package/dist/src/usp/product-usp.d.ts +5 -0
- package/dist/styles.css +482 -127
- package/package.json +1 -1
- package/dist/src/carousel/category-carousel/connected-category-carousel.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -120,11 +120,14 @@ interface Request {
|
|
|
120
120
|
}
|
|
121
121
|
declare const request: Request;
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
123
|
+
declare const features: {
|
|
124
|
+
readonly pdp: "pdpV2";
|
|
125
|
+
readonly plp: "plpV2";
|
|
126
|
+
readonly search: "searchV2";
|
|
127
|
+
};
|
|
128
|
+
type FeatureKeys = keyof typeof features;
|
|
129
|
+
type FeatureValues = (typeof features)[FeatureKeys];
|
|
130
|
+
type UseFeatureFlagsReturnType = Record<FeatureValues, boolean>;
|
|
128
131
|
declare function useFeatureFlags(): UseFeatureFlagsReturnType;
|
|
129
132
|
|
|
130
133
|
interface BaseModel$1 {
|
|
@@ -4213,7 +4216,7 @@ interface ImageSource {
|
|
|
4213
4216
|
fallbackSrc?: string
|
|
4214
4217
|
fit?: 'contain' | 'cover'
|
|
4215
4218
|
height?: number
|
|
4216
|
-
image: Image$1 | ResponsiveImage
|
|
4219
|
+
image: Image$1 | ResponsiveImage | undefined
|
|
4217
4220
|
loading?: 'lazy' | 'eager'
|
|
4218
4221
|
onError?: () => void
|
|
4219
4222
|
title: string
|
|
@@ -4301,7 +4304,7 @@ interface LinkProps extends LinkProps$2, RefAttributes<HTMLAnchorElement> {
|
|
|
4301
4304
|
onMouseMove?(event: MouseEvent): void;
|
|
4302
4305
|
role?: 'option';
|
|
4303
4306
|
}
|
|
4304
|
-
declare function Link({ children, className, color, hasUnderline, onClick: _onClick, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
|
|
4307
|
+
declare function Link({ children, className, color, hasUnderline, onClick: _onClick, ref, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
|
|
4305
4308
|
|
|
4306
4309
|
type AddToCartState = 'initial' | 'spinner' | 'manual-input';
|
|
4307
4310
|
interface AddToCartButtonProps {
|
|
@@ -4542,7 +4545,17 @@ interface ProgressCircleProps {
|
|
|
4542
4545
|
}
|
|
4543
4546
|
declare function ProgressCircle({ className }: ProgressCircleProps): react_jsx_runtime.JSX.Element;
|
|
4544
4547
|
|
|
4545
|
-
|
|
4548
|
+
interface ImageProps {
|
|
4549
|
+
className?: string;
|
|
4550
|
+
fallbackSrc?: string;
|
|
4551
|
+
fit?: 'contain' | 'cover';
|
|
4552
|
+
height?: number;
|
|
4553
|
+
image: Image$1 | ResponsiveImage | undefined;
|
|
4554
|
+
loading?: 'lazy' | 'eager';
|
|
4555
|
+
onError?: () => void;
|
|
4556
|
+
title: string;
|
|
4557
|
+
width?: number;
|
|
4558
|
+
}
|
|
4546
4559
|
declare function Image({ className, fallbackSrc, fit, height, image, loading, title, width, }: ImageProps): react_jsx_runtime.JSX.Element;
|
|
4547
4560
|
|
|
4548
4561
|
declare function PageContainer({ children, className, }: {
|