stone-kit 0.0.862 → 0.0.864
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/components/Button/index.d.ts +1 -0
- package/dist/components/Button/ui/Button.d.ts +4 -0
- package/dist/components/Button/ui/Button.types.d.ts +37 -0
- package/dist/components/CheckBox/CheckBox.d.ts +3 -0
- package/dist/components/CheckBox/CheckBox.types.d.ts +18 -0
- package/dist/components/CheckBox/index.d.ts +2 -0
- package/dist/components/CheckBoxNew/CheckBox.types.d.ts +17 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +11 -0
- package/dist/components/CheckboxSelect/index.d.ts +1 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +13 -0
- package/dist/components/DestinationTab/index.d.ts +1 -0
- package/dist/components/DestinationTab/ui/DestinationTab.d.ts +4 -0
- package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +31 -0
- package/dist/components/FieldInput/index.d.ts +1 -0
- package/dist/components/FieldInput/ui/FieldInput.d.ts +4 -0
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +10 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +44 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +29 -0
- package/dist/components/Flex/index.d.ts +1 -0
- package/dist/components/Flex/ui/Flex.d.ts +3 -0
- package/dist/components/Flex/ui/Flex.types.d.ts +16 -0
- package/dist/components/FormModal/ui/ModalForm.d.ts +50 -0
- package/dist/components/FormModal/utils/reg.d.ts +4 -0
- package/dist/components/GroupedInput/index.d.ts +1 -0
- package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +3 -0
- package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +5 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/ui/Input.types.d.ts +26 -0
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Logo/ui/Logo.d.ts +3 -0
- package/dist/components/Logo/ui/Logo.types.d.ts +17 -0
- package/dist/components/LotCard/hooks/useLotCard.d.ts +24 -0
- package/dist/components/LotCard/index.d.ts +1 -0
- package/dist/components/LotCard/ui/LotCard.d.ts +3 -0
- package/dist/components/LotCard/ui/LotCard.types.d.ts +255 -0
- package/dist/components/LotCard/utils/checkBedroomsCount.d.ts +1 -0
- package/dist/components/LotCard/utils/const.d.ts +8 -0
- package/dist/components/LotCard/utils/formatPrice.d.ts +1 -0
- package/dist/components/LotCard/utils/getTagsFeatures.d.ts +5 -0
- package/dist/components/LotCard/utils/monthlyPayment.d.ts +1 -0
- package/dist/components/LotCardSkeleton/index.d.ts +1 -0
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.d.ts +5 -0
- package/dist/components/MetroLabel/ui/MetroLabel.d.ts +3 -0
- package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +18 -0
- package/dist/components/MetroTag/index.d.ts +1 -0
- package/dist/components/MetroTag/ui/MetroTag.d.ts +3 -0
- package/dist/components/MetroTag/ui/MetroTag.types.d.ts +31 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Modal/ui/Modal.d.ts +4 -0
- package/dist/components/Modal/ui/Modal.types.d.ts +22 -0
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +3 -0
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +9 -0
- package/dist/components/NewIcon/icons/PinTrans.d.ts +4 -0
- package/dist/components/NewIcon/icons/SmallFilter.d.ts +4 -0
- package/dist/components/NewIcon/index.d.ts +1 -0
- package/dist/components/NewIcon/ui/NewIcon.d.ts +16 -0
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +8 -0
- package/dist/components/NewIcon/ui/iconTypes.d.ts +4 -0
- package/dist/components/ProjectCardSkeleton/index.d.ts +1 -0
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.d.ts +1 -0
- package/dist/components/RoundButton/index.d.ts +1 -0
- package/dist/components/RoundButton/ui/RoundButton.d.ts +4 -0
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +30 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/model/selectMode.d.ts +15 -0
- package/dist/components/Select/ui/Category.d.ts +14 -0
- package/dist/components/Select/ui/Option.d.ts +14 -0
- package/dist/components/Select/ui/Select.d.ts +3 -0
- package/dist/components/Select/ui/Select.types.d.ts +59 -0
- package/dist/components/SliderNavigation/index.d.ts +3 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +3 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.types.d.ts +16 -0
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +29 -0
- package/dist/components/SortSelect/index.d.ts +1 -0
- package/dist/components/SortSelect/ui/SortSelect.d.ts +4 -0
- package/dist/components/SortSelect/ui/SortSelect.types.d.ts +21 -0
- package/dist/components/SummarySelect/index.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +9 -0
- package/dist/components/Switcher/index.d.ts +1 -0
- package/dist/components/Switcher/ui/Switcher.d.ts +3 -0
- package/dist/components/Switcher/ui/Switcher.types.d.ts +6 -0
- package/dist/components/TabSelect/index.d.ts +1 -0
- package/dist/components/TabSelect/ui/TabSelect.d.ts +27 -0
- package/dist/components/TabSelect/ui/TabSelect.types.d.ts +0 -0
- package/dist/components/TabSwitcher/index.d.ts +1 -0
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +6 -0
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +34 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.d.ts +4 -0
- package/dist/components/Tag/ui/Tag.types.d.ts +33 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/ui/Text.d.ts +3 -0
- package/dist/components/Text/ui/Text.types.d.ts +10 -0
- package/dist/components/TextArea/TextArea.types.d.ts +11 -0
- package/dist/components/ZoomControls/index.d.ts +1 -0
- package/dist/components/ZoomControls/ui/ZoomControls.d.ts +3 -0
- package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +7 -0
- package/dist/components/mobileButton/index.d.ts +1 -0
- package/dist/components/mobileButton/ui/MobileButton.d.ts +4 -0
- package/dist/components/mobileButton/ui/MobileButton.types.d.ts +24 -0
- package/dist/main.d.ts +33 -0
- package/dist/shared/deepEqual.d.ts +1 -0
- package/dist/shared/useClientWidth.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IMetro {
|
|
3
|
+
name: string | null;
|
|
4
|
+
color: string | null;
|
|
5
|
+
station: string | null;
|
|
6
|
+
timeTo: string | null;
|
|
7
|
+
}
|
|
8
|
+
interface IFeatures {
|
|
9
|
+
category: string | null;
|
|
10
|
+
icoImg: {
|
|
11
|
+
attributes: {
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
} | null;
|
|
15
|
+
slug: string | null;
|
|
16
|
+
val: string | null;
|
|
17
|
+
}
|
|
18
|
+
interface IGeo {
|
|
19
|
+
lat: string | null;
|
|
20
|
+
lon: string | null;
|
|
21
|
+
}
|
|
22
|
+
interface IProject {
|
|
23
|
+
address: string | null;
|
|
24
|
+
buildingYear: number | null;
|
|
25
|
+
createdAt: string | null;
|
|
26
|
+
direction: number | null;
|
|
27
|
+
features: IFeatures[] | null;
|
|
28
|
+
geo: IGeo | null;
|
|
29
|
+
id: number;
|
|
30
|
+
logoImg: string | null;
|
|
31
|
+
metro: IMetro[];
|
|
32
|
+
name: string;
|
|
33
|
+
project: string;
|
|
34
|
+
shortDesc: string;
|
|
35
|
+
sitPlanImg: string;
|
|
36
|
+
sort: number;
|
|
37
|
+
sortOffice: number | null;
|
|
38
|
+
sortRetail: number | null;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
buildingQuarter: number;
|
|
41
|
+
projectUuid: string;
|
|
42
|
+
portalUuid: string;
|
|
43
|
+
location: string;
|
|
44
|
+
showPriceFlg: boolean | null;
|
|
45
|
+
lotsCount: number | null;
|
|
46
|
+
}
|
|
47
|
+
interface ILotPromo {
|
|
48
|
+
/** Промо текст */
|
|
49
|
+
val: string;
|
|
50
|
+
/** Идентификатор */
|
|
51
|
+
slug: string;
|
|
52
|
+
/** Категория */
|
|
53
|
+
category: string;
|
|
54
|
+
/** Ссылка на иконку */
|
|
55
|
+
icoImg: string;
|
|
56
|
+
/** hex цвет */
|
|
57
|
+
color: string;
|
|
58
|
+
}
|
|
59
|
+
export interface ILot {
|
|
60
|
+
/** id Лота */
|
|
61
|
+
id: number | string;
|
|
62
|
+
/** Название проекта */
|
|
63
|
+
name?: string | null;
|
|
64
|
+
/** Квартал сдачи */
|
|
65
|
+
buildingQuarter?: number | null;
|
|
66
|
+
/** uuid Лота из 1с */
|
|
67
|
+
lotUuid: string;
|
|
68
|
+
projectUuid: string | null;
|
|
69
|
+
/** Скидка */
|
|
70
|
+
discount: string | null;
|
|
71
|
+
/** Стоимость объекта недвижимости до скидки */
|
|
72
|
+
sellingPriceBeforeDiscount: string | null;
|
|
73
|
+
/** Стоимость объекта недвижимости */
|
|
74
|
+
sellingPrice: string | null;
|
|
75
|
+
/**id проекта */
|
|
76
|
+
projectId: number | null;
|
|
77
|
+
/** Показывать цену или "цена по запросу" */
|
|
78
|
+
showPriceFlg: boolean | null;
|
|
79
|
+
/** Цена за квм */
|
|
80
|
+
sellingPricePerMeter: string | null;
|
|
81
|
+
/** цена за метра квадратный за год за аренду */
|
|
82
|
+
rentPricePerMeterPerYear: string | null;
|
|
83
|
+
/** аренда за месяц */
|
|
84
|
+
rentPricePerMonth: string | null;
|
|
85
|
+
/** Размер скидки */
|
|
86
|
+
discountVolume: number | null;
|
|
87
|
+
/** Цена со скидкой */
|
|
88
|
+
discountedPrice: number | null;
|
|
89
|
+
/** дата освобождения лота */
|
|
90
|
+
availableFrom: string | null;
|
|
91
|
+
/** дата, до которой должны быть выданы ключи */
|
|
92
|
+
handoverKeys: string | null;
|
|
93
|
+
/** состояние лота: свободен, зарезервирован, продан, сдан в аренду, заблокирован, деактивирован */
|
|
94
|
+
status: number | null;
|
|
95
|
+
/** Статус аренды лота */
|
|
96
|
+
rentStatus: number | null;
|
|
97
|
+
/** название лота в 1С */
|
|
98
|
+
number: string | null;
|
|
99
|
+
/** полный адрес лота (с корпусом) */
|
|
100
|
+
address: string | null;
|
|
101
|
+
/** Тип помещения => Квартиры/Пентхаусы/Келлеры/Паркинг Офисы/Ритейл/Офисные Блоки/Паркинг */
|
|
102
|
+
type: number | null;
|
|
103
|
+
/** Название помещения => Квартиры/Пентхаусы/Келлеры/Паркинг Офисы/Ритейл/Офисные Блоки/Паркинг */
|
|
104
|
+
typeName: number | null;
|
|
105
|
+
/** направления, по которым продвигается этот лот */
|
|
106
|
+
direction: number | null;
|
|
107
|
+
/** Размерность спален S/M/L */
|
|
108
|
+
typeSizeCode: string | null;
|
|
109
|
+
/** номер подъезда/секции */
|
|
110
|
+
entrance: string | null;
|
|
111
|
+
/** Номер квартиры / офиса */
|
|
112
|
+
doorNumber: string | null;
|
|
113
|
+
/** Площадь квартиры */
|
|
114
|
+
area: string | null;
|
|
115
|
+
/** площадь кухни */
|
|
116
|
+
kitchenArea: number | null;
|
|
117
|
+
/** Жилая площадь */
|
|
118
|
+
livingArea: number | null;
|
|
119
|
+
/** Кол-во этажей */
|
|
120
|
+
floorsNumber: number | null;
|
|
121
|
+
/** Этаж */
|
|
122
|
+
floor: number | null;
|
|
123
|
+
/** Высота потолков */
|
|
124
|
+
ceiling: string | null;
|
|
125
|
+
/** Последний этаж лота */
|
|
126
|
+
/** Этаж, с которого начинаются продаваемые лоты */
|
|
127
|
+
saleFloorMin: number | null;
|
|
128
|
+
/** Этаж, на котором заканчиваются продаваемые лоты */
|
|
129
|
+
saleFloorMax: number | null;
|
|
130
|
+
/** Первый этаж большого лота/здания */
|
|
131
|
+
beginFloor: number | null;
|
|
132
|
+
/** Последний этаж большого лота/здания */
|
|
133
|
+
endFloor: number | null;
|
|
134
|
+
/** Ежемясячный платеж */
|
|
135
|
+
mortgageMonthlyPayment?: string;
|
|
136
|
+
/** Количество комнат */
|
|
137
|
+
roomsCount: number | null;
|
|
138
|
+
/** Количество спален */
|
|
139
|
+
bedroomsCount?: number | null;
|
|
140
|
+
/** Корпус */
|
|
141
|
+
housing: string | null;
|
|
142
|
+
/** Секция */
|
|
143
|
+
section: string | null;
|
|
144
|
+
/** Очередь строительства */
|
|
145
|
+
buildStage: number | null;
|
|
146
|
+
/** угловое? */
|
|
147
|
+
isCorner: boolean | null;
|
|
148
|
+
/** Квартира с террасой */
|
|
149
|
+
terrace: boolean | null;
|
|
150
|
+
/** общепит? */
|
|
151
|
+
isCatering: boolean | null;
|
|
152
|
+
pdfPresentation: string | null;
|
|
153
|
+
/** является ли лот отдельно стоящим зданием */
|
|
154
|
+
isDetachedBuilding: boolean | null;
|
|
155
|
+
/** Наличие телефона */
|
|
156
|
+
isPhone: boolean | null;
|
|
157
|
+
/** в ипотеку */
|
|
158
|
+
isMortgage: boolean | null;
|
|
159
|
+
/** мусоропровод */
|
|
160
|
+
isGarbageTube: boolean | null;
|
|
161
|
+
/** Является ли лот пентхаусом */
|
|
162
|
+
isPenthouse: boolean | null;
|
|
163
|
+
/** Является ли лот апартаментом */
|
|
164
|
+
isApart: boolean | null;
|
|
165
|
+
/** Является ли лот двухуровневым */
|
|
166
|
+
isDoubleLevel: boolean | null;
|
|
167
|
+
/** Есть ли пандус */
|
|
168
|
+
isRamp: boolean | null;
|
|
169
|
+
/** Близко ли вход к лифтовой группе */
|
|
170
|
+
isCloseToLift: boolean | null;
|
|
171
|
+
/** Занят ли лот */
|
|
172
|
+
isOccupied: boolean | null;
|
|
173
|
+
/** Является ли лот ГАБ */
|
|
174
|
+
isGab: boolean | null;
|
|
175
|
+
/** Есть ли отделка */
|
|
176
|
+
isFacing: boolean | null;
|
|
177
|
+
/** Особенности квартиры */
|
|
178
|
+
features: IFeatures[] | null;
|
|
179
|
+
/** Количество пассажирских лифтов */
|
|
180
|
+
liftPassenger: number | null;
|
|
181
|
+
/** Количество грузовых лифтов */
|
|
182
|
+
liftService?: number | null;
|
|
183
|
+
/** Количество балконов */
|
|
184
|
+
balcony: number | null;
|
|
185
|
+
/** Количество лоджий */
|
|
186
|
+
loggia: number | null;
|
|
187
|
+
/** Состояние помещения */
|
|
188
|
+
condition: string | null;
|
|
189
|
+
/** Тип входа в помещений */
|
|
190
|
+
inputType?: string | null;
|
|
191
|
+
/** Отделка */
|
|
192
|
+
decoration: string | null;
|
|
193
|
+
/** Тип планировки */
|
|
194
|
+
layout: string | null;
|
|
195
|
+
/** Тип ремонта */
|
|
196
|
+
repairType: string | null;
|
|
197
|
+
slug: string;
|
|
198
|
+
/** количество стояков с водой */
|
|
199
|
+
waterPipesCount: number[] | null;
|
|
200
|
+
/** количество рабочих мест */
|
|
201
|
+
workPlacesCount: number | null;
|
|
202
|
+
/** Количество совместных санузлов */
|
|
203
|
+
combinedWcsCount: number | null;
|
|
204
|
+
/** Возможное назначение */
|
|
205
|
+
speciality: number | null;
|
|
206
|
+
/** Куда выходят витрины */
|
|
207
|
+
showcaseWindows: string | null;
|
|
208
|
+
/** Вид из окна */
|
|
209
|
+
windowView: string | null;
|
|
210
|
+
/** Виды/выходы для типа ритейл */
|
|
211
|
+
windowViews: string[];
|
|
212
|
+
/** Promo метки */
|
|
213
|
+
promo: ILotPromo[] | null;
|
|
214
|
+
/** Promo текст */
|
|
215
|
+
promoText: string | null;
|
|
216
|
+
/** Ссылка на картинку */
|
|
217
|
+
interiorPlanImg?: string | null;
|
|
218
|
+
/** Ссылка на картинку */
|
|
219
|
+
floorPlanImg: string | null;
|
|
220
|
+
/** Ссылка на картинку */
|
|
221
|
+
sitPlanImg: string | null;
|
|
222
|
+
/** Дата создания */
|
|
223
|
+
createdAt?: string;
|
|
224
|
+
/** Дата обновления */
|
|
225
|
+
updatedAt?: string;
|
|
226
|
+
/** Первоначальный взнос */
|
|
227
|
+
firstPaymentSum?: string;
|
|
228
|
+
/** Массив с лотами в фоисных блоках */
|
|
229
|
+
childLots?: {
|
|
230
|
+
id: number;
|
|
231
|
+
floor: number;
|
|
232
|
+
floorPlanImg: string;
|
|
233
|
+
interiorPlanImg: string;
|
|
234
|
+
}[];
|
|
235
|
+
cornerKitchenLiving?: boolean | null;
|
|
236
|
+
recommended?: ILot[] | null;
|
|
237
|
+
parking?: ILot[] | null;
|
|
238
|
+
project?: IProject | null;
|
|
239
|
+
isWaterPipes?: boolean | null;
|
|
240
|
+
azimuthAngle?: number | null;
|
|
241
|
+
isDecoration?: boolean | null;
|
|
242
|
+
subTypeName: string;
|
|
243
|
+
}
|
|
244
|
+
export interface ILotCard {
|
|
245
|
+
lot: ILot;
|
|
246
|
+
btnName?: string;
|
|
247
|
+
btnDisabled?: boolean;
|
|
248
|
+
handleBtnForm: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
249
|
+
handleFullScreenBtn?: () => void;
|
|
250
|
+
addClassname?: string;
|
|
251
|
+
addClassnameLotImage?: string;
|
|
252
|
+
imgNode?: React.ReactNode;
|
|
253
|
+
rowConditions?: boolean;
|
|
254
|
+
}
|
|
255
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const checkBedroomsCount: (count?: number | null) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatPrice: (price: string | number | null, perMetr?: boolean, direction?: number | null) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ILot } from '../ui/LotCard.types.ts';
|
|
2
|
+
|
|
3
|
+
export declare const getTagsFeatures: ({ loggia, cornerKitchenLiving, terrace, isPenthouse, isDoubleLevel, }: Pick<ILot, 'loggia' | 'isDoubleLevel' | 'isPenthouse' | 'terrace' | 'isCorner' | 'cornerKitchenLiving'>) => {
|
|
4
|
+
text: string;
|
|
5
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatPayment: (payment: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LotCardSkeleton } from './ui/LotCardSkeleton';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type TagWidth = 'full' | 'auto';
|
|
3
|
+
type JustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
4
|
+
export interface IMetroLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
metro: {
|
|
6
|
+
name?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
routes?: {
|
|
9
|
+
timeTo?: string;
|
|
10
|
+
iconName?: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
justifyContent?: JustifyContent;
|
|
14
|
+
colorIcon?: string;
|
|
15
|
+
addClassName?: string;
|
|
16
|
+
width?: TagWidth;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MetroTag } from './ui/MetroTag';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IMetroTagProps } from './MetroTag.types';
|
|
2
|
+
|
|
3
|
+
export declare const MetroTag: ({ addClassName, addClassNameColor, addClassNameTimeTo, metro, separatorColor, width, variant, isBetween, withBg, withWhiteBg, ...rest }: IMetroTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type TagWidth = 'full' | 'auto';
|
|
3
|
+
export interface IMetroTagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
metro: {
|
|
5
|
+
name?: string;
|
|
6
|
+
station?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
timeTo?: number;
|
|
9
|
+
mode?: string;
|
|
10
|
+
selfIconText?: string | undefined;
|
|
11
|
+
icon?: string;
|
|
12
|
+
} | {
|
|
13
|
+
name?: string;
|
|
14
|
+
station?: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
timeTo?: number;
|
|
17
|
+
mode?: string;
|
|
18
|
+
selfIconText?: string | undefined;
|
|
19
|
+
icon?: string;
|
|
20
|
+
}[];
|
|
21
|
+
separatorColor?: string;
|
|
22
|
+
variant?: 'default' | 'transparent' | 'mini';
|
|
23
|
+
addClassName?: string;
|
|
24
|
+
addClassNameColor?: string;
|
|
25
|
+
addClassNameTimeTo?: string;
|
|
26
|
+
isBetween?: boolean;
|
|
27
|
+
width?: TagWidth;
|
|
28
|
+
withBg?: boolean;
|
|
29
|
+
withWhiteBg?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Modal } from './ui/Modal';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
emitIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
additionalClass?: string;
|
|
7
|
+
additionalClassOverlay?: string;
|
|
8
|
+
additionalClassModalBody?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
isTransparentBack?: boolean;
|
|
11
|
+
isClickOutside?: boolean;
|
|
12
|
+
leaveDisableScroll?: boolean;
|
|
13
|
+
notDisableScroll?: boolean;
|
|
14
|
+
createPortalObj?: {
|
|
15
|
+
domNode: HTMLElement | null;
|
|
16
|
+
key?: string | null | undefined;
|
|
17
|
+
};
|
|
18
|
+
opacity?: number;
|
|
19
|
+
colorOverlay?: string;
|
|
20
|
+
modalBodyRef?: React.RefObject<HTMLDivElement> | null;
|
|
21
|
+
additionalStylesModalBody?: React.CSSProperties;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NewIcon } from './ui/NewIcon';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactSVGComponent } from './NewIcon.types';
|
|
2
|
+
|
|
3
|
+
type IconComponentProps = {
|
|
4
|
+
name: keyof typeof iconTypes;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
additionalClass?: string;
|
|
8
|
+
deg?: string;
|
|
9
|
+
strokeWidth?: string;
|
|
10
|
+
};
|
|
11
|
+
type IconTypes = {
|
|
12
|
+
[name: string]: ReactSVGComponent;
|
|
13
|
+
};
|
|
14
|
+
export declare const iconTypes: IconTypes;
|
|
15
|
+
export declare const NewIcon: ({ name, size, color, strokeWidth, additionalClass, deg, }: IconComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProjectCardSkeleton } from './ui/ProjectCardSkeleton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ProjectCardSkeleton: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RoundButton } from './ui/RoundButton';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComponentProps } from './RoundButton.types';
|
|
3
|
+
|
|
4
|
+
export declare const RoundButton: ({ size, size_m, size_l, children, iconName, variant, additionalClass, additionalClassIcon, deg, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const ROUND_BUTTON_VARIANTS: {
|
|
4
|
+
whiteStroke: string;
|
|
5
|
+
blackFill: string;
|
|
6
|
+
fullGray: string;
|
|
7
|
+
blue: string;
|
|
8
|
+
blackStroke: string;
|
|
9
|
+
};
|
|
10
|
+
export type roundBtnVariant = keyof typeof ROUND_BUTTON_VARIANTS;
|
|
11
|
+
export type btnSizes = 'large' | 'medium' | 'small' | 'tiny';
|
|
12
|
+
export declare const sizeMap: {
|
|
13
|
+
large: string;
|
|
14
|
+
medium: string;
|
|
15
|
+
small: string;
|
|
16
|
+
tiny: string;
|
|
17
|
+
};
|
|
18
|
+
interface IRoundButtonProps {
|
|
19
|
+
size?: btnSizes;
|
|
20
|
+
size_m?: btnSizes;
|
|
21
|
+
size_l?: btnSizes;
|
|
22
|
+
children?: string | ReactNode;
|
|
23
|
+
variant?: roundBtnVariant;
|
|
24
|
+
additionalClass?: string;
|
|
25
|
+
additionalClassIcon?: string;
|
|
26
|
+
iconName?: string;
|
|
27
|
+
deg?: string;
|
|
28
|
+
}
|
|
29
|
+
export type ComponentProps = IRoundButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Select } from './ui/Select';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TCategory, TModeSelect, TOption } from '../ui/Select.types.ts';
|
|
2
|
+
import { SetStateAction } from 'react';
|
|
3
|
+
|
|
4
|
+
export type TClickOptionProps = {
|
|
5
|
+
option: TOption | TOption[];
|
|
6
|
+
disabledOptions: TOption[];
|
|
7
|
+
selectedOptions: TOption[];
|
|
8
|
+
setSelectedOptions: (value: SetStateAction<TOption[]>) => void;
|
|
9
|
+
mode: TModeSelect;
|
|
10
|
+
onChange?: (selectedOptions: TOption[]) => unknown;
|
|
11
|
+
optionsParentArr?: TCategory[] | TOption[];
|
|
12
|
+
};
|
|
13
|
+
declare const handleClickModeOption: ({ option, setSelectedOptions, selectedOptions, disabledOptions, onChange, mode, optionsParentArr, }: TClickOptionProps) => void;
|
|
14
|
+
declare const handleClickModeCategory: ({ option, setSelectedOptions, selectedOptions, disabledOptions, onChange, }: TClickOptionProps) => void;
|
|
15
|
+
export { handleClickModeCategory, handleClickModeOption };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TCategory, TModeSelect, TOption } from './Select.types.ts';
|
|
2
|
+
|
|
3
|
+
export interface IOption {
|
|
4
|
+
category: TCategory;
|
|
5
|
+
selectedValues?: TOption[];
|
|
6
|
+
disabledOptions: TOption[];
|
|
7
|
+
selectedOptions: TOption[];
|
|
8
|
+
clickableOptions?: (string | undefined)[];
|
|
9
|
+
handleOptionClick: (option: TOption | TOption[]) => void;
|
|
10
|
+
sizeIcon?: string;
|
|
11
|
+
mode: TModeSelect;
|
|
12
|
+
isDisabledNotClickable?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Category: ({ category, selectedOptions, disabledOptions, clickableOptions, handleOptionClick, sizeIcon, isDisabledNotClickable, mode }: IOption) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TOption } from './Select.types.ts';
|
|
2
|
+
|
|
3
|
+
export interface IOption {
|
|
4
|
+
option: TOption;
|
|
5
|
+
isOptionCategory?: boolean;
|
|
6
|
+
disabledOptions: TOption[];
|
|
7
|
+
selectedOptions: TOption[];
|
|
8
|
+
clickableOptions?: (string | undefined)[];
|
|
9
|
+
handleOptionClick: (option: TOption) => void;
|
|
10
|
+
sizeIcon?: string;
|
|
11
|
+
addClassName?: string;
|
|
12
|
+
isDisabledNotClickable?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Option: ({ option, selectedOptions, disabledOptions, clickableOptions, handleOptionClick, isOptionCategory, sizeIcon, isDisabledNotClickable, addClassName, }: IOption) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MultiSelectProps } from './Select.types';
|
|
2
|
+
|
|
3
|
+
export declare const Select: ({ options, customPlaceholder, placeholder, error, disabled, disabledOptions, additionalClass, additionalClassOption, additionalClassBtn, onChange, onBlur, selectedValues, isBtn, btnName, clickableOptions, isListRight, sizeIcon, mode, onClickItem, onCLickSelect, size_s, size_m, size_l, isDisabledNotClickable, isLast, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export type TOption = {
|
|
2
|
+
value: string | number;
|
|
3
|
+
label: string;
|
|
4
|
+
parent?: string;
|
|
5
|
+
id?: number | string;
|
|
6
|
+
};
|
|
7
|
+
export type TCategory = {
|
|
8
|
+
value: string | number;
|
|
9
|
+
label: string;
|
|
10
|
+
options: TOption[];
|
|
11
|
+
};
|
|
12
|
+
export type TModeSelect = 'options' | 'category' | 'double' | 'single';
|
|
13
|
+
type SelectSizes = 'medium' | 'small' | 'large';
|
|
14
|
+
export interface MultiSelectProps {
|
|
15
|
+
options: TOption[] | TCategory[];
|
|
16
|
+
category?: TCategory[];
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
error?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
size_s?: SelectSizes;
|
|
21
|
+
size_m?: SelectSizes;
|
|
22
|
+
size_l?: SelectSizes;
|
|
23
|
+
/**
|
|
24
|
+
* Доп стили для родителя-контейнера
|
|
25
|
+
*/
|
|
26
|
+
additionalClass?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Доп стили для каждой опции
|
|
29
|
+
*/
|
|
30
|
+
additionalClassOption?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Доп стили для кнопки-контейнера
|
|
33
|
+
*/
|
|
34
|
+
additionalClassBtn?: string;
|
|
35
|
+
onChange?: (selectedOptions: TOption[]) => unknown;
|
|
36
|
+
onBlur?: (selectedOptions: TOption[]) => unknown;
|
|
37
|
+
selectedValues?: TOption[];
|
|
38
|
+
isBtn?: boolean;
|
|
39
|
+
btnName?: string;
|
|
40
|
+
widthBtn?: string;
|
|
41
|
+
widthOptionList?: string;
|
|
42
|
+
isListRight?: boolean;
|
|
43
|
+
isLast?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Список опций которые будут задизейблены по умолчанию
|
|
46
|
+
*/
|
|
47
|
+
disabledOptions?: TOption[];
|
|
48
|
+
/**
|
|
49
|
+
* Список опций которые доступны для клика
|
|
50
|
+
*/
|
|
51
|
+
clickableOptions?: (string | undefined)[];
|
|
52
|
+
sizeIcon?: string;
|
|
53
|
+
mode?: TModeSelect;
|
|
54
|
+
onClickItem?: (option: TOption | TOption[]) => void;
|
|
55
|
+
onCLickSelect?: () => void;
|
|
56
|
+
isDisabledNotClickable?: boolean;
|
|
57
|
+
customPlaceholder?: string;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ISliderNavigation } from './SliderNavigation.types.ts';
|
|
2
|
+
|
|
3
|
+
export declare const SliderNavigation: ({ indexSlide, isDisabledOff, goPrev, goNext, arr, isNeedTag, additionalClassTag, navigationClassName, additionalClassNavButton, size, size_m, size_l, }: ISliderNavigation) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Sizes = 'large' | 'medium' | 'small';
|
|
2
|
+
export interface ISliderNavigation {
|
|
3
|
+
indexSlide: number;
|
|
4
|
+
goPrev: () => void;
|
|
5
|
+
goNext: () => void;
|
|
6
|
+
arr: Array<unknown>;
|
|
7
|
+
additionalClassTag?: string;
|
|
8
|
+
additionalClassNavButton?: string;
|
|
9
|
+
navigationClassName?: string;
|
|
10
|
+
isNeedTag?: boolean;
|
|
11
|
+
isDisabledOff?: boolean;
|
|
12
|
+
size?: Sizes;
|
|
13
|
+
size_m?: Sizes;
|
|
14
|
+
size_l?: Sizes;
|
|
15
|
+
}
|
|
16
|
+
export {};
|