@fixefy/fixefy-ui-components 0.3.106 → 0.3.108

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.
@@ -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,48 @@ const FxDatesProgress = ({ start, end, progressValue, width, height })=>{
63
74
  ]
64
75
  })
65
76
  ]
77
+ }) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
78
+ sx: {
79
+ width: width || '199px',
80
+ height: height || '44px'
81
+ },
82
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
83
+ sx: {
84
+ display: 'flex',
85
+ justifyContent: 'space-between',
86
+ mb: 1
87
+ },
88
+ children: [
89
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
90
+ children: [
91
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledComponents.Label, {
92
+ children: (0, _fixefyuiutils.titleCase)(start.label)
93
+ }),
94
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
95
+ children: start.value || (0, _fixefyuiutils.titleCase)(start.placeholder)
96
+ })
97
+ ]
98
+ }),
99
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
100
+ children: [
101
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledComponents.Label, {
102
+ style: {
103
+ textAlign: 'right',
104
+ display: 'block'
105
+ },
106
+ children: (0, _fixefyuiutils.titleCase)(end.label)
107
+ }),
108
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
109
+ style: {
110
+ textAlign: 'right',
111
+ display: 'block'
112
+ },
113
+ children: end.value || (0, _fixefyuiutils.titleCase)(end.placeholder)
114
+ })
115
+ ]
116
+ })
117
+ ]
118
+ })
66
119
  }),
67
120
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_progressstyles.Progress, {
68
121
  value: progressValue,
package/package.json CHANGED
@@ -73,5 +73,5 @@
73
73
  "require": "./dist/index.js"
74
74
  }
75
75
  },
76
- "version": "0.3.106"
76
+ "version": "0.3.108"
77
77
  }