@hexure/ui 1.12.3 → 1.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +169 -157
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/esm/index.js +121 -109
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var styled = require('styled-components');
|
|
5
|
-
var Icon = require('@mdi/react');
|
|
6
|
-
var js = require('@mdi/js');
|
|
7
|
-
var dayjs = require('dayjs');
|
|
8
|
-
var Numeral = require('numeral');
|
|
9
|
-
var Moment = require('moment');
|
|
10
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var styled = require('styled-components');
|
|
5
|
+
var Icon = require('@mdi/react');
|
|
6
|
+
var js = require('@mdi/js');
|
|
7
|
+
var dayjs = require('dayjs');
|
|
8
|
+
var Numeral = require('numeral');
|
|
9
|
+
var Moment = require('moment');
|
|
10
|
+
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
13
13
|
|
|
@@ -21,18 +21,22 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
21
21
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
22
22
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23
23
|
PERFORMANCE OF THIS SOFTWARE.
|
|
24
|
-
***************************************************************************** */
|
|
25
|
-
/* global Reflect, Promise */
|
|
26
|
-
|
|
27
|
-
function __rest(s, e) {
|
|
28
|
-
var t = {};
|
|
29
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
30
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
32
|
-
}
|
|
33
|
-
return t;
|
|
34
|
-
}
|
|
35
|
-
|
|
24
|
+
***************************************************************************** */
|
|
25
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
26
|
+
|
|
27
|
+
function __rest(s, e) {
|
|
28
|
+
var t = {};
|
|
29
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
30
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
32
|
+
}
|
|
33
|
+
return t;
|
|
34
|
+
}
|
|
35
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
36
|
+
var e = new Error(message);
|
|
37
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
38
|
+
};
|
|
39
|
+
|
|
36
40
|
const Colors = {
|
|
37
41
|
PRIMARY: {
|
|
38
42
|
Hex: '#0193D7',
|
|
@@ -81,8 +85,8 @@ const FontSizes = {
|
|
|
81
85
|
};
|
|
82
86
|
const EditableTheme = {
|
|
83
87
|
PRIMARY_COLOR: Colors.PRIMARY,
|
|
84
|
-
};
|
|
85
|
-
|
|
88
|
+
};
|
|
89
|
+
|
|
86
90
|
const Header$3 = styled.div `
|
|
87
91
|
display: flex;
|
|
88
92
|
align-items: center;
|
|
@@ -109,8 +113,8 @@ const Accordion = (_a) => {
|
|
|
109
113
|
React.createElement(Title$2, null, title),
|
|
110
114
|
React.createElement(Icon, { color: Colors.BLACK.Hex, path: open ? js.mdiChevronUp : js.mdiChevronDown, size: '24px' })),
|
|
111
115
|
open ? children : null));
|
|
112
|
-
};
|
|
113
|
-
|
|
116
|
+
};
|
|
117
|
+
|
|
114
118
|
const StyledButton = styled.button `
|
|
115
119
|
height: ${props => (props.$small ? '30px' : '40px')};
|
|
116
120
|
line-height: 1em;
|
|
@@ -225,8 +229,8 @@ const Button = (_a) => {
|
|
|
225
229
|
icon && !badge ? (React.createElement(StyledIcon$6, { "$hasChildren": !!has_children },
|
|
226
230
|
React.createElement(Icon, { color: format ? format_styles.content_color : '#fff', path: loading ? js.mdiLoading : icon, size: small ? '20px' : '24px', spin: loading }))) : null,
|
|
227
231
|
badge && !icon ? (React.createElement(Badge$1, { "$bg_color": format_styles.badge_bg_color, "$content_color": format_styles.badge_content_color, "$small": small }, badge)) : null));
|
|
228
|
-
};
|
|
229
|
-
|
|
232
|
+
};
|
|
233
|
+
|
|
230
234
|
const StyledComponent = styled.p `
|
|
231
235
|
color: ${props => Colors[props.$color || 'BLACK'].Hex};
|
|
232
236
|
font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
@@ -246,8 +250,8 @@ const Copy = ({ children, align = '', margin = '', padding = '', type = 'default
|
|
|
246
250
|
};
|
|
247
251
|
Copy.defaultProps = {
|
|
248
252
|
type: 'default',
|
|
249
|
-
};
|
|
250
|
-
|
|
253
|
+
};
|
|
254
|
+
|
|
251
255
|
const H1 = styled.h1 `
|
|
252
256
|
color: ${Colors.BLACK.Hex};
|
|
253
257
|
font-size: 30px;
|
|
@@ -295,8 +299,8 @@ const Heading = (_a) => {
|
|
|
295
299
|
Heading.defaultProps = {
|
|
296
300
|
bold: false,
|
|
297
301
|
type: 'primary',
|
|
298
|
-
};
|
|
299
|
-
|
|
302
|
+
};
|
|
303
|
+
|
|
300
304
|
const Wrapper$i = styled.div `
|
|
301
305
|
position: fixed;
|
|
302
306
|
top: 0;
|
|
@@ -341,8 +345,8 @@ const ActionDialog = (_a) => {
|
|
|
341
345
|
tertiaryButton ? React.createElement(Button, Object.assign({}, tertiaryButton, { format: 'secondary' })) : null,
|
|
342
346
|
secondaryButton ? React.createElement(Button, Object.assign({}, secondaryButton, { format: 'secondary' })) : null,
|
|
343
347
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format === 'red' ? 'red' : 'primary' }))) : null)) : null)));
|
|
344
|
-
};
|
|
345
|
-
|
|
348
|
+
};
|
|
349
|
+
|
|
346
350
|
const Wrapper$h = styled.div `
|
|
347
351
|
border: 1px solid #f1f1f1;
|
|
348
352
|
border-radius: 4px;
|
|
@@ -393,8 +397,8 @@ const Alert = (_a) => {
|
|
|
393
397
|
title && !small ? (React.createElement(Heading, { bold: true, margin: '2px 0 0 0', type: 'tertiary' }, title)) : null,
|
|
394
398
|
description ? (React.createElement(Copy, { margin: small ? '' : '6px 0 0 0 !important' }, description)) : null,
|
|
395
399
|
action && !small ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
|
|
396
|
-
};
|
|
397
|
-
|
|
400
|
+
};
|
|
401
|
+
|
|
398
402
|
const colorMapping = {
|
|
399
403
|
black: {
|
|
400
404
|
fill_1: '#000000',
|
|
@@ -435,8 +439,8 @@ const Logo = (_a) => {
|
|
|
435
439
|
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 }),
|
|
436
440
|
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 })));
|
|
437
441
|
}
|
|
438
|
-
};
|
|
439
|
-
|
|
442
|
+
};
|
|
443
|
+
|
|
440
444
|
const Container$3 = styled.header `
|
|
441
445
|
width: 100%;
|
|
442
446
|
display: flex;
|
|
@@ -464,8 +468,8 @@ const AppHeader = ({ logoUrl, buttons = [] }) => {
|
|
|
464
468
|
return (React.createElement(Container$3, null,
|
|
465
469
|
React.createElement(LogoWrapper, null, logoUrl ? React.createElement(Image, { src: logoUrl }) : React.createElement(Logo, { height: '30px' })),
|
|
466
470
|
React.createElement(Buttons, null, buttons.map((b, i) => (React.createElement(Button, Object.assign({ key: i }, b)))))));
|
|
467
|
-
};
|
|
468
|
-
|
|
471
|
+
};
|
|
472
|
+
|
|
469
473
|
const Wrapper$g = styled.div `
|
|
470
474
|
display: inline-block;
|
|
471
475
|
border-radius: 4px;
|
|
@@ -498,8 +502,8 @@ const Tag = (_a) => {
|
|
|
498
502
|
React.createElement(Label$4, { "$color": color }, children),
|
|
499
503
|
removable ? (React.createElement(Remove$1, null,
|
|
500
504
|
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: js.mdiClose, size: '15px' }))) : null)));
|
|
501
|
-
};
|
|
502
|
-
|
|
505
|
+
};
|
|
506
|
+
|
|
503
507
|
const SidebarContainer = styled.div `
|
|
504
508
|
border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
505
509
|
display: flex;
|
|
@@ -606,8 +610,8 @@ const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px' }) => {
|
|
|
606
610
|
e.preventDefault();
|
|
607
611
|
toggleCollapse(!collapsed);
|
|
608
612
|
}, small: true }))));
|
|
609
|
-
};
|
|
610
|
-
|
|
613
|
+
};
|
|
614
|
+
|
|
611
615
|
const Wrapper$f = styled.div `
|
|
612
616
|
border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
613
617
|
border-radius: 8px;
|
|
@@ -656,7 +660,7 @@ const Actions$1 = styled.div `
|
|
|
656
660
|
align-items: center;
|
|
657
661
|
column-gap: 10px;
|
|
658
662
|
`;
|
|
659
|
-
const Error = styled.div `
|
|
663
|
+
const Error$1 = styled.div `
|
|
660
664
|
box-sizing: border-box;
|
|
661
665
|
display: flex;
|
|
662
666
|
align-items: center;
|
|
@@ -686,11 +690,11 @@ const BulkActionBar = (_a) => {
|
|
|
686
690
|
" Selected"),
|
|
687
691
|
onClear ? React.createElement(Clear, { onClick: onClear }, "Clear") : null),
|
|
688
692
|
React.createElement(Actions$1, null, actions.map((action, i) => (React.createElement(Button, Object.assign({}, action, { key: i, small: true })))))),
|
|
689
|
-
errorMsg ? (React.createElement(Error, null,
|
|
693
|
+
errorMsg ? (React.createElement(Error$1, null,
|
|
690
694
|
React.createElement(Icon, { color: Colors.RED.Hex, path: js.mdiInformationOutline, size: '20px' }),
|
|
691
695
|
React.createElement(ErrorMsg, null, errorMsg))) : null));
|
|
692
|
-
};
|
|
693
|
-
|
|
696
|
+
};
|
|
697
|
+
|
|
694
698
|
const Wrapper$e = styled.div `
|
|
695
699
|
background: #fff;
|
|
696
700
|
border-radius: 8px;
|
|
@@ -737,8 +741,8 @@ const MoreMenu = (_a) => {
|
|
|
737
741
|
item.icon ? (React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
|
|
738
742
|
React.createElement(Title$1, null, item.label)));
|
|
739
743
|
})));
|
|
740
|
-
};
|
|
741
|
-
|
|
744
|
+
};
|
|
745
|
+
|
|
742
746
|
const Wrapper$d = styled.div `
|
|
743
747
|
position: relative;
|
|
744
748
|
display: inline-block;
|
|
@@ -756,8 +760,8 @@ const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = '
|
|
|
756
760
|
return (React.createElement(Wrapper$d, { onMouseEnter: disabled ? undefined : toggleMenu.bind(null, true), onMouseLeave: disabled ? undefined : toggleMenu.bind(null, false) },
|
|
757
761
|
React.createElement(Button, { disabled: disabled, format: format, icon: js.mdiDotsHorizontal, small: small }, label),
|
|
758
762
|
show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
|
|
759
|
-
};
|
|
760
|
-
|
|
763
|
+
};
|
|
764
|
+
|
|
761
765
|
const Wrapper$c = styled.div `
|
|
762
766
|
display: inline-block;
|
|
763
767
|
position: relative;
|
|
@@ -806,8 +810,8 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }
|
|
|
806
810
|
return (React.createElement(Wrapper$c, { onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
|
|
807
811
|
trigger || React.createElement(StyledIcon$4, { path: js.mdiInformationOutline }),
|
|
808
812
|
show_content ? (React.createElement(Content$2, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
|
|
809
|
-
};
|
|
810
|
-
|
|
813
|
+
};
|
|
814
|
+
|
|
811
815
|
const Wrapper$b = styled.label `
|
|
812
816
|
border-radius: 4px;
|
|
813
817
|
padding: 4px 0px 4px 6px;
|
|
@@ -861,7 +865,7 @@ const Check$1 = styled.span `
|
|
|
861
865
|
box-sizing: border-box;
|
|
862
866
|
position: relative;
|
|
863
867
|
&:after {
|
|
864
|
-
content:
|
|
868
|
+
content: '';
|
|
865
869
|
position: absolute;
|
|
866
870
|
left: 3px;
|
|
867
871
|
top: 0px;
|
|
@@ -893,8 +897,8 @@ const Checkbox = (_a) => {
|
|
|
893
897
|
children ? (React.createElement(Label$3, null,
|
|
894
898
|
children,
|
|
895
899
|
tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)) : null));
|
|
896
|
-
};
|
|
897
|
-
|
|
900
|
+
};
|
|
901
|
+
|
|
898
902
|
const SelectAll = styled.div `
|
|
899
903
|
padding: 8px 12px;
|
|
900
904
|
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
@@ -939,8 +943,8 @@ const Checklist = (_a) => {
|
|
|
939
943
|
const checked = selected.includes(option.value);
|
|
940
944
|
return (React.createElement(Checkbox, Object.assign({ key: i }, accessibleProps, { checked: checked, disabled: disabled, onChange: handleChange.bind(null, option) }), label));
|
|
941
945
|
}))));
|
|
942
|
-
};
|
|
943
|
-
|
|
946
|
+
};
|
|
947
|
+
|
|
944
948
|
const Wrapper$a = styled.div `
|
|
945
949
|
border-radius: 4px;
|
|
946
950
|
height: 40px;
|
|
@@ -1003,8 +1007,8 @@ const Select = (_a) => {
|
|
|
1003
1007
|
return (React.createElement("option", { key: i, value: option.value }, option.label || option.value));
|
|
1004
1008
|
})),
|
|
1005
1009
|
React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, path: js.mdiChevronDown, size: '22px' })));
|
|
1006
|
-
};
|
|
1007
|
-
|
|
1010
|
+
};
|
|
1011
|
+
|
|
1008
1012
|
const DatePickerWrapper = styled.div `
|
|
1009
1013
|
display: flex;
|
|
1010
1014
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
@@ -1073,8 +1077,8 @@ const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate
|
|
|
1073
1077
|
React.createElement(Middle, null,
|
|
1074
1078
|
React.createElement(Select, { invalid: invalid, onChange: handleDayChange, options: dayOptions, readOnly: readOnly, style: { borderRadius: '0px' }, value: dDate.format('D') })),
|
|
1075
1079
|
React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: dDate.format('YYYY') }))));
|
|
1076
|
-
};
|
|
1077
|
-
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1078
1082
|
const Scrim$1 = styled.div `
|
|
1079
1083
|
position: ${({ $position }) => $position};
|
|
1080
1084
|
top: 0;
|
|
@@ -1160,9 +1164,9 @@ const Drawer = (_a) => {
|
|
|
1160
1164
|
secondaryButton ? React.createElement(Button, Object.assign({}, secondaryButton, { format: 'secondary' })) : null,
|
|
1161
1165
|
primaryButton ? React.createElement(Button, Object.assign({}, primaryButton, { format: 'primary' })) : null)) : null),
|
|
1162
1166
|
scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
|
|
1163
|
-
};
|
|
1164
|
-
|
|
1165
|
-
const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, (props.$customStyle))));
|
|
1166
1170
|
const LabelRow = styled.div `
|
|
1167
1171
|
display: flex;
|
|
1168
1172
|
align-items: center;
|
|
@@ -1211,8 +1215,8 @@ const Validation = styled.div `
|
|
|
1211
1215
|
box-sizing: border-box;
|
|
1212
1216
|
`;
|
|
1213
1217
|
const Field = (_a) => {
|
|
1214
|
-
var { action, children, validationText, label, description, required, htmlFor, style, tooltip } = _a, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style", "tooltip"]);
|
|
1215
|
-
return (React.createElement(Wrapper$9, Object.assign({
|
|
1218
|
+
var { action, children, validationText, label, description, required, htmlFor, style = {}, tooltip } = _a, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style", "tooltip"]);
|
|
1219
|
+
return (React.createElement(Wrapper$9, Object.assign({ "$customStyle": style }, accessibleProps),
|
|
1216
1220
|
React.createElement(LabelRow, null,
|
|
1217
1221
|
React.createElement(Label$2, { htmlFor: htmlFor },
|
|
1218
1222
|
label,
|
|
@@ -1222,8 +1226,8 @@ const Field = (_a) => {
|
|
|
1222
1226
|
description ? React.createElement(Description, null, description) : null,
|
|
1223
1227
|
children,
|
|
1224
1228
|
validationText ? React.createElement(Validation, null, validationText) : null));
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1227
1231
|
const Wrapper$8 = styled.fieldset `
|
|
1228
1232
|
margin-inline-start: 0px;
|
|
1229
1233
|
margin-inline-end: 0px;
|
|
@@ -1257,8 +1261,8 @@ const FieldGroup = ({ children, label }) => {
|
|
|
1257
1261
|
return (React.createElement(Wrapper$8, null,
|
|
1258
1262
|
React.createElement(Label$1, null, label),
|
|
1259
1263
|
React.createElement(Content$1, null, children)));
|
|
1260
|
-
};
|
|
1261
|
-
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1262
1266
|
const Dropzone = styled.div `
|
|
1263
1267
|
border-radius: 8px;
|
|
1264
1268
|
border-width: 1px;
|
|
@@ -1433,8 +1437,8 @@ const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, mes
|
|
|
1433
1437
|
React.createElement(Content, null,
|
|
1434
1438
|
React.createElement(Copy, { align: 'center', type: 'bold' }, "Drag & drop files here or click to select files"),
|
|
1435
1439
|
message ? (React.createElement(Copy, { align: 'center', color: 'GRAY' }, message)) : null))) : null)));
|
|
1436
|
-
};
|
|
1437
|
-
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1438
1442
|
const getAgesFromDob = (dob) => {
|
|
1439
1443
|
let calculated_current_age = null;
|
|
1440
1444
|
let calculated_nearest_age = null;
|
|
@@ -1507,8 +1511,8 @@ const formatAsSsn = (number) => {
|
|
|
1507
1511
|
formatted_value = `${formatted_value.substring(0, 3)}-${formatted_value.substring(3, 5)}-${formatted_value.substring(5, 9)}`;
|
|
1508
1512
|
}
|
|
1509
1513
|
return formatted_value;
|
|
1510
|
-
};
|
|
1511
|
-
|
|
1514
|
+
};
|
|
1515
|
+
|
|
1512
1516
|
const StyledInput = styled.input `
|
|
1513
1517
|
border: none !important;
|
|
1514
1518
|
background: none !important;
|
|
@@ -1693,8 +1697,8 @@ const Input$1 = (_a) => {
|
|
|
1693
1697
|
setShowOptions(false);
|
|
1694
1698
|
} }, s_value));
|
|
1695
1699
|
}))) : null));
|
|
1696
|
-
};
|
|
1697
|
-
|
|
1700
|
+
};
|
|
1701
|
+
|
|
1698
1702
|
const Wrapper$7 = styled.a `
|
|
1699
1703
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
1700
1704
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
@@ -1713,8 +1717,8 @@ Wrapper$7.defaultProps = { theme: EditableTheme };
|
|
|
1713
1717
|
const Link = (_a) => {
|
|
1714
1718
|
var { children, onClick, small } = _a, accessibleProps = __rest(_a, ["children", "onClick", "small"]);
|
|
1715
1719
|
return (React.createElement(Wrapper$7, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
|
|
1716
|
-
};
|
|
1717
|
-
|
|
1720
|
+
};
|
|
1721
|
+
|
|
1718
1722
|
const dash = styled.keyframes `
|
|
1719
1723
|
0% {
|
|
1720
1724
|
stroke-dasharray: 1, 160;
|
|
@@ -1748,8 +1752,8 @@ const Path = styled.path `
|
|
|
1748
1752
|
const Loader = () => {
|
|
1749
1753
|
return (React.createElement(Spinner, { viewBox: '0 0 16 18' },
|
|
1750
1754
|
React.createElement(Path, { d: 'M7.21487 1.2868C7.88431 0.9044 8.73031 0.9044 9.39974 1.2868L9.40283 1.28856L14.4613 4.20761C15.1684 4.598 15.5746 5.33558 15.5746 6.11465V8.99996V11.8853C15.5746 12.6507 15.1632 13.3848 14.4617 13.7721L9.37973 16.7132C8.71029 17.0956 7.86428 17.0956 7.19485 16.7132L7.19088 16.7109L2.11279 13.772C1.40602 13.3816 1 12.6441 1 11.8653V8.98995V6.11465C1 5.31458 1.44381 4.59039 2.10827 4.21051L7.21487 1.2868Z', fill: 'none', strokeWidth: '2' })));
|
|
1751
|
-
};
|
|
1752
|
-
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1753
1757
|
const Steps = styled.div `
|
|
1754
1758
|
padding: 20px;
|
|
1755
1759
|
border-bottom: 1px solid #e7e6e6;
|
|
@@ -1792,14 +1796,22 @@ const StepLabel = styled.div `
|
|
|
1792
1796
|
font-weight: 500;
|
|
1793
1797
|
line-height: 1;
|
|
1794
1798
|
`;
|
|
1795
|
-
const
|
|
1799
|
+
const StepLine = styled.div `
|
|
1800
|
+
height: 2px;
|
|
1801
|
+
flex-grow: 1;
|
|
1802
|
+
background-color: ${props => (props.$active ? Colors.PRIMARY.Hex : Colors.MEDIUM_GRAY.Hex)};
|
|
1803
|
+
transition: background-color 0.5s ease-in-out;
|
|
1804
|
+
`;
|
|
1805
|
+
const ProgressBar = ({ steps, showStepLine = false }) => {
|
|
1796
1806
|
return (React.createElement(Steps, null, steps.map((step, i) => {
|
|
1797
|
-
return (React.createElement(
|
|
1798
|
-
|
|
1799
|
-
React.createElement(
|
|
1807
|
+
return (React.createElement(React.Fragment, null,
|
|
1808
|
+
i !== 0 && showStepLine && (React.createElement(StepLine, { "$active": step.active })),
|
|
1809
|
+
React.createElement(Step, { key: i },
|
|
1810
|
+
step.complete ? (React.createElement(StyledIcon$2, { path: js.mdiCheckboxMarkedCircleOutline, size: '32px' })) : (React.createElement(StepIndicator, { "$active": step.active }, i + 1)),
|
|
1811
|
+
React.createElement(StepLabel, null, step.label))));
|
|
1800
1812
|
})));
|
|
1801
|
-
};
|
|
1802
|
-
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1803
1815
|
const Wrapper$6 = styled.div `
|
|
1804
1816
|
position: fixed;
|
|
1805
1817
|
top: 0;
|
|
@@ -1899,8 +1911,8 @@ const Modal = (_a) => {
|
|
|
1899
1911
|
} },
|
|
1900
1912
|
secondaryButton ? React.createElement(Button, Object.assign({}, secondaryButton, { format: 'secondary' })) : null,
|
|
1901
1913
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: 'primary', margin: '0px 0px 0px 10px' }))) : null)) : null)) : null)));
|
|
1902
|
-
};
|
|
1903
|
-
|
|
1914
|
+
};
|
|
1915
|
+
|
|
1904
1916
|
const Wrapper$5 = styled.div `
|
|
1905
1917
|
position: relative;
|
|
1906
1918
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
@@ -1982,8 +1994,8 @@ const MultiSelect = (_a) => {
|
|
|
1982
1994
|
showOptions ? (React.createElement(Options, null,
|
|
1983
1995
|
React.createElement(Checklist, { onChange: onChange, options: options, selected: selected, showSelectAll: showSelectAll }))) : null,
|
|
1984
1996
|
showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
|
|
1985
|
-
};
|
|
1986
|
-
|
|
1997
|
+
};
|
|
1998
|
+
|
|
1987
1999
|
const Wrapper$4 = styled.div `
|
|
1988
2000
|
display: flex;
|
|
1989
2001
|
padding: 16px 30px;
|
|
@@ -2032,8 +2044,8 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
|
|
|
2032
2044
|
return (React.createElement(Button, Object.assign({}, buttonProps, { key: i, small: true }), label));
|
|
2033
2045
|
}),
|
|
2034
2046
|
menuItems.length ? (React.createElement(ButtonMenu, { format: format, label: label, menuItems: menuItems, small: true })) : null)) : null));
|
|
2035
|
-
};
|
|
2036
|
-
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2037
2049
|
const Wrapper$3 = styled.nav `
|
|
2038
2050
|
box-sizing: border-box;
|
|
2039
2051
|
display: flex;
|
|
@@ -2067,8 +2079,8 @@ const Pagination = (_a) => {
|
|
|
2067
2079
|
value: `${p}`,
|
|
2068
2080
|
})), value: `${currentPage}` }),
|
|
2069
2081
|
React.createElement(Button, { disabled: is_last_page, icon: js.mdiChevronRight, onClick: handleNextClick, small: true })));
|
|
2070
|
-
};
|
|
2071
|
-
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2072
2084
|
const Wrapper$2 = styled.label `
|
|
2073
2085
|
border-radius: 4px;
|
|
2074
2086
|
padding: 4px 0px 4px 6px;
|
|
@@ -2125,7 +2137,7 @@ const Check = styled.span `
|
|
|
2125
2137
|
box-sizing: border-box;
|
|
2126
2138
|
position: relative;
|
|
2127
2139
|
&:after {
|
|
2128
|
-
content:
|
|
2140
|
+
content: '';
|
|
2129
2141
|
position: absolute;
|
|
2130
2142
|
top: 2px;
|
|
2131
2143
|
left: 2px;
|
|
@@ -2152,16 +2164,16 @@ const Radio = (_a) => {
|
|
|
2152
2164
|
React.createElement(Label, null,
|
|
2153
2165
|
children,
|
|
2154
2166
|
tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)));
|
|
2155
|
-
};
|
|
2156
|
-
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2157
2169
|
const RadioList = (_a) => {
|
|
2158
2170
|
var { disabled, onChange, options, value } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "value"]);
|
|
2159
2171
|
return (React.createElement(React.Fragment, null, options.map((option) => {
|
|
2160
2172
|
const label = option.label || option.value;
|
|
2161
2173
|
return (React.createElement(Radio, Object.assign({ checked: value === option.value, disabled: disabled, onChange: onChange, value: option.value }, accessibleProps), label));
|
|
2162
2174
|
})));
|
|
2163
|
-
};
|
|
2164
|
-
|
|
2175
|
+
};
|
|
2176
|
+
|
|
2165
2177
|
const StyledTable = styled.table `
|
|
2166
2178
|
width: 100%;
|
|
2167
2179
|
margin-top: 1px;
|
|
@@ -2240,8 +2252,8 @@ const Table = (_a) => {
|
|
|
2240
2252
|
return (React.createElement(Column, { "$align": columns[i].align, "$width": columns[i].width, key: i }, column.render ? column.render(row) : row[column.id] || 'N/A'));
|
|
2241
2253
|
})));
|
|
2242
2254
|
}))) : null));
|
|
2243
|
-
};
|
|
2244
|
-
|
|
2255
|
+
};
|
|
2256
|
+
|
|
2245
2257
|
const Wrapper$1 = styled.div `
|
|
2246
2258
|
display: flex;
|
|
2247
2259
|
box-sizing: border-box;
|
|
@@ -2300,8 +2312,8 @@ const Tabs = (_a) => {
|
|
|
2300
2312
|
label));
|
|
2301
2313
|
})));
|
|
2302
2314
|
};
|
|
2303
|
-
Tabs.defaultProps = {};
|
|
2304
|
-
|
|
2315
|
+
Tabs.defaultProps = {};
|
|
2316
|
+
|
|
2305
2317
|
const Track = styled.div `
|
|
2306
2318
|
height: 24px;
|
|
2307
2319
|
border-radius: 12px;
|
|
@@ -2331,8 +2343,8 @@ const Toggle = (_a) => {
|
|
|
2331
2343
|
React.createElement(Handle, { "$on": on },
|
|
2332
2344
|
React.createElement(Icon, { color: on ? Colors.GREEN.Hex : Colors.BLACK.Hex, path: on ? js.mdiCheck : js.mdiClose, size: '16px' }))));
|
|
2333
2345
|
};
|
|
2334
|
-
Toggle.defaultProps = {};
|
|
2335
|
-
|
|
2346
|
+
Toggle.defaultProps = {};
|
|
2347
|
+
|
|
2336
2348
|
const Container = styled.div `
|
|
2337
2349
|
width: 100%;
|
|
2338
2350
|
padding: 40px auto;
|
|
@@ -2367,53 +2379,53 @@ const ZeroState = (_a) => {
|
|
|
2367
2379
|
React.createElement(Heading, { children: title, type: 'tertiary' }),
|
|
2368
2380
|
description && React.createElement(Copy, { align: 'center', children: description, color: 'GRAY', type: 'default' })),
|
|
2369
2381
|
action && (React.createElement(Button, { children: action === null || action === void 0 ? void 0 : action.children, icon: action === null || action === void 0 ? void 0 : action.icon, onClick: action === null || action === void 0 ? void 0 : action.onClick }))));
|
|
2370
|
-
};
|
|
2371
|
-
|
|
2372
|
-
exports.Accordion = Accordion;
|
|
2373
|
-
exports.ActionDialog = ActionDialog;
|
|
2374
|
-
exports.Alert = Alert;
|
|
2375
|
-
exports.AppHeader = AppHeader;
|
|
2376
|
-
exports.AppMenu = AppMenu;
|
|
2377
|
-
exports.BulkActionBar = BulkActionBar;
|
|
2378
|
-
exports.Button = Button;
|
|
2379
|
-
exports.ButtonMenu = ButtonMenu;
|
|
2380
|
-
exports.Checkbox = Checkbox;
|
|
2381
|
-
exports.Checklist = Checklist;
|
|
2382
|
-
exports.Colors = Colors;
|
|
2383
|
-
exports.Copy = Copy;
|
|
2384
|
-
exports.DatePicker = DatePicker;
|
|
2385
|
-
exports.Drawer = Drawer;
|
|
2386
|
-
exports.EditableTheme = EditableTheme;
|
|
2387
|
-
exports.Field = Field;
|
|
2388
|
-
exports.FieldGroup = FieldGroup;
|
|
2389
|
-
exports.FileUpload = FileUpload;
|
|
2390
|
-
exports.FontSizes = FontSizes;
|
|
2391
|
-
exports.FontStyles = FontStyles;
|
|
2392
|
-
exports.Heading = Heading;
|
|
2393
|
-
exports.Input = Input$1;
|
|
2394
|
-
exports.Link = Link;
|
|
2395
|
-
exports.Loader = Loader;
|
|
2396
|
-
exports.Logo = Logo;
|
|
2397
|
-
exports.Modal = Modal;
|
|
2398
|
-
exports.MoreMenu = MoreMenu;
|
|
2399
|
-
exports.MultiSelect = MultiSelect;
|
|
2400
|
-
exports.PageHeader = PageHeader;
|
|
2401
|
-
exports.Pagination = Pagination;
|
|
2402
|
-
exports.ProgressBar = ProgressBar;
|
|
2403
|
-
exports.Radio = Radio;
|
|
2404
|
-
exports.RadioList = RadioList;
|
|
2405
|
-
exports.Select = Select;
|
|
2406
|
-
exports.Table = Table;
|
|
2407
|
-
exports.Tabs = Tabs;
|
|
2408
|
-
exports.Tag = Tag;
|
|
2409
|
-
exports.Toggle = Toggle;
|
|
2410
|
-
exports.Tooltip = Tooltip;
|
|
2411
|
-
exports.ZeroState = ZeroState;
|
|
2412
|
-
exports.formatAsPhone = formatAsPhone;
|
|
2413
|
-
exports.formatAsSsn = formatAsSsn;
|
|
2414
|
-
exports.getAgesFromDob = getAgesFromDob;
|
|
2415
|
-
exports.getDaysForMonth = getDaysForMonth;
|
|
2416
|
-
exports.getYears = getYears;
|
|
2417
|
-
exports.validateEmail = validateEmail;
|
|
2418
|
-
exports.validatePhone = validatePhone;
|
|
2419
|
-
//# sourceMappingURL=index.js.map
|
|
2382
|
+
};
|
|
2383
|
+
|
|
2384
|
+
exports.Accordion = Accordion;
|
|
2385
|
+
exports.ActionDialog = ActionDialog;
|
|
2386
|
+
exports.Alert = Alert;
|
|
2387
|
+
exports.AppHeader = AppHeader;
|
|
2388
|
+
exports.AppMenu = AppMenu;
|
|
2389
|
+
exports.BulkActionBar = BulkActionBar;
|
|
2390
|
+
exports.Button = Button;
|
|
2391
|
+
exports.ButtonMenu = ButtonMenu;
|
|
2392
|
+
exports.Checkbox = Checkbox;
|
|
2393
|
+
exports.Checklist = Checklist;
|
|
2394
|
+
exports.Colors = Colors;
|
|
2395
|
+
exports.Copy = Copy;
|
|
2396
|
+
exports.DatePicker = DatePicker;
|
|
2397
|
+
exports.Drawer = Drawer;
|
|
2398
|
+
exports.EditableTheme = EditableTheme;
|
|
2399
|
+
exports.Field = Field;
|
|
2400
|
+
exports.FieldGroup = FieldGroup;
|
|
2401
|
+
exports.FileUpload = FileUpload;
|
|
2402
|
+
exports.FontSizes = FontSizes;
|
|
2403
|
+
exports.FontStyles = FontStyles;
|
|
2404
|
+
exports.Heading = Heading;
|
|
2405
|
+
exports.Input = Input$1;
|
|
2406
|
+
exports.Link = Link;
|
|
2407
|
+
exports.Loader = Loader;
|
|
2408
|
+
exports.Logo = Logo;
|
|
2409
|
+
exports.Modal = Modal;
|
|
2410
|
+
exports.MoreMenu = MoreMenu;
|
|
2411
|
+
exports.MultiSelect = MultiSelect;
|
|
2412
|
+
exports.PageHeader = PageHeader;
|
|
2413
|
+
exports.Pagination = Pagination;
|
|
2414
|
+
exports.ProgressBar = ProgressBar;
|
|
2415
|
+
exports.Radio = Radio;
|
|
2416
|
+
exports.RadioList = RadioList;
|
|
2417
|
+
exports.Select = Select;
|
|
2418
|
+
exports.Table = Table;
|
|
2419
|
+
exports.Tabs = Tabs;
|
|
2420
|
+
exports.Tag = Tag;
|
|
2421
|
+
exports.Toggle = Toggle;
|
|
2422
|
+
exports.Tooltip = Tooltip;
|
|
2423
|
+
exports.ZeroState = ZeroState;
|
|
2424
|
+
exports.formatAsPhone = formatAsPhone;
|
|
2425
|
+
exports.formatAsSsn = formatAsSsn;
|
|
2426
|
+
exports.getAgesFromDob = getAgesFromDob;
|
|
2427
|
+
exports.getDaysForMonth = getDaysForMonth;
|
|
2428
|
+
exports.getYears = getYears;
|
|
2429
|
+
exports.validateEmail = validateEmail;
|
|
2430
|
+
exports.validatePhone = validatePhone;
|
|
2431
|
+
//# sourceMappingURL=index.js.map
|