@northlight/ui 2.33.12 → 2.33.14

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.
@@ -4383,7 +4383,7 @@
4383
4383
  }
4384
4384
  return target;
4385
4385
  };
4386
- const P = (_a) => {
4386
+ const P = React.forwardRef((_a, ref) => {
4387
4387
  var _b = _a, {
4388
4388
  children,
4389
4389
  variant = "16",
@@ -4398,11 +4398,12 @@
4398
4398
  react.Text,
4399
4399
  __spreadValues$23({
4400
4400
  variant,
4401
- sx: styles
4401
+ sx: styles,
4402
+ ref
4402
4403
  }, rest),
4403
4404
  children
4404
4405
  );
4405
- };
4406
+ });
4406
4407
 
4407
4408
  var __defProp$22 = Object.defineProperty;
4408
4409
  var __getOwnPropSymbols$22 = Object.getOwnPropertySymbols;
@@ -4432,11 +4433,13 @@
4432
4433
  }
4433
4434
  return target;
4434
4435
  };
4435
- const Blockquote = (_a) => {
4436
- var _b = _a, { children, sx = {} } = _b, rest = __objRest$1E(_b, ["children", "sx"]);
4437
- const styles = react.useStyleConfig("Blockquote", { sx });
4438
- return /* @__PURE__ */ React.createElement(react.Text, __spreadValues$22({ as: "span", sx: styles }, rest), children);
4439
- };
4436
+ const Blockquote = React.forwardRef(
4437
+ (_a, ref) => {
4438
+ var _b = _a, { children, sx = {} } = _b, rest = __objRest$1E(_b, ["children", "sx"]);
4439
+ const styles = react.useStyleConfig("Blockquote", { sx });
4440
+ return /* @__PURE__ */ React.createElement(react.Text, __spreadValues$22({ as: "span", sx: styles, ref }, rest), children);
4441
+ }
4442
+ );
4440
4443
 
4441
4444
  var __defProp$21 = Object.defineProperty;
4442
4445
  var __getOwnPropSymbols$21 = Object.getOwnPropertySymbols;
@@ -4466,7 +4469,7 @@
4466
4469
  }
4467
4470
  return target;
4468
4471
  };
4469
- const Capitalized = (_a) => {
4472
+ const Capitalized = React.forwardRef((_a, ref) => {
4470
4473
  var _b = _a, {
4471
4474
  children,
4472
4475
  sx = {}
@@ -4479,11 +4482,12 @@
4479
4482
  react.Text,
4480
4483
  __spreadValues$21({
4481
4484
  as: "span",
4482
- sx: styles
4485
+ sx: styles,
4486
+ ref
4483
4487
  }, rest),
4484
4488
  children
4485
4489
  );
4486
- };
4490
+ });
4487
4491
 
4488
4492
  var __defProp$20 = Object.defineProperty;
4489
4493
  var __getOwnPropSymbols$20 = Object.getOwnPropertySymbols;
@@ -4513,7 +4517,7 @@
4513
4517
  }
4514
4518
  return target;
4515
4519
  };
4516
- const Lead = (_a) => {
4520
+ const Lead = React.forwardRef((_a, ref) => {
4517
4521
  var _b = _a, {
4518
4522
  children,
4519
4523
  sx = {}
@@ -4526,11 +4530,12 @@
4526
4530
  react.Text,
4527
4531
  __spreadValues$20({
4528
4532
  as: "span",
4529
- sx: styles
4533
+ sx: styles,
4534
+ ref
4530
4535
  }, rest),
4531
4536
  children
4532
4537
  );
4533
- };
4538
+ });
4534
4539
 
4535
4540
  var __defProp$1$ = Object.defineProperty;
4536
4541
  var __getOwnPropSymbols$1$ = Object.getOwnPropertySymbols;
@@ -4560,7 +4565,7 @@
4560
4565
  }
4561
4566
  return target;
4562
4567
  };
4563
- const Small = (_a) => {
4568
+ const Small = React.forwardRef((_a, ref) => {
4564
4569
  var _b = _a, {
4565
4570
  children,
4566
4571
  sx = {}
@@ -4573,11 +4578,12 @@
4573
4578
  react.Text,
4574
4579
  __spreadValues$1$({
4575
4580
  as: "small",
4576
- sx: styles
4581
+ sx: styles,
4582
+ ref
4577
4583
  }, rest),
4578
4584
  children
4579
4585
  );
4580
- };
4586
+ });
4581
4587
 
4582
4588
  var __defProp$1_ = Object.defineProperty;
4583
4589
  var __getOwnPropSymbols$1_ = Object.getOwnPropertySymbols;
@@ -4607,7 +4613,7 @@
4607
4613
  }
4608
4614
  return target;
4609
4615
  };
4610
- const Tiny = (_a) => {
4616
+ const Tiny = React.forwardRef((_a, ref) => {
4611
4617
  var _b = _a, {
4612
4618
  children,
4613
4619
  sx = {}
@@ -4620,11 +4626,12 @@
4620
4626
  react.Text,
4621
4627
  __spreadValues$1_({
4622
4628
  as: "span",
4623
- sx: styles
4629
+ sx: styles,
4630
+ ref
4624
4631
  }, rest),
4625
4632
  children
4626
4633
  );
4627
- };
4634
+ });
4628
4635
 
4629
4636
  var __defProp$1Z = Object.defineProperty;
4630
4637
  var __getOwnPropSymbols$1Z = Object.getOwnPropertySymbols;
@@ -7411,7 +7418,8 @@
7411
7418
  minValue,
7412
7419
  maxValue,
7413
7420
  firstDayOfWeek,
7414
- onSave
7421
+ onSave,
7422
+ buttonLabel = "Save"
7415
7423
  } = props;
7416
7424
  const { locale } = i18n.useLocale();
7417
7425
  const ref = React.useRef(null);
@@ -7483,7 +7491,7 @@
7483
7491
  range: value,
7484
7492
  firstDayOfWeek
7485
7493
  }
7486
- ))), /* @__PURE__ */ React.createElement(react.HStack, { pt: "2", alignSelf: "end" }, isClearable && /* @__PURE__ */ React.createElement(Button, { onClick: resetDate, variant: "ghost", size: "sm" }, "Clear"), /* @__PURE__ */ React.createElement(Button, { variant: "brand", onClick: handleSave, size: "sm" }, "Save"))))))));
7494
+ ))), /* @__PURE__ */ React.createElement(react.HStack, { pt: "2", alignSelf: "end" }, isClearable && /* @__PURE__ */ React.createElement(Button, { onClick: resetDate, variant: "ghost", size: "sm" }, "Clear"), /* @__PURE__ */ React.createElement(Button, { variant: "brand", onClick: handleSave, size: "sm" }, buttonLabel))))))));
7487
7495
  };
7488
7496
 
7489
7497
  const isValidDateRange = (value) => ramda.is(Object, value) && ramda.has("startDate", value) && ramda.has("endDate", value) && ramda.is(String, value.startDate) && ramda.is(String, value.endDate);
@@ -7537,7 +7545,8 @@
7537
7545
  maxValue,
7538
7546
  renderInPortal = false,
7539
7547
  firstDayOfWeek,
7540
- onSave
7548
+ onSave,
7549
+ buttonLabel = "Save"
7541
7550
  } = props;
7542
7551
  const ref = React.useRef();
7543
7552
  const { group } = react.useMultiStyleConfig("DatePicker");
@@ -7621,7 +7630,8 @@
7621
7630
  fiscalStartDay: fiscalStartDay || 0,
7622
7631
  isClearable,
7623
7632
  firstDayOfWeek,
7624
- onSave
7633
+ onSave,
7634
+ buttonLabel
7625
7635
  })
7626
7636
  )))))
7627
7637
  );
@@ -7810,7 +7820,8 @@
7810
7820
  firstDayOfWeek = "monday",
7811
7821
  onChange: onChangeCallback = ramda.identity,
7812
7822
  isClearable = true,
7813
- onSave
7823
+ onSave,
7824
+ buttonLabel = "Save"
7814
7825
  } = _b, rest = __objRest$19(_b, [
7815
7826
  "name",
7816
7827
  "minValue",
@@ -7822,7 +7833,8 @@
7822
7833
  "firstDayOfWeek",
7823
7834
  "onChange",
7824
7835
  "isClearable",
7825
- "onSave"
7836
+ "onSave",
7837
+ "buttonLabel"
7826
7838
  ]);
7827
7839
  const { setValue, setError, trigger } = reactHookForm.useFormContext();
7828
7840
  const handleChange = (dateRange) => {
@@ -7860,7 +7872,8 @@
7860
7872
  minValue,
7861
7873
  maxValue,
7862
7874
  validationState: errors.name ? "invalid" : "valid",
7863
- isClearable
7875
+ isClearable,
7876
+ buttonLabel
7864
7877
  }, rest)
7865
7878
  )
7866
7879
  );