@fixefy/fixefy-ui-components 0.3.105 → 0.3.107

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.
@@ -1,8 +1,5 @@
1
1
  import { Theme } from '@mui/material/styles';
2
- export declare const useStyles: (params: void, muiStyleOverridesParams?: {
3
- props: Record<string, unknown>;
4
- ownerState?: Record<string, unknown> | undefined;
5
- } | undefined) => {
2
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: import("tss-react/mui/themeStyleOverridesPlugin").MuiThemeStyleOverridesPluginParams["muiStyleOverridesParams"]) => {
6
3
  classes: Record<"container" | "approveButton" | "paper" | "selected" | "divider" | "actions" | "close" | "actionButton", string>;
7
4
  theme: import("@mui/material/styles").Theme;
8
5
  css: import("tss-react").Css;
@@ -4,10 +4,11 @@ export interface DateItem {
4
4
  value: string;
5
5
  placeholder: string;
6
6
  }
7
- export declare const FxDatesProgress: ({ start, end, progressValue, width, height, }: {
7
+ export declare const FxDatesProgress: ({ start, end, progressValue, width, height, oneLine }: {
8
8
  start: DateItem;
9
9
  end: DateItem;
10
10
  progressValue: number;
11
11
  width?: string;
12
12
  height?: string;
13
+ oneLine?: boolean;
13
14
  }) => React.JSX.Element;
@@ -20,21 +20,27 @@ function _interop_require_default(obj) {
20
20
  default: obj
21
21
  };
22
22
  }
23
- const FxDatesProgress = ({ start, end, progressValue, width, height })=>{
23
+ const FxDatesProgress = ({ start, end, progressValue, width, height, oneLine })=>{
24
24
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
25
25
  sx: {
26
26
  width: width || '199px',
27
27
  height: height || '44px'
28
28
  },
29
29
  children: [
30
- /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
30
+ oneLine ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
31
31
  sx: {
32
32
  display: 'flex',
33
33
  justifyContent: 'space-between',
34
- mb: 1
34
+ mb: 1,
35
+ gap: 1
35
36
  },
36
37
  children: [
37
38
  /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
39
+ sx: {
40
+ display: 'flex',
41
+ gap: 0.5,
42
+ alignItems: 'center'
43
+ },
38
44
  children: [
39
45
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledComponents.Label, {
40
46
  children: (0, _fixefyuiutils.titleCase)(start.label)
@@ -45,6 +51,11 @@ const FxDatesProgress = ({ start, end, progressValue, width, height })=>{
45
51
  ]
46
52
  }),
47
53
  /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
54
+ sx: {
55
+ display: 'flex',
56
+ gap: 0.5,
57
+ alignItems: 'center'
58
+ },
48
59
  children: [
49
60
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledComponents.Label, {
50
61
  style: {
@@ -63,6 +74,54 @@ const FxDatesProgress = ({ start, end, progressValue, width, height })=>{
63
74
  ]
64
75
  })
65
76
  ]
77
+ }) : /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
78
+ sx: {
79
+ width: width || '199px',
80
+ height: height || '44px'
81
+ },
82
+ children: [
83
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
84
+ sx: {
85
+ display: 'flex',
86
+ justifyContent: 'space-between',
87
+ mb: 1
88
+ },
89
+ children: [
90
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
91
+ children: [
92
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledComponents.Label, {
93
+ children: (0, _fixefyuiutils.titleCase)(start.label)
94
+ }),
95
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
96
+ children: start.value || (0, _fixefyuiutils.titleCase)(start.placeholder)
97
+ })
98
+ ]
99
+ }),
100
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
101
+ children: [
102
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledComponents.Label, {
103
+ style: {
104
+ textAlign: 'right',
105
+ display: 'block'
106
+ },
107
+ children: (0, _fixefyuiutils.titleCase)(end.label)
108
+ }),
109
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
110
+ style: {
111
+ textAlign: 'right',
112
+ display: 'block'
113
+ },
114
+ children: end.value || (0, _fixefyuiutils.titleCase)(end.placeholder)
115
+ })
116
+ ]
117
+ })
118
+ ]
119
+ }),
120
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_progressstyles.Progress, {
121
+ value: progressValue,
122
+ variant: "determinate"
123
+ })
124
+ ]
66
125
  }),
67
126
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_progressstyles.Progress, {
68
127
  value: progressValue,
package/package.json CHANGED
@@ -73,5 +73,5 @@
73
73
  "require": "./dist/index.js"
74
74
  }
75
75
  },
76
- "version": "0.3.105"
76
+ "version": "0.3.107"
77
77
  }