@fattureincloud/fic-design-system 0.19.21 → 0.19.23

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.
package/README.md CHANGED
@@ -11,8 +11,33 @@ Create a `.npmrc` file in the design-system directory and paste the following li
11
11
 
12
12
  Make sure to replace `<YOUR_FONTAWESOME_LICENSE>` with the real license. Without this step you won't be able to install the FontAwesome Pro dependencies.
13
13
 
14
- ## Development
14
+ ## Quick guide
15
15
 
16
+ ### Installation
17
+ ```
18
+ yarn
19
+ ```
20
+ ### Local development
21
+ ```
22
+ yarn storybook
23
+ ```
24
+ ### Try local changes in other projects (with yalc)
25
+ ```
26
+ yarn build && yalc publish && yalc push --> run in design-sistem repo
27
+ yalc add @fattureincloud/fic-design-system --> run in repo where design-system is installed
28
+ ```
29
+ ### How to publish
30
+ - On branch `devel`
31
+ - Bump package.json version
32
+ - Update CHANGELOG.md
33
+ - Run `yarn build`
34
+ - Run `npm publish`
35
+ - Commit and push to devel
36
+ - Merge to master
37
+ - Remember to close released tickets on Jira and to send a message on the #fic-design-system Slack channel
38
+
39
+
40
+ ## Development
16
41
  ```
17
42
  yarn storybook
18
43
  ```
@@ -10,6 +10,8 @@ declare const _default: React.ForwardRefExoticComponent<import("../label").Label
10
10
  onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
11
11
  onKeyPress?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
12
12
  onKeyUp?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
13
+ width?: string | number | undefined;
14
+ maxLength?: number | undefined;
13
15
  readOnly?: boolean | undefined;
14
16
  required?: boolean | undefined;
15
17
  } & {
@@ -27,5 +29,6 @@ declare const _default: React.ForwardRefExoticComponent<import("../label").Label
27
29
  unitDropdownProps?: import(".").UnitDropdownProps | undefined;
28
30
  value?: string | number | null | undefined;
29
31
  autoFilled?: boolean | undefined;
32
+ maxWidth?: string | number | undefined;
30
33
  } & React.RefAttributes<HTMLInputElement>>;
31
34
  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' | 'autoFilled'>;
5
+ export declare type InputTextWrapperProps = Pick<InputElementProps, 'disabled' | 'status' | 'isPrefilled' | 'isTransparent' | 'autoFilled' | 'maxWidth' | 'width'>;
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;
@@ -15,6 +15,8 @@ declare const _default: React.ForwardRefExoticComponent<import("../../common/typ
15
15
  onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
16
16
  onKeyPress?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
17
17
  onKeyUp?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
18
+ width?: string | number | undefined;
19
+ maxLength?: number | undefined;
18
20
  readOnly?: boolean | undefined;
19
21
  required?: boolean | undefined;
20
22
  } & {
@@ -32,5 +34,6 @@ declare const _default: React.ForwardRefExoticComponent<import("../../common/typ
32
34
  unitDropdownProps?: import("./types").UnitDropdownProps | undefined;
33
35
  value?: string | number | null | undefined;
34
36
  autoFilled?: boolean | undefined;
37
+ maxWidth?: string | number | undefined;
35
38
  } & React.RefAttributes<inputRef>>;
36
39
  export default _default;
@@ -7,7 +7,7 @@ import { OptionType } from '../select';
7
7
  import { CustomStylesType } from '../select/hooks/useSelectThemeStyles';
8
8
  import { UnitDropdownProps } from './components/types';
9
9
  export declare const inputTypesArray: readonly ["password", "text", "number", "code", "telephone"];
10
- declare type HTMLInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'autoFocus' | 'className' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyPress' | 'onKeyUp' | 'required' | 'style' | 'readOnly'>;
10
+ declare type HTMLInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'autoFocus' | 'className' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyPress' | 'onKeyUp' | 'required' | 'style' | 'readOnly' | 'maxLength' | 'width'>;
11
11
  export declare type InputElementProps = CommonFormTypes & HTMLInputProps & {
12
12
  actionIcon?: IconProps;
13
13
  autoComplete?: string;
@@ -23,6 +23,7 @@ export declare type InputElementProps = CommonFormTypes & HTMLInputProps & {
23
23
  unitDropdownProps?: UnitDropdownProps;
24
24
  value?: number | string | null;
25
25
  autoFilled?: boolean;
26
+ maxWidth?: number | string | undefined;
26
27
  };
27
28
  export declare type InputCodeProps = LabelProps & CommonFormTypes & Omit<HTMLInputProps, 'onChange'> & {
28
29
  allowLetters?: boolean;
@@ -10,5 +10,5 @@ export interface OptionType extends OptionTypeBase {
10
10
  interface Props<O extends OptionType = OptionType, IsMulti extends boolean = false> extends Omit<OptionProps<O, IsMulti>, 'data'> {
11
11
  data: OptionType;
12
12
  }
13
- declare const Option: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ data: { icon, label }, innerProps: { onClick }, isSelected, }: Props<O, IsMulti>) => JSX.Element;
13
+ declare const Option: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ data: { icon, label }, innerProps, innerRef, isSelected, isFocused }: Props<O, IsMulti>) => JSX.Element;
14
14
  export default Option;
@@ -16,4 +16,5 @@ export declare const DSTd: import("styled-components").StyledComponent<"td", imp
16
16
  [others: string]: any;
17
17
  } & DSTdProps, string | number>;
18
18
  export declare const CutText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
19
+ export declare const BreakText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
19
20
  export {};
@@ -7,3 +7,4 @@ export declare const DragIcon: import("styled-components").StyledComponent<"div"
7
7
  dragging: boolean;
8
8
  draggable: boolean;
9
9
  }, never>;
10
+ export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -21,6 +21,7 @@ export declare type TableContextProps = ImmutableContext & {
21
21
  columnsSettings: Required<ColumnsSettings>;
22
22
  setColumnsSettings: Dispatch<SetStateAction<Required<ColumnsSettings>>>;
23
23
  onSettingsChange?: TableSettings['onSettingsChange'];
24
+ initialSettings: Required<ColumnsSettings>;
24
25
  };
25
26
  export declare type TableProviderProps<T> = TableProps<T> & {
26
27
  children: ReactNode | ReactNode[];
@@ -16,7 +16,7 @@ export declare type SettingsLabels = {
16
16
  rowSizeLargeLabel?: string;
17
17
  columnsLabel?: string;
18
18
  };
19
- export declare type SettingsEvent = 'resizeRow' | 'hideColumn' | 'showColumn' | 'moveColumn';
19
+ export declare type SettingsEvent = 'resizeRow' | 'hideColumn' | 'showColumn' | 'moveColumn' | 'resetSettings';
20
20
  export declare type TableSettings = VariableSettings & {
21
21
  enableSettings?: boolean;
22
22
  settingsLabels?: SettingsLabels;