export { F as FilterBar } from './FilterBar-DBVW3LL3.js';
export { C as COLUMN_TYPE_DEFAULTS, D as DataTable, b as booleanFormatter, a as chipsFormatter, c as createColumnHelper, d as currencyFormatter, i as dateFormatPresets, e as dateFormatter, f as dateTimeFormatter, g as getColumnTypeDefaults, h as htmlFormatter, m as markdownFormatter, n as numberFormatter, p as percentFormatter, r as resolveColumnTypeConfig, t as timeFormatPresets, j as timeFormatter, y as yearlessDateFormatter } from './DataTable-Bvsijiqn.js';
export { T as Toolbar, a as ToolbarButton, b as ToolbarButtonLink, d as ToolbarControlGroup, f as ToolbarElement, e as ToolbarSearchField, c as ToolbarSelect } from './Toolbar-BfGcDXgC.js';
export { T as ToolbarButtonToggle } from './ToolbarButtonToggle-3xbnm1Qr.js';
export { u as useCalendarBetaProps } from './Calendar-CekTYzdT.js';
export { C as Calendar } from './Calendar-MRUB0XU7.js';
import { S as SelectField$1, a as SelectFieldSync$1 } from './SelectFieldSync-VShqP5J0.js';
import { forwardRef, createElement } from 'react';
import { w as warnOnce } from './warnOnce-Y9PRHcU4.js';
import { M as MultiSelectField$1, a as MultiSelectFieldSync$1 } from './MultiSelectFieldSync-B1tkEtft.js';
import { S as SelectMenu$1, a as SelectMenuSync$1 } from './SelectMenuSync-BDx1yhZT.js';
import { M as MultiSelectMenu$1, a as MultiSelectMenuSync$1 } from './MultiSelectMenuSync-Deki_z-0.js';
export { T as TreeSelectField, a as TreeSelectFieldSync } from './TreeSelectFieldSync-CdtC8d3Q.js';
export { a as TreeSelectMenu, T as TreeSelectMenuSync } from './TreeSelectMenuSync-CPuQWUNU.js';
export { I as InteractiveCard } from './InteractiveCard-C0g5PxB6.js';
export { R as RichTextEditor } from './RichTextEditor-byoMZaJy.js';
export { S as SavedFiltersButton } from './SavedFiltersButton-BHgS4akL.js';
export { T as TypeaheadTextField } from './TypeaheadTextField-BkLECKZY.js';
export { u as useAdaptiveView } from './useAdaptiveView-AvsDkChF.js';

const BETA_EXPORT_REMOVED_VERSION = "4.0";
const STABLE_PROMOTION_PATHS = {
  SelectField: "select-field",
  MultiSelectField: "multi-select-field",
  SelectMenu: "select-menu",
  MultiSelectMenu: "multi-select-menu"
};
function stablePromotionDocsUrl(componentName) {
  const path = STABLE_PROMOTION_PATHS[componentName];
  return `https://anvil.servicetitan.com/docs/web/components/${path}/beta-changes/stable-promotion`;
}

function warnDeprecatedBetaImport(componentName, removedMajorVersion) {
  const docsUrl = stablePromotionDocsUrl(componentName);
  warnOnce(
    `[Anvil2] Importing ${componentName} from @servicetitan/anvil2/beta is deprecated. Import from @servicetitan/anvil2 instead. The beta export will be removed in Anvil2 ${removedMajorVersion}. See ${docsUrl}`
  );
}
function withDeprecatedBetaImport(Component, componentName, removedMajorVersion) {
  const Wrapped = forwardRef(
    function DeprecatedBetaImport(props, ref) {
      warnDeprecatedBetaImport(componentName, removedMajorVersion);
      return createElement(Component, { ...props, ref });
    }
  );
  Wrapped.displayName = `DeprecatedBeta(${componentName})`;
  return Wrapped;
}
function withDeprecatedBetaImportFn(Component, componentName, removedMajorVersion) {
  function DeprecatedBetaImport(props) {
    warnDeprecatedBetaImport(componentName, removedMajorVersion);
    return createElement(Component, props);
  }
  DeprecatedBetaImport.displayName = `DeprecatedBeta(${componentName})`;
  return DeprecatedBetaImport;
}

const SelectField = withDeprecatedBetaImport(
  SelectField$1,
  "SelectField",
  BETA_EXPORT_REMOVED_VERSION
);
const SelectFieldSync = withDeprecatedBetaImportFn(
  SelectFieldSync$1,
  "SelectField",
  BETA_EXPORT_REMOVED_VERSION
);

const MultiSelectField = withDeprecatedBetaImport(
  MultiSelectField$1,
  "MultiSelectField",
  BETA_EXPORT_REMOVED_VERSION
);
const MultiSelectFieldSync = withDeprecatedBetaImportFn(
  MultiSelectFieldSync$1,
  "MultiSelectField",
  BETA_EXPORT_REMOVED_VERSION
);

const SelectMenu = withDeprecatedBetaImport(
  SelectMenu$1,
  "SelectMenu",
  BETA_EXPORT_REMOVED_VERSION
);
const SelectMenuSync = withDeprecatedBetaImportFn(
  SelectMenuSync$1,
  "SelectMenu",
  BETA_EXPORT_REMOVED_VERSION
);

const MultiSelectMenu = withDeprecatedBetaImport(
  MultiSelectMenu$1,
  "MultiSelectMenu",
  BETA_EXPORT_REMOVED_VERSION
);
const MultiSelectMenuSync = withDeprecatedBetaImportFn(
  MultiSelectMenuSync$1,
  "MultiSelectMenu",
  BETA_EXPORT_REMOVED_VERSION
);

export { MultiSelectField, MultiSelectFieldSync, MultiSelectMenu, MultiSelectMenuSync, SelectField, SelectFieldSync, SelectMenu, SelectMenuSync };
//# sourceMappingURL=beta.js.map
