@databricks/design-system 2.0.1 → 2.0.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 (91) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/{WizardStepContentWrapper-CFCTOSm8.js → WizardStepContentWrapper-DsAS2ZAT.js} +1356 -686
  3. package/dist/WizardStepContentWrapper-DsAS2ZAT.js.map +1 -0
  4. package/dist/dubois-colors.less +2 -0
  5. package/dist/fonts/dm-mono/DMMono-Regular.woff2 +0 -0
  6. package/dist/fonts/dm-mono/dm-mono.css +11 -0
  7. package/dist/index-dark.css +305 -516
  8. package/dist/index-dark.mitigated.css +305 -516
  9. package/dist/index.css +438 -544
  10. package/dist/index.js +1971 -244
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mitigated.css +447 -553
  13. package/dist/patterns.js +12 -2
  14. package/dist/patterns.js.map +1 -1
  15. package/dist-types/design-system/Button/Button.d.ts +2 -2
  16. package/dist-types/design-system/ContextMenu/ContextMenu.d.ts +2 -2
  17. package/dist-types/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +44 -0
  18. package/dist-types/design-system/Drawer/DrawerContext.d.ts +9 -0
  19. package/dist-types/design-system/FormV2/RHFAdapters.d.ts +8 -8
  20. package/dist-types/design-system/Grid/Col.d.ts +1 -3
  21. package/dist-types/design-system/Grid/NativeCol.d.ts +10 -0
  22. package/dist-types/design-system/Grid/NativeGridContext.d.ts +11 -0
  23. package/dist-types/design-system/Grid/NativeRow.d.ts +13 -0
  24. package/dist-types/design-system/Grid/Row.d.ts +3 -4
  25. package/dist-types/design-system/Grid/grid-styling.d.ts +22 -0
  26. package/dist-types/design-system/Grid/gridConstants.d.ts +2 -0
  27. package/dist-types/design-system/Grid/index.d.ts +1 -0
  28. package/dist-types/design-system/Grid/rowConstants.d.ts +7 -0
  29. package/dist-types/design-system/Grid/types.d.ts +49 -0
  30. package/dist-types/design-system/Hooks/index.d.ts +1 -1
  31. package/dist-types/design-system/Hooks/useDesignSystemTheme.d.ts +7 -7
  32. package/dist-types/design-system/Icon/LegacyAntDIcon.d.ts +21 -0
  33. package/dist-types/design-system/Icon/__generated/icons/FlowsIcon.d.ts +4 -0
  34. package/dist-types/design-system/Icon/__generated/icons/LakewatchAlertIcon.d.ts +4 -0
  35. package/dist-types/design-system/Icon/__generated/icons/LakewatchDatasourceIcon.d.ts +4 -0
  36. package/dist-types/design-system/Icon/__generated/icons/LakewatchDetectionRuleIcon.d.ts +4 -0
  37. package/dist-types/design-system/Icon/__generated/icons/LakewatchParserIcon.d.ts +4 -0
  38. package/dist-types/design-system/Icon/__generated/icons/index.d.ts +5 -0
  39. package/dist-types/design-system/Icon/index.d.ts +0 -1
  40. package/dist-types/design-system/LegacyTooltip/index.d.ts +0 -1
  41. package/dist-types/design-system/Skeleton/TitleSkeleton.d.ts +9 -3
  42. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts +4 -0
  43. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxCheckboxItem.d.ts +8 -0
  44. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts +2 -0
  45. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxFooter.d.ts +12 -0
  46. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts +8 -0
  47. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxMenu.d.ts +8 -0
  48. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxMenuItem.d.ts +8 -0
  49. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxMultiSelectInput.d.ts +17 -0
  50. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxRoot.d.ts +8 -0
  51. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxSectionHeader.d.ts +4 -0
  52. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxSelectedItem.d.ts +8 -0
  53. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxSeparator.d.ts +4 -0
  54. package/dist-types/design-system/TypeaheadCombobox/TypeaheadComboboxToggleButton.d.ts +8 -0
  55. package/dist-types/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts +8 -0
  56. package/dist-types/design-system/TypeaheadComboboxV2/CountBadge.d.ts +6 -0
  57. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxAddButton.d.ts +3 -0
  58. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxCheckboxItem.d.ts +10 -0
  59. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxControls.d.ts +11 -0
  60. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxFooter.d.ts +2 -0
  61. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxInput.d.ts +9 -0
  62. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxMenu.d.ts +17 -0
  63. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxMenuItem.d.ts +16 -0
  64. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxMultiSelectInput.d.ts +18 -0
  65. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxRoot.d.ts +17 -0
  66. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxSectionHeader.d.ts +1 -0
  67. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxSelectedItem.d.ts +11 -0
  68. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxSeparator.d.ts +1 -0
  69. package/dist-types/design-system/TypeaheadComboboxV2/TypeaheadComboboxToggleButton.d.ts +4 -0
  70. package/dist-types/design-system/TypeaheadComboboxV2/hooks/footerFocus.d.ts +13 -0
  71. package/dist-types/design-system/TypeaheadComboboxV2/hooks/index.d.ts +4 -0
  72. package/dist-types/design-system/TypeaheadComboboxV2/hooks/useComboboxItems.d.ts +32 -0
  73. package/dist-types/design-system/TypeaheadComboboxV2/hooks/useComboboxState.d.ts +81 -0
  74. package/dist-types/design-system/TypeaheadComboboxV2/hooks/useComboboxStateProps.d.ts +36 -0
  75. package/dist-types/design-system/TypeaheadComboboxV2/hooks/useMultipleSelectionState.d.ts +25 -0
  76. package/dist-types/design-system/TypeaheadComboboxV2/hooks/useRestoreHighlightedOption.d.ts +18 -0
  77. package/dist-types/design-system/TypeaheadComboboxV2/hooks/useScrollOptionIntoView.d.ts +11 -0
  78. package/dist-types/design-system/TypeaheadComboboxV2/hooks/useTypeaheadComboboxContext.d.ts +2 -0
  79. package/dist-types/design-system/TypeaheadComboboxV2/hooks/useVirtualizedComboboxScroll.d.ts +36 -0
  80. package/dist-types/design-system/TypeaheadComboboxV2/index.d.ts +13 -0
  81. package/dist-types/design-system/TypeaheadComboboxV2/providers/TypeaheadComboboxContext.d.ts +47 -0
  82. package/dist-types/design-system/Typography/titleLevel.d.ts +11 -0
  83. package/dist-types/design-system/_shared_/Menu/index.d.ts +1 -1
  84. package/dist-types/design-system/fonts.d.ts +1 -0
  85. package/dist-types/design-system/index.d.ts +1 -0
  86. package/dist-types/design-system/utils/useMediaQuery.d.ts +4 -1
  87. package/dist-types/theme/_generated/ValidSemanticColors.d.ts +2 -1
  88. package/package.json +14 -3
  89. package/dist/WizardStepContentWrapper-CFCTOSm8.js.map +0 -1
  90. package/dist-types/design-system/Icon/AntdIcon.d.ts +0 -114
  91. package/dist-types/design-system/LegacyTooltip/LegacyInfoTooltip.d.ts +0 -16
package/dist/patterns.js CHANGED
@@ -1,11 +1,10 @@
1
- export { D as DocumentationSidebar, F as FIXED_VERTICAL_STEPPER_WIDTH, M as MAX_VERTICAL_WIZARD_CONTENT_WIDTH, W as Wizard, a as WizardControlled, b as WizardModal, c as WizardStepContentWrapper, u as useWizardCurrentStep } from './WizardStepContentWrapper-CFCTOSm8.js';
1
+ export { D as DocumentationSidebar, F as FIXED_VERTICAL_STEPPER_WIDTH, M as MAX_VERTICAL_WIZARD_CONTENT_WIDTH, W as Wizard, a as WizardControlled, b as WizardModal, c as WizardStepContentWrapper, u as useWizardCurrentStep } from './WizardStepContentWrapper-DsAS2ZAT.js';
2
2
  import '@emotion/react/jsx-runtime';
3
3
  import 'lodash/isUndefined';
4
4
  import 'react';
5
5
  import '@emotion/react';
6
6
  import 'antd';
7
7
  import 'classnames';
8
- import '@ant-design/icons';
9
8
  import '@floating-ui/react';
10
9
  import 'lodash/uniqueId';
11
10
  import 'date-fns';
@@ -17,6 +16,15 @@ import '@floating-ui/dom';
17
16
  import 'react-dom';
18
17
  import '@radix-ui/react-hover-card';
19
18
  import '@radix-ui/react-toast';
19
+ import '@react-aria/combobox';
20
+ import '@react-aria/listbox';
21
+ import '@react-aria/overlays';
22
+ import '@react-aria/utils';
23
+ import '@react-aria/focus';
24
+ import '@react-aria/button';
25
+ import '@react-stately/combobox';
26
+ import '@react-aria/i18n';
27
+ import '@react-stately/collections';
20
28
  import 'lodash/noop';
21
29
  import 'lodash/pick';
22
30
  import 'lodash/compact';
@@ -32,6 +40,8 @@ import 'lodash/isString';
32
40
  import 'lodash/mapValues';
33
41
  import '@radix-ui/react-accordion';
34
42
  import '@radix-ui/react-tooltip-patch';
43
+ import 'lodash/kebabCase';
44
+ import '@ant-design/icons';
35
45
  import 'lodash/random';
36
46
  import 'lodash/times';
37
47
  import '@radix-ui/react-context-menu';
@@ -1 +1 @@
1
- {"version":3,"file":"patterns.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"patterns.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,7 +4,7 @@ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "
4
4
  import type { ComponentTheme } from "../../theme";
5
5
  import { DesignSystemEventProviderAnalyticsEventTypes } from "../DesignSystemEventProvider";
6
6
  import type { WithLoadingState } from "../LoadingState/LoadingState";
7
- import type { AnalyticsEventPropsWithStartInteraction, DangerouslySetAntdProps, HTMLDataAttributes } from "../types";
7
+ import type { AnalyticsEventPropsWithStartInteraction, HTMLDataAttributes } from "../types";
8
8
  export declare const SMALL_BUTTON_HEIGHT = 24;
9
9
  export declare const getMemoizedButtonEmotionStyles: (props: Parameters<typeof getButtonEmotionStyles>[0]) => SerializedStyles;
10
10
  export declare const getButtonEmotionStyles: ({ theme, classNamePrefix, loading, withIcon, onlyIcon, isAnchor, enableAnimation, size, type, useFocusPseudoClass, forceIconStyles, danger }: {
@@ -22,7 +22,7 @@ export declare const getButtonEmotionStyles: ({ theme, classNamePrefix, loading,
22
22
  forceIconStyles?: boolean;
23
23
  }) => SerializedStyles;
24
24
  export type ButtonSize = "middle" | "small";
25
- export interface ButtonProps extends Omit<AntDButtonProps, "type" | "ghost" | "shape" | "size">, HTMLDataAttributes, DangerouslySetAntdProps<AntDButtonProps>, Omit<WithLoadingState, "loading">, AnalyticsEventPropsWithStartInteraction<DesignSystemEventProviderAnalyticsEventTypes.OnClick | DesignSystemEventProviderAnalyticsEventTypes.OnView> {
25
+ export interface ButtonProps extends Omit<AntDButtonProps, "type" | "ghost" | "shape" | "size">, HTMLDataAttributes, Omit<WithLoadingState, "loading">, AnalyticsEventPropsWithStartInteraction<DesignSystemEventProviderAnalyticsEventTypes.OnClick | DesignSystemEventProviderAnalyticsEventTypes.OnView> {
26
26
  type?: "primary" | "link" | "tertiary";
27
27
  size?: ButtonSize;
28
28
  endIcon?: React.ReactNode;
@@ -20,11 +20,11 @@ export interface ContextMenuContentProps extends RadixContextMenuContentProps {
20
20
  minWidth?: number;
21
21
  forceCloseOnEscape?: boolean;
22
22
  }
23
- export declare const Content: ({ children, minWidth, forceCloseOnEscape, onEscapeKeyDown, onKeyDown, ...childrenProps }: ContextMenuContentProps) => JSX.Element;
23
+ export declare const Content: ({ children, minWidth, forceCloseOnEscape, onEscapeKeyDown, onKeyDown, className, style, ...childrenProps }: ContextMenuContentProps) => JSX.Element;
24
24
  export interface ContextMenuSubContentProps extends RadixContextMenuSubContentProps {
25
25
  minWidth?: number;
26
26
  }
27
- export declare const SubContent: ({ children, minWidth, ...childrenProps }: ContextMenuSubContentProps) => JSX.Element;
27
+ export declare const SubContent: ({ children, minWidth, className, style, ...childrenProps }: ContextMenuSubContentProps) => JSX.Element;
28
28
  export interface ContextMenuItemProps extends RadixContextMenuItemProps, AnalyticsEventProps<DesignSystemEventProviderAnalyticsEventTypes.OnClick | DesignSystemEventProviderAnalyticsEventTypes.OnView> {
29
29
  disabledReason?: React.ReactNode;
30
30
  }
@@ -6,9 +6,21 @@ import React from "react";
6
6
  import type { DesignSystemFlags } from "../../flags";
7
7
  import type { Theme } from "../../theme";
8
8
  import type { ValidSemanticColors } from "../../theme/_generated/ValidSemanticColors";
9
+ /**
10
+ * Raw design-token overrides keyed by their `--db-*` custom-property name, e.g.
11
+ * `{ '--db-radius-md': '10px', '--db-space-lg': '20px' }`. Applied on top of `semanticColors`
12
+ * (which covers the `--db-color-*` family) and inherits down the DOM the same way, so a consumer
13
+ * can retheme non-color tokens (radius, spacing, …) for the whole subtree — including portaled
14
+ * surfaces, which re-apply this on their own outermost portal element.
15
+ *
16
+ * Keys are the full custom-property names because the family prefixes are not derivable from a
17
+ * single rule (unlike `semanticColors`, whose camelCase keys map cleanly to `--db-color-<kebab>`).
18
+ */
19
+ export type DesignTokenOverrides = Partial<Record<`--db-${string}`, string>>;
9
20
  export interface DesignSystemThemeProviderProps {
10
21
  isDarkMode?: boolean;
11
22
  semanticColors?: Record<ValidSemanticColors, string>;
23
+ designTokenOverrides?: DesignTokenOverrides;
12
24
  }
13
25
  export interface DesignSystemProviderProps {
14
26
  /**
@@ -39,10 +51,20 @@ export interface DesignSystemProviderProps {
39
51
  typography?: Partial<Theme["typography"]>;
40
52
  spacing?: Partial<Theme["spacing"]>;
41
53
  };
54
+ /**
55
+ * Internal. When true, suppresses the `display: contents` token-scope wrapper this provider
56
+ * otherwise renders around its children. Set by `ApplyDesignSystemContextOverrides`: it only
57
+ * overrides context props and cannot change the token scope (no `isDarkMode`/`semanticColors`),
58
+ * so the scope is already established by an ancestor provider (in-tree) or re-applied on the
59
+ * portal root (Modal/Drawer/DropdownMenu each carry the scope class themselves). A second wrapper
60
+ * there would only add a redundant DOM node that breaks consumers' direct-child selectors.
61
+ */
62
+ disableTokenScopeWrapper?: boolean;
42
63
  }
43
64
  export interface DuboisThemeContextType {
44
65
  isDarkMode: boolean;
45
66
  semanticColors?: Record<ValidSemanticColors, string>;
67
+ designTokenOverrides?: DesignTokenOverrides;
46
68
  }
47
69
  export interface DuboisContextType {
48
70
  enableAnimation: boolean;
@@ -53,10 +75,32 @@ export interface DuboisContextType {
53
75
  export declare const DesignSystemThemeContext: Context<DuboisThemeContextType>;
54
76
  export declare const DesignSystemContext: Context<DuboisContextType>;
55
77
  export declare const DU_BOIS_ENABLE_ANIMATION_CLASSNAME = "du-bois-enable-animation";
78
+ /**
79
+ * `data-testid` on the `display: contents` scope wrapper `DesignSystemProvider` renders around its
80
+ * children. The wrapper carries the theme-scope class / consumer token overrides but no visual box,
81
+ * so tests treat it as transparent: the shared `@databricks/testing-library` `render` returns
82
+ * `container` pointing inside this wrapper, so `container.firstChild` / emptiness assertions see the
83
+ * component's own output.
84
+ */
85
+ export declare const DS_OVERRIDE_TOKENS_WRAPPER_TESTID = "ds-override-tokens-wrapper";
56
86
  export declare const getAnimationCss: ((enableAnimation: boolean) => CSSObject) & MemoizedFunction;
57
87
  type AntDConfigProviderPropsProps = Pick<AntDConfigProviderProps, "prefixCls" | "getPopupContainer" | "virtual">;
58
88
  /** Only to be accessed by SupportsDuBoisThemes, except for special exceptions like tests and storybook. Ask in #dubois first if you need to use it. */
59
89
  export declare const DesignSystemThemeProvider: React.FC<React.PropsWithChildren<DesignSystemThemeProviderProps>>;
90
+ /**
91
+ * Returns the inline style that re-declares the consumer's design-token overrides as `--db-*` custom
92
+ * properties, or `undefined` when none are set. It merges the `semanticColors` override (emitted as
93
+ * `--db-color-<name>`) with any raw `designTokenOverrides` (already keyed by `--db-*` name) layered
94
+ * on top. The values inherit down the DOM, so setting this on a theme-scope element re-themes every
95
+ * native (plain-CSS) component below it.
96
+ *
97
+ * `DesignSystemProvider` applies this to the scope wrapper it renders around its children, which
98
+ * covers the whole in-tree subtree by inheritance. Portaled surfaces (Modal, Drawer, Popover,
99
+ * DropdownMenu, Notification, …) render outside that wrapper in the DOM, so each merges this style
100
+ * (plus `useDuboisThemeClass`) onto its own outermost portal element — context crosses React portals
101
+ * while DOM inheritance does not.
102
+ */
103
+ export declare function useDesignTokenOverrideStyles(): React.CSSProperties | undefined;
60
104
  export declare const DesignSystemProvider: React.FC<React.PropsWithChildren<DesignSystemProviderProps>>;
61
105
  export declare const ApplyDesignSystemContextOverrides: React.FC<React.PropsWithChildren<DesignSystemProviderProps>>;
62
106
  export declare const ApplyDesignSystemFlags: React.FC<React.PropsWithChildren<{
@@ -0,0 +1,9 @@
1
+ import type { Context } from "react";
2
+ export declare const DRAWER_ZINDEX_OVERLAY_OFFSET: number;
3
+ export declare const DRAWER_ZINDEX_CONTENT_OFFSET: number;
4
+ export interface DrawerContextValue {
5
+ isParentDrawerOpen: boolean;
6
+ }
7
+ /** Whether the surrounding subtree is inside an open Drawer. */
8
+ export declare const DrawerContext: Context<DrawerContextValue>;
9
+ export declare const useIsInsideOpenDrawer: () => boolean;
@@ -61,7 +61,7 @@ declare function RHFControlledLegacySelect<TFieldValues extends FieldValues>({ n
61
61
  interface RHFControlledSelectProps<
62
62
  TFieldValues extends FieldValues = FieldValues,
63
63
  TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
64
- > extends Omit<SelectProps, OmittedOriginalProps>, UseControllerProps<TFieldValues, TName> {
64
+ > extends Omit<SelectProps, OmittedOriginalProps | "children">, UseControllerProps<TFieldValues, TName> {
65
65
  control: Control<TFieldValues>;
66
66
  options?: {
67
67
  label: string;
@@ -80,11 +80,11 @@ interface RHFControlledSelectProps<
80
80
  * @deprecated This component is no longer necessary as `SimpleSelect` can be used uncontrolled by RHF.
81
81
  * Please consult the Forms Guide on go/dubois.
82
82
  */
83
- declare function RHFControlledSelect<TFieldValues extends FieldValues>({ name, control, rules, options, validationState, children, width, triggerProps, contentProps, optionProps, ...restProps }: React.PropsWithChildren<RHFControlledSelectProps<TFieldValues>> & HTMLAttributes<HTMLDivElement> & ConditionalOptionalLabel): JSX.Element;
83
+ declare function RHFControlledSelect<TFieldValues extends FieldValues>({ name, control, rules, options, validationState, children, width, triggerProps, contentProps, optionProps, ...restProps }: RHFControlledSelectProps<TFieldValues> & Omit<HTMLAttributes<HTMLDivElement>, "children"> & ConditionalOptionalLabel): JSX.Element;
84
84
  interface RHFControlledDialogComboboxProps<
85
85
  TFieldValues extends FieldValues = FieldValues,
86
86
  TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
87
- > extends Omit<DialogComboboxProps, OmittedOriginalProps>, UseControllerProps<TFieldValues, TName> {
87
+ > extends Omit<DialogComboboxProps, OmittedOriginalProps | "children">, UseControllerProps<TFieldValues, TName> {
88
88
  control: Control<TFieldValues>;
89
89
  validationState?: ValidationState;
90
90
  allowClear?: boolean;
@@ -101,11 +101,11 @@ interface RHFControlledDialogComboboxProps<
101
101
  contentProps?: Pick<DialogComboboxContentProps, "maxHeight" | "minHeight" | "matchTriggerWidth" | "style" | "className">;
102
102
  optionListProps?: Pick<DialogComboboxOptionListProps, "loading" | "withProgressiveLoading" | "style" | "className">;
103
103
  }
104
- declare function RHFControlledDialogCombobox<TFieldValues extends FieldValues>({ name, control, rules, children, allowClear, validationState, placeholder, width, triggerProps, contentProps, optionListProps, ...restProps }: React.PropsWithChildren<RHFControlledDialogComboboxProps<TFieldValues>> & HTMLAttributes<HTMLDivElement> & ConditionalOptionalLabel): JSX.Element;
104
+ declare function RHFControlledDialogCombobox<TFieldValues extends FieldValues>({ name, control, rules, children, allowClear, validationState, placeholder, width, triggerProps, contentProps, optionListProps, ...restProps }: RHFControlledDialogComboboxProps<TFieldValues> & Omit<HTMLAttributes<HTMLDivElement>, "children"> & ConditionalOptionalLabel): JSX.Element;
105
105
  interface RHFControlledTypeaheadComboboxProps<
106
106
  TFieldValues extends FieldValues = FieldValues,
107
107
  TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
108
- > extends Omit<TypeaheadComboboxRootProps<TFieldValues>, OmittedOriginalProps | "comboboxState" | "multiSelect" | "componentId">, UseControllerProps<TFieldValues, TName>, AnalyticsEventValueChangeNoPiiFlagProps<DesignSystemEventProviderAnalyticsEventTypes.OnValueChange> {
108
+ > extends Omit<TypeaheadComboboxRootProps<TFieldValues>, OmittedOriginalProps | "comboboxState" | "multiSelect" | "componentId" | "children">, UseControllerProps<TFieldValues, TName>, AnalyticsEventValueChangeNoPiiFlagProps<DesignSystemEventProviderAnalyticsEventTypes.OnValueChange> {
109
109
  control: Control<TFieldValues, any>;
110
110
  name: TName;
111
111
  children: ({ comboboxState, items }: {
@@ -125,11 +125,11 @@ interface RHFControlledTypeaheadComboboxProps<
125
125
  declare function RHFControlledTypeaheadCombobox<
126
126
  TFieldValues extends FieldValues,
127
127
  TName extends FieldPath<TFieldValues>
128
- >({ name, control, rules, allItems, itemToString, matcher, allowNewValue, children, validationState, inputProps, menuProps, onInputChange, componentId, analyticsEvents, valueHasNoPii, preventUnsetOnBlur, ...props }: React.PropsWithChildren<RHFControlledTypeaheadComboboxProps<TFieldValues, TName>> & HTMLAttributes<HTMLDivElement>): JSX.Element;
128
+ >({ name, control, rules, allItems, itemToString, matcher, allowNewValue, children, validationState, inputProps, menuProps, onInputChange, componentId, analyticsEvents, valueHasNoPii, preventUnsetOnBlur, ...props }: RHFControlledTypeaheadComboboxProps<TFieldValues, TName> & Omit<HTMLAttributes<HTMLDivElement>, "children">): JSX.Element;
129
129
  interface RHFControlledMultiSelectTypeaheadComboboxProps<
130
130
  TFieldValues extends FieldValues = FieldValues,
131
131
  TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
132
- > extends Omit<TypeaheadComboboxRootProps<TFieldValues>, OmittedOriginalProps | "comboboxState" | "multiSelect" | "componentId">, UseControllerProps<TFieldValues, TName>, AnalyticsEventValueChangeNoPiiFlagProps<DesignSystemEventProviderAnalyticsEventTypes.OnValueChange> {
132
+ > extends Omit<TypeaheadComboboxRootProps<TFieldValues>, OmittedOriginalProps | "comboboxState" | "multiSelect" | "componentId" | "children">, UseControllerProps<TFieldValues, TName>, AnalyticsEventValueChangeNoPiiFlagProps<DesignSystemEventProviderAnalyticsEventTypes.OnValueChange> {
133
133
  control: Control<any, TFieldValues>;
134
134
  name: any;
135
135
  children: ({ comboboxState, items, selectedItems }: {
@@ -145,7 +145,7 @@ interface RHFControlledMultiSelectTypeaheadComboboxProps<
145
145
  menuProps?: Partial<Omit<TypeaheadComboboxMenuProps<TFieldValues>, "comboboxState">>;
146
146
  onInputChange?: (inputValue: string) => void;
147
147
  }
148
- declare function RHFControlledMultiSelectTypeaheadCombobox<TFieldValues extends FieldValues>({ name, control, rules, allItems, itemToString, matcher, children, validationState, inputProps, menuProps, onInputChange, componentId, analyticsEvents, valueHasNoPii, ...props }: React.PropsWithChildren<RHFControlledMultiSelectTypeaheadComboboxProps<TFieldValues>> & HTMLAttributes<HTMLDivElement>): JSX.Element;
148
+ declare function RHFControlledMultiSelectTypeaheadCombobox<TFieldValues extends FieldValues>({ name, control, rules, allItems, itemToString, matcher, children, validationState, inputProps, menuProps, onInputChange, componentId, analyticsEvents, valueHasNoPii, ...props }: RHFControlledMultiSelectTypeaheadComboboxProps<TFieldValues> & Omit<HTMLAttributes<HTMLDivElement>, "children">): JSX.Element;
149
149
  interface RHFControlledCheckboxGroupProps<
150
150
  TFieldValues extends FieldValues = FieldValues,
151
151
  TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
@@ -1,4 +1,2 @@
1
- import type { ColProps as AntDColProps } from "antd";
2
- import type { DangerouslySetAntdProps, HTMLDataAttributes } from "../types";
3
- export interface ColProps extends AntDColProps, DangerouslySetAntdProps<AntDColProps>, HTMLDataAttributes {}
1
+ import type { ColProps } from "./types";
4
2
  export declare const Col: React.FC<React.PropsWithChildren<ColProps>>;
@@ -0,0 +1,10 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
+ import type { ColProps } from "./types";
3
+ /**
4
+ * Native flexbox implementation of the DuBois `Col` for the
5
+ * `databricks.fe.designsystem.useNativeGrid` migration. Reproduces antd's box model exactly — inline
6
+ * `%` flex-basis, `parseFlex`, and gutter padding taken from the enclosing `Row` via
7
+ * {@link NativeGridContext} — so consumer `padding`/`flex`/`margin` overrides compose
8
+ * identically to the antd variant on an identical single-`<div>` DOM.
9
+ */
10
+ export declare const NativeCol: ForwardRefExoticComponent<PropsWithoutRef<ColProps> & RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,11 @@
1
+ import type { Context } from "react";
2
+ /**
3
+ * Resolved horizontal/vertical gutter (in px) shared from a native `Row` to its
4
+ * native `Col` children — the same channel AntD's grid uses (`antd/es/grid/RowContext`).
5
+ * The `Row` applies negative margins from these values and each `Col` applies the
6
+ * matching padding, so the two stay in lockstep. `[0, 0]` means "no gutter".
7
+ */
8
+ export interface NativeGridGutter {
9
+ gutter: [number, number];
10
+ }
11
+ export declare const NativeGridContext: Context<NativeGridGutter>;
@@ -0,0 +1,13 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
+ import type { RowProps } from "./types";
3
+ /**
4
+ * Native flexbox implementation of the DuBois `Row` for the
5
+ * `databricks.fe.designsystem.useNativeGrid` migration. Reproduces antd's box model exactly — a flex
6
+ * container whose horizontal gutter is a negative Row margin with matching padding on each child
7
+ * `Col` (via {@link NativeGridContext}), and whose vertical gutter is a flex `row-gap` on the Row.
8
+ * Preserves the DuBois
9
+ * `gutter` default of {@link ROW_GUTTER_SIZE} (8) — antd's own default is 0, but 75% of `<Row>`
10
+ * usages rely on the DuBois 8 default, so it must be applied here (the flag-gated `Row` no longer
11
+ * injects it as a prop default).
12
+ */
13
+ export declare const NativeRow: ForwardRefExoticComponent<PropsWithoutRef<RowProps> & RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,4 @@
1
- import type { RowProps as AntDRowProps } from "antd";
2
- import type { DangerouslySetAntdProps, HTMLDataAttributes } from "../types";
3
- export interface RowProps extends AntDRowProps, DangerouslySetAntdProps<AntDRowProps>, HTMLDataAttributes {}
4
- export declare const ROW_GUTTER_SIZE = 8;
1
+ import { ROW_GUTTER_SIZE } from "./rowConstants";
2
+ import type { RowProps } from "./types";
3
+ export { ROW_GUTTER_SIZE };
5
4
  export declare const Row: React.FC<React.PropsWithChildren<RowProps>>;
@@ -0,0 +1,22 @@
1
+ import type { CSSObject } from "@emotion/react";
2
+ import type { ColSize, ColSpanType, FlexType } from "./types";
3
+ /**
4
+ * Mirrors antd/es/grid/col.js `parseFlex`: a bare number becomes a grow/shrink/auto triple, a bare
5
+ * length becomes a fixed basis, anything else is passed through unchanged. Note the length regex
6
+ * requires a unit, so a unitless `0` (like `auto`/`none`) intentionally falls through as-is — kept
7
+ * deliberately to stay 1:1 with antd for backwards compatibility.
8
+ */
9
+ export declare function parseFlex(flex: FlexType): string;
10
+ /**
11
+ * Coerces an antd span/offset/order/push/pull value to a finite number, or `undefined`. antd types
12
+ * these as `number | string`; in practice they are the integers 0–24. Non-numeric values are
13
+ * dropped (antd would route those through its class-name path, which the compat classes still cover).
14
+ */
15
+ export declare function toNum(value: ColSpanType | undefined): number | undefined;
16
+ /**
17
+ * Converts a 24-column grid span into flexbox properties, mirroring antd's grid box model.
18
+ * @param span - number of columns to span (0–24); `0` hides the column (`display: none`).
19
+ */
20
+ export declare function spanToBasis(span: number): CSSObject;
21
+ export declare function normalizeSize(value: ColSpanType | ColSize | undefined): ColSize | undefined;
22
+ export declare function sizeStyles(size: ColSize): CSSObject;
@@ -0,0 +1,2 @@
1
+ export declare const RESPONSIVE_SIZES: readonly ["xs", "sm", "md", "lg", "xl", "xxl"];
2
+ export type ResponsiveSize = (typeof RESPONSIVE_SIZES)[number];
@@ -1,2 +1,3 @@
1
1
  export * from "./Col";
2
2
  export * from "./Row";
3
+ export * from "./types";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Default horizontal gutter (px) for `Row`. NOTE this diverges from AntD's own default of `0`:
3
+ * DuBois has always defaulted `Row` to `8`, and ~75% of `<Row>` usages rely on it, so both the
4
+ * AntD-backed `Row` and the native `NativeRow` must apply it. Kept in its own module so both
5
+ * variants (and the flag-gated `Row`) share one source without an import cycle.
6
+ */
7
+ export declare const ROW_GUTTER_SIZE = 8;
@@ -0,0 +1,49 @@
1
+ import type { ResponsiveSize } from "./gridConstants";
2
+ import type { HTMLDataAttributes } from "../types";
3
+ export type ColSpanType = number | string;
4
+ export type FlexType = number | "none" | "auto" | string;
5
+ /** Per-breakpoint responsive value for a `Col` (`{ flex, span, order, offset, push, pull }`). */
6
+ export interface ColSize {
7
+ flex?: FlexType;
8
+ span?: ColSpanType;
9
+ order?: ColSpanType;
10
+ offset?: ColSpanType;
11
+ push?: ColSpanType;
12
+ pull?: ColSpanType;
13
+ }
14
+ /**
15
+ * DuBois `Col` props. Owns antd's 24-column `ColProps` surface rather than extending it, so the
16
+ * native-flexbox grid migration (`databricks.fe.designsystem.useNativeGrid`) isn't coupled to antd's
17
+ * types. The shape is kept identical to antd's `ColProps` so consumers and the AntD-backed `Col`
18
+ * wrapper are unaffected.
19
+ */
20
+ export interface ColProps extends React.HTMLAttributes<HTMLDivElement>, HTMLDataAttributes {
21
+ span?: ColSpanType;
22
+ order?: ColSpanType;
23
+ offset?: ColSpanType;
24
+ push?: ColSpanType;
25
+ pull?: ColSpanType;
26
+ xs?: ColSpanType | ColSize;
27
+ sm?: ColSpanType | ColSize;
28
+ md?: ColSpanType | ColSize;
29
+ lg?: ColSpanType | ColSize;
30
+ xl?: ColSpanType | ColSize;
31
+ xxl?: ColSpanType | ColSize;
32
+ prefixCls?: string;
33
+ flex?: FlexType;
34
+ }
35
+ /** One gutter axis: a px number, or a per-breakpoint map (antd's `Gutter`). */
36
+ export type Gutter = number | Partial<Record<ResponsiveSize, number>>;
37
+ /**
38
+ * DuBois `Row` props. Owns antd's `RowProps` surface rather than extending it, so the native-flexbox
39
+ * grid migration (`databricks.fe.designsystem.useNativeGrid`) isn't coupled to antd's types. The
40
+ * shape is kept identical to antd's `RowProps` so consumers and the AntD-backed `Row` wrapper are
41
+ * unaffected.
42
+ */
43
+ export interface RowProps extends React.HTMLAttributes<HTMLDivElement>, HTMLDataAttributes {
44
+ gutter?: Gutter | [Gutter, Gutter];
45
+ align?: "top" | "middle" | "bottom" | "stretch";
46
+ justify?: "start" | "end" | "center" | "space-around" | "space-between";
47
+ prefixCls?: string;
48
+ wrap?: boolean;
49
+ }
@@ -1,4 +1,4 @@
1
- export { useDesignSystemTheme, WithDesignSystemThemeHoc } from "./useDesignSystemTheme";
1
+ export { useDesignSystemTheme, useDuboisThemeClass, WithDesignSystemThemeHoc } from "./useDesignSystemTheme";
2
2
  export { useDesignSystemFlags } from "./useDesignSystemFlags";
3
3
  export { useThemedStyles } from "./useThemedStyles";
4
4
  export type { DesignSystemHocProps, DesignSystemThemeInterface } from "./useDesignSystemTheme";
@@ -14,14 +14,14 @@ export declare function getClassNamePrefix(theme: Theme): string;
14
14
  export declare function getPrefixedClassNameFromTheme(theme: Theme, className: string | null | undefined): string;
15
15
  /**
16
16
  * Returns the theme-scope class for the current context: `du-bois-dark` in dark
17
- * mode, `du-bois-light` otherwise.
17
+ * mode, `du-bois-light` otherwise. The `.du-bois-*` rule declares the `--db-color-*`
18
+ * tokens, so any element carrying this class becomes a resolution scope for the
19
+ * native (plain-CSS, token-driven) components below it.
18
20
  *
19
- * Native (plain-CSS, token-driven) components put this on their OWN root element
20
- * so the CSS custom-property cascade has a `:where(.du-bois-*)` ancestor to
21
- * resolve dark/light values against. Self-scoping (rather than relying on a
22
- * provider-emitted wrapper) means no extra DOM node is inserted into consumer
23
- * trees, and forced-theme subtrees / portaled content resolve correctly because
24
- * the class rides React context, not DOM ancestry. See DUBOIS-448.
21
+ * `DesignSystemProvider` puts this on the scope wrapper it renders around its
22
+ * children, so in-tree native components inherit the tokens without self-scoping.
23
+ * Use it to re-establish that scope on content that renders OUTSIDE that wrapper —
24
+ * i.e. portaled surfaces (context crosses React portals, DOM inheritance does not).
25
25
  */
26
26
  export declare function useDuboisThemeClass(): string;
27
27
  export declare function useDesignSystemTheme(): DesignSystemThemeInterface;
@@ -0,0 +1,21 @@
1
+ import { EllipsisOutlined as AntEllipsisOutlined } from "@ant-design/icons";
2
+ import type { ComponentType } from "react";
3
+ /** Props type for all the antd built-in icons are the same, so pick any one */
4
+ type AntdIconProps = React.ComponentProps<typeof AntEllipsisOutlined>;
5
+ /**
6
+ * The icon components' props are picked from React's HTMLProps, which, in React 17, include
7
+ * `onPointerEnterCapture` and `onPointerLeaveCapture`, but in React 18 do not. Hence, instead of
8
+ * these props being optional, they are now `unknown` and thus must be declared on a component
9
+ * instance, unless we specifically remove them from the props interface.
10
+ */
11
+ type IconPropsWithoutPointerEvents = Omit<AntdIconProps, "onPointerEnterCapture" | "onPointerLeaveCapture">;
12
+ /**
13
+ * Antd built-in icons used by the design system's own legacy components, with an interface that has
14
+ * been made compatible with the React 18 types by removing the props that are no longer present on
15
+ * the React DOM types.
16
+ *
17
+ * These are deliberately NOT reëxported from the design system's public API: product code should
18
+ * use Du Bois icons from `__generated/icons`.
19
+ */
20
+ export declare const LegacyEllipsisOutlined: ComponentType<IconPropsWithoutPointerEvents>;
21
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
+ import type { IconProps } from "../../Icon";
3
+ declare const FlowsIcon: ForwardRefExoticComponent<PropsWithoutRef<IconProps> & RefAttributes<HTMLSpanElement>>;
4
+ export default FlowsIcon;
@@ -0,0 +1,4 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
+ import type { IconProps } from "../../Icon";
3
+ declare const LakewatchAlertIcon: ForwardRefExoticComponent<PropsWithoutRef<IconProps> & RefAttributes<HTMLSpanElement>>;
4
+ export default LakewatchAlertIcon;
@@ -0,0 +1,4 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
+ import type { IconProps } from "../../Icon";
3
+ declare const LakewatchDatasourceIcon: ForwardRefExoticComponent<PropsWithoutRef<IconProps> & RefAttributes<HTMLSpanElement>>;
4
+ export default LakewatchDatasourceIcon;
@@ -0,0 +1,4 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
+ import type { IconProps } from "../../Icon";
3
+ declare const LakewatchDetectionRuleIcon: ForwardRefExoticComponent<PropsWithoutRef<IconProps> & RefAttributes<HTMLSpanElement>>;
4
+ export default LakewatchDetectionRuleIcon;
@@ -0,0 +1,4 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
+ import type { IconProps } from "../../Icon";
3
+ declare const LakewatchParserIcon: ForwardRefExoticComponent<PropsWithoutRef<IconProps> & RefAttributes<HTMLSpanElement>>;
4
+ export default LakewatchParserIcon;
@@ -176,6 +176,7 @@ export { default as FilterIcon } from "./FilterIcon";
176
176
  export { default as FlagPointerIcon } from "./FlagPointerIcon";
177
177
  export { default as FloatIcon } from "./FloatIcon";
178
178
  export { default as FlowIcon } from "./FlowIcon";
179
+ export { default as FlowsIcon } from "./FlowsIcon";
179
180
  export { default as FolderBranchFillIcon } from "./FolderBranchFillIcon";
180
181
  export { default as FolderBranchIcon } from "./FolderBranchIcon";
181
182
  export { default as FolderCloudFilledIcon } from "./FolderCloudFilledIcon";
@@ -239,6 +240,10 @@ export { default as KeyboardIcon } from "./KeyboardIcon";
239
240
  export { default as LakebaseCatalogIcon } from "./LakebaseCatalogIcon";
240
241
  export { default as LakebaseIcon } from "./LakebaseIcon";
241
242
  export { default as LakeflowDesignerIcon } from "./LakeflowDesignerIcon";
243
+ export { default as LakewatchAlertIcon } from "./LakewatchAlertIcon";
244
+ export { default as LakewatchDatasourceIcon } from "./LakewatchDatasourceIcon";
245
+ export { default as LakewatchDetectionRuleIcon } from "./LakewatchDetectionRuleIcon";
246
+ export { default as LakewatchParserIcon } from "./LakewatchParserIcon";
242
247
  export { default as LayerGraphIcon } from "./LayerGraphIcon";
243
248
  export { default as LayerIcon } from "./LayerIcon";
244
249
  export { default as LeafIcon } from "./LeafIcon";
@@ -1,4 +1,3 @@
1
- export * from "./AntdIcon";
2
1
  export { Icon } from "./Icon";
3
2
  export type { IconProps } from "./Icon";
4
3
  export * from "./__generated/icons";
@@ -1,2 +1 @@
1
1
  export * from "./LegacyTooltip";
2
- export * from "./LegacyInfoTooltip";
@@ -1,6 +1,8 @@
1
1
  import type { CSSProperties } from "react";
2
2
  import type { WithLoadingState } from "../LoadingState/LoadingState";
3
- interface TitleSkeletonProps extends WithLoadingState {
3
+ import type { TypographyTitleProps } from "../Typography/Title";
4
+ import type { HTMLDataAttributes } from "../types";
5
+ export interface TitleSkeletonProps extends WithLoadingState, HTMLDataAttributes {
4
6
  /** Label for screen readers */
5
7
  label?: React.ReactNode;
6
8
  /** Seed that deterministically arranges the uneven lines, so that they look like ragged text.
@@ -12,6 +14,10 @@ interface TitleSkeletonProps extends WithLoadingState {
12
14
  style?: CSSProperties;
13
15
  /** Class name property */
14
16
  className?: string;
17
+ /** Match the line and visible fill heights of a Typography.Title level. Omit to preserve the legacy appearance. */
18
+ level?: TitleSkeletonLevel;
19
+ /** Render phrasing-safe markup for use inside an existing text element. */
20
+ inline?: boolean;
15
21
  }
16
- export declare const TitleSkeleton: ({ label, seed, frameRate, style, loading, loadingDescription, ...restProps }: TitleSkeletonProps) => JSX.Element;
17
- export {};
22
+ export type TitleSkeletonLevel = NonNullable<TypographyTitleProps["level"]>;
23
+ export declare const TitleSkeleton: ({ label, seed, frameRate, style, level, inline, loading, loadingDescription, ...restProps }: TitleSkeletonProps) => JSX.Element;
@@ -1,3 +1,7 @@
1
1
  import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
2
  import type { ButtonProps } from "../Button";
3
+ /**
4
+ * Deprecated in favor of `TypeaheadComboboxV2`.
5
+ * @deprecated
6
+ */
3
7
  export declare const TypeaheadComboboxAddButton: ForwardRefExoticComponent<PropsWithoutRef<ButtonProps> & RefAttributes<HTMLButtonElement>>;
@@ -1,11 +1,19 @@
1
1
  import type { UseComboboxReturnValue } from "downshift";
2
2
  import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
3
3
  import { type TypeaheadComboboxMenuItemProps } from "./TypeaheadComboboxMenuItem";
4
+ /**
5
+ * Deprecated in favor of `TypeaheadComboboxV2`.
6
+ * @deprecated
7
+ */
4
8
  export interface TypeaheadComboboxCheckboxItemProps<T> extends TypeaheadComboboxMenuItemProps<T> {
5
9
  comboboxState: UseComboboxReturnValue<T>;
6
10
  selectedItems: T[];
7
11
  selectedMatcher?: (a: T, b: T) => boolean;
8
12
  _type?: string;
9
13
  }
14
+ /**
15
+ * Deprecated in favor of `TypeaheadComboboxV2`.
16
+ * @deprecated
17
+ */
10
18
  export declare const TypeaheadComboboxCheckboxItem: ForwardRefExoticComponent<PropsWithoutRef<TypeaheadComboboxCheckboxItemProps<any>> & RefAttributes<HTMLLIElement>>;
11
19
  export default TypeaheadComboboxCheckboxItem;
@@ -1,6 +1,8 @@
1
1
  import type { UseComboboxGetToggleButtonPropsOptions } from "downshift";
2
2
  import { type DownshiftToggleButtonProps } from "./TypeaheadComboboxToggleButton";
3
3
  import type { ButtonSize } from "../Button";
4
+ /** Height of the non-inline controls block, for callers that position it themselves. */
5
+ export declare const TYPEAHEAD_COMBOBOX_CONTROLS_HEIGHT = 16;
4
6
  export interface TypeaheadComboboxControlsProps {
5
7
  getDownshiftToggleButtonProps: (options?: UseComboboxGetToggleButtonPropsOptions) => DownshiftToggleButtonProps;
6
8
  showClearSelectionButton?: boolean;
@@ -1,9 +1,21 @@
1
1
  import type { FunctionComponent } from "react";
2
+ /**
3
+ * Deprecated in favor of `TypeaheadComboboxV2`.
4
+ * @deprecated
5
+ */
2
6
  export interface TypeaheadComboboxFooterProps extends React.HTMLAttributes<HTMLDivElement> {
3
7
  /**
4
8
  * DO NOT USE, INTERNAL USE ONLY
5
9
  */
6
10
  _type?: string;
7
11
  }
12
+ /**
13
+ * Deprecated in favor of `TypeaheadComboboxV2`.
14
+ * @deprecated
15
+ */
8
16
  export declare const DuboisTypeaheadComboboxFooter: FunctionComponent<TypeaheadComboboxFooterProps>;
17
+ /**
18
+ * Deprecated in favor of `TypeaheadComboboxV2`.
19
+ * @deprecated
20
+ */
9
21
  export declare const TypeaheadComboboxFooter: FunctionComponent<TypeaheadComboboxFooterProps>;
@@ -1,6 +1,10 @@
1
1
  import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
2
  import type { ComboboxStateAnalyticsReturnValue } from "./hooks";
3
3
  import type { InputProps } from "../Input";
4
+ /**
5
+ * Deprecated in favor of `TypeaheadComboboxV2`.
6
+ * @deprecated
7
+ */
4
8
  export interface TypeaheadComboboxInputProps<T> extends Omit<InputProps, "componentId" | "analyticsEvents"> {
5
9
  comboboxState: ComboboxStateAnalyticsReturnValue<T>;
6
10
  allowClear?: boolean;
@@ -10,4 +14,8 @@ export interface TypeaheadComboboxInputProps<T> extends Omit<InputProps, "compon
10
14
  /** When true, replaces the dropdown toggle button with a spinner to indicate async loading. */
11
15
  loading?: boolean;
12
16
  }
17
+ /**
18
+ * Deprecated in favor of `TypeaheadComboboxV2`.
19
+ * @deprecated
20
+ */
13
21
  export declare const TypeaheadComboboxInput: ForwardRefExoticComponent<PropsWithoutRef<Omit<TypeaheadComboboxInputProps<any>, "componentId" | "analyticsEvents">> & RefAttributes<HTMLDivElement | null>>;
@@ -1,6 +1,10 @@
1
1
  import type { UseComboboxReturnValue } from "downshift";
2
2
  import type { ForwardRefExoticComponent, HTMLAttributes, PropsWithoutRef, ReactNode, RefAttributes } from "react";
3
3
  import React from "react";
4
+ /**
5
+ * Deprecated in favor of `TypeaheadComboboxV2`.
6
+ * @deprecated
7
+ */
4
8
  export interface TypeaheadComboboxMenuProps<T> extends HTMLAttributes<HTMLUListElement> {
5
9
  comboboxState: UseComboboxReturnValue<T>;
6
10
  loading?: boolean;
@@ -15,4 +19,8 @@ export interface TypeaheadComboboxMenuProps<T> extends HTMLAttributes<HTMLUListE
15
19
  children?: ReactNode;
16
20
  matchTriggerWidth?: boolean;
17
21
  }
22
+ /**
23
+ * Deprecated in favor of `TypeaheadComboboxV2`.
24
+ * @deprecated
25
+ */
18
26
  export declare const TypeaheadComboboxMenu: ForwardRefExoticComponent<PropsWithoutRef<TypeaheadComboboxMenuProps<any>> & RefAttributes<HTMLElement | null>>;