andoncloud-workplaces-status-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
+ # workplaces-status-widget
2
+
3
+ > Made with create-react-library
4
+
5
+ [![NPM](https://img.shields.io/npm/v/workplaces-status-widget.svg)](https://www.npmjs.com/package/workplaces-status-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 workplaces-status-widget
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```tsx
16
+ import { Widget, permissions } from 'workplaces-status-widget';
17
+ ```
18
+
19
+ ## License
20
+
21
+ MIT © [](https://github.com/)
@@ -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,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;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { OnChangeValue, Options } from 'react-select';
3
+ import { StatusOption } from '../../types';
4
+ interface StatusSelectProps {
5
+ options: Options<StatusOption>;
6
+ selected: Options<StatusOption>;
7
+ onChange: (selected: OnChangeValue<StatusOption, true>) => void;
8
+ }
9
+ declare const StatusSelect: React.FC<StatusSelectProps>;
10
+ export default StatusSelect;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface TabPanelProps {
3
+ value: number;
4
+ index: number;
5
+ }
6
+ declare const TabPanel: React.FC<TabPanelProps>;
7
+ export default TabPanel;
@@ -0,0 +1,5 @@
1
+ import '../../i18n';
2
+ import React from 'react';
3
+ import { WidgetProps } from '../../types';
4
+ declare const Widget: React.FC<WidgetProps>;
5
+ 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,4 @@
1
+ import React from 'react';
2
+ import { WorkplaceStatusProps } from '../../types';
3
+ declare const WorkplaceStatus: React.FC<WorkplaceStatusProps>;
4
+ export default WorkplaceStatus;
@@ -0,0 +1,5 @@
1
+ import type { StatusChange } from 'andoncloud-dashboard-toolkit';
2
+ export declare const getBackground: (statusColor?: string | undefined) => "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
+ export declare const durationMinutes: (statusChange: StatusChange) => number;
4
+ export declare const durationSeconds: (statusChange: StatusChange) => number;
5
+ export declare const getDurationText: (statusChange: StatusChange) => string;
package/dist/i18n.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import i18n from 'i18next';
2
+ export default i18n;
@@ -0,0 +1,90 @@
1
+ <svg width="297" height="403" viewBox="0 0 297 403" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M938.46 -10H921.49L-10 921.49V938.46L938.46 -10Z" fill="black" fill-opacity="0.1"/>
3
+ <path d="M904.52 -10H887.54L-10 887.54V904.52L904.52 -10Z" fill="black" fill-opacity="0.1"/>
4
+ <path d="M870.58 -10H853.6L-10 853.6V870.58L870.58 -10Z" fill="black" fill-opacity="0.1"/>
5
+ <path d="M1006.34 -10H989.37L-10 989.37V1006.34L1006.34 -10Z" fill="black" fill-opacity="0.1"/>
6
+ <path d="M972.4 -10H955.43L-10 955.43V972.4L972.4 -10Z" fill="black" fill-opacity="0.1"/>
7
+ <path d="M836.63 -10H819.66L-10 819.66V836.63L836.63 -10Z" fill="black" fill-opacity="0.1"/>
8
+ <path d="M768.75 -10H751.78L-10 751.78V768.75L768.75 -10Z" fill="black" fill-opacity="0.1"/>
9
+ <path d="M1040.28 -10H1023.31L-10 1023.31V1040.28L1040.28 -10Z" fill="black" fill-opacity="0.1"/>
10
+ <path d="M802.69 -10H785.72L-10 785.72V802.69L802.69 -10Z" fill="black" fill-opacity="0.1"/>
11
+ <path d="M734.81 -10H717.84L-10 717.84V734.81L734.81 -10Z" fill="black" fill-opacity="0.1"/>
12
+ <path d="M1447.57 -10H1430.6L350.6 1070H367.57L1447.57 -10Z" fill="black" fill-opacity="0.1"/>
13
+ <path d="M1379.69 -10H1362.72L282.72 1070H299.69L1379.69 -10Z" fill="black" fill-opacity="0.1"/>
14
+ <path d="M1311.81 -10H1294.84L214.84 1070H231.81L1311.81 -10Z" fill="black" fill-opacity="0.1"/>
15
+ <path d="M1345.75 -10H1328.78L248.78 1070H265.75L1345.75 -10Z" fill="black" fill-opacity="0.1"/>
16
+ <path d="M700.87 -10H683.9L-10 683.9V700.87L700.87 -10Z" fill="black" fill-opacity="0.1"/>
17
+ <path d="M1413.63 -10H1396.66L316.66 1070H333.63L1413.63 -10Z" fill="black" fill-opacity="0.1"/>
18
+ <path d="M1142.1 -10H1125.13L45.13 1070H62.1L1142.1 -10Z" fill="black" fill-opacity="0.1"/>
19
+ <path d="M1108.16 -10H1091.19L11.19 1070H28.16L1108.16 -10Z" fill="black" fill-opacity="0.1"/>
20
+ <path d="M1176.04 -10H1159.07L79.07 1070H96.04L1176.04 -10Z" fill="black" fill-opacity="0.1"/>
21
+ <path d="M1243.93 -10H1226.96L146.96 1070H163.93L1243.93 -10Z" fill="black" fill-opacity="0.1"/>
22
+ <path d="M1209.99 -10H1193.02L113.02 1070H129.99L1209.99 -10Z" fill="black" fill-opacity="0.1"/>
23
+ <path d="M1277.87 -10H1260.9L180.9 1070H197.87L1277.87 -10Z" fill="black" fill-opacity="0.1"/>
24
+ <path d="M429.34 -10H412.37L-10 412.37V429.34L429.34 -10Z" fill="black" fill-opacity="0.1"/>
25
+ <path d="M157.81 -10H140.84L-10 140.84V157.81L157.81 -10Z" fill="black" fill-opacity="0.1"/>
26
+ <path d="M191.75 -10H174.78L-10 174.78V191.75L191.75 -10Z" fill="black" fill-opacity="0.1"/>
27
+ <path d="M123.87 -10H106.9L-10 106.9V123.87L123.87 -10Z" fill="black" fill-opacity="0.1"/>
28
+ <path d="M225.69 -10H208.72L-10 208.72V225.69L225.69 -10Z" fill="black" fill-opacity="0.1"/>
29
+ <path d="M259.63 -10H242.66L-10 242.66V259.63L259.63 -10Z" fill="black" fill-opacity="0.1"/>
30
+ <path d="M1057.25 -10L-10 1057.25V1070H-5.78L1074.22 -10H1057.25Z" fill="black" fill-opacity="0.1"/>
31
+ <path d="M293.57 -10H276.61L-10 276.61V293.57L293.57 -10Z" fill="black" fill-opacity="0.1"/>
32
+ <path d="M22.05 -10H5.08L-10 5.08V22.05L22.05 -10Z" fill="black" fill-opacity="0.1"/>
33
+ <path d="M55.99 -10H39.02L-10 39.02V55.99L55.99 -10Z" fill="black" fill-opacity="0.1"/>
34
+ <path d="M89.93 -10H72.96L-10 72.96V89.93L89.93 -10Z" fill="black" fill-opacity="0.1"/>
35
+ <path d="M1481.52 -10H1464.54L384.54 1070H401.51L1481.52 -10Z" fill="black" fill-opacity="0.1"/>
36
+ <path d="M565.1 -10H548.13L-10 548.13V565.1L565.1 -10Z" fill="black" fill-opacity="0.1"/>
37
+ <path d="M497.22 -10H480.25L-10 480.25V497.22L497.22 -10Z" fill="black" fill-opacity="0.1"/>
38
+ <path d="M327.52 -10H310.55L-10 310.55V327.52L327.52 -10Z" fill="black" fill-opacity="0.1"/>
39
+ <path d="M632.99 -10H616.02L-10 616.02V632.99L632.99 -10Z" fill="black" fill-opacity="0.1"/>
40
+ <path d="M599.04 -10H582.08L-10 582.08V599.04L599.04 -10Z" fill="black" fill-opacity="0.1"/>
41
+ <path d="M531.16 -10H514.19L-10 514.19V531.16L531.16 -10Z" fill="black" fill-opacity="0.1"/>
42
+ <path d="M463.28 -10H446.31L-10 446.31V463.28L463.28 -10Z" fill="black" fill-opacity="0.1"/>
43
+ <path d="M361.46 -10H344.49L-10 344.49V361.46L361.46 -10Z" fill="black" fill-opacity="0.1"/>
44
+ <path d="M395.4 -10H378.43L-10 378.43V395.4L395.4 -10Z" fill="black" fill-opacity="0.1"/>
45
+ <path d="M666.93 -10H649.96L-10 649.96V666.93L666.93 -10Z" fill="black" fill-opacity="0.1"/>
46
+ <path d="M1910 410.04V393.07L1233.07 1070H1250.04L1910 410.04Z" fill="black" fill-opacity="0.1"/>
47
+ <path d="M1910 342.16V325.19L1165.19 1070H1182.16L1910 342.16Z" fill="black" fill-opacity="0.1"/>
48
+ <path d="M1910 579.75V562.78L1402.78 1070H1419.75L1910 579.75Z" fill="black" fill-opacity="0.1"/>
49
+ <path d="M1910 613.69V596.72L1436.72 1070H1453.69L1910 613.69Z" fill="black" fill-opacity="0.1"/>
50
+ <path d="M1910 681.57V664.6L1504.6 1070H1521.57L1910 681.57Z" fill="black" fill-opacity="0.1"/>
51
+ <path d="M1910 647.63V630.66L1470.66 1070H1487.63L1910 647.63Z" fill="black" fill-opacity="0.1"/>
52
+ <path d="M1910 376.1V359.13L1199.13 1070H1216.1L1910 376.1Z" fill="black" fill-opacity="0.1"/>
53
+ <path d="M1910 443.98V427.01L1267.01 1070H1283.98L1910 443.98Z" fill="black" fill-opacity="0.1"/>
54
+ <path d="M1910 511.87V494.9L1334.9 1070H1351.87L1910 511.87Z" fill="black" fill-opacity="0.1"/>
55
+ <path d="M1910 715.51V698.54L1538.54 1070H1555.51L1910 715.51Z" fill="black" fill-opacity="0.1"/>
56
+ <path d="M1910 477.93V460.95L1300.95 1070H1317.92L1910 477.93Z" fill="black" fill-opacity="0.1"/>
57
+ <path d="M1910 545.81V528.84L1368.84 1070H1385.81L1910 545.81Z" fill="black" fill-opacity="0.1"/>
58
+ <path d="M1910 953.1V936.13L1776.13 1070H1793.1L1910 953.1Z" fill="black" fill-opacity="0.1"/>
59
+ <path d="M1910 919.16V902.19L1742.19 1070H1759.16L1910 919.16Z" fill="black" fill-opacity="0.1"/>
60
+ <path d="M1910 987.04V970.07L1810.07 1070H1827.04L1910 987.04Z" fill="black" fill-opacity="0.1"/>
61
+ <path d="M1910 749.45V732.48L1572.48 1070H1589.45L1910 749.45Z" fill="black" fill-opacity="0.1"/>
62
+ <path d="M1910 1054.92V1037.95L1877.95 1070H1894.92L1910 1054.92Z" fill="black" fill-opacity="0.1"/>
63
+ <path d="M1910 1020.98V1004.01L1844.01 1070H1860.98L1910 1020.98Z" fill="black" fill-opacity="0.1"/>
64
+ <path d="M1910 783.39V766.42L1606.42 1070H1623.39L1910 783.39Z" fill="black" fill-opacity="0.1"/>
65
+ <path d="M1910 817.34V800.37L1640.37 1070H1657.34L1910 817.34Z" fill="black" fill-opacity="0.1"/>
66
+ <path d="M1910 851.28V834.31L1674.31 1070H1691.28L1910 851.28Z" fill="black" fill-opacity="0.1"/>
67
+ <path d="M1910 885.22V868.25L1708.25 1070H1725.22L1910 885.22Z" fill="black" fill-opacity="0.1"/>
68
+ <path d="M1910 308.22V291.25L1131.25 1070H1148.22L1910 308.22Z" fill="black" fill-opacity="0.1"/>
69
+ <path d="M1719.1 -10H1702.13L622.13 1070H639.1L1719.1 -10Z" fill="black" fill-opacity="0.1"/>
70
+ <path d="M1753.04 -10H1736.07L656.07 1070H673.04L1753.04 -10Z" fill="black" fill-opacity="0.1"/>
71
+ <path d="M1820.93 -10H1803.96L723.96 1070H740.93L1820.93 -10Z" fill="black" fill-opacity="0.1"/>
72
+ <path d="M1786.98 -10H1770.01L690.01 1070H706.99L1786.98 -10Z" fill="black" fill-opacity="0.1"/>
73
+ <path d="M1854.87 -10H1837.9L757.9 1070H774.87L1854.87 -10Z" fill="black" fill-opacity="0.1"/>
74
+ <path d="M1685.16 -10H1668.19L588.19 1070H605.16L1685.16 -10Z" fill="black" fill-opacity="0.1"/>
75
+ <path d="M1583.34 -10H1566.37L486.37 1070H503.34L1583.34 -10Z" fill="black" fill-opacity="0.1"/>
76
+ <path d="M1549.4 -10H1532.43L452.43 1070H469.4L1549.4 -10Z" fill="black" fill-opacity="0.1"/>
77
+ <path d="M1651.22 -10H1634.25L554.25 1070H571.22L1651.22 -10Z" fill="black" fill-opacity="0.1"/>
78
+ <path d="M1617.28 -10H1600.31L520.31 1070H537.28L1617.28 -10Z" fill="black" fill-opacity="0.1"/>
79
+ <path d="M1910 36.69V19.72L859.72 1070H876.69L1910 36.69Z" fill="black" fill-opacity="0.1"/>
80
+ <path d="M1910 206.4V189.43L1029.42 1070H1046.4L1910 206.4Z" fill="black" fill-opacity="0.1"/>
81
+ <path d="M1910 172.46V155.48L995.48 1070H1012.46L1910 172.46Z" fill="black" fill-opacity="0.1"/>
82
+ <path d="M1910 240.34V223.37L1063.37 1070H1080.34L1910 240.34Z" fill="black" fill-opacity="0.1"/>
83
+ <path d="M1910 138.51V121.54L961.54 1070H978.51L1910 138.51Z" fill="black" fill-opacity="0.1"/>
84
+ <path d="M1888.81 -10H1871.84L791.84 1070H808.81L1888.81 -10Z" fill="black" fill-opacity="0.1"/>
85
+ <path d="M1910 274.28V257.31L1097.31 1070H1114.28L1910 274.28Z" fill="black" fill-opacity="0.1"/>
86
+ <path d="M1515.46 -10H1498.48L418.49 1070H435.46L1515.46 -10Z" fill="black" fill-opacity="0.1"/>
87
+ <path d="M1910 2.75V-10H1905.78L825.78 1070H842.75L1910 2.75Z" fill="black" fill-opacity="0.1"/>
88
+ <path d="M1910 70.63V53.66L893.66 1070H910.63L1910 70.63Z" fill="black" fill-opacity="0.1"/>
89
+ <path d="M1910 104.57V87.6L927.6 1070H944.57L1910 104.57Z" fill="black" fill-opacity="0.1"/>
90
+ </svg>
@@ -0,0 +1,2 @@
1
+ export { default as Widget } from './components/Widget';
2
+ export declare const permissions: never[];