@matchain/matchid-sdk-react 0.1.14 → 0.1.15

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.mjs CHANGED
@@ -379,11 +379,12 @@ function ModalWithHeader({
379
379
  onBack,
380
380
  onClose,
381
381
  title,
382
+ showBorder = true,
382
383
  showClose = true,
383
384
  ...props
384
385
  }) {
385
386
  return /* @__PURE__ */ jsxs12(Modal, { ...props, children: [
386
- /* @__PURE__ */ jsxs12("div", { className: `matchid-modal-header`, children: [
387
+ /* @__PURE__ */ jsxs12("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
387
388
  /* @__PURE__ */ jsxs12("div", { className: "matchid-modal-header-content", children: [
388
389
  onBack && /* @__PURE__ */ jsx20(ArrowLeftIcon, { className: "matchid-modal-header-back", onClick: onBack }),
389
390
  /* @__PURE__ */ jsx20("span", { className: "matchid-modal-header-title", children: title })
@@ -426,10 +427,14 @@ import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
426
427
  function Field({
427
428
  label,
428
429
  children,
429
- error
430
+ error,
431
+ required
430
432
  }) {
431
433
  return /* @__PURE__ */ jsxs14("div", { className: "matchid-field-box", children: [
432
- /* @__PURE__ */ jsx22("div", { className: "matchid-field-label", children: label }),
434
+ /* @__PURE__ */ jsxs14("div", { className: "matchid-field-label", children: [
435
+ required && /* @__PURE__ */ jsx22("span", { className: "matchid-field-required", children: "*" }),
436
+ label
437
+ ] }),
433
438
  children,
434
439
  error && /* @__PURE__ */ jsx22("div", { className: "matchid-field-error", children: error })
435
440
  ] });