@fattureincloud/fic-design-system 0.7.35 → 0.7.36
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/circularProgressBar/CircularProgressBar.d.ts +10 -0
- package/dist/components/circularProgressBar/circularProgressBar.stories.d.ts +6 -0
- package/dist/components/circularProgressBar/circularProgressBarPalette.d.ts +3 -0
- package/dist/components/circularProgressBar/constants.d.ts +2 -0
- package/dist/components/circularProgressBar/index.d.ts +3 -0
- package/dist/components/circularProgressBar/styled.d.ts +16 -0
- package/dist/components/circularProgressBar/types.d.ts +19 -0
- package/dist/components/switch/Switch.d.ts +4 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/switch/styled.d.ts +6 -0
- package/dist/components/switch/switch.stories.d.ts +6 -0
- package/dist/components/switch/types.d.ts +7 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/theme.d.ts +2 -0
- package/package.json +1 -1
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { CircularProgressBarProps } from './index';
|
3
|
+
/**
|
4
|
+
* Component Props:
|
5
|
+
* @param {number} percentage Numeric value used to set the progress bar percentage value
|
6
|
+
* @param {CircularProgressBarType} type Type that define the color
|
7
|
+
* @param {string} subtitle Define the text below the percentage (string or custom)
|
8
|
+
*/
|
9
|
+
declare const CircularProgressBar: ({ percentage, type, subtitle }: CircularProgressBarProps) => JSX.Element;
|
10
|
+
export default CircularProgressBar;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
|
+
import { ComponentProps } from 'react';
|
3
|
+
import { CircularProgressBar, CircularProgressBarProps } from './index';
|
4
|
+
export declare const Template: Story<CircularProgressBarProps>;
|
5
|
+
declare const CircularProgressBarStories: Meta<ComponentProps<typeof CircularProgressBar>>;
|
6
|
+
export default CircularProgressBarStories;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { CircularProgressBarType } from './types';
|
3
|
+
export declare const TrailBorder: import("styled-components").StyledComponent<"path", import("styled-components").DefaultTheme, {
|
4
|
+
type: CircularProgressBarType;
|
5
|
+
}, never>;
|
6
|
+
export declare const Trail: import("styled-components").StyledComponent<"path", import("styled-components").DefaultTheme, {
|
7
|
+
type: CircularProgressBarType;
|
8
|
+
}, never>;
|
9
|
+
export declare const Path: import("styled-components").StyledComponent<"path", import("styled-components").DefaultTheme, {
|
10
|
+
type: CircularProgressBarType;
|
11
|
+
}, never>;
|
12
|
+
export declare const InnerCircle: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
|
13
|
+
type: CircularProgressBarType;
|
14
|
+
}, never>;
|
15
|
+
export declare const TextContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
16
|
+
export declare const Subtitle: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { paletteColor } from '../../styles/types';
|
3
|
+
export interface CircularProgressBarProps {
|
4
|
+
percentage: number;
|
5
|
+
type: CircularProgressBarType;
|
6
|
+
subtitle: string | JSX.Element;
|
7
|
+
}
|
8
|
+
export declare enum CircularProgressBarType {
|
9
|
+
STANDARD = "standard",
|
10
|
+
WARNING = "warning",
|
11
|
+
ERROR = "error"
|
12
|
+
}
|
13
|
+
export declare type CircularProgressBarPalette = {
|
14
|
+
[key in CircularProgressBarType]: {
|
15
|
+
path: paletteColor;
|
16
|
+
trail: paletteColor;
|
17
|
+
trailBorder: paletteColor;
|
18
|
+
};
|
19
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { colors } from '../../styles/types';
|
2
|
+
export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
|
3
|
+
export declare const SwitchButton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
4
|
+
export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
|
5
|
+
color: colors;
|
6
|
+
}, never>;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
|
+
import { ComponentProps } from 'react';
|
3
|
+
import { Switch, SwitchProps } from './index';
|
4
|
+
export declare const Template: Story<SwitchProps>;
|
5
|
+
declare const SwitchStories: Meta<ComponentProps<typeof Switch>>;
|
6
|
+
export default SwitchStories;
|