andoncloud-workplaces-status-widget 1.0.6 → 1.1.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 +0 -4
- package/{src/images → dist/assets}/pattern.svg +0 -0
- package/dist/components/SettingsFormContent/index.d.ts +5 -0
- package/dist/components/SortableSelect/index.d.ts +10 -0
- package/dist/components/Widget/index.d.ts +3 -2
- package/dist/components/helpers.d.ts +1 -1
- package/dist/index.js +1045 -32145
- package/dist/index.js.map +1 -1
- package/dist/stories/Widget.stories.d.ts +4 -2
- package/dist/types.d.ts +13 -35
- package/dist/version.d.ts +1 -0
- package/package.json +26 -51
package/README.md
CHANGED
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SettingsFormContentProps } from 'andoncloud-widget-base';
|
|
3
|
+
import { WidgetData, WidgetSettings } from '@/types';
|
|
4
|
+
declare const SettingsFormContent: React.FC<SettingsFormContentProps<WidgetData, WidgetSettings>>;
|
|
5
|
+
export default SettingsFormContent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Options } from 'react-select';
|
|
3
|
+
interface MultiSelectSortProps {
|
|
4
|
+
options: Options<{
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}>;
|
|
8
|
+
}
|
|
9
|
+
declare const MultiSelectSort: React.FC<MultiSelectSortProps>;
|
|
10
|
+
export default MultiSelectSort;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WidgetProps } from '
|
|
3
|
-
|
|
2
|
+
import { WidgetProps } from 'andoncloud-dashboard-toolkit';
|
|
3
|
+
import { WidgetData, WidgetSettings } from '@/types';
|
|
4
|
+
declare const Widget: React.FC<WidgetProps<WidgetData, WidgetSettings>>;
|
|
4
5
|
export default Widget;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StatusChange } from 'andoncloud-dashboard-toolkit';
|
|
2
|
-
export declare const getBackground: (statusColor?: string
|
|
2
|
+
export declare const getBackground: (statusColor?: string) => "linear-gradient(135deg, #FFD60A 0%, #FFC12F 100%)" | "linear-gradient(135deg, #F05C53 0%, #FF3B2F 100%)" | "linear-gradient(135deg, #31BF59 -0%, #32D74B 100%)" | "linear-gradient(135deg, #CCCCCC -0%, #BEBEBE 100%)";
|
|
3
3
|
export declare const durationMinutes: (statusChange: StatusChange) => number;
|
|
4
4
|
export declare const durationSeconds: (statusChange: StatusChange) => number;
|
|
5
5
|
export declare const getDurationText: (statusChange: StatusChange) => string;
|