@banch0u/core-project-test-repository 1.8.4 → 1.9.1

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.
Files changed (83) hide show
  1. package/dist/assets/css/antd.css +723 -0
  2. package/dist/assets/icons/index.js +182 -0
  3. package/dist/components/Button/index.module.scss +17 -5
  4. package/dist/components/ColSort/index.module.scss +22 -0
  5. package/dist/components/Delete/Delete.js +22 -0
  6. package/dist/components/Delete/Delete.module.scss +22 -0
  7. package/dist/components/DeleteModal/DeleteModal.js +31 -0
  8. package/dist/components/DeleteModal/DeleteModal.module.scss +11 -0
  9. package/dist/components/Filter/index.js +1 -1
  10. package/dist/components/Input/index.js +34 -6
  11. package/dist/components/Input/index.module.scss +55 -23
  12. package/dist/components/ProfileOptions/index.module.scss +3 -3
  13. package/dist/components/Select/index.js +47 -60
  14. package/dist/components/Select/index.module.scss +32 -0
  15. package/dist/components/Success/Success.js +19 -0
  16. package/dist/components/Success/Success.module.scss +26 -0
  17. package/dist/components/Table/index.js +4 -2
  18. package/dist/components/ViewModal/index.js +30 -0
  19. package/dist/helpers/paginationLength.js +3 -0
  20. package/dist/helpers/querySearch.js +22 -0
  21. package/dist/index.js +2 -0
  22. package/dist/layout/Header/AppSelect/index.js +28 -9
  23. package/dist/layout/Header/AppSelect/index.module.scss +6 -1
  24. package/dist/layout/Portal/index.js +23 -0
  25. package/dist/layout/QuestionnairesLayout/index.js +17 -0
  26. package/dist/layout/QuestionnairesLayout/index.module.scss +0 -0
  27. package/dist/layout/QuestionnairesSidebar/index.js +162 -0
  28. package/dist/layout/QuestionnairesSidebar/index.module.scss +76 -0
  29. package/dist/pages/Questionnnaires/Questionnaires.module.scss +194 -0
  30. package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/constant.js +58 -0
  31. package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +255 -0
  32. package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/constant.js +58 -0
  33. package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/index.js +247 -0
  34. package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/constant.js +58 -0
  35. package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +247 -0
  36. package/dist/pages/Questionnnaires/QuestionnairesColorsContent/constant.js +58 -0
  37. package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +247 -0
  38. package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/constant.js +58 -0
  39. package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +247 -0
  40. package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/constant.js +58 -0
  41. package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +247 -0
  42. package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/constant.js +58 -0
  43. package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +258 -0
  44. package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/constant.js +58 -0
  45. package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +284 -0
  46. package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/constant.js +82 -0
  47. package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +331 -0
  48. package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/constant.js +58 -0
  49. package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +247 -0
  50. package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/constant.js +58 -0
  51. package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +258 -0
  52. package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/constant.js +58 -0
  53. package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +247 -0
  54. package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/constant.js +58 -0
  55. package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +247 -0
  56. package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/constant.js +58 -0
  57. package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +249 -0
  58. package/dist/pages/Questionnnaires/QuestionnairesModelsContent/constant.js +58 -0
  59. package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +290 -0
  60. package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/constant.js +88 -0
  61. package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +320 -0
  62. package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/constant.js +58 -0
  63. package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +247 -0
  64. package/dist/pages/Questionnnaires/QuestionnairesStreetsContent/constant.js +58 -0
  65. package/dist/pages/Questionnnaires/QuestionnairesStreetsContent/index.js +240 -0
  66. package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/constant.js +58 -0
  67. package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +247 -0
  68. package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/constant.js +58 -0
  69. package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +317 -0
  70. package/dist/pages/Questionnnaires/QuestionnairesTopicContent/constant.js +58 -0
  71. package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +271 -0
  72. package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/constant.js +58 -0
  73. package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +247 -0
  74. package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/constant.js +58 -0
  75. package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +247 -0
  76. package/dist/pages/Questionnnaires/index.js +5 -0
  77. package/dist/routes/QuestionnaireRoutes.js +178 -0
  78. package/dist/store/slices/global/index.js +174 -3
  79. package/dist/store/slices/questionnaire/index.js +5139 -0
  80. package/dist/store/slices/questionnaire/service.js +3030 -0
  81. package/dist/store/store.js +2 -1
  82. package/dist/utils/path.js +49 -1
  83. package/package.json +2 -1
@@ -456,4 +456,186 @@ export var LogOutIcon = function LogOutIcon() {
456
456
  rx: "5",
457
457
  fill: "#F50B0B"
458
458
  }))));
459
+ };
460
+ export var ExportIcon = function ExportIcon() {
461
+ return /*#__PURE__*/React.createElement("svg", {
462
+ width: "24",
463
+ height: "24",
464
+ viewBox: "0 0 24 24",
465
+ fill: "none",
466
+ xmlns: "http://www.w3.org/2000/svg"
467
+ }, /*#__PURE__*/React.createElement("path", {
468
+ d: "M9.32007 6.49994L11.8801 3.93994L14.4401 6.49994",
469
+ stroke: "#F2F2F2",
470
+ strokeWidth: "1.5",
471
+ strokeMiterlimit: "10",
472
+ strokeLinecap: "round",
473
+ strokeLinejoin: "round"
474
+ }), /*#__PURE__*/React.createElement("path", {
475
+ d: "M11.8799 14.18V4.01001",
476
+ stroke: "#F2F2F2",
477
+ strokeWidth: "1.5",
478
+ strokeMiterlimit: "10",
479
+ strokeLinecap: "round",
480
+ strokeLinejoin: "round"
481
+ }), /*#__PURE__*/React.createElement("path", {
482
+ d: "M4 12C4 16.42 7 20 12 20C17 20 20 16.42 20 12",
483
+ stroke: "#F2F2F2",
484
+ strokeWidth: "1.5",
485
+ strokeMiterlimit: "10",
486
+ strokeLinecap: "round",
487
+ strokeLinejoin: "round"
488
+ }));
489
+ };
490
+ export var PlusIcon = function PlusIcon() {
491
+ return /*#__PURE__*/React.createElement("svg", {
492
+ width: "24",
493
+ height: "24",
494
+ viewBox: "0 0 24 24",
495
+ fill: "none",
496
+ xmlns: "http://www.w3.org/2000/svg"
497
+ }, /*#__PURE__*/React.createElement("path", {
498
+ d: "M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z",
499
+ stroke: "white",
500
+ strokeWidth: "1.5",
501
+ strokeLinecap: "round",
502
+ strokeLinejoin: "round"
503
+ }), /*#__PURE__*/React.createElement("path", {
504
+ d: "M8 12H16",
505
+ stroke: "white",
506
+ strokeWidth: "1.5",
507
+ strokeLinecap: "round",
508
+ strokeLinejoin: "round"
509
+ }), /*#__PURE__*/React.createElement("path", {
510
+ d: "M12 16V8",
511
+ stroke: "white",
512
+ strokeWidth: "1.5",
513
+ strokeLinecap: "round",
514
+ strokeLinejoin: "round"
515
+ }));
516
+ };
517
+ export var SearchIcon = function SearchIcon() {
518
+ return /*#__PURE__*/React.createElement("svg", {
519
+ width: "22",
520
+ height: "22",
521
+ viewBox: "0 0 22 22",
522
+ fill: "none",
523
+ xmlns: "http://www.w3.org/2000/svg"
524
+ }, /*#__PURE__*/React.createElement("path", {
525
+ d: "M10.083 18.3332C14.6394 18.3332 18.333 14.6395 18.333 10.0832C18.333 5.52682 14.6394 1.83317 10.083 1.83317C5.52666 1.83317 1.83301 5.52682 1.83301 10.0832C1.83301 14.6395 5.52666 18.3332 10.083 18.3332Z",
526
+ stroke: "#828282",
527
+ strokeWidth: "1.375",
528
+ strokeLinecap: "round",
529
+ strokeLinejoin: "round"
530
+ }), /*#__PURE__*/React.createElement("path", {
531
+ d: "M17.3527 18.9655C17.8385 20.4322 18.9477 20.5788 19.8002 19.2955C20.5794 18.1222 20.066 17.1597 18.6544 17.1597C17.6094 17.1505 17.0227 17.9663 17.3527 18.9655Z",
532
+ stroke: "#828282",
533
+ strokeWidth: "1.375",
534
+ strokeLinecap: "round",
535
+ strokeLinejoin: "round"
536
+ }));
537
+ };
538
+ export var OkIcon = function OkIcon() {
539
+ return /*#__PURE__*/React.createElement("svg", {
540
+ width: "140",
541
+ height: "140",
542
+ viewBox: "0 0 140 140",
543
+ fill: "none",
544
+ xmlns: "http://www.w3.org/2000/svg"
545
+ }, /*#__PURE__*/React.createElement("path", {
546
+ d: "M70.0001 128.333C102.083 128.333 128.333 102.083 128.333 69.9998C128.333 37.9165 102.083 11.6665 70.0001 11.6665C37.9167 11.6665 11.6667 37.9165 11.6667 69.9998C11.6667 102.083 37.9167 128.333 70.0001 128.333Z",
547
+ stroke: "#219653",
548
+ strokeWidth: "8.75",
549
+ strokeLinecap: "round",
550
+ strokeLinejoin: "round"
551
+ }), /*#__PURE__*/React.createElement("path", {
552
+ d: "M45.2083 70L61.7166 86.5084L94.7916 53.4917",
553
+ stroke: "#219653",
554
+ strokeWidth: "8.75",
555
+ strokeLinecap: "round",
556
+ strokeLinejoin: "round"
557
+ }));
558
+ };
559
+ export var EditIcon = function EditIcon() {
560
+ return /*#__PURE__*/React.createElement("svg", {
561
+ width: "24",
562
+ height: "24",
563
+ viewBox: "0 0 24 24",
564
+ fill: "none",
565
+ xmlns: "http://www.w3.org/2000/svg"
566
+ }, /*#__PURE__*/React.createElement("path", {
567
+ d: "M20.5 11.3V7.04001C20.5 3.01001 19.56 2 15.78 2H8.22C4.44 2 3.5 3.01001 3.5 7.04001V18.3C3.5 20.96 4.96001 21.59 6.73001 19.69L6.73999 19.68C7.55999 18.81 8.80999 18.88 9.51999 19.83L10.53 21.18",
568
+ stroke: "#016DAF",
569
+ strokeWidth: "1.5",
570
+ strokeLinecap: "round",
571
+ strokeLinejoin: "round"
572
+ }), /*#__PURE__*/React.createElement("path", {
573
+ d: "M8 7H16",
574
+ stroke: "#016DAF",
575
+ strokeWidth: "1.5",
576
+ strokeLinecap: "round",
577
+ strokeLinejoin: "round"
578
+ }), /*#__PURE__*/React.createElement("path", {
579
+ d: "M9 11H15",
580
+ stroke: "#016DAF",
581
+ strokeWidth: "1.5",
582
+ strokeLinecap: "round",
583
+ strokeLinejoin: "round"
584
+ }), /*#__PURE__*/React.createElement("path", {
585
+ d: "M18.211 14.7703L14.671 18.3103C14.531 18.4503 14.401 18.7103 14.371 18.9003L14.181 20.2503C14.111 20.7403 14.451 21.0803 14.941 21.0103L16.291 20.8203C16.481 20.7903 16.751 20.6603 16.881 20.5203L20.421 16.9803C21.031 16.3703 21.321 15.6603 20.421 14.7603C19.531 13.8703 18.821 14.1603 18.211 14.7703Z",
586
+ stroke: "#016DAF",
587
+ strokeWidth: "1.5",
588
+ strokeMiterlimit: "10",
589
+ strokeLinecap: "round",
590
+ strokeLinejoin: "round"
591
+ }), /*#__PURE__*/React.createElement("path", {
592
+ d: "M17.6992 15.2803C17.9992 16.3603 18.8392 17.2003 19.9192 17.5003",
593
+ stroke: "#016DAF",
594
+ strokeWidth: "1.5",
595
+ strokeMiterlimit: "10",
596
+ strokeLinecap: "round",
597
+ strokeLinejoin: "round"
598
+ }));
599
+ };
600
+ export var DeleteIconQ = function DeleteIconQ() {
601
+ return /*#__PURE__*/React.createElement("svg", {
602
+ width: "24",
603
+ height: "24",
604
+ viewBox: "0 0 24 24",
605
+ fill: "none",
606
+ xmlns: "http://www.w3.org/2000/svg"
607
+ }, /*#__PURE__*/React.createElement("path", {
608
+ d: "M8.81043 2L5.19043 5.63",
609
+ stroke: "#EB5757",
610
+ strokeWidth: "1.5",
611
+ strokeMiterlimit: "10",
612
+ strokeLinecap: "round",
613
+ strokeLinejoin: "round"
614
+ }), /*#__PURE__*/React.createElement("path", {
615
+ d: "M15.1904 2L18.8104 5.63",
616
+ stroke: "#EB5757",
617
+ strokeWidth: "1.5",
618
+ strokeMiterlimit: "10",
619
+ strokeLinecap: "round",
620
+ strokeLinejoin: "round"
621
+ }), /*#__PURE__*/React.createElement("path", {
622
+ d: "M2 7.85C2 6 2.99 5.85 4.22 5.85H19.78C21.01 5.85 22 6 22 7.85C22 10 21.01 9.85 19.78 9.85H4.22C2.99 9.85 2 10 2 7.85Z",
623
+ stroke: "#EB5757",
624
+ strokeWidth: "1.5"
625
+ }), /*#__PURE__*/React.createElement("path", {
626
+ d: "M9.75977 14V17.55",
627
+ stroke: "#EB5757",
628
+ strokeWidth: "1.5",
629
+ strokeLinecap: "round"
630
+ }), /*#__PURE__*/React.createElement("path", {
631
+ d: "M14.3604 14V17.55",
632
+ stroke: "#EB5757",
633
+ strokeWidth: "1.5",
634
+ strokeLinecap: "round"
635
+ }), /*#__PURE__*/React.createElement("path", {
636
+ d: "M3.5 10L4.91 18.64C5.23 20.58 6 22 8.86 22H14.89C18 22 18.46 20.64 18.82 18.76L20.5 10",
637
+ stroke: "#EB5757",
638
+ strokeWidth: "1.5",
639
+ strokeLinecap: "round"
640
+ }));
459
641
  };
@@ -70,13 +70,13 @@
70
70
 
71
71
  .button_green {
72
72
  border-radius: 6px;
73
- background: #219653;
73
+ background: #18b503;
74
74
  padding: 5px 10px;
75
75
  font-size: 16px;
76
76
  font-weight: 400;
77
77
  line-height: 24px;
78
78
  letter-spacing: 0.5px;
79
- border: 1px solid #219653;
79
+ border: 1px solid #18b503;
80
80
  color: #fff;
81
81
  cursor: pointer;
82
82
  transition: 250ms;
@@ -124,8 +124,8 @@
124
124
  font-weight: 400;
125
125
  line-height: 24px;
126
126
  letter-spacing: 0.5px;
127
- border: 1px solid #219653;
128
- color: #fff;
127
+ border: 1px solid #18b503;
128
+ color: #18b503;
129
129
  cursor: pointer;
130
130
  transition: 250ms;
131
131
 
@@ -136,7 +136,19 @@
136
136
  svg {
137
137
  path {
138
138
  transition: 250ms;
139
- fill: #219653 !important;
139
+ stroke: #18b503;
140
+ }
141
+ }
142
+ }
143
+ .button_green_white:hover {
144
+ background: gray;
145
+ border: 1px solid gray;
146
+ transition: 250ms;
147
+ color: grey;
148
+ svg {
149
+ path {
150
+ transition: 250ms;
151
+ stroke: gray;
140
152
  }
141
153
  }
142
154
  }
@@ -5,7 +5,29 @@
5
5
  box-shadow: 0px 4px 4px 0px #0000001a !important;
6
6
  border: 1px solid #d1d1d1 !important;
7
7
  background: #deeaf6 !important;
8
+ max-height: 518px;
9
+ overflow-y: auto;
10
+ /* Scrollbar styles for WebKit browsers */
11
+ &::-webkit-scrollbar {
12
+ width: 6px;
13
+ }
14
+
15
+ &::-webkit-scrollbar-track {
16
+ background: transparent;
17
+ }
18
+
19
+ &::-webkit-scrollbar-thumb {
20
+ background-color: #fff !important; // 👈 your custom scrollbar color
21
+ border-radius: 3px;
22
+ }
23
+
24
+ &::-webkit-scrollbar-thumb:hover {
25
+ background-color: #fff !important;
26
+ }
8
27
 
28
+ /* Scrollbar styles for Firefox */
29
+ scrollbar-width: thin;
30
+ scrollbar-color: #fff transparent !important;
9
31
  .count {
10
32
  margin-bottom: 24px;
11
33
  display: flex;
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import style from "./Delete.module.scss";
3
+ import Button from "../Button";
4
+ var Delete = function Delete(_ref) {
5
+ var value = _ref.value,
6
+ onCancel = _ref.onCancel,
7
+ onDelete = _ref.onDelete;
8
+ return /*#__PURE__*/React.createElement("div", {
9
+ className: style.container
10
+ }, /*#__PURE__*/React.createElement("h3", {
11
+ className: style.value
12
+ }, value, " silm\u0259k ist\u0259diyinizd\u0259n \u0259minsizinmi?"), /*#__PURE__*/React.createElement("div", {
13
+ className: style.footer
14
+ }, /*#__PURE__*/React.createElement(Button, {
15
+ color: "white",
16
+ onClick: onCancel
17
+ }, "Geri"), /*#__PURE__*/React.createElement(Button, {
18
+ color: "red",
19
+ onClick: onDelete
20
+ }, "Soraq\xE7an\u0131 sil")));
21
+ };
22
+ export default Delete;
@@ -0,0 +1,22 @@
1
+ .container {
2
+ width: 100%;
3
+ }
4
+ .footer {
5
+ width: 100%;
6
+ display: flex;
7
+ gap: 20px;
8
+ align-items: center;
9
+ margin-top: 9px;
10
+ button {
11
+ padding: 5px 19px;
12
+ }
13
+ }
14
+
15
+ .value {
16
+ font-family: Inter;
17
+ font-size: 16px;
18
+ font-weight: 500;
19
+ line-height: 24px;
20
+ text-align: left;
21
+ color: #1c1c1c;
22
+ }
@@ -0,0 +1,31 @@
1
+ import { Modal } from "antd";
2
+ import React from "react";
3
+ import { useSelector } from "react-redux";
4
+ import style from "./DeleteModal.module.scss";
5
+ var DeleteModal = function DeleteModal(_ref) {
6
+ var children = _ref.children,
7
+ width = _ref.width,
8
+ onCancel = _ref.onCancel;
9
+ var _useSelector = useSelector(function (state) {
10
+ return state.global;
11
+ }),
12
+ deleteModalVisible = _useSelector.deleteModalVisible;
13
+ return /*#__PURE__*/React.createElement(Modal, {
14
+ open: deleteModalVisible,
15
+ width: width,
16
+ onCancel: onCancel,
17
+ okButtonProps: {
18
+ style: {
19
+ display: "none"
20
+ }
21
+ },
22
+ cancelButtonProps: {
23
+ style: {
24
+ display: "none"
25
+ }
26
+ },
27
+ className: style.absolute,
28
+ closable: false
29
+ }, children);
30
+ };
31
+ export default DeleteModal;
@@ -0,0 +1,11 @@
1
+ .absolute {
2
+ position: absolute;
3
+ right: 5px;
4
+ top: 105px;
5
+ }
6
+ .absolute > div > div {
7
+ padding: 12px !important;
8
+ }
9
+ .absolute > div > div > div {
10
+ margin: 0 !important;
11
+ }
@@ -161,6 +161,6 @@ var Filter = function Filter(_ref) {
161
161
  onOpenChange: handleOpenChange // Updated to use onOpenChange
162
162
  }, /*#__PURE__*/React.createElement(Button, {
163
163
  color: "white"
164
- }, /*#__PURE__*/React.createElement(FilterIcon, null), " Filter menyu"));
164
+ }, /*#__PURE__*/React.createElement(FilterIcon, null)));
165
165
  };
166
166
  export default Filter;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["type", "size", "className", "disabledDate", "placeholder"];
3
+ var _excluded = ["type", "size", "className", "disabledDate", "placeholder", "allowDecimal"];
4
4
  import React from "react";
5
5
  import style from "./index.module.scss";
6
6
  import { InputNumber, Input as AntdInput, DatePicker } from "antd";
@@ -13,13 +13,41 @@ var Input = function Input(_ref) {
13
13
  disabledDate = _ref.disabledDate,
14
14
  _ref$placeholder = _ref.placeholder,
15
15
  placeholder = _ref$placeholder === void 0 ? "" : _ref$placeholder,
16
+ _ref$allowDecimal = _ref.allowDecimal,
17
+ allowDecimal = _ref$allowDecimal === void 0 ? false : _ref$allowDecimal,
16
18
  rest = _objectWithoutProperties(_ref, _excluded);
19
+ var getClassName = function getClassName(baseType) {
20
+ if (className) return className;
21
+ switch (size) {
22
+ case "sm":
23
+ return style["".concat(baseType, "_sm")];
24
+ case "md":
25
+ return style["".concat(baseType, "_md")];
26
+ case "xs":
27
+ return style["".concat(baseType, "_xs")];
28
+ default:
29
+ return style[baseType];
30
+ }
31
+ };
17
32
  return /*#__PURE__*/React.createElement(React.Fragment, null, type === "number" ? /*#__PURE__*/React.createElement(InputNumber, _extends({
18
- className: className ? className : size === "sm" ? style.input_sm : size === "xs" ? style.input_xs : style.input,
33
+ className: getClassName("input"),
19
34
  min: 1,
20
- placeholder: placeholder
35
+ placeholder: placeholder,
36
+ onKeyPress: function onKeyPress(event) {
37
+ var isDigit = /[0-9]/.test(event.key);
38
+ var isDot = event.key === ".";
39
+ var alreadyHasDot = event.currentTarget.value.includes(".");
40
+ if (!isDigit && (!allowDecimal || !isDot || alreadyHasDot)) {
41
+ event.preventDefault();
42
+ }
43
+ },
44
+ onKeyDown: function onKeyDown(e) {
45
+ if (["e", "E", "+", "-"].includes(e.key)) {
46
+ e.preventDefault();
47
+ }
48
+ }
21
49
  }, rest)) : type === "textarea" ? /*#__PURE__*/React.createElement(TextArea, _extends({
22
- className: style.textarea,
50
+ className: getClassName("textarea"),
23
51
  autoSize: {
24
52
  minRows: 2,
25
53
  maxRows: 4
@@ -27,7 +55,7 @@ var Input = function Input(_ref) {
27
55
  maxLength: 500,
28
56
  placeholder: placeholder
29
57
  }, rest)) : type === "date" ? /*#__PURE__*/React.createElement(DatePicker, _extends({
30
- className: className ? className : size === "sm" ? style.date_sm : size === "xs" ? style.date_xs : style.date,
58
+ className: getClassName("date"),
31
59
  format: "DD.MM.YYYY",
32
60
  disabledDate: disabledDate === "until" ? function (current) {
33
61
  return current && current > dayjs().endOf("day");
@@ -36,7 +64,7 @@ var Input = function Input(_ref) {
36
64
  } : false,
37
65
  placeholder: placeholder
38
66
  }, rest)) : /*#__PURE__*/React.createElement(AntdInput, _extends({
39
- className: style.input,
67
+ className: getClassName("input"),
40
68
  placeholder: placeholder
41
69
  }, rest)));
42
70
  };
@@ -7,7 +7,49 @@
7
7
  text-align: left !important;
8
8
  height: 48px;
9
9
  width: 100%;
10
+ input {
11
+ padding: 0 !important;
12
+ }
10
13
  }
14
+ .input_xs {
15
+ border-radius: 6px !important;
16
+ font-size: 14px !important;
17
+ font-weight: 500 !important;
18
+ line-height: 24px !important;
19
+ text-align: left !important;
20
+ height: 26px;
21
+ width: 100%;
22
+ input {
23
+ padding: 0 !important;
24
+ }
25
+ }
26
+ .input_sm {
27
+ padding: 9px 16px !important;
28
+ border-radius: 6px !important;
29
+ font-size: 16px !important;
30
+ font-weight: 500 !important;
31
+ line-height: 24px !important;
32
+ text-align: left !important;
33
+ height: 34px;
34
+ width: 100%;
35
+ input {
36
+ padding: 0 !important;
37
+ }
38
+ }
39
+ .input_md {
40
+ padding: 9px 16px !important;
41
+ border-radius: 6px !important;
42
+ font-size: 16px !important;
43
+ font-weight: 500 !important;
44
+ line-height: 24px !important;
45
+ text-align: left !important;
46
+ height: 42px;
47
+ width: 100%;
48
+ input {
49
+ padding: 0 !important;
50
+ }
51
+ }
52
+
11
53
  .textarea {
12
54
  padding: 9px 16px !important;
13
55
  border-radius: 6px !important;
@@ -29,23 +71,25 @@
29
71
  text-align: left !important;
30
72
  }
31
73
  }
32
-
33
- .input_sm {
34
- padding: 9px 16px !important;
74
+ .date_xs {
75
+ padding: 8px 16px !important;
76
+ // border: 1px solid #bdbdbd !important;
35
77
  border-radius: 6px !important;
36
- font-size: 16px !important;
37
- font-weight: 500 !important;
38
- line-height: 24px !important;
39
- text-align: left !important;
40
- height: 34;
41
78
  width: 100%;
79
+ height: 26px;
80
+ input {
81
+ font-size: 16px !important;
82
+ font-weight: 500 !important;
83
+ line-height: 24px !important;
84
+ text-align: left !important;
85
+ }
42
86
  }
43
87
  .date_sm {
44
88
  padding: 8px 16px !important;
45
89
  // border: 1px solid #bdbdbd !important;
46
90
  border-radius: 6px !important;
47
91
  width: 100%;
48
- height: 34;
92
+ height: 34px;
49
93
  input {
50
94
  font-size: 16px !important;
51
95
  font-weight: 500 !important;
@@ -53,23 +97,11 @@
53
97
  text-align: left !important;
54
98
  }
55
99
  }
56
-
57
- .input_xs {
58
- // padding: 9px 16px !important;
59
- border-radius: 6px !important;
60
- font-size: 14px !important;
61
- font-weight: 500 !important;
62
- line-height: 24px !important;
63
- text-align: left !important;
64
- height: 26px;
65
- width: 100%;
66
- }
67
- .date_xs {
100
+ .date_md {
68
101
  padding: 8px 16px !important;
69
- // border: 1px solid #bdbdbd !important;
70
102
  border-radius: 6px !important;
71
103
  width: 100%;
72
- height: 26px;
104
+ height: 42px;
73
105
  input {
74
106
  font-size: 16px !important;
75
107
  font-weight: 500 !important;
@@ -187,7 +187,7 @@
187
187
  gap: 8px;
188
188
  padding: 7px 10px;
189
189
  border-radius: 8px;
190
- background: #eef5fc;
190
+ background: var(--lightBlue);
191
191
  cursor: pointer;
192
192
  width: 240px;
193
193
 
@@ -229,13 +229,13 @@
229
229
  position: absolute;
230
230
  top: 100%;
231
231
  right: -1px;
232
- width: 260px;
232
+ width: 242px;
233
233
  border-right: 1px solid var(--blue);
234
234
  border-left: 1px solid var(--blue);
235
235
  border-bottom: 1px solid var(--blue);
236
236
 
237
237
  border-radius: 0px 0px 8px 8px;
238
- background: #eef5fc;
238
+ background: var(--lightBlue);
239
239
  z-index: 100;
240
240
  display: flex;
241
241
  flex-direction: column;