@xaypay/tui 0.2.15 → 0.2.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.es.js CHANGED
@@ -121,6 +121,39 @@ const SvgWrong = ({
121
121
  fill: "#051942"
122
122
  }));
123
123
 
124
+ const SvgDocIcon = ({
125
+ title,
126
+ titleId,
127
+ ...props
128
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
129
+ xmlns: "http://www.w3.org/2000/svg",
130
+ width: "1em",
131
+ height: "1em",
132
+ fill: "none",
133
+ viewBox: "0 0 32 32",
134
+ "aria-labelledby": titleId
135
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
136
+ id: titleId
137
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
138
+ stroke: "#D0D5DD",
139
+ strokeWidth: 1.2,
140
+ d: "M6.2 3.2A2.6 2.6 0 0 1 8.8.6h12.8c.097 0 .19.039.258.107l8.635 8.634a.37.37 0 0 1 .107.259v19.2a2.6 2.6 0 0 1-2.6 2.6H8.8a2.6 2.6 0 0 1-2.6-2.6z"
141
+ }), /*#__PURE__*/React.createElement("path", {
142
+ stroke: "#D0D5DD",
143
+ strokeWidth: 1.2,
144
+ d: "M21.6.4v6a3.2 3.2 0 0 0 3.2 3.2h6"
145
+ }), /*#__PURE__*/React.createElement("rect", {
146
+ width: 23.8,
147
+ height: 13.2,
148
+ x: 0.5,
149
+ y: 14.2,
150
+ fill: "#3C68FF",
151
+ rx: 1.6
152
+ }), /*#__PURE__*/React.createElement("path", {
153
+ fill: "#fff",
154
+ d: "M5.922 23.8H3.859v-5.818h2.08q.878 0 1.511.35.633.346.975.996.343.651.343 1.557 0 .909-.343 1.563-.341.653-.98 1.003-.637.349-1.523.349m-.833-1.054h.782q.546 0 .917-.193.375-.196.563-.605.19-.413.19-1.063 0-.645-.19-1.054a1.23 1.23 0 0 0-.56-.602q-.372-.193-.918-.193H5.09zm9.937-1.855q0 .951-.36 1.62a2.5 2.5 0 0 1-.978 1.02q-.616.348-1.386.349-.776 0-1.392-.353a2.5 2.5 0 0 1-.975-1.02q-.357-.668-.358-1.616 0-.952.358-1.62.359-.667.975-1.017a2.76 2.76 0 0 1 1.392-.352q.77 0 1.386.352.62.35.977 1.018.36.667.361 1.619m-1.247 0q0-.617-.185-1.04a1.4 1.4 0 0 0-.514-.642 1.4 1.4 0 0 0-.778-.219q-.447 0-.779.22-.332.218-.517.641-.182.423-.182 1.04 0 .616.182 1.04.185.423.517.642.332.218.779.218.445 0 .778-.218.333-.219.514-.642.185-.425.185-1.04m7.292-.872h-1.245a1.2 1.2 0 0 0-.139-.43 1.1 1.1 0 0 0-.27-.323 1.2 1.2 0 0 0-.38-.205 1.5 1.5 0 0 0-.463-.07 1.4 1.4 0 0 0-.787.224 1.43 1.43 0 0 0-.52.648q-.185.423-.185 1.028 0 .622.185 1.045.188.423.523.64.335.215.775.215.247 0 .457-.065.215-.065.378-.19.165-.128.273-.31.11-.182.154-.415l1.244.006a2.323 2.323 0 0 1-.756 1.435 2.4 2.4 0 0 1-.767.46q-.443.168-1.003.168-.778 0-1.392-.353a2.5 2.5 0 0 1-.966-1.02q-.352-.668-.352-1.616 0-.952.358-1.62.358-.667.972-1.017.614-.352 1.38-.352.506 0 .938.142.434.142.77.415.335.27.545.662.213.391.273.898"
155
+ }));
156
+
124
157
  const SvgListItemPdf = ({
125
158
  title,
126
159
  titleId,
@@ -232,9 +265,11 @@ const FileItem = /*#__PURE__*/React__default.memo(({
232
265
  check,
233
266
  radius,
234
267
  status,
268
+ iconDoc,
235
269
  iconPdf,
236
270
  iconPng,
237
271
  iconJpg,
272
+ iconDocx,
238
273
  iconJpeg,
239
274
  iconHeic,
240
275
  iconWrong,
@@ -374,7 +409,7 @@ const FileItem = /*#__PURE__*/React__default.memo(({
374
409
  style: {
375
410
  width: '32px'
376
411
  }
377
- }, fileFormat === 'pdf' ? iconPdf ? iconPdf : /*#__PURE__*/React__default.createElement(SvgListItemPdf, null) : fileFormat === 'jpg' ? iconJpg ? iconJpg : /*#__PURE__*/React__default.createElement(SvgListItemJpg, null) : fileFormat === 'png' ? iconPng ? iconPng : /*#__PURE__*/React__default.createElement(SvgListItemPng, null) : fileFormat === 'jpeg' ? iconJpeg ? iconJpeg : /*#__PURE__*/React__default.createElement(SvgListItemJpeg, null) : fileFormat === 'heic' || fileFormat === 'heif' ? iconHeic ? iconHeic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : ''), /*#__PURE__*/React__default.createElement("div", {
412
+ }, fileFormat === 'pdf' ? iconPdf ? iconPdf : /*#__PURE__*/React__default.createElement(SvgListItemPdf, null) : fileFormat === 'jpg' ? iconJpg ? iconJpg : /*#__PURE__*/React__default.createElement(SvgListItemJpg, null) : fileFormat === 'png' ? iconPng ? iconPng : /*#__PURE__*/React__default.createElement(SvgListItemPng, null) : fileFormat === 'jpeg' ? iconJpeg ? iconJpeg : /*#__PURE__*/React__default.createElement(SvgListItemJpeg, null) : fileFormat === 'heic' || fileFormat === 'heif' ? iconHeic ? iconHeic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : fileFormat === 'msword' ? iconDoc ? iconDoc : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : fileFormat === 'vnd.openxmlformats-officedocument.wordprocessingml.document' ? iconDocx ? iconDocx : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : ''), /*#__PURE__*/React__default.createElement("div", {
378
413
  style: {
379
414
  position: 'relative',
380
415
  display: 'flex',
@@ -432,8 +467,13 @@ const FileItem = /*#__PURE__*/React__default.memo(({
432
467
  }, iconDelItem ? iconDelItem : /*#__PURE__*/React__default.createElement(SvgListItemDelete, null))));
433
468
  });
434
469
 
435
- var img$2 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_18850_5919)'%3e%3cpath d='M13.4695 11.9505L20.7595 4.66046C20.9234 4.46916 21.009 4.22308 20.9993 3.9714C20.9895 3.71973 20.8852 3.48099 20.7071 3.30289C20.529 3.1248 20.2903 3.02047 20.0386 3.01075C19.7869 3.00102 19.5408 3.08663 19.3495 3.25046L12.0595 10.5405L4.76954 3.24046C4.57824 3.07663 4.33217 2.99102 4.08049 3.00075C3.82881 3.01047 3.59008 3.1148 3.41198 3.29289C3.23389 3.47099 3.12955 3.70973 3.11983 3.9614C3.11011 4.21308 3.19572 4.45915 3.35954 4.65046L10.6495 11.9505L3.34954 19.2405C3.24486 19.3301 3.15984 19.4404 3.09982 19.5645C3.0398 19.6886 3.00606 19.8237 3.00075 19.9614C2.99543 20.0991 3.01863 20.2365 3.06891 20.3648C3.11918 20.4931 3.19544 20.6097 3.29289 20.7071C3.39035 20.8046 3.5069 20.8808 3.63522 20.9311C3.76355 20.9814 3.90088 21.0046 4.0386 20.9993C4.17632 20.9939 4.31145 20.9602 4.43551 20.9002C4.55958 20.8402 4.6699 20.7551 4.75954 20.6505L12.0595 13.3605L19.3495 20.6505C19.5408 20.8143 19.7869 20.8999 20.0386 20.8902C20.2903 20.8804 20.529 20.7761 20.7071 20.598C20.8852 20.4199 20.9895 20.1812 20.9993 19.9295C21.009 19.6778 20.9234 19.4318 20.7595 19.2405L13.4695 11.9505Z' fill='%231C212D'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_18850_5919'%3e%3crect width='24' height='24' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
470
+ var img$4 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_18850_5919)'%3e%3cpath d='M13.4695 11.9505L20.7595 4.66046C20.9234 4.46916 21.009 4.22308 20.9993 3.9714C20.9895 3.71973 20.8852 3.48099 20.7071 3.30289C20.529 3.1248 20.2903 3.02047 20.0386 3.01075C19.7869 3.00102 19.5408 3.08663 19.3495 3.25046L12.0595 10.5405L4.76954 3.24046C4.57824 3.07663 4.33217 2.99102 4.08049 3.00075C3.82881 3.01047 3.59008 3.1148 3.41198 3.29289C3.23389 3.47099 3.12955 3.70973 3.11983 3.9614C3.11011 4.21308 3.19572 4.45915 3.35954 4.65046L10.6495 11.9505L3.34954 19.2405C3.24486 19.3301 3.15984 19.4404 3.09982 19.5645C3.0398 19.6886 3.00606 19.8237 3.00075 19.9614C2.99543 20.0991 3.01863 20.2365 3.06891 20.3648C3.11918 20.4931 3.19544 20.6097 3.29289 20.7071C3.39035 20.8046 3.5069 20.8808 3.63522 20.9311C3.76355 20.9814 3.90088 21.0046 4.0386 20.9993C4.17632 20.9939 4.31145 20.9602 4.43551 20.9002C4.55958 20.8402 4.6699 20.7551 4.75954 20.6505L12.0595 13.3605L19.3495 20.6505C19.5408 20.8143 19.7869 20.8999 20.0386 20.8902C20.2903 20.8804 20.529 20.7761 20.7071 20.598C20.8852 20.4199 20.9895 20.1812 20.9993 19.9295C21.009 19.6778 20.9234 19.4318 20.7595 19.2405L13.4695 11.9505Z' fill='%231C212D'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_18850_5919'%3e%3crect width='24' height='24' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
471
+
472
+ var img$3 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 1V15M1 8H15' stroke='%23009B8B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
436
473
 
474
+ var img$2 = "data:image/svg+xml,%3csvg width='16' height='2' viewBox='0 0 16 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1H15' stroke='%23009B8B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
475
+
476
+ // import React from 'react'
437
477
  const boxSizing = 'border-box';
438
478
  const fontStyle = 'normal';
439
479
  const fontFamily = 'Arial';
@@ -515,6 +555,7 @@ var packageResult = {
515
555
  className: '',
516
556
  maxLength: 255,
517
557
  iconWidth: '64px',
558
+ iconPadding: '10px',
518
559
  autoComplete: 'off',
519
560
  box: {
520
561
  sizing: boxSizing,
@@ -548,6 +589,9 @@ var packageResult = {
548
589
  marginTop: '10px',
549
590
  iconMargin: '10px',
550
591
  lineHeight: '19px',
592
+ box: {
593
+ shadow: '0 0 0 1px #F20918'
594
+ },
551
595
  font: {
552
596
  ...fontObject
553
597
  }
@@ -695,6 +739,7 @@ var packageResult = {
695
739
  SELECT: {
696
740
  dots: false,
697
741
  className: '',
742
+ arrowNoRotate: false,
698
743
  showCloseIcon: true,
699
744
  // arrowIcon: React.createElement(SvgChecked, { fill: 'green' }),
700
745
  // closeIcon: React.createElement(SvgChecked, { fill: 'green' }),
@@ -1071,8 +1116,14 @@ var packageResult = {
1071
1116
  header: {
1072
1117
  color: presetColors.primarySecond,
1073
1118
  height: '30px',
1119
+ align: 'left',
1074
1120
  font: {
1075
1121
  ...fontObject
1122
+ },
1123
+ icon: {
1124
+ maxWidth: '60px',
1125
+ maxHeight: '60px',
1126
+ marginRight: '20px'
1076
1127
  }
1077
1128
  },
1078
1129
  image: {
@@ -1118,9 +1169,9 @@ var packageResult = {
1118
1169
  border: {
1119
1170
  radius: '10px'
1120
1171
  },
1121
- withParent: true,
1172
+ // withParent: true,
1122
1173
  outSideClose: false,
1123
- closeIcon: img$2
1174
+ closeIcon: img$4
1124
1175
  },
1125
1176
  // default properties for <Checkbox /> component
1126
1177
  CHECKBOX: {
@@ -1200,7 +1251,31 @@ var packageResult = {
1200
1251
  },
1201
1252
  // default properties for <Pagination /> component
1202
1253
  PAGINATION: {
1203
- className: '' // for pagination class
1254
+ width: '34px',
1255
+ height: '34px',
1256
+ lineHeight: '16px',
1257
+ className: '',
1258
+ // for pagination class
1259
+ color: '#000000',
1260
+ font: {
1261
+ size: '13px',
1262
+ style: '',
1263
+ weight: '',
1264
+ family: ''
1265
+ },
1266
+ colors: {
1267
+ hover: '#000000',
1268
+ active: '#ffffff',
1269
+ background: '#ffffff',
1270
+ activeHover: '#ffffff',
1271
+ hoverBackground: '#dddddd',
1272
+ activeBackground: '#00236a'
1273
+ },
1274
+ border: {
1275
+ width: '1px',
1276
+ color: 'rgba(238,238,238, 1)',
1277
+ radius: '6px'
1278
+ }
1204
1279
  },
1205
1280
  // default properties for <Toaster /> component
1206
1281
  TOASTER: {
@@ -1265,10 +1340,12 @@ var packageResult = {
1265
1340
  width: '2px',
1266
1341
  style: 'solid',
1267
1342
  color: '#E7E7E7',
1343
+ hoverColor: '#E7E7E7',
1268
1344
  activeColor: '#3C3D46'
1269
1345
  },
1270
1346
  label: {
1271
1347
  color: '#3C3D46',
1348
+ activeColor: '#3C3D46',
1272
1349
  lineHeight: '21px',
1273
1350
  font: {
1274
1351
  ...fontObject
@@ -1278,6 +1355,39 @@ var packageResult = {
1278
1355
  // default properties for <Form /> component
1279
1356
  FORM: {
1280
1357
  className: ''
1358
+ },
1359
+ // default properties for <Accordion /> component
1360
+ ACCORDION: {
1361
+ className: '',
1362
+ padding: '15px',
1363
+ color: '#121212',
1364
+ marginBottom: '0px',
1365
+ colors: {
1366
+ hover: '#009B8B',
1367
+ background: '#E5E7EA',
1368
+ backgroundHover: '#CBCED5'
1369
+ },
1370
+ border: {
1371
+ color: '#A8ADB9',
1372
+ width: '1px',
1373
+ style: 'solid',
1374
+ radius: '0px',
1375
+ top: false,
1376
+ left: false,
1377
+ right: false,
1378
+ bottom: true
1379
+ },
1380
+ font: {
1381
+ size: '14px',
1382
+ style: 'normal',
1383
+ weight: 700,
1384
+ family: 'Noto Sans Armenian'
1385
+ },
1386
+ icon: {
1387
+ open: img$3,
1388
+ close: img$2,
1389
+ openHover: img$3
1390
+ }
1281
1391
  }
1282
1392
  };
1283
1393
 
@@ -1613,8 +1723,10 @@ const File = /*#__PURE__*/forwardRef(({
1613
1723
  progressColor,
1614
1724
  noChoosenFile,
1615
1725
  iconPdf,
1726
+ iconDoc,
1616
1727
  iconPng,
1617
1728
  iconJpg,
1729
+ iconDocx,
1618
1730
  iconJpeg,
1619
1731
  iconHeic,
1620
1732
  iconWrong,
@@ -1718,8 +1830,26 @@ const File = /*#__PURE__*/forwardRef(({
1718
1830
  for (let ix = 0; ix < file.length; ix++) {
1719
1831
  if (file[ix]) {
1720
1832
  if (file[ix].size <= maxSize * Math.pow(2, 20)) {
1721
- if (fileExtensions.includes(file[ix].type.split('/')[1]) || file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif')) {
1722
- if ((fileExtensions.includes('heic') || fileExtensions.includes('heif')) && (file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif'))) {
1833
+ if (fileExtensions.includes(file[ix].type.split('/')[1]) || file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif') || (fileExtensions.includes('doc') || fileExtensions.includes('docx')) && (file[ix].type.split('/')[1] === 'vnd.openxmlformats-officedocument.wordprocessingml.document' || file[ix].type.split('/')[1] === 'msword')) {
1834
+ if (file[ix].type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') {
1835
+ change({
1836
+ id: '',
1837
+ check: '',
1838
+ status: '',
1839
+ file: file[ix],
1840
+ uuid: v4()
1841
+ });
1842
+ setImage('docx');
1843
+ } else if (file[ix].type === 'application/msword') {
1844
+ change({
1845
+ id: '',
1846
+ check: '',
1847
+ status: '',
1848
+ file: file[ix],
1849
+ uuid: v4()
1850
+ });
1851
+ setImage('doc');
1852
+ } else if ((fileExtensions.includes('heic') || fileExtensions.includes('heif')) && (file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif'))) {
1723
1853
  handleCheckHeicFormat(file[ix]).then(() => {
1724
1854
  change({
1725
1855
  id: '',
@@ -1766,8 +1896,26 @@ const File = /*#__PURE__*/forwardRef(({
1766
1896
  for (let ix = 0; ix < file.length; ix++) {
1767
1897
  if (file[ix]) {
1768
1898
  if (file[ix].size <= maxSize * Math.pow(2, 20)) {
1769
- if (fileExtensions.includes(file[ix].type.split('/')[1]) || file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif')) {
1770
- if ((fileExtensions.includes('heic') || fileExtensions.includes('heif')) && (file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif'))) {
1899
+ if (fileExtensions.includes(file[ix].type.split('/')[1]) || file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif') || (fileExtensions.includes('doc') || fileExtensions.includes('docx')) && (file[ix].type.split('/')[1] === 'vnd.openxmlformats-officedocument.wordprocessingml.document' || file[ix].type.split('/')[1] === 'msword')) {
1900
+ if (file[ix].type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') {
1901
+ change({
1902
+ id: '',
1903
+ check: '',
1904
+ status: '',
1905
+ file: file[ix],
1906
+ uuid: v4()
1907
+ });
1908
+ setImage('docx');
1909
+ } else if (file[ix].type === 'application/msword') {
1910
+ change({
1911
+ id: '',
1912
+ check: '',
1913
+ status: '',
1914
+ file: file[ix],
1915
+ uuid: v4()
1916
+ });
1917
+ setImage('doc');
1918
+ } else if ((fileExtensions.includes('heic') || fileExtensions.includes('heif')) && (file[ix].name.toLowerCase().endsWith('.heic') || file[ix].name.toLowerCase().endsWith('.heif'))) {
1771
1919
  handleCheckHeicFormat(file[ix]).then(() => {
1772
1920
  change({
1773
1921
  id: '',
@@ -1823,9 +1971,17 @@ const File = /*#__PURE__*/forwardRef(({
1823
1971
  } else {
1824
1972
  if (file[0]) {
1825
1973
  if (file[0].size <= maxSize * Math.pow(2, 20)) {
1826
- if (fileExtensions.includes(file[0].type.split('/')[1]) || (fileExtensions.includes('heic') || fileExtensions.includes('heif')) && (file[0].type === 'image/heif' || file[0].type === 'image/heic' || file[0].name.toLowerCase().endsWith('.heic') || file[0].name.toLowerCase().endsWith('.heif'))) {
1974
+ if (fileExtensions.includes(file[0].type.split('/')[1]) || (fileExtensions.includes('heic') || fileExtensions.includes('heif')) && (file[0].type === 'image/heif' || file[0].type === 'image/heic' || file[0].name.toLowerCase().endsWith('.heic') || file[0].name.toLowerCase().endsWith('.heif')) || (fileExtensions.includes('doc') || fileExtensions.includes('docx')) && (file[0].type.split('/')[1] === 'vnd.openxmlformats-officedocument.wordprocessingml.document' || file[0].type.split('/')[1] === 'msword')) {
1827
1975
  setError('');
1828
- if (file[0].type === 'application/pdf') {
1976
+ if (file[0].type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') {
1977
+ setImage('docx');
1978
+ change(file);
1979
+ setSingleFile(file);
1980
+ } else if (file[0].type === 'application/msword') {
1981
+ setImage('doc');
1982
+ change(file);
1983
+ setSingleFile(file);
1984
+ } else if (file[0].type === 'application/pdf') {
1829
1985
  setImage('pdf');
1830
1986
  change(file);
1831
1987
  setSingleFile(file);
@@ -1840,6 +1996,7 @@ const File = /*#__PURE__*/forwardRef(({
1840
1996
  });
1841
1997
  } else {
1842
1998
  change(file);
1999
+ setSingleFile(file);
1843
2000
  setImage(URL.createObjectURL(file[0]));
1844
2001
  }
1845
2002
  } else {
@@ -1860,8 +2017,12 @@ const File = /*#__PURE__*/forwardRef(({
1860
2017
  const handleClick = () => {
1861
2018
  inpRef.current.files = null;
1862
2019
  inpRef.current.value = null;
1863
- if (!image) {
2020
+ if (multiple) {
1864
2021
  inpRef.current.click();
2022
+ } else {
2023
+ if (!image) {
2024
+ inpRef.current.click();
2025
+ }
1865
2026
  }
1866
2027
  };
1867
2028
  const handleDrop = e => {
@@ -2025,7 +2186,7 @@ const File = /*#__PURE__*/forwardRef(({
2025
2186
  fontFamily: family ?? configStyles.FILE.font.family,
2026
2187
  fontWeight: weight ?? configStyles.FILE.font.weight
2027
2188
  }
2028
- }, !multiple && image && preview ? image === 'pdf' ? iconPdf ? iconPdf : configStyles.FILE.icon.pdf ? configStyles.FILE.icon.pdf : /*#__PURE__*/React__default.createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : configStyles.FILE.icon.heic ? configStyles.FILE.icon.heic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : /*#__PURE__*/React__default.createElement("img", {
2189
+ }, !multiple && image && preview ? image === 'pdf' ? iconPdf ? iconPdf : configStyles.FILE.icon.pdf ? configStyles.FILE.icon.pdf : /*#__PURE__*/React__default.createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? iconHeic ? iconHeic : configStyles.FILE.icon.heic ? configStyles.FILE.icon.heic : /*#__PURE__*/React__default.createElement(SvgHeic, null) : image === 'doc' ? iconDoc ? iconDoc : configStyles.FILE.icon.doc ? configStyles.FILE.icon.doc : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : image === 'docx' ? iconDocx ? iconDocx : configStyles.FILE.icon.docx ? configStyles.FILE.icon.docx : /*#__PURE__*/React__default.createElement(SvgDocIcon, null) : /*#__PURE__*/React__default.createElement("img", {
2029
2190
  src: image,
2030
2191
  style: {
2031
2192
  display: 'block',
@@ -2050,7 +2211,8 @@ const File = /*#__PURE__*/forwardRef(({
2050
2211
  }
2051
2212
  }, /*#__PURE__*/React__default.createElement("p", {
2052
2213
  style: {
2053
- margin: '0px'
2214
+ margin: '0px',
2215
+ padding: '0px 10px'
2054
2216
  }
2055
2217
  }, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
2056
2218
  style: {
@@ -2082,7 +2244,7 @@ const File = /*#__PURE__*/forwardRef(({
2082
2244
  whiteSpace: 'nowrap',
2083
2245
  textOverflow: 'ellipsis'
2084
2246
  }
2085
- }, singleFile ? singleFile[0].name : /*#__PURE__*/React__default.createElement("span", null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))))), /*#__PURE__*/React__default.createElement("div", {
2247
+ }, singleFile && singleFile[`${0}`] ? singleFile[`${0}`].name : /*#__PURE__*/React__default.createElement("span", null, fileSizeText ?? configStyles.FILE.sizeText, " ", maxSize, " \u0544\u0532 (", ' ', fileExtensions.toString().split(',').join(', '), " )"))))), /*#__PURE__*/React__default.createElement("div", {
2086
2248
  style: {
2087
2249
  position: 'absolute',
2088
2250
  top: '0px',
@@ -2121,11 +2283,13 @@ const File = /*#__PURE__*/forwardRef(({
2121
2283
  uuid: item.uuid,
2122
2284
  check: item.check,
2123
2285
  status: item.status,
2124
- size: item.file.size,
2125
- name: item.file.name,
2286
+ size: item?.file?.size,
2287
+ name: item?.file?.name,
2126
2288
  iconPdf: iconPdf ?? configStyles.FILE.icon.pdf,
2289
+ iconDoc: iconDoc ?? configStyles.FILE.icon.doc,
2127
2290
  iconPng: iconPng ?? configStyles.FILE.icon.png,
2128
2291
  iconJpg: iconJpg ?? configStyles.FILE.icon.jpg,
2292
+ iconDocx: iconDocx ?? configStyles.FILE.icon.docx,
2129
2293
  iconJpeg: iconJpeg ?? configStyles.FILE.icon.jpeg,
2130
2294
  iconHeic: iconHeic ?? configStyles.FILE.icon.heic,
2131
2295
  iconWrong: iconWrong ?? configStyles.FILE.icon.wrong,
@@ -2133,7 +2297,7 @@ const File = /*#__PURE__*/forwardRef(({
2133
2297
  timeForRemoveError: timeForRemoveError,
2134
2298
  removeFile: removeFile ? removeFile : _ => _,
2135
2299
  radius: radius ?? configStyles.FILE.radius,
2136
- fileFormat: item.file.type.split('/')[1]?.toLowerCase(),
2300
+ fileFormat: item?.file?.type.split('/')[1]?.toLowerCase(),
2137
2301
  progressColor: progressColor ?? configStyles.FILE.progress.color,
2138
2302
  listItemHeight: listItemHeight ?? configStyles.FILE.listItem.height,
2139
2303
  listItemPadding: listItemPadding ?? configStyles.FILE.listItem.padding,
@@ -2199,8 +2363,10 @@ File.propTypes = {
2199
2363
  deleteComponent: PropTypes.bool,
2200
2364
  removeComponent: PropTypes.func,
2201
2365
  iconPdf: PropTypes.element,
2366
+ iconDoc: PropTypes.element,
2202
2367
  iconPng: PropTypes.element,
2203
2368
  iconJpg: PropTypes.element,
2369
+ iconDocx: PropTypes.element,
2204
2370
  iconJpeg: PropTypes.element,
2205
2371
  iconHeic: PropTypes.element,
2206
2372
  iconWrong: PropTypes.element,
@@ -2448,15 +2614,21 @@ const handleUtilsCheckTypeTel = (val, prevVal) => {
2448
2614
  }
2449
2615
  return val;
2450
2616
  };
2451
- const handleUtilsCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize, numberMaxLength) => {
2617
+ const handleUtilsCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize, numberMaxLength, cardNumber) => {
2452
2618
  if (maxLength && maxLength > 0) {
2453
2619
  if (val.length > maxLength) {
2454
2620
  val = val.substr(0, maxLength);
2455
2621
  }
2456
2622
  } else {
2457
2623
  const regNum = floatToFix && floatToFix >= 0 ? /^\d+(\.|\․|\.|\,)?(\d+)?$/ : /^\d+$/;
2458
- if (val.length > 16 && !val.includes('.')) {
2459
- val = val.substr(0, 16);
2624
+ if (cardNumber) {
2625
+ if (val.length > 19 && !val.includes('.')) {
2626
+ val = val.substr(0, 19);
2627
+ }
2628
+ } else {
2629
+ if (val.length > 16 && !val.includes('.')) {
2630
+ val = val.substr(0, 16);
2631
+ }
2460
2632
  }
2461
2633
  if (numberMaxLength && numberMaxLength > 0 && !val.includes('.')) {
2462
2634
  val = val.substr(0, numberMaxLength);
@@ -2532,9 +2704,9 @@ function styleInject(css, ref) {
2532
2704
  }
2533
2705
  }
2534
2706
 
2535
- var css_248z$b = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{align-items:center;cursor:pointer;display:flex;margin:0 0 8px;min-height:38px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}";
2536
- var styles$a = {"sorting-arrows":"table-module_sorting-arrows__BaN-G","td-span":"table-module_td-span__XHo6k","list-text":"table-module_list-text__kmKIq","dots-option-item":"table-module_dots-option-item__jNOxO"};
2537
- styleInject(css_248z$b);
2707
+ var css_248z$c = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{align-items:center;cursor:pointer;display:flex;margin:0 0 8px;min-height:38px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}.table-module_no-tabel-data__6xp3N{align-items:center;display:flex;height:200px;justify-content:center;width:100%}";
2708
+ var styles$a = {"sorting-arrows":"table-module_sorting-arrows__BaN-G","td-span":"table-module_td-span__XHo6k","list-text":"table-module_list-text__kmKIq","dots-option-item":"table-module_dots-option-item__jNOxO","no-tabel-data":"table-module_no-tabel-data__6xp3N"};
2709
+ styleInject(css_248z$c);
2538
2710
 
2539
2711
  /* eslint-disable no-prototype-builtins */
2540
2712
  const TH = ({
@@ -2592,7 +2764,8 @@ const TH = ({
2592
2764
  unCheckedColor: item.checkBox.unCheckedColor ? item.checkBox.unCheckedColor : ''
2593
2765
  }) : '', /*#__PURE__*/React__default.createElement("p", {
2594
2766
  style: {
2595
- margin: '0px'
2767
+ margin: '0px',
2768
+ whiteSpace: 'nowrap'
2596
2769
  },
2597
2770
  onClick: e => handleCheckArrowAction(e, item, 'arrowComponent')
2598
2771
  }, item.type === 'show' ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : '')));
@@ -3017,7 +3190,7 @@ const Table = ({
3017
3190
  const [header, setHeader] = useState([]);
3018
3191
  const [disableArr, setDisableArr] = useState([]);
3019
3192
  const [classProps, setClassProps] = useState({});
3020
- const [checkDrag, setCheckDrag] = useState(false);
3193
+ const [checkDrag, setCheckDrag] = useState(null);
3021
3194
  const [checkedArray, setCheckedArray] = useState([]);
3022
3195
  const [configStyles, setConfigStyles] = useState({});
3023
3196
  const [dragging, setDragging] = useState(false);
@@ -3496,19 +3669,21 @@ const Table = ({
3496
3669
  });
3497
3670
  };
3498
3671
  useEffect(() => {
3499
- const draggableArray = body && body.length && body.map((item, index) => {
3500
- if (showOrder) {
3501
- Object.values(item).map((innerItem, innerIndex) => {
3502
- if (innerIndex === 1) {
3503
- innerItem.content = index + 1, innerItem.draggable = true;
3504
- }
3505
- return innerItem;
3506
- });
3507
- }
3508
- return item;
3509
- });
3510
- getDraggableData && getDraggableData(draggableArray);
3511
- setBody(() => draggableArray);
3672
+ if (checkDrag != null) {
3673
+ const draggableArray = body && body.length > 0 ? body.map((item, index) => {
3674
+ if (showOrder) {
3675
+ Object.values(item).map((innerItem, innerIndex) => {
3676
+ if (innerIndex === 1) {
3677
+ innerItem.content = index + 1, innerItem.draggable = true;
3678
+ }
3679
+ return innerItem;
3680
+ });
3681
+ }
3682
+ return item;
3683
+ }) : [];
3684
+ getDraggableData && getDraggableData(draggableArray);
3685
+ setBody(() => draggableArray);
3686
+ }
3512
3687
  }, [checkDrag]);
3513
3688
  useEffect(() => {
3514
3689
  const isEqual = handleSafeStringify(body) === handleSafeStringify(dataBody);
@@ -3517,7 +3692,7 @@ const Table = ({
3517
3692
  let newArray = [];
3518
3693
  let checkedItems = [];
3519
3694
  const disabledArray = [];
3520
- const checkBodyForChackedItems = dataBody.slice().map(item => Object.values(item));
3695
+ const checkBodyForChackedItems = dataBody && dataBody.length > 0 ? dataBody.slice().map(item => Object.values(item)) : [];
3521
3696
  if (arrowShow) {
3522
3697
  let column = arrowColumn;
3523
3698
  if (draggable) {
@@ -3545,7 +3720,7 @@ const Table = ({
3545
3720
  newArray = insert;
3546
3721
  checkedItems = handleSetCheckboxArray(insert);
3547
3722
  } else {
3548
- insert = checkBodyForChackedItems.map((item, index) => {
3723
+ insert = checkBodyForChackedItems && checkBodyForChackedItems.length > 0 ? checkBodyForChackedItems.map((item, index) => {
3549
3724
  item.map((innerItem, innerIndex) => {
3550
3725
  if (hasOwnerProperty(innerItem, 'checkBox')) {
3551
3726
  if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
@@ -3561,12 +3736,12 @@ const Table = ({
3561
3736
  }
3562
3737
  });
3563
3738
  return item;
3564
- });
3739
+ }) : [];
3565
3740
  newArray = insert;
3566
3741
  checkedItems = handleSetCheckboxArray(insert);
3567
3742
  }
3568
- if (draggable) {
3569
- newArray = insert && insert.length && insert.map((item, index) => {
3743
+ if (draggable && dataBody && dataBody.length > 0) {
3744
+ newArray = insert && insert.length > 0 ? insert.map((item, index) => {
3570
3745
  item.map(innerItem => {
3571
3746
  if (hasOwnerProperty(innerItem, 'colorStatus')) {
3572
3747
  innerItem.colorStatus = null;
@@ -3583,12 +3758,11 @@ const Table = ({
3583
3758
  colorStatus: draggableColor
3584
3759
  });
3585
3760
  return item;
3586
- });
3761
+ }) : [];
3587
3762
  }
3588
3763
  setBody(() => [...newArray]);
3589
3764
  setDisableArr(disabledArray);
3590
3765
  setCheckedArray(() => checkedItems);
3591
- getDraggableData && getDraggableData(newArray);
3592
3766
  }
3593
3767
  }, [dataBody, arrowColumn, arrowShow, draggable]);
3594
3768
  useEffect(() => {
@@ -3635,7 +3809,7 @@ const Table = ({
3635
3809
  console.error(error);
3636
3810
  });
3637
3811
  }, []);
3638
- return configStyles.TABLE && /*#__PURE__*/React__default.createElement("table", {
3812
+ return configStyles.TABLE && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("table", {
3639
3813
  style: {
3640
3814
  width: '100%',
3641
3815
  borderCollapse: tableRowItem ?? configStyles.TABLE.body.row.asItem ? 'separate' : 'collapse',
@@ -3670,7 +3844,7 @@ const Table = ({
3670
3844
  tableColumnMinWidth: tableColumnMinWidth ?? configStyles.TABLE.column.minWidth,
3671
3845
  tableColumnMaxWidth: tableColumnMaxWidth ?? configStyles.TABLE.column.maxWidth
3672
3846
  });
3673
- }))), body && body.length > 0 && /*#__PURE__*/React__default.createElement("tbody", {
3847
+ }))), body && body.length > 0 ? /*#__PURE__*/React__default.createElement("tbody", {
3674
3848
  style: {
3675
3849
  boxShadow: tBodyBoxShadow ?? configStyles.TABLE.body.box.shadow
3676
3850
  }
@@ -3682,7 +3856,7 @@ const Table = ({
3682
3856
  style: {
3683
3857
  backgroundColor: tableRowBGColor ?? configStyles.TABLE.body.row.colors.background,
3684
3858
  borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : configStyles.TABLE.body.row.border,
3685
- borderColor: hideBorder ? 'transparent' : configStyles.TABLE.body.row.borderColor,
3859
+ borderColor: hideBorder || index === body.length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor,
3686
3860
  boxShadow: (tableRowItem ? tableRowItem : configStyles.TABLE.body.row.asItem) ? tableRowBoxShadow ? tableRowBoxShadow : configStyles.TABLE.body.row.box.shadow : 'none'
3687
3861
  },
3688
3862
  ref: el => setRef(index, el)
@@ -3729,7 +3903,7 @@ const Table = ({
3729
3903
  handleOpenCloseRowSingleArrow: handleOpenCloseRowSingleArrow
3730
3904
  });
3731
3905
  }));
3732
- })), draggable && dragging && draggedItem && /*#__PURE__*/React__default.createElement("div", {
3906
+ })) : '', body && body.length > 0 && draggable && dragging && draggedItem && /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", {
3733
3907
  style: {
3734
3908
  position: 'fixed',
3735
3909
  top: `${position.y - 30}px`,
@@ -3775,7 +3949,9 @@ const Table = ({
3775
3949
  borderRight: innerIndex === Object.values(draggedItem).length - 1 ? 'none' : configStyles.TABLE.body.row.border,
3776
3950
  borderRightColor: innerIndex === Object.values(draggedItem).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor
3777
3951
  });
3778
- })));
3952
+ })))), !body.length && /*#__PURE__*/React__default.createElement("div", {
3953
+ className: styles$a['no-tabel-data']
3954
+ }, /*#__PURE__*/React__default.createElement("p", null, "\u054F\u057E\u0575\u0561\u056C\u0576\u0565\u0580 \u0579\u056F\u0561\u0576")));
3779
3955
  };
3780
3956
  Table.propTypes = {
3781
3957
  getData: PropTypes.func,
@@ -3819,9 +3995,9 @@ Table.propTypes = {
3819
3995
  hideBorder: PropTypes.bool
3820
3996
  };
3821
3997
 
3822
- var css_248z$a = ".modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
3998
+ var css_248z$b = ".modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
3823
3999
  var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
3824
- styleInject(css_248z$a);
4000
+ styleInject(css_248z$b);
3825
4001
 
3826
4002
  const SvgNext = ({
3827
4003
  title,
@@ -3941,6 +4117,7 @@ const Modal = ({
3941
4117
  prevIcon,
3942
4118
  nextIcon,
3943
4119
  closeIcon,
4120
+ showCloseIcon,
3944
4121
  closeSlideIcon,
3945
4122
  selected,
3946
4123
  children,
@@ -3953,6 +4130,7 @@ const Modal = ({
3953
4130
  headerText,
3954
4131
  imageWidth,
3955
4132
  headerSize,
4133
+ headerIcon,
3956
4134
  headerStyle,
3957
4135
  headerFamily,
3958
4136
  imageHeight,
@@ -3966,10 +4144,14 @@ const Modal = ({
3966
4144
  headerWeight,
3967
4145
  headerHeight,
3968
4146
  justifyContent,
4147
+ headerTextAlign,
3969
4148
  backgroundColor,
3970
4149
  imageWrapHeight,
3971
4150
  grayDecorHeight,
4151
+ headerIconMaxWidth,
4152
+ headerIconMaxHeight,
3972
4153
  layerBackgroundColor,
4154
+ headerIconMarginRight,
3973
4155
  closeAreaBackgroundColor,
3974
4156
  type = 'content'
3975
4157
  }) => {
@@ -3981,7 +4163,15 @@ const Modal = ({
3981
4163
  const [classProps, setClassProps] = useState({});
3982
4164
  const [configStyles, setConfigStyles] = useState({});
3983
4165
  const handleCloseModal = () => {
3984
- setShow(false);
4166
+ if (outsideClose !== undefined) {
4167
+ if (outsideClose) {
4168
+ setShow(false);
4169
+ }
4170
+ } else {
4171
+ if (configStyles.MODAL.outsideClose) {
4172
+ setShow(false);
4173
+ }
4174
+ }
3985
4175
  };
3986
4176
  const handleStopClosing = e => {
3987
4177
  e.stopPropagation();
@@ -4076,7 +4266,7 @@ const Modal = ({
4076
4266
  }, []);
4077
4267
  return configStyles.MODAL && /*#__PURE__*/React__default.createElement("div", {
4078
4268
  className: classProps,
4079
- onClick: outsideClose || configStyles.MODAL.outsideClose ? handleCloseModal : _ => _,
4269
+ onClick: handleCloseModal,
4080
4270
  style: {
4081
4271
  top: '0px',
4082
4272
  left: '0px',
@@ -4125,7 +4315,18 @@ const Modal = ({
4125
4315
  justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end',
4126
4316
  backgroundColor: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
4127
4317
  }
4128
- }, headerText && type === 'content' && /*#__PURE__*/React__default.createElement("p", {
4318
+ }, headerIcon && type === 'content' && /*#__PURE__*/React__default.createElement("div", {
4319
+ style: {
4320
+ display: 'flex',
4321
+ width: 'fit-content',
4322
+ alignItems: 'center',
4323
+ height: 'fit-content',
4324
+ justifyContent: 'center',
4325
+ maxWidth: headerIconMaxWidth ?? configStyles.MODAL.header.icon.maxWidth,
4326
+ maxHeight: headerIconMaxHeight ?? configStyles.MODAL.header.icon.maxHeight,
4327
+ marginRight: headerIconMarginRight ?? configStyles.MODAL.header.icon.marginRight
4328
+ }
4329
+ }, headerIcon), headerText && type === 'content' && /*#__PURE__*/React__default.createElement("p", {
4129
4330
  style: {
4130
4331
  flex: '1',
4131
4332
  overflow: 'hidden',
@@ -4134,18 +4335,25 @@ const Modal = ({
4134
4335
  margin: '0px 16px 0px 0px',
4135
4336
  color: headerColor ?? configStyles.MODAL.header.color,
4136
4337
  fontSize: headerSize ?? configStyles.MODAL.header.font.size,
4338
+ textAlign: headerTextAlign ?? configStyles.MODAL.header.align,
4137
4339
  fontStyle: headerStyle ?? configStyles.MODAL.header.font.style,
4138
4340
  fontFamily: headerFamily ?? configStyles.MODAL.header.font.family,
4139
4341
  fontWeight: headerWeight ?? configStyles.MODAL.header.font.weight
4140
4342
  }
4141
- }, headerText), /*#__PURE__*/React__default.createElement("div", {
4142
- onClick: handleCloseModal,
4343
+ }, headerText), showCloseIcon ? /*#__PURE__*/React__default.createElement("div", {
4344
+ onClick: () => setShow(false),
4143
4345
  style: {
4144
- width: '14px',
4145
- height: '14px',
4146
- cursor: 'pointer'
4346
+ display: 'flex',
4347
+ minWidth: '14px',
4348
+ minHeight: '14px',
4349
+ cursor: 'pointer',
4350
+ width: 'fit-content',
4351
+ alignItems: 'center',
4352
+ alignSelf: 'flex-end',
4353
+ height: 'fit-content',
4354
+ justifyContent: 'center'
4147
4355
  }
4148
- }, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null))), /*#__PURE__*/React__default.createElement("div", {
4356
+ }, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null)) : ''), /*#__PURE__*/React__default.createElement("div", {
4149
4357
  style: {
4150
4358
  display: 'flex',
4151
4359
  width: '100%',
@@ -4188,7 +4396,7 @@ const Modal = ({
4188
4396
  background: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
4189
4397
  }
4190
4398
  }, /*#__PURE__*/React__default.createElement("button", {
4191
- onClick: handleCloseModal,
4399
+ onClick: () => setShow(false),
4192
4400
  style: {
4193
4401
  position: 'absolute',
4194
4402
  zIndex: '1',
@@ -4293,14 +4501,20 @@ Modal.propTypes = {
4293
4501
  prevIcon: PropTypes.element,
4294
4502
  nextIcon: PropTypes.element,
4295
4503
  closeIcon: PropTypes.element,
4504
+ showCloseIcon: PropTypes.bool,
4296
4505
  closeSlideIcon: PropTypes.element,
4297
- alignItems: PropTypes.string,
4298
- mMaxHeight: PropTypes.string,
4299
4506
  headerText: PropTypes.string,
4300
- imageWidth: PropTypes.string,
4301
4507
  headerSize: PropTypes.string,
4302
4508
  headerStyle: PropTypes.string,
4509
+ headerIcon: PropTypes.element,
4303
4510
  headerFamily: PropTypes.string,
4511
+ headerTextAlign: PropTypes.string,
4512
+ headerIconMaxWidth: PropTypes.string,
4513
+ headerIconMaxHeight: PropTypes.string,
4514
+ headerIconMarginRight: PropTypes.string,
4515
+ alignItems: PropTypes.string,
4516
+ mMaxHeight: PropTypes.string,
4517
+ imageWidth: PropTypes.string,
4304
4518
  outsideClose: PropTypes.bool,
4305
4519
  showZoomIcon: PropTypes.bool,
4306
4520
  imageMargin: PropTypes.string,
@@ -4379,19 +4593,23 @@ const TelInput = ({
4379
4593
  ...inpStyles,
4380
4594
  border: 'none',
4381
4595
  outline: 'none',
4382
- borderRadius: radius
4596
+ borderTopRightRadius: radius,
4597
+ borderBottomRightRadius: radius
4383
4598
  }
4384
4599
  }));
4385
4600
  };
4386
4601
 
4387
4602
  const TextInput = ({
4603
+ ssn,
4388
4604
  value,
4389
4605
  radius,
4390
- inputChange,
4606
+ disabled,
4391
4607
  maxLength,
4392
4608
  inpStyles,
4393
- disabled,
4394
- inpAttributes
4609
+ inputChange,
4610
+ inpAttributes,
4611
+ checkLeftIcon,
4612
+ checkRightIcon
4395
4613
  }) => {
4396
4614
  const [innerValue, setInnerValue] = useState('');
4397
4615
  const handleChange = event => {
@@ -4400,9 +4618,9 @@ const TextInput = ({
4400
4618
  if (maxLength && currentValue.length > maxLength) {
4401
4619
  currentValue = currentValue.substr(0, maxLength);
4402
4620
  }
4403
- setInnerValue(() => currentValue);
4621
+ setInnerValue(() => ssn ? currentValue.replace(/[^a-zA-ZԱ-Ֆա-ֆА-Яа-яЁё0-9\s]/g, '') : currentValue);
4404
4622
  if (inputChange && currentValue !== prevValue) {
4405
- inputChange(currentValue);
4623
+ inputChange(ssn ? currentValue.replace(/[^a-zA-ZԱ-Ֆա-ֆА-Яа-яЁё0-9\s]/g, '') : currentValue);
4406
4624
  }
4407
4625
  };
4408
4626
  useEffect(() => {
@@ -4413,7 +4631,7 @@ const TextInput = ({
4413
4631
  newValue = value.substr(0, maxLength);
4414
4632
  }
4415
4633
  }
4416
- setInnerValue(() => newValue);
4634
+ setInnerValue(() => ssn ? newValue.replace(/[^a-zA-ZԱ-Ֆա-ֆА-Яа-яЁё0-9\s]/g, '') : newValue);
4417
4635
  }, [value]);
4418
4636
  return /*#__PURE__*/React__default.createElement("input", {
4419
4637
  type: "text",
@@ -4427,7 +4645,10 @@ const TextInput = ({
4427
4645
  ...inpStyles,
4428
4646
  border: 'none',
4429
4647
  outline: 'none',
4430
- borderRadius: radius
4648
+ borderTopLeftRadius: checkLeftIcon ? '0px' : radius,
4649
+ borderTopRightRadius: checkRightIcon ? '0px' : radius,
4650
+ borderBottomLeftRadius: checkLeftIcon ? '0px' : radius,
4651
+ borderBottomRightRadius: checkRightIcon ? '0px' : radius
4431
4652
  }
4432
4653
  });
4433
4654
  };
@@ -4436,11 +4657,13 @@ const PassInput = ({
4436
4657
  show,
4437
4658
  value,
4438
4659
  radius,
4439
- inputChange,
4660
+ disabled,
4440
4661
  maxLength,
4662
+ inpStyles,
4663
+ inputChange,
4441
4664
  inpAttributes,
4442
- disabled,
4443
- inpStyles
4665
+ checkLeftIcon,
4666
+ checkRightIcon
4444
4667
  }) => {
4445
4668
  const [innerShow, setInnerShow] = useState('');
4446
4669
  const [innerValue, setInnerValue] = useState('');
@@ -4480,7 +4703,10 @@ const PassInput = ({
4480
4703
  ...inpStyles,
4481
4704
  border: 'none',
4482
4705
  outline: 'none',
4483
- borderRadius: radius
4706
+ borderTopLeftRadius: checkLeftIcon ? '0px' : radius,
4707
+ borderTopRightRadius: checkRightIcon ? '0px' : radius,
4708
+ borderBottomLeftRadius: checkLeftIcon ? '0px' : radius,
4709
+ borderBottomRightRadius: checkRightIcon ? '0px' : radius
4484
4710
  }
4485
4711
  });
4486
4712
  };
@@ -4493,11 +4719,15 @@ const NumberInput = ({
4493
4719
  withZero,
4494
4720
  disabled,
4495
4721
  inpStyles,
4722
+ cardNumber,
4496
4723
  minNumSize,
4497
4724
  maxNumSize,
4498
4725
  insideError,
4499
4726
  inputChange,
4727
+ errorMessage,
4728
+ checkLeftIcon,
4500
4729
  inpAttributes,
4730
+ checkRightIcon,
4501
4731
  numberMaxLength,
4502
4732
  setInnerErrorMessage
4503
4733
  }) => {
@@ -4506,32 +4736,51 @@ const NumberInput = ({
4506
4736
  const handleChange = event => {
4507
4737
  let prevValue = innerValue;
4508
4738
  let currentValue = event.target.value.replace(/\.|․|\.|,/g, '.');
4509
- currentValue = handleUtilsCheckTypeNumber(currentValue, prevValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength);
4510
- setInnerValue(() => currentValue);
4739
+ currentValue = handleUtilsCheckTypeNumber(currentValue, prevValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength, cardNumber);
4740
+ setInnerValue(() => cardNumber ? currentValue.replace(/(\d{4})(?=\d)/g, '$1-') : currentValue);
4511
4741
  if (inputChange && currentValue !== prevValue) {
4512
4742
  if (currentValue < Number.MIN_SAFE_INTEGER || currentValue > Number.MAX_SAFE_INTEGER) {
4513
- if (currentValue === '') {
4514
- setInnerErrorMessage(() => '');
4743
+ if (!cardNumber) {
4744
+ if (currentValue === '') {
4745
+ setInnerErrorMessage(() => '');
4746
+ } else {
4747
+ insideError && insideError();
4748
+ setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ${Number.MIN_SAFE_INTEGER} - ${Number.MAX_SAFE_INTEGER} թվերի միջակայքում`);
4749
+ }
4515
4750
  } else {
4516
- insideError && insideError();
4517
- setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ${Number.MIN_SAFE_INTEGER} - ${Number.MAX_SAFE_INTEGER} թվերի միջակայքում`);
4751
+ inputChange(currentValue.replaceAll('-', ''));
4752
+ if (errorMessage) {
4753
+ setInnerErrorMessage(() => errorMessage);
4754
+ } else {
4755
+ setInnerErrorMessage(() => '');
4756
+ }
4518
4757
  }
4519
4758
  } else if (innerMinNumSize && currentValue < innerMinNumSize || maxNumSize && currentValue > maxNumSize) {
4520
4759
  if (currentValue === '') {
4521
4760
  setInnerErrorMessage(() => '');
4522
4761
  } else {
4523
- insideError && insideError();
4524
- if (innerMinNumSize && !maxNumSize) {
4525
- setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ոչ պակաս ${innerMinNumSize} - ից`);
4526
- } else if (!innerMinNumSize && maxNumSize) {
4527
- setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ոչ մեծ ${maxNumSize} ֊ ից`);
4528
- } else if (innerMinNumSize && maxNumSize) {
4529
- setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ${innerMinNumSize} - ${maxNumSize} թվերի միջակայքում`);
4762
+ if (!cardNumber) {
4763
+ insideError && insideError();
4764
+ if (innerMinNumSize && !maxNumSize) {
4765
+ setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ոչ պակաս ${innerMinNumSize} - ից`);
4766
+ } else if (!innerMinNumSize && maxNumSize) {
4767
+ setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ոչ մեծ ${maxNumSize} ֊ ից`);
4768
+ } else if (innerMinNumSize && maxNumSize) {
4769
+ setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ${innerMinNumSize} - ${maxNumSize} թվերի միջակայքում`);
4770
+ }
4530
4771
  }
4531
4772
  }
4532
4773
  } else if (currentValue >= Number.MIN_SAFE_INTEGER || currentValue <= Number.MAX_SAFE_INTEGER || innerMinNumSize && currentValue >= innerMinNumSize || maxNumSize && currentValue <= maxNumSize) {
4533
- inputChange(currentValue);
4534
- setInnerErrorMessage(() => '');
4774
+ inputChange(cardNumber ? currentValue.replaceAll('-', '') : currentValue);
4775
+ if (cardNumber) {
4776
+ if (errorMessage) {
4777
+ setInnerErrorMessage(() => errorMessage);
4778
+ } else {
4779
+ setInnerErrorMessage(() => '');
4780
+ }
4781
+ } else {
4782
+ setInnerErrorMessage(() => '');
4783
+ }
4535
4784
  }
4536
4785
  }
4537
4786
  };
@@ -4541,7 +4790,7 @@ const NumberInput = ({
4541
4790
  if (parseFloat(newVal) === 0) {
4542
4791
  inputChange('');
4543
4792
  } else {
4544
- inputChange(newVal);
4793
+ inputChange(cardNumber ? newVal.replaceAll('-', '') : newVal);
4545
4794
  }
4546
4795
  }
4547
4796
  };
@@ -4559,10 +4808,11 @@ const NumberInput = ({
4559
4808
  useEffect(() => {
4560
4809
  let newValue = '';
4561
4810
  if (value !== undefined && value !== null) {
4562
- newValue = handleUtilsCheckTypeNumber(value, newValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength);
4811
+ newValue = handleUtilsCheckTypeNumber(value, newValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength, cardNumber);
4563
4812
  }
4564
- setInnerValue(() => newValue);
4565
- }, [dots, value, float, maxNumSize, minNumSize, numberMaxLength]);
4813
+ setInnerValue(() => cardNumber ? newValue.replace(/(\d{4})(?=\d)/g, '$1-') : newValue);
4814
+ // inputChange(cardNumber ? newValue.replaceAll('-', '') : newValue);
4815
+ }, [dots, value, float, cardNumber, maxNumSize, minNumSize, numberMaxLength]);
4566
4816
  return /*#__PURE__*/React__default.createElement("input", {
4567
4817
  type: "text",
4568
4818
  value: innerValue,
@@ -4574,7 +4824,10 @@ const NumberInput = ({
4574
4824
  ...inpStyles,
4575
4825
  border: 'none',
4576
4826
  outline: 'none',
4577
- borderRadius: radius
4827
+ borderTopLeftRadius: checkLeftIcon ? '0px' : radius,
4828
+ borderTopRightRadius: checkRightIcon ? '0px' : radius,
4829
+ borderBottomLeftRadius: checkLeftIcon ? '0px' : radius,
4830
+ borderBottomRightRadius: checkRightIcon ? '0px' : radius
4578
4831
  },
4579
4832
  min: minNumSize,
4580
4833
  max: maxNumSize,
@@ -4583,9 +4836,9 @@ const NumberInput = ({
4583
4836
  });
4584
4837
  };
4585
4838
 
4586
- var css_248z$9 = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{appearance:none!important;-webkit-appearance:none!important;display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}input::-ms-clear,input::-ms-reveal{display:none}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}.input-module_inp-num__vH7HL::-webkit-inner-spin-button,.input-module_inp-num__vH7HL::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input-module_inp-num__vH7HL[type=number]{-moz-appearance:textfield}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
4839
+ var css_248z$a = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{appearance:none!important;-webkit-appearance:none!important;display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}input::-ms-clear,input::-ms-reveal{display:none}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}.input-module_inp-num__vH7HL::-webkit-inner-spin-button,.input-module_inp-num__vH7HL::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input-module_inp-num__vH7HL[type=number]{-moz-appearance:textfield}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
4587
4840
  var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k","inp-num":"input-module_inp-num__vH7HL"};
4588
- styleInject(css_248z$9);
4841
+ styleInject(css_248z$a);
4589
4842
 
4590
4843
  const InputTypes = {
4591
4844
  TEL: 'tel',
@@ -4601,6 +4854,7 @@ const P = styled.span`
4601
4854
  animation: ${true};
4602
4855
  `;
4603
4856
  const Input = ({
4857
+ ssn,
4604
4858
  size,
4605
4859
  name,
4606
4860
  style,
@@ -4640,6 +4894,7 @@ const Input = ({
4640
4894
  errorColor,
4641
4895
  withoutDot,
4642
4896
  errorStyle,
4897
+ iconPadding,
4643
4898
  labelAction,
4644
4899
  errorAction,
4645
4900
  placeholder,
@@ -4656,6 +4911,7 @@ const Input = ({
4656
4911
  errorIconSide,
4657
4912
  showErrorIcon,
4658
4913
  errorMarginTop,
4914
+ errorBoxShadow,
4659
4915
  boxShadowHover,
4660
4916
  errorClassName,
4661
4917
  labelIconMargin,
@@ -4676,6 +4932,7 @@ const Input = ({
4676
4932
  fireInputInsideError,
4677
4933
  backgroundDisableColor,
4678
4934
  telBorderRightColorHover,
4935
+ cardNumber,
4679
4936
  type = 'text'
4680
4937
  }) => {
4681
4938
  const [show, setShow] = useState(false);
@@ -4707,19 +4964,22 @@ const Input = ({
4707
4964
  iName: name ? name : `tui_${uuid}_tui`,
4708
4965
  autoComplete: autoComplete ?? configStyles.INPUT.autoComplete
4709
4966
  };
4710
- const errorShow = keyframes`
4711
- 100% {
4712
- bottom: '-20px';
4713
- transform: scale3d(1,1,1);
4714
- -webkit-transform: scale3d(1,1,1);
4715
- -moz-transform: scale3d(1,1,1);
4716
- -ms-transform: scale3d(1,1,1);
4717
- -o-transform: scale3d(1,1,1);
4718
- }
4719
- `;
4720
- const animation = () => css`
4721
- ${errorShow} 240ms forwards
4722
- `;
4967
+
4968
+ // const errorShow = keyframes`
4969
+ // 100% {
4970
+ // bottom: '-20px';
4971
+ // transform: scale3d(1,1,1);
4972
+ // -webkit-transform: scale3d(1,1,1);
4973
+ // -moz-transform: scale3d(1,1,1);
4974
+ // -ms-transform: scale3d(1,1,1);
4975
+ // -o-transform: scale3d(1,1,1);
4976
+ // }
4977
+ // `
4978
+
4979
+ // const animation = () => css`
4980
+ // ${errorShow} 240ms forwards
4981
+ // `
4982
+
4723
4983
  const handleMouseEnter = () => {
4724
4984
  setIsHover(true);
4725
4985
  };
@@ -4817,7 +5077,7 @@ const Input = ({
4817
5077
  style: {
4818
5078
  width: width ?? configStyles.INPUT.width,
4819
5079
  borderRadius: radius ?? configStyles.INPUT.radius,
4820
- boxShadow: innerErrorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : `0 0 0 2px ${configStyles.INPUT.error.color}` : isHover && !disabled ? boxShadowHover ? boxShadowHover : configStyles.INPUT.box.shadowHover : boxShadow ? boxShadow : configStyles.INPUT.box.shadow
5080
+ boxShadow: innerErrorMessage ? errorBoxShadow ? errorBoxShadow : configStyles.INPUT.error.box.shadow : isHover && !disabled ? boxShadowHover ? boxShadowHover : configStyles.INPUT.box.shadowHover : boxShadow ? boxShadow : configStyles.INPUT.box.shadow
4821
5081
  },
4822
5082
  onMouseEnter: handleMouseEnter,
4823
5083
  onMouseLeave: handleMouseLeave
@@ -4829,9 +5089,9 @@ const Input = ({
4829
5089
  justifyContent: 'center',
4830
5090
  cursor: type === 'password' ? 'pointer' : 'default',
4831
5091
  height: height ?? configStyles.INPUT.height,
4832
- padding: padding ?? configStyles.INPUT.padding,
4833
5092
  width: iconWidth ?? configStyles.INPUT.iconWidth,
4834
5093
  boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
5094
+ padding: iconPadding ?? configStyles.INPUT.iconPadding,
4835
5095
  borderTopLeftRadius: radius ?? configStyles.INPUT.radius,
4836
5096
  borderBottomLeftRadius: radius ?? configStyles.INPUT.radius,
4837
5097
  backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
@@ -4860,13 +5120,17 @@ const Input = ({
4860
5120
  withZero: withZero,
4861
5121
  inputChange: change,
4862
5122
  inpStyles: inpStyles,
5123
+ cardNumber: cardNumber,
5124
+ errorMessage: errorMessage,
4863
5125
  inpAttributes: inpAttributes,
4864
5126
  numberMaxLength: numberMaxLength,
4865
5127
  insideError: fireInputInsideError,
4866
5128
  minNumSize: minNumSize ? minNumSize : '',
4867
5129
  maxNumSize: maxNumSize ? maxNumSize : '',
4868
5130
  setInnerErrorMessage: setInnerErrorMessage,
4869
- radius: radius ?? configStyles.INPUT.radius
5131
+ radius: radius ?? configStyles.INPUT.radius,
5132
+ checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
5133
+ checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
4870
5134
  }) : type === 'password' ? /*#__PURE__*/React__default.createElement(PassInput, {
4871
5135
  show: show,
4872
5136
  type: type,
@@ -4876,15 +5140,20 @@ const Input = ({
4876
5140
  inpStyles: inpStyles,
4877
5141
  inpAttributes: inpAttributes,
4878
5142
  radius: radius ?? configStyles.INPUT.radius,
4879
- maxLength: maxLength ?? configStyles.INPUT.maxLength
5143
+ maxLength: maxLength ?? configStyles.INPUT.maxLength,
5144
+ checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
5145
+ checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
4880
5146
  }) : /*#__PURE__*/React__default.createElement(TextInput, {
5147
+ ssn: ssn,
4881
5148
  value: innerValue,
4882
5149
  disabled: disabled,
4883
5150
  inputChange: change,
4884
5151
  inpStyles: inpStyles,
4885
5152
  inpAttributes: inpAttributes,
4886
5153
  radius: radius ?? configStyles.INPUT.radius,
4887
- maxLength: maxLength ?? configStyles.INPUT.maxLength
5154
+ maxLength: maxLength ?? configStyles.INPUT.maxLength,
5155
+ checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
5156
+ checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
4888
5157
  }), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/React__default.createElement("div", {
4889
5158
  onClick: type === 'password' ? handleShowPass : _ => _,
4890
5159
  style: {
@@ -4893,15 +5162,16 @@ const Input = ({
4893
5162
  justifyContent: 'center',
4894
5163
  cursor: type === 'password' ? 'pointer' : 'default',
4895
5164
  height: height ?? configStyles.INPUT.height,
4896
- padding: padding ?? configStyles.INPUT.padding,
4897
5165
  width: iconWidth ?? configStyles.INPUT.iconWidth,
4898
5166
  boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
5167
+ padding: iconPadding ?? configStyles.INPUT.iconPadding,
4899
5168
  borderTopRightRadius: radius ?? configStyles.INPUT.radius,
4900
5169
  borderBottomRightRadius: radius ?? configStyles.INPUT.radius,
4901
5170
  backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
4902
5171
  }
4903
- }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? tooltip : '', innerErrorMessage ? /*#__PURE__*/React__default.createElement(P, {
4904
- animation: animation,
5172
+ }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? tooltip : '', innerErrorMessage ? /*#__PURE__*/React__default.createElement(P
5173
+ // animation={animation}
5174
+ , {
4905
5175
  style: {
4906
5176
  margin: '0px',
4907
5177
  display: 'flex',
@@ -4951,6 +5221,7 @@ const Input = ({
4951
5221
  })) : '');
4952
5222
  };
4953
5223
  Input.propTypes = {
5224
+ ssn: PropTypes.bool,
4954
5225
  size: PropTypes.string,
4955
5226
  name: PropTypes.string,
4956
5227
  change: PropTypes.func,
@@ -4965,10 +5236,12 @@ Input.propTypes = {
4965
5236
  height: PropTypes.string,
4966
5237
  radius: PropTypes.string,
4967
5238
  padding: PropTypes.string,
5239
+ cardNumber: PropTypes.bool,
4968
5240
  tooltip: PropTypes.element,
4969
5241
  withoutDot: PropTypes.bool,
4970
5242
  className: PropTypes.string,
4971
5243
  iconWidth: PropTypes.string,
5244
+ iconPadding: PropTypes.string,
4972
5245
  maxLength: PropTypes.number,
4973
5246
  floatToFix: PropTypes.number,
4974
5247
  minNumSize: PropTypes.number,
@@ -5012,6 +5285,7 @@ Input.propTypes = {
5012
5285
  errorLineHeight: PropTypes.string,
5013
5286
  boxSizing: PropTypes.string,
5014
5287
  boxShadow: PropTypes.string,
5288
+ errorBoxShadow: PropTypes.string,
5015
5289
  boxShadowHover: PropTypes.string,
5016
5290
  phoneAlignItems: PropTypes.string,
5017
5291
  numberMaxLength: PropTypes.number,
@@ -5048,10 +5322,12 @@ const Radio = ({
5048
5322
  borderStyle,
5049
5323
  labelFontSize,
5050
5324
  labelFontStyle,
5325
+ labelActiveColor,
5051
5326
  labelFontFamily,
5052
5327
  labelFontWeight,
5053
5328
  labelLineHeight,
5054
5329
  radioMarginRight,
5330
+ borderHoverColor,
5055
5331
  borderActiveColor,
5056
5332
  radioItemMarginRight,
5057
5333
  radioItemMarginBottom,
@@ -5070,22 +5346,14 @@ const Radio = ({
5070
5346
  });
5071
5347
  const handleMouseEnter = (id, elemID) => {
5072
5348
  const elem = document.querySelector(`#${elemID}`);
5073
- // const newStyles = {
5074
- // backgroundColor:
5075
- // id === innerSelectedData?.id
5076
- // ? borderActiveColor
5077
- // ? borderActiveColor
5078
- // : configStyles.RADIO.border.activeColor
5079
- // : borderColor
5080
- // ? borderColor
5081
- // : configStyles.RADIO.border.color
5082
- // }
5083
- // handleUtilsMouseEnterLeave(e, newStyles);
5084
-
5085
- elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color;
5349
+ const borderStyle = elem.parentElement;
5350
+ borderStyle.style.borderColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderHoverColor ? borderHoverColor : configStyles.RADIO.border.hoverColor;
5351
+ elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderHoverColor ? borderHoverColor : configStyles.RADIO.border.hoverColor;
5086
5352
  };
5087
5353
  const handleMouseLeave = (id, elemID) => {
5088
5354
  const elem = document.querySelector(`#${elemID}`);
5355
+ const borderStyle = elem.parentElement;
5356
+ borderStyle.style.borderColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color;
5089
5357
  elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : 'transparent';
5090
5358
  };
5091
5359
  const handleChecked = selItem => {
@@ -5192,15 +5460,13 @@ const Radio = ({
5192
5460
  }
5193
5461
  })), item[innerKeyNames.label] ? /*#__PURE__*/React__default.createElement("span", {
5194
5462
  style: {
5195
- color: labelColor ?? configStyles.RADIO.label.color,
5463
+ color: item[innerKeyNames.id] === innerSelectedData.id ? labelActiveColor ?? configStyles.RADIO.label.activeColor : labelColor ?? configStyles.RADIO.label.color,
5196
5464
  fontSize: labelFontSize ?? configStyles.RADIO.label.font.size,
5197
5465
  fontStyle: labelFontStyle ?? configStyles.RADIO.label.font.style,
5198
5466
  fontFamily: labelFontFamily ?? configStyles.RADIO.label.font.family,
5199
5467
  fontWeight: labelFontWeight ?? configStyles.RADIO.label.font.weight,
5200
5468
  lineHeight: labelLineHeight ?? configStyles.RADIO.label.lineHeight
5201
- },
5202
- onMouseEnter: () => handleMouseEnter(item[innerKeyNames.id], elemId),
5203
- onMouseLeave: () => handleMouseLeave(item[innerKeyNames.id], elemId)
5469
+ }
5204
5470
  }, item[innerKeyNames.label]) : '');
5205
5471
  }));
5206
5472
  };
@@ -5215,11 +5481,13 @@ Radio.propTypes = {
5215
5481
  borderStyle: PropTypes.string,
5216
5482
  labelFontSize: PropTypes.string,
5217
5483
  labelFontStyle: PropTypes.string,
5484
+ labelActiveColor: PropTypes.string,
5218
5485
  labelFontFamily: PropTypes.string,
5219
5486
  labelFontWeight: PropTypes.string,
5220
5487
  labelLineHeight: PropTypes.string,
5221
5488
  radioMarginRight: PropTypes.string,
5222
5489
  getData: PropTypes.func.isRequired,
5490
+ borderHoverColor: PropTypes.string,
5223
5491
  borderActiveColor: PropTypes.string,
5224
5492
  radioItemMarginRight: PropTypes.string,
5225
5493
  radioItemMarginBottom: PropTypes.string,
@@ -5246,12 +5514,13 @@ const SvgArrow = ({
5246
5514
  fill: fillColor ? fillColor : '#3C393E'
5247
5515
  }));
5248
5516
 
5249
- var css_248z$8 = ".select-module_select-content__GCMDX{-webkit-appearance:none;display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;-webkit-appearance:none;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:99999999999}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto;padding:0 5px 0 20px}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:14px;justify-content:center;width:14px}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_ellipsis__uNgol{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
5517
+ var css_248z$9 = ".select-module_select-content__GCMDX{-webkit-appearance:none;display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;-webkit-appearance:none;display:flex;flex-direction:row;flex-wrap:nowrap}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:99999999999}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:fit-content;justify-content:center;max-height:30px;max-width:30px;min-height:14px;min-width:14px;width:fit-content}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_ellipsis__uNgol{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
5250
5518
  var styles$7 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-show":"select-module_select-show__391hQ","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L","ellipsis":"select-module_ellipsis__uNgol"};
5251
- styleInject(css_248z$8);
5519
+ styleInject(css_248z$9);
5252
5520
 
5253
5521
  const Select = ({
5254
5522
  dots,
5523
+ lang,
5255
5524
  options,
5256
5525
  multiple,
5257
5526
  disabled,
@@ -5265,6 +5534,7 @@ const Select = ({
5265
5534
  closeIcon,
5266
5535
  errorZindex,
5267
5536
  errorMessage,
5537
+ arrowNoRotate,
5268
5538
  showCloseIcon,
5269
5539
  defaultOption,
5270
5540
  multipleCheckbox,
@@ -5305,6 +5575,8 @@ const Select = ({
5305
5575
  optionItemCursor,
5306
5576
  optionItemPadding,
5307
5577
  optionItemFontSize,
5578
+ optionItemFontStyle,
5579
+ optionItemFontFamily,
5308
5580
  optionItemMinHeight,
5309
5581
  optionItemBoxSizing,
5310
5582
  optionItemFontWeight,
@@ -5314,7 +5586,8 @@ const Select = ({
5314
5586
  optionItemBackgroudColor,
5315
5587
  optionItemBackgroudColorHover,
5316
5588
  boxShadow,
5317
- boxShadowHover
5589
+ boxShadowHover,
5590
+ insidePagination
5318
5591
  }) => {
5319
5592
  const ref = useRef();
5320
5593
  const [opened, setOpened] = useState(false);
@@ -5462,10 +5735,10 @@ const Select = ({
5462
5735
  }, /*#__PURE__*/React__default.createElement("div", {
5463
5736
  className: styles$7['select-content']
5464
5737
  }, /*#__PURE__*/React__default.createElement("div", {
5738
+ className: `${styles$7['select-content-top']}`,
5465
5739
  style: {
5466
5740
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
5467
5741
  minHeight: selectedMinHeight ?? configStyles.SELECT.selected.minHeight,
5468
- padding: selectedPadding ?? configStyles.SELECT.selected.padding,
5469
5742
  borderRadius: selectedRadius ?? configStyles.SELECT.selected.radius,
5470
5743
  fontSize: selectedFontSize ?? configStyles.SELECT.selected.font.size,
5471
5744
  fontStyle: selectedFontStyle ?? configStyles.SELECT.selected.font.style,
@@ -5474,19 +5747,20 @@ const Select = ({
5474
5747
  fontWeight: selectedFontWeight ?? configStyles.SELECT.selected.font.weight,
5475
5748
  lineHeight: selectedLineHeight ?? configStyles.SELECT.selected.lineHeight,
5476
5749
  transition: selectedTransition ?? configStyles.SELECT.selected.transition,
5750
+ padding: insidePagination ? '0px 2px' : selectedPadding ?? configStyles.SELECT.selected.padding,
5751
+ justifyContent: insidePagination ? 'center' : 'space-between',
5477
5752
  backgroundColor: disabled ? selectedDisableBackgroundColor ? selectedDisableBackgroundColor : configStyles.SELECT.selected.colors.backgroundDisable : selectedBackgroundColor ? selectedBackgroundColor : configStyles.SELECT.selected.colors.background,
5478
5753
  boxShadow: errorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : configStyles.SELECT.error.box.shadow : isHover ? boxShadowHover ? boxShadowHover : configStyles.SELECT.box.shadowHover : boxShadow ? boxShadow : configStyles.SELECT.box.shadow
5479
5754
  },
5480
5755
  onClick: disabled ? _ => _ : () => handleOpenClose(),
5481
5756
  onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
5482
- onMouseLeave: disabled ? _ => _ : () => handleMouseLeave(),
5483
- className: `${styles$7['select-content-top']}`
5757
+ onMouseLeave: disabled ? _ => _ : () => handleMouseLeave()
5484
5758
  }, /*#__PURE__*/React__default.createElement("div", {
5485
5759
  className: `${styles$7['select-content-top-text']}`,
5486
5760
  style: {
5487
5761
  whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
5488
- overflow: 'hidden',
5489
- textOverflow: 'ellipsis',
5762
+ overflow: insidePagination ? 'visible' : 'hidden',
5763
+ textOverflow: insidePagination ? 'initial' : 'ellipsis',
5490
5764
  color: isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selected.colors.hover : selectedColor ? selectedColor : configStyles.SELECT.selected.color
5491
5765
  }
5492
5766
  }, !multiple && newSelected && newSelected[0] && newSelected[0][keyNames.name] ? newSelected[0][keyNames.name] : newSelected && newSelected.length > 0 ? newSelected.map((_, index) => {
@@ -5498,7 +5772,10 @@ const Select = ({
5498
5772
  }
5499
5773
  }
5500
5774
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default.createElement("div", {
5501
- className: `${styles$7['select-content-top-icon']}`
5775
+ className: `${styles$7['select-content-top-icon']}`,
5776
+ style: {
5777
+ padding: lang ? '0px' : insidePagination ? '0px 5px' : '0 5px 0 20px'
5778
+ }
5502
5779
  }, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default.createElement("span", null, newSelected.length), (showCloseIcon === true || showCloseIcon === false ? showCloseIcon : configStyles.SELECT.showCloseIcon) && !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default.createElement("div", {
5503
5780
  className: `${styles$7['close-icon']}`,
5504
5781
  onClick: disabled ? _ => _ : handleClearSelect,
@@ -5506,10 +5783,11 @@ const Select = ({
5506
5783
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
5507
5784
  }
5508
5785
  }, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default.createElement("div", {
5786
+ className: `${styles$7['arrow-icon']}`,
5509
5787
  style: {
5510
- transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
5511
- },
5512
- className: `${styles$7['arrow-icon']}`
5788
+ marginLeft: lang ? '0px' : '9px',
5789
+ transform: arrowNoRotate || configStyles.SELECT.arrowNoRotate ? 'rotate(0deg)' : opened ? 'rotate(180deg)' : 'rotate(0deg)'
5790
+ }
5513
5791
  }, arrowIcon ? arrowIcon : configStyles.SELECT.arrowIcon ? configStyles.SELECT.arrowIcon : /*#__PURE__*/React__default.createElement(SvgArrow, null)) : '')), opened && existOptions && existOptions.length > 0 && !disabled ? /*#__PURE__*/React__default.createElement("div", {
5514
5792
  style: {
5515
5793
  boxShadow: optionsBoxShadow ?? configStyles.SELECT.options.box.shadow,
@@ -5535,12 +5813,15 @@ const Select = ({
5535
5813
  cursor: optionItemCursor ?? configStyles.SELECT.options.item.cursor,
5536
5814
  padding: optionItemPadding ?? configStyles.SELECT.options.item.padding,
5537
5815
  fontSize: optionItemFontSize ?? configStyles.SELECT.options.item.font.size,
5816
+ fontStyle: optionItemFontStyle ?? configStyles.SELECT.options.item.font.style,
5817
+ fontFamily: optionItemFontFamily ?? configStyles.SELECT.options.item.font.family,
5538
5818
  boxSizing: optionItemBoxSizing ?? configStyles.SELECT.options.item.box.sizing,
5539
5819
  minHeight: optionItemMinHeight ?? configStyles.SELECT.options.item.minHeight,
5540
5820
  fontWeight: optionItemFontWeight ?? configStyles.SELECT.options.item.font.weight,
5541
5821
  lineHeight: dots || configStyles.SELECT.dots ? '46px' : optionItemLineHeight ? optionItemLineHeight : configStyles.SELECT.options.item.lineHeight,
5542
5822
  marginBottom: optionItemMarginBottom ?? configStyles.SELECT.options.item.marginBottom,
5543
- backgroundColor: optionItemBackgroudColor ?? configStyles.SELECT.options.item.colors.backgroud
5823
+ backgroundColor: optionItemBackgroudColor ?? configStyles.SELECT.options.item.colors.backgroud,
5824
+ justifyContent: lang ? 'center' : 'flex-start'
5544
5825
  }
5545
5826
  }, multiple && multipleCheckbox ? /*#__PURE__*/React__default.createElement(SingleCheckbox, {
5546
5827
  checked: option.checked
@@ -5560,6 +5841,7 @@ const Select = ({
5560
5841
  };
5561
5842
  Select.propTypes = {
5562
5843
  dots: PropTypes.bool,
5844
+ lang: PropTypes.bool,
5563
5845
  options: PropTypes.array,
5564
5846
  multiple: PropTypes.bool,
5565
5847
  onChange: PropTypes.func,
@@ -5571,6 +5853,7 @@ Select.propTypes = {
5571
5853
  className: PropTypes.string,
5572
5854
  arrowIcon: PropTypes.element,
5573
5855
  closeIcon: PropTypes.element,
5856
+ arrowNoRotate: PropTypes.bool,
5574
5857
  showCloseIcon: PropTypes.bool,
5575
5858
  errorZindex: PropTypes.number,
5576
5859
  errorMessage: PropTypes.string,
@@ -5610,6 +5893,8 @@ Select.propTypes = {
5610
5893
  optionItemCursor: PropTypes.string,
5611
5894
  optionItemPadding: PropTypes.string,
5612
5895
  optionItemFontSize: PropTypes.string,
5896
+ optionItemFontStyle: PropTypes.string,
5897
+ optionItemFontFamily: PropTypes.string,
5613
5898
  optionItemMinHeight: PropTypes.string,
5614
5899
  optionItemBoxSizing: PropTypes.string,
5615
5900
  optionItemFontWeight: PropTypes.string,
@@ -5619,7 +5904,8 @@ Select.propTypes = {
5619
5904
  optionItemBackgroudColor: PropTypes.string,
5620
5905
  optionItemBackgroudColorHover: PropTypes.string,
5621
5906
  boxShadow: PropTypes.string,
5622
- boxShadowHover: PropTypes.string
5907
+ boxShadowHover: PropTypes.string,
5908
+ insidePagination: PropTypes.bool
5623
5909
  };
5624
5910
 
5625
5911
  const SvgToasterInfo = ({
@@ -5741,9 +6027,9 @@ const SvgToasterSuccess = ({
5741
6027
  fill: fillColor ? fillColor : '#0DA574'
5742
6028
  }));
5743
6029
 
5744
- var css_248z$7 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}.toaster-module_notify-desc__bcWe2,.toaster-module_notify-title__8lFLy{overflow:hidden;text-overflow:ellipsis}.toaster-module_notify-desc__bcWe2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceInLeftMobile__CA2dc{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:0}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}@media(max-width:480px){.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeftMobile__CA2dc;animation-name:toaster-module_bounceInLeftMobile__CA2dc}}";
6030
+ var css_248z$8 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}.toaster-module_notify-desc__bcWe2,.toaster-module_notify-title__8lFLy{overflow:hidden;text-overflow:ellipsis}.toaster-module_notify-desc__bcWe2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceInLeftMobile__CA2dc{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:0}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}@media(max-width:480px){.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeftMobile__CA2dc;animation-name:toaster-module_bounceInLeftMobile__CA2dc}}";
5745
6031
  var styles$6 = {"top-left":"toaster-module_top-left__q0LcN","top-right":"toaster-module_top-right__f-AFL","top-center":"toaster-module_top-center__eVRbc","bottom-left":"toaster-module_bottom-left__b-YHI","bottom-right":"toaster-module_bottom-right__g9ACP","bottom-center":"toaster-module_bottom-center__4KcFe","notify-block":"toaster-module_notify-block__pRnEB","bounce-in-right":"toaster-module_bounce-in-right__shR2D","bounceInRight":"toaster-module_bounceInRight__rSk5p","bounce-out-right":"toaster-module_bounce-out-right__48pyA","bounceOutRight":"toaster-module_bounceOutRight__bmFGS","notify-title":"toaster-module_notify-title__8lFLy","notify-desc":"toaster-module_notify-desc__bcWe2","bounce-in-left":"toaster-module_bounce-in-left__xoF-M","bounceInLeft":"toaster-module_bounceInLeft__to59v","bounce-out-left":"toaster-module_bounce-out-left__fDOZw","bounceOutLeft":"toaster-module_bounceOutLeft__k5QgO","bounceInLeftMobile":"toaster-module_bounceInLeftMobile__CA2dc"};
5746
- styleInject(css_248z$7);
6032
+ styleInject(css_248z$8);
5747
6033
 
5748
6034
  const ToasterType = {
5749
6035
  info: 'info',
@@ -6143,9 +6429,9 @@ const SvgTooltip = ({
6143
6429
  fill: fillColor ? fillColor : '#D1D1D1'
6144
6430
  }));
6145
6431
 
6146
- var css_248z$6 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{box-sizing:border-box;padding:10px;position:absolute;z-index:1}.tooltip-module_tooltip-rel__to9gq{align-items:center;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;display:flex;height:auto;justify-content:center;min-height:10px;min-width:30px;position:relative;width:auto}.tooltip-module_tooltip-decor__qvt7t{border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;height:10px;position:absolute;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:10px;z-index:-1}";
6432
+ var css_248z$7 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{box-sizing:border-box;padding:10px;position:absolute;z-index:1}.tooltip-module_tooltip-rel__to9gq{align-items:center;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;display:flex;height:auto;justify-content:center;min-height:10px;min-width:30px;position:relative;width:auto}.tooltip-module_tooltip-decor__qvt7t{border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;height:10px;position:absolute;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:10px;z-index:-1}";
6147
6433
  var styles$5 = {"tooltip-block":"tooltip-module_tooltip-block__v8U9u","tooltip":"tooltip-module_tooltip__emM6A","tooltip-rel":"tooltip-module_tooltip-rel__to9gq","tooltip-decor":"tooltip-module_tooltip-decor__qvt7t"};
6148
- styleInject(css_248z$6);
6434
+ styleInject(css_248z$7);
6149
6435
 
6150
6436
  const TooltipDirections = {
6151
6437
  TOP: 'top',
@@ -6349,9 +6635,9 @@ const SvgCaptchaArrowDown = ({
6349
6635
  fill: fillColor ? fillColor : '#00236A'
6350
6636
  }));
6351
6637
 
6352
- var css_248z$5 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
6638
+ var css_248z$6 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
6353
6639
  var styles$4 = {"start-point":"captcha-module_start-point__LkOqy","range":"captcha-module_range__k24I2","range-default":"captcha-module_range-default__-O0QD","range-error":"captcha-module_range-error__FKMfG","range-success":"captcha-module_range-success__VzLPq"};
6354
- styleInject(css_248z$5);
6640
+ styleInject(css_248z$6);
6355
6641
 
6356
6642
  const Captcha = ({
6357
6643
  color,
@@ -6496,9 +6782,9 @@ Captcha.propTypes = {
6496
6782
  getRange: PropTypes.func.isRequired
6497
6783
  };
6498
6784
 
6499
- var css_248z$4 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
6785
+ var css_248z$5 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
6500
6786
  var styles$3 = {"stepper-container":"stepper-module_stepper-container__-OVGy","bigRing":"stepper-module_bigRing__5GBm0","activeRing":"stepper-module_activeRing__Lzvh1","smallRing":"stepper-module_smallRing__u-5a8","smallActiveRing":"stepper-module_smallActiveRing__im-XG"};
6501
- styleInject(css_248z$4);
6787
+ styleInject(css_248z$5);
6502
6788
 
6503
6789
  const Stepper = ({
6504
6790
  stepLength,
@@ -6661,8 +6947,8 @@ Checkbox.propTypes = {
6661
6947
  data: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object])
6662
6948
  };
6663
6949
 
6664
- var css_248z$3 = "textarea{-webkit-appearance:none}textarea::-webkit-scrollbar{width:6px}textarea::-webkit-scrollbar-track{background:#eee}textarea::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-track{border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px}textarea::-webkit-scrollbar-thumb{background:#d1d1d1}";
6665
- styleInject(css_248z$3);
6950
+ var css_248z$4 = "textarea{-webkit-appearance:none}textarea::-webkit-scrollbar{width:6px}textarea::-webkit-scrollbar-track{background:#eee}textarea::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-track{border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px}textarea::-webkit-scrollbar-thumb{background:#d1d1d1}";
6951
+ styleInject(css_248z$4);
6666
6952
 
6667
6953
  const PositionSide = {
6668
6954
  TOP: 'top',
@@ -6670,6 +6956,7 @@ const PositionSide = {
6670
6956
  };
6671
6957
  const Textarea = ({
6672
6958
  size,
6959
+ name,
6673
6960
  style,
6674
6961
  family,
6675
6962
  weight,
@@ -6731,25 +7018,26 @@ const Textarea = ({
6731
7018
  };
6732
7019
  const handleChange = e => {
6733
7020
  const value = e.target.value;
6734
- onChange(value);
7021
+ if (onChange) {
7022
+ onChange(value);
7023
+ }
6735
7024
  setInnerValue(() => value);
6736
7025
  if (maxLength) {
6737
7026
  if (value.length > maxLength) {
6738
- onChange(value.substr(0, maxLength));
7027
+ if (onChange) {
7028
+ onChange(value.substr(0, maxLength));
7029
+ }
6739
7030
  setInnerValue(() => value.substr(0, maxLength));
6740
7031
  }
6741
7032
  } else {
6742
7033
  if (value.length > configStyles.TEXTAREA.maxLength) {
6743
- onChange(value.substr(0, configStyles.TEXTAREA.maxLength));
7034
+ if (onChange) {
7035
+ onChange(value.substr(0, configStyles.TEXTAREA.maxLength));
7036
+ }
6744
7037
  setInnerValue(() => value.substr(0, configStyles.TEXTAREA.maxLength));
6745
7038
  }
6746
7039
  }
6747
7040
  };
6748
- useEffect(() => {
6749
- if (!onChange) {
6750
- alert('Please add onChange function on Textarea component');
6751
- }
6752
- }, [onChange]);
6753
7041
  useEffect(() => {
6754
7042
  if (value === undefined) {
6755
7043
  alert('Please add value prop on Textarea component');
@@ -6796,7 +7084,7 @@ const Textarea = ({
6796
7084
  style: {
6797
7085
  display: labelDisplay ?? configStyles.TEXTAREA.label.display
6798
7086
  }
6799
- }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default.createElement("span", null, maxLength - value.length, " \u0576\u056B\u0577")), /*#__PURE__*/React__default.createElement("textarea", {
7087
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', showCharacterCount && maxLength && characterCountPosition === 'top' && /*#__PURE__*/React__default.createElement("span", null, maxLength - innerValue.length, " \u0576\u056B\u0577")), /*#__PURE__*/React__default.createElement("textarea", {
6800
7088
  style: {
6801
7089
  width: '100%',
6802
7090
  border: 'none',
@@ -6819,6 +7107,7 @@ const Textarea = ({
6819
7107
  boxShadow: error ? errorColor ? `0 0 0 2px ${errorColor}` : configStyles.TEXTAREA.error.box.shadow : isFocus ? borderFocusColor ? `0 0 0 2px ${borderFocusColor}` : configStyles.TEXTAREA.box.colors.focus : isHover ? borderHoverColor ? `0 0 0 2px ${borderHoverColor}` : configStyles.TEXTAREA.box.colors.hover : boxShadow ? boxShadow : configStyles.INPUT.box.shadow,
6820
7108
  resize: resize ? resize : configStyles.TEXTAREA.resize
6821
7109
  },
7110
+ name: name,
6822
7111
  value: innerValue,
6823
7112
  disabled: disabled,
6824
7113
  onBlur: handleBlur,
@@ -6858,6 +7147,7 @@ const Textarea = ({
6858
7147
  };
6859
7148
  Textarea.propTypes = {
6860
7149
  size: PropTypes.string,
7150
+ name: PropTypes.string,
6861
7151
  style: PropTypes.string,
6862
7152
  family: PropTypes.string,
6863
7153
  weight: PropTypes.string,
@@ -6868,6 +7158,7 @@ Textarea.propTypes = {
6868
7158
  radius: PropTypes.string,
6869
7159
  required: PropTypes.bool,
6870
7160
  disabled: PropTypes.bool,
7161
+ onChange: PropTypes.func,
6871
7162
  padding: PropTypes.string,
6872
7163
  minWidth: PropTypes.string,
6873
7164
  maxWidth: PropTypes.string,
@@ -6896,10 +7187,304 @@ Textarea.propTypes = {
6896
7187
  borderFocusColor: PropTypes.string,
6897
7188
  borderHoverColor: PropTypes.string,
6898
7189
  labelMarginBottom: PropTypes.string,
6899
- onChange: PropTypes.func.isRequired,
6900
7190
  characterCountPosition: PropTypes.oneOf(Object.values(PositionSide))
6901
7191
  };
6902
7192
 
7193
+ const AccordionItem = ({
7194
+ item,
7195
+ open,
7196
+ index,
7197
+ onClick,
7198
+ openIcon,
7199
+ closeIcon,
7200
+ showIcons,
7201
+ className,
7202
+ titleAlign,
7203
+ multipleOpen,
7204
+ openHoverIcon,
7205
+ color,
7206
+ border,
7207
+ padding,
7208
+ fontSize,
7209
+ fontStyle,
7210
+ fontWeight,
7211
+ fontFamily,
7212
+ borderTop,
7213
+ borderLeft,
7214
+ hoverColor,
7215
+ borderRight,
7216
+ borderRadius,
7217
+ borderBottom,
7218
+ marginBottom,
7219
+ backgroundColor,
7220
+ backgroundHoverColor
7221
+ }) => {
7222
+ const [isOpen, setIsOpen] = useState(false);
7223
+ const [isHover, setIsHover] = useState(false);
7224
+ const handleClick = () => {
7225
+ onClick(item, index);
7226
+ if (multipleOpen) {
7227
+ setIsOpen(() => !isOpen);
7228
+ }
7229
+ };
7230
+ const handleMouseEnter = () => {
7231
+ setIsHover(() => true);
7232
+ };
7233
+ const handleMouseLeave = () => {
7234
+ setIsHover(() => false);
7235
+ };
7236
+ useEffect(() => {
7237
+ setIsOpen(() => open);
7238
+ }, [open]);
7239
+ return /*#__PURE__*/React__default.createElement("div", {
7240
+ className: className,
7241
+ style: {
7242
+ marginBottom: marginBottom ? marginBottom : '0px'
7243
+ }
7244
+ }, /*#__PURE__*/React__default.createElement("div", {
7245
+ onClick: handleClick,
7246
+ onMouseEnter: handleMouseEnter,
7247
+ onMouseLeave: handleMouseLeave,
7248
+ style: {
7249
+ display: 'flex',
7250
+ cursor: 'pointer',
7251
+ padding: padding,
7252
+ alignItems: 'center',
7253
+ borderRadius: borderRadius,
7254
+ borderTop: borderTop ? border : 'none',
7255
+ borderLeft: borderLeft ? border : 'none',
7256
+ borderRight: borderRight ? border : 'none',
7257
+ borderBottom: borderBottom ? border : 'none',
7258
+ justifyContent: showIcons ? 'space-between' : 'flex-start',
7259
+ backgroundColor: isHover ? backgroundHoverColor : backgroundColor
7260
+ }
7261
+ }, item.title && /*#__PURE__*/React__default.createElement("p", {
7262
+ style: {
7263
+ width: '90%',
7264
+ margin: '0px',
7265
+ fontSize: fontSize,
7266
+ overflow: 'hidden',
7267
+ whiteSpace: 'nowrap',
7268
+ fontStyle: fontStyle,
7269
+ fontWeight: fontWeight,
7270
+ fontFamily: fontFamily,
7271
+ textOverflow: 'ellipsis',
7272
+ textAlign: titleAlign ? titleAlign : 'left',
7273
+ color: isOpen ? hoverColor : isHover ? hoverColor : color
7274
+ }
7275
+ }, item.title), showIcons && /*#__PURE__*/React__default.createElement("div", {
7276
+ style: {
7277
+ display: 'flex',
7278
+ width: 'fit-content',
7279
+ height: 'fit-content',
7280
+ minWidth: '14px',
7281
+ minHeight: '14px',
7282
+ alignItems: 'center',
7283
+ justifyContent: 'center'
7284
+ }
7285
+ }, isOpen ? closeIcon : isHover ? openHoverIcon ? openHoverIcon : openIcon : openIcon)), /*#__PURE__*/React__default.createElement("div", {
7286
+ style: {
7287
+ overflow: 'hidden',
7288
+ height: isOpen ? 'auto' : '0px'
7289
+ }
7290
+ }, item.content ? item.content : ''));
7291
+ };
7292
+ AccordionItem.propTypes = {
7293
+ open: PropTypes.bool
7294
+ };
7295
+
7296
+ const SvgGreenplus = ({
7297
+ title,
7298
+ titleId,
7299
+ ...props
7300
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
7301
+ xmlns: "http://www.w3.org/2000/svg",
7302
+ width: "1em",
7303
+ height: "1em",
7304
+ fill: "none",
7305
+ viewBox: "0 0 16 16",
7306
+ "aria-labelledby": titleId
7307
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
7308
+ id: titleId
7309
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
7310
+ stroke: "#009B8B",
7311
+ strokeLinecap: "round",
7312
+ strokeLinejoin: "round",
7313
+ strokeWidth: 1.6,
7314
+ d: "M8 1v14M1 8h14"
7315
+ }));
7316
+
7317
+ const SvgGreenminus = ({
7318
+ title,
7319
+ titleId,
7320
+ ...props
7321
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
7322
+ xmlns: "http://www.w3.org/2000/svg",
7323
+ width: "1em",
7324
+ height: "1em",
7325
+ fill: "none",
7326
+ viewBox: "0 0 16 2",
7327
+ "aria-labelledby": titleId
7328
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
7329
+ id: titleId
7330
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
7331
+ stroke: "#009B8B",
7332
+ strokeLinecap: "round",
7333
+ strokeLinejoin: "round",
7334
+ strokeWidth: 1.6,
7335
+ d: "M1 1h14"
7336
+ }));
7337
+
7338
+ var css_248z$3 = "";
7339
+ styleInject(css_248z$3);
7340
+
7341
+ const Accordion = ({
7342
+ data,
7343
+ click,
7344
+ openIcon,
7345
+ closeIcon,
7346
+ className,
7347
+ showIcons,
7348
+ titleAlign,
7349
+ multipleOpen,
7350
+ openHoverIcon,
7351
+ borderTop,
7352
+ borderLeft,
7353
+ borderRight,
7354
+ borderColor,
7355
+ borderWidth,
7356
+ borderStyle,
7357
+ borderBottom,
7358
+ borderRadius,
7359
+ fontSize,
7360
+ fontStyle,
7361
+ fontWeight,
7362
+ fontFamily,
7363
+ color,
7364
+ padding,
7365
+ hoverColor,
7366
+ marginBottom,
7367
+ backgroundColor,
7368
+ backgroundHoverColor
7369
+ }) => {
7370
+ const [openIndex, setOpenIndex] = useState(-1);
7371
+ const [classProps, setClassProps] = useState({});
7372
+ const [configStyles, setConfigStyles] = useState({});
7373
+ const handleClick = (item, index) => {
7374
+ if (click) {
7375
+ click(item);
7376
+ }
7377
+ if (!multipleOpen) {
7378
+ setOpenIndex(() => openIndex === index ? -1 : index);
7379
+ }
7380
+ };
7381
+ useEffect(() => {
7382
+ className && setClassProps(() => classnames(className ?? configStyles.BUTTON.className));
7383
+ }, [className]);
7384
+ useEffect(() => {
7385
+ configStylesPromise.then(data => {
7386
+ setClassProps(() => classnames(className ?? data.BUTTON.className));
7387
+ setConfigStyles(() => {
7388
+ return {
7389
+ ...data
7390
+ };
7391
+ });
7392
+ }, error => {
7393
+ console.error(error);
7394
+ });
7395
+ }, []);
7396
+ return configStyles.ACCORDION && /*#__PURE__*/React__default.createElement("div", {
7397
+ style: {
7398
+ width: '100%'
7399
+ }
7400
+ }, data && data.length ? data.map((item, index) => {
7401
+ return /*#__PURE__*/React__default.createElement(AccordionItem, {
7402
+ item: item,
7403
+ index: index,
7404
+ onClick: handleClick,
7405
+ titleAlign: titleAlign,
7406
+ multipleOpen: multipleOpen,
7407
+ key: `${item.title}__TUI__${index}`,
7408
+ open: openIndex === index ? true : false,
7409
+ showIcons: showIcons ?? configStyles.ACCORDION.showIcons,
7410
+ openIcon: openIcon ? /*#__PURE__*/React__default.createElement("img", {
7411
+ src: openIcon,
7412
+ alt: "open icon"
7413
+ }) : configStyles.ACCORDION.icon.open ? /*#__PURE__*/React__default.createElement("img", {
7414
+ src: configStyles.ACCORDION.icon.open,
7415
+ alt: "open icon"
7416
+ }) : /*#__PURE__*/React__default.createElement(SvgGreenplus, null),
7417
+ openHoverIcon: openHoverIcon ? /*#__PURE__*/React__default.createElement("img", {
7418
+ src: openHoverIcon,
7419
+ alt: "open icon"
7420
+ }) : configStyles.ACCORDION.icon.openHover ? /*#__PURE__*/React__default.createElement("img", {
7421
+ src: configStyles.ACCORDION.icon.openHover,
7422
+ alt: "open icon"
7423
+ }) : /*#__PURE__*/React__default.createElement(SvgGreenplus, null),
7424
+ closeIcon: closeIcon ? /*#__PURE__*/React__default.createElement("img", {
7425
+ src: closeIcon,
7426
+ alt: "close icon"
7427
+ }) : configStyles.ACCORDION.icon.close ? /*#__PURE__*/React__default.createElement("img", {
7428
+ src: configStyles.ACCORDION.icon.close,
7429
+ alt: "close icon"
7430
+ }) : /*#__PURE__*/React__default.createElement(SvgGreenminus, null),
7431
+ className: classProps,
7432
+ color: color ?? configStyles.ACCORDION.color,
7433
+ padding: padding ?? configStyles.ACCORDION.padding,
7434
+ fontSize: fontSize ?? configStyles.ACCORDION.font.size,
7435
+ fontStyle: fontStyle ?? configStyles.ACCORDION.font.style,
7436
+ fontWeight: fontWeight ?? configStyles.ACCORDION.font.weight,
7437
+ fontFamily: fontFamily ?? configStyles.ACCORDION.font.family,
7438
+ hoverColor: hoverColor ?? configStyles.ACCORDION.colors.hover,
7439
+ marginBottom: marginBottom ?? configStyles.ACCORDION.marginBottom,
7440
+ border: `
7441
+ ${borderWidth ?? configStyles.ACCORDION.border.width}
7442
+ ${borderStyle ?? configStyles.ACCORDION.border.style}
7443
+ ${openIndex === index ? 'transparent' : borderColor ?? configStyles.ACCORDION.border.color}
7444
+ `,
7445
+ borderTop: borderTop ?? configStyles.ACCORDION.border.top,
7446
+ borderLeft: borderLeft ?? configStyles.ACCORDION.border.left,
7447
+ borderRight: borderRight ?? configStyles.ACCORDION.border.right,
7448
+ borderBottom: borderBottom ?? configStyles.ACCORDION.border.bottom,
7449
+ borderRadius: borderRadius ?? configStyles.ACCORDION.border.radius,
7450
+ backgroundColor: backgroundColor ?? configStyles.ACCORDION.colors.background,
7451
+ backgroundHoverColor: backgroundHoverColor ?? configStyles.ACCORDION.colors.backgroundHover
7452
+ });
7453
+ }) : '');
7454
+ };
7455
+ Accordion.propTypes = {
7456
+ data: PropTypes.arrayOf(PropTypes.shape({
7457
+ title: PropTypes.string,
7458
+ content: PropTypes.element
7459
+ })),
7460
+ click: PropTypes.func,
7461
+ showIcons: PropTypes.bool,
7462
+ multipleOpen: PropTypes.bool,
7463
+ color: PropTypes.string,
7464
+ hoverColor: PropTypes.string,
7465
+ backgroundColor: PropTypes.string,
7466
+ backgroundHoverColor: PropTypes.string,
7467
+ titleAlign: PropTypes.oneOf(['left', 'center', 'right']),
7468
+ padding: PropTypes.string,
7469
+ openIcon: PropTypes.string,
7470
+ className: PropTypes.string,
7471
+ closeIcon: PropTypes.string,
7472
+ marginBottom: PropTypes.string,
7473
+ openHoverIcon: PropTypes.string,
7474
+ borderTop: PropTypes.bool,
7475
+ borderLeft: PropTypes.bool,
7476
+ borderRight: PropTypes.bool,
7477
+ borderBottom: PropTypes.bool,
7478
+ borderColor: PropTypes.string,
7479
+ borderWidth: PropTypes.string,
7480
+ borderStyle: PropTypes.string,
7481
+ borderRadius: PropTypes.string,
7482
+ fontSize: PropTypes.string,
7483
+ fontStyle: PropTypes.string,
7484
+ fontWeight: PropTypes.number,
7485
+ fontFamily: PropTypes.string
7486
+ };
7487
+
6903
7488
  const Swipe = ({
6904
7489
  id,
6905
7490
  title,
@@ -6921,8 +7506,8 @@ const Swipe = ({
6921
7506
  } = props || {};
6922
7507
  return /*#__PURE__*/React__default.createElement("div", {
6923
7508
  style: {
6924
- width: position === 'left' || position === 'right' ? width ?? SWIPEMODAL.width : '100%',
6925
- height: position === 'top' || position === 'bottom' ? height ?? SWIPEMODAL.height : '100vh'
7509
+ width: '100%',
7510
+ height: '100%'
6926
7511
  }
6927
7512
  }, (title || showCloseIcon) && /*#__PURE__*/React__default.createElement("div", {
6928
7513
  style: {
@@ -6991,11 +7576,11 @@ const createElem = (id, title, child, props, swipeBlock, innerConfigStyles) => {
6991
7576
  borderRadius,
6992
7577
  backgroundColor
6993
7578
  } = props || {};
6994
- swipeBlock.style.position = 'fixed';
7579
+ swipeBlock.style.position = 'absolute';
6995
7580
  swipeBlock.style.zIndex = swipeCount;
6996
7581
  swipeBlock.style.backgroundColor = backgroundColor ?? innerConfigStyles.SWIPEMODAL.colors.background;
6997
7582
  swipeBlock.style.width = position === 'left' || position === 'right' ? width ?? innerConfigStyles.SWIPEMODAL.width : '100%';
6998
- swipeBlock.style.height = position === 'top' || position === 'bottom' ? height ?? innerConfigStyles.SWIPEMODAL.height : '100vh';
7583
+ swipeBlock.style.height = position === 'top' || position === 'bottom' ? height ?? innerConfigStyles.SWIPEMODAL.height : '100%';
6999
7584
  swipeBlock.style.borderTopLeftRadius = position === 'right' || position === 'bottom' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
7000
7585
  swipeBlock.style.borderTopRightRadius = position === 'left' || position === 'bottom' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
7001
7586
  swipeBlock.style.borderBottomLeftRadius = position === 'right' || position === 'top' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
@@ -7029,26 +7614,25 @@ const createSwipe = (id, title, child, props, swipable) => {
7029
7614
  };
7030
7615
  createElem(id, title, child, props, swipeBlock, innerConfigStyles);
7031
7616
  if (!swipable) {
7032
- const widthParent = hasOwnerProperty(props, 'withParent') ? props.withParent === true ? true : false : innerConfigStyles.SWIPEMODAL.withParent;
7033
7617
  swipable = document.createElement('div');
7034
7618
  swipable.setAttribute('id', 'swipable');
7035
- swipable.style.position = 'fixed';
7619
+ swipable.style.position = 'absolute';
7036
7620
  swipable.style.top = '0px';
7037
7621
  swipable.style.left = '0px';
7038
7622
  swipable.style.zIndex = 99999;
7039
7623
  swipable.style.maxWidth = '100%';
7040
7624
  swipable.style.maxHeight = '100vh';
7041
- swipable.style.visibility = 'hidden';
7042
- swipable.style.width = widthParent ? '100%' : '0px';
7043
- swipable.style.height = widthParent ? '100vh' : '0px';
7625
+ swipable.style.width = '100%';
7626
+ swipable.style.height = '100%';
7044
7627
  swipable.style.backgroundColor = props?.parent?.backgroundColor ?? innerConfigStyles.SWIPEMODAL.parent.colors.background;
7045
- swipable.classList.add(styles$2['visible']);
7046
7628
  if (props.outSideClose || innerConfigStyles.SWIPEMODAL.outSideClose) {
7047
7629
  swipable.addEventListener('click', function () {
7048
7630
  hasOwnerProperty(props, 'callClose') && {}.toString.call(props.callClose) === '[object Function]' ? props.callClose() : '';
7049
7631
  });
7050
7632
  }
7051
- document.body.appendChild(swipable);
7633
+ const SwipifyBlock = document.getElementById('swipify_tui');
7634
+ SwipifyBlock.style.display = 'block';
7635
+ SwipifyBlock.appendChild(swipable);
7052
7636
  }
7053
7637
  swipable.appendChild(swipeBlock);
7054
7638
  }, error => {
@@ -7097,7 +7681,6 @@ const swipe = {
7097
7681
  close: id => {
7098
7682
  if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
7099
7683
  alert('Please pass valid id prop (string / number) when call swipe.close function');
7100
- return;
7101
7684
  }
7102
7685
  let swipable = document.getElementById('swipable');
7103
7686
  swipeCount -= 1;
@@ -7112,7 +7695,9 @@ const swipe = {
7112
7695
  if (swipeCount === 0 && swipable) {
7113
7696
  window.removeEventListener('popstate', handleNavigationChange);
7114
7697
  window.removeEventListener('navigationchange', handleNavigationChange);
7115
- document.body.removeChild(swipable);
7698
+ const SwipifyBlock = document.getElementById('swipify_tui');
7699
+ SwipifyBlock.style.display = 'none';
7700
+ SwipifyBlock.removeChild(swipable);
7116
7701
  }
7117
7702
  }, 200);
7118
7703
  } else {
@@ -7120,14 +7705,42 @@ const swipe = {
7120
7705
  if (swipeCount === 0 && swipable) {
7121
7706
  window.removeEventListener('popstate', handleNavigationChange);
7122
7707
  window.removeEventListener('navigationchange', handleNavigationChange);
7123
- document.body.removeChild(swipable);
7708
+ const SwipifyBlock = document.getElementById('swipify_tui');
7709
+ SwipifyBlock.style.display = 'none';
7710
+ SwipifyBlock.removeChild(swipable);
7124
7711
  }
7125
7712
  }
7713
+ } else {
7714
+ if (swipeCount === 0 && swipable) {
7715
+ const SwipifyBlock = document.getElementById('swipify_tui');
7716
+ SwipifyBlock.style.display = 'none';
7717
+ SwipifyBlock.removeChild(swipable);
7718
+ }
7126
7719
  }
7127
7720
  }
7128
7721
  };
7129
7722
  const SwipeModal = () => {
7130
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
7723
+ const ref = useRef(null);
7724
+ useEffect(() => {
7725
+ const parentSize = ref.current.parentNode.style.height;
7726
+ if (Number(parentSize.replace(/\D/g, '')) > 0) {
7727
+ ref.current.style.height = '100%';
7728
+ } else {
7729
+ ref.current.style.height = '100vh';
7730
+ }
7731
+ }, [ref]);
7732
+ return /*#__PURE__*/React__default.createElement("div", {
7733
+ ref: ref,
7734
+ id: "swipify_tui",
7735
+ style: {
7736
+ position: 'absolute',
7737
+ width: '100%',
7738
+ top: 0,
7739
+ overflow: 'hidden',
7740
+ zIndex: 1,
7741
+ display: 'none'
7742
+ }
7743
+ });
7131
7744
  };
7132
7745
 
7133
7746
  const TypographyType = {
@@ -7246,13 +7859,13 @@ const range = (start, end) => {
7246
7859
  }, (_, idx) => idx + start);
7247
7860
  };
7248
7861
  const PaginationRange = ({
7249
- offset,
7862
+ innerOffset,
7250
7863
  currentTotalCount,
7251
7864
  currentPageNumber
7252
7865
  }) => {
7253
7866
  const paginationRange = useMemo(() => {
7254
7867
  const firstPageIndex = 1;
7255
- const totalPageCount = Math.ceil(currentTotalCount / offset);
7868
+ const totalPageCount = Math.ceil(currentTotalCount / innerOffset);
7256
7869
  const lastPageIndex = totalPageCount;
7257
7870
  if (7 >= totalPageCount) {
7258
7871
  return range(1, totalPageCount);
@@ -7275,14 +7888,10 @@ const PaginationRange = ({
7275
7888
  } else {
7276
7889
  return range(firstPageIndex, totalPageCount);
7277
7890
  }
7278
- }, [currentTotalCount, offset, currentPageNumber]);
7891
+ }, [currentTotalCount, innerOffset, currentPageNumber]);
7279
7892
  return paginationRange;
7280
7893
  };
7281
7894
 
7282
- var css_248z$1 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT>ul{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:center}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:13px;line-height:16px;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}i{color:#3c393e;font-size:12px;line-height:12px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}";
7283
- var styles$1 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
7284
- styleInject(css_248z$1);
7285
-
7286
7895
  const SvgDots = ({
7287
7896
  title,
7288
7897
  titleId,
@@ -7321,57 +7930,51 @@ const SvgNextarrow = ({
7321
7930
  fill: fillColor ? fillColor : '#3C393E'
7322
7931
  }));
7323
7932
 
7933
+ var css_248z$1 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT>ul{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;justify-content:center}.pagination-module_pagination-btn__w8Yh8{align-items:center;border:none;cursor:pointer;display:flex;justify-content:center;outline:none}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;cursor:pointer;display:flex;flex:0 0 auto;justify-content:center;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}.pagination-module_show-offset-block__ksPGm{height:34px;margin-left:10px!important;margin-right:4px!important;width:91px}i{color:#3c393e;font-size:12px;line-height:12px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}";
7934
+ var styles$1 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8","show-offset-block":"pagination-module_show-offset-block__ksPGm"};
7935
+ styleInject(css_248z$1);
7936
+
7324
7937
  const Pagination = ({
7325
7938
  goTo,
7326
- offset = 2,
7939
+ offset,
7327
7940
  onChange,
7328
7941
  className,
7942
+ getOffset,
7329
7943
  totalCount,
7330
- currentPage
7944
+ showOffset,
7945
+ currentPage,
7946
+ offsetCounts,
7947
+ color,
7948
+ width,
7949
+ height,
7950
+ fontSize,
7951
+ fontStyle,
7952
+ fontWeight,
7953
+ fontFamily,
7954
+ lineHeight,
7955
+ activeColor,
7956
+ hoverColor,
7957
+ backgroundColor,
7958
+ hoverBackgroundColor,
7959
+ activeBackgroundColor,
7960
+ borderColor,
7961
+ borderWidth,
7962
+ borderRadius
7331
7963
  }) => {
7332
7964
  const [inpVal, setInpVal] = useState('');
7333
7965
  const [error, setError] = useState(false);
7966
+ const [isHover, setIsHover] = useState(false);
7334
7967
  const [classProps, setClassProps] = useState({});
7968
+ const [offsetArgs, setOffsetArgs] = useState({});
7969
+ const [innerOffset, setInnerOffset] = useState(2);
7335
7970
  const [configStyles, setConfigStyles] = useState({});
7971
+ const [innerShowOffset, setInnerShowOffset] = useState(false);
7336
7972
  const [currentPageNumber, setCurrentPage] = useState(currentPage);
7337
7973
  const [currentTotalCount, setcurrentTotalCount] = useState(totalCount);
7338
- useEffect(() => {
7339
- configStylesPromise.then(data => {
7340
- setClassProps(() => classnames(
7341
- // TODO: check and remove pagination-bar-rem class
7342
- styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
7343
- setConfigStyles(() => {
7344
- return {
7345
- ...data
7346
- };
7347
- });
7348
- }, error => {
7349
- console.error(error);
7350
- });
7351
- }, []);
7352
- useEffect(() => {
7353
- className && setClassProps(() => classnames(
7354
- // TODO: check and remove pagination-bar-rem class
7355
- styles$1.list, className ?? configStyles.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
7356
- }, [className]);
7357
- useEffect(() => {
7358
- setcurrentTotalCount(totalCount);
7359
- }, [totalCount]);
7360
- useEffect(() => {
7361
- setCurrentPage(currentPage);
7362
- }, [currentPage]);
7363
- const onPageChange = page => {
7364
- if (page > 0) {
7365
- setCurrentPage(page);
7366
- }
7367
- };
7368
- useEffect(() => {
7369
- onChange(currentPageNumber);
7370
- }, [currentPageNumber]);
7371
7974
  const paginationRange = PaginationRange({
7372
7975
  currentPageNumber,
7373
7976
  currentTotalCount,
7374
- offset
7977
+ innerOffset
7375
7978
  });
7376
7979
  if (currentPageNumber === 0 || paginationRange?.length < 2) {
7377
7980
  return null;
@@ -7413,16 +8016,88 @@ const Pagination = ({
7413
8016
  if (inpVal <= 1) {
7414
8017
  setInpVal(1);
7415
8018
  onPageChange(1);
7416
- } else if (inpVal >= totalCount / offset) {
7417
- setInpVal(Math.ceil(totalCount / offset));
7418
- onPageChange(Math.ceil(totalCount / offset));
8019
+ } else if (inpVal >= totalCount / innerOffset) {
8020
+ setInpVal(Math.ceil(totalCount / innerOffset));
8021
+ onPageChange(Math.ceil(totalCount / innerOffset));
7419
8022
  } else {
7420
8023
  onPageChange(inpVal);
7421
8024
  }
7422
8025
  }
7423
8026
  }
7424
8027
  };
8028
+ const handleChangeSelect = e => {
8029
+ setInnerOffset(() => {
8030
+ return parseInt(e.value.split('/')[0].trim());
8031
+ });
8032
+ if (getOffset) {
8033
+ getOffset(parseInt(e.value.split('/')[0].trim()));
8034
+ }
8035
+ };
8036
+ const handleMouseEnter = hoverIndex => {
8037
+ setIsHover(hoverIndex);
8038
+ };
8039
+ const handleMouseLeave = () => {
8040
+ setIsHover(false);
8041
+ };
8042
+ const onPageChange = page => {
8043
+ if (page > 0) {
8044
+ setCurrentPage(page);
8045
+ }
8046
+ };
7425
8047
  let lastPage = paginationRange[paginationRange.length - 1];
8048
+ useEffect(() => {
8049
+ configStylesPromise.then(data => {
8050
+ setClassProps(() => classnames(
8051
+ // TODO: check and remove pagination-bar-rem class
8052
+ styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
8053
+ setConfigStyles(() => {
8054
+ return {
8055
+ ...data
8056
+ };
8057
+ });
8058
+ }, error => {
8059
+ console.error(error);
8060
+ });
8061
+ }, []);
8062
+ useEffect(() => {
8063
+ setInnerShowOffset(() => showOffset);
8064
+ if (showOffset && offsetCounts && offsetCounts.length) {
8065
+ const newOptions = offsetCounts.map((innerItem, innerIndex) => {
8066
+ return {
8067
+ item: innerIndex,
8068
+ value: `${innerItem} / Էջ `
8069
+ };
8070
+ });
8071
+ setOffsetArgs(() => {
8072
+ return {
8073
+ showCloseIcon: false,
8074
+ options: newOptions,
8075
+ onChange: handleChangeSelect,
8076
+ defaultOption: `${newOptions[0].value}`,
8077
+ keyNames: {
8078
+ name: 'value',
8079
+ id: 'item'
8080
+ }
8081
+ };
8082
+ });
8083
+ setInnerOffset(() => offsetCounts[0]);
8084
+ }
8085
+ }, [offsetCounts, showOffset]);
8086
+ useEffect(() => {
8087
+ className && setClassProps(() => classnames(
8088
+ // TODO: check and remove pagination-bar-rem class
8089
+ styles$1.list, className ?? configStyles.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
8090
+ }, [className]);
8091
+ useEffect(() => {
8092
+ setcurrentTotalCount(totalCount);
8093
+ setInnerOffset(() => offset > totalCount ? totalCount : offset);
8094
+ }, [totalCount, offset]);
8095
+ useEffect(() => {
8096
+ setCurrentPage(currentPage);
8097
+ }, [currentPage]);
8098
+ useEffect(() => {
8099
+ onChange(currentPageNumber);
8100
+ }, [currentPageNumber]);
7426
8101
  return configStyles.PAGINATION && /*#__PURE__*/React__default.createElement("div", {
7427
8102
  style: {
7428
8103
  display: 'flex',
@@ -7433,6 +8108,20 @@ const Pagination = ({
7433
8108
  className: classProps
7434
8109
  }, /*#__PURE__*/React__default.createElement("ul", null, /*#__PURE__*/React__default.createElement("button", {
7435
8110
  style: {
8111
+ width: width ?? configStyles.PAGINATION.width,
8112
+ height: height ?? configStyles.PAGINATION.height,
8113
+ fontSize: fontSize ?? configStyles.PAGINATION.font.size,
8114
+ fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8115
+ fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
8116
+ fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
8117
+ lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8118
+ backgroundColor: backgroundColor ?? configStyles.PAGINATION.backgroundColor,
8119
+ boxShadow: `
8120
+ 0 0 0
8121
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8122
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8123
+ `,
8124
+ borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius,
7436
8125
  transform: 'rotate(180deg)'
7437
8126
  },
7438
8127
  onClick: onPrevious,
@@ -7443,7 +8132,17 @@ const Pagination = ({
7443
8132
  let currentPageIndex = paginationRange.indexOf(currentPageNumber);
7444
8133
  return /*#__PURE__*/React__default.createElement("li", {
7445
8134
  key: id,
7446
- className: classnames(`${styles$1['pagination-jump-next']} pagination-jump-next-rem`, styles$1.listItem),
8135
+ className: classnames(`${styles$1['pagination-jump-next']} pagination-jump-next-rem`),
8136
+ style: {
8137
+ width: width ?? configStyles.PAGINATION.width,
8138
+ height: height ?? configStyles.PAGINATION.height,
8139
+ boxShadow: `
8140
+ 0 0 0
8141
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8142
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8143
+ `,
8144
+ borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
8145
+ },
7447
8146
  onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
7448
8147
  disabled: currentPageIndex === 0 ? true : false
7449
8148
  }, id < currentPageIndex ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
@@ -7462,43 +8161,144 @@ const Pagination = ({
7462
8161
  return /*#__PURE__*/React__default.createElement("li", {
7463
8162
  onClick: () => onPageChange(pageNumber),
7464
8163
  key: id,
7465
- className: classnames(`${pageNumber === currentPageNumber ? styles$1.selected : styles$1.listItem}`, `${styles$1['pagination-item']} pagination-item-rem`)
8164
+ className: classnames(`${styles$1['pagination-item']} pagination-item-rem`),
8165
+ onMouseEnter: () => handleMouseEnter(id),
8166
+ onMouseLeave: () => handleMouseLeave(),
8167
+ style: {
8168
+ width: width ?? configStyles.PAGINATION.width,
8169
+ height: height ?? configStyles.PAGINATION.height,
8170
+ fontSize: fontSize ?? configStyles.PAGINATION.font.size,
8171
+ fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8172
+ fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
8173
+ fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
8174
+ lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8175
+ color: `
8176
+ ${pageNumber === currentPageNumber ? activeColor ?? configStyles.PAGINATION.colors.active : isHover === id ? hoverColor ?? configStyles.PAGINATION.colors.hover : color ?? configStyles.PAGINATION.color}
8177
+ `,
8178
+ backgroundColor: `
8179
+ ${pageNumber === currentPageNumber ? activeBackgroundColor ?? configStyles.PAGINATION.colors.activeBackground : isHover === id ? hoverBackgroundColor ?? configStyles.PAGINATION.colors.hoverBackground : backgroundColor ?? configStyles.PAGINATION.colors.background}
8180
+ `,
8181
+ boxShadow: `
8182
+ 0 0 0
8183
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8184
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8185
+ `,
8186
+ borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
8187
+ }
7466
8188
  }, pageNumber);
7467
8189
  }), /*#__PURE__*/React__default.createElement("button", {
7468
8190
  onClick: onNext,
7469
8191
  disabled: currentPageNumber === lastPage ? true : false,
7470
- className: `${styles$1['pagination-btn']} pagination-btn-rem`
7471
- }, /*#__PURE__*/React__default.createElement(SvgNextarrow, null))), goTo && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("input", {
8192
+ className: `${styles$1['pagination-btn']} pagination-btn-rem`,
8193
+ style: {
8194
+ width: width ?? configStyles.PAGINATION.width,
8195
+ height: height ?? configStyles.PAGINATION.height,
8196
+ fontSize: fontSize ?? configStyles.PAGINATION.font.size,
8197
+ fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8198
+ fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
8199
+ fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
8200
+ lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8201
+ backgroundColor: backgroundColor ?? configStyles.PAGINATION.backgroundColor,
8202
+ boxShadow: `
8203
+ 0 0 0
8204
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8205
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8206
+ `,
8207
+ borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
8208
+ }
8209
+ }, /*#__PURE__*/React__default.createElement(SvgNextarrow, null))), innerShowOffset && /*#__PURE__*/React__default.createElement("div", {
8210
+ className: "show-offset-block",
8211
+ style: {
8212
+ width: '91px',
8213
+ height: '34px',
8214
+ marginLeft: '10px',
8215
+ marginRight: '3px'
8216
+ }
8217
+ }, /*#__PURE__*/React__default.createElement(Select, _extends({
8218
+ insidePagination: true,
8219
+ selectedMinHeight: "34px",
8220
+ boxShadow: `
8221
+ 0 0 0
8222
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8223
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8224
+ `,
8225
+ boxShadowHover: `
8226
+ 0 0 0
8227
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8228
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8229
+ `,
8230
+ selectedFontSize: fontSize ?? configStyles.PAGINATION.font.size,
8231
+ selectedFontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8232
+ selectedLineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8233
+ selectedFontFamily: fontWeight ?? configStyles.PAGINATION.font.weight,
8234
+ selectedFontWeight: fontFamily ?? configStyles.PAGINATION.font.family,
8235
+ optionItemFontSize: fontSize ?? configStyles.PAGINATION.font.size,
8236
+ optionItemFontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8237
+ optionItemLineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8238
+ optionItemFontFamily: fontWeight ?? configStyles.PAGINATION.font.weight,
8239
+ optionItemFontWeight: fontFamily ?? configStyles.PAGINATION.font.family
8240
+ }, offsetArgs))), goTo && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("input", {
7472
8241
  onKeyDown: handleKeyDown,
7473
8242
  onInput: handleChangeInput,
7474
8243
  type: "number",
7475
8244
  style: {
7476
- width: '53px',
7477
- height: '30px',
8245
+ width: '55px',
8246
+ border: 'none',
7478
8247
  outline: 'none',
7479
- color: '#3C393E',
7480
- fontSize: '13px',
7481
8248
  margin: '0px 6px',
7482
- fontWeight: '500',
7483
8249
  textAlign: 'center',
7484
- border: '1px solid',
7485
- borderRadius: '6px',
7486
- borderColor: error ? 'red' : '#00236a'
8250
+ color: color ?? configStyles.PAGINATION.color,
8251
+ height: height ?? configStyles.PAGINATION.height,
8252
+ fontSize: fontSize ?? configStyles.PAGINATION.font.size,
8253
+ fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8254
+ fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
8255
+ fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
8256
+ lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8257
+ backgroundColor: backgroundColor ?? configStyles.PAGINATION.backgroundColor,
8258
+ boxShadow: `
8259
+ 0 0 0
8260
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8261
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8262
+ `,
8263
+ borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
7487
8264
  },
7488
8265
  value: inpVal
7489
8266
  }), /*#__PURE__*/React__default.createElement("span", {
7490
8267
  style: {
7491
- color: '#3C393E',
7492
- fontSize: '13px'
8268
+ color: color ?? configStyles.PAGINATION.color,
8269
+ fontSize: fontSize ?? configStyles.PAGINATION.font.size,
8270
+ fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8271
+ fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
8272
+ fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
8273
+ lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight
7493
8274
  }
7494
8275
  }, "\u0537\u057B")));
7495
8276
  };
7496
8277
  Pagination.propTypes = {
7497
8278
  goTo: PropTypes.bool,
7498
8279
  offset: PropTypes.number,
7499
- totalCount: PropTypes.number,
8280
+ getOffset: PropTypes.func,
8281
+ showOffset: PropTypes.bool,
7500
8282
  className: PropTypes.string,
7501
- currentPage: PropTypes.number
8283
+ totalCount: PropTypes.number,
8284
+ currentPage: PropTypes.number,
8285
+ offsetCounts: PropTypes.arrayOf(PropTypes.number),
8286
+ color: PropTypes.string,
8287
+ width: PropTypes.string,
8288
+ height: PropTypes.string,
8289
+ fontSize: PropTypes.string,
8290
+ fontWeight: PropTypes.string,
8291
+ fontFamily: PropTypes.string,
8292
+ fontStyle: PropTypes.string,
8293
+ lineHeight: PropTypes.string,
8294
+ activeColor: PropTypes.string,
8295
+ hoverColor: PropTypes.string,
8296
+ backgroundColor: PropTypes.string,
8297
+ hoverBackgroundColor: PropTypes.string,
8298
+ activeBackgroundColor: PropTypes.string,
8299
+ borderColor: PropTypes.string,
8300
+ borderWidth: PropTypes.string,
8301
+ borderRadius: PropTypes.string
7502
8302
  };
7503
8303
 
7504
8304
  var css_248z = ".autocomplete-module_auto-complete__oUOv9{appearance:none!important;-webkit-appearance:none!important}";
@@ -7916,4 +8716,4 @@ Autocomplete.propTypes = {
7916
8716
  backgroundDisableColor: PropTypes.string
7917
8717
  };
7918
8718
 
7919
- export { Autocomplete, Button, Captcha, Checkbox, DirectionMode, File, IconSides, Input, InputTypes, Modal, Pagination, PositionSide, Radio, RadioDirectionMode, Select, Stepper, SwipeModal, Table, Textarea, Toaster, Tooltip, TooltipDirections, Typography, TypographyType, swipe, toast };
8719
+ export { Accordion, Autocomplete, Button, Captcha, Checkbox, DirectionMode, File, IconSides, Input, InputTypes, Modal, Pagination, PositionSide, Radio, RadioDirectionMode, Select, Stepper, SwipeModal, Table, Textarea, Toaster, Tooltip, TooltipDirections, Typography, TypographyType, swipe, toast };