@hexure/ui 1.13.66 → 1.13.67

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 CHANGED
@@ -2751,7 +2751,7 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, d
2751
2751
  border-style: solid;
2752
2752
  border-color: #0193D7;
2753
2753
  background: #ffffff;
2754
- boxShadow: 0px 5px 30px -10px rgba(0, 0, 0, 0.5);
2754
+ box-shadow: 0px 5px 30px -10px rgba(0, 0, 0, 0.5);
2755
2755
  color: #000;
2756
2756
  max-width: ${width};
2757
2757
  z-index: 9999; /* Ensure tooltip is above other elements */
@@ -5517,6 +5517,13 @@ const StepLine = styled.div `
5517
5517
  transition: background-color 0.5s ease-in-out;
5518
5518
  `;
5519
5519
  const Container$2 = styled.div ``;
5520
+ const ContainerExtraProps = styled.div `
5521
+ color: #b60000;
5522
+ cursor: ${props => (props.$cursorPointer ? 'pointer' : 'auto')};
5523
+ text-shadow: none;
5524
+ font-size: 0.8em;
5525
+ padding-top: 3px;
5526
+ `;
5520
5527
  const ProgressBarFill = styled.div `
5521
5528
  width: 110px;
5522
5529
  height: 12px;
@@ -5551,6 +5558,7 @@ const ProgressBarFill = styled.div `
5551
5558
  const ProgressBar = ({ steps, showStepLine = false, dataItemid }) => {
5552
5559
  const baseId = dataItemid || 'progress-bar';
5553
5560
  return (React.createElement(Steps, { "data-itemid": `${baseId}-steps` }, steps.map((step, i) => {
5561
+ var _a, _b;
5554
5562
  const stepId = `${baseId}-step-${i}`;
5555
5563
  return (React.createElement(React.Fragment, { key: i },
5556
5564
  i !== 0 && showStepLine && (React.createElement(StepLine, { "$active": step.active, "data-itemid": `${stepId}-line` })),
@@ -5559,11 +5567,12 @@ const ProgressBar = ({ steps, showStepLine = false, dataItemid }) => {
5559
5567
  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)),
5560
5568
  React.createElement(StepLabel, { "data-itemid": `${stepId}-label` },
5561
5569
  step.label,
5562
- step.percentComplete !== undefined && (React.createElement(ProgressBarFill, { "$percent": step.percentComplete, "data-itemid": `${stepId}-fill` },
5570
+ !(step === null || step === void 0 ? void 0 : step.extraProps) && step.percentComplete !== undefined && (React.createElement(ProgressBarFill, { "$percent": step.percentComplete, "data-itemid": `${stepId}-fill` },
5563
5571
  React.createElement(Container$2, { className: 'progress-bar-fill' }),
5564
5572
  React.createElement(Container$2, { className: 'progress-percentage', "data-itemid": `${stepId}-percentage` },
5565
5573
  step.percentComplete,
5566
- "%")))))));
5574
+ "%"))),
5575
+ (step === null || step === void 0 ? void 0 : step.extraProps) && (React.createElement(ContainerExtraProps, { "$cursorPointer": !!((_a = step.extraProps) === null || _a === void 0 ? void 0 : _a.onClick), "data-itemid": `${stepId}-extra-props`, onClick: (_b = step.extraProps) === null || _b === void 0 ? void 0 : _b.onClick, title: step.extraProps.title }, step.extraProps.title))))));
5567
5576
  })));
5568
5577
  };
5569
5578