@databricks/design-system 2.0.5 → 2.0.6

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 (40) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/design-guidance/docs/README.md +40 -0
  3. package/design-guidance/docs/review-contract.md +22 -0
  4. package/design-guidance/docs/tokens.md +35 -0
  5. package/design-guidance/docs/voice.md +40 -0
  6. package/design-guidance/skills/dbui-build-screen.md +24 -0
  7. package/design-guidance/skills/dbui-check-ecosystem.md +21 -0
  8. package/design-guidance/skills/dbui-check-guidelines.md +29 -0
  9. package/design-guidance/skills/dbui-check-principles.md +26 -0
  10. package/design-guidance/skills/dbui-check-voice.md +17 -0
  11. package/design-guidance/skills/dbui-pick-component.md +23 -0
  12. package/design-guidance/skills/dbui-pick-icon.md +23 -0
  13. package/design-guidance/skills/dbui-review.md +30 -0
  14. package/design-guidance/skills/dbui-validate.md +23 -0
  15. package/dist/{RHFControlledTypeaheadComboboxV2-DsH-nIEk.js → RHFControlledTypeaheadComboboxV2-Ct9x3rC1.js} +5 -5
  16. package/dist/{RHFControlledTypeaheadComboboxV2-DsH-nIEk.js.map → RHFControlledTypeaheadComboboxV2-Ct9x3rC1.js.map} +1 -1
  17. package/dist/{WizardStepContentWrapper-Bq1wm0V7.js → WizardStepContentWrapper-6YTjeEaA.js} +477 -450
  18. package/dist/WizardStepContentWrapper-6YTjeEaA.js.map +1 -0
  19. package/dist/icon-metadata.json +2064 -0
  20. package/dist/{index-BRAVZg-S.js → index-DiRpSwH2.js} +239 -38
  21. package/dist/index-DiRpSwH2.js.map +1 -0
  22. package/dist/index-dark.css +458 -190
  23. package/dist/index-dark.mitigated.css +460 -192
  24. package/dist/index.css +1415 -1082
  25. package/dist/index.js +4 -4
  26. package/dist/index.mitigated.css +1417 -1084
  27. package/dist/patterns.js +3 -3
  28. package/dist-types/design-system/Drawer/Drawer.d.ts +3 -1
  29. package/dist-types/design-system/Icon/AntdIcon.d.ts +3 -0
  30. package/dist-types/design-system/Icon/Icon.d.ts +20 -6
  31. package/dist-types/design-system/Icon/NativeIcon.d.ts +3 -0
  32. package/dist-types/design-system/Icon/__generated/icons/LakewatchIcon.d.ts +4 -0
  33. package/dist-types/design-system/Icon/__generated/icons/index.d.ts +1 -0
  34. package/dist-types/design-system/Icon/index.d.ts +1 -0
  35. package/dist-types/design-system/Icon/utils.d.ts +1 -0
  36. package/dist-types/design-system/_shared_/Tabs/styles.d.ts +2 -3
  37. package/dist-types/~patterns/Wizard/WizardModal.d.ts +1 -1
  38. package/package.json +4 -2
  39. package/dist/WizardStepContentWrapper-Bq1wm0V7.js.map +0 -1
  40. package/dist/index-BRAVZg-S.js.map +0 -1
package/dist/patterns.js CHANGED
@@ -1,4 +1,4 @@
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, d as WizardStepNavigationProvider, u as useWizardCurrentStep, e as useWizardStepNavigation } from './WizardStepContentWrapper-Bq1wm0V7.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, d as WizardStepNavigationProvider, u as useWizardCurrentStep, e as useWizardStepNavigation } from './WizardStepContentWrapper-6YTjeEaA.js';
2
2
  import '@emotion/react/jsx-runtime';
3
3
  import 'lodash/isUndefined';
4
4
  import 'react';
@@ -16,6 +16,8 @@ import '@floating-ui/dom';
16
16
  import 'react-dom';
17
17
  import '@radix-ui/react-hover-card';
18
18
  import '@radix-ui/react-toast';
19
+ import '@radix-ui/react-slider';
20
+ import '@radix-ui/react-toolbar';
19
21
  import '@react-aria/combobox';
20
22
  import '@react-aria/listbox';
21
23
  import '@react-aria/overlays';
@@ -52,10 +54,8 @@ import '@radix-ui/react-navigation-menu';
52
54
  import '@radix-ui/react-radio-group';
53
55
  import '@radix-ui/react-progress';
54
56
  import 'react-resizable';
55
- import '@radix-ui/react-slider';
56
57
  import '@radix-ui/react-scroll-area';
57
58
  import '@radix-ui/react-tabs';
58
59
  import 'lodash/debounce';
59
60
  import '@radix-ui/react-toggle';
60
- import '@radix-ui/react-toolbar';
61
61
  //# sourceMappingURL=patterns.js.map
@@ -84,7 +84,9 @@ export interface DrawerContentProps extends AnalyticsEventProps<DesignSystemEven
84
84
  * Applies emotion styles to the top-level element in the component.
85
85
  */
86
86
  css?: Interpolation<EmotionTheme>;
87
+ /** Applies a class name to the top-level element in the component. */
88
+ className?: string;
87
89
  }
88
- export declare const Content: ({ children, footer, title, width, height, position: positionOverride, useCustomScrollBehavior, expandContentToFullHeight, disableOpenAutoFocus, onInteractOutside, seeThrough, hideClose, closeOnClickOutside, onCloseClick, componentId, analyticsEvents, size, ...props }: DrawerContentProps) => JSX.Element;
90
+ export declare const Content: ({ children, footer, title, width, height, position: positionOverride, useCustomScrollBehavior, expandContentToFullHeight, disableOpenAutoFocus, onInteractOutside, seeThrough, hideClose, closeOnClickOutside, onCloseClick, componentId, analyticsEvents, size, className, ...props }: DrawerContentProps) => JSX.Element;
89
91
  export declare function Root(props: Pick<DialogPrimitive.DialogProps, "onOpenChange" | "children" | "open" | "modal">): JSX.Element;
90
92
  export declare function Trigger(props: Omit<DialogPrimitive.DialogTriggerProps, "asChild">): JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
+ import type { IconProps } from "./Icon";
3
+ export declare const AntdIcon: ForwardRefExoticComponent<PropsWithoutRef<IconProps> & RefAttributes<HTMLSpanElement>>;
@@ -1,12 +1,26 @@
1
- import AntDIcon from "@ant-design/icons";
2
- import type { ForwardRefExoticComponent, PropsWithoutRef, ReactElement, RefAttributes } from "react";
1
+ import type { ComponentType, CSSProperties, ForwardRefExoticComponent, HTMLProps, PropsWithoutRef, ReactElement, RefAttributes, SVGProps } from "react";
3
2
  import React from "react";
4
3
  import type { HTMLDataAttributes } from "../types";
5
- type AntDIconProps = Omit<React.ComponentProps<typeof AntDIcon>, "onPointerEnterCapture" | "onPointerLeaveCapture">;
4
+ export { getIconClassName } from "./utils";
6
5
  export type IconColors = "danger" | "warning" | "success" | "ai";
7
- export interface IconProps extends Omit<AntDIconProps, "component">, HTMLDataAttributes, React.HTMLAttributes<HTMLSpanElement> {
8
- component?: (props: React.SVGProps<SVGSVGElement>) => ReactElement | null;
6
+ interface CustomIconComponentProps {
7
+ width: string | number;
8
+ height: string | number;
9
+ fill: string;
10
+ viewBox?: string;
11
+ className?: string;
12
+ style?: CSSProperties;
13
+ }
14
+ interface IconCompatibilityProps extends Omit<HTMLProps<HTMLSpanElement>, "onPointerEnterCapture" | "onPointerLeaveCapture"> {
15
+ spin?: boolean;
16
+ rotate?: number;
17
+ viewBox?: string;
18
+ component?: ComponentType<CustomIconComponentProps | SVGProps<SVGSVGElement>> | ForwardRefExoticComponent<CustomIconComponentProps>;
19
+ ariaLabel?: React.AriaAttributes["aria-label"];
20
+ }
21
+ export interface IconProps extends Omit<IconCompatibilityProps, "component">, HTMLDataAttributes, React.HTMLAttributes<HTMLSpanElement> {
22
+ component?: (props: SVGProps<SVGSVGElement>) => ReactElement | null;
9
23
  color?: IconColors;
24
+ forceNativeIcon?: boolean;
10
25
  }
11
26
  export declare const Icon: ForwardRefExoticComponent<PropsWithoutRef<IconProps> & RefAttributes<HTMLSpanElement>>;
12
- export {};
@@ -0,0 +1,3 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
+ import type { IconProps } from "./Icon";
3
+ export declare const NativeIcon: ForwardRefExoticComponent<PropsWithoutRef<IconProps> & RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,4 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
2
+ import type { IconProps } from "../../Icon";
3
+ declare const LakewatchIcon: ForwardRefExoticComponent<PropsWithoutRef<IconProps> & RefAttributes<HTMLSpanElement>>;
4
+ export default LakewatchIcon;
@@ -245,6 +245,7 @@ export { default as LakeflowDesignerIcon } from "./LakeflowDesignerIcon";
245
245
  export { default as LakewatchAlertIcon } from "./LakewatchAlertIcon";
246
246
  export { default as LakewatchDatasourceIcon } from "./LakewatchDatasourceIcon";
247
247
  export { default as LakewatchDetectionRuleIcon } from "./LakewatchDetectionRuleIcon";
248
+ export { default as LakewatchIcon } from "./LakewatchIcon";
248
249
  export { default as LakewatchParserIcon } from "./LakewatchParserIcon";
249
250
  export { default as LayerGraphIcon } from "./LayerGraphIcon";
250
251
  export { default as LayerIcon } from "./LayerIcon";
@@ -1,3 +1,4 @@
1
1
  export { Icon } from "./Icon";
2
2
  export type { IconProps } from "./Icon";
3
+ export { getIconClassName } from "./utils";
3
4
  export * from "./__generated/icons";
@@ -0,0 +1 @@
1
+ export declare function getIconClassName(): string;
@@ -1,4 +1,3 @@
1
1
  import type { CSSObject } from "@emotion/react";
2
- import type { Theme } from "../../../theme";
3
- export declare const getCommonTabsListStyles: (theme: Theme) => CSSObject;
4
- export declare const getCommonTabsTriggerStyles: (theme: Theme) => CSSObject;
2
+ export declare const COMMON_TABS_LIST_STYLES: CSSObject;
3
+ export declare const COMMON_TABS_TRIGGER_STYLES: CSSObject;
@@ -3,4 +3,4 @@ import { type ModalProps } from "../../design-system";
3
3
  export interface WizardModalProps extends Omit<ModalProps, "footer" | "onCancel" | "onOk">, Omit<WizardProps, "width" | "layout" | "title"> {
4
4
  onModalClose: () => void;
5
5
  }
6
- export declare function WizardModal({ onStepChanged, onCancel, initialStep, steps, onModalClose, localizeStepNumber, cancelButtonContent, nextButtonContent, previousButtonContent, doneButtonContent, enableClickingToSteps, ...modalProps }: WizardModalProps): JSX.Element | null;
6
+ export declare function WizardModal({ onStepChanged, onValidateStepChange, onCancel, initialStep, steps, onModalClose, localizeStepNumber, cancelButtonContent, nextButtonContent, previousButtonContent, doneButtonContent, enableClickingToSteps, ...modalProps }: WizardModalProps): JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/design-system",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "DuBois Design System",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -16,6 +16,7 @@
16
16
  "types": "dist-types/index.d.ts",
17
17
  "exports": {
18
18
  "./package.json": "./package.json",
19
+ "./icon-metadata.json": "./dist/icon-metadata.json",
19
20
  ".": {
20
21
  "types": "./dist-types/index.d.ts",
21
22
  "import": "./dist/index.js",
@@ -56,7 +57,8 @@
56
57
  "/CHANGELOG.md",
57
58
  "dist",
58
59
  "dist-types",
59
- "test-utils"
60
+ "test-utils",
61
+ "/design-guidance"
60
62
  ],
61
63
  "scripts": {
62
64
  "prepublish": "./scripts/prepublish",