@hexure/ui 1.13.89 → 1.13.91
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 +19 -15
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Heading/Heading.d.ts +3 -0
- package/dist/cjs/types/components/Modal/Modal.d.ts +7 -0
- package/dist/esm/index.js +19 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Heading/Heading.d.ts +3 -0
- package/dist/esm/types/components/Modal/Modal.d.ts +7 -0
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2760,13 +2760,13 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, d
|
|
|
2760
2760
|
}
|
|
2761
2761
|
|
|
2762
2762
|
`),
|
|
2763
|
-
React.createElement(StyledAnchor, { "data-itemid": `${baseId}-icon-wrapper`, "data-tooltip-
|
|
2763
|
+
React.createElement(StyledAnchor, { "data-itemid": `${baseId}-icon-wrapper`, "data-tooltip-id": 'auto-tooltip-data-html' }, trigger || React.createElement(StyledIcon$6, { "data-itemid": `${baseId}-icon`, path: js.mdiInformationOutline })),
|
|
2764
2764
|
React.createElement(TooltipPortal, null,
|
|
2765
|
-
React.createElement(M, { className: 'custom-tooltip', classNameArrow: 'custom-tooltip-arrow', "data-itemid": `${baseId}-content`, id: 'auto-tooltip-data-html' }))));
|
|
2765
|
+
React.createElement(M, { className: 'custom-tooltip', classNameArrow: 'custom-tooltip-arrow', "data-itemid": `${baseId}-content`, id: 'auto-tooltip-data-html', render: () => React.createElement("p", { "data-itemid": `${baseId}-text` }, children) }))));
|
|
2766
2766
|
}
|
|
2767
2767
|
return (React.createElement(Wrapper$h, { "$height": height, "data-itemid": `${baseId}-wrapper`, onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
|
|
2768
2768
|
trigger || React.createElement(StyledIcon$6, { "data-itemid": `${baseId}-icon`, path: js.mdiInformationOutline }),
|
|
2769
|
-
show_content ? (React.createElement(Content$3, { "$position": position, "$width": width, "data-itemid": `${baseId}-content` }, children && (React.createElement(Copy, { "data-itemid": `${baseId}-
|
|
2769
|
+
show_content ? (React.createElement(Content$3, { "$position": position, "$width": width, "data-itemid": `${baseId}-content` }, children && (React.createElement(Copy, { "data-itemid": `${baseId}-text`, type: 'small' }, children)))) : null));
|
|
2770
2770
|
};
|
|
2771
2771
|
const TooltipPortal = ({ children }) => {
|
|
2772
2772
|
const [container, setContainer] = React.useState();
|
|
@@ -2948,6 +2948,7 @@ const H1 = styled.h1 `
|
|
|
2948
2948
|
margin: ${props => props.$margin || '0px'};
|
|
2949
2949
|
padding: ${props => props.$padding || '0px'};
|
|
2950
2950
|
box-sizing: border-box;
|
|
2951
|
+
${props => props === null || props === void 0 ? void 0 : props.$customStyles};
|
|
2951
2952
|
`;
|
|
2952
2953
|
const H2 = styled.h2 `
|
|
2953
2954
|
color: ${Colors.BLACK.Hex};
|
|
@@ -2958,6 +2959,7 @@ const H2 = styled.h2 `
|
|
|
2958
2959
|
margin: ${props => props.$margin || '0px'};
|
|
2959
2960
|
padding: ${props => props.$padding || '0px'};
|
|
2960
2961
|
box-sizing: border-box;
|
|
2962
|
+
${props => props === null || props === void 0 ? void 0 : props.$customStyles};
|
|
2961
2963
|
`;
|
|
2962
2964
|
const H3 = styled.h3 `
|
|
2963
2965
|
color: ${Colors.BLACK.Hex};
|
|
@@ -2968,19 +2970,20 @@ const H3 = styled.h3 `
|
|
|
2968
2970
|
margin: ${props => props.$margin || '0px'};
|
|
2969
2971
|
padding: ${props => props.$padding || '0px'};
|
|
2970
2972
|
box-sizing: border-box;
|
|
2973
|
+
${props => props === null || props === void 0 ? void 0 : props.$customStyles};
|
|
2971
2974
|
`;
|
|
2972
2975
|
const Heading = (_a) => {
|
|
2973
|
-
var { bold, children, margin, padding, type, dataItemid } = _a, accessibleProps = __rest(_a, ["bold", "children", "margin", "padding", "type", "dataItemid"]);
|
|
2976
|
+
var { bold, children, margin, padding, type, dataItemid, style } = _a, accessibleProps = __rest(_a, ["bold", "children", "margin", "padding", "type", "dataItemid", "style"]);
|
|
2974
2977
|
const baseId = dataItemid || 'heading';
|
|
2975
2978
|
switch (type) {
|
|
2976
2979
|
case 'secondary': {
|
|
2977
|
-
return (React.createElement(H2, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { "data-itemid": `${baseId}-h2
|
|
2980
|
+
return (React.createElement(H2, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { "data-itemid": `${baseId}-h2`, style: style }), children));
|
|
2978
2981
|
}
|
|
2979
2982
|
case 'tertiary': {
|
|
2980
|
-
return (React.createElement(H3, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { "data-itemid": `${baseId}-h3
|
|
2983
|
+
return (React.createElement(H3, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { "data-itemid": `${baseId}-h3`, style: style }), children));
|
|
2981
2984
|
}
|
|
2982
2985
|
default: {
|
|
2983
|
-
return (React.createElement(H1, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { "data-itemid": `${baseId}-h1
|
|
2986
|
+
return (React.createElement(H1, Object.assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps, { "data-itemid": `${baseId}-h1`, style: style }), children));
|
|
2984
2987
|
}
|
|
2985
2988
|
}
|
|
2986
2989
|
};
|
|
@@ -5699,7 +5702,8 @@ const ButtonContainer = styled.div `
|
|
|
5699
5702
|
margin: 0 10px;
|
|
5700
5703
|
`;
|
|
5701
5704
|
const Modal = (_a) => {
|
|
5702
|
-
var
|
|
5705
|
+
var _b, _c, _d, _e;
|
|
5706
|
+
var { children, title, onClose, maxWidth, fullscreen, steps, primaryButton, secondaryButton, tertiaryButton, quarternaryButton, dataItemid, modalStyle, headerStyle, headerTitleStyle } = _a, accessibleProps = __rest(_a, ["children", "title", "onClose", "maxWidth", "fullscreen", "steps", "primaryButton", "secondaryButton", "tertiaryButton", "quarternaryButton", "dataItemid", "modalStyle", "headerStyle", "headerTitleStyle"]);
|
|
5703
5707
|
React.useEffect(() => {
|
|
5704
5708
|
document.onkeydown = e => {
|
|
5705
5709
|
if (e.key === 'Escape') {
|
|
@@ -5711,10 +5715,10 @@ const Modal = (_a) => {
|
|
|
5711
5715
|
};
|
|
5712
5716
|
}, [onClose]);
|
|
5713
5717
|
const baseId = dataItemid || 'modal';
|
|
5714
|
-
return (React.createElement(Wrapper$6, { "data-itemid": `${baseId}-wrapper
|
|
5718
|
+
return (React.createElement(Wrapper$6, { "data-itemid": `${baseId}-wrapper`, style: modalStyle },
|
|
5715
5719
|
React.createElement(Container$1, Object.assign({ "$fullscreen": fullscreen, "$maxWidth": maxWidth, open: true }, accessibleProps, { "data-itemid": `${baseId}-container` }),
|
|
5716
|
-
React.createElement(Header$1, { "data-itemid": `${baseId}-header
|
|
5717
|
-
title ? (React.createElement(Heading, { "data-itemid": `${baseId}-title`, type: 'secondary' }, title)) : null,
|
|
5720
|
+
React.createElement(Header$1, { "data-itemid": `${baseId}-header`, style: headerStyle },
|
|
5721
|
+
title ? (React.createElement(Heading, { "data-itemid": `${baseId}-title`, style: headerTitleStyle, type: 'secondary' }, title)) : null,
|
|
5718
5722
|
React.createElement(Close, { "data-itemid": `${baseId}-close`, onClick: onClose },
|
|
5719
5723
|
React.createElement(CloseMsg, { "data-itemid": `${baseId}-close-msg` }, "(Esc)"),
|
|
5720
5724
|
React.createElement(Icon, { color: Colors.BLACK.Hex, "data-itemid": `${baseId}-close-icon`, path: js.mdiClose, size: '24px' }))),
|
|
@@ -5727,9 +5731,9 @@ const Modal = (_a) => {
|
|
|
5727
5731
|
display: 'flex',
|
|
5728
5732
|
alignItems: 'center',
|
|
5729
5733
|
} },
|
|
5730
|
-
tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, {
|
|
5734
|
+
tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { dataItemid: (_b = tertiaryButton.dataItemid) !== null && _b !== void 0 ? _b : tertiaryButton.children, format: tertiaryButton.format || 'secondary' }))) : null,
|
|
5731
5735
|
quarternaryButton ? (React.createElement(ButtonContainer, { "data-itemid": `${baseId}-quarternary-button-container` },
|
|
5732
|
-
React.createElement(Button, Object.assign({}, quarternaryButton, {
|
|
5736
|
+
React.createElement(Button, Object.assign({}, quarternaryButton, { dataItemid: (_c = quarternaryButton.dataItemid) !== null && _c !== void 0 ? _c : quarternaryButton.children, format: quarternaryButton.format || 'secondary' })))) : null)) : null,
|
|
5733
5737
|
primaryButton || secondaryButton ? (React.createElement("div", { "data-itemid": `${baseId}-right-buttons`, style: {
|
|
5734
5738
|
marginLeft: 'auto',
|
|
5735
5739
|
paddingLeft: 40,
|
|
@@ -5737,8 +5741,8 @@ const Modal = (_a) => {
|
|
|
5737
5741
|
alignItems: 'center',
|
|
5738
5742
|
} },
|
|
5739
5743
|
secondaryButton ? (React.createElement(ButtonContainer, { "data-itemid": `${baseId}-secondary-button-container` },
|
|
5740
|
-
React.createElement(Button, Object.assign({}, secondaryButton, {
|
|
5741
|
-
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, {
|
|
5744
|
+
React.createElement(Button, Object.assign({}, secondaryButton, { dataItemid: (_d = secondaryButton.dataItemid) !== null && _d !== void 0 ? _d : secondaryButton.children, format: secondaryButton.format || 'secondary' })))) : null,
|
|
5745
|
+
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { dataItemid: (_e = primaryButton.dataItemid) !== null && _e !== void 0 ? _e : primaryButton.children, format: primaryButton.format || 'primary' }))) : null)) : null)) : null)));
|
|
5742
5746
|
};
|
|
5743
5747
|
|
|
5744
5748
|
const Wrapper$5 = styled.div `
|