@redneckz/wildless-cms-uni-blocks 0.3.94 → 0.3.95
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/bundle/bundle.umd.js +62 -18
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/GroupBlock/GroupBlockTabs.js +1 -1
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +61 -2
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/hooks/useSafeDepositRental.js +5 -1
- package/dist/hooks/useSafeDepositRental.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/GroupBlock/GroupBlockTabs.js +1 -1
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +61 -2
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/hooks/useSafeDepositRental.js +5 -1
- package/lib/hooks/useSafeDepositRental.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +61 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/hooks/useSafeDepositRental.js +5 -1
- package/mobile/dist/hooks/useSafeDepositRental.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +61 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/hooks/useSafeDepositRental.js +5 -1
- package/mobile/lib/hooks/useSafeDepositRental.js.map +1 -1
- package/mobile/src/components/ContentPage/ContentPage.page.json +4 -0
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.example.json +3 -0
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +62 -2
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +256 -0
- package/mobile/src/hooks/useSafeDepositRental.ts +5 -1
- package/package.json +1 -1
- package/src/components/ContentPage/ContentPage.page.json +4 -0
- package/src/components/GroupBlock/GroupBlockTabs.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.example.json +3 -0
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +62 -2
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +256 -0
- package/src/hooks/useSafeDepositRental.ts +5 -1
|
@@ -825,6 +825,262 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
825
825
|
<div
|
|
826
826
|
class="flex justify-between align-top mb-6"
|
|
827
827
|
>
|
|
828
|
+
<div
|
|
829
|
+
class="flex-1 mr-9"
|
|
830
|
+
>
|
|
831
|
+
<div
|
|
832
|
+
class="flex justify-between mb-6"
|
|
833
|
+
>
|
|
834
|
+
<div
|
|
835
|
+
class="w-full mr-4"
|
|
836
|
+
>
|
|
837
|
+
<div>
|
|
838
|
+
<span
|
|
839
|
+
class="block font-light text-m mb-2"
|
|
840
|
+
>
|
|
841
|
+
Город
|
|
842
|
+
</span>
|
|
843
|
+
<select
|
|
844
|
+
class="appearance-none h-14 border border-gray p-4 rounded-md text-m-sm w-full cursor-pointer"
|
|
845
|
+
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
846
|
+
>
|
|
847
|
+
<option
|
|
848
|
+
class=""
|
|
849
|
+
value="Москва"
|
|
850
|
+
>
|
|
851
|
+
Москва
|
|
852
|
+
</option>
|
|
853
|
+
<option
|
|
854
|
+
class=""
|
|
855
|
+
value="Краснодар"
|
|
856
|
+
>
|
|
857
|
+
Краснодар
|
|
858
|
+
</option>
|
|
859
|
+
</select>
|
|
860
|
+
</div>
|
|
861
|
+
</div>
|
|
862
|
+
<div
|
|
863
|
+
class="w-full"
|
|
864
|
+
>
|
|
865
|
+
<div>
|
|
866
|
+
<span
|
|
867
|
+
class="block font-light text-m mb-2"
|
|
868
|
+
>
|
|
869
|
+
Отделение
|
|
870
|
+
</span>
|
|
871
|
+
<select
|
|
872
|
+
class="appearance-none h-14 border border-gray p-4 rounded-md text-m-sm w-full cursor-pointer"
|
|
873
|
+
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
874
|
+
>
|
|
875
|
+
<option
|
|
876
|
+
class=""
|
|
877
|
+
value="МоскваОфис1"
|
|
878
|
+
>
|
|
879
|
+
МоскваОфис1
|
|
880
|
+
</option>
|
|
881
|
+
<option
|
|
882
|
+
class=""
|
|
883
|
+
value="МоскваОфис2"
|
|
884
|
+
>
|
|
885
|
+
МоскваОфис2
|
|
886
|
+
</option>
|
|
887
|
+
<option
|
|
888
|
+
class=""
|
|
889
|
+
value="МоскваОфис3"
|
|
890
|
+
>
|
|
891
|
+
МоскваОфис3
|
|
892
|
+
</option>
|
|
893
|
+
</select>
|
|
894
|
+
</div>
|
|
895
|
+
</div>
|
|
896
|
+
</div>
|
|
897
|
+
<div
|
|
898
|
+
class="mb-6"
|
|
899
|
+
>
|
|
900
|
+
<span
|
|
901
|
+
class="block font-light text-m mb-[3px]"
|
|
902
|
+
>
|
|
903
|
+
Срок аренды
|
|
904
|
+
</span>
|
|
905
|
+
<div>
|
|
906
|
+
<label
|
|
907
|
+
class="block relative"
|
|
908
|
+
>
|
|
909
|
+
<input
|
|
910
|
+
class="m-0 mt-[5px] font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md
|
|
911
|
+
outline-none p-0 pl-4 box-border text-primary-text"
|
|
912
|
+
value="26"
|
|
913
|
+
/>
|
|
914
|
+
<div
|
|
915
|
+
class="absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]"
|
|
916
|
+
>
|
|
917
|
+
<input
|
|
918
|
+
class="box-border w-full m-0 cursor-pointer slider"
|
|
919
|
+
max="365"
|
|
920
|
+
min="1"
|
|
921
|
+
step="1"
|
|
922
|
+
style="background-size: 6.87% 100%;"
|
|
923
|
+
type="range"
|
|
924
|
+
value="26"
|
|
925
|
+
/>
|
|
926
|
+
</div>
|
|
927
|
+
</label>
|
|
928
|
+
<div
|
|
929
|
+
class="flex justify-between my-3"
|
|
930
|
+
>
|
|
931
|
+
<span
|
|
932
|
+
class="text-sm leading-[14px] text-secondary-text pl-4"
|
|
933
|
+
>
|
|
934
|
+
От 1 дня
|
|
935
|
+
</span>
|
|
936
|
+
<span
|
|
937
|
+
class="text-sm leading-[14px] text-secondary-text pl-4"
|
|
938
|
+
>
|
|
939
|
+
До 365 дней
|
|
940
|
+
</span>
|
|
941
|
+
</div>
|
|
942
|
+
</div>
|
|
943
|
+
</div>
|
|
944
|
+
<div
|
|
945
|
+
class="flex justify-between mb-6"
|
|
946
|
+
>
|
|
947
|
+
<div
|
|
948
|
+
class="mr-4 w-full"
|
|
949
|
+
>
|
|
950
|
+
<div>
|
|
951
|
+
<span
|
|
952
|
+
class="block font-light text-m mb-2"
|
|
953
|
+
>
|
|
954
|
+
Размер ячейки
|
|
955
|
+
</span>
|
|
956
|
+
<select
|
|
957
|
+
class="appearance-none h-14 border border-gray p-4 rounded-md text-m-sm w-full cursor-pointer"
|
|
958
|
+
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
959
|
+
>
|
|
960
|
+
<option
|
|
961
|
+
class=""
|
|
962
|
+
value="маленькая"
|
|
963
|
+
>
|
|
964
|
+
маленькая
|
|
965
|
+
</option>
|
|
966
|
+
<option
|
|
967
|
+
class=""
|
|
968
|
+
value="средняя"
|
|
969
|
+
>
|
|
970
|
+
средняя
|
|
971
|
+
</option>
|
|
972
|
+
<option
|
|
973
|
+
class=""
|
|
974
|
+
value="большая"
|
|
975
|
+
>
|
|
976
|
+
большая
|
|
977
|
+
</option>
|
|
978
|
+
</select>
|
|
979
|
+
</div>
|
|
980
|
+
</div>
|
|
981
|
+
<div
|
|
982
|
+
class="w-full"
|
|
983
|
+
>
|
|
984
|
+
<div>
|
|
985
|
+
<span
|
|
986
|
+
class="block font-light text-m mb-2"
|
|
987
|
+
>
|
|
988
|
+
Параметры ячейки, мм (ВхШхД)
|
|
989
|
+
</span>
|
|
990
|
+
<select
|
|
991
|
+
class="appearance-none h-14 border border-gray p-4 rounded-md text-m-sm w-full cursor-pointer"
|
|
992
|
+
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
993
|
+
>
|
|
994
|
+
<option
|
|
995
|
+
class=""
|
|
996
|
+
value="125x225x375"
|
|
997
|
+
>
|
|
998
|
+
125x225x375
|
|
999
|
+
</option>
|
|
1000
|
+
<option
|
|
1001
|
+
class=""
|
|
1002
|
+
value="200x300x400"
|
|
1003
|
+
>
|
|
1004
|
+
200x300x400
|
|
1005
|
+
</option>
|
|
1006
|
+
<option
|
|
1007
|
+
class=""
|
|
1008
|
+
value="300x400x500"
|
|
1009
|
+
>
|
|
1010
|
+
300x400x500
|
|
1011
|
+
</option>
|
|
1012
|
+
</select>
|
|
1013
|
+
</div>
|
|
1014
|
+
</div>
|
|
1015
|
+
</div>
|
|
1016
|
+
<span
|
|
1017
|
+
class="text-secondary-text font-light"
|
|
1018
|
+
>
|
|
1019
|
+
Тип договора
|
|
1020
|
+
</span>
|
|
1021
|
+
<div
|
|
1022
|
+
class="flex justify-between items-center mt-5"
|
|
1023
|
+
>
|
|
1024
|
+
<div>
|
|
1025
|
+
<div
|
|
1026
|
+
class="mb-2"
|
|
1027
|
+
>
|
|
1028
|
+
<label
|
|
1029
|
+
class="flex items-center relative cursor-pointer"
|
|
1030
|
+
>
|
|
1031
|
+
<input
|
|
1032
|
+
checked=""
|
|
1033
|
+
class="appearance-none flex justify-center items-center w-5 h-5 border-2 border-primary-main rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main"
|
|
1034
|
+
name="contractType"
|
|
1035
|
+
type="radio"
|
|
1036
|
+
value="option1"
|
|
1037
|
+
/>
|
|
1038
|
+
<span
|
|
1039
|
+
class="font-sans ml-3 text-m-base cursor-pointer"
|
|
1040
|
+
>
|
|
1041
|
+
Простое хранение
|
|
1042
|
+
</span>
|
|
1043
|
+
</label>
|
|
1044
|
+
</div>
|
|
1045
|
+
<div>
|
|
1046
|
+
<label
|
|
1047
|
+
class="flex items-center relative cursor-pointer"
|
|
1048
|
+
>
|
|
1049
|
+
<input
|
|
1050
|
+
class="appearance-none flex justify-center items-center w-5 h-5 border-2 border-primary-main rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main"
|
|
1051
|
+
name="contractType"
|
|
1052
|
+
type="radio"
|
|
1053
|
+
value="option2"
|
|
1054
|
+
/>
|
|
1055
|
+
<span
|
|
1056
|
+
class="font-sans ml-3 text-m-base cursor-pointer"
|
|
1057
|
+
>
|
|
1058
|
+
Сделка с недвижимостью
|
|
1059
|
+
</span>
|
|
1060
|
+
</label>
|
|
1061
|
+
</div>
|
|
1062
|
+
</div>
|
|
1063
|
+
<a
|
|
1064
|
+
class="text-center font-sans select-none inline-block cursor-pointer no-underline focus:border-primary-focus focus:border text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active rounded-md "
|
|
1065
|
+
role="button"
|
|
1066
|
+
>
|
|
1067
|
+
<div
|
|
1068
|
+
class="flex items-center justify-center gap-2 py-4 px-9 "
|
|
1069
|
+
>
|
|
1070
|
+
<div>
|
|
1071
|
+
<div
|
|
1072
|
+
class="text-xs text-left"
|
|
1073
|
+
/>
|
|
1074
|
+
<div
|
|
1075
|
+
class="text-left text-l"
|
|
1076
|
+
>
|
|
1077
|
+
Офисы на карте
|
|
1078
|
+
</div>
|
|
1079
|
+
</div>
|
|
1080
|
+
</div>
|
|
1081
|
+
</a>
|
|
1082
|
+
</div>
|
|
1083
|
+
</div>
|
|
828
1084
|
<div
|
|
829
1085
|
class="flex flex-col justify-between"
|
|
830
1086
|
>
|
|
@@ -12,7 +12,11 @@ export function useSafeDepositRental(useAsyncData: AsyncDataHook) {
|
|
|
12
12
|
|
|
13
13
|
async function fetchSafeDepositRental(): Promise<any | undefined> {
|
|
14
14
|
try {
|
|
15
|
-
const response = await fetch(SAFE_DEPOSIT_RENTAL_URL
|
|
15
|
+
const response = await fetch(SAFE_DEPOSIT_RENTAL_URL, {
|
|
16
|
+
headers: {
|
|
17
|
+
'Content-Type': 'application/json',
|
|
18
|
+
},
|
|
19
|
+
});
|
|
16
20
|
|
|
17
21
|
return await response.json();
|
|
18
22
|
} catch (err) {
|