@hexure/ui 1.13.42 → 1.13.43

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.
Files changed (84) hide show
  1. package/dist/cjs/index.js +1790 -1790
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/Accordion/Accordion.d.ts +1 -1
  4. package/dist/cjs/types/components/ActionDialog/ActionDialog.d.ts +1 -1
  5. package/dist/cjs/types/components/Alert/Alert.d.ts +1 -1
  6. package/dist/cjs/types/components/AppHeader/AppHeader.d.ts +1 -1
  7. package/dist/cjs/types/components/AppMenu/AppMenu.d.ts +1 -1
  8. package/dist/cjs/types/components/BulkActionBar/BulkActionBar.d.ts +1 -1
  9. package/dist/cjs/types/components/Button/Button.d.ts +1 -1
  10. package/dist/cjs/types/components/ButtonMenu/ButtonMenu.d.ts +1 -1
  11. package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +2 -2
  12. package/dist/cjs/types/components/Checklist/Checklist.d.ts +1 -1
  13. package/dist/cjs/types/components/Copy/Copy.d.ts +1 -1
  14. package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +1 -1
  15. package/dist/cjs/types/components/Drawer/Drawer.d.ts +1 -1
  16. package/dist/cjs/types/components/Field/Field.d.ts +2 -2
  17. package/dist/cjs/types/components/FieldGroup/FieldGroup.d.ts +1 -1
  18. package/dist/cjs/types/components/FileUpload/FileUpload.d.ts +1 -1
  19. package/dist/cjs/types/components/Heading/Heading.d.ts +1 -1
  20. package/dist/cjs/types/components/Input/Input.d.ts +1 -1
  21. package/dist/cjs/types/components/Link/Link.d.ts +1 -1
  22. package/dist/cjs/types/components/Loader/Loader.d.ts +1 -1
  23. package/dist/cjs/types/components/Logo/Logo.d.ts +1 -1
  24. package/dist/cjs/types/components/Modal/Modal.d.ts +1 -1
  25. package/dist/cjs/types/components/MoreMenu/MoreMenu.d.ts +1 -1
  26. package/dist/cjs/types/components/{MultiSelect → Multiselect}/MultiSelect.d.ts +1 -1
  27. package/dist/cjs/types/components/PageHeader/PageHeader.d.ts +1 -1
  28. package/dist/cjs/types/components/Pagination/Pagination.d.ts +1 -1
  29. package/dist/cjs/types/components/ProgressBar/ProgressBar.d.ts +1 -1
  30. package/dist/cjs/types/components/Radio/Radio.d.ts +2 -2
  31. package/dist/cjs/types/components/RadioList/RadioList.d.ts +1 -1
  32. package/dist/cjs/types/components/Select/Select.d.ts +1 -1
  33. package/dist/cjs/types/components/Table/Table.d.ts +2 -1
  34. package/dist/cjs/types/components/Tabs/Tabs.d.ts +1 -1
  35. package/dist/cjs/types/components/Tag/Tag.d.ts +1 -1
  36. package/dist/cjs/types/components/Toast/Toast.d.ts +1 -1
  37. package/dist/cjs/types/components/Toggle/Toggle.d.ts +1 -1
  38. package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +1 -1
  39. package/dist/cjs/types/components/ZeroState/ZeroState.d.ts +1 -1
  40. package/dist/cjs/types/utils/Accessibility.d.ts +2 -1
  41. package/dist/esm/index.js +1742 -1742
  42. package/dist/esm/index.js.map +1 -1
  43. package/dist/esm/types/components/Accordion/Accordion.d.ts +1 -1
  44. package/dist/esm/types/components/ActionDialog/ActionDialog.d.ts +1 -1
  45. package/dist/esm/types/components/Alert/Alert.d.ts +1 -1
  46. package/dist/esm/types/components/AppHeader/AppHeader.d.ts +1 -1
  47. package/dist/esm/types/components/AppMenu/AppMenu.d.ts +1 -1
  48. package/dist/esm/types/components/BulkActionBar/BulkActionBar.d.ts +1 -1
  49. package/dist/esm/types/components/Button/Button.d.ts +1 -1
  50. package/dist/esm/types/components/ButtonMenu/ButtonMenu.d.ts +1 -1
  51. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +2 -2
  52. package/dist/esm/types/components/Checklist/Checklist.d.ts +1 -1
  53. package/dist/esm/types/components/Copy/Copy.d.ts +1 -1
  54. package/dist/esm/types/components/DatePicker/DatePicker.d.ts +1 -1
  55. package/dist/esm/types/components/Drawer/Drawer.d.ts +1 -1
  56. package/dist/esm/types/components/Field/Field.d.ts +2 -2
  57. package/dist/esm/types/components/FieldGroup/FieldGroup.d.ts +1 -1
  58. package/dist/esm/types/components/FileUpload/FileUpload.d.ts +1 -1
  59. package/dist/esm/types/components/Heading/Heading.d.ts +1 -1
  60. package/dist/esm/types/components/Input/Input.d.ts +1 -1
  61. package/dist/esm/types/components/Link/Link.d.ts +1 -1
  62. package/dist/esm/types/components/Loader/Loader.d.ts +1 -1
  63. package/dist/esm/types/components/Logo/Logo.d.ts +1 -1
  64. package/dist/esm/types/components/Modal/Modal.d.ts +1 -1
  65. package/dist/esm/types/components/MoreMenu/MoreMenu.d.ts +1 -1
  66. package/dist/esm/types/components/{MultiSelect → Multiselect}/MultiSelect.d.ts +1 -1
  67. package/dist/esm/types/components/PageHeader/PageHeader.d.ts +1 -1
  68. package/dist/esm/types/components/Pagination/Pagination.d.ts +1 -1
  69. package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +1 -1
  70. package/dist/esm/types/components/Radio/Radio.d.ts +2 -2
  71. package/dist/esm/types/components/RadioList/RadioList.d.ts +1 -1
  72. package/dist/esm/types/components/Select/Select.d.ts +1 -1
  73. package/dist/esm/types/components/Table/Table.d.ts +2 -1
  74. package/dist/esm/types/components/Tabs/Tabs.d.ts +1 -1
  75. package/dist/esm/types/components/Tag/Tag.d.ts +1 -1
  76. package/dist/esm/types/components/Toast/Toast.d.ts +1 -1
  77. package/dist/esm/types/components/Toggle/Toggle.d.ts +1 -1
  78. package/dist/esm/types/components/Tooltip/Tooltip.d.ts +1 -1
  79. package/dist/esm/types/components/ZeroState/ZeroState.d.ts +1 -1
  80. package/dist/esm/types/utils/Accessibility.d.ts +2 -1
  81. package/dist/index.d.ts +123 -121
  82. package/package.json +1 -1
  83. /package/dist/cjs/types/components/{MultiSelect → Multiselect}/index.d.ts +0 -0
  84. /package/dist/esm/types/components/{MultiSelect → Multiselect}/index.d.ts +0 -0
package/dist/esm/index.js CHANGED
@@ -1,11 +1,11 @@
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
-
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,71 +83,71 @@ 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
- var { id, title, children, open, onClick } = _a, accessibleProps = __rest(_a, ["id", "title", "children", "open", "onClick"]);
109
- const baseId = id || 'accordion';
108
+ var { dataItemid, title, children, open, onClick } = _a, accessibleProps = __rest(_a, ["dataItemid", "title", "children", "open", "onClick"]);
109
+ const baseId = dataItemid || 'accordion';
110
110
  return (React.createElement(React.Fragment, null,
111
- React.createElement(Header$3, Object.assign({ id: `${baseId}-header`, onClick: onClick }, accessibleProps),
112
- React.createElement(Title$2, { id: `${baseId}-title` }, title),
113
- React.createElement(Icon, { color: Colors.BLACK.Hex, id: `${baseId}-icon`, path: open ? mdiChevronUp : mdiChevronDown, size: '24px' })),
114
- open ? React.createElement("div", { id: `${baseId}-content` }, children) : null));
115
- };
116
-
117
- const StyledComponent = styled.p `
118
- color: ${props => Colors[props.$color || 'BLACK'].Hex};
119
- font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
120
- line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
121
- letter-spacing: ${props => (props.$type === 'small' ? '1px' : '0px')};
122
- font-weight: ${props => (props.$type === 'bold' ? '500' : '400')};
123
- font-style: ${props => (props.$type === 'italic' ? 'italic' : 'normal')};
124
- text-decoration: ${props => ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none'};
125
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
126
- margin: ${props => props.$margin || '0px'};
127
- padding: ${props => props.$padding || '0px'};
128
- text-align: ${props => props.$align || 'left'};
129
- box-sizing: border-box;
111
+ React.createElement(Header$3, Object.assign({ "data-itemid": `${baseId}-header`, onClick: onClick }, accessibleProps),
112
+ React.createElement(Title$2, { "data-itemid": `${baseId}-title` }, title),
113
+ React.createElement(Icon, { color: Colors.BLACK.Hex, "data-itemid": `${baseId}-icon`, path: open ? mdiChevronUp : mdiChevronDown, size: '24px' })),
114
+ open ? React.createElement("div", { "data-itemid": `${baseId}-content` }, children) : null));
115
+ };
116
+
117
+ const StyledComponent = styled.p `
118
+ color: ${props => Colors[props.$color || 'BLACK'].Hex};
119
+ font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
120
+ line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
121
+ letter-spacing: ${props => (props.$type === 'small' ? '1px' : '0px')};
122
+ font-weight: ${props => (props.$type === 'bold' ? '500' : '400')};
123
+ font-style: ${props => (props.$type === 'italic' ? 'italic' : 'normal')};
124
+ text-decoration: ${props => ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none'};
125
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
126
+ margin: ${props => props.$margin || '0px'};
127
+ padding: ${props => props.$padding || '0px'};
128
+ text-align: ${props => props.$align || 'left'};
129
+ box-sizing: border-box;
130
130
  `;
131
131
  const Copy = (_a) => {
132
- var { children, align = '', margin = '', padding = '', type = 'default', color = 'BLACK', id } = _a, accessibleProps = __rest(_a, ["children", "align", "margin", "padding", "type", "color", "id"]);
133
- const baseId = id || 'copy';
134
- return (React.createElement(StyledComponent, Object.assign({ "$align": align, "$color": color, "$margin": margin, "$padding": padding, "$type": type, id: `${baseId}-styled-component` }, accessibleProps), children));
132
+ var { children, align = '', margin = '', padding = '', type = 'default', color = 'BLACK', dataItemid } = _a, accessibleProps = __rest(_a, ["children", "align", "margin", "padding", "type", "color", "dataItemid"]);
133
+ const baseId = dataItemid || 'copy';
134
+ return (React.createElement(StyledComponent, Object.assign({ "$align": align, "$color": color, "$margin": margin, "$padding": padding, "$type": type, "data-itemid": `${baseId}-styled-component` }, accessibleProps), children));
135
135
  };
136
136
  Copy.defaultProps = {
137
137
  type: 'default',
138
- };
139
-
140
- const Wrapper$h = styled.div `
141
- display: inline-block;
142
- position: relative;
143
- height: 16px;
144
- `;
145
- const StyledIcon$6 = styled(Icon) `
146
- width: 16px;
147
- height: 16px;
148
- margin: 0px 6px;
149
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
150
- cursor: pointer;
138
+ };
139
+
140
+ const Wrapper$h = styled.div `
141
+ display: inline-block;
142
+ position: relative;
143
+ height: 16px;
144
+ `;
145
+ const StyledIcon$6 = styled(Icon) `
146
+ width: 16px;
147
+ height: 16px;
148
+ margin: 0px 6px;
149
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
150
+ cursor: pointer;
151
151
  `;
152
152
  StyledIcon$6.defaultProps = { theme: EditableTheme };
153
153
  const positions = {
@@ -180,19 +180,19 @@ const positions = {
180
180
  };
181
181
  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])));
182
182
  Content$3.defaultProps = { theme: EditableTheme };
183
- const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, id, }) => {
183
+ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, dataItemid, }) => {
184
184
  const [show_content, toggleContent] = useState(false);
185
- const baseId = id || 'tooltip';
186
- return (React.createElement(Wrapper$h, { id: `${baseId}-wrapper`, onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
187
- trigger || React.createElement(StyledIcon$6, { id: `${baseId}-icon`, path: mdiInformationOutline }),
188
- show_content ? (React.createElement(Content$3, { "$position": position, "$width": width, id: `${baseId}-content` }, children && (React.createElement(Copy, { id: `${baseId}-copy`, type: 'small' }, children)))) : null));
189
- };
190
-
191
- const StyledButton = styled.button `
192
- height: ${props => (props.$small ? '30px' : '40px')};
193
- line-height: 1em;
194
- border-radius: ${props => (props.$small ? '15px' : '20px')};
195
- margin: ${props => props.$margin || '0px'};
185
+ const baseId = dataItemid || 'tooltip';
186
+ return (React.createElement(Wrapper$h, { "data-itemid": `${baseId}-wrapper`, onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
187
+ trigger || React.createElement(StyledIcon$6, { "data-itemid": `${baseId}-icon`, path: mdiInformationOutline }),
188
+ show_content ? (React.createElement(Content$3, { "$position": position, "$width": width, "data-itemid": `${baseId}-content` }, children && (React.createElement(Copy, { "data-itemid": `${baseId}-copy`, type: 'small' }, children)))) : null));
189
+ };
190
+
191
+ const StyledButton = styled.button `
192
+ height: ${props => (props.$small ? '30px' : '40px')};
193
+ line-height: 1em;
194
+ border-radius: ${props => (props.$small ? '15px' : '20px')};
195
+ margin: ${props => props.$margin || '0px'};
196
196
  padding: ${props => {
197
197
  if (props.$hasChildren) {
198
198
  if (props.$small) {
@@ -203,9 +203,9 @@ const StyledButton = styled.button `
203
203
  }
204
204
  }
205
205
  return '0px';
206
- }};
207
- outline: none;
208
- background: ${props => props.$bg_color || props.theme.PRIMARY_COLOR.Hex};
206
+ }};
207
+ outline: none;
208
+ background: ${props => props.$bg_color || props.theme.PRIMARY_COLOR.Hex};
209
209
  width: ${props => {
210
210
  if (props.$hasChildren) {
211
211
  return 'auto';
@@ -214,58 +214,58 @@ const StyledButton = styled.button `
214
214
  return '30px';
215
215
  }
216
216
  return '40px';
217
- }};
218
- cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
219
- display: flex;
220
- align-items: center;
221
- justify-content: center;
222
- gap: ${props => (props.$iconPosition === 'before' ? '8px' : '0px')};
223
- flex-direction: ${props => (props.$iconPosition === 'before' ? 'row-reverse' : 'row')};
224
- opacity: ${props => (props.$disabled ? 0.6 : 0.9)};
225
- border-width: 1px;
226
- border-style: solid;
227
- border-color: ${props => props.$border_color || props.theme.PRIMARY_COLOR.Hex};
228
- box-sizing: border-box;
229
-
230
- &:active,
231
- &:focus,
232
- &:hover {
233
- opacity: ${props => (props.$disabled ? 0.6 : 1)};
234
- }
235
- `;
236
- const Label$5 = styled.span `
237
- color: ${props => props.$content_color || '#fff'};
238
- font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
239
- font-family: ${FontStyles.DEFAULT};
240
- font-weight: 500;
241
- line-height: 1;
242
- `;
243
- const StyledIcon$5 = styled.span `
244
- margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
245
- margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
246
- display: flex;
247
- align-items: center;
248
- box-sizing: border-box;
249
- `;
250
- const Badge$1 = styled.span `
251
- width: ${props => (props.$small ? '20px' : '24px')};
252
- height: ${props => (props.$small ? '20px' : '24px')};
253
- line-height: 1;
254
- display: flex;
255
- align-items: center;
256
- justify-content: center;
257
- border-radius: 100%;
258
- background-color: ${props => props.$bg_color || '#fff'};
259
- color: ${props => props.$content_color || props.theme.PRIMARY_COLOR.Hex};
260
- font-size: ${props => (props.$small ? '10px' : '12px')};
261
- font-weight: 600;
262
- font-family: ${FontStyles.DEFAULT};
263
- letter-spacing: -1px;
264
- margin-left: ${props => (props.$small ? '5px' : '10px')};
265
- margin-right: ${props => (props.$small ? '-5px' : '-10px')};
217
+ }};
218
+ cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
219
+ display: flex;
220
+ align-items: center;
221
+ justify-content: center;
222
+ gap: ${props => (props.$iconPosition === 'before' ? '8px' : '0px')};
223
+ flex-direction: ${props => (props.$iconPosition === 'before' ? 'row-reverse' : 'row')};
224
+ opacity: ${props => (props.$disabled ? 0.6 : 0.9)};
225
+ border-width: 1px;
226
+ border-style: solid;
227
+ border-color: ${props => props.$border_color || props.theme.PRIMARY_COLOR.Hex};
228
+ box-sizing: border-box;
229
+
230
+ &:active,
231
+ &:focus,
232
+ &:hover {
233
+ opacity: ${props => (props.$disabled ? 0.6 : 1)};
234
+ }
235
+ `;
236
+ const Label$5 = styled.span `
237
+ color: ${props => props.$content_color || '#fff'};
238
+ font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
239
+ font-family: ${FontStyles.DEFAULT};
240
+ font-weight: 500;
241
+ line-height: 1;
242
+ `;
243
+ const StyledIcon$5 = styled.span `
244
+ margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
245
+ margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
246
+ display: flex;
247
+ align-items: center;
248
+ box-sizing: border-box;
249
+ `;
250
+ const Badge$1 = styled.span `
251
+ width: ${props => (props.$small ? '20px' : '24px')};
252
+ height: ${props => (props.$small ? '20px' : '24px')};
253
+ line-height: 1;
254
+ display: flex;
255
+ align-items: center;
256
+ justify-content: center;
257
+ border-radius: 100%;
258
+ background-color: ${props => props.$bg_color || '#fff'};
259
+ color: ${props => props.$content_color || props.theme.PRIMARY_COLOR.Hex};
260
+ font-size: ${props => (props.$small ? '10px' : '12px')};
261
+ font-weight: 600;
262
+ font-family: ${FontStyles.DEFAULT};
263
+ letter-spacing: -1px;
264
+ margin-left: ${props => (props.$small ? '5px' : '10px')};
265
+ margin-right: ${props => (props.$small ? '-5px' : '-10px')};
266
266
  `;
267
267
  const Button = (_a) => {
268
- var { badge, children, disabled = false, icon, isForm = false, loading = false, margin = '', onClick, small = false, format = 'primary', iconPosition = 'after', toolTip, title = '', id } = _a, accessibleProps = __rest(_a, ["badge", "children", "disabled", "icon", "isForm", "loading", "margin", "onClick", "small", "format", "iconPosition", "toolTip", "title", "id"]);
268
+ var { badge, children, disabled = false, icon, isForm = false, loading = false, margin = '', onClick, small = false, format = 'primary', iconPosition = 'after', toolTip, title = '', dataItemid } = _a, accessibleProps = __rest(_a, ["badge", "children", "disabled", "icon", "isForm", "loading", "margin", "onClick", "small", "format", "iconPosition", "toolTip", "title", "dataItemid"]);
269
269
  const theme = useContext(ThemeContext) || EditableTheme;
270
270
  const has_children = children && children.length > 0;
271
271
  const button_type_mapping = {
@@ -299,130 +299,130 @@ const Button = (_a) => {
299
299
  },
300
300
  };
301
301
  const format_styles = button_type_mapping[format];
302
- const baseId = id || 'button';
303
- 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, "$iconPosition": iconPosition, "$margin": margin, "$small": small, disabled: disabled || loading, onClick: disabled || loading ? undefined : onClick, title: title, type: isForm ? 'submit' : undefined }, accessibleProps, { id: `${baseId}-styled-button` }),
304
- children ? (React.createElement(Label$5, { "$content_color": format_styles.content_color, "$small": small, id: `${baseId}-label` }, children)) : null,
305
- icon && !badge ? (React.createElement(StyledIcon$5, { "$hasChildren": !!has_children, id: `${baseId}-icon` },
306
- React.createElement(Icon, { color: format ? format_styles === null || format_styles === void 0 ? void 0 : format_styles.content_color : '#fff', id: `${baseId}-icon-svg`, path: loading ? mdiLoading : icon, size: small ? '20px' : '24px', spin: loading }))) : null,
307
- badge && !icon ? (React.createElement(Badge$1, { "$bg_color": format_styles.badge_bg_color, "$content_color": format_styles.badge_content_color, "$small": small, id: `${baseId}-badge` }, badge)) : null));
302
+ const baseId = dataItemid || 'button';
303
+ 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, "$iconPosition": iconPosition, "$margin": margin, "$small": small, disabled: disabled || loading, onClick: disabled || loading ? undefined : onClick, title: title, type: isForm ? 'submit' : undefined }, accessibleProps, { "data-itemid": `${baseId}-styled-button` }),
304
+ children ? (React.createElement(Label$5, { "$content_color": format_styles.content_color, "$small": small, "data-itemid": `${baseId}-label` }, children)) : null,
305
+ icon && !badge ? (React.createElement(StyledIcon$5, { "$hasChildren": !!has_children, "data-itemid": `${baseId}-icon` },
306
+ React.createElement(Icon, { color: format ? format_styles === null || format_styles === void 0 ? void 0 : format_styles.content_color : '#fff', "data-itemid": `${baseId}-icon-svg`, path: loading ? mdiLoading : icon, size: small ? '20px' : '24px', spin: loading }))) : null,
307
+ badge && !icon ? (React.createElement(Badge$1, { "$bg_color": format_styles.badge_bg_color, "$content_color": format_styles.badge_content_color, "$small": small, "data-itemid": `${baseId}-badge` }, badge)) : null));
308
308
  if (toolTip && Object.keys(toolTip).length) {
309
309
  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));
310
310
  }
311
311
  return button_view;
312
- };
313
-
314
- const H1 = styled.h1 `
315
- color: ${Colors.BLACK.Hex};
316
- font-size: 30px;
317
- font-weight: ${props => (props.$bold ? '500' : '400')};
318
- line-height: 1.4em;
319
- font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
320
- margin: ${props => props.$margin || '0px'};
321
- padding: ${props => props.$padding || '0px'};
322
- box-sizing: border-box;
323
- `;
324
- const H2 = styled.h2 `
325
- color: ${Colors.BLACK.Hex};
326
- font-size: 24px;
327
- font-weight: ${props => (props.$bold ? '500' : '400')};
328
- line-height: 1.33em;
329
- font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
330
- margin: ${props => props.$margin || '0px'};
331
- padding: ${props => props.$padding || '0px'};
332
- box-sizing: border-box;
333
- `;
334
- const H3 = styled.h3 `
335
- color: ${Colors.BLACK.Hex};
336
- font-size: 18px;
337
- font-weight: ${props => (props.$bold ? '500' : '400')};
338
- line-height: 1.33em;
339
- font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
340
- margin: ${props => props.$margin || '0px'};
341
- padding: ${props => props.$padding || '0px'};
342
- box-sizing: border-box;
312
+ };
313
+
314
+ const H1 = styled.h1 `
315
+ color: ${Colors.BLACK.Hex};
316
+ font-size: 30px;
317
+ font-weight: ${props => (props.$bold ? '500' : '400')};
318
+ line-height: 1.4em;
319
+ font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
320
+ margin: ${props => props.$margin || '0px'};
321
+ padding: ${props => props.$padding || '0px'};
322
+ box-sizing: border-box;
323
+ `;
324
+ const H2 = styled.h2 `
325
+ color: ${Colors.BLACK.Hex};
326
+ font-size: 24px;
327
+ font-weight: ${props => (props.$bold ? '500' : '400')};
328
+ line-height: 1.33em;
329
+ font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
330
+ margin: ${props => props.$margin || '0px'};
331
+ padding: ${props => props.$padding || '0px'};
332
+ box-sizing: border-box;
333
+ `;
334
+ const H3 = styled.h3 `
335
+ color: ${Colors.BLACK.Hex};
336
+ font-size: 18px;
337
+ font-weight: ${props => (props.$bold ? '500' : '400')};
338
+ line-height: 1.33em;
339
+ font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
340
+ margin: ${props => props.$margin || '0px'};
341
+ padding: ${props => props.$padding || '0px'};
342
+ box-sizing: border-box;
343
343
  `;
344
344
  const Heading = (_a) => {
345
- var { bold, children, margin, padding, type, id } = _a, accessibleProps = __rest(_a, ["bold", "children", "margin", "padding", "type", "id"]);
346
- const baseId = id || 'heading';
345
+ var { bold, children, margin, padding, type, dataItemid } = _a, accessibleProps = __rest(_a, ["bold", "children", "margin", "padding", "type", "dataItemid"]);
346
+ const baseId = dataItemid || 'heading';
347
347
  switch (type) {
348
348
  case 'secondary': {
349
- return (React.createElement(H2, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { id: `${baseId}-h2` }), children));
349
+ return (React.createElement(H2, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { "data-itemid": `${baseId}-h2` }), children));
350
350
  }
351
351
  case 'tertiary': {
352
- return (React.createElement(H3, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { id: `${baseId}-h3` }), children));
352
+ return (React.createElement(H3, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { "data-itemid": `${baseId}-h3` }), children));
353
353
  }
354
354
  default: {
355
- return (React.createElement(H1, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { id: `${baseId}-h1` }), children));
355
+ return (React.createElement(H1, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { "data-itemid": `${baseId}-h1` }), children));
356
356
  }
357
357
  }
358
358
  };
359
359
  Heading.defaultProps = {
360
360
  bold: false,
361
361
  type: 'primary',
362
- };
363
-
364
- const Wrapper$g = styled.div `
365
- position: fixed;
366
- top: 0;
367
- right: 0;
368
- bottom: 0;
369
- left: 0;
370
- z-index: 9999;
371
- background: rgba(0, 0, 0, 0.8);
372
- display: flex;
373
- align-items: center;
374
- justify-content: center;
375
- box-sizing: border-box;
362
+ };
363
+
364
+ const Wrapper$g = styled.div `
365
+ position: fixed;
366
+ top: 0;
367
+ right: 0;
368
+ bottom: 0;
369
+ left: 0;
370
+ z-index: 9999;
371
+ background: rgba(0, 0, 0, 0.8);
372
+ display: flex;
373
+ align-items: center;
374
+ justify-content: center;
375
+ box-sizing: border-box;
376
376
  `;
377
377
  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)));
378
- const Buttons$1 = styled.div `
379
- display: flex;
380
- gap: 10px;
381
- align-items: center;
382
- justify-content: center;
383
- margin-top: 30px;
384
- box-sizing: border-box;
378
+ const Buttons$1 = styled.div `
379
+ display: flex;
380
+ gap: 10px;
381
+ align-items: center;
382
+ justify-content: center;
383
+ margin-top: 30px;
384
+ box-sizing: border-box;
385
385
  `;
386
386
  const ActionDialog = (_a) => {
387
- var { description, title, primaryButton, secondaryButton, tertiaryButton, style = {}, id } = _a, accessibleProps = __rest(_a, ["description", "title", "primaryButton", "secondaryButton", "tertiaryButton", "style", "id"]);
388
- const baseId = id || 'action-dialog';
389
- return (React.createElement(Wrapper$g, Object.assign({}, accessibleProps, { id: `${baseId}-wrapper` }),
390
- React.createElement(Container$4, { "$customStyle": style, id: `${baseId}-container`, open: true },
391
- title ? (React.createElement(Heading, { id: `${baseId}-title`, margin: '0px 0px 20px 0px', type: 'secondary' }, title)) : null,
392
- description ? (React.createElement(Copy, { align: 'center', id: `${baseId}-description` }, description)) : null,
393
- primaryButton || secondaryButton || tertiaryButton ? (React.createElement(Buttons$1, { id: `${baseId}-buttons` },
394
- tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary', id: `${baseId}-tertiary-button` }))) : null,
395
- secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary', id: `${baseId}-secondary-button` }))) : null,
396
- primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary', id: `${baseId}-primary-button` }))) : null)) : null)));
397
- };
398
-
399
- const Wrapper$f = styled.div `
400
- border: 1px solid #f1f1f1;
401
- border-radius: 4px;
402
- border-left-width: 4px;
403
- box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);
404
- display: flex;
405
- align-items: flex-start;
406
- gap: ${({ $small }) => ($small ? '8px' : '20px')};
407
- padding: ${({ $small }) => ($small ? '11px' : '20px')};
408
- box-sizing: border-box;
409
- `;
410
- const StyledIcon$4 = styled(Icon) `
411
- flex-shrink: 0;
412
- `;
413
- const Action$1 = styled.div `
414
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
415
- font-size: ${FontSizes.DEFAULT};
416
- font-family: ${FontStyles.DEFAULT};
417
- font-weight: 500;
418
- cursor: pointer;
419
- margin-top: 6px;
387
+ var { description, title, primaryButton, secondaryButton, tertiaryButton, style = {}, dataItemid } = _a, accessibleProps = __rest(_a, ["description", "title", "primaryButton", "secondaryButton", "tertiaryButton", "style", "dataItemid"]);
388
+ const baseId = dataItemid || 'action-dialog';
389
+ return (React.createElement(Wrapper$g, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
390
+ React.createElement(Container$4, { "$customStyle": style, "data-itemid": `${baseId}-container`, open: true },
391
+ title ? (React.createElement(Heading, { "data-itemid": `${baseId}-title`, margin: '0px 0px 20px 0px', type: 'secondary' }, title)) : null,
392
+ description ? (React.createElement(Copy, { align: 'center', "data-itemid": `${baseId}-description` }, description)) : null,
393
+ primaryButton || secondaryButton || tertiaryButton ? (React.createElement(Buttons$1, { "data-itemid": `${baseId}-buttons` },
394
+ tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { "data-itemid": `${baseId}-tertiary-button`, format: tertiaryButton.format || 'secondary' }))) : null,
395
+ secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": `${baseId}-secondary-button`, format: secondaryButton.format || 'secondary' }))) : null,
396
+ primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": `${baseId}-primary-button`, format: primaryButton.format || 'primary' }))) : null)) : null)));
397
+ };
398
+
399
+ const Wrapper$f = styled.div `
400
+ border: 1px solid #f1f1f1;
401
+ border-radius: 4px;
402
+ border-left-width: 4px;
403
+ box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);
404
+ display: flex;
405
+ align-items: flex-start;
406
+ gap: ${({ $small }) => ($small ? '8px' : '20px')};
407
+ padding: ${({ $small }) => ($small ? '11px' : '20px')};
408
+ box-sizing: border-box;
409
+ `;
410
+ const StyledIcon$4 = styled(Icon) `
411
+ flex-shrink: 0;
412
+ `;
413
+ const Action$1 = styled.div `
414
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
415
+ font-size: ${FontSizes.DEFAULT};
416
+ font-family: ${FontStyles.DEFAULT};
417
+ font-weight: 500;
418
+ cursor: pointer;
419
+ margin-top: 6px;
420
420
  `;
421
421
  Action$1.defaultProps = { theme: EditableTheme };
422
422
  const Alert = (_a) => {
423
- var { action, type = 'info', title, description, small = false, id } = _a, accessibleProps = __rest(_a, ["action", "type", "title", "description", "small", "id"]);
423
+ var { action, type = 'info', title, description, small = false, dataItemid } = _a, accessibleProps = __rest(_a, ["action", "type", "title", "description", "small", "dataItemid"]);
424
424
  const theme = useContext(ThemeContext) || EditableTheme;
425
- const baseId = id || 'alert';
425
+ const baseId = dataItemid || 'alert';
426
426
  const type_mapping = {
427
427
  info: {
428
428
  color: theme.PRIMARY_COLOR.Hex,
@@ -441,14 +441,14 @@ const Alert = (_a) => {
441
441
  icon: mdiCheckboxMarkedCircleOutline,
442
442
  },
443
443
  };
444
- return (React.createElement(Wrapper$f, Object.assign({}, accessibleProps, { "$small": small, id: `${baseId}-wrapper`, style: { borderLeftColor: type_mapping[type].color } }),
445
- React.createElement(StyledIcon$4, { color: type_mapping[type].color, id: `${baseId}-icon`, path: type_mapping[type].icon, size: small ? '20px' : '30px' }),
446
- React.createElement("div", { id: `${baseId}-content` },
447
- title && !small ? (React.createElement(Heading, { bold: true, id: `${baseId}-title`, margin: '2px 0 0 0', type: 'tertiary' }, title)) : null,
448
- description ? (React.createElement(Copy, { id: `${baseId}-description`, margin: small ? '' : '6px 0 0 0 !important' }, description)) : null,
449
- action && !small ? (React.createElement(Action$1, { id: `${baseId}-action`, onClick: action.onClick }, action.label)) : null)));
450
- };
451
-
444
+ return (React.createElement(Wrapper$f, Object.assign({}, accessibleProps, { "$small": small, "data-itemid": `${baseId}-wrapper`, style: { borderLeftColor: type_mapping[type].color } }),
445
+ React.createElement(StyledIcon$4, { color: type_mapping[type].color, "data-itemid": `${baseId}-icon`, path: type_mapping[type].icon, size: small ? '20px' : '30px' }),
446
+ React.createElement("div", { "data-itemid": `${baseId}-content` },
447
+ title && !small ? (React.createElement(Heading, { bold: true, "data-itemid": `${baseId}-title`, margin: '2px 0 0 0', type: 'tertiary' }, title)) : null,
448
+ description ? (React.createElement(Copy, { "data-itemid": `${baseId}-description`, margin: small ? '' : '6px 0 0 0 !important' }, description)) : null,
449
+ action && !small ? (React.createElement(Action$1, { "data-itemid": `${baseId}-action`, onClick: action.onClick }, action.label)) : null)));
450
+ };
451
+
452
452
  const colorMapping = {
453
453
  black: {
454
454
  fill_1: '#000000',
@@ -472,364 +472,364 @@ const colorMapping = {
472
472
  },
473
473
  };
474
474
  const Logo = (_a) => {
475
- var { type = 'standard_full', height = '50px', id } = _a, accessibleProps = __rest(_a, ["type", "height", "id"]);
475
+ var { type = 'standard_full', height = '50px', dataItemid } = _a, accessibleProps = __rest(_a, ["type", "height", "dataItemid"]);
476
476
  const type_parts = type.split('_');
477
- const baseId = id || 'logo';
477
+ const baseId = dataItemid || 'logo';
478
478
  switch (type_parts[0]) {
479
479
  case 'mark':
480
- return (React.createElement("svg", Object.assign({ fill: 'none', height: height, viewBox: '0 0 58 51', width: '100%', xmlns: 'http://www.w3.org/2000/svg' }, accessibleProps, { id: `${baseId}-svg` }),
481
- React.createElement("path", { d: 'M43.9348 -1.14441e-05H13.3724L0 25.2376L7.27148 38.0136L14.1215 50.0487H43.1856L57.3077 25.2376L43.9348 -1.14441e-05ZM38.206 9.49903L46.459 25.0743L37.6507 40.5497H19.6567L15.5417 33.3199L10.8487 25.0743L19.1013 9.49903H38.206Z', fill: type_parts[1], id: `${baseId}-path` })));
480
+ return (React.createElement("svg", Object.assign({ fill: 'none', height: height, viewBox: '0 0 58 51', width: '100%', xmlns: 'http://www.w3.org/2000/svg' }, accessibleProps, { "data-itemid": `${baseId}-svg` }),
481
+ React.createElement("path", { d: 'M43.9348 -1.14441e-05H13.3724L0 25.2376L7.27148 38.0136L14.1215 50.0487H43.1856L57.3077 25.2376L43.9348 -1.14441e-05ZM38.206 9.49903L46.459 25.0743L37.6507 40.5497H19.6567L15.5417 33.3199L10.8487 25.0743L19.1013 9.49903H38.206Z', "data-itemid": `${baseId}-path`, fill: type_parts[1] })));
482
482
  default:
483
- return (React.createElement("svg", Object.assign({ fill: 'none', height: height, preserveAspectRatio: 'xMidYMid meet', viewBox: '0 0 236 50', width: '100%', xmlns: 'http://www.w3.org/2000/svg' }, accessibleProps, { id: `${baseId}-svg` }),
484
- React.createElement("path", { d: 'M230.794 29.59H219.306L214.279 39.0907L217.012 43.9001L219.587 48.4308H230.512L235.821 39.0907L230.794 29.59V29.59ZM228.641 33.1659L231.743 39.0292L228.432 44.8549H221.668L220.121 42.1332L218.356 39.0292L221.459 33.1659H228.641Z', fill: colorMapping[type_parts[1]].fill_3, id: `${baseId}-path-1` }),
485
- React.createElement("path", { d: 'M211.662 42.6033L199.206 42.6319C196.339 42.6319 193.862 41.6095 191.846 39.5923C189.828 37.5755 188.805 35.0985 188.805 32.2321C188.805 29.3656 189.828 26.8886 191.846 24.8718C193.848 22.8332 196.325 21.7975 199.206 21.7975C202.072 21.7975 204.549 22.8199 206.566 24.8374C207.613 25.8847 208.391 27.093 208.944 28.5312L209.253 29.3327H197.87L196.325 32.2579L197.921 35.0969H211.458L215.015 28.6192C214.296 25.5702 212.835 22.9293 210.672 20.7657C207.531 17.6257 203.674 16.0333 199.206 16.0333C194.737 16.0333 190.88 17.6257 187.739 20.7657C184.555 23.9501 183.007 27.7011 183.007 32.2321C183.007 36.7001 184.599 40.5577 187.739 43.6981C190.88 46.8384 194.737 48.4308 199.206 48.4308H210.095L214.745 48.3297L211.662 42.6033', fill: colorMapping[type_parts[1]].fill_1, id: `${baseId}-path-2` }),
486
- React.createElement("path", { d: 'M160.945 19.133L158.826 20.8384C155.734 23.9359 154.141 27.8058 154.141 32.2967L154.141 47.7903L156.985 49.407L159.939 47.8778L159.94 32.2967C159.94 29.6632 160.778 27.3706 162.432 25.4846C162.615 25.2739 162.811 25.0666 163.018 24.8639C163.074 24.8155 164.138 24.0061 164.811 23.5592C166.321 22.5576 168.076 21.9876 170.024 21.8632L170.166 21.8621C172.923 21.8621 175.32 22.7325 177.301 24.4494L180.146 23.0088L180.246 19.3426C177.44 17.1664 174.132 16.0633 170.408 16.0633C166.909 16.0633 163.725 17.0962 160.945 19.133', fill: colorMapping[type_parts[1]].fill_1, id: `${baseId}-path-3` }),
487
- React.createElement("path", { d: 'M131.392 50C135.884 50 139.753 48.4076 142.893 45.2676C146.033 42.1269 147.626 38.2581 147.626 33.7668V18.1124L144.782 16.4964L141.827 18.0251V33.7668C141.827 36.6932 140.792 39.1936 138.745 41.2034C136.684 43.1927 134.128 44.2013 131.151 44.2013L131.01 44.2002H131.81L131.669 44.2013C128.692 44.2013 126.136 43.1927 124.074 41.2034C122.028 39.1936 120.993 36.6932 120.993 33.7668V18.0251L118.038 16.4964L115.194 18.1124V33.7668C115.194 38.2581 116.786 42.1269 119.926 45.2676C123.067 48.4076 126.936 50 131.427 50H131.392Z', fill: colorMapping[type_parts[1]].fill_1, id: `${baseId}-path-4` }),
488
- React.createElement("path", { d: 'M93.8353 26.9933L97.8468 31.2421L100.788 28.1521L107.791 20.4534L106.753 17.3567L103.584 16.5678', fill: colorMapping[type_parts[1]].fill_2, id: `${baseId}-path-5` }),
489
- React.createElement("path", { d: 'M80.7509 16.5677L77.5821 17.3564L76.5441 20.4534L83.5514 28.1568L88.1484 32.9862L76.5412 45.2133L77.5187 48.3175C79.525 48.9571 80.359 49.1805 80.6985 49.2584L92.195 37.238L103.636 49.2584C103.976 49.1805 104.81 48.9571 106.817 48.3175L107.794 45.2133L80.7509 16.5677', fill: colorMapping[type_parts[1]].fill_1, id: `${baseId}-path-6` }),
490
- 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, id: `${baseId}-path-7` }),
491
- 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, id: `${baseId}-path-8` })));
483
+ return (React.createElement("svg", Object.assign({ fill: 'none', height: height, preserveAspectRatio: 'xMidYMid meet', viewBox: '0 0 236 50', width: '100%', xmlns: 'http://www.w3.org/2000/svg' }, accessibleProps, { "data-itemid": `${baseId}-svg` }),
484
+ React.createElement("path", { d: 'M230.794 29.59H219.306L214.279 39.0907L217.012 43.9001L219.587 48.4308H230.512L235.821 39.0907L230.794 29.59V29.59ZM228.641 33.1659L231.743 39.0292L228.432 44.8549H221.668L220.121 42.1332L218.356 39.0292L221.459 33.1659H228.641Z', "data-itemid": `${baseId}-path-1`, fill: colorMapping[type_parts[1]].fill_3 }),
485
+ React.createElement("path", { d: 'M211.662 42.6033L199.206 42.6319C196.339 42.6319 193.862 41.6095 191.846 39.5923C189.828 37.5755 188.805 35.0985 188.805 32.2321C188.805 29.3656 189.828 26.8886 191.846 24.8718C193.848 22.8332 196.325 21.7975 199.206 21.7975C202.072 21.7975 204.549 22.8199 206.566 24.8374C207.613 25.8847 208.391 27.093 208.944 28.5312L209.253 29.3327H197.87L196.325 32.2579L197.921 35.0969H211.458L215.015 28.6192C214.296 25.5702 212.835 22.9293 210.672 20.7657C207.531 17.6257 203.674 16.0333 199.206 16.0333C194.737 16.0333 190.88 17.6257 187.739 20.7657C184.555 23.9501 183.007 27.7011 183.007 32.2321C183.007 36.7001 184.599 40.5577 187.739 43.6981C190.88 46.8384 194.737 48.4308 199.206 48.4308H210.095L214.745 48.3297L211.662 42.6033', "data-itemid": `${baseId}-path-2`, fill: colorMapping[type_parts[1]].fill_1 }),
486
+ React.createElement("path", { d: 'M160.945 19.133L158.826 20.8384C155.734 23.9359 154.141 27.8058 154.141 32.2967L154.141 47.7903L156.985 49.407L159.939 47.8778L159.94 32.2967C159.94 29.6632 160.778 27.3706 162.432 25.4846C162.615 25.2739 162.811 25.0666 163.018 24.8639C163.074 24.8155 164.138 24.0061 164.811 23.5592C166.321 22.5576 168.076 21.9876 170.024 21.8632L170.166 21.8621C172.923 21.8621 175.32 22.7325 177.301 24.4494L180.146 23.0088L180.246 19.3426C177.44 17.1664 174.132 16.0633 170.408 16.0633C166.909 16.0633 163.725 17.0962 160.945 19.133', "data-itemid": `${baseId}-path-3`, fill: colorMapping[type_parts[1]].fill_1 }),
487
+ React.createElement("path", { d: 'M131.392 50C135.884 50 139.753 48.4076 142.893 45.2676C146.033 42.1269 147.626 38.2581 147.626 33.7668V18.1124L144.782 16.4964L141.827 18.0251V33.7668C141.827 36.6932 140.792 39.1936 138.745 41.2034C136.684 43.1927 134.128 44.2013 131.151 44.2013L131.01 44.2002H131.81L131.669 44.2013C128.692 44.2013 126.136 43.1927 124.074 41.2034C122.028 39.1936 120.993 36.6932 120.993 33.7668V18.0251L118.038 16.4964L115.194 18.1124V33.7668C115.194 38.2581 116.786 42.1269 119.926 45.2676C123.067 48.4076 126.936 50 131.427 50H131.392Z', "data-itemid": `${baseId}-path-4`, fill: colorMapping[type_parts[1]].fill_1 }),
488
+ React.createElement("path", { d: 'M93.8353 26.9933L97.8468 31.2421L100.788 28.1521L107.791 20.4534L106.753 17.3567L103.584 16.5678', "data-itemid": `${baseId}-path-5`, fill: colorMapping[type_parts[1]].fill_2 }),
489
+ React.createElement("path", { d: 'M80.7509 16.5677L77.5821 17.3564L76.5441 20.4534L83.5514 28.1568L88.1484 32.9862L76.5412 45.2133L77.5187 48.3175C79.525 48.9571 80.359 49.1805 80.6985 49.2584L92.195 37.238L103.636 49.2584C103.976 49.1805 104.81 48.9571 106.817 48.3175L107.794 45.2133L80.7509 16.5677', "data-itemid": `${baseId}-path-6`, fill: colorMapping[type_parts[1]].fill_1 }),
490
+ 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', "data-itemid": `${baseId}-path-7`, fill: colorMapping[type_parts[1]].fill_1 }),
491
+ 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', "data-itemid": `${baseId}-path-8`, fill: colorMapping[type_parts[1]].fill_1 })));
492
492
  }
493
- };
494
-
495
- const Container$3 = styled.header `
496
- width: 100%;
497
- display: flex;
498
- padding: 20px;
499
- box-sizing: border-box;
500
- border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
501
- background: '#fff';
502
- justify-content: space-between;
503
- `;
504
- const LogoWrapper = styled.div `
505
- display: flex;
506
- align-items: center;
507
- `;
508
- const Image = styled.img `
509
- height: 30px !important;
510
- width: auto !important;
511
- `;
512
- const Buttons = styled.div `
513
- display: flex;
514
- flex-direction: row;
515
- column-gap: 10px;
516
- flex-direction: reverse;
517
- `;
518
- const AppHeader = ({ logoUrl, buttons = [], id }) => {
519
- const baseId = id || 'app-header';
520
- return (React.createElement(Container$3, { id: `${baseId}-container` },
521
- React.createElement(LogoWrapper, { id: `${baseId}-logo-wrapper` }, logoUrl ? (React.createElement(Image, { id: `${baseId}-logo`, src: logoUrl })) : (React.createElement(Logo, { height: '30px', id: `${baseId}-default-logo` }))),
522
- React.createElement(Buttons, { id: `${baseId}-buttons` }, buttons.map((b, i) => (React.createElement(Button, Object.assign({ key: i }, b, { id: `${baseId}-button-${i}` })))))));
523
- };
524
-
525
- const Wrapper$e = styled.div `
526
- display: inline-block;
527
- border-radius: 4px;
528
- padding: 4px 6px;
529
- background: ${props => Colors[props.$color].Hex};
530
- color: #ffffff;
531
- box-sizing: border-box;
532
- cursor: ${props => (props.$removable ? 'pointer' : 'default')};
533
- `;
534
- const Content$2 = styled.div `
535
- display: flex;
536
- align-items: center;
537
- `;
538
- const Label$4 = styled.div `
539
- color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
540
- font-size: ${FontSizes.SMALL};
541
- font-weight: 500;
542
- font-family: ${FontStyles.DEFAULT};
543
- line-height: 1.2em;
544
- `;
545
- const Remove$1 = styled.div `
546
- margin-left: 10px;
547
- display: flex;
548
- align-items: center;
493
+ };
494
+
495
+ const Container$3 = styled.header `
496
+ width: 100%;
497
+ display: flex;
498
+ padding: 20px;
499
+ box-sizing: border-box;
500
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
501
+ background: '#fff';
502
+ justify-content: space-between;
503
+ `;
504
+ const LogoWrapper = styled.div `
505
+ display: flex;
506
+ align-items: center;
507
+ `;
508
+ const Image = styled.img `
509
+ height: 30px !important;
510
+ width: auto !important;
511
+ `;
512
+ const Buttons = styled.div `
513
+ display: flex;
514
+ flex-direction: row;
515
+ column-gap: 10px;
516
+ flex-direction: reverse;
517
+ `;
518
+ const AppHeader = ({ logoUrl, buttons = [], dataItemid }) => {
519
+ const baseId = dataItemid || 'app-header';
520
+ return (React.createElement(Container$3, { "data-itemid": `${baseId}-container` },
521
+ React.createElement(LogoWrapper, { "data-itemid": `${baseId}-logo-wrapper` }, logoUrl ? (React.createElement(Image, { "data-itemid": `${baseId}-logo`, src: logoUrl })) : (React.createElement(Logo, { "data-itemid": `${baseId}-default-logo`, height: '30px' }))),
522
+ React.createElement(Buttons, { "data-itemid": `${baseId}-buttons` }, buttons.map((b, i) => (React.createElement(Button, Object.assign({ key: i }, b, { "data-itemid": `${baseId}-button-${i}` })))))));
523
+ };
524
+
525
+ const Wrapper$e = styled.div `
526
+ display: inline-block;
527
+ border-radius: 4px;
528
+ padding: 4px 6px;
529
+ background: ${props => Colors[props.$color].Hex};
530
+ color: #ffffff;
531
+ box-sizing: border-box;
532
+ cursor: ${props => (props.$removable ? 'pointer' : 'default')};
533
+ `;
534
+ const Content$2 = styled.div `
535
+ display: flex;
536
+ align-items: center;
537
+ `;
538
+ const Label$4 = styled.div `
539
+ color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
540
+ font-size: ${FontSizes.SMALL};
541
+ font-weight: 500;
542
+ font-family: ${FontStyles.DEFAULT};
543
+ line-height: 1.2em;
544
+ `;
545
+ const Remove$1 = styled.div `
546
+ margin-left: 10px;
547
+ display: flex;
548
+ align-items: center;
549
549
  `;
550
550
  const Tag = (_a) => {
551
- var { children, color = 'PRIMARY', removable, onClick, id } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick", "id"]);
552
- const baseId = id || 'tag';
553
- return (React.createElement(Wrapper$e, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps, { id: `${baseId}-wrapper` }),
554
- React.createElement(Content$2, { id: `${baseId}-content` },
555
- React.createElement(Label$4, { "$color": color, id: `${baseId}-label` }, children),
556
- removable ? (React.createElement(Remove$1, { id: `${baseId}-remove` },
557
- React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', id: `${baseId}-icon`, path: mdiClose, size: '15px' }))) : null)));
558
- };
559
-
560
- const SidebarContainer = styled.div `
561
- border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
562
- display: flex;
563
- flex-direction: column;
564
- height: 100%;
565
- padding: 12px 0px;
566
- width: ${props => (props.$isOpen ? props.$width : '60px')};
567
- `;
568
- const MenuWrapper$1 = styled.button `
569
- display: flex;
570
- align-items: center;
571
- border: 0px;
572
- background-color: transparent;
573
- padding-left: 0px;
574
- border-left-width: 4px;
575
- border-left-style: solid;
576
- border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
577
- cursor: pointer;
578
- height: 40px;
579
-
580
- &:hover > div {
581
- color: ${props => props.$color.Hex};
582
- }
583
-
584
- &:hover > svg > path {
585
- fill: ${Colors.BLACK.Hex} !important;
586
- }
587
- `;
588
- const MenuIcon = styled(Icon) `
589
- width: 20px;
590
- height: 20px;
591
- margin: 0px 16px;
592
- flex-shrink: 0;
593
-
594
- > path {
595
- fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
596
- }
597
- `;
598
- const MenuLabel = styled.div `
599
- color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
600
- flex: 1;
601
- font-size: 12px;
602
- font-style: normal;
603
- font-weight: 600;
604
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
605
- line-height: 16px;
606
- padding: 12px 0px;
607
- letter-spacing: 1px;
608
- `;
609
- const SubMenu = styled.div `
610
- overflow-y: auto;
611
- padding-left: 44px;
612
- padding-right: 20px;
613
- padding-bottom: 10px;
614
- `;
615
- const SubMenuItem = styled.a `
616
- display: block;
617
- padding: 8px 12px;
618
- border-radius: 8px;
619
- font-size: 13px;
620
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
621
- line-height: 20px;
622
- text-decoration: none;
623
- font-weight: ${({ $active }) => ($active ? '500' : '400')};
624
- color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
625
- background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
626
- cursor: pointer;
627
-
628
- &:hover {
629
- color: ${props => props.$color.Hex};
630
- font-weight: 500;
631
- }
632
- `;
633
- const Footer = styled.div `
634
- padding: 20px 14px 0px;
635
- display: flex;
636
- align-items: center;
637
- `;
638
- const FooterInfo = styled.div `
639
- display: flex;
640
- flex-direction: column;
641
- flex: 1;
642
- align-items: flex-start;
643
- `;
644
- const SidebarMenuContainer = styled.div `
645
- flex-grow: 1;
646
- `;
647
- const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px', id, }) => {
551
+ var { children, color = 'PRIMARY', removable, onClick, dataItemid } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick", "dataItemid"]);
552
+ const baseId = dataItemid || 'tag';
553
+ return (React.createElement(Wrapper$e, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
554
+ React.createElement(Content$2, { "data-itemid": `${baseId}-content` },
555
+ React.createElement(Label$4, { "$color": color, "data-itemid": `${baseId}-label` }, children),
556
+ removable ? (React.createElement(Remove$1, { "data-itemid": `${baseId}-remove` },
557
+ React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', "data-itemid": `${baseId}-icon`, path: mdiClose, size: '15px' }))) : null)));
558
+ };
559
+
560
+ const SidebarContainer = styled.div `
561
+ border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
562
+ display: flex;
563
+ flex-direction: column;
564
+ height: 100%;
565
+ padding: 12px 0px;
566
+ width: ${props => (props.$isOpen ? props.$width : '60px')};
567
+ `;
568
+ const MenuWrapper$1 = styled.button `
569
+ display: flex;
570
+ align-items: center;
571
+ border: 0px;
572
+ background-color: transparent;
573
+ padding-left: 0px;
574
+ border-left-width: 4px;
575
+ border-left-style: solid;
576
+ border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
577
+ cursor: pointer;
578
+ height: 40px;
579
+
580
+ &:hover > div {
581
+ color: ${props => props.$color.Hex};
582
+ }
583
+
584
+ &:hover > svg > path {
585
+ fill: ${Colors.BLACK.Hex} !important;
586
+ }
587
+ `;
588
+ const MenuIcon = styled(Icon) `
589
+ width: 20px;
590
+ height: 20px;
591
+ margin: 0px 16px;
592
+ flex-shrink: 0;
593
+
594
+ > path {
595
+ fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
596
+ }
597
+ `;
598
+ const MenuLabel = styled.div `
599
+ color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
600
+ flex: 1;
601
+ font-size: 12px;
602
+ font-style: normal;
603
+ font-weight: 600;
604
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
605
+ line-height: 16px;
606
+ padding: 12px 0px;
607
+ letter-spacing: 1px;
608
+ `;
609
+ const SubMenu = styled.div `
610
+ overflow-y: auto;
611
+ padding-left: 44px;
612
+ padding-right: 20px;
613
+ padding-bottom: 10px;
614
+ `;
615
+ const SubMenuItem = styled.a `
616
+ display: block;
617
+ padding: 8px 12px;
618
+ border-radius: 8px;
619
+ font-size: 13px;
620
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
621
+ line-height: 20px;
622
+ text-decoration: none;
623
+ font-weight: ${({ $active }) => ($active ? '500' : '400')};
624
+ color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
625
+ background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
626
+ cursor: pointer;
627
+
628
+ &:hover {
629
+ color: ${props => props.$color.Hex};
630
+ font-weight: 500;
631
+ }
632
+ `;
633
+ const Footer = styled.div `
634
+ padding: 20px 14px 0px;
635
+ display: flex;
636
+ align-items: center;
637
+ `;
638
+ const FooterInfo = styled.div `
639
+ display: flex;
640
+ flex-direction: column;
641
+ flex: 1;
642
+ align-items: flex-start;
643
+ `;
644
+ const SidebarMenuContainer = styled.div `
645
+ flex-grow: 1;
646
+ `;
647
+ const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px', dataItemid, }) => {
648
648
  const theme = useContext(ThemeContext) || EditableTheme;
649
649
  const [collapsed, toggleCollapse] = useState(isCollapsed);
650
- const baseId = id || 'app-menu';
651
- return (React.createElement(SidebarContainer, { "$isOpen": !collapsed, "$width": defaultWidth, id: `${baseId}-sidebar-container` },
652
- React.createElement(SidebarMenuContainer, { id: `${baseId}-sidebar-menu-container` }, menu.map((nav_item, navIndex) => {
650
+ const baseId = dataItemid || 'app-menu';
651
+ return (React.createElement(SidebarContainer, { "$isOpen": !collapsed, "$width": defaultWidth, "data-itemid": `${baseId}-sidebar-container` },
652
+ React.createElement(SidebarMenuContainer, { "data-itemid": `${baseId}-sidebar-menu-container` }, menu.map((nav_item, navIndex) => {
653
653
  const navItemId = `${baseId}-nav-item-${navIndex}`;
654
654
  return (React.createElement(React.Fragment, { key: navItemId },
655
- React.createElement(MenuWrapper$1, { "$active": !!nav_item.is_active, "$color": theme.PRIMARY_COLOR, id: `${navItemId}-menu-wrapper`, onClick: nav_item.onClick, title: collapsed ? (nav_item === null || nav_item === void 0 ? void 0 : nav_item.title) || nav_item.label : '' },
656
- React.createElement(MenuIcon, { "$active": !!nav_item.is_active, id: `${navItemId}-menu-icon`, path: nav_item.icon }),
657
- collapsed ? null : (React.createElement(MenuLabel, { "$active": nav_item.is_active, "$color": theme.PRIMARY_COLOR, id: `${navItemId}-menu-label` }, nav_item.label))),
658
- nav_item.is_active && nav_item.menu && !collapsed ? (React.createElement(SubMenu, { id: `${navItemId}-sub-menu` }, nav_item.menu.map((menu_item, menuIndex) => {
655
+ React.createElement(MenuWrapper$1, { "$active": !!nav_item.is_active, "$color": theme.PRIMARY_COLOR, "data-itemid": `${navItemId}-menu-wrapper`, onClick: nav_item.onClick, title: collapsed ? (nav_item === null || nav_item === void 0 ? void 0 : nav_item.title) || nav_item.label : '' },
656
+ React.createElement(MenuIcon, { "$active": !!nav_item.is_active, "data-itemid": `${navItemId}-menu-icon`, path: nav_item.icon }),
657
+ collapsed ? null : (React.createElement(MenuLabel, { "$active": nav_item.is_active, "$color": theme.PRIMARY_COLOR, "data-itemid": `${navItemId}-menu-label` }, nav_item.label))),
658
+ nav_item.is_active && nav_item.menu && !collapsed ? (React.createElement(SubMenu, { "data-itemid": `${navItemId}-sub-menu` }, nav_item.menu.map((menu_item, menuIndex) => {
659
659
  const menuItemId = `${navItemId}-menu-item-${menuIndex}`;
660
- return (React.createElement(SubMenuItem, { "$active": menu_item.is_active, "$color": theme.PRIMARY_COLOR, id: `${menuItemId}-sub-menu-item`, key: menuItemId, onClick: menu_item.onClick }, menu_item.label));
660
+ return (React.createElement(SubMenuItem, { "$active": menu_item.is_active, "$color": theme.PRIMARY_COLOR, "data-itemid": `${menuItemId}-sub-menu-item`, key: menuItemId, onClick: menu_item.onClick }, menu_item.label));
661
661
  }))) : null));
662
662
  })),
663
- React.createElement(Footer, { id: `${baseId}-footer` },
664
- collapsed ? null : (React.createElement(FooterInfo, { id: `${baseId}-footer-info` },
665
- footerTag ? React.createElement(Tag, { id: `${baseId}-footer-tag` }, footerTag) : null,
666
- React.createElement(Copy, { id: `${baseId}-footer-copy`, margin: '8px 0 0 0', type: 'small' },
663
+ React.createElement(Footer, { "data-itemid": `${baseId}-footer` },
664
+ collapsed ? null : (React.createElement(FooterInfo, { "data-itemid": `${baseId}-footer-info` },
665
+ footerTag ? React.createElement(Tag, { "data-itemid": `${baseId}-footer-tag` }, footerTag) : null,
666
+ React.createElement(Copy, { "data-itemid": `${baseId}-footer-copy`, margin: '8px 0 0 0', type: 'small' },
667
667
  "\u00A9 ",
668
668
  new Date().getFullYear(),
669
669
  " Hexure"))),
670
- React.createElement(Button, { icon: collapsed ? mdiChevronRight : mdiChevronLeft, id: `${baseId}-collapse-button`, onClick: (e) => {
670
+ React.createElement(Button, { "data-itemid": `${baseId}-collapse-button`, icon: collapsed ? mdiChevronRight : mdiChevronLeft, onClick: (e) => {
671
671
  e.preventDefault();
672
672
  toggleCollapse(!collapsed);
673
673
  }, small: true }))));
674
- };
675
-
676
- const Wrapper$d = styled.div `
677
- border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
678
- border-radius: 8px;
679
- box-sizing: border-box;
680
- display: flex;
681
- align-items: center;
682
- justify-content: space-between;
683
- padding: 16px 20px;
674
+ };
675
+
676
+ const Wrapper$d = styled.div `
677
+ border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
678
+ border-radius: 8px;
679
+ box-sizing: border-box;
680
+ display: flex;
681
+ align-items: center;
682
+ justify-content: space-between;
683
+ padding: 16px 20px;
684
684
  `;
685
685
  Wrapper$d.defaultProps = { theme: EditableTheme };
686
- const Left = styled.div `
687
- box-sizing: border-box;
688
- display: flex;
689
- align-items: center;
690
- justify-content: space-between;
691
- flex-shrink: 0;
692
- `;
693
- const Info$1 = styled.div `
694
- box-sizing: border-box;
695
- display: flex;
696
- align-items: center;
697
- margin-right: 30px;
698
- `;
699
- const Selected = styled.span `
700
- font-size: 14px;
701
- font-weight: 400;
702
- font-family: ${FontStyles.DEFAULT};
703
- color: ${Colors.BLACK.Hex};
704
- line-height: 1;
705
- `;
706
- const Clear = styled.span `
707
- font-size: 14px;
708
- font-weight: 400;
709
- font-family: ${FontStyles.DEFAULT};
710
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
711
- line-height: 1;
712
- cursor: pointer;
713
- padding-left: 10px;
714
- margin-left: 10px;
715
- border-left: 1px solid #ccc;
686
+ const Left = styled.div `
687
+ box-sizing: border-box;
688
+ display: flex;
689
+ align-items: center;
690
+ justify-content: space-between;
691
+ flex-shrink: 0;
692
+ `;
693
+ const Info$1 = styled.div `
694
+ box-sizing: border-box;
695
+ display: flex;
696
+ align-items: center;
697
+ margin-right: 30px;
698
+ `;
699
+ const Selected = styled.span `
700
+ font-size: 14px;
701
+ font-weight: 400;
702
+ font-family: ${FontStyles.DEFAULT};
703
+ color: ${Colors.BLACK.Hex};
704
+ line-height: 1;
705
+ `;
706
+ const Clear = styled.span `
707
+ font-size: 14px;
708
+ font-weight: 400;
709
+ font-family: ${FontStyles.DEFAULT};
710
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
711
+ line-height: 1;
712
+ cursor: pointer;
713
+ padding-left: 10px;
714
+ margin-left: 10px;
715
+ border-left: 1px solid #ccc;
716
716
  `;
717
717
  Clear.defaultProps = { theme: EditableTheme };
718
- const Actions$1 = styled.div `
719
- box-sizing: border-box;
720
- display: flex;
721
- align-items: center;
722
- column-gap: 10px;
723
- `;
724
- const Error$1 = styled.div `
725
- box-sizing: border-box;
726
- display: flex;
727
- align-items: center;
728
- background: rgba(${Colors.RED.Rgb}, 0.1);
729
- border-radius: 4px;
730
- padding: 6px 8px;
731
- text-overflow: ellipsis;
732
- white-space: nowrap;
733
- overflow: hidden;
734
- margin-left: 30px;
735
- `;
736
- const ErrorMsg = styled.span `
737
- font-size: 14px;
738
- font-weight: 500;
739
- font-family: ${FontStyles.DEFAULT};
740
- line-height: 1em;
741
- color: ${Colors.RED.Hex};
742
- margin-left: 8px;
718
+ const Actions$1 = styled.div `
719
+ box-sizing: border-box;
720
+ display: flex;
721
+ align-items: center;
722
+ column-gap: 10px;
723
+ `;
724
+ const Error$1 = styled.div `
725
+ box-sizing: border-box;
726
+ display: flex;
727
+ align-items: center;
728
+ background: rgba(${Colors.RED.Rgb}, 0.1);
729
+ border-radius: 4px;
730
+ padding: 6px 8px;
731
+ text-overflow: ellipsis;
732
+ white-space: nowrap;
733
+ overflow: hidden;
734
+ margin-left: 30px;
735
+ `;
736
+ const ErrorMsg = styled.span `
737
+ font-size: 14px;
738
+ font-weight: 500;
739
+ font-family: ${FontStyles.DEFAULT};
740
+ line-height: 1em;
741
+ color: ${Colors.RED.Hex};
742
+ margin-left: 8px;
743
743
  `;
744
744
  const BulkActionBar = (_a) => {
745
- var { actions = [], errorMsg, onClear, selectedCount = 0, id } = _a, accessibleProps = __rest(_a, ["actions", "errorMsg", "onClear", "selectedCount", "id"]);
746
- const baseId = id || 'bulk-action-bar';
747
- return (React.createElement(Wrapper$d, Object.assign({}, accessibleProps, { id: `${baseId}-wrapper` }),
748
- React.createElement(Left, { id: `${baseId}-left` },
749
- React.createElement(Info$1, { id: `${baseId}-info` },
750
- React.createElement(Selected, { id: `${baseId}-selected` },
745
+ var { actions = [], errorMsg, onClear, selectedCount = 0, dataItemid } = _a, accessibleProps = __rest(_a, ["actions", "errorMsg", "onClear", "selectedCount", "dataItemid"]);
746
+ const baseId = dataItemid || 'bulk-action-bar';
747
+ return (React.createElement(Wrapper$d, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
748
+ React.createElement(Left, { "data-itemid": `${baseId}-left` },
749
+ React.createElement(Info$1, { "data-itemid": `${baseId}-info` },
750
+ React.createElement(Selected, { "data-itemid": `${baseId}-selected` },
751
751
  selectedCount,
752
752
  " Selected"),
753
- onClear ? (React.createElement(Clear, { id: `${baseId}-clear`, onClick: onClear }, "Clear")) : null),
754
- React.createElement(Actions$1, { id: `${baseId}-actions` }, actions.map((action, i) => (React.createElement(Button, Object.assign({}, action, { id: `${baseId}-action-${i}`, key: i, small: true })))))),
755
- errorMsg ? (React.createElement(Error$1, { id: `${baseId}-error` },
756
- React.createElement(Icon, { color: Colors.RED.Hex, id: `${baseId}-error-icon`, path: mdiInformationOutline, size: '20px' }),
757
- React.createElement(ErrorMsg, { id: `${baseId}-error-msg` }, errorMsg))) : null));
758
- };
759
-
760
- const Wrapper$c = styled.div `
761
- background: #fff;
762
- border-radius: 8px;
763
- box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
764
- display: flex;
765
- flex-direction: column;
766
- gap: 4px;
767
- max-height: ${props => props.$maxHeight || '312px'};
768
- padding: 10px;
769
- width: 200px;
770
- `;
771
- const MenuItem = styled.div `
772
- align-items: center;
773
- border-radius: 8px;
774
- border: 1px solid transparent;
775
- display: flex;
776
- gap: 8px;
777
- height: 38px;
778
- padding: 8px;
779
- &:hover {
780
- background: rgba(1, 147, 215, 0.1);
781
- cursor: pointer;
782
-
783
- svg,
784
- path {
785
- fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
786
- }
787
- }
753
+ onClear ? (React.createElement(Clear, { "data-itemid": `${baseId}-clear`, onClick: onClear }, "Clear")) : null),
754
+ React.createElement(Actions$1, { "data-itemid": `${baseId}-actions` }, actions.map((action, i) => (React.createElement(Button, Object.assign({}, action, { "data-itemid": `${baseId}-action-${i}`, key: i, small: true })))))),
755
+ errorMsg ? (React.createElement(Error$1, { "data-itemid": `${baseId}-error` },
756
+ React.createElement(Icon, { color: Colors.RED.Hex, "data-itemid": `${baseId}-error-icon`, path: mdiInformationOutline, size: '20px' }),
757
+ React.createElement(ErrorMsg, { "data-itemid": `${baseId}-error-msg` }, errorMsg))) : null));
758
+ };
759
+
760
+ const Wrapper$c = styled.div `
761
+ background: #fff;
762
+ border-radius: 8px;
763
+ box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
764
+ display: flex;
765
+ flex-direction: column;
766
+ gap: 4px;
767
+ max-height: ${props => props.$maxHeight || '312px'};
768
+ padding: 10px;
769
+ width: 200px;
770
+ `;
771
+ const MenuItem = styled.div `
772
+ align-items: center;
773
+ border-radius: 8px;
774
+ border: 1px solid transparent;
775
+ display: flex;
776
+ gap: 8px;
777
+ height: 38px;
778
+ padding: 8px;
779
+ &:hover {
780
+ background: rgba(1, 147, 215, 0.1);
781
+ cursor: pointer;
782
+
783
+ svg,
784
+ path {
785
+ fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
786
+ }
787
+ }
788
788
  `;
789
789
  MenuItem.defaultProps = { theme: EditableTheme };
790
- const Title$1 = styled.span `
791
- font-family: Roboto;
792
- font-size: 14px;
793
- font-weight: 400;
794
- height: auto;
795
- letter-spacing: 0px;
796
- line-height: 22px;
797
- text-align: left;
798
- color: ${({ disabled }) => (disabled ? Colors.LIGHT_GRAY.Hex : 'inherit')};
799
- pointer-events: ${({ disabled }) => (disabled ? 'none' : 'auto')};
790
+ const Title$1 = styled.span `
791
+ font-family: Roboto;
792
+ font-size: 14px;
793
+ font-weight: 400;
794
+ height: auto;
795
+ letter-spacing: 0px;
796
+ line-height: 22px;
797
+ text-align: left;
798
+ color: ${({ disabled }) => (disabled ? Colors.LIGHT_GRAY.Hex : 'inherit')};
799
+ pointer-events: ${({ disabled }) => (disabled ? 'none' : 'auto')};
800
800
  `;
801
801
  Title$1.defaultProps = {
802
802
  disabled: false,
803
803
  };
804
804
  const MoreMenu = (_a) => {
805
- var { maxHeight, menuItems = [], id } = _a, accessibleProps = __rest(_a, ["maxHeight", "menuItems", "id"]);
806
- const baseId = id || 'more-menu';
807
- return (React.createElement(Wrapper$c, Object.assign({ "$maxHeight": maxHeight }, accessibleProps, { id: `${baseId}-wrapper` }), menuItems.map((item, i) => {
805
+ var { maxHeight, menuItems = [], dataItemid } = _a, accessibleProps = __rest(_a, ["maxHeight", "menuItems", "dataItemid"]);
806
+ const baseId = dataItemid || 'more-menu';
807
+ return (React.createElement(Wrapper$c, Object.assign({ "$maxHeight": maxHeight }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }), menuItems.map((item, i) => {
808
808
  var _a;
809
809
  const itemId = `${baseId}-menu-item-${i}`;
810
- return (React.createElement(MenuItem, { id: `${itemId}-menu-item`, key: i, onClick: item.onClick },
811
- item.icon ? (React.createElement(Icon, { color: item.disabled ? Colors.LIGHT_GRAY.Hex : Colors.MEDIUM_GRAY.Hex, id: `${itemId}-icon`, path: item.icon, size: '20px' })) : null,
812
- React.createElement(Title$1, { disabled: (_a = item.disabled) !== null && _a !== void 0 ? _a : false, id: `${itemId}-title` }, item.label)));
810
+ return (React.createElement(MenuItem, { "data-itemid": `${itemId}-menu-item`, key: i, onClick: item.onClick },
811
+ item.icon ? (React.createElement(Icon, { color: item.disabled ? Colors.LIGHT_GRAY.Hex : Colors.MEDIUM_GRAY.Hex, "data-itemid": `${itemId}-icon`, path: item.icon, size: '20px' })) : null,
812
+ React.createElement(Title$1, { "data-itemid": `${itemId}-title`, disabled: (_a = item.disabled) !== null && _a !== void 0 ? _a : false }, item.label)));
813
813
  })));
814
- };
815
-
816
- const MenuWrapper = styled.div `
817
- position: relative;
818
- display: inline-block;
819
- `;
820
- const StyledMoreMenu = styled(MoreMenu) `
821
- position: absolute;
822
- top: ${props => props.$top};
823
- left: ${props => props.$left};
824
- width: ${props => props.$menuWidth};
825
- max-height: ${props => props.maxHeight};
826
- z-index: 10;
827
- `;
828
- const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'bottomLeft', format = 'primary', menuWidth = '200px', enableHover = true, enableClick = false, show = false, id, }) => {
814
+ };
815
+
816
+ const MenuWrapper = styled.div `
817
+ position: relative;
818
+ display: inline-block;
819
+ `;
820
+ const StyledMoreMenu = styled(MoreMenu) `
821
+ position: absolute;
822
+ top: ${props => props.$top};
823
+ left: ${props => props.$left};
824
+ width: ${props => props.$menuWidth};
825
+ max-height: ${props => props.maxHeight};
826
+ z-index: 10;
827
+ `;
828
+ const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'bottomLeft', format = 'primary', menuWidth = '200px', enableHover = true, enableClick = false, show = false, dataItemid, }) => {
829
829
  const [showMenu, toggleMenu] = useState(false);
830
830
  const [menuPosition, setMenuPosition] = useState({ top: '0px', left: '0px' });
831
831
  const menuWrapperRef = useRef(null);
832
- const baseId = id || 'button-menu';
832
+ const baseId = dataItemid || 'button-menu';
833
833
  useEffect(() => {
834
834
  toggleMenu(show);
835
835
  }, [show]);
@@ -895,114 +895,114 @@ const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = '
895
895
  setMenuPosition({ top: `${top}px`, left: `${left}px` });
896
896
  }
897
897
  }, [showMenu, position, menuWidth]);
898
- return (React.createElement(MenuWrapper, { id: `${baseId}-menu-wrapper`, onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, ref: menuWrapperRef },
899
- React.createElement(Button, { disabled: disabled, format: format, icon: mdiDotsHorizontal, id: `${baseId}-button`, small: small }, label),
900
- showMenu && (React.createElement(StyledMoreMenu, { "$left": menuPosition.left, "$menuWidth": menuWidth, "$top": menuPosition.top, id: `${baseId}-more-menu`, maxHeight: maxHeight, menuItems: menuItems }))));
901
- };
902
-
903
- const Wrapper$b = styled.label `
904
- border-radius: 4px;
905
- padding: 4px 0px 4px 6px;
906
- margin-left: -6px;
907
- cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
908
- display: flex;
909
- align-items: center;
910
- font-size: ${FontSizes.DEFAULT};
911
- line-height: 1.6em;
912
- box-sizing: border-box;
913
- position: relative;
914
-
915
- &:focus-within {
916
- background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
917
- }
898
+ return (React.createElement(MenuWrapper, { "data-itemid": `${baseId}-menu-wrapper`, onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, ref: menuWrapperRef },
899
+ React.createElement(Button, { "data-itemid": `${baseId}-button`, disabled: disabled, format: format, icon: mdiDotsHorizontal, small: small }, label),
900
+ showMenu && (React.createElement(StyledMoreMenu, { "$left": menuPosition.left, "$menuWidth": menuWidth, "$top": menuPosition.top, "data-itemid": `${baseId}-more-menu`, maxHeight: maxHeight, menuItems: menuItems }))));
901
+ };
902
+
903
+ const Wrapper$b = styled.label `
904
+ border-radius: 4px;
905
+ padding: 4px 0px 4px 6px;
906
+ margin-left: -6px;
907
+ cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
908
+ display: flex;
909
+ align-items: center;
910
+ font-size: ${FontSizes.DEFAULT};
911
+ line-height: 1.6em;
912
+ box-sizing: border-box;
913
+ position: relative;
914
+
915
+ &:focus-within {
916
+ background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
917
+ }
918
918
  `;
919
919
  Wrapper$b.defaultProps = { theme: EditableTheme };
920
- const Input$2 = styled.input `
921
- font-size: 20px;
922
- margin: 0px;
923
- line-height: 1.1em;
924
- box-sizing: border-box;
925
- position: absolute;
926
- opacity: 0;
927
- cursor: pointer;
928
- height: 0;
929
- width: 0;
930
- &:checked + span {
931
- background-color: ${Colors.PRIMARY.Hex};
932
- border-color: ${Colors.PRIMARY.Hex};
933
- }
934
- &:checked:disabled + span {
935
- background-color: ${Colors.MEDIUM_GRAY.Hex};
936
- border-color: ${Colors.MEDIUM_GRAY.Hex};
937
- }
938
- &:disabled + span {
939
- background-color: #d3d3d3;
940
- border-color: #d3d3d3;
941
- }
942
- &:checked + span:after {
943
- display: block;
944
- }
945
- `;
946
- const Check$1 = styled.span `
947
- height: 17px;
948
- width: 17px;
949
- min-width: 17px;
950
- background-color: #fff;
951
- border-width: 2px;
952
- border-style: solid;
953
- border-color: ${props => (props.$invalid ? `${Colors.RED.Hex}` : `${Colors.GRAY.Hex}`)};
954
- box-sizing: border-box;
955
- position: relative;
956
- &:after {
957
- content: '';
958
- position: absolute;
959
- left: 3px;
960
- top: 0px;
961
- width: 7px;
962
- height: 12px;
963
- border: solid white;
964
- border-width: 0 3px 3px 0;
965
- -webkit-transform: rotate(45deg);
966
- -ms-transform: rotate(45deg);
967
- transform: rotate(45deg);
968
- box-sizing: border-box;
969
- display: none;
970
- }
971
- `;
972
- const Label$3 = styled.span `
973
- font-family: ${FontStyles.DEFAULT};
974
- font-size: ${FontSizes.DEFAULT};
975
- font-weight: 400;
976
- line-height: 1.6em;
977
- color: ${props => props.color || Colors.BLACK.Hex};
978
- margin-left: 6px;
979
- box-sizing: border-box;
920
+ const Input$2 = styled.input `
921
+ font-size: 20px;
922
+ margin: 0px;
923
+ line-height: 1.1em;
924
+ box-sizing: border-box;
925
+ position: absolute;
926
+ opacity: 0;
927
+ cursor: pointer;
928
+ height: 0;
929
+ width: 0;
930
+ &:checked + span {
931
+ background-color: ${Colors.PRIMARY.Hex};
932
+ border-color: ${Colors.PRIMARY.Hex};
933
+ }
934
+ &:checked:disabled + span {
935
+ background-color: ${Colors.MEDIUM_GRAY.Hex};
936
+ border-color: ${Colors.MEDIUM_GRAY.Hex};
937
+ }
938
+ &:disabled + span {
939
+ background-color: #d3d3d3;
940
+ border-color: #d3d3d3;
941
+ }
942
+ &:checked + span:after {
943
+ display: block;
944
+ }
945
+ `;
946
+ const Check$1 = styled.span `
947
+ height: 17px;
948
+ width: 17px;
949
+ min-width: 17px;
950
+ background-color: #fff;
951
+ border-width: 2px;
952
+ border-style: solid;
953
+ border-color: ${props => (props.$invalid ? `${Colors.RED.Hex}` : `${Colors.GRAY.Hex}`)};
954
+ box-sizing: border-box;
955
+ position: relative;
956
+ &:after {
957
+ content: '';
958
+ position: absolute;
959
+ left: 3px;
960
+ top: 0px;
961
+ width: 7px;
962
+ height: 12px;
963
+ border: solid white;
964
+ border-width: 0 3px 3px 0;
965
+ -webkit-transform: rotate(45deg);
966
+ -ms-transform: rotate(45deg);
967
+ transform: rotate(45deg);
968
+ box-sizing: border-box;
969
+ display: none;
970
+ }
971
+ `;
972
+ const Label$3 = styled.span `
973
+ font-family: ${FontStyles.DEFAULT};
974
+ font-size: ${FontSizes.DEFAULT};
975
+ font-weight: 400;
976
+ line-height: 1.6em;
977
+ color: ${props => props.color || Colors.BLACK.Hex};
978
+ margin-left: 6px;
979
+ box-sizing: border-box;
980
980
  `;
981
981
  const Checkbox = (_a) => {
982
- var { children, color, disabled, checked, onChange, invalid, tooltip, tabIndex, id } = _a, accessibleProps = __rest(_a, ["children", "color", "disabled", "checked", "onChange", "invalid", "tooltip", "tabIndex", "id"]);
983
- const baseId = id || 'checkbox';
984
- return (React.createElement(Wrapper$b, Object.assign({ "$disabled": disabled }, accessibleProps, { id: `${baseId}-wrapper` }),
985
- React.createElement(Input$2, { checked: checked, disabled: disabled, id: `${baseId}-input`, name: accessibleProps.name, onChange: disabled ? undefined : onChange, tabIndex: disabled ? -1 : tabIndex, type: 'checkbox' }),
986
- React.createElement(Check$1, { "$invalid": invalid, id: `${baseId}-check` }),
987
- children ? (React.createElement(Label$3, { color: color, id: `${baseId}-label` },
982
+ var { children, color, disabled, checked, onChange, invalid, tooltip, tabIndex, dataItemid } = _a, accessibleProps = __rest(_a, ["children", "color", "disabled", "checked", "onChange", "invalid", "tooltip", "tabIndex", "dataItemid"]);
983
+ const baseId = dataItemid || 'checkbox';
984
+ return (React.createElement(Wrapper$b, Object.assign({ "$disabled": disabled }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
985
+ React.createElement(Input$2, { checked: checked, "data-itemid": `${baseId}-input`, disabled: disabled, name: accessibleProps.name, onChange: disabled ? undefined : onChange, tabIndex: disabled ? -1 : tabIndex, type: 'checkbox' }),
986
+ React.createElement(Check$1, { "$invalid": invalid, "data-itemid": `${baseId}-check` }),
987
+ children ? (React.createElement(Label$3, { color: color, "data-itemid": `${baseId}-label` },
988
988
  children,
989
989
  tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)) : null));
990
- };
991
-
992
- const SelectAll = styled.div `
993
- padding: 8px 12px;
994
- border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
995
- box-sizing: border-box;
990
+ };
991
+
992
+ const SelectAll = styled.div `
993
+ padding: 8px 12px;
994
+ border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
995
+ box-sizing: border-box;
996
996
  `;
997
- const Options$1 = styled.div `
998
- padding: 12px;
999
- box-sizing: border-box;
997
+ const Options$1 = styled.div `
998
+ padding: 12px;
999
+ box-sizing: border-box;
1000
1000
  `;
1001
1001
  const Checklist = (_a) => {
1002
- var { disabled, onChange, options, selected = [], showSelectAll, id } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "selected", "showSelectAll", "id"]);
1002
+ var { disabled, onChange, options, selected = [], showSelectAll, dataItemid } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "selected", "showSelectAll", "dataItemid"]);
1003
1003
  const values = options.map((option) => option.value);
1004
1004
  const selected_options = options.filter(o => selected.includes(o.value));
1005
- const baseId = id || 'checklist';
1005
+ const baseId = dataItemid || 'checklist';
1006
1006
  const handleToggleAll = () => {
1007
1007
  if (selected_options.length === options.length) {
1008
1008
  triggerChange([]);
@@ -1027,84 +1027,84 @@ const Checklist = (_a) => {
1027
1027
  });
1028
1028
  };
1029
1029
  return (React.createElement(React.Fragment, null,
1030
- showSelectAll && values.length ? (React.createElement(SelectAll, { id: `${baseId}-select-all` },
1031
- React.createElement(Checkbox, { checked: selected.length === values.length, disabled: disabled, id: `${baseId}-checkbox-select-all`, onChange: handleToggleAll }, "Select All"))) : null,
1032
- React.createElement(Options$1, { id: `${baseId}-options` }, options.map((option, i) => {
1030
+ showSelectAll && values.length ? (React.createElement(SelectAll, { "data-itemid": `${baseId}-select-all` },
1031
+ React.createElement(Checkbox, { checked: selected.length === values.length, "data-itemid": `${baseId}-checkbox-select-all`, disabled: disabled, onChange: handleToggleAll }, "Select All"))) : null,
1032
+ React.createElement(Options$1, { "data-itemid": `${baseId}-options` }, options.map((option, i) => {
1033
1033
  const label = `${option.label || option.value}`;
1034
1034
  const checked = selected.includes(option.value);
1035
1035
  const optionId = `${baseId}-option-${i}`;
1036
- return (React.createElement(Checkbox, Object.assign({ id: `${optionId}-checkbox`, key: i }, accessibleProps, { checked: checked, color: option.color, disabled: disabled, onChange: handleChange.bind(null, option) }), label));
1036
+ return (React.createElement(Checkbox, Object.assign({ "data-itemid": `${optionId}-checkbox`, key: i }, accessibleProps, { checked: checked, color: option.color, disabled: disabled, onChange: handleChange.bind(null, option) }), label));
1037
1037
  }))));
1038
- };
1039
-
1040
- const Wrapper$a = styled.div `
1041
- border-radius: 4px;
1042
- height: 40px;
1043
- background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
1044
- position: relative;
1045
- cursor: ${props => (props.$readOnly ? 'default' : 'pointer')};
1046
- border-width: 1px;
1047
- border-style: solid;
1048
- border-color: ${props => (props.$invalid ? Colors.RED.Hex : '#cccccc')};
1049
- border-radius: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.borderRadius) || '4px'};
1050
- flex-grow: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.flexGrow) || 0};
1051
- box-sizing: border-box;
1052
- padding: 10px 0px;
1053
- display: flex;
1054
- align-items: center;
1055
- width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1056
-
1057
- &:focus-within {
1058
- border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
1059
- }
1038
+ };
1039
+
1040
+ const Wrapper$a = styled.div `
1041
+ border-radius: 4px;
1042
+ height: 40px;
1043
+ background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
1044
+ position: relative;
1045
+ cursor: ${props => (props.$readOnly ? 'default' : 'pointer')};
1046
+ border-width: 1px;
1047
+ border-style: solid;
1048
+ border-color: ${props => (props.$invalid ? Colors.RED.Hex : '#cccccc')};
1049
+ border-radius: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.borderRadius) || '4px'};
1050
+ flex-grow: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.flexGrow) || 0};
1051
+ box-sizing: border-box;
1052
+ padding: 10px 0px;
1053
+ display: flex;
1054
+ align-items: center;
1055
+ width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1056
+
1057
+ &:focus-within {
1058
+ border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
1059
+ }
1060
1060
  `;
1061
1061
  Wrapper$a.defaultProps = { theme: EditableTheme };
1062
- const Trigger$1 = styled.select `
1063
- appearance: none;
1064
- box-shadow: none;
1065
- outline: none;
1066
- border: none;
1067
- color: ${Colors.BLACK.Hex};
1068
- font-size: ${FontSizes.DEFAULT};
1069
- font-weight: 400;
1070
- font-family: ${FontStyles.DEFAULT};
1071
- line-height: 3.1em;
1072
- background-color: transparent;
1073
- background-image: none;
1074
- width: 100%;
1075
- box-sizing: border-box;
1076
- padding: 0px 30px 0px 10px;
1077
- box-sizing: border-box;
1078
- position: relative;
1079
- z-index: 2;
1080
- `;
1081
- const IconWrapper$2 = styled(Icon) `
1082
- position: absolute;
1083
- right: 9px;
1084
- z-index: 1;
1085
- `;
1086
- const SearchInput$1 = styled.input `
1087
- position: absolute;
1088
- left: 2px;
1089
- top: 2px;
1090
- z-index: 999;
1091
- width: 90%;
1092
- height: 30px;
1093
- border: none;
1094
- outline: none;
1095
- color: ${Colors.BLACK.Hex};
1096
- font-family: ${FontStyles.DEFAULT};
1097
- font-size: ${FontSizes.DEFAULT};
1098
- font-weight: 400;
1099
- line-height: 2.9em;
1100
- overflow: hidden;
1101
- white-space: nowrap;
1062
+ const Trigger$1 = styled.select `
1063
+ appearance: none;
1064
+ box-shadow: none;
1065
+ outline: none;
1066
+ border: none;
1067
+ color: ${Colors.BLACK.Hex};
1068
+ font-size: ${FontSizes.DEFAULT};
1069
+ font-weight: 400;
1070
+ font-family: ${FontStyles.DEFAULT};
1071
+ line-height: 3.1em;
1072
+ background-color: transparent;
1073
+ background-image: none;
1074
+ width: 100%;
1075
+ box-sizing: border-box;
1076
+ padding: 0px 30px 0px 10px;
1077
+ box-sizing: border-box;
1078
+ position: relative;
1079
+ z-index: 2;
1080
+ `;
1081
+ const IconWrapper$2 = styled(Icon) `
1082
+ position: absolute;
1083
+ right: 9px;
1084
+ z-index: 1;
1085
+ `;
1086
+ const SearchInput$1 = styled.input `
1087
+ position: absolute;
1088
+ left: 2px;
1089
+ top: 2px;
1090
+ z-index: 999;
1091
+ width: 90%;
1092
+ height: 30px;
1093
+ border: none;
1094
+ outline: none;
1095
+ color: ${Colors.BLACK.Hex};
1096
+ font-family: ${FontStyles.DEFAULT};
1097
+ font-size: ${FontSizes.DEFAULT};
1098
+ font-weight: 400;
1099
+ line-height: 2.9em;
1100
+ overflow: hidden;
1101
+ white-space: nowrap;
1102
1102
  `;
1103
1103
  const Select = (_a) => {
1104
- var { options, optionGroups, placeholder = '--Select-One--', readOnly, invalid, searchable = false, value: propValue, onChange, style, tabIndex, id } = _a, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "searchable", "value", "onChange", "style", "tabIndex", "id"]);
1104
+ var { options, optionGroups, placeholder = '--Select-One--', readOnly, invalid, searchable = false, value: propValue, onChange, style, tabIndex, dataItemid } = _a, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "searchable", "value", "onChange", "style", "tabIndex", "dataItemid"]);
1105
1105
  const [searchTerm, setSearchTerm] = useState('');
1106
1106
  const [value, setValue] = useState(propValue || '');
1107
- const baseId = id || 'select';
1107
+ const baseId = dataItemid || 'select';
1108
1108
  // Update the value when the prop changes
1109
1109
  useEffect(() => {
1110
1110
  setValue(propValue || '');
@@ -1124,28 +1124,28 @@ const Select = (_a) => {
1124
1124
  const filteredOptionGroups = searchable
1125
1125
  ? optionGroups === null || optionGroups === void 0 ? void 0 : optionGroups.map(group => (Object.assign(Object.assign({}, group), { options: group.options.filter(option => { var _a; return (_a = option.label) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchTerm.toLowerCase()); }) })))
1126
1126
  : optionGroups;
1127
- return (React.createElement(Wrapper$a, { "$invalid": invalid, "$readOnly": readOnly, "$style": style, id: `${baseId}-wrapper` },
1128
- searchable && (React.createElement(SearchInput$1, Object.assign({ id: `${baseId}-search-input`, onChange: handleSearch, placeholder: placeholder, tabIndex: readOnly ? -1 : tabIndex, type: 'text', value: searchTerm }, accessibleProps))),
1129
- React.createElement(Trigger$1, Object.assign({ disabled: readOnly, id: `${baseId}-trigger`, onChange: handleChange, placeholder: placeholder, tabIndex: readOnly ? -1 : tabIndex, value: value }, accessibleProps),
1130
- placeholder && !value && (React.createElement("option", { disabled: true, id: `${baseId}-placeholder`, value: '' }, placeholder)),
1127
+ return (React.createElement(Wrapper$a, { "$invalid": invalid, "$readOnly": readOnly, "$style": style, "data-itemid": `${baseId}-wrapper` },
1128
+ searchable && (React.createElement(SearchInput$1, Object.assign({ "data-itemid": `${baseId}-search-input`, onChange: handleSearch, placeholder: placeholder, tabIndex: readOnly ? -1 : tabIndex, type: 'text', value: searchTerm }, accessibleProps))),
1129
+ React.createElement(Trigger$1, Object.assign({ "data-itemid": `${baseId}-trigger`, disabled: readOnly, onChange: handleChange, placeholder: placeholder, tabIndex: readOnly ? -1 : tabIndex, value: value }, accessibleProps),
1130
+ placeholder && !value && (React.createElement("option", { "data-itemid": `${baseId}-placeholder`, disabled: true, value: '' }, placeholder)),
1131
1131
  filteredOptionGroups &&
1132
- filteredOptionGroups.map((group, i) => (React.createElement("optgroup", { id: `${baseId}-optgroup-${i}`, key: i, label: group.label || `Group ${i}` }, group.options.map((option, j) => (React.createElement("option", { id: `${baseId}-option-${i}-${j}`, key: j, style: { color: option.color }, value: option.value }, option.label || option.value)))))),
1132
+ filteredOptionGroups.map((group, i) => (React.createElement("optgroup", { "data-itemid": `${baseId}-optgroup-${i}`, key: i, label: group.label || `Group ${i}` }, group.options.map((option, j) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}-${j}`, key: j, style: { color: option.color }, value: option.value }, option.label || option.value)))))),
1133
1133
  filteredOptions &&
1134
- filteredOptions.map((option, i) => (React.createElement("option", { id: `${baseId}-option-${i}`, key: i, style: { color: option.color }, value: option.value }, option.label || option.value)))),
1135
- React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, id: `${baseId}-icon`, path: mdiChevronDown, size: '22px' })));
1136
- };
1137
-
1138
- const DatePickerWrapper = styled.div `
1139
- display: flex;
1140
- width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1141
- `;
1142
- const Middle = styled.div `
1143
- margin: 0px -1px;
1144
- flex-grow: 1;
1134
+ filteredOptions.map((option, i) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}`, key: i, style: { color: option.color }, value: option.value }, option.label || option.value)))),
1135
+ React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, "data-itemid": `${baseId}-icon`, path: mdiChevronDown, size: '22px' })));
1136
+ };
1137
+
1138
+ const DatePickerWrapper = styled.div `
1139
+ display: flex;
1140
+ width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1141
+ `;
1142
+ const Middle = styled.div `
1143
+ margin: 0px -1px;
1144
+ flex-grow: 1;
1145
1145
  `;
1146
1146
  const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate = null, date,
1147
1147
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1148
- onChange = () => { }, style, id, }) => {
1148
+ onChange = () => { }, style, dataItemid, }) => {
1149
1149
  const [selectedDay, setSelectedDay] = useState(date ? dayjs(date).date().toString() : '');
1150
1150
  const [selectedMonth, setSelectedMonth] = useState(date ? (dayjs(date).month() + 1).toString() : '');
1151
1151
  const [selectedYear, setSelectedYear] = useState(date ? dayjs(date).year().toString() : '');
@@ -1222,76 +1222,76 @@ onChange = () => { }, style, id, }) => {
1222
1222
  setSelectedYear(e.target.value);
1223
1223
  setDDate(new_date);
1224
1224
  };
1225
- const baseId = id || 'date-picker';
1225
+ const baseId = dataItemid || 'date-picker';
1226
1226
  return (React.createElement(React.Fragment, null,
1227
- React.createElement(DatePickerWrapper, { "$style": style, id: `${baseId}-wrapper` },
1228
- React.createElement(Select, { id: `${baseId}-month-select`, invalid: invalid, onChange: handleMonthChange, options: months, placeholder: 'Select Month', readOnly: readOnly, style: { borderRadius: '4px 0px 0px 4px', flexGrow: 3 }, value: selectedMonth }),
1229
- React.createElement(Middle, { id: `${baseId}-middle` },
1230
- React.createElement(Select, { id: `${baseId}-day-select`, invalid: invalid, onChange: handleDayChange, options: dayOptions, placeholder: 'Select Day', readOnly: readOnly, style: { borderRadius: '0px' }, value: selectedDay })),
1231
- React.createElement(Select, { id: `${baseId}-year-select`, invalid: invalid, onChange: handleYearChange, options: years, placeholder: 'Select Year', readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: selectedYear }))));
1232
- };
1233
-
1234
- const Scrim$1 = styled.div `
1235
- position: ${({ $position }) => $position};
1236
- top: 0;
1237
- right: 0;
1238
- bottom: 0;
1239
- left: 0;
1240
- z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
1241
- background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
1242
- `;
1243
- const Container$2 = styled.div `
1244
- z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
1245
- min-width: 400px;
1246
- width: ${({ $width }) => $width || '400px'};
1247
- overflow: hidden;
1248
- box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
1249
- outline: none;
1250
- border: none;
1251
- position: ${({ $position }) => $position};
1252
- top: 0;
1253
- right: 0;
1254
- bottom: 0;
1255
- padding: 0px;
1256
- display: flex;
1257
- flex-direction: column;
1258
- box-sizing: border-box;
1259
- background: #fff;
1260
- `;
1261
- const Header$2 = styled.div `
1262
- padding: 30px 20px;
1263
- display: flex;
1264
- align-items: flex-start;
1265
- box-sizing: border-box;
1266
- flex-shrink: 0;
1267
- background: #fff;
1268
- `;
1269
- const Close$1 = styled.div `
1270
- margin-left: auto;
1271
- display: flex;
1272
- align-items: center;
1273
- padding-left: 20px;
1274
- cursor: pointer;
1275
- `;
1276
- const ContentWrapper$1 = styled.div `
1277
- overflow-x: hidden;
1278
- overflow-y: auto;
1279
- box-sizing: border-box;
1280
- flex: 1;
1281
- background: #fff;
1282
- `;
1283
- const ButtonBar$1 = styled.div `
1284
- padding: 20px;
1285
- display: flex;
1286
- align-items: center;
1287
- justify-content: flex-end;
1288
- box-sizing: border-box;
1289
- gap: 10px;
1290
- flex-shrink: 0;
1291
- background: #fff;
1227
+ React.createElement(DatePickerWrapper, { "$style": style, "data-itemid": `${baseId}-wrapper` },
1228
+ React.createElement(Select, { "data-itemid": `${baseId}-month-select`, invalid: invalid, onChange: handleMonthChange, options: months, placeholder: 'Select Month', readOnly: readOnly, style: { borderRadius: '4px 0px 0px 4px', flexGrow: 3 }, value: selectedMonth }),
1229
+ React.createElement(Middle, { "data-itemid": `${baseId}-middle` },
1230
+ React.createElement(Select, { "data-itemid": `${baseId}-day-select`, invalid: invalid, onChange: handleDayChange, options: dayOptions, placeholder: 'Select Day', readOnly: readOnly, style: { borderRadius: '0px' }, value: selectedDay })),
1231
+ React.createElement(Select, { "data-itemid": `${baseId}-year-select`, invalid: invalid, onChange: handleYearChange, options: years, placeholder: 'Select Year', readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: selectedYear }))));
1232
+ };
1233
+
1234
+ const Scrim$1 = styled.div `
1235
+ position: ${({ $position }) => $position};
1236
+ top: 0;
1237
+ right: 0;
1238
+ bottom: 0;
1239
+ left: 0;
1240
+ z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
1241
+ background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
1242
+ `;
1243
+ const Container$2 = styled.div `
1244
+ z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
1245
+ min-width: 400px;
1246
+ width: ${({ $width }) => $width || '400px'};
1247
+ overflow: hidden;
1248
+ box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
1249
+ outline: none;
1250
+ border: none;
1251
+ position: ${({ $position }) => $position};
1252
+ top: 0;
1253
+ right: 0;
1254
+ bottom: 0;
1255
+ padding: 0px;
1256
+ display: flex;
1257
+ flex-direction: column;
1258
+ box-sizing: border-box;
1259
+ background: #fff;
1260
+ `;
1261
+ const Header$2 = styled.div `
1262
+ padding: 30px 20px;
1263
+ display: flex;
1264
+ align-items: flex-start;
1265
+ box-sizing: border-box;
1266
+ flex-shrink: 0;
1267
+ background: #fff;
1268
+ `;
1269
+ const Close$1 = styled.div `
1270
+ margin-left: auto;
1271
+ display: flex;
1272
+ align-items: center;
1273
+ padding-left: 20px;
1274
+ cursor: pointer;
1275
+ `;
1276
+ const ContentWrapper$1 = styled.div `
1277
+ overflow-x: hidden;
1278
+ overflow-y: auto;
1279
+ box-sizing: border-box;
1280
+ flex: 1;
1281
+ background: #fff;
1282
+ `;
1283
+ const ButtonBar$1 = styled.div `
1284
+ padding: 20px;
1285
+ display: flex;
1286
+ align-items: center;
1287
+ justify-content: flex-end;
1288
+ box-sizing: border-box;
1289
+ gap: 10px;
1290
+ flex-shrink: 0;
1291
+ background: #fff;
1292
1292
  `;
1293
1293
  const Drawer = (_a) => {
1294
- var { children, description, title, onClose, primaryButton, position = 'fixed', secondaryButton, tertiaryButton, scrim = 'dark', width, id } = _a, accessibleProps = __rest(_a, ["children", "description", "title", "onClose", "primaryButton", "position", "secondaryButton", "tertiaryButton", "scrim", "width", "id"]);
1294
+ var { children, description, title, onClose, primaryButton, position = 'fixed', secondaryButton, tertiaryButton, scrim = 'dark', width, dataItemid } = _a, accessibleProps = __rest(_a, ["children", "description", "title", "onClose", "primaryButton", "position", "secondaryButton", "tertiaryButton", "scrim", "width", "dataItemid"]);
1295
1295
  useEffect(() => {
1296
1296
  document.onkeydown = e => {
1297
1297
  if (e.key === 'Escape') {
@@ -1302,194 +1302,194 @@ const Drawer = (_a) => {
1302
1302
  document.onkeydown = null;
1303
1303
  };
1304
1304
  }, [onClose]);
1305
- const baseId = id || 'drawer';
1305
+ const baseId = dataItemid || 'drawer';
1306
1306
  return (React.createElement(React.Fragment, null,
1307
- React.createElement(Container$2, Object.assign({}, accessibleProps, { "$position": position, "$width": width, id: `${baseId}-container` }),
1308
- React.createElement(Header$2, { id: `${baseId}-header` },
1309
- React.createElement("div", { id: `${baseId}-header-content` },
1310
- title ? (React.createElement(Heading, { id: `${baseId}-title`, type: 'secondary' }, title)) : null,
1311
- description ? (React.createElement(Copy, { color: 'GRAY', id: `${baseId}-description` }, description)) : null),
1312
- React.createElement(Close$1, { id: `${baseId}-close`, onClick: onClose },
1313
- React.createElement(Button, { format: 'secondary', icon: mdiClose, id: `${baseId}-close-button`, small: true }))),
1314
- React.createElement(ContentWrapper$1, { id: `${baseId}-content-wrapper` }, children),
1315
- primaryButton || secondaryButton || tertiaryButton ? (React.createElement(ButtonBar$1, { id: `${baseId}-button-bar` },
1316
- tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary', id: `${baseId}-tertiary-button` }))) : null,
1317
- secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary', id: `${baseId}-secondary-button` }))) : null,
1318
- primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary', id: `${baseId}-primary-button` }))) : null)) : null),
1319
- scrim ? (React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, id: `${baseId}-scrim`, onClick: onClose })) : null));
1320
- };
1321
-
1307
+ React.createElement(Container$2, Object.assign({}, accessibleProps, { "$position": position, "$width": width, "data-itemid": `${baseId}-container` }),
1308
+ React.createElement(Header$2, { "data-itemid": `${baseId}-header` },
1309
+ React.createElement("div", { "data-itemid": `${baseId}-header-content` },
1310
+ title ? (React.createElement(Heading, { "data-itemid": `${baseId}-title`, type: 'secondary' }, title)) : null,
1311
+ description ? (React.createElement(Copy, { color: 'GRAY', "data-itemid": `${baseId}-description` }, description)) : null),
1312
+ React.createElement(Close$1, { "data-itemid": `${baseId}-close`, onClick: onClose },
1313
+ React.createElement(Button, { "data-itemid": `${baseId}-close-button`, format: 'secondary', icon: mdiClose, small: true }))),
1314
+ React.createElement(ContentWrapper$1, { "data-itemid": `${baseId}-content-wrapper` }, children),
1315
+ primaryButton || secondaryButton || tertiaryButton ? (React.createElement(ButtonBar$1, { "data-itemid": `${baseId}-button-bar` },
1316
+ tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { "data-itemid": `${baseId}-tertiary-button`, format: tertiaryButton.format || 'secondary' }))) : null,
1317
+ secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": `${baseId}-secondary-button`, format: secondaryButton.format || 'secondary' }))) : null,
1318
+ primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": `${baseId}-primary-button`, format: primaryButton.format || 'primary' }))) : null)) : null),
1319
+ scrim ? (React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, "data-itemid": `${baseId}-scrim`, onClick: onClose })) : null));
1320
+ };
1321
+
1322
1322
  const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.$customStyle)));
1323
- const LabelRow = styled.div `
1324
- display: flex;
1325
- align-items: center;
1326
- justify-content: space-between;
1327
- margin: 0 0 4px 0;
1328
- box-sizing: border-box;
1329
- `;
1330
- const Label$2 = styled.label `
1331
- font-size: ${FontSizes.DEFAULT};
1332
- font-weight: 500;
1333
- line-height: 1.3em;
1334
- font-family: ${FontStyles.DEFAULT};
1335
- color: ${Colors.BLACK.Hex};
1336
- display: flex;
1337
- align-items: center;
1338
- `;
1339
- const Required = styled.span `
1340
- color: ${Colors.RED.Hex};
1341
- margin-left: 4px;
1342
- `;
1343
- const Action = styled.span `
1344
- font-size: ${FontSizes.DEFAULT};
1345
- font-weight: 500;
1346
- line-height: 1em;
1347
- font-family: ${FontStyles.DEFAULT};
1348
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
1349
- cursor: pointer;
1323
+ const LabelRow = styled.div `
1324
+ display: flex;
1325
+ align-items: center;
1326
+ justify-content: space-between;
1327
+ margin: 0 0 4px 0;
1328
+ box-sizing: border-box;
1329
+ `;
1330
+ const Label$2 = styled.label `
1331
+ font-size: ${FontSizes.DEFAULT};
1332
+ font-weight: 500;
1333
+ line-height: 1.3em;
1334
+ font-family: ${FontStyles.DEFAULT};
1335
+ color: ${Colors.BLACK.Hex};
1336
+ display: flex;
1337
+ align-items: center;
1338
+ `;
1339
+ const Required = styled.span `
1340
+ color: ${Colors.RED.Hex};
1341
+ margin-left: 4px;
1342
+ `;
1343
+ const Action = styled.span `
1344
+ font-size: ${FontSizes.DEFAULT};
1345
+ font-weight: 500;
1346
+ line-height: 1em;
1347
+ font-family: ${FontStyles.DEFAULT};
1348
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
1349
+ cursor: pointer;
1350
1350
  `;
1351
1351
  Action.defaultProps = { theme: EditableTheme };
1352
- const Description = styled.div `
1353
- font-size: ${FontSizes.SMALL};
1354
- font-weight: 400;
1355
- line-height: 1.3em;
1356
- font-family: ${FontStyles.DEFAULT};
1357
- color: ${Colors.BLACK.Hex};
1358
- margin: 0 0 8px 0;
1359
- box-sizing: border-box;
1360
- `;
1361
- const Validation = styled.div `
1362
- font-size: ${FontSizes.SMALL};
1363
- font-weight: 400;
1364
- line-height: 1.3em;
1365
- font-family: ${FontStyles.DEFAULT};
1366
- color: ${Colors.RED.Hex};
1367
- margin: 4px 0 0 0;
1368
- box-sizing: border-box;
1352
+ const Description = styled.div `
1353
+ font-size: ${FontSizes.SMALL};
1354
+ font-weight: 400;
1355
+ line-height: 1.3em;
1356
+ font-family: ${FontStyles.DEFAULT};
1357
+ color: ${Colors.BLACK.Hex};
1358
+ margin: 0 0 8px 0;
1359
+ box-sizing: border-box;
1360
+ `;
1361
+ const Validation = styled.div `
1362
+ font-size: ${FontSizes.SMALL};
1363
+ font-weight: 400;
1364
+ line-height: 1.3em;
1365
+ font-family: ${FontStyles.DEFAULT};
1366
+ color: ${Colors.RED.Hex};
1367
+ margin: 4px 0 0 0;
1368
+ box-sizing: border-box;
1369
1369
  `;
1370
1370
  const Field = (_a) => {
1371
- var { action, children, validationText, label, description, required, htmlFor, style = {}, tooltip, id } = _a, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style", "tooltip", "id"]);
1372
- const baseId = id || 'field';
1373
- return (React.createElement(Wrapper$9, Object.assign({ "$customStyle": style }, accessibleProps, { id: `${baseId}-wrapper` }),
1374
- React.createElement(LabelRow, { id: `${baseId}-label-row` },
1375
- label || required || tooltip ? (React.createElement(Label$2, { htmlFor: htmlFor, id: `${baseId}-label` },
1371
+ var { action, children, validationText, label, description, required, htmlFor, style = {}, tooltip, dataItemid } = _a, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style", "tooltip", "dataItemid"]);
1372
+ const baseId = dataItemid || 'field';
1373
+ return (React.createElement(Wrapper$9, Object.assign({ "$customStyle": style }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
1374
+ React.createElement(LabelRow, { "data-itemid": `${baseId}-label-row` },
1375
+ label || required || tooltip ? (React.createElement(Label$2, { "data-itemid": `${baseId}-label`, htmlFor: htmlFor },
1376
1376
  label,
1377
- required ? React.createElement(Required, { id: `${baseId}-required` }, "*") : null,
1377
+ required ? React.createElement(Required, { "data-itemid": `${baseId}-required` }, "*") : null,
1378
1378
  tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)) : null,
1379
- action ? (React.createElement(Action, { id: action.id || `${baseId}-action`, onClick: action.onClick }, action.label)) : null),
1380
- description ? React.createElement(Description, { id: `${baseId}-description` }, description) : null,
1381
- React.createElement("div", { id: `${baseId}-children` }, children),
1382
- React.createElement(Validation, { className: 'field-validation-wrapper', id: `${baseId}-validation`, title: validationText }, validationText ? validationText : '\u00A0')));
1383
- };
1384
-
1385
- const Wrapper$8 = styled.fieldset `
1386
- margin-inline-start: 0px;
1387
- margin-inline-end: 0px;
1388
- padding-block-start: 0px;
1389
- padding-inline-start: 0px;
1390
- padding-inline-end: 0px;
1391
- padding-block-end: 0px;
1392
- min-inline-size: min-content;
1393
- border-width: 0px;
1394
- border-style: none;
1395
- border-color: transparent;
1396
- border-image: none;
1397
- `;
1398
- const Label$1 = styled.legend `
1399
- padding-inline-start: 0px;
1400
- padding-inline-end: 0px;
1401
-
1402
- color: ${Colors.BLACK.Hex};
1403
- font-family: ${FontStyles.DEFAULT};
1404
- font-size: ${FontSizes.DEFAULT};
1405
- font-weight: 500;
1406
- line-height: 22px;
1407
- margin-bottom: 6px;
1408
- `;
1409
- const Content$1 = styled.div `
1410
- padding: 20px;
1411
- border-radius: 8px;
1412
- background: #fcfcfc;
1413
- `;
1414
- const FieldGroup = ({ children, label, id }) => {
1415
- const baseId = id || 'field-group';
1416
- return (React.createElement(Wrapper$8, { id: `${baseId}-wrapper` },
1417
- React.createElement(Label$1, { id: `${baseId}-label` }, label),
1418
- React.createElement(Content$1, { id: `${baseId}-content` }, children)));
1419
- };
1420
-
1421
- const Dropzone = styled.div `
1422
- border-radius: 8px;
1423
- border-width: 1px;
1424
- border-style: dashed;
1425
- border-color: ${props => (props.$dragging ? props.theme.PRIMARY_COLOR.Hex : '#cccccc')};
1426
- background: ${props => props.$dragging ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)` : '#ffffff'};
1427
- cursor: copy;
1379
+ action ? (React.createElement(Action, { "data-itemid": `${baseId}-action`, onClick: action.onClick }, action.label)) : null),
1380
+ description ? (React.createElement(Description, { "data-itemid": `${baseId}-description` }, description)) : null,
1381
+ React.createElement("div", { "data-itemid": `${baseId}-children` }, children),
1382
+ React.createElement(Validation, { className: 'field-validation-wrapper', "data-itemid": `${baseId}-validation`, title: validationText }, validationText ? validationText : '\u00A0')));
1383
+ };
1384
+
1385
+ const Wrapper$8 = styled.fieldset `
1386
+ margin-inline-start: 0px;
1387
+ margin-inline-end: 0px;
1388
+ padding-block-start: 0px;
1389
+ padding-inline-start: 0px;
1390
+ padding-inline-end: 0px;
1391
+ padding-block-end: 0px;
1392
+ min-inline-size: min-content;
1393
+ border-width: 0px;
1394
+ border-style: none;
1395
+ border-color: transparent;
1396
+ border-image: none;
1397
+ `;
1398
+ const Label$1 = styled.legend `
1399
+ padding-inline-start: 0px;
1400
+ padding-inline-end: 0px;
1401
+
1402
+ color: ${Colors.BLACK.Hex};
1403
+ font-family: ${FontStyles.DEFAULT};
1404
+ font-size: ${FontSizes.DEFAULT};
1405
+ font-weight: 500;
1406
+ line-height: 22px;
1407
+ margin-bottom: 6px;
1408
+ `;
1409
+ const Content$1 = styled.div `
1410
+ padding: 20px;
1411
+ border-radius: 8px;
1412
+ background: #fcfcfc;
1413
+ `;
1414
+ const FieldGroup = ({ children, label, dataItemid }) => {
1415
+ const baseId = dataItemid || 'field-group';
1416
+ return (React.createElement(Wrapper$8, { "data-itemid": `${baseId}-wrapper` },
1417
+ React.createElement(Label$1, { "data-itemid": `${baseId}-label` }, label),
1418
+ React.createElement(Content$1, { "data-itemid": `${baseId}-content` }, children)));
1419
+ };
1420
+
1421
+ const Dropzone = styled.div `
1422
+ border-radius: 8px;
1423
+ border-width: 1px;
1424
+ border-style: dashed;
1425
+ border-color: ${props => (props.$dragging ? props.theme.PRIMARY_COLOR.Hex : '#cccccc')};
1426
+ background: ${props => props.$dragging ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)` : '#ffffff'};
1427
+ cursor: copy;
1428
1428
  `;
1429
1429
  Dropzone.defaultProps = { theme: EditableTheme };
1430
- const IconWrapper$1 = styled.div `
1431
- width: 80px;
1432
- height: 80px;
1433
- border-radius: 40px;
1434
- background: ${props => (props.$dragging ? '#ffffff' : '#f5f5f5')};
1435
- display: flex;
1436
- align-items: center;
1437
- justify-content: center;
1438
- `;
1439
- const StyledIcon$3 = styled(Icon) `
1440
- width: 40px !important;
1441
- height: 40px !important;
1442
-
1443
- > path {
1444
- fill: ${Colors.GRAY.Hex} !important;
1445
- }
1446
- `;
1447
- const ClickZone = styled.div `
1448
- margin: 40px 20px;
1449
- display: flex;
1450
- flex-direction: column;
1451
- align-items: center;
1452
- gap: 16px;
1453
- `;
1454
- const Content = styled.div `
1455
- display: flex;
1456
- flex-direction: column;
1457
- align-items: center;
1458
- z-index: 99999;
1459
- gap: 2px;
1460
- `;
1461
- const Files = styled.div `
1462
- display: flex;
1463
- flex-direction: column;
1464
- align-self: stretch;
1465
- gap: 10px;
1466
- margin: 20px;
1467
- `;
1468
- const MessageDiv = styled.div `
1469
- display: flex;
1470
- align-items: center;
1471
- justify-content: center;
1472
- `;
1473
- const File = styled.div `
1474
- display: flex;
1475
- padding: 10px;
1476
- align-items: center;
1477
- justify-content: space-between;
1478
- gap: 10px;
1479
- border-radius: 4px;
1480
- border: 1px solid #cccccc;
1481
- background: #ffffff;
1482
- `;
1483
- const Remove = styled(Icon) `
1484
- width: 24px;
1485
- height: 24px;
1486
- cursor: pointer;
1487
-
1488
- > path {
1489
- fill: ${Colors.RED.Hex} !important;
1490
- }
1491
- `;
1492
- const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, value = [], message, tooltipInfo = '', validateFile, id, }) => {
1430
+ const IconWrapper$1 = styled.div `
1431
+ width: 80px;
1432
+ height: 80px;
1433
+ border-radius: 40px;
1434
+ background: ${props => (props.$dragging ? '#ffffff' : '#f5f5f5')};
1435
+ display: flex;
1436
+ align-items: center;
1437
+ justify-content: center;
1438
+ `;
1439
+ const StyledIcon$3 = styled(Icon) `
1440
+ width: 40px !important;
1441
+ height: 40px !important;
1442
+
1443
+ > path {
1444
+ fill: ${Colors.GRAY.Hex} !important;
1445
+ }
1446
+ `;
1447
+ const ClickZone = styled.div `
1448
+ margin: 40px 20px;
1449
+ display: flex;
1450
+ flex-direction: column;
1451
+ align-items: center;
1452
+ gap: 16px;
1453
+ `;
1454
+ const Content = styled.div `
1455
+ display: flex;
1456
+ flex-direction: column;
1457
+ align-items: center;
1458
+ z-index: 99999;
1459
+ gap: 2px;
1460
+ `;
1461
+ const Files = styled.div `
1462
+ display: flex;
1463
+ flex-direction: column;
1464
+ align-self: stretch;
1465
+ gap: 10px;
1466
+ margin: 20px;
1467
+ `;
1468
+ const MessageDiv = styled.div `
1469
+ display: flex;
1470
+ align-items: center;
1471
+ justify-content: center;
1472
+ `;
1473
+ const File = styled.div `
1474
+ display: flex;
1475
+ padding: 10px;
1476
+ align-items: center;
1477
+ justify-content: space-between;
1478
+ gap: 10px;
1479
+ border-radius: 4px;
1480
+ border: 1px solid #cccccc;
1481
+ background: #ffffff;
1482
+ `;
1483
+ const Remove = styled(Icon) `
1484
+ width: 24px;
1485
+ height: 24px;
1486
+ cursor: pointer;
1487
+
1488
+ > path {
1489
+ fill: ${Colors.RED.Hex} !important;
1490
+ }
1491
+ `;
1492
+ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, value = [], message, tooltipInfo = '', validateFile, dataItemid, }) => {
1493
1493
  const inputRef = useRef(null);
1494
1494
  const [files, setFiles] = useState(value || []);
1495
1495
  const [dragging, setDragging] = useState(false);
@@ -1588,27 +1588,27 @@ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, val
1588
1588
  setAllowMoreFiles(false);
1589
1589
  }
1590
1590
  }, [files]);
1591
- const baseId = id || 'file-upload';
1591
+ const baseId = dataItemid || 'file-upload';
1592
1592
  return (React.createElement(React.Fragment, null,
1593
- React.createElement("input", { accept: accept, id: `${baseId}-input`, multiple: true, onChange: allowMoreFiles ? handleChange : undefined, ref: inputRef, style: { display: 'none' }, type: 'file' }),
1594
- React.createElement(Dropzone, { "$dragging": dragging, id: `${baseId}-dropzone`, onDragEnter: allowMoreFiles ? handleDrag : undefined, onDragLeave: allowMoreFiles ? handleDrag : undefined, onDragOver: allowMoreFiles ? handleDrag : undefined, onDrop: allowMoreFiles ? handleDrop : undefined, value: files ? files : [] },
1595
- files.length ? (React.createElement(Files, { id: `${baseId}-files` }, files.map((file, index) => {
1593
+ React.createElement("input", { accept: accept, "data-itemid": `${baseId}-input`, multiple: true, onChange: allowMoreFiles ? handleChange : undefined, ref: inputRef, style: { display: 'none' }, type: 'file' }),
1594
+ React.createElement(Dropzone, { "$dragging": dragging, "data-itemid": `${baseId}-dropzone`, onDragEnter: allowMoreFiles ? handleDrag : undefined, onDragLeave: allowMoreFiles ? handleDrag : undefined, onDragOver: allowMoreFiles ? handleDrag : undefined, onDrop: allowMoreFiles ? handleDrop : undefined, value: files ? files : [] },
1595
+ files.length ? (React.createElement(Files, { "data-itemid": `${baseId}-files` }, files.map((file, index) => {
1596
1596
  const fileId = `${baseId}-file-${index}`;
1597
- return (React.createElement(File, { id: `${fileId}-file`, key: file.name },
1598
- React.createElement(Copy, { id: `${fileId}-file-name`, type: 'bold' }, file.name),
1599
- React.createElement(Remove, { id: `${fileId}-remove`, onClick: handleRemove.bind(null, file), path: mdiMinusCircle })));
1597
+ return (React.createElement(File, { "data-itemid": `${fileId}-file`, key: file.name },
1598
+ React.createElement(Copy, { "data-itemid": `${fileId}-file-name`, type: 'bold' }, file.name),
1599
+ React.createElement(Remove, { "data-itemid": `${fileId}-remove`, onClick: handleRemove.bind(null, file), path: mdiMinusCircle })));
1600
1600
  }))) : null,
1601
- allowMoreFiles ? (React.createElement(ClickZone, { id: `${baseId}-click-zone`, onClick: triggerFileExplorer },
1602
- files.length ? null : (React.createElement(IconWrapper$1, { "$dragging": dragging, id: `${baseId}-icon-wrapper` },
1603
- React.createElement(StyledIcon$3, { id: `${baseId}-icon`, path: mdiFolderPlusOutline }))),
1604
- React.createElement(Content, { id: `${baseId}-content` },
1605
- React.createElement(Copy, { align: 'center', id: `${baseId}-copy`, type: 'bold' }, "Drag & drop files here or click to select files"),
1606
- message ? (React.createElement(MessageDiv, { id: `${baseId}-message-div` },
1607
- React.createElement(Copy, { align: 'center', color: 'GRAY', id: `${baseId}-message` }, message),
1608
- tooltipInfo && (React.createElement("span", { id: `${baseId}-tooltip` },
1601
+ allowMoreFiles ? (React.createElement(ClickZone, { "data-itemid": `${baseId}-click-zone`, onClick: triggerFileExplorer },
1602
+ files.length ? null : (React.createElement(IconWrapper$1, { "$dragging": dragging, "data-itemid": `${baseId}-icon-wrapper` },
1603
+ React.createElement(StyledIcon$3, { "data-itemid": `${baseId}-icon`, path: mdiFolderPlusOutline }))),
1604
+ React.createElement(Content, { "data-itemid": `${baseId}-content` },
1605
+ React.createElement(Copy, { align: 'center', "data-itemid": `${baseId}-copy`, type: 'bold' }, "Drag & drop files here or click to select files"),
1606
+ message ? (React.createElement(MessageDiv, { "data-itemid": `${baseId}-message-div` },
1607
+ React.createElement(Copy, { align: 'center', color: 'GRAY', "data-itemid": `${baseId}-message` }, message),
1608
+ tooltipInfo && (React.createElement("span", { "data-itemid": `${baseId}-tooltip` },
1609
1609
  React.createElement(Tooltip, { children: tooltipInfo, position: 'left-center' }))))) : null))) : null)));
1610
- };
1611
-
1610
+ };
1611
+
1612
1612
  const getAgesFromDob = (dob) => {
1613
1613
  let calculated_current_age = null;
1614
1614
  let calculated_nearest_age = null;
@@ -1681,154 +1681,154 @@ const formatAsSsn = (number) => {
1681
1681
  formatted_value = `${formatted_value.substring(0, 3)}-${formatted_value.substring(3, 5)}-${formatted_value.substring(5, 9)}`;
1682
1682
  }
1683
1683
  return formatted_value;
1684
- };
1685
-
1686
- const StyledInput = styled.input `
1687
- border: none !important;
1688
- background: none !important;
1689
- font-size: ${FontSizes.DEFAULT};
1690
- font-weight: 400;
1691
- font-family: ${FontStyles.DEFAULT};
1692
- line-height: 1.28em;
1684
+ };
1685
+
1686
+ const StyledInput = styled.input `
1687
+ border: none !important;
1688
+ background: none !important;
1689
+ font-size: ${FontSizes.DEFAULT};
1690
+ font-weight: 400;
1691
+ font-family: ${FontStyles.DEFAULT};
1692
+ line-height: 1.28em;
1693
1693
  color: ${props => props.$showErrorTextColor && props.$invalid && !props.$readOnly
1694
1694
  ? Colors.RED.Hex
1695
- : Colors.BLACK.Hex};
1696
- position: relative;
1697
- height: ${props => props.$height || 'auto'};
1698
- padding: 10px;
1699
- opacity: ${props => (props.$readOnly ? 0.6 : 1)};
1700
- box-shadow: none;
1701
- outline: none;
1702
- margin: 0px;
1703
- text-indent: 0px;
1704
- --webkit-appearance: none;
1705
- box-sizing: border-box;
1706
- display: block;
1707
- width: 100%;
1708
- `;
1709
- const StyledTextArea = styled.textarea `
1710
- border: none !important;
1711
- background: none !important;
1712
- overflow-y: scroll !important;
1713
- font-size: 14px;
1714
- font-weight: 400;
1715
- height: ${props => props.$height || 'auto'};
1716
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
1717
- line-height: 1.28em;
1695
+ : Colors.BLACK.Hex};
1696
+ position: relative;
1697
+ height: ${props => props.$height || 'auto'};
1698
+ padding: 10px;
1699
+ opacity: ${props => (props.$readOnly ? 0.6 : 1)};
1700
+ box-shadow: none;
1701
+ outline: none;
1702
+ margin: 0px;
1703
+ text-indent: 0px;
1704
+ --webkit-appearance: none;
1705
+ box-sizing: border-box;
1706
+ display: block;
1707
+ width: 100%;
1708
+ `;
1709
+ const StyledTextArea = styled.textarea `
1710
+ border: none !important;
1711
+ background: none !important;
1712
+ overflow-y: scroll !important;
1713
+ font-size: 14px;
1714
+ font-weight: 400;
1715
+ height: ${props => props.$height || 'auto'};
1716
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
1717
+ line-height: 1.28em;
1718
1718
  color: ${props => props.$showErrorTextColor && props.$invalid && !props.$readOnly
1719
1719
  ? Colors.RED.Hex
1720
- : Colors.BLACK.Hex};
1721
- position: relative;
1722
- padding: 10px;
1723
- opacity: 1;
1724
- box-shadow: none;
1725
- outline: none;
1726
- margin: 0px;
1727
- text-indent: 0px;
1728
- --webkit-appearance: none;
1729
- overflow-wrap: break-word;
1730
- box-sizing: border-box;
1731
- display: block;
1732
- width: 100%;
1720
+ : Colors.BLACK.Hex};
1721
+ position: relative;
1722
+ padding: 10px;
1723
+ opacity: 1;
1724
+ box-shadow: none;
1725
+ outline: none;
1726
+ margin: 0px;
1727
+ text-indent: 0px;
1728
+ --webkit-appearance: none;
1729
+ overflow-wrap: break-word;
1730
+ box-sizing: border-box;
1731
+ display: block;
1732
+ width: 100%;
1733
1733
  ${({ $readOnly }) => $readOnly &&
1734
- `
1735
- background-color: #f0f0f0;
1736
- color: #999999;
1737
- overflow-y: scroll;
1738
- `}
1739
- `;
1740
- const StyledSuffix = styled.div `
1741
- box-sizing: border-box;
1742
- border-radius: 0px 4px 4px 0px;
1743
- display: flex;
1744
- justify-content: center;
1745
- align-items: center;
1746
- padding: 10px;
1747
- height: auto;
1748
- background: #f5f5f5;
1749
- border-width: 0px 0px 0px 1px;
1750
- border-style: solid;
1751
- border-color: #cccccc;
1752
- font-family: ${FontStyles.DEFAULT};
1753
- font-style: normal;
1754
- font-weight: 400;
1755
- font-size: ${FontSizes.DEFAULT};
1756
- color: ${Colors.BLACK.Hex};
1757
- `;
1758
- const StyledWrapper = styled.div `
1759
- display: flex;
1760
- width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1761
- background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
1762
- position: relative;
1763
- border-width: 1px;
1764
- border-style: solid;
1765
- border-color: ${props => (props.$invalid && !props.$readOnly ? Colors.RED.Hex : '#cccccc')};
1766
- border-radius: ${props => (props.$suggestions ? '4px 4px 0px 0px' : '4px')};
1767
-
1768
- &:focus-within {
1769
- border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
1770
- }
1734
+ `
1735
+ background-color: #f0f0f0;
1736
+ color: #999999;
1737
+ overflow-y: scroll;
1738
+ `}
1739
+ `;
1740
+ const StyledSuffix = styled.div `
1741
+ box-sizing: border-box;
1742
+ border-radius: 0px 4px 4px 0px;
1743
+ display: flex;
1744
+ justify-content: center;
1745
+ align-items: center;
1746
+ padding: 10px;
1747
+ height: auto;
1748
+ background: #f5f5f5;
1749
+ border-width: 0px 0px 0px 1px;
1750
+ border-style: solid;
1751
+ border-color: #cccccc;
1752
+ font-family: ${FontStyles.DEFAULT};
1753
+ font-style: normal;
1754
+ font-weight: 400;
1755
+ font-size: ${FontSizes.DEFAULT};
1756
+ color: ${Colors.BLACK.Hex};
1757
+ `;
1758
+ const StyledWrapper = styled.div `
1759
+ display: flex;
1760
+ width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
1761
+ background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
1762
+ position: relative;
1763
+ border-width: 1px;
1764
+ border-style: solid;
1765
+ border-color: ${props => (props.$invalid && !props.$readOnly ? Colors.RED.Hex : '#cccccc')};
1766
+ border-radius: ${props => (props.$suggestions ? '4px 4px 0px 0px' : '4px')};
1767
+
1768
+ &:focus-within {
1769
+ border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
1770
+ }
1771
1771
  `;
1772
1772
  StyledWrapper.defaultProps = { theme: EditableTheme };
1773
- const SuggestedValues = styled.div `
1774
- background: #fff;
1775
- box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
1776
- border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
1777
- border-radius: 0px 0px 4px 4px;
1778
- border-style: solid;
1779
- border-top: none;
1780
- border-width: 1px;
1781
- left: -1px;
1782
- position: absolute;
1783
- right: -1px;
1784
- top: 39px;
1785
- z-index: 9999;
1786
- max-height: 220px;
1787
- overflow: auto;
1773
+ const SuggestedValues = styled.div `
1774
+ background: #fff;
1775
+ box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
1776
+ border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
1777
+ border-radius: 0px 0px 4px 4px;
1778
+ border-style: solid;
1779
+ border-top: none;
1780
+ border-width: 1px;
1781
+ left: -1px;
1782
+ position: absolute;
1783
+ right: -1px;
1784
+ top: 39px;
1785
+ z-index: 9999;
1786
+ max-height: 220px;
1787
+ overflow: auto;
1788
1788
  `;
1789
1789
  SuggestedValues.defaultProps = { theme: EditableTheme };
1790
- const SuggestedSummary = styled.div `
1791
- color: ${Colors.MEDIUM_GRAY.Hex};
1792
- font-size: 12px;
1793
- font-family: ${FontStyles.DEFAULT};
1794
- font-weight: 500;
1795
- line-height: 18px;
1796
- padding: 10px 12px;
1797
- border-bottom: 1px solid #e5e5e5;
1798
- background: #fff;
1799
- z-index: 1;
1800
- position: sticky;
1801
- top: 0px;
1802
- `;
1803
- const SuggestedValue = styled.div `
1804
- cursor: pointer;
1805
- padding: 8px 12px;
1806
- font-size: ${FontSizes.DEFAULT};
1807
- font-family: ${FontStyles.DEFAULT};
1808
- font-weight: 400;
1809
- line-height: 1.6em;
1810
- color: ${Colors.BLACK.Hex};
1811
-
1812
- &:hover {
1813
- background: rgba(${props => props.theme.PRIMARY_COLOR.Rgb}, 0.05);
1814
- }
1790
+ const SuggestedSummary = styled.div `
1791
+ color: ${Colors.MEDIUM_GRAY.Hex};
1792
+ font-size: 12px;
1793
+ font-family: ${FontStyles.DEFAULT};
1794
+ font-weight: 500;
1795
+ line-height: 18px;
1796
+ padding: 10px 12px;
1797
+ border-bottom: 1px solid #e5e5e5;
1798
+ background: #fff;
1799
+ z-index: 1;
1800
+ position: sticky;
1801
+ top: 0px;
1802
+ `;
1803
+ const SuggestedValue = styled.div `
1804
+ cursor: pointer;
1805
+ padding: 8px 12px;
1806
+ font-size: ${FontSizes.DEFAULT};
1807
+ font-family: ${FontStyles.DEFAULT};
1808
+ font-weight: 400;
1809
+ line-height: 1.6em;
1810
+ color: ${Colors.BLACK.Hex};
1811
+
1812
+ &:hover {
1813
+ background: rgba(${props => props.theme.PRIMARY_COLOR.Rgb}, 0.05);
1814
+ }
1815
1815
  `;
1816
1816
  SuggestedValue.defaultProps = { theme: EditableTheme };
1817
- const CharacterCount = styled.div `
1818
- font-family: ${FontStyles.DEFAULT};
1819
- font-size: ${FontSizes.SMALL};
1820
- color: ${Colors.MEDIUM_GRAY.Hex};
1821
- padding: 10px;
1822
- `;
1823
- const Loader$1 = styled.div `
1824
- padding: 0px 10px;
1825
- display: flex;
1826
- align-items: center;
1817
+ const CharacterCount = styled.div `
1818
+ font-family: ${FontStyles.DEFAULT};
1819
+ font-size: ${FontSizes.SMALL};
1820
+ color: ${Colors.MEDIUM_GRAY.Hex};
1821
+ padding: 10px;
1822
+ `;
1823
+ const Loader$1 = styled.div `
1824
+ padding: 0px 10px;
1825
+ display: flex;
1826
+ align-items: center;
1827
1827
  `;
1828
1828
  const Input$1 = (_a) => {
1829
1829
  var { format, suffix, height, invalid, loading, max, maxLength, min, onBlur, onChange, onFocus, onKeyDown,
1830
1830
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1831
- onSuggestedSelect = () => { }, placeholder, readOnly, showCharCount, step, style, suggestedValues, showErrorTextColor = false, type = 'text', value = '', innerRef = null, tabIndex, isAutoComplete = false, id } = _a, accessibleProps = __rest(_a, ["format", "suffix", "height", "invalid", "loading", "max", "maxLength", "min", "onBlur", "onChange", "onFocus", "onKeyDown", "onSuggestedSelect", "placeholder", "readOnly", "showCharCount", "step", "style", "suggestedValues", "showErrorTextColor", "type", "value", "innerRef", "tabIndex", "isAutoComplete", "id"]);
1831
+ onSuggestedSelect = () => { }, placeholder, readOnly, showCharCount, step, style, suggestedValues, showErrorTextColor = false, type = 'text', value = '', innerRef = null, tabIndex, isAutoComplete = false, dataItemid } = _a, accessibleProps = __rest(_a, ["format", "suffix", "height", "invalid", "loading", "max", "maxLength", "min", "onBlur", "onChange", "onFocus", "onKeyDown", "onSuggestedSelect", "placeholder", "readOnly", "showCharCount", "step", "style", "suggestedValues", "showErrorTextColor", "type", "value", "innerRef", "tabIndex", "isAutoComplete", "dataItemid"]);
1832
1832
  const [show_options, setShowOptions] = useState(false);
1833
1833
  const [internalValue, setInternalValue] = useState(value);
1834
1834
  const [internalSuggestedValues, setInternalSuggestedValues] = useState(suggestedValues || []);
@@ -1900,8 +1900,8 @@ const Input$1 = (_a) => {
1900
1900
  if (format === 'ssn' && type !== 'password') {
1901
1901
  formatted_value = formatAsSsn(internalValue);
1902
1902
  }
1903
- const baseId = id || 'input';
1904
- return type === 'textarea' ? (React.createElement(StyledWrapper, { "$invalid": invalid, "$readOnly": readOnly, "$style": style, "$suggestions": show_options && !!internalSuggestedValues.length, id: `${baseId}-wrapper` },
1903
+ const baseId = dataItemid || 'input';
1904
+ return type === 'textarea' ? (React.createElement(StyledWrapper, { "$invalid": invalid, "$readOnly": readOnly, "$style": style, "$suggestions": show_options && !!internalSuggestedValues.length, "data-itemid": `${baseId}-wrapper` },
1905
1905
  React.createElement(StyledTextArea, Object.assign({ "$height": height, "$invalid": invalid, "$readOnly": readOnly, "$showErrorTextColor": showErrorTextColor, maxLength: maxLength, onBlur: readOnly
1906
1906
  ? e => e.preventDefault()
1907
1907
  : e => {
@@ -1916,12 +1916,12 @@ const Input$1 = (_a) => {
1916
1916
  setShowOptions(true);
1917
1917
  if (onFocus)
1918
1918
  onFocus(e);
1919
- }, onKeyDown: readOnly ? e => e.preventDefault() : onKeyDown, placeholder: placeholder, readOnly: readOnly, ref: innerRef, tabIndex: readOnly ? -1 : tabIndex, value: formatted_value }, accessibleProps, { id: `${baseId}-textarea` })),
1920
- loading ? (React.createElement(Loader$1, { id: `${baseId}-loader` },
1919
+ }, onKeyDown: readOnly ? e => e.preventDefault() : onKeyDown, placeholder: placeholder, readOnly: readOnly, ref: innerRef, tabIndex: readOnly ? -1 : tabIndex, value: formatted_value }, accessibleProps, { "data-itemid": `${baseId}-textarea` })),
1920
+ loading ? (React.createElement(Loader$1, { "data-itemid": `${baseId}-loader` },
1921
1921
  React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: mdiLoading, size: '20px', spin: true }))) : null,
1922
- showCharCount ? (React.createElement(CharacterCount, { id: `${baseId}-char-count` },
1922
+ showCharCount ? (React.createElement(CharacterCount, { "data-itemid": `${baseId}-char-count` },
1923
1923
  internalValue.length,
1924
- maxLength ? ` / ${maxLength}` : null)) : null)) : (React.createElement(StyledWrapper, { "$invalid": invalid, "$readOnly": readOnly, "$style": style, "$suggestions": show_options && !!internalSuggestedValues.length, id: `${baseId}-wrapper` },
1924
+ maxLength ? ` / ${maxLength}` : null)) : null)) : (React.createElement(StyledWrapper, { "$invalid": invalid, "$readOnly": readOnly, "$style": style, "$suggestions": show_options && !!internalSuggestedValues.length, "data-itemid": `${baseId}-wrapper` },
1925
1925
  React.createElement(StyledInput, Object.assign({ "$height": height, "$invalid": invalid, "$readOnly": readOnly, "$showErrorTextColor": showErrorTextColor, max: max, maxLength: maxLength, min: min, onBlur: readOnly
1926
1926
  ? e => e.preventDefault()
1927
1927
  : e => {
@@ -1938,216 +1938,216 @@ const Input$1 = (_a) => {
1938
1938
  setIsFocused(true);
1939
1939
  if (onFocus)
1940
1940
  onFocus(e);
1941
- }, onKeyDown: readOnly ? e => e.preventDefault() : onKeyDown, placeholder: placeholder, readOnly: readOnly, ref: innerRef, step: step, tabIndex: readOnly ? -1 : tabIndex, type: type, value: format === 'currency_decimal' && internalValue ? `$${formatted_value}` : formatted_value }, accessibleProps, { id: `${baseId}-input` })),
1942
- loading ? (React.createElement(Loader$1, { id: `${baseId}-loader` },
1941
+ }, onKeyDown: readOnly ? e => e.preventDefault() : onKeyDown, placeholder: placeholder, readOnly: readOnly, ref: innerRef, step: step, tabIndex: readOnly ? -1 : tabIndex, type: type, value: format === 'currency_decimal' && internalValue ? `$${formatted_value}` : formatted_value }, accessibleProps, { "data-itemid": `${baseId}-input` })),
1942
+ loading ? (React.createElement(Loader$1, { "data-itemid": `${baseId}-loader` },
1943
1943
  React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: mdiLoading, size: '20px', spin: true }))) : null,
1944
- showCharCount ? (React.createElement(CharacterCount, { id: `${baseId}-char-count` },
1944
+ showCharCount ? (React.createElement(CharacterCount, { "data-itemid": `${baseId}-char-count` },
1945
1945
  internalValue.length,
1946
1946
  maxLength ? ` / ${maxLength}` : null)) : null,
1947
- suffix && React.createElement(StyledSuffix, { id: `${baseId}-suffix` }, suffix),
1948
- show_options && internalSuggestedValues.length ? (React.createElement(SuggestedValues, { id: `${baseId}-suggested-values` },
1949
- isAutoComplete ? null : (React.createElement(SuggestedSummary, { id: `${baseId}-suggested-summary` },
1947
+ suffix && React.createElement(StyledSuffix, { "data-itemid": `${baseId}-suffix` }, suffix),
1948
+ show_options && internalSuggestedValues.length ? (React.createElement(SuggestedValues, { "data-itemid": `${baseId}-suggested-values` },
1949
+ isAutoComplete ? null : (React.createElement(SuggestedSummary, { "data-itemid": `${baseId}-suggested-summary` },
1950
1950
  internalSuggestedValues.length,
1951
1951
  " Results Match \"",
1952
1952
  internalValue,
1953
1953
  "\"")),
1954
- internalSuggestedValues.map((suggestedValue, index) => (React.createElement(SuggestedValue, { id: `${baseId}-suggested-value-${index}`, key: index, onClick: () => {
1954
+ internalSuggestedValues.map((suggestedValue, index) => (React.createElement(SuggestedValue, { "data-itemid": `${baseId}-suggested-value-${index}`, key: index, onClick: () => {
1955
1955
  handleInputChange({ target: { value: suggestedValue } });
1956
1956
  onSuggestedSelect();
1957
1957
  setShowOptions(false);
1958
1958
  } }, suggestedValue))))) : null));
1959
- };
1960
-
1961
- const Wrapper$7 = styled.a `
1962
- color: ${props => props.theme.PRIMARY_COLOR.Hex};
1963
- font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
1964
- line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
1965
- letter-spacing: ${props => (props.$small ? '1px' : '0px')};
1966
- font-weight: 500;
1967
- font-style: normal;
1968
- text-decoration: none;
1969
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
1970
- margin: 0px;
1971
- padding: 0px;
1972
- box-sizing: border-box;
1973
- cursor: pointer;
1959
+ };
1960
+
1961
+ const Wrapper$7 = styled.a `
1962
+ color: ${props => props.theme.PRIMARY_COLOR.Hex};
1963
+ font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
1964
+ line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
1965
+ letter-spacing: ${props => (props.$small ? '1px' : '0px')};
1966
+ font-weight: 500;
1967
+ font-style: normal;
1968
+ text-decoration: none;
1969
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
1970
+ margin: 0px;
1971
+ padding: 0px;
1972
+ box-sizing: border-box;
1973
+ cursor: pointer;
1974
1974
  `;
1975
1975
  Wrapper$7.defaultProps = { theme: EditableTheme };
1976
1976
  const Link = (_a) => {
1977
- var { children, onClick, small, id } = _a, accessibleProps = __rest(_a, ["children", "onClick", "small", "id"]);
1978
- const baseId = id || 'link';
1979
- return (React.createElement(Wrapper$7, Object.assign({ "$small": small, onClick: onClick }, accessibleProps, { id: `${baseId}-wrapper` }), children));
1980
- };
1981
-
1982
- const dash = keyframes `
1983
- 0% {
1984
- stroke-dasharray: 1, 160;
1985
- stroke-dashoffset: 0;
1986
- }
1987
- 50% {
1988
- stroke-dasharray: 80, 160;
1989
- stroke-dashoffset: -32;
1990
- }
1991
- 100% {
1992
- stroke-dasharray: 80, 160;
1993
- stroke-dashoffset: -124;
1994
- }
1995
- `;
1996
- const Spinner = styled.svg `
1997
- z-index: 2;
1998
- position: absolute;
1999
- top: 50%;
2000
- left: 50%;
2001
- transform: translate(-50%, -50%);
2002
- margin: 0 auto;
2003
- width: 40px;
2004
- height: 40px;
2005
- `;
2006
- const Path = styled.path `
2007
- stroke: #0193d7;
2008
- stroke-linecap: round;
2009
- -webkit-animation: ${dash} 1.1s ease-in-out infinite;
2010
- animation: ${dash} 1.1s ease-in-out infinite;
2011
- `;
2012
- const Loader = ({ id }) => {
2013
- const baseId = id || 'loader';
2014
- return (React.createElement(Spinner, { id: `${baseId}-spinner`, viewBox: '0 0 16 18' },
2015
- 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', id: `${baseId}-path`, strokeWidth: '2' })));
2016
- };
2017
-
2018
- const Steps = styled.div `
2019
- padding: 20px;
2020
- border-bottom: 1px solid #e7e6e6;
2021
- background: #f5f5f5;
2022
- display: flex;
2023
- gap: 30px;
2024
- align-items: center;
2025
- `;
2026
- const Step = styled.div `
2027
- display: flex;
2028
- align-items: center;
2029
- gap: 8px;
2030
- `;
2031
- const StyledIcon$2 = styled(Icon) `
2032
- > path {
2033
- fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
2034
- }
1977
+ var { children, onClick, small, dataItemid } = _a, accessibleProps = __rest(_a, ["children", "onClick", "small", "dataItemid"]);
1978
+ const baseId = dataItemid || 'link';
1979
+ return (React.createElement(Wrapper$7, Object.assign({ "$small": small, onClick: onClick }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }), children));
1980
+ };
1981
+
1982
+ const dash = keyframes `
1983
+ 0% {
1984
+ stroke-dasharray: 1, 160;
1985
+ stroke-dashoffset: 0;
1986
+ }
1987
+ 50% {
1988
+ stroke-dasharray: 80, 160;
1989
+ stroke-dashoffset: -32;
1990
+ }
1991
+ 100% {
1992
+ stroke-dasharray: 80, 160;
1993
+ stroke-dashoffset: -124;
1994
+ }
1995
+ `;
1996
+ const Spinner = styled.svg `
1997
+ z-index: 2;
1998
+ position: absolute;
1999
+ top: 50%;
2000
+ left: 50%;
2001
+ transform: translate(-50%, -50%);
2002
+ margin: 0 auto;
2003
+ width: 40px;
2004
+ height: 40px;
2005
+ `;
2006
+ const Path = styled.path `
2007
+ stroke: #0193d7;
2008
+ stroke-linecap: round;
2009
+ -webkit-animation: ${dash} 1.1s ease-in-out infinite;
2010
+ animation: ${dash} 1.1s ease-in-out infinite;
2011
+ `;
2012
+ const Loader = ({ dataItemid }) => {
2013
+ const baseId = dataItemid || 'loader';
2014
+ return (React.createElement(Spinner, { "data-itemid": `${baseId}-spinner`, viewBox: '0 0 16 18' },
2015
+ 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', "data-itemid": `${baseId}-path`, fill: 'none', strokeWidth: '2' })));
2016
+ };
2017
+
2018
+ const Steps = styled.div `
2019
+ padding: 20px;
2020
+ border-bottom: 1px solid #e7e6e6;
2021
+ background: #f5f5f5;
2022
+ display: flex;
2023
+ gap: 30px;
2024
+ align-items: center;
2025
+ `;
2026
+ const Step = styled.div `
2027
+ display: flex;
2028
+ align-items: center;
2029
+ gap: 8px;
2030
+ `;
2031
+ const StyledIcon$2 = styled(Icon) `
2032
+ > path {
2033
+ fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
2034
+ }
2035
2035
  `;
2036
2036
  StyledIcon$2.defaultProps = { theme: EditableTheme };
2037
- const StepIndicator = styled.div `
2038
- width: 30px;
2039
- height: 30px;
2040
- border-radius: 15px;
2041
- background: ${props => (props.$active ? props.theme.PRIMARY_COLOR.Hex : Colors.LIGHT_GRAY.Hex)};
2042
- color: ${props => (props.$active ? '#fff' : Colors.MEDIUM_GRAY.Hex)};
2043
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
2044
- font-size: 14px;
2045
- font-weight: 500;
2046
- line-height: 1;
2047
- display: flex;
2048
- align-items: center;
2049
- justify-content: center;
2050
- flex-shrink: 0;
2037
+ const StepIndicator = styled.div `
2038
+ width: 30px;
2039
+ height: 30px;
2040
+ border-radius: 15px;
2041
+ background: ${props => (props.$active ? props.theme.PRIMARY_COLOR.Hex : Colors.LIGHT_GRAY.Hex)};
2042
+ color: ${props => (props.$active ? '#fff' : Colors.MEDIUM_GRAY.Hex)};
2043
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
2044
+ font-size: 14px;
2045
+ font-weight: 500;
2046
+ line-height: 1;
2047
+ display: flex;
2048
+ align-items: center;
2049
+ justify-content: center;
2050
+ flex-shrink: 0;
2051
2051
  `;
2052
2052
  StepIndicator.defaultProps = { theme: EditableTheme };
2053
- const StepLabel = styled.div `
2054
- color: #000;
2055
- font-family: 'Roboto', Helvetica, Arial, sans-serif;
2056
- font-size: 14px;
2057
- font-weight: 500;
2058
- line-height: 1;
2059
- `;
2060
- const StepLine = styled.div `
2061
- height: 2px;
2062
- flex-grow: 1;
2063
- background-color: ${props => (props.$active ? Colors.PRIMARY.Hex : Colors.MEDIUM_GRAY.Hex)};
2064
- transition: background-color 0.5s ease-in-out;
2065
- `;
2066
- const ProgressBar = ({ steps, showStepLine = false, id }) => {
2067
- const baseId = id || 'progress-bar';
2068
- return (React.createElement(Steps, { id: `${baseId}-steps` }, steps.map((step, i) => {
2053
+ const StepLabel = styled.div `
2054
+ color: #000;
2055
+ font-family: 'Roboto', Helvetica, Arial, sans-serif;
2056
+ font-size: 14px;
2057
+ font-weight: 500;
2058
+ line-height: 1;
2059
+ `;
2060
+ const StepLine = styled.div `
2061
+ height: 2px;
2062
+ flex-grow: 1;
2063
+ background-color: ${props => (props.$active ? Colors.PRIMARY.Hex : Colors.MEDIUM_GRAY.Hex)};
2064
+ transition: background-color 0.5s ease-in-out;
2065
+ `;
2066
+ const ProgressBar = ({ steps, showStepLine = false, dataItemid }) => {
2067
+ const baseId = dataItemid || 'progress-bar';
2068
+ return (React.createElement(Steps, { "data-itemid": `${baseId}-steps` }, steps.map((step, i) => {
2069
2069
  const stepId = `${baseId}-step-${i}`;
2070
2070
  return (React.createElement(React.Fragment, { key: i },
2071
- i !== 0 && showStepLine && React.createElement(StepLine, { "$active": step.active, id: `${stepId}-line` }),
2072
- React.createElement(Step, { id: `${stepId}-step` },
2073
- step.complete ? (React.createElement(StyledIcon$2, { id: `${stepId}-icon`, path: mdiCheckboxMarkedCircleOutline, size: '32px' })) : (React.createElement(StepIndicator, { "$active": step.active, id: `${stepId}-indicator` }, i + 1)),
2074
- React.createElement(StepLabel, { id: `${stepId}-label` }, step.label))));
2071
+ i !== 0 && showStepLine && (React.createElement(StepLine, { "$active": step.active, "data-itemid": `${stepId}-line` })),
2072
+ React.createElement(Step, { "data-itemid": `${stepId}-step` },
2073
+ step.complete ? (React.createElement(StyledIcon$2, { "data-itemid": `${stepId}-icon`, path: mdiCheckboxMarkedCircleOutline, size: '32px' })) : (React.createElement(StepIndicator, { "$active": step.active, "data-itemid": `${stepId}-indicator` }, i + 1)),
2074
+ React.createElement(StepLabel, { "data-itemid": `${stepId}-label` }, step.label))));
2075
2075
  })));
2076
- };
2077
-
2078
- const Wrapper$6 = styled.div `
2079
- position: fixed;
2080
- top: 0;
2081
- right: 0;
2082
- bottom: 0;
2083
- left: 0;
2084
- z-index: 9999;
2085
- background: rgba(0, 0, 0, 0.8);
2086
- display: flex;
2087
- align-items: center;
2088
- justify-content: center;
2089
- `;
2090
- const Container$1 = styled.dialog `
2091
- width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
2092
- max-width: calc(100vw - 80px);
2093
- height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
2094
- max-height: calc(100vh - 80px);
2095
- border-radius: 8px;
2096
- overflow: hidden;
2097
- box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
2098
- outline: none;
2099
- border: none;
2100
- position: relative;
2101
- padding: 0px;
2102
- box-sizing: border-box;
2103
- display: flex;
2104
- flex-direction: column;
2105
- `;
2106
- const Header$1 = styled.div `
2107
- flex-shrink: 0;
2108
- padding: 20px;
2109
- border-bottom: 1px solid #e7e6e6;
2110
- display: flex;
2111
- align-items: center;
2112
- background: #ffffff;
2113
- box-sizing: border-box;
2114
- `;
2115
- const Close = styled.div `
2116
- margin-left: auto;
2117
- display: flex;
2118
- align-items: center;
2119
- padding-left: 20px;
2120
- cursor: pointer;
2121
- `;
2122
- const CloseMsg = styled.span `
2123
- font-size: ${FontSizes.SMALL};
2124
- font-weight: 400;
2125
- font-family: ${FontStyles.DEFAULT};
2126
- line-height: 1em;
2127
- color: ${Colors.MEDIUM_GRAY.Hex};
2128
- `;
2129
- const ContentWrapper = styled.div `
2130
- overflow-x: hidden;
2131
- overflow-y: auto;
2132
- background: #ffffff;
2133
- flex: 1;
2134
- box-sizing: border-box;
2135
- `;
2136
- const ButtonBar = styled.div `
2137
- flex-shrink: 0;
2138
- background: #ffffff;
2139
- padding: 20px;
2140
- border-top: 1px solid #e7e6e6;
2141
- display: flex;
2142
- align-items: center;
2143
- justify-self: flex-end;
2144
- box-sizing: border-box;
2145
- `;
2146
- const ButtonContainer = styled.div `
2147
- margin: 0 10px;
2076
+ };
2077
+
2078
+ const Wrapper$6 = styled.div `
2079
+ position: fixed;
2080
+ top: 0;
2081
+ right: 0;
2082
+ bottom: 0;
2083
+ left: 0;
2084
+ z-index: 9999;
2085
+ background: rgba(0, 0, 0, 0.8);
2086
+ display: flex;
2087
+ align-items: center;
2088
+ justify-content: center;
2089
+ `;
2090
+ const Container$1 = styled.dialog `
2091
+ width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
2092
+ max-width: calc(100vw - 80px);
2093
+ height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
2094
+ max-height: calc(100vh - 80px);
2095
+ border-radius: 8px;
2096
+ overflow: hidden;
2097
+ box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
2098
+ outline: none;
2099
+ border: none;
2100
+ position: relative;
2101
+ padding: 0px;
2102
+ box-sizing: border-box;
2103
+ display: flex;
2104
+ flex-direction: column;
2105
+ `;
2106
+ const Header$1 = styled.div `
2107
+ flex-shrink: 0;
2108
+ padding: 20px;
2109
+ border-bottom: 1px solid #e7e6e6;
2110
+ display: flex;
2111
+ align-items: center;
2112
+ background: #ffffff;
2113
+ box-sizing: border-box;
2114
+ `;
2115
+ const Close = styled.div `
2116
+ margin-left: auto;
2117
+ display: flex;
2118
+ align-items: center;
2119
+ padding-left: 20px;
2120
+ cursor: pointer;
2121
+ `;
2122
+ const CloseMsg = styled.span `
2123
+ font-size: ${FontSizes.SMALL};
2124
+ font-weight: 400;
2125
+ font-family: ${FontStyles.DEFAULT};
2126
+ line-height: 1em;
2127
+ color: ${Colors.MEDIUM_GRAY.Hex};
2128
+ `;
2129
+ const ContentWrapper = styled.div `
2130
+ overflow-x: hidden;
2131
+ overflow-y: auto;
2132
+ background: #ffffff;
2133
+ flex: 1;
2134
+ box-sizing: border-box;
2135
+ `;
2136
+ const ButtonBar = styled.div `
2137
+ flex-shrink: 0;
2138
+ background: #ffffff;
2139
+ padding: 20px;
2140
+ border-top: 1px solid #e7e6e6;
2141
+ display: flex;
2142
+ align-items: center;
2143
+ justify-self: flex-end;
2144
+ box-sizing: border-box;
2145
+ `;
2146
+ const ButtonContainer = styled.div `
2147
+ margin: 0 10px;
2148
2148
  `;
2149
2149
  const Modal = (_a) => {
2150
- var { children, title, onClose, maxWidth, fullscreen, steps, primaryButton, secondaryButton, tertiaryButton, quarternaryButton, id } = _a, accessibleProps = __rest(_a, ["children", "title", "onClose", "maxWidth", "fullscreen", "steps", "primaryButton", "secondaryButton", "tertiaryButton", "quarternaryButton", "id"]);
2150
+ var { children, title, onClose, maxWidth, fullscreen, steps, primaryButton, secondaryButton, tertiaryButton, quarternaryButton, dataItemid } = _a, accessibleProps = __rest(_a, ["children", "title", "onClose", "maxWidth", "fullscreen", "steps", "primaryButton", "secondaryButton", "tertiaryButton", "quarternaryButton", "dataItemid"]);
2151
2151
  useEffect(() => {
2152
2152
  document.onkeydown = e => {
2153
2153
  if (e.key === 'Escape') {
@@ -2158,50 +2158,50 @@ const Modal = (_a) => {
2158
2158
  document.onkeydown = null;
2159
2159
  };
2160
2160
  }, [onClose]);
2161
- const baseId = id || 'modal';
2162
- return (React.createElement(Wrapper$6, { id: `${baseId}-wrapper` },
2163
- React.createElement(Container$1, Object.assign({ "$fullscreen": fullscreen, "$maxWidth": maxWidth, open: true }, accessibleProps, { id: `${baseId}-container` }),
2164
- React.createElement(Header$1, { id: `${baseId}-header` },
2165
- title ? (React.createElement(Heading, { id: `${baseId}-title`, type: 'secondary' }, title)) : null,
2166
- React.createElement(Close, { id: `${baseId}-close`, onClick: onClose },
2167
- React.createElement(CloseMsg, { id: `${baseId}-close-msg` }, "(Esc)"),
2168
- React.createElement(Icon, { color: Colors.BLACK.Hex, id: `${baseId}-close-icon`, path: mdiClose, size: '24px' }))),
2161
+ const baseId = dataItemid || 'modal';
2162
+ return (React.createElement(Wrapper$6, { "data-itemid": `${baseId}-wrapper` },
2163
+ React.createElement(Container$1, Object.assign({ "$fullscreen": fullscreen, "$maxWidth": maxWidth, open: true }, accessibleProps, { "data-itemid": `${baseId}-container` }),
2164
+ React.createElement(Header$1, { "data-itemid": `${baseId}-header` },
2165
+ title ? (React.createElement(Heading, { "data-itemid": `${baseId}-title`, type: 'secondary' }, title)) : null,
2166
+ React.createElement(Close, { "data-itemid": `${baseId}-close`, onClick: onClose },
2167
+ React.createElement(CloseMsg, { "data-itemid": `${baseId}-close-msg` }, "(Esc)"),
2168
+ React.createElement(Icon, { color: Colors.BLACK.Hex, "data-itemid": `${baseId}-close-icon`, path: mdiClose, size: '24px' }))),
2169
2169
  steps ? React.createElement(ProgressBar, { steps: steps }) : null,
2170
- React.createElement(ContentWrapper, { id: `${baseId}-content-wrapper` }, children),
2171
- primaryButton || secondaryButton || tertiaryButton || quarternaryButton ? (React.createElement(ButtonBar, { id: `${baseId}-button-bar` },
2172
- tertiaryButton || quarternaryButton ? (React.createElement("div", { id: `${baseId}-left-buttons`, style: {
2170
+ React.createElement(ContentWrapper, { "data-itemid": `${baseId}-content-wrapper` }, children),
2171
+ primaryButton || secondaryButton || tertiaryButton || quarternaryButton ? (React.createElement(ButtonBar, { "data-itemid": `${baseId}-button-bar` },
2172
+ tertiaryButton || quarternaryButton ? (React.createElement("div", { "data-itemid": `${baseId}-left-buttons`, style: {
2173
2173
  marginRight: 'auto',
2174
2174
  paddingRight: 40,
2175
2175
  display: 'flex',
2176
2176
  alignItems: 'center',
2177
2177
  } },
2178
- tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { format: tertiaryButton.format || 'secondary', id: `${baseId}-tertiary-button` }))) : null,
2179
- quarternaryButton ? (React.createElement(ButtonContainer, { id: `${baseId}-quarternary-button-container` },
2180
- React.createElement(Button, Object.assign({}, quarternaryButton, { format: quarternaryButton.format || 'secondary', id: `${baseId}-quarternary-button` })))) : null)) : null,
2181
- primaryButton || secondaryButton ? (React.createElement("div", { id: `${baseId}-right-buttons`, style: {
2178
+ tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { "data-itemid": `${baseId}-tertiary-button`, format: tertiaryButton.format || 'secondary' }))) : null,
2179
+ quarternaryButton ? (React.createElement(ButtonContainer, { "data-itemid": `${baseId}-quarternary-button-container` },
2180
+ React.createElement(Button, Object.assign({}, quarternaryButton, { "data-itemid": `${baseId}-quarternary-button`, format: quarternaryButton.format || 'secondary' })))) : null)) : null,
2181
+ primaryButton || secondaryButton ? (React.createElement("div", { "data-itemid": `${baseId}-right-buttons`, style: {
2182
2182
  marginLeft: 'auto',
2183
2183
  paddingLeft: 40,
2184
2184
  display: 'flex',
2185
2185
  alignItems: 'center',
2186
2186
  } },
2187
- secondaryButton ? (React.createElement(ButtonContainer, { id: `${baseId}-secondary-button-container` },
2188
- React.createElement(Button, Object.assign({}, secondaryButton, { format: secondaryButton.format || 'secondary', id: `${baseId}-secondary-button` })))) : null,
2189
- primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format || 'primary', id: `${baseId}-primary-button` }))) : null)) : null)) : null)));
2190
- };
2191
-
2192
- const Wrapper$5 = styled.div `
2193
- position: relative;
2194
- width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
2195
- `;
2196
- const Trigger = styled.div `
2197
- box-sizing: border-box;
2198
- border-radius: ${props => (props.$showOptions ? '4px 4px 0px 0px' : '4px')};
2199
- height: 40px;
2200
- padding: 0 10px;
2201
- position: relative;
2202
- cursor: pointer;
2203
- border-width: 1px;
2204
- border-style: solid;
2187
+ secondaryButton ? (React.createElement(ButtonContainer, { "data-itemid": `${baseId}-secondary-button-container` },
2188
+ React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": `${baseId}-secondary-button`, format: secondaryButton.format || 'secondary' })))) : null,
2189
+ primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": `${baseId}-primary-button`, format: primaryButton.format || 'primary' }))) : null)) : null)) : null)));
2190
+ };
2191
+
2192
+ const Wrapper$5 = styled.div `
2193
+ position: relative;
2194
+ width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
2195
+ `;
2196
+ const Trigger = styled.div `
2197
+ box-sizing: border-box;
2198
+ border-radius: ${props => (props.$showOptions ? '4px 4px 0px 0px' : '4px')};
2199
+ height: 40px;
2200
+ padding: 0 10px;
2201
+ position: relative;
2202
+ cursor: pointer;
2203
+ border-width: 1px;
2204
+ border-style: solid;
2205
2205
  border-color: ${props => {
2206
2206
  if (props.$invalid) {
2207
2207
  return Colors.RED.Hex;
@@ -2212,88 +2212,88 @@ const Trigger = styled.div `
2212
2212
  else {
2213
2213
  return '#cccccc';
2214
2214
  }
2215
- }};
2216
- background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
2217
- background-image: none;
2218
- display: flex;
2219
- width: 100%;
2220
- align-items: center;
2221
- justify-content: space-between;
2222
- z-index: 1;
2215
+ }};
2216
+ background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
2217
+ background-image: none;
2218
+ display: flex;
2219
+ width: 100%;
2220
+ align-items: center;
2221
+ justify-content: space-between;
2222
+ z-index: 1;
2223
2223
  `;
2224
2224
  Trigger.defaultProps = { theme: EditableTheme };
2225
- const Value = styled.div `
2226
- color: ${Colors.BLACK.Hex};
2227
- font-family: ${FontStyles.DEFAULT};
2228
- font-size: ${FontSizes.DEFAULT};
2229
- font-weight: 400;
2230
- line-height: 2.9em;
2231
- overflow: hidden;
2232
- text-overflow: ellipsis;
2233
- white-space: nowrap;
2234
- width: 100%;
2235
- `;
2236
- const Options = styled.div `
2237
- background: #fff;
2238
- box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
2239
- border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
2240
- border-radius: 0px 0px 4px 4px;
2241
- border-style: solid;
2242
- border-top: none;
2243
- border-width: 1px;
2244
- left: 0;
2245
- position: absolute;
2246
- right: 0;
2247
- z-index: 10;
2248
- max-height: 220px;
2249
- overflow: auto;
2225
+ const Value = styled.div `
2226
+ color: ${Colors.BLACK.Hex};
2227
+ font-family: ${FontStyles.DEFAULT};
2228
+ font-size: ${FontSizes.DEFAULT};
2229
+ font-weight: 400;
2230
+ line-height: 2.9em;
2231
+ overflow: hidden;
2232
+ text-overflow: ellipsis;
2233
+ white-space: nowrap;
2234
+ width: 100%;
2235
+ `;
2236
+ const Options = styled.div `
2237
+ background: #fff;
2238
+ box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
2239
+ border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
2240
+ border-radius: 0px 0px 4px 4px;
2241
+ border-style: solid;
2242
+ border-top: none;
2243
+ border-width: 1px;
2244
+ left: 0;
2245
+ position: absolute;
2246
+ right: 0;
2247
+ z-index: 10;
2248
+ max-height: 220px;
2249
+ overflow: auto;
2250
2250
  `;
2251
2251
  Options.defaultProps = { theme: EditableTheme };
2252
- const Scrim = styled.div `
2253
- bottom: 0;
2254
- left: 0;
2255
- position: fixed;
2256
- right: 0;
2257
- top: 0;
2258
- z-index: 9;
2259
- `;
2260
- const SearchInput = styled.input `
2261
- position: absolute;
2262
- left: 2px;
2263
- top: 2px;
2264
- z-index: 999;
2265
- width: 90%;
2266
- height: 30px;
2267
- border: none;
2268
- outline: none;
2269
- color: ${Colors.BLACK.Hex};
2270
- font-family: ${FontStyles.DEFAULT};
2271
- font-size: ${FontSizes.DEFAULT};
2272
- font-weight: 400;
2273
- line-height: 2.9em;
2274
- overflow: hidden;
2275
- white-space: nowrap;
2252
+ const Scrim = styled.div `
2253
+ bottom: 0;
2254
+ left: 0;
2255
+ position: fixed;
2256
+ right: 0;
2257
+ top: 0;
2258
+ z-index: 9;
2259
+ `;
2260
+ const SearchInput = styled.input `
2261
+ position: absolute;
2262
+ left: 2px;
2263
+ top: 2px;
2264
+ z-index: 999;
2265
+ width: 90%;
2266
+ height: 30px;
2267
+ border: none;
2268
+ outline: none;
2269
+ color: ${Colors.BLACK.Hex};
2270
+ font-family: ${FontStyles.DEFAULT};
2271
+ font-size: ${FontSizes.DEFAULT};
2272
+ font-weight: 400;
2273
+ line-height: 2.9em;
2274
+ overflow: hidden;
2275
+ white-space: nowrap;
2276
2276
  `;
2277
2277
  const MultiSelect = (_a) => {
2278
- var { readOnly, displayCount = 3, invalid, onChange, options = [], selected = [], showSelectAll, searchable = false, style, id } = _a, accessibleProps = __rest(_a, ["readOnly", "displayCount", "invalid", "onChange", "options", "selected", "showSelectAll", "searchable", "style", "id"]);
2278
+ var { readOnly, displayCount = 3, invalid, onChange, options = [], selected = [], showSelectAll, searchable = false, style, dataItemid } = _a, accessibleProps = __rest(_a, ["readOnly", "displayCount", "invalid", "onChange", "options", "selected", "showSelectAll", "searchable", "style", "dataItemid"]);
2279
2279
  const [showOptions, setShowOptions] = useState(false);
2280
2280
  const selected_options = options.filter(o => selected.includes(o.value));
2281
2281
  const [filter, setFilter] = useState('');
2282
- const baseId = id || 'multiselect';
2282
+ const baseId = dataItemid || 'multiselect';
2283
2283
  // Filter the options based on the filter state
2284
2284
  const filteredOptions = options.filter(o => { var _a, _b; return ((_a = o.label) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(filter)) || ((_b = o.value) === null || _b === void 0 ? void 0 : _b.toString().toLowerCase().includes(filter)); });
2285
- return (React.createElement(Wrapper$5, { "$style": style, id: `${baseId}-wrapper` },
2286
- searchable && (React.createElement(SearchInput, { id: `${baseId}-search-input`, onChange: e => setFilter(e.target.value), onClick: () => setShowOptions(!showOptions), placeholder: `${showSelectAll ? options.length : selected_options.length} Selected`, type: 'text', value: filter })),
2287
- React.createElement(Trigger, Object.assign({ "$invalid": invalid, "$readOnly": readOnly, "$showOptions": showOptions, id: `${baseId}-trigger`, onClick: readOnly ? undefined : setShowOptions.bind(null, !showOptions) }, accessibleProps),
2288
- React.createElement(Value, { id: `${baseId}-value` }, selected.length > 0 && selected.length <= displayCount
2285
+ return (React.createElement(Wrapper$5, { "$style": style, "data-itemid": `${baseId}-wrapper` },
2286
+ searchable && (React.createElement(SearchInput, { "data-itemid": `${baseId}-search-input`, onChange: e => setFilter(e.target.value), onClick: () => setShowOptions(!showOptions), placeholder: `${showSelectAll ? options.length : selected_options.length} Selected`, type: 'text', value: filter })),
2287
+ React.createElement(Trigger, Object.assign({ "$invalid": invalid, "$readOnly": readOnly, "$showOptions": showOptions, "data-itemid": `${baseId}-trigger`, onClick: readOnly ? undefined : setShowOptions.bind(null, !showOptions) }, accessibleProps),
2288
+ React.createElement(Value, { "data-itemid": `${baseId}-value` }, selected.length > 0 && selected.length <= displayCount
2289
2289
  ? selected_options.map(o => o.label || o.value).join(', ')
2290
2290
  : `${selected_options.length} Selected`),
2291
- React.createElement(Icon, { color: Colors.BLACK.Hex, id: `${baseId}-icon`, path: showOptions ? mdiChevronUp : mdiChevronDown, size: '22px' })),
2292
- showOptions ? (React.createElement(Options, { id: `${baseId}-options` },
2293
- React.createElement(Checklist, { id: `${baseId}-checklist`, onChange: onChange, options: filteredOptions, selected: selected, showSelectAll: showSelectAll }))) : null,
2294
- showOptions ? (React.createElement(Scrim, { id: `${baseId}-scrim`, onClick: setShowOptions.bind(null, !showOptions) })) : null));
2295
- };
2296
-
2291
+ React.createElement(Icon, { color: Colors.BLACK.Hex, "data-itemid": `${baseId}-icon`, path: showOptions ? mdiChevronUp : mdiChevronDown, size: '22px' })),
2292
+ showOptions ? (React.createElement(Options, { "data-itemid": `${baseId}-options` },
2293
+ React.createElement(Checklist, { "data-itemid": `${baseId}-checklist`, onChange: onChange, options: filteredOptions, selected: selected, showSelectAll: showSelectAll }))) : null,
2294
+ showOptions ? (React.createElement(Scrim, { "data-itemid": `${baseId}-scrim`, onClick: setShowOptions.bind(null, !showOptions) })) : null));
2295
+ };
2296
+
2297
2297
  const Wrapper$4 = styled.div `
2298
2298
  display: flex;
2299
2299
  padding: 16px 30px;
@@ -2324,37 +2324,37 @@ const Actions = styled.div `
2324
2324
  align-items: center;
2325
2325
  gap: 8px;
2326
2326
  `;
2327
- const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag, id, }) => {
2327
+ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag, dataItemid, }) => {
2328
2328
  const { format = 'primary', menuItems = [], label = '', enableHover = true, enableClick = false, show = false, maxHeight = '', } = buttonMenu || {};
2329
- const baseId = id || 'page-header';
2330
- return (React.createElement(Wrapper$4, { id: `${baseId}-wrapper` },
2331
- React.createElement(Info, { id: `${baseId}-info` },
2332
- React.createElement(Title, { id: `${baseId}-title` },
2333
- React.createElement(Heading, { id: `${baseId}-heading`, type: 'secondary' }, title),
2334
- tag ? React.createElement(Tag, Object.assign({}, tag, { id: `${baseId}-tag` })) : null),
2335
- breadcrumbs ? (React.createElement(Breadcrumbs, { id: `${baseId}-breadcrumbs` }, breadcrumbs.map((crumb, i) => {
2329
+ const baseId = dataItemid || 'page-header';
2330
+ return (React.createElement(Wrapper$4, { "data-itemid": `${baseId}-wrapper` },
2331
+ React.createElement(Info, { "data-itemid": `${baseId}-info` },
2332
+ React.createElement(Title, { "data-itemid": `${baseId}-title` },
2333
+ React.createElement(Heading, { "data-itemid": `${baseId}-heading`, type: 'secondary' }, title),
2334
+ tag ? React.createElement(Tag, Object.assign({}, tag, { "data-itemid": `${baseId}-tag` })) : null),
2335
+ breadcrumbs ? (React.createElement(Breadcrumbs, { "data-itemid": `${baseId}-breadcrumbs` }, breadcrumbs.map((crumb, i) => {
2336
2336
  const crumbId = `${baseId}-breadcrumb-${i}`;
2337
2337
  return (React.createElement(React.Fragment, { key: i },
2338
- crumb.onClick ? (React.createElement(Link, { id: `${crumbId}-link`, onClick: crumb.onClick, small: true }, crumb.label)) : (React.createElement(Copy, { id: `${crumbId}-copy`, type: 'small' }, crumb.label)),
2339
- i + 1 < breadcrumbs.length ? (React.createElement(Icon$1, { id: `${crumbId}-icon`, path: mdiChevronRight, size: '14px' })) : null));
2338
+ crumb.onClick ? (React.createElement(Link, { "data-itemid": `${crumbId}-link`, onClick: crumb.onClick, small: true }, crumb.label)) : (React.createElement(Copy, { "data-itemid": `${crumbId}-copy`, type: 'small' }, crumb.label)),
2339
+ i + 1 < breadcrumbs.length ? (React.createElement(Icon$1, { "data-itemid": `${crumbId}-icon`, path: mdiChevronRight, size: '14px' })) : null));
2340
2340
  }))) : null),
2341
- actions ? (React.createElement(Actions, { id: `${baseId}-actions` },
2341
+ actions ? (React.createElement(Actions, { "data-itemid": `${baseId}-actions` },
2342
2342
  actions.map((action, i) => {
2343
2343
  const { label } = action, buttonProps = __rest(action, ["label"]);
2344
2344
  const actionId = `${baseId}-action-${i}`;
2345
- return (React.createElement(Button, Object.assign({}, buttonProps, { id: `${actionId}-button`, key: i, small: true }), label));
2345
+ return (React.createElement(Button, Object.assign({}, buttonProps, { "data-itemid": `${actionId}-button`, key: i, small: true }), label));
2346
2346
  }),
2347
- menuItems.length ? (React.createElement(ButtonMenu, { enableClick: enableClick, enableHover: enableHover, format: format, id: `${baseId}-button-menu`, label: label, maxHeight: maxHeight, menuItems: menuItems, show: show, small: true })) : null)) : null));
2348
- };
2349
-
2350
- const Wrapper$3 = styled.nav `
2351
- box-sizing: border-box;
2352
- display: flex;
2353
- align-items: center;
2354
- column-gap: 10px;
2347
+ menuItems.length ? (React.createElement(ButtonMenu, { "data-itemid": `${baseId}-button-menu`, enableClick: enableClick, enableHover: enableHover, format: format, label: label, maxHeight: maxHeight, menuItems: menuItems, show: show, small: true })) : null)) : null));
2348
+ };
2349
+
2350
+ const Wrapper$3 = styled.nav `
2351
+ box-sizing: border-box;
2352
+ display: flex;
2353
+ align-items: center;
2354
+ column-gap: 10px;
2355
2355
  `;
2356
2356
  const Pagination = (_a) => {
2357
- var { currentPage = 1, onClick, pageCount = 0, id } = _a, accessibleProps = __rest(_a, ["currentPage", "onClick", "pageCount", "id"]);
2357
+ var { currentPage = 1, onClick, pageCount = 0, dataItemid } = _a, accessibleProps = __rest(_a, ["currentPage", "onClick", "pageCount", "dataItemid"]);
2358
2358
  const is_first_page = currentPage === 1;
2359
2359
  const is_last_page = currentPage === pageCount;
2360
2360
  const handlePrevClick = () => {
@@ -2373,326 +2373,326 @@ const Pagination = (_a) => {
2373
2373
  onClick(new_page);
2374
2374
  }
2375
2375
  };
2376
- const baseId = id || 'pagination';
2377
- return (React.createElement(Wrapper$3, Object.assign({}, accessibleProps, { id: `${baseId}-wrapper` }),
2378
- React.createElement(Button, { disabled: is_first_page, icon: mdiChevronLeft, id: `${baseId}-prev-button`, onClick: handlePrevClick, small: true }),
2379
- React.createElement(Select, { id: `${baseId}-select`, onChange: handlePageChange, options: Array.from(Array(pageCount).keys(), p => p + 1).map(p => ({
2376
+ const baseId = dataItemid || 'pagination';
2377
+ return (React.createElement(Wrapper$3, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
2378
+ React.createElement(Button, { "data-itemid": `${baseId}-prev-button`, disabled: is_first_page, icon: mdiChevronLeft, onClick: handlePrevClick, small: true }),
2379
+ React.createElement(Select, { "data-itemid": `${baseId}-select`, onChange: handlePageChange, options: Array.from(Array(pageCount).keys(), p => p + 1).map(p => ({
2380
2380
  label: `Page ${p}`,
2381
2381
  value: `${p}`,
2382
2382
  })), value: `${currentPage}` }),
2383
- React.createElement(Button, { disabled: is_last_page, icon: mdiChevronRight, id: `${baseId}-next-button`, onClick: handleNextClick, small: true })));
2384
- };
2385
-
2386
- const Wrapper$2 = styled.label `
2387
- border-radius: 4px;
2388
- padding: 4px 0px 4px 6px;
2389
- margin-left: -6px;
2390
- cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
2391
- display: flex;
2392
- align-items: center;
2393
- font-size: ${FontSizes.DEFAULT};
2394
- line-height: 1.6em;
2395
- box-sizing: border-box;
2396
- position: relative;
2397
-
2398
- &:focus-within {
2399
- background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
2400
- }
2383
+ React.createElement(Button, { "data-itemid": `${baseId}-next-button`, disabled: is_last_page, icon: mdiChevronRight, onClick: handleNextClick, small: true })));
2384
+ };
2385
+
2386
+ const Wrapper$2 = styled.label `
2387
+ border-radius: 4px;
2388
+ padding: 4px 0px 4px 6px;
2389
+ margin-left: -6px;
2390
+ cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
2391
+ display: flex;
2392
+ align-items: center;
2393
+ font-size: ${FontSizes.DEFAULT};
2394
+ line-height: 1.6em;
2395
+ box-sizing: border-box;
2396
+ position: relative;
2397
+
2398
+ &:focus-within {
2399
+ background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
2400
+ }
2401
2401
  `;
2402
2402
  Wrapper$2.defaultProps = { theme: EditableTheme };
2403
- const Input = styled.input `
2404
- font-size: 20px;
2405
- margin: 0px;
2406
- line-height: 1.6em;
2407
- box-sizing: border-box;
2408
- position: absolute;
2409
- opacity: 0;
2410
- cursor: pointer;
2411
- height: 0;
2412
- width: 0;
2413
- &:checked + span {
2414
- border-color: ${Colors.PRIMARY.Hex};
2415
- }
2416
- &:checked + span:after {
2417
- background-color: ${Colors.PRIMARY.Hex};
2418
- display: block;
2419
- }
2420
- &:disabled + span {
2421
- background-color: #d3d3d3;
2422
- border-color: #d3d3d3;
2423
- }
2424
- &:disabled + span:after {
2425
- background-color: #fff;
2426
- }
2427
- &:checked:disabled + span:after {
2428
- background-color: ${Colors.MEDIUM_GRAY.Hex};
2429
- }
2430
- `;
2431
- const Check = styled.span `
2432
- height: 17px;
2433
- width: 17px;
2434
- border-radius: 50%;
2435
- background-color: #fff;
2436
- border-width: 2px;
2437
- border-style: solid;
2438
- border-color: ${props => (props.$invalid ? `${Colors.RED.Hex}` : `${Colors.GRAY.Hex}`)};
2439
- box-sizing: border-box;
2440
- position: relative;
2441
- &:after {
2442
- content: '';
2443
- position: absolute;
2444
- top: 2px;
2445
- left: 2px;
2446
- width: 9px;
2447
- height: 9px;
2448
- border-radius: 50%;
2449
- box-sizing: border-box;
2450
- display: none;
2451
- }
2452
- `;
2453
- const Label = styled.span `
2454
- font-family: ${FontStyles.DEFAULT};
2455
- font-size: ${FontSizes.DEFAULT};
2456
- font-weight: 400;
2457
- color: ${Colors.BLACK.Hex};
2458
- line-height: 1.6em;
2459
- margin-left: 6px;
2403
+ const Input = styled.input `
2404
+ font-size: 20px;
2405
+ margin: 0px;
2406
+ line-height: 1.6em;
2407
+ box-sizing: border-box;
2408
+ position: absolute;
2409
+ opacity: 0;
2410
+ cursor: pointer;
2411
+ height: 0;
2412
+ width: 0;
2413
+ &:checked + span {
2414
+ border-color: ${Colors.PRIMARY.Hex};
2415
+ }
2416
+ &:checked + span:after {
2417
+ background-color: ${Colors.PRIMARY.Hex};
2418
+ display: block;
2419
+ }
2420
+ &:disabled + span {
2421
+ background-color: #d3d3d3;
2422
+ border-color: #d3d3d3;
2423
+ }
2424
+ &:disabled + span:after {
2425
+ background-color: #fff;
2426
+ }
2427
+ &:checked:disabled + span:after {
2428
+ background-color: ${Colors.MEDIUM_GRAY.Hex};
2429
+ }
2430
+ `;
2431
+ const Check = styled.span `
2432
+ height: 17px;
2433
+ width: 17px;
2434
+ border-radius: 50%;
2435
+ background-color: #fff;
2436
+ border-width: 2px;
2437
+ border-style: solid;
2438
+ border-color: ${props => (props.$invalid ? `${Colors.RED.Hex}` : `${Colors.GRAY.Hex}`)};
2439
+ box-sizing: border-box;
2440
+ position: relative;
2441
+ &:after {
2442
+ content: '';
2443
+ position: absolute;
2444
+ top: 2px;
2445
+ left: 2px;
2446
+ width: 9px;
2447
+ height: 9px;
2448
+ border-radius: 50%;
2449
+ box-sizing: border-box;
2450
+ display: none;
2451
+ }
2452
+ `;
2453
+ const Label = styled.span `
2454
+ font-family: ${FontStyles.DEFAULT};
2455
+ font-size: ${FontSizes.DEFAULT};
2456
+ font-weight: 400;
2457
+ color: ${Colors.BLACK.Hex};
2458
+ line-height: 1.6em;
2459
+ margin-left: 6px;
2460
2460
  `;
2461
2461
  const Radio = (_a) => {
2462
- var { children, disabled, checked, onChange, value, invalid, tooltip, tabIndex, id } = _a, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange", "value", "invalid", "tooltip", "tabIndex", "id"]);
2463
- const baseId = id || 'radio';
2464
- return (React.createElement(Wrapper$2, Object.assign({}, accessibleProps, { id: `${baseId}-wrapper` }),
2465
- React.createElement(Input, { checked: checked, disabled: disabled, id: `${baseId}-input`, name: accessibleProps.name, onChange: disabled ? undefined : onChange, tabIndex: disabled ? -1 : tabIndex, type: 'radio', value: value }),
2466
- React.createElement(Check, { "$invalid": invalid, id: `${baseId}-check` }),
2467
- React.createElement(Label, { id: `${baseId}-label` },
2462
+ var { children, disabled, checked, onChange, value, invalid, tooltip, tabIndex, dataItemid } = _a, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange", "value", "invalid", "tooltip", "tabIndex", "dataItemid"]);
2463
+ const baseId = dataItemid || 'radio';
2464
+ return (React.createElement(Wrapper$2, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
2465
+ React.createElement(Input, { checked: checked, "data-itemid": `${baseId}-input`, disabled: disabled, name: accessibleProps.name, onChange: disabled ? undefined : onChange, tabIndex: disabled ? -1 : tabIndex, type: 'radio', value: value }),
2466
+ React.createElement(Check, { "$invalid": invalid, "data-itemid": `${baseId}-check` }),
2467
+ React.createElement(Label, { "data-itemid": `${baseId}-label` },
2468
2468
  children,
2469
2469
  tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)));
2470
- };
2471
-
2470
+ };
2471
+
2472
2472
  const RadioList = (_a) => {
2473
- var { disabled, onChange, options, value, id } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "value", "id"]);
2474
- const baseId = id || 'radio-list';
2473
+ var { disabled, onChange, options, value, dataItemid } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "value", "dataItemid"]);
2474
+ const baseId = dataItemid || 'radio-list';
2475
2475
  return (React.createElement(React.Fragment, null, options.map((option, index) => {
2476
2476
  const label = option.label || option.value;
2477
2477
  const optionId = `${baseId}-option-${index}`;
2478
- return (React.createElement(Radio, Object.assign({ checked: value === option.value, disabled: disabled, id: optionId, key: option.value, onChange: onChange, value: option.value }, accessibleProps), label));
2478
+ return (React.createElement(Radio, Object.assign({ checked: value === option.value, "data-itemid": optionId, disabled: disabled, key: option.value, onChange: onChange, value: option.value }, accessibleProps), label));
2479
2479
  })));
2480
- };
2481
-
2482
- const StyledTable = styled.table `
2483
- width: 100%;
2484
- margin-top: 1px;
2485
- table-layout: ${props => props.$tableLayout || 'auto'};
2486
- border-collapse: collapse;
2487
- text-indent: 0px;
2488
- border-spacing: 0px;
2489
- border-color: none;
2490
- box-sizing: border-box;
2491
- `;
2492
- const Header = styled.th `
2493
- padding: 12px !important;
2494
- text-align: left;
2495
- font-weight: 500;
2496
- border-bottom: 1px solid #e5e5e5;
2497
- border-top: 1px solid #e5e5e5;
2498
- text-transform: uppercase;
2499
- font-size: 12px;
2500
- font-family: ${FontStyles.DEFAULT};
2501
- letter-spacing: 1px;
2502
- white-space: nowrap;
2503
- line-height: 1;
2504
- position: relative;
2505
- box-sizing: border-box;
2506
- width: ${props => props.$width || 'auto'};
2507
- cursor: ${props => (props.$isSortable ? 'pointer' : 'default')};
2508
- color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
2480
+ };
2481
+
2482
+ const StyledTable = styled.table `
2483
+ width: 100%;
2484
+ margin-top: 1px;
2485
+ table-layout: ${props => props.$tableLayout || 'auto'};
2486
+ border-collapse: collapse;
2487
+ text-indent: 0px;
2488
+ border-spacing: 0px;
2489
+ border-color: none;
2490
+ box-sizing: border-box;
2491
+ `;
2492
+ const Header = styled.th `
2493
+ padding: 12px !important;
2494
+ text-align: left;
2495
+ font-weight: 500;
2496
+ border-bottom: 1px solid #e5e5e5;
2497
+ border-top: 1px solid #e5e5e5;
2498
+ text-transform: uppercase;
2499
+ font-size: 12px;
2500
+ font-family: ${FontStyles.DEFAULT};
2501
+ letter-spacing: 1px;
2502
+ white-space: nowrap;
2503
+ line-height: 1;
2504
+ position: relative;
2505
+ box-sizing: border-box;
2506
+ width: ${props => props.$width || 'auto'};
2507
+ cursor: ${props => (props.$isSortable ? 'pointer' : 'default')};
2508
+ color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
2509
2509
  `;
2510
2510
  Header.defaultProps = { theme: EditableTheme };
2511
- const Row = styled.tr `
2512
- cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
2513
- transition: all 0.2s;
2514
- background-color: ${props => props.$bgColor};
2515
- box-sizing: border-box;
2516
- &:hover {
2517
- background-color: ${props => props.$isClickable ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.1)` : props.$bgColor};
2518
- }
2511
+ const Row = styled.tr `
2512
+ cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
2513
+ transition: all 0.2s;
2514
+ background-color: ${props => props.$bgColor};
2515
+ box-sizing: border-box;
2516
+ &:hover {
2517
+ background-color: ${props => props.$isClickable ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.1)` : props.$bgColor};
2518
+ }
2519
2519
  `;
2520
2520
  Row.defaultProps = { theme: EditableTheme };
2521
- const Column = styled.td `
2522
- padding: 16px 12px !important;
2523
- font-size: ${FontSizes.DEFAULT} !important;
2524
- font-weight: 400 !important;
2525
- font-family: ${FontStyles.DEFAULT};
2526
- border: none !important;
2527
- word-break: break-word;
2528
- line-height: 1.4em;
2529
- box-sizing: border-box;
2530
- text-align: ${props => props.$align || 'left'};
2531
- width: ${props => props.$width || 'auto'};
2532
- `;
2533
- const IconWrapper = styled.span `
2534
- position: absolute;
2535
- top: 50%;
2536
- transform: translateY(-50%);
2537
- margin-left: 2px;
2538
- `;
2539
- const StyledIcon$1 = styled(Icon) `
2540
- > path {
2541
- fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
2542
- }
2521
+ const Column = styled.td `
2522
+ padding: 16px 12px !important;
2523
+ font-size: ${FontSizes.DEFAULT} !important;
2524
+ font-weight: 400 !important;
2525
+ font-family: ${FontStyles.DEFAULT};
2526
+ border: none !important;
2527
+ word-break: break-word;
2528
+ line-height: 1.4em;
2529
+ box-sizing: border-box;
2530
+ text-align: ${props => props.$align || 'left'};
2531
+ width: ${props => props.$width || 'auto'};
2532
+ `;
2533
+ const IconWrapper = styled.span `
2534
+ position: absolute;
2535
+ top: 50%;
2536
+ transform: translateY(-50%);
2537
+ margin-left: 2px;
2538
+ `;
2539
+ const StyledIcon$1 = styled(Icon) `
2540
+ > path {
2541
+ fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
2542
+ }
2543
2543
  `;
2544
2544
  StyledIcon$1.defaultProps = { theme: EditableTheme };
2545
2545
  const Table = (_a) => {
2546
- var { columns = [], data = [], sortBy, sortDirection, hideHeaders, onRowClick, onSortChange, tableLayout, id } = _a, accessibleProps = __rest(_a, ["columns", "data", "sortBy", "sortDirection", "hideHeaders", "onRowClick", "onSortChange", "tableLayout", "id"]);
2547
- const baseId = id || 'table';
2548
- return (React.createElement(StyledTable, Object.assign({ "$tableLayout": tableLayout }, accessibleProps, { id: `${baseId}-styled-table` }),
2549
- hideHeaders ? null : (React.createElement("thead", { id: `${baseId}-thead` },
2550
- React.createElement("tr", { id: `${baseId}-header-row` }, columns.map((column, i) => {
2546
+ var { columns = [], data = [], sortBy, sortDirection, hideHeaders, onRowClick, onSortChange, tableLayout, dataItemid } = _a, accessibleProps = __rest(_a, ["columns", "data", "sortBy", "sortDirection", "hideHeaders", "onRowClick", "onSortChange", "tableLayout", "dataItemid"]);
2547
+ const baseId = dataItemid || 'table';
2548
+ return (React.createElement(StyledTable, Object.assign({ "$tableLayout": tableLayout }, accessibleProps, { "data-itemid": `${baseId}-styled-table` }),
2549
+ hideHeaders ? null : (React.createElement("thead", { "data-itemid": `${baseId}-thead` },
2550
+ React.createElement("tr", { "data-itemid": `${baseId}-header-row` }, columns.map((column, i) => {
2551
2551
  const columnId = `${baseId}-column-${i}`;
2552
- return (React.createElement(Header, { "$isSortable": column.isSortable, "$width": column.width, id: `${columnId}-header`, key: i, onClick: onSortChange === null || onSortChange === void 0 ? void 0 : onSortChange.bind(null, column.id) },
2552
+ return (React.createElement(Header, { "$isSortable": column.isSortable, "$width": column.width, "data-itemid": `${columnId}-header`, key: i, onClick: onSortChange === null || onSortChange === void 0 ? void 0 : onSortChange.bind(null, column.id) },
2553
2553
  column.label,
2554
- column.isSortable && sortBy === column.id ? (React.createElement(IconWrapper, { id: `${columnId}-icon-wrapper` },
2555
- React.createElement(StyledIcon$1, { id: `${columnId}-icon`, path: sortDirection === 'asc' ? mdiChevronUp : mdiChevronDown, size: '20px' }))) : null));
2554
+ column.isSortable && sortBy === column.id ? (React.createElement(IconWrapper, { "data-itemid": `${columnId}-icon-wrapper` },
2555
+ React.createElement(StyledIcon$1, { "data-itemid": `${columnId}-icon`, path: sortDirection === 'asc' ? mdiChevronUp : mdiChevronDown, size: '20px' }))) : null));
2556
2556
  })))),
2557
- data.length ? (React.createElement("tbody", { id: `${baseId}-tbody` }, data.map((row, i) => {
2557
+ data.length ? (React.createElement("tbody", { "data-itemid": `${baseId}-tbody` }, data.map((row, i) => {
2558
2558
  const rowId = `${baseId}-row-${i}`;
2559
- return (React.createElement(Row, { "$bgColor": i % 2 === 0 ? '#ffffff' : '#f9f9f9', "$isClickable": !!onRowClick, id: `${rowId}-row`, key: i, onClick: onRowClick ? onRowClick.bind(null, row) : undefined }, columns.map((column, j) => {
2559
+ return (React.createElement(Row, { "$bgColor": i % 2 === 0 ? '#ffffff' : '#f9f9f9', "$isClickable": !!onRowClick, "data-itemid": `${rowId}-row`, key: i, onClick: onRowClick ? onRowClick.bind(null, row) : undefined }, columns.map((column, j) => {
2560
2560
  const columnId = `${baseId}-column-${j}`;
2561
- return (React.createElement(Column, { "$align": columns[j].align, "$width": columns[j].width, id: `${columnId}-column`, key: j }, column.render ? column.render(row) : row[column.id] || 'N/A'));
2561
+ return (React.createElement(Column, { "$align": columns[j].align, "$width": columns[j].width, "data-itemid": `${columnId}-column`, key: j }, column.render ? column.render(row) : row[column.id] || 'N/A'));
2562
2562
  })));
2563
2563
  }))) : null));
2564
- };
2565
-
2566
- const Wrapper$1 = styled.div `
2567
- display: flex;
2568
- box-sizing: border-box;
2569
- align-items: flex-end;
2570
- border-top: 1px solid #e5e5e5;
2571
- border-bottom: 1px solid #e5e5e5;
2572
- flex-shrink: 0;
2573
- align-self: stretch;
2574
- padding: 0;
2575
- margin: 0;
2576
- `;
2577
- const Tab = styled.div `
2578
- display: flex;
2579
- align-items: center;
2580
- gap: 6px;
2581
- font-size: ${FontSizes.DEFAULT};
2582
- font-family: ${FontStyles.DEFAULT};
2583
- font-weight: ${props => (props.$isActive ? 500 : 400)};
2584
- color: ${props => (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)};
2585
- line-height: 1em;
2586
- padding: 16px 30px 12px;
2587
- margin: 0 0 -1px 0;
2588
- border-bottom-width: 4px;
2589
- border-bottom-style: solid;
2590
- border-bottom-color: ${props => props.$isActive ? props.theme.PRIMARY_COLOR.Hex : 'transparent'};
2591
- cursor: ${props => (props.$isActive ? 'default' : 'pointer')};
2592
- box-sizing: border-box;
2593
- &:hover {
2594
- color: ${props => (props.$isActive ? Colors.BLACK.Hex : props.theme.PRIMARY_COLOR.Hex)};
2595
- font-weight: 500;
2596
- }
2564
+ };
2565
+
2566
+ const Wrapper$1 = styled.div `
2567
+ display: flex;
2568
+ box-sizing: border-box;
2569
+ align-items: flex-end;
2570
+ border-top: 1px solid #e5e5e5;
2571
+ border-bottom: 1px solid #e5e5e5;
2572
+ flex-shrink: 0;
2573
+ align-self: stretch;
2574
+ padding: 0;
2575
+ margin: 0;
2576
+ `;
2577
+ const Tab = styled.div `
2578
+ display: flex;
2579
+ align-items: center;
2580
+ gap: 6px;
2581
+ font-size: ${FontSizes.DEFAULT};
2582
+ font-family: ${FontStyles.DEFAULT};
2583
+ font-weight: ${props => (props.$isActive ? 500 : 400)};
2584
+ color: ${props => (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)};
2585
+ line-height: 1em;
2586
+ padding: 16px 30px 12px;
2587
+ margin: 0 0 -1px 0;
2588
+ border-bottom-width: 4px;
2589
+ border-bottom-style: solid;
2590
+ border-bottom-color: ${props => props.$isActive ? props.theme.PRIMARY_COLOR.Hex : 'transparent'};
2591
+ cursor: ${props => (props.$isActive ? 'default' : 'pointer')};
2592
+ box-sizing: border-box;
2593
+ &:hover {
2594
+ color: ${props => (props.$isActive ? Colors.BLACK.Hex : props.theme.PRIMARY_COLOR.Hex)};
2595
+ font-weight: 500;
2596
+ }
2597
2597
  `;
2598
2598
  Tab.defaultProps = { theme: EditableTheme };
2599
- const Badge = styled.div `
2600
- display: flex;
2601
- width: 18px;
2602
- height: 18px;
2603
- justify-content: center;
2604
- align-items: center;
2605
- border-radius: 9px;
2606
- background: ${props => (props.$isError ? Colors.RED.Hex : props.theme.PRIMARY_COLOR.Hex)};
2607
- color: #fff;
2608
- font-family: ${FontStyles.DEFAULT};
2609
- font-size: 12px;
2610
- font-weight: 500;
2611
- line-height: 1;
2612
- letter-spacing: 1px;
2599
+ const Badge = styled.div `
2600
+ display: flex;
2601
+ width: 18px;
2602
+ height: 18px;
2603
+ justify-content: center;
2604
+ align-items: center;
2605
+ border-radius: 9px;
2606
+ background: ${props => (props.$isError ? Colors.RED.Hex : props.theme.PRIMARY_COLOR.Hex)};
2607
+ color: #fff;
2608
+ font-family: ${FontStyles.DEFAULT};
2609
+ font-size: 12px;
2610
+ font-weight: 500;
2611
+ line-height: 1;
2612
+ letter-spacing: 1px;
2613
2613
  `;
2614
2614
  Badge.defaultProps = { theme: EditableTheme };
2615
2615
  const Tabs = (_a) => {
2616
- var { tabs, id } = _a, accessibleProps = __rest(_a, ["tabs", "id"]);
2617
- const baseId = id || 'tabs';
2618
- return (React.createElement(Wrapper$1, Object.assign({}, accessibleProps, { id: `${baseId}-wrapper` }), tabs.map((_a, i) => {
2616
+ var { tabs, dataItemid } = _a, accessibleProps = __rest(_a, ["tabs", "dataItemid"]);
2617
+ const baseId = dataItemid || 'tabs';
2618
+ return (React.createElement(Wrapper$1, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-wrapper` }), tabs.map((_a, i) => {
2619
2619
  var { isActive, label, badgeCount, errorBadge, onClick } = _a, accessibleProps = __rest(_a, ["isActive", "label", "badgeCount", "errorBadge", "onClick"]);
2620
2620
  const tabId = `${baseId}-tab-${i}`;
2621
- return (React.createElement(Tab, Object.assign({ "$isActive": isActive || false, key: i, onClick: isActive ? undefined : onClick }, accessibleProps, { id: `${tabId}-tab` }),
2622
- badgeCount ? (React.createElement(Badge, { "$isError": errorBadge || false, id: `${tabId}-badge` }, badgeCount)) : null,
2621
+ return (React.createElement(Tab, Object.assign({ "$isActive": isActive || false, key: i, onClick: isActive ? undefined : onClick }, accessibleProps, { "data-itemid": `${tabId}-tab` }),
2622
+ badgeCount ? (React.createElement(Badge, { "$isError": errorBadge || false, "data-itemid": `${tabId}-badge` }, badgeCount)) : null,
2623
2623
  label));
2624
2624
  })));
2625
2625
  };
2626
- Tabs.defaultProps = {};
2627
-
2628
- const Track = styled.div `
2629
- height: 24px;
2630
- border-radius: 12px;
2631
- background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
2632
- display: flex;
2633
- align-items: center;
2634
- cursor: pointer;
2635
- width: 40px;
2636
- padding: 2px;
2637
- box-sizing: border-box;
2638
- `;
2639
- const Handle = styled.div `
2640
- width: 20px;
2641
- height: 20px;
2642
- border-radius: 10px;
2643
- background: #ffffff;
2644
- margin-left: ${props => (props.$on ? 'auto' : '0px')};
2645
- display: flex;
2646
- align-items: center;
2647
- justify-content: center;
2648
- box-sizing: border-box;
2626
+ Tabs.defaultProps = {};
2627
+
2628
+ const Track = styled.div `
2629
+ height: 24px;
2630
+ border-radius: 12px;
2631
+ background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
2632
+ display: flex;
2633
+ align-items: center;
2634
+ cursor: pointer;
2635
+ width: 40px;
2636
+ padding: 2px;
2637
+ box-sizing: border-box;
2638
+ `;
2639
+ const Handle = styled.div `
2640
+ width: 20px;
2641
+ height: 20px;
2642
+ border-radius: 10px;
2643
+ background: #ffffff;
2644
+ margin-left: ${props => (props.$on ? 'auto' : '0px')};
2645
+ display: flex;
2646
+ align-items: center;
2647
+ justify-content: center;
2648
+ box-sizing: border-box;
2649
2649
  `;
2650
2650
  const Toggle = (_a) => {
2651
- var { onClick, on, id } = _a, accessibleProps = __rest(_a, ["onClick", "on", "id"]);
2652
- const baseId = id || 'toggle';
2653
- return (React.createElement(Track, Object.assign({ "$on": on, onClick: onClick }, accessibleProps, { id: `${baseId}-track` }),
2654
- React.createElement("input", { checked: on, id: `${baseId}-input`, name: accessibleProps.name, type: 'hidden' }),
2655
- React.createElement(Handle, { "$on": on, id: `${baseId}-handle` },
2656
- React.createElement(Icon, { color: on ? Colors.GREEN.Hex : Colors.BLACK.Hex, id: `${baseId}-icon`, path: on ? mdiCheck : mdiClose, size: '16px' }))));
2651
+ var { onClick, on, dataItemid } = _a, accessibleProps = __rest(_a, ["onClick", "on", "dataItemid"]);
2652
+ const baseId = dataItemid || 'toggle';
2653
+ return (React.createElement(Track, Object.assign({ "$on": on, onClick: onClick }, accessibleProps, { "data-itemid": `${baseId}-track` }),
2654
+ React.createElement("input", { checked: on, "data-itemid": `${baseId}-input`, name: accessibleProps.name, type: 'hidden' }),
2655
+ React.createElement(Handle, { "$on": on, "data-itemid": `${baseId}-handle` },
2656
+ React.createElement(Icon, { color: on ? Colors.GREEN.Hex : Colors.BLACK.Hex, "data-itemid": `${baseId}-icon`, path: on ? mdiCheck : mdiClose, size: '16px' }))));
2657
2657
  };
2658
- Toggle.defaultProps = {};
2659
-
2660
- const Container = styled.div `
2661
- width: 100%;
2662
- padding: 40px auto;
2663
- gap: 20px;
2664
- display: flex;
2665
- flex-direction: column;
2666
- justify-items: center;
2667
- align-items: center;
2668
- `;
2669
- const Wrapper = styled.div `
2670
- gap: 10px;
2671
- display: flex;
2672
- flex-direction: column;
2673
- justify-items: center;
2674
- align-items: center;
2675
- `;
2676
- const StyledIcon = styled.div `
2677
- display: flex;
2678
- align-items: center;
2679
- justify-content: center;
2680
- width: 80px;
2681
- height: 80px;
2682
- border-radius: 40px;
2683
- background: #f5f5f5;
2658
+ Toggle.defaultProps = {};
2659
+
2660
+ const Container = styled.div `
2661
+ width: 100%;
2662
+ padding: 40px auto;
2663
+ gap: 20px;
2664
+ display: flex;
2665
+ flex-direction: column;
2666
+ justify-items: center;
2667
+ align-items: center;
2668
+ `;
2669
+ const Wrapper = styled.div `
2670
+ gap: 10px;
2671
+ display: flex;
2672
+ flex-direction: column;
2673
+ justify-items: center;
2674
+ align-items: center;
2675
+ `;
2676
+ const StyledIcon = styled.div `
2677
+ display: flex;
2678
+ align-items: center;
2679
+ justify-content: center;
2680
+ width: 80px;
2681
+ height: 80px;
2682
+ border-radius: 40px;
2683
+ background: #f5f5f5;
2684
2684
  `;
2685
2685
  const ZeroState = (_a) => {
2686
- var { icon, title, description, action, id } = _a, accessibleProps = __rest(_a, ["icon", "title", "description", "action", "id"]);
2687
- const baseId = id || 'zero-state';
2688
- return (React.createElement(Container, Object.assign({}, accessibleProps, { id: `${baseId}-container` }),
2689
- React.createElement(StyledIcon, { id: `${baseId}-icon-wrapper` },
2690
- React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, id: `${baseId}-icon`, path: icon, size: '40px' })),
2691
- React.createElement(Wrapper, { id: `${baseId}-wrapper` },
2692
- React.createElement(Heading, { children: title, id: `${baseId}-heading`, type: 'tertiary' }),
2693
- description && (React.createElement(Copy, { align: 'center', children: description, color: 'GRAY', id: `${baseId}-description`, type: 'default' }))),
2694
- action && (React.createElement(Button, { children: action.children, disabled: action.disabled, format: action.format, icon: action.icon, id: `${baseId}-button`, onClick: action.onClick }))));
2695
- };
2696
-
2697
- 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 };
2698
- //# sourceMappingURL=index.js.map
2686
+ var { icon, title, description, action, dataItemid } = _a, accessibleProps = __rest(_a, ["icon", "title", "description", "action", "dataItemid"]);
2687
+ const baseId = dataItemid || 'zero-state';
2688
+ return (React.createElement(Container, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-container` }),
2689
+ React.createElement(StyledIcon, { "data-itemid": `${baseId}-icon-wrapper` },
2690
+ React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, "data-itemid": `${baseId}-icon`, path: icon, size: '40px' })),
2691
+ React.createElement(Wrapper, { "data-itemid": `${baseId}-wrapper` },
2692
+ React.createElement(Heading, { children: title, "data-itemid": `${baseId}-heading`, type: 'tertiary' }),
2693
+ description && (React.createElement(Copy, { align: 'center', children: description, color: 'GRAY', "data-itemid": `${baseId}-description`, type: 'default' }))),
2694
+ action && (React.createElement(Button, { children: action.children, "data-itemid": `${baseId}-button`, disabled: action.disabled, format: action.format, icon: action.icon, onClick: action.onClick }))));
2695
+ };
2696
+
2697
+ 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 };
2698
+ //# sourceMappingURL=index.js.map