@hexure/ui 1.13.60 → 1.13.62
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 +16 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +16 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +82 -82
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -376,7 +376,7 @@ const Wrapper$g = styled.div `
|
|
|
376
376
|
justify-content: center;
|
|
377
377
|
box-sizing: border-box;
|
|
378
378
|
`;
|
|
379
|
-
const Container$
|
|
379
|
+
const Container$5 = styled.dialog(props => (Object.assign({ maxWidth: '600px', width: 'auto', borderRadius: '8px', overflow: 'hidden', boxShadow: '0px 10px 30px -15px rgba(0, 0, 0, 0.2)', outline: 'none', border: 'none', position: 'relative', padding: '40px', textAlign: 'center', boxSizing: 'border-box', wordWrap: 'break-word' }, props.$customStyle)));
|
|
380
380
|
const Buttons$1 = styled.div `
|
|
381
381
|
display: flex;
|
|
382
382
|
gap: 10px;
|
|
@@ -389,7 +389,7 @@ const ActionDialog = (_a) => {
|
|
|
389
389
|
var { description, title, primaryButton, secondaryButton, tertiaryButton, style = {}, dataItemid } = _a, accessibleProps = __rest(_a, ["description", "title", "primaryButton", "secondaryButton", "tertiaryButton", "style", "dataItemid"]);
|
|
390
390
|
const baseId = dataItemid || 'action-dialog';
|
|
391
391
|
return (React.createElement(Wrapper$g, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
|
|
392
|
-
React.createElement(Container$
|
|
392
|
+
React.createElement(Container$5, { "$customStyle": style, "data-itemid": `${baseId}-container`, open: true },
|
|
393
393
|
title ? (React.createElement(Heading, { "data-itemid": `${baseId}-title`, margin: '0px 0px 20px 0px', type: 'secondary' }, title)) : null,
|
|
394
394
|
description ? (React.createElement(Copy, { align: 'center', "data-itemid": `${baseId}-description` }, description)) : null,
|
|
395
395
|
primaryButton || secondaryButton || tertiaryButton ? (React.createElement(Buttons$1, { "data-itemid": `${baseId}-buttons` },
|
|
@@ -494,7 +494,7 @@ const Logo = (_a) => {
|
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
496
|
|
|
497
|
-
const Container$
|
|
497
|
+
const Container$4 = styled.header `
|
|
498
498
|
width: 100%;
|
|
499
499
|
display: flex;
|
|
500
500
|
padding: 20px;
|
|
@@ -519,7 +519,7 @@ const Buttons = styled.div `
|
|
|
519
519
|
`;
|
|
520
520
|
const AppHeader = ({ logoUrl, buttons = [], dataItemid }) => {
|
|
521
521
|
const baseId = dataItemid || 'app-header';
|
|
522
|
-
return (React.createElement(Container$
|
|
522
|
+
return (React.createElement(Container$4, { "data-itemid": `${baseId}-container` },
|
|
523
523
|
React.createElement(LogoWrapper, { "data-itemid": `${baseId}-logo-wrapper` }, logoUrl ? (React.createElement(Image, { "data-itemid": `${baseId}-logo`, src: logoUrl })) : (React.createElement(Logo, { "data-itemid": `${baseId}-default-logo`, height: '30px' }))),
|
|
524
524
|
React.createElement(Buttons, { "data-itemid": `${baseId}-buttons` }, buttons.map((b, i) => (React.createElement(Button, Object.assign({ key: i }, b, { "data-itemid": `${baseId}-button-${i}` })))))));
|
|
525
525
|
};
|
|
@@ -1288,7 +1288,7 @@ const Scrim$1 = styled.div `
|
|
|
1288
1288
|
z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
|
|
1289
1289
|
background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
|
|
1290
1290
|
`;
|
|
1291
|
-
const Container$
|
|
1291
|
+
const Container$3 = styled.div `
|
|
1292
1292
|
z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
|
|
1293
1293
|
min-width: 400px;
|
|
1294
1294
|
width: ${({ $width }) => $width || '400px'};
|
|
@@ -1331,8 +1331,8 @@ const ContentWrapper$1 = styled.div `
|
|
|
1331
1331
|
const ButtonBar$1 = styled.div `
|
|
1332
1332
|
padding: 20px;
|
|
1333
1333
|
display: flex;
|
|
1334
|
-
align-items:
|
|
1335
|
-
justify-content:
|
|
1334
|
+
align-items: flex-end;
|
|
1335
|
+
justify-content: center;
|
|
1336
1336
|
box-sizing: border-box;
|
|
1337
1337
|
gap: 10px;
|
|
1338
1338
|
flex-shrink: 0;
|
|
@@ -1357,7 +1357,7 @@ const Drawer = (_a) => {
|
|
|
1357
1357
|
}, [onClose]);
|
|
1358
1358
|
const baseId = dataItemid || 'drawer';
|
|
1359
1359
|
return (React.createElement(React.Fragment, null,
|
|
1360
|
-
React.createElement(Container$
|
|
1360
|
+
React.createElement(Container$3, Object.assign({}, accessibleProps, { "$position": position, "$width": width, "data-itemid": `${baseId}-container` }),
|
|
1361
1361
|
React.createElement(Header$2, { "data-itemid": `${baseId}-header` },
|
|
1362
1362
|
React.createElement("div", { "data-itemid": `${baseId}-header-content` },
|
|
1363
1363
|
title ? (React.createElement(Heading, { "data-itemid": `${baseId}-title`, type: 'secondary' }, title)) : null,
|
|
@@ -2203,6 +2203,7 @@ const StepLine = styled.div `
|
|
|
2203
2203
|
background-color: ${props => (props.$active ? Colors.PRIMARY.Hex : Colors.MEDIUM_GRAY.Hex)};
|
|
2204
2204
|
transition: background-color 0.5s ease-in-out;
|
|
2205
2205
|
`;
|
|
2206
|
+
const Container$2 = styled.div ``;
|
|
2206
2207
|
const ProgressBarFill = styled.div `
|
|
2207
2208
|
width: 110px;
|
|
2208
2209
|
height: 8px;
|
|
@@ -2212,8 +2213,7 @@ const ProgressBarFill = styled.div `
|
|
|
2212
2213
|
position: relative;
|
|
2213
2214
|
overflow: hidden;
|
|
2214
2215
|
|
|
2215
|
-
|
|
2216
|
-
content: '${props => (props.$percent === 0 ? '0' : props.$percent)}%';
|
|
2216
|
+
.progress-percentage {
|
|
2217
2217
|
position: absolute;
|
|
2218
2218
|
top: 55%;
|
|
2219
2219
|
left: ${props => props.$percent >= 83 ? 'calc(100% - 25px)' : `calc(${props.$percent}% + 10px)`};
|
|
@@ -2225,8 +2225,7 @@ const ProgressBarFill = styled.div `
|
|
|
2225
2225
|
transition: left 0.5s ease-in-out;
|
|
2226
2226
|
}
|
|
2227
2227
|
|
|
2228
|
-
|
|
2229
|
-
content: '';
|
|
2228
|
+
.progress-bar-fill {
|
|
2230
2229
|
position: absolute;
|
|
2231
2230
|
top: 0;
|
|
2232
2231
|
left: 0;
|
|
@@ -2247,7 +2246,11 @@ const ProgressBar = ({ steps, showStepLine = false, dataItemid }) => {
|
|
|
2247
2246
|
React.createElement(StyledIcon$2, { "data-itemid": `${stepId}-icon`, path: js.mdiCheckboxMarkedCircleOutline, size: '32px' }))) : (React.createElement(StepIndicator, { "$active": step.active, "data-itemid": `${stepId}-indicator` }, i + 1)),
|
|
2248
2247
|
React.createElement(StepLabel, { "data-itemid": `${stepId}-label` },
|
|
2249
2248
|
step.label,
|
|
2250
|
-
step.percentComplete !== undefined && (React.createElement(ProgressBarFill, { "$percent": step.percentComplete, "data-itemid": `${stepId}-fill` }
|
|
2249
|
+
step.percentComplete !== undefined && (React.createElement(ProgressBarFill, { "$percent": step.percentComplete, "data-itemid": `${stepId}-fill` },
|
|
2250
|
+
React.createElement(Container$2, { className: 'progress-bar-fill' }),
|
|
2251
|
+
React.createElement(Container$2, { className: 'progress-percentage', "data-itemid": `${stepId}-percentage` },
|
|
2252
|
+
step.percentComplete,
|
|
2253
|
+
"%")))))));
|
|
2251
2254
|
})));
|
|
2252
2255
|
};
|
|
2253
2256
|
|