@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,4 +1,4 @@
1
- import type { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
3
3
  /**
4
4
  * optional class name to add to the accordion
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
3
3
  ariaLabel?: string;
4
4
  isOpen?: boolean;
@@ -1,5 +1,5 @@
1
- import type { AlertColor, AlertProps } from '.';
2
- import type { FlightIconName } from '../flight-icon';
1
+ import { AlertColor, AlertProps } from '.';
2
+ import { FlightIconName } from '../flight-icon';
3
3
  interface IconProps {
4
4
  icon?: FlightIconName | false;
5
5
  color: AlertColor;
@@ -1,7 +1,7 @@
1
- import { type StandaloneLinkProps } from '../standalone-link';
2
- import type { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
3
- import type { ButtonProps } from '../button';
4
- import type { FlightIconName } from '../flight-icon';
1
+ import { StandaloneLinkProps } from '../standalone-link';
2
+ import { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
3
+ import { ButtonProps } from '../button';
4
+ import { FlightIconName } from '../flight-icon';
5
5
  type AlertColor = 'neutral' | 'highlight' | 'success' | 'warning' | 'critical';
6
6
  interface CommonAlertProps extends HTMLAttributes<HTMLDivElement> {
7
7
  /**
@@ -51,11 +51,11 @@ declare const AlertActions: {
51
51
  displayName: string;
52
52
  };
53
53
  declare const AlertButton: {
54
- ({ ...props }: Exclude<ButtonProps, "size">): import("react/jsx-runtime").JSX.Element;
54
+ ({ ...props }: Exclude<ButtonProps, 'size'>): import("react/jsx-runtime").JSX.Element;
55
55
  displayName: string;
56
56
  };
57
57
  declare const AlertStandaloneLink: {
58
- ({ ...props }: Exclude<StandaloneLinkProps, "size">): import("react/jsx-runtime").JSX.Element;
58
+ ({ ...props }: Exclude<StandaloneLinkProps, 'size'>): import("react/jsx-runtime").JSX.Element;
59
59
  displayName: string;
60
60
  };
61
61
  export { Alert, AlertActions, AlertButton, AlertStandaloneLink };
@@ -1,4 +1,4 @@
1
- import type { FlightIconName } from '../flight-icon';
1
+ import { FlightIconName } from '../flight-icon';
2
2
  declare const BADGE_SIZES: readonly ["small", "medium", "large"];
3
3
  type BadgeSize = (typeof BADGE_SIZES)[number];
4
4
  declare const BADGE_TYPES: readonly ["filled", "inverted", "outlined"];
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  interface BadgeCountProps extends HTMLAttributes<HTMLDivElement> {
3
3
  size?: 'small' | 'medium' | 'large';
4
4
  type?: 'filled' | 'inverted' | 'outlined';
@@ -1,7 +1,7 @@
1
- import type { BreadcrumbProps, BreadcrumbTruncationProps } from './types';
1
+ import { BreadcrumbProps, BreadcrumbTruncationProps } from './types';
2
2
  declare const Breadcrumbs: {
3
3
  Root: ({ itemsCanWrap, ariaLabel, children, className, ...rest }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
4
- Item: ({ maxWidth, current, icon, text, url, ...rest }: import("./types").BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
4
+ Item: ({ maxWidth, current, icon, text, url, ...rest }: import('./types').BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
5
5
  Truncation: ({ ariaLabel, children, ...rest }: BreadcrumbTruncationProps) => import("react/jsx-runtime").JSX.Element;
6
6
  };
7
7
  export { Breadcrumbs };
@@ -1,2 +1,2 @@
1
- import type { BreadcrumbItemProps } from '../types';
1
+ import { BreadcrumbItemProps } from '../types';
2
2
  export declare const Item: ({ maxWidth, current, icon, text, url, ...rest }: BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export declare const TruncationButton: ({ ariaLabel, }: {
2
- ariaLabel?: string;
2
+ ariaLabel?: string | undefined;
3
3
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes, LiHTMLAttributes, ReactNode } from 'react';
1
+ import { HTMLAttributes, LiHTMLAttributes, ReactNode } from 'react';
2
2
  export interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
3
3
  /**
4
4
  * This controls if the Breadcrumb Items can wrap if they don’t fit within the container.
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent } from 'react';
1
+ import { ForwardRefExoticComponent } from 'react';
2
2
  export declare const BUTTON_SIZES: readonly ["small", "medium", "large"];
3
3
  export type ButtonSize = (typeof BUTTON_SIZES)[number];
4
4
  export declare const BUTTON_ICON_POSITIONS: readonly ["leading", "trailing"];
@@ -27,5 +27,5 @@ interface ButtonPrimitiveProps {
27
27
  export interface ButtonProps extends Omit<ButtonPrimitiveProps, 'color'> {
28
28
  color?: ButtonColor;
29
29
  }
30
- export declare const Button: ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
30
+ export declare const Button: ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
31
31
  export {};
@@ -1,2 +1,2 @@
1
- import type { CardThumbnailProps } from '../types';
1
+ import { CardThumbnailProps } from '../types';
2
2
  export declare const CardThumbnail: ({ alt, aspectRatio, src, }: CardThumbnailProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,3 +1,3 @@
1
- import type { CardProps } from './types';
2
- declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
1
+ import { CardProps } from './types';
2
+ declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
3
3
  export { Card };
@@ -1,6 +1,6 @@
1
- import type { BadgeProps } from '../badge';
2
- import type { ReactNode } from 'react';
3
- import type { StandaloneLinkProps } from '../standalone-link';
1
+ import { BadgeProps } from '../badge';
2
+ import { ReactNode } from 'react';
3
+ import { StandaloneLinkProps } from '../standalone-link';
4
4
  interface CardPropsBase {
5
5
  className?: string;
6
6
  ctaLabel?: string;
@@ -1,11 +1,4 @@
1
- /**
2
- * Note: lines of code are expected to be stable. If we need to work with
3
- * dynamic code blocks in the future, we could assign random unique IDs
4
- * to each line during the `linesOfCode` `useMemo` function.
5
- *
6
- * For now, we disable react/no-array-index key for the entire file.
7
- */
8
- import { type ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
9
2
  interface CodeLinesProps {
10
3
  value: ReactNode;
11
4
  hasLineNumbers?: boolean;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  /**
3
3
  * Given a string of HTML, split it on newlines,
4
4
  * and return an array of React <span> elements,
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  /**
3
3
  * Given an array of React children,
4
4
  * split the array on newlines, grouping consecutive
@@ -1,5 +1,5 @@
1
- import { type ReactNode } from 'react';
2
- declare const HiddenCopyContent: import("react").ForwardRefExoticComponent<{
1
+ import { ReactNode } from 'react';
2
+ declare const HiddenCopyContent: import('react').ForwardRefExoticComponent<{
3
3
  code: ReactNode;
4
- } & import("react").RefAttributes<HTMLPreElement>>;
4
+ } & import('react').RefAttributes<HTMLPreElement>>;
5
5
  export { HiddenCopyContent };
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  /**
3
3
  * ALERT: This component is a combination of logic from the official HashiCorp
4
4
  * Design System CodeBlock component and the CodeBlock component written by the
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type TComboBoxItem = {
2
3
  id: string;
3
4
  value: string;
@@ -1,4 +1,4 @@
1
- import type { DetailedHTMLProps, DialogHTMLAttributes } from 'react';
1
+ import { DetailedHTMLProps, DialogHTMLAttributes } from 'react';
2
2
  interface OverlayProps {
3
3
  className?: string;
4
4
  }
@@ -1,5 +1,4 @@
1
- import type { PropsWithChildren } from 'react';
2
- import { type HTMLAttributes } from 'react';
1
+ import { PropsWithChildren, HTMLAttributes } from 'react';
3
2
  interface DisclosurePrimitiveProviderProps extends HTMLAttributes<HTMLDivElement> {
4
3
  /**
5
4
  * Callback fired when the disclosure is closed (optional)
@@ -1,4 +1,4 @@
1
- import { type MouseEventHandler } from 'react';
1
+ import { MouseEventHandler } from 'react';
2
2
  export interface DisclosurePrimitiveContextState {
3
3
  isOpen: boolean;
4
4
  onClickToggle: MouseEventHandler<HTMLButtonElement>;
@@ -7,5 +7,5 @@ export interface DisclosurePrimitiveContextState {
7
7
  containsInteractive: boolean;
8
8
  ariaLabel: string;
9
9
  }
10
- export declare const DisclosurePrimitiveContext: import("react").Context<DisclosurePrimitiveContextState | undefined>;
10
+ export declare const DisclosurePrimitiveContext: import('react').Context<DisclosurePrimitiveContextState | undefined>;
11
11
  export declare function useDisclosurePrimitive(): DisclosurePrimitiveContextState;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface DismissButtonProps {
2
3
  ariaLabel?: string;
3
4
  onClick: React.MouseEventHandler<HTMLButtonElement>;
@@ -1,5 +1,5 @@
1
- import type { DropdownToggleButtonProps } from './toggle-button';
2
- import type { HTMLAttributes, ReactNode } from 'react';
1
+ import { DropdownToggleButtonProps } from './toggle-button';
2
+ import { HTMLAttributes, ReactNode } from 'react';
3
3
  interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * If true, container is given full width styles. (Added by web presence team)
@@ -51,19 +51,19 @@ declare const Dropdown: {
51
51
  };
52
52
  ListItem: {
53
53
  Interactive: {
54
- ({ text, color, icon, isLoading, trailingIcon, ...rest }: import("./list-item/interactive").ListItemInteractiveProps): import("react/jsx-runtime").JSX.Element;
54
+ ({ text, color, icon, isLoading, trailingIcon, ...rest }: import('./list-item/interactive').ListItemInteractiveProps): import("react/jsx-runtime").JSX.Element;
55
55
  displayName: string;
56
56
  };
57
57
  Title: {
58
- ({ text, ...rest }: import("./list-item/title").ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
58
+ ({ text, ...rest }: import('./list-item/title').ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
59
59
  displayName: string;
60
60
  };
61
61
  Separator: {
62
- (props: import("./list-item/separator").ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
62
+ (props: import('./list-item/separator').ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
63
63
  displayName: string;
64
64
  };
65
65
  Custom: {
66
- ({ children }: import("./list-item/custom").ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
66
+ ({ children }: import('./list-item/custom').ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
67
67
  displayName: string;
68
68
  };
69
69
  };
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  interface ListItemCustomProps {
3
3
  children: ReactNode;
4
4
  }
@@ -1,18 +1,18 @@
1
1
  declare const ListItem: {
2
2
  Interactive: {
3
- ({ text, color, icon, isLoading, trailingIcon, ...rest }: import("./interactive").ListItemInteractiveProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ text, color, icon, isLoading, trailingIcon, ...rest }: import('./interactive').ListItemInteractiveProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
6
6
  Title: {
7
- ({ text, ...rest }: import("./title").ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
7
+ ({ text, ...rest }: import('./title').ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
8
8
  displayName: string;
9
9
  };
10
10
  Separator: {
11
- (props: import("./separator").ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
11
+ (props: import('./separator').ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  Custom: {
15
- ({ children }: import("./custom").ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
15
+ ({ children }: import('./custom').ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  };
@@ -1,4 +1,4 @@
1
- import { type InteractiveProps } from '../../interactive';
1
+ import { InteractiveProps } from '../../interactive';
2
2
  interface ListItemInteractiveProps extends Omit<InteractiveProps, 'children'> {
3
3
  /**
4
4
  * Text to be used in the item. If no text value is defined, an error will be thrown.
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  type ListItemSeparatorProps = Omit<HTMLAttributes<HTMLLIElement>, 'className' | 'aria-hidden' | 'role'>;
3
3
  declare const ListItemSeparator: {
4
4
  (props: ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  interface ListItemTitleProps extends Omit<HTMLAttributes<HTMLLIElement>, 'className'> {
3
3
  text: string;
4
4
  }
@@ -1,5 +1,5 @@
1
- import type { FlightIconName } from '../../flight-icon';
2
- import type { ButtonHTMLAttributes } from 'react';
1
+ import { FlightIconName } from '../../flight-icon';
2
+ import { ButtonHTMLAttributes } from 'react';
3
3
  interface DropdownToggleButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  /**
5
5
  * Text of the ToggleButton. If no text value is defined, an error will be thrown.
@@ -1,5 +1,5 @@
1
- import { type SVGProps } from 'react';
2
- import type { IconName } from '@hashicorp/flight-icons/svg';
1
+ import { SVGProps } from 'react';
2
+ import { IconName } from '@hashicorp/flight-icons/svg';
3
3
  declare const FLIGHT_ICON_SIZES: readonly [12, 16, 24, 32];
4
4
  type FlightIconSize = (typeof FLIGHT_ICON_SIZES)[number];
5
5
  type FlightIconName = IconName | (string & Record<never, never>);
@@ -1,4 +1,4 @@
1
- import { type ComponentProps, type HTMLProps, type ReactNode } from 'react';
1
+ import { ComponentProps, HTMLProps, ReactNode } from 'react';
2
2
  import { Fieldset } from '../fieldset';
3
3
  interface CheckboxBaseProps {
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  interface ErrorMessageProps {
3
3
  children: ReactNode;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  interface FieldProps {
3
3
  badgeText?: string;
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  interface FieldsetProps {
3
3
  isRequired?: boolean;
4
4
  isOptional?: boolean;
@@ -1,4 +1,4 @@
1
- import type { HTMLProps, ReactNode } from 'react';
1
+ import { HTMLProps, ReactNode } from 'react';
2
2
  interface FileInputBaseProps {
3
3
  isRequired?: boolean;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  interface HelperTextProps {
3
3
  children: ReactNode;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  interface LabelProps {
3
3
  badgeText?: string;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  interface LegendProps {
3
3
  className?: string;
4
4
  isRequired?: boolean;
@@ -1,4 +1,4 @@
1
- import { type ComponentProps, type HTMLProps, type ReactNode } from 'react';
1
+ import { ComponentProps, HTMLProps, ReactNode } from 'react';
2
2
  import { Fieldset } from '../fieldset';
3
3
  interface RadioBaseProps {
4
4
  id: string;
@@ -1,5 +1,5 @@
1
1
  import { Fieldset } from '../fieldset';
2
- import type { ComponentProps, ReactNode } from 'react';
2
+ import { ComponentProps, ReactNode } from 'react';
3
3
  export interface RadioCardGroupProps extends ComponentProps<typeof Fieldset> {
4
4
  children: ReactNode;
5
5
  legend: ReactNode;
@@ -1,6 +1,6 @@
1
1
  import { RadioCardGroup } from './group';
2
- import type { HTMLProps, ReactNode } from 'react';
3
- import type { BadgeProps } from '../../badge';
2
+ import { HTMLProps, ReactNode } from 'react';
3
+ import { BadgeProps } from '../../badge';
4
4
  export declare const DEFAULT_CONTROL_POSITION = "bottom";
5
5
  export declare const DEFAULT_ALIGNMENT = "left";
6
6
  export declare const CONTROL_POSITIONS: readonly ["bottom", "left"];
@@ -1,4 +1,4 @@
1
- import type { HTMLProps, ReactNode } from 'react';
1
+ import { HTMLProps, ReactNode } from 'react';
2
2
  interface SelectFieldProps {
3
3
  isInvalid?: boolean;
4
4
  isLoading?: boolean;
@@ -1,5 +1,5 @@
1
- import type { TComboBoxItem, ComboBoxSearchInputProps } from '../../combo-box-primitive';
2
- import type { FieldProps } from '../field';
1
+ import { TComboBoxItem, ComboBoxSearchInputProps } from '../../combo-box-primitive';
2
+ import { FieldProps } from '../field';
3
3
  type SuperSelectSearchInputProps = ComboBoxSearchInputProps;
4
4
  interface SuperSelectOptionProps extends TComboBoxItem {
5
5
  isLoading?: boolean;
@@ -1,4 +1,4 @@
1
- import type { HTMLInputTypeAttribute, HTMLProps, ReactNode } from 'react';
1
+ import { HTMLInputTypeAttribute, HTMLProps, ReactNode } from 'react';
2
2
  interface TextInputBaseProps {
3
3
  /**
4
4
  * Sets the native HTML `type` of the `<input>`.
@@ -1,4 +1,4 @@
1
- import type { HTMLProps, ReactNode } from 'react';
1
+ import { HTMLProps, ReactNode } from 'react';
2
2
  interface TextAreaFieldProps {
3
3
  isInvalid?: boolean;
4
4
  isLoading?: boolean;
@@ -1,4 +1,4 @@
1
- import type { ReactNode, HTMLProps, ComponentProps } from 'react';
1
+ import { ReactNode, HTMLProps, ComponentProps } from 'react';
2
2
  import { Fieldset } from '../fieldset';
3
3
  interface ToggleBaseProps {
4
4
  id?: string;
@@ -1,7 +1,6 @@
1
- import { type TippyProps } from '@tippyjs/react';
2
- import { type Plugin } from 'tippy.js';
3
- import type { ReactElement } from 'react';
4
- import 'tippy.js/dist/svg-arrow.css';
1
+ import { TippyProps } from '@tippyjs/react';
2
+ import { Plugin } from 'tippy.js';
3
+ import { ReactElement } from 'react';
5
4
  export interface TooltipProps {
6
5
  options?: TippyProps;
7
6
  children: TippyProps['children'];
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  type BaseProps = {
3
3
  size: 'small' | 'medium' | 'large';
4
4
  iconSecondary?: string;
@@ -1,4 +1,4 @@
1
- import type { FlightIconName } from '../flight-icon';
1
+ import { FlightIconName } from '../flight-icon';
2
2
  interface InlineLinkProps {
3
3
  /**
4
4
  * There are two available colors for an `<InlineLink />`: primary and secondary.
@@ -1,5 +1,4 @@
1
- import { type ForwardRefExoticComponent } from 'react';
2
- import type { ButtonHTMLAttributes, MouseEventHandler } from 'react';
1
+ import { ForwardRefExoticComponent, ButtonHTMLAttributes, MouseEventHandler } from 'react';
3
2
  interface InteractiveProps extends React.HTMLAttributes<HTMLElement> {
4
3
  isHrefExternal?: boolean;
5
4
  href?: string;
@@ -8,7 +7,7 @@ interface InteractiveProps extends React.HTMLAttributes<HTMLElement> {
8
7
  prefetch?: boolean;
9
8
  locale?: string;
10
9
  }
11
- declare const Interactive: ForwardRefExoticComponent<InteractiveProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
10
+ declare const Interactive: ForwardRefExoticComponent<InteractiveProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
12
11
  /**
13
12
  * Smaller, local version of our getLocalizedLinkProps util,
14
13
  * cloned here to work around a cyclic dependency issue
@@ -21,7 +20,7 @@ declare const Interactive: ForwardRefExoticComponent<InteractiveProps & import("
21
20
  export declare const getLocalizedLinkProps: (href: string, locale?: string, isHrefExternal?: boolean) => {
22
21
  href: string;
23
22
  hrefLang: string | undefined;
24
- isHrefExternal?: boolean;
23
+ isHrefExternal?: boolean | undefined;
25
24
  };
26
25
  export type { InteractiveProps };
27
26
  export { Interactive };
@@ -1,5 +1,5 @@
1
- import { type ForwardRefExoticComponent } from 'react';
2
- import type { ButtonProps } from './types';
1
+ import { ForwardRefExoticComponent } from 'react';
2
+ import { ButtonProps } from './types';
3
3
  /** @deprecated Use <Button> from '@hashicorp/mds-react/button' instead. Will be removed in v1.0. */
4
- declare const MDSButton: ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
4
+ declare const MDSButton: ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
5
5
  export { MDSButton };
@@ -1,4 +1,4 @@
1
- import type { COLORS } from './utils';
1
+ import { COLORS } from './utils';
2
2
  type HashiCorpProduct = 'hashicorp' | 'boundary' | 'consul' | 'nomad' | 'packer' | 'terraform' | 'vault' | 'vagrant' | 'waypoint';
3
3
  export type Size = 'medium' | 'small';
4
4
  export type ThemeBackground = 'light' | 'dark' | 'brand';
@@ -1,4 +1,4 @@
1
- import type { ButtonColor, Theme } from './types';
1
+ import { ButtonColor, Theme } from './types';
2
2
  export declare const COLORS: readonly ["primary", "primary-black", "primary-white", "secondary", "secondary-high-contrast", "secondary-white", "secondary-black", "tertiary", "critical", "boundary", "consul", "nomad", "packer", "terraform", "vagrant", "vault", "waypoint", "hashicorp"];
3
3
  export declare function determineColor(theme?: Theme): ButtonColor;
4
4
  export declare const LINK_TYPE_ICON_MAP: {
@@ -1,4 +1,4 @@
1
- import { type ReactNode, type HTMLAttributes } from 'react';
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
2
  interface MenuPrimitiveProps extends HTMLAttributes<HTMLDivElement> {
3
3
  onClose?: () => void;
4
4
  isFullWidth?: boolean;
@@ -1,9 +1,9 @@
1
- import { type MouseEventHandler, type RefObject } from 'react';
1
+ import { MouseEventHandler, RefObject } from 'react';
2
2
  export interface MenuPrimitiveContextState {
3
3
  isOpen: boolean;
4
4
  onClickToggle: MouseEventHandler<HTMLButtonElement>;
5
5
  toggleRef: RefObject<HTMLDivElement>;
6
6
  closeMenu: () => void;
7
7
  }
8
- export declare const MenuPrimitiveContext: import("react").Context<MenuPrimitiveContextState | undefined>;
8
+ export declare const MenuPrimitiveContext: import('react').Context<MenuPrimitiveContextState | undefined>;
9
9
  export declare function useMenuPrimitive(): MenuPrimitiveContextState;
@@ -1,5 +1,5 @@
1
1
  import { useModal } from './use-modal';
2
- import type { ReactNode } from 'react';
2
+ import { ReactNode } from 'react';
3
3
  interface ModalProps {
4
4
  initialIsOpen?: boolean;
5
5
  initialModalContent?: ReactNode;
@@ -1,8 +1,8 @@
1
- import type { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export interface ModalContextState {
3
3
  isOpen: boolean;
4
4
  openModal: (content: ReactNode) => void;
5
5
  closeModal: () => void;
6
6
  }
7
- export declare const ModalContext: import("react").Context<ModalContextState | undefined>;
7
+ export declare const ModalContext: import('react').Context<ModalContextState | undefined>;
8
8
  export declare function useModal(): ModalContextState;
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  interface SeparatorProps extends HTMLAttributes<HTMLHRElement> {
3
3
  spacing?: '0' | '24';
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { InteractiveProps } from '../interactive';
1
+ import { InteractiveProps } from '../interactive';
2
2
  declare const STANDALONE_LINK_SIZES: readonly ["small", "medium", "large"];
3
3
  type StandaloneLinkSize = (typeof STANDALONE_LINK_SIZES)[number];
4
4
  declare const STANDALONE_LINK_COLORS: readonly ["primary", "secondary", "secondary-inverted"];
@@ -18,6 +18,6 @@ interface StandaloneLinkProps extends Omit<InteractiveProps, 'color' | 'size'> {
18
18
  className?: string;
19
19
  'data-testid'?: string;
20
20
  }
21
- declare const StandaloneLink: import("react").ForwardRefExoticComponent<StandaloneLinkProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
21
+ declare const StandaloneLink: import('react').ForwardRefExoticComponent<StandaloneLinkProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
22
22
  export type { StandaloneLinkSize, StandaloneLinkColor, StandaloneLinkIconPosition, StandaloneLinkProps, };
23
23
  export { STANDALONE_LINK_SIZES, STANDALONE_LINK_COLORS, STANDALONE_LINK_ICON_POSITIONS, StandaloneLink, };