mautourco-components 0.1.2 → 0.2.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 +10 -6
- 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/dist/styles/components/avatar.css +2165 -0
- package/dist/styles/components/calendar.css +2214 -0
- package/dist/styles/components/checkbox.css +2212 -0
- package/dist/styles/components/dropdown.css +2295 -0
- package/dist/styles/components/forms.css +2229 -0
- package/dist/styles/components/illustration.css +2081 -0
- package/dist/styles/components/molecule/calendarInput.css +2308 -0
- package/dist/styles/components/molecule/dateTime.css +2092 -0
- package/dist/styles/components/molecule/location-dropdown.css +2405 -0
- package/dist/styles/components/molecule/timePicker.css +2204 -0
- package/dist/styles/components/multiselect-dropdown.css +2312 -0
- package/dist/styles/components/organism/card-container.css +2128 -0
- package/dist/styles/components/organism/dialog.css +2441 -0
- package/dist/styles/components/organism/footer.css +2387 -0
- package/dist/styles/components/organism/pax-selector.css +2800 -0
- package/dist/styles/components/organism/round-trip.css +2143 -0
- package/dist/styles/components/organism/search-bar-transfer.css +2258 -0
- package/dist/styles/components/organism/topnavigation.css +2499 -0
- package/dist/styles/components/organism/transfer-line.css +2208 -0
- package/dist/styles/components/rating-star.css +2113 -0
- package/dist/styles/components/rating-tab.css +2157 -0
- package/dist/styles/components/scrollbar.css +2143 -0
- package/dist/styles/components/segmented-button.css +2218 -0
- package/dist/styles/components/selected-value.css +2159 -0
- package/dist/styles/components/slider.css +2164 -0
- package/dist/styles/components/typography.css +2417 -0
- package/dist/styles/tokens/_tokens.scss +2072 -0
- package/dist/styles/tokens/tokens.css +2075 -0
- package/package.json +24 -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,46 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover"
|
|
3
|
+
|
|
4
|
+
import { cn } from "../../lib/utils"
|
|
5
|
+
|
|
6
|
+
function Popover({
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
|
|
9
|
+
return <PopoverPrimitive.Root data-slot="popover" {...props} />
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function PopoverTrigger({
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {
|
|
15
|
+
return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function PopoverContent({
|
|
19
|
+
className,
|
|
20
|
+
align = "center",
|
|
21
|
+
sideOffset = 4,
|
|
22
|
+
...props
|
|
23
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Content>) {
|
|
24
|
+
return (
|
|
25
|
+
<PopoverPrimitive.Portal>
|
|
26
|
+
<PopoverPrimitive.Content
|
|
27
|
+
data-slot="popover-content"
|
|
28
|
+
align={align}
|
|
29
|
+
sideOffset={sideOffset}
|
|
30
|
+
className={cn(
|
|
31
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
32
|
+
className
|
|
33
|
+
)}
|
|
34
|
+
{...props}
|
|
35
|
+
/>
|
|
36
|
+
</PopoverPrimitive.Portal>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function PopoverAnchor({
|
|
41
|
+
...props
|
|
42
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {
|
|
43
|
+
return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* Tailwind utilities for react-day-picker range highlighting */
|
|
2
|
+
|
|
3
|
+
button[data-selected-single="true"],
|
|
4
|
+
button[data-range-start="true"],
|
|
5
|
+
button[data-range-end="true"] {
|
|
6
|
+
background-color: var(--sandy-brown-400, #ffab63);
|
|
7
|
+
color: var(--neutral-900, #171717);
|
|
8
|
+
border-radius: 0.375rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
button[data-range-middle="true"] {
|
|
12
|
+
background-color: var(--sandy-brown-200, #ffebd4);
|
|
13
|
+
color: var(--neutral-900, #171717);
|
|
14
|
+
border-radius: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
button[data-today="true"] {
|
|
18
|
+
box-shadow: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
button[aria-pressed][data-range-start="true"],
|
|
22
|
+
button[aria-pressed][data-range-end="true"],
|
|
23
|
+
button[aria-pressed][data-selected-single="true"] {
|
|
24
|
+
outline: 2px solid var(--ring, rgba(0, 0, 0, 0.12));
|
|
25
|
+
outline-offset: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.calendar--weekday {
|
|
29
|
+
@apply !text-[var(--color-text-light)] text-sm !text-center !font-[var(--font-weight-font-black)] leading-[14px] tracking-[0];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.calendar--weekday[aria-label="Sunday"],
|
|
33
|
+
.calendar--weekday[aria-label="Saturday"] {
|
|
34
|
+
@apply !text-[var(--color-text-brand)]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.calendar--dropdown {
|
|
38
|
+
@apply p-6 border rounded-lg shadow-sm w-fit bg-[var(--color-zinc-50)] opacity-100 border-[var(--color-neutral-400)];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.calendar--separator {
|
|
42
|
+
@apply border-[var(--color-surface-300)];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.calendar--caption_label {
|
|
46
|
+
@apply text-[var(--color-text-default)] !text-center !text-lg font-bold leading-6 tracking-[var(--font-tracking-tracking-normal)]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.calendar--time_container_separated {
|
|
50
|
+
@apply pt-6 border-t-[var(--color-surface-300)];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.calendar--footer {
|
|
54
|
+
@apply border-t-[1px] border-t-[var(--color-surface-300)] pt-6 mt-6 flex justify-between text-[var(--color-stone-600)] text-sm font-bold leading-5 tracking-normal;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.calendar--footer--button {
|
|
58
|
+
@apply !px-0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.rdp-day {
|
|
62
|
+
@apply !w-10 !h-9 leading-9 p-0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.rdp-day[data-range-start="true"] {
|
|
66
|
+
@apply !rounded-l-full !rounded-r-none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.rdp-day[data-range-end="true"] {
|
|
70
|
+
@apply !rounded-l-none !rounded-r-full;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.rdp-day[data-range-start="true"][data-range-end="true"] {
|
|
74
|
+
@apply !rounded-full;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.rdp-day[data-range-start="true"],
|
|
78
|
+
.rdp-day[data-range-end="true"] {
|
|
79
|
+
@apply !bg-[var(--color-orange-100)] text-white;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.rdp-day[data-range-start="true"]::before,
|
|
83
|
+
.rdp-day[data-range-end="true"]::before {
|
|
84
|
+
@apply absolute w-8 h-8 rounded-full bg-[var(--color-sandy-brown-600)] z-10 left-1/2 transform -translate-x-1/2;
|
|
85
|
+
content: "";
|
|
86
|
+
}
|
|
@@ -1,132 +1,130 @@
|
|
|
1
|
-
/* Checkbox Component Styles */
|
|
2
|
-
.checkbox-container {
|
|
3
|
-
display: inline-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
outline: none;
|
|
132
|
-
}
|
|
1
|
+
/* Checkbox Component Styles - Based on Figma design specs */
|
|
2
|
+
.checkbox-container {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.checkbox-input {
|
|
9
|
+
position: absolute;
|
|
10
|
+
opacity: 0;
|
|
11
|
+
width: 0;
|
|
12
|
+
height: 0;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.checkbox-label {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
column-gap: var(--checkbox-spacing-inline-gap, var(--multiselect-spacing-option-icon-gap, 0.625rem));
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
user-select: none;
|
|
24
|
+
width: 100%;
|
|
25
|
+
padding: var(--checkbox-spacing-label-padding, 0.5rem 0.75rem);
|
|
26
|
+
border-radius: var(--checkbox-border-radius, 0.375rem);
|
|
27
|
+
transition: all var(--checkbox-transition-duration, 0.2s) var(--checkbox-transition-timing, ease-in-out);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.checkbox-box {
|
|
31
|
+
position: relative;
|
|
32
|
+
width: var(--checkbox-size-box-width, 1.25rem);
|
|
33
|
+
height: var(--checkbox-size-box-height, 1.25rem);
|
|
34
|
+
border: 1px solid var(--color-gray-500);
|
|
35
|
+
border-radius: var(--checkbox-size-box-border-radius, 0.125rem);
|
|
36
|
+
background-color: var(--color-white);
|
|
37
|
+
opacity: var(--opacity-opacity-100);
|
|
38
|
+
top: var(--checkbox-position-top, 0.125rem);
|
|
39
|
+
left: var(--checkbox-position-left, 0.125rem);
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
transition: all var(--checkbox-transition-duration, 0.2s) var(--checkbox-transition-timing, ease-in-out);
|
|
44
|
+
flex-shrink: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.checkbox-text {
|
|
48
|
+
margin-left: 0;
|
|
49
|
+
font-family: var(--checkbox-typography-fontFamily, 'Inter', sans-serif);
|
|
50
|
+
font-size: var(--checkbox-typography-fontSize, 0.875rem);
|
|
51
|
+
line-height: var(--checkbox-typography-lineHeight, 1.25rem);
|
|
52
|
+
color: var(--color-gray-900);
|
|
53
|
+
transition: color var(--checkbox-transition-duration, 0.2s) var(--checkbox-transition-timing, ease-in-out);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.checkbox-leading {
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.checkbox-icon {
|
|
63
|
+
color: var(--color-atoll-green-800);
|
|
64
|
+
width: var(--checkbox-size-icon-width, 0.875rem);
|
|
65
|
+
height: var(--checkbox-size-icon-height, 0.875rem);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* States */
|
|
69
|
+
.checkbox--default .checkbox-label:hover {
|
|
70
|
+
background-color: var(--color-slate-50);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.checkbox--default .checkbox-label:hover .checkbox-box {
|
|
74
|
+
background-color: var(--color-slate-100);
|
|
75
|
+
border-color: var(--color-slate-400);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.checkbox--checked .checkbox-box {
|
|
79
|
+
background-color: var(--color-transparent);
|
|
80
|
+
border-color: var(--checkbox-border-radius, 0.125rem);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.checkbox--checked .checkbox-label {
|
|
84
|
+
background-color: transparent;
|
|
85
|
+
border-radius: var(--checkbox-border-radius, 0.125rem);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.checkbox--error .checkbox-box {
|
|
89
|
+
background-color: var(--color-red-50);
|
|
90
|
+
border-color: var(--color-red-500);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.checkbox--error .checkbox-text {
|
|
94
|
+
color: var(--color-red-600);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.checkbox--error .checkbox-label {
|
|
98
|
+
background-color: var(--color-red-50);
|
|
99
|
+
border-radius: var(--checkbox-border-radius, 0.125rem);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Disabled State */
|
|
103
|
+
.checkbox--disabled .checkbox-label {
|
|
104
|
+
cursor: not-allowed;
|
|
105
|
+
background-color: var(--color-transparent);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.checkbox--disabled .checkbox-box {
|
|
109
|
+
background-color: var(--color-slate-100);
|
|
110
|
+
border-color: var(--color-slate-200);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.checkbox--disabled .checkbox-text {
|
|
114
|
+
color: var(--color-slate-400);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.checkbox--disabled .checkbox-icon {
|
|
118
|
+
color: var(--color-slate-400);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Focus styles */
|
|
122
|
+
.checkbox-input:focus + .checkbox-label .checkbox-box {
|
|
123
|
+
outline: 2px solid var(--color-atoll-green-800);
|
|
124
|
+
outline-offset: 2px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Disabled focus */
|
|
128
|
+
.checkbox--disabled .checkbox-input:focus + .checkbox-label .checkbox-box {
|
|
129
|
+
outline: none;
|
|
130
|
+
}
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
width: 100%;
|
|
13
13
|
min-height: 40px;
|
|
14
14
|
padding: 8px 12px;
|
|
15
|
-
border: 1px solid var(--
|
|
16
|
-
border-radius:
|
|
15
|
+
border: 1px solid var(--color-slate-500, #6B7280);
|
|
16
|
+
border-radius: 0.375rem;
|
|
17
17
|
background-color: var(--color-white, #ffffff);
|
|
18
18
|
cursor: pointer;
|
|
19
19
|
transition: all 0.2s ease-in-out;
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.dropdown-input:hover:not(.dropdown-input--disabled) {
|
|
24
|
-
border-color: var(--
|
|
25
|
-
background-color: var(--color-
|
|
24
|
+
border-color: var(--color-slate-600);
|
|
25
|
+
background-color: var(--color-slate-50);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.dropdown-input__text {
|
|
29
29
|
flex: 1;
|
|
30
30
|
font-family: var(--typography-font-family-sans, 'Inter', sans-serif);
|
|
31
|
-
font-size:
|
|
32
|
-
line-height:
|
|
33
|
-
color: var(--color-
|
|
31
|
+
font-size: 1rem;
|
|
32
|
+
line-height: 1.5rem;
|
|
33
|
+
color: var(--color-slate-900);
|
|
34
34
|
white-space: nowrap;
|
|
35
35
|
overflow: hidden;
|
|
36
36
|
text-overflow: ellipsis;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
.dropdown-input__icon {
|
|
40
40
|
flex-shrink: 0;
|
|
41
41
|
margin-left: 8px;
|
|
42
|
-
color: var(--color-
|
|
42
|
+
color: var(--color-slate-600);
|
|
43
43
|
transition: transform 0.2s ease-in-out;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -57,60 +57,60 @@
|
|
|
57
57
|
|
|
58
58
|
/* States */
|
|
59
59
|
.dropdown-input--default .dropdown-input__text {
|
|
60
|
-
color: var(--color-
|
|
60
|
+
color: var(--color-slate-500);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.dropdown-input--loading .dropdown-input__text {
|
|
64
|
-
color: var(--color-
|
|
64
|
+
color: var(--color-slate-500);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.dropdown-input--selected .dropdown-input__text {
|
|
68
|
-
color: var(--color-
|
|
68
|
+
color: var(--color-slate-900);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.dropdown-input--error {
|
|
72
|
-
background-color: var(--color-red-50
|
|
73
|
-
border-color: var(--
|
|
72
|
+
background-color: var(--color-red-50);
|
|
73
|
+
border-color: var(--color-red-500);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.dropdown-input--error .dropdown-input__text {
|
|
77
|
-
color: var(--color-red-600
|
|
77
|
+
color: var(--color-red-600);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.dropdown-input--error .dropdown-input__icon {
|
|
81
|
-
color: var(--color-red-600
|
|
81
|
+
color: var(--color-red-600);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.dropdown-input--disabled {
|
|
85
|
-
background-color: var(--color-
|
|
86
|
-
border-color: var(--
|
|
85
|
+
background-color: var(--color-slate-100);
|
|
86
|
+
border-color: var(--color-slate-300, #D1D5DB);
|
|
87
87
|
cursor: not-allowed;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.dropdown-input--disabled .dropdown-input__text {
|
|
91
|
-
color: var(--color-
|
|
91
|
+
color: var(--color-slate-400);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.dropdown-input--disabled .dropdown-input__icon {
|
|
95
|
-
color: var(--color-
|
|
95
|
+
color: var(--color-slate-400);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/* Dropdown Menu */
|
|
99
99
|
.dropdown-menu {
|
|
100
100
|
position: absolute;
|
|
101
|
-
top: calc(100% + var(--multiselect-spacing-menu-gap));
|
|
101
|
+
top: calc(100% + var(--multiselect-spacing-menu-gap, 0.75rem));
|
|
102
102
|
left: 0;
|
|
103
103
|
right: 0;
|
|
104
104
|
z-index: 1000;
|
|
105
105
|
width: 100%;
|
|
106
|
-
background-color: var(--
|
|
107
|
-
|
|
108
|
-
border-top: 1px solid var(--
|
|
109
|
-
border-radius: var(--multiselect-border-radius);
|
|
106
|
+
background-color: var(--color-white);
|
|
107
|
+
border: 1px solid var(--color-neutral-400);
|
|
108
|
+
border-top: 1px solid var(--color-neutral-400);
|
|
109
|
+
border-radius: var(--multiselect-border-radius, 0.75rem);
|
|
110
110
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
111
|
-
max-height: var(--multiselect-size-menu-max-height);
|
|
111
|
+
max-height: var(--multiselect-size-menu-max-height, 17.25rem);
|
|
112
112
|
overflow-y: auto;
|
|
113
|
-
padding: var(--
|
|
113
|
+
padding: var(--spacing-padding-px-0);
|
|
114
114
|
opacity: 1;
|
|
115
115
|
transform: translateY(0);
|
|
116
116
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -118,36 +118,36 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.dropdown-option {
|
|
121
|
-
padding: var(--multiselect-spacing-option-padding);
|
|
121
|
+
padding: var(--multiselect-spacing-option-padding, 0.5rem 0.8125rem);
|
|
122
122
|
font-family: var(--typography-font-family-sans, 'Inter', sans-serif);
|
|
123
|
-
font-size: var(--input-font-size-default,
|
|
124
|
-
line-height: var(--input-line-height-default,
|
|
125
|
-
color: var(--
|
|
126
|
-
background-color: var(--
|
|
123
|
+
font-size: var(--input-font-size-default, 0.875rem);
|
|
124
|
+
line-height: var(--input-line-height-default, 1.25rem);
|
|
125
|
+
color: var(--color-slate-900);
|
|
126
|
+
background-color: var(--color-transparent);
|
|
127
127
|
cursor: pointer;
|
|
128
128
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
129
129
|
display: flex;
|
|
130
130
|
align-items: center;
|
|
131
|
-
gap: var(--multiselect-spacing-option-gap);
|
|
131
|
+
gap: var(--multiselect-spacing-option-gap, 0.5rem);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.dropdown-option:hover {
|
|
135
|
-
background-color: var(--
|
|
135
|
+
background-color: var(--color-slate-50);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.dropdown-option:active {
|
|
139
|
-
background-color: var(--
|
|
139
|
+
background-color: var(--color-slate-100);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/* Dropdown Footer */
|
|
143
143
|
.dropdown-footer {
|
|
144
|
-
padding: var(--multiselect-spacing-footer-padding);
|
|
144
|
+
padding: var(--multiselect-spacing-footer-padding, 0.5rem 1.25rem);
|
|
145
145
|
font-family: var(--typography-font-family-sans, 'Inter', sans-serif);
|
|
146
|
-
font-size: var(--input-font-size-default,
|
|
147
|
-
line-height: var(--input-line-height-default,
|
|
148
|
-
color: var(--
|
|
149
|
-
background-color: var(--
|
|
150
|
-
border-top: 1px solid var(--
|
|
146
|
+
font-size: var(--input-font-size-default, 1rem);
|
|
147
|
+
line-height: var(--input-line-height-default, 1.5rem);
|
|
148
|
+
color: var(--color-slate-600);
|
|
149
|
+
background-color: var(--color-transparent);
|
|
150
|
+
border-top: 1px solid var(--color-slate-500);
|
|
151
151
|
margin-top: 4px;
|
|
152
152
|
}
|
|
153
153
|
|