@hexure/ui 1.13.94 → 1.13.96

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
@@ -2888,7 +2888,7 @@ const Badge$1 = styled.span `
2888
2888
  margin-right: ${props => (props.$small ? '-5px' : '-10px')};
2889
2889
  `;
2890
2890
  const Button = (_a) => {
2891
- var { badge, children, disabled = false, icon, isForm = false, loading = false, margin = '', onClick, small = false, format = 'primary', iconPosition = 'after', toolTip, title = '', dataItemid, type = null } = _a, accessibleProps = __rest(_a, ["badge", "children", "disabled", "icon", "isForm", "loading", "margin", "onClick", "small", "format", "iconPosition", "toolTip", "title", "dataItemid", "type"]);
2891
+ var { badge, children, disabled = false, icon, isForm = false, loading = false, margin = '', onClick, small = false, format = 'primary', iconPosition = 'after', toolTip, title = '', dataItemid, type = null, dataSectionName } = _a, accessibleProps = __rest(_a, ["badge", "children", "disabled", "icon", "isForm", "loading", "margin", "onClick", "small", "format", "iconPosition", "toolTip", "title", "dataItemid", "type", "dataSectionName"]);
2892
2892
  const theme = React.useContext(styled.ThemeContext) || EditableTheme;
2893
2893
  const has_children = children && children.length > 0;
2894
2894
  const button_type_mapping = {
@@ -2923,7 +2923,7 @@ const Button = (_a) => {
2923
2923
  };
2924
2924
  const format_styles = button_type_mapping[format];
2925
2925
  const baseId = dataItemid || 'button';
2926
- const button_view = (React.createElement(StyledButton, Object.assign({ "$bg_color": format_styles.background_color, "$border_color": format_styles.border_color, "$disabled": disabled || loading, "$format": format, "$hasChildren": !!has_children, "$iconPosition": iconPosition, "$margin": margin, "$small": small, disabled: disabled || loading, onClick: disabled || loading ? undefined : onClick, title: title, type: type || (isForm ? 'submit' : undefined) }, accessibleProps, { "data-itemid": `${baseId}-styled-button`, "data-section-name": 'drawer-close-icon-button' }),
2926
+ const button_view = (React.createElement(StyledButton, Object.assign({ "$bg_color": format_styles.background_color, "$border_color": format_styles.border_color, "$disabled": disabled || loading, "$format": format, "$hasChildren": !!has_children, "$iconPosition": iconPosition, "$margin": margin, "$small": small, disabled: disabled || loading, onClick: disabled || loading ? undefined : onClick, title: title, type: type || (isForm ? 'submit' : undefined) }, accessibleProps, { "data-itemid": `${baseId}-styled-button`, "data-section-name": dataSectionName || '' }),
2927
2927
  children ? (React.createElement(Label$5, { "$content_color": disabled || loading ? '#666666' : format_styles.content_color, "$small": small, "data-itemid": `${baseId}-label` }, children)) : null,
2928
2928
  icon && !badge ? (React.createElement(StyledIcon$5, { "$hasChildren": !!has_children, "data-itemid": `${baseId}-icon` },
2929
2929
  React.createElement(Icon, { color: (() => {
@@ -4016,7 +4016,7 @@ const Drawer = (_a) => {
4016
4016
  title ? (React.createElement(Heading, { dataItemid: `${baseId}-title`, type: 'secondary' }, title)) : null,
4017
4017
  description ? (React.createElement(Copy, { color: 'GRAY', "data-itemid": `${baseId}-description` }, description)) : null),
4018
4018
  React.createElement(Close$1, { "data-itemid": `${baseId}-close`, onClick: onClose },
4019
- React.createElement(Button, { dataItemid: `${baseId}-close-button`, format: 'secondary', icon: js.mdiClose, small: true }))),
4019
+ React.createElement(Button, { dataItemid: `${baseId}-close-button`, dataSectionName: 'drawer-close-icon-button', format: 'secondary', icon: js.mdiClose, small: true }))),
4020
4020
  React.createElement(ContentWrapper$1, { "data-itemid": `${baseId}-content-wrapper` }, children),
4021
4021
  primaryButton || secondaryButton || tertiaryButton ? (React.createElement(ButtonBar$1, { "data-itemid": `${baseId}-button-bar` },
4022
4022
  React.createElement(Copy, { "data-itemid": `${baseId}-button-bar-notes`, type: 'small' }, bottomNotes),
@@ -5460,7 +5460,7 @@ const Input$1 = (_a) => {
5460
5460
  "\"")),
5461
5461
  internalSuggestedValues.map((suggestedValue, index) => (React.createElement(SuggestedValue, { "data-itemid": `${baseId}-suggested-value-${index}`, key: index, onClick: () => {
5462
5462
  handleInputChange({ target: { value: suggestedValue } });
5463
- onSuggestedSelect();
5463
+ onSuggestedSelect({ target: { value: suggestedValue } });
5464
5464
  setShowOptions(false);
5465
5465
  } }, suggestedValue))))) : null));
5466
5466
  };