@mmb-digital/ds-lilly 0.0.1-alpha.357 → 0.0.1-alpha.360

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.
@@ -5,6 +5,8 @@ export interface Select2PropsType extends FormField2PropsType {
5
5
  displayDetails?: boolean;
6
6
  /** Custom theme for dropdown items. */
7
7
  dropdownTheme?: Theme;
8
+ /** label of empty value */
9
+ emptyValueLabel?: string;
8
10
  /** Sets if list of options has same width as select element. */
9
11
  hasFullWidthOptions?: boolean;
10
12
  /** List of options to select. */
@@ -29,5 +31,5 @@ export interface CategorisedItemType {
29
31
  label: string;
30
32
  items: ItemType[];
31
33
  }
32
- export declare const Select2: ({ displayDetails, dropdownTheme, error, hasFullWidthOptions, help, isDisabled, items, label, labelTooltip, name, onBlur, onChange, onFocus, placeholder, testId, theme, value: outerValue }: Select2PropsType) => JSX.Element;
34
+ export declare const Select2: ({ displayDetails, dropdownTheme, emptyValueLabel, error, hasFullWidthOptions, help, isDisabled, items, label, labelTooltip, name, onBlur, onChange, onFocus, placeholder, testId, theme, value }: Select2PropsType) => JSX.Element;
33
35
  //# sourceMappingURL=Select2.d.ts.map
@@ -7,10 +7,14 @@ declare type AlignItemsType = 'stretch' | 'flex-start' | 'flex-end' | 'center' |
7
7
  export interface FlexPropsType extends ComponentPropsType {
8
8
  /** Flex align items type to class. */
9
9
  alignItems?: AlignItemsType;
10
+ /** Flex responsivity for alignItems. */
11
+ isAlignItemsResponsive?: boolean;
10
12
  /** Flex justify content type to class. */
11
13
  justifyContent?: JustifyContentType;
12
14
  /** Flex direction type to class. */
13
15
  direction?: FlexDirectionType;
16
+ /** Flex responsivity for direction. */
17
+ isDirectionResponsive?: boolean;
14
18
  /** Children to be rendered in the main container. */
15
19
  children?: React.ReactNode;
16
20
  /** Flex wrap type to class. */
@@ -18,6 +22,6 @@ export interface FlexPropsType extends ComponentPropsType {
18
22
  /** onClick event. */
19
23
  onClick?: (event: SyntheticEvent) => void;
20
24
  }
21
- export declare const Flex: ({ alignItems, children, direction, justifyContent, onClick, testId, theme, wrap }: FlexPropsType) => JSX.Element;
25
+ export declare const Flex: ({ alignItems, children, direction, isAlignItemsResponsive, isDirectionResponsive, justifyContent, onClick, testId, theme, wrap }: FlexPropsType) => JSX.Element;
22
26
  export {};
23
27
  //# sourceMappingURL=Flex.d.ts.map
@@ -14,5 +14,5 @@ export interface MobilePanelPropsType extends ComponentPropsType, MobilePanelCon
14
14
  /** Choose position of Panel. */
15
15
  position?: 'left' | 'right';
16
16
  }
17
- export declare const MobilePanel: ({ children, close, displayBreakpoint, identification, isFocused, isMain, isOpen, isScrolled, isSecondary, open, position, reference, setIsScrolled, testId, theme, toggle }: MobilePanelPropsType) => JSX.Element;
17
+ export declare const MobilePanel: ({ children, close, closeOnClick, displayBreakpoint, identification, isFocused, isMain, isOpen, isScrolled, isSecondary, open, position, reference, setIsScrolled, testId, theme, toggle }: MobilePanelPropsType) => JSX.Element;
18
18
  //# sourceMappingURL=MobilePanel.d.ts.map
@@ -2,6 +2,8 @@
2
2
  export interface MobilePanelContextType {
3
3
  /** Function for close action. */
4
4
  close: () => void;
5
+ /** A flag whether panel should close on click */
6
+ closeOnClick?: boolean;
5
7
  /** Unique identification of modal. */
6
8
  identification: string;
7
9
  /** If `true` mobile panel is focused for keyboard navigation. */
@@ -1,16 +1,19 @@
1
1
  /// <reference types="react" />
2
2
  import { CategorisedItemType, ItemType } from '../components/Form';
3
3
  interface Select2ContextType {
4
+ emptyValueLabel?: string;
4
5
  focusedCategoryIndex?: number;
5
6
  focusedItemIndex?: number;
6
- items: ItemType[] | CategorisedItemType[];
7
+ items: ItemType[] | CategorisedItemType[] | unknown[];
7
8
  name: string;
9
+ onBlur?: () => void;
8
10
  optionClick: (item: ItemType) => void;
11
+ emptyOptionClick?: () => void;
9
12
  optionKeyPress?: (event: React.KeyboardEvent<HTMLUListElement>) => void;
10
- setFocusedCategoryIndex: (index: number) => void;
11
- setFocusedItemIndex: (index: number) => void;
12
- setValue: (value: string) => void;
13
- value: string;
13
+ setFocusedCategoryIndex?: (index: number) => void;
14
+ setFocusedItemIndex: (index: number, categoryIndex?: number) => void;
15
+ setValue?: (value: string) => void;
16
+ value?: string;
14
17
  }
15
18
  declare const Select2Context: import("react").Context<Select2ContextType>;
16
19
  export default Select2Context;
@@ -13,6 +13,7 @@ export * from './constants';
13
13
  export * from './getDefaultGroup';
14
14
  export * from './hasGroups';
15
15
  export * from './hooks';
16
+ export * from './noop';
16
17
  export * from './parseDecimalValue';
17
18
  export * from './parseDateValue';
18
19
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const noop: () => void;
2
+ //# sourceMappingURL=noop.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmb-digital/ds-lilly",
3
- "version": "0.0.1-alpha.357",
3
+ "version": "0.0.1-alpha.360",
4
4
  "description": "MMB LILLY design system",
5
5
  "license": "UNLICENSED",
6
6
  "sideEffects": false,