@hexure/ui 1.13.66 → 1.13.68
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 +31 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/cjs/types/components/Tag/Tag.d.ts +1 -0
- package/dist/esm/index.js +31 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/esm/types/components/Tag/Tag.d.ts +1 -0
- package/dist/index.d.ts +87 -82
- package/package.json +1 -1
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
|
-
|
|
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 */
|
|
@@ -3128,6 +3128,15 @@ const Wrapper$e = styled.div `
|
|
|
3128
3128
|
color: #ffffff;
|
|
3129
3129
|
box-sizing: border-box;
|
|
3130
3130
|
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
3131
|
+
${props => props.$rotate &&
|
|
3132
|
+
`
|
|
3133
|
+
transform: rotate(270deg);
|
|
3134
|
+
transform-origin: top left;
|
|
3135
|
+
width: max-content;
|
|
3136
|
+
position: absolute;
|
|
3137
|
+
top: -11px;
|
|
3138
|
+
left: 3px;
|
|
3139
|
+
`}
|
|
3131
3140
|
`;
|
|
3132
3141
|
const Content$2 = styled.div `
|
|
3133
3142
|
display: flex;
|
|
@@ -3146,9 +3155,9 @@ const Remove$1 = styled.div `
|
|
|
3146
3155
|
align-items: center;
|
|
3147
3156
|
`;
|
|
3148
3157
|
const Tag = (_a) => {
|
|
3149
|
-
var { children, color = 'PRIMARY', removable, onClick, dataItemid } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick", "dataItemid"]);
|
|
3158
|
+
var { children, color = 'PRIMARY', removable, onClick, dataItemid, rotate } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick", "dataItemid", "rotate"]);
|
|
3150
3159
|
const baseId = dataItemid || 'tag';
|
|
3151
|
-
return (React.createElement(Wrapper$e, Object.assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
|
|
3160
|
+
return (React.createElement(Wrapper$e, Object.assign({ "$color": color, "$removable": removable, "$rotate": rotate, onClick: onClick }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
|
|
3152
3161
|
React.createElement(Content$2, { "data-itemid": `${baseId}-content` },
|
|
3153
3162
|
React.createElement(Label$4, { "$color": color, "data-itemid": `${baseId}-label` }, children),
|
|
3154
3163
|
removable ? (React.createElement(Remove$1, { "data-itemid": `${baseId}-remove` },
|
|
@@ -3230,7 +3239,7 @@ const SubMenuItem = styled.a `
|
|
|
3230
3239
|
`;
|
|
3231
3240
|
const Footer = styled.div `
|
|
3232
3241
|
padding: 20px 14px 0px;
|
|
3233
|
-
display: flex;
|
|
3242
|
+
display: ${props => (props.$isOpen ? 'flex' : 'inline')};
|
|
3234
3243
|
align-items: center;
|
|
3235
3244
|
`;
|
|
3236
3245
|
const FooterInfo = styled.div `
|
|
@@ -3238,6 +3247,9 @@ const FooterInfo = styled.div `
|
|
|
3238
3247
|
flex-direction: column;
|
|
3239
3248
|
flex: 1;
|
|
3240
3249
|
align-items: flex-start;
|
|
3250
|
+
${props => !props.$isOpen &&
|
|
3251
|
+
`position: relative;
|
|
3252
|
+
`}
|
|
3241
3253
|
`;
|
|
3242
3254
|
const SidebarMenuContainer = styled.div `
|
|
3243
3255
|
flex-grow: 1;
|
|
@@ -3258,10 +3270,10 @@ const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px', dataIte
|
|
|
3258
3270
|
return (React.createElement(SubMenuItem, { "$active": menu_item.is_active, "$color": theme.PRIMARY_COLOR, "data-itemid": `${menuItemId}-sub-menu-item`, key: menuItemId, onClick: menu_item.onClick }, menu_item.label));
|
|
3259
3271
|
}))) : null));
|
|
3260
3272
|
})),
|
|
3261
|
-
React.createElement(Footer, { "data-itemid": `${baseId}-footer` },
|
|
3262
|
-
|
|
3263
|
-
footerTag
|
|
3264
|
-
React.createElement(Copy, { "data-itemid": `${baseId}-footer-copy`, margin: '8px 0 0 0', type: 'small' },
|
|
3273
|
+
React.createElement(Footer, { "$isOpen": !collapsed, "data-itemid": `${baseId}-footer` },
|
|
3274
|
+
React.createElement(FooterInfo, { "$isOpen": !collapsed, "data-itemid": `${baseId}-footer-info` },
|
|
3275
|
+
footerTag && (React.createElement(Tag, { "data-itemid": `${baseId}-footer-tag`, rotate: collapsed }, footerTag)),
|
|
3276
|
+
!collapsed && (React.createElement(Copy, { "data-itemid": `${baseId}-footer-copy`, margin: '8px 0 0 0', type: 'small' },
|
|
3265
3277
|
"\u00A9 ",
|
|
3266
3278
|
new Date().getFullYear(),
|
|
3267
3279
|
" Hexure"))),
|
|
@@ -5517,6 +5529,13 @@ const StepLine = styled.div `
|
|
|
5517
5529
|
transition: background-color 0.5s ease-in-out;
|
|
5518
5530
|
`;
|
|
5519
5531
|
const Container$2 = styled.div ``;
|
|
5532
|
+
const ContainerExtraProps = styled.div `
|
|
5533
|
+
color: #b60000;
|
|
5534
|
+
cursor: ${props => (props.$cursorPointer ? 'pointer' : 'auto')};
|
|
5535
|
+
text-shadow: none;
|
|
5536
|
+
font-size: 0.8em;
|
|
5537
|
+
padding-top: 3px;
|
|
5538
|
+
`;
|
|
5520
5539
|
const ProgressBarFill = styled.div `
|
|
5521
5540
|
width: 110px;
|
|
5522
5541
|
height: 12px;
|
|
@@ -5551,6 +5570,7 @@ const ProgressBarFill = styled.div `
|
|
|
5551
5570
|
const ProgressBar = ({ steps, showStepLine = false, dataItemid }) => {
|
|
5552
5571
|
const baseId = dataItemid || 'progress-bar';
|
|
5553
5572
|
return (React.createElement(Steps, { "data-itemid": `${baseId}-steps` }, steps.map((step, i) => {
|
|
5573
|
+
var _a, _b;
|
|
5554
5574
|
const stepId = `${baseId}-step-${i}`;
|
|
5555
5575
|
return (React.createElement(React.Fragment, { key: i },
|
|
5556
5576
|
i !== 0 && showStepLine && (React.createElement(StepLine, { "$active": step.active, "data-itemid": `${stepId}-line` })),
|
|
@@ -5559,11 +5579,12 @@ const ProgressBar = ({ steps, showStepLine = false, dataItemid }) => {
|
|
|
5559
5579
|
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
5580
|
React.createElement(StepLabel, { "data-itemid": `${stepId}-label` },
|
|
5561
5581
|
step.label,
|
|
5562
|
-
step.percentComplete !== undefined && (React.createElement(ProgressBarFill, { "$percent": step.percentComplete, "data-itemid": `${stepId}-fill` },
|
|
5582
|
+
!(step === null || step === void 0 ? void 0 : step.extraProps) && step.percentComplete !== undefined && (React.createElement(ProgressBarFill, { "$percent": step.percentComplete, "data-itemid": `${stepId}-fill` },
|
|
5563
5583
|
React.createElement(Container$2, { className: 'progress-bar-fill' }),
|
|
5564
5584
|
React.createElement(Container$2, { className: 'progress-percentage', "data-itemid": `${stepId}-percentage` },
|
|
5565
5585
|
step.percentComplete,
|
|
5566
|
-
"%")))
|
|
5586
|
+
"%"))),
|
|
5587
|
+
(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
5588
|
})));
|
|
5568
5589
|
};
|
|
5569
5590
|
|