@esic-lab/data-core-ui 0.0.26 → 0.0.28

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
@@ -311,28 +311,6 @@ var require_dayjs_min = __commonJS({
311
311
  }
312
312
  });
313
313
 
314
- // node_modules/dayjs/plugin/buddhistEra.js
315
- var require_buddhistEra = __commonJS({
316
- "node_modules/dayjs/plugin/buddhistEra.js"(exports2, module2) {
317
- "use strict";
318
- !(function(t, e) {
319
- "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_buddhistEra = e();
320
- })(exports2, (function() {
321
- "use strict";
322
- return function(t, e) {
323
- var n = e.prototype, i = n.format;
324
- n.format = function(t2) {
325
- var e2 = this, n2 = (t2 || "YYYY-MM-DDTHH:mm:ssZ").replace(/(\[[^\]]+])|BBBB|BB/g, (function(t3, n3) {
326
- var i2, o = String(e2.$y + 543), f = "BB" === t3 ? [o.slice(-2), 2] : [o, 4];
327
- return n3 || (i2 = e2.$utils()).s.apply(i2, f.concat(["0"]));
328
- }));
329
- return i.bind(this)(n2);
330
- };
331
- };
332
- }));
333
- }
334
- });
335
-
336
314
  // node_modules/dayjs/locale/th.js
337
315
  var require_th = __commonJS({
338
316
  "node_modules/dayjs/locale/th.js"(exports2, module2) {
@@ -352,6 +330,134 @@ var require_th = __commonJS({
352
330
  }
353
331
  });
354
332
 
333
+ // node_modules/dayjs/plugin/customParseFormat.js
334
+ var require_customParseFormat = __commonJS({
335
+ "node_modules/dayjs/plugin/customParseFormat.js"(exports2, module2) {
336
+ "use strict";
337
+ !(function(e, t) {
338
+ "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
339
+ })(exports2, (function() {
340
+ "use strict";
341
+ var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e2) {
342
+ return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
343
+ };
344
+ var f = function(e2) {
345
+ return function(t2) {
346
+ this[e2] = +t2;
347
+ };
348
+ }, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
349
+ (this.zone || (this.zone = {})).offset = (function(e3) {
350
+ if (!e3) return 0;
351
+ if ("Z" === e3) return 0;
352
+ var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
353
+ return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
354
+ })(e2);
355
+ }], u = function(e2) {
356
+ var t2 = s[e2];
357
+ return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
358
+ }, d = function(e2, t2) {
359
+ var n2, r2 = s.meridiem;
360
+ if (r2) {
361
+ for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r2(i2, 0, t2)) > -1) {
362
+ n2 = i2 > 12;
363
+ break;
364
+ }
365
+ } else n2 = e2 === (t2 ? "pm" : "PM");
366
+ return n2;
367
+ }, c = { A: [o, function(e2) {
368
+ this.afternoon = d(e2, false);
369
+ }], a: [o, function(e2) {
370
+ this.afternoon = d(e2, true);
371
+ }], Q: [n, function(e2) {
372
+ this.month = 3 * (e2 - 1) + 1;
373
+ }], S: [n, function(e2) {
374
+ this.milliseconds = 100 * +e2;
375
+ }], SS: [r, function(e2) {
376
+ this.milliseconds = 10 * +e2;
377
+ }], SSS: [/\d{3}/, function(e2) {
378
+ this.milliseconds = +e2;
379
+ }], s: [i, f("seconds")], ss: [i, f("seconds")], m: [i, f("minutes")], mm: [i, f("minutes")], H: [i, f("hours")], h: [i, f("hours")], HH: [i, f("hours")], hh: [i, f("hours")], D: [i, f("day")], DD: [r, f("day")], Do: [o, function(e2) {
380
+ var t2 = s.ordinal, n2 = e2.match(/\d+/);
381
+ if (this.day = n2[0], t2) for (var r2 = 1; r2 <= 31; r2 += 1) t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
382
+ }], w: [i, f("week")], ww: [r, f("week")], M: [i, f("month")], MM: [r, f("month")], MMM: [o, function(e2) {
383
+ var t2 = u("months"), n2 = (u("monthsShort") || t2.map((function(e3) {
384
+ return e3.slice(0, 3);
385
+ }))).indexOf(e2) + 1;
386
+ if (n2 < 1) throw new Error();
387
+ this.month = n2 % 12 || n2;
388
+ }], MMMM: [o, function(e2) {
389
+ var t2 = u("months").indexOf(e2) + 1;
390
+ if (t2 < 1) throw new Error();
391
+ this.month = t2 % 12 || t2;
392
+ }], Y: [/[+-]?\d+/, f("year")], YY: [r, function(e2) {
393
+ this.year = a(e2);
394
+ }], YYYY: [/\d{4}/, f("year")], Z: h, ZZ: h };
395
+ function l(n2) {
396
+ var r2, i2;
397
+ r2 = n2, i2 = s && s.formats;
398
+ for (var o2 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t2, n3, r3) {
399
+ var o3 = r3 && r3.toUpperCase();
400
+ return n3 || i2[r3] || e[r3] || i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e2, t3, n4) {
401
+ return t3 || n4.slice(1);
402
+ }));
403
+ }))).match(t), a2 = o2.length, f2 = 0; f2 < a2; f2 += 1) {
404
+ var h2 = o2[f2], u2 = c[h2], d2 = u2 && u2[0], l2 = u2 && u2[1];
405
+ o2[f2] = l2 ? { regex: d2, parser: l2 } : h2.replace(/^\[|\]$/g, "");
406
+ }
407
+ return function(e2) {
408
+ for (var t2 = {}, n3 = 0, r3 = 0; n3 < a2; n3 += 1) {
409
+ var i3 = o2[n3];
410
+ if ("string" == typeof i3) r3 += i3.length;
411
+ else {
412
+ var s2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r3), u3 = s2.exec(h3)[0];
413
+ f3.call(t2, u3), e2 = e2.replace(u3, "");
414
+ }
415
+ }
416
+ return (function(e3) {
417
+ var t3 = e3.afternoon;
418
+ if (void 0 !== t3) {
419
+ var n4 = e3.hours;
420
+ t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
421
+ }
422
+ })(t2), t2;
423
+ };
424
+ }
425
+ return function(e2, t2, n2) {
426
+ n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a = e2.parseTwoDigitYear);
427
+ var r2 = t2.prototype, i2 = r2.parse;
428
+ r2.parse = function(e3) {
429
+ var t3 = e3.date, r3 = e3.utc, o2 = e3.args;
430
+ this.$u = r3;
431
+ var a2 = o2[1];
432
+ if ("string" == typeof a2) {
433
+ var f2 = true === o2[2], h2 = true === o2[3], u2 = f2 || h2, d2 = o2[2];
434
+ h2 && (d2 = o2[2]), s = this.$locale(), !f2 && d2 && (s = n2.Ls[d2]), this.$d = (function(e4, t4, n3, r4) {
435
+ try {
436
+ if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
437
+ var i3 = l(t4)(e4), o3 = i3.year, s2 = i3.month, a3 = i3.day, f3 = i3.hours, h3 = i3.minutes, u3 = i3.seconds, d3 = i3.milliseconds, c3 = i3.zone, m2 = i3.week, M2 = /* @__PURE__ */ new Date(), Y = a3 || (o3 || s2 ? 1 : M2.getDate()), p = o3 || M2.getFullYear(), v = 0;
438
+ o3 && !s2 || (v = s2 > 0 ? s2 - 1 : M2.getMonth());
439
+ var D, w = f3 || 0, g = h3 || 0, y = u3 || 0, L = d3 || 0;
440
+ return c3 ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c3.offset * 1e3)) : n3 ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m2 && (D = r4(D).week(m2).toDate()), D);
441
+ } catch (e5) {
442
+ return /* @__PURE__ */ new Date("");
443
+ }
444
+ })(t3, a2, r3, n2), this.init(), d2 && true !== d2 && (this.$L = this.locale(d2).$L), u2 && t3 != this.format(a2) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
445
+ } else if (a2 instanceof Array) for (var c2 = a2.length, m = 1; m <= c2; m += 1) {
446
+ o2[1] = a2[m - 1];
447
+ var M = n2.apply(this, o2);
448
+ if (M.isValid()) {
449
+ this.$d = M.$d, this.$L = M.$L, this.init();
450
+ break;
451
+ }
452
+ m === c2 && (this.$d = /* @__PURE__ */ new Date(""));
453
+ }
454
+ else i2.call(this, e3);
455
+ };
456
+ };
457
+ }));
458
+ }
459
+ });
460
+
355
461
  // src/index.ts
356
462
  var index_exports = {};
357
463
  __export(index_exports, {
@@ -369,7 +475,6 @@ __export(index_exports, {
369
475
  GhostButton: () => GhostButton,
370
476
  HeadingPage: () => HeadingPage,
371
477
  InputField: () => InputField,
372
- InputFieldNumber: () => InputFieldNumber,
373
478
  KpiSection: () => KpiSection,
374
479
  Loader: () => Loader,
375
480
  MenuNavBar: () => MenuNavBar,
@@ -1022,13 +1127,13 @@ function TextInput({
1022
1127
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
1023
1128
  label && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("p", { className: "body-1 mb-[8px]", children: [
1024
1129
  label,
1025
- required && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-red-500", children: "\xA0*" })
1130
+ required && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-red-600", children: "\xA0*" })
1026
1131
  ] }),
1027
1132
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1028
1133
  "div",
1029
1134
  {
1030
1135
  className: `border-[1px] rounded-[8px] w-full h-[40px] flex justify-center items-center
1031
- ${disabled ? "bg-gray-100 text-gray-400" : error ? "border-red-500" : ""}`,
1136
+ ${disabled ? "bg-gray-100 text-gray-400" : error ? "border-red-600" : ""}`,
1032
1137
  children: [
1033
1138
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1034
1139
  "input",
@@ -1047,19 +1152,20 @@ function TextInput({
1047
1152
  ]
1048
1153
  }
1049
1154
  ),
1050
- error && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-red-500 body-1", children: error })
1155
+ error && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-red-600 body-1", children: error })
1051
1156
  ] });
1052
1157
  }
1053
1158
 
1054
- // src/Input/InputField/InputField.tsx
1159
+ // src/InputField/InputField.tsx
1055
1160
  var import_antd2 = require("antd");
1056
1161
  var import_jsx_runtime18 = require("react/jsx-runtime");
1057
1162
  function InputField({
1058
1163
  value,
1059
1164
  onChange,
1060
1165
  placeholder = "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
1061
- label,
1166
+ title,
1062
1167
  required,
1168
+ bottomText,
1063
1169
  disabled,
1064
1170
  error,
1065
1171
  addonBefore,
@@ -1078,7 +1184,7 @@ function InputField({
1078
1184
  },
1079
1185
  children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "container-input", children: [
1080
1186
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
1081
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "body-1", children: label }),
1187
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "body-1", children: title }),
1082
1188
  " ",
1083
1189
  required && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-red-500", children: "*" })
1084
1190
  ] }),
@@ -1097,7 +1203,11 @@ function InputField({
1097
1203
  onClear
1098
1204
  }
1099
1205
  ),
1100
- error && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-red-500 caption-1", children: error })
1206
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
1207
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
1208
+ " ",
1209
+ error && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
1210
+ ] })
1101
1211
  ] })
1102
1212
  }
1103
1213
  );
@@ -1152,83 +1262,21 @@ function TextAreaInput({
1152
1262
  disabled
1153
1263
  }
1154
1264
  ),
1155
- error && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-red-500 body-1", children: error })
1265
+ error && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-red-600 body-1", children: error })
1156
1266
  ] })
1157
1267
  }
1158
1268
  ) });
1159
1269
  }
1160
1270
 
1161
- // src/Input/InputFieldNumber/InputFieldNumber.tsx
1271
+ // src/ColorPicker/ColorPicker.tsx
1162
1272
  var import_antd4 = require("antd");
1163
1273
  var import_jsx_runtime20 = require("react/jsx-runtime");
1164
- function InputFieldNumber({
1165
- value,
1166
- onChange,
1167
- placeholder = "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
1168
- title,
1169
- required,
1170
- disabled,
1171
- error,
1172
- addonBefore,
1173
- addonAfter,
1174
- defaultValue,
1175
- className,
1176
- max,
1177
- min,
1178
- controls,
1179
- size,
1180
- changeOnWheel,
1181
- formatter,
1182
- parser
1183
- }) {
1184
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1185
- import_antd4.ConfigProvider,
1186
- {
1187
- theme: {
1188
- token: {
1189
- fontFamily: "Kanit"
1190
- }
1191
- },
1192
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "container-input", children: [
1193
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { children: [
1194
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "body-1", children: title }),
1195
- " ",
1196
- required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-red-500", children: "*" })
1197
- ] }),
1198
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1199
- import_antd4.InputNumber,
1200
- {
1201
- value: value ?? void 0,
1202
- onChange: (val) => onChange(val),
1203
- placeholder,
1204
- disabled,
1205
- className: `body-1 w-full ${className ?? ""}`,
1206
- addonBefore,
1207
- addonAfter,
1208
- defaultValue,
1209
- max,
1210
- min,
1211
- controls,
1212
- size,
1213
- changeOnWheel,
1214
- formatter,
1215
- parser
1216
- }
1217
- ),
1218
- error && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-red-500 caption-1", children: error })
1219
- ] })
1220
- }
1221
- );
1222
- }
1223
-
1224
- // src/ColorPicker/ColorPicker.tsx
1225
- var import_antd5 = require("antd");
1226
- var import_jsx_runtime21 = require("react/jsx-runtime");
1227
1274
  function ColorPickerBasic({
1228
1275
  value,
1229
1276
  onChange,
1230
1277
  required,
1231
- label,
1278
+ title,
1279
+ bottomText,
1232
1280
  error,
1233
1281
  disabled,
1234
1282
  allowClear,
@@ -1236,8 +1284,8 @@ function ColorPickerBasic({
1236
1284
  className,
1237
1285
  placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E35"
1238
1286
  }) {
1239
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1240
- import_antd5.ConfigProvider,
1287
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1288
+ import_antd4.ConfigProvider,
1241
1289
  {
1242
1290
  theme: {
1243
1291
  token: {
@@ -1245,14 +1293,14 @@ function ColorPickerBasic({
1245
1293
  fontSize: 16
1246
1294
  }
1247
1295
  },
1248
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "container-input", children: [
1249
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
1250
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "body-1", children: label }),
1296
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "container-input", children: [
1297
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { children: [
1298
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "body-1", children: title }),
1251
1299
  " ",
1252
- required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-red-500", children: "*" })
1300
+ required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-red-500", children: "*" })
1253
1301
  ] }),
1254
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1255
- import_antd5.ColorPicker,
1302
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1303
+ import_antd4.ColorPicker,
1256
1304
  {
1257
1305
  defaultFormat,
1258
1306
  className: `body-1 w-full ${className ?? ""}`,
@@ -1263,9 +1311,9 @@ function ColorPickerBasic({
1263
1311
  showText: (color) => {
1264
1312
  const hex = color.toHexString();
1265
1313
  if (!value) {
1266
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: placeholder });
1314
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: placeholder });
1267
1315
  }
1268
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { children: [
1316
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { children: [
1269
1317
  "(",
1270
1318
  hex,
1271
1319
  ")"
@@ -1274,41 +1322,28 @@ function ColorPickerBasic({
1274
1322
  disabled
1275
1323
  }
1276
1324
  ),
1277
- error && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-red-500 caption-1", children: error })
1325
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { children: [
1326
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
1327
+ " ",
1328
+ error && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
1329
+ ] })
1278
1330
  ] })
1279
1331
  }
1280
1332
  );
1281
1333
  }
1282
1334
 
1283
1335
  // src/DatePicker/DatePickerBasic/DatePickerBasic.tsx
1284
- var import_antd6 = require("antd");
1285
- var import_th_TH2 = __toESM(require("antd/locale/th_TH"));
1336
+ var import_antd5 = require("antd");
1286
1337
  var import_dayjs = __toESM(require_dayjs_min());
1287
- var import_date_fns = require("date-fns");
1288
- var import_buddhistEra = __toESM(require_buddhistEra());
1289
- var import_locale = require("date-fns/locale");
1290
-
1291
- // src/DatePicker/convertToBuddhist.ts
1292
- var import_th_TH = __toESM(require("antd/es/date-picker/locale/th_TH"));
1293
- var buddhistLocale = {
1294
- ...import_th_TH.default,
1295
- lang: {
1296
- ...import_th_TH.default.lang,
1297
- fieldDateFormat: "BBBB-MM-DD",
1298
- fieldDateTimeFormat: "BBBB-MM-DD HH:mm:ss",
1299
- yearFormat: "BBBB",
1300
- cellYearFormat: "BBBB"
1301
- }
1302
- };
1303
-
1304
- // src/DatePicker/DatePickerBasic/DatePickerBasic.tsx
1305
- var import_jsx_runtime22 = require("react/jsx-runtime");
1306
- import_dayjs.default.extend(import_buddhistEra.default);
1338
+ var import_th_TH = __toESM(require("antd/locale/th_TH"));
1339
+ var import_th2 = __toESM(require_th());
1340
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1307
1341
  function DatePickerBasic({
1308
1342
  value,
1309
1343
  onChange,
1310
1344
  required,
1311
- label,
1345
+ title,
1346
+ bottomText,
1312
1347
  error,
1313
1348
  placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48",
1314
1349
  disabled,
@@ -1319,66 +1354,66 @@ function DatePickerBasic({
1319
1354
  className,
1320
1355
  size
1321
1356
  }) {
1322
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1323
- import_antd6.ConfigProvider,
1357
+ const dateFormat = "DD/MM/YYYY";
1358
+ import_dayjs.default.locale("th_TH");
1359
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1360
+ import_antd5.ConfigProvider,
1324
1361
  {
1325
- locale: import_th_TH2.default,
1362
+ locale: import_th_TH.default,
1326
1363
  theme: {
1327
1364
  token: {
1328
1365
  fontFamily: "Kanit",
1329
1366
  fontSize: 16
1330
1367
  }
1331
1368
  },
1332
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "container-input", children: [
1333
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { children: [
1334
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "body-1", children: label }),
1335
- required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-red-500", children: "*" })
1369
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "container-input", children: [
1370
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
1371
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "body-1", children: title }),
1372
+ " ",
1373
+ required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-red-500", children: "*" })
1336
1374
  ] }),
1337
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1338
- import_antd6.DatePicker,
1375
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1376
+ import_antd5.DatePicker,
1339
1377
  {
1340
1378
  className: `body-1 w-full ${className ?? ""}`,
1341
- value: value ? (0, import_dayjs.default)(value) : null,
1379
+ value,
1342
1380
  placeholder,
1343
- onChange: (date) => {
1344
- onChange(date ? date.toDate() : null);
1345
- },
1381
+ onChange,
1346
1382
  allowClear: true,
1347
1383
  disabled,
1348
- format: (date) => date ? (0, import_date_fns.format)(date.toDate(), "dd/MM/yyyy", { locale: import_locale.th }).replace(
1349
- /\d{4}$/,
1350
- (y) => String(parseInt(y) + 543)
1351
- ) : "",
1352
- defaultValue: defaultValue ? (0, import_dayjs.default)(defaultValue) : null,
1353
- disabledDate: (d) => disabledDate ? disabledDate(d.toDate()) : false,
1354
- minDate: minDate ? (0, import_dayjs.default)(minDate) : void 0,
1355
- maxDate: maxDate ? (0, import_dayjs.default)(maxDate) : void 0,
1356
- size,
1357
- locale: buddhistLocale
1384
+ format: dateFormat,
1385
+ defaultValue,
1386
+ minDate,
1387
+ maxDate,
1388
+ disabledDate,
1389
+ size
1358
1390
  }
1359
1391
  ),
1360
- error && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-red-500 caption-1", children: error })
1392
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
1393
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
1394
+ " ",
1395
+ error && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
1396
+ ] })
1361
1397
  ] })
1362
1398
  }
1363
1399
  );
1364
1400
  }
1365
1401
 
1366
1402
  // src/DatePicker/DatePickerRangePicker/DatePickerRangePicker.tsx
1367
- var import_antd7 = require("antd");
1368
- var import_th_TH3 = __toESM(require("antd/locale/th_TH"));
1369
- var import_th2 = __toESM(require_th());
1403
+ var import_antd6 = require("antd");
1404
+ var import_th_TH2 = __toESM(require("antd/locale/th_TH"));
1405
+ var import_th3 = __toESM(require_th());
1406
+ var import_customParseFormat = __toESM(require_customParseFormat());
1370
1407
  var import_dayjs2 = __toESM(require_dayjs_min());
1371
- var import_buddhistEra2 = __toESM(require_buddhistEra());
1372
- var import_date_fns2 = require("date-fns");
1373
- var import_locale2 = require("date-fns/locale");
1374
- var import_jsx_runtime23 = require("react/jsx-runtime");
1375
- import_dayjs2.default.extend(import_buddhistEra2.default);
1408
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1409
+ import_dayjs2.default.extend(import_customParseFormat.default);
1376
1410
  function DatePickerRangePicker({
1377
1411
  value,
1378
1412
  onChange,
1379
1413
  placeholder = ["\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", "\u0E2A\u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14"],
1380
- label,
1414
+ title,
1381
1415
  required,
1416
+ bottomText,
1382
1417
  error,
1383
1418
  disabled,
1384
1419
  minDate,
@@ -1389,188 +1424,154 @@ function DatePickerRangePicker({
1389
1424
  onOpenChange,
1390
1425
  onCalendarChange
1391
1426
  }) {
1392
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1393
- import_antd7.ConfigProvider,
1427
+ const dateFormat = "DD/MM/YYYY";
1428
+ import_dayjs2.default.locale("th_TH");
1429
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1430
+ import_antd6.ConfigProvider,
1394
1431
  {
1395
- locale: import_th_TH3.default,
1432
+ locale: import_th_TH2.default,
1396
1433
  theme: {
1397
1434
  token: {
1398
1435
  fontFamily: "Kanit",
1399
1436
  fontSize: 16
1400
1437
  }
1401
1438
  },
1402
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "container-input", children: [
1403
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
1404
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "body-1", children: label }),
1439
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "container-input", children: [
1440
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { children: [
1441
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "body-1", children: title }),
1405
1442
  " ",
1406
- required && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-red-500", children: "*" })
1443
+ required && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-red-500", children: "*" })
1407
1444
  ] }),
1408
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1409
- import_antd7.DatePicker.RangePicker,
1445
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1446
+ import_antd6.DatePicker.RangePicker,
1410
1447
  {
1411
- format: (date) => date ? (0, import_date_fns2.format)(date.toDate(), "dd/MM/yyyy", { locale: import_locale2.th }).replace(
1412
- /\d{4}$/,
1413
- (y) => String(parseInt(y) + 543)
1414
- ) : "",
1415
- value: value ? [
1416
- value[0] ? (0, import_dayjs2.default)(value[0]) : null,
1417
- value[1] ? (0, import_dayjs2.default)(value[1]) : null
1418
- ] : null,
1448
+ format: dateFormat,
1449
+ value,
1419
1450
  placeholder,
1420
1451
  className: `body-1 w-full ${className ?? ""}`,
1421
- onChange: (dates, dateStrings) => {
1422
- if (!dates) {
1423
- onChange(null);
1424
- } else {
1425
- onChange([
1426
- dates[0] ? dates[0].toDate() : null,
1427
- dates[1] ? dates[1].toDate() : null
1428
- ]);
1429
- }
1430
- },
1452
+ onChange,
1431
1453
  allowClear: true,
1432
1454
  disabled,
1433
- disabledDate: (d) => disabledDate ? disabledDate(d.toDate()) : false,
1434
- minDate: minDate ? (0, import_dayjs2.default)(minDate) : void 0,
1435
- maxDate: maxDate ? (0, import_dayjs2.default)(maxDate) : void 0,
1455
+ minDate,
1456
+ maxDate,
1457
+ disabledDate,
1436
1458
  size,
1437
1459
  onOpenChange,
1438
- onCalendarChange: (dates, dateStrings, info) => {
1439
- if (!dates) {
1440
- onCalendarChange?.([null, null], dateStrings, info);
1441
- } else {
1442
- onCalendarChange?.(
1443
- [
1444
- dates[0] ? dates[0].toDate() : null,
1445
- dates[1] ? dates[1].toDate() : null
1446
- ],
1447
- dateStrings,
1448
- info
1449
- );
1450
- }
1451
- },
1452
- locale: buddhistLocale
1460
+ onCalendarChange
1453
1461
  }
1454
1462
  ),
1455
- error && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-red-500 caption-1", children: error })
1463
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { children: [
1464
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
1465
+ " ",
1466
+ error && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
1467
+ ] })
1456
1468
  ] })
1457
1469
  }
1458
1470
  );
1459
1471
  }
1460
1472
 
1461
1473
  // src/TimePicker/TimePickerBasic/TimePickerBasic.tsx
1462
- var import_antd8 = require("antd");
1463
- var import_dayjs3 = __toESM(require_dayjs_min());
1464
- var import_th_TH4 = __toESM(require("antd/locale/th_TH"));
1465
- var import_jsx_runtime24 = require("react/jsx-runtime");
1474
+ var import_antd7 = require("antd");
1475
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1466
1476
  function TimePickerBasic({
1467
1477
  value,
1468
1478
  onChange,
1469
1479
  required,
1470
- label,
1480
+ title,
1481
+ bottomText,
1471
1482
  error,
1472
1483
  placeholder,
1473
1484
  disabled,
1474
1485
  className
1475
1486
  }) {
1476
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1477
- import_antd8.ConfigProvider,
1487
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1488
+ import_antd7.ConfigProvider,
1478
1489
  {
1479
- locale: import_th_TH4.default,
1480
1490
  theme: {
1481
1491
  token: {
1482
1492
  fontFamily: "Kanit"
1483
1493
  }
1484
1494
  },
1485
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "container-input", children: [
1486
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { children: [
1487
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "body-1", children: label }),
1495
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "container-input", children: [
1496
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
1497
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "body-1", children: title }),
1488
1498
  " ",
1489
- required && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-red-500", children: "*" })
1499
+ required && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-red-500", children: "*" })
1490
1500
  ] }),
1491
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1492
- import_antd8.TimePicker,
1501
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1502
+ import_antd7.TimePicker,
1493
1503
  {
1494
1504
  format: "HH:mm",
1495
1505
  className: `body-1 w-full ${className ?? ""}`,
1496
- value: value ? (0, import_dayjs3.default)(value) : null,
1506
+ value,
1497
1507
  placeholder,
1498
- onChange: (time) => {
1499
- onChange(time ? time.toDate() : null);
1500
- },
1508
+ onChange,
1501
1509
  allowClear: true,
1502
1510
  disabled
1503
1511
  }
1504
1512
  ),
1505
- error && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "text-red-500 caption-1", children: error })
1513
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
1514
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
1515
+ " ",
1516
+ error && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
1517
+ ] })
1506
1518
  ] })
1507
1519
  }
1508
1520
  );
1509
1521
  }
1510
1522
 
1511
1523
  // src/TimePicker/TimePickerRangePicker/TimerPickerRangePicker.tsx
1512
- var import_antd9 = require("antd");
1513
- var import_th_TH5 = __toESM(require("antd/locale/th_TH"));
1514
- var import_dayjs4 = __toESM(require_dayjs_min());
1515
- var import_jsx_runtime25 = require("react/jsx-runtime");
1524
+ var import_antd8 = require("antd");
1525
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1516
1526
  function TimePickerRangePicker({
1517
1527
  value,
1518
1528
  onChange,
1519
1529
  placeholder = ["\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", "\u0E2A\u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14"],
1520
- label,
1530
+ title,
1521
1531
  required,
1532
+ bottomText,
1522
1533
  error,
1523
1534
  disabled,
1524
1535
  className
1525
1536
  }) {
1526
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1527
- import_antd9.ConfigProvider,
1537
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1538
+ import_antd8.ConfigProvider,
1528
1539
  {
1529
- locale: import_th_TH5.default,
1530
1540
  theme: {
1531
1541
  token: {
1532
1542
  fontFamily: "Kanit"
1533
1543
  }
1534
1544
  },
1535
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "container-input", children: [
1536
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { children: [
1537
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "body-1", children: label }),
1545
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "container-input", children: [
1546
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { children: [
1547
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "body-1", children: title }),
1538
1548
  " ",
1539
- required && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-red-500", children: "*" })
1549
+ required && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-red-500", children: "*" })
1540
1550
  ] }),
1541
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1542
- import_antd9.TimePicker.RangePicker,
1551
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1552
+ import_antd8.TimePicker.RangePicker,
1543
1553
  {
1544
1554
  format: "HH:mm",
1545
- value: value ? [
1546
- value[0] ? (0, import_dayjs4.default)(value[0]) : null,
1547
- value[1] ? (0, import_dayjs4.default)(value[1]) : null
1548
- ] : null,
1555
+ value,
1549
1556
  placeholder,
1550
1557
  className: `body-1 w-full ${className ?? ""}`,
1551
- onChange: (dates, dateStrings) => {
1552
- if (!dates) {
1553
- onChange(null);
1554
- } else {
1555
- onChange([
1556
- dates[0] ? dates[0].toDate() : null,
1557
- dates[1] ? dates[1].toDate() : null
1558
- ]);
1559
- }
1560
- },
1558
+ onChange,
1561
1559
  allowClear: true,
1562
- disabled,
1563
- showNow: true
1560
+ disabled
1564
1561
  }
1565
1562
  ),
1566
- error && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-red-500 caption-1", children: error })
1563
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { children: [
1564
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
1565
+ " ",
1566
+ error && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
1567
+ ] })
1567
1568
  ] })
1568
1569
  }
1569
1570
  );
1570
1571
  }
1571
1572
 
1572
1573
  // src/ColorPalettePickerBasic/ColorPalettePickerBasic.tsx
1573
- var import_antd10 = require("antd");
1574
+ var import_antd9 = require("antd");
1574
1575
 
1575
1576
  // node_modules/@babel/runtime/helpers/esm/typeof.js
1576
1577
  function _typeof(o) {
@@ -2272,7 +2273,7 @@ var greyDark = ["#151515", "#1f1f1f", "#2d2d2d", "#393939", "#494949", "#5a5a5a"
2272
2273
  greyDark.primary = greyDark[5];
2273
2274
 
2274
2275
  // src/ColorPalettePickerBasic/ColorPalettePickerBasic.tsx
2275
- var import_jsx_runtime26 = require("react/jsx-runtime");
2276
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2276
2277
  function genPresets(presets = presetPalettes) {
2277
2278
  return Object.entries(presets).map(([label, colors]) => ({
2278
2279
  label,
@@ -2284,7 +2285,8 @@ function ColorPalettePickerBasic({
2284
2285
  value,
2285
2286
  onChange,
2286
2287
  required,
2287
- label,
2288
+ title,
2289
+ bottomText,
2288
2290
  error,
2289
2291
  disabled,
2290
2292
  allowClear,
@@ -2293,14 +2295,14 @@ function ColorPalettePickerBasic({
2293
2295
  placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E35",
2294
2296
  onClear
2295
2297
  }) {
2296
- const { token } = import_antd10.theme.useToken();
2298
+ const { token } = import_antd9.theme.useToken();
2297
2299
  const presets = genPresets({
2298
2300
  primary: generate(token.colorPrimary),
2299
2301
  red,
2300
2302
  green
2301
2303
  });
2302
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2303
- import_antd10.ConfigProvider,
2304
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2305
+ import_antd9.ConfigProvider,
2304
2306
  {
2305
2307
  theme: {
2306
2308
  token: {
@@ -2308,14 +2310,14 @@ function ColorPalettePickerBasic({
2308
2310
  fontSize: 16
2309
2311
  }
2310
2312
  },
2311
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "container-input", children: [
2312
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
2313
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "body-1", children: label }),
2313
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "container-input", children: [
2314
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { children: [
2315
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "body-1", children: title }),
2314
2316
  " ",
2315
- required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-red-500", children: "*" })
2317
+ required && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-red-500", children: "*" })
2316
2318
  ] }),
2317
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2318
- import_antd10.ColorPicker,
2319
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2320
+ import_antd9.ColorPicker,
2319
2321
  {
2320
2322
  defaultFormat,
2321
2323
  className: `body-1 w-full ${className ?? ""}`,
@@ -2327,9 +2329,9 @@ function ColorPalettePickerBasic({
2327
2329
  showText: (color) => {
2328
2330
  const hex = color.toHexString();
2329
2331
  if (!value) {
2330
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: placeholder });
2332
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: placeholder });
2331
2333
  }
2332
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { children: [
2334
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { children: [
2333
2335
  "(",
2334
2336
  hex,
2335
2337
  ")"
@@ -2339,21 +2341,26 @@ function ColorPalettePickerBasic({
2339
2341
  onClear
2340
2342
  }
2341
2343
  ),
2342
- error && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-red-500 caption-1", children: error })
2344
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { children: [
2345
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
2346
+ " ",
2347
+ error && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
2348
+ ] })
2343
2349
  ] })
2344
2350
  }
2345
2351
  );
2346
2352
  }
2347
2353
 
2348
2354
  // src/Select/SelectField/SelectField.tsx
2349
- var import_antd11 = require("antd");
2350
- var import_jsx_runtime27 = require("react/jsx-runtime");
2355
+ var import_antd10 = require("antd");
2356
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2351
2357
  function SelectField({
2352
2358
  value,
2353
2359
  onChange,
2354
2360
  placeholder = "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
2355
- label,
2361
+ title,
2356
2362
  required,
2363
+ bottomText,
2357
2364
  error,
2358
2365
  disabled,
2359
2366
  defaultValue,
@@ -2365,8 +2372,8 @@ function SelectField({
2365
2372
  className,
2366
2373
  onClear
2367
2374
  }) {
2368
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2369
- import_antd11.ConfigProvider,
2375
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2376
+ import_antd10.ConfigProvider,
2370
2377
  {
2371
2378
  theme: {
2372
2379
  token: {
@@ -2374,14 +2381,14 @@ function SelectField({
2374
2381
  fontSize: 16
2375
2382
  }
2376
2383
  },
2377
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "container-input", children: [
2378
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { children: [
2379
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "body-1", children: label }),
2384
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "container-input", children: [
2385
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
2386
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "body-1", children: title }),
2380
2387
  " ",
2381
- required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-red-500", children: "*" })
2388
+ required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-red-500", children: "*" })
2382
2389
  ] }),
2383
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2384
- import_antd11.Select,
2390
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2391
+ import_antd10.Select,
2385
2392
  {
2386
2393
  showSearch: true,
2387
2394
  value,
@@ -2395,26 +2402,43 @@ function SelectField({
2395
2402
  options,
2396
2403
  mode,
2397
2404
  onSearch: handleSearch,
2398
- prefix: prefix ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { style: { width: prefixSize, height: prefixSize, display: "flex", alignItems: "center", justifyContent: "center" }, children: prefix }) : void 0,
2405
+ prefix: prefix ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2406
+ "span",
2407
+ {
2408
+ style: {
2409
+ width: prefixSize,
2410
+ height: prefixSize,
2411
+ display: "flex",
2412
+ alignItems: "center",
2413
+ justifyContent: "center"
2414
+ },
2415
+ children: prefix
2416
+ }
2417
+ ) : void 0,
2399
2418
  allowClear: true,
2400
2419
  onClear
2401
2420
  }
2402
2421
  ),
2403
- error && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-red-500 caption-1", children: error })
2422
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
2423
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
2424
+ " ",
2425
+ error && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
2426
+ ] })
2404
2427
  ] })
2405
2428
  }
2406
2429
  );
2407
2430
  }
2408
2431
 
2409
2432
  // src/Select/SelectFieldGroup/SelectFieldGroup.tsx
2410
- var import_antd12 = require("antd");
2411
- var import_jsx_runtime28 = require("react/jsx-runtime");
2433
+ var import_antd11 = require("antd");
2434
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2412
2435
  function SelectFieldGroup({
2413
2436
  value,
2414
2437
  onChange,
2415
2438
  placeholder = "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
2416
- label,
2439
+ title,
2417
2440
  required,
2441
+ bottomText,
2418
2442
  error,
2419
2443
  disabled,
2420
2444
  defaultValue,
@@ -2425,22 +2449,22 @@ function SelectFieldGroup({
2425
2449
  handleSearch,
2426
2450
  className
2427
2451
  }) {
2428
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2429
- import_antd12.ConfigProvider,
2452
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2453
+ import_antd11.ConfigProvider,
2430
2454
  {
2431
2455
  theme: {
2432
2456
  token: {
2433
2457
  fontFamily: "Kanit"
2434
2458
  }
2435
2459
  },
2436
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "container-input", children: [
2437
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
2438
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "body-1", children: label }),
2460
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "container-input", children: [
2461
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { children: [
2462
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "body-1", children: title }),
2439
2463
  " ",
2440
- required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-red-500", children: "*" })
2464
+ required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-red-500", children: "*" })
2441
2465
  ] }),
2442
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2443
- import_antd12.Select,
2466
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2467
+ import_antd11.Select,
2444
2468
  {
2445
2469
  showSearch: true,
2446
2470
  value,
@@ -2454,7 +2478,7 @@ function SelectFieldGroup({
2454
2478
  options,
2455
2479
  mode,
2456
2480
  onSearch: handleSearch,
2457
- prefix: prefix ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2481
+ prefix: prefix ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2458
2482
  "span",
2459
2483
  {
2460
2484
  style: {
@@ -2470,14 +2494,18 @@ function SelectFieldGroup({
2470
2494
  allowClear: true
2471
2495
  }
2472
2496
  ),
2473
- error && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-red-500 caption-1", children: error })
2497
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { children: [
2498
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
2499
+ " ",
2500
+ error && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
2501
+ ] })
2474
2502
  ] })
2475
2503
  }
2476
2504
  );
2477
2505
  }
2478
2506
 
2479
2507
  // src/Select/SelectFieldStatus/SelectFieldStatus.tsx
2480
- var import_antd13 = require("antd");
2508
+ var import_antd12 = require("antd");
2481
2509
 
2482
2510
  // src/Select/SelectFieldStatus/StatusMockup.ts
2483
2511
  var status = [
@@ -2490,21 +2518,22 @@ var status = [
2490
2518
 
2491
2519
  // src/Select/SelectFieldStatus/SelectFieldStatus.tsx
2492
2520
  var import_icons = require("@ant-design/icons");
2493
- var import_jsx_runtime29 = require("react/jsx-runtime");
2521
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2494
2522
  function SelectFieldStatus({
2495
2523
  value,
2496
2524
  onChange,
2497
2525
  placeholder,
2498
- label,
2526
+ title,
2499
2527
  required,
2528
+ bottomText,
2500
2529
  disabled,
2501
2530
  error,
2502
2531
  options,
2503
2532
  className
2504
2533
  }) {
2505
2534
  const selectedItem = status.find((s) => s.value === value);
2506
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2507
- import_antd13.ConfigProvider,
2535
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2536
+ import_antd12.ConfigProvider,
2508
2537
  {
2509
2538
  theme: {
2510
2539
  components: {
@@ -2519,17 +2548,17 @@ function SelectFieldStatus({
2519
2548
  fontFamily: "Kanit"
2520
2549
  }
2521
2550
  },
2522
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "container-input", children: [
2523
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
2524
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "body-1", children: label }),
2551
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "container-input", children: [
2552
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
2553
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "body-1", children: title }),
2525
2554
  " ",
2526
- required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-red-500", children: "*" })
2555
+ required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-red-500", children: "*" })
2527
2556
  ] }),
2528
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2529
- import_antd13.Select,
2557
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2558
+ import_antd12.Select,
2530
2559
  {
2531
2560
  disabled,
2532
- suffixIcon: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_icons.DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
2561
+ suffixIcon: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_icons.DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
2533
2562
  value,
2534
2563
  onChange,
2535
2564
  className: `body-3 custom-select flex justify-center w-full ${className ?? ""}`,
@@ -2540,14 +2569,18 @@ function SelectFieldStatus({
2540
2569
  showSearch: true
2541
2570
  }
2542
2571
  ),
2543
- error && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-red-500 caption-1", children: error })
2572
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
2573
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
2574
+ " ",
2575
+ error && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
2576
+ ] })
2544
2577
  ] })
2545
2578
  }
2546
2579
  );
2547
2580
  }
2548
2581
 
2549
2582
  // src/Select/SelectFieldStatusReport/SelectFieldStatusReport.tsx
2550
- var import_antd14 = require("antd");
2583
+ var import_antd13 = require("antd");
2551
2584
 
2552
2585
  // src/Select/SelectFieldStatusReport/StatusReportMockup.ts
2553
2586
  var status2 = [
@@ -2557,21 +2590,22 @@ var status2 = [
2557
2590
 
2558
2591
  // src/Select/SelectFieldStatusReport/SelectFieldStatusReport.tsx
2559
2592
  var import_icons2 = require("@ant-design/icons");
2560
- var import_jsx_runtime30 = require("react/jsx-runtime");
2593
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2561
2594
  function SelectFieldStatusReport({
2562
2595
  value,
2563
2596
  onChange,
2564
2597
  placeholder,
2565
- label,
2598
+ title,
2566
2599
  required,
2600
+ bottomText,
2567
2601
  disabled,
2568
2602
  error,
2569
2603
  className,
2570
2604
  options
2571
2605
  }) {
2572
2606
  const selectedItem = status2.find((s) => s.value === value);
2573
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2574
- import_antd14.ConfigProvider,
2607
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2608
+ import_antd13.ConfigProvider,
2575
2609
  {
2576
2610
  theme: {
2577
2611
  components: {
@@ -2586,17 +2620,17 @@ function SelectFieldStatusReport({
2586
2620
  fontFamily: "Kanit"
2587
2621
  }
2588
2622
  },
2589
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "container-input", children: [
2590
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
2591
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "body-1", children: label }),
2623
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "container-input", children: [
2624
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
2625
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "body-1", children: title }),
2592
2626
  " ",
2593
- required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-red-500", children: "*" })
2627
+ required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-red-500", children: "*" })
2594
2628
  ] }),
2595
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2596
- import_antd14.Select,
2629
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2630
+ import_antd13.Select,
2597
2631
  {
2598
2632
  disabled,
2599
- suffixIcon: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_icons2.DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
2633
+ suffixIcon: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_icons2.DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
2600
2634
  value,
2601
2635
  onChange,
2602
2636
  className: `body-3 custom-select flex justify-center w-full ${className ?? ""}`,
@@ -2607,19 +2641,24 @@ function SelectFieldStatusReport({
2607
2641
  showSearch: true
2608
2642
  }
2609
2643
  ),
2610
- error && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-red-500 caption-1", children: error })
2644
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
2645
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
2646
+ " ",
2647
+ error && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
2648
+ ] })
2611
2649
  ] })
2612
2650
  }
2613
2651
  );
2614
2652
  }
2615
2653
 
2616
2654
  // src/Select/SelectFieldTag/SelectFieldTag.tsx
2617
- var import_antd15 = require("antd");
2655
+ var import_antd14 = require("antd");
2618
2656
  var import_react8 = require("react");
2619
- var import_jsx_runtime31 = require("react/jsx-runtime");
2657
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2620
2658
  function SelectFieldTag({
2621
- label,
2659
+ title,
2622
2660
  required,
2661
+ bottomText,
2623
2662
  placeholder,
2624
2663
  options,
2625
2664
  error,
@@ -2649,22 +2688,22 @@ function SelectFieldTag({
2649
2688
  }
2650
2689
  onChange?.([]);
2651
2690
  };
2652
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2653
- import_antd15.ConfigProvider,
2691
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2692
+ import_antd14.ConfigProvider,
2654
2693
  {
2655
2694
  theme: {
2656
2695
  token: {
2657
2696
  fontFamily: "Kanit"
2658
2697
  }
2659
2698
  },
2660
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "container-input", children: [
2661
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
2662
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "body-1", children: label }),
2699
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "container-input", children: [
2700
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
2701
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "body-1", children: title }),
2663
2702
  " ",
2664
- required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-red-500", children: "*" })
2703
+ required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-red-500", children: "*" })
2665
2704
  ] }),
2666
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2667
- import_antd15.Select,
2705
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2706
+ import_antd14.Select,
2668
2707
  {
2669
2708
  mode: "tags",
2670
2709
  className: `body-1 flex justify-center w-full ${className ?? ""}`,
@@ -2682,7 +2721,11 @@ function SelectFieldTag({
2682
2721
  onClear
2683
2722
  }
2684
2723
  ),
2685
- error && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-red-500 caption-1", children: error })
2724
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
2725
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
2726
+ " ",
2727
+ error && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
2728
+ ] })
2686
2729
  ] })
2687
2730
  }
2688
2731
  );
@@ -2690,15 +2733,16 @@ function SelectFieldTag({
2690
2733
 
2691
2734
  // src/Select/SelectCustom/SelectCustom.tsx
2692
2735
  var import_icons_react8 = require("@tabler/icons-react");
2693
- var import_antd16 = require("antd");
2736
+ var import_antd15 = require("antd");
2694
2737
  var import_react9 = require("react");
2695
- var import_jsx_runtime32 = require("react/jsx-runtime");
2738
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2696
2739
  function SelectCustom({
2697
- label = "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E42\u0E04\u0E23\u0E07\u0E01\u0E32\u0E23",
2740
+ title = "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E42\u0E04\u0E23\u0E07\u0E01\u0E32\u0E23",
2698
2741
  placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01",
2699
2742
  options,
2700
2743
  required = false,
2701
2744
  onChange,
2745
+ bottomText,
2702
2746
  error,
2703
2747
  onClear
2704
2748
  }) {
@@ -2721,8 +2765,8 @@ function SelectCustom({
2721
2765
  });
2722
2766
  };
2723
2767
  const filteredOptions = options.filter((opt) => !valueList.includes(opt.value)).map((opt) => ({ value: opt.value, label: opt.label }));
2724
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2725
- import_antd16.ConfigProvider,
2768
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2769
+ import_antd15.ConfigProvider,
2726
2770
  {
2727
2771
  theme: {
2728
2772
  token: {
@@ -2730,14 +2774,14 @@ function SelectCustom({
2730
2774
  fontSize: 16
2731
2775
  }
2732
2776
  },
2733
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "container-input", children: [
2734
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
2735
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "body-1", children: label }),
2777
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "container-input", children: [
2778
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
2779
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "body-1", children: title }),
2736
2780
  " ",
2737
- required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-red-500", children: "*" })
2781
+ required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-red-500", children: "*" })
2738
2782
  ] }),
2739
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2740
- import_antd16.Select,
2783
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2784
+ import_antd15.Select,
2741
2785
  {
2742
2786
  value,
2743
2787
  onChange: handleChange,
@@ -2747,37 +2791,28 @@ function SelectCustom({
2747
2791
  onClear
2748
2792
  }
2749
2793
  ),
2750
- error && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-red-500 caption-1", children: error }),
2751
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "w-full p-[2px] overflow-y-auto", children: valueList.map((v, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2752
- "div",
2753
- {
2754
- className: "flex justify-between items-center py-[2px] body-1",
2755
- children: [
2756
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-row gap-[8px]", children: [
2757
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("p", { children: [
2758
- index + 1,
2759
- "."
2760
- ] }),
2761
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { children: v })
2762
- ] }),
2763
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2764
- import_icons_react8.IconTrash,
2765
- {
2766
- className: "cursor-pointer",
2767
- onClick: () => handleDelete(v)
2768
- }
2769
- )
2770
- ]
2771
- },
2772
- index
2773
- )) })
2794
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
2795
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "caption-1 text-gray-500", children: bottomText }),
2796
+ " ",
2797
+ error && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "caption-1 text-red-500 ", children: error })
2798
+ ] }),
2799
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "w-full p-[2px] overflow-y-auto", children: valueList.map((v, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex justify-between items-center py-[2px] body-1", children: [
2800
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-row gap-[8px]", children: [
2801
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("p", { children: [
2802
+ index + 1,
2803
+ "."
2804
+ ] }),
2805
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { children: v })
2806
+ ] }),
2807
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_icons_react8.IconTrash, { className: "cursor-pointer", onClick: () => handleDelete(v) })
2808
+ ] }, index)) })
2774
2809
  ] })
2775
2810
  }
2776
2811
  );
2777
2812
  }
2778
2813
 
2779
2814
  // src/SortFilter/SortFilter.tsx
2780
- var import_antd17 = require("antd");
2815
+ var import_antd16 = require("antd");
2781
2816
  var import_icons3 = require("@ant-design/icons");
2782
2817
 
2783
2818
  // src/SortFilter/DataMockSortFilter.ts
@@ -2810,7 +2845,7 @@ var quarters = [
2810
2845
  // src/SortFilter/SortFilter.tsx
2811
2846
  var import_react10 = require("react");
2812
2847
  var import_icons_react9 = require("@tabler/icons-react");
2813
- var import_jsx_runtime33 = require("react/jsx-runtime");
2848
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2814
2849
  function SortFilter({
2815
2850
  showYear = true,
2816
2851
  showQuarter = true,
@@ -2821,20 +2856,20 @@ function SortFilter({
2821
2856
  const [yearValue, setYearValue] = (0, import_react10.useState)();
2822
2857
  const [monthValue, setMonthValue] = (0, import_react10.useState)();
2823
2858
  const [quarterValue, setQuartersValue] = (0, import_react10.useState)();
2824
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2825
- import_antd17.ConfigProvider,
2859
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2860
+ import_antd16.ConfigProvider,
2826
2861
  {
2827
2862
  theme: {
2828
2863
  token: {
2829
2864
  fontFamily: "Kanit"
2830
2865
  }
2831
2866
  },
2832
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "w-full flex items-center justify-between", children: [
2833
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "w-full flex gap-[10px]", children: [
2834
- showYear && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2867
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "w-full flex items-center justify-between", children: [
2868
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "w-full flex gap-[10px]", children: [
2869
+ showYear && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2835
2870
  SelectField,
2836
2871
  {
2837
- prefix: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons3.CalendarOutlined, {}),
2872
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons3.CalendarOutlined, {}),
2838
2873
  onChange: setYearValue,
2839
2874
  options: years.map((s) => ({
2840
2875
  value: s.value,
@@ -2844,10 +2879,10 @@ function SortFilter({
2844
2879
  value: yearValue
2845
2880
  }
2846
2881
  ) }),
2847
- showMonth && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2882
+ showMonth && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2848
2883
  SelectField,
2849
2884
  {
2850
- prefix: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons3.CalendarOutlined, {}),
2885
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons3.CalendarOutlined, {}),
2851
2886
  onChange: setMonthValue,
2852
2887
  options: months.map((s) => ({
2853
2888
  value: s.value,
@@ -2857,10 +2892,10 @@ function SortFilter({
2857
2892
  placeholder: "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19"
2858
2893
  }
2859
2894
  ) }),
2860
- showQuarter && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2895
+ showQuarter && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2861
2896
  SelectField,
2862
2897
  {
2863
- prefix: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons3.CalendarOutlined, {}),
2898
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons3.CalendarOutlined, {}),
2864
2899
  onChange: setQuartersValue,
2865
2900
  options: quarters.map((s) => ({
2866
2901
  value: s.value,
@@ -2871,8 +2906,8 @@ function SortFilter({
2871
2906
  }
2872
2907
  ) })
2873
2908
  ] }),
2874
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex gap-[10px]", children: [
2875
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2909
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex gap-[10px]", children: [
2910
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2876
2911
  import_icons_react9.IconSortDescending,
2877
2912
  {
2878
2913
  size: 24,
@@ -2880,7 +2915,7 @@ function SortFilter({
2880
2915
  onClick: onSortClick
2881
2916
  }
2882
2917
  ),
2883
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2918
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2884
2919
  import_icons_react9.IconFilter,
2885
2920
  {
2886
2921
  size: 24,
@@ -2897,7 +2932,7 @@ function SortFilter({
2897
2932
  // src/Upload/FileUploader/FileUploader.tsx
2898
2933
  var import_icons_react10 = require("@tabler/icons-react");
2899
2934
  var import_react11 = require("react");
2900
- var import_jsx_runtime34 = require("react/jsx-runtime");
2935
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2901
2936
  function FileUploader({
2902
2937
  onUpload,
2903
2938
  onError,
@@ -2930,7 +2965,7 @@ function FileUploader({
2930
2965
  const handleRemoveFile = async (index) => {
2931
2966
  try {
2932
2967
  if (onRemove) {
2933
- await onRemove(index);
2968
+ await onRemove();
2934
2969
  }
2935
2970
  const updatedList = [...fileList];
2936
2971
  updatedList.splice(index, 1);
@@ -2968,10 +3003,10 @@ function FileUploader({
2968
3003
  }
2969
3004
  if (inputRef.current) inputRef.current.value = "";
2970
3005
  };
2971
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "w-full", children: [
2972
- label && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "body-1", children: label }),
2973
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
2974
- mode === "upload" ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3006
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "w-full", children: [
3007
+ label && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "body-1", children: label }),
3008
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
3009
+ mode === "upload" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2975
3010
  "button",
2976
3011
  {
2977
3012
  type: "button",
@@ -2979,15 +3014,15 @@ function FileUploader({
2979
3014
  className: `h-[34px] flex justify-center items-center gap-2 w-full rounded-[2px] border border-gray-200 body-1
2980
3015
  ${disabled ? "cursor-not-allowed text-gray-400 bg-gray-100" : "cursor-pointer hover:text-primary-400 hover:border-primary-200 duration-300"}`,
2981
3016
  disabled: disabled ? disabled : uploading,
2982
- children: uploading ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
2983
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Loader, { size: 15 }),
3017
+ children: uploading ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
3018
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Loader, { size: 15 }),
2984
3019
  " \u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14"
2985
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
2986
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons_react10.IconUpload, { size: 15, className: "text-gray-400" }),
3020
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
3021
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons_react10.IconUpload, { size: 15, className: "text-gray-400" }),
2987
3022
  " \u0E41\u0E19\u0E1A\u0E44\u0E1F\u0E25\u0E4C"
2988
3023
  ] })
2989
3024
  }
2990
- ) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3025
+ ) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2991
3026
  "div",
2992
3027
  {
2993
3028
  className: `min-w-[400px] min-h-[120px] flex justify-center items-center border-2 border-dashed rounded-md p-4 transition-colors body-1
@@ -3001,17 +3036,17 @@ function FileUploader({
3001
3036
  },
3002
3037
  onDragLeave: () => setDragActive(false),
3003
3038
  onDrop: handleDrop,
3004
- children: uploading ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex justify-center items-center gap-2", children: [
3005
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Loader, { size: 15 }),
3039
+ children: uploading ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex justify-center items-center gap-2", children: [
3040
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Loader, { size: 15 }),
3006
3041
  " \u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14"
3007
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col items-center gap-2", children: [
3008
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons_react10.IconUpload, { size: 20 }),
3009
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "body-1", children: "\u0E04\u0E25\u0E34\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E17\u0E35\u0E48\u0E1A\u0E23\u0E34\u0E40\u0E27\u0E13\u0E19\u0E35\u0E49\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14" }),
3010
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-gray-400 body-3", children: "\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E41\u0E1A\u0E1A\u0E40\u0E14\u0E35\u0E48\u0E22\u0E27\u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E25\u0E32\u0E22\u0E44\u0E1F\u0E25\u0E4C" })
3042
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col items-center gap-2", children: [
3043
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons_react10.IconUpload, { size: 20 }),
3044
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "body-1", children: "\u0E04\u0E25\u0E34\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E17\u0E35\u0E48\u0E1A\u0E23\u0E34\u0E40\u0E27\u0E13\u0E19\u0E35\u0E49\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14" }),
3045
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-gray-400 body-3", children: "\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E41\u0E1A\u0E1A\u0E40\u0E14\u0E35\u0E48\u0E22\u0E27\u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E25\u0E32\u0E22\u0E44\u0E1F\u0E25\u0E4C" })
3011
3046
  ] })
3012
3047
  }
3013
3048
  ),
3014
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3049
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3015
3050
  "input",
3016
3051
  {
3017
3052
  type: "file",
@@ -3024,13 +3059,13 @@ function FileUploader({
3024
3059
  }
3025
3060
  )
3026
3061
  ] }),
3027
- description && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-gray-400 body-4", children: description }),
3028
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "mt-[8px]", children: fileList.length !== 0 && fileList.map((file, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-2 rounded-[4px] px-[8px] py-[4px] body-1", children: [
3029
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-2 w-[75%] overflow-hidden", children: [
3030
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-[15px] h-[15px]", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons_react10.IconPaperclip, { size: 15 }) }),
3031
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "truncate", children: file.name })
3062
+ description && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-gray-400 body-4", children: description }),
3063
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "mt-[8px]", children: fileList.length !== 0 && fileList.map((file, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-2 rounded-[4px] px-[8px] py-[4px] body-1", children: [
3064
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-2 w-[75%] overflow-hidden", children: [
3065
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-[15px] h-[15px]", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons_react10.IconPaperclip, { size: 15 }) }),
3066
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "truncate", children: file.name })
3032
3067
  ] }),
3033
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3068
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3034
3069
  import_icons_react10.IconTrash,
3035
3070
  {
3036
3071
  size: 20,
@@ -3064,9 +3099,9 @@ function messageLoading(content, duration) {
3064
3099
  }
3065
3100
 
3066
3101
  // src/Breadcrumb/Breadcrumb.tsx
3102
+ var import_antd17 = require("antd");
3067
3103
  var import_antd18 = require("antd");
3068
- var import_antd19 = require("antd");
3069
- var import_jsx_runtime35 = require("react/jsx-runtime");
3104
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3070
3105
  function Breadcrumbs({
3071
3106
  items,
3072
3107
  separator,
@@ -3074,16 +3109,16 @@ function Breadcrumbs({
3074
3109
  classname,
3075
3110
  params
3076
3111
  }) {
3077
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3078
- import_antd18.ConfigProvider,
3112
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3113
+ import_antd17.ConfigProvider,
3079
3114
  {
3080
3115
  theme: {
3081
3116
  token: {
3082
3117
  fontFamily: "Kanit"
3083
3118
  }
3084
3119
  },
3085
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3086
- import_antd19.Breadcrumb,
3120
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3121
+ import_antd18.Breadcrumb,
3087
3122
  {
3088
3123
  items,
3089
3124
  separator,
@@ -3097,8 +3132,8 @@ function Breadcrumbs({
3097
3132
  }
3098
3133
 
3099
3134
  // src/HeadingPage/HeadingPage.tsx
3100
- var import_antd20 = require("antd");
3101
- var import_jsx_runtime36 = require("react/jsx-runtime");
3135
+ var import_antd19 = require("antd");
3136
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3102
3137
  function HeadingPage({ Heading }) {
3103
3138
  const today = (/* @__PURE__ */ new Date()).toLocaleDateString("th-TH", {
3104
3139
  weekday: "long",
@@ -3106,17 +3141,17 @@ function HeadingPage({ Heading }) {
3106
3141
  month: "long",
3107
3142
  year: "numeric"
3108
3143
  });
3109
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3110
- import_antd20.ConfigProvider,
3144
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3145
+ import_antd19.ConfigProvider,
3111
3146
  {
3112
3147
  theme: {
3113
3148
  token: {
3114
3149
  fontFamily: "Kanit"
3115
3150
  }
3116
3151
  },
3117
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col gap-[10px] px-[20px] py-[10px]", children: [
3118
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "headline-5", children: Heading }),
3119
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("p", { className: "body-1", children: [
3152
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col gap-[10px] px-[20px] py-[10px]", children: [
3153
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "headline-5", children: Heading }),
3154
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { className: "body-1", children: [
3120
3155
  " \u0E27\u0E31\u0E19\u0E19\u0E35\u0E49 ",
3121
3156
  today
3122
3157
  ] })
@@ -3126,9 +3161,9 @@ function HeadingPage({ Heading }) {
3126
3161
  }
3127
3162
 
3128
3163
  // src/Progress/ProgressBar.tsx
3129
- var import_antd21 = require("antd");
3164
+ var import_antd20 = require("antd");
3130
3165
  var import_react12 = require("react");
3131
- var import_jsx_runtime37 = require("react/jsx-runtime");
3166
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3132
3167
  function ProgressBar({
3133
3168
  percent = 0,
3134
3169
  size = "default",
@@ -3161,17 +3196,17 @@ function ProgressBar({
3161
3196
  observer.observe(inner);
3162
3197
  return () => observer.disconnect();
3163
3198
  }, []);
3164
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3165
- import_antd21.ConfigProvider,
3199
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3200
+ import_antd20.ConfigProvider,
3166
3201
  {
3167
3202
  theme: {
3168
3203
  token: {
3169
3204
  fontFamily: "Kanit"
3170
3205
  }
3171
3206
  },
3172
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "relative w-full", ref: progressRef, children: [
3173
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3174
- import_antd21.Progress,
3207
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "relative w-full", ref: progressRef, children: [
3208
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3209
+ import_antd20.Progress,
3175
3210
  {
3176
3211
  className: "w-full",
3177
3212
  percent,
@@ -3186,7 +3221,7 @@ function ProgressBar({
3186
3221
  strokeColor
3187
3222
  }
3188
3223
  ),
3189
- barWidth > 0 && isCheckPoints && type !== "circle" && checkpoints.map((cp) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3224
+ barWidth > 0 && isCheckPoints && type !== "circle" && checkpoints.map((cp) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3190
3225
  "div",
3191
3226
  {
3192
3227
  className: "checkpoint absolute top-0",
@@ -3208,7 +3243,7 @@ function ProgressBar({
3208
3243
  }
3209
3244
 
3210
3245
  // src/KpiSection/KpiSection.tsx
3211
- var import_antd22 = require("antd");
3246
+ var import_antd21 = require("antd");
3212
3247
  var import_react14 = require("react");
3213
3248
 
3214
3249
  // src/KpiSection/hooks/useGetKpiSection.ts
@@ -3359,7 +3394,7 @@ function useGetKpiSection() {
3359
3394
 
3360
3395
  // src/KpiSection/KpiSection.tsx
3361
3396
  var import_icons_react11 = require("@tabler/icons-react");
3362
- var import_jsx_runtime38 = require("react/jsx-runtime");
3397
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3363
3398
  function KpiSection({ type, onChangeKpiList }) {
3364
3399
  const {
3365
3400
  handleAddKpi,
@@ -3379,7 +3414,7 @@ function KpiSection({ type, onChangeKpiList }) {
3379
3414
  itemErrors,
3380
3415
  setItemErrors
3381
3416
  } = useGetKpiSection();
3382
- const [messageApi2, messageContainer] = import_antd22.message.useMessage();
3417
+ const [messageApi2, messageContainer] = import_antd21.message.useMessage();
3383
3418
  const [hasShownError, setHasShownError] = (0, import_react14.useState)(false);
3384
3419
  (0, import_react14.useEffect)(() => {
3385
3420
  setMessageApi(messageApi2);
@@ -3389,8 +3424,8 @@ function KpiSection({ type, onChangeKpiList }) {
3389
3424
  onChangeKpiList(kpiList);
3390
3425
  }
3391
3426
  }, [kpiList]);
3392
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3393
- import_antd22.ConfigProvider,
3427
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3428
+ import_antd21.ConfigProvider,
3394
3429
  {
3395
3430
  theme: {
3396
3431
  token: {
@@ -3398,27 +3433,29 @@ function KpiSection({ type, onChangeKpiList }) {
3398
3433
  fontSize: 16
3399
3434
  }
3400
3435
  },
3401
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "container-input", children: [
3436
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "container-input", children: [
3402
3437
  messageContainer,
3403
- type === "number" && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "space-y-4", children: [
3404
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "grid grid-cols-[1fr_200px_200px_50px] w-full gap-[24px] items-start", children: [
3405
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3438
+ type === "number" && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "space-y-4", children: [
3439
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "grid grid-cols-[1fr_200px_200px_50px] w-full gap-[24px] items-start", children: [
3440
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3406
3441
  InputField,
3407
3442
  {
3408
3443
  value: nameKpi,
3409
- label: "\u0E0A\u0E37\u0E48\u0E2D\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E32\u0E14\u0E2B\u0E27\u0E31\u0E07 (KPI)",
3444
+ title: "\u0E0A\u0E37\u0E48\u0E2D\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E32\u0E14\u0E2B\u0E27\u0E31\u0E07 (KPI)",
3410
3445
  placeholder: "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
3446
+ required: true,
3411
3447
  onChange: (value) => setNameKpi(value ?? ""),
3412
3448
  className: "h-[32px]",
3413
3449
  error: errors.nameKpi
3414
3450
  }
3415
3451
  ),
3416
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3452
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3417
3453
  InputField,
3418
3454
  {
3419
3455
  value: kpiValue,
3420
- label: "\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E32\u0E14\u0E2B\u0E27\u0E31\u0E07 (KPI)",
3456
+ title: "\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E32\u0E14\u0E2B\u0E27\u0E31\u0E07 (KPI)",
3421
3457
  placeholder: "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
3458
+ required: true,
3422
3459
  onChange: (value) => {
3423
3460
  if (value === void 0 || value === "") {
3424
3461
  setKpiValue("");
@@ -3436,71 +3473,60 @@ function KpiSection({ type, onChangeKpiList }) {
3436
3473
  error: errors.kpiValue
3437
3474
  }
3438
3475
  ),
3439
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3476
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3440
3477
  InputField,
3441
3478
  {
3442
3479
  value: unitValue,
3443
- label: "\u0E2B\u0E19\u0E48\u0E27\u0E22",
3480
+ title: "\u0E2B\u0E19\u0E48\u0E27\u0E22",
3444
3481
  placeholder: "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
3482
+ required: true,
3445
3483
  onChange: (value) => setUnitValue(value ?? ""),
3446
3484
  className: "h-[32px]",
3447
3485
  error: errors.unitValue
3448
3486
  }
3449
3487
  ),
3450
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3451
- "div",
3488
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: `flex justify-end mt-[28px]`, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3489
+ import_icons_react11.IconCirclePlus,
3452
3490
  {
3453
- className: `flex justify-end mt-[28px]`,
3454
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3455
- import_icons_react11.IconCirclePlus,
3456
- {
3457
- className: "w-[40px] h-[40px] cursor-pointer hover:scale-110 transition",
3458
- stroke: 1,
3459
- onClick: () => handleAddKpi(type)
3460
- }
3461
- )
3491
+ className: "w-[40px] h-[40px] cursor-pointer hover:scale-110 transition",
3492
+ stroke: 1,
3493
+ onClick: () => handleAddKpi(type)
3462
3494
  }
3463
- )
3495
+ ) })
3464
3496
  ] }),
3465
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { children: kpiList.map((kpi, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3497
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children: kpiList.map((kpi, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3466
3498
  "div",
3467
3499
  {
3468
3500
  className: "grid grid-cols-[30px_1fr_100px_120px_80px] items-start py-2 body-1 gap-[8px]",
3469
3501
  children: [
3470
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { className: `body-1 ${kpi.isEditing ? "mt-[12px]" : ""}`, children: [
3502
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("p", { className: `body-1 ${kpi.isEditing ? "mt-[12px]" : ""}`, children: [
3471
3503
  index + 1,
3472
3504
  "."
3473
3505
  ] }),
3474
- kpi.isEditing ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
3475
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3506
+ kpi.isEditing ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
3507
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3476
3508
  InputField,
3477
3509
  {
3478
3510
  value: kpi.name,
3479
3511
  onChange: (value) => setKpiList(
3480
- (prev) => prev.map(
3481
- (item) => item.id === kpi.id ? { ...item, name: value ?? "" } : item
3482
- )
3512
+ (prev) => prev.map((item) => item.id === kpi.id ? { ...item, name: value ?? "" } : item)
3483
3513
  ),
3484
3514
  error: itemErrors[kpi.id]?.name
3485
3515
  }
3486
3516
  ),
3487
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3517
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3488
3518
  InputField,
3489
3519
  {
3490
3520
  value: kpi.value?.toString(),
3491
3521
  onChange: (value) => {
3492
3522
  if (value === void 0 || value === "") {
3493
3523
  setKpiList(
3494
- (prev) => prev.map(
3495
- (item) => item.id === kpi.id ? { ...item, value: "" } : item
3496
- )
3524
+ (prev) => prev.map((item) => item.id === kpi.id ? { ...item, value: "" } : item)
3497
3525
  );
3498
3526
  setHasShownError(false);
3499
3527
  } else if (/^\d*\.?\d*$/.test(value)) {
3500
3528
  setKpiList(
3501
- (prev) => prev.map(
3502
- (item) => item.id === kpi.id ? { ...item, value } : item
3503
- )
3529
+ (prev) => prev.map((item) => item.id === kpi.id ? { ...item, value } : item)
3504
3530
  );
3505
3531
  setHasShownError(false);
3506
3532
  } else {
@@ -3513,59 +3539,39 @@ function KpiSection({ type, onChangeKpiList }) {
3513
3539
  error: itemErrors[kpi.id]?.value
3514
3540
  }
3515
3541
  ),
3516
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3542
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3517
3543
  InputField,
3518
3544
  {
3519
3545
  value: kpi.unit,
3520
3546
  onChange: (value) => setKpiList(
3521
- (prev) => prev.map(
3522
- (item) => item.id === kpi.id ? { ...item, unit: value ?? "" } : item
3523
- )
3547
+ (prev) => prev.map((item) => item.id === kpi.id ? { ...item, unit: value ?? "" } : item)
3524
3548
  ),
3525
3549
  error: itemErrors[kpi.id]?.unit
3526
3550
  }
3527
3551
  ),
3528
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3552
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3529
3553
  "div",
3530
3554
  {
3531
3555
  className: `flex gap-2 justify-end self-center ${!!itemErrors[kpi.id]?.value || !!itemErrors[kpi.id]?.unit || !!itemErrors[kpi.id]?.name ? "mt-[-12px]" : ""}`,
3532
3556
  children: [
3533
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3557
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3534
3558
  import_icons_react11.IconCheck,
3535
3559
  {
3536
3560
  className: "w-[30px] h-[30px] cursor-pointer",
3537
3561
  onClick: () => handleSave(kpi.id, type)
3538
3562
  }
3539
3563
  ),
3540
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3541
- import_icons_react11.IconX,
3542
- {
3543
- className: "w-[30px] h-[30px] cursor-pointer",
3544
- onClick: () => handleCancel(kpi.id)
3545
- }
3546
- )
3564
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_react11.IconX, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleCancel(kpi.id) })
3547
3565
  ]
3548
3566
  }
3549
3567
  )
3550
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
3551
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "body-1", children: kpi.name }),
3552
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "body-1", children: kpi.value }),
3553
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "body-1", children: kpi.unit }),
3554
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex gap-3 justify-end", children: [
3555
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3556
- import_icons_react11.IconPencil,
3557
- {
3558
- className: "w-[30px] h-[30px] cursor-pointer",
3559
- onClick: () => handleEdit(kpi.id)
3560
- }
3561
- ),
3562
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3563
- import_icons_react11.IconTrash,
3564
- {
3565
- className: "w-[30px] h-[30px] cursor-pointer",
3566
- onClick: () => handleDelete(kpi.id)
3567
- }
3568
- )
3568
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
3569
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "body-1", children: kpi.name }),
3570
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "body-1", children: kpi.value }),
3571
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "body-1", children: kpi.unit }),
3572
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex gap-3 justify-end", children: [
3573
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_react11.IconPencil, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleEdit(kpi.id) }),
3574
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_react11.IconTrash, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleDelete(kpi.id) })
3569
3575
  ] })
3570
3576
  ] })
3571
3577
  ]
@@ -3573,101 +3579,69 @@ function KpiSection({ type, onChangeKpiList }) {
3573
3579
  kpi.id
3574
3580
  )) })
3575
3581
  ] }),
3576
- type === "text" && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "space-y-4", children: [
3577
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "grid grid-cols-[1fr_50px] w-full gap-[24px] items-start", children: [
3578
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3582
+ type === "text" && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "space-y-4", children: [
3583
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "grid grid-cols-[1fr_50px] w-full gap-[24px] items-start", children: [
3584
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3579
3585
  InputField,
3580
3586
  {
3581
3587
  value: nameKpi,
3582
- label: "\u0E0A\u0E37\u0E48\u0E2D\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E32\u0E14\u0E2B\u0E27\u0E31\u0E07 (KPI)",
3588
+ title: "\u0E0A\u0E37\u0E48\u0E2D\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E32\u0E14\u0E2B\u0E27\u0E31\u0E07 (KPI)",
3583
3589
  placeholder: "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
3590
+ required: true,
3584
3591
  onChange: (value) => setNameKpi(value ?? ""),
3585
3592
  className: "h-[32px]",
3586
3593
  error: errors.nameKpi
3587
3594
  }
3588
3595
  ),
3589
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3590
- "div",
3596
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: `flex justify-end mt-[28px]`, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3597
+ import_icons_react11.IconCirclePlus,
3591
3598
  {
3592
- className: `flex justify-end mt-[28px]`,
3593
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3594
- import_icons_react11.IconCirclePlus,
3595
- {
3596
- className: "w-[40px] h-[40px] cursor-pointer hover:scale-110 transition",
3597
- stroke: 1,
3598
- onClick: () => handleAddKpi(type)
3599
- }
3600
- )
3599
+ className: "w-[40px] h-[40px] cursor-pointer hover:scale-110 transition",
3600
+ stroke: 1,
3601
+ onClick: () => handleAddKpi(type)
3601
3602
  }
3602
- )
3603
+ ) })
3603
3604
  ] }),
3604
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { children: kpiList.map((kpi, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3605
- "div",
3606
- {
3607
- className: "grid grid-cols-[30px_1fr_80px] items-start py-2 body-1 gap-[8px]",
3608
- children: [
3609
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { className: `body-1 ${kpi.isEditing ? "mt-[12px]" : ""}`, children: [
3610
- index + 1,
3611
- "."
3612
- ] }),
3613
- kpi.isEditing ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
3614
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3615
- InputField,
3616
- {
3617
- value: kpi.name,
3618
- onChange: (value) => setKpiList(
3619
- (prev) => prev.map(
3620
- (item) => item.id === kpi.id ? { ...item, name: value ?? "" } : item
3621
- )
3622
- ),
3623
- error: itemErrors[kpi.id]?.name
3624
- }
3605
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children: kpiList.map((kpi, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "grid grid-cols-[30px_1fr_80px] items-start py-2 body-1 gap-[8px]", children: [
3606
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("p", { className: `body-1 ${kpi.isEditing ? "mt-[12px]" : ""}`, children: [
3607
+ index + 1,
3608
+ "."
3609
+ ] }),
3610
+ kpi.isEditing ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
3611
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3612
+ InputField,
3613
+ {
3614
+ value: kpi.name,
3615
+ onChange: (value) => setKpiList(
3616
+ (prev) => prev.map((item) => item.id === kpi.id ? { ...item, name: value ?? "" } : item)
3625
3617
  ),
3626
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3627
- "div",
3628
- {
3629
- className: `flex gap-2 justify-end self-center ${!!itemErrors[kpi.id]?.name ? "mt-[-12px]" : ""}`,
3630
- children: [
3631
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3632
- import_icons_react11.IconCheck,
3633
- {
3634
- className: "w-[30px] h-[30px] cursor-pointer",
3635
- onClick: () => handleSave(kpi.id, type)
3636
- }
3637
- ),
3638
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3639
- import_icons_react11.IconX,
3640
- {
3641
- className: "w-[30px] h-[30px] cursor-pointer",
3642
- onClick: () => handleCancel(kpi.id)
3643
- }
3644
- )
3645
- ]
3646
- }
3647
- )
3648
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
3649
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "body-1", children: kpi.name }),
3650
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex gap-3 justify-end", children: [
3651
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3652
- import_icons_react11.IconPencil,
3618
+ error: itemErrors[kpi.id]?.name
3619
+ }
3620
+ ),
3621
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3622
+ "div",
3623
+ {
3624
+ className: `flex gap-2 justify-end self-center ${!!itemErrors[kpi.id]?.name ? "mt-[-12px]" : ""}`,
3625
+ children: [
3626
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3627
+ import_icons_react11.IconCheck,
3653
3628
  {
3654
3629
  className: "w-[30px] h-[30px] cursor-pointer",
3655
- onClick: () => handleEdit(kpi.id)
3630
+ onClick: () => handleSave(kpi.id, type)
3656
3631
  }
3657
3632
  ),
3658
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3659
- import_icons_react11.IconTrash,
3660
- {
3661
- className: "w-[30px] h-[30px] cursor-pointer",
3662
- onClick: () => handleDelete(kpi.id)
3663
- }
3664
- )
3665
- ] })
3666
- ] })
3667
- ]
3668
- },
3669
- kpi.id
3670
- )) })
3633
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_react11.IconX, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleCancel(kpi.id) })
3634
+ ]
3635
+ }
3636
+ )
3637
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
3638
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "body-1", children: kpi.name }),
3639
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex gap-3 justify-end", children: [
3640
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_react11.IconPencil, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleEdit(kpi.id) }),
3641
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_react11.IconTrash, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleDelete(kpi.id) })
3642
+ ] })
3643
+ ] })
3644
+ ] }, kpi.id)) })
3671
3645
  ] })
3672
3646
  ] })
3673
3647
  }
@@ -3689,7 +3663,6 @@ function KpiSection({ type, onChangeKpiList }) {
3689
3663
  GhostButton,
3690
3664
  HeadingPage,
3691
3665
  InputField,
3692
- InputFieldNumber,
3693
3666
  KpiSection,
3694
3667
  Loader,
3695
3668
  MenuNavBar,