@cambly/syntax-core 3.1.0 → 3.2.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/index.js CHANGED
@@ -968,14 +968,7 @@ var SelectList = ({
968
968
  [SelectList_module_default.opacityOverlay]: disabled
969
969
  }),
970
970
  children: [
971
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
972
- Typography_default,
973
- {
974
- size: 100,
975
- color: errorText ? "destructive-primary" : "gray700",
976
- children: label
977
- }
978
- ) }),
971
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Typography_default, { size: 100, color: "gray700", children: label }) }),
979
972
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: SelectList_module_default.selectWrapper, children: [
980
973
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
981
974
  "select",
@@ -989,8 +982,9 @@ var SelectList = ({
989
982
  [SelectList_module_default.selectError]: errorText
990
983
  }),
991
984
  onChange,
985
+ value: placeholderText && !selectedValue ? placeholderText : selectedValue,
992
986
  children: [
993
- placeholderText && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { disabled: true, value: "", children: placeholderText }),
987
+ placeholderText && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("option", { disabled: true, value: placeholderText, children: placeholderText }),
994
988
  children
995
989
  ]
996
990
  }