@fattureincloud/fic-design-system 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { AccordionProps } from './types';
3
- declare const Accordion: ({ defaultOpen, divider, items, leftIcon, multipleOpen, openItem, rightIcon, setOpenItem, style, }: AccordionProps) => JSX.Element;
3
+ declare const Accordion: ({ defaultOpen, divider, items, leftIcon, multipleOpen, openItem, rightIcon, setOpenItem, showItemsOnFirstRender, style, }: AccordionProps) => JSX.Element;
4
4
  export default Accordion;
@@ -11,6 +11,7 @@ export interface AccordionProps {
11
11
  items: AccordionItemListProps[];
12
12
  leftIcon?: AccordionAnimatedIcon;
13
13
  multipleOpen?: boolean;
14
+ showItemsOnFirstRender?: boolean;
14
15
  openItem?: number[];
15
16
  rightIcon?: IconProps;
16
17
  setOpenItem?: Dispatch<SetStateAction<number[]>>;
@@ -25,5 +25,6 @@ declare const _default: React.ForwardRefExoticComponent<import("../label").Label
25
25
  tooltip?: import("../../tooltip").TooltipProps | undefined;
26
26
  unitDropdownProps?: import(".").UnitDropdownProps | undefined;
27
27
  value?: string | number | null | undefined;
28
+ autoFilled?: boolean | undefined;
28
29
  } & React.RefAttributes<HTMLInputElement>>;
29
30
  export default _default;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { BoxedInputWrapperProps } from '../../common/styles';
3
3
  import { InputElementProps } from '../types';
4
4
  declare type inputRef = HTMLInputElement | null;
5
- export declare type InputTextWrapperProps = Pick<InputElementProps, 'disabled' | 'status' | 'isPrefilled' | 'isTransparent'>;
5
+ export declare type InputTextWrapperProps = Pick<InputElementProps, 'disabled' | 'status' | 'isPrefilled' | 'isTransparent' | 'autoFilled'>;
6
6
  export declare type InputTextStyles = Omit<BoxedInputWrapperProps, 'status'>;
7
7
  declare const _default: React.ForwardRefExoticComponent<import("../../common/types").CommonFormTypes & {
8
8
  className?: string | undefined;
@@ -30,5 +30,6 @@ declare const _default: React.ForwardRefExoticComponent<import("../../common/typ
30
30
  tooltip?: import("../../../tooltip").TooltipProps | undefined;
31
31
  unitDropdownProps?: import("./UnitDropdown").UnitDropdownProps | undefined;
32
32
  value?: string | number | null | undefined;
33
+ autoFilled?: boolean | undefined;
33
34
  } & React.RefAttributes<inputRef>>;
34
35
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
2
  import { InputCodeProps, InputTelephoneProps, InputTextProps } from './types';
3
+ export declare const Simple: Story<InputTextProps>;
3
4
  export declare const WithKnobs: Story<InputTextProps>;
4
5
  export declare const WithUnitDropdown: Story<InputTextProps>;
5
6
  export declare const CodeInputExample: Story<InputCodeProps>;
@@ -21,6 +21,7 @@ export declare type InputElementProps = CommonFormTypes & HTMLInputProps & {
21
21
  tooltip?: TooltipProps;
22
22
  unitDropdownProps?: UnitDropdownProps;
23
23
  value?: number | string | null;
24
+ autoFilled?: boolean;
24
25
  };
25
26
  export declare type InputCodeProps = LabelProps & CommonFormTypes & Omit<HTMLInputProps, 'onChange'> & {
26
27
  allowLetters?: boolean;