@foodpilot/foods 0.3.72 → 0.3.74

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.
Files changed (56) hide show
  1. package/dist/components/Cards/ScoreCard/Header/ScoreCardHeader.d.ts +1 -0
  2. package/dist/components/Chart/EvolutionChart/Legend.d.ts +15 -0
  3. package/dist/components/Chart/EvolutionChart/Popover.d.ts +16 -0
  4. package/dist/components/Chart/EvolutionChart/lineRepositionPlugin.d.ts +3 -0
  5. package/dist/components/Chart/EvolutionChart/utils.d.ts +9 -0
  6. package/dist/components/Chart/EvolutionChart.d.ts +26 -0
  7. package/dist/components/Chart/index.d.ts +1 -0
  8. package/dist/components/ComparisonBlock/Blocks/HorizontalLargeBlock.d.ts +1 -1
  9. package/dist/components/ComparisonBlock/Blocks/HorizontalMediumBlock.d.ts +1 -1
  10. package/dist/components/ComparisonBlock/Blocks/HorizontalSmallBlock.d.ts +1 -1
  11. package/dist/components/ComparisonBlock/Blocks/VerticalLargeBlock.d.ts +1 -1
  12. package/dist/components/ComparisonBlock/Blocks/VerticalMediumBlock.d.ts +1 -1
  13. package/dist/components/ComparisonBlock/{getColorAndArrow.d.ts → useColorAndArrow.d.ts} +2 -4
  14. package/dist/components/Experimental/RichTextEditor/RichTextEditor.d.ts +7 -0
  15. package/dist/components/Experimental/RichTextEditor/Toolbar.d.ts +1 -0
  16. package/dist/components/Experimental/RichTextEditor/index.d.ts +1 -0
  17. package/dist/components/Experimental/RichTextEditor/styles.d.ts +18 -0
  18. package/dist/components/Icons/iconConfig.d.ts +3 -0
  19. package/dist/components/RichTextEditor/RichTextEditor.d.ts +34 -0
  20. package/dist/components/RichTextEditor/components/ColorInput/index.d.ts +8 -0
  21. package/dist/components/RichTextEditor/components/ColorInput/style/index.d.ts +23 -0
  22. package/dist/components/RichTextEditor/components/Editor/style/index.d.ts +14 -0
  23. package/dist/components/RichTextEditor/components/Toolbar/style/index.d.ts +36 -0
  24. package/dist/components/RichTextEditor/constants/index.d.ts +3 -0
  25. package/dist/components/RichTextEditor/constants/textStyles.d.ts +11 -0
  26. package/dist/components/RichTextEditor/constants/toolbar.d.ts +21 -0
  27. package/dist/components/RichTextEditor/constants/typography.d.ts +20 -0
  28. package/dist/components/RichTextEditor/editor/EditorOutput.d.ts +8 -0
  29. package/dist/components/RichTextEditor/extensions/FontSize.d.ts +35 -0
  30. package/dist/components/RichTextEditor/extensions/SvgIconExtension.d.ts +15 -0
  31. package/dist/components/RichTextEditor/index.d.ts +1 -0
  32. package/dist/components/RichTextEditor/style/index.d.ts +2 -0
  33. package/dist/components/RichTextEditor/toolbar/AlignmentCommands.d.ts +17 -0
  34. package/dist/components/RichTextEditor/toolbar/FontControls.d.ts +17 -0
  35. package/dist/components/RichTextEditor/toolbar/IconSelector.d.ts +13 -0
  36. package/dist/components/RichTextEditor/toolbar/ListCommands.d.ts +16 -0
  37. package/dist/components/RichTextEditor/toolbar/TextCommands.d.ts +16 -0
  38. package/dist/components/RichTextEditor/toolbar/Toolbar.d.ts +17 -0
  39. package/dist/components/Text/TextTitle.d.ts +1 -1
  40. package/dist/components/Text/TextTitleGreyIcon.d.ts +1 -1
  41. package/dist/main.js +8991 -8518
  42. package/dist/main.umd.cjs +100 -100
  43. package/dist/themes/common/MUIComponents/avatars.d.ts +26 -0
  44. package/dist/themes/common/MUIComponents/buttons.d.ts +14 -0
  45. package/dist/themes/common/MUIComponents/typography.d.ts +17 -0
  46. package/dist/themes/common/colors.d.ts +329 -0
  47. package/dist/themes/common/components.d.ts +3 -0
  48. package/dist/themes/common/custom.d.ts +26 -0
  49. package/dist/themes/common/spacing.d.ts +3 -0
  50. package/package.json +13 -1
  51. package/dist/themes/ThemeExtensions.d.ts +0 -152
  52. package/dist/themes/common.d.ts +0 -11
  53. /package/dist/themes/{BredTheme.d.ts → themes/BredTheme.d.ts} +0 -0
  54. /package/dist/themes/{CollectiveTheme.d.ts → themes/CollectiveTheme.d.ts} +0 -0
  55. /package/dist/themes/{FoodPilotTheme.d.ts → themes/FoodPilotTheme.d.ts} +0 -0
  56. /package/dist/themes/{WinePilotTheme.d.ts → themes/WinePilotTheme.d.ts} +0 -0
@@ -9,5 +9,6 @@ export type HeaderOptions = {
9
9
  export type ScoreCardHeaderProps = {
10
10
  selectedItemId: number | null;
11
11
  options: HeaderOptions[];
12
+ information?: string;
12
13
  };
13
14
  export declare const ScoreCardHeader: (props: ScoreCardHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { Chart as ChartJS } from 'chart.js';
2
+ import { DoughnutChartLegendProps } from '../DoughnutChart/DoughnutChartLegend';
3
+ import { IconMapping } from '../../Icons';
4
+
5
+ type LegendProps = {
6
+ labels: string[];
7
+ icons?: (keyof IconMapping)[];
8
+ chart: ChartJS<"bar" | "line">;
9
+ handleOnMouseOver: (chart: ChartJS<"bar" | "line">, datasetIndex: number | undefined) => void;
10
+ legendPosition?: "bottom" | "right";
11
+ legend?: DoughnutChartLegendProps["legend"];
12
+ labelIndex?: number;
13
+ };
14
+ export declare const Legend: (props: LegendProps) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,16 @@
1
+ import { Chart as ChartJS } from 'chart.js';
2
+ import { IconMapping } from '../../Icons';
3
+
4
+ type PopoverProps = {
5
+ datasetIndex: number | undefined;
6
+ dataIndex: number;
7
+ chart?: ChartJS<"bar" | "line">;
8
+ evolution?: number;
9
+ reverse: boolean;
10
+ positiveArrowIcon: keyof IconMapping;
11
+ positiveColor: string;
12
+ negativeArrowIcon: keyof IconMapping;
13
+ negativeColor: string;
14
+ };
15
+ export declare const Popover: (props: PopoverProps) => import('react').ReactPortal | null;
16
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'chart.js';
2
+
3
+ export declare const lineReposition: Plugin<"line">;
@@ -0,0 +1,9 @@
1
+ import { Chart as ChartJS } from 'chart.js';
2
+
3
+ type BarLineChart = ChartJS<"bar" | "line">;
4
+ export declare const hideAllLineDatasets: (chart: BarLineChart) => void;
5
+ export declare const showEvolution: (chart: BarLineChart, datasetIndex: number | null, offset?: boolean) => void;
6
+ export declare const resetBarColor: (chart: BarLineChart) => void;
7
+ export declare const opacifyBarColor: (chart: BarLineChart, datasetIndex: number, hexOpacity?: string) => void;
8
+ export declare const COLORS: string[];
9
+ export {};
@@ -0,0 +1,26 @@
1
+ import { ChartDataset, ChartType } from 'chart.js';
2
+ import { IconMapping } from '../Icons';
3
+ import { DoughnutChartLegendProps } from './DoughnutChart/DoughnutChartLegend';
4
+
5
+ export type MixedChartDataset = ChartDataset<"line" | "bar">;
6
+ export type Dataset = {
7
+ label: string;
8
+ data: number[];
9
+ };
10
+ export type EvolutionChartProps = {
11
+ values: Dataset[];
12
+ labels: string[];
13
+ icons?: (keyof IconMapping)[];
14
+ positiveArrowIcon?: keyof IconMapping;
15
+ positiveColor?: string;
16
+ negativeArrowIcon?: keyof IconMapping;
17
+ negativeColor?: string;
18
+ reverse?: boolean;
19
+ legend?: DoughnutChartLegendProps["legend"];
20
+ };
21
+ export declare const EvolutionChart: (props: EvolutionChartProps) => import("react/jsx-runtime").JSX.Element;
22
+ declare module "chart.js" {
23
+ interface ChartDatasetProperties<TType extends ChartType, TData> {
24
+ kind?: "bottom" | "top";
25
+ }
26
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './DoughnutChart/DoughnutChart';
2
2
  export * from './ScatterPlot';
3
+ export * from './EvolutionChart';
@@ -1,5 +1,5 @@
1
1
  import { IconMapping } from '../../Icons';
2
- import { ColorSet } from '../getColorAndArrow';
2
+ import { ColorSet } from '../useColorAndArrow';
3
3
 
4
4
  type ComparisonBlockProps = {
5
5
  percentageDifference: string;
@@ -1,5 +1,5 @@
1
1
  import { IconMapping } from '../../Icons';
2
- import { ColorSet } from '../getColorAndArrow';
2
+ import { ColorSet } from '../useColorAndArrow';
3
3
 
4
4
  type ComparisonBlockProps = {
5
5
  percentageDifference: string;
@@ -1,5 +1,5 @@
1
1
  import { IconMapping } from '../../Icons';
2
- import { ColorSet } from '../getColorAndArrow';
2
+ import { ColorSet } from '../useColorAndArrow';
3
3
 
4
4
  type ComparisonBlockProps = {
5
5
  percentageDifference: string;
@@ -1,5 +1,5 @@
1
1
  import { IconMapping } from '../../Icons';
2
- import { ColorSet } from '../getColorAndArrow';
2
+ import { ColorSet } from '../useColorAndArrow';
3
3
 
4
4
  type ComparisonBlockProps = {
5
5
  percentageDifference: string;
@@ -1,5 +1,5 @@
1
1
  import { IconMapping } from '../../Icons';
2
- import { ColorSet } from '../getColorAndArrow';
2
+ import { ColorSet } from '../useColorAndArrow';
3
3
 
4
4
  type ComparisonBlockProps = {
5
5
  percentageDifference: string;
@@ -1,15 +1,13 @@
1
- import { IconMapping } from '../Icons';
1
+ import { IconMapping } from '../Icons/index.ts';
2
2
  import { Improvement } from './ComparisonBlock.tsx';
3
3
 
4
4
  export type ColorSet = {
5
5
  primaryColor: string;
6
6
  secondaryColor: string;
7
7
  };
8
- export type ColorsType = Record<string, ColorSet>;
9
- export declare const Colors: ColorsType;
10
8
  type IconAndColor = {
11
9
  icon: keyof IconMapping;
12
10
  color: ColorSet;
13
11
  };
14
- export declare const getColorAndArrowIcon: (currentValue: number, previousValue: number, improvement: Improvement) => IconAndColor;
12
+ export declare const useColorAndArrowIcon: (currentValue: number, previousValue: number, improvement: Improvement) => IconAndColor;
15
13
  export {};
@@ -0,0 +1,7 @@
1
+ interface EditorProps {
2
+ onChange?: (value: string) => void;
3
+ displayPreview?: boolean;
4
+ placeholder?: string;
5
+ }
6
+ export declare function RichTextEditor({ onChange, displayPreview, placeholder }: EditorProps): JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare function Toolbar(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './RichTextEditor';
@@ -0,0 +1,18 @@
1
+ export declare const theme: {
2
+ readonly text: {
3
+ readonly bold: "editor-text-bold";
4
+ readonly italic: "editor-text-italic";
5
+ readonly underline: "editor-text-underline";
6
+ readonly strikethrough: "editor-text-strikethrough";
7
+ readonly underlineStrikethrough: "editor-text-underlineStrikethrough";
8
+ };
9
+ readonly list: {
10
+ readonly ol: "editor-list-ol";
11
+ readonly ul: "editor-list-ul";
12
+ readonly listitem: "editor-listitem";
13
+ };
14
+ };
15
+ export declare const EditorRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const EditorContent: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
+ export declare const EditorPlaceholder: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ export declare const EditorPreview: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -296,6 +296,9 @@ export declare const iconMapping: {
296
296
  readonly previousCampaign: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
297
297
  title?: string;
298
298
  }>;
299
+ readonly questionnaireAnswer: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
300
+ title?: string;
301
+ }>;
299
302
  readonly questionMark: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
300
303
  title?: string;
301
304
  }>;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Props for the RichTextEditor component
3
+ * @interface RichTextEditorProps
4
+ * @property {function} onChange - Optional callback triggered when editor content changes
5
+ * @property {boolean} displayOutput - Optional flag to show the output mode
6
+ * @property {string} placeholder - Optional placeholder text when editor is empty
7
+ * @property {string} initialContent - Optional initial HTML content for the editor
8
+ */
9
+ interface RichTextEditorProps {
10
+ /** Callback function when editor content changes */
11
+ onChange?: (value: string) => void;
12
+ /** Whether to show preview mode */
13
+ displayOutput?: boolean;
14
+ /** Placeholder text when editor is empty */
15
+ placeholder?: string;
16
+ /** Initial HTML content */
17
+ initialContent?: string;
18
+ }
19
+ /**
20
+ * RichTextEditor Component
21
+ * A WYSIWYG editor built with TipTap that provides rich text editing capabilities
22
+ *
23
+ * Features:
24
+ * - Text formatting (bold, italic, underline)
25
+ * - Text alignment
26
+ * - Font family and size control
27
+ * - Text default styling selection
28
+ * - Icon selection
29
+ * - Text colors
30
+ * - Text formatting synced with cursor position using tiptap observables
31
+ * - Placeholder support
32
+ */
33
+ export default function RichTextEditor({ onChange, displayOutput, placeholder, initialContent }: RichTextEditorProps): JSX.Element | null;
34
+ export {};
@@ -0,0 +1,8 @@
1
+ interface ColorInputProps {
2
+ size: 'small' | 'medium' | 'large';
3
+ onChange: (color: string) => void;
4
+ variant: 'text' | 'contained';
5
+ currentColor: string | undefined;
6
+ }
7
+ export declare const ColorInput: ({ onChange, size, variant, currentColor }: ColorInputProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ export declare const colorPickerStyles: {
2
+ '.hidden-color-picker': {
3
+ position: string;
4
+ visibility: string;
5
+ width: number;
6
+ };
7
+ '.toolbar-button-text': {
8
+ display: string;
9
+ alignItems: string;
10
+ justifyContent: string;
11
+ fontSize: string;
12
+ minWidth: string;
13
+ };
14
+ };
15
+ export declare const ColorInputContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
17
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
18
+ export declare const ColorButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
19
+ ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
20
+ }, "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "href" | "disabled" | "action" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
21
+ currentColor?: string;
22
+ }, {}, {}>;
23
+ export declare const HiddenInput: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Container component for the rich text editor
3
+ * Provides border and basic layout styling
4
+ */
5
+ export declare const EditorContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
7
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
8
+ /**
9
+ * Styled wrapper for the editor content area
10
+ * Handles editor placeholder and basic text styling
11
+ */
12
+ export declare const StyledEditorContent: import('@emotion/styled').StyledComponent<Omit<Omit<import('@tiptap/react').EditorContentProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
13
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
14
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Styled button component for the editor toolbar
3
+ * Customizes MUI Button with specific styling for toolbar actions
4
+ */
5
+ export declare const ToolbarButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
6
+ ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
7
+ }, "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "href" | "disabled" | "action" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
8
+ export declare const TextCommandsContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
10
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
11
+ export declare const ToolbarContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
12
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
13
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
14
+ export declare const ToolbarGroup: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
16
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
17
+ export declare const StyledSelect: import('@emotion/styled').StyledComponent<(import('@mui/material').SelectProps<unknown> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>) & {
18
+ width?: number;
19
+ }, {}, {}>;
20
+ export declare const menuProps: {
21
+ PaperProps: {
22
+ style: {
23
+ maxHeight: number;
24
+ boxShadow: string;
25
+ borderRadius: string;
26
+ border: string;
27
+ marginTop: string;
28
+ };
29
+ };
30
+ };
31
+ export declare const menuItemStyles: {
32
+ fontSize: number;
33
+ borderRadius: number;
34
+ maxWidth: number;
35
+ maxHeight: number;
36
+ };
@@ -0,0 +1,3 @@
1
+ export * from './toolbar';
2
+ export * from './textStyles';
3
+ export * from './typography';
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ interface TextStyle {
4
+ PRESETS: {
5
+ label: string;
6
+ value: string;
7
+ htmllabel: ReactNode;
8
+ }[];
9
+ }
10
+ export declare const TEXTSTYLES: TextStyle;
11
+ export {};
@@ -0,0 +1,21 @@
1
+ export declare const TOOLBAR: {
2
+ DEBOUNCE: {
3
+ DELAY: number;
4
+ MAX_WAIT: number;
5
+ };
6
+ COLOR: {
7
+ DEFAULT: string;
8
+ PICKER_ID: string;
9
+ };
10
+ BUTTON: {
11
+ SIZE: {
12
+ SMALL: string;
13
+ MEDIUM: string;
14
+ LARGE: string;
15
+ };
16
+ VARIANT: {
17
+ TEXT: string;
18
+ CONTAINED: string;
19
+ };
20
+ };
21
+ };
@@ -0,0 +1,20 @@
1
+ export declare const TYPOGRAPHY: {
2
+ HEADING: {
3
+ H1: string;
4
+ H2: string;
5
+ H3: string;
6
+ H4: string;
7
+ };
8
+ SPACING: {
9
+ HEADING_MARGIN: number;
10
+ PARAGRAPH_MARGIN: number;
11
+ LIST_PADDING: number;
12
+ };
13
+ SIZES: string[];
14
+ FAMILIES: string[];
15
+ DEFAULTS: {
16
+ SIZE: string;
17
+ FAMILY: string;
18
+ COLOR: string;
19
+ };
20
+ };
@@ -0,0 +1,8 @@
1
+ import { Editor } from '@tiptap/react';
2
+
3
+ interface OutputProps {
4
+ editor: Editor;
5
+ displayOutput: boolean;
6
+ }
7
+ export declare const EditorOutput: ({ editor, displayOutput }: OutputProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,35 @@
1
+ import { Extension } from '@tiptap/core';
2
+
3
+ /**
4
+ * Configuration options for the FontSize extension
5
+ * @interface FontSizeOptions
6
+ * @property {string[]} types - Array of node types that can have font size applied (usually ['textStyle'])
7
+ * @property {Record<string, unknown>} HTMLAttributes - Additional HTML attributes to be applied to the font size marks
8
+ */
9
+ interface FontSizeOptions {
10
+ types: string[];
11
+ HTMLAttributes: Record<string, unknown>;
12
+ }
13
+ /**
14
+ * Extend TipTap's core Commands interface to include our fontSize commands
15
+ * This declaration merging adds type support for the fontSize commands
16
+ */
17
+ declare module '@tiptap/core' {
18
+ interface Commands<ReturnType> {
19
+ fontSize: {
20
+ /**
21
+ * Command to set the font size of the selected text
22
+ * @param size - Font size value (e.g., '16px', '1.2em', etc.)
23
+ * @returns Command chain return type
24
+ */
25
+ setFontSize: (size: string) => ReturnType;
26
+ };
27
+ }
28
+ }
29
+ /**
30
+ * FontSize Extension
31
+ * A TipTap extension that adds font size manipulation capabilities to the editor.
32
+ * It uses the textStyle mark to store and render font sizes.
33
+ */
34
+ export declare const FontSize: Extension<FontSizeOptions, any>;
35
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Node } from '@tiptap/core';
2
+
3
+ declare module '@tiptap/core' {
4
+ interface Commands<ReturnType> {
5
+ svgIcon: {
6
+ setSvgIcon: (options: {
7
+ src: string;
8
+ }) => ReturnType;
9
+ };
10
+ }
11
+ }
12
+ export interface SvgIconOptions {
13
+ HTMLAttributes: Record<string, unknown>;
14
+ }
15
+ export declare const SvgIconExtension: Node<SvgIconOptions, any>;
@@ -0,0 +1 @@
1
+ export * from './RichTextEditor';
@@ -0,0 +1,2 @@
1
+ export declare const EditorIconWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
2
+ export declare const EditorIcon: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -0,0 +1,17 @@
1
+ import { Editor } from '@tiptap/react';
2
+
3
+ /**
4
+ * Props for the AlignmentCommands component
5
+ * @interface AlignmentCommandsProps
6
+ * @property {Editor} editor - TipTap editor instance
7
+ */
8
+ interface AlignmentCommandsProps {
9
+ editor: Editor;
10
+ }
11
+ /**
12
+ * AlignmentCommands Component
13
+ * Renders a group of buttons for text alignment control (left, center, right)
14
+ * Each button toggles its respective alignment and shows active state when selected
15
+ */
16
+ export default function AlignmentCommands({ editor }: AlignmentCommandsProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Editor } from '@tiptap/react';
2
+
3
+ /**
4
+ * Props for the FontControls component
5
+ * @interface FontControlsProps
6
+ * @property {Editor} editor - TipTap editor instance
7
+ */
8
+ interface FontControlsProps {
9
+ editor: Editor;
10
+ }
11
+ /**
12
+ * FontControls Component
13
+ * Provides dropdown controls for font size and font family selection
14
+ * Maintains state synchronization with the editor's current selection
15
+ */
16
+ export default function FontControls({ editor }: FontControlsProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Editor } from '@tiptap/react';
2
+
3
+ interface IconSelectorProps {
4
+ editor: Editor;
5
+ iconColor?: string;
6
+ }
7
+ /**
8
+ * IconSelector Component
9
+ * Allows users to select and insert SVG icons into the editor
10
+ * Icons are inserted as text that can be styled and modified
11
+ */
12
+ export default function IconSelector({ editor }: IconSelectorProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,16 @@
1
+ import { Editor } from '@tiptap/react';
2
+
3
+ /**
4
+ * Props for the ListControls component
5
+ * @interface ListControlsProps
6
+ * @property {Editor} editor - TipTap editor instance
7
+ */
8
+ interface ListControlsProps {
9
+ editor: Editor;
10
+ }
11
+ /**
12
+ * ListControls Component
13
+ * Renders a tool containing lists controls, ordered and unordered
14
+ */
15
+ export default function ListControls({ editor }: ListControlsProps): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -0,0 +1,16 @@
1
+ import { Editor } from '@tiptap/react';
2
+
3
+ /**
4
+ * Props for the TextCommands component
5
+ * @interface TextCommandsProps
6
+ * @property {Editor} editor - TipTap editor instance
7
+ */
8
+ interface TextCommandsProps {
9
+ editor: Editor;
10
+ }
11
+ /**
12
+ * TextCommands Component
13
+ * Renders a tool containing font controls, text style and colors
14
+ */
15
+ export default function TextCommands({ editor }: TextCommandsProps): import("react/jsx-runtime").JSX.Element | null;
16
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Editor } from '@tiptap/react';
2
+
3
+ /**
4
+ * Props for the Toolbar component
5
+ * @interface ToolbarProps
6
+ * @property {Editor} editor - TipTap editor instance
7
+ */
8
+ interface ToolbarProps {
9
+ editor: Editor;
10
+ }
11
+ /**
12
+ * Toolbar Component
13
+ * Renders a toolbar containing font controls, text formatting, and alignment options
14
+ * Each section is separated by vertical dividers for visual organization
15
+ */
16
+ export default function Toolbar({ editor }: ToolbarProps): import("react/jsx-runtime").JSX.Element | null;
17
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { customTypographyVariants } from '../../themes/ThemeExtensions';
2
+ import { customTypographyVariants } from '../../themes/common/MUIComponents/typography';
3
3
 
4
4
  export type TextTitleProps = {
5
5
  title: string;
@@ -1,4 +1,4 @@
1
- import { customTypographyVariants } from '../../themes/ThemeExtensions';
1
+ import { customTypographyVariants } from '../../themes/common/MUIComponents/typography';
2
2
 
3
3
  export type TextTitleGreyIconProps = {
4
4
  title: string;