@hexure/ui 1.13.21 → 1.13.23

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, useRef, useEffect } 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, { useState, useContext, useRef, useEffect } from 'react';
2
+ import styled, { ThemeContext, keyframes } from 'styled-components';
3
+ import Icon, { Icon as Icon$1 } from '@mdi/react';
4
+ import { mdiChevronUp, mdiChevronDown, mdiInformationOutline, mdiLoading, 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,84 @@ 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 StyledComponent = styled.p `
117
+ color: ${props => Colors[props.$color || 'BLACK'].Hex};
118
+ font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
119
+ line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
120
+ letter-spacing: ${props => (props.$type === 'small' ? '1px' : '0px')};
121
+ font-weight: ${props => (props.$type === 'bold' ? '500' : '400')};
122
+ font-style: ${props => (props.$type === 'italic' ? 'italic' : 'normal')};
123
+ text-decoration: ${props => ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none'};
124
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
125
+ margin: ${props => props.$margin || '0px'};
126
+ padding: ${props => props.$padding || '0px'};
127
+ text-align: ${props => props.$align || 'left'};
128
+ box-sizing: border-box;
129
+ `;
130
+ const Copy = ({ children, align = '', margin = '', padding = '', type = 'default', color = 'BLACK', }) => {
131
+ return (React.createElement(StyledComponent, { "$align": align, "$color": color, "$margin": margin, "$padding": padding, "$type": type }, children));
132
+ };
133
+ Copy.defaultProps = {
134
+ type: 'default',
135
+ };
136
+
137
+ const Wrapper$h = styled.div `
138
+ display: inline-block;
139
+ position: relative;
140
+ height: 16px;
141
+ `;
142
+ const StyledIcon$6 = styled(Icon) `
143
+ width: 16px;
144
+ height: 16px;
145
+ margin: 0px 6px;
146
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
147
+ cursor: pointer;
148
+ `;
149
+ StyledIcon$6.defaultProps = { theme: EditableTheme };
150
+ const positions = {
151
+ 'right-top': {
152
+ top: '0px',
153
+ left: '28px',
154
+ },
155
+ 'right-bottom': {
156
+ bottom: '0px',
157
+ left: '28px',
158
+ },
159
+ 'right-center': {
160
+ top: '50%',
161
+ left: '28px',
162
+ transform: 'translateY(-50%)',
163
+ },
164
+ 'left-top': {
165
+ top: '0px',
166
+ right: '28px',
167
+ },
168
+ 'left-bottom': {
169
+ bottom: '0px',
170
+ right: '28px',
171
+ },
172
+ 'left-center': {
173
+ top: '50%',
174
+ right: '28px',
175
+ transform: 'translateY(-50%)',
176
+ },
177
+ };
178
+ const Content$3 = styled.div(props => (Object.assign({ position: 'absolute', borderRadius: '4px', borderWidth: '1px', borderStyle: 'solid', borderColor: props.theme.PRIMARY_COLOR.Hex, background: '#ffffff', boxShadow: '0px 5px 30px -10px rgba(0, 0, 0, 0.5)', width: props.$width || '240px', padding: '10px 12px', zIndex: 9999 }, positions[props.$position])));
179
+ Content$3.defaultProps = { theme: EditableTheme };
180
+ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
181
+ const [show_content, toggleContent] = useState(false);
182
+ return (React.createElement(Wrapper$h, { onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
183
+ trigger || React.createElement(StyledIcon$6, { path: mdiInformationOutline }),
184
+ show_content ? (React.createElement(Content$3, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
185
+ };
186
+
187
+ const StyledButton = styled.button `
188
+ height: ${props => (props.$small ? '30px' : '40px')};
189
+ line-height: 1em;
190
+ border-radius: ${props => (props.$small ? '15px' : '20px')};
191
+ margin: ${props => props.$margin || '0px'};
121
192
  padding: ${props => {
122
193
  if (props.$hasChildren) {
123
194
  if (props.$small) {
@@ -128,9 +199,9 @@ const StyledButton = styled.button `
128
199
  }
129
200
  }
130
201
  return '0px';
131
- }};
132
- outline: none;
133
- background: ${props => props.$bg_color || props.theme.PRIMARY_COLOR.Hex};
202
+ }};
203
+ outline: none;
204
+ background: ${props => props.$bg_color || props.theme.PRIMARY_COLOR.Hex};
134
205
  width: ${props => {
135
206
  if (props.$hasChildren) {
136
207
  return 'auto';
@@ -139,56 +210,56 @@ const StyledButton = styled.button `
139
210
  return '30px';
140
211
  }
141
212
  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')};
213
+ }};
214
+ cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
215
+ display: flex;
216
+ align-items: center;
217
+ justify-content: center;
218
+ opacity: ${props => (props.$disabled ? 0.6 : 0.9)};
219
+ border-width: 1px;
220
+ border-style: solid;
221
+ border-color: ${props => props.$border_color || props.theme.PRIMARY_COLOR.Hex};
222
+ box-sizing: border-box;
223
+
224
+ &:active,
225
+ &:focus,
226
+ &:hover {
227
+ opacity: ${props => (props.$disabled ? 0.6 : 1)};
228
+ }
229
+ `;
230
+ const Label$5 = styled.span `
231
+ color: ${props => props.$content_color || '#fff'};
232
+ font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
233
+ font-family: ${FontStyles.DEFAULT};
234
+ font-weight: 500;
235
+ line-height: 1;
236
+ `;
237
+ const StyledIcon$5 = styled.span `
238
+ margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
239
+ margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
240
+ display: flex;
241
+ align-items: center;
242
+ box-sizing: border-box;
243
+ `;
244
+ const Badge$1 = styled.span `
245
+ width: ${props => (props.$small ? '20px' : '24px')};
246
+ height: ${props => (props.$small ? '20px' : '24px')};
247
+ line-height: 1;
248
+ display: flex;
249
+ align-items: center;
250
+ justify-content: center;
251
+ border-radius: 100%;
252
+ background-color: ${props => props.$bg_color || '#fff'};
253
+ color: ${props => props.$content_color || props.theme.PRIMARY_COLOR.Hex};
254
+ font-size: ${props => (props.$small ? '10px' : '12px')};
255
+ font-weight: 600;
256
+ font-family: ${FontStyles.DEFAULT};
257
+ letter-spacing: -1px;
258
+ margin-left: ${props => (props.$small ? '5px' : '10px')};
259
+ margin-right: ${props => (props.$small ? '-5px' : '-10px')};
189
260
  `;
190
261
  const Button = (_a) => {
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"]);
262
+ var { badge, children, disabled = false, icon, isForm = false, loading = false, margin = '', onClick, small = false, format = 'primary', toolTip } = _a, accessibleProps = __rest(_a, ["badge", "children", "disabled", "icon", "isForm", "loading", "margin", "onClick", "small", "format", "toolTip"]);
192
263
  const theme = useContext(ThemeContext) || EditableTheme;
193
264
  const has_children = children && children.length > 0;
194
265
  const button_type_mapping = {
@@ -222,63 +293,46 @@ const Button = (_a) => {
222
293
  },
223
294
  };
224
295
  const format_styles = button_type_mapping[format];
225
- return (React.createElement(StyledButton, Object.assign({ "$bg_color": format_styles.background_color, "$border_color": format_styles.border_color, "$disabled": disabled || loading, "$hasChildren": !!has_children, "$margin": margin, "$small": small, onClick: disabled || loading ? undefined : onClick, type: isForm ? 'submit' : undefined }, accessibleProps),
296
+ const button_view = (React.createElement(StyledButton, Object.assign({ "$bg_color": format_styles.background_color, "$border_color": format_styles.border_color, "$disabled": disabled || loading, "$hasChildren": !!has_children, "$margin": margin, "$small": small, onClick: disabled || loading ? undefined : onClick, type: isForm ? 'submit' : undefined }, accessibleProps),
226
297
  children ? (React.createElement(Label$5, { "$content_color": format_styles.content_color, "$small": small }, children)) : null,
227
- icon && !badge ? (React.createElement(StyledIcon$6, { "$hasChildren": !!has_children },
298
+ icon && !badge ? (React.createElement(StyledIcon$5, { "$hasChildren": !!has_children },
228
299
  React.createElement(Icon, { color: format ? format_styles.content_color : '#fff', path: loading ? mdiLoading : icon, size: small ? '20px' : '24px', spin: loading }))) : null,
229
300
  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;
245
- `;
246
- const Copy = ({ children, align = '', margin = '', padding = '', type = 'default', color = 'BLACK', }) => {
247
- return (React.createElement(StyledComponent, { "$align": align, "$color": color, "$margin": margin, "$padding": padding, "$type": type }, children));
301
+ if (toolTip && Object.keys(toolTip).length) {
302
+ return (React.createElement(Tooltip, Object.assign({}, toolTip, { trigger: (toolTip === null || toolTip === void 0 ? void 0 : toolTip.trigger) || button_view }), toolTip === null || toolTip === void 0 ? void 0 : toolTip.children));
303
+ }
304
+ return button_view;
248
305
  };
249
- Copy.defaultProps = {
250
- type: 'default',
251
- };
252
-
253
- const H1 = styled.h1 `
254
- color: ${Colors.BLACK.Hex};
255
- font-size: 30px;
256
- font-weight: ${props => (props.$bold ? '500' : '400')};
257
- line-height: 1.4em;
258
- font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
259
- margin: ${props => props.$margin || '0px'};
260
- padding: ${props => props.$padding || '0px'};
261
- box-sizing: border-box;
262
- `;
263
- const H2 = styled.h2 `
264
- color: ${Colors.BLACK.Hex};
265
- font-size: 24px;
266
- font-weight: ${props => (props.$bold ? '500' : '400')};
267
- line-height: 1.33em;
268
- font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
269
- margin: ${props => props.$margin || '0px'};
270
- padding: ${props => props.$padding || '0px'};
271
- box-sizing: border-box;
272
- `;
273
- const H3 = styled.h3 `
274
- color: ${Colors.BLACK.Hex};
275
- font-size: 18px;
276
- font-weight: ${props => (props.$bold ? '500' : '400')};
277
- line-height: 1.33em;
278
- font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
279
- margin: ${props => props.$margin || '0px'};
280
- padding: ${props => props.$padding || '0px'};
281
- box-sizing: border-box;
306
+
307
+ const H1 = styled.h1 `
308
+ color: ${Colors.BLACK.Hex};
309
+ font-size: 30px;
310
+ font-weight: ${props => (props.$bold ? '500' : '400')};
311
+ line-height: 1.4em;
312
+ font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
313
+ margin: ${props => props.$margin || '0px'};
314
+ padding: ${props => props.$padding || '0px'};
315
+ box-sizing: border-box;
316
+ `;
317
+ const H2 = styled.h2 `
318
+ color: ${Colors.BLACK.Hex};
319
+ font-size: 24px;
320
+ font-weight: ${props => (props.$bold ? '500' : '400')};
321
+ line-height: 1.33em;
322
+ font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
323
+ margin: ${props => props.$margin || '0px'};
324
+ padding: ${props => props.$padding || '0px'};
325
+ box-sizing: border-box;
326
+ `;
327
+ const H3 = styled.h3 `
328
+ color: ${Colors.BLACK.Hex};
329
+ font-size: 18px;
330
+ font-weight: ${props => (props.$bold ? '500' : '400')};
331
+ line-height: 1.33em;
332
+ font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
333
+ margin: ${props => props.$margin || '0px'};
334
+ padding: ${props => props.$padding || '0px'};
335
+ box-sizing: border-box;
282
336
  `;
283
337
  const Heading = (_a) => {
284
338
  var { bold, children, margin, padding, type } = _a, accessibleProps = __rest(_a, ["bold", "children", "margin", "padding", "type"]);
@@ -297,33 +351,33 @@ const Heading = (_a) => {
297
351
  Heading.defaultProps = {
298
352
  bold: false,
299
353
  type: 'primary',
300
- };
301
-
302
- const Wrapper$h = styled.div `
303
- position: fixed;
304
- top: 0;
305
- right: 0;
306
- bottom: 0;
307
- left: 0;
308
- z-index: 9999;
309
- background: rgba(0, 0, 0, 0.8);
310
- display: flex;
311
- align-items: center;
312
- justify-content: center;
313
- box-sizing: border-box;
354
+ };
355
+
356
+ const Wrapper$g = styled.div `
357
+ position: fixed;
358
+ top: 0;
359
+ right: 0;
360
+ bottom: 0;
361
+ left: 0;
362
+ z-index: 9999;
363
+ background: rgba(0, 0, 0, 0.8);
364
+ display: flex;
365
+ align-items: center;
366
+ justify-content: center;
367
+ box-sizing: border-box;
314
368
  `;
315
369
  const Container$4 = styled.dialog(props => (Object.assign({ maxWidth: '600px', width: 'auto', borderRadius: '8px', overflow: 'hidden', boxShadow: '0px 10px 30px -15px rgba(0, 0, 0, 0.2)', outline: 'none', border: 'none', position: 'relative', padding: '40px', textAlign: 'center', boxSizing: 'border-box', wordWrap: 'break-word' }, props.$customStyle)));
316
- const Buttons$1 = styled.div `
317
- display: flex;
318
- gap: 10px;
319
- align-items: center;
320
- justify-content: center;
321
- margin-top: 30px;
322
- box-sizing: border-box;
370
+ const Buttons$1 = styled.div `
371
+ display: flex;
372
+ gap: 10px;
373
+ align-items: center;
374
+ justify-content: center;
375
+ margin-top: 30px;
376
+ box-sizing: border-box;
323
377
  `;
324
378
  const ActionDialog = (_a) => {
325
379
  var { description, title, primaryButton, secondaryButton, tertiaryButton, style = {} } = _a, accessibleProps = __rest(_a, ["description", "title", "primaryButton", "secondaryButton", "tertiaryButton", "style"]);
326
- return (React.createElement(Wrapper$h, Object.assign({}, accessibleProps),
380
+ return (React.createElement(Wrapper$g, Object.assign({}, accessibleProps),
327
381
  React.createElement(Container$4, { "$customStyle": style, open: true },
328
382
  title ? (React.createElement(Heading, { margin: '0px 0px 20px 0px', type: 'secondary' }, title)) : null,
329
383
  description ? React.createElement(Copy, { align: 'center' }, description) : null,
@@ -331,29 +385,29 @@ const ActionDialog = (_a) => {
331
385
  tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary' }))) : null,
332
386
  secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' }))) : null,
333
387
  primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' }))) : null)) : null)));
334
- };
335
-
336
- const Wrapper$g = 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;
388
+ };
389
+
390
+ const Wrapper$f = styled.div `
391
+ border: 1px solid #f1f1f1;
392
+ border-radius: 4px;
393
+ border-left-width: 4px;
394
+ box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);
395
+ display: flex;
396
+ align-items: flex-start;
397
+ gap: ${({ $small }) => ($small ? '8px' : '20px')};
398
+ padding: ${({ $small }) => ($small ? '11px' : '20px')};
399
+ box-sizing: border-box;
400
+ `;
401
+ const StyledIcon$4 = styled(Icon) `
402
+ flex-shrink: 0;
403
+ `;
404
+ const Action$1 = styled.div `
405
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
406
+ font-size: ${FontSizes.DEFAULT};
407
+ font-family: ${FontStyles.DEFAULT};
408
+ font-weight: 500;
409
+ cursor: pointer;
410
+ margin-top: 6px;
357
411
  `;
358
412
  Action$1.defaultProps = { theme: EditableTheme };
359
413
  const Alert = (_a) => {
@@ -377,14 +431,14 @@ const Alert = (_a) => {
377
431
  icon: mdiCheckboxMarkedCircleOutline,
378
432
  },
379
433
  };
380
- return (React.createElement(Wrapper$g, Object.assign({}, accessibleProps, { "$small": small, style: { borderLeftColor: type_mapping[type].color } }),
381
- React.createElement(StyledIcon$5, { color: type_mapping[type].color, path: type_mapping[type].icon, size: small ? '20px' : '30px' }),
434
+ return (React.createElement(Wrapper$f, Object.assign({}, accessibleProps, { "$small": small, style: { borderLeftColor: type_mapping[type].color } }),
435
+ React.createElement(StyledIcon$4, { color: type_mapping[type].color, path: type_mapping[type].icon, size: small ? '20px' : '30px' }),
382
436
  React.createElement("div", null,
383
437
  title && !small ? (React.createElement(Heading, { bold: true, margin: '2px 0 0 0', type: 'tertiary' }, title)) : null,
384
438
  description ? (React.createElement(Copy, { margin: small ? '' : '6px 0 0 0 !important' }, description)) : null,
385
439
  action && !small ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
386
- };
387
-
440
+ };
441
+
388
442
  const colorMapping = {
389
443
  black: {
390
444
  fill_1: '#000000',
@@ -425,154 +479,154 @@ const Logo = (_a) => {
425
479
  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
480
  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
481
  }
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;
482
+ };
483
+
484
+ const Container$3 = styled.header `
485
+ width: 100%;
486
+ display: flex;
487
+ padding: 20px;
488
+ box-sizing: border-box;
489
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
490
+ background: '#fff';
491
+ justify-content: space-between;
492
+ `;
493
+ const LogoWrapper = styled.div `
494
+ display: flex;
495
+ align-items: center;
496
+ `;
497
+ const Image = styled.img `
498
+ height: 30px !important;
499
+ width: auto !important;
500
+ `;
501
+ const Buttons = styled.div `
502
+ display: flex;
503
+ flex-direction: row;
504
+ column-gap: 10px;
505
+ flex-direction: reverse;
452
506
  `;
453
507
  const AppHeader = ({ logoUrl, buttons = [] }) => {
454
508
  return (React.createElement(Container$3, null,
455
509
  React.createElement(LogoWrapper, null, logoUrl ? React.createElement(Image, { src: logoUrl }) : React.createElement(Logo, { height: '30px' })),
456
510
  React.createElement(Buttons, null, buttons.map((b, i) => (React.createElement(Button, Object.assign({ key: i }, b)))))));
457
- };
458
-
459
- const Wrapper$f = 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;
511
+ };
512
+
513
+ const Wrapper$e = styled.div `
514
+ display: inline-block;
515
+ border-radius: 4px;
516
+ padding: 4px 6px;
517
+ background: ${props => Colors[props.$color].Hex};
518
+ color: #ffffff;
519
+ box-sizing: border-box;
520
+ cursor: ${props => (props.$removable ? 'pointer' : 'default')};
521
+ `;
522
+ const Content$2 = styled.div `
523
+ display: flex;
524
+ align-items: center;
525
+ `;
526
+ const Label$4 = styled.div `
527
+ color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
528
+ font-size: ${FontSizes.SMALL};
529
+ font-weight: 500;
530
+ font-family: ${FontStyles.DEFAULT};
531
+ line-height: 1.2em;
532
+ `;
533
+ const Remove$1 = styled.div `
534
+ margin-left: 10px;
535
+ display: flex;
536
+ align-items: center;
483
537
  `;
484
538
  const Tag = (_a) => {
485
539
  var { children, color = 'PRIMARY', removable, onClick } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
486
- return (React.createElement(Wrapper$f, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps),
487
- React.createElement(Content$3, null,
540
+ return (React.createElement(Wrapper$e, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps),
541
+ React.createElement(Content$2, null,
488
542
  React.createElement(Label$4, { "$color": color }, children),
489
543
  removable ? (React.createElement(Remove$1, null,
490
544
  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$1 = 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;
545
+ };
546
+
547
+ const SidebarContainer = styled.div `
548
+ border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
549
+ display: flex;
550
+ flex-direction: column;
551
+ height: 100%;
552
+ padding: 12px 0px;
553
+ width: ${props => (props.$isOpen ? props.$width : '60px')};
554
+ `;
555
+ const MenuWrapper$1 = styled.div `
556
+ display: flex;
557
+ align-items: center;
558
+ border-left-width: 4px;
559
+ border-left-style: solid;
560
+ border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
561
+ cursor: pointer;
562
+ height: 40px;
563
+
564
+ &:hover > div {
565
+ color: ${props => props.$color.Hex};
566
+ }
567
+
568
+ &:hover > svg > path {
569
+ fill: ${Colors.BLACK.Hex} !important;
570
+ }
571
+ `;
572
+ const MenuIcon = styled(Icon) `
573
+ width: 20px;
574
+ height: 20px;
575
+ margin: 0px 16px;
576
+ flex-shrink: 0;
577
+
578
+ > path {
579
+ fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
580
+ }
581
+ `;
582
+ const MenuLabel = styled.div `
583
+ color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
584
+ flex: 1;
585
+ font-size: 12px;
586
+ font-style: normal;
587
+ font-weight: 600;
588
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
589
+ line-height: 16px;
590
+ padding: 12px 0px;
591
+ letter-spacing: 1px;
592
+ `;
593
+ const SubMenu = styled.div `
594
+ overflow-y: auto;
595
+ padding-left: 44px;
596
+ padding-right: 20px;
597
+ padding-bottom: 10px;
598
+ `;
599
+ const SubMenuItem = styled.a `
600
+ display: block;
601
+ padding: 8px 12px;
602
+ border-radius: 8px;
603
+ font-size: 13px;
604
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
605
+ line-height: 20px;
606
+ text-decoration: none;
607
+ font-weight: ${({ $active }) => ($active ? '500' : '400')};
608
+ color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
609
+ background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
610
+ cursor: pointer;
611
+
612
+ &:hover {
613
+ color: ${props => props.$color.Hex};
614
+ font-weight: 500;
615
+ }
616
+ `;
617
+ const Footer = styled.div `
618
+ padding: 20px 14px 0px;
619
+ display: flex;
620
+ align-items: center;
621
+ `;
622
+ const FooterInfo = styled.div `
623
+ display: flex;
624
+ flex-direction: column;
625
+ flex: 1;
626
+ align-items: flex-start;
627
+ `;
628
+ const SidebarMenuContainer = styled.div `
629
+ flex-grow: 1;
576
630
  `;
577
631
  const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px' }) => {
578
632
  const theme = useContext(ThemeContext) || EditableTheme;
@@ -596,79 +650,79 @@ const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px' }) => {
596
650
  e.preventDefault();
597
651
  toggleCollapse(!collapsed);
598
652
  }, small: true }))));
599
- };
600
-
601
- const Wrapper$e = 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
- `;
610
- Wrapper$e.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;
653
+ };
654
+
655
+ const Wrapper$d = styled.div `
656
+ border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
657
+ border-radius: 8px;
658
+ box-sizing: border-box;
659
+ display: flex;
660
+ align-items: center;
661
+ justify-content: space-between;
662
+ padding: 16px 20px;
663
+ `;
664
+ Wrapper$d.defaultProps = { theme: EditableTheme };
665
+ const Left = styled.div `
666
+ box-sizing: border-box;
667
+ display: flex;
668
+ align-items: center;
669
+ justify-content: space-between;
670
+ flex-shrink: 0;
671
+ `;
672
+ const Info$1 = styled.div `
673
+ box-sizing: border-box;
674
+ display: flex;
675
+ align-items: center;
676
+ margin-right: 30px;
677
+ `;
678
+ const Selected = styled.span `
679
+ font-size: 14px;
680
+ font-weight: 400;
681
+ font-family: ${FontStyles.DEFAULT};
682
+ color: ${Colors.BLACK.Hex};
683
+ line-height: 1;
684
+ `;
685
+ const Clear = styled.span `
686
+ font-size: 14px;
687
+ font-weight: 400;
688
+ font-family: ${FontStyles.DEFAULT};
689
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
690
+ line-height: 1;
691
+ cursor: pointer;
692
+ padding-left: 10px;
693
+ margin-left: 10px;
694
+ border-left: 1px solid #ccc;
641
695
  `;
642
696
  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;
697
+ const Actions$1 = styled.div `
698
+ box-sizing: border-box;
699
+ display: flex;
700
+ align-items: center;
701
+ column-gap: 10px;
702
+ `;
703
+ const Error$1 = styled.div `
704
+ box-sizing: border-box;
705
+ display: flex;
706
+ align-items: center;
707
+ background: rgba(${Colors.RED.Rgb}, 0.1);
708
+ border-radius: 4px;
709
+ padding: 6px 8px;
710
+ text-overflow: ellipsis;
711
+ white-space: nowrap;
712
+ overflow: hidden;
713
+ margin-left: 30px;
714
+ `;
715
+ const ErrorMsg = styled.span `
716
+ font-size: 14px;
717
+ font-weight: 500;
718
+ font-family: ${FontStyles.DEFAULT};
719
+ line-height: 1em;
720
+ color: ${Colors.RED.Hex};
721
+ margin-left: 8px;
668
722
  `;
669
723
  const BulkActionBar = (_a) => {
670
724
  var { actions = [], errorMsg, onClear, selectedCount = 0 } = _a, accessibleProps = __rest(_a, ["actions", "errorMsg", "onClear", "selectedCount"]);
671
- return (React.createElement(Wrapper$e, Object.assign({}, accessibleProps),
725
+ return (React.createElement(Wrapper$d, Object.assign({}, accessibleProps),
672
726
  React.createElement(Left, null,
673
727
  React.createElement(Info$1, null,
674
728
  React.createElement(Selected, null,
@@ -679,73 +733,73 @@ const BulkActionBar = (_a) => {
679
733
  errorMsg ? (React.createElement(Error$1, null,
680
734
  React.createElement(Icon, { color: Colors.RED.Hex, path: mdiInformationOutline, size: '20px' }),
681
735
  React.createElement(ErrorMsg, null, errorMsg))) : null));
682
- };
683
-
684
- const Wrapper$d = 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
- }
736
+ };
737
+
738
+ const Wrapper$c = styled.div `
739
+ background: #fff;
740
+ border-radius: 8px;
741
+ box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
742
+ display: flex;
743
+ flex-direction: column;
744
+ gap: 4px;
745
+ max-height: ${props => props.$maxHeight || '312px'};
746
+ padding: 10px;
747
+ width: 200px;
748
+ `;
749
+ const MenuItem = styled.div `
750
+ align-items: center;
751
+ border-radius: 8px;
752
+ border: 1px solid transparent;
753
+ display: flex;
754
+ gap: 8px;
755
+ height: 38px;
756
+ padding: 8px;
757
+ &:hover {
758
+ background: rgba(1, 147, 215, 0.1);
759
+ cursor: pointer;
760
+
761
+ svg,
762
+ path {
763
+ fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
764
+ }
765
+ }
712
766
  `;
713
767
  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;
722
- color: ${({ disabled }) => (disabled ? Colors.LIGHT_GRAY.Hex : 'inherit')};
723
- pointer-events: ${({ disabled }) => (disabled ? 'none' : 'auto')};
768
+ const Title$1 = styled.span `
769
+ font-family: Roboto;
770
+ font-size: 14px;
771
+ font-weight: 400;
772
+ height: auto;
773
+ letter-spacing: 0px;
774
+ line-height: 22px;
775
+ text-align: left;
776
+ color: ${({ disabled }) => (disabled ? Colors.LIGHT_GRAY.Hex : 'inherit')};
777
+ pointer-events: ${({ disabled }) => (disabled ? 'none' : 'auto')};
724
778
  `;
725
779
  Title$1.defaultProps = {
726
780
  disabled: false,
727
781
  };
728
782
  const MoreMenu = (_a) => {
729
783
  var { maxHeight, menuItems = [] } = _a, accessibleProps = __rest(_a, ["maxHeight", "menuItems"]);
730
- return (React.createElement(Wrapper$d, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item, i) => {
784
+ return (React.createElement(Wrapper$c, Object.assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map((item, i) => {
731
785
  var _a;
732
786
  return (React.createElement(MenuItem, { key: i, onClick: item.onClick },
733
787
  item.icon ? (React.createElement(Icon, { color: item.disabled ? Colors.LIGHT_GRAY.Hex : Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
734
788
  React.createElement(Title$1, { disabled: (_a = item.disabled) !== null && _a !== void 0 ? _a : false }, item.label)));
735
789
  })));
736
- };
737
-
738
- const MenuWrapper = styled.div `
739
- position: relative; // Ensure this is relative
740
- display: inline-block;
741
- `;
742
- const StyledMoreMenu = styled(MoreMenu) `
743
- position: absolute; // Changed from fixed to absolute
744
- top: ${props => props.$top};
745
- left: ${props => props.$left};
746
- width: ${props => props.$menuWidth};
747
- max-height: ${props => props.maxHeight};
748
- z-index: 10;
790
+ };
791
+
792
+ const MenuWrapper = styled.div `
793
+ position: relative; // Ensure this is relative
794
+ display: inline-block;
795
+ `;
796
+ const StyledMoreMenu = styled(MoreMenu) `
797
+ position: absolute; // Changed from fixed to absolute
798
+ top: ${props => props.$top};
799
+ left: ${props => props.$left};
800
+ width: ${props => props.$menuWidth};
801
+ max-height: ${props => props.maxHeight};
802
+ z-index: 10;
749
803
  `;
750
804
  const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'bottomLeft', format = 'primary', menuWidth = '200px', enableHover = true, enableClick = false, show = false, }) => {
751
805
  const [showMenu, toggleMenu] = useState(false);
@@ -819,135 +873,85 @@ const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = '
819
873
  return (React.createElement(MenuWrapper, { onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, ref: menuWrapperRef },
820
874
  React.createElement(Button, { disabled: disabled, format: format, icon: mdiDotsHorizontal, small: small }, label),
821
875
  showMenu && (React.createElement(StyledMoreMenu, { "$left": menuPosition.left, "$menuWidth": menuWidth, "$top": menuPosition.top, maxHeight: maxHeight, menuItems: menuItems }))));
822
- };
823
-
824
- const Wrapper$c = styled.div `
825
- display: inline-block;
826
- position: relative;
827
- height: 16px;
828
- `;
829
- const StyledIcon$4 = styled(Icon) `
830
- width: 16px;
831
- height: 16px;
832
- margin: 0px 6px;
833
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
834
- cursor: pointer;
835
- `;
836
- StyledIcon$4.defaultProps = { theme: EditableTheme };
837
- const positions = {
838
- 'right-top': {
839
- top: '0px',
840
- left: '28px',
841
- },
842
- 'right-bottom': {
843
- bottom: '0px',
844
- left: '28px',
845
- },
846
- 'right-center': {
847
- top: '50%',
848
- left: '28px',
849
- transform: 'translateY(-50%)',
850
- },
851
- 'left-top': {
852
- top: '0px',
853
- right: '28px',
854
- },
855
- 'left-bottom': {
856
- bottom: '0px',
857
- right: '28px',
858
- },
859
- 'left-center': {
860
- top: '50%',
861
- right: '28px',
862
- transform: 'translateY(-50%)',
863
- },
864
876
  };
865
- const Content$2 = styled.div(props => (Object.assign({ position: 'absolute', borderRadius: '4px', borderWidth: '1px', borderStyle: 'solid', borderColor: props.theme.PRIMARY_COLOR.Hex, background: '#ffffff', boxShadow: '0px 5px 30px -10px rgba(0, 0, 0, 0.5)', width: props.$width || '240px', padding: '10px 12px', zIndex: 9999 }, positions[props.$position])));
866
- Content$2.defaultProps = { theme: EditableTheme };
867
- const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
868
- const [show_content, toggleContent] = useState(false);
869
- return (React.createElement(Wrapper$c, { onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
870
- trigger || React.createElement(StyledIcon$4, { path: mdiInformationOutline }),
871
- show_content ? (React.createElement(Content$2, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
872
- };
873
-
874
- const Wrapper$b = styled.label `
875
- border-radius: 4px;
876
- padding: 4px 0px 4px 6px;
877
- margin-left: -6px;
878
- cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
879
- display: flex;
880
- align-items: center;
881
- font-size: ${FontSizes.DEFAULT};
882
- line-height: 1.6em;
883
- box-sizing: border-box;
884
- position: relative;
885
-
886
- &:focus-within {
887
- background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
888
- }
877
+
878
+ const Wrapper$b = styled.label `
879
+ border-radius: 4px;
880
+ padding: 4px 0px 4px 6px;
881
+ margin-left: -6px;
882
+ cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
883
+ display: flex;
884
+ align-items: center;
885
+ font-size: ${FontSizes.DEFAULT};
886
+ line-height: 1.6em;
887
+ box-sizing: border-box;
888
+ position: relative;
889
+
890
+ &:focus-within {
891
+ background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
892
+ }
889
893
  `;
890
894
  Wrapper$b.defaultProps = { theme: EditableTheme };
891
- const Input$2 = styled.input `
892
- font-size: 20px;
893
- margin: 0px;
894
- line-height: 1.1em;
895
- box-sizing: border-box;
896
- position: absolute;
897
- opacity: 0;
898
- cursor: pointer;
899
- height: 0;
900
- width: 0;
901
- &:checked + span {
902
- background-color: ${Colors.PRIMARY.Hex};
903
- border-color: ${Colors.PRIMARY.Hex};
904
- }
905
- &:checked:disabled + span {
906
- background-color: ${Colors.MEDIUM_GRAY.Hex};
907
- border-color: ${Colors.MEDIUM_GRAY.Hex};
908
- }
909
- &:disabled + span {
910
- background-color: #d3d3d3;
911
- border-color: #d3d3d3;
912
- }
913
- &:checked + span:after {
914
- display: block;
915
- }
916
- `;
917
- const Check$1 = styled.span `
918
- height: 17px;
919
- width: 17px;
920
- min-width: 17px;
921
- background-color: #fff;
922
- border-width: 2px;
923
- border-style: solid;
924
- border-color: ${props => (props.$invalid ? `${Colors.RED.Hex}` : `${Colors.GRAY.Hex}`)};
925
- box-sizing: border-box;
926
- position: relative;
927
- &:after {
928
- content: '';
929
- position: absolute;
930
- left: 3px;
931
- top: 0px;
932
- width: 7px;
933
- height: 12px;
934
- border: solid white;
935
- border-width: 0 3px 3px 0;
936
- -webkit-transform: rotate(45deg);
937
- -ms-transform: rotate(45deg);
938
- transform: rotate(45deg);
939
- box-sizing: border-box;
940
- display: none;
941
- }
942
- `;
943
- const Label$3 = styled.span `
944
- font-family: ${FontStyles.DEFAULT};
945
- font-size: ${FontSizes.DEFAULT};
946
- font-weight: 400;
947
- line-height: 1.6em;
948
- color: ${props => props.color || Colors.BLACK.Hex};
949
- margin-left: 6px;
950
- box-sizing: border-box;
895
+ const Input$2 = styled.input `
896
+ font-size: 20px;
897
+ margin: 0px;
898
+ line-height: 1.1em;
899
+ box-sizing: border-box;
900
+ position: absolute;
901
+ opacity: 0;
902
+ cursor: pointer;
903
+ height: 0;
904
+ width: 0;
905
+ &:checked + span {
906
+ background-color: ${Colors.PRIMARY.Hex};
907
+ border-color: ${Colors.PRIMARY.Hex};
908
+ }
909
+ &:checked:disabled + span {
910
+ background-color: ${Colors.MEDIUM_GRAY.Hex};
911
+ border-color: ${Colors.MEDIUM_GRAY.Hex};
912
+ }
913
+ &:disabled + span {
914
+ background-color: #d3d3d3;
915
+ border-color: #d3d3d3;
916
+ }
917
+ &:checked + span:after {
918
+ display: block;
919
+ }
920
+ `;
921
+ const Check$1 = styled.span `
922
+ height: 17px;
923
+ width: 17px;
924
+ min-width: 17px;
925
+ background-color: #fff;
926
+ border-width: 2px;
927
+ border-style: solid;
928
+ border-color: ${props => (props.$invalid ? `${Colors.RED.Hex}` : `${Colors.GRAY.Hex}`)};
929
+ box-sizing: border-box;
930
+ position: relative;
931
+ &:after {
932
+ content: '';
933
+ position: absolute;
934
+ left: 3px;
935
+ top: 0px;
936
+ width: 7px;
937
+ height: 12px;
938
+ border: solid white;
939
+ border-width: 0 3px 3px 0;
940
+ -webkit-transform: rotate(45deg);
941
+ -ms-transform: rotate(45deg);
942
+ transform: rotate(45deg);
943
+ box-sizing: border-box;
944
+ display: none;
945
+ }
946
+ `;
947
+ const Label$3 = styled.span `
948
+ font-family: ${FontStyles.DEFAULT};
949
+ font-size: ${FontSizes.DEFAULT};
950
+ font-weight: 400;
951
+ line-height: 1.6em;
952
+ color: ${props => props.color || Colors.BLACK.Hex};
953
+ margin-left: 6px;
954
+ box-sizing: border-box;
951
955
  `;
952
956
  const Checkbox = (_a) => {
953
957
  var { children, color, disabled, checked, onChange, invalid, tooltip } = _a, accessibleProps = __rest(_a, ["children", "color", "disabled", "checked", "onChange", "invalid", "tooltip"]);
@@ -957,16 +961,16 @@ const Checkbox = (_a) => {
957
961
  children ? (React.createElement(Label$3, { color: color },
958
962
  children,
959
963
  tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)) : null));
960
- };
961
-
962
- const SelectAll = styled.div `
963
- padding: 8px 12px;
964
- border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
965
- box-sizing: border-box;
964
+ };
965
+
966
+ const SelectAll = styled.div `
967
+ padding: 8px 12px;
968
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
969
+ box-sizing: border-box;
966
970
  `;
967
- const Options$1 = styled.div `
968
- padding: 12px;
969
- box-sizing: border-box;
971
+ const Options$1 = styled.div `
972
+ padding: 12px;
973
+ box-sizing: border-box;
970
974
  `;
971
975
  const Checklist = (_a) => {
972
976
  var { disabled, onChange, options, selected = [], showSelectAll } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "selected", "showSelectAll"]);
@@ -1003,70 +1007,70 @@ const Checklist = (_a) => {
1003
1007
  const checked = selected.includes(option.value);
1004
1008
  return (React.createElement(Checkbox, Object.assign({ key: i }, accessibleProps, { checked: checked, color: option.color, disabled: disabled, onChange: handleChange.bind(null, option) }), label));
1005
1009
  }))));
1006
- };
1007
-
1008
- const Wrapper$a = styled.div `
1009
- border-radius: 4px;
1010
- height: 40px;
1011
- background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
1012
- position: relative;
1013
- cursor: ${props => (props.$readOnly ? 'default' : 'pointer')};
1014
- border-width: 1px;
1015
- border-style: solid;
1016
- border-color: ${props => (props.$invalid ? Colors.RED.Hex : '#cccccc')};
1017
- border-radius: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.borderRadius) || '4px'};
1018
- flex-grow: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.flexGrow) || 0};
1019
- box-sizing: border-box;
1020
- padding: 10px 0px;
1021
- display: flex;
1022
- align-items: center;
1023
- width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1024
-
1025
- &:focus-within {
1026
- border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
1027
- }
1010
+ };
1011
+
1012
+ const Wrapper$a = styled.div `
1013
+ border-radius: 4px;
1014
+ height: 40px;
1015
+ background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
1016
+ position: relative;
1017
+ cursor: ${props => (props.$readOnly ? 'default' : 'pointer')};
1018
+ border-width: 1px;
1019
+ border-style: solid;
1020
+ border-color: ${props => (props.$invalid ? Colors.RED.Hex : '#cccccc')};
1021
+ border-radius: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.borderRadius) || '4px'};
1022
+ flex-grow: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.flexGrow) || 0};
1023
+ box-sizing: border-box;
1024
+ padding: 10px 0px;
1025
+ display: flex;
1026
+ align-items: center;
1027
+ width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1028
+
1029
+ &:focus-within {
1030
+ border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
1031
+ }
1028
1032
  `;
1029
1033
  Wrapper$a.defaultProps = { theme: EditableTheme };
1030
- const Trigger$1 = styled.select `
1031
- appearance: none;
1032
- box-shadow: none;
1033
- outline: none;
1034
- border: none;
1035
- color: ${Colors.BLACK.Hex};
1036
- font-size: ${FontSizes.DEFAULT};
1037
- font-weight: 400;
1038
- font-family: ${FontStyles.DEFAULT};
1039
- line-height: 2.9em;
1040
- background-color: transparent;
1041
- background-image: none;
1042
- width: 100%;
1043
- box-sizing: border-box;
1044
- padding: 0px 30px 0px 10px;
1045
- box-sizing: border-box;
1046
- position: relative;
1047
- z-index: 2;
1048
- `;
1049
- const IconWrapper$2 = styled(Icon) `
1050
- position: absolute;
1051
- right: 9px;
1052
- z-index: 1;
1053
- `;
1054
- const SearchInput$1 = styled.input `
1055
- position: absolute;
1056
- left: 2px;
1057
- top: 2px;
1058
- z-index: 999;
1059
- width: 90%;
1060
- height: 30px;
1061
- border: none;
1062
- outline: none;
1063
- color: ${Colors.BLACK.Hex};
1064
- font-family: ${FontStyles.DEFAULT};
1065
- font-size: ${FontSizes.DEFAULT};
1066
- font-weight: 400;
1067
- line-height: 2.9em;
1068
- overflow: hidden;
1069
- white-space: nowrap;
1034
+ const Trigger$1 = styled.select `
1035
+ appearance: none;
1036
+ box-shadow: none;
1037
+ outline: none;
1038
+ border: none;
1039
+ color: ${Colors.BLACK.Hex};
1040
+ font-size: ${FontSizes.DEFAULT};
1041
+ font-weight: 400;
1042
+ font-family: ${FontStyles.DEFAULT};
1043
+ line-height: 2.9em;
1044
+ background-color: transparent;
1045
+ background-image: none;
1046
+ width: 100%;
1047
+ box-sizing: border-box;
1048
+ padding: 0px 30px 0px 10px;
1049
+ box-sizing: border-box;
1050
+ position: relative;
1051
+ z-index: 2;
1052
+ `;
1053
+ const IconWrapper$2 = styled(Icon) `
1054
+ position: absolute;
1055
+ right: 9px;
1056
+ z-index: 1;
1057
+ `;
1058
+ const SearchInput$1 = styled.input `
1059
+ position: absolute;
1060
+ left: 2px;
1061
+ top: 2px;
1062
+ z-index: 999;
1063
+ width: 90%;
1064
+ height: 30px;
1065
+ border: none;
1066
+ outline: none;
1067
+ color: ${Colors.BLACK.Hex};
1068
+ font-family: ${FontStyles.DEFAULT};
1069
+ font-size: ${FontSizes.DEFAULT};
1070
+ font-weight: 400;
1071
+ line-height: 2.9em;
1072
+ overflow: hidden;
1073
+ white-space: nowrap;
1070
1074
  `;
1071
1075
  const Select = (_a) => {
1072
1076
  var { options, optionGroups, placeholder = '--Select-One--', readOnly, invalid, searchable = false, value: propValue, onChange, style } = _a, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "searchable", "value", "onChange", "style"]);
@@ -1100,15 +1104,15 @@ const Select = (_a) => {
1100
1104
  filteredOptions &&
1101
1105
  filteredOptions.map((option, i) => (React.createElement("option", { key: i, style: { color: option.color }, value: option.value }, option.label || option.value)))),
1102
1106
  React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, path: mdiChevronDown, size: '22px' })));
1103
- };
1104
-
1105
- const DatePickerWrapper = styled.div `
1106
- display: flex;
1107
- width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1107
+ };
1108
+
1109
+ const DatePickerWrapper = styled.div `
1110
+ display: flex;
1111
+ width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1108
1112
  `;
1109
- const Middle = styled.div `
1110
- margin: 0px -1px;
1111
- flex-grow: 1;
1113
+ const Middle = styled.div `
1114
+ margin: 0px -1px;
1115
+ flex-grow: 1;
1112
1116
  `;
1113
1117
  const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate = null, date,
1114
1118
  // eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -1189,66 +1193,66 @@ onChange = () => { }, style, }) => {
1189
1193
  React.createElement(Middle, null,
1190
1194
  React.createElement(Select, { invalid: invalid, onChange: handleDayChange, options: dayOptions, placeholder: 'Select Day', readOnly: readOnly, style: { borderRadius: '0px' }, value: selectedDay })),
1191
1195
  React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, placeholder: 'Select Year', readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: selectedYear }))));
1192
- };
1193
-
1194
- const Scrim$1 = styled.div `
1195
- position: ${({ $position }) => $position};
1196
- top: 0;
1197
- right: 0;
1198
- bottom: 0;
1199
- left: 0;
1200
- z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
1201
- background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
1202
- `;
1203
- const Container$2 = styled.div `
1204
- z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
1205
- min-width: 400px;
1206
- width: ${({ $width }) => $width || '400px'};
1207
- overflow: hidden;
1208
- box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
1209
- outline: none;
1210
- border: none;
1211
- position: ${({ $position }) => $position};
1212
- top: 0;
1213
- right: 0;
1214
- bottom: 0;
1215
- padding: 0px;
1216
- display: flex;
1217
- flex-direction: column;
1218
- box-sizing: border-box;
1219
- background: #fff;
1220
- `;
1221
- const Header$2 = styled.div `
1222
- padding: 30px 20px;
1223
- display: flex;
1224
- align-items: flex-start;
1225
- box-sizing: border-box;
1226
- flex-shrink: 0;
1227
- background: #fff;
1228
- `;
1229
- const Close$1 = styled.div `
1230
- margin-left: auto;
1231
- display: flex;
1232
- align-items: center;
1233
- padding-left: 20px;
1234
- cursor: pointer;
1235
- `;
1236
- const ContentWrapper$1 = styled.div `
1237
- overflow-x: hidden;
1238
- overflow-y: auto;
1239
- box-sizing: border-box;
1240
- flex: 1;
1241
- background: #fff;
1242
- `;
1243
- const ButtonBar$1 = styled.div `
1244
- padding: 20px;
1245
- display: flex;
1246
- align-items: center;
1247
- justify-content: flex-end;
1248
- box-sizing: border-box;
1249
- gap: 10px;
1250
- flex-shrink: 0;
1251
- background: #fff;
1196
+ };
1197
+
1198
+ const Scrim$1 = styled.div `
1199
+ position: ${({ $position }) => $position};
1200
+ top: 0;
1201
+ right: 0;
1202
+ bottom: 0;
1203
+ left: 0;
1204
+ z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
1205
+ background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
1206
+ `;
1207
+ const Container$2 = styled.div `
1208
+ z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
1209
+ min-width: 400px;
1210
+ width: ${({ $width }) => $width || '400px'};
1211
+ overflow: hidden;
1212
+ box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
1213
+ outline: none;
1214
+ border: none;
1215
+ position: ${({ $position }) => $position};
1216
+ top: 0;
1217
+ right: 0;
1218
+ bottom: 0;
1219
+ padding: 0px;
1220
+ display: flex;
1221
+ flex-direction: column;
1222
+ box-sizing: border-box;
1223
+ background: #fff;
1224
+ `;
1225
+ const Header$2 = styled.div `
1226
+ padding: 30px 20px;
1227
+ display: flex;
1228
+ align-items: flex-start;
1229
+ box-sizing: border-box;
1230
+ flex-shrink: 0;
1231
+ background: #fff;
1232
+ `;
1233
+ const Close$1 = styled.div `
1234
+ margin-left: auto;
1235
+ display: flex;
1236
+ align-items: center;
1237
+ padding-left: 20px;
1238
+ cursor: pointer;
1239
+ `;
1240
+ const ContentWrapper$1 = styled.div `
1241
+ overflow-x: hidden;
1242
+ overflow-y: auto;
1243
+ box-sizing: border-box;
1244
+ flex: 1;
1245
+ background: #fff;
1246
+ `;
1247
+ const ButtonBar$1 = styled.div `
1248
+ padding: 20px;
1249
+ display: flex;
1250
+ align-items: center;
1251
+ justify-content: flex-end;
1252
+ box-sizing: border-box;
1253
+ gap: 10px;
1254
+ flex-shrink: 0;
1255
+ background: #fff;
1252
1256
  `;
1253
1257
  const Drawer = (_a) => {
1254
1258
  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"]);
@@ -1276,55 +1280,55 @@ const Drawer = (_a) => {
1276
1280
  secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' }))) : null,
1277
1281
  primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' }))) : null)) : null),
1278
1282
  scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
1279
- };
1280
-
1283
+ };
1284
+
1281
1285
  const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.$customStyle)));
1282
- const LabelRow = styled.div `
1283
- display: flex;
1284
- align-items: center;
1285
- justify-content: space-between;
1286
- margin: 0 0 4px 0;
1287
- box-sizing: border-box;
1288
- `;
1289
- const Label$2 = styled.label `
1290
- font-size: ${FontSizes.DEFAULT};
1291
- font-weight: 500;
1292
- line-height: 1.3em;
1293
- font-family: ${FontStyles.DEFAULT};
1294
- color: ${Colors.BLACK.Hex};
1295
- display: flex;
1296
- align-items: center;
1297
- `;
1298
- const Required = styled.span `
1299
- color: ${Colors.RED.Hex};
1300
- margin-left: 4px;
1301
- `;
1302
- const Action = styled.span `
1303
- font-size: ${FontSizes.DEFAULT};
1304
- font-weight: 500;
1305
- line-height: 1em;
1306
- font-family: ${FontStyles.DEFAULT};
1307
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
1308
- cursor: pointer;
1286
+ const LabelRow = styled.div `
1287
+ display: flex;
1288
+ align-items: center;
1289
+ justify-content: space-between;
1290
+ margin: 0 0 4px 0;
1291
+ box-sizing: border-box;
1292
+ `;
1293
+ const Label$2 = styled.label `
1294
+ font-size: ${FontSizes.DEFAULT};
1295
+ font-weight: 500;
1296
+ line-height: 1.3em;
1297
+ font-family: ${FontStyles.DEFAULT};
1298
+ color: ${Colors.BLACK.Hex};
1299
+ display: flex;
1300
+ align-items: center;
1301
+ `;
1302
+ const Required = styled.span `
1303
+ color: ${Colors.RED.Hex};
1304
+ margin-left: 4px;
1305
+ `;
1306
+ const Action = styled.span `
1307
+ font-size: ${FontSizes.DEFAULT};
1308
+ font-weight: 500;
1309
+ line-height: 1em;
1310
+ font-family: ${FontStyles.DEFAULT};
1311
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
1312
+ cursor: pointer;
1309
1313
  `;
1310
1314
  Action.defaultProps = { theme: EditableTheme };
1311
- const Description = styled.div `
1312
- font-size: ${FontSizes.SMALL};
1313
- font-weight: 400;
1314
- line-height: 1.3em;
1315
- font-family: ${FontStyles.DEFAULT};
1316
- color: ${Colors.BLACK.Hex};
1317
- margin: 0 0 8px 0;
1318
- box-sizing: border-box;
1319
- `;
1320
- const Validation = styled.div `
1321
- font-size: ${FontSizes.SMALL};
1322
- font-weight: 400;
1323
- line-height: 1.3em;
1324
- font-family: ${FontStyles.DEFAULT};
1325
- color: ${Colors.RED.Hex};
1326
- margin: 4px 0 0 0;
1327
- box-sizing: border-box;
1315
+ const Description = styled.div `
1316
+ font-size: ${FontSizes.SMALL};
1317
+ font-weight: 400;
1318
+ line-height: 1.3em;
1319
+ font-family: ${FontStyles.DEFAULT};
1320
+ color: ${Colors.BLACK.Hex};
1321
+ margin: 0 0 8px 0;
1322
+ box-sizing: border-box;
1323
+ `;
1324
+ const Validation = styled.div `
1325
+ font-size: ${FontSizes.SMALL};
1326
+ font-weight: 400;
1327
+ line-height: 1.3em;
1328
+ font-family: ${FontStyles.DEFAULT};
1329
+ color: ${Colors.RED.Hex};
1330
+ margin: 4px 0 0 0;
1331
+ box-sizing: border-box;
1328
1332
  `;
1329
1333
  const Field = (_a) => {
1330
1334
  var { action, children, validationText, label, description, required, htmlFor, style = {}, tooltip } = _a, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style", "tooltip"]);
@@ -1338,43 +1342,43 @@ const Field = (_a) => {
1338
1342
  description ? React.createElement(Description, null, description) : null,
1339
1343
  children,
1340
1344
  validationText ? React.createElement(Validation, null, validationText) : null));
1341
- };
1342
-
1343
- const Wrapper$8 = styled.fieldset `
1344
- margin-inline-start: 0px;
1345
- margin-inline-end: 0px;
1346
- padding-block-start: 0px;
1347
- padding-inline-start: 0px;
1348
- padding-inline-end: 0px;
1349
- padding-block-end: 0px;
1350
- min-inline-size: min-content;
1351
- border-width: 0px;
1352
- border-style: none;
1353
- border-color: transparent;
1354
- border-image: none;
1355
- `;
1356
- const Label$1 = styled.legend `
1357
- padding-inline-start: 0px;
1358
- padding-inline-end: 0px;
1359
-
1360
- color: ${Colors.BLACK.Hex};
1361
- font-family: ${FontStyles.DEFAULT};
1362
- font-size: ${FontSizes.DEFAULT};
1363
- font-weight: 500;
1364
- line-height: 22px;
1365
- margin-bottom: 6px;
1366
- `;
1367
- const Content$1 = styled.div `
1368
- padding: 20px;
1369
- border-radius: 8px;
1370
- background: #fcfcfc;
1345
+ };
1346
+
1347
+ const Wrapper$8 = styled.fieldset `
1348
+ margin-inline-start: 0px;
1349
+ margin-inline-end: 0px;
1350
+ padding-block-start: 0px;
1351
+ padding-inline-start: 0px;
1352
+ padding-inline-end: 0px;
1353
+ padding-block-end: 0px;
1354
+ min-inline-size: min-content;
1355
+ border-width: 0px;
1356
+ border-style: none;
1357
+ border-color: transparent;
1358
+ border-image: none;
1359
+ `;
1360
+ const Label$1 = styled.legend `
1361
+ padding-inline-start: 0px;
1362
+ padding-inline-end: 0px;
1363
+
1364
+ color: ${Colors.BLACK.Hex};
1365
+ font-family: ${FontStyles.DEFAULT};
1366
+ font-size: ${FontSizes.DEFAULT};
1367
+ font-weight: 500;
1368
+ line-height: 22px;
1369
+ margin-bottom: 6px;
1370
+ `;
1371
+ const Content$1 = styled.div `
1372
+ padding: 20px;
1373
+ border-radius: 8px;
1374
+ background: #fcfcfc;
1371
1375
  `;
1372
1376
  const FieldGroup = ({ children, label }) => {
1373
1377
  return (React.createElement(Wrapper$8, null,
1374
1378
  React.createElement(Label$1, null, label),
1375
1379
  React.createElement(Content$1, null, children)));
1376
- };
1377
-
1380
+ };
1381
+
1378
1382
  const Dropzone = styled.div `
1379
1383
  border-radius: 8px;
1380
1384
  border-width: 1px;
@@ -1562,8 +1566,8 @@ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, val
1562
1566
  React.createElement(Copy, { align: 'center', color: 'GRAY' }, message),
1563
1567
  tooltipInfo && (React.createElement("span", null,
1564
1568
  React.createElement(Tooltip, { children: tooltipInfo, position: 'left-center' }))))) : null))) : null)));
1565
- };
1566
-
1569
+ };
1570
+
1567
1571
  const getAgesFromDob = (dob) => {
1568
1572
  let calculated_current_age = null;
1569
1573
  let calculated_nearest_age = null;
@@ -1636,145 +1640,145 @@ const formatAsSsn = (number) => {
1636
1640
  formatted_value = `${formatted_value.substring(0, 3)}-${formatted_value.substring(3, 5)}-${formatted_value.substring(5, 9)}`;
1637
1641
  }
1638
1642
  return formatted_value;
1639
- };
1640
-
1641
- const StyledInput = styled.input `
1642
- border: none !important;
1643
- background: none !important;
1644
- font-size: ${FontSizes.DEFAULT};
1645
- font-weight: 400;
1646
- font-family: ${FontStyles.DEFAULT};
1647
- line-height: 1.28em;
1648
- color: ${props => (props.$invalid && !props.$readOnly ? Colors.RED.Hex : Colors.BLACK.Hex)};
1649
- position: relative;
1650
- height: ${props => props.$height || 'auto'};
1651
- padding: 10px;
1652
- opacity: ${props => (props.$readOnly ? 0.6 : 1)};
1653
- box-shadow: none;
1654
- outline: none;
1655
- margin: 0px;
1656
- text-indent: 0px;
1657
- --webkit-appearance: none;
1658
- box-sizing: border-box;
1659
- display: block;
1660
- width: 100%;
1661
- `;
1662
- const StyledTextArea = styled.textarea `
1663
- border: none !important;
1664
- background: none !important;
1665
- overflow-y: scroll !important;
1666
- font-size: 14px;
1667
- font-weight: 400;
1668
- height: ${props => props.$height || 'auto'};
1669
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
1670
- line-height: 1.28em;
1671
- color: ${({ $invalid }) => ($invalid ? '#ff0000' : '#000000')};
1672
- position: relative;
1673
- padding: 10px;
1674
- opacity: 1;
1675
- box-shadow: none;
1676
- outline: none;
1677
- margin: 0px;
1678
- text-indent: 0px;
1679
- --webkit-appearance: none;
1680
- overflow-wrap: break-word;
1681
- box-sizing: border-box;
1682
- display: block;
1683
- width: 100%;
1643
+ };
1644
+
1645
+ const StyledInput = styled.input `
1646
+ border: none !important;
1647
+ background: none !important;
1648
+ font-size: ${FontSizes.DEFAULT};
1649
+ font-weight: 400;
1650
+ font-family: ${FontStyles.DEFAULT};
1651
+ line-height: 1.28em;
1652
+ color: ${props => (props.$invalid && !props.$readOnly ? Colors.RED.Hex : Colors.BLACK.Hex)};
1653
+ position: relative;
1654
+ height: ${props => props.$height || 'auto'};
1655
+ padding: 10px;
1656
+ opacity: ${props => (props.$readOnly ? 0.6 : 1)};
1657
+ box-shadow: none;
1658
+ outline: none;
1659
+ margin: 0px;
1660
+ text-indent: 0px;
1661
+ --webkit-appearance: none;
1662
+ box-sizing: border-box;
1663
+ display: block;
1664
+ width: 100%;
1665
+ `;
1666
+ const StyledTextArea = styled.textarea `
1667
+ border: none !important;
1668
+ background: none !important;
1669
+ overflow-y: scroll !important;
1670
+ font-size: 14px;
1671
+ font-weight: 400;
1672
+ height: ${props => props.$height || 'auto'};
1673
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
1674
+ line-height: 1.28em;
1675
+ color: ${({ $invalid }) => ($invalid ? '#ff0000' : '#000000')};
1676
+ position: relative;
1677
+ padding: 10px;
1678
+ opacity: 1;
1679
+ box-shadow: none;
1680
+ outline: none;
1681
+ margin: 0px;
1682
+ text-indent: 0px;
1683
+ --webkit-appearance: none;
1684
+ overflow-wrap: break-word;
1685
+ box-sizing: border-box;
1686
+ display: block;
1687
+ width: 100%;
1684
1688
  ${({ $readOnly }) => $readOnly &&
1685
- `
1686
- background-color: #f0f0f0;
1687
- color: #999999;
1688
- overflow-y: scroll;
1689
- `}
1690
- `;
1691
- const StyledSuffix = styled.div `
1692
- box-sizing: border-box;
1693
- border-radius: 0px 4px 4px 0px;
1694
- display: flex;
1695
- justify-content: center;
1696
- align-items: center;
1697
- padding: 10px;
1698
- height: auto;
1699
- background: #f5f5f5;
1700
- border-width: 0px 0px 0px 1px;
1701
- border-style: solid;
1702
- border-color: #cccccc;
1703
- font-family: ${FontStyles.DEFAULT};
1704
- font-style: normal;
1705
- font-weight: 400;
1706
- font-size: ${FontSizes.DEFAULT};
1707
- color: ${Colors.BLACK.Hex};
1708
- `;
1709
- const StyledWrapper = styled.div `
1710
- display: flex;
1711
- width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1712
- background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
1713
- position: relative;
1714
- border-width: 1px;
1715
- border-style: solid;
1716
- border-color: ${props => (props.$invalid && !props.$readOnly ? Colors.RED.Hex : '#cccccc')};
1717
- border-radius: ${props => (props.$suggestions ? '4px 4px 0px 0px' : '4px')};
1718
-
1719
- &:focus-within {
1720
- border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
1721
- }
1689
+ `
1690
+ background-color: #f0f0f0;
1691
+ color: #999999;
1692
+ overflow-y: scroll;
1693
+ `}
1694
+ `;
1695
+ const StyledSuffix = styled.div `
1696
+ box-sizing: border-box;
1697
+ border-radius: 0px 4px 4px 0px;
1698
+ display: flex;
1699
+ justify-content: center;
1700
+ align-items: center;
1701
+ padding: 10px;
1702
+ height: auto;
1703
+ background: #f5f5f5;
1704
+ border-width: 0px 0px 0px 1px;
1705
+ border-style: solid;
1706
+ border-color: #cccccc;
1707
+ font-family: ${FontStyles.DEFAULT};
1708
+ font-style: normal;
1709
+ font-weight: 400;
1710
+ font-size: ${FontSizes.DEFAULT};
1711
+ color: ${Colors.BLACK.Hex};
1712
+ `;
1713
+ const StyledWrapper = styled.div `
1714
+ display: flex;
1715
+ width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1716
+ background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
1717
+ position: relative;
1718
+ border-width: 1px;
1719
+ border-style: solid;
1720
+ border-color: ${props => (props.$invalid && !props.$readOnly ? Colors.RED.Hex : '#cccccc')};
1721
+ border-radius: ${props => (props.$suggestions ? '4px 4px 0px 0px' : '4px')};
1722
+
1723
+ &:focus-within {
1724
+ border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
1725
+ }
1722
1726
  `;
1723
1727
  StyledWrapper.defaultProps = { theme: EditableTheme };
1724
- const SuggestedValues = styled.div `
1725
- background: #fff;
1726
- box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
1727
- border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
1728
- border-radius: 0px 0px 4px 4px;
1729
- border-style: solid;
1730
- border-top: none;
1731
- border-width: 1px;
1732
- left: -1px;
1733
- position: absolute;
1734
- right: -1px;
1735
- top: 39px;
1736
- z-index: 9999;
1737
- max-height: 220px;
1738
- overflow: auto;
1728
+ const SuggestedValues = styled.div `
1729
+ background: #fff;
1730
+ box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
1731
+ border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
1732
+ border-radius: 0px 0px 4px 4px;
1733
+ border-style: solid;
1734
+ border-top: none;
1735
+ border-width: 1px;
1736
+ left: -1px;
1737
+ position: absolute;
1738
+ right: -1px;
1739
+ top: 39px;
1740
+ z-index: 9999;
1741
+ max-height: 220px;
1742
+ overflow: auto;
1739
1743
  `;
1740
1744
  SuggestedValues.defaultProps = { theme: EditableTheme };
1741
- const SuggestedSummary = styled.div `
1742
- color: ${Colors.MEDIUM_GRAY.Hex};
1743
- font-size: 12px;
1744
- font-family: ${FontStyles.DEFAULT};
1745
- font-weight: 500;
1746
- line-height: 18px;
1747
- padding: 10px 12px;
1748
- border-bottom: 1px solid #e5e5e5;
1749
- background: #fff;
1750
- z-index: 1;
1751
- position: sticky;
1752
- top: 0px;
1753
- `;
1754
- const SuggestedValue = styled.div `
1755
- cursor: pointer;
1756
- padding: 8px 12px;
1757
- font-size: ${FontSizes.DEFAULT};
1758
- font-family: ${FontStyles.DEFAULT};
1759
- font-weight: 400;
1760
- line-height: 1.6em;
1761
- color: ${Colors.BLACK.Hex};
1762
-
1763
- &:hover {
1764
- background: rgba(${props => props.theme.PRIMARY_COLOR.Rgb}, 0.05);
1765
- }
1745
+ const SuggestedSummary = styled.div `
1746
+ color: ${Colors.MEDIUM_GRAY.Hex};
1747
+ font-size: 12px;
1748
+ font-family: ${FontStyles.DEFAULT};
1749
+ font-weight: 500;
1750
+ line-height: 18px;
1751
+ padding: 10px 12px;
1752
+ border-bottom: 1px solid #e5e5e5;
1753
+ background: #fff;
1754
+ z-index: 1;
1755
+ position: sticky;
1756
+ top: 0px;
1757
+ `;
1758
+ const SuggestedValue = styled.div `
1759
+ cursor: pointer;
1760
+ padding: 8px 12px;
1761
+ font-size: ${FontSizes.DEFAULT};
1762
+ font-family: ${FontStyles.DEFAULT};
1763
+ font-weight: 400;
1764
+ line-height: 1.6em;
1765
+ color: ${Colors.BLACK.Hex};
1766
+
1767
+ &:hover {
1768
+ background: rgba(${props => props.theme.PRIMARY_COLOR.Rgb}, 0.05);
1769
+ }
1766
1770
  `;
1767
1771
  SuggestedValue.defaultProps = { theme: EditableTheme };
1768
- const CharacterCount = styled.div `
1769
- font-family: ${FontStyles.DEFAULT};
1770
- font-size: ${FontSizes.SMALL};
1771
- color: ${Colors.MEDIUM_GRAY.Hex};
1772
- padding: 10px;
1772
+ const CharacterCount = styled.div `
1773
+ font-family: ${FontStyles.DEFAULT};
1774
+ font-size: ${FontSizes.SMALL};
1775
+ color: ${Colors.MEDIUM_GRAY.Hex};
1776
+ padding: 10px;
1773
1777
  `;
1774
- const Loader$1 = styled.div `
1775
- padding: 0px 10px;
1776
- display: flex;
1777
- align-items: center;
1778
+ const Loader$1 = styled.div `
1779
+ padding: 0px 10px;
1780
+ display: flex;
1781
+ align-items: center;
1778
1782
  `;
1779
1783
  const Input$1 = (_a) => {
1780
1784
  var { format, suffix, height, invalid, loading, max, maxLength, min, onBlur, onChange, onFocus, onKeyDown,
@@ -1783,6 +1787,17 @@ const Input$1 = (_a) => {
1783
1787
  const [show_options, setShowOptions] = useState(false);
1784
1788
  const [internalValue, setInternalValue] = useState(value);
1785
1789
  const [internalSuggestedValues, setInternalSuggestedValues] = useState(suggestedValues || []);
1790
+ useEffect(() => {
1791
+ setInternalValue(value);
1792
+ setInternalSuggestedValues(suggestedValues || []);
1793
+ if (value === null || value === void 0 ? void 0 : value.length) {
1794
+ const newSuggestions = (suggestedValues || []).filter(s => s.toLowerCase().includes(value.toLowerCase()));
1795
+ setInternalSuggestedValues(newSuggestions);
1796
+ }
1797
+ else {
1798
+ setInternalSuggestedValues(suggestedValues || []);
1799
+ }
1800
+ }, [value, suggestedValues]);
1786
1801
  const formatCurrencyDecimal = (value) => {
1787
1802
  const parts = value.toString().split('.');
1788
1803
  const integerPart = parts[0];
@@ -1862,7 +1877,7 @@ const Input$1 = (_a) => {
1862
1877
  onBlur(e);
1863
1878
  setTimeout(() => {
1864
1879
  setShowOptions(false);
1865
- }, 100);
1880
+ }, 200);
1866
1881
  }, onChange: readOnly ? e => e.preventDefault() : handleInputChange, onFocus: readOnly
1867
1882
  ? e => e.preventDefault()
1868
1883
  : e => {
@@ -1887,110 +1902,110 @@ const Input$1 = (_a) => {
1887
1902
  onSuggestedSelect();
1888
1903
  setShowOptions(false);
1889
1904
  } }, suggestedValue))))) : null));
1890
- };
1891
-
1892
- const Wrapper$7 = styled.a `
1893
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
1894
- font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
1895
- line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
1896
- letter-spacing: ${props => (props.$small ? '1px' : '0px')};
1897
- font-weight: 500;
1898
- font-style: normal;
1899
- text-decoration: 'none';
1900
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
1901
- margin: 0px;
1902
- padding: 0px;
1903
- box-sizing: border-box;
1904
- cursor: pointer;
1905
+ };
1906
+
1907
+ const Wrapper$7 = styled.a `
1908
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
1909
+ font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
1910
+ line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
1911
+ letter-spacing: ${props => (props.$small ? '1px' : '0px')};
1912
+ font-weight: 500;
1913
+ font-style: normal;
1914
+ text-decoration: 'none';
1915
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
1916
+ margin: 0px;
1917
+ padding: 0px;
1918
+ box-sizing: border-box;
1919
+ cursor: pointer;
1905
1920
  `;
1906
1921
  Wrapper$7.defaultProps = { theme: EditableTheme };
1907
1922
  const Link = (_a) => {
1908
1923
  var { children, onClick, small } = _a, accessibleProps = __rest(_a, ["children", "onClick", "small"]);
1909
1924
  return (React.createElement(Wrapper$7, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
1910
- };
1911
-
1912
- const dash = keyframes `
1913
- 0% {
1914
- stroke-dasharray: 1, 160;
1915
- stroke-dashoffset: 0;
1916
- }
1917
- 50% {
1918
- stroke-dasharray: 80, 160;
1919
- stroke-dashoffset: -32;
1920
- }
1921
- 100% {
1922
- stroke-dasharray: 80, 160;
1923
- stroke-dashoffset: -124;
1924
- }
1925
- `;
1926
- const Spinner = styled.svg `
1927
- z-index: 2;
1928
- position: absolute;
1929
- top: 50%;
1930
- left: 50%;
1931
- transform: translate(-50%, -50%);
1932
- margin: 0 auto;
1933
- width: 40px;
1934
- height: 40px;
1935
- `;
1936
- const Path = styled.path `
1937
- stroke: #0193d7;
1938
- stroke-linecap: round;
1939
- -webkit-animation: ${dash} 1.1s ease-in-out infinite;
1940
- animation: ${dash} 1.1s ease-in-out infinite;
1925
+ };
1926
+
1927
+ const dash = keyframes `
1928
+ 0% {
1929
+ stroke-dasharray: 1, 160;
1930
+ stroke-dashoffset: 0;
1931
+ }
1932
+ 50% {
1933
+ stroke-dasharray: 80, 160;
1934
+ stroke-dashoffset: -32;
1935
+ }
1936
+ 100% {
1937
+ stroke-dasharray: 80, 160;
1938
+ stroke-dashoffset: -124;
1939
+ }
1940
+ `;
1941
+ const Spinner = styled.svg `
1942
+ z-index: 2;
1943
+ position: absolute;
1944
+ top: 50%;
1945
+ left: 50%;
1946
+ transform: translate(-50%, -50%);
1947
+ margin: 0 auto;
1948
+ width: 40px;
1949
+ height: 40px;
1950
+ `;
1951
+ const Path = styled.path `
1952
+ stroke: #0193d7;
1953
+ stroke-linecap: round;
1954
+ -webkit-animation: ${dash} 1.1s ease-in-out infinite;
1955
+ animation: ${dash} 1.1s ease-in-out infinite;
1941
1956
  `;
1942
1957
  const Loader = () => {
1943
1958
  return (React.createElement(Spinner, { viewBox: '0 0 16 18' },
1944
1959
  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' })));
1945
- };
1946
-
1947
- const Steps = styled.div `
1948
- padding: 20px;
1949
- border-bottom: 1px solid #e7e6e6;
1950
- background: #f5f5f5;
1951
- display: flex;
1952
- gap: 30px;
1953
- align-items: center;
1954
- `;
1955
- const Step = styled.div `
1956
- display: flex;
1957
- align-items: center;
1958
- gap: 8px;
1959
- `;
1960
- const StyledIcon$2 = styled(Icon) `
1961
- > path {
1962
- fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
1963
- }
1960
+ };
1961
+
1962
+ const Steps = styled.div `
1963
+ padding: 20px;
1964
+ border-bottom: 1px solid #e7e6e6;
1965
+ background: #f5f5f5;
1966
+ display: flex;
1967
+ gap: 30px;
1968
+ align-items: center;
1969
+ `;
1970
+ const Step = styled.div `
1971
+ display: flex;
1972
+ align-items: center;
1973
+ gap: 8px;
1974
+ `;
1975
+ const StyledIcon$2 = styled(Icon) `
1976
+ > path {
1977
+ fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
1978
+ }
1964
1979
  `;
1965
1980
  StyledIcon$2.defaultProps = { theme: EditableTheme };
1966
- const StepIndicator = styled.div `
1967
- width: 30px;
1968
- height: 30px;
1969
- border-radius: 15px;
1970
- background: ${props => (props.$active ? props.theme.PRIMARY_COLOR.Hex : Colors.LIGHT_GRAY.Hex)};
1971
- color: ${props => (props.$active ? '#fff' : Colors.MEDIUM_GRAY.Hex)};
1972
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
1973
- font-size: 14px;
1974
- font-weight: 500;
1975
- line-height: 1;
1976
- display: flex;
1977
- align-items: center;
1978
- justify-content: center;
1979
- flex-shrink: 0;
1981
+ const StepIndicator = styled.div `
1982
+ width: 30px;
1983
+ height: 30px;
1984
+ border-radius: 15px;
1985
+ background: ${props => (props.$active ? props.theme.PRIMARY_COLOR.Hex : Colors.LIGHT_GRAY.Hex)};
1986
+ color: ${props => (props.$active ? '#fff' : Colors.MEDIUM_GRAY.Hex)};
1987
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
1988
+ font-size: 14px;
1989
+ font-weight: 500;
1990
+ line-height: 1;
1991
+ display: flex;
1992
+ align-items: center;
1993
+ justify-content: center;
1994
+ flex-shrink: 0;
1980
1995
  `;
1981
1996
  StepIndicator.defaultProps = { theme: EditableTheme };
1982
- const StepLabel = styled.div `
1983
- color: #000;
1984
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
1985
- font-size: 14px;
1986
- font-weight: 500;
1987
- line-height: 1;
1988
- `;
1989
- const StepLine = styled.div `
1990
- height: 2px;
1991
- flex-grow: 1;
1992
- background-color: ${props => (props.$active ? Colors.PRIMARY.Hex : Colors.MEDIUM_GRAY.Hex)};
1993
- transition: background-color 0.5s ease-in-out;
1997
+ const StepLabel = styled.div `
1998
+ color: #000;
1999
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
2000
+ font-size: 14px;
2001
+ font-weight: 500;
2002
+ line-height: 1;
2003
+ `;
2004
+ const StepLine = styled.div `
2005
+ height: 2px;
2006
+ flex-grow: 1;
2007
+ background-color: ${props => (props.$active ? Colors.PRIMARY.Hex : Colors.MEDIUM_GRAY.Hex)};
2008
+ transition: background-color 0.5s ease-in-out;
1994
2009
  `;
1995
2010
  const ProgressBar = ({ steps, showStepLine = false }) => {
1996
2011
  return (React.createElement(Steps, null, steps.map((step, i) => {
@@ -2000,78 +2015,78 @@ const ProgressBar = ({ steps, showStepLine = false }) => {
2000
2015
  step.complete ? (React.createElement(StyledIcon$2, { path: mdiCheckboxMarkedCircleOutline, size: '32px' })) : (React.createElement(StepIndicator, { "$active": step.active }, i + 1)),
2001
2016
  React.createElement(StepLabel, null, step.label))));
2002
2017
  })));
2003
- };
2004
-
2005
- const Wrapper$6 = styled.div `
2006
- position: fixed;
2007
- top: 0;
2008
- right: 0;
2009
- bottom: 0;
2010
- left: 0;
2011
- z-index: 9999;
2012
- background: rgba(0, 0, 0, 0.8);
2013
- display: flex;
2014
- align-items: center;
2015
- justify-content: center;
2016
- `;
2017
- const Container$1 = styled.dialog `
2018
- width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
2019
- max-width: calc(100vw - 80px);
2020
- height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
2021
- max-height: calc(100vh - 80px);
2022
- border-radius: 8px;
2023
- overflow: hidden;
2024
- box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
2025
- outline: none;
2026
- border: none;
2027
- position: relative;
2028
- padding: 0px;
2029
- box-sizing: border-box;
2030
- display: flex;
2031
- flex-direction: column;
2032
- `;
2033
- const Header$1 = styled.div `
2034
- flex-shrink: 0;
2035
- padding: 20px;
2036
- border-bottom: 1px solid #e7e6e6;
2037
- display: flex;
2038
- align-items: center;
2039
- background: #ffffff;
2040
- box-sizing: border-box;
2041
- `;
2042
- const Close = styled.div `
2043
- margin-left: auto;
2044
- display: flex;
2045
- align-items: center;
2046
- padding-left: 20px;
2047
- cursor: pointer;
2048
- `;
2049
- const CloseMsg = styled.span `
2050
- font-size: ${FontSizes.SMALL};
2051
- font-weight: 400;
2052
- font-family: ${FontStyles.DEFAULT};
2053
- line-height: 1em;
2054
- color: ${Colors.MEDIUM_GRAY.Hex};
2055
- `;
2056
- const ContentWrapper = styled.div `
2057
- overflow-x: hidden;
2058
- overflow-y: auto;
2059
- background: #ffffff;
2060
- flex: 1;
2061
- box-sizing: border-box;
2062
- `;
2063
- const ButtonBar = styled.div `
2064
- flex-shrink: 0;
2065
- background: #ffffff;
2066
- padding: 20px;
2067
- border-top: 1px solid #e7e6e6;
2068
- display: flex;
2069
- align-items: center;
2070
- justify-self: flex-end;
2071
- box-sizing: border-box;
2072
- `;
2073
- const ButtonContainer = styled.div `
2074
- margin: 0 10px;
2018
+ };
2019
+
2020
+ const Wrapper$6 = styled.div `
2021
+ position: fixed;
2022
+ top: 0;
2023
+ right: 0;
2024
+ bottom: 0;
2025
+ left: 0;
2026
+ z-index: 9999;
2027
+ background: rgba(0, 0, 0, 0.8);
2028
+ display: flex;
2029
+ align-items: center;
2030
+ justify-content: center;
2031
+ `;
2032
+ const Container$1 = styled.dialog `
2033
+ width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
2034
+ max-width: calc(100vw - 80px);
2035
+ height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
2036
+ max-height: calc(100vh - 80px);
2037
+ border-radius: 8px;
2038
+ overflow: hidden;
2039
+ box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
2040
+ outline: none;
2041
+ border: none;
2042
+ position: relative;
2043
+ padding: 0px;
2044
+ box-sizing: border-box;
2045
+ display: flex;
2046
+ flex-direction: column;
2047
+ `;
2048
+ const Header$1 = styled.div `
2049
+ flex-shrink: 0;
2050
+ padding: 20px;
2051
+ border-bottom: 1px solid #e7e6e6;
2052
+ display: flex;
2053
+ align-items: center;
2054
+ background: #ffffff;
2055
+ box-sizing: border-box;
2056
+ `;
2057
+ const Close = styled.div `
2058
+ margin-left: auto;
2059
+ display: flex;
2060
+ align-items: center;
2061
+ padding-left: 20px;
2062
+ cursor: pointer;
2063
+ `;
2064
+ const CloseMsg = styled.span `
2065
+ font-size: ${FontSizes.SMALL};
2066
+ font-weight: 400;
2067
+ font-family: ${FontStyles.DEFAULT};
2068
+ line-height: 1em;
2069
+ color: ${Colors.MEDIUM_GRAY.Hex};
2070
+ `;
2071
+ const ContentWrapper = styled.div `
2072
+ overflow-x: hidden;
2073
+ overflow-y: auto;
2074
+ background: #ffffff;
2075
+ flex: 1;
2076
+ box-sizing: border-box;
2077
+ `;
2078
+ const ButtonBar = styled.div `
2079
+ flex-shrink: 0;
2080
+ background: #ffffff;
2081
+ padding: 20px;
2082
+ border-top: 1px solid #e7e6e6;
2083
+ display: flex;
2084
+ align-items: center;
2085
+ justify-self: flex-end;
2086
+ box-sizing: border-box;
2087
+ `;
2088
+ const ButtonContainer = styled.div `
2089
+ margin: 0 10px;
2075
2090
  `;
2076
2091
  const Modal = (_a) => {
2077
2092
  var { children, title, onClose, maxWidth, fullscreen, steps, primaryButton, secondaryButton, tertiaryButton, quarternaryButton } = _a, accessibleProps = __rest(_a, ["children", "title", "onClose", "maxWidth", "fullscreen", "steps", "primaryButton", "secondaryButton", "tertiaryButton", "quarternaryButton"]);
@@ -2113,21 +2128,21 @@ const Modal = (_a) => {
2113
2128
  secondaryButton ? (React.createElement(ButtonContainer, null,
2114
2129
  React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary' })))) : null,
2115
2130
  primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary' }))) : null)) : null)) : null)));
2116
- };
2117
-
2118
- const Wrapper$5 = styled.div `
2119
- position: relative;
2120
- width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
2121
- `;
2122
- const Trigger = styled.div `
2123
- box-sizing: border-box;
2124
- border-radius: ${props => (props.$showOptions ? '4px 4px 0px 0px' : '4px')};
2125
- height: 40px;
2126
- padding: 0 10px;
2127
- position: relative;
2128
- cursor: pointer;
2129
- border-width: 1px;
2130
- border-style: solid;
2131
+ };
2132
+
2133
+ const Wrapper$5 = styled.div `
2134
+ position: relative;
2135
+ width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
2136
+ `;
2137
+ const Trigger = styled.div `
2138
+ box-sizing: border-box;
2139
+ border-radius: ${props => (props.$showOptions ? '4px 4px 0px 0px' : '4px')};
2140
+ height: 40px;
2141
+ padding: 0 10px;
2142
+ position: relative;
2143
+ cursor: pointer;
2144
+ border-width: 1px;
2145
+ border-style: solid;
2131
2146
  border-color: ${props => {
2132
2147
  if (props.$invalid) {
2133
2148
  return Colors.RED.Hex;
@@ -2138,67 +2153,67 @@ const Trigger = styled.div `
2138
2153
  else {
2139
2154
  return '#cccccc';
2140
2155
  }
2141
- }};
2142
- background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
2143
- background-image: none;
2144
- display: flex;
2145
- width: 100%;
2146
- align-items: center;
2147
- justify-content: space-between;
2148
- z-index: 1;
2156
+ }};
2157
+ background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
2158
+ background-image: none;
2159
+ display: flex;
2160
+ width: 100%;
2161
+ align-items: center;
2162
+ justify-content: space-between;
2163
+ z-index: 1;
2149
2164
  `;
2150
2165
  Trigger.defaultProps = { theme: EditableTheme };
2151
- const Value = styled.div `
2152
- color: ${Colors.BLACK.Hex};
2153
- font-family: ${FontStyles.DEFAULT};
2154
- font-size: ${FontSizes.DEFAULT};
2155
- font-weight: 400;
2156
- line-height: 2.9em;
2157
- overflow: hidden;
2158
- text-overflow: ellipsis;
2159
- white-space: nowrap;
2160
- width: 100%;
2161
- `;
2162
- const Options = styled.div `
2163
- background: #fff;
2164
- box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
2165
- border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
2166
- border-radius: 0px 0px 4px 4px;
2167
- border-style: solid;
2168
- border-top: none;
2169
- border-width: 1px;
2170
- left: 0;
2171
- position: relative;
2172
- right: 0;
2173
- z-index: 10;
2174
- max-height: 220px;
2175
- overflow: auto;
2166
+ const Value = styled.div `
2167
+ color: ${Colors.BLACK.Hex};
2168
+ font-family: ${FontStyles.DEFAULT};
2169
+ font-size: ${FontSizes.DEFAULT};
2170
+ font-weight: 400;
2171
+ line-height: 2.9em;
2172
+ overflow: hidden;
2173
+ text-overflow: ellipsis;
2174
+ white-space: nowrap;
2175
+ width: 100%;
2176
+ `;
2177
+ const Options = styled.div `
2178
+ background: #fff;
2179
+ box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
2180
+ border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
2181
+ border-radius: 0px 0px 4px 4px;
2182
+ border-style: solid;
2183
+ border-top: none;
2184
+ border-width: 1px;
2185
+ left: 0;
2186
+ position: relative;
2187
+ right: 0;
2188
+ z-index: 10;
2189
+ max-height: 220px;
2190
+ overflow: auto;
2176
2191
  `;
2177
2192
  Options.defaultProps = { theme: EditableTheme };
2178
- const Scrim = styled.div `
2179
- bottom: 0;
2180
- left: 0;
2181
- position: fixed;
2182
- right: 0;
2183
- top: 0;
2184
- z-index: 9;
2185
- `;
2186
- const SearchInput = styled.input `
2187
- position: absolute;
2188
- left: 2px;
2189
- top: 2px;
2190
- z-index: 999;
2191
- width: 90%;
2192
- height: 30px;
2193
- border: none;
2194
- outline: none;
2195
- color: ${Colors.BLACK.Hex};
2196
- font-family: ${FontStyles.DEFAULT};
2197
- font-size: ${FontSizes.DEFAULT};
2198
- font-weight: 400;
2199
- line-height: 2.9em;
2200
- overflow: hidden;
2201
- white-space: nowrap;
2193
+ const Scrim = styled.div `
2194
+ bottom: 0;
2195
+ left: 0;
2196
+ position: fixed;
2197
+ right: 0;
2198
+ top: 0;
2199
+ z-index: 9;
2200
+ `;
2201
+ const SearchInput = styled.input `
2202
+ position: absolute;
2203
+ left: 2px;
2204
+ top: 2px;
2205
+ z-index: 999;
2206
+ width: 90%;
2207
+ height: 30px;
2208
+ border: none;
2209
+ outline: none;
2210
+ color: ${Colors.BLACK.Hex};
2211
+ font-family: ${FontStyles.DEFAULT};
2212
+ font-size: ${FontSizes.DEFAULT};
2213
+ font-weight: 400;
2214
+ line-height: 2.9em;
2215
+ overflow: hidden;
2216
+ white-space: nowrap;
2202
2217
  `;
2203
2218
  const MultiSelect = (_a) => {
2204
2219
  var { readOnly, displayCount = 3, invalid, onChange, options = [], selected = [], showSelectAll, searchable = false, style } = _a, accessibleProps = __rest(_a, ["readOnly", "displayCount", "invalid", "onChange", "options", "selected", "showSelectAll", "searchable", "style"]);
@@ -2217,37 +2232,37 @@ const MultiSelect = (_a) => {
2217
2232
  showOptions ? (React.createElement(Options, null,
2218
2233
  React.createElement(Checklist, { onChange: onChange, options: filteredOptions, selected: selected, showSelectAll: showSelectAll }))) : null,
2219
2234
  showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
2220
- };
2221
-
2222
- const Wrapper$4 = styled.div `
2223
- display: flex;
2224
- padding: 16px 30px;
2225
- align-items: center;
2226
- gap: 20px;
2227
- align-self: stretch;
2228
- border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
2229
- `;
2230
- const Title = styled.div `
2231
- display: flex;
2232
- align-items: center;
2233
- gap: 20px;
2234
- `;
2235
- const Info = styled.div `
2236
- display: flex;
2237
- flex-direction: column;
2238
- align-items: flex-start;
2239
- gap: 4px;
2240
- flex: 1 0 0;
2241
- `;
2242
- const Breadcrumbs = styled.div `
2243
- display: flex;
2244
- align-items: center;
2245
- gap: 4px;
2246
- `;
2247
- const Actions = styled.div `
2248
- display: flex;
2249
- align-items: center;
2250
- gap: 8px;
2235
+ };
2236
+
2237
+ const Wrapper$4 = styled.div `
2238
+ display: flex;
2239
+ padding: 16px 30px;
2240
+ align-items: center;
2241
+ gap: 20px;
2242
+ align-self: stretch;
2243
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
2244
+ `;
2245
+ const Title = styled.div `
2246
+ display: flex;
2247
+ align-items: center;
2248
+ gap: 20px;
2249
+ `;
2250
+ const Info = styled.div `
2251
+ display: flex;
2252
+ flex-direction: column;
2253
+ align-items: flex-start;
2254
+ gap: 4px;
2255
+ flex: 1 0 0;
2256
+ `;
2257
+ const Breadcrumbs = styled.div `
2258
+ display: flex;
2259
+ align-items: center;
2260
+ gap: 4px;
2261
+ `;
2262
+ const Actions = styled.div `
2263
+ display: flex;
2264
+ align-items: center;
2265
+ gap: 8px;
2251
2266
  `;
2252
2267
  const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
2253
2268
  const { format = 'primary', menuItems = [], label = '', enableHover = true, enableClick = false, show = false, } = buttonMenu || {};
@@ -2267,13 +2282,13 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
2267
2282
  return (React.createElement(Button, Object.assign({}, buttonProps, { key: i, small: true }), label));
2268
2283
  }),
2269
2284
  menuItems.length ? (React.createElement(ButtonMenu, { enableClick: enableClick, enableHover: enableHover, format: format, label: label, menuItems: menuItems, show: show, small: true })) : null)) : null));
2270
- };
2271
-
2272
- const Wrapper$3 = styled.nav `
2273
- box-sizing: border-box;
2274
- display: flex;
2275
- align-items: center;
2276
- column-gap: 10px;
2285
+ };
2286
+
2287
+ const Wrapper$3 = styled.nav `
2288
+ box-sizing: border-box;
2289
+ display: flex;
2290
+ align-items: center;
2291
+ column-gap: 10px;
2277
2292
  `;
2278
2293
  const Pagination = (_a) => {
2279
2294
  var { currentPage = 1, onClick, pageCount = 0 } = _a, accessibleProps = __rest(_a, ["currentPage", "onClick", "pageCount"]);
@@ -2302,82 +2317,82 @@ const Pagination = (_a) => {
2302
2317
  value: `${p}`,
2303
2318
  })), value: `${currentPage}` }),
2304
2319
  React.createElement(Button, { disabled: is_last_page, icon: mdiChevronRight, onClick: handleNextClick, small: true })));
2305
- };
2306
-
2307
- const Wrapper$2 = styled.label `
2308
- border-radius: 4px;
2309
- padding: 4px 0px 4px 6px;
2310
- margin-left: -6px;
2311
- cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
2312
- display: flex;
2313
- align-items: center;
2314
- font-size: ${FontSizes.DEFAULT};
2315
- line-height: 1.6em;
2316
- box-sizing: border-box;
2317
- position: relative;
2318
-
2319
- &:focus-within {
2320
- background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
2321
- }
2320
+ };
2321
+
2322
+ const Wrapper$2 = styled.label `
2323
+ border-radius: 4px;
2324
+ padding: 4px 0px 4px 6px;
2325
+ margin-left: -6px;
2326
+ cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
2327
+ display: flex;
2328
+ align-items: center;
2329
+ font-size: ${FontSizes.DEFAULT};
2330
+ line-height: 1.6em;
2331
+ box-sizing: border-box;
2332
+ position: relative;
2333
+
2334
+ &:focus-within {
2335
+ background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
2336
+ }
2322
2337
  `;
2323
2338
  Wrapper$2.defaultProps = { theme: EditableTheme };
2324
- const Input = styled.input `
2325
- font-size: 20px;
2326
- margin: 0px;
2327
- line-height: 1.6em;
2328
- box-sizing: border-box;
2329
- position: absolute;
2330
- opacity: 0;
2331
- cursor: pointer;
2332
- height: 0;
2333
- width: 0;
2334
- &:checked + span {
2335
- border-color: ${Colors.PRIMARY.Hex};
2336
- }
2337
- &:checked + span:after {
2338
- background-color: ${Colors.PRIMARY.Hex};
2339
- display: block;
2340
- }
2341
- &:disabled + span {
2342
- background-color: #d3d3d3;
2343
- border-color: #d3d3d3;
2344
- }
2345
- &:disabled + span:after {
2346
- background-color: #fff;
2347
- }
2348
- &:checked:disabled + span:after {
2349
- background-color: ${Colors.MEDIUM_GRAY.Hex};
2350
- }
2351
- `;
2352
- const Check = styled.span `
2353
- height: 17px;
2354
- width: 17px;
2355
- border-radius: 50%;
2356
- background-color: #fff;
2357
- border-width: 2px;
2358
- border-style: solid;
2359
- border-color: ${props => (props.$invalid ? `${Colors.RED.Hex}` : `${Colors.GRAY.Hex}`)};
2360
- box-sizing: border-box;
2361
- position: relative;
2362
- &:after {
2363
- content: '';
2364
- position: absolute;
2365
- top: 2px;
2366
- left: 2px;
2367
- width: 9px;
2368
- height: 9px;
2369
- border-radius: 50%;
2370
- box-sizing: border-box;
2371
- display: none;
2372
- }
2373
- `;
2374
- const Label = styled.span `
2375
- font-family: ${FontStyles.DEFAULT};
2376
- font-size: ${FontSizes.DEFAULT};
2377
- font-weight: 400;
2378
- color: ${Colors.BLACK.Hex};
2379
- line-height: 1.6em;
2380
- margin-left: 6px;
2339
+ const Input = styled.input `
2340
+ font-size: 20px;
2341
+ margin: 0px;
2342
+ line-height: 1.6em;
2343
+ box-sizing: border-box;
2344
+ position: absolute;
2345
+ opacity: 0;
2346
+ cursor: pointer;
2347
+ height: 0;
2348
+ width: 0;
2349
+ &:checked + span {
2350
+ border-color: ${Colors.PRIMARY.Hex};
2351
+ }
2352
+ &:checked + span:after {
2353
+ background-color: ${Colors.PRIMARY.Hex};
2354
+ display: block;
2355
+ }
2356
+ &:disabled + span {
2357
+ background-color: #d3d3d3;
2358
+ border-color: #d3d3d3;
2359
+ }
2360
+ &:disabled + span:after {
2361
+ background-color: #fff;
2362
+ }
2363
+ &:checked:disabled + span:after {
2364
+ background-color: ${Colors.MEDIUM_GRAY.Hex};
2365
+ }
2366
+ `;
2367
+ const Check = styled.span `
2368
+ height: 17px;
2369
+ width: 17px;
2370
+ border-radius: 50%;
2371
+ background-color: #fff;
2372
+ border-width: 2px;
2373
+ border-style: solid;
2374
+ border-color: ${props => (props.$invalid ? `${Colors.RED.Hex}` : `${Colors.GRAY.Hex}`)};
2375
+ box-sizing: border-box;
2376
+ position: relative;
2377
+ &:after {
2378
+ content: '';
2379
+ position: absolute;
2380
+ top: 2px;
2381
+ left: 2px;
2382
+ width: 9px;
2383
+ height: 9px;
2384
+ border-radius: 50%;
2385
+ box-sizing: border-box;
2386
+ display: none;
2387
+ }
2388
+ `;
2389
+ const Label = styled.span `
2390
+ font-family: ${FontStyles.DEFAULT};
2391
+ font-size: ${FontSizes.DEFAULT};
2392
+ font-weight: 400;
2393
+ color: ${Colors.BLACK.Hex};
2394
+ line-height: 1.6em;
2395
+ margin-left: 6px;
2381
2396
  `;
2382
2397
  const Radio = (_a) => {
2383
2398
  var { children, disabled, checked, onChange, value, invalid, tooltip } = _a, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange", "value", "invalid", "tooltip"]);
@@ -2387,77 +2402,77 @@ const Radio = (_a) => {
2387
2402
  React.createElement(Label, null,
2388
2403
  children,
2389
2404
  tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)));
2390
- };
2391
-
2405
+ };
2406
+
2392
2407
  const RadioList = (_a) => {
2393
2408
  var { disabled, onChange, options, value } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "value"]);
2394
2409
  return (React.createElement(React.Fragment, null, options.map((option) => {
2395
2410
  const label = option.label || option.value;
2396
2411
  return (React.createElement(Radio, Object.assign({ checked: value === option.value, disabled: disabled, onChange: onChange, value: option.value }, accessibleProps), label));
2397
2412
  })));
2398
- };
2399
-
2400
- const StyledTable = styled.table `
2401
- width: 100%;
2402
- margin-top: 1px;
2403
- table-layout: ${props => props.$tableLayout || 'auto'};
2404
- border-collapse: collapse;
2405
- text-indent: 0px;
2406
- border-spacing: 0px;
2407
- border-color: none;
2408
- box-sizing: border-box;
2409
- `;
2410
- const Header = styled.th `
2411
- padding: 12px !important;
2412
- text-align: left;
2413
- font-weight: 500;
2414
- border-bottom: 1px solid #e5e5e5;
2415
- border-top: 1px solid #e5e5e5;
2416
- text-transform: uppercase;
2417
- font-size: 12px;
2418
- font-family: ${FontStyles.DEFAULT};
2419
- letter-spacing: 1px;
2420
- white-space: nowrap;
2421
- line-height: 1;
2422
- position: relative;
2423
- box-sizing: border-box;
2424
- width: ${props => props.$width || 'auto'};
2425
- cursor: ${props => (props.$isSortable ? 'pointer' : 'default')};
2426
- color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
2413
+ };
2414
+
2415
+ const StyledTable = styled.table `
2416
+ width: 100%;
2417
+ margin-top: 1px;
2418
+ table-layout: ${props => props.$tableLayout || 'auto'};
2419
+ border-collapse: collapse;
2420
+ text-indent: 0px;
2421
+ border-spacing: 0px;
2422
+ border-color: none;
2423
+ box-sizing: border-box;
2424
+ `;
2425
+ const Header = styled.th `
2426
+ padding: 12px !important;
2427
+ text-align: left;
2428
+ font-weight: 500;
2429
+ border-bottom: 1px solid #e5e5e5;
2430
+ border-top: 1px solid #e5e5e5;
2431
+ text-transform: uppercase;
2432
+ font-size: 12px;
2433
+ font-family: ${FontStyles.DEFAULT};
2434
+ letter-spacing: 1px;
2435
+ white-space: nowrap;
2436
+ line-height: 1;
2437
+ position: relative;
2438
+ box-sizing: border-box;
2439
+ width: ${props => props.$width || 'auto'};
2440
+ cursor: ${props => (props.$isSortable ? 'pointer' : 'default')};
2441
+ color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
2427
2442
  `;
2428
2443
  Header.defaultProps = { theme: EditableTheme };
2429
- const Row = styled.tr `
2430
- cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
2431
- transition: all 0.2s;
2432
- background-color: ${props => props.$bgColor};
2433
- box-sizing: border-box;
2434
- &:hover {
2435
- background-color: ${props => props.$isClickable ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.1)` : props.$bgColor};
2436
- }
2444
+ const Row = styled.tr `
2445
+ cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
2446
+ transition: all 0.2s;
2447
+ background-color: ${props => props.$bgColor};
2448
+ box-sizing: border-box;
2449
+ &:hover {
2450
+ background-color: ${props => props.$isClickable ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.1)` : props.$bgColor};
2451
+ }
2437
2452
  `;
2438
2453
  Row.defaultProps = { theme: EditableTheme };
2439
- const Column = styled.td `
2440
- padding: 16px 12px !important;
2441
- font-size: ${FontSizes.DEFAULT} !important;
2442
- font-weight: 400 !important;
2443
- font-family: ${FontStyles.DEFAULT};
2444
- border: none !important;
2445
- word-break: break-word;
2446
- line-height: 1.4em;
2447
- box-sizing: border-box;
2448
- text-align: ${props => props.$align || 'left'};
2449
- width: ${props => props.$width || 'auto'};
2450
- `;
2451
- const IconWrapper = styled.span `
2452
- position: absolute;
2453
- top: 50%;
2454
- transform: translateY(-50%);
2455
- margin-left: 2px;
2456
- `;
2457
- const StyledIcon$1 = styled(Icon) `
2458
- > path {
2459
- fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
2460
- }
2454
+ const Column = styled.td `
2455
+ padding: 16px 12px !important;
2456
+ font-size: ${FontSizes.DEFAULT} !important;
2457
+ font-weight: 400 !important;
2458
+ font-family: ${FontStyles.DEFAULT};
2459
+ border: none !important;
2460
+ word-break: break-word;
2461
+ line-height: 1.4em;
2462
+ box-sizing: border-box;
2463
+ text-align: ${props => props.$align || 'left'};
2464
+ width: ${props => props.$width || 'auto'};
2465
+ `;
2466
+ const IconWrapper = styled.span `
2467
+ position: absolute;
2468
+ top: 50%;
2469
+ transform: translateY(-50%);
2470
+ margin-left: 2px;
2471
+ `;
2472
+ const StyledIcon$1 = styled(Icon) `
2473
+ > path {
2474
+ fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
2475
+ }
2461
2476
  `;
2462
2477
  StyledIcon$1.defaultProps = { theme: EditableTheme };
2463
2478
  const Table = (_a) => {
@@ -2475,55 +2490,55 @@ const Table = (_a) => {
2475
2490
  return (React.createElement(Column, { "$align": columns[i].align, "$width": columns[i].width, key: i }, column.render ? column.render(row) : row[column.id] || 'N/A'));
2476
2491
  })));
2477
2492
  }))) : null));
2478
- };
2479
-
2480
- const Wrapper$1 = styled.div `
2481
- display: flex;
2482
- box-sizing: border-box;
2483
- align-items: flex-end;
2484
- border-top: 1px solid #e5e5e5;
2485
- border-bottom: 1px solid #e5e5e5;
2486
- flex-shrink: 0;
2487
- align-self: stretch;
2488
- padding: 0;
2489
- margin: 0;
2490
- `;
2491
- const Tab = styled.div `
2492
- display: flex;
2493
- align-items: center;
2494
- gap: 6px;
2495
- font-size: ${FontSizes.DEFAULT};
2496
- font-family: ${FontStyles.DEFAULT};
2497
- font-weight: ${props => (props.$isActive ? 500 : 400)};
2498
- color: ${props => (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)};
2499
- line-height: 1em;
2500
- padding: 16px 30px 12px;
2501
- margin: 0 0 -1px 0;
2502
- border-bottom-width: 4px;
2503
- border-bottom-style: solid;
2504
- border-bottom-color: ${props => props.$isActive ? props.theme.PRIMARY_COLOR.Hex : 'transparent'};
2505
- cursor: ${props => (props.$isActive ? 'default' : 'pointer')};
2506
- box-sizing: border-box;
2507
- &:hover {
2508
- color: ${props => (props.$isActive ? Colors.BLACK.Hex : props.theme.PRIMARY_COLOR.Hex)};
2509
- font-weight: 500;
2510
- }
2493
+ };
2494
+
2495
+ const Wrapper$1 = styled.div `
2496
+ display: flex;
2497
+ box-sizing: border-box;
2498
+ align-items: flex-end;
2499
+ border-top: 1px solid #e5e5e5;
2500
+ border-bottom: 1px solid #e5e5e5;
2501
+ flex-shrink: 0;
2502
+ align-self: stretch;
2503
+ padding: 0;
2504
+ margin: 0;
2505
+ `;
2506
+ const Tab = styled.div `
2507
+ display: flex;
2508
+ align-items: center;
2509
+ gap: 6px;
2510
+ font-size: ${FontSizes.DEFAULT};
2511
+ font-family: ${FontStyles.DEFAULT};
2512
+ font-weight: ${props => (props.$isActive ? 500 : 400)};
2513
+ color: ${props => (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)};
2514
+ line-height: 1em;
2515
+ padding: 16px 30px 12px;
2516
+ margin: 0 0 -1px 0;
2517
+ border-bottom-width: 4px;
2518
+ border-bottom-style: solid;
2519
+ border-bottom-color: ${props => props.$isActive ? props.theme.PRIMARY_COLOR.Hex : 'transparent'};
2520
+ cursor: ${props => (props.$isActive ? 'default' : 'pointer')};
2521
+ box-sizing: border-box;
2522
+ &:hover {
2523
+ color: ${props => (props.$isActive ? Colors.BLACK.Hex : props.theme.PRIMARY_COLOR.Hex)};
2524
+ font-weight: 500;
2525
+ }
2511
2526
  `;
2512
2527
  Tab.defaultProps = { theme: EditableTheme };
2513
- const Badge = styled.div `
2514
- display: flex;
2515
- width: 18px;
2516
- height: 18px;
2517
- justify-content: center;
2518
- align-items: center;
2519
- border-radius: 9px;
2520
- background: ${props => (props.$isError ? Colors.RED.Hex : props.theme.PRIMARY_COLOR.Hex)};
2521
- color: #fff;
2522
- font-family: ${FontStyles.DEFAULT};
2523
- font-size: 12px;
2524
- font-weight: 500;
2525
- line-height: 1;
2526
- letter-spacing: 1px;
2528
+ const Badge = styled.div `
2529
+ display: flex;
2530
+ width: 18px;
2531
+ height: 18px;
2532
+ justify-content: center;
2533
+ align-items: center;
2534
+ border-radius: 9px;
2535
+ background: ${props => (props.$isError ? Colors.RED.Hex : props.theme.PRIMARY_COLOR.Hex)};
2536
+ color: #fff;
2537
+ font-family: ${FontStyles.DEFAULT};
2538
+ font-size: 12px;
2539
+ font-weight: 500;
2540
+ line-height: 1;
2541
+ letter-spacing: 1px;
2527
2542
  `;
2528
2543
  Badge.defaultProps = { theme: EditableTheme };
2529
2544
  const Tabs = (_a) => {
@@ -2535,29 +2550,29 @@ const Tabs = (_a) => {
2535
2550
  label));
2536
2551
  })));
2537
2552
  };
2538
- Tabs.defaultProps = {};
2539
-
2540
- const Track = styled.div `
2541
- height: 24px;
2542
- border-radius: 12px;
2543
- background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
2544
- display: flex;
2545
- align-items: center;
2546
- cursor: pointer;
2547
- width: 40px;
2548
- padding: 2px;
2549
- box-sizing: border-box;
2550
- `;
2551
- const Handle = styled.div `
2552
- width: 20px;
2553
- height: 20px;
2554
- border-radius: 10px;
2555
- background: #ffffff;
2556
- margin-left: ${props => (props.$on ? 'auto' : '0px')};
2557
- display: flex;
2558
- align-items: center;
2559
- justify-content: center;
2560
- box-sizing: border-box;
2553
+ Tabs.defaultProps = {};
2554
+
2555
+ const Track = styled.div `
2556
+ height: 24px;
2557
+ border-radius: 12px;
2558
+ background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
2559
+ display: flex;
2560
+ align-items: center;
2561
+ cursor: pointer;
2562
+ width: 40px;
2563
+ padding: 2px;
2564
+ box-sizing: border-box;
2565
+ `;
2566
+ const Handle = styled.div `
2567
+ width: 20px;
2568
+ height: 20px;
2569
+ border-radius: 10px;
2570
+ background: #ffffff;
2571
+ margin-left: ${props => (props.$on ? 'auto' : '0px')};
2572
+ display: flex;
2573
+ align-items: center;
2574
+ justify-content: center;
2575
+ box-sizing: border-box;
2561
2576
  `;
2562
2577
  const Toggle = (_a) => {
2563
2578
  var { onClick, on } = _a, accessibleProps = __rest(_a, ["onClick", "on"]);
@@ -2566,32 +2581,32 @@ const Toggle = (_a) => {
2566
2581
  React.createElement(Handle, { "$on": on },
2567
2582
  React.createElement(Icon, { color: on ? Colors.GREEN.Hex : Colors.BLACK.Hex, path: on ? mdiCheck : mdiClose, size: '16px' }))));
2568
2583
  };
2569
- Toggle.defaultProps = {};
2570
-
2571
- const Container = styled.div `
2572
- width: 100%;
2573
- padding: 40px auto;
2574
- gap: 20px;
2575
- display: flex;
2576
- flex-direction: column;
2577
- justify-items: center;
2578
- align-items: center;
2579
- `;
2580
- const Wrapper = styled.div `
2581
- gap: 10px;
2582
- display: flex;
2583
- flex-direction: column;
2584
- justify-items: center;
2585
- align-items: center;
2586
- `;
2587
- const StyledIcon = styled.div `
2588
- display: flex;
2589
- align-items: center;
2590
- justify-content: center;
2591
- width: 80px;
2592
- height: 80px;
2593
- border-radius: 40px;
2594
- background: #f5f5f5;
2584
+ Toggle.defaultProps = {};
2585
+
2586
+ const Container = styled.div `
2587
+ width: 100%;
2588
+ padding: 40px auto;
2589
+ gap: 20px;
2590
+ display: flex;
2591
+ flex-direction: column;
2592
+ justify-items: center;
2593
+ align-items: center;
2594
+ `;
2595
+ const Wrapper = styled.div `
2596
+ gap: 10px;
2597
+ display: flex;
2598
+ flex-direction: column;
2599
+ justify-items: center;
2600
+ align-items: center;
2601
+ `;
2602
+ const StyledIcon = styled.div `
2603
+ display: flex;
2604
+ align-items: center;
2605
+ justify-content: center;
2606
+ width: 80px;
2607
+ height: 80px;
2608
+ border-radius: 40px;
2609
+ background: #f5f5f5;
2595
2610
  `;
2596
2611
  const ZeroState = (_a) => {
2597
2612
  var { icon, title, description, action } = _a, accessibleProps = __rest(_a, ["icon", "title", "description", "action"]);
@@ -2602,7 +2617,7 @@ const ZeroState = (_a) => {
2602
2617
  React.createElement(Heading, { children: title, type: 'tertiary' }),
2603
2618
  description && React.createElement(Copy, { align: 'center', children: description, color: 'GRAY', type: 'default' })),
2604
2619
  action && (React.createElement(Button, { children: action.children, disabled: action.disabled, format: action.format, icon: action.icon, onClick: action.onClick }))));
2605
- };
2606
-
2607
- 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 };
2608
- //# sourceMappingURL=index.js.map
2620
+ };
2621
+
2622
+ 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 };
2623
+ //# sourceMappingURL=index.js.map