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