@xaypay/tui 0.2.15 → 0.2.16

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";
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";
436
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.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 : '')));
@@ -3496,7 +3669,7 @@ const Table = ({
3496
3669
  });
3497
3670
  };
3498
3671
  useEffect(() => {
3499
- const draggableArray = body && body.length && body.map((item, index) => {
3672
+ const draggableArray = body && body.length > 0 ? body.map((item, index) => {
3500
3673
  if (showOrder) {
3501
3674
  Object.values(item).map((innerItem, innerIndex) => {
3502
3675
  if (innerIndex === 1) {
@@ -3506,7 +3679,7 @@ const Table = ({
3506
3679
  });
3507
3680
  }
3508
3681
  return item;
3509
- });
3682
+ }) : [];
3510
3683
  getDraggableData && getDraggableData(draggableArray);
3511
3684
  setBody(() => draggableArray);
3512
3685
  }, [checkDrag]);
@@ -3517,7 +3690,7 @@ const Table = ({
3517
3690
  let newArray = [];
3518
3691
  let checkedItems = [];
3519
3692
  const disabledArray = [];
3520
- const checkBodyForChackedItems = dataBody.slice().map(item => Object.values(item));
3693
+ const checkBodyForChackedItems = dataBody && dataBody.length > 0 ? dataBody.slice().map(item => Object.values(item)) : [];
3521
3694
  if (arrowShow) {
3522
3695
  let column = arrowColumn;
3523
3696
  if (draggable) {
@@ -3545,7 +3718,7 @@ const Table = ({
3545
3718
  newArray = insert;
3546
3719
  checkedItems = handleSetCheckboxArray(insert);
3547
3720
  } else {
3548
- insert = checkBodyForChackedItems.map((item, index) => {
3721
+ insert = checkBodyForChackedItems && checkBodyForChackedItems.length > 0 ? checkBodyForChackedItems.map((item, index) => {
3549
3722
  item.map((innerItem, innerIndex) => {
3550
3723
  if (hasOwnerProperty(innerItem, 'checkBox')) {
3551
3724
  if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
@@ -3561,12 +3734,12 @@ const Table = ({
3561
3734
  }
3562
3735
  });
3563
3736
  return item;
3564
- });
3737
+ }) : [];
3565
3738
  newArray = insert;
3566
3739
  checkedItems = handleSetCheckboxArray(insert);
3567
3740
  }
3568
- if (draggable) {
3569
- newArray = insert && insert.length && insert.map((item, index) => {
3741
+ if (draggable && dataBody && dataBody.length > 0) {
3742
+ newArray = insert && insert.length > 0 ? insert.map((item, index) => {
3570
3743
  item.map(innerItem => {
3571
3744
  if (hasOwnerProperty(innerItem, 'colorStatus')) {
3572
3745
  innerItem.colorStatus = null;
@@ -3583,12 +3756,11 @@ const Table = ({
3583
3756
  colorStatus: draggableColor
3584
3757
  });
3585
3758
  return item;
3586
- });
3759
+ }) : [];
3587
3760
  }
3588
3761
  setBody(() => [...newArray]);
3589
3762
  setDisableArr(disabledArray);
3590
3763
  setCheckedArray(() => checkedItems);
3591
- getDraggableData && getDraggableData(newArray);
3592
3764
  }
3593
3765
  }, [dataBody, arrowColumn, arrowShow, draggable]);
3594
3766
  useEffect(() => {
@@ -3635,7 +3807,7 @@ const Table = ({
3635
3807
  console.error(error);
3636
3808
  });
3637
3809
  }, []);
3638
- return configStyles.TABLE && /*#__PURE__*/React__default.createElement("table", {
3810
+ return configStyles.TABLE && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("table", {
3639
3811
  style: {
3640
3812
  width: '100%',
3641
3813
  borderCollapse: tableRowItem ?? configStyles.TABLE.body.row.asItem ? 'separate' : 'collapse',
@@ -3670,7 +3842,7 @@ const Table = ({
3670
3842
  tableColumnMinWidth: tableColumnMinWidth ?? configStyles.TABLE.column.minWidth,
3671
3843
  tableColumnMaxWidth: tableColumnMaxWidth ?? configStyles.TABLE.column.maxWidth
3672
3844
  });
3673
- }))), body && body.length > 0 && /*#__PURE__*/React__default.createElement("tbody", {
3845
+ }))), body && body.length > 0 ? /*#__PURE__*/React__default.createElement("tbody", {
3674
3846
  style: {
3675
3847
  boxShadow: tBodyBoxShadow ?? configStyles.TABLE.body.box.shadow
3676
3848
  }
@@ -3682,7 +3854,7 @@ const Table = ({
3682
3854
  style: {
3683
3855
  backgroundColor: tableRowBGColor ?? configStyles.TABLE.body.row.colors.background,
3684
3856
  borderBottom: index === body.length - 1 ? 'none' : tBodyRowBorder ? tBodyRowBorder : configStyles.TABLE.body.row.border,
3685
- borderColor: hideBorder ? 'transparent' : configStyles.TABLE.body.row.borderColor,
3857
+ borderColor: hideBorder || index === body.length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor,
3686
3858
  boxShadow: (tableRowItem ? tableRowItem : configStyles.TABLE.body.row.asItem) ? tableRowBoxShadow ? tableRowBoxShadow : configStyles.TABLE.body.row.box.shadow : 'none'
3687
3859
  },
3688
3860
  ref: el => setRef(index, el)
@@ -3729,7 +3901,7 @@ const Table = ({
3729
3901
  handleOpenCloseRowSingleArrow: handleOpenCloseRowSingleArrow
3730
3902
  });
3731
3903
  }));
3732
- })), draggable && dragging && draggedItem && /*#__PURE__*/React__default.createElement("div", {
3904
+ })) : '', body && body.length > 0 && draggable && dragging && draggedItem && /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", {
3733
3905
  style: {
3734
3906
  position: 'fixed',
3735
3907
  top: `${position.y - 30}px`,
@@ -3775,7 +3947,9 @@ const Table = ({
3775
3947
  borderRight: innerIndex === Object.values(draggedItem).length - 1 ? 'none' : configStyles.TABLE.body.row.border,
3776
3948
  borderRightColor: innerIndex === Object.values(draggedItem).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor
3777
3949
  });
3778
- })));
3950
+ })))), !body.length && /*#__PURE__*/React__default.createElement("div", {
3951
+ className: styles$a['no-tabel-data']
3952
+ }, /*#__PURE__*/React__default.createElement("p", null, "\u054F\u057E\u0575\u0561\u056C\u0576\u0565\u0580 \u0579\u056F\u0561\u0576")));
3779
3953
  };
3780
3954
  Table.propTypes = {
3781
3955
  getData: PropTypes.func,
@@ -3819,9 +3993,9 @@ Table.propTypes = {
3819
3993
  hideBorder: PropTypes.bool
3820
3994
  };
3821
3995
 
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)}}";
3996
+ 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
3997
  var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
3824
- styleInject(css_248z$a);
3998
+ styleInject(css_248z$b);
3825
3999
 
3826
4000
  const SvgNext = ({
3827
4001
  title,
@@ -3941,6 +4115,7 @@ const Modal = ({
3941
4115
  prevIcon,
3942
4116
  nextIcon,
3943
4117
  closeIcon,
4118
+ showCloseIcon,
3944
4119
  closeSlideIcon,
3945
4120
  selected,
3946
4121
  children,
@@ -3953,6 +4128,7 @@ const Modal = ({
3953
4128
  headerText,
3954
4129
  imageWidth,
3955
4130
  headerSize,
4131
+ headerIcon,
3956
4132
  headerStyle,
3957
4133
  headerFamily,
3958
4134
  imageHeight,
@@ -3966,10 +4142,14 @@ const Modal = ({
3966
4142
  headerWeight,
3967
4143
  headerHeight,
3968
4144
  justifyContent,
4145
+ headerTextAlign,
3969
4146
  backgroundColor,
3970
4147
  imageWrapHeight,
3971
4148
  grayDecorHeight,
4149
+ headerIconMaxWidth,
4150
+ headerIconMaxHeight,
3972
4151
  layerBackgroundColor,
4152
+ headerIconMarginRight,
3973
4153
  closeAreaBackgroundColor,
3974
4154
  type = 'content'
3975
4155
  }) => {
@@ -3981,7 +4161,15 @@ const Modal = ({
3981
4161
  const [classProps, setClassProps] = useState({});
3982
4162
  const [configStyles, setConfigStyles] = useState({});
3983
4163
  const handleCloseModal = () => {
3984
- setShow(false);
4164
+ if (outsideClose !== undefined) {
4165
+ if (outsideClose) {
4166
+ setShow(false);
4167
+ }
4168
+ } else {
4169
+ if (configStyles.MODAL.outsideClose) {
4170
+ setShow(false);
4171
+ }
4172
+ }
3985
4173
  };
3986
4174
  const handleStopClosing = e => {
3987
4175
  e.stopPropagation();
@@ -4076,7 +4264,7 @@ const Modal = ({
4076
4264
  }, []);
4077
4265
  return configStyles.MODAL && /*#__PURE__*/React__default.createElement("div", {
4078
4266
  className: classProps,
4079
- onClick: outsideClose || configStyles.MODAL.outsideClose ? handleCloseModal : _ => _,
4267
+ onClick: handleCloseModal,
4080
4268
  style: {
4081
4269
  top: '0px',
4082
4270
  left: '0px',
@@ -4125,7 +4313,18 @@ const Modal = ({
4125
4313
  justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end',
4126
4314
  backgroundColor: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
4127
4315
  }
4128
- }, headerText && type === 'content' && /*#__PURE__*/React__default.createElement("p", {
4316
+ }, headerIcon && type === 'content' && /*#__PURE__*/React__default.createElement("div", {
4317
+ style: {
4318
+ display: 'flex',
4319
+ width: 'fit-content',
4320
+ alignItems: 'center',
4321
+ height: 'fit-content',
4322
+ justifyContent: 'center',
4323
+ maxWidth: headerIconMaxWidth ?? configStyles.MODAL.header.icon.maxWidth,
4324
+ maxHeight: headerIconMaxHeight ?? configStyles.MODAL.header.icon.maxHeight,
4325
+ marginRight: headerIconMarginRight ?? configStyles.MODAL.header.icon.marginRight
4326
+ }
4327
+ }, headerIcon), headerText && type === 'content' && /*#__PURE__*/React__default.createElement("p", {
4129
4328
  style: {
4130
4329
  flex: '1',
4131
4330
  overflow: 'hidden',
@@ -4134,18 +4333,25 @@ const Modal = ({
4134
4333
  margin: '0px 16px 0px 0px',
4135
4334
  color: headerColor ?? configStyles.MODAL.header.color,
4136
4335
  fontSize: headerSize ?? configStyles.MODAL.header.font.size,
4336
+ textAlign: headerTextAlign ?? configStyles.MODAL.header.align,
4137
4337
  fontStyle: headerStyle ?? configStyles.MODAL.header.font.style,
4138
4338
  fontFamily: headerFamily ?? configStyles.MODAL.header.font.family,
4139
4339
  fontWeight: headerWeight ?? configStyles.MODAL.header.font.weight
4140
4340
  }
4141
- }, headerText), /*#__PURE__*/React__default.createElement("div", {
4142
- onClick: handleCloseModal,
4341
+ }, headerText), showCloseIcon ? /*#__PURE__*/React__default.createElement("div", {
4342
+ onClick: () => setShow(false),
4143
4343
  style: {
4144
- width: '14px',
4145
- height: '14px',
4146
- cursor: 'pointer'
4344
+ display: 'flex',
4345
+ minWidth: '14px',
4346
+ minHeight: '14px',
4347
+ cursor: 'pointer',
4348
+ width: 'fit-content',
4349
+ alignItems: 'center',
4350
+ alignSelf: 'flex-end',
4351
+ height: 'fit-content',
4352
+ justifyContent: 'center'
4147
4353
  }
4148
- }, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null))), /*#__PURE__*/React__default.createElement("div", {
4354
+ }, closeIcon ? closeIcon : configStyles.MODAL.icon.close ? configStyles.MODAL.icon.close : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null)) : ''), /*#__PURE__*/React__default.createElement("div", {
4149
4355
  style: {
4150
4356
  display: 'flex',
4151
4357
  width: '100%',
@@ -4188,7 +4394,7 @@ const Modal = ({
4188
4394
  background: closeAreaBackgroundColor ?? configStyles.MODAL.closeAreaBackgroundColor
4189
4395
  }
4190
4396
  }, /*#__PURE__*/React__default.createElement("button", {
4191
- onClick: handleCloseModal,
4397
+ onClick: () => setShow(false),
4192
4398
  style: {
4193
4399
  position: 'absolute',
4194
4400
  zIndex: '1',
@@ -4293,14 +4499,20 @@ Modal.propTypes = {
4293
4499
  prevIcon: PropTypes.element,
4294
4500
  nextIcon: PropTypes.element,
4295
4501
  closeIcon: PropTypes.element,
4502
+ showCloseIcon: PropTypes.bool,
4296
4503
  closeSlideIcon: PropTypes.element,
4297
- alignItems: PropTypes.string,
4298
- mMaxHeight: PropTypes.string,
4299
4504
  headerText: PropTypes.string,
4300
- imageWidth: PropTypes.string,
4301
4505
  headerSize: PropTypes.string,
4302
4506
  headerStyle: PropTypes.string,
4507
+ headerIcon: PropTypes.element,
4303
4508
  headerFamily: PropTypes.string,
4509
+ headerTextAlign: PropTypes.string,
4510
+ headerIconMaxWidth: PropTypes.string,
4511
+ headerIconMaxHeight: PropTypes.string,
4512
+ headerIconMarginRight: PropTypes.string,
4513
+ alignItems: PropTypes.string,
4514
+ mMaxHeight: PropTypes.string,
4515
+ imageWidth: PropTypes.string,
4304
4516
  outsideClose: PropTypes.bool,
4305
4517
  showZoomIcon: PropTypes.bool,
4306
4518
  imageMargin: PropTypes.string,
@@ -4379,19 +4591,23 @@ const TelInput = ({
4379
4591
  ...inpStyles,
4380
4592
  border: 'none',
4381
4593
  outline: 'none',
4382
- borderRadius: radius
4594
+ borderTopRightRadius: radius,
4595
+ borderBottomRightRadius: radius
4383
4596
  }
4384
4597
  }));
4385
4598
  };
4386
4599
 
4387
4600
  const TextInput = ({
4601
+ ssn,
4388
4602
  value,
4389
4603
  radius,
4390
- inputChange,
4604
+ disabled,
4391
4605
  maxLength,
4392
4606
  inpStyles,
4393
- disabled,
4394
- inpAttributes
4607
+ inputChange,
4608
+ inpAttributes,
4609
+ checkLeftIcon,
4610
+ checkRightIcon
4395
4611
  }) => {
4396
4612
  const [innerValue, setInnerValue] = useState('');
4397
4613
  const handleChange = event => {
@@ -4400,9 +4616,9 @@ const TextInput = ({
4400
4616
  if (maxLength && currentValue.length > maxLength) {
4401
4617
  currentValue = currentValue.substr(0, maxLength);
4402
4618
  }
4403
- setInnerValue(() => currentValue);
4619
+ setInnerValue(() => ssn ? currentValue.replace(/[^a-zA-ZԱ-Ֆա-ֆА-Яа-яЁё0-9\s]/g, '') : currentValue);
4404
4620
  if (inputChange && currentValue !== prevValue) {
4405
- inputChange(currentValue);
4621
+ inputChange(ssn ? currentValue.replace(/[^a-zA-ZԱ-Ֆա-ֆА-Яа-яЁё0-9\s]/g, '') : currentValue);
4406
4622
  }
4407
4623
  };
4408
4624
  useEffect(() => {
@@ -4413,7 +4629,7 @@ const TextInput = ({
4413
4629
  newValue = value.substr(0, maxLength);
4414
4630
  }
4415
4631
  }
4416
- setInnerValue(() => newValue);
4632
+ setInnerValue(() => ssn ? newValue.replace(/[^a-zA-ZԱ-Ֆա-ֆА-Яа-яЁё0-9\s]/g, '') : newValue);
4417
4633
  }, [value]);
4418
4634
  return /*#__PURE__*/React__default.createElement("input", {
4419
4635
  type: "text",
@@ -4427,7 +4643,10 @@ const TextInput = ({
4427
4643
  ...inpStyles,
4428
4644
  border: 'none',
4429
4645
  outline: 'none',
4430
- borderRadius: radius
4646
+ borderTopLeftRadius: checkLeftIcon ? '0px' : radius,
4647
+ borderTopRightRadius: checkRightIcon ? '0px' : radius,
4648
+ borderBottomLeftRadius: checkLeftIcon ? '0px' : radius,
4649
+ borderBottomRightRadius: checkRightIcon ? '0px' : radius
4431
4650
  }
4432
4651
  });
4433
4652
  };
@@ -4436,11 +4655,13 @@ const PassInput = ({
4436
4655
  show,
4437
4656
  value,
4438
4657
  radius,
4439
- inputChange,
4658
+ disabled,
4440
4659
  maxLength,
4660
+ inpStyles,
4661
+ inputChange,
4441
4662
  inpAttributes,
4442
- disabled,
4443
- inpStyles
4663
+ checkLeftIcon,
4664
+ checkRightIcon
4444
4665
  }) => {
4445
4666
  const [innerShow, setInnerShow] = useState('');
4446
4667
  const [innerValue, setInnerValue] = useState('');
@@ -4480,7 +4701,10 @@ const PassInput = ({
4480
4701
  ...inpStyles,
4481
4702
  border: 'none',
4482
4703
  outline: 'none',
4483
- borderRadius: radius
4704
+ borderTopLeftRadius: checkLeftIcon ? '0px' : radius,
4705
+ borderTopRightRadius: checkRightIcon ? '0px' : radius,
4706
+ borderBottomLeftRadius: checkLeftIcon ? '0px' : radius,
4707
+ borderBottomRightRadius: checkRightIcon ? '0px' : radius
4484
4708
  }
4485
4709
  });
4486
4710
  };
@@ -4493,11 +4717,15 @@ const NumberInput = ({
4493
4717
  withZero,
4494
4718
  disabled,
4495
4719
  inpStyles,
4720
+ cardNumber,
4496
4721
  minNumSize,
4497
4722
  maxNumSize,
4498
4723
  insideError,
4499
4724
  inputChange,
4725
+ errorMessage,
4726
+ checkLeftIcon,
4500
4727
  inpAttributes,
4728
+ checkRightIcon,
4501
4729
  numberMaxLength,
4502
4730
  setInnerErrorMessage
4503
4731
  }) => {
@@ -4506,32 +4734,51 @@ const NumberInput = ({
4506
4734
  const handleChange = event => {
4507
4735
  let prevValue = innerValue;
4508
4736
  let currentValue = event.target.value.replace(/\.|․|\.|,/g, '.');
4509
- currentValue = handleUtilsCheckTypeNumber(currentValue, prevValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength);
4510
- setInnerValue(() => currentValue);
4737
+ currentValue = handleUtilsCheckTypeNumber(currentValue, prevValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength, cardNumber);
4738
+ setInnerValue(() => cardNumber ? currentValue.replace(/(\d{4})(?=\d)/g, '$1-') : currentValue);
4511
4739
  if (inputChange && currentValue !== prevValue) {
4512
4740
  if (currentValue < Number.MIN_SAFE_INTEGER || currentValue > Number.MAX_SAFE_INTEGER) {
4513
- if (currentValue === '') {
4514
- setInnerErrorMessage(() => '');
4741
+ if (!cardNumber) {
4742
+ if (currentValue === '') {
4743
+ setInnerErrorMessage(() => '');
4744
+ } else {
4745
+ insideError && insideError();
4746
+ setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ${Number.MIN_SAFE_INTEGER} - ${Number.MAX_SAFE_INTEGER} թվերի միջակայքում`);
4747
+ }
4515
4748
  } else {
4516
- insideError && insideError();
4517
- setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ${Number.MIN_SAFE_INTEGER} - ${Number.MAX_SAFE_INTEGER} թվերի միջակայքում`);
4749
+ inputChange(currentValue.replaceAll('-', ''));
4750
+ if (errorMessage) {
4751
+ setInnerErrorMessage(() => errorMessage);
4752
+ } else {
4753
+ setInnerErrorMessage(() => '');
4754
+ }
4518
4755
  }
4519
4756
  } else if (innerMinNumSize && currentValue < innerMinNumSize || maxNumSize && currentValue > maxNumSize) {
4520
4757
  if (currentValue === '') {
4521
4758
  setInnerErrorMessage(() => '');
4522
4759
  } 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} թվերի միջակայքում`);
4760
+ if (!cardNumber) {
4761
+ insideError && insideError();
4762
+ if (innerMinNumSize && !maxNumSize) {
4763
+ setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ոչ պակաս ${innerMinNumSize} - ից`);
4764
+ } else if (!innerMinNumSize && maxNumSize) {
4765
+ setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ոչ մեծ ${maxNumSize} ֊ ից`);
4766
+ } else if (innerMinNumSize && maxNumSize) {
4767
+ setInnerErrorMessage(() => `Լրացված դաշտի արժեքը պետք է լինի ${innerMinNumSize} - ${maxNumSize} թվերի միջակայքում`);
4768
+ }
4530
4769
  }
4531
4770
  }
4532
4771
  } else if (currentValue >= Number.MIN_SAFE_INTEGER || currentValue <= Number.MAX_SAFE_INTEGER || innerMinNumSize && currentValue >= innerMinNumSize || maxNumSize && currentValue <= maxNumSize) {
4533
- inputChange(currentValue);
4534
- setInnerErrorMessage(() => '');
4772
+ inputChange(cardNumber ? currentValue.replaceAll('-', '') : currentValue);
4773
+ if (cardNumber) {
4774
+ if (errorMessage) {
4775
+ setInnerErrorMessage(() => errorMessage);
4776
+ } else {
4777
+ setInnerErrorMessage(() => '');
4778
+ }
4779
+ } else {
4780
+ setInnerErrorMessage(() => '');
4781
+ }
4535
4782
  }
4536
4783
  }
4537
4784
  };
@@ -4541,7 +4788,7 @@ const NumberInput = ({
4541
4788
  if (parseFloat(newVal) === 0) {
4542
4789
  inputChange('');
4543
4790
  } else {
4544
- inputChange(newVal);
4791
+ inputChange(cardNumber ? newVal.replaceAll('-', '') : newVal);
4545
4792
  }
4546
4793
  }
4547
4794
  };
@@ -4559,10 +4806,11 @@ const NumberInput = ({
4559
4806
  useEffect(() => {
4560
4807
  let newValue = '';
4561
4808
  if (value !== undefined && value !== null) {
4562
- newValue = handleUtilsCheckTypeNumber(value, newValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength);
4809
+ newValue = handleUtilsCheckTypeNumber(value, newValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength, cardNumber);
4563
4810
  }
4564
- setInnerValue(() => newValue);
4565
- }, [dots, value, float, maxNumSize, minNumSize, numberMaxLength]);
4811
+ setInnerValue(() => cardNumber ? newValue.replace(/(\d{4})(?=\d)/g, '$1-') : newValue);
4812
+ // inputChange(cardNumber ? newValue.replaceAll('-', '') : newValue);
4813
+ }, [dots, value, float, cardNumber, maxNumSize, minNumSize, numberMaxLength]);
4566
4814
  return /*#__PURE__*/React__default.createElement("input", {
4567
4815
  type: "text",
4568
4816
  value: innerValue,
@@ -4574,7 +4822,10 @@ const NumberInput = ({
4574
4822
  ...inpStyles,
4575
4823
  border: 'none',
4576
4824
  outline: 'none',
4577
- borderRadius: radius
4825
+ borderTopLeftRadius: checkLeftIcon ? '0px' : radius,
4826
+ borderTopRightRadius: checkRightIcon ? '0px' : radius,
4827
+ borderBottomLeftRadius: checkLeftIcon ? '0px' : radius,
4828
+ borderBottomRightRadius: checkRightIcon ? '0px' : radius
4578
4829
  },
4579
4830
  min: minNumSize,
4580
4831
  max: maxNumSize,
@@ -4583,9 +4834,9 @@ const NumberInput = ({
4583
4834
  });
4584
4835
  };
4585
4836
 
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)}}";
4837
+ 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
4838
  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);
4839
+ styleInject(css_248z$a);
4589
4840
 
4590
4841
  const InputTypes = {
4591
4842
  TEL: 'tel',
@@ -4601,6 +4852,7 @@ const P = styled.span`
4601
4852
  animation: ${true};
4602
4853
  `;
4603
4854
  const Input = ({
4855
+ ssn,
4604
4856
  size,
4605
4857
  name,
4606
4858
  style,
@@ -4640,6 +4892,7 @@ const Input = ({
4640
4892
  errorColor,
4641
4893
  withoutDot,
4642
4894
  errorStyle,
4895
+ iconPadding,
4643
4896
  labelAction,
4644
4897
  errorAction,
4645
4898
  placeholder,
@@ -4656,6 +4909,7 @@ const Input = ({
4656
4909
  errorIconSide,
4657
4910
  showErrorIcon,
4658
4911
  errorMarginTop,
4912
+ errorBoxShadow,
4659
4913
  boxShadowHover,
4660
4914
  errorClassName,
4661
4915
  labelIconMargin,
@@ -4676,6 +4930,7 @@ const Input = ({
4676
4930
  fireInputInsideError,
4677
4931
  backgroundDisableColor,
4678
4932
  telBorderRightColorHover,
4933
+ cardNumber,
4679
4934
  type = 'text'
4680
4935
  }) => {
4681
4936
  const [show, setShow] = useState(false);
@@ -4707,19 +4962,22 @@ const Input = ({
4707
4962
  iName: name ? name : `tui_${uuid}_tui`,
4708
4963
  autoComplete: autoComplete ?? configStyles.INPUT.autoComplete
4709
4964
  };
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
- `;
4965
+
4966
+ // const errorShow = keyframes`
4967
+ // 100% {
4968
+ // bottom: '-20px';
4969
+ // transform: scale3d(1,1,1);
4970
+ // -webkit-transform: scale3d(1,1,1);
4971
+ // -moz-transform: scale3d(1,1,1);
4972
+ // -ms-transform: scale3d(1,1,1);
4973
+ // -o-transform: scale3d(1,1,1);
4974
+ // }
4975
+ // `
4976
+
4977
+ // const animation = () => css`
4978
+ // ${errorShow} 240ms forwards
4979
+ // `
4980
+
4723
4981
  const handleMouseEnter = () => {
4724
4982
  setIsHover(true);
4725
4983
  };
@@ -4817,7 +5075,7 @@ const Input = ({
4817
5075
  style: {
4818
5076
  width: width ?? configStyles.INPUT.width,
4819
5077
  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
5078
+ boxShadow: innerErrorMessage ? errorBoxShadow ? errorBoxShadow : configStyles.INPUT.error.box.shadow : isHover && !disabled ? boxShadowHover ? boxShadowHover : configStyles.INPUT.box.shadowHover : boxShadow ? boxShadow : configStyles.INPUT.box.shadow
4821
5079
  },
4822
5080
  onMouseEnter: handleMouseEnter,
4823
5081
  onMouseLeave: handleMouseLeave
@@ -4829,9 +5087,9 @@ const Input = ({
4829
5087
  justifyContent: 'center',
4830
5088
  cursor: type === 'password' ? 'pointer' : 'default',
4831
5089
  height: height ?? configStyles.INPUT.height,
4832
- padding: padding ?? configStyles.INPUT.padding,
4833
5090
  width: iconWidth ?? configStyles.INPUT.iconWidth,
4834
5091
  boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
5092
+ padding: iconPadding ?? configStyles.INPUT.iconPadding,
4835
5093
  borderTopLeftRadius: radius ?? configStyles.INPUT.radius,
4836
5094
  borderBottomLeftRadius: radius ?? configStyles.INPUT.radius,
4837
5095
  backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
@@ -4860,13 +5118,17 @@ const Input = ({
4860
5118
  withZero: withZero,
4861
5119
  inputChange: change,
4862
5120
  inpStyles: inpStyles,
5121
+ cardNumber: cardNumber,
5122
+ errorMessage: errorMessage,
4863
5123
  inpAttributes: inpAttributes,
4864
5124
  numberMaxLength: numberMaxLength,
4865
5125
  insideError: fireInputInsideError,
4866
5126
  minNumSize: minNumSize ? minNumSize : '',
4867
5127
  maxNumSize: maxNumSize ? maxNumSize : '',
4868
5128
  setInnerErrorMessage: setInnerErrorMessage,
4869
- radius: radius ?? configStyles.INPUT.radius
5129
+ radius: radius ?? configStyles.INPUT.radius,
5130
+ checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
5131
+ checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
4870
5132
  }) : type === 'password' ? /*#__PURE__*/React__default.createElement(PassInput, {
4871
5133
  show: show,
4872
5134
  type: type,
@@ -4876,15 +5138,20 @@ const Input = ({
4876
5138
  inpStyles: inpStyles,
4877
5139
  inpAttributes: inpAttributes,
4878
5140
  radius: radius ?? configStyles.INPUT.radius,
4879
- maxLength: maxLength ?? configStyles.INPUT.maxLength
5141
+ maxLength: maxLength ?? configStyles.INPUT.maxLength,
5142
+ checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
5143
+ checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
4880
5144
  }) : /*#__PURE__*/React__default.createElement(TextInput, {
5145
+ ssn: ssn,
4881
5146
  value: innerValue,
4882
5147
  disabled: disabled,
4883
5148
  inputChange: change,
4884
5149
  inpStyles: inpStyles,
4885
5150
  inpAttributes: inpAttributes,
4886
5151
  radius: radius ?? configStyles.INPUT.radius,
4887
- maxLength: maxLength ?? configStyles.INPUT.maxLength
5152
+ maxLength: maxLength ?? configStyles.INPUT.maxLength,
5153
+ checkLeftIcon: leftIcon && leftIcon.length > 0 ? true : false,
5154
+ checkRightIcon: rightIcon && rightIcon.length > 0 ? true : false
4888
5155
  }), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/React__default.createElement("div", {
4889
5156
  onClick: type === 'password' ? handleShowPass : _ => _,
4890
5157
  style: {
@@ -4893,15 +5160,16 @@ const Input = ({
4893
5160
  justifyContent: 'center',
4894
5161
  cursor: type === 'password' ? 'pointer' : 'default',
4895
5162
  height: height ?? configStyles.INPUT.height,
4896
- padding: padding ?? configStyles.INPUT.padding,
4897
5163
  width: iconWidth ?? configStyles.INPUT.iconWidth,
4898
5164
  boxSizing: boxSizing ?? configStyles.INPUT.box.sizing,
5165
+ padding: iconPadding ?? configStyles.INPUT.iconPadding,
4899
5166
  borderTopRightRadius: radius ?? configStyles.INPUT.radius,
4900
5167
  borderBottomRightRadius: radius ?? configStyles.INPUT.radius,
4901
5168
  backgroundColor: disabled ? backgroundDisableColor ? backgroundDisableColor : configStyles.INPUT.colors.backgroundDisable : backgroundColor ? backgroundColor : configStyles.INPUT.colors.background
4902
5169
  }
4903
- }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? tooltip : '', innerErrorMessage ? /*#__PURE__*/React__default.createElement(P, {
4904
- animation: animation,
5170
+ }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? tooltip : '', innerErrorMessage ? /*#__PURE__*/React__default.createElement(P
5171
+ // animation={animation}
5172
+ , {
4905
5173
  style: {
4906
5174
  margin: '0px',
4907
5175
  display: 'flex',
@@ -4951,6 +5219,7 @@ const Input = ({
4951
5219
  })) : '');
4952
5220
  };
4953
5221
  Input.propTypes = {
5222
+ ssn: PropTypes.bool,
4954
5223
  size: PropTypes.string,
4955
5224
  name: PropTypes.string,
4956
5225
  change: PropTypes.func,
@@ -4965,10 +5234,12 @@ Input.propTypes = {
4965
5234
  height: PropTypes.string,
4966
5235
  radius: PropTypes.string,
4967
5236
  padding: PropTypes.string,
5237
+ cardNumber: PropTypes.bool,
4968
5238
  tooltip: PropTypes.element,
4969
5239
  withoutDot: PropTypes.bool,
4970
5240
  className: PropTypes.string,
4971
5241
  iconWidth: PropTypes.string,
5242
+ iconPadding: PropTypes.string,
4972
5243
  maxLength: PropTypes.number,
4973
5244
  floatToFix: PropTypes.number,
4974
5245
  minNumSize: PropTypes.number,
@@ -5012,6 +5283,7 @@ Input.propTypes = {
5012
5283
  errorLineHeight: PropTypes.string,
5013
5284
  boxSizing: PropTypes.string,
5014
5285
  boxShadow: PropTypes.string,
5286
+ errorBoxShadow: PropTypes.string,
5015
5287
  boxShadowHover: PropTypes.string,
5016
5288
  phoneAlignItems: PropTypes.string,
5017
5289
  numberMaxLength: PropTypes.number,
@@ -5048,10 +5320,12 @@ const Radio = ({
5048
5320
  borderStyle,
5049
5321
  labelFontSize,
5050
5322
  labelFontStyle,
5323
+ labelActiveColor,
5051
5324
  labelFontFamily,
5052
5325
  labelFontWeight,
5053
5326
  labelLineHeight,
5054
5327
  radioMarginRight,
5328
+ borderHoverColor,
5055
5329
  borderActiveColor,
5056
5330
  radioItemMarginRight,
5057
5331
  radioItemMarginBottom,
@@ -5070,22 +5344,14 @@ const Radio = ({
5070
5344
  });
5071
5345
  const handleMouseEnter = (id, elemID) => {
5072
5346
  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;
5347
+ const borderStyle = elem.parentElement;
5348
+ borderStyle.style.borderColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderHoverColor ? borderHoverColor : configStyles.RADIO.border.hoverColor;
5349
+ elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderHoverColor ? borderHoverColor : configStyles.RADIO.border.hoverColor;
5086
5350
  };
5087
5351
  const handleMouseLeave = (id, elemID) => {
5088
5352
  const elem = document.querySelector(`#${elemID}`);
5353
+ const borderStyle = elem.parentElement;
5354
+ borderStyle.style.borderColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color;
5089
5355
  elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : 'transparent';
5090
5356
  };
5091
5357
  const handleChecked = selItem => {
@@ -5192,15 +5458,13 @@ const Radio = ({
5192
5458
  }
5193
5459
  })), item[innerKeyNames.label] ? /*#__PURE__*/React__default.createElement("span", {
5194
5460
  style: {
5195
- color: labelColor ?? configStyles.RADIO.label.color,
5461
+ color: item[innerKeyNames.id] === innerSelectedData.id ? labelActiveColor ?? configStyles.RADIO.label.activeColor : labelColor ?? configStyles.RADIO.label.color,
5196
5462
  fontSize: labelFontSize ?? configStyles.RADIO.label.font.size,
5197
5463
  fontStyle: labelFontStyle ?? configStyles.RADIO.label.font.style,
5198
5464
  fontFamily: labelFontFamily ?? configStyles.RADIO.label.font.family,
5199
5465
  fontWeight: labelFontWeight ?? configStyles.RADIO.label.font.weight,
5200
5466
  lineHeight: labelLineHeight ?? configStyles.RADIO.label.lineHeight
5201
- },
5202
- onMouseEnter: () => handleMouseEnter(item[innerKeyNames.id], elemId),
5203
- onMouseLeave: () => handleMouseLeave(item[innerKeyNames.id], elemId)
5467
+ }
5204
5468
  }, item[innerKeyNames.label]) : '');
5205
5469
  }));
5206
5470
  };
@@ -5215,11 +5479,13 @@ Radio.propTypes = {
5215
5479
  borderStyle: PropTypes.string,
5216
5480
  labelFontSize: PropTypes.string,
5217
5481
  labelFontStyle: PropTypes.string,
5482
+ labelActiveColor: PropTypes.string,
5218
5483
  labelFontFamily: PropTypes.string,
5219
5484
  labelFontWeight: PropTypes.string,
5220
5485
  labelLineHeight: PropTypes.string,
5221
5486
  radioMarginRight: PropTypes.string,
5222
5487
  getData: PropTypes.func.isRequired,
5488
+ borderHoverColor: PropTypes.string,
5223
5489
  borderActiveColor: PropTypes.string,
5224
5490
  radioItemMarginRight: PropTypes.string,
5225
5491
  radioItemMarginBottom: PropTypes.string,
@@ -5246,12 +5512,13 @@ const SvgArrow = ({
5246
5512
  fill: fillColor ? fillColor : '#3C393E'
5247
5513
  }));
5248
5514
 
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}}";
5515
+ 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
5516
  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);
5517
+ styleInject(css_248z$9);
5252
5518
 
5253
5519
  const Select = ({
5254
5520
  dots,
5521
+ lang,
5255
5522
  options,
5256
5523
  multiple,
5257
5524
  disabled,
@@ -5265,6 +5532,7 @@ const Select = ({
5265
5532
  closeIcon,
5266
5533
  errorZindex,
5267
5534
  errorMessage,
5535
+ arrowNoRotate,
5268
5536
  showCloseIcon,
5269
5537
  defaultOption,
5270
5538
  multipleCheckbox,
@@ -5305,6 +5573,8 @@ const Select = ({
5305
5573
  optionItemCursor,
5306
5574
  optionItemPadding,
5307
5575
  optionItemFontSize,
5576
+ optionItemFontStyle,
5577
+ optionItemFontFamily,
5308
5578
  optionItemMinHeight,
5309
5579
  optionItemBoxSizing,
5310
5580
  optionItemFontWeight,
@@ -5314,7 +5584,8 @@ const Select = ({
5314
5584
  optionItemBackgroudColor,
5315
5585
  optionItemBackgroudColorHover,
5316
5586
  boxShadow,
5317
- boxShadowHover
5587
+ boxShadowHover,
5588
+ insidePagination
5318
5589
  }) => {
5319
5590
  const ref = useRef();
5320
5591
  const [opened, setOpened] = useState(false);
@@ -5462,10 +5733,10 @@ const Select = ({
5462
5733
  }, /*#__PURE__*/React__default.createElement("div", {
5463
5734
  className: styles$7['select-content']
5464
5735
  }, /*#__PURE__*/React__default.createElement("div", {
5736
+ className: `${styles$7['select-content-top']}`,
5465
5737
  style: {
5466
5738
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.selected.cursor,
5467
5739
  minHeight: selectedMinHeight ?? configStyles.SELECT.selected.minHeight,
5468
- padding: selectedPadding ?? configStyles.SELECT.selected.padding,
5469
5740
  borderRadius: selectedRadius ?? configStyles.SELECT.selected.radius,
5470
5741
  fontSize: selectedFontSize ?? configStyles.SELECT.selected.font.size,
5471
5742
  fontStyle: selectedFontStyle ?? configStyles.SELECT.selected.font.style,
@@ -5474,19 +5745,20 @@ const Select = ({
5474
5745
  fontWeight: selectedFontWeight ?? configStyles.SELECT.selected.font.weight,
5475
5746
  lineHeight: selectedLineHeight ?? configStyles.SELECT.selected.lineHeight,
5476
5747
  transition: selectedTransition ?? configStyles.SELECT.selected.transition,
5748
+ padding: insidePagination ? '0px 2px' : selectedPadding ?? configStyles.SELECT.selected.padding,
5749
+ justifyContent: insidePagination ? 'center' : 'space-between',
5477
5750
  backgroundColor: disabled ? selectedDisableBackgroundColor ? selectedDisableBackgroundColor : configStyles.SELECT.selected.colors.backgroundDisable : selectedBackgroundColor ? selectedBackgroundColor : configStyles.SELECT.selected.colors.background,
5478
5751
  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
5752
  },
5480
5753
  onClick: disabled ? _ => _ : () => handleOpenClose(),
5481
5754
  onMouseEnter: disabled ? _ => _ : () => handleMouseEnter(),
5482
- onMouseLeave: disabled ? _ => _ : () => handleMouseLeave(),
5483
- className: `${styles$7['select-content-top']}`
5755
+ onMouseLeave: disabled ? _ => _ : () => handleMouseLeave()
5484
5756
  }, /*#__PURE__*/React__default.createElement("div", {
5485
5757
  className: `${styles$7['select-content-top-text']}`,
5486
5758
  style: {
5487
5759
  whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
5488
- overflow: 'hidden',
5489
- textOverflow: 'ellipsis',
5760
+ overflow: insidePagination ? 'visible' : 'hidden',
5761
+ textOverflow: insidePagination ? 'initial' : 'ellipsis',
5490
5762
  color: isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selected.colors.hover : selectedColor ? selectedColor : configStyles.SELECT.selected.color
5491
5763
  }
5492
5764
  }, !multiple && newSelected && newSelected[0] && newSelected[0][keyNames.name] ? newSelected[0][keyNames.name] : newSelected && newSelected.length > 0 ? newSelected.map((_, index) => {
@@ -5498,7 +5770,10 @@ const Select = ({
5498
5770
  }
5499
5771
  }
5500
5772
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default.createElement("div", {
5501
- className: `${styles$7['select-content-top-icon']}`
5773
+ className: `${styles$7['select-content-top-icon']}`,
5774
+ style: {
5775
+ padding: lang ? '0px' : insidePagination ? '0px 5px' : '0 5px 0 20px'
5776
+ }
5502
5777
  }, !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
5778
  className: `${styles$7['close-icon']}`,
5504
5779
  onClick: disabled ? _ => _ : handleClearSelect,
@@ -5506,10 +5781,11 @@ const Select = ({
5506
5781
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
5507
5782
  }
5508
5783
  }, closeIcon ? closeIcon : configStyles.SELECT.closeIcon ? configStyles.SELECT.closeIcon : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null)), !disabled ? /*#__PURE__*/React__default.createElement("div", {
5784
+ className: `${styles$7['arrow-icon']}`,
5509
5785
  style: {
5510
- transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
5511
- },
5512
- className: `${styles$7['arrow-icon']}`
5786
+ marginLeft: lang ? '0px' : '9px',
5787
+ transform: arrowNoRotate || configStyles.SELECT.arrowNoRotate ? 'rotate(0deg)' : opened ? 'rotate(180deg)' : 'rotate(0deg)'
5788
+ }
5513
5789
  }, 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
5790
  style: {
5515
5791
  boxShadow: optionsBoxShadow ?? configStyles.SELECT.options.box.shadow,
@@ -5535,12 +5811,15 @@ const Select = ({
5535
5811
  cursor: optionItemCursor ?? configStyles.SELECT.options.item.cursor,
5536
5812
  padding: optionItemPadding ?? configStyles.SELECT.options.item.padding,
5537
5813
  fontSize: optionItemFontSize ?? configStyles.SELECT.options.item.font.size,
5814
+ fontStyle: optionItemFontStyle ?? configStyles.SELECT.options.item.font.style,
5815
+ fontFamily: optionItemFontFamily ?? configStyles.SELECT.options.item.font.family,
5538
5816
  boxSizing: optionItemBoxSizing ?? configStyles.SELECT.options.item.box.sizing,
5539
5817
  minHeight: optionItemMinHeight ?? configStyles.SELECT.options.item.minHeight,
5540
5818
  fontWeight: optionItemFontWeight ?? configStyles.SELECT.options.item.font.weight,
5541
5819
  lineHeight: dots || configStyles.SELECT.dots ? '46px' : optionItemLineHeight ? optionItemLineHeight : configStyles.SELECT.options.item.lineHeight,
5542
5820
  marginBottom: optionItemMarginBottom ?? configStyles.SELECT.options.item.marginBottom,
5543
- backgroundColor: optionItemBackgroudColor ?? configStyles.SELECT.options.item.colors.backgroud
5821
+ backgroundColor: optionItemBackgroudColor ?? configStyles.SELECT.options.item.colors.backgroud,
5822
+ justifyContent: lang ? 'center' : 'flex-start'
5544
5823
  }
5545
5824
  }, multiple && multipleCheckbox ? /*#__PURE__*/React__default.createElement(SingleCheckbox, {
5546
5825
  checked: option.checked
@@ -5560,6 +5839,7 @@ const Select = ({
5560
5839
  };
5561
5840
  Select.propTypes = {
5562
5841
  dots: PropTypes.bool,
5842
+ lang: PropTypes.bool,
5563
5843
  options: PropTypes.array,
5564
5844
  multiple: PropTypes.bool,
5565
5845
  onChange: PropTypes.func,
@@ -5571,6 +5851,7 @@ Select.propTypes = {
5571
5851
  className: PropTypes.string,
5572
5852
  arrowIcon: PropTypes.element,
5573
5853
  closeIcon: PropTypes.element,
5854
+ arrowNoRotate: PropTypes.bool,
5574
5855
  showCloseIcon: PropTypes.bool,
5575
5856
  errorZindex: PropTypes.number,
5576
5857
  errorMessage: PropTypes.string,
@@ -5610,6 +5891,8 @@ Select.propTypes = {
5610
5891
  optionItemCursor: PropTypes.string,
5611
5892
  optionItemPadding: PropTypes.string,
5612
5893
  optionItemFontSize: PropTypes.string,
5894
+ optionItemFontStyle: PropTypes.string,
5895
+ optionItemFontFamily: PropTypes.string,
5613
5896
  optionItemMinHeight: PropTypes.string,
5614
5897
  optionItemBoxSizing: PropTypes.string,
5615
5898
  optionItemFontWeight: PropTypes.string,
@@ -5619,7 +5902,8 @@ Select.propTypes = {
5619
5902
  optionItemBackgroudColor: PropTypes.string,
5620
5903
  optionItemBackgroudColorHover: PropTypes.string,
5621
5904
  boxShadow: PropTypes.string,
5622
- boxShadowHover: PropTypes.string
5905
+ boxShadowHover: PropTypes.string,
5906
+ insidePagination: PropTypes.bool
5623
5907
  };
5624
5908
 
5625
5909
  const SvgToasterInfo = ({
@@ -5741,9 +6025,9 @@ const SvgToasterSuccess = ({
5741
6025
  fill: fillColor ? fillColor : '#0DA574'
5742
6026
  }));
5743
6027
 
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}}";
6028
+ 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
6029
  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);
6030
+ styleInject(css_248z$8);
5747
6031
 
5748
6032
  const ToasterType = {
5749
6033
  info: 'info',
@@ -6143,9 +6427,9 @@ const SvgTooltip = ({
6143
6427
  fill: fillColor ? fillColor : '#D1D1D1'
6144
6428
  }));
6145
6429
 
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}";
6430
+ 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
6431
  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);
6432
+ styleInject(css_248z$7);
6149
6433
 
6150
6434
  const TooltipDirections = {
6151
6435
  TOP: 'top',
@@ -6349,9 +6633,9 @@ const SvgCaptchaArrowDown = ({
6349
6633
  fill: fillColor ? fillColor : '#00236A'
6350
6634
  }));
6351
6635
 
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}";
6636
+ 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
6637
  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);
6638
+ styleInject(css_248z$6);
6355
6639
 
6356
6640
  const Captcha = ({
6357
6641
  color,
@@ -6496,9 +6780,9 @@ Captcha.propTypes = {
6496
6780
  getRange: PropTypes.func.isRequired
6497
6781
  };
6498
6782
 
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}";
6783
+ 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
6784
  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);
6785
+ styleInject(css_248z$5);
6502
6786
 
6503
6787
  const Stepper = ({
6504
6788
  stepLength,
@@ -6661,8 +6945,8 @@ Checkbox.propTypes = {
6661
6945
  data: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object])
6662
6946
  };
6663
6947
 
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);
6948
+ 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}";
6949
+ styleInject(css_248z$4);
6666
6950
 
6667
6951
  const PositionSide = {
6668
6952
  TOP: 'top',
@@ -6670,6 +6954,7 @@ const PositionSide = {
6670
6954
  };
6671
6955
  const Textarea = ({
6672
6956
  size,
6957
+ name,
6673
6958
  style,
6674
6959
  family,
6675
6960
  weight,
@@ -6731,25 +7016,26 @@ const Textarea = ({
6731
7016
  };
6732
7017
  const handleChange = e => {
6733
7018
  const value = e.target.value;
6734
- onChange(value);
7019
+ if (onChange) {
7020
+ onChange(value);
7021
+ }
6735
7022
  setInnerValue(() => value);
6736
7023
  if (maxLength) {
6737
7024
  if (value.length > maxLength) {
6738
- onChange(value.substr(0, maxLength));
7025
+ if (onChange) {
7026
+ onChange(value.substr(0, maxLength));
7027
+ }
6739
7028
  setInnerValue(() => value.substr(0, maxLength));
6740
7029
  }
6741
7030
  } else {
6742
7031
  if (value.length > configStyles.TEXTAREA.maxLength) {
6743
- onChange(value.substr(0, configStyles.TEXTAREA.maxLength));
7032
+ if (onChange) {
7033
+ onChange(value.substr(0, configStyles.TEXTAREA.maxLength));
7034
+ }
6744
7035
  setInnerValue(() => value.substr(0, configStyles.TEXTAREA.maxLength));
6745
7036
  }
6746
7037
  }
6747
7038
  };
6748
- useEffect(() => {
6749
- if (!onChange) {
6750
- alert('Please add onChange function on Textarea component');
6751
- }
6752
- }, [onChange]);
6753
7039
  useEffect(() => {
6754
7040
  if (value === undefined) {
6755
7041
  alert('Please add value prop on Textarea component');
@@ -6796,7 +7082,7 @@ const Textarea = ({
6796
7082
  style: {
6797
7083
  display: labelDisplay ?? configStyles.TEXTAREA.label.display
6798
7084
  }
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", {
7085
+ }, 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
7086
  style: {
6801
7087
  width: '100%',
6802
7088
  border: 'none',
@@ -6819,6 +7105,7 @@ const Textarea = ({
6819
7105
  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
7106
  resize: resize ? resize : configStyles.TEXTAREA.resize
6821
7107
  },
7108
+ name: name,
6822
7109
  value: innerValue,
6823
7110
  disabled: disabled,
6824
7111
  onBlur: handleBlur,
@@ -6858,6 +7145,7 @@ const Textarea = ({
6858
7145
  };
6859
7146
  Textarea.propTypes = {
6860
7147
  size: PropTypes.string,
7148
+ name: PropTypes.string,
6861
7149
  style: PropTypes.string,
6862
7150
  family: PropTypes.string,
6863
7151
  weight: PropTypes.string,
@@ -6868,6 +7156,7 @@ Textarea.propTypes = {
6868
7156
  radius: PropTypes.string,
6869
7157
  required: PropTypes.bool,
6870
7158
  disabled: PropTypes.bool,
7159
+ onChange: PropTypes.func,
6871
7160
  padding: PropTypes.string,
6872
7161
  minWidth: PropTypes.string,
6873
7162
  maxWidth: PropTypes.string,
@@ -6896,10 +7185,304 @@ Textarea.propTypes = {
6896
7185
  borderFocusColor: PropTypes.string,
6897
7186
  borderHoverColor: PropTypes.string,
6898
7187
  labelMarginBottom: PropTypes.string,
6899
- onChange: PropTypes.func.isRequired,
6900
7188
  characterCountPosition: PropTypes.oneOf(Object.values(PositionSide))
6901
7189
  };
6902
7190
 
7191
+ const AccordionItem = ({
7192
+ item,
7193
+ open,
7194
+ index,
7195
+ onClick,
7196
+ openIcon,
7197
+ closeIcon,
7198
+ showIcons,
7199
+ className,
7200
+ titleAlign,
7201
+ multipleOpen,
7202
+ openHoverIcon,
7203
+ color,
7204
+ border,
7205
+ padding,
7206
+ fontSize,
7207
+ fontStyle,
7208
+ fontWeight,
7209
+ fontFamily,
7210
+ borderTop,
7211
+ borderLeft,
7212
+ hoverColor,
7213
+ borderRight,
7214
+ borderRadius,
7215
+ borderBottom,
7216
+ marginBottom,
7217
+ backgroundColor,
7218
+ backgroundHoverColor
7219
+ }) => {
7220
+ const [isOpen, setIsOpen] = useState(false);
7221
+ const [isHover, setIsHover] = useState(false);
7222
+ const handleClick = () => {
7223
+ onClick(item, index);
7224
+ if (multipleOpen) {
7225
+ setIsOpen(() => !isOpen);
7226
+ }
7227
+ };
7228
+ const handleMouseEnter = () => {
7229
+ setIsHover(() => true);
7230
+ };
7231
+ const handleMouseLeave = () => {
7232
+ setIsHover(() => false);
7233
+ };
7234
+ useEffect(() => {
7235
+ setIsOpen(() => open);
7236
+ }, [open]);
7237
+ return /*#__PURE__*/React__default.createElement("div", {
7238
+ className: className,
7239
+ style: {
7240
+ marginBottom: marginBottom ? marginBottom : '0px'
7241
+ }
7242
+ }, /*#__PURE__*/React__default.createElement("div", {
7243
+ onClick: handleClick,
7244
+ onMouseEnter: handleMouseEnter,
7245
+ onMouseLeave: handleMouseLeave,
7246
+ style: {
7247
+ display: 'flex',
7248
+ cursor: 'pointer',
7249
+ padding: padding,
7250
+ alignItems: 'center',
7251
+ borderRadius: borderRadius,
7252
+ borderTop: borderTop ? border : 'none',
7253
+ borderLeft: borderLeft ? border : 'none',
7254
+ borderRight: borderRight ? border : 'none',
7255
+ borderBottom: borderBottom ? border : 'none',
7256
+ justifyContent: showIcons ? 'space-between' : 'flex-start',
7257
+ backgroundColor: isHover ? backgroundHoverColor : backgroundColor
7258
+ }
7259
+ }, item.title && /*#__PURE__*/React__default.createElement("p", {
7260
+ style: {
7261
+ width: '90%',
7262
+ margin: '0px',
7263
+ fontSize: fontSize,
7264
+ overflow: 'hidden',
7265
+ whiteSpace: 'nowrap',
7266
+ fontStyle: fontStyle,
7267
+ fontWeight: fontWeight,
7268
+ fontFamily: fontFamily,
7269
+ textOverflow: 'ellipsis',
7270
+ textAlign: titleAlign ? titleAlign : 'left',
7271
+ color: isOpen ? hoverColor : isHover ? hoverColor : color
7272
+ }
7273
+ }, item.title), showIcons && /*#__PURE__*/React__default.createElement("div", {
7274
+ style: {
7275
+ display: 'flex',
7276
+ width: 'fit-content',
7277
+ height: 'fit-content',
7278
+ minWidth: '14px',
7279
+ minHeight: '14px',
7280
+ alignItems: 'center',
7281
+ justifyContent: 'center'
7282
+ }
7283
+ }, isOpen ? closeIcon : isHover ? openHoverIcon ? openHoverIcon : openIcon : openIcon)), /*#__PURE__*/React__default.createElement("div", {
7284
+ style: {
7285
+ overflow: 'hidden',
7286
+ height: isOpen ? 'auto' : '0px'
7287
+ }
7288
+ }, item.content ? item.content : ''));
7289
+ };
7290
+ AccordionItem.propTypes = {
7291
+ open: PropTypes.bool
7292
+ };
7293
+
7294
+ const SvgGreenplus = ({
7295
+ title,
7296
+ titleId,
7297
+ ...props
7298
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
7299
+ xmlns: "http://www.w3.org/2000/svg",
7300
+ width: "1em",
7301
+ height: "1em",
7302
+ fill: "none",
7303
+ viewBox: "0 0 16 16",
7304
+ "aria-labelledby": titleId
7305
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
7306
+ id: titleId
7307
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
7308
+ stroke: "#009B8B",
7309
+ strokeLinecap: "round",
7310
+ strokeLinejoin: "round",
7311
+ strokeWidth: 1.6,
7312
+ d: "M8 1v14M1 8h14"
7313
+ }));
7314
+
7315
+ const SvgGreenminus = ({
7316
+ title,
7317
+ titleId,
7318
+ ...props
7319
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
7320
+ xmlns: "http://www.w3.org/2000/svg",
7321
+ width: "1em",
7322
+ height: "1em",
7323
+ fill: "none",
7324
+ viewBox: "0 0 16 2",
7325
+ "aria-labelledby": titleId
7326
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
7327
+ id: titleId
7328
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
7329
+ stroke: "#009B8B",
7330
+ strokeLinecap: "round",
7331
+ strokeLinejoin: "round",
7332
+ strokeWidth: 1.6,
7333
+ d: "M1 1h14"
7334
+ }));
7335
+
7336
+ var css_248z$3 = "";
7337
+ styleInject(css_248z$3);
7338
+
7339
+ const Accordion = ({
7340
+ data,
7341
+ click,
7342
+ openIcon,
7343
+ closeIcon,
7344
+ className,
7345
+ showIcons,
7346
+ titleAlign,
7347
+ multipleOpen,
7348
+ openHoverIcon,
7349
+ borderTop,
7350
+ borderLeft,
7351
+ borderRight,
7352
+ borderColor,
7353
+ borderWidth,
7354
+ borderStyle,
7355
+ borderBottom,
7356
+ borderRadius,
7357
+ fontSize,
7358
+ fontStyle,
7359
+ fontWeight,
7360
+ fontFamily,
7361
+ color,
7362
+ padding,
7363
+ hoverColor,
7364
+ marginBottom,
7365
+ backgroundColor,
7366
+ backgroundHoverColor
7367
+ }) => {
7368
+ const [openIndex, setOpenIndex] = useState(-1);
7369
+ const [classProps, setClassProps] = useState({});
7370
+ const [configStyles, setConfigStyles] = useState({});
7371
+ const handleClick = (item, index) => {
7372
+ if (click) {
7373
+ click(item);
7374
+ }
7375
+ if (!multipleOpen) {
7376
+ setOpenIndex(() => openIndex === index ? -1 : index);
7377
+ }
7378
+ };
7379
+ useEffect(() => {
7380
+ className && setClassProps(() => classnames(className ?? configStyles.BUTTON.className));
7381
+ }, [className]);
7382
+ useEffect(() => {
7383
+ configStylesPromise.then(data => {
7384
+ setClassProps(() => classnames(className ?? data.BUTTON.className));
7385
+ setConfigStyles(() => {
7386
+ return {
7387
+ ...data
7388
+ };
7389
+ });
7390
+ }, error => {
7391
+ console.error(error);
7392
+ });
7393
+ }, []);
7394
+ return configStyles.ACCORDION && /*#__PURE__*/React__default.createElement("div", {
7395
+ style: {
7396
+ width: '100%'
7397
+ }
7398
+ }, data && data.length ? data.map((item, index) => {
7399
+ return /*#__PURE__*/React__default.createElement(AccordionItem, {
7400
+ item: item,
7401
+ index: index,
7402
+ onClick: handleClick,
7403
+ titleAlign: titleAlign,
7404
+ multipleOpen: multipleOpen,
7405
+ key: `${item.title}__TUI__${index}`,
7406
+ open: openIndex === index ? true : false,
7407
+ showIcons: showIcons ?? configStyles.ACCORDION.showIcons,
7408
+ openIcon: openIcon ? /*#__PURE__*/React__default.createElement("img", {
7409
+ src: openIcon,
7410
+ alt: "open icon"
7411
+ }) : configStyles.ACCORDION.icon.open ? /*#__PURE__*/React__default.createElement("img", {
7412
+ src: configStyles.ACCORDION.icon.open,
7413
+ alt: "open icon"
7414
+ }) : /*#__PURE__*/React__default.createElement(SvgGreenplus, null),
7415
+ openHoverIcon: openHoverIcon ? /*#__PURE__*/React__default.createElement("img", {
7416
+ src: openHoverIcon,
7417
+ alt: "open icon"
7418
+ }) : configStyles.ACCORDION.icon.openHover ? /*#__PURE__*/React__default.createElement("img", {
7419
+ src: configStyles.ACCORDION.icon.openHover,
7420
+ alt: "open icon"
7421
+ }) : /*#__PURE__*/React__default.createElement(SvgGreenplus, null),
7422
+ closeIcon: closeIcon ? /*#__PURE__*/React__default.createElement("img", {
7423
+ src: closeIcon,
7424
+ alt: "close icon"
7425
+ }) : configStyles.ACCORDION.icon.close ? /*#__PURE__*/React__default.createElement("img", {
7426
+ src: configStyles.ACCORDION.icon.close,
7427
+ alt: "close icon"
7428
+ }) : /*#__PURE__*/React__default.createElement(SvgGreenminus, null),
7429
+ className: classProps,
7430
+ color: color ?? configStyles.ACCORDION.color,
7431
+ padding: padding ?? configStyles.ACCORDION.padding,
7432
+ fontSize: fontSize ?? configStyles.ACCORDION.font.size,
7433
+ fontStyle: fontStyle ?? configStyles.ACCORDION.font.style,
7434
+ fontWeight: fontWeight ?? configStyles.ACCORDION.font.weight,
7435
+ fontFamily: fontFamily ?? configStyles.ACCORDION.font.family,
7436
+ hoverColor: hoverColor ?? configStyles.ACCORDION.colors.hover,
7437
+ marginBottom: marginBottom ?? configStyles.ACCORDION.marginBottom,
7438
+ border: `
7439
+ ${borderWidth ?? configStyles.ACCORDION.border.width}
7440
+ ${borderStyle ?? configStyles.ACCORDION.border.style}
7441
+ ${openIndex === index ? 'transparent' : borderColor ?? configStyles.ACCORDION.border.color}
7442
+ `,
7443
+ borderTop: borderTop ?? configStyles.ACCORDION.border.top,
7444
+ borderLeft: borderLeft ?? configStyles.ACCORDION.border.left,
7445
+ borderRight: borderRight ?? configStyles.ACCORDION.border.right,
7446
+ borderBottom: borderBottom ?? configStyles.ACCORDION.border.bottom,
7447
+ borderRadius: borderRadius ?? configStyles.ACCORDION.border.radius,
7448
+ backgroundColor: backgroundColor ?? configStyles.ACCORDION.colors.background,
7449
+ backgroundHoverColor: backgroundHoverColor ?? configStyles.ACCORDION.colors.backgroundHover
7450
+ });
7451
+ }) : '');
7452
+ };
7453
+ Accordion.propTypes = {
7454
+ data: PropTypes.arrayOf(PropTypes.shape({
7455
+ title: PropTypes.string,
7456
+ content: PropTypes.element
7457
+ })),
7458
+ click: PropTypes.func,
7459
+ showIcons: PropTypes.bool,
7460
+ multipleOpen: PropTypes.bool,
7461
+ color: PropTypes.string,
7462
+ hoverColor: PropTypes.string,
7463
+ backgroundColor: PropTypes.string,
7464
+ backgroundHoverColor: PropTypes.string,
7465
+ titleAlign: PropTypes.oneOf(['left', 'center', 'right']),
7466
+ padding: PropTypes.string,
7467
+ openIcon: PropTypes.string,
7468
+ className: PropTypes.string,
7469
+ closeIcon: PropTypes.string,
7470
+ marginBottom: PropTypes.string,
7471
+ openHoverIcon: PropTypes.string,
7472
+ borderTop: PropTypes.bool,
7473
+ borderLeft: PropTypes.bool,
7474
+ borderRight: PropTypes.bool,
7475
+ borderBottom: PropTypes.bool,
7476
+ borderColor: PropTypes.string,
7477
+ borderWidth: PropTypes.string,
7478
+ borderStyle: PropTypes.string,
7479
+ borderRadius: PropTypes.string,
7480
+ fontSize: PropTypes.string,
7481
+ fontStyle: PropTypes.string,
7482
+ fontWeight: PropTypes.number,
7483
+ fontFamily: PropTypes.string
7484
+ };
7485
+
6903
7486
  const Swipe = ({
6904
7487
  id,
6905
7488
  title,
@@ -6921,8 +7504,8 @@ const Swipe = ({
6921
7504
  } = props || {};
6922
7505
  return /*#__PURE__*/React__default.createElement("div", {
6923
7506
  style: {
6924
- width: position === 'left' || position === 'right' ? width ?? SWIPEMODAL.width : '100%',
6925
- height: position === 'top' || position === 'bottom' ? height ?? SWIPEMODAL.height : '100vh'
7507
+ width: '100%',
7508
+ height: '100%'
6926
7509
  }
6927
7510
  }, (title || showCloseIcon) && /*#__PURE__*/React__default.createElement("div", {
6928
7511
  style: {
@@ -6991,11 +7574,11 @@ const createElem = (id, title, child, props, swipeBlock, innerConfigStyles) => {
6991
7574
  borderRadius,
6992
7575
  backgroundColor
6993
7576
  } = props || {};
6994
- swipeBlock.style.position = 'fixed';
7577
+ swipeBlock.style.position = 'absolute';
6995
7578
  swipeBlock.style.zIndex = swipeCount;
6996
7579
  swipeBlock.style.backgroundColor = backgroundColor ?? innerConfigStyles.SWIPEMODAL.colors.background;
6997
7580
  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';
7581
+ swipeBlock.style.height = position === 'top' || position === 'bottom' ? height ?? innerConfigStyles.SWIPEMODAL.height : '100%';
6999
7582
  swipeBlock.style.borderTopLeftRadius = position === 'right' || position === 'bottom' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
7000
7583
  swipeBlock.style.borderTopRightRadius = position === 'left' || position === 'bottom' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
7001
7584
  swipeBlock.style.borderBottomLeftRadius = position === 'right' || position === 'top' ? '0px' : borderRadius ?? innerConfigStyles.SWIPEMODAL.border.radius;
@@ -7029,26 +7612,24 @@ const createSwipe = (id, title, child, props, swipable) => {
7029
7612
  };
7030
7613
  createElem(id, title, child, props, swipeBlock, innerConfigStyles);
7031
7614
  if (!swipable) {
7032
- const widthParent = hasOwnerProperty(props, 'withParent') ? props.withParent === true ? true : false : innerConfigStyles.SWIPEMODAL.withParent;
7033
7615
  swipable = document.createElement('div');
7034
7616
  swipable.setAttribute('id', 'swipable');
7035
- swipable.style.position = 'fixed';
7617
+ swipable.style.position = 'absolute';
7036
7618
  swipable.style.top = '0px';
7037
7619
  swipable.style.left = '0px';
7038
7620
  swipable.style.zIndex = 99999;
7039
7621
  swipable.style.maxWidth = '100%';
7040
7622
  swipable.style.maxHeight = '100vh';
7041
- swipable.style.visibility = 'hidden';
7042
- swipable.style.width = widthParent ? '100%' : '0px';
7043
- swipable.style.height = widthParent ? '100vh' : '0px';
7623
+ swipable.style.width = '100%';
7624
+ swipable.style.height = '100%';
7044
7625
  swipable.style.backgroundColor = props?.parent?.backgroundColor ?? innerConfigStyles.SWIPEMODAL.parent.colors.background;
7045
- swipable.classList.add(styles$2['visible']);
7046
7626
  if (props.outSideClose || innerConfigStyles.SWIPEMODAL.outSideClose) {
7047
7627
  swipable.addEventListener('click', function () {
7048
7628
  hasOwnerProperty(props, 'callClose') && {}.toString.call(props.callClose) === '[object Function]' ? props.callClose() : '';
7049
7629
  });
7050
7630
  }
7051
- document.body.appendChild(swipable);
7631
+ const SwipifyBlock = document.getElementById('swipify_tui');
7632
+ SwipifyBlock.appendChild(swipable);
7052
7633
  }
7053
7634
  swipable.appendChild(swipeBlock);
7054
7635
  }, error => {
@@ -7097,7 +7678,6 @@ const swipe = {
7097
7678
  close: id => {
7098
7679
  if (id === undefined || id === null && (typeof id !== 'string' || typeof id !== 'number')) {
7099
7680
  alert('Please pass valid id prop (string / number) when call swipe.close function');
7100
- return;
7101
7681
  }
7102
7682
  let swipable = document.getElementById('swipable');
7103
7683
  swipeCount -= 1;
@@ -7112,7 +7692,8 @@ const swipe = {
7112
7692
  if (swipeCount === 0 && swipable) {
7113
7693
  window.removeEventListener('popstate', handleNavigationChange);
7114
7694
  window.removeEventListener('navigationchange', handleNavigationChange);
7115
- document.body.removeChild(swipable);
7695
+ const SwipifyBlock = document.getElementById('swipify_tui');
7696
+ SwipifyBlock.removeChild(swipable);
7116
7697
  }
7117
7698
  }, 200);
7118
7699
  } else {
@@ -7120,14 +7701,38 @@ const swipe = {
7120
7701
  if (swipeCount === 0 && swipable) {
7121
7702
  window.removeEventListener('popstate', handleNavigationChange);
7122
7703
  window.removeEventListener('navigationchange', handleNavigationChange);
7123
- document.body.removeChild(swipable);
7704
+ const SwipifyBlock = document.getElementById('swipify_tui');
7705
+ SwipifyBlock.removeChild(swipable);
7124
7706
  }
7125
7707
  }
7708
+ } else {
7709
+ if (swipeCount === 0 && swipable) {
7710
+ const SwipifyBlock = document.getElementById('swipify_tui');
7711
+ SwipifyBlock.removeChild(swipable);
7712
+ }
7126
7713
  }
7127
7714
  }
7128
7715
  };
7129
7716
  const SwipeModal = () => {
7130
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
7717
+ const ref = useRef(null);
7718
+ useEffect(() => {
7719
+ const parentSize = ref.current.parentNode.style.height;
7720
+ if (Number(parentSize.replace(/\D/g, '')) > 0) {
7721
+ ref.current.style.height = '100%';
7722
+ } else {
7723
+ ref.current.style.height = '100vh';
7724
+ }
7725
+ }, [ref]);
7726
+ return /*#__PURE__*/React__default.createElement("div", {
7727
+ ref: ref,
7728
+ id: "swipify_tui",
7729
+ style: {
7730
+ position: 'relative',
7731
+ width: '100%',
7732
+ overflow: 'hidden',
7733
+ zIndex: 1
7734
+ }
7735
+ });
7131
7736
  };
7132
7737
 
7133
7738
  const TypographyType = {
@@ -7246,13 +7851,13 @@ const range = (start, end) => {
7246
7851
  }, (_, idx) => idx + start);
7247
7852
  };
7248
7853
  const PaginationRange = ({
7249
- offset,
7854
+ innerOffset,
7250
7855
  currentTotalCount,
7251
7856
  currentPageNumber
7252
7857
  }) => {
7253
7858
  const paginationRange = useMemo(() => {
7254
7859
  const firstPageIndex = 1;
7255
- const totalPageCount = Math.ceil(currentTotalCount / offset);
7860
+ const totalPageCount = Math.ceil(currentTotalCount / innerOffset);
7256
7861
  const lastPageIndex = totalPageCount;
7257
7862
  if (7 >= totalPageCount) {
7258
7863
  return range(1, totalPageCount);
@@ -7275,14 +7880,10 @@ const PaginationRange = ({
7275
7880
  } else {
7276
7881
  return range(firstPageIndex, totalPageCount);
7277
7882
  }
7278
- }, [currentTotalCount, offset, currentPageNumber]);
7883
+ }, [currentTotalCount, innerOffset, currentPageNumber]);
7279
7884
  return paginationRange;
7280
7885
  };
7281
7886
 
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
7887
  const SvgDots = ({
7287
7888
  title,
7288
7889
  titleId,
@@ -7321,57 +7922,51 @@ const SvgNextarrow = ({
7321
7922
  fill: fillColor ? fillColor : '#3C393E'
7322
7923
  }));
7323
7924
 
7925
+ 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}";
7926
+ 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"};
7927
+ styleInject(css_248z$1);
7928
+
7324
7929
  const Pagination = ({
7325
7930
  goTo,
7326
- offset = 2,
7931
+ offset,
7327
7932
  onChange,
7328
7933
  className,
7934
+ getOffset,
7329
7935
  totalCount,
7330
- currentPage
7936
+ showOffset,
7937
+ currentPage,
7938
+ offsetCounts,
7939
+ color,
7940
+ width,
7941
+ height,
7942
+ fontSize,
7943
+ fontStyle,
7944
+ fontWeight,
7945
+ fontFamily,
7946
+ lineHeight,
7947
+ activeColor,
7948
+ hoverColor,
7949
+ backgroundColor,
7950
+ hoverBackgroundColor,
7951
+ activeBackgroundColor,
7952
+ borderColor,
7953
+ borderWidth,
7954
+ borderRadius
7331
7955
  }) => {
7332
7956
  const [inpVal, setInpVal] = useState('');
7333
7957
  const [error, setError] = useState(false);
7958
+ const [isHover, setIsHover] = useState(false);
7334
7959
  const [classProps, setClassProps] = useState({});
7960
+ const [offsetArgs, setOffsetArgs] = useState({});
7961
+ const [innerOffset, setInnerOffset] = useState(2);
7335
7962
  const [configStyles, setConfigStyles] = useState({});
7963
+ const [innerShowOffset, setInnerShowOffset] = useState(false);
7336
7964
  const [currentPageNumber, setCurrentPage] = useState(currentPage);
7337
7965
  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
7966
  const paginationRange = PaginationRange({
7372
7967
  currentPageNumber,
7373
7968
  currentTotalCount,
7374
- offset
7969
+ innerOffset
7375
7970
  });
7376
7971
  if (currentPageNumber === 0 || paginationRange?.length < 2) {
7377
7972
  return null;
@@ -7413,16 +8008,88 @@ const Pagination = ({
7413
8008
  if (inpVal <= 1) {
7414
8009
  setInpVal(1);
7415
8010
  onPageChange(1);
7416
- } else if (inpVal >= totalCount / offset) {
7417
- setInpVal(Math.ceil(totalCount / offset));
7418
- onPageChange(Math.ceil(totalCount / offset));
8011
+ } else if (inpVal >= totalCount / innerOffset) {
8012
+ setInpVal(Math.ceil(totalCount / innerOffset));
8013
+ onPageChange(Math.ceil(totalCount / innerOffset));
7419
8014
  } else {
7420
8015
  onPageChange(inpVal);
7421
8016
  }
7422
8017
  }
7423
8018
  }
7424
8019
  };
8020
+ const handleChangeSelect = e => {
8021
+ setInnerOffset(() => {
8022
+ return parseInt(e.value.split('/')[0].trim());
8023
+ });
8024
+ if (getOffset) {
8025
+ getOffset(parseInt(e.value.split('/')[0].trim()));
8026
+ }
8027
+ };
8028
+ const handleMouseEnter = hoverIndex => {
8029
+ setIsHover(hoverIndex);
8030
+ };
8031
+ const handleMouseLeave = () => {
8032
+ setIsHover(false);
8033
+ };
8034
+ const onPageChange = page => {
8035
+ if (page > 0) {
8036
+ setCurrentPage(page);
8037
+ }
8038
+ };
7425
8039
  let lastPage = paginationRange[paginationRange.length - 1];
8040
+ useEffect(() => {
8041
+ configStylesPromise.then(data => {
8042
+ setClassProps(() => classnames(
8043
+ // TODO: check and remove pagination-bar-rem class
8044
+ styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
8045
+ setConfigStyles(() => {
8046
+ return {
8047
+ ...data
8048
+ };
8049
+ });
8050
+ }, error => {
8051
+ console.error(error);
8052
+ });
8053
+ }, []);
8054
+ useEffect(() => {
8055
+ setInnerShowOffset(() => showOffset);
8056
+ if (showOffset && offsetCounts && offsetCounts.length) {
8057
+ const newOptions = offsetCounts.map((innerItem, innerIndex) => {
8058
+ return {
8059
+ item: innerIndex,
8060
+ value: `${innerItem} / Էջ `
8061
+ };
8062
+ });
8063
+ setOffsetArgs(() => {
8064
+ return {
8065
+ showCloseIcon: false,
8066
+ options: newOptions,
8067
+ onChange: handleChangeSelect,
8068
+ defaultOption: `${newOptions[0].value}`,
8069
+ keyNames: {
8070
+ name: 'value',
8071
+ id: 'item'
8072
+ }
8073
+ };
8074
+ });
8075
+ setInnerOffset(() => offsetCounts[0]);
8076
+ }
8077
+ }, [offsetCounts, showOffset]);
8078
+ useEffect(() => {
8079
+ className && setClassProps(() => classnames(
8080
+ // TODO: check and remove pagination-bar-rem class
8081
+ styles$1.list, className ?? configStyles.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
8082
+ }, [className]);
8083
+ useEffect(() => {
8084
+ setcurrentTotalCount(totalCount);
8085
+ setInnerOffset(() => offset > totalCount ? totalCount : offset);
8086
+ }, [totalCount, offset]);
8087
+ useEffect(() => {
8088
+ setCurrentPage(currentPage);
8089
+ }, [currentPage]);
8090
+ useEffect(() => {
8091
+ onChange(currentPageNumber);
8092
+ }, [currentPageNumber]);
7426
8093
  return configStyles.PAGINATION && /*#__PURE__*/React__default.createElement("div", {
7427
8094
  style: {
7428
8095
  display: 'flex',
@@ -7433,6 +8100,20 @@ const Pagination = ({
7433
8100
  className: classProps
7434
8101
  }, /*#__PURE__*/React__default.createElement("ul", null, /*#__PURE__*/React__default.createElement("button", {
7435
8102
  style: {
8103
+ width: width ?? configStyles.PAGINATION.width,
8104
+ height: height ?? configStyles.PAGINATION.height,
8105
+ fontSize: fontSize ?? configStyles.PAGINATION.font.size,
8106
+ fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8107
+ fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
8108
+ fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
8109
+ lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8110
+ backgroundColor: backgroundColor ?? configStyles.PAGINATION.backgroundColor,
8111
+ boxShadow: `
8112
+ 0 0 0
8113
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8114
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8115
+ `,
8116
+ borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius,
7436
8117
  transform: 'rotate(180deg)'
7437
8118
  },
7438
8119
  onClick: onPrevious,
@@ -7443,7 +8124,17 @@ const Pagination = ({
7443
8124
  let currentPageIndex = paginationRange.indexOf(currentPageNumber);
7444
8125
  return /*#__PURE__*/React__default.createElement("li", {
7445
8126
  key: id,
7446
- className: classnames(`${styles$1['pagination-jump-next']} pagination-jump-next-rem`, styles$1.listItem),
8127
+ className: classnames(`${styles$1['pagination-jump-next']} pagination-jump-next-rem`),
8128
+ style: {
8129
+ width: width ?? configStyles.PAGINATION.width,
8130
+ height: height ?? configStyles.PAGINATION.height,
8131
+ boxShadow: `
8132
+ 0 0 0
8133
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8134
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8135
+ `,
8136
+ borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
8137
+ },
7447
8138
  onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
7448
8139
  disabled: currentPageIndex === 0 ? true : false
7449
8140
  }, id < currentPageIndex ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
@@ -7462,43 +8153,144 @@ const Pagination = ({
7462
8153
  return /*#__PURE__*/React__default.createElement("li", {
7463
8154
  onClick: () => onPageChange(pageNumber),
7464
8155
  key: id,
7465
- className: classnames(`${pageNumber === currentPageNumber ? styles$1.selected : styles$1.listItem}`, `${styles$1['pagination-item']} pagination-item-rem`)
8156
+ className: classnames(`${styles$1['pagination-item']} pagination-item-rem`),
8157
+ onMouseEnter: () => handleMouseEnter(id),
8158
+ onMouseLeave: () => handleMouseLeave(),
8159
+ style: {
8160
+ width: width ?? configStyles.PAGINATION.width,
8161
+ height: height ?? configStyles.PAGINATION.height,
8162
+ fontSize: fontSize ?? configStyles.PAGINATION.font.size,
8163
+ fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8164
+ fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
8165
+ fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
8166
+ lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8167
+ color: `
8168
+ ${pageNumber === currentPageNumber ? activeColor ?? configStyles.PAGINATION.colors.active : isHover === id ? hoverColor ?? configStyles.PAGINATION.colors.hover : color ?? configStyles.PAGINATION.color}
8169
+ `,
8170
+ backgroundColor: `
8171
+ ${pageNumber === currentPageNumber ? activeBackgroundColor ?? configStyles.PAGINATION.colors.activeBackground : isHover === id ? hoverBackgroundColor ?? configStyles.PAGINATION.colors.hoverBackground : backgroundColor ?? configStyles.PAGINATION.colors.background}
8172
+ `,
8173
+ boxShadow: `
8174
+ 0 0 0
8175
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8176
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8177
+ `,
8178
+ borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
8179
+ }
7466
8180
  }, pageNumber);
7467
8181
  }), /*#__PURE__*/React__default.createElement("button", {
7468
8182
  onClick: onNext,
7469
8183
  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", {
8184
+ className: `${styles$1['pagination-btn']} pagination-btn-rem`,
8185
+ style: {
8186
+ width: width ?? configStyles.PAGINATION.width,
8187
+ height: height ?? configStyles.PAGINATION.height,
8188
+ fontSize: fontSize ?? configStyles.PAGINATION.font.size,
8189
+ fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8190
+ fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
8191
+ fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
8192
+ lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8193
+ backgroundColor: backgroundColor ?? configStyles.PAGINATION.backgroundColor,
8194
+ boxShadow: `
8195
+ 0 0 0
8196
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8197
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8198
+ `,
8199
+ borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
8200
+ }
8201
+ }, /*#__PURE__*/React__default.createElement(SvgNextarrow, null))), innerShowOffset && /*#__PURE__*/React__default.createElement("div", {
8202
+ className: "show-offset-block",
8203
+ style: {
8204
+ width: '91px',
8205
+ height: '34px',
8206
+ marginLeft: '10px',
8207
+ marginRight: '3px'
8208
+ }
8209
+ }, /*#__PURE__*/React__default.createElement(Select, _extends({
8210
+ insidePagination: true,
8211
+ selectedMinHeight: "34px",
8212
+ boxShadow: `
8213
+ 0 0 0
8214
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8215
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8216
+ `,
8217
+ boxShadowHover: `
8218
+ 0 0 0
8219
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8220
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8221
+ `,
8222
+ selectedFontSize: fontSize ?? configStyles.PAGINATION.font.size,
8223
+ selectedFontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8224
+ selectedLineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8225
+ selectedFontFamily: fontWeight ?? configStyles.PAGINATION.font.weight,
8226
+ selectedFontWeight: fontFamily ?? configStyles.PAGINATION.font.family,
8227
+ optionItemFontSize: fontSize ?? configStyles.PAGINATION.font.size,
8228
+ optionItemFontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8229
+ optionItemLineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8230
+ optionItemFontFamily: fontWeight ?? configStyles.PAGINATION.font.weight,
8231
+ optionItemFontWeight: fontFamily ?? configStyles.PAGINATION.font.family
8232
+ }, offsetArgs))), goTo && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("input", {
7472
8233
  onKeyDown: handleKeyDown,
7473
8234
  onInput: handleChangeInput,
7474
8235
  type: "number",
7475
8236
  style: {
7476
- width: '53px',
7477
- height: '30px',
8237
+ width: '55px',
8238
+ border: 'none',
7478
8239
  outline: 'none',
7479
- color: '#3C393E',
7480
- fontSize: '13px',
7481
8240
  margin: '0px 6px',
7482
- fontWeight: '500',
7483
8241
  textAlign: 'center',
7484
- border: '1px solid',
7485
- borderRadius: '6px',
7486
- borderColor: error ? 'red' : '#00236a'
8242
+ color: color ?? configStyles.PAGINATION.color,
8243
+ height: height ?? configStyles.PAGINATION.height,
8244
+ fontSize: fontSize ?? configStyles.PAGINATION.font.size,
8245
+ fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8246
+ fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
8247
+ fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
8248
+ lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight,
8249
+ backgroundColor: backgroundColor ?? configStyles.PAGINATION.backgroundColor,
8250
+ boxShadow: `
8251
+ 0 0 0
8252
+ ${borderWidth ?? configStyles.PAGINATION.border.width}
8253
+ ${borderColor ?? configStyles.PAGINATION.border.color}
8254
+ `,
8255
+ borderRadius: borderRadius ?? configStyles.PAGINATION.border.radius
7487
8256
  },
7488
8257
  value: inpVal
7489
8258
  }), /*#__PURE__*/React__default.createElement("span", {
7490
8259
  style: {
7491
- color: '#3C393E',
7492
- fontSize: '13px'
8260
+ color: color ?? configStyles.PAGINATION.color,
8261
+ fontSize: fontSize ?? configStyles.PAGINATION.font.size,
8262
+ fontStyle: fontStyle ?? configStyles.PAGINATION.font.style,
8263
+ fontWeight: fontWeight ?? configStyles.PAGINATION.font.weight,
8264
+ fontFamily: fontFamily ?? configStyles.PAGINATION.font.family,
8265
+ lineHeight: lineHeight ?? configStyles.PAGINATION.lineHeight
7493
8266
  }
7494
8267
  }, "\u0537\u057B")));
7495
8268
  };
7496
8269
  Pagination.propTypes = {
7497
8270
  goTo: PropTypes.bool,
7498
8271
  offset: PropTypes.number,
7499
- totalCount: PropTypes.number,
8272
+ getOffset: PropTypes.func,
8273
+ showOffset: PropTypes.bool,
7500
8274
  className: PropTypes.string,
7501
- currentPage: PropTypes.number
8275
+ totalCount: PropTypes.number,
8276
+ currentPage: PropTypes.number,
8277
+ offsetCounts: PropTypes.arrayOf(PropTypes.number),
8278
+ color: PropTypes.string,
8279
+ width: PropTypes.string,
8280
+ height: PropTypes.string,
8281
+ fontSize: PropTypes.string,
8282
+ fontWeight: PropTypes.string,
8283
+ fontFamily: PropTypes.string,
8284
+ fontStyle: PropTypes.string,
8285
+ lineHeight: PropTypes.string,
8286
+ activeColor: PropTypes.string,
8287
+ hoverColor: PropTypes.string,
8288
+ backgroundColor: PropTypes.string,
8289
+ hoverBackgroundColor: PropTypes.string,
8290
+ activeBackgroundColor: PropTypes.string,
8291
+ borderColor: PropTypes.string,
8292
+ borderWidth: PropTypes.string,
8293
+ borderRadius: PropTypes.string
7502
8294
  };
7503
8295
 
7504
8296
  var css_248z = ".autocomplete-module_auto-complete__oUOv9{appearance:none!important;-webkit-appearance:none!important}";
@@ -7916,4 +8708,4 @@ Autocomplete.propTypes = {
7916
8708
  backgroundDisableColor: PropTypes.string
7917
8709
  };
7918
8710
 
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 };
8711
+ 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 };