@nypl/design-system-react-components 3.3.1 → 3.3.2

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.
@@ -1575,7 +1575,7 @@ const Xr = F1(
1575
1575
  dangerouslySetInnerHTML: { __html: d },
1576
1576
  __css: L.innerChild
1577
1577
  }
1578
- ) : d : null });
1578
+ ) : /* @__PURE__ */ x.jsx(v1, { __css: L.innerChild, children: d }) : null });
1579
1579
  }
1580
1580
  )
1581
1581
  ), N6 = F1(
@@ -2298,20 +2298,22 @@ function B_(r) {
2298
2298
  caption: s,
2299
2299
  component: i,
2300
2300
  credit: p,
2301
- id: d,
2302
- isAtEnd: v,
2303
- isCentered: y,
2304
- isLazy: L,
2305
- layout: M,
2306
- size: E,
2307
- src: k
2308
- } = r, _ = R3("CardImage", {
2309
- imageIsAtEnd: v,
2310
- isCentered: y,
2311
- layout: M,
2312
- size: E
2301
+ fallbackSrc: d,
2302
+ id: v,
2303
+ isAtEnd: y,
2304
+ isCentered: L,
2305
+ isLazy: M,
2306
+ layout: E,
2307
+ onError: k,
2308
+ size: _,
2309
+ src: R
2310
+ } = r, O = R3("CardImage", {
2311
+ imageIsAtEnd: y,
2312
+ isCentered: L,
2313
+ layout: E,
2314
+ size: _
2313
2315
  });
2314
- return /* @__PURE__ */ x.jsx(v1, { __css: _, children: /* @__PURE__ */ x.jsx(
2316
+ return /* @__PURE__ */ x.jsx(v1, { __css: O, children: /* @__PURE__ */ x.jsx(
2315
2317
  sa,
2316
2318
  {
2317
2319
  alt: a,
@@ -2319,10 +2321,12 @@ function B_(r) {
2319
2321
  caption: s,
2320
2322
  component: i,
2321
2323
  credit: p,
2322
- id: d,
2323
- isLazy: L,
2324
- size: E,
2325
- src: k
2324
+ fallbackSrc: d,
2325
+ id: v,
2326
+ isLazy: M,
2327
+ onError: k,
2328
+ size: _,
2329
+ src: R
2326
2330
  }
2327
2331
  ) });
2328
2332
  }
@@ -2377,9 +2381,11 @@ const uI = F1(
2377
2381
  caption: void 0,
2378
2382
  component: void 0,
2379
2383
  credit: void 0,
2384
+ fallbackSrc: void 0,
2380
2385
  id: void 0,
2381
2386
  isAtEnd: !1,
2382
2387
  isLazy: !1,
2388
+ onError: void 0,
2383
2389
  size: "default",
2384
2390
  src: ""
2385
2391
  },
@@ -2445,9 +2451,11 @@ const uI = F1(
2445
2451
  caption: v.caption,
2446
2452
  component: v.component,
2447
2453
  credit: v.credit,
2454
+ fallbackSrc: v.fallbackSrc,
2448
2455
  id: v.id,
2449
2456
  isAtEnd: v.isAtEnd,
2450
2457
  isLazy: v.isLazy,
2458
+ onError: v.onError,
2451
2459
  layout: E,
2452
2460
  size: v.size,
2453
2461
  src: v.src ? v.src : void 0
@@ -2570,7 +2578,7 @@ const up = F1(
2570
2578
  children: [
2571
2579
  /* @__PURE__ */ x.jsxs("legend", { children: [
2572
2580
  p,
2573
- d && i && /* @__PURE__ */ x.jsx("span", { children: " (Required)" })
2581
+ d && i && /* @__PURE__ */ x.jsx("span", { children: " (required)" })
2574
2582
  ] }),
2575
2583
  r
2576
2584
  ]
@@ -29480,7 +29488,7 @@ const Yh = F1(
29480
29488
  ...L,
29481
29489
  children: [
29482
29490
  o,
29483
- v && /* @__PURE__ */ x.jsx("span", { children: y ? ` (${y})` : " (Required)" })
29491
+ v && /* @__PURE__ */ x.jsx("span", { children: y ? ` (${y})` : " (required)" })
29484
29492
  ]
29485
29493
  }
29486
29494
  );
@@ -29786,7 +29794,7 @@ const YN = {
29786
29794
  dateFormat: s
29787
29795
  }, s2 = {
29788
29796
  isRequired: O,
29789
- // In the date range type, don't display the "(Required)" text in
29797
+ // In the date range type, don't display the "(required)" text in
29790
29798
  // individual input labels. It'll display in the legend element.
29791
29799
  showRequiredLabel: k ? !1 : x1,
29792
29800
  // Always display the labels for the input fields when
@@ -38212,7 +38220,7 @@ const Tz = F1(
38212
38220
  invalidText: "There was a problem. Please fill out this field.",
38213
38221
  isDisabled: i1,
38214
38222
  isInvalid: Y,
38215
- labelText: "Comment (Required)",
38223
+ labelText: "Comment (required)",
38216
38224
  maxLength: H2,
38217
38225
  name: `${i}-comment`,
38218
38226
  onChange: (D2) => H1(D2.target.value),
@@ -40433,7 +40441,7 @@ const RU = c2((r, a) => {
40433
40441
  isRequired: k,
40434
40442
  showHelperInvalidText: !1,
40435
40443
  showLabel: !1
40436
- }, r1 = E ? L : v, p1 = r1 ? `${_} - ${r1}` : _, H1 = `${(A == null ? void 0 : A.placeholder) || "Search terms"} ${k ? "(Required)" : ""}`, x1 = O ? "noBrand" : "primary", { isLargerThanMobile: P1 } = da(), m1 = P1 ? "small" : "medium";
40444
+ }, r1 = E ? L : v, p1 = r1 ? `${_} - ${r1}` : _, H1 = `${(A == null ? void 0 : A.placeholder) || "Search terms"} ${k ? "(required)" : ""}`, x1 = O ? "noBrand" : "primary", { isLargerThanMobile: P1 } = da(), m1 = P1 ? "small" : "medium";
40437
40445
  y || console.warn(
40438
40446
  "NYPL Reservoir SearchBar: This component's required `id` prop was not passed."
40439
40447
  );
@@ -36,7 +36,7 @@ export interface CheckboxGroupProps {
36
36
  /** Offers the ability to show the group's legend onscreen or hide it. Refer
37
37
  * to the `labelText` property for more information. */
38
38
  showLabel?: boolean;
39
- /** Whether or not to display the "(Required)" text in the label text.
39
+ /** Whether or not to display the "(required)" text in the label text.
40
40
  * True by default. */
41
41
  showRequiredLabel?: boolean;
42
42
  /** The values to programmatically update the selected `Checkbox`es. */
@@ -26,7 +26,7 @@ interface DatePickerWrapperProps extends DateRangeRowProps {
26
26
  labelText: string;
27
27
  /** Offers the ability to show the label onscreen or hide it. */
28
28
  showLabel?: boolean;
29
- /** Whether or not to display the "(Required)" text in the label text.
29
+ /** Whether or not to display the "(required)" text in the label text.
30
30
  * True by default. */
31
31
  showRequiredLabel?: boolean;
32
32
  }
@@ -7,11 +7,11 @@ export interface FieldsetProps {
7
7
  id: string;
8
8
  /** Flag to show or hide the text in the `legend` element. False by default. */
9
9
  isLegendHidden?: boolean;
10
- /** Flag to render "Required" in the `legend`. True by default. */
10
+ /** Flag to render "required" in the `legend`. True by default. */
11
11
  isRequired?: boolean;
12
12
  /** Text to display in the `legend` element. */
13
13
  legendText?: string;
14
- /** Whether or not to display the "(Required)" text in the `legend` text.
14
+ /** Whether or not to display the "(required)" text in the `legend` text.
15
15
  * True by default. */
16
16
  showRequiredLabel?: boolean;
17
17
  }
@@ -10,10 +10,10 @@ export interface LabelProps {
10
10
  /** Controls whether the label should be inline with the input it goes with.
11
11
  * This prop should only be used internally. */
12
12
  isInlined?: boolean;
13
- /** Controls whether the "(Required)" text should be displayed alongside the
13
+ /** Controls whether the "(required)" text should be displayed alongside the
14
14
  * label's text. False by default. */
15
15
  isRequired?: boolean;
16
- /** Allows the '(Required)' text to be changed for language purposes
16
+ /** Allows the '(required)' text to be changed for language purposes
17
17
  * Note: Parenthesis will be added automatically by the component */
18
18
  requiredLabelText?: string;
19
19
  }
@@ -36,7 +36,7 @@ export interface RadioGroupProps {
36
36
  /** Offers the ability to show the group's legend onscreen or hide it. Refer
37
37
  * to the `labelText` property for more information. */
38
38
  showLabel?: boolean;
39
- /** Whether or not to display the "(Required)" text in the label text.
39
+ /** Whether or not to display the "(required)" text in the label text.
40
40
  * True by default. */
41
41
  showRequiredLabel?: boolean;
42
42
  }
@@ -45,7 +45,7 @@ export interface SelectProps {
45
45
  /** Offers the ability to show the select's label onscreen or hide it. Refer
46
46
  * to the `labelText` property for more information. */
47
47
  showLabel?: boolean;
48
- /** Whether or not to display the "(Required)" text in the label text.
48
+ /** Whether or not to display the "(required)" text in the label text.
49
49
  * True by default. */
50
50
  showRequiredLabel?: boolean;
51
51
  /** The value of the selected option.
@@ -45,7 +45,7 @@ export interface SliderProps {
45
45
  /** Offers the ability to show the label onscreen or hide it. Refer
46
46
  * to the `labelText` property for more information. */
47
47
  showLabel?: boolean;
48
- /** Whether or not to display the "(Required)" text in the label text.
48
+ /** Whether or not to display the "(required)" text in the label text.
49
49
  * True by default. */
50
50
  showRequiredLabel?: boolean;
51
51
  /** Offers the ability to hide the static min/max values. */
@@ -65,7 +65,7 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
65
65
  pattern?: string;
66
66
  /** Populates the placeholder for the input/textarea elements */
67
67
  placeholder?: string;
68
- /** Allows the '(Required)' text to be changed for language purposes
68
+ /** Allows the '(required)' text to be changed for language purposes
69
69
  * Note: Parenthesis will be added automatically by the component */
70
70
  requiredLabelText?: string;
71
71
  /** Offers the ability to hide the helper/invalid text. */
@@ -73,7 +73,7 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
73
73
  /** Offers the ability to show the label onscreen or hide it. Refer to the
74
74
  * `labelText` property for more information. */
75
75
  showLabel?: boolean;
76
- /** Whether or not to display the "(Required)" text in the label text.
76
+ /** Whether or not to display the "(required)" text in the label text.
77
77
  * True by default. */
78
78
  showRequiredLabel?: boolean;
79
79
  /** The amount to increase or decrease when using the number type. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",