mautourco-components 0.1.1 → 0.2.0
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 +9 -9
- package/dist/components/atoms/Checkbox/Checkbox.js +7 -1
- package/dist/components/atoms/Icon/Icon.d.ts +1 -1
- package/dist/components/atoms/Icon/Icon.js +22 -1
- package/dist/components/atoms/Icon/icons/BuildingIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/BuildingIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/HomeIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/HomeIcon.js +25 -0
- package/dist/components/atoms/Icon/icons/MinusIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/MinusIcon.js +25 -0
- package/dist/components/atoms/Icon/icons/PlaneIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/PlaneIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/PlusIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/PlusIcon.js +25 -0
- package/dist/components/atoms/Icon/icons/ShipIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/ShipIcon.js +36 -0
- package/dist/components/atoms/Illustration/Illustration.d.ts +14 -0
- package/dist/components/atoms/Illustration/Illustration.js +33 -0
- package/dist/components/atoms/Illustration/illustrations.d.ts +51 -0
- package/dist/components/atoms/Illustration/illustrations.js +97 -0
- package/dist/components/atoms/RatingStar/RatingStar.d.ts +40 -0
- package/dist/components/atoms/RatingStar/RatingStar.js +54 -0
- package/dist/components/atoms/SegmentedButton/SegmentedButton.d.ts +27 -0
- package/dist/components/atoms/SegmentedButton/SegmentedButton.js +49 -0
- package/dist/components/atoms/Slider/Slider.d.ts +52 -0
- package/dist/components/atoms/Slider/Slider.js +30 -0
- package/dist/components/molecules/Calendar/CalendarInput.d.ts +34 -0
- package/dist/components/molecules/Calendar/CalendarInput.js +49 -0
- package/dist/components/molecules/Calendar/DateTime.d.ts +25 -0
- package/dist/components/molecules/Calendar/DateTime.js +106 -0
- package/dist/components/molecules/Calendar/TimePicker.d.ts +16 -0
- package/dist/components/molecules/Calendar/TimePicker.js +91 -0
- package/dist/components/molecules/LocationDropdown/LocationDropdown.d.ts +34 -0
- package/dist/components/molecules/LocationDropdown/LocationDropdown.js +120 -0
- package/dist/components/molecules/LocationDropdown/index.d.ts +2 -0
- package/dist/components/molecules/LocationDropdown/index.js +1 -0
- package/dist/components/molecules/RatingTab/RatingTab.d.ts +39 -0
- package/dist/components/molecules/RatingTab/RatingTab.js +41 -0
- package/dist/components/molecules/TabGroup/TabGroup.d.ts +17 -0
- package/dist/components/molecules/TabGroup/TabGroup.js +30 -0
- package/dist/components/organisms/CardContainer/CardContainer.d.ts +37 -0
- package/dist/components/organisms/CardContainer/CardContainer.js +27 -0
- package/dist/components/organisms/DateTimePicker/DateTimePicker.d.ts +15 -0
- package/dist/components/organisms/DateTimePicker/DateTimePicker.js +66 -0
- package/dist/components/organisms/Dialog/Dialog.d.ts +103 -0
- package/dist/components/organisms/Dialog/Dialog.js +162 -0
- package/dist/components/organisms/PaxSelector/PaxSelector.d.ts +63 -0
- package/dist/components/organisms/PaxSelector/PaxSelector.js +402 -0
- package/dist/components/organisms/RoundTrip/RoundTrip.d.ts +54 -0
- package/dist/components/organisms/RoundTrip/RoundTrip.js +179 -0
- package/dist/components/organisms/RoundTrip/index.d.ts +2 -0
- package/dist/components/organisms/RoundTrip/index.js +1 -0
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.d.ts +35 -0
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.js +192 -0
- package/dist/components/organisms/SearchBarTransfer/index.d.ts +2 -0
- package/dist/components/organisms/SearchBarTransfer/index.js +1 -0
- package/dist/components/organisms/TransferLine/TransferLine.d.ts +53 -0
- package/dist/components/organisms/TransferLine/TransferLine.js +179 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/button.js +56 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/calendar.js +87 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/popover.js +42 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +18 -0
- package/dist/lib/utils.d.ts +7 -0
- package/dist/lib/utils.js +13 -0
- package/package.json +21 -12
- package/src/components/atoms/Button/Button.css +34 -34
- package/src/components/atoms/Checkbox/Checkbox.tsx +83 -69
- package/src/components/atoms/Icon/Icon.tsx +30 -2
- package/src/components/atoms/Icon/icons/BuildingIcon.tsx +50 -0
- package/src/components/atoms/Icon/icons/CalendarOutlineIcon.tsx +50 -0
- package/src/components/atoms/Icon/icons/HomeIcon.tsx +52 -0
- package/src/components/atoms/Icon/icons/MinusIcon.tsx +45 -0
- package/src/components/atoms/Icon/icons/PlaneIcon.tsx +50 -0
- package/src/components/atoms/Icon/icons/PlusIcon.tsx +45 -0
- package/src/components/atoms/Icon/icons/ShipIcon.tsx +50 -0
- package/src/components/atoms/Illustration/Illustration.tsx +28 -0
- package/src/components/atoms/Illustration/illustrations.ts +116 -0
- package/src/components/atoms/RatingStar/RatingStar.tsx +114 -0
- package/src/components/atoms/SegmentedButton/SegmentedButton.tsx +94 -0
- package/src/components/atoms/Slider/Slider.tsx +95 -0
- package/src/components/molecules/Calendar/CalendarInput.tsx +135 -0
- package/src/components/molecules/Calendar/DateTime.tsx +172 -0
- package/src/components/molecules/Calendar/TimePicker.tsx +174 -0
- package/src/components/molecules/LocationDropdown/LocationDropdown.tsx +234 -0
- package/src/components/molecules/LocationDropdown/index.ts +2 -0
- package/src/components/molecules/RatingTab/RatingTab.tsx +96 -0
- package/src/components/molecules/TabGroup/TabGroup.tsx +60 -0
- package/src/components/molecules/UserCard/UserCard.stories.tsx +2 -2
- package/src/components/organisms/CardContainer/CardContainer.tsx +66 -0
- package/src/components/organisms/DateTimePicker/DateTimePicker.tsx +110 -0
- package/src/components/organisms/Dialog/Dialog.tsx +352 -0
- package/src/components/organisms/PaxSelector/PaxSelector.tsx +979 -0
- package/src/components/organisms/RoundTrip/RoundTrip.tsx +335 -0
- package/src/components/organisms/RoundTrip/index.ts +2 -0
- package/src/components/organisms/SearchBarTransfer/SearchBarTransfer.tsx +388 -0
- package/src/components/organisms/SearchBarTransfer/index.ts +2 -0
- package/src/components/organisms/TransferLine/TransferLine.tsx +369 -0
- package/src/components/ui/button.tsx +60 -0
- package/src/components/ui/calendar.tsx +246 -0
- package/src/components/ui/popover.tsx +46 -0
- package/src/styles/components/calendar.css +86 -0
- package/src/styles/components/checkbox.css +130 -132
- package/src/styles/components/dropdown.css +40 -40
- package/src/styles/components/forms.css +51 -51
- package/src/styles/components/illustration.css +7 -0
- package/src/styles/components/molecule/calendarInput.css +157 -0
- package/src/styles/components/molecule/dateTime.css +14 -0
- package/src/styles/components/molecule/location-dropdown.css +204 -0
- package/src/styles/components/molecule/timePicker.css +79 -0
- package/src/styles/components/multiselect-dropdown.css +230 -231
- package/src/styles/components/organism/card-container.css +49 -0
- package/src/styles/components/organism/dialog.css +241 -0
- package/src/styles/components/organism/pax-selector.css +702 -0
- package/src/styles/components/organism/round-trip.css +55 -0
- package/src/styles/components/organism/search-bar-transfer.css +128 -0
- package/src/styles/components/organism/transfer-line.css +86 -0
- package/src/styles/components/rating-star.css +39 -0
- package/src/styles/components/rating-tab.css +83 -0
- package/src/styles/components/segmented-button.css +134 -0
- package/src/styles/components/selected-value.css +16 -16
- package/src/styles/components/slider.css +86 -0
- package/src/styles/components/typography.css +36 -36
- package/src/styles/tokens/tokens.css +1093 -1093
- package/dist/components/atoms/Typography/Heading/Heading.d.ts +0 -9
- package/dist/components/atoms/Typography/Heading/Heading.js +0 -25
- package/dist/components/atoms/Typography/Text/Text.d.ts +0 -10
- package/dist/components/atoms/Typography/Text/Text.js +0 -77
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
/* ===== Dialog Component ===== */
|
|
2
|
+
|
|
3
|
+
/* Dialog overlay - Semi-transparent backdrop */
|
|
4
|
+
.dialog-overlay {
|
|
5
|
+
@apply fixed inset-0 z-[1000] bg-black/50;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dialog-overlay--hidden {
|
|
9
|
+
@apply hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Dialog container - Centers the dialog */
|
|
13
|
+
.dialog {
|
|
14
|
+
@apply fixed inset-0 z-[1001] flex items-center justify-center p-4 pointer-events-none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dialog--hidden {
|
|
18
|
+
@apply hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Dialog content - The actual dialog box */
|
|
22
|
+
.dialog__content {
|
|
23
|
+
@apply relative flex flex-col bg-white overflow-hidden rounded-2xl max-h-[90vh] pointer-events-auto;
|
|
24
|
+
box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.15);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Size variants - Desktop */
|
|
28
|
+
.dialog__content--desktop {
|
|
29
|
+
@apply w-[78.4375rem] max-w-full;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Size variants - Tablet */
|
|
33
|
+
.dialog__content--tablet {
|
|
34
|
+
@apply w-[49.875rem] max-w-full;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Size variants - Mobile */
|
|
38
|
+
.dialog__content--mobile {
|
|
39
|
+
@apply w-[27.4375rem] max-w-full;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Size variants - Full width */
|
|
43
|
+
.dialog__content--full {
|
|
44
|
+
@apply w-full max-w-[78.4375rem];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ===== Dialog Header ===== */
|
|
48
|
+
.dialog__header {
|
|
49
|
+
@apply flex items-center justify-between flex-shrink-0 py-4 px-6;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dialog__header--mobile {
|
|
53
|
+
@apply py-3 px-4;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.dialog__title {
|
|
57
|
+
@apply font-bold text-[var(--color-text-default)] text-2xl leading-8;
|
|
58
|
+
font-family: var(--font-font-family-body, "Satoshi"), "Satoshi", "Inter", "Segoe UI", "system-ui", sans-serif;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.dialog__title--tablet {
|
|
62
|
+
@apply text-lg leading-6;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.dialog__title--mobile {
|
|
66
|
+
@apply text-base leading-5;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.dialog__close-button {
|
|
70
|
+
@apply flex items-center justify-center flex-shrink-0 transition-colors cursor-pointer w-[3.25rem] h-[3.25rem] rounded-lg border border-[var(--color-neutral-100)] bg-[var(--color-neutral-100)] text-[var(--color-black)];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.dialog__close-button:hover {
|
|
74
|
+
@apply border-[var(--color-neutral-200)];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.dialog__close-button:focus {
|
|
78
|
+
@apply border-[var(--color-neutral-200)];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* ===== Dialog Body ===== */
|
|
82
|
+
.dialog__body {
|
|
83
|
+
@apply flex-1 overflow-y-auto px-6 pb-4 pt-0;
|
|
84
|
+
font-family: var(--font-font-family-body, "Satoshi"), "Satoshi", "Inter", "Segoe UI", "system-ui", sans-serif;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.dialog__body--mobile {
|
|
88
|
+
@apply px-4 pb-3 pt-0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.dialog__body-content {
|
|
92
|
+
@apply flex flex-col gap-4;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Form content styles within dialog */
|
|
96
|
+
.dialog__form-field {
|
|
97
|
+
@apply flex flex-col gap-2;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dialog__form-label {
|
|
101
|
+
@apply text-sm font-medium text-[var(--color-text-default)];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.dialog__form-input {
|
|
105
|
+
@apply w-full px-4 py-3 text-sm rounded-lg border border-[var(--color-border-input-default)] bg-[#f8f7f4] text-[var(--color-text-default)];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.dialog__form-input::placeholder {
|
|
109
|
+
@apply text-[var(--color-text-light)];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dialog__form-input:focus {
|
|
113
|
+
@apply outline-none border-[var(--color-border-input-focused)];
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* ===== Dialog Footer ===== */
|
|
117
|
+
.dialog__footer {
|
|
118
|
+
@apply flex items-center justify-end flex-shrink-0 py-4 px-6 gap-4;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.dialog__footer--mobile {
|
|
122
|
+
@apply flex-col py-3 px-4;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.dialog__footer-buttons {
|
|
126
|
+
@apply flex items-center gap-4;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.dialog__footer-buttons--mobile {
|
|
130
|
+
@apply w-full;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.dialog__footer-buttons--mobile .button {
|
|
134
|
+
@apply flex-1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* ===== Animation States ===== */
|
|
138
|
+
.dialog-overlay--entering,
|
|
139
|
+
.dialog--entering {
|
|
140
|
+
animation: fadeIn 200ms ease-out forwards;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.dialog-overlay--exiting,
|
|
144
|
+
.dialog--exiting {
|
|
145
|
+
animation: fadeOut 150ms ease-in forwards;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.dialog__content--entering {
|
|
149
|
+
animation: slideUp 200ms ease-out forwards;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.dialog__content--exiting {
|
|
153
|
+
animation: slideDown 150ms ease-in forwards;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@keyframes fadeIn {
|
|
157
|
+
from {
|
|
158
|
+
@apply opacity-0;
|
|
159
|
+
}
|
|
160
|
+
to {
|
|
161
|
+
@apply opacity-100;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@keyframes fadeOut {
|
|
166
|
+
from {
|
|
167
|
+
@apply opacity-100;
|
|
168
|
+
}
|
|
169
|
+
to {
|
|
170
|
+
@apply opacity-0;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@keyframes slideUp {
|
|
175
|
+
from {
|
|
176
|
+
@apply opacity-0;
|
|
177
|
+
transform: translateY(1.25rem) scale(0.95);
|
|
178
|
+
}
|
|
179
|
+
to {
|
|
180
|
+
@apply opacity-100;
|
|
181
|
+
transform: translateY(0) scale(1);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@keyframes slideDown {
|
|
186
|
+
from {
|
|
187
|
+
@apply opacity-100;
|
|
188
|
+
transform: translateY(0) scale(1);
|
|
189
|
+
}
|
|
190
|
+
to {
|
|
191
|
+
@apply opacity-0;
|
|
192
|
+
transform: translateY(1.25rem) scale(0.95);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* ===== Responsive Adjustments ===== */
|
|
197
|
+
@media (max-width: 768px) {
|
|
198
|
+
.dialog__content--responsive {
|
|
199
|
+
@apply w-full max-w-[27.4375rem];
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.dialog__header--responsive {
|
|
203
|
+
@apply py-3 px-4;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.dialog__title--responsive {
|
|
207
|
+
@apply leading-5;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.dialog__body--responsive {
|
|
211
|
+
@apply px-4 pb-3 pt-0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.dialog__footer--responsive {
|
|
215
|
+
@apply flex-col py-3 px-4;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.dialog__footer-buttons--responsive {
|
|
219
|
+
@apply w-full;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@media (min-width: 769px) and (max-width: 1024px) {
|
|
224
|
+
.dialog__content--responsive {
|
|
225
|
+
@apply w-[49.875rem] max-w-full;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.dialog__title--responsive {
|
|
229
|
+
@apply text-lg leading-6;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@media (min-width: 1025px) {
|
|
234
|
+
.dialog__content--responsive {
|
|
235
|
+
@apply w-[78.4375rem] max-w-full;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.dialog__title--responsive {
|
|
239
|
+
@apply text-2xl leading-8;
|
|
240
|
+
}
|
|
241
|
+
}
|