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 ADDED
@@ -0,0 +1,21 @@
1
+ # andoncloud-workplaces-state-timelines-widget
2
+
3
+ > Made with create-andoncloud-widget
4
+
5
+ [![NPM](https://img.shields.io/npm/v/workplaces-state-timelines-widget.svg)](https://www.npmjs.com/package/workplaces-state-timelines-widget) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](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,3 @@
1
+ import React from 'react';
2
+ declare const Loading: React.FC;
3
+ export default Loading;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SettingsFormProps } from '@/types';
3
+ declare const SettingsForm: React.FC<SettingsFormProps>;
4
+ export default SettingsForm;
@@ -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>, {}>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TimelineLoader: () => JSX.Element;
3
+ export default TimelineLoader;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { WidgetProps } from '@/types';
3
+ declare const Widget: React.FC<WidgetProps>;
4
+ export default Widget;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { WidgetSettingsProps } from '@/types';
3
+ declare const WidgetSettings: React.FC<WidgetSettingsProps>;
4
+ export default WidgetSettings;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { WidgetViewProps } from '@/types';
3
+ declare const WidgetView: React.FC<WidgetViewProps>;
4
+ export default WidgetView;
@@ -0,0 +1,3 @@
1
+ import { AndonLightColor, StatusChange } from 'andoncloud-dashboard-toolkit';
2
+ export declare const durationMinutes: (statusChange: StatusChange, currentDate: Date) => number;
3
+ export declare const mapTimelineColor: (color: AndonLightColor) => string;
package/dist/i18n.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import i18n from 'i18next';
2
+ export default i18n;
@@ -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[];