@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/esm/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import React, { useContext, useState, useEffect, useRef } from 'react';
2
- import styled, { ThemeContext, keyframes } from 'styled-components';
3
- import Icon, { Icon as Icon$1 } from '@mdi/react';
4
- import { mdiChevronUp, mdiChevronDown, mdiLoading, mdiInformationOutline, mdiAlertOctagonOutline, mdiAlertOutline, mdiCheckboxMarkedCircleOutline, mdiClose, mdiChevronRight, mdiChevronLeft, mdiDotsHorizontal, mdiMinusCircle, mdiFolderPlusOutline, mdiCheck } from '@mdi/js';
5
- import dayjs from 'dayjs';
6
- import Numeral from 'numeral';
7
- import Moment from 'moment';
8
-
1
+ import React, { useContext, useState, useEffect, useRef } from 'react';
2
+ import styled, { ThemeContext, keyframes } from 'styled-components';
3
+ import Icon, { Icon as Icon$1 } from '@mdi/react';
4
+ import { mdiChevronUp, mdiChevronDown, mdiLoading, mdiInformationOutline, mdiAlertOctagonOutline, mdiAlertOutline, mdiCheckboxMarkedCircleOutline, mdiClose, mdiChevronRight, mdiChevronLeft, mdiDotsHorizontal, mdiMinusCircle, mdiFolderPlusOutline, mdiCheck } from '@mdi/js';
5
+ import dayjs from 'dayjs';
6
+ import Numeral from 'numeral';
7
+ import Moment from 'moment';
8
+
9
9
  /******************************************************************************
10
10
  Copyright (c) Microsoft Corporation.
11
11
 
@@ -19,22 +19,22 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
19
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
20
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
21
  PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */
23
- /* global Reflect, Promise, SuppressedError, Symbol */
24
-
25
- function __rest(s, e) {
26
- var t = {};
27
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
28
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
29
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
30
- }
31
- return t;
32
- }
33
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
34
- var e = new Error(message);
35
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
36
- };
37
-
22
+ ***************************************************************************** */
23
+ /* global Reflect, Promise, SuppressedError, Symbol */
24
+
25
+ function __rest(s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
28
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
29
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
30
+ }
31
+ return t;
32
+ }
33
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
34
+ var e = new Error(message);
35
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
36
+ };
37
+
38
38
  const Colors = {
39
39
  PRIMARY: {
40
40
  Hex: '#0193D7',
@@ -83,26 +83,26 @@ const FontSizes = {
83
83
  };
84
84
  const EditableTheme = {
85
85
  PRIMARY_COLOR: Colors.PRIMARY,
86
- };
87
-
88
- const Header$3 = styled.div `
89
- display: flex;
90
- align-items: center;
91
- justify-content: space-between;
92
- box-sizing: border-box;
93
- background: #f5f5f5;
94
- border: 1px solid #e5e5e5;
95
- padding: 14px 20px;
96
- height: 50px;
97
- cursor: pointer;
98
- `;
99
- const Title$2 = styled.div `
100
- font-size: ${FontSizes.DEFAULT};
101
- font-weight: 400;
102
- color: ${Colors.BLACK.Hex};
103
- line-height: 1.6em;
104
- font-family: ${FontStyles.DEFAULT};
105
- box-sizing: border-box;
86
+ };
87
+
88
+ const Header$3 = styled.div `
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: space-between;
92
+ box-sizing: border-box;
93
+ background: #f5f5f5;
94
+ border: 1px solid #e5e5e5;
95
+ padding: 14px 20px;
96
+ height: 50px;
97
+ cursor: pointer;
98
+ `;
99
+ const Title$2 = styled.div `
100
+ font-size: ${FontSizes.DEFAULT};
101
+ font-weight: 400;
102
+ color: ${Colors.BLACK.Hex};
103
+ line-height: 1.6em;
104
+ font-family: ${FontStyles.DEFAULT};
105
+ box-sizing: border-box;
106
106
  `;
107
107
  const Accordion = (_a) => {
108
108
  var { title, children, open, onClick } = _a, accessibleProps = __rest(_a, ["title", "children", "open", "onClick"]);
@@ -111,13 +111,13 @@ const Accordion = (_a) => {
111
111
  React.createElement(Title$2, null, title),
112
112
  React.createElement(Icon, { color: Colors.BLACK.Hex, path: open ? mdiChevronUp : mdiChevronDown, size: '24px' })),
113
113
  open ? children : null));
114
- };
115
-
116
- const StyledButton = styled.button `
117
- height: ${props => (props.$small ? '30px' : '40px')};
118
- line-height: 1em;
119
- border-radius: ${props => (props.$small ? '15px' : '20px')};
120
- margin: ${props => props.$margin || '0px'};
114
+ };
115
+
116
+ const StyledButton = styled.button `
117
+ height: ${props => (props.$small ? '30px' : '40px')};
118
+ line-height: 1em;
119
+ border-radius: ${props => (props.$small ? '15px' : '20px')};
120
+ margin: ${props => props.$margin || '0px'};
121
121
  padding: ${props => {
122
122
  if (props.$hasChildren) {
123
123
  if (props.$small) {
@@ -128,9 +128,9 @@ const StyledButton = styled.button `
128
128
  }
129
129
  }
130
130
  return '0px';
131
- }};
132
- outline: none;
133
- background: ${props => props.$bg_color || props.theme.PRIMARY_COLOR.Hex};
131
+ }};
132
+ outline: none;
133
+ background: ${props => props.$bg_color || props.theme.PRIMARY_COLOR.Hex};
134
134
  width: ${props => {
135
135
  if (props.$hasChildren) {
136
136
  return 'auto';
@@ -139,53 +139,53 @@ const StyledButton = styled.button `
139
139
  return '30px';
140
140
  }
141
141
  return '40px';
142
- }};
143
- cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
144
- display: flex;
145
- align-items: center;
146
- justify-content: center;
147
- opacity: ${props => (props.$disabled ? 0.6 : 0.9)};
148
- border-width: 1px;
149
- border-style: solid;
150
- border-color: ${props => props.$border_color || props.theme.PRIMARY_COLOR.Hex};
151
- box-sizing: border-box;
152
-
153
- &:active,
154
- &:focus,
155
- &:hover {
156
- opacity: ${props => (props.$disabled ? 0.6 : 1)};
157
- }
158
- `;
159
- const Label$5 = styled.span `
160
- color: ${props => props.$content_color || '#fff'};
161
- font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
162
- font-family: ${FontStyles.DEFAULT};
163
- font-weight: 500;
164
- line-height: 1;
165
- `;
166
- const StyledIcon$6 = styled.span `
167
- margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
168
- margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
169
- display: flex;
170
- align-items: center;
171
- box-sizing: border-box;
172
- `;
173
- const Badge$1 = styled.span `
174
- width: ${props => (props.$small ? '20px' : '24px')};
175
- height: ${props => (props.$small ? '20px' : '24px')};
176
- line-height: 1;
177
- display: flex;
178
- align-items: center;
179
- justify-content: center;
180
- border-radius: 100%;
181
- background-color: ${props => props.$bg_color || '#fff'};
182
- color: ${props => props.$content_color || props.theme.PRIMARY_COLOR.Hex};
183
- font-size: ${props => (props.$small ? '10px' : '12px')};
184
- font-weight: 600;
185
- font-family: ${FontStyles.DEFAULT};
186
- letter-spacing: -1px;
187
- margin-left: ${props => (props.$small ? '5px' : '10px')};
188
- margin-right: ${props => (props.$small ? '-5px' : '-10px')};
142
+ }};
143
+ cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
144
+ display: flex;
145
+ align-items: center;
146
+ justify-content: center;
147
+ opacity: ${props => (props.$disabled ? 0.6 : 0.9)};
148
+ border-width: 1px;
149
+ border-style: solid;
150
+ border-color: ${props => props.$border_color || props.theme.PRIMARY_COLOR.Hex};
151
+ box-sizing: border-box;
152
+
153
+ &:active,
154
+ &:focus,
155
+ &:hover {
156
+ opacity: ${props => (props.$disabled ? 0.6 : 1)};
157
+ }
158
+ `;
159
+ const Label$5 = styled.span `
160
+ color: ${props => props.$content_color || '#fff'};
161
+ font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
162
+ font-family: ${FontStyles.DEFAULT};
163
+ font-weight: 500;
164
+ line-height: 1;
165
+ `;
166
+ const StyledIcon$6 = styled.span `
167
+ margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
168
+ margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
169
+ display: flex;
170
+ align-items: center;
171
+ box-sizing: border-box;
172
+ `;
173
+ const Badge$1 = styled.span `
174
+ width: ${props => (props.$small ? '20px' : '24px')};
175
+ height: ${props => (props.$small ? '20px' : '24px')};
176
+ line-height: 1;
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: center;
180
+ border-radius: 100%;
181
+ background-color: ${props => props.$bg_color || '#fff'};
182
+ color: ${props => props.$content_color || props.theme.PRIMARY_COLOR.Hex};
183
+ font-size: ${props => (props.$small ? '10px' : '12px')};
184
+ font-weight: 600;
185
+ font-family: ${FontStyles.DEFAULT};
186
+ letter-spacing: -1px;
187
+ margin-left: ${props => (props.$small ? '5px' : '10px')};
188
+ margin-right: ${props => (props.$small ? '-5px' : '-10px')};
189
189
  `;
190
190
  const Button = (_a) => {
191
191
  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"]);
@@ -227,29 +227,29 @@ const Button = (_a) => {
227
227
  icon && !badge ? (React.createElement(StyledIcon$6, { "$hasChildren": !!has_children },
228
228
  React.createElement(Icon, { color: format ? format_styles.content_color : '#fff', path: loading ? mdiLoading : icon, size: small ? '20px' : '24px', spin: loading }))) : null,
229
229
  badge && !icon ? (React.createElement(Badge$1, { "$bg_color": format_styles.badge_bg_color, "$content_color": format_styles.badge_content_color, "$small": small }, badge)) : null));
230
- };
231
-
232
- const StyledComponent = styled.p `
233
- color: ${props => Colors[props.$color || 'BLACK'].Hex};
234
- font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
235
- line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
236
- letter-spacing: ${props => (props.$type === 'small' ? '1px' : '0px')};
237
- font-weight: ${props => (props.$type === 'bold' ? '500' : '400')};
238
- font-style: ${props => (props.$type === 'italic' ? 'italic' : 'normal')};
239
- text-decoration: ${props => ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none'};
240
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
241
- margin: ${props => props.$margin || '0px'};
242
- padding: ${props => props.$padding || '0px'};
243
- text-align: ${props => props.$align || 'left'};
244
- box-sizing: border-box;
230
+ };
231
+
232
+ const StyledComponent = styled.p `
233
+ color: ${props => Colors[props.$color || 'BLACK'].Hex};
234
+ font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
235
+ line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
236
+ letter-spacing: ${props => (props.$type === 'small' ? '1px' : '0px')};
237
+ font-weight: ${props => (props.$type === 'bold' ? '500' : '400')};
238
+ font-style: ${props => (props.$type === 'italic' ? 'italic' : 'normal')};
239
+ text-decoration: ${props => ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none'};
240
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
241
+ margin: ${props => props.$margin || '0px'};
242
+ padding: ${props => props.$padding || '0px'};
243
+ text-align: ${props => props.$align || 'left'};
244
+ box-sizing: border-box;
245
245
  `;
246
246
  const Copy = ({ children, align = '', margin = '', padding = '', type = 'default', color = 'BLACK', }) => {
247
247
  return (React.createElement(StyledComponent, { "$align": align, "$color": color, "$margin": margin, "$padding": padding, "$type": type }, children));
248
248
  };
249
249
  Copy.defaultProps = {
250
250
  type: 'default',
251
- };
252
-
251
+ };
252
+
253
253
  const H1 = styled.h1 `
254
254
  color: ${Colors.BLACK.Hex};
255
255
  font-size: 30px;
@@ -297,8 +297,8 @@ const Heading = (_a) => {
297
297
  Heading.defaultProps = {
298
298
  bold: false,
299
299
  type: 'primary',
300
- };
301
-
300
+ };
301
+
302
302
  const Wrapper$i = styled.div `
303
303
  position: fixed;
304
304
  top: 0;
@@ -331,29 +331,29 @@ const ActionDialog = (_a) => {
331
331
  tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary' }))) : null,
332
332
  secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' }))) : null,
333
333
  primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' }))) : null)) : null)));
334
- };
335
-
336
- const Wrapper$h = styled.div `
337
- border: 1px solid #f1f1f1;
338
- border-radius: 4px;
339
- border-left-width: 4px;
340
- box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);
341
- display: flex;
342
- align-items: flex-start;
343
- gap: ${({ $small }) => ($small ? '8px' : '20px')};
344
- padding: ${({ $small }) => ($small ? '11px' : '20px')};
345
- box-sizing: border-box;
346
- `;
347
- const StyledIcon$5 = styled(Icon) `
348
- flex-shrink: 0;
349
- `;
350
- const Action$1 = styled.div `
351
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
352
- font-size: ${FontSizes.DEFAULT};
353
- font-family: ${FontStyles.DEFAULT};
354
- font-weight: 500;
355
- cursor: pointer;
356
- margin-top: 6px;
334
+ };
335
+
336
+ const Wrapper$h = styled.div `
337
+ border: 1px solid #f1f1f1;
338
+ border-radius: 4px;
339
+ border-left-width: 4px;
340
+ box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);
341
+ display: flex;
342
+ align-items: flex-start;
343
+ gap: ${({ $small }) => ($small ? '8px' : '20px')};
344
+ padding: ${({ $small }) => ($small ? '11px' : '20px')};
345
+ box-sizing: border-box;
346
+ `;
347
+ const StyledIcon$5 = styled(Icon) `
348
+ flex-shrink: 0;
349
+ `;
350
+ const Action$1 = styled.div `
351
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
352
+ font-size: ${FontSizes.DEFAULT};
353
+ font-family: ${FontStyles.DEFAULT};
354
+ font-weight: 500;
355
+ cursor: pointer;
356
+ margin-top: 6px;
357
357
  `;
358
358
  Action$1.defaultProps = { theme: EditableTheme };
359
359
  const Alert = (_a) => {
@@ -383,8 +383,8 @@ const Alert = (_a) => {
383
383
  title && !small ? (React.createElement(Heading, { bold: true, margin: '2px 0 0 0', type: 'tertiary' }, title)) : null,
384
384
  description ? (React.createElement(Copy, { margin: small ? '' : '6px 0 0 0 !important' }, description)) : null,
385
385
  action && !small ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
386
- };
387
-
386
+ };
387
+
388
388
  const colorMapping = {
389
389
  black: {
390
390
  fill_1: '#000000',
@@ -425,61 +425,61 @@ const Logo = (_a) => {
425
425
  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 }),
426
426
  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 })));
427
427
  }
428
- };
429
-
430
- const Container$3 = styled.header `
431
- width: 100%;
432
- display: flex;
433
- padding: 20px;
434
- box-sizing: border-box;
435
- border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
436
- background: '#fff';
437
- justify-content: space-between;
438
- `;
439
- const LogoWrapper = styled.div `
440
- display: flex;
441
- align-items: center;
442
- `;
443
- const Image = styled.img `
444
- height: 30px !important;
445
- width: auto !important;
446
- `;
447
- const Buttons = styled.div `
448
- display: flex;
449
- flex-direction: row;
450
- column-gap: 10px;
451
- flex-direction: reverse;
428
+ };
429
+
430
+ const Container$3 = styled.header `
431
+ width: 100%;
432
+ display: flex;
433
+ padding: 20px;
434
+ box-sizing: border-box;
435
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
436
+ background: '#fff';
437
+ justify-content: space-between;
438
+ `;
439
+ const LogoWrapper = styled.div `
440
+ display: flex;
441
+ align-items: center;
442
+ `;
443
+ const Image = styled.img `
444
+ height: 30px !important;
445
+ width: auto !important;
446
+ `;
447
+ const Buttons = styled.div `
448
+ display: flex;
449
+ flex-direction: row;
450
+ column-gap: 10px;
451
+ flex-direction: reverse;
452
452
  `;
453
453
  const AppHeader = ({ logoUrl, buttons = [] }) => {
454
454
  return (React.createElement(Container$3, null,
455
455
  React.createElement(LogoWrapper, null, logoUrl ? React.createElement(Image, { src: logoUrl }) : React.createElement(Logo, { height: '30px' })),
456
456
  React.createElement(Buttons, null, buttons.map((b, i) => (React.createElement(Button, Object.assign({ key: i }, b)))))));
457
- };
458
-
459
- const Wrapper$g = styled.div `
460
- display: inline-block;
461
- border-radius: 4px;
462
- padding: 4px 6px;
463
- background: ${props => Colors[props.$color].Hex};
464
- color: #ffffff;
465
- box-sizing: border-box;
466
- cursor: ${props => (props.$removable ? 'pointer' : 'default')};
467
- `;
468
- const Content$3 = styled.div `
469
- display: flex;
470
- align-items: center;
471
- `;
472
- const Label$4 = styled.div `
473
- color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
474
- font-size: ${FontSizes.SMALL};
475
- font-weight: 500;
476
- font-family: ${FontStyles.DEFAULT};
477
- line-height: 1.2em;
478
- `;
479
- const Remove$1 = styled.div `
480
- margin-left: 10px;
481
- display: flex;
482
- align-items: center;
457
+ };
458
+
459
+ const Wrapper$g = styled.div `
460
+ display: inline-block;
461
+ border-radius: 4px;
462
+ padding: 4px 6px;
463
+ background: ${props => Colors[props.$color].Hex};
464
+ color: #ffffff;
465
+ box-sizing: border-box;
466
+ cursor: ${props => (props.$removable ? 'pointer' : 'default')};
467
+ `;
468
+ const Content$3 = styled.div `
469
+ display: flex;
470
+ align-items: center;
471
+ `;
472
+ const Label$4 = styled.div `
473
+ color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
474
+ font-size: ${FontSizes.SMALL};
475
+ font-weight: 500;
476
+ font-family: ${FontStyles.DEFAULT};
477
+ line-height: 1.2em;
478
+ `;
479
+ const Remove$1 = styled.div `
480
+ margin-left: 10px;
481
+ display: flex;
482
+ align-items: center;
483
483
  `;
484
484
  const Tag = (_a) => {
485
485
  var { children, color = 'PRIMARY', removable, onClick } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
@@ -488,91 +488,91 @@ const Tag = (_a) => {
488
488
  React.createElement(Label$4, { "$color": color }, children),
489
489
  removable ? (React.createElement(Remove$1, null,
490
490
  React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: mdiClose, size: '15px' }))) : null)));
491
- };
492
-
493
- const SidebarContainer = styled.div `
494
- border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
495
- display: flex;
496
- flex-direction: column;
497
- height: 100%;
498
- padding: 12px 0px;
499
- width: ${props => (props.$isOpen ? props.$width : '60px')};
500
- `;
501
- const MenuWrapper = styled.div `
502
- display: flex;
503
- align-items: center;
504
- border-left-width: 4px;
505
- border-left-style: solid;
506
- border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
507
- cursor: pointer;
508
- height: 40px;
509
-
510
- &:hover > div {
511
- color: ${props => props.$color.Hex};
512
- }
513
-
514
- &:hover > svg > path {
515
- fill: ${Colors.BLACK.Hex} !important;
516
- }
517
- `;
518
- const MenuIcon = styled(Icon) `
519
- width: 20px;
520
- height: 20px;
521
- margin: 0px 16px;
522
- flex-shrink: 0;
523
-
524
- > path {
525
- fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
526
- }
527
- `;
528
- const MenuLabel = styled.div `
529
- color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
530
- flex: 1;
531
- font-size: 12px;
532
- font-style: normal;
533
- font-weight: 600;
534
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
535
- line-height: 16px;
536
- padding: 12px 0px;
537
- letter-spacing: 1px;
538
- `;
539
- const SubMenu = styled.div `
540
- overflow-y: auto;
541
- padding-left: 44px;
542
- padding-right: 20px;
543
- padding-bottom: 10px;
544
- `;
545
- const SubMenuItem = styled.a `
546
- display: block;
547
- padding: 8px 12px;
548
- border-radius: 8px;
549
- font-size: 13px;
550
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
551
- line-height: 20px;
552
- text-decoration: none;
553
- font-weight: ${({ $active }) => ($active ? '500' : '400')};
554
- color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
555
- background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
556
- cursor: pointer;
557
-
558
- &:hover {
559
- color: ${props => props.$color.Hex};
560
- font-weight: 500;
561
- }
562
- `;
563
- const Footer = styled.div `
564
- padding: 20px 14px 0px;
565
- display: flex;
566
- align-items: center;
567
- `;
568
- const FooterInfo = styled.div `
569
- display: flex;
570
- flex-direction: column;
571
- flex: 1;
572
- align-items: flex-start;
573
- `;
574
- const SidebarMenuContainer = styled.div `
575
- flex-grow: 1;
491
+ };
492
+
493
+ const SidebarContainer = styled.div `
494
+ border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
495
+ display: flex;
496
+ flex-direction: column;
497
+ height: 100%;
498
+ padding: 12px 0px;
499
+ width: ${props => (props.$isOpen ? props.$width : '60px')};
500
+ `;
501
+ const MenuWrapper = styled.div `
502
+ display: flex;
503
+ align-items: center;
504
+ border-left-width: 4px;
505
+ border-left-style: solid;
506
+ border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
507
+ cursor: pointer;
508
+ height: 40px;
509
+
510
+ &:hover > div {
511
+ color: ${props => props.$color.Hex};
512
+ }
513
+
514
+ &:hover > svg > path {
515
+ fill: ${Colors.BLACK.Hex} !important;
516
+ }
517
+ `;
518
+ const MenuIcon = styled(Icon) `
519
+ width: 20px;
520
+ height: 20px;
521
+ margin: 0px 16px;
522
+ flex-shrink: 0;
523
+
524
+ > path {
525
+ fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
526
+ }
527
+ `;
528
+ const MenuLabel = styled.div `
529
+ color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
530
+ flex: 1;
531
+ font-size: 12px;
532
+ font-style: normal;
533
+ font-weight: 600;
534
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
535
+ line-height: 16px;
536
+ padding: 12px 0px;
537
+ letter-spacing: 1px;
538
+ `;
539
+ const SubMenu = styled.div `
540
+ overflow-y: auto;
541
+ padding-left: 44px;
542
+ padding-right: 20px;
543
+ padding-bottom: 10px;
544
+ `;
545
+ const SubMenuItem = styled.a `
546
+ display: block;
547
+ padding: 8px 12px;
548
+ border-radius: 8px;
549
+ font-size: 13px;
550
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
551
+ line-height: 20px;
552
+ text-decoration: none;
553
+ font-weight: ${({ $active }) => ($active ? '500' : '400')};
554
+ color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
555
+ background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
556
+ cursor: pointer;
557
+
558
+ &:hover {
559
+ color: ${props => props.$color.Hex};
560
+ font-weight: 500;
561
+ }
562
+ `;
563
+ const Footer = styled.div `
564
+ padding: 20px 14px 0px;
565
+ display: flex;
566
+ align-items: center;
567
+ `;
568
+ const FooterInfo = styled.div `
569
+ display: flex;
570
+ flex-direction: column;
571
+ flex: 1;
572
+ align-items: flex-start;
573
+ `;
574
+ const SidebarMenuContainer = styled.div `
575
+ flex-grow: 1;
576
576
  `;
577
577
  const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px' }) => {
578
578
  const theme = useContext(ThemeContext) || EditableTheme;
@@ -596,75 +596,75 @@ const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px' }) => {
596
596
  e.preventDefault();
597
597
  toggleCollapse(!collapsed);
598
598
  }, small: true }))));
599
- };
600
-
601
- const Wrapper$f = styled.div `
602
- border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
603
- border-radius: 8px;
604
- box-sizing: border-box;
605
- display: flex;
606
- align-items: center;
607
- justify-content: space-between;
608
- padding: 16px 20px;
599
+ };
600
+
601
+ const Wrapper$f = styled.div `
602
+ border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
603
+ border-radius: 8px;
604
+ box-sizing: border-box;
605
+ display: flex;
606
+ align-items: center;
607
+ justify-content: space-between;
608
+ padding: 16px 20px;
609
609
  `;
610
610
  Wrapper$f.defaultProps = { theme: EditableTheme };
611
- const Left = styled.div `
612
- box-sizing: border-box;
613
- display: flex;
614
- align-items: center;
615
- justify-content: space-between;
616
- flex-shrink: 0;
617
- `;
618
- const Info$1 = styled.div `
619
- box-sizing: border-box;
620
- display: flex;
621
- align-items: center;
622
- margin-right: 30px;
623
- `;
624
- const Selected = styled.span `
625
- font-size: 14px;
626
- font-weight: 400;
627
- font-family: ${FontStyles.DEFAULT};
628
- color: ${Colors.BLACK.Hex};
629
- line-height: 1;
630
- `;
631
- const Clear = styled.span `
632
- font-size: 14px;
633
- font-weight: 400;
634
- font-family: ${FontStyles.DEFAULT};
635
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
636
- line-height: 1;
637
- cursor: pointer;
638
- padding-left: 10px;
639
- margin-left: 10px;
640
- border-left: 1px solid #ccc;
611
+ const Left = styled.div `
612
+ box-sizing: border-box;
613
+ display: flex;
614
+ align-items: center;
615
+ justify-content: space-between;
616
+ flex-shrink: 0;
617
+ `;
618
+ const Info$1 = styled.div `
619
+ box-sizing: border-box;
620
+ display: flex;
621
+ align-items: center;
622
+ margin-right: 30px;
623
+ `;
624
+ const Selected = styled.span `
625
+ font-size: 14px;
626
+ font-weight: 400;
627
+ font-family: ${FontStyles.DEFAULT};
628
+ color: ${Colors.BLACK.Hex};
629
+ line-height: 1;
630
+ `;
631
+ const Clear = styled.span `
632
+ font-size: 14px;
633
+ font-weight: 400;
634
+ font-family: ${FontStyles.DEFAULT};
635
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
636
+ line-height: 1;
637
+ cursor: pointer;
638
+ padding-left: 10px;
639
+ margin-left: 10px;
640
+ border-left: 1px solid #ccc;
641
641
  `;
642
642
  Clear.defaultProps = { theme: EditableTheme };
643
- const Actions$1 = styled.div `
644
- box-sizing: border-box;
645
- display: flex;
646
- align-items: center;
647
- column-gap: 10px;
648
- `;
649
- const Error$1 = styled.div `
650
- box-sizing: border-box;
651
- display: flex;
652
- align-items: center;
653
- background: rgba(${Colors.RED.Rgb}, 0.1);
654
- border-radius: 4px;
655
- padding: 6px 8px;
656
- text-overflow: ellipsis;
657
- white-space: nowrap;
658
- overflow: hidden;
659
- margin-left: 30px;
660
- `;
661
- const ErrorMsg = styled.span `
662
- font-size: 14px;
663
- font-weight: 500;
664
- font-family: ${FontStyles.DEFAULT};
665
- line-height: 1em;
666
- color: ${Colors.RED.Hex};
667
- margin-left: 8px;
643
+ const Actions$1 = styled.div `
644
+ box-sizing: border-box;
645
+ display: flex;
646
+ align-items: center;
647
+ column-gap: 10px;
648
+ `;
649
+ const Error$1 = styled.div `
650
+ box-sizing: border-box;
651
+ display: flex;
652
+ align-items: center;
653
+ background: rgba(${Colors.RED.Rgb}, 0.1);
654
+ border-radius: 4px;
655
+ padding: 6px 8px;
656
+ text-overflow: ellipsis;
657
+ white-space: nowrap;
658
+ overflow: hidden;
659
+ margin-left: 30px;
660
+ `;
661
+ const ErrorMsg = styled.span `
662
+ font-size: 14px;
663
+ font-weight: 500;
664
+ font-family: ${FontStyles.DEFAULT};
665
+ line-height: 1em;
666
+ color: ${Colors.RED.Hex};
667
+ margin-left: 8px;
668
668
  `;
669
669
  const BulkActionBar = (_a) => {
670
670
  var { actions = [], errorMsg, onClear, selectedCount = 0 } = _a, accessibleProps = __rest(_a, ["actions", "errorMsg", "onClear", "selectedCount"]);
@@ -679,46 +679,46 @@ const BulkActionBar = (_a) => {
679
679
  errorMsg ? (React.createElement(Error$1, null,
680
680
  React.createElement(Icon, { color: Colors.RED.Hex, path: mdiInformationOutline, size: '20px' }),
681
681
  React.createElement(ErrorMsg, null, errorMsg))) : null));
682
- };
683
-
684
- const Wrapper$e = styled.div `
685
- background: #fff;
686
- border-radius: 8px;
687
- box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
688
- display: flex;
689
- flex-direction: column;
690
- gap: 4px;
691
- max-height: ${props => props.$maxHeight || '312px'};
692
- padding: 10px;
693
- width: 200px;
694
- `;
695
- const MenuItem = styled.div `
696
- align-items: center;
697
- border-radius: 8px;
698
- border: 1px solid transparent;
699
- display: flex;
700
- gap: 8px;
701
- height: 38px;
702
- padding: 8px;
703
- &:hover {
704
- background: rgba(1, 147, 215, 0.1);
705
- cursor: pointer;
706
-
707
- svg,
708
- path {
709
- fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
710
- }
711
- }
682
+ };
683
+
684
+ const Wrapper$e = styled.div `
685
+ background: #fff;
686
+ border-radius: 8px;
687
+ box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
688
+ display: flex;
689
+ flex-direction: column;
690
+ gap: 4px;
691
+ max-height: ${props => props.$maxHeight || '312px'};
692
+ padding: 10px;
693
+ width: 200px;
694
+ `;
695
+ const MenuItem = styled.div `
696
+ align-items: center;
697
+ border-radius: 8px;
698
+ border: 1px solid transparent;
699
+ display: flex;
700
+ gap: 8px;
701
+ height: 38px;
702
+ padding: 8px;
703
+ &:hover {
704
+ background: rgba(1, 147, 215, 0.1);
705
+ cursor: pointer;
706
+
707
+ svg,
708
+ path {
709
+ fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
710
+ }
711
+ }
712
712
  `;
713
713
  MenuItem.defaultProps = { theme: EditableTheme };
714
- const Title$1 = styled.span `
715
- font-family: Roboto;
716
- font-size: 14px;
717
- font-weight: 400;
718
- height: auto;
719
- letter-spacing: 0px;
720
- line-height: 22px;
721
- text-align: left;
714
+ const Title$1 = styled.span `
715
+ font-family: Roboto;
716
+ font-size: 14px;
717
+ font-weight: 400;
718
+ height: auto;
719
+ letter-spacing: 0px;
720
+ line-height: 22px;
721
+ text-align: left;
722
722
  `;
723
723
  const MoreMenu = (_a) => {
724
724
  var { maxHeight, menuItems = [] } = _a, accessibleProps = __rest(_a, ["maxHeight", "menuItems"]);
@@ -727,38 +727,38 @@ const MoreMenu = (_a) => {
727
727
  item.icon ? (React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
728
728
  React.createElement(Title$1, null, item.label)));
729
729
  })));
730
- };
731
-
732
- const Wrapper$d = styled.div `
733
- position: relative;
734
- display: inline-block;
735
- `;
736
- const StyledMoreMenu = styled(MoreMenu) `
737
- position: absolute;
738
- right: ${props => (props.$position === 'right' ? '0px' : 'auto')};
739
- left: ${props => (props.$position === 'left' ? '0px' : 'auto')};
740
- top: ${props => (props.$small ? '30px' : '40px')};
741
- width: ${props => props.$menuWidth};
742
- z-index: 10;
730
+ };
731
+
732
+ const Wrapper$d = styled.div `
733
+ position: relative;
734
+ display: inline-block;
735
+ `;
736
+ const StyledMoreMenu = styled(MoreMenu) `
737
+ position: absolute;
738
+ right: ${props => (props.$position === 'right' ? '0px' : 'auto')};
739
+ left: ${props => (props.$position === 'left' ? '0px' : 'auto')};
740
+ top: ${props => (props.$small ? '30px' : '40px')};
741
+ width: ${props => props.$menuWidth};
742
+ z-index: 10;
743
743
  `;
744
744
  const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'right', format = 'primary', menuWidth = '200px', }) => {
745
745
  const [show_menu, toggleMenu] = useState(false);
746
746
  return (React.createElement(Wrapper$d, { onMouseEnter: disabled ? undefined : toggleMenu.bind(null, true), onMouseLeave: disabled ? undefined : toggleMenu.bind(null, false) },
747
747
  React.createElement(Button, { disabled: disabled, format: format, icon: mdiDotsHorizontal, small: small }, label),
748
748
  show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
749
- };
750
-
751
- const Wrapper$c = styled.div `
752
- display: inline-block;
753
- position: relative;
754
- height: 16px;
755
- `;
756
- const StyledIcon$4 = styled(Icon) `
757
- width: 16px;
758
- height: 16px;
759
- margin: 0px 6px;
760
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
761
- cursor: pointer;
749
+ };
750
+
751
+ const Wrapper$c = styled.div `
752
+ display: inline-block;
753
+ position: relative;
754
+ height: 16px;
755
+ `;
756
+ const StyledIcon$4 = styled(Icon) `
757
+ width: 16px;
758
+ height: 16px;
759
+ margin: 0px 6px;
760
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
761
+ cursor: pointer;
762
762
  `;
763
763
  StyledIcon$4.defaultProps = { theme: EditableTheme };
764
764
  const positions = {
@@ -796,8 +796,8 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }
796
796
  return (React.createElement(Wrapper$c, { onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
797
797
  trigger || React.createElement(StyledIcon$4, { path: mdiInformationOutline }),
798
798
  show_content ? (React.createElement(Content$2, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
799
- };
800
-
799
+ };
800
+
801
801
  const Wrapper$b = styled.label `
802
802
  border-radius: 4px;
803
803
  padding: 4px 0px 4px 6px;
@@ -844,6 +844,7 @@ const Input$2 = styled.input `
844
844
  const Check$1 = styled.span `
845
845
  height: 17px;
846
846
  width: 17px;
847
+ min-width: 17px;
847
848
  background-color: #fff;
848
849
  border-width: 2px;
849
850
  border-style: solid;
@@ -871,7 +872,7 @@ const Label$3 = styled.span `
871
872
  font-size: ${FontSizes.DEFAULT};
872
873
  font-weight: 400;
873
874
  line-height: 1.6em;
874
- color: ${props => props.color || Colors.BLACK.Hex};;
875
+ color: ${props => props.color || Colors.BLACK.Hex};
875
876
  margin-left: 6px;
876
877
  box-sizing: border-box;
877
878
  `;
@@ -883,16 +884,16 @@ const Checkbox = (_a) => {
883
884
  children ? (React.createElement(Label$3, { color: color },
884
885
  children,
885
886
  tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)) : null));
886
- };
887
-
888
- const SelectAll = styled.div `
889
- padding: 8px 12px;
890
- border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
891
- box-sizing: border-box;
887
+ };
888
+
889
+ const SelectAll = styled.div `
890
+ padding: 8px 12px;
891
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
892
+ box-sizing: border-box;
892
893
  `;
893
- const Options$1 = styled.div `
894
- padding: 12px;
895
- box-sizing: border-box;
894
+ const Options$1 = styled.div `
895
+ padding: 12px;
896
+ box-sizing: border-box;
896
897
  `;
897
898
  const Checklist = (_a) => {
898
899
  var { disabled, onChange, options, selected = [], showSelectAll } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "selected", "showSelectAll"]);
@@ -929,8 +930,8 @@ const Checklist = (_a) => {
929
930
  const checked = selected.includes(option.value);
930
931
  return (React.createElement(Checkbox, Object.assign({ key: i }, accessibleProps, { checked: checked, color: option.color, disabled: disabled, onChange: handleChange.bind(null, option) }), label));
931
932
  }))));
932
- };
933
-
933
+ };
934
+
934
935
  const Wrapper$a = styled.div `
935
936
  border-radius: 4px;
936
937
  height: 40px;
@@ -1028,23 +1029,35 @@ const Select = (_a) => {
1028
1029
  return (React.createElement("option", { key: i, value: option.value }, option.label || option.value));
1029
1030
  }))),
1030
1031
  React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, path: mdiChevronDown, size: '22px' })));
1031
- };
1032
-
1033
- const DatePickerWrapper = styled.div `
1034
- display: flex;
1035
- width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1032
+ };
1033
+
1034
+ const DatePickerWrapper = styled.div `
1035
+ display: flex;
1036
+ width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1036
1037
  `;
1037
- const Middle = styled.div `
1038
- margin: 0px -1px;
1039
- flex-grow: 1;
1038
+ const Middle = styled.div `
1039
+ margin: 0px -1px;
1040
+ flex-grow: 1;
1040
1041
  `;
1041
1042
  const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate = null, date, onChange, style, }) => {
1043
+ const [selectedDay, setSelectedDay] = useState('');
1044
+ const [selectedMonth, setSelectedMonth] = useState('');
1045
+ const [selectedYear, setSelectedYear] = useState('');
1046
+ const [dDate, setDDate] = useState(dayjs(date || undefined));
1042
1047
  const dMaxDate = maxDate ? dayjs(maxDate) : dayjs();
1043
1048
  const dMinDate = minDate ? dayjs(minDate) : dMaxDate.subtract(100, 'year');
1044
- const [dDate, setDate] = useState(dayjs(date));
1045
- const [dayOptions, setDayOptions] = useState(Array.from({ length: dDate.daysInMonth() - 1 }, (_, i) => ({
1049
+ const [dayOptions, setDayOptions] = useState(Array.from({ length: dDate.daysInMonth() }, (_, i) => ({
1046
1050
  value: i + 1,
1047
1051
  })));
1052
+ useEffect(() => {
1053
+ if (date) {
1054
+ const d = dayjs(date);
1055
+ setSelectedDay(d.date().toString());
1056
+ setSelectedMonth((d.month() + 1).toString());
1057
+ setSelectedYear(d.year().toString());
1058
+ setDDate(d);
1059
+ }
1060
+ }, [date]);
1048
1061
  const months = [
1049
1062
  { label: 'January', value: 1 },
1050
1063
  { label: 'Feburary', value: 2 },
@@ -1064,100 +1077,108 @@ const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate
1064
1077
  value: dMinDate.year() + i,
1065
1078
  }));
1066
1079
  useEffect(() => {
1067
- setDayOptions(Array.from({ length: dDate.daysInMonth() }, (_, i) => ({
1068
- value: i + 1,
1069
- })));
1070
- // Only fire the onChange event if the date has changed
1071
- if (dDate.format('YYYY-MM-DD') !== date) {
1072
- // Copying the browser event structure
1073
- onChange({
1074
- target: {
1075
- value: dDate.format('YYYY-MM-DD'),
1076
- },
1077
- });
1080
+ if (selectedDay && selectedMonth && selectedYear) {
1081
+ const newDate = dayjs(`${selectedYear}-${selectedMonth}-${selectedDay}`);
1082
+ if (newDate.isValid() && newDate.format('YYYY-MM-DD') !== date) {
1083
+ onChange({
1084
+ target: {
1085
+ value: newDate.format('YYYY-MM-DD'),
1086
+ },
1087
+ });
1088
+ }
1078
1089
  }
1079
- }, [dDate]);
1090
+ }, [selectedDay, selectedMonth, selectedYear]);
1080
1091
  const handleDayChange = (e) => {
1081
1092
  const date = parseInt(e.target.value, 10);
1082
1093
  const new_date = dDate.date(date);
1083
- setDate(new_date);
1094
+ setSelectedDay(e.target.value);
1095
+ setDDate(new_date);
1084
1096
  };
1085
1097
  const handleMonthChange = (e) => {
1086
- const month = parseInt(e.target.value, 10);
1087
- const new_date = dDate.month(month - 1); // dayjs month is zero based
1088
- setDate(new_date);
1098
+ const month = parseInt(e.target.value, 10) - 1;
1099
+ const new_date = dayjs()
1100
+ .set('year', dDate.year())
1101
+ .set('month', month)
1102
+ .set('date', dDate.date());
1103
+ setSelectedMonth(e.target.value);
1104
+ setDDate(new_date);
1105
+ // Update dayOptions based on the new date
1106
+ setDayOptions(Array.from({ length: new_date.daysInMonth() }, (_, i) => ({
1107
+ value: i + 1,
1108
+ })));
1089
1109
  };
1090
1110
  const handleYearChange = (e) => {
1091
1111
  const year = parseInt(e.target.value, 10);
1092
1112
  const new_date = dDate.year(year);
1093
- setDate(new_date);
1113
+ setSelectedYear(e.target.value);
1114
+ setDDate(new_date);
1094
1115
  };
1095
1116
  return (React.createElement(React.Fragment, null,
1096
1117
  React.createElement(DatePickerWrapper, { "$style": style },
1097
- React.createElement(Select, { invalid: invalid, onChange: handleMonthChange, options: months, readOnly: readOnly, style: { borderRadius: '4px 0px 0px 4px', flexGrow: 3 }, value: dDate.format('M') }),
1118
+ React.createElement(Select, { invalid: invalid, onChange: handleMonthChange, options: months, placeholder: 'Select Month', readOnly: readOnly, style: { borderRadius: '4px 0px 0px 4px', flexGrow: 3 }, value: selectedMonth }),
1098
1119
  React.createElement(Middle, null,
1099
- React.createElement(Select, { invalid: invalid, onChange: handleDayChange, options: dayOptions, readOnly: readOnly, style: { borderRadius: '0px' }, value: dDate.format('D') })),
1100
- React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: dDate.format('YYYY') }))));
1101
- };
1102
-
1103
- const Scrim$1 = styled.div `
1104
- position: ${({ $position }) => $position};
1105
- top: 0;
1106
- right: 0;
1107
- bottom: 0;
1108
- left: 0;
1109
- z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
1110
- background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
1111
- `;
1112
- const Container$2 = styled.div `
1113
- z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
1114
- min-width: 400px;
1115
- width: ${({ $width }) => $width || '400px'};
1116
- overflow: hidden;
1117
- box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
1118
- outline: none;
1119
- border: none;
1120
- position: ${({ $position }) => $position};
1121
- top: 0;
1122
- right: 0;
1123
- bottom: 0;
1124
- padding: 0px;
1125
- display: flex;
1126
- flex-direction: column;
1127
- box-sizing: border-box;
1128
- background: #fff;
1129
- `;
1130
- const Header$2 = styled.div `
1131
- padding: 30px 20px;
1132
- display: flex;
1133
- align-items: flex-start;
1134
- box-sizing: border-box;
1135
- flex-shrink: 0;
1136
- background: #fff;
1137
- `;
1138
- const Close$1 = styled.div `
1139
- margin-left: auto;
1140
- display: flex;
1141
- align-items: center;
1142
- padding-left: 20px;
1143
- cursor: pointer;
1144
- `;
1145
- const ContentWrapper$1 = styled.div `
1146
- overflow-x: hidden;
1147
- overflow-y: auto;
1148
- box-sizing: border-box;
1149
- flex: 1;
1150
- background: #fff;
1151
- `;
1152
- const ButtonBar$1 = styled.div `
1153
- padding: 20px;
1154
- display: flex;
1155
- align-items: center;
1156
- justify-content: flex-end;
1157
- box-sizing: border-box;
1158
- gap: 10px;
1159
- flex-shrink: 0;
1160
- background: #fff;
1120
+ React.createElement(Select, { invalid: invalid, onChange: handleDayChange, options: dayOptions, placeholder: 'Select Day', readOnly: readOnly, style: { borderRadius: '0px' }, value: selectedDay })),
1121
+ React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, placeholder: 'Select Year', readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: selectedYear }))));
1122
+ };
1123
+
1124
+ const Scrim$1 = styled.div `
1125
+ position: ${({ $position }) => $position};
1126
+ top: 0;
1127
+ right: 0;
1128
+ bottom: 0;
1129
+ left: 0;
1130
+ z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
1131
+ background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
1132
+ `;
1133
+ const Container$2 = styled.div `
1134
+ z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
1135
+ min-width: 400px;
1136
+ width: ${({ $width }) => $width || '400px'};
1137
+ overflow: hidden;
1138
+ box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
1139
+ outline: none;
1140
+ border: none;
1141
+ position: ${({ $position }) => $position};
1142
+ top: 0;
1143
+ right: 0;
1144
+ bottom: 0;
1145
+ padding: 0px;
1146
+ display: flex;
1147
+ flex-direction: column;
1148
+ box-sizing: border-box;
1149
+ background: #fff;
1150
+ `;
1151
+ const Header$2 = styled.div `
1152
+ padding: 30px 20px;
1153
+ display: flex;
1154
+ align-items: flex-start;
1155
+ box-sizing: border-box;
1156
+ flex-shrink: 0;
1157
+ background: #fff;
1158
+ `;
1159
+ const Close$1 = styled.div `
1160
+ margin-left: auto;
1161
+ display: flex;
1162
+ align-items: center;
1163
+ padding-left: 20px;
1164
+ cursor: pointer;
1165
+ `;
1166
+ const ContentWrapper$1 = styled.div `
1167
+ overflow-x: hidden;
1168
+ overflow-y: auto;
1169
+ box-sizing: border-box;
1170
+ flex: 1;
1171
+ background: #fff;
1172
+ `;
1173
+ const ButtonBar$1 = styled.div `
1174
+ padding: 20px;
1175
+ display: flex;
1176
+ align-items: center;
1177
+ justify-content: flex-end;
1178
+ box-sizing: border-box;
1179
+ gap: 10px;
1180
+ flex-shrink: 0;
1181
+ background: #fff;
1161
1182
  `;
1162
1183
  const Drawer = (_a) => {
1163
1184
  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"]);
@@ -1181,13 +1202,13 @@ const Drawer = (_a) => {
1181
1202
  React.createElement(Button, { format: 'secondary', icon: mdiClose, small: true }))),
1182
1203
  React.createElement(ContentWrapper$1, null, children),
1183
1204
  primaryButton || secondaryButton || tertiaryButton ? (React.createElement(ButtonBar$1, null,
1184
- tertiaryButton ? React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary' })) : null,
1185
- secondaryButton ? React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' })) : null,
1186
- primaryButton ? React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' })) : null)) : null),
1205
+ tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary' }))) : null,
1206
+ secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' }))) : null,
1207
+ primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' }))) : null)) : null),
1187
1208
  scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
1188
- };
1189
-
1190
- const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, (props.$customStyle))));
1209
+ };
1210
+
1211
+ const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.$customStyle)));
1191
1212
  const LabelRow = styled.div `
1192
1213
  display: flex;
1193
1214
  align-items: center;
@@ -1247,43 +1268,43 @@ const Field = (_a) => {
1247
1268
  description ? React.createElement(Description, null, description) : null,
1248
1269
  children,
1249
1270
  validationText ? React.createElement(Validation, null, validationText) : null));
1250
- };
1251
-
1252
- const Wrapper$8 = styled.fieldset `
1253
- margin-inline-start: 0px;
1254
- margin-inline-end: 0px;
1255
- padding-block-start: 0px;
1256
- padding-inline-start: 0px;
1257
- padding-inline-end: 0px;
1258
- padding-block-end: 0px;
1259
- min-inline-size: min-content;
1260
- border-width: 0px;
1261
- border-style: none;
1262
- border-color: transparent;
1263
- border-image: none;
1264
- `;
1265
- const Label$1 = styled.legend `
1266
- padding-inline-start: 0px;
1267
- padding-inline-end: 0px;
1268
-
1269
- color: ${Colors.BLACK.Hex};
1270
- font-family: ${FontStyles.DEFAULT};
1271
- font-size: ${FontSizes.DEFAULT};
1272
- font-weight: 500;
1273
- line-height: 22px;
1274
- margin-bottom: 6px;
1275
- `;
1276
- const Content$1 = styled.div `
1277
- padding: 20px;
1278
- border-radius: 8px;
1279
- background: #fcfcfc;
1271
+ };
1272
+
1273
+ const Wrapper$8 = styled.fieldset `
1274
+ margin-inline-start: 0px;
1275
+ margin-inline-end: 0px;
1276
+ padding-block-start: 0px;
1277
+ padding-inline-start: 0px;
1278
+ padding-inline-end: 0px;
1279
+ padding-block-end: 0px;
1280
+ min-inline-size: min-content;
1281
+ border-width: 0px;
1282
+ border-style: none;
1283
+ border-color: transparent;
1284
+ border-image: none;
1285
+ `;
1286
+ const Label$1 = styled.legend `
1287
+ padding-inline-start: 0px;
1288
+ padding-inline-end: 0px;
1289
+
1290
+ color: ${Colors.BLACK.Hex};
1291
+ font-family: ${FontStyles.DEFAULT};
1292
+ font-size: ${FontSizes.DEFAULT};
1293
+ font-weight: 500;
1294
+ line-height: 22px;
1295
+ margin-bottom: 6px;
1296
+ `;
1297
+ const Content$1 = styled.div `
1298
+ padding: 20px;
1299
+ border-radius: 8px;
1300
+ background: #fcfcfc;
1280
1301
  `;
1281
1302
  const FieldGroup = ({ children, label }) => {
1282
1303
  return (React.createElement(Wrapper$8, null,
1283
1304
  React.createElement(Label$1, null, label),
1284
1305
  React.createElement(Content$1, null, children)));
1285
- };
1286
-
1306
+ };
1307
+
1287
1308
  const Dropzone = styled.div `
1288
1309
  border-radius: 8px;
1289
1310
  border-width: 1px;
@@ -1330,6 +1351,11 @@ const Files = styled.div `
1330
1351
  gap: 10px;
1331
1352
  margin: 20px;
1332
1353
  `;
1354
+ const MessageDiv = styled.div `
1355
+ display: flex;
1356
+ align-items: center;
1357
+ justify-content: center;
1358
+ `;
1333
1359
  const File = styled.div `
1334
1360
  display: flex;
1335
1361
  padding: 10px;
@@ -1349,7 +1375,7 @@ const Remove = styled(Icon) `
1349
1375
  fill: ${Colors.RED.Hex} !important;
1350
1376
  }
1351
1377
  `;
1352
- const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, value = [], message, validateFile, }) => {
1378
+ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, value = [], message, tooltipInfo = '', validateFile, }) => {
1353
1379
  const inputRef = useRef(null);
1354
1380
  const [files, setFiles] = useState(value || []);
1355
1381
  const [dragging, setDragging] = useState(false);
@@ -1461,9 +1487,12 @@ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, val
1461
1487
  React.createElement(StyledIcon$3, { path: mdiFolderPlusOutline }))),
1462
1488
  React.createElement(Content, null,
1463
1489
  React.createElement(Copy, { align: 'center', type: 'bold' }, "Drag & drop files here or click to select files"),
1464
- message ? (React.createElement(Copy, { align: 'center', color: 'GRAY' }, message)) : null))) : null)));
1465
- };
1466
-
1490
+ message ? (React.createElement(MessageDiv, null,
1491
+ React.createElement(Copy, { align: 'center', color: 'GRAY' }, message),
1492
+ tooltipInfo && (React.createElement("span", null,
1493
+ React.createElement(Tooltip, { children: tooltipInfo, position: 'left-center' }))))) : null))) : null)));
1494
+ };
1495
+
1467
1496
  const getAgesFromDob = (dob) => {
1468
1497
  let calculated_current_age = null;
1469
1498
  let calculated_nearest_age = null;
@@ -1536,8 +1565,8 @@ const formatAsSsn = (number) => {
1536
1565
  formatted_value = `${formatted_value.substring(0, 3)}-${formatted_value.substring(3, 5)}-${formatted_value.substring(5, 9)}`;
1537
1566
  }
1538
1567
  return formatted_value;
1539
- };
1540
-
1568
+ };
1569
+
1541
1570
  const StyledInput = styled.input `
1542
1571
  border: none !important;
1543
1572
  background: none !important;
@@ -1774,63 +1803,63 @@ const Input$1 = (_a) => {
1774
1803
  setShowOptions(false);
1775
1804
  } }, s_value));
1776
1805
  }))) : null));
1777
- };
1778
-
1779
- const Wrapper$7 = styled.a `
1780
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
1781
- font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
1782
- line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
1783
- letter-spacing: ${props => (props.$small ? '1px' : '0px')};
1784
- font-weight: 500;
1785
- font-style: normal;
1786
- text-decoration: 'none';
1787
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
1788
- margin: 0px;
1789
- padding: 0px;
1790
- box-sizing: border-box;
1791
- cursor: pointer;
1806
+ };
1807
+
1808
+ const Wrapper$7 = styled.a `
1809
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
1810
+ font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
1811
+ line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
1812
+ letter-spacing: ${props => (props.$small ? '1px' : '0px')};
1813
+ font-weight: 500;
1814
+ font-style: normal;
1815
+ text-decoration: 'none';
1816
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
1817
+ margin: 0px;
1818
+ padding: 0px;
1819
+ box-sizing: border-box;
1820
+ cursor: pointer;
1792
1821
  `;
1793
1822
  Wrapper$7.defaultProps = { theme: EditableTheme };
1794
1823
  const Link = (_a) => {
1795
1824
  var { children, onClick, small } = _a, accessibleProps = __rest(_a, ["children", "onClick", "small"]);
1796
1825
  return (React.createElement(Wrapper$7, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
1797
- };
1798
-
1799
- const dash = keyframes `
1800
- 0% {
1801
- stroke-dasharray: 1, 160;
1802
- stroke-dashoffset: 0;
1803
- }
1804
- 50% {
1805
- stroke-dasharray: 80, 160;
1806
- stroke-dashoffset: -32;
1807
- }
1808
- 100% {
1809
- stroke-dasharray: 80, 160;
1810
- stroke-dashoffset: -124;
1811
- }
1812
- `;
1813
- const Spinner = styled.svg `
1814
- z-index: 2;
1815
- position: absolute;
1816
- top: 50%;
1817
- left: 50%;
1818
- transform: translate(-50%, -50%);
1819
- margin: 0 auto;
1820
- width: 40px;
1821
- height: 40px;
1822
- `;
1823
- const Path = styled.path `
1824
- stroke: #0193d7;
1825
- stroke-linecap: round;
1826
- -webkit-animation: ${dash} 1.1s ease-in-out infinite;
1827
- animation: ${dash} 1.1s ease-in-out infinite;
1826
+ };
1827
+
1828
+ const dash = keyframes `
1829
+ 0% {
1830
+ stroke-dasharray: 1, 160;
1831
+ stroke-dashoffset: 0;
1832
+ }
1833
+ 50% {
1834
+ stroke-dasharray: 80, 160;
1835
+ stroke-dashoffset: -32;
1836
+ }
1837
+ 100% {
1838
+ stroke-dasharray: 80, 160;
1839
+ stroke-dashoffset: -124;
1840
+ }
1841
+ `;
1842
+ const Spinner = styled.svg `
1843
+ z-index: 2;
1844
+ position: absolute;
1845
+ top: 50%;
1846
+ left: 50%;
1847
+ transform: translate(-50%, -50%);
1848
+ margin: 0 auto;
1849
+ width: 40px;
1850
+ height: 40px;
1851
+ `;
1852
+ const Path = styled.path `
1853
+ stroke: #0193d7;
1854
+ stroke-linecap: round;
1855
+ -webkit-animation: ${dash} 1.1s ease-in-out infinite;
1856
+ animation: ${dash} 1.1s ease-in-out infinite;
1828
1857
  `;
1829
1858
  const Loader = () => {
1830
1859
  return (React.createElement(Spinner, { viewBox: '0 0 16 18' },
1831
1860
  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' })));
1832
- };
1833
-
1861
+ };
1862
+
1834
1863
  const Steps = styled.div `
1835
1864
  padding: 20px;
1836
1865
  border-bottom: 1px solid #e7e6e6;
@@ -1882,13 +1911,13 @@ const StepLine = styled.div `
1882
1911
  const ProgressBar = ({ steps, showStepLine = false }) => {
1883
1912
  return (React.createElement(Steps, null, steps.map((step, i) => {
1884
1913
  return (React.createElement(React.Fragment, null,
1885
- i !== 0 && showStepLine && (React.createElement(StepLine, { "$active": step.active })),
1914
+ i !== 0 && showStepLine && React.createElement(StepLine, { "$active": step.active }),
1886
1915
  React.createElement(Step, { key: i },
1887
1916
  step.complete ? (React.createElement(StyledIcon$2, { path: mdiCheckboxMarkedCircleOutline, size: '32px' })) : (React.createElement(StepIndicator, { "$active": step.active }, i + 1)),
1888
1917
  React.createElement(StepLabel, null, step.label))));
1889
1918
  })));
1890
- };
1891
-
1919
+ };
1920
+
1892
1921
  const Wrapper$6 = styled.div `
1893
1922
  position: fixed;
1894
1923
  top: 0;
@@ -1988,8 +2017,8 @@ const Modal = (_a) => {
1988
2017
  } },
1989
2018
  secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' }))) : null,
1990
2019
  primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' }))) : null)) : null)) : null)));
1991
- };
1992
-
2020
+ };
2021
+
1993
2022
  const Wrapper$5 = styled.div `
1994
2023
  position: relative;
1995
2024
  width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
@@ -2092,37 +2121,37 @@ const MultiSelect = (_a) => {
2092
2121
  showOptions ? (React.createElement(Options, null,
2093
2122
  React.createElement(Checklist, { onChange: onChange, options: filteredOptions, selected: selected, showSelectAll: showSelectAll }))) : null,
2094
2123
  showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
2095
- };
2096
-
2097
- const Wrapper$4 = styled.div `
2098
- display: flex;
2099
- padding: 16px 30px;
2100
- align-items: center;
2101
- gap: 20px;
2102
- align-self: stretch;
2103
- border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
2104
- `;
2105
- const Title = styled.div `
2106
- display: flex;
2107
- align-items: center;
2108
- gap: 20px;
2109
- `;
2110
- const Info = styled.div `
2111
- display: flex;
2112
- flex-direction: column;
2113
- align-items: flex-start;
2114
- gap: 4px;
2115
- flex: 1 0 0;
2116
- `;
2117
- const Breadcrumbs = styled.div `
2118
- display: flex;
2119
- align-items: center;
2120
- gap: 4px;
2121
- `;
2122
- const Actions = styled.div `
2123
- display: flex;
2124
- align-items: center;
2125
- gap: 8px;
2124
+ };
2125
+
2126
+ const Wrapper$4 = styled.div `
2127
+ display: flex;
2128
+ padding: 16px 30px;
2129
+ align-items: center;
2130
+ gap: 20px;
2131
+ align-self: stretch;
2132
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
2133
+ `;
2134
+ const Title = styled.div `
2135
+ display: flex;
2136
+ align-items: center;
2137
+ gap: 20px;
2138
+ `;
2139
+ const Info = styled.div `
2140
+ display: flex;
2141
+ flex-direction: column;
2142
+ align-items: flex-start;
2143
+ gap: 4px;
2144
+ flex: 1 0 0;
2145
+ `;
2146
+ const Breadcrumbs = styled.div `
2147
+ display: flex;
2148
+ align-items: center;
2149
+ gap: 4px;
2150
+ `;
2151
+ const Actions = styled.div `
2152
+ display: flex;
2153
+ align-items: center;
2154
+ gap: 8px;
2126
2155
  `;
2127
2156
  const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
2128
2157
  const { format = 'primary', menuItems = [], label = '', } = buttonMenu || {};
@@ -2142,13 +2171,13 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
2142
2171
  return (React.createElement(Button, Object.assign({}, buttonProps, { key: i, small: true }), label));
2143
2172
  }),
2144
2173
  menuItems.length ? (React.createElement(ButtonMenu, { format: format, label: label, menuItems: menuItems, small: true })) : null)) : null));
2145
- };
2146
-
2147
- const Wrapper$3 = styled.nav `
2148
- box-sizing: border-box;
2149
- display: flex;
2150
- align-items: center;
2151
- column-gap: 10px;
2174
+ };
2175
+
2176
+ const Wrapper$3 = styled.nav `
2177
+ box-sizing: border-box;
2178
+ display: flex;
2179
+ align-items: center;
2180
+ column-gap: 10px;
2152
2181
  `;
2153
2182
  const Pagination = (_a) => {
2154
2183
  var { currentPage = 1, onClick, pageCount = 0 } = _a, accessibleProps = __rest(_a, ["currentPage", "onClick", "pageCount"]);
@@ -2177,8 +2206,8 @@ const Pagination = (_a) => {
2177
2206
  value: `${p}`,
2178
2207
  })), value: `${currentPage}` }),
2179
2208
  React.createElement(Button, { disabled: is_last_page, icon: mdiChevronRight, onClick: handleNextClick, small: true })));
2180
- };
2181
-
2209
+ };
2210
+
2182
2211
  const Wrapper$2 = styled.label `
2183
2212
  border-radius: 4px;
2184
2213
  padding: 4px 0px 4px 6px;
@@ -2262,77 +2291,77 @@ const Radio = (_a) => {
2262
2291
  React.createElement(Label, null,
2263
2292
  children,
2264
2293
  tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)));
2265
- };
2266
-
2294
+ };
2295
+
2267
2296
  const RadioList = (_a) => {
2268
2297
  var { disabled, onChange, options, value } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "value"]);
2269
2298
  return (React.createElement(React.Fragment, null, options.map((option) => {
2270
2299
  const label = option.label || option.value;
2271
2300
  return (React.createElement(Radio, Object.assign({ checked: value === option.value, disabled: disabled, onChange: onChange, value: option.value }, accessibleProps), label));
2272
2301
  })));
2273
- };
2274
-
2275
- const StyledTable = styled.table `
2276
- width: 100%;
2277
- margin-top: 1px;
2278
- table-layout: ${props => props.$tableLayout || 'auto'};
2279
- border-collapse: collapse;
2280
- text-indent: 0px;
2281
- border-spacing: 0px;
2282
- border-color: none;
2283
- box-sizing: border-box;
2284
- `;
2285
- const Header = styled.th `
2286
- padding: 12px !important;
2287
- text-align: left;
2288
- font-weight: 500;
2289
- border-bottom: 1px solid #e5e5e5;
2290
- border-top: 1px solid #e5e5e5;
2291
- text-transform: uppercase;
2292
- font-size: 12px;
2293
- font-family: ${FontStyles.DEFAULT};
2294
- letter-spacing: 1px;
2295
- white-space: nowrap;
2296
- line-height: 1;
2297
- position: relative;
2298
- box-sizing: border-box;
2299
- width: ${props => props.$width || 'auto'};
2300
- cursor: ${props => (props.$isSortable ? 'pointer' : 'default')};
2301
- color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
2302
+ };
2303
+
2304
+ const StyledTable = styled.table `
2305
+ width: 100%;
2306
+ margin-top: 1px;
2307
+ table-layout: ${props => props.$tableLayout || 'auto'};
2308
+ border-collapse: collapse;
2309
+ text-indent: 0px;
2310
+ border-spacing: 0px;
2311
+ border-color: none;
2312
+ box-sizing: border-box;
2313
+ `;
2314
+ const Header = styled.th `
2315
+ padding: 12px !important;
2316
+ text-align: left;
2317
+ font-weight: 500;
2318
+ border-bottom: 1px solid #e5e5e5;
2319
+ border-top: 1px solid #e5e5e5;
2320
+ text-transform: uppercase;
2321
+ font-size: 12px;
2322
+ font-family: ${FontStyles.DEFAULT};
2323
+ letter-spacing: 1px;
2324
+ white-space: nowrap;
2325
+ line-height: 1;
2326
+ position: relative;
2327
+ box-sizing: border-box;
2328
+ width: ${props => props.$width || 'auto'};
2329
+ cursor: ${props => (props.$isSortable ? 'pointer' : 'default')};
2330
+ color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
2302
2331
  `;
2303
2332
  Header.defaultProps = { theme: EditableTheme };
2304
- const Row = styled.tr `
2305
- cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
2306
- transition: all 0.2s;
2307
- background-color: ${props => props.$bgColor};
2308
- box-sizing: border-box;
2309
- &:hover {
2310
- background-color: ${props => props.$isClickable ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.1)` : props.$bgColor};
2311
- }
2333
+ const Row = styled.tr `
2334
+ cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
2335
+ transition: all 0.2s;
2336
+ background-color: ${props => props.$bgColor};
2337
+ box-sizing: border-box;
2338
+ &:hover {
2339
+ background-color: ${props => props.$isClickable ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.1)` : props.$bgColor};
2340
+ }
2312
2341
  `;
2313
2342
  Row.defaultProps = { theme: EditableTheme };
2314
- const Column = styled.td `
2315
- padding: 16px 12px !important;
2316
- font-size: ${FontSizes.DEFAULT} !important;
2317
- font-weight: 400 !important;
2318
- font-family: ${FontStyles.DEFAULT};
2319
- border: none !important;
2320
- word-break: break-word;
2321
- line-height: 1.4em;
2322
- box-sizing: border-box;
2323
- text-align: ${props => props.$align || 'left'};
2324
- width: ${props => props.$width || 'auto'};
2325
- `;
2326
- const IconWrapper = styled.span `
2327
- position: absolute;
2328
- top: 50%;
2329
- transform: translateY(-50%);
2330
- margin-left: 2px;
2331
- `;
2332
- const StyledIcon$1 = styled(Icon) `
2333
- > path {
2334
- fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
2335
- }
2343
+ const Column = styled.td `
2344
+ padding: 16px 12px !important;
2345
+ font-size: ${FontSizes.DEFAULT} !important;
2346
+ font-weight: 400 !important;
2347
+ font-family: ${FontStyles.DEFAULT};
2348
+ border: none !important;
2349
+ word-break: break-word;
2350
+ line-height: 1.4em;
2351
+ box-sizing: border-box;
2352
+ text-align: ${props => props.$align || 'left'};
2353
+ width: ${props => props.$width || 'auto'};
2354
+ `;
2355
+ const IconWrapper = styled.span `
2356
+ position: absolute;
2357
+ top: 50%;
2358
+ transform: translateY(-50%);
2359
+ margin-left: 2px;
2360
+ `;
2361
+ const StyledIcon$1 = styled(Icon) `
2362
+ > path {
2363
+ fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
2364
+ }
2336
2365
  `;
2337
2366
  StyledIcon$1.defaultProps = { theme: EditableTheme };
2338
2367
  const Table = (_a) => {
@@ -2350,55 +2379,55 @@ const Table = (_a) => {
2350
2379
  return (React.createElement(Column, { "$align": columns[i].align, "$width": columns[i].width, key: i }, column.render ? column.render(row) : row[column.id] || 'N/A'));
2351
2380
  })));
2352
2381
  }))) : null));
2353
- };
2354
-
2355
- const Wrapper$1 = styled.div `
2356
- display: flex;
2357
- box-sizing: border-box;
2358
- align-items: flex-end;
2359
- border-top: 1px solid #e5e5e5;
2360
- border-bottom: 1px solid #e5e5e5;
2361
- flex-shrink: 0;
2362
- align-self: stretch;
2363
- padding: 0;
2364
- margin: 0;
2365
- `;
2366
- const Tab = styled.div `
2367
- display: flex;
2368
- align-items: center;
2369
- gap: 6px;
2370
- font-size: ${FontSizes.DEFAULT};
2371
- font-family: ${FontStyles.DEFAULT};
2372
- font-weight: ${props => (props.$isActive ? 500 : 400)};
2373
- color: ${props => (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)};
2374
- line-height: 1em;
2375
- padding: 16px 30px 12px;
2376
- margin: 0 0 -1px 0;
2377
- border-bottom-width: 4px;
2378
- border-bottom-style: solid;
2379
- border-bottom-color: ${props => props.$isActive ? props.theme.PRIMARY_COLOR.Hex : 'transparent'};
2380
- cursor: ${props => (props.$isActive ? 'default' : 'pointer')};
2381
- box-sizing: border-box;
2382
- &:hover {
2383
- color: ${props => (props.$isActive ? Colors.BLACK.Hex : props.theme.PRIMARY_COLOR.Hex)};
2384
- font-weight: 500;
2385
- }
2382
+ };
2383
+
2384
+ const Wrapper$1 = styled.div `
2385
+ display: flex;
2386
+ box-sizing: border-box;
2387
+ align-items: flex-end;
2388
+ border-top: 1px solid #e5e5e5;
2389
+ border-bottom: 1px solid #e5e5e5;
2390
+ flex-shrink: 0;
2391
+ align-self: stretch;
2392
+ padding: 0;
2393
+ margin: 0;
2394
+ `;
2395
+ const Tab = styled.div `
2396
+ display: flex;
2397
+ align-items: center;
2398
+ gap: 6px;
2399
+ font-size: ${FontSizes.DEFAULT};
2400
+ font-family: ${FontStyles.DEFAULT};
2401
+ font-weight: ${props => (props.$isActive ? 500 : 400)};
2402
+ color: ${props => (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)};
2403
+ line-height: 1em;
2404
+ padding: 16px 30px 12px;
2405
+ margin: 0 0 -1px 0;
2406
+ border-bottom-width: 4px;
2407
+ border-bottom-style: solid;
2408
+ border-bottom-color: ${props => props.$isActive ? props.theme.PRIMARY_COLOR.Hex : 'transparent'};
2409
+ cursor: ${props => (props.$isActive ? 'default' : 'pointer')};
2410
+ box-sizing: border-box;
2411
+ &:hover {
2412
+ color: ${props => (props.$isActive ? Colors.BLACK.Hex : props.theme.PRIMARY_COLOR.Hex)};
2413
+ font-weight: 500;
2414
+ }
2386
2415
  `;
2387
2416
  Tab.defaultProps = { theme: EditableTheme };
2388
- const Badge = styled.div `
2389
- display: flex;
2390
- width: 18px;
2391
- height: 18px;
2392
- justify-content: center;
2393
- align-items: center;
2394
- border-radius: 9px;
2395
- background: ${props => (props.$isError ? Colors.RED.Hex : props.theme.PRIMARY_COLOR.Hex)};
2396
- color: #fff;
2397
- font-family: ${FontStyles.DEFAULT};
2398
- font-size: 12px;
2399
- font-weight: 500;
2400
- line-height: 1;
2401
- letter-spacing: 1px;
2417
+ const Badge = styled.div `
2418
+ display: flex;
2419
+ width: 18px;
2420
+ height: 18px;
2421
+ justify-content: center;
2422
+ align-items: center;
2423
+ border-radius: 9px;
2424
+ background: ${props => (props.$isError ? Colors.RED.Hex : props.theme.PRIMARY_COLOR.Hex)};
2425
+ color: #fff;
2426
+ font-family: ${FontStyles.DEFAULT};
2427
+ font-size: 12px;
2428
+ font-weight: 500;
2429
+ line-height: 1;
2430
+ letter-spacing: 1px;
2402
2431
  `;
2403
2432
  Badge.defaultProps = { theme: EditableTheme };
2404
2433
  const Tabs = (_a) => {
@@ -2410,29 +2439,29 @@ const Tabs = (_a) => {
2410
2439
  label));
2411
2440
  })));
2412
2441
  };
2413
- Tabs.defaultProps = {};
2414
-
2415
- const Track = styled.div `
2416
- height: 24px;
2417
- border-radius: 12px;
2418
- background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
2419
- display: flex;
2420
- align-items: center;
2421
- cursor: pointer;
2422
- width: 40px;
2423
- padding: 2px;
2424
- box-sizing: border-box;
2425
- `;
2426
- const Handle = styled.div `
2427
- width: 20px;
2428
- height: 20px;
2429
- border-radius: 10px;
2430
- background: #ffffff;
2431
- margin-left: ${props => (props.$on ? 'auto' : '0px')};
2432
- display: flex;
2433
- align-items: center;
2434
- justify-content: center;
2435
- box-sizing: border-box;
2442
+ Tabs.defaultProps = {};
2443
+
2444
+ const Track = styled.div `
2445
+ height: 24px;
2446
+ border-radius: 12px;
2447
+ background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
2448
+ display: flex;
2449
+ align-items: center;
2450
+ cursor: pointer;
2451
+ width: 40px;
2452
+ padding: 2px;
2453
+ box-sizing: border-box;
2454
+ `;
2455
+ const Handle = styled.div `
2456
+ width: 20px;
2457
+ height: 20px;
2458
+ border-radius: 10px;
2459
+ background: #ffffff;
2460
+ margin-left: ${props => (props.$on ? 'auto' : '0px')};
2461
+ display: flex;
2462
+ align-items: center;
2463
+ justify-content: center;
2464
+ box-sizing: border-box;
2436
2465
  `;
2437
2466
  const Toggle = (_a) => {
2438
2467
  var { onClick, on } = _a, accessibleProps = __rest(_a, ["onClick", "on"]);
@@ -2441,32 +2470,32 @@ const Toggle = (_a) => {
2441
2470
  React.createElement(Handle, { "$on": on },
2442
2471
  React.createElement(Icon, { color: on ? Colors.GREEN.Hex : Colors.BLACK.Hex, path: on ? mdiCheck : mdiClose, size: '16px' }))));
2443
2472
  };
2444
- Toggle.defaultProps = {};
2445
-
2446
- const Container = styled.div `
2447
- width: 100%;
2448
- padding: 40px auto;
2449
- gap: 20px;
2450
- display: flex;
2451
- flex-direction: column;
2452
- justify-items: center;
2453
- align-items: center;
2454
- `;
2455
- const Wrapper = styled.div `
2456
- gap: 10px;
2457
- display: flex;
2458
- flex-direction: column;
2459
- justify-items: center;
2460
- align-items: center;
2461
- `;
2462
- const StyledIcon = styled.div `
2463
- display: flex;
2464
- align-items: center;
2465
- justify-content: center;
2466
- width: 80px;
2467
- height: 80px;
2468
- border-radius: 40px;
2469
- background: #f5f5f5;
2473
+ Toggle.defaultProps = {};
2474
+
2475
+ const Container = styled.div `
2476
+ width: 100%;
2477
+ padding: 40px auto;
2478
+ gap: 20px;
2479
+ display: flex;
2480
+ flex-direction: column;
2481
+ justify-items: center;
2482
+ align-items: center;
2483
+ `;
2484
+ const Wrapper = styled.div `
2485
+ gap: 10px;
2486
+ display: flex;
2487
+ flex-direction: column;
2488
+ justify-items: center;
2489
+ align-items: center;
2490
+ `;
2491
+ const StyledIcon = styled.div `
2492
+ display: flex;
2493
+ align-items: center;
2494
+ justify-content: center;
2495
+ width: 80px;
2496
+ height: 80px;
2497
+ border-radius: 40px;
2498
+ background: #f5f5f5;
2470
2499
  `;
2471
2500
  const ZeroState = (_a) => {
2472
2501
  var { icon, title, description, action } = _a, accessibleProps = __rest(_a, ["icon", "title", "description", "action"]);
@@ -2477,7 +2506,7 @@ const ZeroState = (_a) => {
2477
2506
  React.createElement(Heading, { children: title, type: 'tertiary' }),
2478
2507
  description && React.createElement(Copy, { align: 'center', children: description, color: 'GRAY', type: 'default' })),
2479
2508
  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 }))));
2480
- };
2481
-
2482
- export { Accordion, ActionDialog, Alert, AppHeader, AppMenu, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Colors, Copy, DatePicker, Drawer, EditableTheme, Field, FieldGroup, FileUpload, FontSizes, FontStyles, Heading, Input$1 as Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, ProgressBar, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
2483
- //# sourceMappingURL=index.js.map
2509
+ };
2510
+
2511
+ export { Accordion, ActionDialog, Alert, AppHeader, AppMenu, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Colors, Copy, DatePicker, Drawer, EditableTheme, Field, FieldGroup, FileUpload, FontSizes, FontStyles, Heading, Input$1 as Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, ProgressBar, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
2512
+ //# sourceMappingURL=index.js.map