@hexure/ui 1.13.99 → 1.14.0
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 +7 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/cjs/types/components/Radio/Radio.d.ts +1 -0
- package/dist/esm/index.js +7 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/esm/types/components/Radio/Radio.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -2695,7 +2695,6 @@ const Wrapper$h = styled.div(props => ({
|
|
|
2695
2695
|
height: props.$height || '16px',
|
|
2696
2696
|
}));
|
|
2697
2697
|
const StyledAnchor = styled.a ``;
|
|
2698
|
-
const StyledDiv = styled.div ``;
|
|
2699
2698
|
const StyledIcon$6 = styled(Icon) `
|
|
2700
2699
|
width: 16px;
|
|
2701
2700
|
height: 16px;
|
|
@@ -2738,7 +2737,7 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, d
|
|
|
2738
2737
|
const [show_content, toggleContent] = useState(false);
|
|
2739
2738
|
const baseId = dataItemid || `tooltip-${Math.random().toString(36).slice(2, 9)}`;
|
|
2740
2739
|
if (auto) {
|
|
2741
|
-
return (React.createElement(
|
|
2740
|
+
return (React.createElement(Wrapper$h, { "data-itemid": `${baseId}-wrapper` },
|
|
2742
2741
|
React.createElement("style", null, `
|
|
2743
2742
|
.custom-tooltip-arrow {
|
|
2744
2743
|
box-shadow: 1px 1px 0 0 #0193D7; /* top border for arrow (matches border) */
|
|
@@ -3650,19 +3649,19 @@ const Check$1 = styled.span `
|
|
|
3650
3649
|
const Label$3 = styled.span `
|
|
3651
3650
|
font-family: ${FontStyles.DEFAULT};
|
|
3652
3651
|
font-size: ${FontSizes.DEFAULT};
|
|
3653
|
-
font-weight: 400;
|
|
3652
|
+
font-weight: ${props => (props.$isLabelBold ? 'bold' : '400')};
|
|
3654
3653
|
line-height: 1.6em;
|
|
3655
3654
|
color: ${props => props.color || Colors.BLACK.Hex};
|
|
3656
3655
|
margin-left: 6px;
|
|
3657
3656
|
box-sizing: border-box;
|
|
3658
3657
|
`;
|
|
3659
3658
|
const Checkbox = (_a) => {
|
|
3660
|
-
var { children, color, disabled, checked, onChange, invalid, tooltip, tabIndex, dataItemid, isInvalidRedBackground = false, isWarningError = false, dataSectionName } = _a, accessibleProps = __rest(_a, ["children", "color", "disabled", "checked", "onChange", "invalid", "tooltip", "tabIndex", "dataItemid", "isInvalidRedBackground", "isWarningError", "dataSectionName"]);
|
|
3659
|
+
var { children, color, disabled, checked, onChange, invalid, tooltip, tabIndex, dataItemid, isInvalidRedBackground = false, isWarningError = false, dataSectionName, isLabelBold = false } = _a, accessibleProps = __rest(_a, ["children", "color", "disabled", "checked", "onChange", "invalid", "tooltip", "tabIndex", "dataItemid", "isInvalidRedBackground", "isWarningError", "dataSectionName", "isLabelBold"]);
|
|
3661
3660
|
const baseId = dataItemid || 'checkbox';
|
|
3662
3661
|
return (React.createElement(Wrapper$b, Object.assign({ "$disabled": disabled }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
|
|
3663
3662
|
React.createElement(Input$2, { "$invalid": invalid, checked: checked, "data-itemid": `${baseId}-input`, "data-section-name": dataSectionName, disabled: disabled, name: accessibleProps.name, onChange: disabled ? undefined : onChange, tabIndex: disabled ? -1 : tabIndex, type: 'checkbox' }),
|
|
3664
3663
|
React.createElement(Check$1, { "$invalid": invalid, "$isInvalidRedBackground": isInvalidRedBackground, "$isWarningError": isWarningError, "data-itemid": `${baseId}-check` }),
|
|
3665
|
-
children ? (React.createElement(Label$3, { color: color, "data-itemid": `${baseId}-label` },
|
|
3664
|
+
children ? (React.createElement(Label$3, { "$isLabelBold": isLabelBold, color: color, "data-itemid": `${baseId}-label` },
|
|
3666
3665
|
children,
|
|
3667
3666
|
tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)) : null));
|
|
3668
3667
|
};
|
|
@@ -6035,18 +6034,18 @@ const Check = styled.span `
|
|
|
6035
6034
|
const Label = styled.span `
|
|
6036
6035
|
font-family: ${FontStyles.DEFAULT};
|
|
6037
6036
|
font-size: ${FontSizes.DEFAULT};
|
|
6038
|
-
font-weight: 400;
|
|
6037
|
+
font-weight: ${props => (props.$isLabelBold ? 'bold' : '400')};
|
|
6039
6038
|
color: ${Colors.BLACK.Hex};
|
|
6040
6039
|
line-height: 1.6em;
|
|
6041
6040
|
margin-left: 6px;
|
|
6042
6041
|
`;
|
|
6043
6042
|
const Radio = (_a) => {
|
|
6044
|
-
var { children, disabled, checked, onChange, value, invalid, tooltip, tabIndex, dataItemid, isInvalidRedBackground = false, isWarningError = false } = _a, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange", "value", "invalid", "tooltip", "tabIndex", "dataItemid", "isInvalidRedBackground", "isWarningError"]);
|
|
6043
|
+
var { children, disabled, checked, onChange, value, invalid, tooltip, tabIndex, dataItemid, isInvalidRedBackground = false, isWarningError = false, isLabelBold = false } = _a, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange", "value", "invalid", "tooltip", "tabIndex", "dataItemid", "isInvalidRedBackground", "isWarningError", "isLabelBold"]);
|
|
6045
6044
|
const baseId = dataItemid || 'radio';
|
|
6046
6045
|
return (React.createElement(Wrapper$2, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
|
|
6047
6046
|
React.createElement(Input, { "$invalid": invalid, checked: checked, "data-itemid": `${baseId}-input`, disabled: disabled, name: accessibleProps.name, onChange: disabled ? undefined : onChange, tabIndex: disabled ? -1 : tabIndex, type: 'radio', value: value }),
|
|
6048
6047
|
React.createElement(Check, { "$invalid": invalid, "$isInvalidRedBackground": isInvalidRedBackground, "$isWarningError": isWarningError, "data-itemid": `${baseId}-check` }),
|
|
6049
|
-
React.createElement(Label, { "data-itemid": `${baseId}-label` },
|
|
6048
|
+
React.createElement(Label, { "$isLabelBold": isLabelBold, "data-itemid": `${baseId}-label` },
|
|
6050
6049
|
children,
|
|
6051
6050
|
tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)));
|
|
6052
6051
|
};
|