@speakapbv/dough-component-library 10.8.1 → 10.10.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.
Files changed (37) hide show
  1. package/dist/components/color-tile/color-tile.d.ts +1 -1
  2. package/dist/components/containers/box/box.d.ts +1 -1
  3. package/dist/components/drop-menu/drop-menu.d.ts +1 -1
  4. package/dist/components/form-elements/select-box/select-box.d.ts +3 -3
  5. package/dist/components/form-elements/selection-inputs/check-box.d.ts +2 -2
  6. package/dist/components/form-elements/selection-inputs/radio-group.d.ts +2 -2
  7. package/dist/components/form-elements/switch/switch.d.ts +1 -1
  8. package/dist/components/form-elements/text-inputs/numeric-input.d.ts +1 -1
  9. package/dist/components/form-elements/text-inputs/text-area.d.ts +1 -1
  10. package/dist/components/form-elements/text-inputs/text-input.d.ts +1 -1
  11. package/dist/components/form-elements/time-picker/time-picker.d.ts +1 -1
  12. package/dist/components/form-elements/toggle/toggle.d.ts +1 -1
  13. package/dist/components/texts/texts.d.ts +4 -0
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.es.js +213 -241
  16. package/dist/index.js +273 -300
  17. package/dist/node_modules/@speakapbv/dough-component-library-tokens/index.d.ts +1 -0
  18. package/dist/src/components/alert-textbox/alert-textbox.stories.d.ts +9 -2
  19. package/dist/src/components/bread-crumb/bread-crumb.stories.d.ts +13 -9
  20. package/dist/src/components/button/button.stories.d.ts +7 -6
  21. package/dist/src/components/color-tile/color-tile.stories.d.ts +4 -3
  22. package/dist/src/components/containers/card/card.stories.d.ts +13 -3
  23. package/dist/src/components/divider/divider.stories.d.ts +17 -4
  24. package/dist/src/components/drop-menu/drop-menu.stories.d.ts +4 -3
  25. package/dist/src/components/form-elements/form-element-base-wrapper.d.ts +1 -1
  26. package/dist/src/components/form-elements/selection-inputs/check-box.stories.d.ts +5 -4
  27. package/dist/src/components/overlay/overlay.stories.d.ts +4 -2
  28. package/dist/src/components/progress-bar/multi-progress-bar.stories.d.ts +25 -6
  29. package/dist/src/components/progress-bar/progress-bar.stories.d.ts +9 -2
  30. package/dist/src/components/spinner/spinner.stories.d.ts +9 -2
  31. package/dist/src/components/tabs/tabs.stories.d.ts +13 -3
  32. package/dist/src/components/tree/tree.d.ts +1 -1
  33. package/dist/src/utils/flattenChildren.d.ts +1 -1
  34. package/dist/utils/constants.d.ts +6 -6
  35. package/dist/utils/dom-management.d.ts +7 -7
  36. package/dist/utils/styles.d.ts +1 -1
  37. package/package.json +8 -5
@@ -54,6 +54,7 @@ declare const _default: {
54
54
  textH3: string;
55
55
  textH2: string;
56
56
  textH1: string;
57
+ textHero: string;
57
58
  textTiny: string;
58
59
  lineHeightHeading: string;
59
60
  lineHeightBody: string;
@@ -1,3 +1,10 @@
1
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./alert-textbox").AlertTextProps>;
1
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
2
+ declare const _default: ComponentMeta<{
3
+ (props: import("./alert-textbox").AlertTextProps): JSX.Element;
4
+ displayName: string;
5
+ }>;
2
6
  export default _default;
3
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./alert-textbox").AlertTextProps>;
7
+ export declare const Default: ComponentStory<{
8
+ (props: import("./alert-textbox").AlertTextProps): JSX.Element;
9
+ displayName: string;
10
+ }>;
@@ -1,27 +1,31 @@
1
+ import { ComponentMeta, Story } from "@storybook/react";
1
2
  import { BreadCrumbProps } from "./bread-crumb";
2
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, BreadCrumbProps>;
3
+ declare const _default: ComponentMeta<{
4
+ (props: BreadCrumbProps): JSX.Element;
5
+ displayName: string;
6
+ }>;
3
7
  export default _default;
4
- export declare const Simple: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, BreadCrumbProps & {
8
+ export declare const Simple: Story<BreadCrumbProps & {
5
9
  width: string;
6
10
  }>;
7
- export declare const OneChild: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, BreadCrumbProps & {
11
+ export declare const OneChild: Story<BreadCrumbProps & {
8
12
  width: string;
9
13
  }>;
10
- export declare const LimitedWidth: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, BreadCrumbProps & {
14
+ export declare const LimitedWidth: Story<BreadCrumbProps & {
11
15
  width: string;
12
16
  }>;
13
- export declare const MultipleChildren: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, BreadCrumbProps & {
17
+ export declare const MultipleChildren: Story<BreadCrumbProps & {
14
18
  width: string;
15
19
  }>;
16
- export declare const CustomChildren: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, BreadCrumbProps & {
20
+ export declare const CustomChildren: Story<BreadCrumbProps & {
17
21
  width: string;
18
22
  }>;
19
- export declare const CustomChildInTheMiddle: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, BreadCrumbProps & {
23
+ export declare const CustomChildInTheMiddle: Story<BreadCrumbProps & {
20
24
  width: string;
21
25
  }>;
22
- export declare const CustomChildrenLimitedWidth: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, BreadCrumbProps & {
26
+ export declare const CustomChildrenLimitedWidth: Story<BreadCrumbProps & {
23
27
  width: string;
24
28
  }>;
25
- export declare const WithoutUsingFragments: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, BreadCrumbProps & {
29
+ export declare const WithoutUsingFragments: Story<BreadCrumbProps & {
26
30
  width: string;
27
31
  }>;
@@ -1,19 +1,20 @@
1
1
  import React from "react";
2
+ import { ComponentMeta, Story } from "@storybook/react";
2
3
  import { ButtonProps } from "./button";
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
4
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>>;
4
5
  export default _default;
5
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, ButtonProps & {
6
+ export declare const Default: Story<ButtonProps & {
6
7
  width: string;
7
8
  }>;
8
- export declare const Phantom: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, ButtonProps & {
9
+ export declare const Phantom: Story<ButtonProps & {
9
10
  width: string;
10
11
  }>;
11
- export declare const ColorButton: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, ButtonProps & {
12
+ export declare const ColorButton: Story<ButtonProps & {
12
13
  width: string;
13
14
  }>;
14
- export declare const ColorButtonWithoutBorder: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, ButtonProps & {
15
+ export declare const ColorButtonWithoutBorder: Story<ButtonProps & {
15
16
  width: string;
16
17
  }>;
17
- export declare const ConstrainedButton: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, Pick<ButtonProps, "className" | "children" | "dataAttributes" | "type" | "size" | "color" | "border" | "rounded" | "shadow" | "padding" | "onClick" | "onMouseDown" | "onPointerDown" | "allEvents" | "fullWidth" | "disabled" | "alignIconRight" | "linkProps" | "tabIndex" | "name" | "autoFocus" | "icon" | "onDoubleClick" | "flat" | "busy" | "withoutBackground" | "colorPicker"> & {
18
+ export declare const ConstrainedButton: Story<Omit<ButtonProps, "label"> & {
18
19
  singleLabel: boolean;
19
20
  }>;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./color-tile").ColorTileProps & React.RefAttributes<import("./color-tile").ColorTileRef>>;
2
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("./color-tile").ColorTileProps & React.RefAttributes<import("./color-tile").ColorTileRef>>>;
3
4
  export default _default;
4
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./color-tile").ColorTileProps & React.RefAttributes<import("./color-tile").ColorTileRef>>;
5
- export declare const WithChild: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./color-tile").ColorTileProps & React.RefAttributes<import("./color-tile").ColorTileRef>>;
5
+ export declare const Default: ComponentStory<React.ForwardRefExoticComponent<import("./color-tile").ColorTileProps & React.RefAttributes<import("./color-tile").ColorTileRef>>>;
6
+ export declare const WithChild: ComponentStory<React.ForwardRefExoticComponent<import("./color-tile").ColorTileProps & React.RefAttributes<import("./color-tile").ColorTileRef>>>;
@@ -1,4 +1,14 @@
1
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./card").CardProps>;
1
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
2
+ declare const _default: ComponentMeta<{
3
+ (props: import("./card").CardProps): JSX.Element;
4
+ displayName: string;
5
+ }>;
2
6
  export default _default;
3
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./card").CardProps>;
4
- export declare const ActionCard: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./card").CardProps>;
7
+ export declare const Default: ComponentStory<{
8
+ (props: import("./card").CardProps): JSX.Element;
9
+ displayName: string;
10
+ }>;
11
+ export declare const ActionCard: ComponentStory<{
12
+ (props: import("./card").CardProps): JSX.Element;
13
+ displayName: string;
14
+ }>;
@@ -1,5 +1,18 @@
1
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./divider").DividerProps>;
1
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
2
+ declare const _default: ComponentMeta<{
3
+ (props: import("./divider").DividerProps): JSX.Element;
4
+ displayName: string;
5
+ }>;
2
6
  export default _default;
3
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./divider").DividerProps>;
4
- export declare const Vertical: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./divider").DividerProps>;
5
- export declare const WithText: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./divider").DividerProps>;
7
+ export declare const Default: ComponentStory<{
8
+ (props: import("./divider").DividerProps): JSX.Element;
9
+ displayName: string;
10
+ }>;
11
+ export declare const Vertical: ComponentStory<{
12
+ (props: import("./divider").DividerProps): JSX.Element;
13
+ displayName: string;
14
+ }>;
15
+ export declare const WithText: ComponentStory<{
16
+ (props: import("./divider").DividerProps): JSX.Element;
17
+ displayName: string;
18
+ }>;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./drop-menu").DropMenuProps & React.RefAttributes<import("./drop-menu").DoughDropMenuRef>>;
2
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("./drop-menu").DropMenuProps & React.RefAttributes<import("./drop-menu").DoughDropMenuRef>>>;
3
4
  export default _default;
4
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./drop-menu").DropMenuProps & React.RefAttributes<import("./drop-menu").DoughDropMenuRef>>;
5
- export declare const Multiple: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./drop-menu").DropMenuProps & React.RefAttributes<import("./drop-menu").DoughDropMenuRef>>;
5
+ export declare const Default: ComponentStory<React.ForwardRefExoticComponent<import("./drop-menu").DropMenuProps & React.RefAttributes<import("./drop-menu").DoughDropMenuRef>>>;
6
+ export declare const Multiple: ComponentStory<React.ForwardRefExoticComponent<import("./drop-menu").DropMenuProps & React.RefAttributes<import("./drop-menu").DoughDropMenuRef>>>;
@@ -18,5 +18,5 @@ interface FormElementBaseProps {
18
18
  children: React.ReactNode;
19
19
  [key: string]: any;
20
20
  }
21
- export declare const FormElementBase: React.ForwardRefExoticComponent<Pick<FormElementBaseProps, React.ReactText> & React.RefAttributes<unknown>>;
21
+ export declare const FormElementBase: React.ForwardRefExoticComponent<Pick<FormElementBaseProps, keyof FormElementBaseProps> & React.RefAttributes<unknown>>;
22
22
  export {};
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, Pick<import("./check-box").CheckBoxProps, "label" | "className" | "children" | "dataAttributes" | "size" | "width" | "color" | "rounded" | "disabled" | "tabIndex" | "name" | "icon" | "inputClassName" | "checkOnly" | "readOnly" | "onChange" | "value" | "alignment"> & React.RefAttributes<import("../../..").DoughBooleanInputRef>>;
2
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Pick<import("./check-box").CheckBoxProps, "label" | "className" | "children" | "dataAttributes" | "size" | "width" | "color" | "rounded" | "disabled" | "tabIndex" | "name" | "icon" | "inputClassName" | "checkOnly" | "readOnly" | "onChange" | "value" | "alignment"> & React.RefAttributes<import("../../..").DoughBooleanInputRef>>>;
3
4
  export default _default;
4
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, Pick<import("./check-box").CheckBoxProps, "label" | "className" | "children" | "dataAttributes" | "size" | "width" | "color" | "rounded" | "disabled" | "tabIndex" | "name" | "icon" | "inputClassName" | "checkOnly" | "readOnly" | "onChange" | "value" | "alignment"> & React.RefAttributes<import("../../..").DoughBooleanInputRef>>;
5
- export declare const WithLabel: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, Pick<import("./check-box").CheckBoxProps, "label" | "className" | "children" | "dataAttributes" | "size" | "width" | "color" | "rounded" | "disabled" | "tabIndex" | "name" | "icon" | "inputClassName" | "checkOnly" | "readOnly" | "onChange" | "value" | "alignment"> & React.RefAttributes<import("../../..").DoughBooleanInputRef>>;
6
- export declare const WithTopLabel: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, Pick<import("./check-box").CheckBoxProps, "label" | "className" | "children" | "dataAttributes" | "size" | "width" | "color" | "rounded" | "disabled" | "tabIndex" | "name" | "icon" | "inputClassName" | "checkOnly" | "readOnly" | "onChange" | "value" | "alignment"> & React.RefAttributes<import("../../..").DoughBooleanInputRef>>;
5
+ export declare const Default: ComponentStory<React.ForwardRefExoticComponent<Pick<import("./check-box").CheckBoxProps, "label" | "className" | "children" | "dataAttributes" | "size" | "width" | "color" | "rounded" | "disabled" | "tabIndex" | "name" | "icon" | "inputClassName" | "checkOnly" | "readOnly" | "onChange" | "value" | "alignment"> & React.RefAttributes<import("../../..").DoughBooleanInputRef>>>;
6
+ export declare const WithLabel: ComponentStory<React.ForwardRefExoticComponent<Pick<import("./check-box").CheckBoxProps, "label" | "className" | "children" | "dataAttributes" | "size" | "width" | "color" | "rounded" | "disabled" | "tabIndex" | "name" | "icon" | "inputClassName" | "checkOnly" | "readOnly" | "onChange" | "value" | "alignment"> & React.RefAttributes<import("../../..").DoughBooleanInputRef>>>;
7
+ export declare const WithTopLabel: ComponentStory<React.ForwardRefExoticComponent<Pick<import("./check-box").CheckBoxProps, "label" | "className" | "children" | "dataAttributes" | "size" | "width" | "color" | "rounded" | "disabled" | "tabIndex" | "name" | "icon" | "inputClassName" | "checkOnly" | "readOnly" | "onChange" | "value" | "alignment"> & React.RefAttributes<import("../../..").DoughBooleanInputRef>>>;
@@ -1,3 +1,5 @@
1
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./overlay").OverlayProps>;
1
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
2
+ import { Overlay } from "./overlay";
3
+ declare const _default: ComponentMeta<typeof Overlay>;
2
4
  export default _default;
3
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./overlay").OverlayProps>;
5
+ export declare const Default: ComponentStory<typeof Overlay>;
@@ -1,7 +1,26 @@
1
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./multi-progress-bar").MultiProgressBarProps>;
1
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
2
+ declare const _default: ComponentMeta<{
3
+ ({ dataAttributes, className, railColor, data, total, }: import("./multi-progress-bar").MultiProgressBarProps): JSX.Element;
4
+ displayName: string;
5
+ }>;
2
6
  export default _default;
3
- export declare const Empty: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./multi-progress-bar").MultiProgressBarProps>;
4
- export declare const SingleData: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./multi-progress-bar").MultiProgressBarProps>;
5
- export declare const MultipleData: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./multi-progress-bar").MultiProgressBarProps>;
6
- export declare const BigData: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./multi-progress-bar").MultiProgressBarProps>;
7
- export declare const FullyFilled: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./multi-progress-bar").MultiProgressBarProps>;
7
+ export declare const Empty: ComponentStory<{
8
+ ({ dataAttributes, className, railColor, data, total, }: import("./multi-progress-bar").MultiProgressBarProps): JSX.Element;
9
+ displayName: string;
10
+ }>;
11
+ export declare const SingleData: ComponentStory<{
12
+ ({ dataAttributes, className, railColor, data, total, }: import("./multi-progress-bar").MultiProgressBarProps): JSX.Element;
13
+ displayName: string;
14
+ }>;
15
+ export declare const MultipleData: ComponentStory<{
16
+ ({ dataAttributes, className, railColor, data, total, }: import("./multi-progress-bar").MultiProgressBarProps): JSX.Element;
17
+ displayName: string;
18
+ }>;
19
+ export declare const BigData: ComponentStory<{
20
+ ({ dataAttributes, className, railColor, data, total, }: import("./multi-progress-bar").MultiProgressBarProps): JSX.Element;
21
+ displayName: string;
22
+ }>;
23
+ export declare const FullyFilled: ComponentStory<{
24
+ ({ dataAttributes, className, railColor, data, total, }: import("./multi-progress-bar").MultiProgressBarProps): JSX.Element;
25
+ displayName: string;
26
+ }>;
@@ -1,3 +1,10 @@
1
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./progress-bar").ProgressBarProps>;
1
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
2
+ declare const _default: ComponentMeta<{
3
+ ({ total, completed, railColor, barColor, dataAttributes, className, }: import("./progress-bar").ProgressBarProps): JSX.Element;
4
+ displayName: string;
5
+ }>;
2
6
  export default _default;
3
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./progress-bar").ProgressBarProps>;
7
+ export declare const Default: ComponentStory<{
8
+ ({ total, completed, railColor, barColor, dataAttributes, className, }: import("./progress-bar").ProgressBarProps): JSX.Element;
9
+ displayName: string;
10
+ }>;
@@ -1,3 +1,10 @@
1
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./spinner").SpinnerProps>;
1
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
2
+ declare const _default: ComponentMeta<{
3
+ (props: import("./spinner").SpinnerProps): JSX.Element;
4
+ displayName: string;
5
+ }>;
2
6
  export default _default;
3
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./spinner").SpinnerProps>;
7
+ export declare const Default: ComponentStory<{
8
+ (props: import("./spinner").SpinnerProps): JSX.Element;
9
+ displayName: string;
10
+ }>;
@@ -1,4 +1,14 @@
1
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./tabs").TabsContainerProps>;
1
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
2
+ declare const _default: ComponentMeta<{
3
+ (props: import("./tabs").TabsContainerProps): JSX.Element;
4
+ displayName: string;
5
+ }>;
2
6
  export default _default;
3
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./tabs").TabsContainerProps>;
4
- export declare const Compact: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./tabs").TabsContainerProps>;
7
+ export declare const Default: ComponentStory<{
8
+ (props: import("./tabs").TabsContainerProps): JSX.Element;
9
+ displayName: string;
10
+ }>;
11
+ export declare const Compact: ComponentStory<{
12
+ (props: import("./tabs").TabsContainerProps): JSX.Element;
13
+ displayName: string;
14
+ }>;
@@ -1,6 +1,6 @@
1
1
  import { DoughDataAttributes } from "../../utils/constants";
2
2
  import "./tree.scss";
3
- export declare type DoughTreeData = {
3
+ export type DoughTreeData = {
4
4
  label: string;
5
5
  value: any;
6
6
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
1
  import { Children, ReactNode } from "react";
2
- declare type ReactChildArray = ReturnType<typeof Children.toArray>;
2
+ type ReactChildArray = ReturnType<typeof Children.toArray>;
3
3
  export declare function flattenChildren(children: ReactNode): ReactChildArray;
4
4
  export {};
@@ -88,20 +88,20 @@ export declare enum Spacings {
88
88
  AUTO = "auto",
89
89
  STRETCH = "stretch"
90
90
  }
91
- export declare type DoughDataAttributes = Record<string, string | number>;
92
- export declare type DoughValidationResult = {
91
+ export type DoughDataAttributes = Record<string, string | number>;
92
+ export type DoughValidationResult = {
93
93
  valid: boolean;
94
94
  message?: string;
95
95
  };
96
- export declare type DoughBooleanInputRef = {
96
+ export type DoughBooleanInputRef = {
97
97
  getValue(): boolean | undefined;
98
98
  };
99
- export declare type DoughTextInputRef = {
99
+ export type DoughTextInputRef = {
100
100
  getValue(): string | undefined;
101
101
  focus(): void;
102
102
  blur(): void;
103
103
  };
104
- export declare type DoughNumericInputRef = {
104
+ export type DoughNumericInputRef = {
105
105
  getValue(): number | undefined;
106
106
  focus(): void;
107
107
  blur(): void;
@@ -116,7 +116,7 @@ export declare enum Direction {
116
116
  VERTICAL = "vertical",
117
117
  HORIZONTAL = "horizontal"
118
118
  }
119
- export declare type DateRangeValue = [Date, Date?];
119
+ export type DateRangeValue = [Date, Date?];
120
120
  export declare enum BreakpointViewportSizes {
121
121
  XL = "sizeViewportExtraLarge",
122
122
  LARGE = "sizeViewportLarge",
@@ -11,17 +11,17 @@ export declare const registerEscPressListener: (registrant: any) => void;
11
11
  export declare const deRegisterEscPressListener: (registrantId: any) => void;
12
12
  export declare const registerOutsideClickListener: (registrant: any) => void;
13
13
  export declare const deRegisterOutsideClickListener: (registrantId: any) => void;
14
- export declare const getDropAreaOverlay: (selector?: string | undefined) => any;
15
- export declare const getDialogOverlay: (selector?: string | undefined, darkBackground?: boolean | undefined) => any;
16
- export declare const getTooltipOverlay: (selector?: string | undefined) => any;
14
+ export declare const getDropAreaOverlay: (selector?: string) => any;
15
+ export declare const getDialogOverlay: (selector?: string, darkBackground?: boolean) => any;
16
+ export declare const getTooltipOverlay: (selector?: string) => any;
17
17
  export declare const setLastTooltip: (tooltip: any) => void;
18
18
  export declare const hideLastDoughTooltip: () => void;
19
- export declare const getPanelOverlay: (selector?: string | undefined, asModal?: boolean | undefined) => any;
20
- export declare const getAppBackgroundOverlay: (selector?: string | undefined) => any;
19
+ export declare const getPanelOverlay: (selector?: string, asModal?: boolean) => any;
20
+ export declare const getAppBackgroundOverlay: (selector?: string) => any;
21
21
  export declare const getAppWrapperOverlay: () => any;
22
- export declare const getNotificationOverlay: (verticalLayer: any, horizontalLayer: any, selector?: string | undefined) => any;
22
+ export declare const getNotificationOverlay: (verticalLayer: any, horizontalLayer: any, selector?: string) => any;
23
23
  export declare const getInjectedStylesWrapper: () => any;
24
24
  export declare const findParentBySelector: (element: HTMLElement, selector: string) => HTMLElement;
25
25
  export declare const setBreakpointSizeManually: (size: BreakpointViewportSizes | null) => void;
26
- export declare const registerBreakpointView: (callbacks: any, breakpointSize: BreakpointViewportSizes, id: string, useManualBreakpointSize?: boolean | undefined) => void;
26
+ export declare const registerBreakpointView: (callbacks: any, breakpointSize: BreakpointViewportSizes, id: string, useManualBreakpointSize?: boolean) => void;
27
27
  export declare const deRegisterBreakpointView: (id: string) => void;
@@ -1,6 +1,6 @@
1
1
  import { Colors, FixedColors } from "./constants";
2
2
  export declare const getIESpecificStyles: (props: Record<string, any>, propToStyleMap: Record<string, Array<string>>) => string;
3
- export declare const generateStyles: (props: Record<string, any>, selector: string, propToStyleMap: Record<string, Array<string>>, noMediaQuery?: boolean | undefined) => string;
3
+ export declare const generateStyles: (props: Record<string, any>, selector: string, propToStyleMap: Record<string, Array<string>>, noMediaQuery?: boolean) => string;
4
4
  export declare const isStandardColor: (color: Colors | string) => color is Colors;
5
5
  export declare const isFixedColor: (color: FixedColors | string) => color is FixedColors;
6
6
  export declare const getColorWithFallback: (color: Colors | FixedColors | string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speakapbv/dough-component-library",
3
- "version": "10.8.1",
3
+ "version": "10.10.0",
4
4
  "description": "DOUGH: Speakap React Component Library",
5
5
  "author": "Speakap",
6
6
  "license": "MIT",
@@ -52,6 +52,8 @@
52
52
  "@svgr/rollup": "^5.0.1",
53
53
  "@types/react": "^16.9.44",
54
54
  "@types/react-dom": "^16.9.8",
55
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
56
+ "@typescript-eslint/parser": "^6.21.0",
55
57
  "@wojtekmaj/enzyme-adapter-react-17": "0.8.0",
56
58
  "auto-changelog": "^1.16.2",
57
59
  "babel-eslint": "^10.0.3",
@@ -62,7 +64,7 @@
62
64
  "cz-conventional-changelog": "3.3.0",
63
65
  "enzyme": "^3.11.0",
64
66
  "enzyme-to-json": "^3.4.3",
65
- "eslint": "^6.8.0",
67
+ "eslint": "^8.56.0",
66
68
  "eslint-config-prettier": "^6.9.0",
67
69
  "eslint-plugin-compat": "^3.3.0",
68
70
  "eslint-plugin-jest": "^23.3.0",
@@ -77,7 +79,7 @@
77
79
  "prettier": "^1.19.1",
78
80
  "react": "^18.2.0",
79
81
  "react-dom": "^18.2.0",
80
- "react-scripts": "^3.3.0",
82
+ "react-scripts": "^5.0.1",
81
83
  "rollup": "^1.29.0",
82
84
  "rollup-plugin-peer-deps-external": "^2.2.0",
83
85
  "rollup-plugin-postcss": "^2.0.3",
@@ -88,13 +90,14 @@
88
90
  "sass-loader": "10.3.1",
89
91
  "semantic-release": "^18.0.0",
90
92
  "style-loader": "^2.0.0",
91
- "typescript": "^3.9.7"
93
+ "typescript": "^4.8.3"
92
94
  },
93
95
  "files": [
94
96
  "dist"
95
97
  ],
96
98
  "dependencies": {
97
- "@speakapbv/dough-component-library-tokens": "1.7.2"
99
+ "@speakapbv/dough-component-library-tokens": "1.8.0",
100
+ "tslib": "^2.6.2"
98
101
  },
99
102
  "publishConfig": {
100
103
  "registry": "https://registry.npmjs.org/"