mautourco-components 0.2.5 → 0.2.8
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 +190 -190
- package/dist/components/atoms/Avatar/Avatar.d.ts +14 -14
- package/dist/components/atoms/Avatar/Avatar.js +31 -31
- package/dist/components/atoms/Button/Button.css +320 -320
- package/dist/components/atoms/Button/Button.d.ts +27 -27
- package/dist/components/atoms/Button/Button.js +35 -35
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +13 -13
- package/dist/components/atoms/Checkbox/Checkbox.js +39 -39
- package/dist/components/atoms/Icon/Icon.d.ts +10 -10
- package/dist/components/atoms/Icon/Icon.js +123 -123
- package/dist/components/atoms/Icon/icons/ArrivalIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/ArrivalIcon.js +31 -31
- package/dist/components/atoms/Icon/icons/BuildingIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/BuildingIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/CalendarIcon.d.ts +12 -12
- package/dist/components/atoms/Icon/icons/CalendarIcon.js +41 -41
- package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/CarIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/CarIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/Check.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/Check.js +30 -30
- package/dist/components/atoms/Icon/icons/CheckCircleIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/CheckCircleIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/Chevron.d.ts +9 -9
- package/dist/components/atoms/Icon/icons/Chevron.js +54 -54
- package/dist/components/atoms/Icon/icons/ChevronDownIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/ChevronDownIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/Close.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/Close.js +30 -30
- package/dist/components/atoms/Icon/icons/DeleteIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/DeleteIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/DepartureIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/DepartureIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/EyeIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/EyeIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/FacebookIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/FacebookIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/HomeIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/HomeIcon.js +25 -25
- package/dist/components/atoms/Icon/icons/InfoIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/InfoIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/LinkedInIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/LinkedInIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/MapPinIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/MapPinIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/MautoucoLogo.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/MautoucoLogo.js +37 -37
- package/dist/components/atoms/Icon/icons/MenuIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/MenuIcon.js +37 -37
- package/dist/components/atoms/Icon/icons/MinusIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/MinusIcon.js +25 -25
- package/dist/components/atoms/Icon/icons/MoreIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/MoreIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/PlaneIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/PlaneIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/PlusIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/PlusIcon.js +25 -25
- package/dist/components/atoms/Icon/icons/Search.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/Search.js +30 -30
- package/dist/components/atoms/Icon/icons/Settings.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/Settings.js +30 -30
- package/dist/components/atoms/Icon/icons/ShipIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/ShipIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/StrollerIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/StrollerIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/TwitterIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/TwitterIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/User.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/User.js +30 -30
- package/dist/components/atoms/Icon/icons/UserIcon.d.ts +12 -12
- package/dist/components/atoms/Icon/icons/UserIcon.js +41 -41
- package/dist/components/atoms/Icon/icons/Youtube.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/Youtube.js +36 -36
- package/dist/components/atoms/Illustration/Illustration.d.ts +14 -14
- package/dist/components/atoms/Illustration/Illustration.js +33 -33
- package/dist/components/atoms/Illustration/illustrations.d.ts +51 -51
- package/dist/components/atoms/Illustration/illustrations.js +97 -97
- package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.d.ts +12 -12
- package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.js +53 -53
- package/dist/components/atoms/Inputs/Input/Input.d.ts +15 -15
- package/dist/components/atoms/Inputs/Input/Input.js +27 -27
- package/dist/components/atoms/Inputs/Textarea/Textarea.d.ts +14 -14
- package/dist/components/atoms/Inputs/Textarea/Textarea.js +15 -15
- package/dist/components/atoms/Link/Link.d.ts +44 -44
- package/dist/components/atoms/Link/Link.js +76 -76
- package/dist/components/atoms/RatingStar/RatingStar.d.ts +40 -40
- package/dist/components/atoms/RatingStar/RatingStar.js +54 -54
- package/dist/components/atoms/SegmentedButton/SegmentedButton.d.ts +27 -27
- package/dist/components/atoms/SegmentedButton/SegmentedButton.js +49 -49
- package/dist/components/atoms/SelectedValue/SelectedValue.d.ts +11 -11
- package/dist/components/atoms/SelectedValue/SelectedValue.js +29 -29
- package/dist/components/atoms/Slider/Slider.d.ts +52 -52
- package/dist/components/atoms/Slider/Slider.js +30 -30
- package/dist/components/atoms/Spinner/Spinner.d.ts +9 -9
- package/dist/components/atoms/Spinner/Spinner.js +38 -38
- package/dist/components/atoms/Spinner/variants/ButtonSpinner.d.ts +8 -8
- package/dist/components/atoms/Spinner/variants/ButtonSpinner.js +19 -19
- package/dist/components/atoms/Spinner/variants/LoadingSpinner.d.ts +7 -7
- package/dist/components/atoms/Spinner/variants/LoadingSpinner.js +7 -7
- package/dist/components/atoms/Tab/Tab.css +266 -266
- package/dist/components/atoms/Tab/Tab.d.ts +22 -22
- package/dist/components/atoms/Tab/Tab.js +54 -54
- package/dist/components/atoms/Typography/Typography.d.ts +26 -24
- package/dist/components/atoms/Typography/Typography.js +109 -100
- package/dist/components/molecules/Calendar/CalendarInput.d.ts +34 -34
- package/dist/components/molecules/Calendar/CalendarInput.js +49 -49
- package/dist/components/molecules/Calendar/DateTime.d.ts +25 -25
- package/dist/components/molecules/Calendar/DateTime.js +106 -106
- package/dist/components/molecules/Calendar/TimePicker.d.ts +16 -16
- package/dist/components/molecules/Calendar/TimePicker.js +91 -91
- package/dist/components/molecules/LocationDropdown/LocationDropdown.d.ts +34 -34
- package/dist/components/molecules/LocationDropdown/LocationDropdown.js +120 -120
- package/dist/components/molecules/LocationDropdown/index.d.ts +2 -2
- package/dist/components/molecules/LocationDropdown/index.js +1 -1
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +29 -29
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +106 -106
- package/dist/components/molecules/RatingTab/RatingTab.d.ts +39 -39
- package/dist/components/molecules/RatingTab/RatingTab.js +41 -41
- package/dist/components/molecules/TabGroup/TabGroup.d.ts +17 -17
- package/dist/components/molecules/TabGroup/TabGroup.js +30 -30
- package/dist/components/molecules/UserCard/UserCard.d.ts +20 -20
- package/dist/components/molecules/UserCard/UserCard.js +57 -57
- package/dist/components/organisms/CardContainer/CardContainer.d.ts +37 -37
- package/dist/components/organisms/CardContainer/CardContainer.js +27 -27
- package/dist/components/organisms/DateTimePicker/DateTimePicker.d.ts +15 -15
- package/dist/components/organisms/DateTimePicker/DateTimePicker.js +66 -66
- package/dist/components/organisms/Dialog/Dialog.d.ts +103 -103
- package/dist/components/organisms/Dialog/Dialog.js +162 -162
- package/dist/components/organisms/Footer/Footer.d.ts +38 -38
- package/dist/components/organisms/Footer/Footer.js +74 -74
- package/dist/components/organisms/PaxSelector/PaxSelector.d.ts +63 -63
- package/dist/components/organisms/PaxSelector/PaxSelector.js +402 -402
- package/dist/components/organisms/RoundTrip/RoundTrip.d.ts +54 -54
- package/dist/components/organisms/RoundTrip/RoundTrip.js +179 -179
- package/dist/components/organisms/RoundTrip/index.d.ts +2 -2
- package/dist/components/organisms/RoundTrip/index.js +1 -1
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.d.ts +35 -35
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.js +192 -192
- package/dist/components/organisms/SearchBarTransfer/index.d.ts +2 -2
- package/dist/components/organisms/SearchBarTransfer/index.js +1 -1
- package/dist/components/organisms/TopNavigation/DesktopNav.d.ts +33 -33
- package/dist/components/organisms/TopNavigation/DesktopNav.js +32 -32
- package/dist/components/organisms/TopNavigation/MobileNav.d.ts +32 -32
- package/dist/components/organisms/TopNavigation/MobileNav.js +45 -45
- package/dist/components/organisms/TopNavigation/TopNavigation.d.ts +33 -33
- package/dist/components/organisms/TopNavigation/TopNavigation.js +20 -20
- package/dist/components/organisms/TransferLine/TransferLine.d.ts +53 -53
- package/dist/components/organisms/TransferLine/TransferLine.js +179 -179
- package/dist/components/ui/button.d.ts +10 -10
- package/dist/components/ui/button.js +56 -56
- package/dist/components/ui/calendar.d.ts +8 -8
- package/dist/components/ui/calendar.js +87 -87
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/popover.js +42 -42
- package/dist/hooks/useMobile.d.ts +5 -5
- package/dist/hooks/useMobile.js +26 -26
- package/dist/index.d.ts +49 -49
- package/dist/index.js +46 -46
- package/dist/lib/utils.d.ts +7 -7
- package/dist/lib/utils.js +13 -13
- package/dist/styles/components/avatar.css +122 -122
- package/dist/styles/components/calendar.css +140 -140
- package/dist/styles/components/checkbox.css +206 -206
- package/dist/styles/components/dropdown.css +269 -269
- package/dist/styles/components/forms.css +209 -209
- package/dist/styles/components/illustration.css +123 -123
- package/dist/styles/components/molecule/calendarInput.css +133 -133
- package/dist/styles/components/molecule/dateTime.css +126 -126
- package/dist/styles/components/molecule/location-dropdown.css +132 -132
- package/dist/styles/components/molecule/timePicker.css +122 -122
- package/dist/styles/components/multiselect-dropdown.css +286 -286
- package/dist/styles/components/organism/card-container.css +148 -148
- package/dist/styles/components/organism/dialog.css +168 -168
- package/dist/styles/components/organism/footer.css +119 -119
- package/dist/styles/components/organism/pax-selector.css +605 -617
- package/dist/styles/components/organism/round-trip.css +139 -139
- package/dist/styles/components/organism/search-bar-transfer.css +158 -167
- package/dist/styles/components/organism/topnavigation.css +142 -142
- package/dist/styles/components/organism/transfer-line.css +138 -138
- package/dist/styles/components/rating-star.css +145 -145
- package/dist/styles/components/rating-tab.css +178 -180
- package/dist/styles/components/scrollbar.css +155 -155
- package/dist/styles/components/segmented-button.css +214 -214
- package/dist/styles/components/selected-value.css +175 -175
- package/dist/styles/components/slider.css +182 -182
- package/dist/styles/components/typography.css +245 -245
- package/dist/styles/tokens/tokens.css +119 -119
- package/dist/styles/tokens/tokens.d.ts +3108 -3108
- package/dist/styles/tokens/tokens.js +2652 -2652
- package/package.json +103 -103
- package/src/components/atoms/Avatar/Avatar.tsx +60 -60
- package/src/components/atoms/Button/Button.css +200 -200
- package/src/components/atoms/Button/Button.tsx +82 -82
- package/src/components/atoms/Checkbox/Checkbox.tsx +83 -83
- package/src/components/atoms/Icon/Icon.tsx +163 -163
- package/src/components/atoms/Icon/icons/ArrivalIcon.tsx +52 -52
- package/src/components/atoms/Icon/icons/BuildingIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/CalendarIcon.tsx +63 -63
- package/src/components/atoms/Icon/icons/CalendarOutlineIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/CarIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/Check.tsx +36 -36
- package/src/components/atoms/Icon/icons/CheckCircleIcon.tsx +48 -48
- package/src/components/atoms/Icon/icons/Chevron.tsx +73 -73
- package/src/components/atoms/Icon/icons/ChevronDownIcon.tsx +46 -46
- package/src/components/atoms/Icon/icons/Close.tsx +39 -39
- package/src/components/atoms/Icon/icons/DeleteIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/DepartureIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/EyeIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/FacebookIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/HomeIcon.tsx +52 -52
- package/src/components/atoms/Icon/icons/InfoIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/LinkedInIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/MapPinIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/MautoucoLogo.tsx +93 -93
- package/src/components/atoms/Icon/icons/MenuIcon.tsx +49 -49
- package/src/components/atoms/Icon/icons/MinusIcon.tsx +45 -45
- package/src/components/atoms/Icon/icons/MoreIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/PlaneIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/PlusIcon.tsx +45 -45
- package/src/components/atoms/Icon/icons/Search.tsx +37 -37
- package/src/components/atoms/Icon/icons/Settings.tsx +38 -38
- package/src/components/atoms/Icon/icons/ShipIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/StrollerIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/TwitterIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/User.tsx +37 -37
- package/src/components/atoms/Icon/icons/UserIcon.tsx +63 -63
- package/src/components/atoms/Icon/icons/Youtube.tsx +50 -50
- package/src/components/atoms/Illustration/Illustration.tsx +28 -28
- package/src/components/atoms/Illustration/illustrations.ts +116 -116
- package/src/components/atoms/Inputs/DropdownInput/DropdownInput.tsx +96 -96
- package/src/components/atoms/Inputs/Textarea/Textarea.tsx +51 -51
- package/src/components/atoms/Link/Link.tsx +168 -168
- package/src/components/atoms/RatingStar/RatingStar.tsx +114 -114
- package/src/components/atoms/SegmentedButton/SegmentedButton.tsx +94 -94
- package/src/components/atoms/SelectedValue/SelectedValue.tsx +59 -59
- package/src/components/atoms/Slider/Slider.tsx +95 -95
- package/src/components/atoms/Spinner/Spinner.tsx +56 -56
- package/src/components/atoms/Spinner/variants/ButtonSpinner.tsx +37 -37
- package/src/components/atoms/Spinner/variants/LoadingSpinner.tsx +22 -22
- package/src/components/atoms/Tab/Tab.css +147 -147
- package/src/components/atoms/Tab/Tab.tsx +96 -96
- package/src/components/atoms/Typography/Typography.tsx +180 -153
- package/src/components/molecules/Calendar/CalendarInput.tsx +135 -135
- package/src/components/molecules/Calendar/DateTime.tsx +172 -172
- package/src/components/molecules/Calendar/TimePicker.tsx +174 -174
- package/src/components/molecules/LocationDropdown/LocationDropdown.tsx +234 -234
- package/src/components/molecules/LocationDropdown/index.ts +2 -2
- package/src/components/molecules/RatingTab/RatingTab.tsx +96 -96
- package/src/components/molecules/TabGroup/TabGroup.tsx +60 -60
- package/src/components/molecules/UserCard/UserCard.stories.tsx +36 -36
- package/src/components/molecules/UserCard/UserCard.tsx +173 -173
- package/src/components/organisms/CardContainer/CardContainer.tsx +66 -66
- package/src/components/organisms/DateTimePicker/DateTimePicker.tsx +110 -110
- package/src/components/organisms/Dialog/Dialog.tsx +352 -352
- package/src/components/organisms/Footer/Footer.tsx +290 -290
- package/src/components/organisms/PaxSelector/PaxSelector.tsx +979 -979
- package/src/components/organisms/RoundTrip/RoundTrip.tsx +335 -335
- package/src/components/organisms/RoundTrip/index.ts +2 -2
- package/src/components/organisms/SearchBarTransfer/SearchBarTransfer.tsx +388 -388
- package/src/components/organisms/SearchBarTransfer/index.ts +2 -2
- package/src/components/organisms/TopNavigation/DesktopNav.tsx +133 -133
- package/src/components/organisms/TopNavigation/MobileNav.tsx +212 -212
- package/src/components/organisms/TopNavigation/TopNavigation.tsx +45 -45
- package/src/components/organisms/TransferLine/TransferLine.tsx +369 -369
- package/src/components/ui/button.tsx +60 -60
- package/src/components/ui/calendar.tsx +246 -246
- package/src/components/ui/popover.tsx +46 -46
- package/src/styles/components/avatar.css +58 -58
- package/src/styles/components/calendar.css +85 -85
- package/src/styles/components/checkbox.css +130 -130
- package/src/styles/components/dropdown.css +214 -214
- package/src/styles/components/forms.css +147 -147
- package/src/styles/components/illustration.css +7 -7
- package/src/styles/components/molecule/calendarInput.css +156 -156
- package/src/styles/components/molecule/dateTime.css +14 -14
- package/src/styles/components/molecule/location-dropdown.css +204 -204
- package/src/styles/components/molecule/timePicker.css +78 -78
- package/src/styles/components/multiselect-dropdown.css +230 -230
- package/src/styles/components/organism/card-container.css +49 -49
- package/src/styles/components/organism/dialog.css +241 -241
- package/src/styles/components/organism/footer.css +113 -113
- package/src/styles/components/organism/pax-selector.css +690 -702
- package/src/styles/components/organism/round-trip.css +55 -55
- package/src/styles/components/organism/search-bar-transfer.css +122 -127
- package/src/styles/components/organism/topnavigation.css +161 -161
- package/src/styles/components/organism/transfer-line.css +86 -86
- package/src/styles/components/rating-star.css +39 -39
- package/src/styles/components/rating-tab.css +81 -83
- package/src/styles/components/scrollbar.css +63 -63
- package/src/styles/components/segmented-button.css +134 -134
- package/src/styles/components/selected-value.css +80 -80
- package/src/styles/components/slider.css +86 -86
- package/src/styles/components/typography.css +251 -251
- package/src/styles/fonts.css +50 -0
- package/src/styles/tokens/tokens.css +119 -119
- package/src/styles/tokens/tokens.js +12 -6
|
@@ -1,46 +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 }
|
|
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 }
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
.avatar {
|
|
2
|
-
@apply relative inline-flex items-center justify-center overflow-hidden select-none;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.avatar--sm {
|
|
6
|
-
@apply w-4 h-4 text-[10px];
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.avatar--md {
|
|
10
|
-
@apply w-6 h-6 text-[11px];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.avatar--lg {
|
|
14
|
-
@apply w-8 h-8 text-xs;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.avatar--xl {
|
|
18
|
-
@apply w-12 h-12 text-sm;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.avatar--circle {
|
|
22
|
-
@apply rounded-full;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.avatar--rounded {
|
|
26
|
-
border-radius: var(--avatar-corner-radius-square, 6px);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.avatar--gray {
|
|
30
|
-
@apply bg-slate-100 text-slate-700;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.avatar--blue {
|
|
34
|
-
@apply bg-[var(--color-blue-600)] text-white;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.avatar--pink {
|
|
38
|
-
@apply bg-[var(--color-pink-700)] text-white;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.avatar--orange {
|
|
42
|
-
@apply bg-[var(--color-orange-700)] text-white;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.avatar--green {
|
|
46
|
-
@apply bg-[var(--color-green-800)] text-white;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* Internal elements */
|
|
50
|
-
.avatar__img {
|
|
51
|
-
@apply absolute object-cover w-full h-full;
|
|
52
|
-
inset: 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.avatar__initial {
|
|
56
|
-
@apply font-medium leading-none;
|
|
57
|
-
}
|
|
58
|
-
|
|
1
|
+
.avatar {
|
|
2
|
+
@apply relative inline-flex items-center justify-center overflow-hidden select-none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.avatar--sm {
|
|
6
|
+
@apply w-4 h-4 text-[10px];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.avatar--md {
|
|
10
|
+
@apply w-6 h-6 text-[11px];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.avatar--lg {
|
|
14
|
+
@apply w-8 h-8 text-xs;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.avatar--xl {
|
|
18
|
+
@apply w-12 h-12 text-sm;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.avatar--circle {
|
|
22
|
+
@apply rounded-full;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.avatar--rounded {
|
|
26
|
+
border-radius: var(--avatar-corner-radius-square, 6px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.avatar--gray {
|
|
30
|
+
@apply bg-slate-100 text-slate-700;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.avatar--blue {
|
|
34
|
+
@apply bg-[var(--color-blue-600)] text-white;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.avatar--pink {
|
|
38
|
+
@apply bg-[var(--color-pink-700)] text-white;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.avatar--orange {
|
|
42
|
+
@apply bg-[var(--color-orange-700)] text-white;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.avatar--green {
|
|
46
|
+
@apply bg-[var(--color-green-800)] text-white;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Internal elements */
|
|
50
|
+
.avatar__img {
|
|
51
|
+
@apply absolute object-cover w-full h-full;
|
|
52
|
+
inset: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.avatar__initial {
|
|
56
|
+
@apply font-medium leading-none;
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -1,86 +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: "";
|
|
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
86
|
}
|
|
@@ -1,130 +1,130 @@
|
|
|
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
|
-
}
|
|
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
|
+
}
|