ost-components 0.0.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.
- package/README.md +136 -0
- package/dist/896f1dcf256d0c8af555.svg +3 -0
- package/dist/components/Button/Button.d.ts +16 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/index.css +165 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +1 -0
- package/dist/components/FAQ/FAQ.d.ts +20 -0
- package/dist/components/FAQ/FAQ.d.ts.map +1 -0
- package/dist/components/FAQ/index.css +101 -0
- package/dist/components/FAQ/index.d.ts +2 -0
- package/dist/components/FAQ/index.d.ts.map +1 -0
- package/dist/components/FAQ/index.js +1 -0
- package/dist/components/Footer/Footer.d.ts +12 -0
- package/dist/components/Footer/Footer.d.ts.map +1 -0
- package/dist/components/Footer/index.css +411 -0
- package/dist/components/Footer/index.d.ts +2 -0
- package/dist/components/Footer/index.d.ts.map +1 -0
- package/dist/components/Footer/index.js +1 -0
- package/dist/components/Header/Header.d.ts +21 -0
- package/dist/components/Header/Header.d.ts.map +1 -0
- package/dist/components/Header/Modal.d.ts +1 -0
- package/dist/components/Header/Modal.d.ts.map +1 -0
- package/dist/components/Header/index.css +321 -0
- package/dist/components/Header/index.d.ts +3 -0
- package/dist/components/Header/index.d.ts.map +1 -0
- package/dist/components/Header/index.js +1 -0
- package/dist/components/Heading/Heading.d.ts +11 -0
- package/dist/components/Heading/Heading.d.ts.map +1 -0
- package/dist/components/Heading/index.css +46 -0
- package/dist/components/Heading/index.d.ts +3 -0
- package/dist/components/Heading/index.d.ts.map +1 -0
- package/dist/components/Heading/index.js +1 -0
- package/dist/components/HotelCard/HotelCard.d.ts +18 -0
- package/dist/components/HotelCard/HotelCard.d.ts.map +1 -0
- package/dist/components/HotelCard/index.css +150 -0
- package/dist/components/HotelCard/index.d.ts +3 -0
- package/dist/components/HotelCard/index.d.ts.map +1 -0
- package/dist/components/HotelCard/index.js +1 -0
- package/dist/components/Text/Text.d.ts +12 -0
- package/dist/components/Text/Text.d.ts.map +1 -0
- package/dist/components/Text/index.css +65 -0
- package/dist/components/Text/index.d.ts +3 -0
- package/dist/components/Text/index.d.ts.map +1 -0
- package/dist/components/Text/index.js +1 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/index.css +741 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/store/fluidMode.d.ts +37 -0
- package/dist/store/fluidMode.d.ts.map +1 -0
- package/dist/store/fluidMode.js +1 -0
- package/dist/storybook/decorator.d.ts +3 -0
- package/dist/storybook/decorator.d.ts.map +1 -0
- package/dist/themes/layout.d.ts +3 -0
- package/dist/themes/layout.d.ts.map +1 -0
- package/dist/themes/ostrovok/index.css +8 -0
- package/dist/themes/ostrovok/index.d.ts +9 -0
- package/dist/themes/ostrovok/index.d.ts.map +1 -0
- package/dist/themes/ostrovok/index.js +1 -0
- package/dist/themes/ostrovok/ostrovok.d.ts +64 -0
- package/dist/themes/ostrovok/ostrovok.d.ts.map +1 -0
- package/dist/themes/ostrovok/ostrovok.js +1 -0
- package/dist/utils/classes.d.ts +2 -0
- package/dist/utils/classes.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/isValidEmail.d.ts +2 -0
- package/dist/utils/isValidEmail.d.ts.map +1 -0
- package/dist/utils/throttle.d.ts +2 -0
- package/dist/utils/throttle.d.ts.map +1 -0
- package/package.json +147 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
.layout-module__fluidLayout--BNE04[class] {
|
|
2
|
+
font-size: 1rem;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.layout-module__staticLayout--x_6dR[class] {
|
|
6
|
+
font-size: 1px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.Button-module__text--fXCJk {
|
|
10
|
+
font-size: var(--button-font-size, 16em);
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.Button-module__root--JgX5G {
|
|
15
|
+
all: unset;
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
border-radius: 60em;
|
|
18
|
+
font-family: var(--font-family);
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
line-height: var(--button-line-height, 1.5);
|
|
23
|
+
color: var(--button-color);
|
|
24
|
+
background-color: var(--button-bg);
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
-webkit-font-smoothing: antialiased;
|
|
28
|
+
-moz-osx-font-smoothing: grayscale;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media (hover: hover) and (pointer: fine) {
|
|
32
|
+
.Button-module__root--JgX5G:hover {
|
|
33
|
+
--button-bg: var(--button-bg-hover);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.Button-module__root--JgX5G:active {
|
|
37
|
+
--button-bg: var(--button-bg-active);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.Button-module__root--JgX5G:disabled {
|
|
42
|
+
cursor: default;
|
|
43
|
+
--button-bg: var(--button-bg-disabled);
|
|
44
|
+
--button-color: var(--button-color-disabled);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.Button-module__root--JgX5G:disabled .Button-module__text--fXCJk {
|
|
48
|
+
opacity: var(--disabled-text-opacity, 0.4);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.Button-module__xs--QiLu6 {
|
|
52
|
+
padding: 5em 16em 7em;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.Button-module__s--BPnwl {
|
|
56
|
+
padding: 7em 18em 9em;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.Button-module__m--Za884 {
|
|
60
|
+
padding: 10em 22em 12em;
|
|
61
|
+
--button-line-height: 1.444;
|
|
62
|
+
--button-font-size: 18em;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.Button-module__l--ERI3t {
|
|
66
|
+
padding: 13em 28em 15em;
|
|
67
|
+
--button-line-height: 1.333;
|
|
68
|
+
--button-font-size: 24em;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.Button-module__primary--cdc4_.Button-module__green--alhqL {
|
|
72
|
+
--button-color: var(--primary-green-button-text);
|
|
73
|
+
--button-bg: var(--primary-green-button-bg);
|
|
74
|
+
--button-bg-hover: var(--primary-green-button-bg-hover);
|
|
75
|
+
--button-bg-active: var(--primary-green-button-bg-active);
|
|
76
|
+
--button-bg-disabled: var(--primary-green-button-bg-disabled);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.Button-module__primary--cdc4_.Button-module__blue--NCGMs {
|
|
80
|
+
--button-color: var(--primary-blue-button-text);
|
|
81
|
+
--button-bg: var(--primary-blue-button-bg);
|
|
82
|
+
--button-bg-hover: var(--primary-blue-button-bg-hover);
|
|
83
|
+
--button-bg-active: var(--primary-blue-button-bg-active);
|
|
84
|
+
--button-bg-disabled: var(--primary-blue-button-bg-disabled);
|
|
85
|
+
--button-color-disabled: var(--primary-blue-button-color-disabled);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.Button-module__primary--cdc4_.Button-module__white--zRU5W {
|
|
89
|
+
--button-color: var(--primary-white-button-text);
|
|
90
|
+
--button-bg: var(--primary-white-button-bg);
|
|
91
|
+
--button-bg-hover: var(--primary-white-button-bg-hover);
|
|
92
|
+
--button-bg-active: var(--primary-white-button-bg-active);
|
|
93
|
+
--button-bg-disabled: var(--primary-white-button-bg-disabled);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.Button-module__primary--cdc4_.Button-module__black--Yi4Rj {
|
|
97
|
+
--button-color: var(--primary-black-button-text);
|
|
98
|
+
--button-bg: var(--primary-black-button-bg);
|
|
99
|
+
--button-bg-hover: var(--primary-black-button-bg-hover);
|
|
100
|
+
--button-bg-active: var(--primary-black-button-bg-active);
|
|
101
|
+
--button-bg-disabled: var(--primary-black-button-bg-disabled);
|
|
102
|
+
--button-color-disabled: var(--primary-black-button-color-disabled);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.Button-module__secondary--pJ5lp {
|
|
106
|
+
box-shadow: inset 0 0 0 var(--secondary-border-width, 1em)
|
|
107
|
+
var(--secondary-border-color);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.Button-module__secondary--pJ5lp.Button-module__l--ERI3t {
|
|
111
|
+
--secondary-border-width: 2em;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.Button-module__secondary--pJ5lp.Button-module__green--alhqL {
|
|
115
|
+
--disabled-text-opacity: 0.6;
|
|
116
|
+
--button-color: var(--secondary-green-button-text);
|
|
117
|
+
--secondary-border-color: var(--secondary-green-button-border);
|
|
118
|
+
--secondary-button-border-hover: var(--secondary-green-button-border-hover);
|
|
119
|
+
--secondary-button-color-hover: var(--secondary-green-button-color-hover);
|
|
120
|
+
--secondary-button-border-active: var(
|
|
121
|
+
--secondary-green-button-border-active
|
|
122
|
+
);
|
|
123
|
+
--secondary-button-color-active: var(--secondary-green-button-color-active);
|
|
124
|
+
--secondary-button-color-disabled: var(
|
|
125
|
+
--secondary-green-button-color-disabled
|
|
126
|
+
);
|
|
127
|
+
--secondary-button-border-disabled: var(
|
|
128
|
+
--secondary-green-button-border-disabled
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.Button-module__secondary--pJ5lp.Button-module__blue--NCGMs {
|
|
133
|
+
--button-color: var(--secondary-blue-button-text);
|
|
134
|
+
--secondary-border-color: var(--secondary-blue-button-border);
|
|
135
|
+
--secondary-button-border-hover: var(--secondary-blue-button-border-hover);
|
|
136
|
+
--secondary-button-color-hover: var(--secondary-blue-button-color-hover);
|
|
137
|
+
--secondary-button-border-active: var(
|
|
138
|
+
--secondary-blue-button-border-active
|
|
139
|
+
);
|
|
140
|
+
--secondary-button-color-active: var(--secondary-blue-button-color-active);
|
|
141
|
+
--secondary-button-color-disabled: var(
|
|
142
|
+
--secondary-blue-button-color-disabled
|
|
143
|
+
);
|
|
144
|
+
--secondary-button-border-disabled: var(
|
|
145
|
+
--secondary-blue-button-border-disabled
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@media (hover: hover) and (pointer: fine) {
|
|
150
|
+
.Button-module__secondary--pJ5lp:hover {
|
|
151
|
+
--button-color: var(--secondary-button-color-hover);
|
|
152
|
+
--secondary-border-color: var(--secondary-button-border-hover);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.Button-module__secondary--pJ5lp:active {
|
|
156
|
+
--button-color: var(--secondary-button-color-active);
|
|
157
|
+
--secondary-border-color: var(--secondary-button-border-active);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.Button-module__secondary--pJ5lp:disabled {
|
|
162
|
+
--button-color: var(--secondary-button-color-disabled);
|
|
163
|
+
--secondary-border-color: var(--secondary-button-border-disabled);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.Header-module__root--r3HBs {
|
|
167
|
+
font-family: var(--font-family);
|
|
168
|
+
display: grid;
|
|
169
|
+
padding: 0 20em;
|
|
170
|
+
grid-auto-flow: column;
|
|
171
|
+
position: relative;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.Header-module__root--r3HBs.Header-module__exposedMode--yUNI8 {
|
|
175
|
+
grid-auto-flow: unset;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.Header-module__light--pMjK9 {
|
|
179
|
+
--general-color: var(--general-light-color);
|
|
180
|
+
--secondary-color: var(--secondary-light-color);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.Header-module__dark--K0YDF {
|
|
184
|
+
--general-color: var(--general-dark-color);
|
|
185
|
+
--secondary-color: var(--secondary-dark-color);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.Header-module__leftContainer--PZgyr {
|
|
189
|
+
display: grid;
|
|
190
|
+
align-items: center;
|
|
191
|
+
justify-self: start;
|
|
192
|
+
height: 80em;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.Header-module__rightContainer--UkVek {
|
|
196
|
+
display: grid;
|
|
197
|
+
grid-auto-flow: column;
|
|
198
|
+
justify-content: end;
|
|
199
|
+
align-items: center;
|
|
200
|
+
grid-gap: 16em;
|
|
201
|
+
gap: 16em;
|
|
202
|
+
justify-self: end;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.Header-module__rightContainer--UkVek.Header-module__hidden--hKTxA {
|
|
206
|
+
visibility: hidden;
|
|
207
|
+
position: absolute;
|
|
208
|
+
right: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.Header-module__navList--E6aFg {
|
|
212
|
+
list-style: none;
|
|
213
|
+
display: grid;
|
|
214
|
+
grid-gap: 16em;
|
|
215
|
+
gap: 16em;
|
|
216
|
+
grid-auto-flow: column;
|
|
217
|
+
padding: 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.Header-module__menuLink--QLzUK {
|
|
221
|
+
all: unset;
|
|
222
|
+
color: var(--menu-link-color);
|
|
223
|
+
cursor: pointer;
|
|
224
|
+
white-space: nowrap;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@media (hover: hover) and (pointer: fine) {
|
|
228
|
+
.Header-module__menuLink--QLzUK:hover {
|
|
229
|
+
color: var(--menu-link-color-hover);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.Header-module__light--pMjK9 .Header-module__menuLink--QLzUK {
|
|
234
|
+
--menu-link-color: var(--general-color);
|
|
235
|
+
--menu-link-color-hover: var(--link-blue-color-hover);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.Header-module__dark--K0YDF .Header-module__menuLink--QLzUK {
|
|
239
|
+
--menu-link-color: var(--general-color);
|
|
240
|
+
--menu-link-color-hover: var(--link-green-color-hover);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.Header-module__menuLinkText--J8TxL {
|
|
244
|
+
font-size: 16em;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.Header-module__burgerMenuContainer--nMgsS {
|
|
248
|
+
display: grid;
|
|
249
|
+
justify-self: end;
|
|
250
|
+
align-self: center;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.Header-module__burgerMenuButton--hrBJQ {
|
|
254
|
+
all: unset;
|
|
255
|
+
cursor: pointer;
|
|
256
|
+
display: inline-grid;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.Header-module__burgerMenu--wpknD {
|
|
260
|
+
padding: 20em;
|
|
261
|
+
display: grid;
|
|
262
|
+
grid-gap: 20em;
|
|
263
|
+
gap: 20em;
|
|
264
|
+
grid-auto-rows: -webkit-min-content;
|
|
265
|
+
grid-auto-rows: min-content;
|
|
266
|
+
grid-auto-columns: -webkit-min-content;
|
|
267
|
+
grid-auto-columns: min-content;
|
|
268
|
+
|
|
269
|
+
position: fixed;
|
|
270
|
+
z-index: 10000;
|
|
271
|
+
top: 0;
|
|
272
|
+
left: 0;
|
|
273
|
+
width: -webkit-fill-available;
|
|
274
|
+
height: -webkit-fill-available;
|
|
275
|
+
background: var(--mobile-menu-bg);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.Header-module__light--pMjK9 .Header-module__burgerMenu--wpknD {
|
|
279
|
+
--mobile-menu-bg: var(--mobile-menu-blue-bg);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.Header-module__dark--K0YDF .Header-module__burgerMenu--wpknD {
|
|
283
|
+
--mobile-menu-bg: var(--mobile-menu-black-bg);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.Header-module__burgerMenu--wpknD .Header-module__navList--E6aFg {
|
|
287
|
+
grid-auto-flow: row;
|
|
288
|
+
gap: 20em;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.Header-module__burgerMenu--wpknD .Header-module__menuLinkText--J8TxL {
|
|
292
|
+
font-size: 20em;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.Header-module__exposedMenu--L54Cl {
|
|
296
|
+
display: grid;
|
|
297
|
+
grid-gap: 20em;
|
|
298
|
+
gap: 20em;
|
|
299
|
+
justify-items: start;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.Header-module__exposedMenu--L54Cl .Header-module__navList--E6aFg {
|
|
303
|
+
grid-auto-flow: row;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.Header-module__logo--Kmtwb {
|
|
307
|
+
width: 152em;
|
|
308
|
+
height: 28em;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
@media screen and (max-width: 768px) {
|
|
312
|
+
.Header-module__leftContainer--PZgyr {
|
|
313
|
+
height: 60em;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.Header-module__logo--Kmtwb {
|
|
317
|
+
width: 108em;
|
|
318
|
+
height: 20em;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Header/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react/jsx-runtime";import*as t from"react";var n={39:(e,t,n)=>{n.d(t,{L:()=>o});const o=(...e)=>e.filter(Boolean).join(" ")},58:(e,t,n)=>{n.d(t,{N:()=>r,u:()=>l}),n(178);var o=n(992);const r=({theme:e,children:t,fluidMode:n=!1})=>{fluidModeState.state=n;const o=[];Object.entries(e).forEach(([e,t])=>{o.push(`--${e}: ${t}`)});const r=`\n @font-face {\n font-family: 'FactorA';\n src: url('https://of.worldota.net/fonts/factora/Factor-A-Regular-Web.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'FactorA';\n src: url('https://of.worldota.net/fonts/factora/Factor-A-Medium-Web.woff2') format('woff2');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n }\n \n @font-face {\n font-family: 'Spoof';\n src: url('https://of.worldota.net/fonts/spoof/Spoof-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Spoof';\n src: url('https://of.worldota.net/fonts/spoof/Spoof-Medium.woff2') format('woff2');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n }\n\n :root {\n ${o.join(";\n")};\n }\n ${n?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:r}}),t]})},l=e=>("boolean"==typeof e?e:o.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},89:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(178),r=n(58),l=n(39);const a={text:"Button-module__text--fXCJk",root:"Button-module__root--JgX5G",xs:"Button-module__xs--QiLu6",s:"Button-module__s--BPnwl",m:"Button-module__m--Za884",l:"Button-module__l--ERI3t",primary:"Button-module__primary--cdc4_",green:"Button-module__green--alhqL",blue:"Button-module__blue--NCGMs",white:"Button-module__white--zRU5W",black:"Button-module__black--Yi4Rj",secondary:"Button-module__secondary--pJ5lp"},s=({className:e,children:t,dimension:n="s",fluidMode:s,theme:u="primary",onClick:i,disabled:c=!1,type:d="button",variant:f="green",url:m})=>{const h=(0,r.u)(s),p=a[n]||"",g=a[u]||"",_=a[f]||"",v=m?"a":"button",x=m?{target:"_blank",href:m}:{type:d};return(0,o.jsx)(v,{...x,onClick:i,className:(0,l.L)(a.root,e,p,g,_,h),disabled:c,children:(0,o.jsx)("span",{className:a.text,children:t})})}},178:(t,n,o)=>{var r,l;t.exports=(r={jsx:()=>e.jsx,jsxs:()=>e.jsxs},l={},o.d(l,r),l)},649:(e,n,o)=>{var r,l;e.exports=(r={createElement:()=>t.createElement,useCallback:()=>t.useCallback,useEffect:()=>t.useEffect,useRef:()=>t.useRef,useState:()=>t.useState},l={},o.d(l,r),l)},992:(e,t,n)=>{n.d(t,{b:()=>o}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const o=globalThis.__fluidModeState}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var l=o[e]={exports:{}};return n[e](l,l.exports,r),l.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l,a=r(178),s=r(89),u=r(58),i=r(39),c=r(649);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},d.apply(null,arguments)}const f=e=>c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),l||(l=c.createElement("path",{stroke:"var(--general-color)",strokeLinecap:"round",strokeWidth:1.5,d:"M6 8h20M6 16h20M6 24h20"})));var m,h;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p.apply(null,arguments)}const g=e=>c.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),m||(m=c.createElement("circle",{cx:16,cy:16,r:16,fill:"var(--general-color)"})),h||(h=c.createElement("path",{stroke:"var(--secondary-color)",strokeWidth:2,d:"M9.212 22.788 22.788 9.212m0 13.576L9.212 9.212"})));var _;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},v.apply(null,arguments)}const x=e=>c.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 152 28"},e),_||(_=c.createElement("path",{fill:"var(--general-color)",d:"M65.782 6.249c-2.03 0-3.89.955-5.192 2.575l-.151-2.147h-3.47V28h3.87v-6.032l-.177-1.6c1.302 1.54 3.122 2.463 5.12 2.463 4.081 0 7.525-3.662 7.525-8.186s-3.437-8.403-7.525-8.403zm-.48 13.335c-2.675 0-4.68-2.246-4.68-4.939s2.005-4.939 4.68-4.939c2.451 0 4.456 2.246 4.456 4.939s-2.004 4.939-4.456 4.939M32.463 9.916c1.722 0 3.227 1.08 4.081 2.588l3.227-1.726c-1.288-2.798-4.081-4.524-7.308-4.524-4.515 0-8.17 3.662-8.17 8.403s3.655 8.186 8.17 8.186c3.227 0 6.02-1.726 7.308-4.524l-3.227-1.726c-.86 1.508-2.366 2.588-4.081 2.588-2.366 0-4.515-2.153-4.515-4.524 0-2.588 2.149-4.741 4.515-4.741m8.386.211h5.159v12.275h3.654V10.127h5.159v-3.45H40.849zM11.18 0C4.941 0 0 5.17 0 11.419s4.942 11.419 11.18 11.419c6.236 0 11.395-4.952 11.395-11.42C22.575 4.953 17.633 0 11.179 0Zm0 18.953c-3.872 0-7.31-3.445-7.31-7.54 0-3.88 3.438-7.324 7.31-7.324 4.08 0 7.307 3.445 7.307 7.323 0 4.09-3.227 7.54-7.308 7.54Zm136.012 3.885a2.586 2.586 0 0 0 2.583-2.588 2.586 2.586 0 0 0-2.583-2.589 2.586 2.586 0 0 0-2.584 2.589 2.586 2.586 0 0 0 2.584 2.588m1.613-7.54L149.882 0h-5.376l1.078 15.298zm-12.516-.864c1.288-.217 2.149-.862 3.01-3.016l1.722-4.741h-3.766L135.75 11.2c-.427 1.29-1.177 1.725-2.254 1.725h-1.827v-6.25h-3.766v15.726h3.766v-6.25h1.61c1.288 0 1.82.429 2.464 1.726l1.932 4.524h4.193l-2.365-5.17c-.861-1.724-1.933-2.587-3.227-2.798zm-31.57-.031s2.123-.889 2.123-3.628c0-2.463-1.932-4.09-5.376-4.09h-7.742v15.726h8.116c3.438 0 5.646-1.521 5.646-4.452s-2.767-3.483-2.767-3.483zm-7.334-4.689h3.871c1.288 0 1.932.455 1.932 1.6 0 .685-.217 1.831-1.722 1.831h-4.081zm4.081 9.674h-4.081v-3.661h4.298c1.078 0 1.932.645 1.932 1.725 0 1.29-.861 1.936-2.149 1.936M83.197 6.254c-4.515 0-8.17 3.662-8.17 8.403s3.655 8.186 8.17 8.186 8.169-3.662 8.169-8.186-3.654-8.403-8.17-8.403Zm-.106 13.138c-2.582 0-4.515-2.153-4.515-4.741s1.933-4.742 4.515-4.742c2.583 0 4.732 2.153 4.732 4.742s-2.149 4.741-4.732 4.741m34.276-13.138c-4.515 0-8.169 3.662-8.169 8.403s3.654 8.186 8.169 8.186 8.169-3.662 8.169-8.186-3.654-8.403-8.169-8.403m-.105 13.138c-2.583 0-4.515-2.153-4.515-4.741s1.932-4.742 4.515-4.742 4.732 2.153 4.732 4.742-2.149 4.741-4.732 4.741"}))),b={root:"Header-module__root--r3HBs",exposedMode:"Header-module__exposedMode--yUNI8",light:"Header-module__light--pMjK9",dark:"Header-module__dark--K0YDF",leftContainer:"Header-module__leftContainer--PZgyr",rightContainer:"Header-module__rightContainer--UkVek",hidden:"Header-module__hidden--hKTxA",navList:"Header-module__navList--E6aFg",menuLink:"Header-module__menuLink--QLzUK",menuLinkText:"Header-module__menuLinkText--J8TxL",burgerMenuContainer:"Header-module__burgerMenuContainer--nMgsS",burgerMenuButton:"Header-module__burgerMenuButton--hrBJQ",burgerMenu:"Header-module__burgerMenu--wpknD",exposedMenu:"Header-module__exposedMenu--L54Cl",logo:"Header-module__logo--Kmtwb"},w=({theme:e="light",className:t="",menu:n,rightButton:o,noBurgerMenu:r,linkClass:l,fluidMode:d})=>{const m=b[e],h=(0,u.u)(d),p=n&&n.length>0,[_,v]=(0,c.useState)(!1),[w,y]=(0,c.useState)(!1),j=(0,c.useRef)(null),M=(0,c.useRef)(null),k=(0,c.useRef)(null),L=(0,c.useCallback)((()=>{let e=!1;return(...t)=>{e||((()=>{if(!j.current||!k.current||!M.current)return;const e=Number(M.current.getAttribute("viewBox")?.split(" ")[2]);if(!e)return;const t=window.getComputedStyle(j.current),n=parseInt(t.paddingLeft,10),o=parseInt(t.paddingRight,10),r=j.current.offsetWidth-n-o-(e+k.current.offsetWidth)<10;v(r),r||y(!1)})(...t),e=!0,setTimeout(()=>{e=!1},100))}})(),[]);(0,c.useEffect)(()=>(window.addEventListener("resize",L),L(),()=>{window.removeEventListener("resize",L)}),[L]);const C=Boolean(p||o),B=p?(0,a.jsx)("nav",{className:b.navMenu,children:(0,a.jsx)("ul",{className:b.navList,children:n?.map(e=>{const t=e.url?"a":"button",n=e.url?{target:"_blank",href:e.url}:{type:"button"};return(0,a.jsx)("li",{children:(0,a.jsx)(t,{className:(0,i.L)(b.menuLink,l,h),onClick:e.onClick,...n,children:(0,a.jsx)("span",{className:b.menuLinkText,children:e.title})})},e.title)})})}):null,N=o?(0,a.jsx)(s.A,{className:b.rightButton,theme:"secondary",variant:"dark"===e?"green":"blue",dimension:"s",onClick:o.onClick,url:o.url,children:o.text}):null;return(0,a.jsxs)("div",{className:(0,i.L)(b.root,t,m,h,r&&_&&b.exposedMode),ref:j,children:[(0,a.jsx)("div",{className:b.leftContainer,children:(0,a.jsx)(x,{className:b.logo,ref:M})}),(0,a.jsxs)("div",{className:`${b.rightContainer} ${_?b.hidden:""}`,ref:k,children:[B,N]}),_&&C&&!r&&(0,a.jsx)("div",{className:b.burgerMenuContainer,children:(0,a.jsx)("button",{className:b.burgerMenuButton,onClick:()=>y(!w),type:"button",children:w?(0,a.jsx)(g,{}):(0,a.jsx)(f,{})})}),_&&C&&r&&(0,a.jsxs)("div",{className:b.exposedMenu,children:[B,N]}),w&&(0,a.jsxs)("div",{className:b.burgerMenu,style:{top:j.current?.offsetHeight||0},children:[B,N]})]})};export{w as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export interface HeadingProps {
|
|
3
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
size?: 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
fluidMode?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Heading: React.FC<HeadingProps>;
|
|
10
|
+
export default Heading;
|
|
11
|
+
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAuBnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.layout-module__fluidLayout--BNE04[class] {
|
|
2
|
+
font-size: 1rem;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.layout-module__staticLayout--x_6dR[class] {
|
|
6
|
+
font-size: 1px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.Heading-module__root--cxQbw {
|
|
10
|
+
font-family: var(--font-family-typo);
|
|
11
|
+
font-variant-numeric: slashed-zero;
|
|
12
|
+
font-feature-settings: "ss06" 1, "zero";
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.Heading-module__text--NdLK_ {
|
|
18
|
+
font-size: var(--fs);
|
|
19
|
+
line-height: var(--lh);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.Heading-module__m--HvQbM {
|
|
23
|
+
--fs: 52em;
|
|
24
|
+
--lh: 1.08;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.Heading-module__l--x15s8 {
|
|
28
|
+
--fs: 60em;
|
|
29
|
+
--lh: 1.07;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.Heading-module__xl--clv5l {
|
|
33
|
+
--fs: 72em;
|
|
34
|
+
--lh: 1.06;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.Heading-module__xxl--qN0Pa {
|
|
38
|
+
--fs: 86em;
|
|
39
|
+
--lh: 1.02;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.Heading-module__xxxl--_qGDW {
|
|
43
|
+
--fs: 124em;
|
|
44
|
+
--lh: 0.9;
|
|
45
|
+
}
|
|
46
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as o from"react/jsx-runtime";var t={39:(o,t,n)=>{n.d(t,{L:()=>e});const e=(...o)=>o.filter(Boolean).join(" ")},58:(o,t,n)=>{n.d(t,{N:()=>a,u:()=>f}),n(178);var e=n(992);const a=({theme:o,children:t,fluidMode:n=!1})=>{fluidModeState.state=n;const e=[];Object.entries(o).forEach(([o,t])=>{e.push(`--${o}: ${t}`)});const a=`\n @font-face {\n font-family: 'FactorA';\n src: url('https://of.worldota.net/fonts/factora/Factor-A-Regular-Web.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'FactorA';\n src: url('https://of.worldota.net/fonts/factora/Factor-A-Medium-Web.woff2') format('woff2');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n }\n \n @font-face {\n font-family: 'Spoof';\n src: url('https://of.worldota.net/fonts/spoof/Spoof-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Spoof';\n src: url('https://of.worldota.net/fonts/spoof/Spoof-Medium.woff2') format('woff2');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n }\n\n :root {\n ${e.join(";\n")};\n }\n ${n?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:a}}),t]})},f=o=>("boolean"==typeof o?o:e.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(t,n,e)=>{var a,f;t.exports=(a={jsx:()=>o.jsx},f={},e.d(f,a),f)},992:(o,t,n)=>{n.d(t,{b:()=>e}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const e=globalThis.__fluidModeState}},n={};function e(o){var a=n[o];if(void 0!==a)return a.exports;var f=n[o]={exports:{}};return t[o](f,f.exports,e),f.exports}e.d=(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},e.o=(o,t)=>Object.prototype.hasOwnProperty.call(o,t);var a=e(178),f=e(58),l=e(39);const r={root:"Heading-module__root--cxQbw",text:"Heading-module__text--NdLK_",m:"Heading-module__m--HvQbM",l:"Heading-module__l--x15s8",xl:"Heading-module__xl--clv5l",xxl:"Heading-module__xxl--qN0Pa",xxxl:"Heading-module__xxxl--_qGDW"},s=({level:o=1,size:t="m",children:n,className:e="",fluidMode:s})=>{const d=`h${o}`,i=r[t]||"",u=(0,f.u)(s);return(0,a.jsx)(d,{className:(0,l.L)(r.root,i,e,u),children:(0,a.jsx)("span",{className:r.text,children:n})})};export{s as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export interface HotelCardProps {
|
|
3
|
+
image: string;
|
|
4
|
+
rating: number;
|
|
5
|
+
name: string;
|
|
6
|
+
address: string;
|
|
7
|
+
price: number;
|
|
8
|
+
oldPrice?: number;
|
|
9
|
+
discountPercent?: number;
|
|
10
|
+
discountPlace?: 'label' | 'inline';
|
|
11
|
+
nights: number;
|
|
12
|
+
roomType: 1 | 2;
|
|
13
|
+
url?: string;
|
|
14
|
+
fluidMode?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const HotelCard: React.FC<HotelCardProps>;
|
|
17
|
+
export default HotelCard;
|
|
18
|
+
//# sourceMappingURL=HotelCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HotelCard.d.ts","sourceRoot":"","sources":["../../../src/components/HotelCard/HotelCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAwEvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
.layout-module__fluidLayout--BNE04[class] {
|
|
2
|
+
font-size: 1rem;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.layout-module__staticLayout--x_6dR[class] {
|
|
6
|
+
font-size: 1px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.HotelCard-module__card--J06q1 {
|
|
10
|
+
font-family: var(--font-family);
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 440em;
|
|
13
|
+
height: 358em;
|
|
14
|
+
border-radius: 16em;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.HotelCard-module__image--S6ocB {
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
object-fit: cover;
|
|
23
|
+
display: block;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.HotelCard-module__rating--pw3y8 {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 0;
|
|
29
|
+
right: 16em;
|
|
30
|
+
color: var(--blue80);
|
|
31
|
+
background: url(896f1dcf256d0c8af555.svg) no-repeat;
|
|
32
|
+
background-size: cover;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
width: 56em;
|
|
35
|
+
height: 79em;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.HotelCard-module__discountLabel--G0fJh {
|
|
42
|
+
background-color: rgba(10, 79, 236, 1);
|
|
43
|
+
position: absolute;
|
|
44
|
+
left: 7em;
|
|
45
|
+
top: 8em;
|
|
46
|
+
width: 120em;
|
|
47
|
+
height: 66em;
|
|
48
|
+
border-radius: 12em;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.HotelCard-module__discountLabelInner--fSbXi {
|
|
55
|
+
font-weight: 500;
|
|
56
|
+
font-size: 36em;
|
|
57
|
+
color: var(--static-white);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.HotelCard-module__ratingInner--wIy2O {
|
|
61
|
+
font-size: 23em;
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.HotelCard-module__bottomOverlay--V4ham {
|
|
66
|
+
position: absolute;
|
|
67
|
+
left: 0;
|
|
68
|
+
right: 0;
|
|
69
|
+
bottom: 0;
|
|
70
|
+
background: var(--static-white);
|
|
71
|
+
border-radius: 16em;
|
|
72
|
+
padding: 16em;
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.HotelCard-module__name--IcST5 {
|
|
78
|
+
font-size: 20em;
|
|
79
|
+
font-weight: 500;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.HotelCard-module__address--vs3wb {
|
|
83
|
+
margin-top: 8em;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.HotelCard-module__addressInner--Q7v6i {
|
|
87
|
+
font-size: 16em;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.HotelCard-module__priceBlock--MI1So {
|
|
91
|
+
display: flex;
|
|
92
|
+
gap: 15em;
|
|
93
|
+
margin-top: 10em;
|
|
94
|
+
align-items: center;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.HotelCard-module__prices--m_9KZ {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: baseline;
|
|
100
|
+
gap: 12em;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.HotelCard-module__oldPrice--chClN {
|
|
104
|
+
text-decoration: line-through;
|
|
105
|
+
opacity: 0.3;
|
|
106
|
+
font-size: 20em;
|
|
107
|
+
line-height: 100%;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.HotelCard-module__discount--ldg_V {
|
|
111
|
+
color: var(--static-white);
|
|
112
|
+
background-color: rgba(10, 79, 236, 1);
|
|
113
|
+
padding: 6em 10em;
|
|
114
|
+
border-radius: 8em;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.HotelCard-module__discountInner--q5SJv {
|
|
118
|
+
font-size: 24em;
|
|
119
|
+
line-height: 1.333;
|
|
120
|
+
font-weight: 500;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.HotelCard-module__price--De503 {
|
|
124
|
+
color: var(--blue80);
|
|
125
|
+
font-weight: 500;
|
|
126
|
+
font-size: 32em;
|
|
127
|
+
line-height: 100%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.HotelCard-module__nights--L4NY4 {
|
|
131
|
+
font-size: 16em;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.HotelCard-module__roomType--Z7Vyt {
|
|
135
|
+
font-size: 16em;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.HotelCard-module__dotSeparator--Boyjj {
|
|
139
|
+
width: 4em;
|
|
140
|
+
height: 4em;
|
|
141
|
+
border-radius: 4em;
|
|
142
|
+
background: var(--static-black);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.HotelCard-module__bottomInfo--_g0a0 {
|
|
146
|
+
display: flex;
|
|
147
|
+
gap: 10em;
|
|
148
|
+
align-items: center;
|
|
149
|
+
}
|
|
150
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HotelCard/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react/jsx-runtime";var o={39:(e,o,a)=>{a.d(o,{L:()=>t});const t=(...e)=>e.filter(Boolean).join(" ")},58:(e,o,a)=>{a.d(o,{N:()=>s,u:()=>n}),a(178);var t=a(992);const s=({theme:e,children:o,fluidMode:a=!1})=>{fluidModeState.state=a;const t=[];Object.entries(e).forEach(([e,o])=>{t.push(`--${e}: ${o}`)});const s=`\n @font-face {\n font-family: 'FactorA';\n src: url('https://of.worldota.net/fonts/factora/Factor-A-Regular-Web.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'FactorA';\n src: url('https://of.worldota.net/fonts/factora/Factor-A-Medium-Web.woff2') format('woff2');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n }\n \n @font-face {\n font-family: 'Spoof';\n src: url('https://of.worldota.net/fonts/spoof/Spoof-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Spoof';\n src: url('https://of.worldota.net/fonts/spoof/Spoof-Medium.woff2') format('woff2');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n }\n\n :root {\n ${t.join(";\n")};\n }\n ${a?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:s}}),o]})},n=e=>("boolean"==typeof e?e:t.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(o,a,t)=>{var s,n;o.exports=(s={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},n={},t.d(n,s),n)},992:(e,o,a)=>{a.d(o,{b:()=>t}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const t=globalThis.__fluidModeState}},a={};function t(e){var s=a[e];if(void 0!==s)return s.exports;var n=a[e]={exports:{}};return o[e](n,n.exports,t),n.exports}t.d=(e,o)=>{for(var a in o)t.o(o,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:o[a]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o);var s=t(178),n=t(58),l=t(39);const r=({image:e,rating:o,name:a,address:t,price:r,oldPrice:d,discountPercent:i,discountPlace:c,nights:f,roomType:m,url:u,fluidMode:_})=>{const p=(0,n.u)(_),h=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("img",{src:e,alt:a,className:"HotelCard-module__image--S6ocB"}),(0,s.jsx)("div",{className:"HotelCard-module__rating--pw3y8",children:(0,s.jsx)("span",{className:"HotelCard-module__ratingInner--wIy2O",children:o.toFixed(1).replace(".",",")})}),i&&"label"===c&&(0,s.jsx)("div",{className:"HotelCard-module__discountLabel--G0fJh",children:(0,s.jsxs)("span",{className:"HotelCard-module__discountLabelInner--fSbXi",children:["-",i,"%"]})}),(0,s.jsxs)("div",{className:"HotelCard-module__bottomOverlay--V4ham",children:[(0,s.jsx)("div",{className:"HotelCard-module__name--IcST5",children:a}),(0,s.jsx)("div",{className:"HotelCard-module__address--vs3wb",children:(0,s.jsx)("span",{className:"HotelCard-module__addressInner--Q7v6i",children:t})}),(0,s.jsxs)("div",{className:"HotelCard-module__priceBlock--MI1So",children:[(0,s.jsxs)("div",{className:"HotelCard-module__prices--m_9KZ",children:[(0,s.jsxs)("span",{className:"HotelCard-module__price--De503",children:["от ",r,"₽"]}),d&&(0,s.jsx)("span",{className:"HotelCard-module__oldPrice--chClN",children:d})]}),i&&"inline"===c?(0,s.jsx)("div",{className:"HotelCard-module__discount--ldg_V",children:(0,s.jsxs)("span",{className:"HotelCard-module__discountInner--q5SJv",children:["-",i,"%"]})}):null]}),(0,s.jsxs)("div",{className:"HotelCard-module__bottomInfo--_g0a0",children:[(0,s.jsxs)("span",{className:"HotelCard-module__nights--L4NY4",children:[f," ноч",1===f?"ь":"и"]}),(0,s.jsx)("span",{className:"HotelCard-module__dotSeparator--Boyjj"}),(0,s.jsxs)("div",{className:"HotelCard-module__roomType--Z7Vyt",children:[1===m?"одноместный":"двухместный"," номер"]})]})]})]}),x=(0,l.L)("HotelCard-module__card--J06q1",p);return u?(0,s.jsx)("a",{className:x,href:u,target:"_blank",rel:"noopener noreferrer",children:h}):(0,s.jsx)("div",{className:x,children:h})};export{r as default};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { JSX } from 'react';
|
|
3
|
+
export interface TextProps {
|
|
4
|
+
size?: 'xxl' | 'xl-wide' | 'xl-narrow' | 'l2-wide' | 'l-wide' | 'l-narrow' | 'm' | 'cap-s' | 'cap-xs';
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
8
|
+
fluidMode?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Text: React.FC<TextProps>;
|
|
11
|
+
export default Text;
|
|
12
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EACD,KAAK,GACL,SAAS,GACT,WAAW,GACX,SAAS,GACT,QAAQ,GACR,UAAU,GACV,GAAG,GACH,OAAO,GACP,QAAQ,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAuB7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
|