@mmb-digital/ds-lilly 0.10.13 → 0.10.15

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 React, { ReactElement, ReactNode, SyntheticEvent } from 'react';
2
2
  import { IconNameType, TargetType } from '../../..';
3
- import { ComponentPropsType, DisabledTooltipPropsType } from '../../../utils';
3
+ import { AriaPropsType, ComponentPropsType, DisabledTooltipPropsType } from '../../../utils';
4
4
  interface CompactButtonsButtonType extends ComponentPropsType, DisabledTooltipPropsType {
5
5
  /** Allow click event propagation */
6
6
  allowEventPropagation?: boolean;
@@ -34,6 +34,9 @@ interface CompactButtonsButtonType extends ComponentPropsType, DisabledTooltipPr
34
34
  /** Title of the button element */
35
35
  title?: string;
36
36
  }
37
+ interface CompactButtonOtherPropsType extends AriaPropsType {
38
+ role?: string;
39
+ }
37
40
  export interface CompactButtonsPropsType extends ComponentPropsType {
38
41
  /** Background color of compacted buttons wrapper. Default color is `primary` */
39
42
  background?: 'green' | 'gold' | 'red' | 'secondary';
@@ -45,7 +48,9 @@ export interface CompactButtonsPropsType extends ComponentPropsType {
45
48
  maxVisibleButtons?: number;
46
49
  /** Type of the buttons. Primary is filled with color, secondary is border-only and transparent is for links. */
47
50
  type?: 'border' | 'filled';
51
+ /** Props for other button */
52
+ otherButton: CompactButtonOtherPropsType;
48
53
  }
49
- export declare const CompactButtons: ({ background, buttons, isSmall, maxVisibleButtons, theme, type }: CompactButtonsPropsType) => JSX.Element;
54
+ export declare const CompactButtons: ({ background, buttons, isSmall, otherButton, maxVisibleButtons, theme, type }: CompactButtonsPropsType) => JSX.Element;
50
55
  export {};
51
56
  //# sourceMappingURL=CompactButtons.d.ts.map
@@ -10,12 +10,16 @@ export interface TogglePropsType extends ComponentPropsType, DisabledTooltipProp
10
10
  isActive?: boolean;
11
11
  /** Flag indicating that the toggle is disabled. */
12
12
  isDisabled?: boolean;
13
- /** Flag if you want to use **secondary** visual. */
13
+ /** @deprecated Flag if you want to use **secondary** visual. Will be removed and replaced with **color** prop in upcoming versions */
14
14
  isSecondary?: boolean;
15
15
  /** Unique name. */
16
16
  name: string;
17
17
  /** Custom onChange handler. */
18
18
  onChange?: (value: boolean, event: SyntheticEvent) => void;
19
+ /** Sets color of Toggle. Default color is `primary` */
20
+ color?: 'green' | 'secondary';
21
+ /** Name of the icon to be displayed inside the handle when toggle is checked */
22
+ iconNameChecked?: IconNameType;
19
23
  }
20
- export declare const Toggle: ({ children, disabledTooltip, disabledTooltipType, iconName, isActive, isDisabled, isSecondary, name, onChange, testId, theme }: TogglePropsType) => JSX.Element;
24
+ export declare const Toggle: ({ children, color, disabledTooltip, disabledTooltipType, iconName, iconNameChecked, isActive, isDisabled, isSecondary, name, onChange, testId, theme }: TogglePropsType) => JSX.Element;
21
25
  //# sourceMappingURL=Toggle.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import classNames from 'classnames';
2
- import { ReactNode } from 'react';
2
+ import { ReactElement, ReactNode } from 'react';
3
3
  import { TooltipType } from '../components/Components';
4
4
  import { Theme } from '../types';
5
5
  export declare const cx: typeof classNames;
@@ -17,4 +17,8 @@ export interface DisabledTooltipPropsType {
17
17
  /** Tooltip type - dark, light, grey */
18
18
  disabledTooltipType?: TooltipType;
19
19
  }
20
+ export interface AriaPropsType extends ComponentPropsType {
21
+ ariaHidden?: boolean;
22
+ ariaLabel: string | ReactElement;
23
+ }
20
24
  //# sourceMappingURL=classBinder.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmb-digital/ds-lilly",
3
- "version": "0.10.13",
3
+ "version": "0.10.15",
4
4
  "description": "MMB LILLY design system",
5
5
  "license": "UNLICENSED",
6
6
  "sideEffects": false,