treqit-ui-library 1.4.16 → 1.4.18

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/main.scss ADDED
@@ -0,0 +1,712 @@
1
+ /* ==========================================================================
2
+ 1. CSS Reset & Base Styles
3
+ ========================================================================== */
4
+
5
+ /* Use a more-intuitive box-sizing model. */
6
+ *,
7
+ *::before,
8
+ *::after {
9
+ box-sizing: border-box;
10
+ }
11
+
12
+ /* Remove default margin */
13
+ * {
14
+ margin: 0;
15
+ }
16
+
17
+ /*
18
+ Typographic tweaks!
19
+ - Add accessible line-height
20
+ - Improve text rendering
21
+ */
22
+ body {
23
+ line-height: 1.5;
24
+ -webkit-font-smoothing: antialiased;
25
+ }
26
+
27
+ html {
28
+ font-family: 'Poppins';
29
+ font-size: 16px;
30
+ letter-spacing: .01em;
31
+ line-height: 1.2
32
+ }
33
+
34
+
35
+ /* Improve media defaults */
36
+ img,
37
+ picture,
38
+ video,
39
+ canvas,
40
+ svg {
41
+ display: block;
42
+ max-width: 100%;
43
+ }
44
+
45
+ /* Remove built-in form typography styles */
46
+ input,
47
+ button,
48
+ textarea,
49
+ select {
50
+ font: inherit;
51
+ }
52
+
53
+
54
+ button,
55
+ input,
56
+ select,
57
+ textarea {
58
+ background-color: transparent;
59
+ border-style: none
60
+ }
61
+
62
+ /* Avoid text overflows */
63
+ h1,
64
+ h2,
65
+ h3,
66
+ h4,
67
+ h5,
68
+ h6 {
69
+ overflow-wrap: break-word;
70
+ }
71
+
72
+ /*
73
+ These are global-like styles for your application.
74
+ A non-scoped style block in a root component like this is a good place
75
+ for base styles, resets, and typography.
76
+ */
77
+
78
+ /* A simple CSS reset */
79
+ *,
80
+ *::before,
81
+ *::after {
82
+ box-sizing: border-box;
83
+ margin: 0;
84
+ padding: 0;
85
+ }
86
+
87
+ html,
88
+ body {
89
+ height: 100%;
90
+ width: 100%;
91
+ }
92
+
93
+ body {
94
+ font-family: 'Poppins';
95
+ -webkit-font-smoothing: antialiased;
96
+ -moz-osx-font-smoothing: grayscale;
97
+ color: var(--text-color);
98
+ background-color: var(--background-color);
99
+ transition: background-color 0.3s ease, color 0.3s ease;
100
+ }
101
+
102
+ .app-container {
103
+ display: flex;
104
+ flex-direction: column;
105
+ min-height: 100vh;
106
+ }
107
+
108
+ .responsive-text {
109
+ font-family: 'Poppins';
110
+ font-style: normal;
111
+ font-weight: 400;
112
+ font-size: 16px;
113
+ color: var(--text-color);
114
+ }
115
+
116
+ .responsive-text-header {
117
+ font-family: 'Poppins';
118
+ font-style: normal;
119
+ font-weight: 700;
120
+ font-size: 96px;
121
+ color: var(--text-color);
122
+ }
123
+
124
+ /* ==========================================================================
125
+ 2. Design Tokens & Variables
126
+ ========================================================================== */
127
+
128
+ :root {
129
+ /* Core Colors */
130
+ --primary-color: #3C9273;
131
+ --secondary-color: #3C464D;
132
+ --error-color: #B00020;
133
+ --info-color: #2196F3;
134
+ --success-color: #4CAF50;
135
+ --warning-color: #FB8C00;
136
+
137
+ /* Light Theme Colors */
138
+ --background-color: #ededed;
139
+ --surface-color: #FFFFFF;
140
+ --surface-secondary: #F8F9FA;
141
+ --white-color: #FCFFFE;
142
+ --text-color: #3C464D;
143
+ --text-secondary: #6B7280;
144
+ --text-muted: #9CA3AF;
145
+ --border-color: #E5E7EB;
146
+ --shadow-color: rgba(0, 0, 0, 0.1);
147
+
148
+ /* Button Colors */
149
+ --btn-primary-bg: #3C9273;
150
+ --btn-primary-hover-bg: #31795f;
151
+ --btn-primary-text: #FFFFFF;
152
+ --btn-secondary-bg: white;
153
+ --btn-secondary-hover-bg: #cbd5e0;
154
+ --btn-secondary-text: #3C464D;
155
+ --btn-outlined-border: #E5E7EB;
156
+ --btn-outlined-hover-bg: #F3F4F6;
157
+
158
+ /* Input Colors */
159
+ --input-bg: #FFFFFF;
160
+ --input-border: #D1D5DB;
161
+ --input-border-focus: #3C9273;
162
+ --input-text: #374151;
163
+ --input-placeholder: #9CA3AF;
164
+
165
+ /* Card Colors */
166
+ --card-bg: #FFFFFF;
167
+ --card-border: #E5E7EB;
168
+ --card-shadow: rgba(0, 0, 0, 0.1);
169
+
170
+ /* Modal/Dialog Colors */
171
+ --overlay-bg: rgba(0, 0, 0, 0.5);
172
+ --modal-bg: #FFFFFF;
173
+
174
+ --text-dark: #1a202c;
175
+ }
176
+
177
+ /* Dark Theme */
178
+ [data-theme="dark"] {
179
+ /* Core Colors (adjusted for dark theme) */
180
+ --primary-color: #4EBAAA;
181
+ --secondary-color: #8B949E;
182
+
183
+ /* Dark Theme Colors */
184
+ --background-color: #0D1117;
185
+ --surface-color: #161B22;
186
+ --surface-secondary: #21262D;
187
+ --white-color: #F0F6FC;
188
+ --text-color: #F0F6FC;
189
+ --text-secondary: #8B949E;
190
+ --text-muted: #6E7681;
191
+ --border-color: #30363D;
192
+ --shadow-color: rgba(0, 0, 0, 0.3);
193
+
194
+ /* Button Colors */
195
+ --btn-primary-bg: #4EBAAA;
196
+ --btn-primary-hover-bg: #66C7B8;
197
+ --btn-primary-text: #0D1117;
198
+ --btn-secondary-bg: #21262D;
199
+ --btn-secondary-hover-bg: #30363D;
200
+ --btn-secondary-text: #F0F6FC;
201
+ --btn-outlined-border: #30363D;
202
+ --btn-outlined-hover-bg: #21262D;
203
+
204
+ /* Input Colors */
205
+ --input-bg: #21262D;
206
+ --input-border: #30363D;
207
+ --input-border-focus: #4EBAAA;
208
+ --input-text: #F0F6FC;
209
+ --input-placeholder: #6E7681;
210
+
211
+ /* Card Colors */
212
+ --card-bg: #161B22;
213
+ --card-border: #30363D;
214
+ --card-shadow: rgba(0, 0, 0, 0.5);
215
+
216
+ /* Modal/Dialog Colors */
217
+ --overlay-bg: rgba(0, 0, 0, 0.7);
218
+ --modal-bg: #161B22;
219
+ }
220
+
221
+
222
+ ///full size screen
223
+ @media screen and (min-width: 1000px) {
224
+ .responsive-text {
225
+ font-size: 20px;
226
+ }
227
+ }
228
+
229
+ /// mid size screen
230
+ @media screen and (min-width: 601px) and (max-width: 999px) {
231
+ .responsive-text {
232
+ font-size: 2vw;
233
+ }
234
+
235
+ .responsive-text-header {
236
+ font-size: 6vw;
237
+ }
238
+ }
239
+
240
+ /* small screen; If the screen size is 600px wide or less, set the font-size of <div> */
241
+ @media screen and (max-width: 600px) {
242
+ .responsive-text {
243
+ font-size: 12px;
244
+ }
245
+
246
+ .responsive-text-header {
247
+ font-size: 40px;
248
+ }
249
+ }
250
+
251
+ /* Small devices such as large phones (640px and up) */
252
+ //@media only screen and (min-width: 640px) {...}
253
+
254
+ /* Medium devices such as tablets (768px and up)
255
+ sticky to the right sidebar */
256
+
257
+ .left-sidebar {
258
+ width: 100%;
259
+ position: relative;
260
+ }
261
+
262
+ @media only screen and (min-width: 800px) {
263
+ .left-sidebar {
264
+ position: -webkit-sticky;
265
+ position: sticky;
266
+ top: 0;
267
+ }
268
+ }
269
+
270
+ //small screens show as sticky on bottom
271
+ @media only screen and (max-width: 799px) {
272
+ .left-sidebar {
273
+ border-bottom: 1px solid gray;
274
+ top: 0;
275
+ left: 0;
276
+ margin: 0;
277
+ padding: 16px;
278
+ position: block;
279
+ right: 0;
280
+ transform: translateY(0);
281
+ transition: transform .25s ease-in-out;
282
+ z-index: 999;
283
+ padding: 2px;
284
+ }
285
+ }
286
+
287
+ //side bar is full width when screen is small (<768px)
288
+ /// this is on the right
289
+ .sidebar {
290
+ width: 100%;
291
+ position: relative;
292
+ }
293
+
294
+ @media only screen and (min-width: 800px) {
295
+ .sitebook-main-wrapper {
296
+ display: flex;
297
+ }
298
+
299
+ .sidebar {
300
+ width: 60%;
301
+ height: 100%;
302
+ position: -webkit-sticky;
303
+ position: sticky;
304
+ top: 0;
305
+ }
306
+ }
307
+
308
+ //small screens show as sticky on bottom
309
+ @media only screen and (max-width: 799px) {
310
+ .sidebar {
311
+ border-top: 1px solid gray;
312
+ bottom: 0;
313
+ left: 0;
314
+ margin: 0;
315
+ padding: 16px;
316
+ position: fixed;
317
+ right: 0;
318
+ transform: translateY(0);
319
+ transition: transform .25s ease-in-out;
320
+ z-index: 999;
321
+ }
322
+ }
323
+
324
+ /* Large devices such as laptops (1024px and up) */
325
+ //@media only screen and (min-width: 1024px) {...}
326
+
327
+ /* Largest devices such as desktops (1280px and up) */
328
+ //@media only screen and (min-width: 1280px) {...}
329
+
330
+ .toggle-button:hover {
331
+ // background-color: #ebf1efcb;
332
+ border: 3px solid var(--primary-color) !important;
333
+ box-shadow: 0px 4px 25px rgba(0, 56, 25, 0.2);
334
+ }
335
+
336
+ .toggle-button {
337
+ cursor: pointer;
338
+ margin-top: 25px;
339
+ box-sizing: border-box;
340
+ padding: 10px 20px;
341
+ gap: 20px;
342
+ min-height: 55px;
343
+ background: var(--white-color);
344
+ box-shadow: 0px 4px 25px rgba(0, 56, 25, 0.1);
345
+ border-radius: 10px;
346
+ color: var(--secondary-color);
347
+ border: 2px solid var(--primary-color);
348
+ }
349
+
350
+ .select-dropdown:hover {
351
+ // background-color: #ebf1efcb;
352
+ border: 3px solid var(--primary-color) !important;
353
+ box-shadow: 0px 4px 25px rgba(0, 56, 25, 0.2);
354
+
355
+ }
356
+
357
+ .select-dropdown {
358
+ cursor: pointer;
359
+ margin-top: 25px;
360
+ gap: 20px;
361
+ min-height: 55px;
362
+ background: var(--white-color);
363
+ box-shadow: 0px 4px 25px rgba(0, 56, 25, 0.1);
364
+ border-radius: 10px;
365
+ // color: var(--secondary-color);
366
+ border: 2px solid var(--primary-color);
367
+ -webkit-box-sizing: border-box;
368
+ box-sizing: border-box;
369
+ overflow: hidden;
370
+ -moz-transition: opacity .2s;
371
+ -webkit-transition: opacity .2s;
372
+ transition: opacity .2s;
373
+ width: 100%;
374
+ display: flex;
375
+ flex-direction: row;
376
+
377
+ }
378
+
379
+ .sidebar {
380
+ padding: 15px;
381
+ background-color: #fff;
382
+ }
383
+
384
+ .sitebook-main {
385
+ padding: 5px;
386
+ background-color: #fff;
387
+ min-width: 60%;
388
+ }
389
+
390
+
391
+
392
+ // @media (max-width: 1024px) {
393
+ // html {
394
+ // font-size: 16px;
395
+ // }
396
+ // }
397
+
398
+ // @media (max-width: 858px) {
399
+ // html {
400
+ // font-size: 12px;
401
+ // }
402
+ // }
403
+
404
+ // @media (max-width: 780px) {
405
+ // html {
406
+ // font-size: 11px;
407
+ // }
408
+ // }
409
+
410
+ // @media (max-width: 702px) {
411
+ // html {
412
+ // font-size: 10px;
413
+ // }
414
+ // }
415
+
416
+ // @media (max-width: 623px) {
417
+ // html {
418
+ // font-size: 8px;
419
+ // }
420
+ // }
421
+
422
+ /* ==========================================================================
423
+ 3. Component Styles
424
+ ========================================================================== */
425
+
426
+ .treqit-input {
427
+
428
+ input[type=text]:focus,
429
+ input[type=password]:focus,
430
+ input[type=number]:focus,
431
+ input[type=text]:hover,
432
+ input[type=password]:hover,
433
+ input[type=number]:hover {
434
+ border: 2px solid var(--primary-color);
435
+ background: #F8FFFD;
436
+ }
437
+
438
+ input[type=text]::placeholder,
439
+ input[type=password]::placeholder,
440
+ input[type=number]::placeholder {
441
+ color: #9A9A9A;
442
+ }
443
+
444
+ input[type=text],
445
+ input[type=password],
446
+ input[type=number] {
447
+ box-sizing: border-box;
448
+ display: flex;
449
+ flex-direction: row;
450
+ align-items: center;
451
+ margin: 10px;
452
+ padding: 10px;
453
+ gap: 10px;
454
+ font-family: 'Poppins';
455
+ font-style: normal;
456
+ font-weight: 400;
457
+ font-size: 14px;
458
+ line-height: 21px;
459
+ color: var(--secondary-color);
460
+ background: var(--white-color);
461
+ border: 1px solid var(--secondary-color);
462
+ border-radius: 10px;
463
+ width: 100%;
464
+ }
465
+ }
466
+
467
+
468
+
469
+
470
+ .reservation-details-card {
471
+ box-shadow: 0 1px 3px 2px #dadada;
472
+ padding: 5px;
473
+ position: relative;
474
+ margin-bottom: 15px;
475
+ border-radius: 10px;
476
+ background-color: var(--surface-color);
477
+ }
478
+
479
+ @media only screen and (max-width: 600px) {
480
+ .reservation-details-card {
481
+ padding: 2px;
482
+ }
483
+ }
484
+
485
+ @media only screen and (max-width: 680px) {
486
+ .reservation-details-card {
487
+ padding: 5px
488
+ }
489
+ }
490
+
491
+ .hyperlink {
492
+ cursor: pointer;
493
+ color: blue;
494
+ text-decoration: none;
495
+ font-weight: bold;
496
+ font-size: 15px;
497
+ }
498
+
499
+ .validation-error {
500
+ color: var(--error-color);
501
+ padding: 10px;
502
+ margin: 10px;
503
+ background-color: rgb(251, 237, 240);
504
+ border-radius: 5px;
505
+ border: 1px solid var(--error-color);
506
+ opacity: 1;
507
+ }
508
+
509
+ .sub-heading {
510
+ padding-right: 8%;
511
+ font-size: 24px;
512
+ font-weight: 700;
513
+ padding-top: 25px;
514
+ }
515
+
516
+ /* Medium screens (e.g., tablets) */
517
+ @media screen and (max-width: 959px) {
518
+ .sub-heading {
519
+ font-size: 22px;
520
+ padding-top: 20px;
521
+ }
522
+ }
523
+
524
+ /* Small screens (e.g., mobile phones) */
525
+ @media screen and (max-width: 599px) {
526
+ .sub-heading {
527
+ font-size: 20px;
528
+ padding-top: 15px;
529
+ padding-right: 0;
530
+ }
531
+ }
532
+
533
+ .not-available,
534
+ .not-available:hover {
535
+ color: red;
536
+ cursor: not-allowed;
537
+ border: 1px solid #e0e0e0;
538
+ text-align: center;
539
+ }
540
+
541
+ .available {
542
+ cursor: pointer;
543
+ display: flex;
544
+ flex-direction: column;
545
+ justify-content: center;
546
+ align-items: center;
547
+ background: #D5EAA0;
548
+ border: 2px solid var(--primary-color);
549
+ border-radius: 8px;
550
+ box-sizing: border-box;
551
+ }
552
+
553
+ .available:hover {
554
+ cursor: pointer;
555
+ background: #b8cc8a;
556
+ /* A slightly darker shade for hover */
557
+ border: 3px solid var(--primary-color);
558
+ }
559
+
560
+ /* Generic Card Style */
561
+ .card {
562
+ position: relative;
563
+ display: flex;
564
+ flex-direction: column;
565
+ min-width: 0;
566
+ word-wrap: break-word;
567
+ background-color: var(--surface-color);
568
+ background-clip: border-box;
569
+ border: 1px solid rgba(0, 0, 0, 0.125);
570
+ border-radius: 0.5rem;
571
+ padding: 1.25rem;
572
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
573
+ }
574
+
575
+ $breakpoints: (
576
+ 'xs': 'only screen and (max-width: 599px)',
577
+ 'sm': 'only screen and (min-width: 600px)',
578
+ 'md': 'only screen and (min-width: 768px)',
579
+ 'lg': 'only screen and (min-width: 992px)',
580
+ 'xl': 'only screen and (min-width: 1200px)'
581
+ );
582
+
583
+ $space-values: (
584
+ '0': 'var(--space-0)',
585
+ '1': 'var(--space-1)',
586
+ '2': 'var(--space-2)',
587
+ '3': 'var(--space-3)',
588
+ '4': 'var(--space-4)',
589
+ '5': 'var(--space-5)',
590
+ '6': 'var(--space-6)',
591
+ '8': 'var(--space-8)',
592
+ '10': 'var(--space-10)',
593
+ '12': 'var(--space-12)',
594
+ '16': 'var(--space-16)',
595
+ '20': 'var(--space-20)',
596
+ '24': 'var(--space-24)',
597
+ '32': 'var(--space-32)',
598
+ '40': 'var(--space-40)',
599
+ '48': 'var(--space-48)',
600
+ '56': 'var(--space-56)',
601
+ '64': 'var(--space-64)',
602
+ 'auto': 'auto'
603
+ );
604
+
605
+ $directions: (
606
+ 'a': 'all',
607
+ 't': 'top',
608
+ 'r': 'right',
609
+ 'b': 'bottom',
610
+ 'l': 'left',
611
+ 'x': 'x-axis',
612
+ 'y': 'y-axis'
613
+ );
614
+
615
+ @each $breakpoint-name, $breakpoint-query in $breakpoints {
616
+ @media #{$breakpoint-query} {
617
+ @each $dir-key, $dir-val in $directions {
618
+ @each $space-key, $space-val in $space-values {
619
+
620
+ // Margin
621
+ .ma-#{$breakpoint-name}-#{$space-key} {
622
+ @if $dir-val =='all' {
623
+ margin: $space-val;
624
+ }
625
+ }
626
+
627
+ .mt-#{$breakpoint-name}-#{$space-key} {
628
+ @if $dir-val =='top' {
629
+ margin-top: $space-val;
630
+ }
631
+ }
632
+
633
+ .mr-#{$breakpoint-name}-#{$space-key} {
634
+ @if $dir-val =='right' {
635
+ margin-right: $space-val;
636
+ }
637
+ }
638
+
639
+ .mb-#{$breakpoint-name}-#{$space-key} {
640
+ @if $dir-val =='bottom' {
641
+ margin-bottom: $space-val;
642
+ }
643
+ }
644
+
645
+ .ml-#{$breakpoint-name}-#{$space-key} {
646
+ @if $dir-val =='left' {
647
+ margin-left: $space-val;
648
+ }
649
+ }
650
+
651
+ .mx-#{$breakpoint-name}-#{$space-key} {
652
+ @if $dir-val =='x-axis' {
653
+ margin-left: $space-val;
654
+ margin-right: $space-val;
655
+ }
656
+ }
657
+
658
+ .my-#{$breakpoint-name}-#{$space-key} {
659
+ @if $dir-val =='y-axis' {
660
+ margin-top: $space-val;
661
+ margin-bottom: $space-val;
662
+ }
663
+ }
664
+
665
+ // Padding
666
+ .pa-#{$breakpoint-name}-#{$space-key} {
667
+ @if $dir-val =='all' {
668
+ padding: $space-val;
669
+ }
670
+ }
671
+
672
+ .pt-#{$breakpoint-name}-#{$space-key} {
673
+ @if $dir-val =='top' {
674
+ padding-top: $space-val;
675
+ }
676
+ }
677
+
678
+ .pr-#{$breakpoint-name}-#{$space-key} {
679
+ @if $dir-val =='right' {
680
+ padding-right: $space-val;
681
+ }
682
+ }
683
+
684
+ .pb-#{$breakpoint-name}-#{$space-key} {
685
+ @if $dir-val =='bottom' {
686
+ padding-bottom: $space-val;
687
+ }
688
+ }
689
+
690
+ .pl-#{$breakpoint-name}-#{$space-key} {
691
+ @if $dir-val =='left' {
692
+ padding-left: $space-val;
693
+ }
694
+ }
695
+
696
+ .px-#{$breakpoint-name}-#{$space-key} {
697
+ @if $dir-val =='x-axis' {
698
+ padding-left: $space-val;
699
+ padding-right: $space-val;
700
+ }
701
+ }
702
+
703
+ .py-#{$breakpoint-name}-#{$space-key} {
704
+ @if $dir-val =='y-axis' {
705
+ padding-top: $space-val;
706
+ padding-bottom: $space-val;
707
+ }
708
+ }
709
+ }
710
+ }
711
+ }
712
+ }