@esic-lab/data-core-ui 0.0.16 → 0.0.17

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.mjs CHANGED
@@ -629,7 +629,7 @@ function Switch({ label, checked, onChange, disabled }) {
629
629
  onChange(!checked);
630
630
  }
631
631
  };
632
- return /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-[10px]", children: [
632
+ return /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-[10px]", children: [
633
633
  label && /* @__PURE__ */ jsx9("p", { className: `body-1 ${disabled ? "opacity-50 select-none" : ""}`, children: label }),
634
634
  /* @__PURE__ */ jsx9(
635
635
  "button",
@@ -851,9 +851,9 @@ function DataTable({ columns, data, onSort, isLoading }) {
851
851
  }
852
852
 
853
853
  // src/Table/DataTable/AntDataTable.tsx
854
- import { Table } from "antd";
854
+ import { ConfigProvider, Table } from "antd";
855
855
  import { useState as useState3 } from "react";
856
- import { jsx as jsx15 } from "react/jsx-runtime";
856
+ import { Fragment as Fragment2, jsx as jsx15 } from "react/jsx-runtime";
857
857
  function AntDataTable({
858
858
  dataSource,
859
859
  columns,
@@ -871,17 +871,28 @@ function AntDataTable({
871
871
  onRowSelect && onRowSelect(newSelectedRowKeys);
872
872
  }
873
873
  };
874
- return /* @__PURE__ */ jsx15(
875
- Table,
874
+ return /* @__PURE__ */ jsx15(Fragment2, { children: /* @__PURE__ */ jsx15(
875
+ ConfigProvider,
876
876
  {
877
- dataSource,
878
- columns,
879
- rowSelection: rowCheckbox ? rowSelection : void 0,
880
- pagination: { position: ["bottomCenter"], pageSize },
881
- style: { width },
882
- scroll: { y: height }
877
+ theme: {
878
+ components: {},
879
+ token: {
880
+ fontFamily: "Kanit"
881
+ }
882
+ },
883
+ children: /* @__PURE__ */ jsx15(
884
+ Table,
885
+ {
886
+ dataSource,
887
+ columns,
888
+ rowSelection: rowCheckbox ? rowSelection : void 0,
889
+ pagination: { position: ["bottomCenter"], pageSize },
890
+ style: { width },
891
+ scroll: { y: height }
892
+ }
893
+ )
883
894
  }
884
- );
895
+ ) });
885
896
  }
886
897
 
887
898
  // src/Calendar/Calendar/Calendar.tsx
@@ -892,7 +903,7 @@ import timeGridPlugin from "@fullcalendar/timegrid";
892
903
  import interactionPlugin from "@fullcalendar/interaction";
893
904
  import thLocale from "@fullcalendar/core/locales/th";
894
905
  import { IconChevronLeft, IconChevronRight, IconX } from "@tabler/icons-react";
895
- import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
906
+ import { Fragment as Fragment3, jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
896
907
  function Calendar({ events }) {
897
908
  const calendarRef = useRef(null);
898
909
  const [monthTitle, setMonthTitle] = useState4("");
@@ -1012,7 +1023,7 @@ function Calendar({ events }) {
1012
1023
  });
1013
1024
  },
1014
1025
  eventContent: (arg) => {
1015
- return /* @__PURE__ */ jsx16(Fragment2, { children: /* @__PURE__ */ jsx16("div", { className: "flex items-center h-[28px] p-[4px] border-green-500 border-l-[10px] bg-red-400 rounded text-left text-white caption-1", children: arg.event.title }) });
1026
+ return /* @__PURE__ */ jsx16(Fragment3, { children: /* @__PURE__ */ jsx16("div", { className: "flex items-center h-[28px] p-[4px] border-green-500 border-l-[10px] bg-red-400 rounded text-left text-white caption-1", children: arg.event.title }) });
1016
1027
  },
1017
1028
  moreLinkContent: (arg) => `+${arg.num} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23`
1018
1029
  }
@@ -1091,12 +1102,12 @@ function TextInput({
1091
1102
  }
1092
1103
 
1093
1104
  // src/InputField/InputField.tsx
1094
- import { ConfigProvider, Input } from "antd";
1105
+ import { ConfigProvider as ConfigProvider2, Input } from "antd";
1095
1106
  import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
1096
1107
  function InputField({
1097
1108
  value,
1098
1109
  onChange,
1099
- placeholder,
1110
+ placeholder = "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
1100
1111
  title,
1101
1112
  require: require2,
1102
1113
  bottomText,
@@ -1105,19 +1116,20 @@ function InputField({
1105
1116
  errorMessage,
1106
1117
  addonBefore,
1107
1118
  addonAfter,
1108
- defaultValue
1119
+ defaultValue,
1120
+ className
1109
1121
  }) {
1110
1122
  return /* @__PURE__ */ jsx18(
1111
- ConfigProvider,
1123
+ ConfigProvider2,
1112
1124
  {
1113
1125
  theme: {
1114
1126
  token: {
1115
1127
  fontFamily: "Kanit"
1116
1128
  }
1117
1129
  },
1118
- children: /* @__PURE__ */ jsxs14("div", { children: [
1130
+ children: /* @__PURE__ */ jsxs14("div", { className: "container-input", children: [
1119
1131
  /* @__PURE__ */ jsxs14("div", { children: [
1120
- /* @__PURE__ */ jsx18("span", { className: "body-3", children: title }),
1132
+ /* @__PURE__ */ jsx18("span", { className: "body-1", children: title }),
1121
1133
  " ",
1122
1134
  require2 && /* @__PURE__ */ jsx18("span", { className: "text-red-500", children: "*" })
1123
1135
  ] }),
@@ -1127,6 +1139,7 @@ function InputField({
1127
1139
  value,
1128
1140
  placeholder,
1129
1141
  disabled,
1142
+ className: `body-1 w-full ${className ?? ""}`,
1130
1143
  onChange: (e) => onChange(e.target.value || void 0),
1131
1144
  allowClear: true,
1132
1145
  addonBefore,
@@ -1145,8 +1158,8 @@ function InputField({
1145
1158
  }
1146
1159
 
1147
1160
  // src/Input/TextArea/TextArea.tsx
1148
- import { Input as Input2 } from "antd";
1149
- import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
1161
+ import { ConfigProvider as ConfigProvider3, Input as Input2 } from "antd";
1162
+ import { Fragment as Fragment4, jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
1150
1163
  var { TextArea } = Input2;
1151
1164
  function TextAreaInput({
1152
1165
  label,
@@ -1161,34 +1174,45 @@ function TextAreaInput({
1161
1174
  error,
1162
1175
  disabled
1163
1176
  }) {
1164
- return /* @__PURE__ */ jsxs15("div", { children: [
1165
- label && /* @__PURE__ */ jsxs15("p", { className: "body-1 mb-[8px]", children: [
1166
- label,
1167
- " ",
1168
- required && /* @__PURE__ */ jsx19("span", { className: "text-red-500", children: "\xA0*" })
1169
- ] }),
1170
- /* @__PURE__ */ jsx19(
1171
- TextArea,
1172
- {
1173
- value,
1174
- rows: height,
1175
- style: {
1176
- ...error && resizable ? { borderColor: "red" } : {},
1177
- ...disabled || !resizable ? { resize: "none" } : {}
1178
- },
1179
- placeholder,
1180
- maxLength,
1181
- showCount,
1182
- onChange: (e) => onChange(e.target.value),
1183
- disabled
1184
- }
1185
- ),
1186
- error && /* @__PURE__ */ jsx19("p", { className: "text-red-600 body-1", children: error })
1187
- ] });
1177
+ return /* @__PURE__ */ jsx19(Fragment4, { children: /* @__PURE__ */ jsx19(
1178
+ ConfigProvider3,
1179
+ {
1180
+ theme: {
1181
+ components: {},
1182
+ token: {
1183
+ fontFamily: "Kanit"
1184
+ }
1185
+ },
1186
+ children: /* @__PURE__ */ jsxs15("div", { children: [
1187
+ label && /* @__PURE__ */ jsxs15("p", { className: "body-1 mb-[8px]", children: [
1188
+ label,
1189
+ " ",
1190
+ required && /* @__PURE__ */ jsx19("span", { className: "text-red-500", children: "\xA0*" })
1191
+ ] }),
1192
+ /* @__PURE__ */ jsx19(
1193
+ TextArea,
1194
+ {
1195
+ value,
1196
+ rows: height,
1197
+ style: {
1198
+ ...error && resizable ? { borderColor: "red" } : {},
1199
+ ...disabled || !resizable ? { resize: "none" } : {}
1200
+ },
1201
+ placeholder,
1202
+ maxLength,
1203
+ showCount,
1204
+ onChange: (e) => onChange(e.target.value),
1205
+ disabled
1206
+ }
1207
+ ),
1208
+ error && /* @__PURE__ */ jsx19("p", { className: "text-red-600 body-1", children: error })
1209
+ ] })
1210
+ }
1211
+ ) });
1188
1212
  }
1189
1213
 
1190
1214
  // src/ColorPicker/ColorPicker.tsx
1191
- import { ConfigProvider as ConfigProvider2, ColorPicker } from "antd";
1215
+ import { ConfigProvider as ConfigProvider4, ColorPicker } from "antd";
1192
1216
  import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
1193
1217
  function ColorPickerBasic({
1194
1218
  value,
@@ -1205,16 +1229,16 @@ function ColorPickerBasic({
1205
1229
  placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E35"
1206
1230
  }) {
1207
1231
  return /* @__PURE__ */ jsx20(
1208
- ConfigProvider2,
1232
+ ConfigProvider4,
1209
1233
  {
1210
1234
  theme: {
1211
1235
  token: {
1212
1236
  fontFamily: "Kanit"
1213
1237
  }
1214
1238
  },
1215
- children: /* @__PURE__ */ jsxs16("div", { children: [
1239
+ children: /* @__PURE__ */ jsxs16("div", { className: "container-input", children: [
1216
1240
  /* @__PURE__ */ jsxs16("div", { children: [
1217
- /* @__PURE__ */ jsx20("span", { className: "body-3", children: title }),
1241
+ /* @__PURE__ */ jsx20("span", { className: "body-1", children: title }),
1218
1242
  " ",
1219
1243
  require2 && /* @__PURE__ */ jsx20("span", { className: "text-red-500", children: "*" })
1220
1244
  ] }),
@@ -1222,7 +1246,7 @@ function ColorPickerBasic({
1222
1246
  ColorPicker,
1223
1247
  {
1224
1248
  defaultFormat,
1225
- className,
1249
+ className: `body-1 w-full ${className ?? ""}`,
1226
1250
  value,
1227
1251
  defaultValue: "#ffff",
1228
1252
  onChange,
@@ -1254,7 +1278,7 @@ function ColorPickerBasic({
1254
1278
  // src/DatePicker/DatePickerBasic/DatePickerBasic.tsx
1255
1279
  var import_dayjs = __toESM(require_dayjs_min());
1256
1280
  var import_th2 = __toESM(require_th());
1257
- import { ConfigProvider as ConfigProvider3, DatePicker } from "antd";
1281
+ import { ConfigProvider as ConfigProvider5, DatePicker } from "antd";
1258
1282
  import thTH from "antd/locale/th_TH";
1259
1283
  import { jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
1260
1284
  function DatePickerBasic({
@@ -1265,7 +1289,7 @@ function DatePickerBasic({
1265
1289
  bottomText,
1266
1290
  showError,
1267
1291
  errorMessage,
1268
- placeholder,
1292
+ placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48",
1269
1293
  disabled,
1270
1294
  defaultValue,
1271
1295
  minDate,
@@ -1277,7 +1301,7 @@ function DatePickerBasic({
1277
1301
  const dateFormat = "DD/MM/YYYY";
1278
1302
  import_dayjs.default.locale("th_TH");
1279
1303
  return /* @__PURE__ */ jsx21(
1280
- ConfigProvider3,
1304
+ ConfigProvider5,
1281
1305
  {
1282
1306
  locale: thTH,
1283
1307
  theme: {
@@ -1285,16 +1309,16 @@ function DatePickerBasic({
1285
1309
  fontFamily: "Kanit"
1286
1310
  }
1287
1311
  },
1288
- children: /* @__PURE__ */ jsxs17("div", { children: [
1312
+ children: /* @__PURE__ */ jsxs17("div", { className: "container-input", children: [
1289
1313
  /* @__PURE__ */ jsxs17("div", { children: [
1290
- /* @__PURE__ */ jsx21("span", { className: "body-3", children: title }),
1314
+ /* @__PURE__ */ jsx21("span", { className: "body-1", children: title }),
1291
1315
  " ",
1292
1316
  require2 && /* @__PURE__ */ jsx21("span", { className: "text-red-500", children: "*" })
1293
1317
  ] }),
1294
1318
  /* @__PURE__ */ jsx21(
1295
1319
  DatePicker,
1296
1320
  {
1297
- className: `body-1 ${className ?? ""}`,
1321
+ className: `body-1 w-full ${className ?? ""}`,
1298
1322
  value,
1299
1323
  placeholder,
1300
1324
  onChange,
@@ -1322,7 +1346,7 @@ function DatePickerBasic({
1322
1346
  var import_th3 = __toESM(require_th());
1323
1347
  var import_customParseFormat = __toESM(require_customParseFormat());
1324
1348
  var import_dayjs2 = __toESM(require_dayjs_min());
1325
- import { ConfigProvider as ConfigProvider4, DatePicker as DatePicker2 } from "antd";
1349
+ import { ConfigProvider as ConfigProvider6, DatePicker as DatePicker2 } from "antd";
1326
1350
  import thTH2 from "antd/locale/th_TH";
1327
1351
  import { jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
1328
1352
  import_dayjs2.default.extend(import_customParseFormat.default);
@@ -1347,7 +1371,7 @@ function DatePickerRangePicker({
1347
1371
  const dateFormat = "DD/MM/YYYY";
1348
1372
  import_dayjs2.default.locale("th_TH");
1349
1373
  return /* @__PURE__ */ jsx22(
1350
- ConfigProvider4,
1374
+ ConfigProvider6,
1351
1375
  {
1352
1376
  locale: thTH2,
1353
1377
  theme: {
@@ -1355,9 +1379,9 @@ function DatePickerRangePicker({
1355
1379
  fontFamily: "Kanit"
1356
1380
  }
1357
1381
  },
1358
- children: /* @__PURE__ */ jsxs18("div", { children: [
1382
+ children: /* @__PURE__ */ jsxs18("div", { className: "container-input", children: [
1359
1383
  /* @__PURE__ */ jsxs18("div", { children: [
1360
- /* @__PURE__ */ jsx22("span", { className: "body-3", children: title }),
1384
+ /* @__PURE__ */ jsx22("span", { className: "body-1", children: title }),
1361
1385
  " ",
1362
1386
  require2 && /* @__PURE__ */ jsx22("span", { className: "text-red-500", children: "*" })
1363
1387
  ] }),
@@ -1367,7 +1391,7 @@ function DatePickerRangePicker({
1367
1391
  format: dateFormat,
1368
1392
  value,
1369
1393
  placeholder,
1370
- className: `body-1 ${className ?? ""}`,
1394
+ className: `body-1 w-full ${className ?? ""}`,
1371
1395
  onChange,
1372
1396
  allowClear: true,
1373
1397
  disabled,
@@ -1390,30 +1414,20 @@ function DatePickerRangePicker({
1390
1414
  }
1391
1415
 
1392
1416
  // src/TimePicker/TimePickerBasic/TimePickerBasic.tsx
1393
- import { ConfigProvider as ConfigProvider5, TimePicker } from "antd";
1417
+ import { ConfigProvider as ConfigProvider7, TimePicker } from "antd";
1394
1418
  import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
1395
- function TimePickerBasic({
1396
- value,
1397
- onChange,
1398
- require: require2,
1399
- title,
1400
- bottomText,
1401
- showError,
1402
- errorMessage,
1403
- placeholder,
1404
- disabled
1405
- }) {
1419
+ function TimePickerBasic({ value, onChange, require: require2, title, bottomText, showError, errorMessage, placeholder, disabled, className }) {
1406
1420
  return /* @__PURE__ */ jsx23(
1407
- ConfigProvider5,
1421
+ ConfigProvider7,
1408
1422
  {
1409
1423
  theme: {
1410
1424
  token: {
1411
1425
  fontFamily: "Kanit"
1412
1426
  }
1413
1427
  },
1414
- children: /* @__PURE__ */ jsxs19("div", { children: [
1428
+ children: /* @__PURE__ */ jsxs19("div", { className: "container-input", children: [
1415
1429
  /* @__PURE__ */ jsxs19("div", { children: [
1416
- /* @__PURE__ */ jsx23("span", { className: "body-3", children: title }),
1430
+ /* @__PURE__ */ jsx23("span", { className: "body-1", children: title }),
1417
1431
  " ",
1418
1432
  require2 && /* @__PURE__ */ jsx23("span", { className: "text-red-500", children: "*" })
1419
1433
  ] }),
@@ -1421,7 +1435,7 @@ function TimePickerBasic({
1421
1435
  TimePicker,
1422
1436
  {
1423
1437
  format: "HH:mm",
1424
- className: "body-1",
1438
+ className: `body-1 w-full ${className ?? ""}`,
1425
1439
  value,
1426
1440
  placeholder,
1427
1441
  onChange,
@@ -1440,7 +1454,7 @@ function TimePickerBasic({
1440
1454
  }
1441
1455
 
1442
1456
  // src/TimePicker/TimePickerRangePicker/TimerPickerRangePicker.tsx
1443
- import { ConfigProvider as ConfigProvider6, TimePicker as TimePicker2 } from "antd";
1457
+ import { ConfigProvider as ConfigProvider8, TimePicker as TimePicker2 } from "antd";
1444
1458
  import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
1445
1459
  function TimePickerRangePicker({
1446
1460
  value,
@@ -1451,19 +1465,20 @@ function TimePickerRangePicker({
1451
1465
  bottomText,
1452
1466
  showError,
1453
1467
  errorMessage,
1454
- disabled
1468
+ disabled,
1469
+ className
1455
1470
  }) {
1456
1471
  return /* @__PURE__ */ jsx24(
1457
- ConfigProvider6,
1472
+ ConfigProvider8,
1458
1473
  {
1459
1474
  theme: {
1460
1475
  token: {
1461
1476
  fontFamily: "Kanit"
1462
1477
  }
1463
1478
  },
1464
- children: /* @__PURE__ */ jsxs20("div", { children: [
1479
+ children: /* @__PURE__ */ jsxs20("div", { className: "container-input", children: [
1465
1480
  /* @__PURE__ */ jsxs20("div", { children: [
1466
- /* @__PURE__ */ jsx24("span", { className: "body-3", children: title }),
1481
+ /* @__PURE__ */ jsx24("span", { className: "body-1", children: title }),
1467
1482
  " ",
1468
1483
  require2 && /* @__PURE__ */ jsx24("span", { className: "text-red-500", children: "*" })
1469
1484
  ] }),
@@ -1473,7 +1488,7 @@ function TimePickerRangePicker({
1473
1488
  format: "HH:mm",
1474
1489
  value,
1475
1490
  placeholder,
1476
- className: "body-1",
1491
+ className: `body-1 w-full ${className ?? ""}`,
1477
1492
  onChange,
1478
1493
  allowClear: true,
1479
1494
  disabled
@@ -1490,12 +1505,12 @@ function TimePickerRangePicker({
1490
1505
  }
1491
1506
 
1492
1507
  // src/Select/SelectField/SelectField.tsx
1493
- import { Select, ConfigProvider as ConfigProvider7 } from "antd";
1508
+ import { Select, ConfigProvider as ConfigProvider9 } from "antd";
1494
1509
  import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
1495
1510
  function SelectField({
1496
1511
  value,
1497
1512
  onChange,
1498
- placeholder,
1513
+ placeholder = "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
1499
1514
  title,
1500
1515
  require: require2,
1501
1516
  bottomText,
@@ -1507,26 +1522,20 @@ function SelectField({
1507
1522
  mode,
1508
1523
  prefix,
1509
1524
  prefixSize = 20,
1510
- handleSearch
1525
+ handleSearch,
1526
+ className
1511
1527
  }) {
1512
1528
  return /* @__PURE__ */ jsx25(
1513
- ConfigProvider7,
1529
+ ConfigProvider9,
1514
1530
  {
1515
1531
  theme: {
1516
- components: {
1517
- Select: {
1518
- hoverBorderColor: "#D9D9D9",
1519
- activeBorderColor: "#D9D9D9",
1520
- activeOutlineColor: "#D9D9D9"
1521
- }
1522
- },
1523
1532
  token: {
1524
1533
  fontFamily: "Kanit"
1525
1534
  }
1526
1535
  },
1527
- children: /* @__PURE__ */ jsxs21("div", { children: [
1536
+ children: /* @__PURE__ */ jsxs21("div", { className: "container-input", children: [
1528
1537
  /* @__PURE__ */ jsxs21("div", { children: [
1529
- /* @__PURE__ */ jsx25("span", { className: "body-3", children: title }),
1538
+ /* @__PURE__ */ jsx25("span", { className: "body-1", children: title }),
1530
1539
  " ",
1531
1540
  require2 && /* @__PURE__ */ jsx25("span", { className: "text-red-500", children: "*" })
1532
1541
  ] }),
@@ -1537,7 +1546,7 @@ function SelectField({
1537
1546
  value,
1538
1547
  defaultValue,
1539
1548
  onChange,
1540
- className: "body-3 flex justify-center w-full",
1549
+ className: `body-1 flex justify-center w-full ${className ?? ""}`,
1541
1550
  placeholder,
1542
1551
  optionFilterProp: "label",
1543
1552
  filterOption: (input, option) => (option?.label ?? "").toString().toLowerCase().includes(input.toLowerCase()),
@@ -1560,12 +1569,12 @@ function SelectField({
1560
1569
  }
1561
1570
 
1562
1571
  // src/Select/SelectFieldGroup/SelectFieldGroup.tsx
1563
- import { Select as Select2, ConfigProvider as ConfigProvider8 } from "antd";
1572
+ import { Select as Select2, ConfigProvider as ConfigProvider10 } from "antd";
1564
1573
  import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
1565
1574
  function SelectFieldGroup({
1566
1575
  value,
1567
1576
  onChange,
1568
- placeholder,
1577
+ placeholder = "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38",
1569
1578
  title,
1570
1579
  require: require2,
1571
1580
  bottomText,
@@ -1577,26 +1586,20 @@ function SelectFieldGroup({
1577
1586
  mode,
1578
1587
  prefix,
1579
1588
  prefixSize = 20,
1580
- handleSearch
1589
+ handleSearch,
1590
+ className
1581
1591
  }) {
1582
1592
  return /* @__PURE__ */ jsx26(
1583
- ConfigProvider8,
1593
+ ConfigProvider10,
1584
1594
  {
1585
1595
  theme: {
1586
- components: {
1587
- Select: {
1588
- hoverBorderColor: "#D9D9D9",
1589
- activeBorderColor: "#D9D9D9",
1590
- activeOutlineColor: "#D9D9D9"
1591
- }
1592
- },
1593
1596
  token: {
1594
1597
  fontFamily: "Kanit"
1595
1598
  }
1596
1599
  },
1597
- children: /* @__PURE__ */ jsxs22("div", { children: [
1600
+ children: /* @__PURE__ */ jsxs22("div", { className: "container-input", children: [
1598
1601
  /* @__PURE__ */ jsxs22("div", { children: [
1599
- /* @__PURE__ */ jsx26("span", { className: "body-3", children: title }),
1602
+ /* @__PURE__ */ jsx26("span", { className: "body-1", children: title }),
1600
1603
  " ",
1601
1604
  require2 && /* @__PURE__ */ jsx26("span", { className: "text-red-500", children: "*" })
1602
1605
  ] }),
@@ -1607,7 +1610,7 @@ function SelectFieldGroup({
1607
1610
  value,
1608
1611
  defaultValue,
1609
1612
  onChange,
1610
- className: "body-3 flex justify-center w-full",
1613
+ className: `body-1 flex justify-center w-full ${className ?? ""}`,
1611
1614
  placeholder,
1612
1615
  optionFilterProp: "label",
1613
1616
  filterOption: (input, option) => (option?.label ?? "").toString().toLowerCase().includes(input.toLowerCase()),
@@ -1642,7 +1645,7 @@ function SelectFieldGroup({
1642
1645
  }
1643
1646
 
1644
1647
  // src/Select/SelectFieldStatus/SelectFieldStatus.tsx
1645
- import { Select as Select3, ConfigProvider as ConfigProvider9 } from "antd";
1648
+ import { Select as Select3, ConfigProvider as ConfigProvider11 } from "antd";
1646
1649
 
1647
1650
  // src/Select/SelectFieldStatus/StatusMockup.ts
1648
1651
  var status = [
@@ -1665,11 +1668,13 @@ function SelectFieldStatus({
1665
1668
  bottomText,
1666
1669
  disabled,
1667
1670
  showError,
1668
- errorMessage
1671
+ errorMessage,
1672
+ options,
1673
+ className
1669
1674
  }) {
1670
1675
  const selectedItem = status.find((s) => s.value === value);
1671
1676
  return /* @__PURE__ */ jsx27(
1672
- ConfigProvider9,
1677
+ ConfigProvider11,
1673
1678
  {
1674
1679
  theme: {
1675
1680
  components: {
@@ -1684,9 +1689,9 @@ function SelectFieldStatus({
1684
1689
  fontFamily: "Kanit"
1685
1690
  }
1686
1691
  },
1687
- children: /* @__PURE__ */ jsxs23("div", { children: [
1692
+ children: /* @__PURE__ */ jsxs23("div", { className: "container-input", children: [
1688
1693
  /* @__PURE__ */ jsxs23("div", { children: [
1689
- /* @__PURE__ */ jsx27("span", { className: "body-3", children: title }),
1694
+ /* @__PURE__ */ jsx27("span", { className: "body-1", children: title }),
1690
1695
  " ",
1691
1696
  require2 && /* @__PURE__ */ jsx27("span", { className: "text-red-500", children: "*" })
1692
1697
  ] }),
@@ -1697,15 +1702,11 @@ function SelectFieldStatus({
1697
1702
  suffixIcon: /* @__PURE__ */ jsx27(DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
1698
1703
  value,
1699
1704
  onChange,
1700
- className: "body-3 custom-select flex justify-center w-full",
1705
+ className: `body-3 custom-select flex justify-center w-full ${className ?? ""}`,
1701
1706
  placeholder,
1702
1707
  optionFilterProp: "label",
1703
- filterSort: (optionA, optionB) => (optionA?.label ?? "").toLowerCase().localeCompare((optionB?.label ?? "").toLowerCase()),
1704
- options: status.map((s) => ({
1705
- value: s.value,
1706
- label: s.label,
1707
- color: s.color
1708
- }))
1708
+ filterOption: (input, option) => (option?.label ?? "").toString().toLowerCase().includes(input.toLowerCase()),
1709
+ options
1709
1710
  }
1710
1711
  ),
1711
1712
  /* @__PURE__ */ jsxs23("div", { children: [
@@ -1719,7 +1720,7 @@ function SelectFieldStatus({
1719
1720
  }
1720
1721
 
1721
1722
  // src/Select/SelectFieldStatusReport/SelectFieldStatusReport.tsx
1722
- import { Select as Select4, ConfigProvider as ConfigProvider10 } from "antd";
1723
+ import { Select as Select4, ConfigProvider as ConfigProvider12 } from "antd";
1723
1724
 
1724
1725
  // src/Select/SelectFieldStatusReport/StatusReportMockup.ts
1725
1726
  var status2 = [
@@ -1739,11 +1740,12 @@ function SelectFieldStatusReport({
1739
1740
  bottomText,
1740
1741
  disabled,
1741
1742
  showError,
1742
- errorMessage
1743
+ errorMessage,
1744
+ className
1743
1745
  }) {
1744
1746
  const selectedItem = status2.find((s) => s.value === value);
1745
1747
  return /* @__PURE__ */ jsx28(
1746
- ConfigProvider10,
1748
+ ConfigProvider12,
1747
1749
  {
1748
1750
  theme: {
1749
1751
  components: {
@@ -1758,9 +1760,9 @@ function SelectFieldStatusReport({
1758
1760
  fontFamily: "Kanit"
1759
1761
  }
1760
1762
  },
1761
- children: /* @__PURE__ */ jsxs24("div", { children: [
1763
+ children: /* @__PURE__ */ jsxs24("div", { className: "container-input", children: [
1762
1764
  /* @__PURE__ */ jsxs24("div", { children: [
1763
- /* @__PURE__ */ jsx28("span", { className: "body-3", children: title }),
1765
+ /* @__PURE__ */ jsx28("span", { className: "body-1", children: title }),
1764
1766
  " ",
1765
1767
  require2 && /* @__PURE__ */ jsx28("span", { className: "text-red-500", children: "*" })
1766
1768
  ] }),
@@ -1771,7 +1773,7 @@ function SelectFieldStatusReport({
1771
1773
  suffixIcon: /* @__PURE__ */ jsx28(DownOutlined2, { style: { color: value ? "#fff" : "#D9D9D9" } }),
1772
1774
  value,
1773
1775
  onChange,
1774
- className: "body-3 custom-select flex justify-center w-full",
1776
+ className: `body-3 custom-select flex justify-center w-full ${className ?? ""}`,
1775
1777
  placeholder,
1776
1778
  optionFilterProp: "label",
1777
1779
  filterSort: (optionA, optionB) => (optionA?.label ?? "").toLowerCase().localeCompare((optionB?.label ?? "").toLowerCase()),
@@ -1793,7 +1795,7 @@ function SelectFieldStatusReport({
1793
1795
  }
1794
1796
 
1795
1797
  // src/Select/SelectFieldTag/SelectFieldTag.tsx
1796
- import { Select as Select5, ConfigProvider as ConfigProvider11 } from "antd";
1798
+ import { Select as Select5, ConfigProvider as ConfigProvider13 } from "antd";
1797
1799
  import { useState as useState6 } from "react";
1798
1800
  import { jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
1799
1801
  function SelectFieldTag({
@@ -1805,6 +1807,7 @@ function SelectFieldTag({
1805
1807
  showError,
1806
1808
  errorMessage,
1807
1809
  value: controlledValue,
1810
+ className,
1808
1811
  onChange
1809
1812
  }) {
1810
1813
  const [internalValue, setInternalValue] = useState6([]);
@@ -1829,23 +1832,16 @@ function SelectFieldTag({
1829
1832
  onChange?.([]);
1830
1833
  };
1831
1834
  return /* @__PURE__ */ jsx29(
1832
- ConfigProvider11,
1835
+ ConfigProvider13,
1833
1836
  {
1834
1837
  theme: {
1835
- components: {
1836
- Select: {
1837
- hoverBorderColor: "#D9D9D9",
1838
- activeBorderColor: "#D9D9D9",
1839
- activeOutlineColor: "#D9D9D9"
1840
- }
1841
- },
1842
1838
  token: {
1843
1839
  fontFamily: "Kanit"
1844
1840
  }
1845
1841
  },
1846
- children: /* @__PURE__ */ jsxs25("div", { children: [
1842
+ children: /* @__PURE__ */ jsxs25("div", { className: "container-input", children: [
1847
1843
  /* @__PURE__ */ jsxs25("div", { children: [
1848
- /* @__PURE__ */ jsx29("span", { className: "body-3", children: title }),
1844
+ /* @__PURE__ */ jsx29("span", { className: "body-1", children: title }),
1849
1845
  " ",
1850
1846
  require2 && /* @__PURE__ */ jsx29("span", { className: "text-red-500", children: "*" })
1851
1847
  ] }),
@@ -1853,7 +1849,7 @@ function SelectFieldTag({
1853
1849
  Select5,
1854
1850
  {
1855
1851
  mode: "tags",
1856
- className: "flex justify-center w-full",
1852
+ className: `body-1 flex justify-center w-full ${className ?? ""}`,
1857
1853
  placeholder,
1858
1854
  value,
1859
1855
  onChange: handleChange,
@@ -1878,7 +1874,7 @@ function SelectFieldTag({
1878
1874
  }
1879
1875
 
1880
1876
  // src/SortFilter/SortFilter.tsx
1881
- import { ConfigProvider as ConfigProvider12 } from "antd";
1877
+ import { ConfigProvider as ConfigProvider14 } from "antd";
1882
1878
  import { CalendarOutlined } from "@ant-design/icons";
1883
1879
 
1884
1880
  // src/SortFilter/DataMockSortFilter.ts
@@ -1923,7 +1919,7 @@ function SortFilter({
1923
1919
  const [monthValue, setMonthValue] = useState7();
1924
1920
  const [quarterValue, setQuartersValue] = useState7();
1925
1921
  return /* @__PURE__ */ jsx30(
1926
- ConfigProvider12,
1922
+ ConfigProvider14,
1927
1923
  {
1928
1924
  theme: {
1929
1925
  token: {
@@ -1998,7 +1994,7 @@ function SortFilter({
1998
1994
  // src/Upload/FileUploader/FileUploader.tsx
1999
1995
  import { IconPaperclip, IconUpload, IconTrash } from "@tabler/icons-react";
2000
1996
  import { useRef as useRef2, useState as useState8 } from "react";
2001
- import { Fragment as Fragment3, jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
1997
+ import { Fragment as Fragment5, jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
2002
1998
  function FileUploader({
2003
1999
  onUpload,
2004
2000
  onError,
@@ -2080,10 +2076,10 @@ function FileUploader({
2080
2076
  className: `h-[34px] flex justify-center items-center gap-2 w-full rounded-[2px] border border-gray-200 body-1
2081
2077
  ${disabled ? "cursor-not-allowed text-gray-400 bg-gray-100" : "cursor-pointer hover:text-primary-400 hover:border-primary-200 duration-300"}`,
2082
2078
  disabled: disabled ? disabled : uploading,
2083
- children: uploading ? /* @__PURE__ */ jsxs27(Fragment3, { children: [
2079
+ children: uploading ? /* @__PURE__ */ jsxs27(Fragment5, { children: [
2084
2080
  /* @__PURE__ */ jsx31(Loader, { size: 15 }),
2085
2081
  " \u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14"
2086
- ] }) : /* @__PURE__ */ jsxs27(Fragment3, { children: [
2082
+ ] }) : /* @__PURE__ */ jsxs27(Fragment5, { children: [
2087
2083
  /* @__PURE__ */ jsx31(IconUpload, { size: 15, className: "text-gray-400" }),
2088
2084
  " \u0E41\u0E19\u0E1A\u0E44\u0E1F\u0E25\u0E4C"
2089
2085
  ] })
@@ -2165,7 +2161,7 @@ function messageLoading(content, duration) {
2165
2161
  }
2166
2162
 
2167
2163
  // src/Breadcrumb/Breadcrumb.tsx
2168
- import { ConfigProvider as ConfigProvider13 } from "antd";
2164
+ import { ConfigProvider as ConfigProvider15 } from "antd";
2169
2165
  import { Breadcrumb } from "antd";
2170
2166
  import { jsx as jsx32 } from "react/jsx-runtime";
2171
2167
  function Breadcrumbs({
@@ -2176,7 +2172,7 @@ function Breadcrumbs({
2176
2172
  params
2177
2173
  }) {
2178
2174
  return /* @__PURE__ */ jsx32(
2179
- ConfigProvider13,
2175
+ ConfigProvider15,
2180
2176
  {
2181
2177
  theme: {
2182
2178
  token: {
@@ -2198,7 +2194,7 @@ function Breadcrumbs({
2198
2194
  }
2199
2195
 
2200
2196
  // src/HeadingPage/HeadingPage.tsx
2201
- import { ConfigProvider as ConfigProvider14 } from "antd";
2197
+ import { ConfigProvider as ConfigProvider16 } from "antd";
2202
2198
  import { jsx as jsx33, jsxs as jsxs28 } from "react/jsx-runtime";
2203
2199
  function HeadingPage({ Heading }) {
2204
2200
  const today = (/* @__PURE__ */ new Date()).toLocaleDateString("th-TH", {
@@ -2208,7 +2204,7 @@ function HeadingPage({ Heading }) {
2208
2204
  year: "numeric"
2209
2205
  });
2210
2206
  return /* @__PURE__ */ jsx33(
2211
- ConfigProvider14,
2207
+ ConfigProvider16,
2212
2208
  {
2213
2209
  theme: {
2214
2210
  token: {
@@ -2227,7 +2223,7 @@ function HeadingPage({ Heading }) {
2227
2223
  }
2228
2224
 
2229
2225
  // src/Progress/ProgressBar.tsx
2230
- import { ConfigProvider as ConfigProvider15, Progress } from "antd";
2226
+ import { ConfigProvider as ConfigProvider17, Progress } from "antd";
2231
2227
  import { useEffect as useEffect2, useRef as useRef3, useState as useState9 } from "react";
2232
2228
  import { jsx as jsx34, jsxs as jsxs29 } from "react/jsx-runtime";
2233
2229
  function ProgressBar({
@@ -2263,7 +2259,7 @@ function ProgressBar({
2263
2259
  return () => observer.disconnect();
2264
2260
  }, []);
2265
2261
  return /* @__PURE__ */ jsx34(
2266
- ConfigProvider15,
2262
+ ConfigProvider17,
2267
2263
  {
2268
2264
  theme: {
2269
2265
  token: {