andoncloud-workplaces-state-timelines-widget 1.0.0
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 +21 -0
- package/dist/components/Loading/index.d.ts +3 -0
- package/dist/components/SettingsForm/index.d.ts +4 -0
- package/dist/components/Timeline/index.d.ts +9 -0
- package/dist/components/Timeline/styled.d.ts +10 -0
- package/dist/components/TimelineLoader/index.d.ts +3 -0
- package/dist/components/Widget/index.d.ts +4 -0
- package/dist/components/WidgetSettings/index.d.ts +4 -0
- package/dist/components/WidgetView/index.d.ts +4 -0
- package/dist/helpers.d.ts +3 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +28168 -0
- package/dist/index.js.map +1 -0
- package/dist/stories/Widget.stories.d.ts +3 -0
- package/dist/types.d.ts +36 -0
- package/dist/utils/graphql-sdk.d.ts +142 -0
- package/package.json +71 -0
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# andoncloud-workplaces-state-timelines-widget
|
|
2
|
+
|
|
3
|
+
> Made with create-andoncloud-widget
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/workplaces-state-timelines-widget) [](https://standardjs.com)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install --save andoncloud-workplaces-state-timelines-widget
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Widget, permissions } from 'andoncloud-workplaces-state-timelines-widget';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
MIT © [Adrian Olszewski](https://github.com/Adrian Olszewski)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StatusChange } from 'andoncloud-dashboard-toolkit';
|
|
3
|
+
export interface HistoryTimelineProps {
|
|
4
|
+
title: string;
|
|
5
|
+
statusChanges: StatusChange[];
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Timeline: React.FC<HistoryTimelineProps>;
|
|
9
|
+
export default Timeline;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AndonLightColor } from 'andoncloud-dashboard-toolkit';
|
|
3
|
+
export interface TimelineElementProps {
|
|
4
|
+
percentWidth: number;
|
|
5
|
+
color?: AndonLightColor;
|
|
6
|
+
}
|
|
7
|
+
export declare const TimelineWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export declare const TimelineTimeInfoContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const TimelineTimeInfo: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
+
export declare const TimelineElement: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & TimelineElementProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
package/dist/i18n.d.ts
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import './i18n';
|
|
2
|
+
export { default as Widget } from './components/Widget';
|
|
3
|
+
export declare const getDisplayName: (lang: 'en' | 'pl') => "Users presences count" | "Liczba zameldowanych osób" | "workplaces-state-timelines-widget";
|
|
4
|
+
export declare const permissions: never[];
|