@hexure/ui 1.3.8 → 1.4.1
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 +474 -95
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +6 -15
- package/dist/cjs/types/components/Input/Input.d.ts +2 -2
- package/dist/cjs/types/components/Select/Select.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +474 -96
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +6 -15
- package/dist/esm/types/components/Input/Input.d.ts +2 -2
- package/dist/esm/types/components/Select/Select.d.ts +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +20 -4
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -58,6 +58,8 @@ function __makeTemplateObject(cooked, raw) {
|
|
|
58
58
|
return cooked;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
62
|
+
|
|
61
63
|
function getDefaultExportFromCjs (x) {
|
|
62
64
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
63
65
|
}
|
|
@@ -2032,8 +2034,8 @@ var FontSizes = {
|
|
|
2032
2034
|
SMALL: '13px',
|
|
2033
2035
|
};
|
|
2034
2036
|
|
|
2035
|
-
var Header$3 = styled.div(templateObject_1$
|
|
2036
|
-
var Title$1 = styled.div(templateObject_2$
|
|
2037
|
+
var Header$3 = styled.div(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n background: #f5f5f5;\n border: 1px solid #e5e5e5;\n padding: 14px 20px;\n height: 50px;\n cursor: pointer;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n background: #f5f5f5;\n border: 1px solid #e5e5e5;\n padding: 14px 20px;\n height: 50px;\n cursor: pointer;\n"])));
|
|
2038
|
+
var Title$1 = styled.div(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 400;\n color: ", ";\n line-height: 1.6em;\n font-family: ", ";\n box-sizing: border-box;\n"], ["\n font-size: ", ";\n font-weight: 400;\n color: ", ";\n line-height: 1.6em;\n font-family: ", ";\n box-sizing: border-box;\n"])), FontSizes.DEFAULT, Colors.BLACK.Hex, FontStyles.DEFAULT);
|
|
2037
2039
|
var Accordion = function (_a) {
|
|
2038
2040
|
var title = _a.title, children = _a.children, open = _a.open, onClick = _a.onClick, accessibleProps = __rest(_a, ["title", "children", "open", "onClick"]);
|
|
2039
2041
|
return (React.createElement(React.Fragment, null,
|
|
@@ -2042,7 +2044,7 @@ var Accordion = function (_a) {
|
|
|
2042
2044
|
React.createElement(Icon, { color: Colors.BLACK.Hex, path: open ? mdiChevronUp : mdiChevronDown, size: '24px' })),
|
|
2043
2045
|
open ? children : null));
|
|
2044
2046
|
};
|
|
2045
|
-
var templateObject_1$
|
|
2047
|
+
var templateObject_1$o, templateObject_2$m;
|
|
2046
2048
|
|
|
2047
2049
|
var button_type_mapping = {
|
|
2048
2050
|
primary: {
|
|
@@ -2067,7 +2069,7 @@ var button_type_mapping = {
|
|
|
2067
2069
|
badge_content_color: Colors.RED.Hex,
|
|
2068
2070
|
},
|
|
2069
2071
|
};
|
|
2070
|
-
var StyledButton = styled.button(templateObject_1$
|
|
2072
|
+
var StyledButton = styled.button(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n height: ", ";\n line-height: 1em;\n border-radius: ", ";\n margin: ", ";\n padding: ", ";\n outline: none;\n background: ", ";\n width: ", ";\n cursor: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n &:hover {\n opacity: ", ";\n }\n"], ["\n height: ", ";\n line-height: 1em;\n border-radius: ", ";\n margin: ", ";\n padding: ", ";\n outline: none;\n background: ", ";\n width: ", ";\n cursor: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n &:hover {\n opacity: ", ";\n }\n"])), function (props) { return (props.$small ? '30px' : '40px'); }, function (props) { return (props.$small ? '15px' : '20px'); }, function (props) { return props.$margin || '0px'; }, function (props) {
|
|
2071
2073
|
if (props.$hasChildren) {
|
|
2072
2074
|
if (props.$small) {
|
|
2073
2075
|
return '0 10px';
|
|
@@ -2090,7 +2092,7 @@ var StyledButton = styled.button(templateObject_1$m || (templateObject_1$m = __m
|
|
|
2090
2092
|
}, function (props) { return (props.$disabled ? 'default' : 'pointer'); }, function (props) { return (props.$disabled ? 0.6 : 0.9); }, function (props) {
|
|
2091
2093
|
return props.$format ? button_type_mapping[props.$format].border_color : Colors.PRIMARY.Hex;
|
|
2092
2094
|
}, function (props) { return (props.$disabled ? 0.6 : 1); });
|
|
2093
|
-
var Label$4 = styled.span(templateObject_2$
|
|
2095
|
+
var Label$4 = styled.span(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n font-weight: 500;\n line-height: ", ";\n"], ["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n font-weight: 500;\n line-height: ", ";\n"])), function (props) { return (props.$format ? button_type_mapping[props.$format].content_color : '#fff'); }, function (props) { return (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT); }, FontStyles.DEFAULT, function (props) { return (props.$small ? '2.2em' : '2.9em'); });
|
|
2094
2096
|
var StyledIcon$2 = styled.span(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n margin-left: ", ";\n margin-right: ", ";\n display: flex;\n align-items: center;\n box-sizing: border-box;\n"], ["\n margin-left: ", ";\n margin-right: ", ";\n display: flex;\n align-items: center;\n box-sizing: border-box;\n"])), function (props) { return (props.$hasChildren ? '6px' : '0px'); }, function (props) { return (props.$hasChildren ? '-4px' : '0px'); });
|
|
2095
2097
|
var Badge$1 = styled.span(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 100%;\n background-color: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n font-family: ", ";\n letter-spacing: -1px;\n margin-left: ", ";\n margin-right: ", ";\n"], ["\n width: ", ";\n height: ", ";\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 100%;\n background-color: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n font-family: ", ";\n letter-spacing: -1px;\n margin-left: ", ";\n margin-right: ", ";\n"])), function (props) { return (props.$small ? '20px' : '24px'); }, function (props) { return (props.$small ? '20px' : '24px'); }, function (props) {
|
|
2096
2098
|
return props.$format ? button_type_mapping[props.$format].badge_bg_color : '#fff';
|
|
@@ -2106,9 +2108,9 @@ var Button = function (_a) {
|
|
|
2106
2108
|
React.createElement(Icon, { color: format ? button_type_mapping[format].content_color : '#fff', path: icon, size: small ? '20px' : '24px' }))) : null,
|
|
2107
2109
|
badge && !icon ? (React.createElement(Badge$1, { "$format": format, "$small": small }, badge)) : null));
|
|
2108
2110
|
};
|
|
2109
|
-
var templateObject_1$
|
|
2111
|
+
var templateObject_1$n, templateObject_2$l, templateObject_3$i, templateObject_4$9;
|
|
2110
2112
|
|
|
2111
|
-
var StyledComponent = styled.p(templateObject_1$
|
|
2113
|
+
var StyledComponent = styled.p(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n font-weight: ", ";\n font-style: ", ";\n text-decoration: ", ";\n font-family: 'Roboto', Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n text-align: ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n font-weight: ", ";\n font-style: ", ";\n text-decoration: ", ";\n font-family: 'Roboto', Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n text-align: ", ";\n box-sizing: border-box;\n"])), function (props) { return Colors[props.$color || 'BLACK'].Hex; }, function (props) { return (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT); }, function (props) { return (props.$type === 'small' ? '1.5em' : '1.6em'); }, function (props) { return (props.$type === 'small' ? '1px' : '0px'); }, function (props) { return (props.$type === 'bold' ? '500' : '400'); }, function (props) { return (props.$type === 'italic' ? 'italic' : 'normal'); }, function (props) {
|
|
2112
2114
|
return ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none';
|
|
2113
2115
|
}, function (props) { return props.$margin || '0px'; }, function (props) { return props.$padding || '0px'; }, function (props) { return props.$align || 'left'; });
|
|
2114
2116
|
var Copy = function (_a) {
|
|
@@ -2118,10 +2120,10 @@ var Copy = function (_a) {
|
|
|
2118
2120
|
Copy.defaultProps = {
|
|
2119
2121
|
type: 'default',
|
|
2120
2122
|
};
|
|
2121
|
-
var templateObject_1$
|
|
2123
|
+
var templateObject_1$m;
|
|
2122
2124
|
|
|
2123
|
-
var H1 = styled.h1(templateObject_1$
|
|
2124
|
-
var H2 = styled.h2(templateObject_2$
|
|
2125
|
+
var H1 = styled.h1(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n color: ", ";\n font-size: 30px;\n font-weight: ", ";\n line-height: 1.4em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n font-size: 30px;\n font-weight: ", ";\n line-height: 1.4em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"])), Colors.BLACK.Hex, function (props) { return (props.$bold ? '500' : '400'); }, function (props) { return props.$margin || '0px'; }, function (props) { return props.$padding || '0px'; });
|
|
2126
|
+
var H2 = styled.h2(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n color: ", ";\n font-size: 24px;\n font-weight: ", ";\n line-height: 1.33em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n font-size: 24px;\n font-weight: ", ";\n line-height: 1.33em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"])), Colors.BLACK.Hex, function (props) { return (props.$bold ? '500' : '400'); }, function (props) { return props.$margin || '0px'; }, function (props) { return props.$padding || '0px'; });
|
|
2125
2127
|
var H3 = styled.h3(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n color: ", ";\n font-size: 18px;\n font-weight: ", ";\n line-height: 1.33em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n font-size: 18px;\n font-weight: ", ";\n line-height: 1.33em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"])), Colors.BLACK.Hex, function (props) { return (props.$bold ? '500' : '400'); }, function (props) { return props.$margin || '0px'; }, function (props) { return props.$padding || '0px'; });
|
|
2126
2128
|
var Heading = function (_a) {
|
|
2127
2129
|
var bold = _a.bold, children = _a.children, margin = _a.margin, padding = _a.padding, type = _a.type, accessibleProps = __rest(_a, ["bold", "children", "margin", "padding", "type"]);
|
|
@@ -2141,10 +2143,10 @@ Heading.defaultProps = {
|
|
|
2141
2143
|
bold: false,
|
|
2142
2144
|
type: 'primary',
|
|
2143
2145
|
};
|
|
2144
|
-
var templateObject_1$
|
|
2146
|
+
var templateObject_1$l, templateObject_2$k, templateObject_3$h;
|
|
2145
2147
|
|
|
2146
|
-
var Wrapper$e = styled.div(templateObject_1$
|
|
2147
|
-
var Container$3 = styled.dialog(templateObject_2$
|
|
2148
|
+
var Wrapper$e = styled.div(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9999;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n"], ["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9999;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n"])));
|
|
2149
|
+
var Container$3 = styled.dialog(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n max-width: 600px;\n width: auto;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n outline: none;\n border: none;\n position: relative;\n padding: 40px;\n text-align: center;\n box-sizing: border-box;\n"], ["\n max-width: 600px;\n width: auto;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n outline: none;\n border: none;\n position: relative;\n padding: 40px;\n text-align: center;\n box-sizing: border-box;\n"])));
|
|
2148
2150
|
var Buttons = styled.div(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 30px;\n box-sizing: border-box;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 30px;\n box-sizing: border-box;\n"])));
|
|
2149
2151
|
var ActionDialog = function (_a) {
|
|
2150
2152
|
var description = _a.description, title = _a.title, onClose = _a.onClose, primaryButton = _a.primaryButton, secondaryButton = _a.secondaryButton, accessibleProps = __rest(_a, ["description", "title", "onClose", "primaryButton", "secondaryButton"]);
|
|
@@ -2166,10 +2168,10 @@ var ActionDialog = function (_a) {
|
|
|
2166
2168
|
secondaryButton ? (React.createElement(Button, __assign({}, secondaryButton, { format: 'secondary', margin: '0px 5px' }))) : null,
|
|
2167
2169
|
primaryButton ? React.createElement(Button, __assign({}, primaryButton, { format: 'primary', margin: '0px 5px' })) : null)) : null)));
|
|
2168
2170
|
};
|
|
2169
|
-
var templateObject_1$
|
|
2171
|
+
var templateObject_1$k, templateObject_2$j, templateObject_3$g;
|
|
2170
2172
|
|
|
2171
|
-
var Wrapper$d = styled.div(templateObject_1$
|
|
2172
|
-
var Content$1 = styled.div(templateObject_2$
|
|
2173
|
+
var Wrapper$d = styled.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n border: 1px solid #f1f1f1;\n border-radius: 4px;\n border-left-width: 4px;\n box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: flex-start;\n padding: 20px;\n box-sizing: border-box;\n"], ["\n border: 1px solid #f1f1f1;\n border-radius: 4px;\n border-left-width: 4px;\n box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: flex-start;\n padding: 20px;\n box-sizing: border-box;\n"])));
|
|
2174
|
+
var Content$1 = styled.div(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n margin-left: 20px;\n"], ["\n margin-left: 20px;\n"])));
|
|
2173
2175
|
var Action$1 = styled.div(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n font-weight: 500;\n cursor: pointer;\n margin-top: 6px;\n"], ["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n font-weight: 500;\n cursor: pointer;\n margin-top: 6px;\n"])), Colors.PRIMARY.Hex, FontSizes.DEFAULT, FontStyles.DEFAULT);
|
|
2174
2176
|
var Alert = function (_a) {
|
|
2175
2177
|
var action = _a.action, _b = _a.type, type = _b === void 0 ? 'info' : _b, title = _a.title, description = _a.description, accessibleProps = __rest(_a, ["action", "type", "title", "description"]);
|
|
@@ -2199,10 +2201,10 @@ var Alert = function (_a) {
|
|
|
2199
2201
|
description ? React.createElement(Copy, { margin: '6px 0 0 0 !important' }, description) : null,
|
|
2200
2202
|
action ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
|
|
2201
2203
|
};
|
|
2202
|
-
var templateObject_1$
|
|
2204
|
+
var templateObject_1$j, templateObject_2$i, templateObject_3$f;
|
|
2203
2205
|
|
|
2204
|
-
var Wrapper$c = styled.div(templateObject_1$
|
|
2205
|
-
var Left = styled.div(templateObject_2$
|
|
2206
|
+
var Wrapper$c = styled.div(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n border: 1px solid ", ";\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n"], ["\n border: 1px solid ", ";\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n"])), Colors.PRIMARY.Hex);
|
|
2207
|
+
var Left = styled.div(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-shrink: 0;\n"], ["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-shrink: 0;\n"])));
|
|
2206
2208
|
var Info = styled.div(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n margin-right: 30px;\n"], ["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n margin-right: 30px;\n"])));
|
|
2207
2209
|
var Selected = styled.span(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n color: ", ";\n line-height: 1;\n"], ["\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n color: ", ";\n line-height: 1;\n"])), FontStyles.DEFAULT, Colors.BLACK.Hex);
|
|
2208
2210
|
var Clear = styled.span(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n color: ", ";\n line-height: 1;\n cursor: pointer;\n padding-left: 10px;\n margin-left: 10px;\n border-left: 1px solid #ccc;\n"], ["\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n color: ", ";\n line-height: 1;\n cursor: pointer;\n padding-left: 10px;\n margin-left: 10px;\n border-left: 1px solid #ccc;\n"])), FontStyles.DEFAULT, Colors.PRIMARY.Hex);
|
|
@@ -2223,10 +2225,10 @@ var BulkActionBar = function (_a) {
|
|
|
2223
2225
|
React.createElement(Icon, { color: Colors.RED.Hex, path: mdiInformationOutline, size: '20px' }),
|
|
2224
2226
|
React.createElement(ErrorMsg, null, errorMsg))) : null));
|
|
2225
2227
|
};
|
|
2226
|
-
var templateObject_1$
|
|
2228
|
+
var templateObject_1$i, templateObject_2$h, templateObject_3$e, templateObject_4$8, templateObject_5$6, templateObject_6$4, templateObject_7$2, templateObject_8$1;
|
|
2227
2229
|
|
|
2228
|
-
var Wrapper$b = styled.label(templateObject_1$
|
|
2229
|
-
var Input$2 = styled.input(templateObject_2$
|
|
2230
|
+
var Wrapper$b = styled.label(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n padding: 4px 0;\n cursor: ", ";\n display: flex;\n align-items: center;\n font-size: ", ";\n line-height: 1.6em;\n box-sizing: border-box;\n"], ["\n padding: 4px 0;\n cursor: ", ";\n display: flex;\n align-items: center;\n font-size: ", ";\n line-height: 1.6em;\n box-sizing: border-box;\n"])), function (props) { return (props.$disabled ? 'default' : 'pointer'); }, FontSizes.DEFAULT);
|
|
2231
|
+
var Input$2 = styled.input(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n font-size: 20px;\n margin: 0px 0px 2px 0px;\n line-height: 1.1em;\n box-sizing: border-box;\n"], ["\n font-size: 20px;\n margin: 0px 0px 2px 0px;\n line-height: 1.1em;\n box-sizing: border-box;\n"])));
|
|
2230
2232
|
var Label$3 = styled.span(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n line-height: 1.6em;\n color: ", ";\n margin-left: 6px;\n box-sizing: border-box;\n"], ["\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n line-height: 1.6em;\n color: ", ";\n margin-left: 6px;\n box-sizing: border-box;\n"])), FontStyles.DEFAULT, FontSizes.DEFAULT, Colors.BLACK.Hex);
|
|
2231
2233
|
var Checkbox = function (_a) {
|
|
2232
2234
|
var children = _a.children, disabled = _a.disabled, checked = _a.checked, onChange = _a.onChange, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange"]);
|
|
@@ -2234,10 +2236,10 @@ var Checkbox = function (_a) {
|
|
|
2234
2236
|
React.createElement(Input$2, { checked: checked, disabled: disabled, name: accessibleProps.name, onChange: disabled ? undefined : onChange, type: 'checkbox' }),
|
|
2235
2237
|
children ? React.createElement(Label$3, null, children) : null));
|
|
2236
2238
|
};
|
|
2237
|
-
var templateObject_1$
|
|
2239
|
+
var templateObject_1$h, templateObject_2$g, templateObject_3$d;
|
|
2238
2240
|
|
|
2239
|
-
var SelectAll = styled.div(templateObject_1$
|
|
2240
|
-
var Options$1 = styled.div(templateObject_2$
|
|
2241
|
+
var SelectAll = styled.div(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n padding: 8px 12px;\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n"], ["\n padding: 8px 12px;\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n"])), Colors.LIGHT_GRAY.Hex);
|
|
2242
|
+
var Options$1 = styled.div(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n padding: 12px;\n box-sizing: border-box;\n"], ["\n padding: 12px;\n box-sizing: border-box;\n"])));
|
|
2241
2243
|
var Checklist = function (_a) {
|
|
2242
2244
|
var disabled = _a.disabled, onChange = _a.onChange, options = _a.options, selected = _a.selected, showSelectAll = _a.showSelectAll, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "selected", "showSelectAll"]);
|
|
2243
2245
|
var values = options.map(function (option) { return option.value; });
|
|
@@ -2265,17 +2267,422 @@ var Checklist = function (_a) {
|
|
|
2265
2267
|
return (React.createElement(Checkbox, __assign({ key: i }, accessibleProps, { checked: checked, disabled: disabled, onChange: handleChange.bind(null, option) }), label));
|
|
2266
2268
|
}))));
|
|
2267
2269
|
};
|
|
2268
|
-
var templateObject_1$
|
|
2270
|
+
var templateObject_1$g, templateObject_2$f;
|
|
2271
|
+
|
|
2272
|
+
var dayjs_min = {exports: {}};
|
|
2273
|
+
|
|
2274
|
+
(function (module, exports) {
|
|
2275
|
+
!function (t, e) {
|
|
2276
|
+
module.exports = e() ;
|
|
2277
|
+
}(commonjsGlobal, function () {
|
|
2278
|
+
|
|
2279
|
+
var t = 1e3,
|
|
2280
|
+
e = 6e4,
|
|
2281
|
+
n = 36e5,
|
|
2282
|
+
r = "millisecond",
|
|
2283
|
+
i = "second",
|
|
2284
|
+
s = "minute",
|
|
2285
|
+
u = "hour",
|
|
2286
|
+
a = "day",
|
|
2287
|
+
o = "week",
|
|
2288
|
+
f = "month",
|
|
2289
|
+
h = "quarter",
|
|
2290
|
+
c = "year",
|
|
2291
|
+
d = "date",
|
|
2292
|
+
l = "Invalid Date",
|
|
2293
|
+
$ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
2294
|
+
y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
2295
|
+
M = {
|
|
2296
|
+
name: "en",
|
|
2297
|
+
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
2298
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
2299
|
+
ordinal: function (t) {
|
|
2300
|
+
var e = ["th", "st", "nd", "rd"],
|
|
2301
|
+
n = t % 100;
|
|
2302
|
+
return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
|
|
2303
|
+
}
|
|
2304
|
+
},
|
|
2305
|
+
m = function (t, e, n) {
|
|
2306
|
+
var r = String(t);
|
|
2307
|
+
return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
|
|
2308
|
+
},
|
|
2309
|
+
v = {
|
|
2310
|
+
s: m,
|
|
2311
|
+
z: function (t) {
|
|
2312
|
+
var e = -t.utcOffset(),
|
|
2313
|
+
n = Math.abs(e),
|
|
2314
|
+
r = Math.floor(n / 60),
|
|
2315
|
+
i = n % 60;
|
|
2316
|
+
return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");
|
|
2317
|
+
},
|
|
2318
|
+
m: function t(e, n) {
|
|
2319
|
+
if (e.date() < n.date()) return -t(n, e);
|
|
2320
|
+
var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
|
|
2321
|
+
i = e.clone().add(r, f),
|
|
2322
|
+
s = n - i < 0,
|
|
2323
|
+
u = e.clone().add(r + (s ? -1 : 1), f);
|
|
2324
|
+
return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
|
|
2325
|
+
},
|
|
2326
|
+
a: function (t) {
|
|
2327
|
+
return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
|
|
2328
|
+
},
|
|
2329
|
+
p: function (t) {
|
|
2330
|
+
return {
|
|
2331
|
+
M: f,
|
|
2332
|
+
y: c,
|
|
2333
|
+
w: o,
|
|
2334
|
+
d: a,
|
|
2335
|
+
D: d,
|
|
2336
|
+
h: u,
|
|
2337
|
+
m: s,
|
|
2338
|
+
s: i,
|
|
2339
|
+
ms: r,
|
|
2340
|
+
Q: h
|
|
2341
|
+
}[t] || String(t || "").toLowerCase().replace(/s$/, "");
|
|
2342
|
+
},
|
|
2343
|
+
u: function (t) {
|
|
2344
|
+
return void 0 === t;
|
|
2345
|
+
}
|
|
2346
|
+
},
|
|
2347
|
+
g = "en",
|
|
2348
|
+
D = {};
|
|
2349
|
+
D[g] = M;
|
|
2350
|
+
var p = function (t) {
|
|
2351
|
+
return t instanceof _;
|
|
2352
|
+
},
|
|
2353
|
+
S = function t(e, n, r) {
|
|
2354
|
+
var i;
|
|
2355
|
+
if (!e) return g;
|
|
2356
|
+
if ("string" == typeof e) {
|
|
2357
|
+
var s = e.toLowerCase();
|
|
2358
|
+
D[s] && (i = s), n && (D[s] = n, i = s);
|
|
2359
|
+
var u = e.split("-");
|
|
2360
|
+
if (!i && u.length > 1) return t(u[0]);
|
|
2361
|
+
} else {
|
|
2362
|
+
var a = e.name;
|
|
2363
|
+
D[a] = e, i = a;
|
|
2364
|
+
}
|
|
2365
|
+
return !r && i && (g = i), i || !r && g;
|
|
2366
|
+
},
|
|
2367
|
+
w = function (t, e) {
|
|
2368
|
+
if (p(t)) return t.clone();
|
|
2369
|
+
var n = "object" == typeof e ? e : {};
|
|
2370
|
+
return n.date = t, n.args = arguments, new _(n);
|
|
2371
|
+
},
|
|
2372
|
+
O = v;
|
|
2373
|
+
O.l = S, O.i = p, O.w = function (t, e) {
|
|
2374
|
+
return w(t, {
|
|
2375
|
+
locale: e.$L,
|
|
2376
|
+
utc: e.$u,
|
|
2377
|
+
x: e.$x,
|
|
2378
|
+
$offset: e.$offset
|
|
2379
|
+
});
|
|
2380
|
+
};
|
|
2381
|
+
var _ = function () {
|
|
2382
|
+
function M(t) {
|
|
2383
|
+
this.$L = S(t.locale, null, !0), this.parse(t);
|
|
2384
|
+
}
|
|
2385
|
+
var m = M.prototype;
|
|
2386
|
+
return m.parse = function (t) {
|
|
2387
|
+
this.$d = function (t) {
|
|
2388
|
+
var e = t.date,
|
|
2389
|
+
n = t.utc;
|
|
2390
|
+
if (null === e) return new Date(NaN);
|
|
2391
|
+
if (O.u(e)) return new Date();
|
|
2392
|
+
if (e instanceof Date) return new Date(e);
|
|
2393
|
+
if ("string" == typeof e && !/Z$/i.test(e)) {
|
|
2394
|
+
var r = e.match($);
|
|
2395
|
+
if (r) {
|
|
2396
|
+
var i = r[2] - 1 || 0,
|
|
2397
|
+
s = (r[7] || "0").substring(0, 3);
|
|
2398
|
+
return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
return new Date(e);
|
|
2402
|
+
}(t), this.$x = t.x || {}, this.init();
|
|
2403
|
+
}, m.init = function () {
|
|
2404
|
+
var t = this.$d;
|
|
2405
|
+
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
2406
|
+
}, m.$utils = function () {
|
|
2407
|
+
return O;
|
|
2408
|
+
}, m.isValid = function () {
|
|
2409
|
+
return !(this.$d.toString() === l);
|
|
2410
|
+
}, m.isSame = function (t, e) {
|
|
2411
|
+
var n = w(t);
|
|
2412
|
+
return this.startOf(e) <= n && n <= this.endOf(e);
|
|
2413
|
+
}, m.isAfter = function (t, e) {
|
|
2414
|
+
return w(t) < this.startOf(e);
|
|
2415
|
+
}, m.isBefore = function (t, e) {
|
|
2416
|
+
return this.endOf(e) < w(t);
|
|
2417
|
+
}, m.$g = function (t, e, n) {
|
|
2418
|
+
return O.u(t) ? this[e] : this.set(n, t);
|
|
2419
|
+
}, m.unix = function () {
|
|
2420
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
2421
|
+
}, m.valueOf = function () {
|
|
2422
|
+
return this.$d.getTime();
|
|
2423
|
+
}, m.startOf = function (t, e) {
|
|
2424
|
+
var n = this,
|
|
2425
|
+
r = !!O.u(e) || e,
|
|
2426
|
+
h = O.p(t),
|
|
2427
|
+
l = function (t, e) {
|
|
2428
|
+
var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
|
|
2429
|
+
return r ? i : i.endOf(a);
|
|
2430
|
+
},
|
|
2431
|
+
$ = function (t, e) {
|
|
2432
|
+
return O.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
|
|
2433
|
+
},
|
|
2434
|
+
y = this.$W,
|
|
2435
|
+
M = this.$M,
|
|
2436
|
+
m = this.$D,
|
|
2437
|
+
v = "set" + (this.$u ? "UTC" : "");
|
|
2438
|
+
switch (h) {
|
|
2439
|
+
case c:
|
|
2440
|
+
return r ? l(1, 0) : l(31, 11);
|
|
2441
|
+
case f:
|
|
2442
|
+
return r ? l(1, M) : l(0, M + 1);
|
|
2443
|
+
case o:
|
|
2444
|
+
var g = this.$locale().weekStart || 0,
|
|
2445
|
+
D = (y < g ? y + 7 : y) - g;
|
|
2446
|
+
return l(r ? m - D : m + (6 - D), M);
|
|
2447
|
+
case a:
|
|
2448
|
+
case d:
|
|
2449
|
+
return $(v + "Hours", 0);
|
|
2450
|
+
case u:
|
|
2451
|
+
return $(v + "Minutes", 1);
|
|
2452
|
+
case s:
|
|
2453
|
+
return $(v + "Seconds", 2);
|
|
2454
|
+
case i:
|
|
2455
|
+
return $(v + "Milliseconds", 3);
|
|
2456
|
+
default:
|
|
2457
|
+
return this.clone();
|
|
2458
|
+
}
|
|
2459
|
+
}, m.endOf = function (t) {
|
|
2460
|
+
return this.startOf(t, !1);
|
|
2461
|
+
}, m.$set = function (t, e) {
|
|
2462
|
+
var n,
|
|
2463
|
+
o = O.p(t),
|
|
2464
|
+
h = "set" + (this.$u ? "UTC" : ""),
|
|
2465
|
+
l = (n = {}, n[a] = h + "Date", n[d] = h + "Date", n[f] = h + "Month", n[c] = h + "FullYear", n[u] = h + "Hours", n[s] = h + "Minutes", n[i] = h + "Seconds", n[r] = h + "Milliseconds", n)[o],
|
|
2466
|
+
$ = o === a ? this.$D + (e - this.$W) : e;
|
|
2467
|
+
if (o === f || o === c) {
|
|
2468
|
+
var y = this.clone().set(d, 1);
|
|
2469
|
+
y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
|
|
2470
|
+
} else l && this.$d[l]($);
|
|
2471
|
+
return this.init(), this;
|
|
2472
|
+
}, m.set = function (t, e) {
|
|
2473
|
+
return this.clone().$set(t, e);
|
|
2474
|
+
}, m.get = function (t) {
|
|
2475
|
+
return this[O.p(t)]();
|
|
2476
|
+
}, m.add = function (r, h) {
|
|
2477
|
+
var d,
|
|
2478
|
+
l = this;
|
|
2479
|
+
r = Number(r);
|
|
2480
|
+
var $ = O.p(h),
|
|
2481
|
+
y = function (t) {
|
|
2482
|
+
var e = w(l);
|
|
2483
|
+
return O.w(e.date(e.date() + Math.round(t * r)), l);
|
|
2484
|
+
};
|
|
2485
|
+
if ($ === f) return this.set(f, this.$M + r);
|
|
2486
|
+
if ($ === c) return this.set(c, this.$y + r);
|
|
2487
|
+
if ($ === a) return y(1);
|
|
2488
|
+
if ($ === o) return y(7);
|
|
2489
|
+
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
|
|
2490
|
+
m = this.$d.getTime() + r * M;
|
|
2491
|
+
return O.w(m, this);
|
|
2492
|
+
}, m.subtract = function (t, e) {
|
|
2493
|
+
return this.add(-1 * t, e);
|
|
2494
|
+
}, m.format = function (t) {
|
|
2495
|
+
var e = this,
|
|
2496
|
+
n = this.$locale();
|
|
2497
|
+
if (!this.isValid()) return n.invalidDate || l;
|
|
2498
|
+
var r = t || "YYYY-MM-DDTHH:mm:ssZ",
|
|
2499
|
+
i = O.z(this),
|
|
2500
|
+
s = this.$H,
|
|
2501
|
+
u = this.$m,
|
|
2502
|
+
a = this.$M,
|
|
2503
|
+
o = n.weekdays,
|
|
2504
|
+
f = n.months,
|
|
2505
|
+
h = function (t, n, i, s) {
|
|
2506
|
+
return t && (t[n] || t(e, r)) || i[n].slice(0, s);
|
|
2507
|
+
},
|
|
2508
|
+
c = function (t) {
|
|
2509
|
+
return O.s(s % 12 || 12, t, "0");
|
|
2510
|
+
},
|
|
2511
|
+
d = n.meridiem || function (t, e, n) {
|
|
2512
|
+
var r = t < 12 ? "AM" : "PM";
|
|
2513
|
+
return n ? r.toLowerCase() : r;
|
|
2514
|
+
},
|
|
2515
|
+
$ = {
|
|
2516
|
+
YY: String(this.$y).slice(-2),
|
|
2517
|
+
YYYY: O.s(this.$y, 4, "0"),
|
|
2518
|
+
M: a + 1,
|
|
2519
|
+
MM: O.s(a + 1, 2, "0"),
|
|
2520
|
+
MMM: h(n.monthsShort, a, f, 3),
|
|
2521
|
+
MMMM: h(f, a),
|
|
2522
|
+
D: this.$D,
|
|
2523
|
+
DD: O.s(this.$D, 2, "0"),
|
|
2524
|
+
d: String(this.$W),
|
|
2525
|
+
dd: h(n.weekdaysMin, this.$W, o, 2),
|
|
2526
|
+
ddd: h(n.weekdaysShort, this.$W, o, 3),
|
|
2527
|
+
dddd: o[this.$W],
|
|
2528
|
+
H: String(s),
|
|
2529
|
+
HH: O.s(s, 2, "0"),
|
|
2530
|
+
h: c(1),
|
|
2531
|
+
hh: c(2),
|
|
2532
|
+
a: d(s, u, !0),
|
|
2533
|
+
A: d(s, u, !1),
|
|
2534
|
+
m: String(u),
|
|
2535
|
+
mm: O.s(u, 2, "0"),
|
|
2536
|
+
s: String(this.$s),
|
|
2537
|
+
ss: O.s(this.$s, 2, "0"),
|
|
2538
|
+
SSS: O.s(this.$ms, 3, "0"),
|
|
2539
|
+
Z: i
|
|
2540
|
+
};
|
|
2541
|
+
return r.replace(y, function (t, e) {
|
|
2542
|
+
return e || $[t] || i.replace(":", "");
|
|
2543
|
+
});
|
|
2544
|
+
}, m.utcOffset = function () {
|
|
2545
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2546
|
+
}, m.diff = function (r, d, l) {
|
|
2547
|
+
var $,
|
|
2548
|
+
y = O.p(d),
|
|
2549
|
+
M = w(r),
|
|
2550
|
+
m = (M.utcOffset() - this.utcOffset()) * e,
|
|
2551
|
+
v = this - M,
|
|
2552
|
+
g = O.m(this, M);
|
|
2553
|
+
return g = ($ = {}, $[c] = g / 12, $[f] = g, $[h] = g / 3, $[o] = (v - m) / 6048e5, $[a] = (v - m) / 864e5, $[u] = v / n, $[s] = v / e, $[i] = v / t, $)[y] || v, l ? g : O.a(g);
|
|
2554
|
+
}, m.daysInMonth = function () {
|
|
2555
|
+
return this.endOf(f).$D;
|
|
2556
|
+
}, m.$locale = function () {
|
|
2557
|
+
return D[this.$L];
|
|
2558
|
+
}, m.locale = function (t, e) {
|
|
2559
|
+
if (!t) return this.$L;
|
|
2560
|
+
var n = this.clone(),
|
|
2561
|
+
r = S(t, e, !0);
|
|
2562
|
+
return r && (n.$L = r), n;
|
|
2563
|
+
}, m.clone = function () {
|
|
2564
|
+
return O.w(this.$d, this);
|
|
2565
|
+
}, m.toDate = function () {
|
|
2566
|
+
return new Date(this.valueOf());
|
|
2567
|
+
}, m.toJSON = function () {
|
|
2568
|
+
return this.isValid() ? this.toISOString() : null;
|
|
2569
|
+
}, m.toISOString = function () {
|
|
2570
|
+
return this.$d.toISOString();
|
|
2571
|
+
}, m.toString = function () {
|
|
2572
|
+
return this.$d.toUTCString();
|
|
2573
|
+
}, M;
|
|
2574
|
+
}(),
|
|
2575
|
+
T = _.prototype;
|
|
2576
|
+
return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function (t) {
|
|
2577
|
+
T[t[1]] = function (e) {
|
|
2578
|
+
return this.$g(e, t[0], t[1]);
|
|
2579
|
+
};
|
|
2580
|
+
}), w.extend = function (t, e) {
|
|
2581
|
+
return t.$i || (t(e, _, w), t.$i = !0), w;
|
|
2582
|
+
}, w.locale = S, w.isDayjs = p, w.unix = function (t) {
|
|
2583
|
+
return w(1e3 * t);
|
|
2584
|
+
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
2585
|
+
});
|
|
2586
|
+
})(dayjs_min);
|
|
2587
|
+
var dayjs_minExports = dayjs_min.exports;
|
|
2588
|
+
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
2589
|
+
|
|
2590
|
+
var Wrapper$a = styled.div(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n border-radius: 4px;\n height: 40px;\n background-color: ", ";\n position: relative;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: ", ";\n flex-grow: ", ";\n box-sizing: border-box;\n padding: 10px 0px;\n display: flex;\n align-items: center;\n"], ["\n border-radius: 4px;\n height: 40px;\n background-color: ", ";\n position: relative;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: ", ";\n flex-grow: ", ";\n box-sizing: border-box;\n padding: 10px 0px;\n display: flex;\n align-items: center;\n"])), function (props) { return (props.$readOnly ? '#f5f5f5' : '#ffffff'); }, function (props) { return (props.$invalid ? Colors.RED.Hex : '#cccccc'); }, function (_a) {
|
|
2591
|
+
var $style = _a.$style;
|
|
2592
|
+
return ($style === null || $style === void 0 ? void 0 : $style.borderRadius) || '4px';
|
|
2593
|
+
}, function (_a) {
|
|
2594
|
+
var $style = _a.$style;
|
|
2595
|
+
return ($style === null || $style === void 0 ? void 0 : $style.flexGrow) || 0;
|
|
2596
|
+
});
|
|
2597
|
+
var Trigger$1 = styled.select(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n appearance: none;\n box-shadow: none;\n outline: none;\n border: none;\n color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 2.9em;\n background-color: transparent;\n background-image: none;\n cursor: pointer;\n width: 100%;\n box-sizing: border-box;\n padding: 0px 30px 0px 10px;\n box-sizing: border-box;\n position: relative;\n z-index: 2;\n"], ["\n appearance: none;\n box-shadow: none;\n outline: none;\n border: none;\n color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 2.9em;\n background-color: transparent;\n background-image: none;\n cursor: pointer;\n width: 100%;\n box-sizing: border-box;\n padding: 0px 30px 0px 10px;\n box-sizing: border-box;\n position: relative;\n z-index: 2;\n"])), Colors.BLACK.Hex, FontSizes.DEFAULT, FontStyles.DEFAULT);
|
|
2598
|
+
var IconWrapper$2 = styled.span(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n position: absolute;\n right: 4px;\n height: 22px;\n z-index: 1;\n"], ["\n position: absolute;\n right: 4px;\n height: 22px;\n z-index: 1;\n"])));
|
|
2599
|
+
var Select = function (_a) {
|
|
2600
|
+
var options = _a.options, optionGroups = _a.optionGroups, placeholder = _a.placeholder, readOnly = _a.readOnly, invalid = _a.invalid, value = _a.value, onChange = _a.onChange, style = _a.style, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "value", "onChange", "style"]);
|
|
2601
|
+
return (React.createElement(Wrapper$a, { "$invalid": invalid, "$readOnly": readOnly, "$style": style },
|
|
2602
|
+
React.createElement(Trigger$1, __assign({ disabled: readOnly, onChange: onChange, placeholder: placeholder, value: value }, accessibleProps),
|
|
2603
|
+
placeholder ? (React.createElement("option", { disabled: true, value: '' }, placeholder)) : null,
|
|
2604
|
+
optionGroups &&
|
|
2605
|
+
optionGroups.map(function (group, i) {
|
|
2606
|
+
return (React.createElement("optgroup", { key: i, label: group.label || "Group ".concat(i) }, group.options.map(function (option, i) {
|
|
2607
|
+
return (React.createElement("option", { key: i, value: option.value }, option.label || option.value));
|
|
2608
|
+
})));
|
|
2609
|
+
}),
|
|
2610
|
+
options &&
|
|
2611
|
+
options.map(function (option, i) {
|
|
2612
|
+
return (React.createElement("option", { key: i, value: option.value }, option.label || option.value));
|
|
2613
|
+
})),
|
|
2614
|
+
React.createElement(IconWrapper$2, null,
|
|
2615
|
+
React.createElement(Icon, { color: Colors.BLACK.Hex, path: mdiChevronDown, size: '22px' }))));
|
|
2616
|
+
};
|
|
2617
|
+
var templateObject_1$f, templateObject_2$e, templateObject_3$c;
|
|
2618
|
+
|
|
2619
|
+
var DatePickerWrapper = styled.div(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
2620
|
+
var Middle = styled.div(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n margin: 0px -1px;\n"], ["\n margin: 0px -1px;\n"])));
|
|
2621
|
+
var DatePicker = function (_a) {
|
|
2622
|
+
var _b = _a.readOnly, readOnly = _b === void 0 ? false : _b, _c = _a.invalid, invalid = _c === void 0 ? false : _c, _d = _a.maxDate, maxDate = _d === void 0 ? null : _d, _e = _a.minDate, minDate = _e === void 0 ? null : _e, date = _a.date, onChange = _a.onChange;
|
|
2623
|
+
var dMaxDate = maxDate ? dayjs(maxDate) : dayjs();
|
|
2624
|
+
var dMinDate = minDate ? dayjs(minDate) : dMaxDate.subtract(100, 'year');
|
|
2625
|
+
var _f = useState(dayjs(date)), dDate = _f[0], setDate = _f[1];
|
|
2626
|
+
var _g = useState(Array.from({ length: dDate.daysInMonth() - 1 }, function (_, i) { return ({
|
|
2627
|
+
value: i + 1,
|
|
2628
|
+
}); })), dayOptions = _g[0], setDayOptions = _g[1];
|
|
2629
|
+
var months = [
|
|
2630
|
+
{ label: 'January', value: 1 },
|
|
2631
|
+
{ label: 'Feburary', value: 2 },
|
|
2632
|
+
{ label: 'March', value: 3 },
|
|
2633
|
+
{ label: 'April', value: 4 },
|
|
2634
|
+
{ label: 'May', value: 5 },
|
|
2635
|
+
{ label: 'June', value: 6 },
|
|
2636
|
+
{ label: 'July', value: 7 },
|
|
2637
|
+
{ label: 'August', value: 8 },
|
|
2638
|
+
{ label: 'September', value: 9 },
|
|
2639
|
+
{ label: 'October', value: 10 },
|
|
2640
|
+
{ label: 'November', value: 11 },
|
|
2641
|
+
{ label: 'December', value: 12 },
|
|
2642
|
+
];
|
|
2643
|
+
var years = Array.from({ length: dMaxDate.year() - dMinDate.year() + 1 }, function (_, i) { return ({
|
|
2644
|
+
label: (dMinDate.year() + i).toString(),
|
|
2645
|
+
value: dMinDate.year() + i,
|
|
2646
|
+
}); });
|
|
2647
|
+
useEffect(function () {
|
|
2648
|
+
setDayOptions(Array.from({ length: dDate.daysInMonth() }, function (_, i) { return ({
|
|
2649
|
+
value: i + 1,
|
|
2650
|
+
}); }));
|
|
2651
|
+
onChange(dDate.format('YYYY-MM-DD'));
|
|
2652
|
+
}, [dDate]);
|
|
2653
|
+
var handleDayChange = function (e) {
|
|
2654
|
+
var date = parseInt(e.target.value, 10);
|
|
2655
|
+
var new_date = dDate.date(date);
|
|
2656
|
+
setDate(new_date);
|
|
2657
|
+
};
|
|
2658
|
+
var handleMonthChange = function (e) {
|
|
2659
|
+
var month = parseInt(e.target.value, 10);
|
|
2660
|
+
var new_date = dDate.month(month - 1); // dayjs month is zero based
|
|
2661
|
+
setDate(new_date);
|
|
2662
|
+
};
|
|
2663
|
+
var handleYearChange = function (e) {
|
|
2664
|
+
var year = parseInt(e.target.value, 10);
|
|
2665
|
+
var new_date = dDate.year(year);
|
|
2666
|
+
setDate(new_date);
|
|
2667
|
+
};
|
|
2668
|
+
return (React.createElement(React.Fragment, null,
|
|
2669
|
+
React.createElement(DatePickerWrapper, null,
|
|
2670
|
+
React.createElement(Select, { invalid: invalid, onChange: handleMonthChange, options: months, readOnly: readOnly, style: { borderRadius: '4px 0px 0px 4px' }, value: dDate.format('M') }),
|
|
2671
|
+
React.createElement(Middle, null,
|
|
2672
|
+
React.createElement(Select, { invalid: invalid, onChange: handleDayChange, options: dayOptions, readOnly: readOnly, style: { borderRadius: '0px' }, value: dDate.format('D') })),
|
|
2673
|
+
React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px' }, value: dDate.format('YYYY') }))));
|
|
2674
|
+
};
|
|
2675
|
+
var templateObject_1$e, templateObject_2$d;
|
|
2269
2676
|
|
|
2270
|
-
var Scrim$1 = styled.div(templateObject_1$
|
|
2677
|
+
var Scrim$1 = styled.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9998;\n background: ", ";\n"], ["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9998;\n background: ", ";\n"])), function (_a) {
|
|
2271
2678
|
var $scrim = _a.$scrim;
|
|
2272
2679
|
return ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent');
|
|
2273
2680
|
});
|
|
2274
|
-
var Container$2 = styled.div(templateObject_2$
|
|
2681
|
+
var Container$2 = styled.div(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n z-index: 9999;\n min-width: 400px;\n width: ", ";\n overflow: hidden;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n outline: none;\n border: none;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n padding: 0px;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n background: #fff;\n"], ["\n z-index: 9999;\n min-width: 400px;\n width: ", ";\n overflow: hidden;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n outline: none;\n border: none;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n padding: 0px;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n background: #fff;\n"])), function (_a) {
|
|
2275
2682
|
var $width = _a.$width;
|
|
2276
2683
|
return $width || '400px';
|
|
2277
2684
|
});
|
|
2278
|
-
var Header$2 = styled.div(templateObject_3$
|
|
2685
|
+
var Header$2 = styled.div(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\n padding: 30px 20px;\n display: flex;\n align-items: flex-start;\n box-sizing: border-box;\n flex-shrink: 0;\n background: #fff;\n"], ["\n padding: 30px 20px;\n display: flex;\n align-items: flex-start;\n box-sizing: border-box;\n flex-shrink: 0;\n background: #fff;\n"])));
|
|
2279
2686
|
var Close$1 = styled.div(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n margin-left: auto;\n display: flex;\n align-items: center;\n padding-left: 20px;\n cursor: pointer;\n"], ["\n margin-left: auto;\n display: flex;\n align-items: center;\n padding-left: 20px;\n cursor: pointer;\n"])));
|
|
2280
2687
|
var ContentWrapper$1 = styled.div(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\n overflow-x: hidden;\n overflow-y: auto;\n box-sizing: border-box;\n flex: 1;\n background: #fff;\n"], ["\n overflow-x: hidden;\n overflow-y: auto;\n box-sizing: border-box;\n flex: 1;\n background: #fff;\n"])));
|
|
2281
2688
|
var ButtonBar$1 = styled.div(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n padding: 20px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n box-sizing: border-box;\n gap: 10px;\n flex-shrink: 0;\n background: #fff;\n"], ["\n padding: 20px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n box-sizing: border-box;\n gap: 10px;\n flex-shrink: 0;\n background: #fff;\n"])));
|
|
@@ -2306,18 +2713,18 @@ var Drawer = function (_a) {
|
|
|
2306
2713
|
primaryButton ? React.createElement(Button, __assign({}, primaryButton, { format: 'primary' })) : null)) : null),
|
|
2307
2714
|
scrim ? React.createElement(Scrim$1, { "$scrim": scrim, onClick: onClose }) : null));
|
|
2308
2715
|
};
|
|
2309
|
-
var templateObject_1$
|
|
2716
|
+
var templateObject_1$d, templateObject_2$c, templateObject_3$b, templateObject_4$7, templateObject_5$5, templateObject_6$3;
|
|
2310
2717
|
|
|
2311
|
-
var Wrapper$
|
|
2312
|
-
var LabelRow = styled.div(templateObject_1$
|
|
2313
|
-
var Label$2 = styled.label(templateObject_2$
|
|
2314
|
-
var Required = styled.span(templateObject_3$
|
|
2718
|
+
var Wrapper$9 = styled.div(function (props) { return (__assign({ margin: '0px 0px 18px 0px' }, props.style)); });
|
|
2719
|
+
var LabelRow = styled.div(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 0 4px 0;\n box-sizing: border-box;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 0 4px 0;\n box-sizing: border-box;\n"])));
|
|
2720
|
+
var Label$2 = styled.label(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 500;\n line-height: 1em;\n font-family: ", ";\n color: ", ";\n"], ["\n font-size: ", ";\n font-weight: 500;\n line-height: 1em;\n font-family: ", ";\n color: ", ";\n"])), FontSizes.DEFAULT, FontStyles.DEFAULT, Colors.BLACK.Hex);
|
|
2721
|
+
var Required = styled.span(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n color: ", ";\n margin-left: 4px;\n"], ["\n color: ", ";\n margin-left: 4px;\n"])), Colors.RED.Hex);
|
|
2315
2722
|
var Action = styled.span(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 500;\n line-height: 1em;\n font-family: ", ";\n color: ", ";\n cursor: pointer;\n"], ["\n font-size: ", ";\n font-weight: 500;\n line-height: 1em;\n font-family: ", ";\n color: ", ";\n cursor: pointer;\n"])), FontSizes.DEFAULT, FontStyles.DEFAULT, Colors.PRIMARY.Hex);
|
|
2316
2723
|
var Description = styled.div(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 400;\n line-height: 1.3em;\n font-family: ", ";\n color: ", ";\n margin: 0 0 8px 0;\n box-sizing: border-box;\n"], ["\n font-size: ", ";\n font-weight: 400;\n line-height: 1.3em;\n font-family: ", ";\n color: ", ";\n margin: 0 0 8px 0;\n box-sizing: border-box;\n"])), FontSizes.SMALL, FontStyles.DEFAULT, Colors.BLACK.Hex);
|
|
2317
2724
|
var Validation = styled.div(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 400;\n line-height: 1.3em;\n font-family: ", ";\n color: ", ";\n margin: 4px 0 0 0;\n box-sizing: border-box;\n"], ["\n font-size: ", ";\n font-weight: 400;\n line-height: 1.3em;\n font-family: ", ";\n color: ", ";\n margin: 4px 0 0 0;\n box-sizing: border-box;\n"])), FontSizes.SMALL, FontStyles.DEFAULT, Colors.RED.Hex);
|
|
2318
2725
|
var Field = function (_a) {
|
|
2319
2726
|
var action = _a.action, children = _a.children, validationText = _a.validationText, label = _a.label, description = _a.description, required = _a.required, htmlFor = _a.htmlFor, style = _a.style, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "description", "required", "htmlFor", "style"]);
|
|
2320
|
-
return (React.createElement(Wrapper$
|
|
2727
|
+
return (React.createElement(Wrapper$9, __assign({ style: style }, accessibleProps),
|
|
2321
2728
|
React.createElement(LabelRow, null,
|
|
2322
2729
|
React.createElement(Label$2, { htmlFor: htmlFor },
|
|
2323
2730
|
label,
|
|
@@ -2327,20 +2734,20 @@ var Field = function (_a) {
|
|
|
2327
2734
|
children,
|
|
2328
2735
|
validationText ? React.createElement(Validation, null, validationText) : null));
|
|
2329
2736
|
};
|
|
2330
|
-
var templateObject_1$
|
|
2737
|
+
var templateObject_1$c, templateObject_2$b, templateObject_3$a, templateObject_4$6, templateObject_5$4, templateObject_6$2;
|
|
2331
2738
|
|
|
2332
|
-
var Wrapper$
|
|
2739
|
+
var Wrapper$8 = styled.div(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n display: flex;\n gap: 16px;\n padding: 20px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n border-radius: 8px;\n border: 1px dashed ", ";\n background-color: ", ";\n"], ["\n display: flex;\n gap: 16px;\n padding: 20px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n border-radius: 8px;\n border: 1px dashed ", ";\n background-color: ", ";\n"])), function (_a) {
|
|
2333
2740
|
var $isDragOver = _a.$isDragOver;
|
|
2334
2741
|
return ($isDragOver ? "".concat(Colors.PRIMARY.Hex) : '#ccc');
|
|
2335
2742
|
}, function (_a) {
|
|
2336
2743
|
var $isDragOver = _a.$isDragOver;
|
|
2337
2744
|
return $isDragOver ? "rgba(".concat(Colors.PRIMARY.Rgb, ", 0.05)") : '#ffffff';
|
|
2338
2745
|
});
|
|
2339
|
-
var StyledIcon$1 = styled.div(templateObject_2$
|
|
2746
|
+
var StyledIcon$1 = styled.div(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n width: 80px;\n height: 80px;\n cursor: pointer;\n flex-shrink: 0;\n background-color: ", ";\n border-radius: 80px;\n display: flex;\n margin: auto;\n justify-content: center;\n align-items: center;\n"], ["\n width: 80px;\n height: 80px;\n cursor: pointer;\n flex-shrink: 0;\n background-color: ", ";\n border-radius: 80px;\n display: flex;\n margin: auto;\n justify-content: center;\n align-items: center;\n"])), function (_a) {
|
|
2340
2747
|
var $isDragOver = _a.$isDragOver;
|
|
2341
2748
|
return ($isDragOver ? '#fff' : '#f5f5f5');
|
|
2342
2749
|
});
|
|
2343
|
-
var Files = styled.div(templateObject_3$
|
|
2750
|
+
var Files = styled.div(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 10px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 10px;\n"])));
|
|
2344
2751
|
var File = styled.div(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n width: 300px;\n padding: 10px;\n align-items: center;\n gap: 2px;\n list-style-type: none;\n border-radius: 4px;\n border: 1px solid #ccc;\n"], ["\n display: flex;\n justify-content: space-between;\n width: 300px;\n padding: 10px;\n align-items: center;\n gap: 2px;\n list-style-type: none;\n border-radius: 4px;\n border: 1px solid #ccc;\n"])));
|
|
2345
2752
|
var CopyWrapper = styled.div(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n padding: ", ";\n margin-top: ", ";\n"], ["\n padding: ", ";\n margin-top: ", ";\n"])), function (_a) {
|
|
2346
2753
|
var $fileState = _a.$fileState;
|
|
@@ -2349,7 +2756,7 @@ var CopyWrapper = styled.div(templateObject_5$3 || (templateObject_5$3 = __makeT
|
|
|
2349
2756
|
var $fileState = _a.$fileState;
|
|
2350
2757
|
return ($fileState ? '' : '16px');
|
|
2351
2758
|
});
|
|
2352
|
-
var IconWrapper$
|
|
2759
|
+
var IconWrapper$1 = styled.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n cursor: pointer;\n"], ["\n cursor: pointer;\n"])));
|
|
2353
2760
|
var ProgressBar = styled.div(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n width: 100px;\n height: 14px;\n border-radius: 4px;\n background: #f5f5f5;\n overflow-x: hidden;\n"], ["\n width: 100px;\n height: 14px;\n border-radius: 4px;\n background: #f5f5f5;\n overflow-x: hidden;\n"])));
|
|
2354
2761
|
var Progress = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n border-radius: 4px 0px 0px 4px;\n background: ", ";\n"], ["\n width: ", ";\n height: 100%;\n border-radius: 4px 0px 0px 4px;\n background: ", ";\n"])), function (_a) {
|
|
2355
2762
|
var $width = _a.$width;
|
|
@@ -2409,12 +2816,12 @@ var FileUpload = function (_a) {
|
|
|
2409
2816
|
onFileDelete(files[index]);
|
|
2410
2817
|
};
|
|
2411
2818
|
return (React.createElement(React.Fragment, null,
|
|
2412
|
-
React.createElement(Wrapper$
|
|
2819
|
+
React.createElement(Wrapper$8, __assign({ "$isDragOver": dragOver, onDragLeave: handleDragLeave, onDragOver: handleDragOver, onDrop: handleDrop }, accessibleProps),
|
|
2413
2820
|
files.length > 0 && (React.createElement(Files, null, Array.from(files).map(function (singleFile, index) {
|
|
2414
2821
|
var _a;
|
|
2415
2822
|
return (React.createElement(File, { key: index },
|
|
2416
2823
|
React.createElement(Copy, { children: (_a = singleFile.file) === null || _a === void 0 ? void 0 : _a.name, type: 'bold' }),
|
|
2417
|
-
singleFile.uploadUpdate === 100 || !progress ? (React.createElement(IconWrapper$
|
|
2824
|
+
singleFile.uploadUpdate === 100 || !progress ? (React.createElement(IconWrapper$1, { onClick: function () { return removeItem(index); } },
|
|
2418
2825
|
React.createElement(Icon, { color: 'red', path: mdiMinusCircle, size: 1 }))) : (React.createElement(ProgressBar, null,
|
|
2419
2826
|
React.createElement(Progress, { "$width": (singleFile === null || singleFile === void 0 ? void 0 : singleFile.uploadUpdate) || 0, role: 'progressbar' })))));
|
|
2420
2827
|
}))),
|
|
@@ -2426,7 +2833,7 @@ var FileUpload = function (_a) {
|
|
|
2426
2833
|
React.createElement(Copy, { align: 'center', children: 'Drag & drop files here or click to choose', type: 'bold' }),
|
|
2427
2834
|
React.createElement(Copy, { align: 'center', children: "".concat(maxFileSize, " MB max file size"), color: 'GRAY' }))))));
|
|
2428
2835
|
};
|
|
2429
|
-
var templateObject_1$
|
|
2836
|
+
var templateObject_1$b, templateObject_2$a, templateObject_3$9, templateObject_4$5, templateObject_5$3, templateObject_6$1, templateObject_7$1, templateObject_8;
|
|
2430
2837
|
|
|
2431
2838
|
var formatAsPhone = function (number) {
|
|
2432
2839
|
var formatted_value = "".concat(number).replace(/[^0-9.]/g, '');
|
|
@@ -2455,9 +2862,9 @@ var formatAsSsn = function (number) {
|
|
|
2455
2862
|
return formatted_value;
|
|
2456
2863
|
};
|
|
2457
2864
|
|
|
2458
|
-
var StyledInput = styled.input(templateObject_1$
|
|
2459
|
-
var StyledSuffix = styled.div(templateObject_2$
|
|
2460
|
-
var StyledWrapper = styled.div(templateObject_3$
|
|
2865
|
+
var StyledInput = styled.input(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1.28em;\n color: ", ";\n position: relative;\n height: auto;\n padding: 10px;\n opacity: ", ";\n box-shadow: none;\n outline: none;\n margin: 0px;\n text-indent: 0px;\n --webkit-appearance: none;\n box-sizing: border-box;\n display: block;\n width: 100%;\n &:focus {\n border-color: ", ";\n }\n"], ["\n background-color: ", ";\n border-radius: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1.28em;\n color: ", ";\n position: relative;\n height: auto;\n padding: 10px;\n opacity: ", ";\n box-shadow: none;\n outline: none;\n margin: 0px;\n text-indent: 0px;\n --webkit-appearance: none;\n box-sizing: border-box;\n display: block;\n width: 100%;\n &:focus {\n border-color: ", ";\n }\n"])), function (props) { return (props.$readOnly ? '#f5f5f5' : '#ffffff'); }, function (props) { return (props.$suffix ? '4px 0px 0px 4px' : '4px'); }, function (props) { return (props.$invalid && !props.$readOnly ? Colors.RED.Hex : '#cccccc'); }, FontSizes.DEFAULT, FontStyles.DEFAULT, function (props) { return (props.$invalid && !props.$readOnly ? Colors.RED.Hex : Colors.BLACK.Hex); }, function (props) { return (props.$readOnly ? 0.6 : 1); }, function (props) { return (props.$readOnly ? '#cccccc' : Colors.PRIMARY.Hex); });
|
|
2866
|
+
var StyledSuffix = styled.div(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 10px;\n height: auto;\n background: #f5f5f5;\n border-width: 1px 1px 1px 0px;\n border-style: solid;\n border-color: #cccccc;\n border-radius: 0px 4px 4px 0px;\n font-family: ", ";\n font-style: normal;\n font-weight: 400;\n font-size: ", ";\n color: Colors.BLACK.Hex;\n"], ["\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 10px;\n height: auto;\n background: #f5f5f5;\n border-width: 1px 1px 1px 0px;\n border-style: solid;\n border-color: #cccccc;\n border-radius: 0px 4px 4px 0px;\n font-family: ", ";\n font-style: normal;\n font-weight: 400;\n font-size: ", ";\n color: Colors.BLACK.Hex;\n"])), FontStyles.DEFAULT, FontSizes.DEFAULT);
|
|
2867
|
+
var StyledWrapper = styled.div(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
2461
2868
|
var StyledTextarea = styled.textarea(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1.6em;\n color: ", ";\n position: relative;\n height: ", ";\n padding: 10px;\n opacity: ", ";\n box-shadow: none;\n outline: none;\n padding: 10px,\n margin: 0px,\n text-indent: 0px,\n --webkit-appearance: none;\n box-sizing: border-box;\n display: block;\n width: 100%;\n &:focus {\n border-color: ", ";\n }\n"], ["\n background-color: ", ";\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1.6em;\n color: ", ";\n position: relative;\n height: ", ";\n padding: 10px;\n opacity: ", ";\n box-shadow: none;\n outline: none;\n padding: 10px,\n margin: 0px,\n text-indent: 0px,\n --webkit-appearance: none;\n box-sizing: border-box;\n display: block;\n width: 100%;\n &:focus {\n border-color: ", ";\n }\n"])), function (props) { return (props.$readOnly ? '#f5f5f5' : '#ffffff'); }, function (props) { return (props.$invalid && !props.$readOnly ? Colors.RED.Hex : '#cccccc'); }, FontSizes.DEFAULT, FontStyles.DEFAULT, function (props) { return (props.$invalid && !props.$readOnly ? Colors.RED.Hex : Colors.BLACK.Hex); }, function (props) { return props.$height || '40px'; }, function (props) { return (props.$readOnly ? 0.6 : 1); }, function (props) { return (props.$readOnly ? '#cccccc' : Colors.PRIMARY.Hex); });
|
|
2462
2869
|
var Input$1 = function (_a) {
|
|
2463
2870
|
var format = _a.format, suffix = _a.suffix, height = _a.height, invalid = _a.invalid, max = _a.max, maxLength = _a.maxLength, min = _a.min, onBlur = _a.onBlur, onChange = _a.onChange, onKeyDown = _a.onKeyDown, placeholder = _a.placeholder, readOnly = _a.readOnly, step = _a.step, _b = _a.type, type = _b === void 0 ? 'text' : _b, _c = _a.value, value = _c === void 0 ? '' : _c, accessibleProps = __rest(_a, ["format", "suffix", "height", "invalid", "max", "maxLength", "min", "onBlur", "onChange", "onKeyDown", "placeholder", "readOnly", "step", "type", "value"]);
|
|
@@ -2474,7 +2881,7 @@ var Input$1 = function (_a) {
|
|
|
2474
2881
|
if (type === 'email') {
|
|
2475
2882
|
e.target.value = e.target.value.toLowerCase();
|
|
2476
2883
|
}
|
|
2477
|
-
if (type === 'number' && max && parseInt(e.target.value, 10) > max) {
|
|
2884
|
+
if (type === 'number' && max && parseInt(e.target.value, 10) > parseInt(max, 10)) {
|
|
2478
2885
|
e.target.value = "".concat(max);
|
|
2479
2886
|
}
|
|
2480
2887
|
if (!readOnly && onChange)
|
|
@@ -2503,7 +2910,7 @@ var Input$1 = function (_a) {
|
|
|
2503
2910
|
React.createElement(StyledInput, __assign({ "$invalid": invalid, "$readOnly": readOnly, "$suffix": suffix, max: max, maxLength: maxLength, min: min, onBlur: onBlur, onChange: handleInputChange, onKeyDown: onKeyDown, placeholder: placeholder, step: step, type: type, value: formatted_value }, accessibleProps)),
|
|
2504
2911
|
suffix && React.createElement(StyledSuffix, null, suffix)));
|
|
2505
2912
|
};
|
|
2506
|
-
var templateObject_1$
|
|
2913
|
+
var templateObject_1$a, templateObject_2$9, templateObject_3$8, templateObject_4$4;
|
|
2507
2914
|
|
|
2508
2915
|
var colorMapping = {
|
|
2509
2916
|
black: {
|
|
@@ -2547,9 +2954,9 @@ var Logo = function (_a) {
|
|
|
2547
2954
|
}
|
|
2548
2955
|
};
|
|
2549
2956
|
|
|
2550
|
-
var Wrapper$
|
|
2551
|
-
var Container$1 = styled.dialog(templateObject_2$
|
|
2552
|
-
var Header$1 = styled.div(templateObject_3$
|
|
2957
|
+
var Wrapper$7 = styled.div(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9999;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9999;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
2958
|
+
var Container$1 = styled.dialog(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n max-width: ", ";\n width: auto;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n outline: none;\n border: none;\n position: relative;\n padding: 0px;\n box-sizing: border-box;\n"], ["\n max-width: ", ";\n width: auto;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n outline: none;\n border: none;\n position: relative;\n padding: 0px;\n box-sizing: border-box;\n"])), function (props) { return props.$maxWidth || '90vw'; });
|
|
2959
|
+
var Header$1 = styled.div(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n position: sticky;\n top: 0;\n padding: 20px;\n border-bottom: 1px solid #e5e5e5;\n display: flex;\n align-items: center;\n background: #ffffff;\n box-sizing: border-box;\n"], ["\n position: sticky;\n top: 0;\n padding: 20px;\n border-bottom: 1px solid #e5e5e5;\n display: flex;\n align-items: center;\n background: #ffffff;\n box-sizing: border-box;\n"])));
|
|
2553
2960
|
var Close = styled.div(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n margin-left: auto;\n display: flex;\n align-items: center;\n padding-left: 20px;\n cursor: pointer;\n"], ["\n margin-left: auto;\n display: flex;\n align-items: center;\n padding-left: 20px;\n cursor: pointer;\n"])));
|
|
2554
2961
|
var CloseMsg = styled.span(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1em;\n color: ", ";\n"], ["\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1em;\n color: ", ";\n"])), FontSizes.SMALL, FontStyles.DEFAULT, Colors.MEDIUM_GRAY.Hex);
|
|
2555
2962
|
var ContentWrapper = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n overflow-x: hidden;\n overflow-y: auto;\n background: #ffffff;\n max-height: calc(100vh - 260px);\n box-sizing: border-box;\n"], ["\n overflow-x: hidden;\n overflow-y: auto;\n background: #ffffff;\n max-height: calc(100vh - 260px);\n box-sizing: border-box;\n"])));
|
|
@@ -2566,7 +2973,7 @@ var Modal = function (_a) {
|
|
|
2566
2973
|
document.onkeydown = null;
|
|
2567
2974
|
};
|
|
2568
2975
|
}, []);
|
|
2569
|
-
return (React.createElement(Wrapper$
|
|
2976
|
+
return (React.createElement(Wrapper$7, null,
|
|
2570
2977
|
React.createElement(Container$1, __assign({ "$maxWidth": maxWidth, open: true }, accessibleProps),
|
|
2571
2978
|
React.createElement(Header$1, null,
|
|
2572
2979
|
title ? React.createElement(Heading, { type: 'secondary' }, title) : null,
|
|
@@ -2585,23 +2992,23 @@ var Modal = function (_a) {
|
|
|
2585
2992
|
secondaryButton ? React.createElement(Button, __assign({}, secondaryButton, { format: 'secondary' })) : null,
|
|
2586
2993
|
primaryButton ? (React.createElement(Button, __assign({}, primaryButton, { format: 'primary', margin: '0px 0px 0px 10px' }))) : null)) : null)) : null)));
|
|
2587
2994
|
};
|
|
2588
|
-
var templateObject_1$
|
|
2995
|
+
var templateObject_1$9, templateObject_2$8, templateObject_3$7, templateObject_4$3, templateObject_5$2, templateObject_6, templateObject_7;
|
|
2589
2996
|
|
|
2590
|
-
var Wrapper$
|
|
2591
|
-
var MenuItem = styled.div(templateObject_2$
|
|
2592
|
-
var Title = styled.span(templateObject_3$
|
|
2997
|
+
var Wrapper$6 = styled.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n background: #fff;\n border-radius: 8px;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n display: flex;\n flex-direction: column;\n gap: 4px;\n max-height: ", ";\n padding: 10px;\n width: 200px;\n"], ["\n background: #fff;\n border-radius: 8px;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n display: flex;\n flex-direction: column;\n gap: 4px;\n max-height: ", ";\n padding: 10px;\n width: 200px;\n"])), function (props) { return props.$maxHeight || '312px'; });
|
|
2998
|
+
var MenuItem = styled.div(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n align-items: center;\n border-radius: 8px;\n border: 1px solid transparent;\n display: flex;\n gap: 8px;\n height: 38px;\n padding: 8px;\n &:hover {\n background: rgba(1, 147, 215, 0.1);\n cursor: pointer;\n }\n"], ["\n align-items: center;\n border-radius: 8px;\n border: 1px solid transparent;\n display: flex;\n gap: 8px;\n height: 38px;\n padding: 8px;\n &:hover {\n background: rgba(1, 147, 215, 0.1);\n cursor: pointer;\n }\n"])));
|
|
2999
|
+
var Title = styled.span(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n font-family: Roboto;\n font-size: 14px;\n font-weight: 400;\n height: auto;\n letter-spacing: 0px;\n line-height: 22px;\n text-align: left;\n"], ["\n font-family: Roboto;\n font-size: 14px;\n font-weight: 400;\n height: auto;\n letter-spacing: 0px;\n line-height: 22px;\n text-align: left;\n"])));
|
|
2593
3000
|
var MoreMenu = function (_a) {
|
|
2594
3001
|
var maxHeight = _a.maxHeight, _b = _a.menuItems, menuItems = _b === void 0 ? [] : _b, accessibleProps = __rest(_a, ["maxHeight", "menuItems"]);
|
|
2595
|
-
return (React.createElement(Wrapper$
|
|
3002
|
+
return (React.createElement(Wrapper$6, __assign({ "$maxHeight": maxHeight }, accessibleProps), menuItems.map(function (item) {
|
|
2596
3003
|
return (React.createElement(MenuItem, __assign({ onClick: item.onClick }, accessibleProps),
|
|
2597
3004
|
item.icon ? (React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: item.icon, size: '20px' })) : null,
|
|
2598
3005
|
React.createElement(Title, null, item.label)));
|
|
2599
3006
|
})));
|
|
2600
3007
|
};
|
|
2601
|
-
var templateObject_1$
|
|
3008
|
+
var templateObject_1$8, templateObject_2$7, templateObject_3$6;
|
|
2602
3009
|
|
|
2603
|
-
var Wrapper$
|
|
2604
|
-
var Trigger
|
|
3010
|
+
var Wrapper$5 = styled.div(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
3011
|
+
var Trigger = styled.div(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n box-sizing: border-box;\n border-radius: ", ";\n height: 40px;\n padding: 0 10px;\n position: relative;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n background-color: ", ";\n background-image: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n z-index: 1;\n"], ["\n box-sizing: border-box;\n border-radius: ", ";\n height: 40px;\n padding: 0 10px;\n position: relative;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n background-color: ", ";\n background-image: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n z-index: 1;\n"])), function (props) { return (props.$showOptions ? '4px 4px 0px 0px' : '4px'); }, function (props) {
|
|
2605
3012
|
if (props.$invalid) {
|
|
2606
3013
|
return Colors.RED.Hex;
|
|
2607
3014
|
}
|
|
@@ -2612,15 +3019,15 @@ var Trigger$1 = styled.div(templateObject_2$7 || (templateObject_2$7 = __makeTem
|
|
|
2612
3019
|
return '#cccccc';
|
|
2613
3020
|
}
|
|
2614
3021
|
}, function (props) { return (props.$readOnly ? '#f5f5f5' : '#ffffff'); });
|
|
2615
|
-
var Value = styled.div(templateObject_3$
|
|
3022
|
+
var Value = styled.div(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n line-height: 2.9em;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n"], ["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n line-height: 2.9em;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n"])), Colors.BLACK.Hex, FontStyles.DEFAULT, FontSizes.DEFAULT);
|
|
2616
3023
|
var Options = styled.div(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n background: #fff;\n border-color: ", ";\n border-radius: 0px 0px 4px 4px;\n border-style: solid;\n border-top: none;\n border-width: 1px;\n left: 0;\n position: absolute;\n right: 0;\n z-index: 2;\n"], ["\n background: #fff;\n border-color: ", ";\n border-radius: 0px 0px 4px 4px;\n border-style: solid;\n border-top: none;\n border-width: 1px;\n left: 0;\n position: absolute;\n right: 0;\n z-index: 2;\n"])), Colors.PRIMARY.Hex);
|
|
2617
3024
|
var Scrim = styled.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1;\n"], ["\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1;\n"])));
|
|
2618
3025
|
var MultiSelect = function (_a) {
|
|
2619
3026
|
var readOnly = _a.readOnly, _b = _a.displayCount, displayCount = _b === void 0 ? 3 : _b, invalid = _a.invalid, onChange = _a.onChange, _c = _a.options, options = _c === void 0 ? [] : _c, selected = _a.selected, showSelectAll = _a.showSelectAll, accessibleProps = __rest(_a, ["readOnly", "displayCount", "invalid", "onChange", "options", "selected", "showSelectAll"]);
|
|
2620
3027
|
var _d = useState(false), showOptions = _d[0], setShowOptions = _d[1];
|
|
2621
3028
|
var selected_options = options.filter(function (o) { return selected.includes(o.value); });
|
|
2622
|
-
return (React.createElement(Wrapper$
|
|
2623
|
-
React.createElement(Trigger
|
|
3029
|
+
return (React.createElement(Wrapper$5, null,
|
|
3030
|
+
React.createElement(Trigger, __assign({ "$invalid": invalid, "$readOnly": readOnly, "$showOptions": showOptions, onClick: readOnly ? undefined : setShowOptions.bind(null, !showOptions) }, accessibleProps),
|
|
2624
3031
|
React.createElement(Value, null, selected.length > 0 && selected.length <= displayCount
|
|
2625
3032
|
? selected_options.map(function (o) { return o.label || o.value; }).join(', ')
|
|
2626
3033
|
: "".concat(selected.length, " Selected")),
|
|
@@ -2629,36 +3036,7 @@ var MultiSelect = function (_a) {
|
|
|
2629
3036
|
React.createElement(Checklist, { disabled: readOnly, onChange: onChange, options: options, selected: selected, showSelectAll: showSelectAll }))) : null,
|
|
2630
3037
|
showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
|
|
2631
3038
|
};
|
|
2632
|
-
var templateObject_1$
|
|
2633
|
-
|
|
2634
|
-
var Wrapper$5 = styled.div(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n border-radius: 4px;\n height: 40px;\n background-color: ", ";\n position: relative;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: ", ";\n flex-grow: ", ";\n box-sizing: border-box;\n padding: 10px 0px;\n display: flex;\n align-items: center;\n"], ["\n border-radius: 4px;\n height: 40px;\n background-color: ", ";\n position: relative;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: ", ";\n flex-grow: ", ";\n box-sizing: border-box;\n padding: 10px 0px;\n display: flex;\n align-items: center;\n"])), function (props) { return (props.$readOnly ? '#f5f5f5' : '#ffffff'); }, function (props) { return (props.$invalid ? Colors.RED.Hex : '#cccccc'); }, function (_a) {
|
|
2635
|
-
var $style = _a.$style;
|
|
2636
|
-
return ($style === null || $style === void 0 ? void 0 : $style.borderRadius) || '4px';
|
|
2637
|
-
}, function (_a) {
|
|
2638
|
-
var $style = _a.$style;
|
|
2639
|
-
return ($style === null || $style === void 0 ? void 0 : $style.flexGrow) || 0;
|
|
2640
|
-
});
|
|
2641
|
-
var Trigger = styled.select(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n appearance: none;\n box-shadow: none;\n outline: none;\n border: none;\n color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 2.9em;\n background-color: transparent;\n background-image: none;\n cursor: pointer;\n width: 100%;\n box-sizing: border-box;\n padding: 0px 30px 0px 10px;\n box-sizing: border-box;\n position: relative;\n z-index: 2;\n"], ["\n appearance: none;\n box-shadow: none;\n outline: none;\n border: none;\n color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 2.9em;\n background-color: transparent;\n background-image: none;\n cursor: pointer;\n width: 100%;\n box-sizing: border-box;\n padding: 0px 30px 0px 10px;\n box-sizing: border-box;\n position: relative;\n z-index: 2;\n"])), Colors.BLACK.Hex, FontSizes.DEFAULT, FontStyles.DEFAULT);
|
|
2642
|
-
var IconWrapper$1 = styled.span(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n position: absolute;\n right: 4px;\n height: 22px;\n z-index: 1;\n"], ["\n position: absolute;\n right: 4px;\n height: 22px;\n z-index: 1;\n"])));
|
|
2643
|
-
var Select = function (_a) {
|
|
2644
|
-
var options = _a.options, optionGroups = _a.optionGroups, placeholder = _a.placeholder, readOnly = _a.readOnly, invalid = _a.invalid, value = _a.value, onChange = _a.onChange, style = _a.style, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "value", "onChange", "style"]);
|
|
2645
|
-
return (React.createElement(Wrapper$5, { "$invalid": invalid, "$readOnly": readOnly, "$style": style },
|
|
2646
|
-
React.createElement(Trigger, __assign({ disabled: readOnly, onChange: onChange, placeholder: placeholder, value: value }, accessibleProps),
|
|
2647
|
-
placeholder ? (React.createElement("option", { disabled: true, value: '' }, placeholder)) : null,
|
|
2648
|
-
optionGroups &&
|
|
2649
|
-
optionGroups.map(function (group, i) {
|
|
2650
|
-
return (React.createElement("optgroup", { key: i, label: group.label || "Group ".concat(i) }, group.options.map(function (option, i) {
|
|
2651
|
-
return (React.createElement("option", { key: i, value: option.value }, option.label || option.value));
|
|
2652
|
-
})));
|
|
2653
|
-
}),
|
|
2654
|
-
options &&
|
|
2655
|
-
options.map(function (option, i) {
|
|
2656
|
-
return (React.createElement("option", { key: i, value: option.value }, option.label || option.value));
|
|
2657
|
-
})),
|
|
2658
|
-
React.createElement(IconWrapper$1, null,
|
|
2659
|
-
React.createElement(Icon, { color: Colors.BLACK.Hex, path: mdiChevronDown, size: '22px' }))));
|
|
2660
|
-
};
|
|
2661
|
-
var templateObject_1$7, templateObject_2$6, templateObject_3$5;
|
|
3039
|
+
var templateObject_1$7, templateObject_2$6, templateObject_3$5, templateObject_4$2, templateObject_5$1;
|
|
2662
3040
|
|
|
2663
3041
|
var Wrapper$4 = styled.nav(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n column-gap: 10px;\n"], ["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n column-gap: 10px;\n"])));
|
|
2664
3042
|
var Pagination = function (_a) {
|
|
@@ -2740,9 +3118,9 @@ var Tab = styled.div(templateObject_2$3 || (templateObject_2$3 = __makeTemplateO
|
|
|
2740
3118
|
var Badge = styled.div(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n display: flex;\n width: 18px;\n height: 18px;\n justify-content: center;\n align-items: center;\n border-radius: 9px;\n background: ", ";\n color: #fff;\n font-family: ", ";\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n letter-spacing: 1px;\n"], ["\n display: flex;\n width: 18px;\n height: 18px;\n justify-content: center;\n align-items: center;\n border-radius: 9px;\n background: ", ";\n color: #fff;\n font-family: ", ";\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n letter-spacing: 1px;\n"])), function (props) { return (props.$isError ? Colors.RED.Hex : Colors.PRIMARY.Hex); }, FontStyles.DEFAULT);
|
|
2741
3119
|
var Tabs = function (_a) {
|
|
2742
3120
|
var tabs = _a.tabs, accessibleProps = __rest(_a, ["tabs"]);
|
|
2743
|
-
return (React.createElement(Wrapper$2, __assign({}, accessibleProps), tabs.map(function (_a) {
|
|
3121
|
+
return (React.createElement(Wrapper$2, __assign({}, accessibleProps), tabs.map(function (_a, i) {
|
|
2744
3122
|
var isActive = _a.isActive, label = _a.label, badgeCount = _a.badgeCount, errorBadge = _a.errorBadge, onClick = _a.onClick, accessibleProps = __rest(_a, ["isActive", "label", "badgeCount", "errorBadge", "onClick"]);
|
|
2745
|
-
return (React.createElement(Tab, __assign({ "$isActive": isActive || false, onClick: isActive ? undefined : onClick }, accessibleProps),
|
|
3123
|
+
return (React.createElement(Tab, __assign({ "$isActive": isActive || false, key: i, onClick: isActive ? undefined : onClick }, accessibleProps),
|
|
2746
3124
|
badgeCount ? React.createElement(Badge, { "$isError": errorBadge || false }, badgeCount) : null,
|
|
2747
3125
|
label));
|
|
2748
3126
|
})));
|
|
@@ -2791,5 +3169,5 @@ var ZeroState = function (_a) {
|
|
|
2791
3169
|
};
|
|
2792
3170
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
2793
3171
|
|
|
2794
|
-
export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, Drawer, Field, FileUpload, Heading, Input$1 as Input, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
|
|
3172
|
+
export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, DatePicker, Drawer, Field, FileUpload, Heading, Input$1 as Input, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
|
|
2795
3173
|
//# sourceMappingURL=index.js.map
|