@hexure/ui 1.13.98 → 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 +9 -10
- 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/cjs/types/components/Tag/Tag.d.ts +1 -0
- package/dist/esm/index.js +9 -10
- 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/esm/types/components/Tag/Tag.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2697,7 +2697,6 @@ const Wrapper$h = styled.div(props => ({
|
|
|
2697
2697
|
height: props.$height || '16px',
|
|
2698
2698
|
}));
|
|
2699
2699
|
const StyledAnchor = styled.a ``;
|
|
2700
|
-
const StyledDiv = styled.div ``;
|
|
2701
2700
|
const StyledIcon$6 = styled(Icon) `
|
|
2702
2701
|
width: 16px;
|
|
2703
2702
|
height: 16px;
|
|
@@ -2740,7 +2739,7 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, d
|
|
|
2740
2739
|
const [show_content, toggleContent] = React.useState(false);
|
|
2741
2740
|
const baseId = dataItemid || `tooltip-${Math.random().toString(36).slice(2, 9)}`;
|
|
2742
2741
|
if (auto) {
|
|
2743
|
-
return (React.createElement(
|
|
2742
|
+
return (React.createElement(Wrapper$h, { "data-itemid": `${baseId}-wrapper` },
|
|
2744
2743
|
React.createElement("style", null, `
|
|
2745
2744
|
.custom-tooltip-arrow {
|
|
2746
2745
|
box-shadow: 1px 1px 0 0 #0193D7; /* top border for arrow (matches border) */
|
|
@@ -3192,10 +3191,10 @@ const Remove$1 = styled.div `
|
|
|
3192
3191
|
align-items: center;
|
|
3193
3192
|
`;
|
|
3194
3193
|
const Tag = (_a) => {
|
|
3195
|
-
var { children, color = 'PRIMARY', removable, onClick, dataItemid, rotate } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick", "dataItemid", "rotate"]);
|
|
3194
|
+
var { children, color = 'PRIMARY', removable, onClick, dataItemid, rotate, dataSectionName } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick", "dataItemid", "rotate", "dataSectionName"]);
|
|
3196
3195
|
const baseId = dataItemid || 'tag';
|
|
3197
3196
|
return (React.createElement(Wrapper$e, Object.assign({ "$color": color, "$removable": removable, "$rotate": rotate, onClick: onClick }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
|
|
3198
|
-
React.createElement(Content$2, { "data-itemid": `${baseId}-content
|
|
3197
|
+
React.createElement(Content$2, { "data-itemid": `${baseId}-content`, "data-section-name": dataSectionName },
|
|
3199
3198
|
React.createElement(Label$4, { "$color": color, "data-itemid": `${baseId}-label` }, children),
|
|
3200
3199
|
removable ? (React.createElement(Remove$1, { "data-itemid": `${baseId}-remove` },
|
|
3201
3200
|
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', "data-itemid": `${baseId}-icon`, path: js.mdiClose, size: '15px' }))) : null)));
|
|
@@ -3652,19 +3651,19 @@ const Check$1 = styled.span `
|
|
|
3652
3651
|
const Label$3 = styled.span `
|
|
3653
3652
|
font-family: ${FontStyles.DEFAULT};
|
|
3654
3653
|
font-size: ${FontSizes.DEFAULT};
|
|
3655
|
-
font-weight: 400;
|
|
3654
|
+
font-weight: ${props => (props.$isLabelBold ? 'bold' : '400')};
|
|
3656
3655
|
line-height: 1.6em;
|
|
3657
3656
|
color: ${props => props.color || Colors.BLACK.Hex};
|
|
3658
3657
|
margin-left: 6px;
|
|
3659
3658
|
box-sizing: border-box;
|
|
3660
3659
|
`;
|
|
3661
3660
|
const Checkbox = (_a) => {
|
|
3662
|
-
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"]);
|
|
3661
|
+
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"]);
|
|
3663
3662
|
const baseId = dataItemid || 'checkbox';
|
|
3664
3663
|
return (React.createElement(Wrapper$b, Object.assign({ "$disabled": disabled }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
|
|
3665
3664
|
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' }),
|
|
3666
3665
|
React.createElement(Check$1, { "$invalid": invalid, "$isInvalidRedBackground": isInvalidRedBackground, "$isWarningError": isWarningError, "data-itemid": `${baseId}-check` }),
|
|
3667
|
-
children ? (React.createElement(Label$3, { color: color, "data-itemid": `${baseId}-label` },
|
|
3666
|
+
children ? (React.createElement(Label$3, { "$isLabelBold": isLabelBold, color: color, "data-itemid": `${baseId}-label` },
|
|
3668
3667
|
children,
|
|
3669
3668
|
tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)) : null));
|
|
3670
3669
|
};
|
|
@@ -6037,18 +6036,18 @@ const Check = styled.span `
|
|
|
6037
6036
|
const Label = styled.span `
|
|
6038
6037
|
font-family: ${FontStyles.DEFAULT};
|
|
6039
6038
|
font-size: ${FontSizes.DEFAULT};
|
|
6040
|
-
font-weight: 400;
|
|
6039
|
+
font-weight: ${props => (props.$isLabelBold ? 'bold' : '400')};
|
|
6041
6040
|
color: ${Colors.BLACK.Hex};
|
|
6042
6041
|
line-height: 1.6em;
|
|
6043
6042
|
margin-left: 6px;
|
|
6044
6043
|
`;
|
|
6045
6044
|
const Radio = (_a) => {
|
|
6046
|
-
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"]);
|
|
6045
|
+
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"]);
|
|
6047
6046
|
const baseId = dataItemid || 'radio';
|
|
6048
6047
|
return (React.createElement(Wrapper$2, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
|
|
6049
6048
|
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 }),
|
|
6050
6049
|
React.createElement(Check, { "$invalid": invalid, "$isInvalidRedBackground": isInvalidRedBackground, "$isWarningError": isWarningError, "data-itemid": `${baseId}-check` }),
|
|
6051
|
-
React.createElement(Label, { "data-itemid": `${baseId}-label` },
|
|
6050
|
+
React.createElement(Label, { "$isLabelBold": isLabelBold, "data-itemid": `${baseId}-label` },
|
|
6052
6051
|
children,
|
|
6053
6052
|
tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)));
|
|
6054
6053
|
};
|