@geckoui/geckoui 1.1.2 → 1.2.0-beta.0

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.js CHANGED
@@ -89,6 +89,7 @@ __export(index_exports, {
89
89
  CalendarType: () => CalendarType,
90
90
  Checkbox: () => Checkbox_default,
91
91
  ConfirmDialog: () => ConfirmDialog_default,
92
+ CounterInput: () => CounterInput_default,
92
93
  DateInput: () => DateInput_default,
93
94
  DateRangeInput: () => DateRangeInput_default,
94
95
  Dialog: () => Dialog_default,
@@ -113,6 +114,7 @@ __export(index_exports, {
113
114
  Pagination: () => Pagination_default,
114
115
  RHFCheckbox: () => RHFCheckbox_default,
115
116
  RHFController: () => RHFController_default,
117
+ RHFCounterInput: () => RHFCounterInput_default,
116
118
  RHFCurrencyInput: () => RHFCurrencyInput_default,
117
119
  RHFDateInput: () => RHFDateInput_default,
118
120
  RHFDateRangeInput: () => RHFDateRangeInput_default,
@@ -196,8 +198,10 @@ var useClickOutside_default = useClickOutside;
196
198
  var import_react3 = require("react");
197
199
 
198
200
  // src/utils/isNil.ts
199
- var import_lodash = __toESM(require("lodash.isnil"));
200
- var isNil_default = import_lodash.default;
201
+ var isNil = (value) => {
202
+ return value == null;
203
+ };
204
+ var isNil_default = isNil;
201
205
 
202
206
  // src/utils/toThousandsSeparatorFormat.ts
203
207
  var toThousandsSeparatorFormat = (value = "") => {
@@ -918,15 +922,139 @@ var Checkbox = (0, import_react8.forwardRef)(
918
922
  Checkbox.displayName = "Checkbox";
919
923
  var Checkbox_default = Checkbox;
920
924
 
925
+ // src/components/CounterInput/CounterInput.tsx
926
+ var import_react9 = require("react");
927
+ var import_jsx_runtime7 = require("react/jsx-runtime");
928
+ var CounterInput = (0, import_react9.forwardRef)(
929
+ (_a, ref) => {
930
+ var _b = _a, {
931
+ value,
932
+ onChange,
933
+ min = -Infinity,
934
+ max = Infinity,
935
+ step = 1,
936
+ size = "md",
937
+ className,
938
+ inputClassName,
939
+ buttonClassName,
940
+ disabled,
941
+ readOnly,
942
+ editable = false
943
+ } = _b, rest = __objRest(_b, [
944
+ "value",
945
+ "onChange",
946
+ "min",
947
+ "max",
948
+ "step",
949
+ "size",
950
+ "className",
951
+ "inputClassName",
952
+ "buttonClassName",
953
+ "disabled",
954
+ "readOnly",
955
+ "editable"
956
+ ]);
957
+ const [inputValue, setInputValue] = (0, import_react9.useState)(String(value));
958
+ (0, import_react9.useEffect)(() => {
959
+ setInputValue(String(value));
960
+ }, [value]);
961
+ const clamp = (val) => Math.min(Math.max(val, min), max);
962
+ const handleDecrement = () => {
963
+ onChange(clamp(value - step));
964
+ };
965
+ const handleIncrement = () => {
966
+ onChange(clamp(value + step));
967
+ };
968
+ const handleInputChange = (e) => {
969
+ const raw = e.target.value;
970
+ if (raw !== "" && !/^-?\d*\.?\d*$/.test(raw)) {
971
+ return;
972
+ }
973
+ setInputValue(raw);
974
+ const parsed = parseFloat(raw);
975
+ if (!isNaN(parsed)) {
976
+ onChange(clamp(parsed));
977
+ }
978
+ };
979
+ const handleBlur = () => {
980
+ setInputValue(String(value));
981
+ };
982
+ const isAtMin = value <= min;
983
+ const isAtMax = value >= max;
984
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
985
+ "div",
986
+ {
987
+ className: classNames(
988
+ "GeckoUICounterInput",
989
+ `GeckoUICounterInput--size-${size}`,
990
+ disabled && "GeckoUICounterInput--disabled",
991
+ readOnly && "GeckoUICounterInput--readonly",
992
+ className
993
+ ),
994
+ children: [
995
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
996
+ "button",
997
+ {
998
+ type: "button",
999
+ className: classNames(
1000
+ "GeckoUICounterInput__button",
1001
+ "GeckoUICounterInput__button--decrement",
1002
+ buttonClassName
1003
+ ),
1004
+ onClick: handleDecrement,
1005
+ disabled: disabled || readOnly || isAtMin,
1006
+ "aria-label": "Decrement",
1007
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "GeckoUICounterInput__icon GeckoUICounterInput__icon--minus" })
1008
+ }
1009
+ ),
1010
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1011
+ "input",
1012
+ __spreadProps(__spreadValues({
1013
+ ref,
1014
+ type: "text",
1015
+ inputMode: "numeric",
1016
+ className: classNames("GeckoUICounterInput__input", inputClassName),
1017
+ value: editable ? inputValue : value,
1018
+ onChange: handleInputChange,
1019
+ onBlur: handleBlur,
1020
+ disabled,
1021
+ readOnly: readOnly || !editable
1022
+ }, rest), {
1023
+ tabIndex: editable ? 0 : -1
1024
+ })
1025
+ ),
1026
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1027
+ "button",
1028
+ {
1029
+ type: "button",
1030
+ className: classNames(
1031
+ "GeckoUICounterInput__button",
1032
+ "GeckoUICounterInput__button--increment",
1033
+ buttonClassName
1034
+ ),
1035
+ onClick: handleIncrement,
1036
+ disabled: disabled || readOnly || isAtMax,
1037
+ "aria-label": "Increment",
1038
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "GeckoUICounterInput__icon GeckoUICounterInput__icon--plus" })
1039
+ }
1040
+ )
1041
+ ]
1042
+ }
1043
+ );
1044
+ }
1045
+ );
1046
+ CounterInput.displayName = "CounterInput";
1047
+ var CounterInput_default = CounterInput;
1048
+
921
1049
  // src/components/DateInput/DateInput.tsx
922
- var import_react12 = require("@floating-ui/react");
923
- var import_react13 = require("react");
1050
+ var import_react13 = require("@floating-ui/react");
1051
+ var import_react14 = require("react");
924
1052
 
925
1053
  // src/components/BaseDateInput/BaseDateInput.tsx
926
- var import_react9 = require("react");
1054
+ var import_react10 = require("react");
927
1055
 
928
1056
  // src/components/DynamicComponentRenderer/DynamicComponentRenderer.tsx
929
- var import_jsx_runtime7 = require("react/jsx-runtime");
1057
+ var import_jsx_runtime8 = require("react/jsx-runtime");
930
1058
  function DynamicComponentRenderer(_a) {
931
1059
  var _b = _a, {
932
1060
  component
@@ -936,10 +1064,10 @@ function DynamicComponentRenderer(_a) {
936
1064
  if (component === null || component === void 0 || component === "") return null;
937
1065
  if (typeof component === "function") {
938
1066
  const Component = component;
939
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Component, __spreadValues({}, props));
1067
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Component, __spreadValues({}, props));
940
1068
  }
941
1069
  if (["string", "number"].includes(typeof component)) {
942
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: props == null ? void 0 : props.className, children: component });
1070
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: props == null ? void 0 : props.className, children: component });
943
1071
  }
944
1072
  return component;
945
1073
  }
@@ -1003,7 +1131,7 @@ var generatePlaceholder = (format, separator) => {
1003
1131
  };
1004
1132
 
1005
1133
  // src/components/BaseDateInput/BaseDateInput.tsx
1006
- var import_jsx_runtime8 = require("react/jsx-runtime");
1134
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1007
1135
  var BaseDateInput = ({
1008
1136
  value = "",
1009
1137
  onChange,
@@ -1024,14 +1152,14 @@ var BaseDateInput = ({
1024
1152
  onSubmit,
1025
1153
  hasFocus
1026
1154
  }) => {
1027
- const containerRef = (0, import_react9.useRef)(null);
1028
- const monthRef = (0, import_react9.useRef)(null);
1029
- const dayRef = (0, import_react9.useRef)(null);
1030
- const yearRef = (0, import_react9.useRef)(null);
1031
- const [month, setMonth] = (0, import_react9.useState)("");
1032
- const [day, setDay] = (0, import_react9.useState)("");
1033
- const [year, setYear] = (0, import_react9.useState)("");
1034
- const [lastUpdatedTime, setLastUpdatedTime] = (0, import_react9.useState)(0);
1155
+ const containerRef = (0, import_react10.useRef)(null);
1156
+ const monthRef = (0, import_react10.useRef)(null);
1157
+ const dayRef = (0, import_react10.useRef)(null);
1158
+ const yearRef = (0, import_react10.useRef)(null);
1159
+ const [month, setMonth] = (0, import_react10.useState)("");
1160
+ const [day, setDay] = (0, import_react10.useState)("");
1161
+ const [year, setYear] = (0, import_react10.useState)("");
1162
+ const [lastUpdatedTime, setLastUpdatedTime] = (0, import_react10.useState)(0);
1035
1163
  const segmentRefs = { month: monthRef, day: dayRef, year: yearRef };
1036
1164
  const focusRef = (ref) => {
1037
1165
  var _a, _b;
@@ -1186,7 +1314,7 @@ var BaseDateInput = ({
1186
1314
  onSubmit == null ? void 0 : onSubmit();
1187
1315
  clearFocus();
1188
1316
  };
1189
- (0, import_react9.useEffect)(() => {
1317
+ (0, import_react10.useEffect)(() => {
1190
1318
  const now = Date.now();
1191
1319
  const timeSinceLastUpdate = now - lastUpdatedTime;
1192
1320
  if (timeSinceLastUpdate > 500) {
@@ -1236,11 +1364,11 @@ var BaseDateInput = ({
1236
1364
  hasFocus && "GeckoUIDateInput--focus",
1237
1365
  className
1238
1366
  );
1239
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { ref: containerRef, className: containerClasses, onClick: () => handleDisplayClick(), children: [
1240
- Boolean(prefix) && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "GeckoUIDateInput__prefix", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DynamicComponentRenderer_default, { component: prefix }) }),
1241
- !!isEmpty && !hasFocus && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: classNames("GeckoUIDateInput__placeholder", placeholderClassName), children: placeholder != null ? placeholder : generatePlaceholder(format, separator) }),
1242
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: classNames("GeckoUIDateInput__display-container"), children: inputs.map(({ ref, value: value2, onChange: onChange2, maxLength, segment, display }, index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react9.Fragment, { children: [
1243
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1367
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ref: containerRef, className: containerClasses, onClick: () => handleDisplayClick(), children: [
1368
+ Boolean(prefix) && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "GeckoUIDateInput__prefix", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DynamicComponentRenderer_default, { component: prefix }) }),
1369
+ !!isEmpty && !hasFocus && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: classNames("GeckoUIDateInput__placeholder", placeholderClassName), children: placeholder != null ? placeholder : generatePlaceholder(format, separator) }),
1370
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: classNames("GeckoUIDateInput__display-container"), children: inputs.map(({ ref, value: value2, onChange: onChange2, maxLength, segment, display }, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_react10.Fragment, { children: [
1371
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1244
1372
  "label",
1245
1373
  {
1246
1374
  className: classNames(
@@ -1253,7 +1381,7 @@ var BaseDateInput = ({
1253
1381
  handleDisplayClick(segment);
1254
1382
  },
1255
1383
  children: [
1256
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1384
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1257
1385
  "input",
1258
1386
  {
1259
1387
  ref,
@@ -1272,22 +1400,22 @@ var BaseDateInput = ({
1272
1400
  ]
1273
1401
  }
1274
1402
  ),
1275
- index < inputs.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "GeckoUIDateInput__separator", children: separator })
1403
+ index < inputs.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "GeckoUIDateInput__separator", children: separator })
1276
1404
  ] }, segment)) }),
1277
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "GeckoUIDateInput__icons", children: [
1278
- !hideClearIcon && !isEmpty && !disabled && !readOnly && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1405
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "GeckoUIDateInput__icons", children: [
1406
+ !hideClearIcon && !isEmpty && !disabled && !readOnly && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1279
1407
  "button",
1280
1408
  {
1281
1409
  type: "button",
1282
1410
  disabled: disabled || readOnly,
1283
1411
  className: "GeckoUIDateInput__clear-button",
1284
1412
  onClick: handleClear,
1285
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "GeckoUI-icon__clear" })
1413
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "GeckoUI-icon__clear" })
1286
1414
  }
1287
1415
  ),
1288
- Boolean(suffix) && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "GeckoUIDateInput__suffix", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DynamicComponentRenderer_default, { component: suffix }) }),
1416
+ Boolean(suffix) && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "GeckoUIDateInput__suffix", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DynamicComponentRenderer_default, { component: suffix }) }),
1289
1417
  renderCalendarIcon,
1290
- !renderCalendarIcon && !hideCalendarIcon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "GeckoUIDateInput__calendar-icon" })
1418
+ !renderCalendarIcon && !hideCalendarIcon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "GeckoUIDateInput__calendar-icon" })
1291
1419
  ] })
1292
1420
  ] });
1293
1421
  };
@@ -1295,7 +1423,7 @@ BaseDateInput.displayName = "BaseDateInput";
1295
1423
  var BaseDateInput_default = BaseDateInput;
1296
1424
 
1297
1425
  // src/components/Calendar/Calendar/Calendar.tsx
1298
- var import_react11 = require("react");
1426
+ var import_react12 = require("react");
1299
1427
 
1300
1428
  // src/components/Calendar/Calendar.utils.ts
1301
1429
  function daysInMonth(month, year) {
@@ -1370,24 +1498,24 @@ function shouldSwapDates(start, end) {
1370
1498
  }
1371
1499
 
1372
1500
  // src/components/Calendar/CalendarHeader/CalendarHeader.tsx
1373
- var import_jsx_runtime9 = require("react/jsx-runtime");
1501
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1374
1502
  function CalendarHeader({
1375
1503
  onClickLeftArrow,
1376
1504
  onClickRightArrow,
1377
1505
  header,
1378
1506
  onClickHeader
1379
1507
  }) {
1380
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: classNames("GeckoUICalendar__header"), children: [
1381
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1508
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: classNames("GeckoUICalendar__header"), children: [
1509
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1382
1510
  "button",
1383
1511
  {
1384
1512
  className: "GeckoUICalendar__header__arrow-button GeckoUICalendar__header__arrow-button--left",
1385
1513
  onClick: onClickLeftArrow,
1386
1514
  type: "button",
1387
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "GeckoUICalendar__header__arrow-left-icon" })
1515
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "GeckoUICalendar__header__arrow-left-icon" })
1388
1516
  }
1389
1517
  ),
1390
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1518
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1391
1519
  "button",
1392
1520
  {
1393
1521
  className: classNames(
@@ -1399,13 +1527,13 @@ function CalendarHeader({
1399
1527
  children: header
1400
1528
  }
1401
1529
  ),
1402
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1530
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1403
1531
  "button",
1404
1532
  {
1405
1533
  className: "GeckoUICalendar__header__arrow-button GeckoUICalendar__header__arrow-button--right",
1406
1534
  onClick: onClickRightArrow,
1407
1535
  type: "button",
1408
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "GeckoUICalendar__header__arrow-right-icon" })
1536
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "GeckoUICalendar__header__arrow-right-icon" })
1409
1537
  }
1410
1538
  )
1411
1539
  ] });
@@ -1414,7 +1542,7 @@ CalendarHeader.displayName = "CalendarHeader";
1414
1542
  var CalendarHeader_default = CalendarHeader;
1415
1543
 
1416
1544
  // src/components/Calendar/CalendarDayPicker/CalendarDayPicker.tsx
1417
- var import_jsx_runtime10 = require("react/jsx-runtime");
1545
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1418
1546
  function CalendarDayPicker(props) {
1419
1547
  const _a = props, {
1420
1548
  activeMonth,
@@ -1449,21 +1577,21 @@ function CalendarDayPicker(props) {
1449
1577
  (_a2 = props.onHoverDate) == null ? void 0 : _a2.call(props, date);
1450
1578
  }
1451
1579
  };
1452
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
1453
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CalendarHeader_default, __spreadValues({ header: `${months[activeMonth]} ${activeYear}` }, headerProps)),
1454
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "GeckoUICalendar__day-picker-weekdays", children: [
1455
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "S" }),
1456
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "M" }),
1457
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "T" }),
1458
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "W" }),
1459
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "T" }),
1460
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "F" }),
1461
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "S" })
1580
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
1581
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CalendarHeader_default, __spreadValues({ header: `${months[activeMonth]} ${activeYear}` }, headerProps)),
1582
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "GeckoUICalendar__day-picker-weekdays", children: [
1583
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "S" }),
1584
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "M" }),
1585
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "T" }),
1586
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "W" }),
1587
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "T" }),
1588
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "F" }),
1589
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: "S" })
1462
1590
  ] }),
1463
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "GeckoUICalendar__day-picker", children: dates.map((date) => {
1591
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "GeckoUICalendar__day-picker", children: dates.map((date) => {
1464
1592
  const isActiveMonth = activeMonth === date.month;
1465
1593
  if (isRangeMode && !isActiveMonth) {
1466
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", {}, `${date.year}-${date.month}-${date.day}`);
1594
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", {}, `${date.year}-${date.month}-${date.day}`);
1467
1595
  }
1468
1596
  const formattedDate = `${date.year}-${(date.month + 1).toString().padStart(2, "0")}-${date.day.toString().padStart(2, "0")}`;
1469
1597
  const isToday = formattedDate === today;
@@ -1493,7 +1621,7 @@ function CalendarDayPicker(props) {
1493
1621
  }
1494
1622
  }
1495
1623
  const isDisable = disableDate == null ? void 0 : disableDate(formattedDate);
1496
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1624
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1497
1625
  "button",
1498
1626
  {
1499
1627
  className: classNames(
@@ -1529,7 +1657,7 @@ function CalendarDayPicker(props) {
1529
1657
  var CalendarDayPicker_default = CalendarDayPicker;
1530
1658
 
1531
1659
  // src/components/Calendar/CalendarMonthPicker/CalendarMonthPicker.tsx
1532
- var import_jsx_runtime11 = require("react/jsx-runtime");
1660
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1533
1661
  function CalendarMonthPicker(_a) {
1534
1662
  var _b = _a, {
1535
1663
  activeYear,
@@ -1541,11 +1669,11 @@ function CalendarMonthPicker(_a) {
1541
1669
  "onSelectMonth"
1542
1670
  ]);
1543
1671
  const { shortMonths } = generateMonthNames();
1544
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
1545
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CalendarHeader_default, __spreadValues({ header: `${activeYear}` }, headerProps)),
1546
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "GeckoUICalendar__month-picker", children: shortMonths.map((monthName, index) => {
1672
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
1673
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CalendarHeader_default, __spreadValues({ header: `${activeYear}` }, headerProps)),
1674
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "GeckoUICalendar__month-picker", children: shortMonths.map((monthName, index) => {
1547
1675
  const selected = index === activeMonth;
1548
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1676
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1549
1677
  "button",
1550
1678
  {
1551
1679
  className: classNames(
@@ -1565,15 +1693,15 @@ CalendarMonthPicker.displayName = "CalendarMonthPicker";
1565
1693
  var CalendarMonthPicker_default = CalendarMonthPicker;
1566
1694
 
1567
1695
  // src/components/Calendar/CalendarYearPicker/CalendarYearPicker.tsx
1568
- var import_react10 = require("react");
1569
- var import_jsx_runtime12 = require("react/jsx-runtime");
1696
+ var import_react11 = require("react");
1697
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1570
1698
  function CalendarYearPicker(_a) {
1571
1699
  var _b = _a, { activeYear, onSelectYear } = _b, headerProps = __objRest(_b, ["activeYear", "onSelectYear"]);
1572
1700
  let start = parseInt((activeYear / 10).toFixed(0)) * 10;
1573
1701
  if (activeYear + 1 === start) {
1574
1702
  start -= 10;
1575
1703
  }
1576
- const [years, setYears] = (0, import_react10.useState)(
1704
+ const [years, setYears] = (0, import_react11.useState)(
1577
1705
  () => Array.from({ length: 12 }).map((_, index) => start - 1 + index)
1578
1706
  );
1579
1707
  const handleLeft = () => {
@@ -1582,8 +1710,8 @@ function CalendarYearPicker(_a) {
1582
1710
  const handleRight = () => {
1583
1711
  setYears((prev) => prev.map((year) => year + 10));
1584
1712
  };
1585
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
1586
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1713
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
1714
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1587
1715
  CalendarHeader_default,
1588
1716
  __spreadValues({
1589
1717
  header: `${years[1]} - ${years[1] + 9}`,
@@ -1591,10 +1719,10 @@ function CalendarYearPicker(_a) {
1591
1719
  onClickRightArrow: handleRight
1592
1720
  }, headerProps)
1593
1721
  ),
1594
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "GeckoUICalendar__year-picker", children: years.map((year, i) => {
1722
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "GeckoUICalendar__year-picker", children: years.map((year, i) => {
1595
1723
  const selected = activeYear === year;
1596
1724
  const isPrevNext = i === 0 || i === 11;
1597
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1725
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1598
1726
  "button",
1599
1727
  {
1600
1728
  className: classNames(
@@ -1623,13 +1751,13 @@ var CalendarType = /* @__PURE__ */ ((CalendarType2) => {
1623
1751
  })(CalendarType || {});
1624
1752
 
1625
1753
  // src/components/Calendar/Calendar/Calendar.tsx
1626
- var import_jsx_runtime13 = require("react/jsx-runtime");
1754
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1627
1755
  var Calendar = (props) => {
1628
1756
  var _a;
1629
1757
  const { className, style, calendarRef, disableDate, renderDayCell, mode = "single" } = props;
1630
- const [view, setView] = (0, import_react11.useState)("day" /* Day */);
1631
- const [rangeSelectionStart, setRangeSelectionStart] = (0, import_react11.useState)(null);
1632
- const [hoveredDate, setHoveredDate] = (0, import_react11.useState)(null);
1758
+ const [view, setView] = (0, import_react12.useState)("day" /* Day */);
1759
+ const [rangeSelectionStart, setRangeSelectionStart] = (0, import_react12.useState)(null);
1760
+ const [hoveredDate, setHoveredDate] = (0, import_react12.useState)(null);
1633
1761
  const selectedDate = mode === "single" ? props.selectedDate : void 0;
1634
1762
  const onSelectDate = mode === "single" ? props.onSelectDate : void 0;
1635
1763
  const selectedRange = mode === "range" ? props.selectedRange : void 0;
@@ -1644,8 +1772,8 @@ var Calendar = (props) => {
1644
1772
  const isValidDate2 = isValidISOFormat(initialDate);
1645
1773
  const today = getTodayDate();
1646
1774
  const [year, month] = (isValidDate2 ? initialDate : today).split("-").map(Number);
1647
- const [activeMonth, setActiveMonth] = (0, import_react11.useState)(month - 1);
1648
- const [activeYear, setActiveYear] = (0, import_react11.useState)(year);
1775
+ const [activeMonth, setActiveMonth] = (0, import_react12.useState)(month - 1);
1776
+ const [activeYear, setActiveYear] = (0, import_react12.useState)(year);
1649
1777
  const increaseYear = () => {
1650
1778
  setActiveYear((prev) => prev + 1);
1651
1779
  };
@@ -1669,7 +1797,7 @@ var Calendar = (props) => {
1669
1797
  onSelectDate == null ? void 0 : onSelectDate("");
1670
1798
  }
1671
1799
  };
1672
- (0, import_react11.useImperativeHandle)(calendarRef, () => {
1800
+ (0, import_react12.useImperativeHandle)(calendarRef, () => {
1673
1801
  return {
1674
1802
  moveTo: (month2, year2) => {
1675
1803
  setActiveMonth(month2 - 1);
@@ -1679,7 +1807,7 @@ var Calendar = (props) => {
1679
1807
  clearSelection
1680
1808
  };
1681
1809
  });
1682
- (0, import_react11.useEffect)(() => {
1810
+ (0, import_react12.useEffect)(() => {
1683
1811
  if (mode === "single") {
1684
1812
  if (selectedDate && !isValidISOFormat(selectedDate)) {
1685
1813
  console.error(
@@ -1742,8 +1870,8 @@ Provided value: ${selectedRange.to}`
1742
1870
  if (mode === "range") {
1743
1871
  const secondMonth = activeMonth === 11 ? 0 : activeMonth + 1;
1744
1872
  const secondYear = activeMonth === 11 ? activeYear + 1 : activeYear;
1745
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "GeckoUICalendar__dual", children: [
1746
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "GeckoUICalendar__dual--first", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1873
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "GeckoUICalendar__dual", children: [
1874
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "GeckoUICalendar__dual--first", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1747
1875
  CalendarDayPicker_default,
1748
1876
  {
1749
1877
  mode: "range",
@@ -1760,7 +1888,7 @@ Provided value: ${selectedRange.to}`
1760
1888
  onHoverDate: handleHoverDate
1761
1889
  }
1762
1890
  ) }),
1763
- numberOfMonths === 2 && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "GeckoUICalendar__dual--second", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1891
+ numberOfMonths === 2 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "GeckoUICalendar__dual--second", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1764
1892
  CalendarDayPicker_default,
1765
1893
  {
1766
1894
  mode: "range",
@@ -1779,7 +1907,7 @@ Provided value: ${selectedRange.to}`
1779
1907
  ) })
1780
1908
  ] });
1781
1909
  }
1782
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1910
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1783
1911
  CalendarDayPicker_default,
1784
1912
  {
1785
1913
  mode: "single",
@@ -1796,7 +1924,7 @@ Provided value: ${selectedRange.to}`
1796
1924
  );
1797
1925
  }
1798
1926
  if (view === "month" /* Month */) {
1799
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1927
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1800
1928
  CalendarMonthPicker_default,
1801
1929
  {
1802
1930
  activeMonth,
@@ -1808,9 +1936,9 @@ Provided value: ${selectedRange.to}`
1808
1936
  }
1809
1937
  );
1810
1938
  }
1811
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CalendarYearPicker_default, { activeYear, onSelectYear });
1939
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CalendarYearPicker_default, { activeYear, onSelectYear });
1812
1940
  };
1813
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1941
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1814
1942
  "div",
1815
1943
  {
1816
1944
  className: classNames(
@@ -1829,7 +1957,7 @@ Calendar.displayName = "Calendar";
1829
1957
  var Calendar_default = Calendar;
1830
1958
 
1831
1959
  // src/components/DateInput/DateInput.tsx
1832
- var import_jsx_runtime14 = require("react/jsx-runtime");
1960
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1833
1961
  var DateInput = (_a) => {
1834
1962
  var _b = _a, {
1835
1963
  value = "",
@@ -1876,20 +2004,20 @@ var DateInput = (_a) => {
1876
2004
  "onStateUpdate",
1877
2005
  "onSubmit"
1878
2006
  ]);
1879
- const calendarRef = (0, import_react13.useRef)(null);
1880
- const [openCalendar, setOpenCalendar] = (0, import_react13.useState)(false);
1881
- const { refs, floatingStyles } = (0, import_react12.useFloating)({
2007
+ const calendarRef = (0, import_react14.useRef)(null);
2008
+ const [openCalendar, setOpenCalendar] = (0, import_react14.useState)(false);
2009
+ const { refs, floatingStyles } = (0, import_react13.useFloating)({
1882
2010
  placement: calendarPlacement,
1883
2011
  strategy: floatingStrategy,
1884
- middleware: [(0, import_react12.flip)({ padding: 4 }), (0, import_react12.offset)({ mainAxis: 4 })],
1885
- whileElementsMounted: import_react12.autoUpdate,
2012
+ middleware: [(0, import_react13.flip)({ padding: 4 }), (0, import_react13.offset)({ mainAxis: 4 })],
2013
+ whileElementsMounted: import_react13.autoUpdate,
1886
2014
  open: openCalendar,
1887
2015
  onOpenChange: setOpenCalendar
1888
2016
  });
1889
2017
  useClickOutside_default(() => {
1890
2018
  setOpenCalendar(false);
1891
2019
  }, [refs.reference]);
1892
- const handleStateUpdateInternal = (0, import_react13.useCallback)(
2020
+ const handleStateUpdateInternal = (0, import_react14.useCallback)(
1893
2021
  (state) => {
1894
2022
  var _a2;
1895
2023
  if (!hideCalendar) {
@@ -1907,11 +2035,11 @@ var DateInput = (_a) => {
1907
2035
  },
1908
2036
  [hideCalendar, onStateUpdate]
1909
2037
  );
1910
- const handleSubmit = (0, import_react13.useCallback)(() => {
2038
+ const handleSubmit = (0, import_react14.useCallback)(() => {
1911
2039
  setOpenCalendar(false);
1912
2040
  onSubmit == null ? void 0 : onSubmit();
1913
2041
  }, [onSubmit]);
1914
- const handleChange = (0, import_react13.useCallback)(
2042
+ const handleChange = (0, import_react14.useCallback)(
1915
2043
  (date) => {
1916
2044
  onChange == null ? void 0 : onChange(date);
1917
2045
  if (date === null) {
@@ -1920,14 +2048,14 @@ var DateInput = (_a) => {
1920
2048
  },
1921
2049
  [onChange]
1922
2050
  );
1923
- const renderCalendarIcon = !hideCalendarIcon ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "GeckoUIDateInput__calendar-icon" }) : void 0;
1924
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2051
+ const renderCalendarIcon = !hideCalendarIcon ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "GeckoUIDateInput__calendar-icon" }) : void 0;
2052
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1925
2053
  "div",
1926
2054
  {
1927
2055
  className: classNames("GeckoUIDateInputWrapper", wrapperClassName),
1928
2056
  ref: (r) => refs.setReference(r),
1929
2057
  children: [
1930
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2058
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1931
2059
  BaseDateInput_default,
1932
2060
  __spreadValues({
1933
2061
  value,
@@ -1950,7 +2078,7 @@ var DateInput = (_a) => {
1950
2078
  hasFocus: openCalendar
1951
2079
  }, rest)
1952
2080
  ),
1953
- !hideCalendar && openCalendar && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { ref: (r) => refs.setFloating(r), style: __spreadProps(__spreadValues({}, floatingStyles), { zIndex: 9999 }), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2081
+ !hideCalendar && openCalendar && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { ref: (r) => refs.setFloating(r), style: __spreadProps(__spreadValues({}, floatingStyles), { zIndex: 9999 }), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1954
2082
  Calendar_default,
1955
2083
  {
1956
2084
  calendarRef,
@@ -1970,12 +2098,12 @@ DateInput.displayName = "DateInput";
1970
2098
  var DateInput_default = DateInput;
1971
2099
 
1972
2100
  // src/components/DateRangeInput/DateRangeInput.tsx
1973
- var import_react15 = require("@floating-ui/react");
1974
- var import_react16 = require("react");
2101
+ var import_react16 = require("@floating-ui/react");
2102
+ var import_react17 = require("react");
1975
2103
 
1976
2104
  // src/components/BaseDateRangeInput/BaseDateRangeInput.tsx
1977
- var import_react14 = require("react");
1978
- var import_jsx_runtime15 = require("react/jsx-runtime");
2105
+ var import_react15 = require("react");
2106
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1979
2107
  var BaseDateRangeInput = (_a) => {
1980
2108
  var _b = _a, {
1981
2109
  value,
@@ -2018,20 +2146,20 @@ var BaseDateRangeInput = (_a) => {
2018
2146
  "onSubmit",
2019
2147
  "hasFocus"
2020
2148
  ]);
2021
- const containerRef = (0, import_react14.useRef)(null);
2022
- const startMonthRef = (0, import_react14.useRef)(null);
2023
- const startDayRef = (0, import_react14.useRef)(null);
2024
- const startYearRef = (0, import_react14.useRef)(null);
2025
- const endMonthRef = (0, import_react14.useRef)(null);
2026
- const endDayRef = (0, import_react14.useRef)(null);
2027
- const endYearRef = (0, import_react14.useRef)(null);
2028
- const [startMonth, setStartMonth] = (0, import_react14.useState)("");
2029
- const [startDay, setStartDay] = (0, import_react14.useState)("");
2030
- const [startYear, setStartYear] = (0, import_react14.useState)("");
2031
- const [endMonth, setEndMonth] = (0, import_react14.useState)("");
2032
- const [endDay, setEndDay] = (0, import_react14.useState)("");
2033
- const [endYear, setEndYear] = (0, import_react14.useState)("");
2034
- const [lastUpdatedTime, setLastUpdatedTime] = (0, import_react14.useState)(0);
2149
+ const containerRef = (0, import_react15.useRef)(null);
2150
+ const startMonthRef = (0, import_react15.useRef)(null);
2151
+ const startDayRef = (0, import_react15.useRef)(null);
2152
+ const startYearRef = (0, import_react15.useRef)(null);
2153
+ const endMonthRef = (0, import_react15.useRef)(null);
2154
+ const endDayRef = (0, import_react15.useRef)(null);
2155
+ const endYearRef = (0, import_react15.useRef)(null);
2156
+ const [startMonth, setStartMonth] = (0, import_react15.useState)("");
2157
+ const [startDay, setStartDay] = (0, import_react15.useState)("");
2158
+ const [startYear, setStartYear] = (0, import_react15.useState)("");
2159
+ const [endMonth, setEndMonth] = (0, import_react15.useState)("");
2160
+ const [endDay, setEndDay] = (0, import_react15.useState)("");
2161
+ const [endYear, setEndYear] = (0, import_react15.useState)("");
2162
+ const [lastUpdatedTime, setLastUpdatedTime] = (0, import_react15.useState)(0);
2035
2163
  const segmentRefs = {
2036
2164
  startMonth: startMonthRef,
2037
2165
  startDay: startDayRef,
@@ -2219,7 +2347,7 @@ var BaseDateRangeInput = (_a) => {
2219
2347
  onSubmit == null ? void 0 : onSubmit();
2220
2348
  clearFocus();
2221
2349
  };
2222
- (0, import_react14.useEffect)(() => {
2350
+ (0, import_react15.useEffect)(() => {
2223
2351
  const now = Date.now();
2224
2352
  const timeSinceLastUpdate = now - lastUpdatedTime;
2225
2353
  if (timeSinceLastUpdate > 500) {
@@ -2348,8 +2476,8 @@ var BaseDateRangeInput = (_a) => {
2348
2476
  hasFocus && "GeckoUIDateInput--focus",
2349
2477
  className
2350
2478
  );
2351
- const renderSegments = (segments) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, { children: segments.map(({ ref, value: value2, onChange: onChange2, maxLength, segment, display }, index) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_react14.Fragment, { children: [
2352
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2479
+ const renderSegments = (segments) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, { children: segments.map(({ ref, value: value2, onChange: onChange2, maxLength, segment, display }, index) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react15.Fragment, { children: [
2480
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
2353
2481
  "label",
2354
2482
  {
2355
2483
  className: classNames(
@@ -2362,7 +2490,7 @@ var BaseDateRangeInput = (_a) => {
2362
2490
  handleDisplayClick(segment);
2363
2491
  },
2364
2492
  children: [
2365
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2493
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2366
2494
  "input",
2367
2495
  {
2368
2496
  ref,
@@ -2381,13 +2509,13 @@ var BaseDateRangeInput = (_a) => {
2381
2509
  ]
2382
2510
  }
2383
2511
  ),
2384
- index < segments.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "GeckoUIDateInput__separator", children: separator })
2512
+ index < segments.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "GeckoUIDateInput__separator", children: separator })
2385
2513
  ] }, segment)) });
2386
2514
  const generatePlaceholder2 = () => {
2387
2515
  const formattedPattern = format.replace(/\//g, separator);
2388
2516
  return placeholder != null ? placeholder : `${formattedPattern}${rangeSeparator}${formattedPattern}`;
2389
2517
  };
2390
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2518
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
2391
2519
  "div",
2392
2520
  __spreadProps(__spreadValues({
2393
2521
  ref: containerRef,
@@ -2395,27 +2523,27 @@ var BaseDateRangeInput = (_a) => {
2395
2523
  }, rest), {
2396
2524
  onClick: () => handleDisplayClick(),
2397
2525
  children: [
2398
- Boolean(prefix) && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "GeckoUIDateInput__prefix", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DynamicComponentRenderer_default, { component: prefix }) }),
2399
- !!isEmpty && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: classNames("GeckoUIDateInput__placeholder", placeholderClassName), children: generatePlaceholder2() }),
2400
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: classNames("GeckoUIDateInput__display-container"), children: [
2526
+ Boolean(prefix) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "GeckoUIDateInput__prefix", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DynamicComponentRenderer_default, { component: prefix }) }),
2527
+ !!isEmpty && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: classNames("GeckoUIDateInput__placeholder", placeholderClassName), children: generatePlaceholder2() }),
2528
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: classNames("GeckoUIDateInput__display-container"), children: [
2401
2529
  renderSegments(startSegments),
2402
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "GeckoUIDateRangeInput__range-separator", children: rangeSeparator }),
2530
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "GeckoUIDateRangeInput__range-separator", children: rangeSeparator }),
2403
2531
  renderSegments(endSegments)
2404
2532
  ] }),
2405
- Boolean(suffix) && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "GeckoUIDateInput__suffix", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DynamicComponentRenderer_default, { component: suffix }) }),
2406
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "GeckoUIDateInput__icons", children: [
2407
- !hideClearIcon && !isEmpty && !disabled && !readOnly && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2533
+ Boolean(suffix) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "GeckoUIDateInput__suffix", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DynamicComponentRenderer_default, { component: suffix }) }),
2534
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "GeckoUIDateInput__icons", children: [
2535
+ !hideClearIcon && !isEmpty && !disabled && !readOnly && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2408
2536
  "button",
2409
2537
  {
2410
2538
  type: "button",
2411
2539
  disabled: disabled || readOnly,
2412
2540
  className: "GeckoUIDateInput__clear-button",
2413
2541
  onClick: handleClear,
2414
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "GeckoUI-icon__clear" })
2542
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "GeckoUI-icon__clear" })
2415
2543
  }
2416
2544
  ),
2417
2545
  renderCalendarIcon,
2418
- !renderCalendarIcon && !hideCalendarIcon && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "GeckoUIDateInput__calendar-icon" })
2546
+ !renderCalendarIcon && !hideCalendarIcon && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "GeckoUIDateInput__calendar-icon" })
2419
2547
  ] })
2420
2548
  ]
2421
2549
  })
@@ -2425,7 +2553,7 @@ BaseDateRangeInput.displayName = "BaseDateRangeInput";
2425
2553
  var BaseDateRangeInput_default = BaseDateRangeInput;
2426
2554
 
2427
2555
  // src/components/DateRangeInput/DateRangeInput.tsx
2428
- var import_jsx_runtime16 = require("react/jsx-runtime");
2556
+ var import_jsx_runtime17 = require("react/jsx-runtime");
2429
2557
  var DateRangeInput = (_a) => {
2430
2558
  var _b = _a, {
2431
2559
  value,
@@ -2476,8 +2604,8 @@ var DateRangeInput = (_a) => {
2476
2604
  "onStateUpdate",
2477
2605
  "onSubmit"
2478
2606
  ]);
2479
- const calendarRef = (0, import_react16.useRef)(null);
2480
- const [openCalendar, setOpenCalendar] = (0, import_react16.useState)(false);
2607
+ const calendarRef = (0, import_react17.useRef)(null);
2608
+ const [openCalendar, setOpenCalendar] = (0, import_react17.useState)(false);
2481
2609
  const handleCloseCalendar = () => {
2482
2610
  setOpenCalendar(false);
2483
2611
  if (!(value == null ? void 0 : value.from) || !(value == null ? void 0 : value.to)) return;
@@ -2485,11 +2613,11 @@ var DateRangeInput = (_a) => {
2485
2613
  onChange == null ? void 0 : onChange({ from: value.to, to: value.from });
2486
2614
  }
2487
2615
  };
2488
- const { refs, floatingStyles } = (0, import_react15.useFloating)({
2616
+ const { refs, floatingStyles } = (0, import_react16.useFloating)({
2489
2617
  placement: calendarPlacement,
2490
2618
  strategy: floatingStrategy,
2491
- middleware: [(0, import_react15.flip)({ padding: 4 }), (0, import_react15.offset)({ mainAxis: 4 })],
2492
- whileElementsMounted: import_react15.autoUpdate,
2619
+ middleware: [(0, import_react16.flip)({ padding: 4 }), (0, import_react16.offset)({ mainAxis: 4 })],
2620
+ whileElementsMounted: import_react16.autoUpdate,
2493
2621
  open: openCalendar,
2494
2622
  onOpenChange: setOpenCalendar
2495
2623
  });
@@ -2527,14 +2655,14 @@ var DateRangeInput = (_a) => {
2527
2655
  handleCloseCalendar();
2528
2656
  }
2529
2657
  };
2530
- const renderCalendarIcon = !hideCalendarIcon ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "GeckoUIDateInput__calendar-icon" }) : void 0;
2531
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
2658
+ const renderCalendarIcon = !hideCalendarIcon ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "GeckoUIDateInput__calendar-icon" }) : void 0;
2659
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
2532
2660
  "div",
2533
2661
  {
2534
2662
  className: classNames("GeckoUIDateRangeInputWrapper", wrapperClassName),
2535
2663
  ref: (r) => refs.setReference(r),
2536
2664
  children: [
2537
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2665
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2538
2666
  BaseDateRangeInput_default,
2539
2667
  __spreadValues({
2540
2668
  value,
@@ -2558,7 +2686,7 @@ var DateRangeInput = (_a) => {
2558
2686
  hasFocus: openCalendar
2559
2687
  }, rest)
2560
2688
  ),
2561
- !hideCalendar && openCalendar && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { ref: (r) => refs.setFloating(r), style: __spreadProps(__spreadValues({}, floatingStyles), { zIndex: 9999 }), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2689
+ !hideCalendar && openCalendar && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { ref: (r) => refs.setFloating(r), style: __spreadProps(__spreadValues({}, floatingStyles), { zIndex: 9999 }), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2562
2690
  Calendar_default,
2563
2691
  {
2564
2692
  mode: "range",
@@ -2577,13 +2705,13 @@ DateRangeInput.displayName = "DateRangeInput";
2577
2705
  var DateRangeInput_default = DateRangeInput;
2578
2706
 
2579
2707
  // src/components/Input/Input.tsx
2580
- var import_react17 = require("react");
2581
- var import_jsx_runtime17 = require("react/jsx-runtime");
2582
- var Input = (0, import_react17.forwardRef)(
2708
+ var import_react18 = require("react");
2709
+ var import_jsx_runtime18 = require("react/jsx-runtime");
2710
+ var Input = (0, import_react18.forwardRef)(
2583
2711
  (_a, ref) => {
2584
2712
  var _b = _a, { name, prefix, id, suffix, inputClassName, className, disabled, readOnly } = _b, rest = __objRest(_b, ["name", "prefix", "id", "suffix", "inputClassName", "className", "disabled", "readOnly"]);
2585
- const _id = (0, import_react17.useId)();
2586
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
2713
+ const _id = (0, import_react18.useId)();
2714
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2587
2715
  "label",
2588
2716
  {
2589
2717
  "aria-disabled": disabled,
@@ -2595,8 +2723,8 @@ var Input = (0, import_react17.forwardRef)(
2595
2723
  ),
2596
2724
  htmlFor: id != null ? id : _id,
2597
2725
  children: [
2598
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DynamicComponentRenderer_default, { component: prefix, inputRef: ref }),
2599
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2726
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DynamicComponentRenderer_default, { component: prefix, inputRef: ref }),
2727
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2600
2728
  "input",
2601
2729
  __spreadValues({
2602
2730
  className: classNames("GeckoUIInput__input", inputClassName),
@@ -2607,7 +2735,7 @@ var Input = (0, import_react17.forwardRef)(
2607
2735
  readOnly
2608
2736
  }, rest)
2609
2737
  ),
2610
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DynamicComponentRenderer_default, { component: suffix, inputRef: ref })
2738
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DynamicComponentRenderer_default, { component: suffix, inputRef: ref })
2611
2739
  ]
2612
2740
  }
2613
2741
  );
@@ -2618,7 +2746,7 @@ var Input_default = Input;
2618
2746
 
2619
2747
  // src/components/Tooltip/Tooltip.tsx
2620
2748
  var RTooltip = __toESM(require("@radix-ui/react-tooltip"));
2621
- var import_jsx_runtime18 = require("react/jsx-runtime");
2749
+ var import_jsx_runtime19 = require("react/jsx-runtime");
2622
2750
  var Tooltip = ({
2623
2751
  children,
2624
2752
  delayDuration = 700,
@@ -2631,8 +2759,8 @@ var Tooltip = ({
2631
2759
  sideOffset = 5
2632
2760
  }) => {
2633
2761
  if (!content) return children;
2634
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RTooltip.Provider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(RTooltip.Root, { children: [
2635
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2762
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(RTooltip.Provider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(RTooltip.Root, { children: [
2763
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2636
2764
  RTooltip.Trigger,
2637
2765
  {
2638
2766
  asChild: triggerAsChild,
@@ -2642,7 +2770,7 @@ var Tooltip = ({
2642
2770
  children
2643
2771
  }
2644
2772
  ),
2645
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RTooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2773
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(RTooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2646
2774
  RTooltip.Content,
2647
2775
  {
2648
2776
  side,
@@ -2651,8 +2779,8 @@ var Tooltip = ({
2651
2779
  role: "tooltip",
2652
2780
  style: { backgroundColor },
2653
2781
  children: [
2654
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DynamicComponentRenderer_default, { component: content }),
2655
- (side === "top" || side === "bottom") && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RTooltip.Arrow, { fill: backgroundColor, className: "GeckoUITooltip__arrow" })
2782
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DynamicComponentRenderer_default, { component: content }),
2783
+ (side === "top" || side === "bottom") && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(RTooltip.Arrow, { fill: backgroundColor, className: "GeckoUITooltip__arrow" })
2656
2784
  ]
2657
2785
  }
2658
2786
  ) })
@@ -2661,7 +2789,7 @@ var Tooltip = ({
2661
2789
  var Tooltip_default = Tooltip;
2662
2790
 
2663
2791
  // src/components/Label/Label.tsx
2664
- var import_jsx_runtime19 = require("react/jsx-runtime");
2792
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2665
2793
  var Label = (_a) => {
2666
2794
  var _b = _a, {
2667
2795
  className,
@@ -2680,17 +2808,17 @@ var Label = (_a) => {
2680
2808
  "tooltipClassName",
2681
2809
  "children"
2682
2810
  ]);
2683
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("label", __spreadProps(__spreadValues({ className: classNames("GeckoUILabel", className) }, rest), { children: [
2811
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", __spreadProps(__spreadValues({ className: classNames("GeckoUILabel", className) }, rest), { children: [
2684
2812
  children,
2685
- required ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "GeckoUILabel__required-indicator", children: "*" }) : null,
2686
- tooltip ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2813
+ required ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "GeckoUILabel__required-indicator", children: "*" }) : null,
2814
+ tooltip ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2687
2815
  Tooltip_default,
2688
2816
  {
2689
2817
  backgroundColor: tooltipBackgroundColor,
2690
2818
  className: classNames("GeckoUILabel__tooltip", tooltipClassName),
2691
2819
  content: tooltip,
2692
2820
  delayDuration: 0,
2693
- children: tooltipIcon ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DynamicComponentRenderer_default, { component: tooltipIcon }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "GeckoUILabel__tooltip-icon" })
2821
+ children: tooltipIcon ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DynamicComponentRenderer_default, { component: tooltipIcon }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "GeckoUILabel__tooltip-icon" })
2694
2822
  }
2695
2823
  ) : null
2696
2824
  ] }));
@@ -2698,20 +2826,20 @@ var Label = (_a) => {
2698
2826
  var Label_default = Label;
2699
2827
 
2700
2828
  // src/components/InputError/InputError.tsx
2701
- var import_jsx_runtime20 = require("react/jsx-runtime");
2829
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2702
2830
  var InputError = (_a) => {
2703
2831
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
2704
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", __spreadProps(__spreadValues({ className: classNames("GeckoUIInputError", className) }, rest), { children }));
2832
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", __spreadProps(__spreadValues({ className: classNames("GeckoUIInputError", className) }, rest), { children }));
2705
2833
  };
2706
2834
  var InputError_default = InputError;
2707
2835
 
2708
2836
  // src/components/Button/Button.tsx
2709
- var import_react18 = require("react");
2710
- var import_jsx_runtime21 = require("react/jsx-runtime");
2711
- var Button = (0, import_react18.forwardRef)(
2837
+ var import_react19 = require("react");
2838
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2839
+ var Button = (0, import_react19.forwardRef)(
2712
2840
  (_a, ref) => {
2713
2841
  var _b = _a, { children, className, variant = "filled", size = "md", color = "primary" } = _b, rest = __objRest(_b, ["children", "className", "variant", "size", "color"]);
2714
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2842
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2715
2843
  "button",
2716
2844
  __spreadProps(__spreadValues({
2717
2845
  className: classNames(
@@ -2733,10 +2861,10 @@ Button.displayName = "Button";
2733
2861
  var Button_default = Button;
2734
2862
 
2735
2863
  // src/components/Spinner/Spinner.tsx
2736
- var import_jsx_runtime22 = require("react/jsx-runtime");
2864
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2737
2865
  var Spinner = (_a) => {
2738
2866
  var _b = _a, { className, stroke = "currentColor" } = _b, rest = __objRest(_b, ["className", "stroke"]);
2739
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2867
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2740
2868
  "svg",
2741
2869
  __spreadProps(__spreadValues({
2742
2870
  xmlns: "http://www.w3.org/2000/svg",
@@ -2752,13 +2880,13 @@ var Spinner = (_a) => {
2752
2880
  stroke,
2753
2881
  className: classNames("GeckoUISpinnerIcon", className)
2754
2882
  }, rest), {
2755
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2883
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2756
2884
  })
2757
2885
  );
2758
2886
  };
2759
2887
 
2760
2888
  // src/components/LoadingButton/LoadingButton.tsx
2761
- var import_jsx_runtime23 = require("react/jsx-runtime");
2889
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2762
2890
  var LoadingButton = (_a) => {
2763
2891
  var _b = _a, {
2764
2892
  loading,
@@ -2783,14 +2911,14 @@ var LoadingButton = (_a) => {
2783
2911
  ]);
2784
2912
  const renderContent = () => {
2785
2913
  if (loading && loadingText) {
2786
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: loadingText });
2914
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: loadingText });
2787
2915
  }
2788
2916
  if (loading && typeof children === "string") {
2789
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children });
2917
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children });
2790
2918
  }
2791
2919
  return children;
2792
2920
  };
2793
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2921
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2794
2922
  Button_default,
2795
2923
  __spreadProps(__spreadValues({
2796
2924
  className: classNames(
@@ -2807,9 +2935,9 @@ var LoadingButton = (_a) => {
2807
2935
  variant
2808
2936
  }, buttonProps), {
2809
2937
  children: [
2810
- loading && spinnerPosition === "start" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Spinner, { className: "size-3.5" }) : null,
2938
+ loading && spinnerPosition === "start" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Spinner, { className: "size-3.5" }) : null,
2811
2939
  renderContent(),
2812
- loading && spinnerPosition === "end" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Spinner, { className: "size-3.5" }) : null
2940
+ loading && spinnerPosition === "end" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Spinner, { className: "size-3.5" }) : null
2813
2941
  ]
2814
2942
  })
2815
2943
  );
@@ -2818,15 +2946,15 @@ LoadingButton.displayName = "LoadingButton";
2818
2946
  var LoadingButton_default = LoadingButton;
2819
2947
 
2820
2948
  // src/components/RHF/RHFCheckbox/RHFCheckbox.tsx
2821
- var import_react19 = require("react");
2949
+ var import_react20 = require("react");
2822
2950
 
2823
2951
  // src/utils/isEqual.ts
2824
- var import_lodash2 = __toESM(require("lodash.isequal"));
2825
- var isEqual_default = import_lodash2.default;
2952
+ var import_lodash = __toESM(require("lodash.isequal"));
2953
+ var isEqual_default = import_lodash.default;
2826
2954
 
2827
2955
  // src/components/RHF/RHFController/RHFController.tsx
2828
2956
  var import_react_hook_form = require("react-hook-form");
2829
- var import_jsx_runtime24 = require("react/jsx-runtime");
2957
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2830
2958
  var RHFController = (_a) => {
2831
2959
  var _b = _a, { control: customControl } = _b, rest = __objRest(_b, ["control"]);
2832
2960
  const formContext = (0, import_react_hook_form.useFormContext)();
@@ -2836,13 +2964,13 @@ var RHFController = (_a) => {
2836
2964
  "RHFController should be wrapped with FormProvider or provide control prop explicitly."
2837
2965
  );
2838
2966
  }
2839
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_hook_form.Controller, __spreadValues({ control: customControl != null ? customControl : control }, rest));
2967
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_hook_form.Controller, __spreadValues({ control: customControl != null ? customControl : control }, rest));
2840
2968
  };
2841
2969
  RHFController.displayName = "RHFController";
2842
2970
  var RHFController_default = RHFController;
2843
2971
 
2844
2972
  // src/components/RHF/RHFCheckbox/RHFCheckbox.tsx
2845
- var import_jsx_runtime25 = require("react/jsx-runtime");
2973
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2846
2974
  var RHFCheckbox = (_a) => {
2847
2975
  var _b = _a, {
2848
2976
  name,
@@ -2873,8 +3001,8 @@ var RHFCheckbox = (_a) => {
2873
3001
  "partial",
2874
3002
  "onBlur"
2875
3003
  ]);
2876
- const _id = (0, import_react19.useId)();
2877
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3004
+ const _id = (0, import_react20.useId)();
3005
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2878
3006
  RHFController_default,
2879
3007
  {
2880
3008
  control,
@@ -2888,8 +3016,8 @@ var RHFCheckbox = (_a) => {
2888
3016
  if (!Array.isArray(field.value)) return false;
2889
3017
  return field.value.map((e) => JSON.stringify(e)).includes(JSON.stringify(value));
2890
3018
  };
2891
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "GeckoUIRHFCheckbox group", htmlFor: id || _id, children: [
2892
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3019
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "GeckoUIRHFCheckbox group", htmlFor: id || _id, children: [
3020
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2893
3021
  Checkbox_default,
2894
3022
  __spreadProps(__spreadValues(__spreadValues({}, field), rest), {
2895
3023
  disabled,
@@ -2920,7 +3048,7 @@ var RHFCheckbox = (_a) => {
2920
3048
  value: void 0
2921
3049
  })
2922
3050
  ),
2923
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: classNames("GeckoUIRHFCheckbox__label", labelClassName), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DynamicComponentRenderer_default, { component: label }) })
3051
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: classNames("GeckoUIRHFCheckbox__label", labelClassName), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DynamicComponentRenderer_default, { component: label }) })
2924
3052
  ] });
2925
3053
  }
2926
3054
  }
@@ -2929,8 +3057,56 @@ var RHFCheckbox = (_a) => {
2929
3057
  RHFCheckbox.displayName = "RHFCheckbox";
2930
3058
  var RHFCheckbox_default = RHFCheckbox;
2931
3059
 
3060
+ // src/components/RHF/RHFCounterInput/RHFCounterInput.tsx
3061
+ var import_jsx_runtime27 = require("react/jsx-runtime");
3062
+ var RHFCounterInput = (_a) => {
3063
+ var _b = _a, {
3064
+ control,
3065
+ name,
3066
+ rules,
3067
+ className,
3068
+ onChange
3069
+ } = _b, rest = __objRest(_b, [
3070
+ "control",
3071
+ "name",
3072
+ "rules",
3073
+ "className",
3074
+ "onChange"
3075
+ ]);
3076
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3077
+ RHFController_default,
3078
+ {
3079
+ control,
3080
+ name,
3081
+ rules,
3082
+ render: ({ field, fieldState }) => {
3083
+ var _a2;
3084
+ const hasError = Boolean(fieldState.error);
3085
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3086
+ CounterInput_default,
3087
+ __spreadProps(__spreadValues({
3088
+ className: classNames(
3089
+ "GeckoUIRHFCounterInput",
3090
+ hasError && "GeckoUIRHFCounterInput--error",
3091
+ className
3092
+ )
3093
+ }, rest), {
3094
+ value: (_a2 = field.value) != null ? _a2 : 0,
3095
+ onChange: (value) => {
3096
+ field.onChange(value);
3097
+ onChange == null ? void 0 : onChange(value);
3098
+ }
3099
+ })
3100
+ );
3101
+ }
3102
+ }
3103
+ );
3104
+ };
3105
+ RHFCounterInput.displayName = "RHFCounterInput";
3106
+ var RHFCounterInput_default = RHFCounterInput;
3107
+
2932
3108
  // src/components/RHF/RHFInput/RHFInput.tsx
2933
- var import_jsx_runtime26 = require("react/jsx-runtime");
3109
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2934
3110
  var RHFInput = (_a) => {
2935
3111
  var _b = _a, {
2936
3112
  control,
@@ -2957,7 +3133,7 @@ var RHFInput = (_a) => {
2957
3133
  "onChange",
2958
3134
  "onKeyDown"
2959
3135
  ]);
2960
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3136
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2961
3137
  RHFController_default,
2962
3138
  {
2963
3139
  control,
@@ -2967,7 +3143,7 @@ var RHFInput = (_a) => {
2967
3143
  const { field, fieldState } = renderProps;
2968
3144
  const hasError = Boolean(fieldState.error);
2969
3145
  const value = (transform == null ? void 0 : transform.input) ? transform.input(field.value) : field.value;
2970
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3146
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2971
3147
  Input_default,
2972
3148
  __spreadProps(__spreadValues(__spreadValues({
2973
3149
  className: classNames(
@@ -2975,8 +3151,8 @@ var RHFInput = (_a) => {
2975
3151
  hasError && "GeckoUIRHFInput--error",
2976
3152
  className
2977
3153
  ),
2978
- prefix: prefix ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DynamicComponentRenderer_default, __spreadValues({ component: prefix }, renderProps)) : null,
2979
- suffix: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DynamicComponentRenderer_default, __spreadValues({ component: suffix }, renderProps))
3154
+ prefix: prefix ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DynamicComponentRenderer_default, __spreadValues({ component: prefix }, renderProps)) : null,
3155
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DynamicComponentRenderer_default, __spreadValues({ component: suffix }, renderProps))
2980
3156
  }, field), rest), {
2981
3157
  disabled,
2982
3158
  onBlur: () => {
@@ -2999,21 +3175,21 @@ RHFInput.displayName = "RHFInput";
2999
3175
  var RHFInput_default = RHFInput;
3000
3176
 
3001
3177
  // src/components/RHF/RHFError/RHFError.tsx
3002
- var import_react20 = require("react");
3003
- var import_jsx_runtime27 = require("react/jsx-runtime");
3178
+ var import_react21 = require("react");
3179
+ var import_jsx_runtime29 = require("react/jsx-runtime");
3004
3180
  var RHFError = ({ name, control, className, render }) => {
3005
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3181
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3006
3182
  RHFController_default,
3007
3183
  {
3008
3184
  control,
3009
3185
  name,
3010
3186
  render: ({ fieldState }) => {
3011
3187
  const { error } = fieldState;
3012
- if (!(error == null ? void 0 : error.message)) return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react20.Fragment, {}, "rhf-error");
3188
+ if (!(error == null ? void 0 : error.message)) return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react21.Fragment, {}, "rhf-error");
3013
3189
  if (typeof render === "function") {
3014
3190
  return render(fieldState);
3015
3191
  }
3016
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(InputError_default, { className: classNames("GeckoUIRHFError", className), children: error.message });
3192
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(InputError_default, { className: classNames("GeckoUIRHFError", className), children: error.message });
3017
3193
  }
3018
3194
  }
3019
3195
  );
@@ -3022,7 +3198,7 @@ RHFError.displayName = "RHFError";
3022
3198
  var RHFError_default = RHFError;
3023
3199
 
3024
3200
  // src/components/RHF/RHFInputGroup/RHFInputGroup.tsx
3025
- var import_jsx_runtime28 = require("react/jsx-runtime");
3201
+ var import_jsx_runtime30 = require("react/jsx-runtime");
3026
3202
  var RHFInputGroup = (_a) => {
3027
3203
  var _b = _a, {
3028
3204
  className,
@@ -3046,10 +3222,10 @@ var RHFInputGroup = (_a) => {
3046
3222
  console.warn("RHFInputGroup not containing any `RHF` input component");
3047
3223
  }
3048
3224
  const { id, name, control } = (input == null ? void 0 : input.props) || {};
3049
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: classNames("GeckoUIRHFInputGroup", className), children: [
3050
- label ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Label_default, __spreadProps(__spreadValues({ htmlFor: id, className: labelClassName }, restLabelProps), { children: label })) : null,
3225
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: classNames("GeckoUIRHFInputGroup", className), children: [
3226
+ label ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label_default, __spreadProps(__spreadValues({ htmlFor: id, className: labelClassName }, restLabelProps), { children: label })) : null,
3051
3227
  children,
3052
- name ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RHFError_default, { className: errorClassName, control, name }) : null
3228
+ name ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RHFError_default, { className: errorClassName, control, name }) : null
3053
3229
  ] });
3054
3230
  };
3055
3231
  var RHFInputGroup_default = RHFInputGroup;
@@ -3076,7 +3252,7 @@ function findInput(el) {
3076
3252
  }
3077
3253
 
3078
3254
  // src/components/RHF/RHFNumberInput/RHFNumberInput.tsx
3079
- var import_jsx_runtime29 = require("react/jsx-runtime");
3255
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3080
3256
  var RHFNumberInput = (_a) => {
3081
3257
  var _b = _a, {
3082
3258
  strict = true,
@@ -3112,7 +3288,7 @@ var RHFNumberInput = (_a) => {
3112
3288
  }
3113
3289
  return formattedValue;
3114
3290
  }
3115
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3291
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3116
3292
  RHFInput_default,
3117
3293
  __spreadProps(__spreadValues({
3118
3294
  inputMode: "decimal",
@@ -3130,15 +3306,15 @@ RHFNumberInput.displayName = "RHFNumberInput";
3130
3306
  var RHFNumberInput_default = RHFNumberInput;
3131
3307
 
3132
3308
  // src/components/RHF/RHFCurrencyInput/RHFCurrencyInput.tsx
3133
- var import_jsx_runtime30 = require("react/jsx-runtime");
3309
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3134
3310
  var RHFCurrencyInput = (_a) => {
3135
3311
  var _b = _a, { className, currency } = _b, rest = __objRest(_b, ["className", "currency"]);
3136
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3312
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3137
3313
  RHFNumberInput_default,
3138
3314
  __spreadProps(__spreadValues({
3139
3315
  className: classNames("GeckoUIRHFCurrencyInput", className),
3140
- prefix: (currency == null ? void 0 : currency.symbol) ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "GeckoUIRHFCurrencyInput__currency-symbol", children: currency.symbol }) : null,
3141
- suffix: (currency == null ? void 0 : currency.code) ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "GeckoUIRHFCurrencyInput__currency-code", children: currency.code }) : null,
3316
+ prefix: (currency == null ? void 0 : currency.symbol) ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "GeckoUIRHFCurrencyInput__currency-symbol", children: currency.symbol }) : null,
3317
+ suffix: (currency == null ? void 0 : currency.code) ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "GeckoUIRHFCurrencyInput__currency-code", children: currency.code }) : null,
3142
3318
  transform: { input: toThousandsSeparatorFormat }
3143
3319
  }, rest), {
3144
3320
  strict: true
@@ -3149,13 +3325,13 @@ RHFCurrencyInput.displayName = "RHFCurrencyInput";
3149
3325
  var RHFCurrencyInput_default = RHFCurrencyInput;
3150
3326
 
3151
3327
  // src/components/Textarea/Textarea.tsx
3152
- var import_react21 = require("react");
3328
+ var import_react22 = require("react");
3153
3329
  var import_react_textarea_autosize = __toESM(require("react-textarea-autosize"));
3154
- var import_jsx_runtime31 = require("react/jsx-runtime");
3155
- var Textarea = (0, import_react21.forwardRef)(
3330
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3331
+ var Textarea = (0, import_react22.forwardRef)(
3156
3332
  (_a, ref) => {
3157
3333
  var _b = _a, { autoResize, className, rows = 2, maxRows } = _b, rest = __objRest(_b, ["autoResize", "className", "rows", "maxRows"]);
3158
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3334
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3159
3335
  import_react_textarea_autosize.default,
3160
3336
  __spreadValues({
3161
3337
  className: classNames("GeckoUITextarea", className),
@@ -3170,7 +3346,7 @@ Textarea.displayName = "Textarea";
3170
3346
  var Textarea_default = Textarea;
3171
3347
 
3172
3348
  // src/components/RHF/RHFTextarea/RHFTextarea.tsx
3173
- var import_jsx_runtime32 = require("react/jsx-runtime");
3349
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3174
3350
  var RHFTextarea = (_a) => {
3175
3351
  var _b = _a, {
3176
3352
  name,
@@ -3189,7 +3365,7 @@ var RHFTextarea = (_a) => {
3189
3365
  "onChange",
3190
3366
  "onBlur"
3191
3367
  ]);
3192
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3368
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3193
3369
  RHFController_default,
3194
3370
  {
3195
3371
  control,
@@ -3197,7 +3373,7 @@ var RHFTextarea = (_a) => {
3197
3373
  rules,
3198
3374
  render: (renderProps) => {
3199
3375
  const { field, fieldState } = renderProps;
3200
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3376
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3201
3377
  Textarea_default,
3202
3378
  __spreadProps(__spreadValues(__spreadValues({
3203
3379
  className: classNames(
@@ -3225,14 +3401,14 @@ RHFTextarea.displayName = "RHFTextarea";
3225
3401
  var RHFTextarea_default = RHFTextarea;
3226
3402
 
3227
3403
  // src/components/Switch/Switch.tsx
3228
- var import_react22 = require("@headlessui/react");
3229
- var import_react23 = require("react");
3230
- var import_jsx_runtime33 = require("react/jsx-runtime");
3231
- var Switch = (0, import_react23.forwardRef)(
3404
+ var import_react23 = require("@headlessui/react");
3405
+ var import_react24 = require("react");
3406
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3407
+ var Switch = (0, import_react24.forwardRef)(
3232
3408
  (_a, ref) => {
3233
3409
  var _b = _a, { className, thumbClassName, size = "md" } = _b, rest = __objRest(_b, ["className", "thumbClassName", "size"]);
3234
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3235
- import_react22.Switch,
3410
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3411
+ import_react23.Switch,
3236
3412
  __spreadProps(__spreadValues({
3237
3413
  onKeyUp: (e) => {
3238
3414
  if (e.key === "Enter") {
@@ -3243,7 +3419,7 @@ var Switch = (0, import_react23.forwardRef)(
3243
3419
  className: classNames("group GeckoUISwitch", `GeckoUISwitch--size-${size}`, className)
3244
3420
  }, rest), {
3245
3421
  ref,
3246
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3422
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3247
3423
  "span",
3248
3424
  {
3249
3425
  className: classNames(
@@ -3261,7 +3437,7 @@ Switch.displayName = "Switch";
3261
3437
  var Switch_default = Switch;
3262
3438
 
3263
3439
  // src/components/RHF/RHFSwitch/RHFSwitch.tsx
3264
- var import_jsx_runtime34 = require("react/jsx-runtime");
3440
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3265
3441
  var RHFSwitch = (_a) => {
3266
3442
  var _b = _a, {
3267
3443
  name,
@@ -3288,7 +3464,7 @@ var RHFSwitch = (_a) => {
3288
3464
  "thumbClassName",
3289
3465
  "onBlur"
3290
3466
  ]);
3291
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3467
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3292
3468
  RHFController_default,
3293
3469
  {
3294
3470
  control,
@@ -3306,7 +3482,7 @@ var RHFSwitch = (_a) => {
3306
3482
  field.onChange(newValue);
3307
3483
  onChange == null ? void 0 : onChange(newValue);
3308
3484
  };
3309
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3485
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3310
3486
  Switch_default,
3311
3487
  __spreadProps(__spreadValues(__spreadValues({}, field), rest), {
3312
3488
  disabled,
@@ -3338,20 +3514,20 @@ RHFSwitch.displayName = "RHFSwitch";
3338
3514
  var RHFSwitch_default = RHFSwitch;
3339
3515
 
3340
3516
  // src/components/RHF/RHFRadio/RHFRadio.tsx
3341
- var import_react25 = require("react");
3517
+ var import_react26 = require("react");
3342
3518
 
3343
3519
  // src/components/Radio/Radio.tsx
3344
- var import_react24 = require("react");
3345
- var import_jsx_runtime35 = require("react/jsx-runtime");
3346
- var Radio = (0, import_react24.forwardRef)((_a, ref) => {
3520
+ var import_react25 = require("react");
3521
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3522
+ var Radio = (0, import_react25.forwardRef)((_a, ref) => {
3347
3523
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
3348
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("input", __spreadProps(__spreadValues({ className: classNames("GeckoUIRadio", className), ref }, rest), { type: "radio" }));
3524
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("input", __spreadProps(__spreadValues({ className: classNames("GeckoUIRadio", className), ref }, rest), { type: "radio" }));
3349
3525
  });
3350
3526
  Radio.displayName = "Radio";
3351
3527
  var Radio_default = Radio;
3352
3528
 
3353
3529
  // src/components/RHF/RHFRadio/RHFRadio.tsx
3354
- var import_jsx_runtime36 = require("react/jsx-runtime");
3530
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3355
3531
  var RHFRadio = (_a) => {
3356
3532
  var _b = _a, {
3357
3533
  name,
@@ -3376,20 +3552,20 @@ var RHFRadio = (_a) => {
3376
3552
  "onChange",
3377
3553
  "onBlur"
3378
3554
  ]);
3379
- const _id = (0, import_react25.useId)();
3555
+ const _id = (0, import_react26.useId)();
3380
3556
  const uniqueId = id || _id;
3381
3557
  if (value === void 0 || value === null) {
3382
3558
  throw new Error("RHFRadio: value cannot be undefined or null");
3383
3559
  }
3384
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3560
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3385
3561
  RHFController_default,
3386
3562
  {
3387
3563
  control,
3388
3564
  name,
3389
3565
  rules,
3390
3566
  render: ({ field }) => {
3391
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("label", { className: "GeckoUIRHFRadio group", htmlFor: uniqueId, children: [
3392
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3567
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "GeckoUIRHFRadio group", htmlFor: uniqueId, children: [
3568
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3393
3569
  Radio_default,
3394
3570
  __spreadProps(__spreadValues(__spreadValues({}, field), rest), {
3395
3571
  checked: isEqual_default(field.value, value),
@@ -3406,7 +3582,7 @@ var RHFRadio = (_a) => {
3406
3582
  value: void 0
3407
3583
  })
3408
3584
  ),
3409
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: classNames("GeckoUIRHFRadio__label", labelClassName), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DynamicComponentRenderer_default, { component: label }) })
3585
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: classNames("GeckoUIRHFRadio__label", labelClassName), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DynamicComponentRenderer_default, { component: label }) })
3410
3586
  ] });
3411
3587
  }
3412
3588
  }
@@ -3416,10 +3592,10 @@ RHFRadio.displayName = "RHFRadio";
3416
3592
  var RHFRadio_default = RHFRadio;
3417
3593
 
3418
3594
  // src/components/RHF/RHFDateInput/RHFDateInput.tsx
3419
- var import_jsx_runtime37 = require("react/jsx-runtime");
3595
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3420
3596
  var RHFDateInput = (_a) => {
3421
3597
  var _b = _a, { name, control, rules, onChange } = _b, rest = __objRest(_b, ["name", "control", "rules", "onChange"]);
3422
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3598
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3423
3599
  RHFController_default,
3424
3600
  {
3425
3601
  control,
@@ -3428,7 +3604,7 @@ var RHFDateInput = (_a) => {
3428
3604
  render: (renderProps) => {
3429
3605
  const { field, fieldState } = renderProps;
3430
3606
  const hasError = Boolean(fieldState.error);
3431
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3607
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3432
3608
  DateInput_default,
3433
3609
  __spreadProps(__spreadValues({
3434
3610
  value: field.value || "",
@@ -3448,10 +3624,10 @@ RHFDateInput.displayName = "RHFDateInput";
3448
3624
  var RHFDateInput_default = RHFDateInput;
3449
3625
 
3450
3626
  // src/components/RHF/RHFDateRangeInput/RHFDateRangeInput.tsx
3451
- var import_jsx_runtime38 = require("react/jsx-runtime");
3627
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3452
3628
  var RHFDateRangeInput = (_a) => {
3453
3629
  var _b = _a, { name, control, rules, onChange } = _b, rest = __objRest(_b, ["name", "control", "rules", "onChange"]);
3454
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3630
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3455
3631
  RHFController_default,
3456
3632
  {
3457
3633
  control,
@@ -3460,7 +3636,7 @@ var RHFDateRangeInput = (_a) => {
3460
3636
  render: (renderProps) => {
3461
3637
  const { field, fieldState } = renderProps;
3462
3638
  const hasError = Boolean(fieldState.error);
3463
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3639
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3464
3640
  DateRangeInput_default,
3465
3641
  __spreadProps(__spreadValues({
3466
3642
  value: field.value || void 0,
@@ -3480,7 +3656,7 @@ RHFDateRangeInput.displayName = "RHFDateRangeInput";
3480
3656
  var RHFDateRangeInput_default = RHFDateRangeInput;
3481
3657
 
3482
3658
  // src/components/RHF/RHFFileInput/RHFFileInput.tsx
3483
- var import_jsx_runtime39 = require("react/jsx-runtime");
3659
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3484
3660
  var RHFFileInput = (_a) => {
3485
3661
  var _b = _a, {
3486
3662
  id,
@@ -3507,7 +3683,7 @@ var RHFFileInput = (_a) => {
3507
3683
  "inputClassName",
3508
3684
  "render"
3509
3685
  ]);
3510
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3686
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3511
3687
  RHFController_default,
3512
3688
  {
3513
3689
  control,
@@ -3515,8 +3691,8 @@ var RHFFileInput = (_a) => {
3515
3691
  rules,
3516
3692
  render: (renderProps) => {
3517
3693
  const { field } = renderProps;
3518
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("label", { className: classNames("GeckoUIRHFFileInput--wrapper", className), id, children: [
3519
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3694
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("label", { className: classNames("GeckoUIRHFFileInput--wrapper", className), id, children: [
3695
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3520
3696
  "input",
3521
3697
  __spreadProps(__spreadValues(__spreadValues({}, field), rest), {
3522
3698
  className: classNames(
@@ -3549,7 +3725,7 @@ var RHFFileInput = (_a) => {
3549
3725
  value: void 0
3550
3726
  })
3551
3727
  ),
3552
- render ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DynamicComponentRenderer_default, __spreadValues({ component: render }, renderProps)) : null
3728
+ render ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DynamicComponentRenderer_default, __spreadValues({ component: render }, renderProps)) : null
3553
3729
  ] });
3554
3730
  }
3555
3731
  }
@@ -3559,9 +3735,9 @@ RHFFileInput.displayName = "RHFFileInput";
3559
3735
  var RHFFileInput_default = RHFFileInput;
3560
3736
 
3561
3737
  // src/components/OTPInput/OTPInput.tsx
3562
- var import_react26 = require("react");
3563
- var import_jsx_runtime40 = require("react/jsx-runtime");
3564
- var OTPInput = (0, import_react26.forwardRef)(
3738
+ var import_react27 = require("react");
3739
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3740
+ var OTPInput = (0, import_react27.forwardRef)(
3565
3741
  ({
3566
3742
  value = "",
3567
3743
  onChange,
@@ -3574,7 +3750,7 @@ var OTPInput = (0, import_react26.forwardRef)(
3574
3750
  onOTPComplete,
3575
3751
  disabled
3576
3752
  }, ref) => {
3577
- const divRef = (0, import_react26.useRef)(null);
3753
+ const divRef = (0, import_react27.useRef)(null);
3578
3754
  const focus = (index) => {
3579
3755
  var _a, _b;
3580
3756
  const children = (_a = divRef.current) == null ? void 0 : _a.children;
@@ -3603,7 +3779,7 @@ var OTPInput = (0, import_react26.forwardRef)(
3603
3779
  e.preventDefault();
3604
3780
  focus(value.length);
3605
3781
  };
3606
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3782
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3607
3783
  "div",
3608
3784
  {
3609
3785
  className: classNames(
@@ -3615,7 +3791,7 @@ var OTPInput = (0, import_react26.forwardRef)(
3615
3791
  style: { gridTemplateColumns: `repeat(${length}, minmax(0, 1fr))` },
3616
3792
  children: Array.from({ length }).map((_, i) => i).map((key, index) => {
3617
3793
  const isLast = index === length - 1;
3618
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3794
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
3619
3795
  "div",
3620
3796
  {
3621
3797
  style: {
@@ -3623,7 +3799,7 @@ var OTPInput = (0, import_react26.forwardRef)(
3623
3799
  aspectRatio: aspectRatio === void 0 ? 0.94 : aspectRatio
3624
3800
  },
3625
3801
  children: [
3626
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3802
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3627
3803
  "input",
3628
3804
  {
3629
3805
  className: classNames("GeckoUIOTPInput__input", inputClassName),
@@ -3660,7 +3836,7 @@ var OTPInput = (0, import_react26.forwardRef)(
3660
3836
  value: value[index] || ""
3661
3837
  }
3662
3838
  ),
3663
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3839
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3664
3840
  "button",
3665
3841
  {
3666
3842
  className: "GeckoUIOTPInput__overlay-button",
@@ -3684,10 +3860,10 @@ OTPInput.displayName = "OTPInput";
3684
3860
  var OTPInput_default = OTPInput;
3685
3861
 
3686
3862
  // src/components/RHF/RHFOTPInput/RHFOTPInput.tsx
3687
- var import_jsx_runtime41 = require("react/jsx-runtime");
3863
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3688
3864
  var RHFOTPInput = (_a) => {
3689
3865
  var _b = _a, { control, name, rules, disabled, className } = _b, rest = __objRest(_b, ["control", "name", "rules", "disabled", "className"]);
3690
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3866
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3691
3867
  RHFController_default,
3692
3868
  {
3693
3869
  control,
@@ -3695,7 +3871,7 @@ var RHFOTPInput = (_a) => {
3695
3871
  rules,
3696
3872
  disabled,
3697
3873
  render: ({ field, fieldState }) => {
3698
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3874
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3699
3875
  OTPInput_default,
3700
3876
  __spreadValues(__spreadValues({
3701
3877
  className: classNames(
@@ -3714,7 +3890,7 @@ RHFOTPInput.displayName = "RHFOTPInput";
3714
3890
  var RHFOTPInput_default = RHFOTPInput;
3715
3891
 
3716
3892
  // src/components/RHF/RHFFilePicker/RHFFilePicker.tsx
3717
- var import_jsx_runtime42 = require("react/jsx-runtime");
3893
+ var import_jsx_runtime44 = require("react/jsx-runtime");
3718
3894
  function formatFileSize(bytes) {
3719
3895
  if (bytes === 0) return "0 B";
3720
3896
  const k = 1024;
@@ -3724,14 +3900,14 @@ function formatFileSize(bytes) {
3724
3900
  }
3725
3901
  function RHFFilePicker(props) {
3726
3902
  const _a = props, { name, control, rules } = _a, rest = __objRest(_a, ["name", "control", "rules"]);
3727
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3903
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3728
3904
  RHFController_default,
3729
3905
  {
3730
3906
  control,
3731
3907
  name,
3732
3908
  rules,
3733
3909
  render: (renderProps) => {
3734
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(RHFFilePickerRenderer, __spreadValues(__spreadValues({}, rest), renderProps));
3910
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(RHFFilePickerRenderer, __spreadValues(__spreadValues({}, rest), renderProps));
3735
3911
  }
3736
3912
  }
3737
3913
  );
@@ -3771,7 +3947,7 @@ function RHFFilePickerRenderer({
3771
3947
  const updatedFiles = value.filter((file) => file.preview !== fileToRemove.preview);
3772
3948
  field.onChange(updatedFiles);
3773
3949
  };
3774
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
3950
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
3775
3951
  "div",
3776
3952
  {
3777
3953
  className: classNames(
@@ -3781,16 +3957,16 @@ function RHFFilePickerRenderer({
3781
3957
  error && "GeckoUIRHFFilePicker--error"
3782
3958
  ),
3783
3959
  children: [
3784
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
3960
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
3785
3961
  "div",
3786
3962
  {
3787
3963
  className: "GeckoUIRHFFilePicker__upload-area",
3788
3964
  ref: dropzoneRef,
3789
3965
  children: [
3790
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Upload_default, { className: "GeckoUIRHFFilePicker__upload-icon" }),
3791
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "GeckoUIRHFFilePicker__upload-text", children: "Drag and drop files here, or browse" }),
3792
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "GeckoUIRHFFilePicker__upload-buttons", children: [
3793
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3966
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Upload_default, { className: "GeckoUIRHFFilePicker__upload-icon" }),
3967
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "GeckoUIRHFFilePicker__upload-text", children: "Drag and drop files here, or browse" }),
3968
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "GeckoUIRHFFilePicker__upload-buttons", children: [
3969
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3794
3970
  "button",
3795
3971
  {
3796
3972
  className: "GeckoUIRHFFilePicker__browse-button",
@@ -3799,7 +3975,7 @@ function RHFFilePickerRenderer({
3799
3975
  children: "Browse Files"
3800
3976
  }
3801
3977
  ),
3802
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3978
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3803
3979
  "button",
3804
3980
  {
3805
3981
  className: "GeckoUIRHFFilePicker__browse-button",
@@ -3809,20 +3985,20 @@ function RHFFilePickerRenderer({
3809
3985
  }
3810
3986
  )
3811
3987
  ] }),
3812
- loading ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "GeckoUIRHFFilePicker__loading-overlay", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Spinner, {}) }) : null
3988
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "GeckoUIRHFFilePicker__loading-overlay", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Spinner, {}) }) : null
3813
3989
  ]
3814
3990
  }
3815
3991
  ),
3816
- Boolean(value == null ? void 0 : value.length) && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "GeckoUIRHFFilePicker__file-list", children: value.map((file) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "GeckoUIRHFFilePicker__file-row", children: [
3817
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "GeckoUIRHFFilePicker__file-name", children: file.name }),
3818
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "GeckoUIRHFFilePicker__file-size", children: formatFileSize(file.size) }),
3819
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3992
+ Boolean(value == null ? void 0 : value.length) && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "GeckoUIRHFFilePicker__file-list", children: value.map((file) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "GeckoUIRHFFilePicker__file-row", children: [
3993
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "GeckoUIRHFFilePicker__file-name", children: file.name }),
3994
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "GeckoUIRHFFilePicker__file-size", children: formatFileSize(file.size) }),
3995
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3820
3996
  "button",
3821
3997
  {
3822
3998
  className: "GeckoUIRHFFilePicker__file-remove",
3823
3999
  onClick: () => handleRemoveFile(file),
3824
4000
  type: "button",
3825
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(X_default, { className: "GeckoUIRHFFilePicker__file-remove-icon" })
4001
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(X_default, { className: "GeckoUIRHFFilePicker__file-remove-icon" })
3826
4002
  }
3827
4003
  )
3828
4004
  ] }, file.preview)) })
@@ -3834,8 +4010,8 @@ RHFFilePicker.displayName = "RHFFilePicker";
3834
4010
  var RHFFilePicker_default = RHFFilePicker;
3835
4011
 
3836
4012
  // src/components/Select/Select/Select.tsx
3837
- var import_react31 = require("@floating-ui/react");
3838
- var import_react32 = require("react");
4013
+ var import_react32 = require("@floating-ui/react");
4014
+ var import_react33 = require("react");
3839
4015
 
3840
4016
  // src/utils/isTextIncludes.ts
3841
4017
  function isTextIncludes(baseString = "", searchString) {
@@ -3904,7 +4080,7 @@ function findSelectOptions(el) {
3904
4080
  }
3905
4081
 
3906
4082
  // src/components/Select/SelectButton/SelectButton.tsx
3907
- var import_react29 = require("react");
4083
+ var import_react30 = require("react");
3908
4084
 
3909
4085
  // src/utils/createLabel.ts
3910
4086
  function createLabel(item) {
@@ -3936,14 +4112,14 @@ function createLabel(item) {
3936
4112
  var createLabel_default = createLabel;
3937
4113
 
3938
4114
  // src/components/Select/hooks/useSelectTrigger.tsx
3939
- var import_lodash3 = __toESM(require("lodash.isequal"));
3940
- var import_react28 = require("react");
4115
+ var import_lodash2 = __toESM(require("lodash.isequal"));
4116
+ var import_react29 = require("react");
3941
4117
 
3942
4118
  // src/components/Select/useSelect.tsx
3943
- var import_react27 = require("react");
3944
- var SelectContext = (0, import_react27.createContext)(void 0);
4119
+ var import_react28 = require("react");
4120
+ var SelectContext = (0, import_react28.createContext)(void 0);
3945
4121
  var useSelect = () => {
3946
- const context = (0, import_react27.useContext)(SelectContext);
4122
+ const context = (0, import_react28.useContext)(SelectContext);
3947
4123
  if (context === void 0) {
3948
4124
  throw new Error("SelectContext must be used within a SelectProvider");
3949
4125
  }
@@ -3987,7 +4163,7 @@ var useSelectTrigger = () => {
3987
4163
  }
3988
4164
  if (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Tab") {
3989
4165
  e.preventDefault();
3990
- let currentIndex = filteredOptions.findIndex((e2) => (0, import_lodash3.default)(e2.value, focusedOption == null ? void 0 : focusedOption.value));
4166
+ let currentIndex = filteredOptions.findIndex((e2) => (0, import_lodash2.default)(e2.value, focusedOption == null ? void 0 : focusedOption.value));
3991
4167
  currentIndex = currentIndex === -1 ? 0 : currentIndex;
3992
4168
  let isDown = e.key === "ArrowDown" || e.key === "Tab";
3993
4169
  if (e.key === "Tab" && e.shiftKey) {
@@ -4022,12 +4198,12 @@ var useSelectTrigger = () => {
4022
4198
  handleChange(value.at(-1));
4023
4199
  }
4024
4200
  };
4025
- const hasValue = (0, import_react28.useMemo)(() => {
4201
+ const hasValue = (0, import_react29.useMemo)(() => {
4026
4202
  if (multiple) {
4027
4203
  return Array.isArray(value) && !!(value == null ? void 0 : value.length);
4028
4204
  }
4029
4205
  if (value === "" || value === null) {
4030
- return !!options.find((opt) => (0, import_lodash3.default)(opt.value, value));
4206
+ return !!options.find((opt) => (0, import_lodash2.default)(opt.value, value));
4031
4207
  }
4032
4208
  return value !== void 0;
4033
4209
  }, [options, multiple, value]);
@@ -4062,7 +4238,7 @@ var sortMultiSelectValue = (value, options) => {
4062
4238
  };
4063
4239
 
4064
4240
  // src/components/Select/SelectButton/SelectButton.tsx
4065
- var import_jsx_runtime43 = require("react/jsx-runtime");
4241
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4066
4242
  function SelectButton({ prefix, suffix, className }) {
4067
4243
  const {
4068
4244
  disabled,
@@ -4082,9 +4258,9 @@ function SelectButton({ prefix, suffix, className }) {
4082
4258
  onChange,
4083
4259
  clearable
4084
4260
  } = useSelect();
4085
- const id = (0, import_react29.useId)();
4261
+ const id = (0, import_react30.useId)();
4086
4262
  const { hasValue, handleInputChange, handleKeyboardInteraction } = useSelectTrigger();
4087
- const trigger = (0, import_react29.useMemo)(() => import_react29.Children.toArray(children).find(isSelectTrigger), [children]);
4263
+ const trigger = (0, import_react30.useMemo)(() => import_react30.Children.toArray(children).find(isSelectTrigger), [children]);
4088
4264
  const handleClear = (e) => {
4089
4265
  e.stopPropagation();
4090
4266
  if (disabled) return;
@@ -4098,7 +4274,7 @@ function SelectButton({ prefix, suffix, className }) {
4098
4274
  return trigger;
4099
4275
  }
4100
4276
  const filterable = _filterable === true || _filterable === "inline";
4101
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4277
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4102
4278
  "div",
4103
4279
  {
4104
4280
  className: classNames(
@@ -4119,9 +4295,9 @@ function SelectButton({ prefix, suffix, className }) {
4119
4295
  },
4120
4296
  "aria-disabled": disabled,
4121
4297
  children: [
4122
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DynamicComponentRenderer_default, { component: prefix }),
4123
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "GeckoUISelectButton__content", children: [
4124
- hasValue ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SelectButtonContent, {}) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4298
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DynamicComponentRenderer_default, { component: prefix }),
4299
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "GeckoUISelectButton__content", children: [
4300
+ hasValue ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectButtonContent, {}) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4125
4301
  "span",
4126
4302
  {
4127
4303
  className: classNames(
@@ -4132,7 +4308,7 @@ function SelectButton({ prefix, suffix, className }) {
4132
4308
  children: placeholder != null ? placeholder : "Select Item"
4133
4309
  }
4134
4310
  ),
4135
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4311
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4136
4312
  "div",
4137
4313
  {
4138
4314
  className: classNames(
@@ -4142,7 +4318,7 @@ function SelectButton({ prefix, suffix, className }) {
4142
4318
  multiple && Array.isArray(value) && !!(value == null ? void 0 : value.length) && "GeckoUISelectButton__search--multi-selected"
4143
4319
  ),
4144
4320
  "data-keyword": filterable ? keyword : "",
4145
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4321
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4146
4322
  "input",
4147
4323
  {
4148
4324
  id,
@@ -4172,12 +4348,12 @@ function SelectButton({ prefix, suffix, className }) {
4172
4348
  }
4173
4349
  )
4174
4350
  ] }),
4175
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "GeckoUISelectButton__icons", children: [
4176
- hasValue && !disabled && clearable && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("button", { className: "GeckoUISelectButton__clear-button", type: "button", onClick: handleClear, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "GeckoUI-icon__clear" }) }),
4177
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4351
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "GeckoUISelectButton__icons", children: [
4352
+ hasValue && !disabled && clearable && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("button", { className: "GeckoUISelectButton__clear-button", type: "button", onClick: handleClear, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "GeckoUI-icon__clear" }) }),
4353
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4178
4354
  DynamicComponentRenderer_default,
4179
4355
  {
4180
- component: suffix != null ? suffix : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "GeckoUI-icon__arrow-right GeckoUISelectTrigger__arrow-right-icon" })
4356
+ component: suffix != null ? suffix : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "GeckoUI-icon__arrow-right GeckoUISelectTrigger__arrow-right-icon" })
4181
4357
  }
4182
4358
  )
4183
4359
  ] })
@@ -4221,7 +4397,7 @@ function SelectButtonContent() {
4221
4397
  });
4222
4398
  return selectedOptions.map((option) => {
4223
4399
  const { remove, value: value2, label } = option;
4224
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4400
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4225
4401
  "div",
4226
4402
  {
4227
4403
  className: classNames(
@@ -4229,8 +4405,8 @@ function SelectButtonContent() {
4229
4405
  disabled && "GeckoUISelectButton__multiselected-chip--disabled"
4230
4406
  ),
4231
4407
  children: [
4232
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: option.label }),
4233
- !disabled && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4408
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: option.label }),
4409
+ !disabled && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4234
4410
  "button",
4235
4411
  {
4236
4412
  type: "button",
@@ -4243,7 +4419,7 @@ function SelectButtonContent() {
4243
4419
  "GeckoUISelectButton__multiselected-chip__clear-button",
4244
4420
  disabled && "GeckoUISelectButton__multiselected-chip__clear-button--disabled"
4245
4421
  ),
4246
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4422
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4247
4423
  "span",
4248
4424
  {
4249
4425
  className: classNames(
@@ -4264,19 +4440,19 @@ function SelectButtonContent() {
4264
4440
  }
4265
4441
  const selectedOptionLabel = value !== void 0 ? (_b = (_a = options.find((option) => isEqual_default(option.value, value))) == null ? void 0 : _a.label) != null ? _b : createLabel_default(value) : null;
4266
4442
  if (open && selectedOptionLabel && filterable) {
4267
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "GeckoUISelectButton__value GeckoUISelectButton__value--placeholder", children: selectedOptionLabel });
4443
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "GeckoUISelectButton__value GeckoUISelectButton__value--placeholder", children: selectedOptionLabel });
4268
4444
  }
4269
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "GeckoUISelectButton__value GeckoUISelectButton__value--selected", children: selectedOptionLabel });
4445
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "GeckoUISelectButton__value GeckoUISelectButton__value--selected", children: selectedOptionLabel });
4270
4446
  }
4271
4447
  SelectButton.displayName = "SelectButton";
4272
4448
  var SelectButton_default = SelectButton;
4273
4449
 
4274
4450
  // src/components/Select/SelectMenu/SelectMenu.tsx
4275
- var import_react30 = require("react");
4451
+ var import_react31 = require("react");
4276
4452
 
4277
4453
  // src/components/Select/SelectDropdownSearch/SelectDropdownSearch.tsx
4278
- var import_lodash4 = __toESM(require("lodash.isequal"));
4279
- var import_jsx_runtime44 = require("react/jsx-runtime");
4454
+ var import_lodash3 = __toESM(require("lodash.isequal"));
4455
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4280
4456
  var SelectDropdownSearch = (_a) => {
4281
4457
  var _b = _a, {
4282
4458
  placeholder = "Search options...",
@@ -4304,7 +4480,7 @@ var SelectDropdownSearch = (_a) => {
4304
4480
  const handleKeyboardInteraction = (e) => {
4305
4481
  if (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Tab") {
4306
4482
  e.preventDefault();
4307
- let currentIndex = filteredOptions.findIndex((e2) => (0, import_lodash4.default)(e2.value, focusedOption == null ? void 0 : focusedOption.value));
4483
+ let currentIndex = filteredOptions.findIndex((e2) => (0, import_lodash3.default)(e2.value, focusedOption == null ? void 0 : focusedOption.value));
4308
4484
  currentIndex = currentIndex === -1 ? 0 : currentIndex;
4309
4485
  let nextIndex = e.key === "ArrowUp" ? currentIndex - 1 : currentIndex + 1;
4310
4486
  if (nextIndex < 0) {
@@ -4341,11 +4517,11 @@ var SelectDropdownSearch = (_a) => {
4341
4517
  setFocusedOption(__spreadProps(__spreadValues({}, focusedValue), { focusType: "keyboard" }));
4342
4518
  }
4343
4519
  };
4344
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4520
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4345
4521
  Input_default,
4346
4522
  __spreadProps(__spreadValues({
4347
4523
  placeholder,
4348
- prefix: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "GeckoUISelectDropdownSearch__icon" }),
4524
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "GeckoUISelectDropdownSearch__icon" }),
4349
4525
  className: classNames("GeckoUISelectDropdownSearch", className)
4350
4526
  }, rest), {
4351
4527
  autoComplete: "off",
@@ -4361,18 +4537,18 @@ SelectDropdownSearch.displayName = "SelectDropdownSearch";
4361
4537
  var SelectDropdownSearch_default = SelectDropdownSearch;
4362
4538
 
4363
4539
  // src/components/Select/SelectEmpty/SelectEmpty.tsx
4364
- var import_jsx_runtime45 = require("react/jsx-runtime");
4540
+ var import_jsx_runtime47 = require("react/jsx-runtime");
4365
4541
  var SelectEmpty = (_a) => {
4366
4542
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
4367
4543
  const { isEmpty } = useSelect();
4368
4544
  if (!isEmpty) return null;
4369
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", __spreadProps(__spreadValues({ className: classNames("GeckoUISelectEmpty", className) }, rest), { children: children || "No options" }));
4545
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", __spreadProps(__spreadValues({ className: classNames("GeckoUISelectEmpty", className) }, rest), { children: children || "No options" }));
4370
4546
  };
4371
4547
  SelectEmpty.displayName = "SelectEmpty";
4372
4548
  var SelectEmpty_default = SelectEmpty;
4373
4549
 
4374
4550
  // src/components/Select/SelectMenu/SelectMenu.tsx
4375
- var import_jsx_runtime46 = require("react/jsx-runtime");
4551
+ var import_jsx_runtime48 = require("react/jsx-runtime");
4376
4552
  var SelectMenu = (_a) => {
4377
4553
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
4378
4554
  const {
@@ -4382,15 +4558,15 @@ var SelectMenu = (_a) => {
4382
4558
  menuScrollContainerRef,
4383
4559
  floating: { refs, floatingStyles }
4384
4560
  } = useSelect();
4385
- const menuItems = (0, import_react30.useMemo)(
4386
- () => import_react30.Children.toArray(children).filter((el) => !isSelectTrigger(el)),
4561
+ const menuItems = (0, import_react31.useMemo)(
4562
+ () => import_react31.Children.toArray(children).filter((el) => !isSelectTrigger(el)),
4387
4563
  [children]
4388
4564
  );
4389
4565
  if (!open || disabled) {
4390
4566
  return null;
4391
4567
  }
4392
4568
  const hasDropdownSearch = filterable === "dropdown";
4393
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4569
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
4394
4570
  "div",
4395
4571
  __spreadProps(__spreadValues({
4396
4572
  ref: (r) => refs.setFloating(r),
@@ -4402,10 +4578,10 @@ var SelectMenu = (_a) => {
4402
4578
  )
4403
4579
  }, rest), {
4404
4580
  children: [
4405
- hasDropdownSearch && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectDropdownSearch_default, { className: "GeckoUISelectMenu__search-container", autoFocus: true }),
4406
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { ref: menuScrollContainerRef, className: "GeckoUISelectMenu__items", children: [
4581
+ hasDropdownSearch && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SelectDropdownSearch_default, { className: "GeckoUISelectMenu__search-container", autoFocus: true }),
4582
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ref: menuScrollContainerRef, className: "GeckoUISelectMenu__items", children: [
4407
4583
  menuItems,
4408
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Empty, { children: menuItems })
4584
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Empty, { children: menuItems })
4409
4585
  ] })
4410
4586
  ]
4411
4587
  })
@@ -4414,18 +4590,18 @@ var SelectMenu = (_a) => {
4414
4590
  function Empty({ children }) {
4415
4591
  const { hideDefaultEmptyUI = false } = useSelect();
4416
4592
  if (hideDefaultEmptyUI) return null;
4417
- const customEmpty = import_react30.Children.toArray(children).find(isSelectEmpty);
4593
+ const customEmpty = import_react31.Children.toArray(children).find(isSelectEmpty);
4418
4594
  if (customEmpty) return null;
4419
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectEmpty_default, {});
4595
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SelectEmpty_default, {});
4420
4596
  }
4421
4597
  SelectMenu.displayName = "SelectMenu";
4422
4598
  var SelectMenu_default = SelectMenu;
4423
4599
 
4424
4600
  // src/components/Select/Select/Select.tsx
4425
- var import_jsx_runtime47 = require("react/jsx-runtime");
4601
+ var import_jsx_runtime49 = require("react/jsx-runtime");
4426
4602
  var Select = (props) => {
4427
- const inputRef = (0, import_react32.useRef)(null);
4428
- const menuScrollContainerRef = (0, import_react32.useRef)(null);
4603
+ const inputRef = (0, import_react33.useRef)(null);
4604
+ const menuScrollContainerRef = (0, import_react33.useRef)(null);
4429
4605
  const _a = props, {
4430
4606
  disabled,
4431
4607
  inputRef: customInputRef,
@@ -4453,22 +4629,22 @@ var Select = (props) => {
4453
4629
  "floatingStrategy",
4454
4630
  "clearable"
4455
4631
  ]);
4456
- const [open, setOpen] = (0, import_react32.useState)(false);
4457
- const [keyword, setKeyword] = (0, import_react32.useState)("");
4458
- const [focusedOption, setFocusedOption] = (0, import_react32.useState)(null);
4459
- const floating = (0, import_react31.useFloating)({
4632
+ const [open, setOpen] = (0, import_react33.useState)(false);
4633
+ const [keyword, setKeyword] = (0, import_react33.useState)("");
4634
+ const [focusedOption, setFocusedOption] = (0, import_react33.useState)(null);
4635
+ const floating = (0, import_react32.useFloating)({
4460
4636
  placement,
4461
4637
  strategy: floatingStrategy,
4462
- middleware: [(0, import_react31.flip)({ padding: 6 }), (0, import_react31.offset)({ mainAxis: 6 })],
4463
- whileElementsMounted: import_react31.autoUpdate,
4638
+ middleware: [(0, import_react32.flip)({ padding: 6 }), (0, import_react32.offset)({ mainAxis: 6 })],
4639
+ whileElementsMounted: import_react32.autoUpdate,
4464
4640
  open,
4465
4641
  onOpenChange: setOpen
4466
4642
  });
4467
4643
  const { refs } = floating;
4468
- const options = (0, import_react32.useMemo)(
4644
+ const options = (0, import_react33.useMemo)(
4469
4645
  () => {
4470
4646
  var _a2;
4471
- return (_a2 = import_react32.Children.toArray(children).map(findSelectOptions).filter(Boolean).flat()) != null ? _a2 : [];
4647
+ return (_a2 = import_react33.Children.toArray(children).map(findSelectOptions).filter(Boolean).flat()) != null ? _a2 : [];
4472
4648
  },
4473
4649
  [children]
4474
4650
  );
@@ -4517,7 +4693,7 @@ var Select = (props) => {
4517
4693
  useClickOutside_default(() => {
4518
4694
  closeMenu();
4519
4695
  }, [refs.reference]);
4520
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4696
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4521
4697
  SelectContext.Provider,
4522
4698
  {
4523
4699
  value: __spreadValues({
@@ -4546,14 +4722,14 @@ var Select = (props) => {
4546
4722
  onChange,
4547
4723
  clearable
4548
4724
  }, rest),
4549
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
4725
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
4550
4726
  "div",
4551
4727
  {
4552
4728
  className: classNames("GeckoUISelect", wrapperClassName),
4553
4729
  ref: (r) => refs.setReference(r),
4554
4730
  children: [
4555
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectButton_default, __spreadValues({}, props)),
4556
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectMenu_default, { className: menuClassName, children })
4731
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectButton_default, __spreadValues({}, props)),
4732
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectMenu_default, { className: menuClassName, children })
4557
4733
  ]
4558
4734
  }
4559
4735
  )
@@ -4564,8 +4740,8 @@ Select.displayName = "Select";
4564
4740
  var Select_default = Select;
4565
4741
 
4566
4742
  // src/components/Select/SelectOption/SelectOption.tsx
4567
- var import_react33 = require("react");
4568
- var import_jsx_runtime48 = require("react/jsx-runtime");
4743
+ var import_react34 = require("react");
4744
+ var import_jsx_runtime50 = require("react/jsx-runtime");
4569
4745
  var SelectOption = (_a) => {
4570
4746
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
4571
4747
  const _a2 = props, {
@@ -4587,7 +4763,7 @@ var SelectOption = (_a) => {
4587
4763
  "onRemove",
4588
4764
  "disabled"
4589
4765
  ]);
4590
- const ref = (0, import_react33.useRef)(null);
4766
+ const ref = (0, import_react34.useRef)(null);
4591
4767
  const { preventDefault, attachPreventDefault } = usePreventDefault_default();
4592
4768
  const {
4593
4769
  closeMenuOnSelect,
@@ -4605,7 +4781,7 @@ var SelectOption = (_a) => {
4605
4781
  } = useSelect();
4606
4782
  const selected = isSelected(value);
4607
4783
  const focused = !isNil_default(focusedOption) && isEqual_default(focusedOption == null ? void 0 : focusedOption.value, value);
4608
- (0, import_react33.useEffect)(() => {
4784
+ (0, import_react34.useEffect)(() => {
4609
4785
  if (!ref.current || !menuScrollContainerRef.current) return;
4610
4786
  if ((focusedOption == null ? void 0 : focusedOption.focusType) !== "mouse" && focused) {
4611
4787
  const scrollContainer = menuScrollContainerRef.current;
@@ -4670,7 +4846,7 @@ var SelectOption = (_a) => {
4670
4846
  }
4671
4847
  return children;
4672
4848
  };
4673
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
4849
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
4674
4850
  "div",
4675
4851
  __spreadProps(__spreadValues({
4676
4852
  tabIndex: -1,
@@ -4690,8 +4866,8 @@ var SelectOption = (_a) => {
4690
4866
  },
4691
4867
  onClick: disabled ? void 0 : handleOnClick,
4692
4868
  children: [
4693
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Content2, {}),
4694
- !!selected && !hideCheckIcon && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "GeckoUI-icon__check GeckoUISelectOption__check-icon" })
4869
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Content2, {}),
4870
+ !!selected && !hideCheckIcon && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "GeckoUI-icon__check GeckoUISelectOption__check-icon" })
4695
4871
  ]
4696
4872
  })
4697
4873
  );
@@ -4735,7 +4911,7 @@ var SelectConsumer = ({ render }) => {
4735
4911
  SelectConsumer.displayName = "SelectConsumer";
4736
4912
 
4737
4913
  // src/components/RHF/RHFSelect/RHFSelect.tsx
4738
- var import_jsx_runtime49 = require("react/jsx-runtime");
4914
+ var import_jsx_runtime51 = require("react/jsx-runtime");
4739
4915
  var RHFSelect = (_a) => {
4740
4916
  var _b = _a, {
4741
4917
  name,
@@ -4750,14 +4926,14 @@ var RHFSelect = (_a) => {
4750
4926
  "className",
4751
4927
  "wrapperClassName"
4752
4928
  ]);
4753
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4929
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4754
4930
  RHFController_default,
4755
4931
  {
4756
4932
  name,
4757
4933
  control,
4758
4934
  rules,
4759
4935
  render: ({ field: { ref, value, onChange }, fieldState: { error } }) => {
4760
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4936
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
4761
4937
  Select_default,
4762
4938
  __spreadProps(__spreadValues({
4763
4939
  inputRef: ref,
@@ -4784,7 +4960,7 @@ RHFSelect.displayName = "RHFSelect";
4784
4960
  var RHFSelect_default = RHFSelect;
4785
4961
 
4786
4962
  // src/components/Alert/Alert.tsx
4787
- var import_jsx_runtime50 = require("react/jsx-runtime");
4963
+ var import_jsx_runtime52 = require("react/jsx-runtime");
4788
4964
  var Alert = (props) => {
4789
4965
  const {
4790
4966
  variant = "default",
@@ -4796,7 +4972,7 @@ var Alert = (props) => {
4796
4972
  icon,
4797
4973
  iconClassName
4798
4974
  } = props;
4799
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
4975
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
4800
4976
  "div",
4801
4977
  {
4802
4978
  className: classNames(
@@ -4806,8 +4982,8 @@ var Alert = (props) => {
4806
4982
  className
4807
4983
  ),
4808
4984
  children: [
4809
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "GeckoUIAlert__body", children: [
4810
- icon ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DynamicComponentRenderer_default, { component: icon }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
4985
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "GeckoUIAlert__body", children: [
4986
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DynamicComponentRenderer_default, { component: icon }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
4811
4987
  "div",
4812
4988
  {
4813
4989
  className: classNames(
@@ -4817,10 +4993,10 @@ var Alert = (props) => {
4817
4993
  )
4818
4994
  }
4819
4995
  ),
4820
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DynamicComponentRenderer_default, { component: title, className: "GeckoUIAlert__title" }),
4821
- Boolean(onRemove) && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("button", { className: "GeckoUIAlert__remove-button", onClick: onRemove, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "GeckoUIAlert__remove-button__icon" }) })
4996
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DynamicComponentRenderer_default, { component: title, className: "GeckoUIAlert__title" }),
4997
+ Boolean(onRemove) && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("button", { className: "GeckoUIAlert__remove-button", onClick: onRemove, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "GeckoUIAlert__remove-button__icon" }) })
4822
4998
  ] }),
4823
- description ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "GeckoUIAlert__description", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DynamicComponentRenderer_default, { component: description }) }) : null
4999
+ description ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "GeckoUIAlert__description", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DynamicComponentRenderer_default, { component: description }) }) : null
4824
5000
  ]
4825
5001
  }
4826
5002
  );
@@ -4828,7 +5004,7 @@ var Alert = (props) => {
4828
5004
  var Alert_default = Alert;
4829
5005
 
4830
5006
  // src/components/Pagination/Pagination.tsx
4831
- var import_jsx_runtime51 = require("react/jsx-runtime");
5007
+ var import_jsx_runtime53 = require("react/jsx-runtime");
4832
5008
  var Pagination = ({ currentPage, totalPages, onChange, className }) => {
4833
5009
  if (totalPages <= 1) return null;
4834
5010
  const getPages = () => {
@@ -4862,8 +5038,8 @@ var Pagination = ({ currentPage, totalPages, onChange, className }) => {
4862
5038
  return pages2;
4863
5039
  };
4864
5040
  const pages = getPages();
4865
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: classNames("GeckoUIPagination", className), children: [
4866
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5041
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: classNames("GeckoUIPagination", className), children: [
5042
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4867
5043
  "button",
4868
5044
  {
4869
5045
  className: "GeckoUIPagination__arrow",
@@ -4872,15 +5048,15 @@ var Pagination = ({ currentPage, totalPages, onChange, className }) => {
4872
5048
  onChange(currentPage - 1);
4873
5049
  },
4874
5050
  type: "button",
4875
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "GeckoUIPagination__arrow__icon GeckoUIPagination__arrow__icon--previous" })
5051
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "GeckoUIPagination__arrow__icon GeckoUIPagination__arrow__icon--previous" })
4876
5052
  }
4877
5053
  ),
4878
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "GeckoUIPagination__page-count", children: [
4879
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: currentPage }),
4880
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: "/" }),
4881
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: totalPages })
5054
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "GeckoUIPagination__page-count", children: [
5055
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: currentPage }),
5056
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: "/" }),
5057
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: totalPages })
4882
5058
  ] }),
4883
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "GeckoUIPagination__page-buttons", children: pages.map((page, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5059
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "GeckoUIPagination__page-buttons", children: pages.map((page, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4884
5060
  "button",
4885
5061
  {
4886
5062
  className: classNames(
@@ -4895,7 +5071,7 @@ var Pagination = ({ currentPage, totalPages, onChange, className }) => {
4895
5071
  },
4896
5072
  index
4897
5073
  )) }),
4898
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5074
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
4899
5075
  "button",
4900
5076
  {
4901
5077
  className: "GeckoUIPagination__arrow",
@@ -4904,7 +5080,7 @@ var Pagination = ({ currentPage, totalPages, onChange, className }) => {
4904
5080
  onChange(currentPage + 1);
4905
5081
  },
4906
5082
  type: "button",
4907
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "GeckoUIPagination__arrow__icon GeckoUIPagination__arrow__icon--next" })
5083
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "GeckoUIPagination__arrow__icon GeckoUIPagination__arrow__icon--next" })
4908
5084
  }
4909
5085
  )
4910
5086
  ] });
@@ -4912,21 +5088,21 @@ var Pagination = ({ currentPage, totalPages, onChange, className }) => {
4912
5088
  var Pagination_default = Pagination;
4913
5089
 
4914
5090
  // src/components/ConfirmDialog/ConfirmDialog.tsx
4915
- var import_react35 = require("react");
5091
+ var import_react36 = require("react");
4916
5092
 
4917
5093
  // src/components/Dialog/Dialog.tsx
4918
- var import_react34 = require("react");
5094
+ var import_react35 = require("react");
4919
5095
  var import_client = require("react-dom/client");
4920
5096
 
4921
5097
  // src/components/Dialog/DialogContainer.tsx
4922
- var import_jsx_runtime52 = require("react/jsx-runtime");
5098
+ var import_jsx_runtime54 = require("react/jsx-runtime");
4923
5099
  var DIALOG_CONTAINER_ID = "GeckoUI-dialog-container";
4924
5100
  function DialogContainer() {
4925
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { id: DIALOG_CONTAINER_ID });
5101
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { id: DIALOG_CONTAINER_ID });
4926
5102
  }
4927
5103
 
4928
5104
  // src/components/Dialog/Dialog.tsx
4929
- var import_jsx_runtime53 = require("react/jsx-runtime");
5105
+ var import_jsx_runtime55 = require("react/jsx-runtime");
4930
5106
  var root = null;
4931
5107
  var dismissCallback = null;
4932
5108
  var dismiss = () => {
@@ -4946,7 +5122,7 @@ var show = (options) => {
4946
5122
  }
4947
5123
  root = (0, import_client.createRoot)(el);
4948
5124
  (_a = document.activeElement) == null ? void 0 : _a.blur();
4949
- root.render(/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DialogContent, __spreadValues({}, options)));
5125
+ root.render(/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(DialogContent, __spreadValues({}, options)));
4950
5126
  };
4951
5127
  function DialogContent(_a) {
4952
5128
  var _b = _a, {
@@ -4966,8 +5142,8 @@ function DialogContent(_a) {
4966
5142
  }
4967
5143
  return acc;
4968
5144
  }, {});
4969
- const ref = (0, import_react34.useRef)(null);
4970
- const [animationState, setAnimationState] = (0, import_react34.useState)("entering");
5145
+ const ref = (0, import_react35.useRef)(null);
5146
+ const [animationState, setAnimationState] = (0, import_react35.useState)("entering");
4971
5147
  const handleDismiss = () => {
4972
5148
  setAnimationState("closing");
4973
5149
  setTimeout(() => {
@@ -4978,7 +5154,7 @@ function DialogContent(_a) {
4978
5154
  }
4979
5155
  }, 300);
4980
5156
  };
4981
- (0, import_react34.useEffect)(() => {
5157
+ (0, import_react35.useEffect)(() => {
4982
5158
  dismissCallback = handleDismiss;
4983
5159
  requestAnimationFrame(() => {
4984
5160
  requestAnimationFrame(() => {
@@ -4991,13 +5167,13 @@ function DialogContent(_a) {
4991
5167
  }, []);
4992
5168
  useEscListener_default(dismissOnEsc ? dismiss : void 0);
4993
5169
  useClickOutside_default(dismissOnOutsideClick ? dismiss : void 0, [ref]);
4994
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", __spreadProps(__spreadValues({ className: "GeckoUIDialog", "data-state": animationState }, dataAttributes), { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "GeckoUIDialog__backdrop", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { ref, className: classNames("GeckoUIDialog__dialog", className), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DynamicComponentRenderer_default, { component: content, dismiss }) }) }) }));
5170
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", __spreadProps(__spreadValues({ className: "GeckoUIDialog", "data-state": animationState }, dataAttributes), { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "GeckoUIDialog__backdrop", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { ref, className: classNames("GeckoUIDialog__dialog", className), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(DynamicComponentRenderer_default, { component: content, dismiss }) }) }) }));
4995
5171
  }
4996
5172
  var Dialog = { show, dismiss };
4997
5173
  var Dialog_default = Dialog;
4998
5174
 
4999
5175
  // src/components/ConfirmDialog/ConfirmDialog.tsx
5000
- var import_jsx_runtime54 = require("react/jsx-runtime");
5176
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5001
5177
  function ConfirmDialogContent({
5002
5178
  confirmButtonLabel = "Ok",
5003
5179
  cancelButtonLabel = "Cancel",
@@ -5009,10 +5185,10 @@ function ConfirmDialogContent({
5009
5185
  onConfirm,
5010
5186
  onCancel
5011
5187
  }) {
5012
- const [cancelLoading, setCancelLoading] = (0, import_react35.useState)(false);
5013
- const [confirmLoading, setConfirmLoading] = (0, import_react35.useState)(false);
5188
+ const [cancelLoading, setCancelLoading] = (0, import_react36.useState)(false);
5189
+ const [confirmLoading, setConfirmLoading] = (0, import_react36.useState)(false);
5014
5190
  const { preventDefault, attachPreventDefault } = usePreventDefault_default();
5015
- const handleConfirm = (0, import_react35.useCallback)(() => __async(null, null, function* () {
5191
+ const handleConfirm = (0, import_react36.useCallback)(() => __async(null, null, function* () {
5016
5192
  const isAsync = isAsyncFn(onConfirm);
5017
5193
  if (isAsync) {
5018
5194
  setConfirmLoading(true);
@@ -5030,7 +5206,7 @@ function ConfirmDialogContent({
5030
5206
  setCancelLoading(false);
5031
5207
  attachPreventDefault(dismiss2);
5032
5208
  };
5033
- (0, import_react35.useEffect)(() => {
5209
+ (0, import_react36.useEffect)(() => {
5034
5210
  const onKeyDown = (e) => {
5035
5211
  const el = document.activeElement;
5036
5212
  if (e.key === "Enter") {
@@ -5047,11 +5223,11 @@ function ConfirmDialogContent({
5047
5223
  return document.removeEventListener("keydown", onKeyDown);
5048
5224
  };
5049
5225
  }, [handleConfirm]);
5050
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
5051
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: classNames("GeckoUIConfirmDialog__title", titleClassName), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(DynamicComponentRenderer_default, { component: title }) }),
5052
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: classNames("GeckoUIConfirmDialog__content", contentClassName), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(DynamicComponentRenderer_default, { component: content, dismiss: dismiss2 }) }),
5053
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "GeckoUIConfirmDialog__actions", children: [
5054
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5226
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
5227
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: classNames("GeckoUIConfirmDialog__title", titleClassName), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DynamicComponentRenderer_default, { component: title }) }),
5228
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: classNames("GeckoUIConfirmDialog__content", contentClassName), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DynamicComponentRenderer_default, { component: content, dismiss: dismiss2 }) }),
5229
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "GeckoUIConfirmDialog__actions", children: [
5230
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5055
5231
  LoadingButton_default,
5056
5232
  {
5057
5233
  className: classNames("GeckoUIConfirmDialog__cancel-button"),
@@ -5063,7 +5239,7 @@ function ConfirmDialogContent({
5063
5239
  children: cancelButtonLabel
5064
5240
  }
5065
5241
  ),
5066
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5242
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5067
5243
  LoadingButton_default,
5068
5244
  {
5069
5245
  className: classNames("GeckoUIConfirmDialog__confirm-button"),
@@ -5083,7 +5259,7 @@ var show2 = (options) => {
5083
5259
  dismissOnOutsideClick: false
5084
5260
  }, options), {
5085
5261
  className: classNames("GeckoUIConfirmDialog__dialog", options.className),
5086
- content: ({ dismiss: dismiss2 }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ConfirmDialogContent, __spreadProps(__spreadValues({}, options), { dismiss: dismiss2 }))
5262
+ content: ({ dismiss: dismiss2 }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ConfirmDialogContent, __spreadProps(__spreadValues({}, options), { dismiss: dismiss2 }))
5087
5263
  }));
5088
5264
  };
5089
5265
  var ConfirmDialog = { show: show2, dismiss: Dialog_default.dismiss };
@@ -5094,28 +5270,28 @@ var import_sonner = require("sonner");
5094
5270
 
5095
5271
  // src/components/GeckoUIPortal/GeckoUIPortal.tsx
5096
5272
  var import_mermaid2 = __toESM(require("mermaid"));
5097
- var import_react36 = require("react");
5273
+ var import_react37 = require("react");
5098
5274
  var import_sonner2 = require("sonner");
5099
5275
 
5100
5276
  // src/components/Drawer/DrawerContainer.tsx
5101
- var import_jsx_runtime55 = require("react/jsx-runtime");
5277
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5102
5278
  var DRAWER_CONTAINER_ID = "GeckoUI-drawer-container";
5103
5279
  function DrawerContainer() {
5104
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { id: DRAWER_CONTAINER_ID });
5280
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { id: DRAWER_CONTAINER_ID });
5105
5281
  }
5106
5282
 
5107
5283
  // src/components/GeckoUIPortal/GeckoUIPortal.tsx
5108
- var import_jsx_runtime56 = require("react/jsx-runtime");
5284
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5109
5285
  var GeckoUIPortal = ({ toastOptions = {}, mermaidConfig = {} }) => {
5110
- (0, import_react36.useEffect)(() => {
5286
+ (0, import_react37.useEffect)(() => {
5111
5287
  import_mermaid2.default.initialize(__spreadValues({
5112
5288
  startOnLoad: false,
5113
5289
  suppressErrorRendering: true
5114
5290
  }, mermaidConfig));
5115
5291
  }, [mermaidConfig]);
5116
5292
  const _a = toastOptions, { style } = _a, restToastOptions = __objRest(_a, ["style"]);
5117
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
5118
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5293
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
5294
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5119
5295
  import_sonner2.Toaster,
5120
5296
  __spreadValues({
5121
5297
  position: "bottom-right",
@@ -5126,16 +5302,16 @@ var GeckoUIPortal = ({ toastOptions = {}, mermaidConfig = {} }) => {
5126
5302
  }, style)
5127
5303
  }, restToastOptions)
5128
5304
  ),
5129
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DrawerContainer, {}),
5130
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DialogContainer, {})
5305
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DrawerContainer, {}),
5306
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogContainer, {})
5131
5307
  ] });
5132
5308
  };
5133
5309
  var GeckoUIPortal_default = GeckoUIPortal;
5134
5310
 
5135
5311
  // src/components/Drawer/Drawer.tsx
5136
- var import_react37 = require("react");
5312
+ var import_react38 = require("react");
5137
5313
  var import_client2 = require("react-dom/client");
5138
- var import_jsx_runtime57 = require("react/jsx-runtime");
5314
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5139
5315
  function getDrawerClasses(placement, open, className) {
5140
5316
  const baseClass = "GeckoUIDrawer__drawer";
5141
5317
  const placementClass = `${baseClass}--${placement}`;
@@ -5163,7 +5339,7 @@ function Drawer({
5163
5339
  children,
5164
5340
  dismissOnEscape = true
5165
5341
  }) {
5166
- const drawerRootRef = (0, import_react37.useRef)(null);
5342
+ const drawerRootRef = (0, import_react38.useRef)(null);
5167
5343
  const handleDismiss = () => {
5168
5344
  if (open) handleClose == null ? void 0 : handleClose();
5169
5345
  };
@@ -5172,8 +5348,8 @@ function Drawer({
5172
5348
  handleDismiss();
5173
5349
  }, [drawerRootRef]);
5174
5350
  useEscListener_default(dismissOnEscape ? handleDismiss : void 0);
5175
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "GeckoUIDrawer", ref: drawerRootRef, role: "dialog", children: [
5176
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5351
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "GeckoUIDrawer", ref: drawerRootRef, role: "dialog", children: [
5352
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5177
5353
  "div",
5178
5354
  {
5179
5355
  className: classNames(
@@ -5188,7 +5364,7 @@ function Drawer({
5188
5364
  role: "presentation"
5189
5365
  }
5190
5366
  ),
5191
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: getDrawerClasses(placement, open, className), children })
5367
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: getDrawerClasses(placement, open, className), children })
5192
5368
  ] });
5193
5369
  }
5194
5370
  var root2 = null;
@@ -5199,7 +5375,7 @@ Drawer.show = (node, options = {}) => {
5199
5375
  }
5200
5376
  root2 = (0, import_client2.createRoot)(el);
5201
5377
  root2.render(
5202
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Drawer, __spreadProps(__spreadValues({}, options), { open: true, children: node }))
5378
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Drawer, __spreadProps(__spreadValues({}, options), { open: true, children: node }))
5203
5379
  );
5204
5380
  };
5205
5381
  Drawer.dismiss = () => {
@@ -5212,13 +5388,13 @@ Drawer.dismiss = () => {
5212
5388
  var Drawer_default = Drawer;
5213
5389
 
5214
5390
  // src/components/Menu/Menu.tsx
5215
- var import_react38 = require("@headlessui/react");
5216
- var import_jsx_runtime58 = require("react/jsx-runtime");
5217
- var Menu = import_react38.Menu;
5391
+ var import_react39 = require("@headlessui/react");
5392
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5393
+ var Menu = import_react39.Menu;
5218
5394
  var MenuButton = (_a) => {
5219
5395
  var _b = _a, { as } = _b, rest = __objRest(_b, ["as"]);
5220
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5221
- import_react38.MenuButton,
5396
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5397
+ import_react39.MenuButton,
5222
5398
  __spreadProps(__spreadValues({
5223
5399
  as: as != null ? as : "button"
5224
5400
  }, rest), {
@@ -5234,8 +5410,8 @@ var MenuButton = (_a) => {
5234
5410
  };
5235
5411
  var MenuItems = (_a) => {
5236
5412
  var _b = _a, { as } = _b, rest = __objRest(_b, ["as"]);
5237
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5238
- import_react38.MenuItems,
5413
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5414
+ import_react39.MenuItems,
5239
5415
  __spreadProps(__spreadValues({
5240
5416
  as: as != null ? as : "div"
5241
5417
  }, rest), {
@@ -5251,8 +5427,8 @@ var MenuItems = (_a) => {
5251
5427
  };
5252
5428
  var MenuItem = (_a) => {
5253
5429
  var _b = _a, { children, as } = _b, rest = __objRest(_b, ["children", "as"]);
5254
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5255
- import_react38.MenuItem,
5430
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5431
+ import_react39.MenuItem,
5256
5432
  __spreadProps(__spreadValues({}, rest), {
5257
5433
  className: (args) => {
5258
5434
  const className = rest.className;
@@ -5267,12 +5443,12 @@ var MenuItem = (_a) => {
5267
5443
  })
5268
5444
  );
5269
5445
  };
5270
- var MenuHeading = import_react38.MenuHeading;
5271
- var MenuSection = import_react38.MenuSection;
5272
- var MenuSeparator = import_react38.MenuSeparator;
5446
+ var MenuHeading = import_react39.MenuHeading;
5447
+ var MenuSection = import_react39.MenuSection;
5448
+ var MenuSeparator = import_react39.MenuSeparator;
5273
5449
 
5274
5450
  // src/components/Dropdown/Dropdown.tsx
5275
- var import_jsx_runtime59 = require("react/jsx-runtime");
5451
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5276
5452
  function Dropdown(_a) {
5277
5453
  var _b = _a, {
5278
5454
  items,
@@ -5299,8 +5475,8 @@ function Dropdown(_a) {
5299
5475
  }
5300
5476
  return acc;
5301
5477
  }, {});
5302
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Menu, { children: [
5303
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5478
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Menu, { children: [
5479
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5304
5480
  MenuButton,
5305
5481
  __spreadProps(__spreadValues({}, dataAttributes), {
5306
5482
  onClick: (e) => {
@@ -5323,24 +5499,24 @@ function Dropdown(_a) {
5323
5499
  className: classNames(`GeckoUIDropdown__button`, className),
5324
5500
  children: [
5325
5501
  children,
5326
- !hideArrowIcon && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: classNames("GeckoUIDropdown__icon", iconClassName) })
5502
+ !hideArrowIcon && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: classNames("GeckoUIDropdown__icon", iconClassName) })
5327
5503
  ]
5328
5504
  })
5329
5505
  ),
5330
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5506
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5331
5507
  MenuItems,
5332
5508
  {
5333
5509
  className: classNames("GeckoUIDropdown__menu", menuClassName),
5334
5510
  anchor: anchor || "bottom start",
5335
5511
  children: () => {
5336
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: items.map((item, index) => {
5512
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_jsx_runtime61.Fragment, { children: items.map((item, index) => {
5337
5513
  const label = createLabel_default(item);
5338
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5514
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5339
5515
  MenuItem,
5340
5516
  __spreadProps(__spreadValues({}, dataAttributes), {
5341
5517
  className: classNames("GeckoUIDropdown__menu-item", item.className),
5342
5518
  onClick: item.onClick,
5343
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DynamicComponentRenderer_default, { component: label })
5519
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DynamicComponentRenderer_default, { component: label })
5344
5520
  }),
5345
5521
  index
5346
5522
  );
@@ -5354,7 +5530,7 @@ Dropdown.displayName = "Dropdown";
5354
5530
  var Dropdown_default = Dropdown;
5355
5531
 
5356
5532
  // src/components/MermaidDiagram/MermaidDiagram.tsx
5357
- var import_jsx_runtime60 = require("react/jsx-runtime");
5533
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5358
5534
  var MermaidDiagram = (_a) => {
5359
5535
  var _b = _a, {
5360
5536
  children,
@@ -5370,20 +5546,20 @@ var MermaidDiagram = (_a) => {
5370
5546
  }
5371
5547
  const { loading, error: mermaidError, Diagram } = useMermaidDiagram_default(children);
5372
5548
  if (loading) {
5373
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DynamicComponentRenderer_default, { component: placeholder });
5549
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DynamicComponentRenderer_default, { component: placeholder });
5374
5550
  }
5375
5551
  if (mermaidError) {
5376
- if (!renderError) return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(InputError_default, { children: mermaidError });
5377
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DynamicComponentRenderer_default, { component: renderError, message: mermaidError });
5552
+ if (!renderError) return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(InputError_default, { children: mermaidError });
5553
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DynamicComponentRenderer_default, { component: renderError, message: mermaidError });
5378
5554
  }
5379
5555
  if (!Diagram) return null;
5380
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Diagram, __spreadValues({}, rest));
5556
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Diagram, __spreadValues({}, rest));
5381
5557
  };
5382
5558
  var MermaidDiagram_default = MermaidDiagram;
5383
5559
 
5384
5560
  // src/components/Markdown/Markdown.tsx
5385
- var import_react39 = require("react");
5386
- var import_jsx_runtime61 = require("react/jsx-runtime");
5561
+ var import_react40 = require("react");
5562
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5387
5563
  function Markdown(_a) {
5388
5564
  var _b = _a, {
5389
5565
  children,
@@ -5404,13 +5580,13 @@ function Markdown(_a) {
5404
5580
  ]);
5405
5581
  const { loading, error, content = "" } = useMarkdown_default(children, { async, sanitize });
5406
5582
  if (loading) {
5407
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DynamicComponentRenderer_default, { component: renderPlaceholder });
5583
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(DynamicComponentRenderer_default, { component: renderPlaceholder });
5408
5584
  }
5409
5585
  if (error) {
5410
- if (!renderError) return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(InputError_default, { children: error });
5411
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DynamicComponentRenderer_default, { component: renderError, message: error });
5586
+ if (!renderError) return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(InputError_default, { children: error });
5587
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(DynamicComponentRenderer_default, { component: renderError, message: error });
5412
5588
  }
5413
- return (0, import_react39.createElement)(as, __spreadProps(__spreadValues({}, props), {
5589
+ return (0, import_react40.createElement)(as, __spreadProps(__spreadValues({}, props), {
5414
5590
  dangerouslySetInnerHTML: { __html: content },
5415
5591
  className: classNames("GeckoUIMarkdown", className)
5416
5592
  }));