@fixefy/fixefy-ui-components 0.3.20 → 0.3.22
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/dist/FxDatesProgress/FxDatesProgress.d.ts +13 -0
- package/dist/FxDatesProgress/FxDatesProgress.js +64 -0
- package/dist/FxDatesProgress/index.d.ts +1 -0
- package/dist/FxDatesProgress/index.js +11 -0
- package/dist/FxDatesProgress/styles/progress.styles.d.ts +1 -0
- package/dist/FxDatesProgress/styles/progress.styles.js +18 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DateItem {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const FxDatesProgress: ({ start, end, progressValue, width, height, }: {
|
|
8
|
+
start: DateItem;
|
|
9
|
+
end: DateItem;
|
|
10
|
+
progressValue: number;
|
|
11
|
+
width?: string;
|
|
12
|
+
height?: string;
|
|
13
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxDatesProgress", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FxDatesProgress;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
+
const _FxStyledComponents = require("../FxStyledComponents");
|
|
14
|
+
const _progressstyles = require("./styles/progress.styles");
|
|
15
|
+
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
16
|
+
const _material = require("@mui/material");
|
|
17
|
+
function _interop_require_default(obj) {
|
|
18
|
+
return obj && obj.__esModule ? obj : {
|
|
19
|
+
default: obj
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
const FxDatesProgress = ({ start, end, progressValue, width, height })=>{
|
|
23
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
24
|
+
sx: {
|
|
25
|
+
width: width || '199px',
|
|
26
|
+
height: height || '44px'
|
|
27
|
+
},
|
|
28
|
+
children: [
|
|
29
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
30
|
+
sx: {
|
|
31
|
+
display: 'flex',
|
|
32
|
+
justifyContent: 'space-between',
|
|
33
|
+
mb: 1
|
|
34
|
+
},
|
|
35
|
+
children: [
|
|
36
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
37
|
+
children: [
|
|
38
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledComponents.Label, {
|
|
39
|
+
children: (0, _fixefyuiutils.titleCase)(start.label)
|
|
40
|
+
}),
|
|
41
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
42
|
+
children: start.value || (0, _fixefyuiutils.titleCase)(start.placeholder)
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
}),
|
|
46
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
47
|
+
children: [
|
|
48
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledComponents.Label, {
|
|
49
|
+
children: (0, _fixefyuiutils.titleCase)(end.label)
|
|
50
|
+
}),
|
|
51
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
52
|
+
children: end.value || (0, _fixefyuiutils.titleCase)(end.placeholder)
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
}),
|
|
58
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_progressstyles.Progress, {
|
|
59
|
+
value: progressValue,
|
|
60
|
+
variant: "determinate"
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
});
|
|
64
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FxDatesProgress } from './FxDatesProgress';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxDatesProgress", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _FxDatesProgress.FxDatesProgress;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _FxDatesProgress = require("./FxDatesProgress");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Progress: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Progress", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Progress;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _material = require("@mui/material");
|
|
12
|
+
const Progress = (0, _material.styled)(_material.LinearProgress)(({ theme })=>({
|
|
13
|
+
borderRadius: '20px',
|
|
14
|
+
backgroundColor: '#E7EEF0',
|
|
15
|
+
'& .MuiLinearProgress-barColorPrimary': {
|
|
16
|
+
backgroundColor: theme.palette.primary['500']
|
|
17
|
+
}
|
|
18
|
+
}));
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { FxAsyncDropdown, Option, StylesOptions, AsyncDropdownPropsType } from '
|
|
|
4
4
|
export { FxAvatar, AvatarPropsType, BackgroundColorsType } from './FxAvatar';
|
|
5
5
|
export { FxButton, ButtonPropsType } from './FxButton';
|
|
6
6
|
export { FxChip, ChipPropsType } from './FxChip';
|
|
7
|
+
export { FxDatesProgress } from './FxDatesProgress';
|
|
7
8
|
export { FxIcon } from './FxIcon';
|
|
8
9
|
export { FxMenuItemWithIcon } from './FxMenuItemWithIcon';
|
|
9
10
|
export { FxModal, ModalPropsType } from './FxModal';
|
package/dist/index.js
CHANGED
|
@@ -63,6 +63,9 @@ _export(exports, {
|
|
|
63
63
|
FxChip: function() {
|
|
64
64
|
return _FxChip.FxChip;
|
|
65
65
|
},
|
|
66
|
+
FxDatesProgress: function() {
|
|
67
|
+
return _FxDatesProgress.FxDatesProgress;
|
|
68
|
+
},
|
|
66
69
|
FxIcon: function() {
|
|
67
70
|
return _FxIcon.FxIcon;
|
|
68
71
|
},
|
|
@@ -229,6 +232,7 @@ const _FxAsyncDropdown = require("./FxAsyncDropdown");
|
|
|
229
232
|
const _FxAvatar = require("./FxAvatar");
|
|
230
233
|
const _FxButton = require("./FxButton");
|
|
231
234
|
const _FxChip = require("./FxChip");
|
|
235
|
+
const _FxDatesProgress = require("./FxDatesProgress");
|
|
232
236
|
const _FxIcon = require("./FxIcon");
|
|
233
237
|
const _FxMenuItemWithIcon = require("./FxMenuItemWithIcon");
|
|
234
238
|
const _FxModal = require("./FxModal");
|
package/package.json
CHANGED