@beweco/aurora-ui 0.6.38 → 0.6.40

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.cjs.js CHANGED
@@ -1738,6 +1738,15 @@ var countries = [
1738
1738
  { code: "+506", name: "Costa Rica", country: "CR" },
1739
1739
  { code: "+51", name: "Peru", country: "PE" },
1740
1740
  { code: "+56", name: "Chile", country: "CL" },
1741
+ { code: "+591", name: "Bolivia", country: "BO" },
1742
+ { code: "+53", name: "Cuba", country: "CU" },
1743
+ { code: "+593", name: "Ecuador", country: "EC" },
1744
+ { code: "+502", name: "Guatemala", country: "GT" },
1745
+ { code: "+595", name: "Paraguay", country: "PY" },
1746
+ { code: "+1", name: "Puerto Rico", country: "PR" },
1747
+ { code: "+1", name: "República Dominicana", country: "DO" },
1748
+ { code: "+598", name: "Uruguay", country: "UY" },
1749
+ { code: "+58", name: "Venezuela", country: "VE" },
1741
1750
  { code: "+1", name: "United States", country: "US" },
1742
1751
  { code: "+7", name: "Russia", country: "RU" },
1743
1752
  { code: "+20", name: "Egypt", country: "EG" },
@@ -1789,6 +1798,15 @@ var currencyByCountry = {
1789
1798
  CL: "CLP",
1790
1799
  PA: "USD",
1791
1800
  CR: "CRC",
1801
+ BO: "BOB",
1802
+ CU: "CUP",
1803
+ DO: "DOP",
1804
+ EC: "USD",
1805
+ GT: "GTQ",
1806
+ PR: "USD",
1807
+ PY: "PYG",
1808
+ UY: "UYU",
1809
+ VE: "VES",
1792
1810
  US: "USD",
1793
1811
  RU: "RUB",
1794
1812
  EG: "EGP",
@@ -4230,6 +4248,12 @@ function $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a, b) {
4230
4248
  var _a_isEqual1, _ref;
4231
4249
  return (_ref = (_a_isEqual1 = (_a_isEqual = a.isEqual) === null || _a_isEqual === void 0 ? void 0 : _a_isEqual.call(a, b)) !== null && _a_isEqual1 !== void 0 ? _a_isEqual1 : (_b_isEqual = b.isEqual) === null || _b_isEqual === void 0 ? void 0 : _b_isEqual.call(b, a)) !== null && _ref !== void 0 ? _ref : a.identifier === b.identifier;
4232
4250
  }
4251
+ function $14e0f24ef4ac5c92$export$461939dd4422153(timeZone) {
4252
+ return ($11d87f3f76e88657$export$1b96692a1ba042ac)(Date.now(), timeZone);
4253
+ }
4254
+ function $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone) {
4255
+ return ($11d87f3f76e88657$export$93522d1a439f3617)($14e0f24ef4ac5c92$export$461939dd4422153(timeZone));
4256
+ }
4233
4257
  function $14e0f24ef4ac5c92$export$68781ddf31c0090f(a, b) {
4234
4258
  return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);
4235
4259
  }
@@ -4371,6 +4395,21 @@ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguatio
4371
4395
  function $11d87f3f76e88657$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = 'compatible') {
4372
4396
  return new Date($11d87f3f76e88657$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
4373
4397
  }
4398
+ function $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {
4399
+ let offset = $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone);
4400
+ let date = new Date(ms + offset);
4401
+ let year = date.getUTCFullYear();
4402
+ let month = date.getUTCMonth() + 1;
4403
+ let day = date.getUTCDate();
4404
+ let hour = date.getUTCHours();
4405
+ let minute = date.getUTCMinutes();
4406
+ let second = date.getUTCSeconds();
4407
+ let millisecond = date.getUTCMilliseconds();
4408
+ return new ($35ea8db9cb2ccb90$export$d3b7288e7994edea)(year < 1 ? 'BC' : 'AD', year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);
4409
+ }
4410
+ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
4411
+ return new ($35ea8db9cb2ccb90$export$99faa760c7908e4f)(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
4412
+ }
4374
4413
  function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
4375
4414
  let hour = 0, minute = 0, second = 0, millisecond = 0;
4376
4415
  if ('timeZone' in date) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = date);
@@ -4390,7 +4429,36 @@ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
4390
4429
  ($735220c2d4774dd3$export$c4e2ecac49351ef2)(copy);
4391
4430
  return copy;
4392
4431
  }
4432
+ function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
4433
+ if (date instanceof ($35ea8db9cb2ccb90$export$d3b7288e7994edea)) {
4434
+ if (date.timeZone === timeZone) return date;
4435
+ return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
4436
+ }
4437
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
4438
+ return $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone);
4439
+ }
4440
+ function $11d87f3f76e88657$export$83aac07b4c37b25(date) {
4441
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
4442
+ return new Date(ms);
4443
+ }
4444
+ function $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone) {
4445
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
4446
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone), date.calendar);
4447
+ }
4393
4448
 
4449
+ /*
4450
+ * Copyright 2020 Adobe. All rights reserved.
4451
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4452
+ * you may not use this file except in compliance with the License. You may obtain a copy
4453
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
4454
+ *
4455
+ * Unless required by applicable law or agreed to in writing, software distributed under
4456
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
4457
+ * OF ANY KIND, either express or implied. See the License for the specific language
4458
+ * governing permissions and limitations under the License.
4459
+ */
4460
+
4461
+ const $735220c2d4774dd3$var$ONE_HOUR = 3600000;
4394
4462
  function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
4395
4463
  let mutableDate = date.copy();
4396
4464
  let days = 'hour' in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
@@ -4615,6 +4683,106 @@ function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false
4615
4683
  }
4616
4684
  return value;
4617
4685
  }
4686
+ function $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {
4687
+ let ms;
4688
+ if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.weeks != null && duration.weeks !== 0 || duration.days != null && duration.days !== 0) {
4689
+ let res = $735220c2d4774dd3$export$e16d8520af44a096(($11d87f3f76e88657$export$b21e0b124e224484)(dateTime), {
4690
+ years: duration.years,
4691
+ months: duration.months,
4692
+ weeks: duration.weeks,
4693
+ days: duration.days
4694
+ });
4695
+ // Changing the date may change the timezone offset, so we need to recompute
4696
+ // using the 'compatible' disambiguation.
4697
+ ms = ($11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);
4698
+ } else // Otherwise, preserve the offset of the original date.
4699
+ ms = ($11d87f3f76e88657$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;
4700
+ // Perform time manipulation in milliseconds rather than on the original time fields to account for DST.
4701
+ // For example, adding one hour during a DST transition may result in the hour field staying the same or
4702
+ // skipping an hour. This results in the offset field changing value instead of the specified field.
4703
+ ms += duration.milliseconds || 0;
4704
+ ms += (duration.seconds || 0) * 1000;
4705
+ ms += (duration.minutes || 0) * 60000;
4706
+ ms += (duration.hours || 0) * 3600000;
4707
+ let res = ($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone);
4708
+ return ($11d87f3f76e88657$export$b4a036af3fc0b032)(res, dateTime.calendar);
4709
+ }
4710
+ function $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {
4711
+ return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
4712
+ }
4713
+ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, options) {
4714
+ // For date fields, we want the time to remain consistent and the UTC offset to potentially change to account for DST changes.
4715
+ // For time fields, we want the time to change by the amount given. This may result in the hour field staying the same, but the UTC
4716
+ // offset changing in the case of a backward DST transition, or skipping an hour in the case of a forward DST transition.
4717
+ switch(field){
4718
+ case 'hour':
4719
+ {
4720
+ let min = 0;
4721
+ let max = 23;
4722
+ if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
4723
+ let isPM = dateTime.hour >= 12;
4724
+ min = isPM ? 12 : 0;
4725
+ max = isPM ? 23 : 11;
4726
+ }
4727
+ // The minimum and maximum hour may be affected by daylight saving time.
4728
+ // For example, it might jump forward at midnight, and skip 1am.
4729
+ // Or it might end at midnight and repeat the 11pm hour. To handle this, we get
4730
+ // the possible absolute times for the min and max, and find the maximum range
4731
+ // that is within the current day.
4732
+ let plainDateTime = ($11d87f3f76e88657$export$b21e0b124e224484)(dateTime);
4733
+ let minDate = ($11d87f3f76e88657$export$b4a036af3fc0b032)($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
4734
+ hour: min
4735
+ }), new ($3b62074eb05584b2$export$80ee6245ec4f29ec)());
4736
+ let minAbsolute = [
4737
+ ($11d87f3f76e88657$export$5107c82f94518f5c)(minDate, dateTime.timeZone, 'earlier'),
4738
+ ($11d87f3f76e88657$export$5107c82f94518f5c)(minDate, dateTime.timeZone, 'later')
4739
+ ].filter((ms)=>($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone).day === minDate.day)[0];
4740
+ let maxDate = ($11d87f3f76e88657$export$b4a036af3fc0b032)($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
4741
+ hour: max
4742
+ }), new ($3b62074eb05584b2$export$80ee6245ec4f29ec)());
4743
+ let maxAbsolute = [
4744
+ ($11d87f3f76e88657$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, 'earlier'),
4745
+ ($11d87f3f76e88657$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, 'later')
4746
+ ].filter((ms)=>($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone).day === maxDate.day).pop();
4747
+ // Since hours may repeat, we need to operate on the absolute time in milliseconds.
4748
+ // This is done in hours from the Unix epoch so that cycleValue works correctly,
4749
+ // and then converted back to milliseconds.
4750
+ let ms = ($11d87f3f76e88657$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;
4751
+ let hours = Math.floor(ms / $735220c2d4774dd3$var$ONE_HOUR);
4752
+ let remainder = ms % $735220c2d4774dd3$var$ONE_HOUR;
4753
+ ms = $735220c2d4774dd3$var$cycleValue(hours, amount, Math.floor(minAbsolute / $735220c2d4774dd3$var$ONE_HOUR), Math.floor(maxAbsolute / $735220c2d4774dd3$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $735220c2d4774dd3$var$ONE_HOUR + remainder;
4754
+ // Now compute the new timezone offset, and convert the absolute time back to local time.
4755
+ return ($11d87f3f76e88657$export$b4a036af3fc0b032)(($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
4756
+ }
4757
+ case 'minute':
4758
+ case 'second':
4759
+ case 'millisecond':
4760
+ // @ts-ignore
4761
+ return $735220c2d4774dd3$export$dd02b3e0007dfe28(dateTime, field, amount, options);
4762
+ case 'era':
4763
+ case 'year':
4764
+ case 'month':
4765
+ case 'day':
4766
+ {
4767
+ let res = $735220c2d4774dd3$export$d52ced6badfb9a4c(($11d87f3f76e88657$export$b21e0b124e224484)(dateTime), field, amount, options);
4768
+ let ms = ($11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);
4769
+ return ($11d87f3f76e88657$export$b4a036af3fc0b032)(($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
4770
+ }
4771
+ default:
4772
+ throw new Error('Unsupported field ' + field);
4773
+ }
4774
+ }
4775
+ function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
4776
+ // Set the date/time fields, and recompute the UTC offset to account for DST changes.
4777
+ // We also need to validate by converting back to a local time in case hours are skipped during forward DST transitions.
4778
+ let plainDateTime = ($11d87f3f76e88657$export$b21e0b124e224484)(dateTime);
4779
+ let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
4780
+ // If the resulting plain date time values are equal, return the original time.
4781
+ // We don't want to change the offset when setting the time to the same value.
4782
+ if (res.compare(plainDateTime) === 0) return dateTime;
4783
+ let ms = ($11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone, disambiguation);
4784
+ return ($11d87f3f76e88657$export$b4a036af3fc0b032)(($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
4785
+ }
4618
4786
 
4619
4787
  const $fae977aafc393c5c$var$DATE_RE = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;
4620
4788
  function $fae977aafc393c5c$export$6b862160d295c8e(value) {
@@ -4643,6 +4811,16 @@ function $fae977aafc393c5c$export$4223de14708adc63(date) {
4643
4811
  // @ts-ignore
4644
4812
  return `${$fae977aafc393c5c$export$60dfd74aa96791bd(date)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(date)}`;
4645
4813
  }
4814
+ function $fae977aafc393c5c$var$offsetToString(offset) {
4815
+ let sign = Math.sign(offset) < 0 ? '-' : '+';
4816
+ offset = Math.abs(offset);
4817
+ let offsetHours = Math.floor(offset / 3600000);
4818
+ let offsetMinutes = offset % 3600000 / 60000;
4819
+ return `${sign}${String(offsetHours).padStart(2, '0')}:${String(offsetMinutes).padStart(2, '0')}`;
4820
+ }
4821
+ function $fae977aafc393c5c$export$bf79f1ebf4b18792(date) {
4822
+ return `${$fae977aafc393c5c$export$4223de14708adc63(date)}${$fae977aafc393c5c$var$offsetToString(date.offset)}[${date.timeZone}]`;
4823
+ }
4646
4824
 
4647
4825
  function _check_private_redeclaration(obj, privateCollection) {
4648
4826
  if (privateCollection.has(obj)) {
@@ -4838,6 +5016,64 @@ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
4838
5016
  ($735220c2d4774dd3$export$c4e2ecac49351ef2)(this);
4839
5017
  }
4840
5018
  }
5019
+ var // This prevents TypeScript from allowing other types with the same fields to match.
5020
+ // @ts-ignore
5021
+ $35ea8db9cb2ccb90$var$_type3 = /*#__PURE__*/ new WeakMap();
5022
+ class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
5023
+ /** Returns a copy of this date. */ copy() {
5024
+ if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
5025
+ else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
5026
+ }
5027
+ /** Returns a new `ZonedDateTime` with the given duration added to it. */ add(duration) {
5028
+ return ($735220c2d4774dd3$export$96b1d28349274637)(this, duration);
5029
+ }
5030
+ /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */ subtract(duration) {
5031
+ return ($735220c2d4774dd3$export$6814caac34ca03c7)(this, duration);
5032
+ }
5033
+ /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields, disambiguation) {
5034
+ return ($735220c2d4774dd3$export$31b5430eb18be4f8)(this, fields, disambiguation);
5035
+ }
5036
+ /**
5037
+ * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
5038
+ * When the resulting value reaches the limits of the field, it wraps around.
5039
+ */ cycle(field, amount, options) {
5040
+ return ($735220c2d4774dd3$export$9a297d111fc86b79)(this, field, amount, options);
5041
+ }
5042
+ /** Converts the date to a native JavaScript Date object. */ toDate() {
5043
+ return ($11d87f3f76e88657$export$83aac07b4c37b25)(this);
5044
+ }
5045
+ /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */ toString() {
5046
+ return ($fae977aafc393c5c$export$bf79f1ebf4b18792)(this);
5047
+ }
5048
+ /** Converts the date to an ISO 8601 formatted string in UTC. */ toAbsoluteString() {
5049
+ return this.toDate().toISOString();
5050
+ }
5051
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
5052
+ // TODO: Is this a bad idea??
5053
+ return this.toDate().getTime() - ($11d87f3f76e88657$export$84c95a83c799e074)(b, this.timeZone).toDate().getTime();
5054
+ }
5055
+ constructor(...args){
5056
+ (_class_private_field_init)(this, $35ea8db9cb2ccb90$var$_type3, {
5057
+ writable: true,
5058
+ value: void 0
5059
+ });
5060
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
5061
+ let timeZone = args.shift();
5062
+ let offset = args.shift();
5063
+ this.calendar = calendar;
5064
+ this.era = era;
5065
+ this.year = year;
5066
+ this.month = month;
5067
+ this.day = day;
5068
+ this.timeZone = timeZone;
5069
+ this.offset = offset;
5070
+ this.hour = args.shift() || 0;
5071
+ this.minute = args.shift() || 0;
5072
+ this.second = args.shift() || 0;
5073
+ this.millisecond = args.shift() || 0;
5074
+ ($735220c2d4774dd3$export$c4e2ecac49351ef2)(this);
5075
+ }
5076
+ }
4841
5077
 
4842
5078
  var Switch = function (_a) {
4843
5079
  var id = _a.id, props = __rest(_a, ["id"]);
@@ -6735,7 +6971,10 @@ var DayMonthPicker = function (_a) {
6735
6971
  dayMonthRange: range,
6736
6972
  });
6737
6973
  };
6738
- return (jsxRuntime.jsxs("div", { className: "w-full flex flex-wrap xs:gap-5 justify-between items-center", children: [jsxRuntime.jsxs(react.RadioGroup, { color: "primary", orientation: "horizontal", size: "sm", value: mode, onValueChange: handleModeChange, children: [jsxRuntime.jsx(react.Radio, { value: "single", children: t.dayMonthSingleOption }), jsxRuntime.jsx(react.Radio, { value: "range", children: t.dayMonthRangeOption })] }), mode === "single" ? (jsxRuntime.jsx(DatePicker, { value: (value === null || value === void 0 ? void 0 : value.type) === "dayMonth" ? value.dayMonth : null, onChange: handleSingleChange, "aria-label": t.dayMonthAriaLabel, endContent: jsxRuntime.jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-40 ".concat(NO_YEAR_CLASS) })) : (jsxRuntime.jsx(DateRangePicker, { value: (value === null || value === void 0 ? void 0 : value.type) === "dayMonthRange" ? value.dayMonthRange : null, onChange: handleRangeChange, "aria-label": t.dayMonthRangeAriaLabel, endContent: jsxRuntime.jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-xs ".concat(NO_YEAR_CLASS) }))] }));
6974
+ var currentYearDate = $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2());
6975
+ var pickerValue = (value === null || value === void 0 ? void 0 : value.type) === "dayMonth" ? value.dayMonth : null;
6976
+ var rangeValue = (value === null || value === void 0 ? void 0 : value.type) === "dayMonthRange" ? value.dayMonthRange : null;
6977
+ return (jsxRuntime.jsxs("div", { className: "w-full flex flex-wrap xs:gap-5 justify-between items-center", children: [jsxRuntime.jsxs(react.RadioGroup, { color: "primary", orientation: "horizontal", size: "sm", value: mode, onValueChange: handleModeChange, children: [jsxRuntime.jsx(react.Radio, { value: "single", children: t.dayMonthSingleOption }), jsxRuntime.jsx(react.Radio, { value: "range", children: t.dayMonthRangeOption })] }), mode === "single" ? (pickerValue ? (jsxRuntime.jsx(DatePicker, { value: pickerValue, onChange: handleSingleChange, "aria-label": t.dayMonthAriaLabel, endContent: jsxRuntime.jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-40 ".concat(NO_YEAR_CLASS) }, "dmp-c")) : (jsxRuntime.jsx(DatePicker, { defaultValue: currentYearDate, onChange: handleSingleChange, "aria-label": t.dayMonthAriaLabel, endContent: jsxRuntime.jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-40 ".concat(NO_YEAR_CLASS) }, "dmp-u"))) : (rangeValue ? (jsxRuntime.jsx(DateRangePicker, { value: rangeValue, onChange: handleRangeChange, "aria-label": t.dayMonthRangeAriaLabel, endContent: jsxRuntime.jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-xs ".concat(NO_YEAR_CLASS) }, "dmpr-c")) : (jsxRuntime.jsx(DateRangePicker, { defaultValue: { start: currentYearDate, end: currentYearDate }, onChange: handleRangeChange, "aria-label": t.dayMonthRangeAriaLabel, endContent: jsxRuntime.jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-xs ".concat(NO_YEAR_CLASS) }, "dmpr-u")))] }));
6739
6978
  };
6740
6979
 
6741
6980
  /**
package/dist/index.esm.js CHANGED
@@ -1739,6 +1739,15 @@ var countries = [
1739
1739
  { code: "+506", name: "Costa Rica", country: "CR" },
1740
1740
  { code: "+51", name: "Peru", country: "PE" },
1741
1741
  { code: "+56", name: "Chile", country: "CL" },
1742
+ { code: "+591", name: "Bolivia", country: "BO" },
1743
+ { code: "+53", name: "Cuba", country: "CU" },
1744
+ { code: "+593", name: "Ecuador", country: "EC" },
1745
+ { code: "+502", name: "Guatemala", country: "GT" },
1746
+ { code: "+595", name: "Paraguay", country: "PY" },
1747
+ { code: "+1", name: "Puerto Rico", country: "PR" },
1748
+ { code: "+1", name: "República Dominicana", country: "DO" },
1749
+ { code: "+598", name: "Uruguay", country: "UY" },
1750
+ { code: "+58", name: "Venezuela", country: "VE" },
1742
1751
  { code: "+1", name: "United States", country: "US" },
1743
1752
  { code: "+7", name: "Russia", country: "RU" },
1744
1753
  { code: "+20", name: "Egypt", country: "EG" },
@@ -1790,6 +1799,15 @@ var currencyByCountry = {
1790
1799
  CL: "CLP",
1791
1800
  PA: "USD",
1792
1801
  CR: "CRC",
1802
+ BO: "BOB",
1803
+ CU: "CUP",
1804
+ DO: "DOP",
1805
+ EC: "USD",
1806
+ GT: "GTQ",
1807
+ PR: "USD",
1808
+ PY: "PYG",
1809
+ UY: "UYU",
1810
+ VE: "VES",
1793
1811
  US: "USD",
1794
1812
  RU: "RUB",
1795
1813
  EG: "EGP",
@@ -4231,6 +4249,12 @@ function $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a, b) {
4231
4249
  var _a_isEqual1, _ref;
4232
4250
  return (_ref = (_a_isEqual1 = (_a_isEqual = a.isEqual) === null || _a_isEqual === void 0 ? void 0 : _a_isEqual.call(a, b)) !== null && _a_isEqual1 !== void 0 ? _a_isEqual1 : (_b_isEqual = b.isEqual) === null || _b_isEqual === void 0 ? void 0 : _b_isEqual.call(b, a)) !== null && _ref !== void 0 ? _ref : a.identifier === b.identifier;
4233
4251
  }
4252
+ function $14e0f24ef4ac5c92$export$461939dd4422153(timeZone) {
4253
+ return ($11d87f3f76e88657$export$1b96692a1ba042ac)(Date.now(), timeZone);
4254
+ }
4255
+ function $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone) {
4256
+ return ($11d87f3f76e88657$export$93522d1a439f3617)($14e0f24ef4ac5c92$export$461939dd4422153(timeZone));
4257
+ }
4234
4258
  function $14e0f24ef4ac5c92$export$68781ddf31c0090f(a, b) {
4235
4259
  return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);
4236
4260
  }
@@ -4372,6 +4396,21 @@ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguatio
4372
4396
  function $11d87f3f76e88657$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = 'compatible') {
4373
4397
  return new Date($11d87f3f76e88657$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
4374
4398
  }
4399
+ function $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {
4400
+ let offset = $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone);
4401
+ let date = new Date(ms + offset);
4402
+ let year = date.getUTCFullYear();
4403
+ let month = date.getUTCMonth() + 1;
4404
+ let day = date.getUTCDate();
4405
+ let hour = date.getUTCHours();
4406
+ let minute = date.getUTCMinutes();
4407
+ let second = date.getUTCSeconds();
4408
+ let millisecond = date.getUTCMilliseconds();
4409
+ return new ($35ea8db9cb2ccb90$export$d3b7288e7994edea)(year < 1 ? 'BC' : 'AD', year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);
4410
+ }
4411
+ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
4412
+ return new ($35ea8db9cb2ccb90$export$99faa760c7908e4f)(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
4413
+ }
4375
4414
  function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
4376
4415
  let hour = 0, minute = 0, second = 0, millisecond = 0;
4377
4416
  if ('timeZone' in date) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = date);
@@ -4391,7 +4430,36 @@ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
4391
4430
  ($735220c2d4774dd3$export$c4e2ecac49351ef2)(copy);
4392
4431
  return copy;
4393
4432
  }
4433
+ function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
4434
+ if (date instanceof ($35ea8db9cb2ccb90$export$d3b7288e7994edea)) {
4435
+ if (date.timeZone === timeZone) return date;
4436
+ return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
4437
+ }
4438
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
4439
+ return $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone);
4440
+ }
4441
+ function $11d87f3f76e88657$export$83aac07b4c37b25(date) {
4442
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
4443
+ return new Date(ms);
4444
+ }
4445
+ function $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone) {
4446
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
4447
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone), date.calendar);
4448
+ }
4394
4449
 
4450
+ /*
4451
+ * Copyright 2020 Adobe. All rights reserved.
4452
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4453
+ * you may not use this file except in compliance with the License. You may obtain a copy
4454
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
4455
+ *
4456
+ * Unless required by applicable law or agreed to in writing, software distributed under
4457
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
4458
+ * OF ANY KIND, either express or implied. See the License for the specific language
4459
+ * governing permissions and limitations under the License.
4460
+ */
4461
+
4462
+ const $735220c2d4774dd3$var$ONE_HOUR = 3600000;
4395
4463
  function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
4396
4464
  let mutableDate = date.copy();
4397
4465
  let days = 'hour' in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
@@ -4616,6 +4684,106 @@ function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false
4616
4684
  }
4617
4685
  return value;
4618
4686
  }
4687
+ function $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {
4688
+ let ms;
4689
+ if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.weeks != null && duration.weeks !== 0 || duration.days != null && duration.days !== 0) {
4690
+ let res = $735220c2d4774dd3$export$e16d8520af44a096(($11d87f3f76e88657$export$b21e0b124e224484)(dateTime), {
4691
+ years: duration.years,
4692
+ months: duration.months,
4693
+ weeks: duration.weeks,
4694
+ days: duration.days
4695
+ });
4696
+ // Changing the date may change the timezone offset, so we need to recompute
4697
+ // using the 'compatible' disambiguation.
4698
+ ms = ($11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);
4699
+ } else // Otherwise, preserve the offset of the original date.
4700
+ ms = ($11d87f3f76e88657$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;
4701
+ // Perform time manipulation in milliseconds rather than on the original time fields to account for DST.
4702
+ // For example, adding one hour during a DST transition may result in the hour field staying the same or
4703
+ // skipping an hour. This results in the offset field changing value instead of the specified field.
4704
+ ms += duration.milliseconds || 0;
4705
+ ms += (duration.seconds || 0) * 1000;
4706
+ ms += (duration.minutes || 0) * 60000;
4707
+ ms += (duration.hours || 0) * 3600000;
4708
+ let res = ($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone);
4709
+ return ($11d87f3f76e88657$export$b4a036af3fc0b032)(res, dateTime.calendar);
4710
+ }
4711
+ function $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {
4712
+ return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
4713
+ }
4714
+ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, options) {
4715
+ // For date fields, we want the time to remain consistent and the UTC offset to potentially change to account for DST changes.
4716
+ // For time fields, we want the time to change by the amount given. This may result in the hour field staying the same, but the UTC
4717
+ // offset changing in the case of a backward DST transition, or skipping an hour in the case of a forward DST transition.
4718
+ switch(field){
4719
+ case 'hour':
4720
+ {
4721
+ let min = 0;
4722
+ let max = 23;
4723
+ if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
4724
+ let isPM = dateTime.hour >= 12;
4725
+ min = isPM ? 12 : 0;
4726
+ max = isPM ? 23 : 11;
4727
+ }
4728
+ // The minimum and maximum hour may be affected by daylight saving time.
4729
+ // For example, it might jump forward at midnight, and skip 1am.
4730
+ // Or it might end at midnight and repeat the 11pm hour. To handle this, we get
4731
+ // the possible absolute times for the min and max, and find the maximum range
4732
+ // that is within the current day.
4733
+ let plainDateTime = ($11d87f3f76e88657$export$b21e0b124e224484)(dateTime);
4734
+ let minDate = ($11d87f3f76e88657$export$b4a036af3fc0b032)($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
4735
+ hour: min
4736
+ }), new ($3b62074eb05584b2$export$80ee6245ec4f29ec)());
4737
+ let minAbsolute = [
4738
+ ($11d87f3f76e88657$export$5107c82f94518f5c)(minDate, dateTime.timeZone, 'earlier'),
4739
+ ($11d87f3f76e88657$export$5107c82f94518f5c)(minDate, dateTime.timeZone, 'later')
4740
+ ].filter((ms)=>($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone).day === minDate.day)[0];
4741
+ let maxDate = ($11d87f3f76e88657$export$b4a036af3fc0b032)($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
4742
+ hour: max
4743
+ }), new ($3b62074eb05584b2$export$80ee6245ec4f29ec)());
4744
+ let maxAbsolute = [
4745
+ ($11d87f3f76e88657$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, 'earlier'),
4746
+ ($11d87f3f76e88657$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, 'later')
4747
+ ].filter((ms)=>($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone).day === maxDate.day).pop();
4748
+ // Since hours may repeat, we need to operate on the absolute time in milliseconds.
4749
+ // This is done in hours from the Unix epoch so that cycleValue works correctly,
4750
+ // and then converted back to milliseconds.
4751
+ let ms = ($11d87f3f76e88657$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;
4752
+ let hours = Math.floor(ms / $735220c2d4774dd3$var$ONE_HOUR);
4753
+ let remainder = ms % $735220c2d4774dd3$var$ONE_HOUR;
4754
+ ms = $735220c2d4774dd3$var$cycleValue(hours, amount, Math.floor(minAbsolute / $735220c2d4774dd3$var$ONE_HOUR), Math.floor(maxAbsolute / $735220c2d4774dd3$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $735220c2d4774dd3$var$ONE_HOUR + remainder;
4755
+ // Now compute the new timezone offset, and convert the absolute time back to local time.
4756
+ return ($11d87f3f76e88657$export$b4a036af3fc0b032)(($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
4757
+ }
4758
+ case 'minute':
4759
+ case 'second':
4760
+ case 'millisecond':
4761
+ // @ts-ignore
4762
+ return $735220c2d4774dd3$export$dd02b3e0007dfe28(dateTime, field, amount, options);
4763
+ case 'era':
4764
+ case 'year':
4765
+ case 'month':
4766
+ case 'day':
4767
+ {
4768
+ let res = $735220c2d4774dd3$export$d52ced6badfb9a4c(($11d87f3f76e88657$export$b21e0b124e224484)(dateTime), field, amount, options);
4769
+ let ms = ($11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);
4770
+ return ($11d87f3f76e88657$export$b4a036af3fc0b032)(($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
4771
+ }
4772
+ default:
4773
+ throw new Error('Unsupported field ' + field);
4774
+ }
4775
+ }
4776
+ function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
4777
+ // Set the date/time fields, and recompute the UTC offset to account for DST changes.
4778
+ // We also need to validate by converting back to a local time in case hours are skipped during forward DST transitions.
4779
+ let plainDateTime = ($11d87f3f76e88657$export$b21e0b124e224484)(dateTime);
4780
+ let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
4781
+ // If the resulting plain date time values are equal, return the original time.
4782
+ // We don't want to change the offset when setting the time to the same value.
4783
+ if (res.compare(plainDateTime) === 0) return dateTime;
4784
+ let ms = ($11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone, disambiguation);
4785
+ return ($11d87f3f76e88657$export$b4a036af3fc0b032)(($11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
4786
+ }
4619
4787
 
4620
4788
  const $fae977aafc393c5c$var$DATE_RE = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;
4621
4789
  function $fae977aafc393c5c$export$6b862160d295c8e(value) {
@@ -4644,6 +4812,16 @@ function $fae977aafc393c5c$export$4223de14708adc63(date) {
4644
4812
  // @ts-ignore
4645
4813
  return `${$fae977aafc393c5c$export$60dfd74aa96791bd(date)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(date)}`;
4646
4814
  }
4815
+ function $fae977aafc393c5c$var$offsetToString(offset) {
4816
+ let sign = Math.sign(offset) < 0 ? '-' : '+';
4817
+ offset = Math.abs(offset);
4818
+ let offsetHours = Math.floor(offset / 3600000);
4819
+ let offsetMinutes = offset % 3600000 / 60000;
4820
+ return `${sign}${String(offsetHours).padStart(2, '0')}:${String(offsetMinutes).padStart(2, '0')}`;
4821
+ }
4822
+ function $fae977aafc393c5c$export$bf79f1ebf4b18792(date) {
4823
+ return `${$fae977aafc393c5c$export$4223de14708adc63(date)}${$fae977aafc393c5c$var$offsetToString(date.offset)}[${date.timeZone}]`;
4824
+ }
4647
4825
 
4648
4826
  function _check_private_redeclaration(obj, privateCollection) {
4649
4827
  if (privateCollection.has(obj)) {
@@ -4839,6 +5017,64 @@ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
4839
5017
  ($735220c2d4774dd3$export$c4e2ecac49351ef2)(this);
4840
5018
  }
4841
5019
  }
5020
+ var // This prevents TypeScript from allowing other types with the same fields to match.
5021
+ // @ts-ignore
5022
+ $35ea8db9cb2ccb90$var$_type3 = /*#__PURE__*/ new WeakMap();
5023
+ class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
5024
+ /** Returns a copy of this date. */ copy() {
5025
+ if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
5026
+ else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
5027
+ }
5028
+ /** Returns a new `ZonedDateTime` with the given duration added to it. */ add(duration) {
5029
+ return ($735220c2d4774dd3$export$96b1d28349274637)(this, duration);
5030
+ }
5031
+ /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */ subtract(duration) {
5032
+ return ($735220c2d4774dd3$export$6814caac34ca03c7)(this, duration);
5033
+ }
5034
+ /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields, disambiguation) {
5035
+ return ($735220c2d4774dd3$export$31b5430eb18be4f8)(this, fields, disambiguation);
5036
+ }
5037
+ /**
5038
+ * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
5039
+ * When the resulting value reaches the limits of the field, it wraps around.
5040
+ */ cycle(field, amount, options) {
5041
+ return ($735220c2d4774dd3$export$9a297d111fc86b79)(this, field, amount, options);
5042
+ }
5043
+ /** Converts the date to a native JavaScript Date object. */ toDate() {
5044
+ return ($11d87f3f76e88657$export$83aac07b4c37b25)(this);
5045
+ }
5046
+ /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */ toString() {
5047
+ return ($fae977aafc393c5c$export$bf79f1ebf4b18792)(this);
5048
+ }
5049
+ /** Converts the date to an ISO 8601 formatted string in UTC. */ toAbsoluteString() {
5050
+ return this.toDate().toISOString();
5051
+ }
5052
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
5053
+ // TODO: Is this a bad idea??
5054
+ return this.toDate().getTime() - ($11d87f3f76e88657$export$84c95a83c799e074)(b, this.timeZone).toDate().getTime();
5055
+ }
5056
+ constructor(...args){
5057
+ (_class_private_field_init)(this, $35ea8db9cb2ccb90$var$_type3, {
5058
+ writable: true,
5059
+ value: void 0
5060
+ });
5061
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
5062
+ let timeZone = args.shift();
5063
+ let offset = args.shift();
5064
+ this.calendar = calendar;
5065
+ this.era = era;
5066
+ this.year = year;
5067
+ this.month = month;
5068
+ this.day = day;
5069
+ this.timeZone = timeZone;
5070
+ this.offset = offset;
5071
+ this.hour = args.shift() || 0;
5072
+ this.minute = args.shift() || 0;
5073
+ this.second = args.shift() || 0;
5074
+ this.millisecond = args.shift() || 0;
5075
+ ($735220c2d4774dd3$export$c4e2ecac49351ef2)(this);
5076
+ }
5077
+ }
4842
5078
 
4843
5079
  var Switch = function (_a) {
4844
5080
  var id = _a.id, props = __rest(_a, ["id"]);
@@ -6736,7 +6972,10 @@ var DayMonthPicker = function (_a) {
6736
6972
  dayMonthRange: range,
6737
6973
  });
6738
6974
  };
6739
- return (jsxs("div", { className: "w-full flex flex-wrap xs:gap-5 justify-between items-center", children: [jsxs(RadioGroup, { color: "primary", orientation: "horizontal", size: "sm", value: mode, onValueChange: handleModeChange, children: [jsx(Radio, { value: "single", children: t.dayMonthSingleOption }), jsx(Radio, { value: "range", children: t.dayMonthRangeOption })] }), mode === "single" ? (jsx(DatePicker, { value: (value === null || value === void 0 ? void 0 : value.type) === "dayMonth" ? value.dayMonth : null, onChange: handleSingleChange, "aria-label": t.dayMonthAriaLabel, endContent: jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-40 ".concat(NO_YEAR_CLASS) })) : (jsx(DateRangePicker, { value: (value === null || value === void 0 ? void 0 : value.type) === "dayMonthRange" ? value.dayMonthRange : null, onChange: handleRangeChange, "aria-label": t.dayMonthRangeAriaLabel, endContent: jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-xs ".concat(NO_YEAR_CLASS) }))] }));
6975
+ var currentYearDate = $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2());
6976
+ var pickerValue = (value === null || value === void 0 ? void 0 : value.type) === "dayMonth" ? value.dayMonth : null;
6977
+ var rangeValue = (value === null || value === void 0 ? void 0 : value.type) === "dayMonthRange" ? value.dayMonthRange : null;
6978
+ return (jsxs("div", { className: "w-full flex flex-wrap xs:gap-5 justify-between items-center", children: [jsxs(RadioGroup, { color: "primary", orientation: "horizontal", size: "sm", value: mode, onValueChange: handleModeChange, children: [jsx(Radio, { value: "single", children: t.dayMonthSingleOption }), jsx(Radio, { value: "range", children: t.dayMonthRangeOption })] }), mode === "single" ? (pickerValue ? (jsx(DatePicker, { value: pickerValue, onChange: handleSingleChange, "aria-label": t.dayMonthAriaLabel, endContent: jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-40 ".concat(NO_YEAR_CLASS) }, "dmp-c")) : (jsx(DatePicker, { defaultValue: currentYearDate, onChange: handleSingleChange, "aria-label": t.dayMonthAriaLabel, endContent: jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-40 ".concat(NO_YEAR_CLASS) }, "dmp-u"))) : (rangeValue ? (jsx(DateRangePicker, { value: rangeValue, onChange: handleRangeChange, "aria-label": t.dayMonthRangeAriaLabel, endContent: jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-xs ".concat(NO_YEAR_CLASS) }, "dmpr-c")) : (jsx(DateRangePicker, { defaultValue: { start: currentYearDate, end: currentYearDate }, onChange: handleRangeChange, "aria-label": t.dayMonthRangeAriaLabel, endContent: jsx(IconComponent, { icon: "solar:calendar-outline" }), className: "w-full md:w-auto md:max-w-xs ".concat(NO_YEAR_CLASS) }, "dmpr-u")))] }));
6740
6979
  };
6741
6980
 
6742
6981
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"currency.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/currency/currency.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AA0D7E,eAAO,MAAM,sBAAsB,EAAE,cAAc,EAsB/C,CAAC;AAEL,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,oBAAoB,CAQ9D,CAAC"}
1
+ {"version":3,"file":"currency.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/currency/currency.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAmE7E,eAAO,MAAM,sBAAsB,EAAE,cAAc,EAsB/C,CAAC;AAEL,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,oBAAoB,CAQ9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DayMonthPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer-filters/_internal/DayMonthPicker.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAKxE,UAAU,mBAAmB;IAC5B,IAAI,EAAE,UAAU,GAAG,eAAe,CAAC;IACnC,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;CAC5C;AAED,UAAU,mBAAmB;IAC5B,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC/C,YAAY,CAAC,EAAE,yBAAyB,CAAC;CACzC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+ExD,CAAC"}
1
+ {"version":3,"file":"DayMonthPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer-filters/_internal/DayMonthPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAKxE,UAAU,mBAAmB;IAC5B,IAAI,EAAE,UAAU,GAAG,eAAe,CAAC;IACnC,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;CAC5C;AAED,UAAU,mBAAmB;IAC5B,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC/C,YAAY,CAAC,EAAE,yBAAyB,CAAC;CACzC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2GxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"phone.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/phone.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGvD,eAAO,MAAM,SAAS;;;;GA4BrB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;GAE3B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,iBAAiB,CAO3D,CAAC"}
1
+ {"version":3,"file":"phone.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/phone.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGvD,eAAO,MAAM,SAAS;;;;GAqCrB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;GAE3B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,iBAAiB,CAO3D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beweco/aurora-ui",
3
- "version": "0.6.38",
3
+ "version": "0.6.40",
4
4
  "description": "Bewe Aurora UI Component Library",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",