@youversion/design-system-components 3.4.0 → 3.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @youversion/design-system-components
2
2
 
3
+ ## 3.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c5385e1: Add name attribute to input tag in the Input component
8
+
9
+ ## 3.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 43aaf6d: Extend the Dialog component with the prop for flexible disabling the close button.
14
+
3
15
  ## 3.4.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.es.js CHANGED
@@ -2863,6 +2863,7 @@ const U2 = ({
2863
2863
  ]),
2864
2864
  disabled: r,
2865
2865
  id: p,
2866
+ name: p,
2866
2867
  onBlur: B,
2867
2868
  onChange: m,
2868
2869
  placeholder: w,
@@ -5176,19 +5177,20 @@ const He = ({ autoFocus: l = !0, children: r, className: e }) => {
5176
5177
  confirmationButtons: i,
5177
5178
  confirmationContainerClassName: c,
5178
5179
  dialogType: v = "confirmation",
5179
- heading: g,
5180
- headingClassName: p,
5181
- isDismissableOnOutsideClick: b = !0,
5182
- onClose: w,
5183
- ...y
5184
- }, C) => (T2(), /* @__PURE__ */ d("div", { className: "w-full h-screen z-[1400] fixed inset-0", children: [
5180
+ disabledClosing: g = !1,
5181
+ heading: p,
5182
+ headingClassName: b,
5183
+ isDismissableOnOutsideClick: w = !0,
5184
+ onClose: y,
5185
+ ...C
5186
+ }, z) => (T2(), /* @__PURE__ */ d("div", { className: "w-full h-screen z-[1400] fixed inset-0", children: [
5185
5187
  /* @__PURE__ */ n(
5186
5188
  "div",
5187
5189
  {
5188
5190
  className: "absolute inset-0 bg-overlay-light dark:bg-overlay-dark",
5189
5191
  "data-testid": "dialog-overlay",
5190
5192
  id: "overlay",
5191
- onClick: b ? w : void 0
5193
+ onClick: w && !g ? y : void 0
5192
5194
  }
5193
5195
  ),
5194
5196
  /* @__PURE__ */ n(He, { autoFocus: l, className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ d(
@@ -5200,8 +5202,8 @@ const He = ({ autoFocus: l = !0, children: r, className: e }) => {
5200
5202
  e
5201
5203
  ),
5202
5204
  open: !0,
5203
- ref: C,
5204
- ...y,
5205
+ ref: z,
5206
+ ...C,
5205
5207
  children: [
5206
5208
  v === "modal" ? /* @__PURE__ */ n(
5207
5209
  V1,
@@ -5209,15 +5211,16 @@ const He = ({ autoFocus: l = !0, children: r, className: e }) => {
5209
5211
  "aria-label": t,
5210
5212
  className: f("absolute inline-end-2 block-start-2", a),
5211
5213
  "data-testid": "close-modal-button",
5212
- onClick: w,
5214
+ disabled: g,
5215
+ onClick: y,
5213
5216
  children: /* @__PURE__ */ n(eo, {})
5214
5217
  }
5215
5218
  ) : null,
5216
- /* @__PURE__ */ n("div", { children: g ? /* @__PURE__ */ n(z1, { className: f("pbe-1", p), size: "md", variant: "headline", children: g }) : null }),
5219
+ /* @__PURE__ */ n("div", { children: p ? /* @__PURE__ */ n(z1, { className: f("pbe-1", b), size: "md", variant: "headline", children: p }) : null }),
5217
5220
  /* @__PURE__ */ n("div", { children: r }),
5218
- /* @__PURE__ */ n("div", { className: f("w-full flex justify-end items-center gap-0.5 pbs-2", c), children: i == null ? void 0 : i.map(({ label: x, ...I }, k) => (
5221
+ /* @__PURE__ */ n("div", { className: f("w-full flex justify-end items-center gap-0.5 pbs-2", c), children: i == null ? void 0 : i.map(({ label: I, ...k }, R) => (
5219
5222
  // eslint-disable-next-line react/jsx-props-no-spreading
5220
- /* @__PURE__ */ n(I1, { "aria-label": x, size: "sm", variant: "borderless", ...I, children: x }, `${x}${k}`)
5223
+ /* @__PURE__ */ n(I1, { "aria-label": I, size: "sm", variant: "borderless", ...k, children: I }, `${I}${R}`)
5221
5224
  )) })
5222
5225
  ]
5223
5226
  }