mautourco-components 0.2.46 → 0.2.48
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/molecules/AgeSelector/AgeSelector.d.ts +20 -0
- package/dist/components/molecules/AgeSelector/AgeSelector.js +84 -0
- package/dist/components/molecules/LocationDropdown/LocationDropdown.js +1 -1
- package/dist/components/molecules/Pagination/Pagination.css +27 -17
- package/dist/components/molecules/Pagination/Pagination.js +4 -4
- package/dist/components/organisms/PaxSelector/PaxSelector.d.ts +5 -0
- package/dist/components/organisms/PaxSelector/PaxSelector.js +100 -114
- package/dist/components/organisms/RoundTrip/RoundTrip.d.ts +2 -0
- package/dist/components/organisms/RoundTrip/RoundTrip.js +7 -7
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.d.ts +4 -0
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.js +19 -57
- package/dist/components/organisms/Table/Table.css +64 -53
- package/dist/components/organisms/Table/Table.d.ts +1 -0
- package/dist/components/organisms/Table/Table.js +2 -1
- package/dist/components/organisms/Table/columns/booking-columns.d.ts +1 -1
- package/dist/components/organisms/Table/columns/booking-columns.js +17 -2
- package/dist/components/organisms/Table/columns/index.d.ts +1 -1
- package/dist/components/organisms/TransferLine/TransferLine.d.ts +9 -5
- package/dist/components/organisms/TransferLine/TransferLine.js +52 -35
- package/dist/index.d.ts +19 -16
- package/dist/index.js +3 -1
- package/dist/styles/components/molecule/age-selector.css +216 -0
- package/dist/styles/components/molecule/calendarInput.css +25 -6
- package/dist/styles/components/molecule/location-dropdown.css +16 -4
- package/dist/styles/components/organism/pax-selector.css +27 -189
- package/dist/styles/components/organism/transfer-line.css +40 -0
- package/dist/styles/mautourco.css +1 -0
- package/package.json +1 -1
- package/src/components/molecules/AgeSelector/AgeSelector.tsx +172 -0
- package/src/components/molecules/LocationDropdown/LocationDropdown.tsx +1 -1
- package/src/components/molecules/Pagination/Pagination.css +27 -18
- package/src/components/molecules/Pagination/Pagination.tsx +9 -13
- package/src/components/organisms/PaxSelector/PaxSelector.tsx +132 -208
- package/src/components/organisms/RoundTrip/RoundTrip.tsx +7 -0
- package/src/components/organisms/SearchBarTransfer/SearchBarTransfer.tsx +34 -54
- package/src/components/organisms/Table/Table.css +64 -53
- package/src/components/organisms/Table/Table.tsx +22 -1
- package/src/components/organisms/Table/columns/booking-columns.tsx +40 -13
- package/src/components/organisms/TransferLine/TransferLine.tsx +107 -85
- package/src/styles/components/molecule/age-selector.css +136 -0
- package/src/styles/components/molecule/calendarInput.css +12 -4
- package/src/styles/components/molecule/location-dropdown.css +9 -2
- package/src/styles/components/organism/pax-selector.css +25 -186
- package/src/styles/components/organism/transfer-line.css +31 -0
package/dist/index.d.ts
CHANGED
|
@@ -17,8 +17,9 @@ export { DateDisplay } from './components/molecules/DateDisplay/DateDisplay';
|
|
|
17
17
|
export { DocketPrices } from './components/molecules/DocketPrices/DocketPrices';
|
|
18
18
|
export { PriceDisplay } from './components/molecules/PriceDisplay/PriceDisplay';
|
|
19
19
|
export { TransferDocket } from './components/molecules/TransferDocket/TransferDocket';
|
|
20
|
-
export { ActionDropdown, type ActionDropdownItem
|
|
20
|
+
export { ActionDropdown, type ActionDropdownItem } from './components/molecules/ActionDropdown/ActionDropdown';
|
|
21
21
|
export { AddItemButton } from './components/molecules/AddItemButton/AddItemButton';
|
|
22
|
+
export { default as AgeSelector } from './components/molecules/AgeSelector/AgeSelector';
|
|
22
23
|
export * from './components/molecules/BookingResume';
|
|
23
24
|
export { Breadcrumbs } from './components/molecules/Breadcrumbs/Breadcrumbs';
|
|
24
25
|
export { default as CalendarInput } from './components/molecules/Calendar/CalendarInput';
|
|
@@ -85,41 +86,43 @@ export { default as UserIcon } from './components/atoms/Icon/icons/User';
|
|
|
85
86
|
export { priceFormatter } from './lib/price-formatter';
|
|
86
87
|
export type { DividerProps } from './components/atoms/Divider/Divider';
|
|
87
88
|
export type { FeatureRowProps } from './components/molecules/FeatureRow/FeatureRow';
|
|
88
|
-
export type { LocationData, LocationDropdownProps, LocationGroup, LocationOption
|
|
89
|
-
export type { ServiceOption, ServiceSelectorProps, ServiceType
|
|
89
|
+
export type { LocationData, LocationDropdownProps, LocationGroup, LocationOption } from './components/molecules/LocationDropdown/LocationDropdown';
|
|
90
|
+
export type { ServiceOption, ServiceSelectorProps, ServiceType } from './components/molecules/ServiceSelector/ServiceSelector';
|
|
90
91
|
export type { StepperProps } from './components/molecules/Stepper/Stepper';
|
|
91
|
-
export type { CarBookingCardPriceRow, CarBookingCardProps, CarBookingCardSize, CarBookingCardState, CarBookingCardType
|
|
92
|
-
export type { CardContainerProps, CardContainerSpacing
|
|
92
|
+
export type { CarBookingCardPriceRow, CarBookingCardProps, CarBookingCardSize, CarBookingCardState, CarBookingCardType } from './components/organisms/CarBookingCard/CarBookingCard';
|
|
93
|
+
export type { CardContainerProps, CardContainerSpacing } from './components/organisms/CardContainer/CardContainer';
|
|
93
94
|
export type { DateTimePickerProps } from './components/organisms/DateTimePicker/DateTimePicker';
|
|
94
95
|
export type { DialogProps, DialogSize } from './components/organisms/Dialog/Dialog';
|
|
95
96
|
export type { FooterProps } from './components/organisms/Footer/Footer';
|
|
96
|
-
export type { DocketDetailsData, DocketServiceType, MultipleQuotationDocketProps
|
|
97
|
-
export
|
|
98
|
-
export type {
|
|
99
|
-
export type {
|
|
97
|
+
export type { DocketDetailsData, DocketServiceType, MultipleQuotationDocketProps } from './components/organisms/MultipleQuotationDocket';
|
|
98
|
+
export { CHILD_CATEGORY_AGES } from './components/organisms/PaxSelector/PaxSelector';
|
|
99
|
+
export type { ClientType, PaxData, PaxSelectorProps } from './components/organisms/PaxSelector/PaxSelector';
|
|
100
|
+
export type { RoundTripData, RoundTripProps, RoundTripTransfer } from './components/organisms/RoundTrip/RoundTrip';
|
|
101
|
+
export type { SearchBarTransferData, SearchBarTransferProps, TransferMode } from './components/organisms/SearchBarTransfer/SearchBarTransfer';
|
|
100
102
|
export type { TopNavigationProps } from './components/organisms/TopNavigation/TopNavigation';
|
|
101
|
-
export type { TransferLineData, TransferLineProps, TransferType
|
|
103
|
+
export type { TransferLineData, TransferLineProps, TransferType } from './components/organisms/TransferLine/TransferLine';
|
|
102
104
|
export type { CheckboxProps } from './components/atoms/Checkbox/Checkbox';
|
|
103
105
|
export type { InputProps } from './components/atoms/Inputs/Input/Input';
|
|
104
106
|
export type { AddItemButtonProps } from './components/molecules/AddItemButton/AddItemButton';
|
|
105
|
-
export type {
|
|
107
|
+
export type { AgeSelectorProps } from './components/molecules/AgeSelector/AgeSelector';
|
|
108
|
+
export type { BreadcrumbsItem, BreadcrumbsProps } from './components/molecules/Breadcrumbs/Breadcrumbs';
|
|
106
109
|
export type { DocketPricesProps } from './components/molecules/DocketPrices/DocketPrices';
|
|
107
110
|
export type { FromToProps } from './components/molecules/FromTo/FromTo';
|
|
108
111
|
export type { PaxChipsProps, PaxCount } from './components/molecules/PaxChips/PaxChips';
|
|
109
112
|
export type { PriceDisplayProps } from './components/molecules/PriceDisplay/PriceDisplay';
|
|
110
113
|
export type { SectionTitleProps } from './components/molecules/SectionTitle/SectionTitle';
|
|
111
|
-
export type { DetailsColProps, ItemColProps, RowAccommodationProps, RowExcursionProps, RowTransferProps
|
|
114
|
+
export type { DetailsColProps, ItemColProps, RowAccommodationProps, RowExcursionProps, RowTransferProps } from './components/molecules/TableServiceItem';
|
|
112
115
|
export type { ServiceAccommodationProps } from './components/molecules/TimelineItem/ServiceAccommodation';
|
|
113
116
|
export type { ServiceExcursionProps } from './components/molecules/TimelineItem/ServiceExcursion';
|
|
114
117
|
export type { ServiceTransferProps } from './components/molecules/TimelineItem/ServiceTransfer';
|
|
115
118
|
export type { TimelineHeaderProps } from './components/molecules/TimelineItem/TimelineHeader';
|
|
116
119
|
export type { ToastProps } from './components/molecules/Toast/Toast';
|
|
117
120
|
export type { TransferDocketProps } from './components/molecules/TransferDocket/TransferDocket';
|
|
118
|
-
export type { ComparisonData, DialogComparisonProps, MultiComparisonData
|
|
121
|
+
export type { ComparisonData, DialogComparisonProps, MultiComparisonData } from './components/organisms/DialogComparison/DialogComparison';
|
|
119
122
|
export type { DialogDeleteConfirmProps } from './components/organisms/DialogDeleteConfirm/DialogDeleteConfirm';
|
|
120
123
|
export type { DialogQuoteRenameProps } from './components/organisms/DialogQuoteRename/DialogQuoteRename';
|
|
121
124
|
export type { SelectedQuote } from './components/organisms/DialogSendingMail/DialogSendingMailMultiple/DialogSendingMailMultiple';
|
|
122
|
-
export type { FilterType, QuoteHeaderProps
|
|
123
|
-
export type { TimelineProps, TimelineServices
|
|
124
|
-
export type { AccomodationDocket as AccomodationDocketType, ExcursionDocket as ExcursionDocketType, OtherServiceDocket as OtherServiceDocketType, ServiceDocket as ServiceDocketType, TransferDocket as TransferDocketType
|
|
125
|
+
export type { FilterType, QuoteHeaderProps } from './components/organisms/QuoteHeader/QuoteHeader';
|
|
126
|
+
export type { TimelineProps, TimelineServices } from './components/organisms/Timeline/Timeline';
|
|
127
|
+
export type { AccomodationDocket as AccomodationDocketType, ExcursionDocket as ExcursionDocketType, OtherServiceDocket as OtherServiceDocketType, ServiceDocket as ServiceDocketType, TransferDocket as TransferDocketType } from './types/docket/services.types';
|
|
125
128
|
export * from './types/table';
|
package/dist/index.js
CHANGED
|
@@ -19,8 +19,9 @@ export { DocketPrices } from './components/molecules/DocketPrices/DocketPrices';
|
|
|
19
19
|
export { PriceDisplay } from './components/molecules/PriceDisplay/PriceDisplay';
|
|
20
20
|
export { TransferDocket } from './components/molecules/TransferDocket/TransferDocket';
|
|
21
21
|
// Molecules - Composed components
|
|
22
|
-
export { ActionDropdown
|
|
22
|
+
export { ActionDropdown } from './components/molecules/ActionDropdown/ActionDropdown';
|
|
23
23
|
export { AddItemButton } from './components/molecules/AddItemButton/AddItemButton';
|
|
24
|
+
export { default as AgeSelector } from './components/molecules/AgeSelector/AgeSelector';
|
|
24
25
|
export * from './components/molecules/BookingResume';
|
|
25
26
|
export { Breadcrumbs } from './components/molecules/Breadcrumbs/Breadcrumbs';
|
|
26
27
|
export { default as CalendarInput } from './components/molecules/Calendar/CalendarInput';
|
|
@@ -89,4 +90,5 @@ export { default as SettingsIcon } from './components/atoms/Icon/icons/Settings'
|
|
|
89
90
|
export { default as UserIcon } from './components/atoms/Icon/icons/User';
|
|
90
91
|
// Utils
|
|
91
92
|
export { priceFormatter } from './lib/price-formatter';
|
|
93
|
+
export { CHILD_CATEGORY_AGES } from './components/organisms/PaxSelector/PaxSelector';
|
|
92
94
|
export * from './types/table';
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/* AgeSelector Component Styles */
|
|
6
|
+
|
|
7
|
+
.age-selector {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
width: 5rem;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 0.5rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Label */
|
|
16
|
+
|
|
17
|
+
.age-selector__label {
|
|
18
|
+
font-size: 0.875rem;
|
|
19
|
+
line-height: 1.25rem;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
color: var(--dropdown-color-label-default,#262626);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.age-selector__required {
|
|
25
|
+
color: var(--chip-color-red-outline-foreground,#991b1b);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Container */
|
|
29
|
+
|
|
30
|
+
.age-selector__container {
|
|
31
|
+
position: relative;
|
|
32
|
+
width: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Input wrapper - matching Figma design */
|
|
36
|
+
|
|
37
|
+
.age-selector__input {
|
|
38
|
+
display: flex;
|
|
39
|
+
width: 100%;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
gap: 0.5rem;
|
|
43
|
+
border-radius: 0.75rem;
|
|
44
|
+
border-width: 1px;
|
|
45
|
+
--tw-border-opacity: 1;
|
|
46
|
+
border-color: rgb(38 38 38 / var(--tw-border-opacity, 1));
|
|
47
|
+
--tw-bg-opacity: 1;
|
|
48
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
49
|
+
padding-left: 1rem;
|
|
50
|
+
padding-right: 1rem;
|
|
51
|
+
padding-top: 0.75rem;
|
|
52
|
+
padding-bottom: 0.75rem;
|
|
53
|
+
transition-property: all;
|
|
54
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
55
|
+
transition-duration: 200ms;
|
|
56
|
+
cursor: default;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.age-selector__input:hover {
|
|
60
|
+
border-color: var(--dropdown-color-border-hover,#0f7173);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.age-selector__input--open {
|
|
64
|
+
border-color: var(--dropdown-color-border-hover,#0f7173);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.age-selector__input--default .age-selector__input-field::placeholder {
|
|
68
|
+
color: var(--dropdown-selector-color-filled-foreground-default,#737373);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Input field */
|
|
72
|
+
|
|
73
|
+
.age-selector__input-field {
|
|
74
|
+
flex: 1 1 0%;
|
|
75
|
+
border-style: none;
|
|
76
|
+
background-color: #ffffff00;
|
|
77
|
+
outline: 2px solid transparent;
|
|
78
|
+
outline-offset: 2px;
|
|
79
|
+
font-size: 0.875rem;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
line-height: 1.25rem;
|
|
82
|
+
color: var(--dropdown-color-foreground-value,#262626);
|
|
83
|
+
cursor: text;
|
|
84
|
+
min-width: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.age-selector__input-field::placeholder {
|
|
88
|
+
color: var(--dropdown-selector-color-filled-foreground-default,#737373);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Dropdown button */
|
|
92
|
+
|
|
93
|
+
.age-selector__dropdown-btn {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-shrink: 0;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
border-style: none;
|
|
100
|
+
background-color: #ffffff00;
|
|
101
|
+
margin: 0px;
|
|
102
|
+
padding: 0px;
|
|
103
|
+
transition-property: all;
|
|
104
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
105
|
+
transition-duration: 200ms;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.age-selector__dropdown-btn:hover {
|
|
109
|
+
opacity: 0.8;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Icon */
|
|
113
|
+
|
|
114
|
+
.age-selector__icon {
|
|
115
|
+
color: var(--color-text-default,#262626);
|
|
116
|
+
transition-property: transform;
|
|
117
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
118
|
+
transition-duration: 200ms;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.age-selector__icon--open {
|
|
122
|
+
--tw-rotate: 180deg;
|
|
123
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Dropdown menu */
|
|
127
|
+
|
|
128
|
+
.age-selector__dropdown {
|
|
129
|
+
position: absolute;
|
|
130
|
+
top: 100%;
|
|
131
|
+
left: 0px;
|
|
132
|
+
right: 0px;
|
|
133
|
+
margin-top: 0.25rem;
|
|
134
|
+
border-radius: 0.75rem;
|
|
135
|
+
border-width: 1px;
|
|
136
|
+
border-color: var(--color-border-subtle,#e5e5e5);
|
|
137
|
+
--tw-bg-opacity: 1;
|
|
138
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
139
|
+
max-height: 12rem;
|
|
140
|
+
overflow-y: auto;
|
|
141
|
+
z-index: 50;
|
|
142
|
+
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
143
|
+
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
144
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
145
|
+
animation: age-selector-dropdown-enter 0.15s ease-out;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@keyframes age-selector-dropdown-enter {
|
|
149
|
+
from {
|
|
150
|
+
opacity: 0;
|
|
151
|
+
transform: translateY(-4px);
|
|
152
|
+
}
|
|
153
|
+
to {
|
|
154
|
+
opacity: 1;
|
|
155
|
+
transform: translateY(0);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Dropdown option */
|
|
160
|
+
|
|
161
|
+
.age-selector__option {
|
|
162
|
+
width: 100%;
|
|
163
|
+
padding-left: 0.75rem;
|
|
164
|
+
padding-right: 0.75rem;
|
|
165
|
+
padding-top: 0.5rem;
|
|
166
|
+
padding-bottom: 0.5rem;
|
|
167
|
+
font-size: 0.875rem;
|
|
168
|
+
font-weight: 500;
|
|
169
|
+
line-height: 1.25rem;
|
|
170
|
+
color: var(--color-text-default,#262626);
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
--tw-bg-opacity: 1;
|
|
173
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
174
|
+
transition-property: all;
|
|
175
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
176
|
+
transition-duration: 150ms;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.age-selector__option:hover {
|
|
180
|
+
background-color: var(--dropdown-selector-color-select-item-background-hover,#115b5e);
|
|
181
|
+
--tw-text-opacity: 1;
|
|
182
|
+
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.age-selector__option--selected {
|
|
186
|
+
background-color: var(--dropdown-selector-color-select-item-background-selected,#0f7173);
|
|
187
|
+
--tw-text-opacity: 1;
|
|
188
|
+
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.age-selector__option--selected:hover {
|
|
192
|
+
background-color: var(--dropdown-selector-color-select-item-background-selected,#0f7173);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Scrollbar styling */
|
|
196
|
+
|
|
197
|
+
.age-selector__dropdown::-webkit-scrollbar {
|
|
198
|
+
width: 0.375rem;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.age-selector__dropdown::-webkit-scrollbar-track {
|
|
202
|
+
border-radius: 0.25rem;
|
|
203
|
+
--tw-bg-opacity: 1;
|
|
204
|
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.age-selector__dropdown::-webkit-scrollbar-thumb {
|
|
208
|
+
border-radius: 0.25rem;
|
|
209
|
+
--tw-bg-opacity: 1;
|
|
210
|
+
background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.age-selector__dropdown::-webkit-scrollbar-thumb:hover {
|
|
214
|
+
--tw-bg-opacity: 1;
|
|
215
|
+
background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
|
|
216
|
+
}
|
|
@@ -234,23 +234,42 @@
|
|
|
234
234
|
/* Disabled state */
|
|
235
235
|
|
|
236
236
|
.calendar-input--disabled {
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
cursor: not-allowed;
|
|
238
|
+
--tw-border-opacity: 1;
|
|
239
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
|
|
240
|
+
--tw-bg-opacity: 1;
|
|
241
|
+
background-color: rgb(251 251 251 / var(--tw-bg-opacity, 1));
|
|
239
242
|
}
|
|
240
243
|
|
|
241
244
|
.calendar-input--disabled .calendar-input__field {
|
|
242
245
|
cursor: not-allowed;
|
|
243
|
-
|
|
246
|
+
--tw-text-opacity: 1;
|
|
247
|
+
color: rgb(163 163 163 / var(--tw-text-opacity, 1));
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.calendar-input--disabled .calendar-input__field::placeholder {
|
|
251
|
+
--tw-text-opacity: 1;
|
|
252
|
+
color: rgb(163 163 163 / var(--tw-text-opacity, 1));
|
|
244
253
|
}
|
|
245
254
|
|
|
246
255
|
.calendar-input--disabled .calendar-input__icon-button {
|
|
256
|
+
cursor: not-allowed;
|
|
247
257
|
background-image: none !important;
|
|
248
|
-
|
|
258
|
+
--tw-text-opacity: 1 !important;
|
|
259
|
+
color: rgb(163 163 163 / var(--tw-text-opacity, 1)) !important;
|
|
249
260
|
}
|
|
250
261
|
|
|
251
262
|
.calendar-input--disabled .calendar-input__icon-button--full-bg {
|
|
252
|
-
|
|
253
|
-
|
|
263
|
+
cursor: not-allowed;
|
|
264
|
+
--tw-bg-opacity: 1 !important;
|
|
265
|
+
background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1)) !important;
|
|
266
|
+
--tw-text-opacity: 1 !important;
|
|
267
|
+
color: rgb(163 163 163 / var(--tw-text-opacity, 1)) !important;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.calendar-input--disabled .calendar-input__chevron {
|
|
271
|
+
--tw-text-opacity: 1;
|
|
272
|
+
color: rgb(163 163 163 / var(--tw-text-opacity, 1));
|
|
254
273
|
}
|
|
255
274
|
|
|
256
275
|
/* Responsive design */
|
|
@@ -132,15 +132,27 @@
|
|
|
132
132
|
|
|
133
133
|
.location-dropdown__input--disabled {
|
|
134
134
|
cursor: not-allowed;
|
|
135
|
-
border-
|
|
136
|
-
|
|
137
|
-
opacity:
|
|
135
|
+
--tw-border-opacity: 1;
|
|
136
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
|
|
137
|
+
--tw-bg-opacity: 1;
|
|
138
|
+
background-color: rgb(251 251 251 / var(--tw-bg-opacity, 1));
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
.location-dropdown__input--disabled .location-dropdown__input-text,
|
|
141
142
|
.location-dropdown__input--disabled .location-dropdown__input-icon,
|
|
142
143
|
.location-dropdown__input--disabled .location-dropdown__input-chevron {
|
|
143
|
-
|
|
144
|
+
--tw-text-opacity: 1;
|
|
145
|
+
color: rgb(163 163 163 / var(--tw-text-opacity, 1));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Disabled label - override all text elements */
|
|
149
|
+
|
|
150
|
+
.location-dropdown--disabled .location-dropdown__label,
|
|
151
|
+
.location-dropdown--disabled .location-dropdown__label p,
|
|
152
|
+
.location-dropdown--disabled .location-dropdown__label * {
|
|
153
|
+
font-weight: 400 !important;
|
|
154
|
+
--tw-text-opacity: 1 !important;
|
|
155
|
+
color: rgb(163 163 163 / var(--tw-text-opacity, 1)) !important;
|
|
144
156
|
}
|
|
145
157
|
|
|
146
158
|
/* Dropdown Panel */
|
|
@@ -102,6 +102,31 @@
|
|
|
102
102
|
transform: rotate(180deg)!important;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
/* Disabled state */
|
|
106
|
+
|
|
107
|
+
.pax-selector--disabled .pax-selector__label {
|
|
108
|
+
color: #a3a3a3;
|
|
109
|
+
font-weight: 400;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.pax-selector--disabled .pax-selector__input {
|
|
113
|
+
background: #fbfbfb;
|
|
114
|
+
border-color: #d1d5db;
|
|
115
|
+
cursor: not-allowed;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.pax-selector--disabled .pax-selector__input-icon,
|
|
119
|
+
.pax-selector--disabled .pax-selector__input-text,
|
|
120
|
+
.pax-selector--disabled .pax-selector__chevron {
|
|
121
|
+
color: #a3a3a3;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.pax-selector__input--disabled {
|
|
125
|
+
background: #fbfbfb;
|
|
126
|
+
border-color: #d1d5db;
|
|
127
|
+
cursor: not-allowed;
|
|
128
|
+
}
|
|
129
|
+
|
|
105
130
|
/* Dropdown Panel */
|
|
106
131
|
|
|
107
132
|
.pax-selector__dropdown {
|
|
@@ -413,187 +438,6 @@
|
|
|
413
438
|
z-index: 50;
|
|
414
439
|
}
|
|
415
440
|
|
|
416
|
-
/* Age Selector Styles */
|
|
417
|
-
|
|
418
|
-
.pax-selector__age-selector {
|
|
419
|
-
display: flex;
|
|
420
|
-
flex-direction: column;
|
|
421
|
-
gap: 8px;
|
|
422
|
-
width: 80px;
|
|
423
|
-
position: relative;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.pax-selector__age-label {
|
|
427
|
-
font-family: var(--typography-body-family, 'Satoshi', sans-serif);
|
|
428
|
-
font-weight: var(--font-weight-font-normal, 400);
|
|
429
|
-
font-size: 14px;
|
|
430
|
-
line-height: 20px;
|
|
431
|
-
color: var(--dropdown-color-label-default, #262626);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.pax-selector__age-required {
|
|
435
|
-
color: var(--chip-color-red-outline-foreground, #991b1b);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
/* Age Selector using DropdownInput structure */
|
|
439
|
-
|
|
440
|
-
.pax-selector__age-dropdown-container {
|
|
441
|
-
width: 100%;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.pax-selector__age-dropdown-input {
|
|
445
|
-
min-height: auto;
|
|
446
|
-
padding: 12px 8px 12px 16px;
|
|
447
|
-
border: 1px solid var(--dropdown-color-border-value, #262626);
|
|
448
|
-
border-radius: 12px;
|
|
449
|
-
cursor: default;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
.pax-selector__age-dropdown-input:hover {
|
|
453
|
-
border-color: var(--dropdown-color-border-hover, #0f7173);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.pax-selector__age-dropdown-input:focus-within {
|
|
457
|
-
border-color: var(--dropdown-color-border-hover, #0f7173);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
.pax-selector__age-input-text {
|
|
461
|
-
padding: 0;
|
|
462
|
-
background: transparent;
|
|
463
|
-
border: none;
|
|
464
|
-
outline: none;
|
|
465
|
-
font-family: var(--font-font-family-body, "Satoshi"), "Satoshi", "Inter", "Segoe UI", "system-ui", sans-serif;
|
|
466
|
-
font-weight: var(--font-weight-font-medium, 500);
|
|
467
|
-
font-size: 14px;
|
|
468
|
-
line-height: 20px;
|
|
469
|
-
color: var(--dropdown-color-foreground-value, #262626);
|
|
470
|
-
white-space: nowrap;
|
|
471
|
-
overflow: visible;
|
|
472
|
-
text-overflow: clip;
|
|
473
|
-
cursor: text;
|
|
474
|
-
width: 100%;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.pax-selector__age-input-text::placeholder {
|
|
478
|
-
color: var(--dropdown-selector-color-filled-foreground-default, #737373);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
.pax-selector__age-dropdown-btn {
|
|
482
|
-
display: flex;
|
|
483
|
-
align-items: center;
|
|
484
|
-
justify-content: center;
|
|
485
|
-
padding: 0;
|
|
486
|
-
margin-left: 8px;
|
|
487
|
-
background: transparent;
|
|
488
|
-
border: none;
|
|
489
|
-
cursor: pointer;
|
|
490
|
-
transition: all 0.2s ease;
|
|
491
|
-
flex-shrink: 0;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
.pax-selector__age-dropdown-btn:hover {
|
|
495
|
-
opacity: 0.8;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
.pax-selector__age-dropdown-btn .dropdown-input__icon--chevron {
|
|
499
|
-
transition: transform 0.2s ease;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
.pax-selector__age-dropdown-input--open .pax-selector__age-dropdown-btn .dropdown-input__icon--chevron {
|
|
503
|
-
transform: rotate(180deg);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
.pax-selector__age-trigger {
|
|
507
|
-
display: flex;
|
|
508
|
-
align-items: center;
|
|
509
|
-
justify-content: space-between;
|
|
510
|
-
gap: 8px;
|
|
511
|
-
width: 100%;
|
|
512
|
-
padding: 12px 16px;
|
|
513
|
-
background: var(--dropdown-color-background-value, #ffffff);
|
|
514
|
-
border: 1px solid var(--dropdown-color-border-value, #262626);
|
|
515
|
-
border-radius: 12px;
|
|
516
|
-
cursor: pointer;
|
|
517
|
-
font-family: var(--font-font-family-body, "Satoshi"), "Satoshi", "Inter", "Segoe UI", "system-ui", sans-serif;
|
|
518
|
-
font-weight: var(--font-weight-font-medium, 500);
|
|
519
|
-
font-size: 14px;
|
|
520
|
-
line-height: 20px;
|
|
521
|
-
color: var(--dropdown-color-foreground-value, #262626);
|
|
522
|
-
transition: all 0.2s ease;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
.pax-selector__age-trigger:hover {
|
|
526
|
-
border-color: var(--dropdown-color-border-hover, #0f7173);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
.pax-selector__age-value {
|
|
530
|
-
flex: 1;
|
|
531
|
-
text-align: left;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
.pax-selector__age-chevron {
|
|
535
|
-
color: var(--color-text-default, #262626);
|
|
536
|
-
transition: transform 0.2s ease;
|
|
537
|
-
flex-shrink: 0;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
.pax-selector__age-chevron--open {
|
|
541
|
-
transform: rotate(180deg);
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
/* Use dropdown-menu from dropdown.css, but add custom styles for age selector */
|
|
545
|
-
|
|
546
|
-
.pax-selector__age-dropdown-container .dropdown-menu {
|
|
547
|
-
max-height: 200px;
|
|
548
|
-
z-index: 110;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
.pax-selector__age-dropdown-container .dropdown-option--selected {
|
|
552
|
-
background-color: var(--dropdown-selector-color-select-item-background-selected, #0f7173);
|
|
553
|
-
color: #ffffff;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.pax-selector__age-dropdown-container .dropdown-option--selected:hover {
|
|
557
|
-
background-color: var(--dropdown-selector-color-select-item-background-selected, #0f7173);
|
|
558
|
-
color: #ffffff;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
@keyframes pax-selector-age-dropdown-enter {
|
|
562
|
-
from {
|
|
563
|
-
opacity: 0;
|
|
564
|
-
transform: translateY(-4px);
|
|
565
|
-
}
|
|
566
|
-
to {
|
|
567
|
-
opacity: 1;
|
|
568
|
-
transform: translateY(0);
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
.pax-selector__age-option {
|
|
573
|
-
width: 100%;
|
|
574
|
-
padding: 8px 12px;
|
|
575
|
-
background: var(--dropdown-selector-color-select-item-background-default, #ffffff);
|
|
576
|
-
border: none;
|
|
577
|
-
cursor: pointer;
|
|
578
|
-
text-align: left;
|
|
579
|
-
font-family: var(--font-font-family-body, "Satoshi"), "Satoshi", "Inter", "Segoe UI", "system-ui", sans-serif;
|
|
580
|
-
font-weight: 400;
|
|
581
|
-
font-size: 14px;
|
|
582
|
-
line-height: 20px;
|
|
583
|
-
color: var(--color-text-default, #262626);
|
|
584
|
-
transition: all 0.2s ease;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
.pax-selector__age-option:hover {
|
|
588
|
-
background: var(--dropdown-selector-color-select-item-background-hover, #115b5e);
|
|
589
|
-
color: #ffffff;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.pax-selector__age-option--selected {
|
|
593
|
-
background: var(--dropdown-selector-color-select-item-background-selected, #0f7173);
|
|
594
|
-
color: #ffffff;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
441
|
/* Age Section */
|
|
598
442
|
|
|
599
443
|
.pax-selector__age-section {
|
|
@@ -610,14 +454,8 @@
|
|
|
610
454
|
|
|
611
455
|
.pax-selector__age-groups {
|
|
612
456
|
display: flex;
|
|
613
|
-
flex-
|
|
614
|
-
gap:
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
.pax-selector__age-row {
|
|
618
|
-
display: flex;
|
|
619
|
-
gap: 16px;
|
|
620
|
-
align-items: flex-start;
|
|
457
|
+
flex-wrap: wrap;
|
|
458
|
+
gap: 1rem;
|
|
621
459
|
}
|
|
622
460
|
|
|
623
461
|
/* Multiple Rooms Styles */
|
|
@@ -137,4 +137,44 @@
|
|
|
137
137
|
|
|
138
138
|
.transfer-line__date-picker {
|
|
139
139
|
height: 2.75rem;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Disabled state */
|
|
143
|
+
|
|
144
|
+
.transfer-line--disabled {
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.transfer-line--disabled .transfer-line__field-label {
|
|
149
|
+
font-weight: 400;
|
|
150
|
+
--tw-text-opacity: 1;
|
|
151
|
+
color: rgb(163 163 163 / var(--tw-text-opacity, 1));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Match Figma design colors for disabled inputs */
|
|
155
|
+
|
|
156
|
+
.transfer-line--disabled .location-dropdown__input,
|
|
157
|
+
.transfer-line--disabled .calendar-input,
|
|
158
|
+
.transfer-line--disabled .pax-selector__input {
|
|
159
|
+
--tw-border-opacity: 1;
|
|
160
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
|
|
161
|
+
--tw-bg-opacity: 1;
|
|
162
|
+
background-color: rgb(251 251 251 / var(--tw-bg-opacity, 1));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.transfer-line--disabled .location-dropdown__label,
|
|
166
|
+
.transfer-line--disabled .location-dropdown__label p,
|
|
167
|
+
.transfer-line--disabled .location-dropdown__input-text,
|
|
168
|
+
.transfer-line--disabled .location-dropdown__input-icon,
|
|
169
|
+
.transfer-line--disabled .location-dropdown__input-chevron,
|
|
170
|
+
.transfer-line--disabled .calendar-input__field,
|
|
171
|
+
.transfer-line--disabled .calendar-input__icon-button,
|
|
172
|
+
.transfer-line--disabled .calendar-input__chevron,
|
|
173
|
+
.transfer-line--disabled .pax-selector__input-icon,
|
|
174
|
+
.transfer-line--disabled .pax-selector__input-text,
|
|
175
|
+
.transfer-line--disabled .pax-selector__chevron,
|
|
176
|
+
.transfer-line--disabled .pax-selector__label {
|
|
177
|
+
font-weight: 400 !important;
|
|
178
|
+
--tw-text-opacity: 1 !important;
|
|
179
|
+
color: rgb(163 163 163 / var(--tw-text-opacity, 1)) !important;
|
|
140
180
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
@import "./components/forms.css";
|
|
11
11
|
@import "./components/illustration.css";
|
|
12
12
|
@import "./components/molecule/accomodation-docket.css";
|
|
13
|
+
@import "./components/molecule/age-selector.css";
|
|
13
14
|
@import "./components/molecule/calendarInput.css";
|
|
14
15
|
@import "./components/molecule/dateTime.css";
|
|
15
16
|
@import "./components/molecule/docket-prices.css";
|