@digital-ai/dot-components 2.10.1 → 2.11.0

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.
@@ -1,6 +1,6 @@
1
1
  import { ComponentMeta, Story } from '@storybook/react';
2
2
  import { PopperProps } from './Popper';
3
- declare const _default: ComponentMeta<({ ariaLabel, anchorEl, children, className, "data-testid": dataTestId, disablePortal, onClickAway, open, placement, }: PopperProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ ariaLabel, anchorEl, children, className, "data-testid": dataTestId, disablePortal, modifiers, onClickAway, open, placement, }: PopperProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: Story<PopperProps>;
6
6
  export declare const WithButtonAnchor: Story<PopperProps>;
@@ -44,6 +44,8 @@ export interface StepperProps extends CommonProps {
44
44
  nextButtonText?: string;
45
45
  /** if set to `true`, the "next" button will be disabled */
46
46
  nextStepDisabled?: boolean;
47
+ /** the number of pixels occupied by elements other than the stepper in the page height **/
48
+ offset?: number;
47
49
  /** function that is called if the "previous" button is clicked */
48
50
  onBack?: () => void;
49
51
  /** function that is called if the "cancel" button is clicked */
@@ -59,4 +61,4 @@ export interface StepperProps extends CommonProps {
59
61
  /** if passed, will overwrite the default "submit" button text */
60
62
  submitButtonText?: string;
61
63
  }
62
- export declare const DotStepper: ({ activeStep, ariaLabel, className, "data-testid": dataTestId, finalContent, initialContent, nextButtonText, nextStepDisabled, onBack, onCancel, onSubmit, orientation, disableUncompletedStepNav, steps, stepsPosition, submitButtonText, }: StepperProps) => JSX.Element;
64
+ export declare const DotStepper: ({ activeStep, ariaLabel, className, "data-testid": dataTestId, finalContent, initialContent, nextButtonText, nextStepDisabled, offset, onBack, onCancel, onSubmit, orientation, disableUncompletedStepNav, steps, stepsPosition, submitButtonText, }: StepperProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ComponentMeta } from '@storybook/react';
2
2
  import { StepperProps } from './Stepper';
3
- declare const _default: ComponentMeta<({ activeStep, ariaLabel, className, "data-testid": dataTestId, finalContent, initialContent, nextButtonText, nextStepDisabled, onBack, onCancel, onSubmit, orientation, disableUncompletedStepNav, steps, stepsPosition, submitButtonText, }: StepperProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ activeStep, ariaLabel, className, "data-testid": dataTestId, finalContent, initialContent, nextButtonText, nextStepDisabled, offset, onBack, onCancel, onSubmit, orientation, disableUncompletedStepNav, steps, stepsPosition, submitButtonText, }: StepperProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Default: any;
6
6
  export declare const WithStepDescription: any;
@@ -2,6 +2,10 @@ export declare const rootClassName = "dot-stepper";
2
2
  export declare const stepListClassName = "dot-stepper-list";
3
3
  export declare const contentClassName = "dot-stepper-content";
4
4
  export declare const StyledStepper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ interface StyledScrollbarContainerProps {
6
+ offset?: number;
7
+ }
8
+ export declare const ScrollbarContainer: import("styled-components").StyledComponent<"div", any, StyledScrollbarContainerProps, never>;
5
9
  export declare const StepContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
6
10
  export declare const StepDescription: import("styled-components").StyledComponent<({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("../typography/Typography").TypographyProps) => JSX.Element, any, {}, never>;
7
11
  interface StyledStepActionsContainerProps {
@@ -4,7 +4,7 @@ export declare const actionItemArray: {
4
4
  actions: {
5
5
  children: JSX.Element;
6
6
  key: string;
7
- onclick: () => void;
7
+ onClick: () => void;
8
8
  }[];
9
9
  }[];
10
10
  export declare const actionCol: {
@@ -18,7 +18,7 @@ export declare const tableData: {
18
18
  actions: {
19
19
  children: JSX.Element;
20
20
  key: string;
21
- onclick: () => void;
21
+ onClick: () => void;
22
22
  }[];
23
23
  }[];
24
24
  type: string;
@@ -8,7 +8,7 @@ export interface TypographyProps extends CommonProps {
8
8
  children: ReactNode;
9
9
  /** The component used for the root node. Either a string to use a HTML element or a component. */
10
10
  component?: ElementType;
11
- /** If true, the typography will not have a bottom margin set */
11
+ /** DEPRECATED: If true, the typography will not have a bottom margin set */
12
12
  noMarginBottom?: boolean;
13
13
  /** If true, the text will wrap and not be truncated */
14
14
  noWrap?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "2.10.1",
3
+ "version": "2.11.0",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [