@hexure/ui 1.13.0 → 1.13.2

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/cjs/index.js CHANGED
@@ -1,13 +1,13 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var styled = require('styled-components');
5
- var Icon = require('@mdi/react');
6
- var js = require('@mdi/js');
7
- var dayjs = require('dayjs');
8
- var Numeral = require('numeral');
9
- var Moment = require('moment');
10
-
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var styled = require('styled-components');
5
+ var Icon = require('@mdi/react');
6
+ var js = require('@mdi/js');
7
+ var dayjs = require('dayjs');
8
+ var Numeral = require('numeral');
9
+ var Moment = require('moment');
10
+
11
11
  /******************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
13
13
 
@@ -21,22 +21,22 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
21
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
22
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
23
  PERFORMANCE OF THIS SOFTWARE.
24
- ***************************************************************************** */
25
- /* global Reflect, Promise, SuppressedError, Symbol */
26
-
27
- function __rest(s, e) {
28
- var t = {};
29
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
30
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
32
- }
33
- return t;
34
- }
35
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
36
- var e = new Error(message);
37
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
38
- };
39
-
24
+ ***************************************************************************** */
25
+ /* global Reflect, Promise, SuppressedError, Symbol */
26
+
27
+ function __rest(s, e) {
28
+ var t = {};
29
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
30
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
32
+ }
33
+ return t;
34
+ }
35
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
36
+ var e = new Error(message);
37
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
38
+ };
39
+
40
40
  const Colors = {
41
41
  PRIMARY: {
42
42
  Hex: '#0193D7',
@@ -85,26 +85,26 @@ const FontSizes = {
85
85
  };
86
86
  const EditableTheme = {
87
87
  PRIMARY_COLOR: Colors.PRIMARY,
88
- };
89
-
90
- const Header$3 = styled.div `
91
- display: flex;
92
- align-items: center;
93
- justify-content: space-between;
94
- box-sizing: border-box;
95
- background: #f5f5f5;
96
- border: 1px solid #e5e5e5;
97
- padding: 14px 20px;
98
- height: 50px;
99
- cursor: pointer;
100
- `;
101
- const Title$2 = styled.div `
102
- font-size: ${FontSizes.DEFAULT};
103
- font-weight: 400;
104
- color: ${Colors.BLACK.Hex};
105
- line-height: 1.6em;
106
- font-family: ${FontStyles.DEFAULT};
107
- box-sizing: border-box;
88
+ };
89
+
90
+ const Header$3 = styled.div `
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: space-between;
94
+ box-sizing: border-box;
95
+ background: #f5f5f5;
96
+ border: 1px solid #e5e5e5;
97
+ padding: 14px 20px;
98
+ height: 50px;
99
+ cursor: pointer;
100
+ `;
101
+ const Title$2 = styled.div `
102
+ font-size: ${FontSizes.DEFAULT};
103
+ font-weight: 400;
104
+ color: ${Colors.BLACK.Hex};
105
+ line-height: 1.6em;
106
+ font-family: ${FontStyles.DEFAULT};
107
+ box-sizing: border-box;
108
108
  `;
109
109
  const Accordion = (_a) => {
110
110
  var { title, children, open, onClick } = _a, accessibleProps = __rest(_a, ["title", "children", "open", "onClick"]);
@@ -113,13 +113,13 @@ const Accordion = (_a) => {
113
113
  React.createElement(Title$2, null, title),
114
114
  React.createElement(Icon, { color: Colors.BLACK.Hex, path: open ? js.mdiChevronUp : js.mdiChevronDown, size: '24px' })),
115
115
  open ? children : null));
116
- };
117
-
118
- const StyledButton = styled.button `
119
- height: ${props => (props.$small ? '30px' : '40px')};
120
- line-height: 1em;
121
- border-radius: ${props => (props.$small ? '15px' : '20px')};
122
- margin: ${props => props.$margin || '0px'};
116
+ };
117
+
118
+ const StyledButton = styled.button `
119
+ height: ${props => (props.$small ? '30px' : '40px')};
120
+ line-height: 1em;
121
+ border-radius: ${props => (props.$small ? '15px' : '20px')};
122
+ margin: ${props => props.$margin || '0px'};
123
123
  padding: ${props => {
124
124
  if (props.$hasChildren) {
125
125
  if (props.$small) {
@@ -130,9 +130,9 @@ const StyledButton = styled.button `
130
130
  }
131
131
  }
132
132
  return '0px';
133
- }};
134
- outline: none;
135
- background: ${props => props.$bg_color || props.theme.PRIMARY_COLOR.Hex};
133
+ }};
134
+ outline: none;
135
+ background: ${props => props.$bg_color || props.theme.PRIMARY_COLOR.Hex};
136
136
  width: ${props => {
137
137
  if (props.$hasChildren) {
138
138
  return 'auto';
@@ -141,53 +141,53 @@ const StyledButton = styled.button `
141
141
  return '30px';
142
142
  }
143
143
  return '40px';
144
- }};
145
- cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
146
- display: flex;
147
- align-items: center;
148
- justify-content: center;
149
- opacity: ${props => (props.$disabled ? 0.6 : 0.9)};
150
- border-width: 1px;
151
- border-style: solid;
152
- border-color: ${props => props.$border_color || props.theme.PRIMARY_COLOR.Hex};
153
- box-sizing: border-box;
154
-
155
- &:active,
156
- &:focus,
157
- &:hover {
158
- opacity: ${props => (props.$disabled ? 0.6 : 1)};
159
- }
160
- `;
161
- const Label$5 = styled.span `
162
- color: ${props => props.$content_color || '#fff'};
163
- font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
164
- font-family: ${FontStyles.DEFAULT};
165
- font-weight: 500;
166
- line-height: 1;
167
- `;
168
- const StyledIcon$6 = styled.span `
169
- margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
170
- margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
171
- display: flex;
172
- align-items: center;
173
- box-sizing: border-box;
174
- `;
175
- const Badge$1 = styled.span `
176
- width: ${props => (props.$small ? '20px' : '24px')};
177
- height: ${props => (props.$small ? '20px' : '24px')};
178
- line-height: 1;
179
- display: flex;
180
- align-items: center;
181
- justify-content: center;
182
- border-radius: 100%;
183
- background-color: ${props => props.$bg_color || '#fff'};
184
- color: ${props => props.$content_color || props.theme.PRIMARY_COLOR.Hex};
185
- font-size: ${props => (props.$small ? '10px' : '12px')};
186
- font-weight: 600;
187
- font-family: ${FontStyles.DEFAULT};
188
- letter-spacing: -1px;
189
- margin-left: ${props => (props.$small ? '5px' : '10px')};
190
- margin-right: ${props => (props.$small ? '-5px' : '-10px')};
144
+ }};
145
+ cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
146
+ display: flex;
147
+ align-items: center;
148
+ justify-content: center;
149
+ opacity: ${props => (props.$disabled ? 0.6 : 0.9)};
150
+ border-width: 1px;
151
+ border-style: solid;
152
+ border-color: ${props => props.$border_color || props.theme.PRIMARY_COLOR.Hex};
153
+ box-sizing: border-box;
154
+
155
+ &:active,
156
+ &:focus,
157
+ &:hover {
158
+ opacity: ${props => (props.$disabled ? 0.6 : 1)};
159
+ }
160
+ `;
161
+ const Label$5 = styled.span `
162
+ color: ${props => props.$content_color || '#fff'};
163
+ font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
164
+ font-family: ${FontStyles.DEFAULT};
165
+ font-weight: 500;
166
+ line-height: 1;
167
+ `;
168
+ const StyledIcon$6 = styled.span `
169
+ margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
170
+ margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
171
+ display: flex;
172
+ align-items: center;
173
+ box-sizing: border-box;
174
+ `;
175
+ const Badge$1 = styled.span `
176
+ width: ${props => (props.$small ? '20px' : '24px')};
177
+ height: ${props => (props.$small ? '20px' : '24px')};
178
+ line-height: 1;
179
+ display: flex;
180
+ align-items: center;
181
+ justify-content: center;
182
+ border-radius: 100%;
183
+ background-color: ${props => props.$bg_color || '#fff'};
184
+ color: ${props => props.$content_color || props.theme.PRIMARY_COLOR.Hex};
185
+ font-size: ${props => (props.$small ? '10px' : '12px')};
186
+ font-weight: 600;
187
+ font-family: ${FontStyles.DEFAULT};
188
+ letter-spacing: -1px;
189
+ margin-left: ${props => (props.$small ? '5px' : '10px')};
190
+ margin-right: ${props => (props.$small ? '-5px' : '-10px')};
191
191
  `;
192
192
  const Button = (_a) => {
193
193
  var { badge, children, disabled = false, icon, isForm = false, loading = false, margin = '', onClick, small = false, format = 'primary' } = _a, accessibleProps = __rest(_a, ["badge", "children", "disabled", "icon", "isForm", "loading", "margin", "onClick", "small", "format"]);
@@ -229,29 +229,29 @@ const Button = (_a) => {
229
229
  icon && !badge ? (React.createElement(StyledIcon$6, { "$hasChildren": !!has_children },
230
230
  React.createElement(Icon, { color: format ? format_styles.content_color : '#fff', path: loading ? js.mdiLoading : icon, size: small ? '20px' : '24px', spin: loading }))) : null,
231
231
  badge && !icon ? (React.createElement(Badge$1, { "$bg_color": format_styles.badge_bg_color, "$content_color": format_styles.badge_content_color, "$small": small }, badge)) : null));
232
- };
233
-
234
- const StyledComponent = styled.p `
235
- color: ${props => Colors[props.$color || 'BLACK'].Hex};
236
- font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
237
- line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
238
- letter-spacing: ${props => (props.$type === 'small' ? '1px' : '0px')};
239
- font-weight: ${props => (props.$type === 'bold' ? '500' : '400')};
240
- font-style: ${props => (props.$type === 'italic' ? 'italic' : 'normal')};
241
- text-decoration: ${props => ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none'};
242
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
243
- margin: ${props => props.$margin || '0px'};
244
- padding: ${props => props.$padding || '0px'};
245
- text-align: ${props => props.$align || 'left'};
246
- box-sizing: border-box;
232
+ };
233
+
234
+ const StyledComponent = styled.p `
235
+ color: ${props => Colors[props.$color || 'BLACK'].Hex};
236
+ font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
237
+ line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
238
+ letter-spacing: ${props => (props.$type === 'small' ? '1px' : '0px')};
239
+ font-weight: ${props => (props.$type === 'bold' ? '500' : '400')};
240
+ font-style: ${props => (props.$type === 'italic' ? 'italic' : 'normal')};
241
+ text-decoration: ${props => ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none'};
242
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
243
+ margin: ${props => props.$margin || '0px'};
244
+ padding: ${props => props.$padding || '0px'};
245
+ text-align: ${props => props.$align || 'left'};
246
+ box-sizing: border-box;
247
247
  `;
248
248
  const Copy = ({ children, align = '', margin = '', padding = '', type = 'default', color = 'BLACK', }) => {
249
249
  return (React.createElement(StyledComponent, { "$align": align, "$color": color, "$margin": margin, "$padding": padding, "$type": type }, children));
250
250
  };
251
251
  Copy.defaultProps = {
252
252
  type: 'default',
253
- };
254
-
253
+ };
254
+
255
255
  const H1 = styled.h1 `
256
256
  color: ${Colors.BLACK.Hex};
257
257
  font-size: 30px;
@@ -299,8 +299,8 @@ const Heading = (_a) => {
299
299
  Heading.defaultProps = {
300
300
  bold: false,
301
301
  type: 'primary',
302
- };
303
-
302
+ };
303
+
304
304
  const Wrapper$i = styled.div `
305
305
  position: fixed;
306
306
  top: 0;
@@ -333,29 +333,29 @@ const ActionDialog = (_a) => {
333
333
  tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary' }))) : null,
334
334
  secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' }))) : null,
335
335
  primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' }))) : null)) : null)));
336
- };
337
-
338
- const Wrapper$h = styled.div `
339
- border: 1px solid #f1f1f1;
340
- border-radius: 4px;
341
- border-left-width: 4px;
342
- box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);
343
- display: flex;
344
- align-items: flex-start;
345
- gap: ${({ $small }) => ($small ? '8px' : '20px')};
346
- padding: ${({ $small }) => ($small ? '11px' : '20px')};
347
- box-sizing: border-box;
348
- `;
349
- const StyledIcon$5 = styled(Icon) `
350
- flex-shrink: 0;
351
- `;
352
- const Action$1 = styled.div `
353
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
354
- font-size: ${FontSizes.DEFAULT};
355
- font-family: ${FontStyles.DEFAULT};
356
- font-weight: 500;
357
- cursor: pointer;
358
- margin-top: 6px;
336
+ };
337
+
338
+ const Wrapper$h = styled.div `
339
+ border: 1px solid #f1f1f1;
340
+ border-radius: 4px;
341
+ border-left-width: 4px;
342
+ box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);
343
+ display: flex;
344
+ align-items: flex-start;
345
+ gap: ${({ $small }) => ($small ? '8px' : '20px')};
346
+ padding: ${({ $small }) => ($small ? '11px' : '20px')};
347
+ box-sizing: border-box;
348
+ `;
349
+ const StyledIcon$5 = styled(Icon) `
350
+ flex-shrink: 0;
351
+ `;
352
+ const Action$1 = styled.div `
353
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
354
+ font-size: ${FontSizes.DEFAULT};
355
+ font-family: ${FontStyles.DEFAULT};
356
+ font-weight: 500;
357
+ cursor: pointer;
358
+ margin-top: 6px;
359
359
  `;
360
360
  Action$1.defaultProps = { theme: EditableTheme };
361
361
  const Alert = (_a) => {
@@ -385,8 +385,8 @@ const Alert = (_a) => {
385
385
  title && !small ? (React.createElement(Heading, { bold: true, margin: '2px 0 0 0', type: 'tertiary' }, title)) : null,
386
386
  description ? (React.createElement(Copy, { margin: small ? '' : '6px 0 0 0 !important' }, description)) : null,
387
387
  action && !small ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
388
- };
389
-
388
+ };
389
+
390
390
  const colorMapping = {
391
391
  black: {
392
392
  fill_1: '#000000',
@@ -427,61 +427,61 @@ const Logo = (_a) => {
427
427
  React.createElement("path", { d: 'M67.8498 45.479C67.5109 44.893 66.7322 43.5486 66.2043 42.6319H55.1965C52.3299 42.6319 49.8532 41.6095 47.8364 39.5923C45.819 37.5755 44.7966 35.0985 44.7966 32.2321C44.7966 29.3656 45.819 26.8886 47.8364 24.8718C49.8388 22.8332 52.316 21.7975 55.1965 21.7975C58.0632 21.7975 60.5398 22.8199 62.5565 24.8374C63.6038 25.8847 64.3824 27.093 64.9357 28.5312L65.2435 29.3327H53.8141C53.231 30.2171 52.5673 31.6476 52.303 32.2354L53.912 35.0969H67.474L71.0059 28.6192C70.2872 25.5702 68.8261 22.9293 66.6625 20.7657C63.5219 17.6257 59.6649 16.0333 55.1965 16.0333C50.7283 16.0333 46.8708 17.6257 43.7303 20.7657C40.546 23.9501 38.9979 27.7011 38.9979 32.2321C38.9979 36.7001 40.5903 40.5577 43.7303 43.6981C46.8708 46.8384 50.7283 48.4308 55.1965 48.4308H66.0873C66.9322 47.0737 67.5668 45.977 67.8498 45.479', fill: colorMapping[type_parts[1]].fill_1 }),
428
428
  React.createElement("path", { d: 'M27.6655 20.7443C26.9235 20.002 26.2307 19.4097 25.608 18.9831C22.7338 17.0113 19.5684 16.0117 16.1992 16.0117C13.6229 16.0117 11.1676 16.5943 8.9002 17.7442C8.1016 18.1264 7.38657 18.6118 6.73074 19.0799L5.88805 19.6819C5.85364 19.711 5.81716 19.7449 5.78223 19.7749L5.77618 17.9067C5.78246 17.9022 5.7892 17.8965 5.79554 17.8921L5.72168 1.52402L2.84058 1.54784e-05L0 1.6145V24.9966V30.8918C0.0184614 30.8508 0.0393993 30.8108 0.0580857 30.7698C0.0216133 31.2417 0 31.7206 0 32.2105V47.6757L2.84688 49.2499C4.7412 48.3293 5.4988 47.9164 5.79866 47.7385V32.2105C5.79866 29.3439 6.82128 26.8672 8.83853 24.8504C10.8415 22.8118 13.319 21.7759 16.1992 21.7759C19.0796 21.7759 21.557 22.8118 23.5635 24.8538C25.3441 26.6351 26.3374 28.7976 26.5963 31.4625C26.6263 31.6669 26.6339 40.3058 26.6339 47.6694C27.2825 48.0147 28.6127 48.8167 29.5141 49.3059C29.9448 49.0814 32.0589 47.8425 32.3979 47.6669V32.2105C32.3979 27.6795 30.8499 23.9285 27.6655 20.7443Z', fill: colorMapping[type_parts[1]].fill_1 })));
429
429
  }
430
- };
431
-
432
- const Container$3 = styled.header `
433
- width: 100%;
434
- display: flex;
435
- padding: 20px;
436
- box-sizing: border-box;
437
- border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
438
- background: '#fff';
439
- justify-content: space-between;
440
- `;
441
- const LogoWrapper = styled.div `
442
- display: flex;
443
- align-items: center;
444
- `;
445
- const Image = styled.img `
446
- height: 30px !important;
447
- width: auto !important;
448
- `;
449
- const Buttons = styled.div `
450
- display: flex;
451
- flex-direction: row;
452
- column-gap: 10px;
453
- flex-direction: reverse;
430
+ };
431
+
432
+ const Container$3 = styled.header `
433
+ width: 100%;
434
+ display: flex;
435
+ padding: 20px;
436
+ box-sizing: border-box;
437
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
438
+ background: '#fff';
439
+ justify-content: space-between;
440
+ `;
441
+ const LogoWrapper = styled.div `
442
+ display: flex;
443
+ align-items: center;
444
+ `;
445
+ const Image = styled.img `
446
+ height: 30px !important;
447
+ width: auto !important;
448
+ `;
449
+ const Buttons = styled.div `
450
+ display: flex;
451
+ flex-direction: row;
452
+ column-gap: 10px;
453
+ flex-direction: reverse;
454
454
  `;
455
455
  const AppHeader = ({ logoUrl, buttons = [] }) => {
456
456
  return (React.createElement(Container$3, null,
457
457
  React.createElement(LogoWrapper, null, logoUrl ? React.createElement(Image, { src: logoUrl }) : React.createElement(Logo, { height: '30px' })),
458
458
  React.createElement(Buttons, null, buttons.map((b, i) => (React.createElement(Button, Object.assign({ key: i }, b)))))));
459
- };
460
-
461
- const Wrapper$g = styled.div `
462
- display: inline-block;
463
- border-radius: 4px;
464
- padding: 4px 6px;
465
- background: ${props => Colors[props.$color].Hex};
466
- color: #ffffff;
467
- box-sizing: border-box;
468
- cursor: ${props => (props.$removable ? 'pointer' : 'default')};
469
- `;
470
- const Content$3 = styled.div `
471
- display: flex;
472
- align-items: center;
473
- `;
474
- const Label$4 = styled.div `
475
- color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
476
- font-size: ${FontSizes.SMALL};
477
- font-weight: 500;
478
- font-family: ${FontStyles.DEFAULT};
479
- line-height: 1.2em;
480
- `;
481
- const Remove$1 = styled.div `
482
- margin-left: 10px;
483
- display: flex;
484
- align-items: center;
459
+ };
460
+
461
+ const Wrapper$g = styled.div `
462
+ display: inline-block;
463
+ border-radius: 4px;
464
+ padding: 4px 6px;
465
+ background: ${props => Colors[props.$color].Hex};
466
+ color: #ffffff;
467
+ box-sizing: border-box;
468
+ cursor: ${props => (props.$removable ? 'pointer' : 'default')};
469
+ `;
470
+ const Content$3 = styled.div `
471
+ display: flex;
472
+ align-items: center;
473
+ `;
474
+ const Label$4 = styled.div `
475
+ color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
476
+ font-size: ${FontSizes.SMALL};
477
+ font-weight: 500;
478
+ font-family: ${FontStyles.DEFAULT};
479
+ line-height: 1.2em;
480
+ `;
481
+ const Remove$1 = styled.div `
482
+ margin-left: 10px;
483
+ display: flex;
484
+ align-items: center;
485
485
  `;
486
486
  const Tag = (_a) => {
487
487
  var { children, color = 'PRIMARY', removable, onClick } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
@@ -490,91 +490,91 @@ const Tag = (_a) => {
490
490
  React.createElement(Label$4, { "$color": color }, children),
491
491
  removable ? (React.createElement(Remove$1, null,
492
492
  React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: js.mdiClose, size: '15px' }))) : null)));
493
- };
494
-
495
- const SidebarContainer = styled.div `
496
- border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
497
- display: flex;
498
- flex-direction: column;
499
- height: 100%;
500
- padding: 12px 0px;
501
- width: ${props => (props.$isOpen ? props.$width : '60px')};
502
- `;
503
- const MenuWrapper = styled.div `
504
- display: flex;
505
- align-items: center;
506
- border-left-width: 4px;
507
- border-left-style: solid;
508
- border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
509
- cursor: pointer;
510
- height: 40px;
511
-
512
- &:hover > div {
513
- color: ${props => props.$color.Hex};
514
- }
515
-
516
- &:hover > svg > path {
517
- fill: ${Colors.BLACK.Hex} !important;
518
- }
519
- `;
520
- const MenuIcon = styled(Icon) `
521
- width: 20px;
522
- height: 20px;
523
- margin: 0px 16px;
524
- flex-shrink: 0;
525
-
526
- > path {
527
- fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
528
- }
529
- `;
530
- const MenuLabel = styled.div `
531
- color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
532
- flex: 1;
533
- font-size: 12px;
534
- font-style: normal;
535
- font-weight: 600;
536
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
537
- line-height: 16px;
538
- padding: 12px 0px;
539
- letter-spacing: 1px;
540
- `;
541
- const SubMenu = styled.div `
542
- overflow-y: auto;
543
- padding-left: 44px;
544
- padding-right: 20px;
545
- padding-bottom: 10px;
546
- `;
547
- const SubMenuItem = styled.a `
548
- display: block;
549
- padding: 8px 12px;
550
- border-radius: 8px;
551
- font-size: 13px;
552
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
553
- line-height: 20px;
554
- text-decoration: none;
555
- font-weight: ${({ $active }) => ($active ? '500' : '400')};
556
- color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
557
- background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
558
- cursor: pointer;
559
-
560
- &:hover {
561
- color: ${props => props.$color.Hex};
562
- font-weight: 500;
563
- }
564
- `;
565
- const Footer = styled.div `
566
- padding: 20px 14px 0px;
567
- display: flex;
568
- align-items: center;
569
- `;
570
- const FooterInfo = styled.div `
571
- display: flex;
572
- flex-direction: column;
573
- flex: 1;
574
- align-items: flex-start;
575
- `;
576
- const SidebarMenuContainer = styled.div `
577
- flex-grow: 1;
493
+ };
494
+
495
+ const SidebarContainer = styled.div `
496
+ border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
497
+ display: flex;
498
+ flex-direction: column;
499
+ height: 100%;
500
+ padding: 12px 0px;
501
+ width: ${props => (props.$isOpen ? props.$width : '60px')};
502
+ `;
503
+ const MenuWrapper = styled.div `
504
+ display: flex;
505
+ align-items: center;
506
+ border-left-width: 4px;
507
+ border-left-style: solid;
508
+ border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
509
+ cursor: pointer;
510
+ height: 40px;
511
+
512
+ &:hover > div {
513
+ color: ${props => props.$color.Hex};
514
+ }
515
+
516
+ &:hover > svg > path {
517
+ fill: ${Colors.BLACK.Hex} !important;
518
+ }
519
+ `;
520
+ const MenuIcon = styled(Icon) `
521
+ width: 20px;
522
+ height: 20px;
523
+ margin: 0px 16px;
524
+ flex-shrink: 0;
525
+
526
+ > path {
527
+ fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
528
+ }
529
+ `;
530
+ const MenuLabel = styled.div `
531
+ color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
532
+ flex: 1;
533
+ font-size: 12px;
534
+ font-style: normal;
535
+ font-weight: 600;
536
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
537
+ line-height: 16px;
538
+ padding: 12px 0px;
539
+ letter-spacing: 1px;
540
+ `;
541
+ const SubMenu = styled.div `
542
+ overflow-y: auto;
543
+ padding-left: 44px;
544
+ padding-right: 20px;
545
+ padding-bottom: 10px;
546
+ `;
547
+ const SubMenuItem = styled.a `
548
+ display: block;
549
+ padding: 8px 12px;
550
+ border-radius: 8px;
551
+ font-size: 13px;
552
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
553
+ line-height: 20px;
554
+ text-decoration: none;
555
+ font-weight: ${({ $active }) => ($active ? '500' : '400')};
556
+ color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
557
+ background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
558
+ cursor: pointer;
559
+
560
+ &:hover {
561
+ color: ${props => props.$color.Hex};
562
+ font-weight: 500;
563
+ }
564
+ `;
565
+ const Footer = styled.div `
566
+ padding: 20px 14px 0px;
567
+ display: flex;
568
+ align-items: center;
569
+ `;
570
+ const FooterInfo = styled.div `
571
+ display: flex;
572
+ flex-direction: column;
573
+ flex: 1;
574
+ align-items: flex-start;
575
+ `;
576
+ const SidebarMenuContainer = styled.div `
577
+ flex-grow: 1;
578
578
  `;
579
579
  const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px' }) => {
580
580
  const theme = React.useContext(styled.ThemeContext) || EditableTheme;
@@ -598,75 +598,75 @@ const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px' }) => {
598
598
  e.preventDefault();
599
599
  toggleCollapse(!collapsed);
600
600
  }, small: true }))));
601
- };
602
-
603
- const Wrapper$f = styled.div `
604
- border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
605
- border-radius: 8px;
606
- box-sizing: border-box;
607
- display: flex;
608
- align-items: center;
609
- justify-content: space-between;
610
- padding: 16px 20px;
601
+ };
602
+
603
+ const Wrapper$f = styled.div `
604
+ border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
605
+ border-radius: 8px;
606
+ box-sizing: border-box;
607
+ display: flex;
608
+ align-items: center;
609
+ justify-content: space-between;
610
+ padding: 16px 20px;
611
611
  `;
612
612
  Wrapper$f.defaultProps = { theme: EditableTheme };
613
- const Left = styled.div `
614
- box-sizing: border-box;
615
- display: flex;
616
- align-items: center;
617
- justify-content: space-between;
618
- flex-shrink: 0;
619
- `;
620
- const Info$1 = styled.div `
621
- box-sizing: border-box;
622
- display: flex;
623
- align-items: center;
624
- margin-right: 30px;
625
- `;
626
- const Selected = styled.span `
627
- font-size: 14px;
628
- font-weight: 400;
629
- font-family: ${FontStyles.DEFAULT};
630
- color: ${Colors.BLACK.Hex};
631
- line-height: 1;
632
- `;
633
- const Clear = styled.span `
634
- font-size: 14px;
635
- font-weight: 400;
636
- font-family: ${FontStyles.DEFAULT};
637
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
638
- line-height: 1;
639
- cursor: pointer;
640
- padding-left: 10px;
641
- margin-left: 10px;
642
- border-left: 1px solid #ccc;
613
+ const Left = styled.div `
614
+ box-sizing: border-box;
615
+ display: flex;
616
+ align-items: center;
617
+ justify-content: space-between;
618
+ flex-shrink: 0;
619
+ `;
620
+ const Info$1 = styled.div `
621
+ box-sizing: border-box;
622
+ display: flex;
623
+ align-items: center;
624
+ margin-right: 30px;
625
+ `;
626
+ const Selected = styled.span `
627
+ font-size: 14px;
628
+ font-weight: 400;
629
+ font-family: ${FontStyles.DEFAULT};
630
+ color: ${Colors.BLACK.Hex};
631
+ line-height: 1;
632
+ `;
633
+ const Clear = styled.span `
634
+ font-size: 14px;
635
+ font-weight: 400;
636
+ font-family: ${FontStyles.DEFAULT};
637
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
638
+ line-height: 1;
639
+ cursor: pointer;
640
+ padding-left: 10px;
641
+ margin-left: 10px;
642
+ border-left: 1px solid #ccc;
643
643
  `;
644
644
  Clear.defaultProps = { theme: EditableTheme };
645
- const Actions$1 = styled.div `
646
- box-sizing: border-box;
647
- display: flex;
648
- align-items: center;
649
- column-gap: 10px;
650
- `;
651
- const Error$1 = styled.div `
652
- box-sizing: border-box;
653
- display: flex;
654
- align-items: center;
655
- background: rgba(${Colors.RED.Rgb}, 0.1);
656
- border-radius: 4px;
657
- padding: 6px 8px;
658
- text-overflow: ellipsis;
659
- white-space: nowrap;
660
- overflow: hidden;
661
- margin-left: 30px;
662
- `;
663
- const ErrorMsg = styled.span `
664
- font-size: 14px;
665
- font-weight: 500;
666
- font-family: ${FontStyles.DEFAULT};
667
- line-height: 1em;
668
- color: ${Colors.RED.Hex};
669
- margin-left: 8px;
645
+ const Actions$1 = styled.div `
646
+ box-sizing: border-box;
647
+ display: flex;
648
+ align-items: center;
649
+ column-gap: 10px;
650
+ `;
651
+ const Error$1 = styled.div `
652
+ box-sizing: border-box;
653
+ display: flex;
654
+ align-items: center;
655
+ background: rgba(${Colors.RED.Rgb}, 0.1);
656
+ border-radius: 4px;
657
+ padding: 6px 8px;
658
+ text-overflow: ellipsis;
659
+ white-space: nowrap;
660
+ overflow: hidden;
661
+ margin-left: 30px;
662
+ `;
663
+ const ErrorMsg = styled.span `
664
+ font-size: 14px;
665
+ font-weight: 500;
666
+ font-family: ${FontStyles.DEFAULT};
667
+ line-height: 1em;
668
+ color: ${Colors.RED.Hex};
669
+ margin-left: 8px;
670
670
  `;
671
671
  const BulkActionBar = (_a) => {
672
672
  var { actions = [], errorMsg, onClear, selectedCount = 0 } = _a, accessibleProps = __rest(_a, ["actions", "errorMsg", "onClear", "selectedCount"]);
@@ -681,46 +681,46 @@ const BulkActionBar = (_a) => {
681
681
  errorMsg ? (React.createElement(Error$1, null,
682
682
  React.createElement(Icon, { color: Colors.RED.Hex, path: js.mdiInformationOutline, size: '20px' }),
683
683
  React.createElement(ErrorMsg, null, errorMsg))) : null));
684
- };
685
-
686
- const Wrapper$e = styled.div `
687
- background: #fff;
688
- border-radius: 8px;
689
- box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
690
- display: flex;
691
- flex-direction: column;
692
- gap: 4px;
693
- max-height: ${props => props.$maxHeight || '312px'};
694
- padding: 10px;
695
- width: 200px;
696
- `;
697
- const MenuItem = styled.div `
698
- align-items: center;
699
- border-radius: 8px;
700
- border: 1px solid transparent;
701
- display: flex;
702
- gap: 8px;
703
- height: 38px;
704
- padding: 8px;
705
- &:hover {
706
- background: rgba(1, 147, 215, 0.1);
707
- cursor: pointer;
708
-
709
- svg,
710
- path {
711
- fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
712
- }
713
- }
684
+ };
685
+
686
+ const Wrapper$e = styled.div `
687
+ background: #fff;
688
+ border-radius: 8px;
689
+ box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
690
+ display: flex;
691
+ flex-direction: column;
692
+ gap: 4px;
693
+ max-height: ${props => props.$maxHeight || '312px'};
694
+ padding: 10px;
695
+ width: 200px;
696
+ `;
697
+ const MenuItem = styled.div `
698
+ align-items: center;
699
+ border-radius: 8px;
700
+ border: 1px solid transparent;
701
+ display: flex;
702
+ gap: 8px;
703
+ height: 38px;
704
+ padding: 8px;
705
+ &:hover {
706
+ background: rgba(1, 147, 215, 0.1);
707
+ cursor: pointer;
708
+
709
+ svg,
710
+ path {
711
+ fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
712
+ }
713
+ }
714
714
  `;
715
715
  MenuItem.defaultProps = { theme: EditableTheme };
716
- const Title$1 = styled.span `
717
- font-family: Roboto;
718
- font-size: 14px;
719
- font-weight: 400;
720
- height: auto;
721
- letter-spacing: 0px;
722
- line-height: 22px;
723
- text-align: left;
716
+ const Title$1 = styled.span `
717
+ font-family: Roboto;
718
+ font-size: 14px;
719
+ font-weight: 400;
720
+ height: auto;
721
+ letter-spacing: 0px;
722
+ line-height: 22px;
723
+ text-align: left;
724
724
  `;
725
725
  const MoreMenu = (_a) => {
726
726
  var { maxHeight, menuItems = [] } = _a, accessibleProps = __rest(_a, ["maxHeight", "menuItems"]);
@@ -729,38 +729,38 @@ const MoreMenu = (_a) => {
729
729
  item.icon ? (React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
730
730
  React.createElement(Title$1, null, item.label)));
731
731
  })));
732
- };
733
-
734
- const Wrapper$d = styled.div `
735
- position: relative;
736
- display: inline-block;
737
- `;
738
- const StyledMoreMenu = styled(MoreMenu) `
739
- position: absolute;
740
- right: ${props => (props.$position === 'right' ? '0px' : 'auto')};
741
- left: ${props => (props.$position === 'left' ? '0px' : 'auto')};
742
- top: ${props => (props.$small ? '30px' : '40px')};
743
- width: ${props => props.$menuWidth};
744
- z-index: 10;
732
+ };
733
+
734
+ const Wrapper$d = styled.div `
735
+ position: relative;
736
+ display: inline-block;
737
+ `;
738
+ const StyledMoreMenu = styled(MoreMenu) `
739
+ position: absolute;
740
+ right: ${props => (props.$position === 'right' ? '0px' : 'auto')};
741
+ left: ${props => (props.$position === 'left' ? '0px' : 'auto')};
742
+ top: ${props => (props.$small ? '30px' : '40px')};
743
+ width: ${props => props.$menuWidth};
744
+ z-index: 10;
745
745
  `;
746
746
  const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'right', format = 'primary', menuWidth = '200px', }) => {
747
747
  const [show_menu, toggleMenu] = React.useState(false);
748
748
  return (React.createElement(Wrapper$d, { onMouseEnter: disabled ? undefined : toggleMenu.bind(null, true), onMouseLeave: disabled ? undefined : toggleMenu.bind(null, false) },
749
749
  React.createElement(Button, { disabled: disabled, format: format, icon: js.mdiDotsHorizontal, small: small }, label),
750
750
  show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
751
- };
752
-
753
- const Wrapper$c = styled.div `
754
- display: inline-block;
755
- position: relative;
756
- height: 16px;
757
- `;
758
- const StyledIcon$4 = styled(Icon) `
759
- width: 16px;
760
- height: 16px;
761
- margin: 0px 6px;
762
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
763
- cursor: pointer;
751
+ };
752
+
753
+ const Wrapper$c = styled.div `
754
+ display: inline-block;
755
+ position: relative;
756
+ height: 16px;
757
+ `;
758
+ const StyledIcon$4 = styled(Icon) `
759
+ width: 16px;
760
+ height: 16px;
761
+ margin: 0px 6px;
762
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
763
+ cursor: pointer;
764
764
  `;
765
765
  StyledIcon$4.defaultProps = { theme: EditableTheme };
766
766
  const positions = {
@@ -798,8 +798,8 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }
798
798
  return (React.createElement(Wrapper$c, { onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
799
799
  trigger || React.createElement(StyledIcon$4, { path: js.mdiInformationOutline }),
800
800
  show_content ? (React.createElement(Content$2, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
801
- };
802
-
801
+ };
802
+
803
803
  const Wrapper$b = styled.label `
804
804
  border-radius: 4px;
805
805
  padding: 4px 0px 4px 6px;
@@ -846,6 +846,7 @@ const Input$2 = styled.input `
846
846
  const Check$1 = styled.span `
847
847
  height: 17px;
848
848
  width: 17px;
849
+ min-width: 17px;
849
850
  background-color: #fff;
850
851
  border-width: 2px;
851
852
  border-style: solid;
@@ -873,7 +874,7 @@ const Label$3 = styled.span `
873
874
  font-size: ${FontSizes.DEFAULT};
874
875
  font-weight: 400;
875
876
  line-height: 1.6em;
876
- color: ${props => props.color || Colors.BLACK.Hex};;
877
+ color: ${props => props.color || Colors.BLACK.Hex};
877
878
  margin-left: 6px;
878
879
  box-sizing: border-box;
879
880
  `;
@@ -885,16 +886,16 @@ const Checkbox = (_a) => {
885
886
  children ? (React.createElement(Label$3, { color: color },
886
887
  children,
887
888
  tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)) : null));
888
- };
889
-
890
- const SelectAll = styled.div `
891
- padding: 8px 12px;
892
- border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
893
- box-sizing: border-box;
889
+ };
890
+
891
+ const SelectAll = styled.div `
892
+ padding: 8px 12px;
893
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
894
+ box-sizing: border-box;
894
895
  `;
895
- const Options$1 = styled.div `
896
- padding: 12px;
897
- box-sizing: border-box;
896
+ const Options$1 = styled.div `
897
+ padding: 12px;
898
+ box-sizing: border-box;
898
899
  `;
899
900
  const Checklist = (_a) => {
900
901
  var { disabled, onChange, options, selected = [], showSelectAll } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "selected", "showSelectAll"]);
@@ -931,8 +932,8 @@ const Checklist = (_a) => {
931
932
  const checked = selected.includes(option.value);
932
933
  return (React.createElement(Checkbox, Object.assign({ key: i }, accessibleProps, { checked: checked, color: option.color, disabled: disabled, onChange: handleChange.bind(null, option) }), label));
933
934
  }))));
934
- };
935
-
935
+ };
936
+
936
937
  const Wrapper$a = styled.div `
937
938
  border-radius: 4px;
938
939
  height: 40px;
@@ -1030,23 +1031,35 @@ const Select = (_a) => {
1030
1031
  return (React.createElement("option", { key: i, value: option.value }, option.label || option.value));
1031
1032
  }))),
1032
1033
  React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, path: js.mdiChevronDown, size: '22px' })));
1033
- };
1034
-
1035
- const DatePickerWrapper = styled.div `
1036
- display: flex;
1037
- width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1034
+ };
1035
+
1036
+ const DatePickerWrapper = styled.div `
1037
+ display: flex;
1038
+ width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1038
1039
  `;
1039
- const Middle = styled.div `
1040
- margin: 0px -1px;
1041
- flex-grow: 1;
1040
+ const Middle = styled.div `
1041
+ margin: 0px -1px;
1042
+ flex-grow: 1;
1042
1043
  `;
1043
1044
  const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate = null, date, onChange, style, }) => {
1045
+ const [selectedDay, setSelectedDay] = React.useState('');
1046
+ const [selectedMonth, setSelectedMonth] = React.useState('');
1047
+ const [selectedYear, setSelectedYear] = React.useState('');
1048
+ const [dDate, setDDate] = React.useState(dayjs(date || undefined));
1044
1049
  const dMaxDate = maxDate ? dayjs(maxDate) : dayjs();
1045
1050
  const dMinDate = minDate ? dayjs(minDate) : dMaxDate.subtract(100, 'year');
1046
- const [dDate, setDate] = React.useState(dayjs(date));
1047
- const [dayOptions, setDayOptions] = React.useState(Array.from({ length: dDate.daysInMonth() - 1 }, (_, i) => ({
1051
+ const [dayOptions, setDayOptions] = React.useState(Array.from({ length: dDate.daysInMonth() }, (_, i) => ({
1048
1052
  value: i + 1,
1049
1053
  })));
1054
+ React.useEffect(() => {
1055
+ if (date) {
1056
+ const d = dayjs(date);
1057
+ setSelectedDay(d.date().toString());
1058
+ setSelectedMonth((d.month() + 1).toString());
1059
+ setSelectedYear(d.year().toString());
1060
+ setDDate(d);
1061
+ }
1062
+ }, [date]);
1050
1063
  const months = [
1051
1064
  { label: 'January', value: 1 },
1052
1065
  { label: 'Feburary', value: 2 },
@@ -1066,100 +1079,108 @@ const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate
1066
1079
  value: dMinDate.year() + i,
1067
1080
  }));
1068
1081
  React.useEffect(() => {
1069
- setDayOptions(Array.from({ length: dDate.daysInMonth() }, (_, i) => ({
1070
- value: i + 1,
1071
- })));
1072
- // Only fire the onChange event if the date has changed
1073
- if (dDate.format('YYYY-MM-DD') !== date) {
1074
- // Copying the browser event structure
1075
- onChange({
1076
- target: {
1077
- value: dDate.format('YYYY-MM-DD'),
1078
- },
1079
- });
1082
+ if (selectedDay && selectedMonth && selectedYear) {
1083
+ const newDate = dayjs(`${selectedYear}-${selectedMonth}-${selectedDay}`);
1084
+ if (newDate.isValid() && newDate.format('YYYY-MM-DD') !== date) {
1085
+ onChange({
1086
+ target: {
1087
+ value: newDate.format('YYYY-MM-DD'),
1088
+ },
1089
+ });
1090
+ }
1080
1091
  }
1081
- }, [dDate]);
1092
+ }, [selectedDay, selectedMonth, selectedYear]);
1082
1093
  const handleDayChange = (e) => {
1083
1094
  const date = parseInt(e.target.value, 10);
1084
1095
  const new_date = dDate.date(date);
1085
- setDate(new_date);
1096
+ setSelectedDay(e.target.value);
1097
+ setDDate(new_date);
1086
1098
  };
1087
1099
  const handleMonthChange = (e) => {
1088
- const month = parseInt(e.target.value, 10);
1089
- const new_date = dDate.month(month - 1); // dayjs month is zero based
1090
- setDate(new_date);
1100
+ const month = parseInt(e.target.value, 10) - 1;
1101
+ const new_date = dayjs()
1102
+ .set('year', dDate.year())
1103
+ .set('month', month)
1104
+ .set('date', dDate.date());
1105
+ setSelectedMonth(e.target.value);
1106
+ setDDate(new_date);
1107
+ // Update dayOptions based on the new date
1108
+ setDayOptions(Array.from({ length: new_date.daysInMonth() }, (_, i) => ({
1109
+ value: i + 1,
1110
+ })));
1091
1111
  };
1092
1112
  const handleYearChange = (e) => {
1093
1113
  const year = parseInt(e.target.value, 10);
1094
1114
  const new_date = dDate.year(year);
1095
- setDate(new_date);
1115
+ setSelectedYear(e.target.value);
1116
+ setDDate(new_date);
1096
1117
  };
1097
1118
  return (React.createElement(React.Fragment, null,
1098
1119
  React.createElement(DatePickerWrapper, { "$style": style },
1099
- React.createElement(Select, { invalid: invalid, onChange: handleMonthChange, options: months, readOnly: readOnly, style: { borderRadius: '4px 0px 0px 4px', flexGrow: 3 }, value: dDate.format('M') }),
1120
+ React.createElement(Select, { invalid: invalid, onChange: handleMonthChange, options: months, placeholder: 'Select Month', readOnly: readOnly, style: { borderRadius: '4px 0px 0px 4px', flexGrow: 3 }, value: selectedMonth }),
1100
1121
  React.createElement(Middle, null,
1101
- React.createElement(Select, { invalid: invalid, onChange: handleDayChange, options: dayOptions, readOnly: readOnly, style: { borderRadius: '0px' }, value: dDate.format('D') })),
1102
- React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: dDate.format('YYYY') }))));
1103
- };
1104
-
1105
- const Scrim$1 = styled.div `
1106
- position: ${({ $position }) => $position};
1107
- top: 0;
1108
- right: 0;
1109
- bottom: 0;
1110
- left: 0;
1111
- z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
1112
- background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
1113
- `;
1114
- const Container$2 = styled.div `
1115
- z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
1116
- min-width: 400px;
1117
- width: ${({ $width }) => $width || '400px'};
1118
- overflow: hidden;
1119
- box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
1120
- outline: none;
1121
- border: none;
1122
- position: ${({ $position }) => $position};
1123
- top: 0;
1124
- right: 0;
1125
- bottom: 0;
1126
- padding: 0px;
1127
- display: flex;
1128
- flex-direction: column;
1129
- box-sizing: border-box;
1130
- background: #fff;
1131
- `;
1132
- const Header$2 = styled.div `
1133
- padding: 30px 20px;
1134
- display: flex;
1135
- align-items: flex-start;
1136
- box-sizing: border-box;
1137
- flex-shrink: 0;
1138
- background: #fff;
1139
- `;
1140
- const Close$1 = styled.div `
1141
- margin-left: auto;
1142
- display: flex;
1143
- align-items: center;
1144
- padding-left: 20px;
1145
- cursor: pointer;
1146
- `;
1147
- const ContentWrapper$1 = styled.div `
1148
- overflow-x: hidden;
1149
- overflow-y: auto;
1150
- box-sizing: border-box;
1151
- flex: 1;
1152
- background: #fff;
1153
- `;
1154
- const ButtonBar$1 = styled.div `
1155
- padding: 20px;
1156
- display: flex;
1157
- align-items: center;
1158
- justify-content: flex-end;
1159
- box-sizing: border-box;
1160
- gap: 10px;
1161
- flex-shrink: 0;
1162
- background: #fff;
1122
+ React.createElement(Select, { invalid: invalid, onChange: handleDayChange, options: dayOptions, placeholder: 'Select Day', readOnly: readOnly, style: { borderRadius: '0px' }, value: selectedDay })),
1123
+ React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, placeholder: 'Select Year', readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: selectedYear }))));
1124
+ };
1125
+
1126
+ const Scrim$1 = styled.div `
1127
+ position: ${({ $position }) => $position};
1128
+ top: 0;
1129
+ right: 0;
1130
+ bottom: 0;
1131
+ left: 0;
1132
+ z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
1133
+ background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
1134
+ `;
1135
+ const Container$2 = styled.div `
1136
+ z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
1137
+ min-width: 400px;
1138
+ width: ${({ $width }) => $width || '400px'};
1139
+ overflow: hidden;
1140
+ box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
1141
+ outline: none;
1142
+ border: none;
1143
+ position: ${({ $position }) => $position};
1144
+ top: 0;
1145
+ right: 0;
1146
+ bottom: 0;
1147
+ padding: 0px;
1148
+ display: flex;
1149
+ flex-direction: column;
1150
+ box-sizing: border-box;
1151
+ background: #fff;
1152
+ `;
1153
+ const Header$2 = styled.div `
1154
+ padding: 30px 20px;
1155
+ display: flex;
1156
+ align-items: flex-start;
1157
+ box-sizing: border-box;
1158
+ flex-shrink: 0;
1159
+ background: #fff;
1160
+ `;
1161
+ const Close$1 = styled.div `
1162
+ margin-left: auto;
1163
+ display: flex;
1164
+ align-items: center;
1165
+ padding-left: 20px;
1166
+ cursor: pointer;
1167
+ `;
1168
+ const ContentWrapper$1 = styled.div `
1169
+ overflow-x: hidden;
1170
+ overflow-y: auto;
1171
+ box-sizing: border-box;
1172
+ flex: 1;
1173
+ background: #fff;
1174
+ `;
1175
+ const ButtonBar$1 = styled.div `
1176
+ padding: 20px;
1177
+ display: flex;
1178
+ align-items: center;
1179
+ justify-content: flex-end;
1180
+ box-sizing: border-box;
1181
+ gap: 10px;
1182
+ flex-shrink: 0;
1183
+ background: #fff;
1163
1184
  `;
1164
1185
  const Drawer = (_a) => {
1165
1186
  var { children, description, title, onClose, primaryButton, position = 'fixed', secondaryButton, tertiaryButton, scrim = 'dark', width } = _a, accessibleProps = __rest(_a, ["children", "description", "title", "onClose", "primaryButton", "position", "secondaryButton", "tertiaryButton", "scrim", "width"]);
@@ -1183,13 +1204,13 @@ const Drawer = (_a) => {
1183
1204
  React.createElement(Button, { format: 'secondary', icon: js.mdiClose, small: true }))),
1184
1205
  React.createElement(ContentWrapper$1, null, children),
1185
1206
  primaryButton || secondaryButton || tertiaryButton ? (React.createElement(ButtonBar$1, null,
1186
- tertiaryButton ? React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary' })) : null,
1187
- secondaryButton ? React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' })) : null,
1188
- primaryButton ? React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' })) : null)) : null),
1207
+ tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary' }))) : null,
1208
+ secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' }))) : null,
1209
+ primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' }))) : null)) : null),
1189
1210
  scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
1190
- };
1191
-
1192
- const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, (props.$customStyle))));
1211
+ };
1212
+
1213
+ const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.$customStyle)));
1193
1214
  const LabelRow = styled.div `
1194
1215
  display: flex;
1195
1216
  align-items: center;
@@ -1249,43 +1270,43 @@ const Field = (_a) => {
1249
1270
  description ? React.createElement(Description, null, description) : null,
1250
1271
  children,
1251
1272
  validationText ? React.createElement(Validation, null, validationText) : null));
1252
- };
1253
-
1254
- const Wrapper$8 = styled.fieldset `
1255
- margin-inline-start: 0px;
1256
- margin-inline-end: 0px;
1257
- padding-block-start: 0px;
1258
- padding-inline-start: 0px;
1259
- padding-inline-end: 0px;
1260
- padding-block-end: 0px;
1261
- min-inline-size: min-content;
1262
- border-width: 0px;
1263
- border-style: none;
1264
- border-color: transparent;
1265
- border-image: none;
1266
- `;
1267
- const Label$1 = styled.legend `
1268
- padding-inline-start: 0px;
1269
- padding-inline-end: 0px;
1270
-
1271
- color: ${Colors.BLACK.Hex};
1272
- font-family: ${FontStyles.DEFAULT};
1273
- font-size: ${FontSizes.DEFAULT};
1274
- font-weight: 500;
1275
- line-height: 22px;
1276
- margin-bottom: 6px;
1277
- `;
1278
- const Content$1 = styled.div `
1279
- padding: 20px;
1280
- border-radius: 8px;
1281
- background: #fcfcfc;
1273
+ };
1274
+
1275
+ const Wrapper$8 = styled.fieldset `
1276
+ margin-inline-start: 0px;
1277
+ margin-inline-end: 0px;
1278
+ padding-block-start: 0px;
1279
+ padding-inline-start: 0px;
1280
+ padding-inline-end: 0px;
1281
+ padding-block-end: 0px;
1282
+ min-inline-size: min-content;
1283
+ border-width: 0px;
1284
+ border-style: none;
1285
+ border-color: transparent;
1286
+ border-image: none;
1287
+ `;
1288
+ const Label$1 = styled.legend `
1289
+ padding-inline-start: 0px;
1290
+ padding-inline-end: 0px;
1291
+
1292
+ color: ${Colors.BLACK.Hex};
1293
+ font-family: ${FontStyles.DEFAULT};
1294
+ font-size: ${FontSizes.DEFAULT};
1295
+ font-weight: 500;
1296
+ line-height: 22px;
1297
+ margin-bottom: 6px;
1298
+ `;
1299
+ const Content$1 = styled.div `
1300
+ padding: 20px;
1301
+ border-radius: 8px;
1302
+ background: #fcfcfc;
1282
1303
  `;
1283
1304
  const FieldGroup = ({ children, label }) => {
1284
1305
  return (React.createElement(Wrapper$8, null,
1285
1306
  React.createElement(Label$1, null, label),
1286
1307
  React.createElement(Content$1, null, children)));
1287
- };
1288
-
1308
+ };
1309
+
1289
1310
  const Dropzone = styled.div `
1290
1311
  border-radius: 8px;
1291
1312
  border-width: 1px;
@@ -1332,6 +1353,11 @@ const Files = styled.div `
1332
1353
  gap: 10px;
1333
1354
  margin: 20px;
1334
1355
  `;
1356
+ const MessageDiv = styled.div `
1357
+ display: flex;
1358
+ align-items: center;
1359
+ justify-content: center;
1360
+ `;
1335
1361
  const File = styled.div `
1336
1362
  display: flex;
1337
1363
  padding: 10px;
@@ -1351,7 +1377,7 @@ const Remove = styled(Icon) `
1351
1377
  fill: ${Colors.RED.Hex} !important;
1352
1378
  }
1353
1379
  `;
1354
- const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, value = [], message, validateFile, }) => {
1380
+ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, value = [], message, tooltipInfo = '', validateFile, }) => {
1355
1381
  const inputRef = React.useRef(null);
1356
1382
  const [files, setFiles] = React.useState(value || []);
1357
1383
  const [dragging, setDragging] = React.useState(false);
@@ -1463,9 +1489,12 @@ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, val
1463
1489
  React.createElement(StyledIcon$3, { path: js.mdiFolderPlusOutline }))),
1464
1490
  React.createElement(Content, null,
1465
1491
  React.createElement(Copy, { align: 'center', type: 'bold' }, "Drag & drop files here or click to select files"),
1466
- message ? (React.createElement(Copy, { align: 'center', color: 'GRAY' }, message)) : null))) : null)));
1467
- };
1468
-
1492
+ message ? (React.createElement(MessageDiv, null,
1493
+ React.createElement(Copy, { align: 'center', color: 'GRAY' }, message),
1494
+ tooltipInfo && (React.createElement("span", null,
1495
+ React.createElement(Tooltip, { children: tooltipInfo, position: 'left-center' }))))) : null))) : null)));
1496
+ };
1497
+
1469
1498
  const getAgesFromDob = (dob) => {
1470
1499
  let calculated_current_age = null;
1471
1500
  let calculated_nearest_age = null;
@@ -1538,8 +1567,8 @@ const formatAsSsn = (number) => {
1538
1567
  formatted_value = `${formatted_value.substring(0, 3)}-${formatted_value.substring(3, 5)}-${formatted_value.substring(5, 9)}`;
1539
1568
  }
1540
1569
  return formatted_value;
1541
- };
1542
-
1570
+ };
1571
+
1543
1572
  const StyledInput = styled.input `
1544
1573
  border: none !important;
1545
1574
  background: none !important;
@@ -1776,63 +1805,63 @@ const Input$1 = (_a) => {
1776
1805
  setShowOptions(false);
1777
1806
  } }, s_value));
1778
1807
  }))) : null));
1779
- };
1780
-
1781
- const Wrapper$7 = styled.a `
1782
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
1783
- font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
1784
- line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
1785
- letter-spacing: ${props => (props.$small ? '1px' : '0px')};
1786
- font-weight: 500;
1787
- font-style: normal;
1788
- text-decoration: 'none';
1789
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
1790
- margin: 0px;
1791
- padding: 0px;
1792
- box-sizing: border-box;
1793
- cursor: pointer;
1808
+ };
1809
+
1810
+ const Wrapper$7 = styled.a `
1811
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
1812
+ font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
1813
+ line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
1814
+ letter-spacing: ${props => (props.$small ? '1px' : '0px')};
1815
+ font-weight: 500;
1816
+ font-style: normal;
1817
+ text-decoration: 'none';
1818
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
1819
+ margin: 0px;
1820
+ padding: 0px;
1821
+ box-sizing: border-box;
1822
+ cursor: pointer;
1794
1823
  `;
1795
1824
  Wrapper$7.defaultProps = { theme: EditableTheme };
1796
1825
  const Link = (_a) => {
1797
1826
  var { children, onClick, small } = _a, accessibleProps = __rest(_a, ["children", "onClick", "small"]);
1798
1827
  return (React.createElement(Wrapper$7, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
1799
- };
1800
-
1801
- const dash = styled.keyframes `
1802
- 0% {
1803
- stroke-dasharray: 1, 160;
1804
- stroke-dashoffset: 0;
1805
- }
1806
- 50% {
1807
- stroke-dasharray: 80, 160;
1808
- stroke-dashoffset: -32;
1809
- }
1810
- 100% {
1811
- stroke-dasharray: 80, 160;
1812
- stroke-dashoffset: -124;
1813
- }
1814
- `;
1815
- const Spinner = styled.svg `
1816
- z-index: 2;
1817
- position: absolute;
1818
- top: 50%;
1819
- left: 50%;
1820
- transform: translate(-50%, -50%);
1821
- margin: 0 auto;
1822
- width: 40px;
1823
- height: 40px;
1824
- `;
1825
- const Path = styled.path `
1826
- stroke: #0193d7;
1827
- stroke-linecap: round;
1828
- -webkit-animation: ${dash} 1.1s ease-in-out infinite;
1829
- animation: ${dash} 1.1s ease-in-out infinite;
1828
+ };
1829
+
1830
+ const dash = styled.keyframes `
1831
+ 0% {
1832
+ stroke-dasharray: 1, 160;
1833
+ stroke-dashoffset: 0;
1834
+ }
1835
+ 50% {
1836
+ stroke-dasharray: 80, 160;
1837
+ stroke-dashoffset: -32;
1838
+ }
1839
+ 100% {
1840
+ stroke-dasharray: 80, 160;
1841
+ stroke-dashoffset: -124;
1842
+ }
1843
+ `;
1844
+ const Spinner = styled.svg `
1845
+ z-index: 2;
1846
+ position: absolute;
1847
+ top: 50%;
1848
+ left: 50%;
1849
+ transform: translate(-50%, -50%);
1850
+ margin: 0 auto;
1851
+ width: 40px;
1852
+ height: 40px;
1853
+ `;
1854
+ const Path = styled.path `
1855
+ stroke: #0193d7;
1856
+ stroke-linecap: round;
1857
+ -webkit-animation: ${dash} 1.1s ease-in-out infinite;
1858
+ animation: ${dash} 1.1s ease-in-out infinite;
1830
1859
  `;
1831
1860
  const Loader = () => {
1832
1861
  return (React.createElement(Spinner, { viewBox: '0 0 16 18' },
1833
1862
  React.createElement(Path, { d: 'M7.21487 1.2868C7.88431 0.9044 8.73031 0.9044 9.39974 1.2868L9.40283 1.28856L14.4613 4.20761C15.1684 4.598 15.5746 5.33558 15.5746 6.11465V8.99996V11.8853C15.5746 12.6507 15.1632 13.3848 14.4617 13.7721L9.37973 16.7132C8.71029 17.0956 7.86428 17.0956 7.19485 16.7132L7.19088 16.7109L2.11279 13.772C1.40602 13.3816 1 12.6441 1 11.8653V8.98995V6.11465C1 5.31458 1.44381 4.59039 2.10827 4.21051L7.21487 1.2868Z', fill: 'none', strokeWidth: '2' })));
1834
- };
1835
-
1863
+ };
1864
+
1836
1865
  const Steps = styled.div `
1837
1866
  padding: 20px;
1838
1867
  border-bottom: 1px solid #e7e6e6;
@@ -1884,13 +1913,13 @@ const StepLine = styled.div `
1884
1913
  const ProgressBar = ({ steps, showStepLine = false }) => {
1885
1914
  return (React.createElement(Steps, null, steps.map((step, i) => {
1886
1915
  return (React.createElement(React.Fragment, null,
1887
- i !== 0 && showStepLine && (React.createElement(StepLine, { "$active": step.active })),
1916
+ i !== 0 && showStepLine && React.createElement(StepLine, { "$active": step.active }),
1888
1917
  React.createElement(Step, { key: i },
1889
1918
  step.complete ? (React.createElement(StyledIcon$2, { path: js.mdiCheckboxMarkedCircleOutline, size: '32px' })) : (React.createElement(StepIndicator, { "$active": step.active }, i + 1)),
1890
1919
  React.createElement(StepLabel, null, step.label))));
1891
1920
  })));
1892
- };
1893
-
1921
+ };
1922
+
1894
1923
  const Wrapper$6 = styled.div `
1895
1924
  position: fixed;
1896
1925
  top: 0;
@@ -1990,8 +2019,8 @@ const Modal = (_a) => {
1990
2019
  } },
1991
2020
  secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' }))) : null,
1992
2021
  primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' }))) : null)) : null)) : null)));
1993
- };
1994
-
2022
+ };
2023
+
1995
2024
  const Wrapper$5 = styled.div `
1996
2025
  position: relative;
1997
2026
  width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
@@ -2094,37 +2123,37 @@ const MultiSelect = (_a) => {
2094
2123
  showOptions ? (React.createElement(Options, null,
2095
2124
  React.createElement(Checklist, { onChange: onChange, options: filteredOptions, selected: selected, showSelectAll: showSelectAll }))) : null,
2096
2125
  showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
2097
- };
2098
-
2099
- const Wrapper$4 = styled.div `
2100
- display: flex;
2101
- padding: 16px 30px;
2102
- align-items: center;
2103
- gap: 20px;
2104
- align-self: stretch;
2105
- border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
2106
- `;
2107
- const Title = styled.div `
2108
- display: flex;
2109
- align-items: center;
2110
- gap: 20px;
2111
- `;
2112
- const Info = styled.div `
2113
- display: flex;
2114
- flex-direction: column;
2115
- align-items: flex-start;
2116
- gap: 4px;
2117
- flex: 1 0 0;
2118
- `;
2119
- const Breadcrumbs = styled.div `
2120
- display: flex;
2121
- align-items: center;
2122
- gap: 4px;
2123
- `;
2124
- const Actions = styled.div `
2125
- display: flex;
2126
- align-items: center;
2127
- gap: 8px;
2126
+ };
2127
+
2128
+ const Wrapper$4 = styled.div `
2129
+ display: flex;
2130
+ padding: 16px 30px;
2131
+ align-items: center;
2132
+ gap: 20px;
2133
+ align-self: stretch;
2134
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
2135
+ `;
2136
+ const Title = styled.div `
2137
+ display: flex;
2138
+ align-items: center;
2139
+ gap: 20px;
2140
+ `;
2141
+ const Info = styled.div `
2142
+ display: flex;
2143
+ flex-direction: column;
2144
+ align-items: flex-start;
2145
+ gap: 4px;
2146
+ flex: 1 0 0;
2147
+ `;
2148
+ const Breadcrumbs = styled.div `
2149
+ display: flex;
2150
+ align-items: center;
2151
+ gap: 4px;
2152
+ `;
2153
+ const Actions = styled.div `
2154
+ display: flex;
2155
+ align-items: center;
2156
+ gap: 8px;
2128
2157
  `;
2129
2158
  const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
2130
2159
  const { format = 'primary', menuItems = [], label = '', } = buttonMenu || {};
@@ -2144,13 +2173,13 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
2144
2173
  return (React.createElement(Button, Object.assign({}, buttonProps, { key: i, small: true }), label));
2145
2174
  }),
2146
2175
  menuItems.length ? (React.createElement(ButtonMenu, { format: format, label: label, menuItems: menuItems, small: true })) : null)) : null));
2147
- };
2148
-
2149
- const Wrapper$3 = styled.nav `
2150
- box-sizing: border-box;
2151
- display: flex;
2152
- align-items: center;
2153
- column-gap: 10px;
2176
+ };
2177
+
2178
+ const Wrapper$3 = styled.nav `
2179
+ box-sizing: border-box;
2180
+ display: flex;
2181
+ align-items: center;
2182
+ column-gap: 10px;
2154
2183
  `;
2155
2184
  const Pagination = (_a) => {
2156
2185
  var { currentPage = 1, onClick, pageCount = 0 } = _a, accessibleProps = __rest(_a, ["currentPage", "onClick", "pageCount"]);
@@ -2179,8 +2208,8 @@ const Pagination = (_a) => {
2179
2208
  value: `${p}`,
2180
2209
  })), value: `${currentPage}` }),
2181
2210
  React.createElement(Button, { disabled: is_last_page, icon: js.mdiChevronRight, onClick: handleNextClick, small: true })));
2182
- };
2183
-
2211
+ };
2212
+
2184
2213
  const Wrapper$2 = styled.label `
2185
2214
  border-radius: 4px;
2186
2215
  padding: 4px 0px 4px 6px;
@@ -2264,77 +2293,77 @@ const Radio = (_a) => {
2264
2293
  React.createElement(Label, null,
2265
2294
  children,
2266
2295
  tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)));
2267
- };
2268
-
2296
+ };
2297
+
2269
2298
  const RadioList = (_a) => {
2270
2299
  var { disabled, onChange, options, value } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "value"]);
2271
2300
  return (React.createElement(React.Fragment, null, options.map((option) => {
2272
2301
  const label = option.label || option.value;
2273
2302
  return (React.createElement(Radio, Object.assign({ checked: value === option.value, disabled: disabled, onChange: onChange, value: option.value }, accessibleProps), label));
2274
2303
  })));
2275
- };
2276
-
2277
- const StyledTable = styled.table `
2278
- width: 100%;
2279
- margin-top: 1px;
2280
- table-layout: ${props => props.$tableLayout || 'auto'};
2281
- border-collapse: collapse;
2282
- text-indent: 0px;
2283
- border-spacing: 0px;
2284
- border-color: none;
2285
- box-sizing: border-box;
2286
- `;
2287
- const Header = styled.th `
2288
- padding: 12px !important;
2289
- text-align: left;
2290
- font-weight: 500;
2291
- border-bottom: 1px solid #e5e5e5;
2292
- border-top: 1px solid #e5e5e5;
2293
- text-transform: uppercase;
2294
- font-size: 12px;
2295
- font-family: ${FontStyles.DEFAULT};
2296
- letter-spacing: 1px;
2297
- white-space: nowrap;
2298
- line-height: 1;
2299
- position: relative;
2300
- box-sizing: border-box;
2301
- width: ${props => props.$width || 'auto'};
2302
- cursor: ${props => (props.$isSortable ? 'pointer' : 'default')};
2303
- color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
2304
+ };
2305
+
2306
+ const StyledTable = styled.table `
2307
+ width: 100%;
2308
+ margin-top: 1px;
2309
+ table-layout: ${props => props.$tableLayout || 'auto'};
2310
+ border-collapse: collapse;
2311
+ text-indent: 0px;
2312
+ border-spacing: 0px;
2313
+ border-color: none;
2314
+ box-sizing: border-box;
2315
+ `;
2316
+ const Header = styled.th `
2317
+ padding: 12px !important;
2318
+ text-align: left;
2319
+ font-weight: 500;
2320
+ border-bottom: 1px solid #e5e5e5;
2321
+ border-top: 1px solid #e5e5e5;
2322
+ text-transform: uppercase;
2323
+ font-size: 12px;
2324
+ font-family: ${FontStyles.DEFAULT};
2325
+ letter-spacing: 1px;
2326
+ white-space: nowrap;
2327
+ line-height: 1;
2328
+ position: relative;
2329
+ box-sizing: border-box;
2330
+ width: ${props => props.$width || 'auto'};
2331
+ cursor: ${props => (props.$isSortable ? 'pointer' : 'default')};
2332
+ color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
2304
2333
  `;
2305
2334
  Header.defaultProps = { theme: EditableTheme };
2306
- const Row = styled.tr `
2307
- cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
2308
- transition: all 0.2s;
2309
- background-color: ${props => props.$bgColor};
2310
- box-sizing: border-box;
2311
- &:hover {
2312
- background-color: ${props => props.$isClickable ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.1)` : props.$bgColor};
2313
- }
2335
+ const Row = styled.tr `
2336
+ cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
2337
+ transition: all 0.2s;
2338
+ background-color: ${props => props.$bgColor};
2339
+ box-sizing: border-box;
2340
+ &:hover {
2341
+ background-color: ${props => props.$isClickable ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.1)` : props.$bgColor};
2342
+ }
2314
2343
  `;
2315
2344
  Row.defaultProps = { theme: EditableTheme };
2316
- const Column = styled.td `
2317
- padding: 16px 12px !important;
2318
- font-size: ${FontSizes.DEFAULT} !important;
2319
- font-weight: 400 !important;
2320
- font-family: ${FontStyles.DEFAULT};
2321
- border: none !important;
2322
- word-break: break-word;
2323
- line-height: 1.4em;
2324
- box-sizing: border-box;
2325
- text-align: ${props => props.$align || 'left'};
2326
- width: ${props => props.$width || 'auto'};
2327
- `;
2328
- const IconWrapper = styled.span `
2329
- position: absolute;
2330
- top: 50%;
2331
- transform: translateY(-50%);
2332
- margin-left: 2px;
2333
- `;
2334
- const StyledIcon$1 = styled(Icon) `
2335
- > path {
2336
- fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
2337
- }
2345
+ const Column = styled.td `
2346
+ padding: 16px 12px !important;
2347
+ font-size: ${FontSizes.DEFAULT} !important;
2348
+ font-weight: 400 !important;
2349
+ font-family: ${FontStyles.DEFAULT};
2350
+ border: none !important;
2351
+ word-break: break-word;
2352
+ line-height: 1.4em;
2353
+ box-sizing: border-box;
2354
+ text-align: ${props => props.$align || 'left'};
2355
+ width: ${props => props.$width || 'auto'};
2356
+ `;
2357
+ const IconWrapper = styled.span `
2358
+ position: absolute;
2359
+ top: 50%;
2360
+ transform: translateY(-50%);
2361
+ margin-left: 2px;
2362
+ `;
2363
+ const StyledIcon$1 = styled(Icon) `
2364
+ > path {
2365
+ fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
2366
+ }
2338
2367
  `;
2339
2368
  StyledIcon$1.defaultProps = { theme: EditableTheme };
2340
2369
  const Table = (_a) => {
@@ -2352,55 +2381,55 @@ const Table = (_a) => {
2352
2381
  return (React.createElement(Column, { "$align": columns[i].align, "$width": columns[i].width, key: i }, column.render ? column.render(row) : row[column.id] || 'N/A'));
2353
2382
  })));
2354
2383
  }))) : null));
2355
- };
2356
-
2357
- const Wrapper$1 = styled.div `
2358
- display: flex;
2359
- box-sizing: border-box;
2360
- align-items: flex-end;
2361
- border-top: 1px solid #e5e5e5;
2362
- border-bottom: 1px solid #e5e5e5;
2363
- flex-shrink: 0;
2364
- align-self: stretch;
2365
- padding: 0;
2366
- margin: 0;
2367
- `;
2368
- const Tab = styled.div `
2369
- display: flex;
2370
- align-items: center;
2371
- gap: 6px;
2372
- font-size: ${FontSizes.DEFAULT};
2373
- font-family: ${FontStyles.DEFAULT};
2374
- font-weight: ${props => (props.$isActive ? 500 : 400)};
2375
- color: ${props => (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)};
2376
- line-height: 1em;
2377
- padding: 16px 30px 12px;
2378
- margin: 0 0 -1px 0;
2379
- border-bottom-width: 4px;
2380
- border-bottom-style: solid;
2381
- border-bottom-color: ${props => props.$isActive ? props.theme.PRIMARY_COLOR.Hex : 'transparent'};
2382
- cursor: ${props => (props.$isActive ? 'default' : 'pointer')};
2383
- box-sizing: border-box;
2384
- &:hover {
2385
- color: ${props => (props.$isActive ? Colors.BLACK.Hex : props.theme.PRIMARY_COLOR.Hex)};
2386
- font-weight: 500;
2387
- }
2384
+ };
2385
+
2386
+ const Wrapper$1 = styled.div `
2387
+ display: flex;
2388
+ box-sizing: border-box;
2389
+ align-items: flex-end;
2390
+ border-top: 1px solid #e5e5e5;
2391
+ border-bottom: 1px solid #e5e5e5;
2392
+ flex-shrink: 0;
2393
+ align-self: stretch;
2394
+ padding: 0;
2395
+ margin: 0;
2396
+ `;
2397
+ const Tab = styled.div `
2398
+ display: flex;
2399
+ align-items: center;
2400
+ gap: 6px;
2401
+ font-size: ${FontSizes.DEFAULT};
2402
+ font-family: ${FontStyles.DEFAULT};
2403
+ font-weight: ${props => (props.$isActive ? 500 : 400)};
2404
+ color: ${props => (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)};
2405
+ line-height: 1em;
2406
+ padding: 16px 30px 12px;
2407
+ margin: 0 0 -1px 0;
2408
+ border-bottom-width: 4px;
2409
+ border-bottom-style: solid;
2410
+ border-bottom-color: ${props => props.$isActive ? props.theme.PRIMARY_COLOR.Hex : 'transparent'};
2411
+ cursor: ${props => (props.$isActive ? 'default' : 'pointer')};
2412
+ box-sizing: border-box;
2413
+ &:hover {
2414
+ color: ${props => (props.$isActive ? Colors.BLACK.Hex : props.theme.PRIMARY_COLOR.Hex)};
2415
+ font-weight: 500;
2416
+ }
2388
2417
  `;
2389
2418
  Tab.defaultProps = { theme: EditableTheme };
2390
- const Badge = styled.div `
2391
- display: flex;
2392
- width: 18px;
2393
- height: 18px;
2394
- justify-content: center;
2395
- align-items: center;
2396
- border-radius: 9px;
2397
- background: ${props => (props.$isError ? Colors.RED.Hex : props.theme.PRIMARY_COLOR.Hex)};
2398
- color: #fff;
2399
- font-family: ${FontStyles.DEFAULT};
2400
- font-size: 12px;
2401
- font-weight: 500;
2402
- line-height: 1;
2403
- letter-spacing: 1px;
2419
+ const Badge = styled.div `
2420
+ display: flex;
2421
+ width: 18px;
2422
+ height: 18px;
2423
+ justify-content: center;
2424
+ align-items: center;
2425
+ border-radius: 9px;
2426
+ background: ${props => (props.$isError ? Colors.RED.Hex : props.theme.PRIMARY_COLOR.Hex)};
2427
+ color: #fff;
2428
+ font-family: ${FontStyles.DEFAULT};
2429
+ font-size: 12px;
2430
+ font-weight: 500;
2431
+ line-height: 1;
2432
+ letter-spacing: 1px;
2404
2433
  `;
2405
2434
  Badge.defaultProps = { theme: EditableTheme };
2406
2435
  const Tabs = (_a) => {
@@ -2412,29 +2441,29 @@ const Tabs = (_a) => {
2412
2441
  label));
2413
2442
  })));
2414
2443
  };
2415
- Tabs.defaultProps = {};
2416
-
2417
- const Track = styled.div `
2418
- height: 24px;
2419
- border-radius: 12px;
2420
- background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
2421
- display: flex;
2422
- align-items: center;
2423
- cursor: pointer;
2424
- width: 40px;
2425
- padding: 2px;
2426
- box-sizing: border-box;
2427
- `;
2428
- const Handle = styled.div `
2429
- width: 20px;
2430
- height: 20px;
2431
- border-radius: 10px;
2432
- background: #ffffff;
2433
- margin-left: ${props => (props.$on ? 'auto' : '0px')};
2434
- display: flex;
2435
- align-items: center;
2436
- justify-content: center;
2437
- box-sizing: border-box;
2444
+ Tabs.defaultProps = {};
2445
+
2446
+ const Track = styled.div `
2447
+ height: 24px;
2448
+ border-radius: 12px;
2449
+ background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
2450
+ display: flex;
2451
+ align-items: center;
2452
+ cursor: pointer;
2453
+ width: 40px;
2454
+ padding: 2px;
2455
+ box-sizing: border-box;
2456
+ `;
2457
+ const Handle = styled.div `
2458
+ width: 20px;
2459
+ height: 20px;
2460
+ border-radius: 10px;
2461
+ background: #ffffff;
2462
+ margin-left: ${props => (props.$on ? 'auto' : '0px')};
2463
+ display: flex;
2464
+ align-items: center;
2465
+ justify-content: center;
2466
+ box-sizing: border-box;
2438
2467
  `;
2439
2468
  const Toggle = (_a) => {
2440
2469
  var { onClick, on } = _a, accessibleProps = __rest(_a, ["onClick", "on"]);
@@ -2443,32 +2472,32 @@ const Toggle = (_a) => {
2443
2472
  React.createElement(Handle, { "$on": on },
2444
2473
  React.createElement(Icon, { color: on ? Colors.GREEN.Hex : Colors.BLACK.Hex, path: on ? js.mdiCheck : js.mdiClose, size: '16px' }))));
2445
2474
  };
2446
- Toggle.defaultProps = {};
2447
-
2448
- const Container = styled.div `
2449
- width: 100%;
2450
- padding: 40px auto;
2451
- gap: 20px;
2452
- display: flex;
2453
- flex-direction: column;
2454
- justify-items: center;
2455
- align-items: center;
2456
- `;
2457
- const Wrapper = styled.div `
2458
- gap: 10px;
2459
- display: flex;
2460
- flex-direction: column;
2461
- justify-items: center;
2462
- align-items: center;
2463
- `;
2464
- const StyledIcon = styled.div `
2465
- display: flex;
2466
- align-items: center;
2467
- justify-content: center;
2468
- width: 80px;
2469
- height: 80px;
2470
- border-radius: 40px;
2471
- background: #f5f5f5;
2475
+ Toggle.defaultProps = {};
2476
+
2477
+ const Container = styled.div `
2478
+ width: 100%;
2479
+ padding: 40px auto;
2480
+ gap: 20px;
2481
+ display: flex;
2482
+ flex-direction: column;
2483
+ justify-items: center;
2484
+ align-items: center;
2485
+ `;
2486
+ const Wrapper = styled.div `
2487
+ gap: 10px;
2488
+ display: flex;
2489
+ flex-direction: column;
2490
+ justify-items: center;
2491
+ align-items: center;
2492
+ `;
2493
+ const StyledIcon = styled.div `
2494
+ display: flex;
2495
+ align-items: center;
2496
+ justify-content: center;
2497
+ width: 80px;
2498
+ height: 80px;
2499
+ border-radius: 40px;
2500
+ background: #f5f5f5;
2472
2501
  `;
2473
2502
  const ZeroState = (_a) => {
2474
2503
  var { icon, title, description, action } = _a, accessibleProps = __rest(_a, ["icon", "title", "description", "action"]);
@@ -2479,53 +2508,53 @@ const ZeroState = (_a) => {
2479
2508
  React.createElement(Heading, { children: title, type: 'tertiary' }),
2480
2509
  description && React.createElement(Copy, { align: 'center', children: description, color: 'GRAY', type: 'default' })),
2481
2510
  action && (React.createElement(Button, { children: action === null || action === void 0 ? void 0 : action.children, icon: action === null || action === void 0 ? void 0 : action.icon, onClick: action === null || action === void 0 ? void 0 : action.onClick }))));
2482
- };
2483
-
2484
- exports.Accordion = Accordion;
2485
- exports.ActionDialog = ActionDialog;
2486
- exports.Alert = Alert;
2487
- exports.AppHeader = AppHeader;
2488
- exports.AppMenu = AppMenu;
2489
- exports.BulkActionBar = BulkActionBar;
2490
- exports.Button = Button;
2491
- exports.ButtonMenu = ButtonMenu;
2492
- exports.Checkbox = Checkbox;
2493
- exports.Checklist = Checklist;
2494
- exports.Colors = Colors;
2495
- exports.Copy = Copy;
2496
- exports.DatePicker = DatePicker;
2497
- exports.Drawer = Drawer;
2498
- exports.EditableTheme = EditableTheme;
2499
- exports.Field = Field;
2500
- exports.FieldGroup = FieldGroup;
2501
- exports.FileUpload = FileUpload;
2502
- exports.FontSizes = FontSizes;
2503
- exports.FontStyles = FontStyles;
2504
- exports.Heading = Heading;
2505
- exports.Input = Input$1;
2506
- exports.Link = Link;
2507
- exports.Loader = Loader;
2508
- exports.Logo = Logo;
2509
- exports.Modal = Modal;
2510
- exports.MoreMenu = MoreMenu;
2511
- exports.MultiSelect = MultiSelect;
2512
- exports.PageHeader = PageHeader;
2513
- exports.Pagination = Pagination;
2514
- exports.ProgressBar = ProgressBar;
2515
- exports.Radio = Radio;
2516
- exports.RadioList = RadioList;
2517
- exports.Select = Select;
2518
- exports.Table = Table;
2519
- exports.Tabs = Tabs;
2520
- exports.Tag = Tag;
2521
- exports.Toggle = Toggle;
2522
- exports.Tooltip = Tooltip;
2523
- exports.ZeroState = ZeroState;
2524
- exports.formatAsPhone = formatAsPhone;
2525
- exports.formatAsSsn = formatAsSsn;
2526
- exports.getAgesFromDob = getAgesFromDob;
2527
- exports.getDaysForMonth = getDaysForMonth;
2528
- exports.getYears = getYears;
2529
- exports.validateEmail = validateEmail;
2530
- exports.validatePhone = validatePhone;
2531
- //# sourceMappingURL=index.js.map
2511
+ };
2512
+
2513
+ exports.Accordion = Accordion;
2514
+ exports.ActionDialog = ActionDialog;
2515
+ exports.Alert = Alert;
2516
+ exports.AppHeader = AppHeader;
2517
+ exports.AppMenu = AppMenu;
2518
+ exports.BulkActionBar = BulkActionBar;
2519
+ exports.Button = Button;
2520
+ exports.ButtonMenu = ButtonMenu;
2521
+ exports.Checkbox = Checkbox;
2522
+ exports.Checklist = Checklist;
2523
+ exports.Colors = Colors;
2524
+ exports.Copy = Copy;
2525
+ exports.DatePicker = DatePicker;
2526
+ exports.Drawer = Drawer;
2527
+ exports.EditableTheme = EditableTheme;
2528
+ exports.Field = Field;
2529
+ exports.FieldGroup = FieldGroup;
2530
+ exports.FileUpload = FileUpload;
2531
+ exports.FontSizes = FontSizes;
2532
+ exports.FontStyles = FontStyles;
2533
+ exports.Heading = Heading;
2534
+ exports.Input = Input$1;
2535
+ exports.Link = Link;
2536
+ exports.Loader = Loader;
2537
+ exports.Logo = Logo;
2538
+ exports.Modal = Modal;
2539
+ exports.MoreMenu = MoreMenu;
2540
+ exports.MultiSelect = MultiSelect;
2541
+ exports.PageHeader = PageHeader;
2542
+ exports.Pagination = Pagination;
2543
+ exports.ProgressBar = ProgressBar;
2544
+ exports.Radio = Radio;
2545
+ exports.RadioList = RadioList;
2546
+ exports.Select = Select;
2547
+ exports.Table = Table;
2548
+ exports.Tabs = Tabs;
2549
+ exports.Tag = Tag;
2550
+ exports.Toggle = Toggle;
2551
+ exports.Tooltip = Tooltip;
2552
+ exports.ZeroState = ZeroState;
2553
+ exports.formatAsPhone = formatAsPhone;
2554
+ exports.formatAsSsn = formatAsSsn;
2555
+ exports.getAgesFromDob = getAgesFromDob;
2556
+ exports.getDaysForMonth = getDaysForMonth;
2557
+ exports.getYears = getYears;
2558
+ exports.validateEmail = validateEmail;
2559
+ exports.validatePhone = validatePhone;
2560
+ //# sourceMappingURL=index.js.map