@hashicorp/mds-react 0.9.2 → 0.9.3

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 (97) hide show
  1. package/components/accordion/index.d.ts +1 -1
  2. package/components/accordion/item/index.d.ts +1 -1
  3. package/components/alert/icon.d.ts +2 -2
  4. package/components/alert/index.d.ts +6 -6
  5. package/components/badge/index.d.ts +1 -1
  6. package/components/badge-count/index.d.ts +1 -1
  7. package/components/breadcrumbs/index.d.ts +2 -2
  8. package/components/breadcrumbs/item/index.d.ts +1 -1
  9. package/components/breadcrumbs/truncation-button/index.d.ts +1 -1
  10. package/components/breadcrumbs/types/index.d.ts +1 -1
  11. package/components/button/index.d.ts +2 -2
  12. package/components/card/card-thumbnail/index.d.ts +1 -1
  13. package/components/card/index.d.ts +2 -2
  14. package/components/card/types.d.ts +3 -3
  15. package/components/code-block/code-lines/index.d.ts +1 -8
  16. package/components/code-block/code-lines/utils/split-html-into-lines.d.ts +1 -1
  17. package/components/code-block/code-lines/utils/split-jsx-into-lines.d.ts +1 -1
  18. package/components/code-block/hidden-copy-content/index.d.ts +3 -3
  19. package/components/code-block/index.d.ts +1 -1
  20. package/components/combo-box-primitive/index.d.ts +1 -0
  21. package/components/dialog-primitive/index.d.ts +1 -1
  22. package/components/disclosure-primitive/index.d.ts +1 -2
  23. package/components/disclosure-primitive/use-disclosure-primitive.d.ts +2 -2
  24. package/components/dismiss-button/index.d.ts +1 -0
  25. package/components/dropdown/index.d.ts +6 -6
  26. package/components/dropdown/list-item/custom.d.ts +1 -1
  27. package/components/dropdown/list-item/index.d.ts +4 -4
  28. package/components/dropdown/list-item/interactive.d.ts +1 -1
  29. package/components/dropdown/list-item/separator.d.ts +1 -1
  30. package/components/dropdown/list-item/title.d.ts +1 -1
  31. package/components/dropdown/toggle-button/index.d.ts +2 -2
  32. package/components/flight-icon/index.d.ts +2 -2
  33. package/components/form/checkbox/index.d.ts +1 -1
  34. package/components/form/error/index.d.ts +1 -1
  35. package/components/form/field/index.d.ts +1 -1
  36. package/components/form/fieldset/index.d.ts +1 -1
  37. package/components/form/file-input/index.d.ts +1 -1
  38. package/components/form/helper-text/index.d.ts +1 -1
  39. package/components/form/label/index.d.ts +1 -1
  40. package/components/form/legend/index.d.ts +1 -1
  41. package/components/form/radio/index.d.ts +1 -1
  42. package/components/form/radio-card/group.d.ts +1 -1
  43. package/components/form/radio-card/index.d.ts +2 -2
  44. package/components/form/select/index.d.ts +1 -1
  45. package/components/form/super-select/index.d.ts +2 -2
  46. package/components/form/text-input/index.d.ts +1 -1
  47. package/components/form/textarea/index.d.ts +1 -1
  48. package/components/form/toggle/index.d.ts +1 -1
  49. package/components/hds/wrappers/tooltip.d.ts +3 -4
  50. package/components/icon-tile/index.d.ts +1 -1
  51. package/components/inline-link/index.d.ts +1 -1
  52. package/components/interactive/index.d.ts +3 -4
  53. package/components/legacy-button/index.d.ts +3 -3
  54. package/components/legacy-button/types.d.ts +1 -1
  55. package/components/legacy-button/utils.d.ts +1 -1
  56. package/components/menu-primitive/index.d.ts +1 -1
  57. package/components/menu-primitive/use-menu-primitive.d.ts +2 -2
  58. package/components/modal/index.d.ts +1 -1
  59. package/components/modal/use-modal.d.ts +2 -2
  60. package/components/separator/index.d.ts +1 -1
  61. package/components/standalone-link/index.d.ts +2 -2
  62. package/components/table/index.d.ts +5 -5
  63. package/components/table/td.d.ts +2 -2
  64. package/components/table/th.d.ts +2 -2
  65. package/components/table/tr.d.ts +1 -1
  66. package/components/tabs/index.d.ts +3 -3
  67. package/components/tabs/tab-panel.d.ts +1 -1
  68. package/components/tabs/tab.d.ts +2 -2
  69. package/components/tabs/use-tabs-context.d.ts +2 -2
  70. package/components/text/index.d.ts +6 -6
  71. package/components/visualizations/bar-chart/horizontal-chart/index.d.ts +1 -0
  72. package/components/visualizations/bar-chart/index.d.ts +1 -1
  73. package/components/visualizations/donut-chart/components/arc-tooltip/index.d.ts +2 -2
  74. package/components/visualizations/donut-chart/components/external-arc-label/index.d.ts +2 -2
  75. package/components/visualizations/donut-chart/components/internal-arc-label/index.d.ts +2 -2
  76. package/components/visualizations/donut-chart/index.d.ts +1 -1
  77. package/package.json +1 -1
  78. package/patterns/card/newsroom-card/index.d.ts +1 -1
  79. package/patterns/card/partner-card/index.d.ts +2 -2
  80. package/patterns/card/person-card/index.d.ts +1 -1
  81. package/patterns/card/primitives.d.ts +5 -5
  82. package/patterns/card/promo-card/index.d.ts +1 -1
  83. package/patterns/card/resource-card/index.d.ts +1 -1
  84. package/patterns/card/thumbnails/index.d.ts +1 -1
  85. package/patterns/card/types.d.ts +6 -6
  86. package/patterns/card/unified-card/index.d.ts +1 -1
  87. package/patterns/copy-button/clipboard.d.ts +1 -1
  88. package/patterns/copy-button/index.d.ts +1 -1
  89. package/patterns/layout/index.d.ts +20 -20
  90. package/patterns/product-logo/index.d.ts +15 -15
  91. package/patterns/related-content/index.d.ts +1 -1
  92. package/patterns/related-content/types.d.ts +1 -1
  93. package/style.css +1 -1
  94. package/styles/mixins/button.scss +1 -6
  95. package/utils/i18n/index.d.ts +1 -1
  96. package/utils/make-normalizer/index.d.ts +6 -6
  97. package/utils/mds-context/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
- import type { HTMLAttributes, ReactNode } from 'react';
2
- import { type Density, type VerticalAlignment } from './utils';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { Density, VerticalAlignment } from './utils';
3
3
  export interface TableProps extends HTMLAttributes<HTMLTableElement> {
4
4
  /**
5
5
  * Define on the table invocation. If set to `true`, even-numbered rows will have a different background color from odd-numbered rows.
@@ -41,17 +41,17 @@ declare namespace TBody {
41
41
  declare const Table: {
42
42
  Root: typeof Root;
43
43
  TR: {
44
- ({ children, className, ...rest }: import("./tr").TRProps): import("react/jsx-runtime").JSX.Element;
44
+ ({ children, className, ...rest }: import('./tr').TRProps): import("react/jsx-runtime").JSX.Element;
45
45
  displayName: string;
46
46
  };
47
47
  THead: typeof THead;
48
48
  TH: {
49
- ({ align, width, scope, tooltip, isVisuallyHidden, children, className, ...rest }: import("./th").THProps): import("react/jsx-runtime").JSX.Element;
49
+ ({ align, width, scope, tooltip, isVisuallyHidden, children, className, ...rest }: import('./th').THProps): import("react/jsx-runtime").JSX.Element;
50
50
  displayName: string;
51
51
  };
52
52
  TBody: typeof TBody;
53
53
  TD: {
54
- ({ align, children, className, ...rest }: import("./td").TDProps): import("react/jsx-runtime").JSX.Element;
54
+ ({ align, children, className, ...rest }: import('./td').TDProps): import("react/jsx-runtime").JSX.Element;
55
55
  displayName: string;
56
56
  };
57
57
  };
@@ -1,5 +1,5 @@
1
- import { type HorizontalAlignment } from './utils';
2
- import type { HTMLAttributes, ReactNode } from 'react';
1
+ import { HorizontalAlignment } from './utils';
2
+ import { HTMLAttributes, ReactNode } from 'react';
3
3
  export interface TDProps extends HTMLAttributes<HTMLTableCellElement> {
4
4
  /**
5
5
  * Determines the horizontal content alignment (sometimes referred to as text alignment) for the cell (make sure it is also set for the column header).
@@ -1,5 +1,5 @@
1
- import { type HTMLAttributes, type ReactNode } from 'react';
2
- import type { HorizontalAlignment, Scope } from './utils';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { HorizontalAlignment, Scope } from './utils';
3
3
  export interface THProps extends HTMLAttributes<HTMLTableCellElement> {
4
4
  /**
5
5
  * Determines the horizontal content alignment (sometimes referred to as text alignment) for the column header.
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes, ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  export interface TRProps extends HTMLAttributes<HTMLTableRowElement> {
3
3
  /**
4
4
  * Elements passed as children are yielded as inner content of a `<tr>` HTML element.
@@ -1,4 +1,4 @@
1
- import { type ReactNode, type HTMLAttributes, type MouseEvent } from 'react';
1
+ import { ReactNode, HTMLAttributes, MouseEvent } from 'react';
2
2
  export interface TabsProps extends HTMLAttributes<HTMLDivElement> {
3
3
  onClickTab?: (event: MouseEvent<HTMLButtonElement>, tabIndex: number) => void;
4
4
  initialSelectedTabIndex?: number;
@@ -14,8 +14,8 @@ interface TabsListProps {
14
14
  declare const Tabs: {
15
15
  Provider: ({ children, onClickTab, initialSelectedTabIndex, size, className, ...rest }: TabsProps) => import("react/jsx-runtime").JSX.Element;
16
16
  TabList: ({ children, className }: TabsListProps) => import("react/jsx-runtime").JSX.Element;
17
- Panel: ({ children, className, ...rest }: import("./tab-panel").TabPanelProps) => import("react/jsx-runtime").JSX.Element;
18
- Tab: ({ count, icon, isSelected: isInitialTab, children, className, trackingKey, tabIndicatorTheme, ...rest }: import("./tab").TabProps) => import("react/jsx-runtime").JSX.Element;
17
+ Panel: ({ children, className, ...rest }: import('./tab-panel').TabPanelProps) => import("react/jsx-runtime").JSX.Element;
18
+ Tab: ({ count, icon, isSelected: isInitialTab, children, className, trackingKey, tabIndicatorTheme, ...rest }: import('./tab').TabProps) => import("react/jsx-runtime").JSX.Element;
19
19
  };
20
20
  export type { TabsListProps };
21
21
  export { Tabs };
@@ -1,4 +1,4 @@
1
- import { type HTMLAttributes } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  type TabPanelProps = HTMLAttributes<HTMLDivElement>;
3
3
  declare const TabPanel: ({ children, className, ...rest }: TabPanelProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export type { TabPanelProps };
@@ -1,5 +1,5 @@
1
- import { type HTMLAttributes } from 'react';
2
- import type { FlightIconName } from '../flight-icon';
1
+ import { HTMLAttributes } from 'react';
2
+ import { FlightIconName } from '../flight-icon';
3
3
  interface TabProps extends HTMLAttributes<HTMLLIElement> {
4
4
  tabIndicatorTheme?: 'primary' | 'secondary';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { type MutableRefObject, type MouseEvent, type KeyboardEvent } from 'react';
1
+ import { MutableRefObject, MouseEvent, KeyboardEvent } from 'react';
2
2
  interface TabsContextState {
3
3
  tabNodes: MutableRefObject<Array<HTMLButtonElement>>;
4
4
  panelNodes: MutableRefObject<Array<HTMLDivElement>>;
@@ -10,6 +10,6 @@ interface TabsContextState {
10
10
  size: 'medium' | 'large';
11
11
  tabsListRef: MutableRefObject<HTMLUListElement | null>;
12
12
  }
13
- export declare const TabsContext: import("react").Context<TabsContextState | undefined>;
13
+ export declare const TabsContext: import('react').Context<TabsContextState | undefined>;
14
14
  export declare function useTabsContext(): TabsContextState;
15
15
  export {};
@@ -1,4 +1,4 @@
1
- import { type ComponentPropsWithRef, type ElementType } from 'react';
1
+ import { ComponentPropsWithRef, ElementType } from 'react';
2
2
  declare const TEXT_COLORS: readonly ["primary", "strong", "faint", "disabled", "high-contrast", "action", "action-hover", "action-active", "highlight", "highlight-on-surface", "highlight-high-contrast", "success", "success-on-surface", "success-high-contrast", "warning", "warning-on-surface", "warning-high-contrast", "critical", "critical-on-surface", "critical-high-contrast"];
3
3
  declare const TEXT_GROUPS: readonly ["hds-body", "code", "body", "display-expressive", "label"];
4
4
  declare const TEXT_SIZES: readonly ["100", "200", "300", "400", "500", "600", "700", "800"];
@@ -35,10 +35,10 @@ interface CodeProps<T extends ElementType> extends BaseTextProps<T> {
35
35
  size?: '100' | '200' | '300';
36
36
  }
37
37
  declare const Text: {
38
- Body: <T extends ElementType>({ size, ...rest }: BodyProps<T> & Omit<ComponentPropsWithRef<T>, keyof BodyProps<T>>) => import("react").FunctionComponentElement<TextImplProps<ElementType> & Omit<any, keyof TextImplProps<T_1>>>;
39
- DisplayExpressive: <T extends ElementType>({ size, ...rest }: DisplayExpressiveProps<T> & Omit<ComponentPropsWithRef<T>, keyof DisplayExpressiveProps<T>>) => import("react").FunctionComponentElement<TextImplProps<ElementType> & Omit<any, keyof TextImplProps<T_1>>>;
40
- Label: <T extends ElementType>(props: LabelProps<T> & Omit<ComponentPropsWithRef<T>, keyof LabelProps<T>>) => import("react").FunctionComponentElement<TextImplProps<ElementType> & Omit<any, keyof TextImplProps<T_1>>>;
41
- HDSBody: <T extends ElementType>({ size, weight, ...rest }: HDSBodyProps<T> & Omit<ComponentPropsWithRef<T>, keyof HDSBodyProps<T>>) => import("react").FunctionComponentElement<TextImplProps<ElementType> & Omit<any, keyof TextImplProps<T_1>>>;
42
- Code: <T extends ElementType>({ size, weight, ...rest }: CodeProps<T> & Omit<ComponentPropsWithRef<T>, keyof CodeProps<T>>) => import("react").FunctionComponentElement<TextImplProps<ElementType> & Omit<any, keyof TextImplProps<T_1>>>;
38
+ Body: <T extends ElementType<any, keyof import("react").JSX.IntrinsicElements>>({ size, ...rest }: BodyProps<T> & Omit<ComponentPropsWithRef<T>, keyof BodyProps<T>>) => import('react').FunctionComponentElement<TextImplProps<ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<any, keyof TextImplProps<T_1>>>;
39
+ DisplayExpressive: <T_2 extends ElementType<any, keyof import("react").JSX.IntrinsicElements>>({ size, ...rest }: DisplayExpressiveProps<T_2> & Omit<ComponentPropsWithRef<T_2>, keyof DisplayExpressiveProps<T_2>>) => import('react').FunctionComponentElement<TextImplProps<ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<any, keyof TextImplProps<T_1>>>;
40
+ Label: <T_3 extends ElementType<any, keyof import("react").JSX.IntrinsicElements>>(props: LabelProps<T_3> & Omit<ComponentPropsWithRef<T_3>, "className" | "color" | "tag" | "weight" | "align">) => import('react').FunctionComponentElement<TextImplProps<ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<any, keyof TextImplProps<T_1>>>;
41
+ HDSBody: <T_4 extends ElementType<any, keyof import("react").JSX.IntrinsicElements>>({ size, weight, ...rest }: HDSBodyProps<T_4> & Omit<ComponentPropsWithRef<T_4>, keyof HDSBodyProps<T_4>>) => import('react').FunctionComponentElement<TextImplProps<ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<any, keyof TextImplProps<T_1>>>;
42
+ Code: <T_5 extends ElementType<any, keyof import("react").JSX.IntrinsicElements>>({ size, weight, ...rest }: CodeProps<T_5> & Omit<ComponentPropsWithRef<T_5>, keyof CodeProps<T_5>>) => import('react').FunctionComponentElement<TextImplProps<ElementType<any, keyof import("react").JSX.IntrinsicElements>> & Omit<any, keyof TextImplProps<T_1>>>;
43
43
  };
44
44
  export { Text, TEXT_COLORS, TEXT_WEIGHTS };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Dataset {
2
3
  label: string;
3
4
  values: Array<{
@@ -1,4 +1,4 @@
1
- import HorizontalBarChart, { type HorizontalBarChartProps } from './horizontal-chart';
1
+ import { default as HorizontalBarChart, HorizontalBarChartProps } from './horizontal-chart';
2
2
  interface HorizontalBarChart extends HorizontalBarChartProps {
3
3
  name: string;
4
4
  caption: string;
@@ -1,3 +1,3 @@
1
- import type { FC } from 'react';
2
- import type { DefaultRawDatum, PieTooltipProps } from '@nivo/pie';
1
+ import { FC } from 'react';
2
+ import { DefaultRawDatum, PieTooltipProps } from '@nivo/pie';
3
3
  export declare const renderArcTooltip: FC<PieTooltipProps<DefaultRawDatum>>;
@@ -1,3 +1,3 @@
1
- import type { ComputedDatum, DefaultRawDatum } from '@nivo/pie';
2
- import type { ArcLinkLabelComponent } from '@nivo/arcs';
1
+ import { ComputedDatum, DefaultRawDatum } from '@nivo/pie';
2
+ import { ArcLinkLabelComponent } from '@nivo/arcs';
3
3
  export declare const useRenderArcLinkLabelComponent: typeof ArcLinkLabelComponent<ComputedDatum<DefaultRawDatum>>;
@@ -1,3 +1,3 @@
1
- import type { ComputedDatum, DefaultRawDatum } from '@nivo/pie';
2
- import type { ArcLabelComponent } from '@nivo/arcs';
1
+ import { ComputedDatum, DefaultRawDatum } from '@nivo/pie';
2
+ import { ArcLabelComponent } from '@nivo/arcs';
3
3
  export declare const useRenderArcLabelComponent: typeof ArcLabelComponent<ComputedDatum<DefaultRawDatum>>;
@@ -1,4 +1,4 @@
1
- import type { DonutChartData, DonutChartProps } from './types';
1
+ import { DonutChartData, DonutChartProps } from './types';
2
2
  export declare const DonutChart: {
3
3
  ({ data }: DonutChartProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/mds-react",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Materia Design System React components",
5
5
  "author": "HashiCorp",
6
6
  "license": "MPL-2.0",
@@ -1,4 +1,4 @@
1
- import type { ThumbnailProps } from '../types';
1
+ import { ThumbnailProps } from '../types';
2
2
  interface NewsroomCardProps {
3
3
  heading: string;
4
4
  date: string;
@@ -1,5 +1,5 @@
1
- import type { MDSImageProps } from '../../../utils/mds-context';
2
- import type { CardPatternProps } from '../types';
1
+ import { MDSImageProps } from '../../../utils/mds-context';
2
+ import { CardPatternProps } from '../types';
3
3
  interface PartnerCardProps {
4
4
  heading: string;
5
5
  description: string;
@@ -1,4 +1,4 @@
1
- import type { ProductBadgesProps, ThumbnailProps } from '../types';
1
+ import { ProductBadgesProps, ThumbnailProps } from '../types';
2
2
  interface PersonCardProps {
3
3
  thumbnail: ThumbnailProps;
4
4
  link: string;
@@ -1,16 +1,16 @@
1
- import type { CardPrimitiveProps, MetaProps, ContentProps, HeadingProps, ProductBadgesProps, DescriptionProps } from './types';
1
+ import { CardPrimitiveProps, MetaProps, ContentProps, HeadingProps, ProductBadgesProps, DescriptionProps } from './types';
2
2
  declare const CardPrimitives: {
3
- Root: import("react").ForwardRefExoticComponent<CardPrimitiveProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ Root: import('react').ForwardRefExoticComponent<CardPrimitiveProps & import('react').RefAttributes<HTMLDivElement>>;
4
4
  Thumbnail: {
5
- ({ src, alt }: import("./types").ThumbnailProps): import("react/jsx-runtime").JSX.Element;
5
+ ({ src, alt }: import('./types').ThumbnailProps): import("react/jsx-runtime").JSX.Element;
6
6
  displayName: string;
7
7
  };
8
8
  PersonThumbnail: {
9
- ({ src, alt }: import("./types").ThumbnailProps): import("react/jsx-runtime").JSX.Element;
9
+ ({ src, alt }: import('./types').ThumbnailProps): import("react/jsx-runtime").JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  LogoThumbnail: {
13
- ({ src, alt }: import("./types").ThumbnailProps): import("react/jsx-runtime").JSX.Element;
13
+ ({ src, alt }: import('./types').ThumbnailProps): import("react/jsx-runtime").JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  Meta: {
@@ -1,4 +1,4 @@
1
- import type { ThumbnailProps } from '../types';
1
+ import { ThumbnailProps } from '../types';
2
2
  interface PromoCardProps {
3
3
  heading: string;
4
4
  description?: string;
@@ -1,4 +1,4 @@
1
- import type { CardPatternProps, ThumbnailProps } from '../types';
1
+ import { CardPatternProps, ThumbnailProps } from '../types';
2
2
  interface ResourceCardProps {
3
3
  heading: string;
4
4
  date?: string;
@@ -1,4 +1,4 @@
1
- import type { ThumbnailProps } from '../types';
1
+ import { ThumbnailProps } from '../types';
2
2
  export declare const Thumbnail: {
3
3
  ({ src, alt }: ThumbnailProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
@@ -1,9 +1,9 @@
1
- import type { PropsWithChildren, ReactNode } from 'react';
2
- import type { ProductBadgeProps } from '../../patterns/product-badge';
3
- import type { NewsroomCardProps } from './newsroom-card';
4
- import type { PersonCardProps } from './person-card';
5
- import type { ResourceCardProps } from './resource-card';
6
- import type { UnifiedCardProps } from './unified-card';
1
+ import { PropsWithChildren, ReactNode } from 'react';
2
+ import { ProductBadgeProps } from '../../patterns/product-badge';
3
+ import { NewsroomCardProps } from './newsroom-card';
4
+ import { PersonCardProps } from './person-card';
5
+ import { ResourceCardProps } from './resource-card';
6
+ import { UnifiedCardProps } from './unified-card';
7
7
  interface BaseCardProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-label'> {
8
8
  withArrow?: boolean;
9
9
  link: string;
@@ -1,4 +1,4 @@
1
- import type { CardPatternProps } from '../types';
1
+ import { CardPatternProps } from '../types';
2
2
  interface UnifiedCardProps extends CardPatternProps {
3
3
  badges?: (string | string[])[];
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { MouseEvent } from 'react';
1
+ import { MouseEvent } from 'react';
2
2
  type HandlerArgs = {
3
3
  trigger: Element;
4
4
  text: string | number | bigint | undefined;
@@ -1,4 +1,4 @@
1
- import { type HandlerArgs } from './clipboard';
1
+ import { HandlerArgs } from './clipboard';
2
2
  export interface CopyButtonProps {
3
3
  size?: 'small' | 'medium';
4
4
  isIconOnly?: boolean;
@@ -1,4 +1,4 @@
1
- import type { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  export declare const LAYOUT_APPEARANCES: readonly ["light", "dark"];
3
3
  export declare const LAYOUT_BACKGROUNDS: readonly ["primary", "faint", "transparent"];
4
4
  export declare const LAYOUT_PADDING: readonly ["none", "small", "medium", "large"];
@@ -11,37 +11,37 @@ export declare const normalizeLayoutProps: ((input: {
11
11
  paddingTop?: unknown;
12
12
  paddingBottom?: unknown;
13
13
  }, opts?: {
14
- all?: Pick<import("../../utils/make-normalizer").NormalizerOpts<string>, "transform">;
14
+ all?: Pick<import('../../utils/make-normalizer').NormalizerOpts<string>, "transform"> | undefined;
15
15
  each?: {
16
- appearance?: import("../../utils/make-normalizer").NormalizerOpts<"dark" | "light"> | undefined;
17
- background?: import("../../utils/make-normalizer").NormalizerOpts<"primary" | "faint" | "transparent"> | undefined;
18
- paddingTop?: import("../../utils/make-normalizer").NormalizerOpts<"small" | "none" | "medium" | "large"> | undefined;
19
- paddingBottom?: import("../../utils/make-normalizer").NormalizerOpts<"small" | "none" | "medium" | "large"> | undefined;
16
+ appearance?: import('../../utils/make-normalizer').NormalizerOpts<"light"> | undefined;
17
+ background?: import('../../utils/make-normalizer').NormalizerOpts<"primary"> | undefined;
18
+ paddingTop?: import('../../utils/make-normalizer').NormalizerOpts<"medium"> | undefined;
19
+ paddingBottom?: import('../../utils/make-normalizer').NormalizerOpts<"medium"> | undefined;
20
20
  } | undefined;
21
21
  } | undefined) => {
22
- appearance: "dark" | "light";
23
- background: "primary" | "faint" | "transparent";
24
- paddingTop: "small" | "none" | "medium" | "large";
25
- paddingBottom: "small" | "none" | "medium" | "large";
22
+ appearance: "light";
23
+ background: "primary";
24
+ paddingTop: "medium";
25
+ paddingBottom: "medium";
26
26
  }) & {
27
- with(all: Pick<import("../../utils/make-normalizer").NormalizerOpts<string>, "transform">): (input: {
27
+ with(all: Pick<import('../../utils/make-normalizer').NormalizerOpts<string>, "transform">): (input: {
28
28
  appearance?: unknown;
29
29
  background?: unknown;
30
30
  paddingTop?: unknown;
31
31
  paddingBottom?: unknown;
32
32
  }, opts?: {
33
- all?: Pick<import("../../utils/make-normalizer").NormalizerOpts<string>, "transform">;
33
+ all?: Pick<import('../../utils/make-normalizer').NormalizerOpts<string>, "transform"> | undefined;
34
34
  each?: {
35
- appearance?: import("../../utils/make-normalizer").NormalizerOpts<"dark" | "light"> | undefined;
36
- background?: import("../../utils/make-normalizer").NormalizerOpts<"primary" | "faint" | "transparent"> | undefined;
37
- paddingTop?: import("../../utils/make-normalizer").NormalizerOpts<"small" | "none" | "medium" | "large"> | undefined;
38
- paddingBottom?: import("../../utils/make-normalizer").NormalizerOpts<"small" | "none" | "medium" | "large"> | undefined;
35
+ appearance?: import('../../utils/make-normalizer').NormalizerOpts<"light"> | undefined;
36
+ background?: import('../../utils/make-normalizer').NormalizerOpts<"primary"> | undefined;
37
+ paddingTop?: import('../../utils/make-normalizer').NormalizerOpts<"medium"> | undefined;
38
+ paddingBottom?: import('../../utils/make-normalizer').NormalizerOpts<"medium"> | undefined;
39
39
  } | undefined;
40
40
  } | undefined) => {
41
- appearance: "dark" | "light";
42
- background: "primary" | "faint" | "transparent";
43
- paddingTop: "small" | "none" | "medium" | "large";
44
- paddingBottom: "small" | "none" | "medium" | "large";
41
+ appearance: "light";
42
+ background: "primary";
43
+ paddingTop: "medium";
44
+ paddingBottom: "medium";
45
45
  };
46
46
  };
47
47
  export interface LayoutProps extends PropsWithChildren {
@@ -9,32 +9,32 @@ export declare const normalizeProductLogoProps: ((input: {
9
9
  color?: unknown;
10
10
  product?: unknown;
11
11
  }, opts?: {
12
- all?: Pick<import("../../utils/make-normalizer").NormalizerOpts<string>, "transform">;
12
+ all?: Pick<import('../../utils/make-normalizer').NormalizerOpts<string>, "transform"> | undefined;
13
13
  each?: {
14
- size?: import("../../utils/make-normalizer").NormalizerOpts<"small" | "medium" | "large"> | undefined;
15
- color?: import("../../utils/make-normalizer").NormalizerOpts<"primary" | "strong"> | undefined;
16
- product?: import("../../utils/make-normalizer").NormalizerOpts<"boundary" | "consul" | "nomad" | "packer" | "terraform" | "vagrant" | "vault" | "vault-radar" | "vault-secrets" | "waypoint" | "hashicorp" | "hcp" | "vault-dedicated" | "vault-enterprise"> | undefined;
14
+ size?: import('../../utils/make-normalizer').NormalizerOpts<"small"> | undefined;
15
+ color?: import('../../utils/make-normalizer').NormalizerOpts<"primary"> | undefined;
16
+ product?: import('../../utils/make-normalizer').NormalizerOpts<"hcp"> | undefined;
17
17
  } | undefined;
18
18
  } | undefined) => {
19
- size: "small" | "medium" | "large";
20
- color: "primary" | "strong";
21
- product: "boundary" | "consul" | "nomad" | "packer" | "terraform" | "vagrant" | "vault" | "vault-radar" | "vault-secrets" | "waypoint" | "hashicorp" | "hcp" | "vault-dedicated" | "vault-enterprise";
19
+ size: "small";
20
+ color: "primary";
21
+ product: "hcp";
22
22
  }) & {
23
- with(all: Pick<import("../../utils/make-normalizer").NormalizerOpts<string>, "transform">): (input: {
23
+ with(all: Pick<import('../../utils/make-normalizer').NormalizerOpts<string>, "transform">): (input: {
24
24
  size?: unknown;
25
25
  color?: unknown;
26
26
  product?: unknown;
27
27
  }, opts?: {
28
- all?: Pick<import("../../utils/make-normalizer").NormalizerOpts<string>, "transform">;
28
+ all?: Pick<import('../../utils/make-normalizer').NormalizerOpts<string>, "transform"> | undefined;
29
29
  each?: {
30
- size?: import("../../utils/make-normalizer").NormalizerOpts<"small" | "medium" | "large"> | undefined;
31
- color?: import("../../utils/make-normalizer").NormalizerOpts<"primary" | "strong"> | undefined;
32
- product?: import("../../utils/make-normalizer").NormalizerOpts<"boundary" | "consul" | "nomad" | "packer" | "terraform" | "vagrant" | "vault" | "vault-radar" | "vault-secrets" | "waypoint" | "hashicorp" | "hcp" | "vault-dedicated" | "vault-enterprise"> | undefined;
30
+ size?: import('../../utils/make-normalizer').NormalizerOpts<"small"> | undefined;
31
+ color?: import('../../utils/make-normalizer').NormalizerOpts<"primary"> | undefined;
32
+ product?: import('../../utils/make-normalizer').NormalizerOpts<"hcp"> | undefined;
33
33
  } | undefined;
34
34
  } | undefined) => {
35
- size: "small" | "medium" | "large";
36
- color: "primary" | "strong";
37
- product: "boundary" | "consul" | "nomad" | "packer" | "terraform" | "vagrant" | "vault" | "vault-radar" | "vault-secrets" | "waypoint" | "hashicorp" | "hcp" | "vault-dedicated" | "vault-enterprise";
35
+ size: "small";
36
+ color: "primary";
37
+ product: "hcp";
38
38
  };
39
39
  };
40
40
  export interface ProductLogoProps {
@@ -1,4 +1,4 @@
1
- import type { RelatedContentProps } from './types';
1
+ import { RelatedContentProps } from './types';
2
2
  declare const RelatedContent: {
3
3
  ({ appearance, headline, description, cards, cta, }: RelatedContentProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
@@ -1,4 +1,4 @@
1
- import type { CardPatternProps } from '../card/types';
1
+ import { CardPatternProps } from '../card/types';
2
2
  interface RelatedContentCtaProps {
3
3
  href: string;
4
4
  text: string;