@foodpilot/foods 0.6.4 → 0.6.6
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/components/LinearProgress.d.ts +2 -0
- package/dist/components/ProgressCard/ProgressCard.d.ts +31 -0
- package/dist/components/ProgressCard/index.d.ts +1 -0
- package/dist/components/Tags/FoodsTags.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/main.js +17809 -16161
- package/dist/main.umd.cjs +123 -123
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ import { LinearProgressProps as MuiLinearProgressProps } from '@mui/material/Lin
|
|
|
2
2
|
type LinearProgressBaseProps = Omit<MuiLinearProgressProps, "classes" | "sx" | "valueBuffer" | "variant">;
|
|
3
3
|
export interface LinearProgressProps extends LinearProgressBaseProps {
|
|
4
4
|
value: number;
|
|
5
|
+
height?: string;
|
|
6
|
+
hideValueLabel?: boolean;
|
|
5
7
|
styleProperties?: LinearProgressStyleProperties;
|
|
6
8
|
}
|
|
7
9
|
export type LinearProgressStyleProperties = {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { iconMapping } from '../Icons';
|
|
3
|
+
type ProgressCardTextOptionsProps = {
|
|
4
|
+
actionText: string;
|
|
5
|
+
heading: string;
|
|
6
|
+
progressLabel: string;
|
|
7
|
+
validatedLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
type ProgressCardHeadingOptions = {
|
|
10
|
+
hidden?: false;
|
|
11
|
+
showIcon?: true;
|
|
12
|
+
icon?: keyof typeof iconMapping;
|
|
13
|
+
} | {
|
|
14
|
+
hidden?: false;
|
|
15
|
+
headingValue?: string | number;
|
|
16
|
+
headingValueColor?: string;
|
|
17
|
+
showIcon: false;
|
|
18
|
+
} | {
|
|
19
|
+
hidden?: true;
|
|
20
|
+
};
|
|
21
|
+
export type ProgressCardProps = {
|
|
22
|
+
headingIcon?: ReactNode;
|
|
23
|
+
progress: number;
|
|
24
|
+
onAction?: () => void;
|
|
25
|
+
isValidated?: boolean;
|
|
26
|
+
sx?: React.CSSProperties;
|
|
27
|
+
headingOptions: ProgressCardHeadingOptions;
|
|
28
|
+
textOptions: ProgressCardTextOptionsProps;
|
|
29
|
+
};
|
|
30
|
+
export declare const ProgressCard: (props: ProgressCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProgressCard';
|