@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
@@ -0,0 +1,11 @@
1
+ import type { Typography as AntDTypography } from "antd";
2
+ import type { ComponentProps } from "react";
3
+ type AntDTitleProps = ComponentProps<(typeof AntDTypography)["Title"]>;
4
+ export type TypographyTitleLevel = NonNullable<AntDTitleProps["level"]>;
5
+ type TypographyTitleFontSizeToken = "fontSizeXxl" | "fontSizeXl" | "fontSizeLg" | "fontSizeMd";
6
+ type TypographyTitleLineHeightToken = "lineHeightXxl" | "lineHeightXl" | "lineHeightLg" | "lineHeightMd";
7
+ export declare const TYPOGRAPHY_TITLE_TOKENS_BY_LEVEL: Record<TypographyTitleLevel, {
8
+ fontSize: TypographyTitleFontSizeToken;
9
+ lineHeight: TypographyTitleLineHeightToken;
10
+ }>;
11
+ export {};
@@ -1,3 +1,3 @@
1
1
  export declare const getNewChildren: (children: React.ReactNode, props: {
2
2
  disabled?: boolean;
3
- }, disabledReason: React.ReactNode, ref: React.RefObject<HTMLElement>) => React.ReactNode;
3
+ }, disabledReason: React.ReactNode, zIndex?: number) => React.ReactNode;
@@ -1 +1,2 @@
1
1
  export declare const DM_SANS_FONT_FAMILY = "'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif";
2
+ export declare const DM_MONO_FONT_FAMILY = "'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace";
@@ -74,5 +74,6 @@ export * from "./Tooltip";
74
74
  export * from "./Tree";
75
75
  export * from "./TreeGrid";
76
76
  export * from "./TypeaheadCombobox";
77
+ export * as TypeaheadComboboxV2 from "./TypeaheadComboboxV2";
77
78
  export * from "./Typography";
78
79
  export * from "./utils";
@@ -8,7 +8,10 @@ interface useMediaQueryProps {
8
8
  /**
9
9
  * The default value to return if the hook is being run on the server (default is `false`).
10
10
  * options.defaultValue: The default value to return if the hook is being run on the server (default is `false`).
11
- * options.initializeWithValue: If `true` (default), the hook will initialize reading the media query. In SSR, you should set it to `false`, returning `options.defaultValue` or `false` initially.
11
+ * options.initializeWithValue: When `true`, the hook reads the media query synchronously for the
12
+ * initial render. Defaults to falsy here (unlike upstream usehooks-ts): the initial value is
13
+ * `options.defaultValue` / `false`, then corrected in a layout effect — which is SSR-safe. Set
14
+ * `true` to opt into eager initialization on the client.
12
15
  */
13
16
  options?: boolean | UseMediaQueryOptions;
14
17
  }
@@ -79,5 +79,6 @@ export declare enum ValidSemanticColors {
79
79
  TextValidationDanger = "textValidationDanger",
80
80
  TextValidationSuccess = "textValidationSuccess",
81
81
  TextValidationWarning = "textValidationWarning",
82
- TooltipBackgroundTooltip = "tooltipBackgroundTooltip"
82
+ TooltipBackgroundTooltip = "tooltipBackgroundTooltip",
83
+ TooltipTextTooltip = "tooltipTextTooltip"
83
84
  }
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/design-system",
3
- "oxfmt": true,
4
- "version": "2.0.1",
3
+ "version": "2.0.3",
5
4
  "description": "DuBois Design System",
6
5
  "keywords": [],
7
6
  "license": "ISC",
@@ -41,13 +40,15 @@
41
40
  "./dist/index.mitigated.css": "./dist/index.mitigated.css",
42
41
  "./dist/index-dark.mitigated.css": "./dist/index-dark.mitigated.css",
43
42
  "./dist/dubois-colors.less": "./dist/dubois-colors.less",
44
- "./fonts/dm-sans.css": "./dist/fonts/dm-sans/dm-sans.css"
43
+ "./fonts/dm-sans.css": "./dist/fonts/dm-sans/dm-sans.css",
44
+ "./fonts/dm-mono.css": "./dist/fonts/dm-mono/dm-mono.css"
45
45
  },
46
46
  "sideEffects": [
47
47
  "*.css"
48
48
  ],
49
49
  "files": [
50
50
  "/AGENTS.md",
51
+ "/CHANGELOG.md",
51
52
  "dist",
52
53
  "dist-types",
53
54
  "test-utils"
@@ -85,6 +86,7 @@
85
86
  "devDependencies": {
86
87
  "@databricks/config-eslint": "1.0.0",
87
88
  "@databricks/config-jest": "1.0.0",
89
+ "@databricks/config-oxlint": "1.0.0",
88
90
  "@databricks/config-prettier": "1.0.0",
89
91
  "@databricks/db-lint": "1.0.0",
90
92
  "@databricks/pkgr": "1.0.0",
@@ -149,6 +151,15 @@
149
151
  "@radix-ui/react-toggle": "1.0.3",
150
152
  "@radix-ui/react-toolbar": "1.0.4",
151
153
  "@radix-ui/react-tooltip-patch": "npm:@radix-ui/react-tooltip@^1.0.7",
154
+ "@react-aria/button": "^3.13.4",
155
+ "@react-aria/combobox": "^3.14.0",
156
+ "@react-aria/focus": "^3.21.4",
157
+ "@react-aria/i18n": "^3.12.13",
158
+ "@react-aria/listbox": "^3.15.0",
159
+ "@react-aria/overlays": "^3.30.0",
160
+ "@react-aria/utils": "^3.33.0",
161
+ "@react-stately/collections": "^3.12.8",
162
+ "@react-stately/combobox": "^3.12.0",
152
163
  "@testing-library/dom": "^10.4.0",
153
164
  "@testing-library/react": "^16.1.0",
154
165
  "@testing-library/user-event": "^14.5.2",