linkedunion-design-kit 1.11.6 → 1.11.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/dist/app/layout.d.ts +1 -1
- package/dist/app/{layout.js → layout.jsx} +3 -2
- package/dist/app/page.d.ts +1 -1
- package/dist/app/page.jsx +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/src/components/Accordion/Accordion.stories.jsx +33 -0
- package/dist/src/components/Accordion/accordion.d.ts +4 -4
- package/dist/src/components/Accordion/{accordion.js → accordion.jsx} +11 -16
- package/dist/src/components/Alerts/Alert/alert.d.ts +7 -7
- package/dist/src/components/Alerts/Alert/{alert.js → alert.jsx} +21 -25
- package/dist/src/components/Alerts/Alert/alert.stories.d.ts +8 -8
- package/dist/src/components/Alerts/Alert/alert.stories.jsx +344 -0
- package/dist/src/components/Alerts/AlertDialog/alert-dialog.d.ts +11 -11
- package/dist/src/components/Alerts/AlertDialog/{alert-dialog.js → alert-dialog.jsx} +26 -24
- package/dist/src/components/Alerts/AlertDialog/alert-dialog.stories.d.ts +10 -10
- package/dist/src/components/Alerts/AlertDialog/alert-dialog.stories.jsx +552 -0
- package/dist/src/components/AppIcons/AndroidIcon.jsx +24 -0
- package/dist/src/components/AppIcons/{AppIcon.js → AppIcon.jsx} +4 -15
- package/dist/src/components/AppIcons/AppleIcon.jsx +31 -0
- package/dist/src/components/AppIcons/PlayStoreIcon.jsx +29 -0
- package/dist/src/components/Avatar/Avatar/{Avatar.js → Avatar.jsx} +13 -18
- package/dist/src/components/Avatar/Avatar/Avatar.stories.d.ts +7 -7
- package/dist/src/components/Avatar/Avatar/Avatar.stories.jsx +95 -0
- package/dist/src/components/Avatar/Avatar/{Avatar.test.js → Avatar.test.jsx} +1 -2
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.jsx +17 -0
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.stories.jsx +32 -0
- package/dist/src/components/Avatar/StatusIndicator/StatusIndicator.jsx +20 -0
- package/dist/src/components/Avatar/StatusIndicator/StatusIndicator.stories.d.ts +2 -2
- package/dist/src/components/Avatar/StatusIndicator/{StatusIndicator.stories.js → StatusIndicator.stories.jsx} +12 -3
- package/dist/src/components/Badge/Badge.d.ts +1 -1
- package/dist/src/components/Badge/{Badge.js → Badge.jsx} +8 -13
- package/dist/src/components/Badge/Badge.stories.d.ts +10 -10
- package/dist/src/components/Badge/Badge.stories.jsx +201 -0
- package/dist/src/components/Button/Button/Button.d.ts +3 -2
- package/dist/src/components/Button/Button/{Button.js → Button.jsx} +24 -8
- package/dist/src/components/Button/Button/Button.stories.d.ts +5 -3
- package/dist/src/components/Button/Button/{Button.stories.js → Button.stories.jsx} +1 -13
- package/dist/src/components/Button/Button/Button.test.jsx +73 -0
- package/dist/src/components/Button/IconButton/IconButton.d.ts +1 -1
- package/dist/src/components/Button/IconButton/{IconButton.js → IconButton.jsx} +4 -13
- package/dist/src/components/Button/IconButton/IconButton.stories.d.ts +1 -1
- package/dist/src/components/Button/IconButton/{IconButton.stories.js → IconButton.stories.jsx} +1 -13
- package/dist/src/components/Button/IconButton/{IconButton.test.js → IconButton.test.jsx} +5 -6
- package/dist/src/components/Button/index.d.ts +1 -0
- package/dist/src/components/Button/index.js +3 -2
- package/dist/src/components/Card/MultipleNews/MultiNews.d.ts +1 -1
- package/dist/src/components/Card/MultipleNews/MultiNews.jsx +71 -0
- package/dist/src/components/Card/MultipleNews/{MultiNews.stories.js → MultiNews.stories.jsx} +1 -2
- package/dist/src/components/Card/PostByCategory/PostByCategory.d.ts +1 -1
- package/dist/src/components/Card/PostByCategory/PostByCategory.jsx +57 -0
- package/dist/src/components/Card/PostByCategory/{PostByCategory.stories.js → PostByCategory.stories.jsx} +1 -2
- package/dist/src/components/Card/SinglePost/SinglePost.d.ts +1 -1
- package/dist/src/components/Card/SinglePost/SinglePost.jsx +26 -0
- package/dist/src/components/Card/card.d.ts +2 -1
- package/dist/src/components/Card/{card.js → card.jsx} +2 -13
- package/dist/src/components/Card/contactProfile/ContactProfile.d.ts +1 -1
- package/dist/src/components/Card/contactProfile/ContactProfile.jsx +76 -0
- package/dist/src/components/Card/contactProfile/{ContactProfile.stories.js → ContactProfile.stories.jsx} +1 -2
- package/dist/src/components/Card/photoAlbum/PhotoAlbum.d.ts +1 -1
- package/dist/src/components/Card/photoAlbum/PhotoAlbum.jsx +41 -0
- package/dist/src/components/Card/photoAlbum/{PhotoAlbum.stories.js → PhotoAlbum.stories.jsx} +1 -13
- package/dist/src/components/Card/photoGallery/PhotoGallery.d.ts +1 -1
- package/dist/src/components/Card/photoGallery/PhotoGallery.jsx +17 -0
- package/dist/src/components/Card/photoGallery/{PhotoGallery.stories.js → PhotoGallery.stories.jsx} +1 -13
- package/dist/src/components/Checkbox/checkbox.d.ts +1 -1
- package/dist/src/components/Checkbox/{checkbox.js → checkbox.jsx} +6 -13
- package/dist/src/components/Checkbox/checkbox.stories.jsx +113 -0
- package/dist/src/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/src/components/ColorPicker/{ColorPicker.js → ColorPicker.jsx} +6 -13
- package/dist/src/components/ColorPicker/ColorPicker.stories.d.ts +5 -5
- package/dist/src/components/ColorPicker/ColorPicker.stories.jsx +138 -0
- package/dist/src/components/Colors/color.d.ts +1 -1
- package/dist/src/components/Colors/{color.js → color.jsx} +1 -2
- package/dist/src/components/Colors/color.stories.jsx +20 -0
- package/dist/src/components/Colors/{color.test.js → color.test.jsx} +3 -4
- package/dist/src/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/src/components/DatePicker/DatePicker.jsx +67 -0
- package/dist/src/components/DatePicker/DatePicker.stories.d.ts +9 -9
- package/dist/src/components/DatePicker/DatePicker.stories.jsx +291 -0
- package/dist/src/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/src/components/DateRangePicker/{DateRangePicker.js → DateRangePicker.jsx} +92 -44
- package/dist/src/components/DateRangePicker/DateRangePicker.stories.d.ts +19 -19
- package/dist/src/components/DateRangePicker/DateRangePicker.stories.jsx +582 -0
- package/dist/src/components/Dropdown/Combobox/Combobox.d.ts +1 -1
- package/dist/src/components/Dropdown/Combobox/{Combobox.js → Combobox.jsx} +67 -29
- package/dist/src/components/Dropdown/Combobox/Combobox.stories.d.ts +8 -8
- package/dist/src/components/Dropdown/Combobox/Combobox.stories.jsx +289 -0
- package/dist/src/components/Dropdown/Combobox/dialog.d.ts +10 -10
- package/dist/src/components/Dropdown/Combobox/dialog.jsx +66 -0
- package/dist/src/components/Dropdown/Combobox/utils/renderBadge.jsx +7 -0
- package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.d.ts +7 -3
- package/dist/src/components/Dropdown/DropdownMenu/{DropdownMenu.js → DropdownMenu.jsx} +29 -22
- package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.stories.d.ts +19 -12
- package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.stories.jsx +552 -0
- package/dist/src/components/Dropdown/DropdownMenu/SelectAllSection.jsx +19 -0
- package/dist/src/components/Dropdown/DropdownMenu/index.d.ts +5 -0
- package/dist/src/components/Dropdown/DropdownMenu/index.js +5 -0
- package/dist/src/components/Dropdown/Select.stories.d.ts +7 -6
- package/dist/src/components/Dropdown/{Select.stories.js → Select.stories.jsx} +71 -8
- package/dist/src/components/Dropdown/select.d.ts +10 -10
- package/dist/src/components/Dropdown/select.jsx +94 -0
- package/dist/src/components/Icons/LUIcon.d.ts +1 -1
- package/dist/src/components/Icons/{LUIcon.js → LUIcon.jsx} +10 -13
- package/dist/src/components/Icons/stories/IconDropdown.jsx +67 -0
- package/dist/src/components/Icons/stories/IconGallery.jsx +77 -0
- package/dist/src/components/Icons/stories/InteractiveIconSelector.jsx +86 -0
- package/dist/src/components/Icons/stories/LUIcon.stories.d.ts +5 -5
- package/dist/src/components/Icons/stories/{LUIcon.stories.js → LUIcon.stories.jsx} +23 -8
- package/dist/src/components/ImageUploader/imageUploader.d.ts +1 -1
- package/dist/src/components/ImageUploader/{imageUploader.js → imageUploader.jsx} +28 -13
- package/dist/src/components/Images/LuImage.d.ts +1 -1
- package/dist/src/components/Images/{LuImage.js → LuImage.jsx} +1 -13
- package/dist/src/components/Images/{LuImage.stories.js → LuImage.stories.jsx} +1 -13
- package/dist/src/components/Images/{LuImage.test.js → LuImage.test.jsx} +6 -18
- package/dist/src/components/Input/Input.stories.d.ts +9 -8
- package/dist/src/components/Input/Input.stories.jsx +250 -0
- package/dist/src/components/Input/input.d.ts +1 -1
- package/dist/src/components/Input/{input.js → input.jsx} +10 -13
- package/dist/src/components/Label/Label.d.ts +1 -1
- package/dist/src/components/Label/{Label.js → Label.jsx} +2 -13
- package/dist/src/components/Label/{Label.stories.js → Label.stories.jsx} +1 -13
- package/dist/src/components/Modal/Modal.d.ts +3 -3
- package/dist/src/components/Modal/{Modal.js → Modal.jsx} +20 -19
- package/dist/src/components/Modal/Modal.stories.d.ts +15 -15
- package/dist/src/components/Modal/Modal.stories.jsx +487 -0
- package/dist/src/components/Pagination/pagination.d.ts +5 -5
- package/dist/src/components/Pagination/{pagination.js → pagination.jsx} +18 -21
- package/dist/src/components/Pagination/pagination.stories.d.ts +6 -6
- package/dist/src/components/Pagination/pagination.stories.jsx +301 -0
- package/dist/src/components/RadioGroup/{RadioGroup.stories.js → RadioGroup.stories.jsx} +52 -22
- package/dist/src/components/RadioGroup/radio-group.d.ts +1 -1
- package/dist/src/components/RadioGroup/{radio-group.js → radio-group.jsx} +6 -14
- package/dist/src/components/Separator/Separator.stories.d.ts +15 -0
- package/dist/src/components/Separator/Separator.stories.jsx +94 -0
- package/dist/src/components/Separator/index.d.ts +1 -0
- package/dist/src/components/Separator/index.js +1 -0
- package/dist/src/components/Separator/separator.d.ts +4 -0
- package/dist/src/components/Separator/separator.jsx +20 -0
- package/dist/src/components/Sheet/index.d.ts +1 -0
- package/dist/src/components/Sheet/index.js +1 -0
- package/dist/src/components/Sheet/sheet.d.ts +25 -0
- package/dist/src/components/Sheet/sheet.jsx +73 -0
- package/dist/src/components/Sheet/sheet.stories.d.ts +4 -0
- package/dist/src/components/Sheet/sheet.stories.jsx +34 -0
- package/dist/src/components/Skeleton/skeleton.d.ts +14 -14
- package/dist/src/components/Skeleton/{skeleton.js → skeleton.jsx} +23 -27
- package/dist/src/components/Skeleton/skeleton.stories.d.ts +14 -14
- package/dist/src/components/Skeleton/skeleton.stories.jsx +734 -0
- package/dist/src/components/Slider/slider.d.ts +1 -1
- package/dist/src/components/Slider/slider.jsx +31 -0
- package/dist/src/components/SweetAlert/SweetAlert.d.ts +9 -9
- package/dist/src/components/SweetAlert/{SweetAlert.js → SweetAlert.jsx} +18 -21
- package/dist/src/components/SweetAlert/SweetAlert.stories.d.ts +7 -7
- package/dist/src/components/SweetAlert/{SweetAlert.stories.js → SweetAlert.stories.jsx} +215 -15
- package/dist/src/components/Switch/{Switch.stories.js → Switch.stories.jsx} +1 -13
- package/dist/src/components/Switch/switch.d.ts +1 -1
- package/dist/src/components/Switch/{switch.js → switch.jsx} +4 -13
- package/dist/src/components/Table/{Table.js → Table.jsx} +111 -58
- package/dist/src/components/Table/Table.stories.d.ts +13 -13
- package/dist/src/components/Table/{Table.stories.js → Table.stories.jsx} +299 -45
- package/dist/src/components/Table/{Table.test.js → Table.test.jsx} +39 -7
- package/dist/src/components/Tabs/{Tabs.stories.js → Tabs.stories.jsx} +10 -3
- package/dist/src/components/Tabs/tabs.d.ts +4 -4
- package/dist/src/components/Tabs/tabs.jsx +32 -0
- package/dist/src/components/TimePicker/TimePicker.d.ts +1 -1
- package/dist/src/components/TimePicker/{TimePicker.js → TimePicker.jsx} +54 -30
- package/dist/src/components/TimePicker/TimePicker.stories.d.ts +10 -10
- package/dist/src/components/TimePicker/TimePicker.stories.jsx +298 -0
- package/dist/src/components/Title/Title.d.ts +1 -1
- package/dist/src/components/Title/{Title.js → Title.jsx} +2 -2
- package/dist/src/components/Title/{Title.stories.js → Title.stories.jsx} +1 -13
- package/dist/src/components/Title/{Title.test.js → Title.test.jsx} +4 -5
- package/dist/src/components/ToolTip/Tooltip.d.ts +1 -1
- package/dist/src/components/ToolTip/Tooltip.jsx +18 -0
- package/dist/src/components/ToolTip/{Tooltip.stories.js → Tooltip.stories.jsx} +2 -14
- package/dist/src/components/Typography/Body/{Body.stories.js → Body.stories.jsx} +1 -13
- package/dist/src/components/Typography/Body/body.d.ts +1 -1
- package/dist/src/components/Typography/Body/{body.js → body.jsx} +4 -13
- package/dist/src/components/Typography/Caption/{Caption.stories.js → Caption.stories.jsx} +1 -13
- package/dist/src/components/Typography/Caption/caption.d.ts +1 -1
- package/dist/src/components/Typography/Caption/{caption.js → caption.jsx} +4 -13
- package/dist/src/components/Typography/Display/{Display.stories.js → Display.stories.jsx} +1 -13
- package/dist/src/components/Typography/Display/display.d.ts +1 -1
- package/dist/src/components/Typography/Display/{display.js → display.jsx} +4 -13
- package/dist/src/components/Typography/Heading/Heading.stories.d.ts +6 -6
- package/dist/src/components/Typography/Heading/Heading.stories.jsx +85 -0
- package/dist/src/components/Typography/Heading/{heading.js → heading.jsx} +5 -14
- package/dist/src/components/VerticalTabs/{VerticalTabs.js → VerticalTabs.jsx} +9 -17
- package/dist/src/components/VerticalTabs/VerticalTabs.stories.jsx +154 -0
- package/dist/src/components/VerticalTabs/VerticalTabs.test.jsx +97 -0
- package/dist/src/components/ui/calendar.d.ts +2 -2
- package/dist/src/components/ui/{calendar.js → calendar.jsx} +36 -22
- package/dist/src/components/ui/command.d.ts +9 -9
- package/dist/src/components/ui/command.jsx +67 -0
- package/dist/src/components/ui/popover.d.ts +4 -4
- package/dist/src/components/ui/popover.jsx +33 -0
- package/dist/src/components/ui/tooltip.d.ts +4 -4
- package/dist/src/components/ui/tooltip.jsx +38 -0
- package/dist/src/components/ui/typography.d.ts +1 -1
- package/dist/src/components/ui/{typography.js → typography.jsx} +4 -13
- package/dist/styles/global.css +107 -5
- package/package.json +4 -3
- package/dist/app/page.js +0 -4
- package/dist/src/components/Accordion/Accordion.stories.js +0 -32
- package/dist/src/components/Alerts/Alert/alert.stories.js +0 -166
- package/dist/src/components/Alerts/AlertDialog/alert-dialog.stories.js +0 -213
- package/dist/src/components/AppIcons/AndroidIcon.js +0 -28
- package/dist/src/components/AppIcons/AppleIcon.js +0 -28
- package/dist/src/components/AppIcons/PlayStoreIcon.js +0 -28
- package/dist/src/components/Avatar/Avatar/Avatar.stories.js +0 -69
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.js +0 -8
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.stories.js +0 -14
- package/dist/src/components/Avatar/StatusIndicator/StatusIndicator.js +0 -18
- package/dist/src/components/Badge/Badge.stories.js +0 -145
- package/dist/src/components/Button/Button/Button.test.js +0 -10
- package/dist/src/components/Card/MultipleNews/MultiNews.js +0 -46
- package/dist/src/components/Card/PostByCategory/PostByCategory.js +0 -37
- package/dist/src/components/Card/SinglePost/SinglePost.js +0 -10
- package/dist/src/components/Card/contactProfile/ContactProfile.js +0 -39
- package/dist/src/components/Card/photoAlbum/PhotoAlbum.js +0 -16
- package/dist/src/components/Card/photoGallery/PhotoGallery.js +0 -8
- package/dist/src/components/Checkbox/checkbox.stories.js +0 -78
- package/dist/src/components/ColorPicker/ColorPicker.stories.js +0 -77
- package/dist/src/components/Colors/color.stories.js +0 -32
- package/dist/src/components/DatePicker/DatePicker.js +0 -64
- package/dist/src/components/DatePicker/DatePicker.stories.js +0 -171
- package/dist/src/components/DateRangePicker/DateRangePicker.stories.js +0 -318
- package/dist/src/components/Dropdown/Combobox/Combobox.stories.js +0 -225
- package/dist/src/components/Dropdown/Combobox/dialog.js +0 -68
- package/dist/src/components/Dropdown/Combobox/utils/renderBadge.js +0 -5
- package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.stories.js +0 -253
- package/dist/src/components/Dropdown/DropdownMenu/SelectAllSection.js +0 -9
- package/dist/src/components/Dropdown/select.js +0 -87
- package/dist/src/components/Icons/stories/IconDropdown.js +0 -38
- package/dist/src/components/Icons/stories/IconGallery.js +0 -31
- package/dist/src/components/Icons/stories/InteractiveIconSelector.js +0 -26
- package/dist/src/components/Input/Input.stories.js +0 -133
- package/dist/src/components/Modal/Modal.stories.js +0 -115
- package/dist/src/components/Pagination/pagination.stories.js +0 -168
- package/dist/src/components/Skeleton/skeleton.stories.js +0 -414
- package/dist/src/components/Slider/slider.js +0 -38
- package/dist/src/components/Tabs/tabs.js +0 -43
- package/dist/src/components/TimePicker/TimePicker.stories.js +0 -176
- package/dist/src/components/ToolTip/Tooltip.js +0 -8
- package/dist/src/components/Typography/Heading/Heading.stories.js +0 -67
- package/dist/src/components/VerticalTabs/VerticalTabs.stories.js +0 -100
- package/dist/src/components/VerticalTabs/VerticalTabs.test.js +0 -48
- package/dist/src/components/ui/command.js +0 -65
- package/dist/src/components/ui/popover.js +0 -42
- package/dist/src/components/ui/tooltip.js +0 -42
- /package/dist/src/components/AppIcons/{AppIcon.stories.js → AppIcon.stories.jsx} +0 -0
- /package/dist/src/components/Card/SinglePost/{SinglePost.stories.js → SinglePost.stories.jsx} +0 -0
- /package/dist/src/components/Icons/{LUIcon.test.js → LUIcon.test.jsx} +0 -0
- /package/dist/src/components/ImageUploader/{ImageUploader.stories.js → ImageUploader.stories.jsx} +0 -0
- /package/dist/src/components/Slider/{Slider.stories.js → Slider.stories.jsx} +0 -0
- /package/dist/src/components/ui/{collapsible.js → collapsible.jsx} +0 -0
|
@@ -25,7 +25,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
25
|
}
|
|
26
26
|
return t;
|
|
27
27
|
};
|
|
28
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
28
|
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
30
29
|
import { DayPicker, getDefaultClassNames, } from "react-day-picker";
|
|
31
30
|
import { cn } from "../../lib/utils";
|
|
@@ -78,40 +77,48 @@ function Calendar(_a) {
|
|
|
78
77
|
};
|
|
79
78
|
// Show custom pickers when not in days view
|
|
80
79
|
if (pickerView === "months") {
|
|
81
|
-
return (
|
|
80
|
+
return (<MonthPicker displayMonth={displayMonth} setDisplayMonth={handleMonthChange} setPickerView={setPickerView} calendarSize={calendarSize}/>);
|
|
82
81
|
}
|
|
83
82
|
if (pickerView === "years") {
|
|
84
|
-
return (
|
|
83
|
+
return (<YearPicker displayMonth={displayMonth} setDisplayMonth={handleMonthChange} setPickerView={setPickerView} calendarSize={calendarSize}/>);
|
|
85
84
|
}
|
|
86
|
-
return (
|
|
85
|
+
return (<DayPicker month={displayMonth} onMonthChange={handleMonthChange} showOutsideDays={showOutsideDays} className={cn("bg-background group/calendar [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent p-1 sm:p-2 w-full max-w-fit", calendarStyles.cellSize[calendarSize], String.raw(templateObject_1 || (templateObject_1 = __makeTemplateObject(["rtl:**:[.rdp-button_next>svg]:rotate-180"], ["rtl:**:[.rdp-button\\_next>svg]:rotate-180"]))), String.raw(templateObject_2 || (templateObject_2 = __makeTemplateObject(["rtl:**:[.rdp-button_previous>svg]:rotate-180"], ["rtl:**:[.rdp-button\\_previous>svg]:rotate-180"]))), className)} captionLayout="label" classNames={__assign({ root: cn("w-fit", defaultClassNames.root), months: cn("flex flex-col md:flex-row relative gap-2", defaultClassNames.months), month: cn("flex flex-col w-full gap-2", defaultClassNames.month), nav: cn("hidden", defaultClassNames.nav), month_caption: cn("flex items-center justify-center h-(--cell-size) w-full px-1 sm:px-(--cell-size) relative", defaultClassNames.month_caption), caption_label: cn("select-none font-medium text-xs sm:text-sm cursor-pointer hover:text-blue-600 transition-colors", defaultClassNames.caption_label), table: "w-full border-collapse", weekdays: cn("flex bg-gray-50 items-center", defaultClassNames.weekdays, calendarStyles.weekdays[calendarSize]), weekday: cn("text-gray-950 rounded-sm flex-1 select-none font-normal text-xs sm:text-sm", defaultClassNames.weekday), week: cn("flex w-full", defaultClassNames.week), day: cn("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-sm group/day select-none", props.showWeekNumber
|
|
87
86
|
? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-sm"
|
|
88
|
-
: "[&:first-child[data-selected=true]_button]:rounded-l-sm", defaultClassNames.day), range_start: cn("rounded-l-sm bg-accent", defaultClassNames.range_start), range_middle: cn("rounded-none", defaultClassNames.range_middle), range_end: cn("rounded-r-sm bg-accent", defaultClassNames.range_end), today: cn("rounded-sm bg-accent", defaultClassNames.today), outside: cn("text-gray-400 aria-selected:text-gray-400", defaultClassNames.outside), disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled), hidden: cn("invisible", defaultClassNames.hidden) }, classNames)
|
|
87
|
+
: "[&:first-child[data-selected=true]_button]:rounded-l-sm", defaultClassNames.day), range_start: cn("rounded-l-sm bg-accent", defaultClassNames.range_start), range_middle: cn("rounded-none", defaultClassNames.range_middle), range_end: cn("rounded-r-sm bg-accent", defaultClassNames.range_end), today: cn("rounded-sm bg-accent", defaultClassNames.today), outside: cn("text-gray-400 aria-selected:text-gray-400", defaultClassNames.outside), disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled), hidden: cn("invisible", defaultClassNames.hidden) }, classNames)} components={{
|
|
89
88
|
Root: function (_a) {
|
|
90
89
|
var className = _a.className, rootRef = _a.rootRef, props = __rest(_a, ["className", "rootRef"]);
|
|
91
|
-
return (
|
|
90
|
+
return (<div data-slot="calendar" ref={rootRef} className={cn(className)} {...props}/>);
|
|
92
91
|
},
|
|
93
92
|
Chevron: function (_a) {
|
|
94
93
|
var className = _a.className, orientation = _a.orientation;
|
|
95
94
|
if (orientation === "left") {
|
|
96
|
-
return
|
|
95
|
+
return <ChevronLeftIcon className={cn("size-4", className)}/>;
|
|
97
96
|
}
|
|
98
97
|
if (orientation === "right") {
|
|
99
|
-
return
|
|
98
|
+
return <ChevronRightIcon className={cn("size-4", className)}/>;
|
|
100
99
|
}
|
|
101
|
-
return
|
|
100
|
+
return <></>;
|
|
102
101
|
},
|
|
103
102
|
MonthCaption: function (_a) {
|
|
104
103
|
var calendarMonth = _a.calendarMonth;
|
|
105
|
-
return (
|
|
104
|
+
return (<DaysCaption calendarMonth={calendarMonth.date} setPickerView={setPickerView} displayMonth={displayMonth} setDisplayMonth={handleMonthChange} calendarSize={calendarSize}/>);
|
|
106
105
|
},
|
|
107
|
-
DayButton: function (dayButtonProps) { return (
|
|
108
|
-
Weekdays: function (weekdaysProps) { return (
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
DayButton: function (dayButtonProps) { return (<CalendarDayButton {...dayButtonProps} calendarSize={calendarSize}/>); },
|
|
107
|
+
Weekdays: function (weekdaysProps) { return (<thead data-slot={Reset_BS}>
|
|
108
|
+
<tr data-slot={Reset_BS} {...weekdaysProps}/>
|
|
109
|
+
</thead>); },
|
|
110
|
+
Weekday: function (weekdayProps) { return (<th data-slot={Reset_BS} {...weekdayProps}/>); },
|
|
111
|
+
}} {...props}/>);
|
|
111
112
|
}
|
|
112
113
|
function CustomCaption(_a) {
|
|
113
114
|
var caption = _a.caption, onPrevClick = _a.onPrevClick, onCaptionClick = _a.onCaptionClick, onNextClick = _a.onNextClick, calendarSize = _a.calendarSize;
|
|
114
|
-
return (
|
|
115
|
+
return (<div className="flex items-center justify-between gap-1 sm:gap-2">
|
|
116
|
+
<IconButton variant="ghost" color="gray" onClick={onPrevClick} className={cn(calendarStyles.navButton[calendarSize])} icon="angle-left" size={calendarSize}/>
|
|
117
|
+
<Button variant="ghost" color="gray" size={calendarSize} onClick={onCaptionClick} className="flex-1 min-w-0 text-xs sm:text-sm">
|
|
118
|
+
{caption}
|
|
119
|
+
</Button>
|
|
120
|
+
<IconButton variant="ghost" color="gray" onClick={onNextClick} className={cn(calendarStyles.navButton[calendarSize])} icon="angle-right" size={calendarSize}/>
|
|
121
|
+
</div>);
|
|
115
122
|
}
|
|
116
123
|
function DaysCaption(_a) {
|
|
117
124
|
var calendarMonth = _a.calendarMonth, setPickerView = _a.setPickerView, displayMonth = _a.displayMonth, setDisplayMonth = _a.setDisplayMonth, calendarSize = _a.calendarSize;
|
|
@@ -128,14 +135,21 @@ function DaysCaption(_a) {
|
|
|
128
135
|
newDate.setMonth(newDate.getMonth() + 1);
|
|
129
136
|
setDisplayMonth(newDate);
|
|
130
137
|
};
|
|
131
|
-
return (
|
|
138
|
+
return (<CustomCaption calendarSize={calendarSize} caption={calendarMonth.toLocaleString("default", {
|
|
132
139
|
month: "long",
|
|
133
140
|
year: "numeric",
|
|
134
|
-
})
|
|
141
|
+
})} onPrevClick={handlePrevMonth} onCaptionClick={handleCaptionClick} onNextClick={handleNextMonth}/>);
|
|
135
142
|
}
|
|
136
143
|
function CustomPicker(_a) {
|
|
137
144
|
var caption = _a.caption, calendarSize = _a.calendarSize, onPrevClick = _a.onPrevClick, onCaptionClick = _a.onCaptionClick, onNextClick = _a.onNextClick, data = _a.data, onClick = _a.onClick, activeIndex = _a.activeIndex, activeItem = _a.activeItem;
|
|
138
|
-
return (
|
|
145
|
+
return (<div className="bg-white rounded-sm p-1 sm:p-2 w-xs sm:w-lg">
|
|
146
|
+
<CustomCaption caption={caption} onPrevClick={onPrevClick} onCaptionClick={onCaptionClick} onNextClick={onNextClick} calendarSize={calendarSize}/>
|
|
147
|
+
<div className="grid grid-cols-3 sm:grid-cols-4 gap-1 sm:gap-2">
|
|
148
|
+
{data.map(function (item, index) { return (<Button key={item} onClick={function () { return onClick(item, index); }} variant={activeIndex === index || activeItem === item ? "fill" : "ghost"} color={activeIndex === index || activeItem === item ? "blue" : "gray"} size={calendarSize} className={cn("w-full text-xs sm:text-sm aspect-square", calendarStyles.customPickerNavButton[calendarSize])}>
|
|
149
|
+
{item}
|
|
150
|
+
</Button>); })}
|
|
151
|
+
</div>
|
|
152
|
+
</div>);
|
|
139
153
|
}
|
|
140
154
|
function MonthPicker(_a) {
|
|
141
155
|
var displayMonth = _a.displayMonth, setDisplayMonth = _a.setDisplayMonth, setPickerView = _a.setPickerView, calendarSize = _a.calendarSize;
|
|
@@ -172,7 +186,7 @@ function MonthPicker(_a) {
|
|
|
172
186
|
newDate.setFullYear(newDate.getFullYear() + 1);
|
|
173
187
|
setDisplayMonth(newDate);
|
|
174
188
|
};
|
|
175
|
-
return (
|
|
189
|
+
return (<CustomPicker caption={displayMonth.getFullYear()} calendarSize={calendarSize} onPrevClick={handlePrevYear} onCaptionClick={handleYearClick} onNextClick={handleNextYear} data={months} onClick={handleMonthSelect} activeIndex={displayMonth.getMonth()}/>);
|
|
176
190
|
}
|
|
177
191
|
function YearPicker(_a) {
|
|
178
192
|
var displayMonth = _a.displayMonth, setDisplayMonth = _a.setDisplayMonth, setPickerView = _a.setPickerView, calendarSize = _a.calendarSize;
|
|
@@ -195,7 +209,7 @@ function YearPicker(_a) {
|
|
|
195
209
|
newDate.setFullYear(newDate.getFullYear() + 12);
|
|
196
210
|
setDisplayMonth(newDate);
|
|
197
211
|
};
|
|
198
|
-
return (
|
|
212
|
+
return (<CustomPicker caption={displayMonth.getFullYear()} onPrevClick={handlePrevYears} onNextClick={handleNextYears} calendarSize={calendarSize} activeItem={displayMonth.getFullYear()} data={years} onClick={handleYearSelect}/>);
|
|
199
213
|
}
|
|
200
214
|
function CalendarDayButton(_a) {
|
|
201
215
|
var className = _a.className, day = _a.day, modifiers = _a.modifiers, calendarSize = _a.calendarSize, props = __rest(_a, ["className", "day", "modifiers", "calendarSize"]);
|
|
@@ -213,10 +227,10 @@ function CalendarDayButton(_a) {
|
|
|
213
227
|
var rangeStartClasses = "data-[range-start=true]:bg-black data-[range-start=true]:text-white data-[range-start=true]:hover:bg-black data-[range-start=true]:rounded-sm data-[range-start=true]:rounded-l-sm";
|
|
214
228
|
var rangeEndClasses = "data-[range-end=true]:bg-black data-[range-end=true]:text-white data-[range-end=true]:hover:bg-black data-[range-end=true]:rounded-sm data-[range-end=true]:rounded-r-sm";
|
|
215
229
|
var outsideClasses = "data-[outside=true]:text-gray-400 data-[outside=true]:hover:text-gray-400";
|
|
216
|
-
return (
|
|
230
|
+
return (<Button ref={ref} variant="ghost" data-day={day.date.toLocaleDateString()} data-selected-single={modifiers.selected &&
|
|
217
231
|
!modifiers.range_start &&
|
|
218
232
|
!modifiers.range_end &&
|
|
219
|
-
!modifiers.range_middle
|
|
233
|
+
!modifiers.range_middle} data-range-start={modifiers.range_start} data-range-end={modifiers.range_end} data-range-middle={modifiers.range_middle} data-outside={isOutside} className={cn(defaultClasses, selectedSingleClasses, rangeMiddleClasses, rangeStartClasses, rangeEndClasses, outsideClasses, "group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10", "[&>span]:text-xs [&>span]:opacity-70", "text-xs sm:text-sm", calendarStyles.cellButton[calendarSize], defaultClassNames.day, className)} {...props}/>);
|
|
220
234
|
}
|
|
221
235
|
export { Calendar, CalendarDayButton };
|
|
222
236
|
var templateObject_1, templateObject_2;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Command as CommandPrimitive } from "cmdk";
|
|
3
3
|
import { Dialog } from "../../components/Dropdown/Combobox/dialog";
|
|
4
|
-
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>):
|
|
4
|
+
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): React.JSX.Element;
|
|
5
5
|
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
6
6
|
title?: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
showCloseButton?: boolean;
|
|
10
|
-
}):
|
|
10
|
+
}): React.JSX.Element;
|
|
11
11
|
declare function CommandInput({ className, size, ...props }: Omit<React.ComponentProps<typeof CommandPrimitive.Input>, "size"> & {
|
|
12
12
|
size?: "sm" | "md" | "lg";
|
|
13
|
-
}):
|
|
14
|
-
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>):
|
|
15
|
-
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>):
|
|
16
|
-
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>):
|
|
17
|
-
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>):
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
|
|
15
|
+
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
|
|
16
|
+
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
|
|
17
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
|
|
18
18
|
declare function CommandItem({ className, size, ...props }: React.ComponentProps<typeof CommandPrimitive.Item> & {
|
|
19
19
|
size?: "sm" | "md" | "lg";
|
|
20
|
-
}):
|
|
21
|
-
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">):
|
|
20
|
+
}): React.JSX.Element;
|
|
21
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
22
22
|
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "../../components/Dropdown/Combobox/dialog";
|
|
16
|
+
import LUIcon from "../Icons/LUIcon";
|
|
17
|
+
import { comboboxSizes, searchIconSizeMap } from "../Dropdown/Combobox";
|
|
18
|
+
function Command(_a) {
|
|
19
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
20
|
+
return (<CommandPrimitive data-slot="command" className={cn("bg-white text-gray-900 !p-2 flex flex-col gap-2 overflow-hidden rounded-sm shadow-lg", className)} {...props}/>);
|
|
21
|
+
}
|
|
22
|
+
function CommandDialog(_a) {
|
|
23
|
+
var _b = _a.title, title = _b === void 0 ? "Command Palette" : _b, _c = _a.description, description = _c === void 0 ? "Search for a command to run..." : _c, children = _a.children, className = _a.className, _d = _a.showCloseButton, showCloseButton = _d === void 0 ? true : _d, props = __rest(_a, ["title", "description", "children", "className", "showCloseButton"]);
|
|
24
|
+
return (<Dialog {...props}>
|
|
25
|
+
<DialogHeader className="sr-only">
|
|
26
|
+
<DialogTitle>{title}</DialogTitle>
|
|
27
|
+
<DialogDescription>{description}</DialogDescription>
|
|
28
|
+
</DialogHeader>
|
|
29
|
+
<DialogContent className={cn("overflow-hidden p-0", className)} showCloseButton={showCloseButton}>
|
|
30
|
+
<Command className="[&_[cmdk-group-heading]]:text-muted-foreground [&_[data-slot=command-input-wrapper]]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
|
|
31
|
+
{children}
|
|
32
|
+
</Command>
|
|
33
|
+
</DialogContent>
|
|
34
|
+
</Dialog>);
|
|
35
|
+
}
|
|
36
|
+
function CommandInput(_a) {
|
|
37
|
+
var className = _a.className, _b = _a.size, size = _b === void 0 ? "md" : _b, props = __rest(_a, ["className", "size"]);
|
|
38
|
+
return (<div data-slot="command-input-wrapper" className={cn("flex items-center gap-2 border border-gray-200 rounded-sm font-normal !leading-normal !px-4 !py-3 ".concat(comboboxSizes[size]), className)}>
|
|
39
|
+
<LUIcon icon="magnifying-glass" size={searchIconSizeMap[size]}/>
|
|
40
|
+
<CommandPrimitive.Input data-slot="command-input" className={cn("placeholder:text-gray-400 flex outline-hidden disabled:cursor-not-allowed disabled:opacity-50")} {...props}/>
|
|
41
|
+
</div>);
|
|
42
|
+
}
|
|
43
|
+
function CommandList(_a) {
|
|
44
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
45
|
+
return (<CommandPrimitive.List data-slot="command-list" className={cn("scroll-py-1 overflow-x-hidden overflow-y-auto scrollbar-width-none [&::-webkit-scrollbar]:hidden max-h-[200px] sm:max-h-[320px]", className)} {...props}/>);
|
|
46
|
+
}
|
|
47
|
+
function CommandEmpty(_a) {
|
|
48
|
+
var props = __rest(_a, []);
|
|
49
|
+
return (<CommandPrimitive.Empty data-slot="command-empty" className="py-6 text-center text-sm" {...props}/>);
|
|
50
|
+
}
|
|
51
|
+
function CommandGroup(_a) {
|
|
52
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
53
|
+
return (<CommandPrimitive.Group data-slot="command-group" className={cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className)} {...props}/>);
|
|
54
|
+
}
|
|
55
|
+
function CommandSeparator(_a) {
|
|
56
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
57
|
+
return (<CommandPrimitive.Separator data-slot="command-separator" className={cn("bg-border -mx-1 h-px", className)} {...props}/>);
|
|
58
|
+
}
|
|
59
|
+
function CommandItem(_a) {
|
|
60
|
+
var className = _a.className, _b = _a.size, size = _b === void 0 ? "md" : _b, props = __rest(_a, ["className", "size"]);
|
|
61
|
+
return (<CommandPrimitive.Item data-slot="command-item" className={cn("hover:bg-blue-50 hover:text-gray-900 relative flex cursor-default items-center gap-2 !px-4 !py-3 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 font-normal !leading-normal ".concat(comboboxSizes[size]), className)} {...props}/>);
|
|
62
|
+
}
|
|
63
|
+
function CommandShortcut(_a) {
|
|
64
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
65
|
+
return (<span data-slot="command-shortcut" className={cn("text-muted-foreground ml-auto text-xs tracking-widest", className)} {...props}/>);
|
|
66
|
+
}
|
|
67
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
-
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>):
|
|
4
|
-
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>):
|
|
5
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>):
|
|
6
|
-
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>):
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
|
|
7
7
|
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
|
+
function Popover(_a) {
|
|
16
|
+
var props = __rest(_a, []);
|
|
17
|
+
return <PopoverPrimitive.Root data-slot="popover" {...props}/>;
|
|
18
|
+
}
|
|
19
|
+
function PopoverTrigger(_a) {
|
|
20
|
+
var props = __rest(_a, []);
|
|
21
|
+
return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props}/>;
|
|
22
|
+
}
|
|
23
|
+
function PopoverContent(_a) {
|
|
24
|
+
var className = _a.className, _b = _a.align, align = _b === void 0 ? "center" : _b, _c = _a.sideOffset, sideOffset = _c === void 0 ? 4 : _c, props = __rest(_a, ["className", "align", "sideOffset"]);
|
|
25
|
+
return (<PopoverPrimitive.Portal>
|
|
26
|
+
<PopoverPrimitive.Content data-slot="popover-content" align={align} sideOffset={sideOffset} className={cn("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 origin-(--radix-popover-content-transform-origin) outline-hidden", className)} {...props}/>
|
|
27
|
+
</PopoverPrimitive.Portal>);
|
|
28
|
+
}
|
|
29
|
+
function PopoverAnchor(_a) {
|
|
30
|
+
var props = __rest(_a, []);
|
|
31
|
+
return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props}/>;
|
|
32
|
+
}
|
|
33
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
-
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>):
|
|
4
|
-
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>):
|
|
5
|
-
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>):
|
|
6
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>):
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
|
|
7
7
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
|
+
function TooltipProvider(_a) {
|
|
16
|
+
var _b = _a.delayDuration, delayDuration = _b === void 0 ? 0 : _b, props = __rest(_a, ["delayDuration"]);
|
|
17
|
+
return (<TooltipPrimitive.Provider data-slot="tooltip-provider" delayDuration={delayDuration} {...props}/>);
|
|
18
|
+
}
|
|
19
|
+
function Tooltip(_a) {
|
|
20
|
+
var props = __rest(_a, []);
|
|
21
|
+
return (<TooltipProvider>
|
|
22
|
+
<TooltipPrimitive.Root data-slot="tooltip" {...props}/>
|
|
23
|
+
</TooltipProvider>);
|
|
24
|
+
}
|
|
25
|
+
function TooltipTrigger(_a) {
|
|
26
|
+
var props = __rest(_a, []);
|
|
27
|
+
return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props}/>;
|
|
28
|
+
}
|
|
29
|
+
function TooltipContent(_a) {
|
|
30
|
+
var className = _a.className, _b = _a.sideOffset, sideOffset = _b === void 0 ? 0 : _b, children = _a.children, props = __rest(_a, ["className", "sideOffset", "children"]);
|
|
31
|
+
return (<TooltipPrimitive.Portal>
|
|
32
|
+
<TooltipPrimitive.Content data-slot="tooltip-content" sideOffset={sideOffset} className={cn("!bg-primary !text-primary-foreground animate-in fade-in-0 !zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-fit origin-(--radix-tooltip-content-transform-origin) !rounded-md !px-3 !py-1.5 !text-xs !text-balance", className)} {...props}>
|
|
33
|
+
{children}
|
|
34
|
+
<TooltipPrimitive.Arrow className="!bg-primary !fill-primary z-50 !size-3 translate-y-[calc(-50%_-_2px)] rotate-45 !rounded-[2px]"/>
|
|
35
|
+
</TooltipPrimitive.Content>
|
|
36
|
+
</TooltipPrimitive.Portal>);
|
|
37
|
+
}
|
|
38
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -22,5 +22,5 @@ declare const typographyVariants: (props?: ({
|
|
|
22
22
|
type TypographyProps = React.HTMLProps<HTMLElement> & VariantProps<typeof typographyVariants> & {
|
|
23
23
|
variant?: keyof typeof variant;
|
|
24
24
|
};
|
|
25
|
-
declare function Typography({ className, variant, children, ...props }: TypographyProps):
|
|
25
|
+
declare function Typography({ className, variant, children, ...props }: TypographyProps): React.JSX.Element;
|
|
26
26
|
export { Typography, typographyVariants };
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
2
|
var t = {};
|
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -20,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
9
|
}
|
|
21
10
|
return t;
|
|
22
11
|
};
|
|
23
|
-
import
|
|
12
|
+
import * as React from "react";
|
|
24
13
|
import { cva } from "class-variance-authority";
|
|
25
14
|
import { cn } from "../../lib/utils";
|
|
26
15
|
export var variant = {
|
|
@@ -60,6 +49,8 @@ function Typography(_a) {
|
|
|
60
49
|
else if (variant === null || variant === void 0 ? void 0 : variant.startsWith("b")) {
|
|
61
50
|
Tag = "p";
|
|
62
51
|
}
|
|
63
|
-
return (
|
|
52
|
+
return (<Tag className={cn(typographyVariants({ variant: variant, className: className }))} {...props}>
|
|
53
|
+
{children}
|
|
54
|
+
</Tag>);
|
|
64
55
|
}
|
|
65
56
|
export { Typography, typographyVariants };
|
package/dist/styles/global.css
CHANGED
|
@@ -247,6 +247,12 @@
|
|
|
247
247
|
.inset-0 {
|
|
248
248
|
inset: calc(var(--spacing) * 0);
|
|
249
249
|
}
|
|
250
|
+
.inset-x-0 {
|
|
251
|
+
inset-inline: calc(var(--spacing) * 0);
|
|
252
|
+
}
|
|
253
|
+
.inset-y-0 {
|
|
254
|
+
inset-block: calc(var(--spacing) * 0);
|
|
255
|
+
}
|
|
250
256
|
.top-0 {
|
|
251
257
|
top: calc(var(--spacing) * 0);
|
|
252
258
|
}
|
|
@@ -379,9 +385,15 @@
|
|
|
379
385
|
.mx-2 {
|
|
380
386
|
margin-inline: calc(var(--spacing) * 2);
|
|
381
387
|
}
|
|
388
|
+
.mx-4 {
|
|
389
|
+
margin-inline: calc(var(--spacing) * 4);
|
|
390
|
+
}
|
|
382
391
|
.mx-auto {
|
|
383
392
|
margin-inline: auto;
|
|
384
393
|
}
|
|
394
|
+
.\!my-1 {
|
|
395
|
+
margin-block: calc(var(--spacing) * 1) !important;
|
|
396
|
+
}
|
|
385
397
|
.my-1 {
|
|
386
398
|
margin-block: calc(var(--spacing) * 1);
|
|
387
399
|
}
|
|
@@ -476,6 +488,9 @@
|
|
|
476
488
|
.block {
|
|
477
489
|
display: block;
|
|
478
490
|
}
|
|
491
|
+
.contents {
|
|
492
|
+
display: contents;
|
|
493
|
+
}
|
|
479
494
|
.flex {
|
|
480
495
|
display: flex;
|
|
481
496
|
}
|
|
@@ -883,6 +898,9 @@
|
|
|
883
898
|
.w-full {
|
|
884
899
|
width: 100%;
|
|
885
900
|
}
|
|
901
|
+
.w-px {
|
|
902
|
+
width: 1px;
|
|
903
|
+
}
|
|
886
904
|
.w-xs {
|
|
887
905
|
width: var(--container-xs);
|
|
888
906
|
}
|
|
@@ -1359,6 +1377,10 @@
|
|
|
1359
1377
|
border-bottom-style: var(--tw-border-style);
|
|
1360
1378
|
border-bottom-width: 0px;
|
|
1361
1379
|
}
|
|
1380
|
+
.border-l {
|
|
1381
|
+
border-left-style: var(--tw-border-style);
|
|
1382
|
+
border-left-width: 1px;
|
|
1383
|
+
}
|
|
1362
1384
|
.border-l-4 {
|
|
1363
1385
|
border-left-style: var(--tw-border-style);
|
|
1364
1386
|
border-left-width: 4px;
|
|
@@ -1864,9 +1886,6 @@
|
|
|
1864
1886
|
.py-3 {
|
|
1865
1887
|
padding-block: calc(var(--spacing) * 3);
|
|
1866
1888
|
}
|
|
1867
|
-
.py-4 {
|
|
1868
|
-
padding-block: calc(var(--spacing) * 4);
|
|
1869
|
-
}
|
|
1870
1889
|
.py-6 {
|
|
1871
1890
|
padding-block: calc(var(--spacing) * 6);
|
|
1872
1891
|
}
|
|
@@ -1888,8 +1907,8 @@
|
|
|
1888
1907
|
.\!pt-4 {
|
|
1889
1908
|
padding-top: calc(var(--spacing) * 4) !important;
|
|
1890
1909
|
}
|
|
1891
|
-
|
|
1892
|
-
padding-right: calc(var(--spacing) * 2);
|
|
1910
|
+
.\!pr-2 {
|
|
1911
|
+
padding-right: calc(var(--spacing) * 2) !important;
|
|
1893
1912
|
}
|
|
1894
1913
|
.pr-2\.5 {
|
|
1895
1914
|
padding-right: calc(var(--spacing) * 2.5);
|
|
@@ -2070,6 +2089,10 @@
|
|
|
2070
2089
|
--tw-font-weight: var(--font-weight-normal);
|
|
2071
2090
|
font-weight: var(--font-weight-normal);
|
|
2072
2091
|
}
|
|
2092
|
+
.font-normal\! {
|
|
2093
|
+
--tw-font-weight: var(--font-weight-normal) !important;
|
|
2094
|
+
font-weight: var(--font-weight-normal) !important;
|
|
2095
|
+
}
|
|
2073
2096
|
.font-semibold {
|
|
2074
2097
|
--tw-font-weight: var(--font-weight-semibold);
|
|
2075
2098
|
font-weight: var(--font-weight-semibold);
|
|
@@ -2512,6 +2535,9 @@
|
|
|
2512
2535
|
.\[--cell-size\:--spacing\(6\)\] {
|
|
2513
2536
|
--cell-size: calc(var(--spacing) * 6);
|
|
2514
2537
|
}
|
|
2538
|
+
.lu-border {
|
|
2539
|
+
border: 1px solid currentColor;
|
|
2540
|
+
}
|
|
2515
2541
|
.running {
|
|
2516
2542
|
animation-play-state: running;
|
|
2517
2543
|
}
|
|
@@ -4512,6 +4538,12 @@
|
|
|
4512
4538
|
opacity: 0%;
|
|
4513
4539
|
}
|
|
4514
4540
|
}
|
|
4541
|
+
.data-\[state\=closed\]\:duration-300 {
|
|
4542
|
+
&[data-state="closed"] {
|
|
4543
|
+
--tw-duration: 300ms;
|
|
4544
|
+
transition-duration: 300ms;
|
|
4545
|
+
}
|
|
4546
|
+
}
|
|
4515
4547
|
.data-\[state\=closed\]\:fade-out-0 {
|
|
4516
4548
|
&[data-state="closed"] {
|
|
4517
4549
|
--tw-exit-opacity: calc(0/100);
|
|
@@ -4524,6 +4556,26 @@
|
|
|
4524
4556
|
--tw-exit-scale: .95;
|
|
4525
4557
|
}
|
|
4526
4558
|
}
|
|
4559
|
+
.data-\[state\=closed\]\:slide-out-to-bottom {
|
|
4560
|
+
&[data-state="closed"] {
|
|
4561
|
+
--tw-exit-translate-y: 100%;
|
|
4562
|
+
}
|
|
4563
|
+
}
|
|
4564
|
+
.data-\[state\=closed\]\:slide-out-to-left {
|
|
4565
|
+
&[data-state="closed"] {
|
|
4566
|
+
--tw-exit-translate-x: -100%;
|
|
4567
|
+
}
|
|
4568
|
+
}
|
|
4569
|
+
.data-\[state\=closed\]\:slide-out-to-right {
|
|
4570
|
+
&[data-state="closed"] {
|
|
4571
|
+
--tw-exit-translate-x: 100%;
|
|
4572
|
+
}
|
|
4573
|
+
}
|
|
4574
|
+
.data-\[state\=closed\]\:slide-out-to-top {
|
|
4575
|
+
&[data-state="closed"] {
|
|
4576
|
+
--tw-exit-translate-y: -100%;
|
|
4577
|
+
}
|
|
4578
|
+
}
|
|
4527
4579
|
.data-\[state\=inactive\]\:bg-blue-100 {
|
|
4528
4580
|
&[data-state="inactive"] {
|
|
4529
4581
|
background-color: #e2edf9;
|
|
@@ -4557,6 +4609,11 @@
|
|
|
4557
4609
|
background-color: var(--accent);
|
|
4558
4610
|
}
|
|
4559
4611
|
}
|
|
4612
|
+
.data-\[state\=open\]\:bg-secondary {
|
|
4613
|
+
&[data-state="open"] {
|
|
4614
|
+
background-color: var(--secondary);
|
|
4615
|
+
}
|
|
4616
|
+
}
|
|
4560
4617
|
.data-\[state\=open\]\:text-muted-foreground {
|
|
4561
4618
|
&[data-state="open"] {
|
|
4562
4619
|
color: var(--muted-foreground);
|
|
@@ -4567,6 +4624,12 @@
|
|
|
4567
4624
|
opacity: 100%;
|
|
4568
4625
|
}
|
|
4569
4626
|
}
|
|
4627
|
+
.data-\[state\=open\]\:duration-500 {
|
|
4628
|
+
&[data-state="open"] {
|
|
4629
|
+
--tw-duration: 500ms;
|
|
4630
|
+
transition-duration: 500ms;
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4570
4633
|
.data-\[state\=open\]\:fade-in-0 {
|
|
4571
4634
|
&[data-state="open"] {
|
|
4572
4635
|
--tw-enter-opacity: calc(0/100);
|
|
@@ -4579,6 +4642,26 @@
|
|
|
4579
4642
|
--tw-enter-scale: .95;
|
|
4580
4643
|
}
|
|
4581
4644
|
}
|
|
4645
|
+
.data-\[state\=open\]\:slide-in-from-bottom {
|
|
4646
|
+
&[data-state="open"] {
|
|
4647
|
+
--tw-enter-translate-y: 100%;
|
|
4648
|
+
}
|
|
4649
|
+
}
|
|
4650
|
+
.data-\[state\=open\]\:slide-in-from-left {
|
|
4651
|
+
&[data-state="open"] {
|
|
4652
|
+
--tw-enter-translate-x: -100%;
|
|
4653
|
+
}
|
|
4654
|
+
}
|
|
4655
|
+
.data-\[state\=open\]\:slide-in-from-right {
|
|
4656
|
+
&[data-state="open"] {
|
|
4657
|
+
--tw-enter-translate-x: 100%;
|
|
4658
|
+
}
|
|
4659
|
+
}
|
|
4660
|
+
.data-\[state\=open\]\:slide-in-from-top {
|
|
4661
|
+
&[data-state="open"] {
|
|
4662
|
+
--tw-enter-translate-y: -100%;
|
|
4663
|
+
}
|
|
4664
|
+
}
|
|
4582
4665
|
.data-\[state\=selected\]\:bg-gray-50 {
|
|
4583
4666
|
&[data-state="selected"] {
|
|
4584
4667
|
background-color: #fafafa;
|
|
@@ -4666,6 +4749,11 @@
|
|
|
4666
4749
|
max-width: var(--container-lg);
|
|
4667
4750
|
}
|
|
4668
4751
|
}
|
|
4752
|
+
.sm\:max-w-sm {
|
|
4753
|
+
@media (width >= 40rem) {
|
|
4754
|
+
max-width: var(--container-sm);
|
|
4755
|
+
}
|
|
4756
|
+
}
|
|
4669
4757
|
.sm\:grid-cols-2 {
|
|
4670
4758
|
@media (width >= 40rem) {
|
|
4671
4759
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -4701,6 +4789,15 @@
|
|
|
4701
4789
|
gap: calc(var(--spacing) * 2);
|
|
4702
4790
|
}
|
|
4703
4791
|
}
|
|
4792
|
+
.sm\:space-x-2 {
|
|
4793
|
+
@media (width >= 40rem) {
|
|
4794
|
+
:where(& > :not(:last-child)) {
|
|
4795
|
+
--tw-space-x-reverse: 0;
|
|
4796
|
+
margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
|
|
4797
|
+
margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
|
|
4798
|
+
}
|
|
4799
|
+
}
|
|
4800
|
+
}
|
|
4704
4801
|
.sm\:p-2 {
|
|
4705
4802
|
@media (width >= 40rem) {
|
|
4706
4803
|
padding: calc(var(--spacing) * 2);
|
|
@@ -4780,6 +4877,11 @@
|
|
|
4780
4877
|
gap: calc(var(--spacing) * 4);
|
|
4781
4878
|
}
|
|
4782
4879
|
}
|
|
4880
|
+
.md\:pl-2 {
|
|
4881
|
+
@media (width >= 48rem) {
|
|
4882
|
+
padding-left: calc(var(--spacing) * 2);
|
|
4883
|
+
}
|
|
4884
|
+
}
|
|
4783
4885
|
.md\:\!text-sm {
|
|
4784
4886
|
@media (width >= 48rem) {
|
|
4785
4887
|
font-size: var(--text-sm) !important;
|