@hexure/ui 1.13.99 → 1.14.1

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
@@ -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(StyledDiv, { "data-itemid": `${baseId}-wrapper` },
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) */
@@ -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
  };
@@ -3832,9 +3831,9 @@ const Select = (_a) => {
3832
3831
  React.createElement(Trigger$1, Object.assign({ "data-itemid": `${baseId}-trigger`, disabled: readOnly, id: `${baseId}-trigger`, name: baseId, onChange: handleChange, placeholder: placeholder, ref: innerRef, tabIndex: readOnly ? -1 : tabIndex, value: value }, accessibleProps),
3833
3832
  placeholder && !value && (React.createElement("option", { "data-itemid": `${baseId}-placeholder`, disabled: true, value: '' }, placeholder)),
3834
3833
  filteredOptionGroups &&
3835
- filteredOptionGroups.map((group, i) => (React.createElement("optgroup", { "data-itemid": `${baseId}-optgroup-${i}`, key: i, label: group.label || `Group ${i}` }, group.options.map((option, j) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}-${j}`, key: j, style: { color: option.color }, value: option.value }, option.label || option.value)))))),
3834
+ filteredOptionGroups.map((group, i) => (React.createElement("optgroup", { "data-itemid": `${baseId}-optgroup-${i}`, key: i, label: group.label || `Group ${i}` }, group.options.map((option, j) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}-${j}`, disabled: option.disabled, key: j, style: { color: option.color }, value: option.value }, option.label || option.value)))))),
3836
3835
  filteredOptions &&
3837
- filteredOptions.map((option, i) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}`, key: i, style: { color: option.color }, value: option.value }, option.label || option.value)))),
3836
+ filteredOptions.map((option, i) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}`, disabled: option.disabled, key: i, style: { color: option.color }, value: option.value }, option.label || option.value)))),
3838
3837
  React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, "data-itemid": `${baseId}-icon`, path: js.mdiChevronDown, size: '22px' })));
3839
3838
  };
3840
3839
 
@@ -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
  };