From 6a101f7b6819bedb9e37e92e663ff256ed7cff69 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Mon, 9 Feb 2026 11:45:41 +0100 Subject: [PATCH] refactor: change exported types and constants to internal scope in Facehash and RicercaProvider components --- .../src/components/facehash/facehash.tsx | 6 +- .../src/components/facehash/faces.tsx | 56 +++++++++---------- .../src/providers/RicercaProvider.tsx | 2 +- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/apps/infoalloggi/src/components/facehash/facehash.tsx b/apps/infoalloggi/src/components/facehash/facehash.tsx index 260efa3..1241aa2 100644 --- a/apps/infoalloggi/src/components/facehash/facehash.tsx +++ b/apps/infoalloggi/src/components/facehash/facehash.tsx @@ -4,10 +4,10 @@ import { FACES } from "./faces"; // from https://github.com/cossistantcom/cossistant/tree/main/packages/facehash -export type Intensity3D = "none" | "subtle" | "medium" | "dramatic"; -export type Variant = "gradient" | "solid"; +type Intensity3D = "none" | "subtle" | "medium" | "dramatic"; +type Variant = "gradient" | "solid"; -export interface FacehashProps +interface FacehashProps extends Omit, "children"> { /** * String to generate a deterministic face from. diff --git a/apps/infoalloggi/src/components/facehash/faces.tsx b/apps/infoalloggi/src/components/facehash/faces.tsx index 7f3d2a9..b17947b 100644 --- a/apps/infoalloggi/src/components/facehash/faces.tsx +++ b/apps/infoalloggi/src/components/facehash/faces.tsx @@ -1,6 +1,6 @@ import type * as React from "react"; -export type FaceProps = { +type FaceProps = { className?: string; style?: React.CSSProperties; }; @@ -8,7 +8,7 @@ export type FaceProps = { /** * Round eyes face - simple circular eyes */ -export const RoundFace: React.FC = ({ className, style }) => ( +const RoundFace: React.FC = ({ className, style }) => (