From ee34b7b81c990bcd765fec34d2ef1161a3b7f679 Mon Sep 17 00:00:00 2001 From: Kathryn Isabelle Lawrence Date: Wed, 11 Mar 2026 16:37:12 -0700 Subject: [PATCH 1/2] export pills --- packages/components/src/components/property/index.tsx | 6 ++++++ packages/components/src/components/property/pills.tsx | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/packages/components/src/components/property/index.tsx b/packages/components/src/components/property/index.tsx index 0cbf767e..830dd0b1 100644 --- a/packages/components/src/components/property/index.tsx +++ b/packages/components/src/components/property/index.tsx @@ -1,4 +1,10 @@ export type { ParamHeadProps } from "./param-head"; export { ParamHead } from "./param-head"; +export type { + DeprecatedPillProps, + InfoPillProps, + RequiredPillProps, +} from "./pills"; +export { DeprecatedPill, InfoPill, RequiredPill } from "./pills"; export type { PropertyProps } from "./property"; export { Property } from "./property"; diff --git a/packages/components/src/components/property/pills.tsx b/packages/components/src/components/property/pills.tsx index bbfc7105..36e051d7 100644 --- a/packages/components/src/components/property/pills.tsx +++ b/packages/components/src/components/property/pills.tsx @@ -24,6 +24,10 @@ const InfoPill = ({ children, prefix, className }: InfoPillProps) => { ); }; +type RequiredPillProps = { + label?: string; +}; + const RequiredPill = ({ label }: { label?: string }) => { if (!label) { return null; @@ -39,6 +43,10 @@ const RequiredPill = ({ label }: { label?: string }) => { ); }; +type DeprecatedPillProps = { + label?: string; +}; + const DeprecatedPill = ({ label }: { label?: string }) => { if (!label) { return null; @@ -55,3 +63,5 @@ const DeprecatedPill = ({ label }: { label?: string }) => { }; export { InfoPill, RequiredPill, DeprecatedPill }; + +export type { InfoPillProps, RequiredPillProps, DeprecatedPillProps }; From f296e9c009406fb5264a28a33f6276f3f24a2bc7 Mon Sep 17 00:00:00 2001 From: Kathryn Isabelle Lawrence Date: Wed, 11 Mar 2026 16:40:31 -0700 Subject: [PATCH 2/2] use new props --- packages/components/src/components/property/pills.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/components/property/pills.tsx b/packages/components/src/components/property/pills.tsx index 36e051d7..083146f4 100644 --- a/packages/components/src/components/property/pills.tsx +++ b/packages/components/src/components/property/pills.tsx @@ -28,7 +28,7 @@ type RequiredPillProps = { label?: string; }; -const RequiredPill = ({ label }: { label?: string }) => { +const RequiredPill = ({ label }: RequiredPillProps) => { if (!label) { return null; } @@ -47,7 +47,7 @@ type DeprecatedPillProps = { label?: string; }; -const DeprecatedPill = ({ label }: { label?: string }) => { +const DeprecatedPill = ({ label }: DeprecatedPillProps) => { if (!label) { return null; }