@liner-fe/prism 1.12.0 → 1.12.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/lib/index.mjs CHANGED
@@ -7049,6 +7049,7 @@ var Textfield = forwardRef8((props, ref) => {
7049
7049
  const isPassword = type === "password";
7050
7050
  const isDeidentified = isPassword && deidentifiy;
7051
7051
  const { text: labelText, type: labelType = "in" } = label;
7052
+ const textfieldValue = isControlled ? controlledValue : value;
7052
7053
  const handleTextfieldClick = /* @__PURE__ */ __name(() => {
7053
7054
  inputRef.current?.focus();
7054
7055
  }, "handleTextfieldClick");
@@ -7092,7 +7093,7 @@ var Textfield = forwardRef8((props, ref) => {
7092
7093
  placeholder,
7093
7094
  ref: inputRef,
7094
7095
  disabled,
7095
- value: isControlled ? controlledValue : value,
7096
+ value: textfieldValue,
7096
7097
  onChange: handleChange,
7097
7098
  ...rest
7098
7099
  }
@@ -7110,7 +7111,7 @@ var Textfield = forwardRef8((props, ref) => {
7110
7111
  }
7111
7112
  ),
7112
7113
  /* @__PURE__ */ jsxs96("div", { className: style_module_default11["input-action-buttons"], children: [
7113
- value && /* @__PURE__ */ jsx142(
7114
+ textfieldValue && /* @__PURE__ */ jsx142(
7114
7115
  IconButton,
7115
7116
  {
7116
7117
  className: style_module_default11["action-button"],
@@ -7118,6 +7119,7 @@ var Textfield = forwardRef8((props, ref) => {
7118
7119
  size: "xs",
7119
7120
  level: "tertiary",
7120
7121
  thick: true,
7122
+ type: "button",
7121
7123
  onClick: handleClear
7122
7124
  }
7123
7125
  ),
@@ -7129,10 +7131,11 @@ var Textfield = forwardRef8((props, ref) => {
7129
7131
  size: "xs",
7130
7132
  level: "tertiary",
7131
7133
  fill: true,
7134
+ type: "button",
7132
7135
  onClick: handleDeidentify
7133
7136
  }
7134
7137
  ),
7135
- button && /* @__PURE__ */ jsx142(Button, { size: "m", onClick: button.onClick, children: button.text })
7138
+ button && /* @__PURE__ */ jsx142(Button, { size: "m", type: "button", onClick: button.onClick, children: button.text })
7136
7139
  ] })
7137
7140
  ] })
7138
7141
  }