@kuzenbo/core 0.0.3 → 0.0.5
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/avatar-CXhwmJgG.js +65 -0
- package/dist/avatar-CXhwmJgG.js.map +1 -0
- package/dist/{avatar-image-Ce26D2fb.d.ts → avatar-DpiupAAM.d.ts} +35 -2
- package/dist/avatar-DpiupAAM.d.ts.map +1 -0
- package/dist/badge-BKRm6jL7.js +58 -0
- package/dist/badge-BKRm6jL7.js.map +1 -0
- package/dist/button-nAbTNrxA.d.ts +78 -0
- package/dist/button-nAbTNrxA.d.ts.map +1 -0
- package/dist/{dialog-trigger-BUF3elAP.js → dialog-CD5lfQA9.js} +33 -10
- package/dist/dialog-CD5lfQA9.js.map +1 -0
- package/dist/{dialog-viewport-Ce1huyAI.d.ts → dialog-DEkdr-9K.d.ts} +64 -2
- package/dist/dialog-DEkdr-9K.d.ts.map +1 -0
- package/dist/{dropdown-menu-trigger-COnFGfDa.js → dropdown-menu-BJi-V71O.js} +137 -101
- package/dist/dropdown-menu-BJi-V71O.js.map +1 -0
- package/dist/{dropdown-menu-trigger-BpgtLUvf.d.ts → dropdown-menu-Bpj576m0.d.ts} +259 -123
- package/dist/dropdown-menu-Bpj576m0.d.ts.map +1 -0
- package/dist/input-Ex9ZRqbo.js +38 -0
- package/dist/input-Ex9ZRqbo.js.map +1 -0
- package/dist/input-WWoBCgxe.d.ts +46 -0
- package/dist/input-WWoBCgxe.d.ts.map +1 -0
- package/dist/{input-group-textarea-B-rP98r5.js → input-group-CjcHP0L4.js} +50 -31
- package/dist/input-group-CjcHP0L4.js.map +1 -0
- package/dist/provider.js +4 -2
- package/dist/scroll-bar-C4qEUKlT.js.map +1 -1
- package/dist/separator-C8Qw2ADs.d.ts +13 -0
- package/dist/separator-C8Qw2ADs.d.ts.map +1 -0
- package/dist/{sheet-trigger-D7neoTF5.js → sheet-imSHXfFH.js} +29 -10
- package/dist/sheet-imSHXfFH.js.map +1 -0
- package/dist/{size-context-BjRwqlSg.js → size-context-CvLl3pMC.js} +3 -3
- package/dist/size-context-CvLl3pMC.js.map +1 -0
- package/dist/size-context-DXfCAlWF.d.ts.map +1 -1
- package/dist/size-provider-18EvJgDT.js.map +1 -1
- package/dist/size-provider-Bd2C6gKd.d.ts.map +1 -1
- package/dist/size-system-BTsMqZRQ.js +99 -0
- package/dist/size-system-BTsMqZRQ.js.map +1 -0
- package/dist/size-system-wzOLSuax.d.ts.map +1 -1
- package/dist/size.js +4 -2
- package/dist/{slider-root-presentation-ChJHPMIV.js → slider-root-presentation-B6OO_iCT.js} +19 -19
- package/dist/slider-root-presentation-B6OO_iCT.js.map +1 -0
- package/dist/{slider-value-Db8SCu0c.d.ts → slider-style-tokens-CZezJilZ.d.ts} +55 -55
- package/dist/slider-style-tokens-CZezJilZ.d.ts.map +1 -0
- package/dist/textarea-C8dsnn8D.d.ts +37 -0
- package/dist/textarea-C8dsnn8D.d.ts.map +1 -0
- package/dist/textarea-CkiM1N_I.js +39 -0
- package/dist/textarea-CkiM1N_I.js.map +1 -0
- package/dist/toggle-CxkIncmZ.d.ts +53 -0
- package/dist/toggle-CxkIncmZ.d.ts.map +1 -0
- package/dist/{tooltip-trigger-qXw-_nbh.js → tooltip-D0BEpCQx.js} +38 -13
- package/dist/tooltip-D0BEpCQx.js.map +1 -0
- package/dist/{tooltip-viewport-csA6luqI.d.ts → tooltip-DbJxt69l.d.ts} +61 -13
- package/dist/tooltip-DbJxt69l.d.ts.map +1 -0
- package/dist/ui/accordion.d.ts +4 -4
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +53 -52
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/affix.d.ts +3 -2
- package/dist/ui/affix.d.ts.map +1 -1
- package/dist/ui/affix.js +8 -7
- package/dist/ui/affix.js.map +1 -1
- package/dist/ui/alert-dialog.d.ts +3 -1
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +12 -9
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts +32 -32
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +88 -86
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/announcement.d.ts.map +1 -1
- package/dist/ui/announcement.js +5 -3
- package/dist/ui/announcement.js.map +1 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js.map +1 -1
- package/dist/ui/autocomplete.d.ts +74 -74
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +57 -53
- package/dist/ui/autocomplete.js.map +1 -1
- package/dist/ui/avatar.d.ts +2 -39
- package/dist/ui/avatar.js +2 -24
- package/dist/ui/badge.d.ts +28 -28
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +3 -53
- package/dist/ui/breadcrumb.d.ts +64 -64
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +49 -45
- package/dist/ui/breadcrumb.js.map +1 -1
- package/dist/ui/button-group.d.ts +34 -34
- package/dist/ui/button-group.d.ts.map +1 -1
- package/dist/ui/button-group.js +31 -28
- package/dist/ui/button-group.js.map +1 -1
- package/dist/ui/button.d.ts +2 -78
- package/dist/ui/button.js +42 -42
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +8 -6
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/carousel.d.ts +1 -1
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +36 -17
- package/dist/ui/carousel.js.map +1 -1
- package/dist/ui/checkbox-group.d.ts.map +1 -1
- package/dist/ui/checkbox-group.js +2 -0
- package/dist/ui/checkbox-group.js.map +1 -1
- package/dist/ui/checkbox.d.ts +20 -20
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +15 -13
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/code.d.ts.map +1 -1
- package/dist/ui/code.js +5 -5
- package/dist/ui/code.js.map +1 -1
- package/dist/ui/collapsible.js +1 -1
- package/dist/ui/collapsible.js.map +1 -1
- package/dist/ui/combobox.d.ts +107 -107
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +88 -87
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/command.d.ts +57 -58
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/command.js +54 -64
- package/dist/ui/command.js.map +1 -1
- package/dist/ui/container.d.ts.map +1 -1
- package/dist/ui/container.js.map +1 -1
- package/dist/ui/context-menu.d.ts +132 -132
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +102 -98
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/copy-button.d.ts +1 -3
- package/dist/ui/copy-button.d.ts.map +1 -1
- package/dist/ui/copy-button.js +12 -13
- package/dist/ui/copy-button.js.map +1 -1
- package/dist/ui/dialog.d.ts +2 -66
- package/dist/ui/dialog.js +2 -24
- package/dist/ui/drawer.d.ts +91 -91
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +68 -66
- package/dist/ui/drawer.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +3 -144
- package/dist/ui/dropdown-menu.js +3 -38
- package/dist/ui/dropzone.d.ts +55 -55
- package/dist/ui/dropzone.d.ts.map +1 -1
- package/dist/ui/dropzone.js +77 -72
- package/dist/ui/dropzone.js.map +1 -1
- package/dist/ui/emoji-picker.d.ts +79 -79
- package/dist/ui/emoji-picker.d.ts.map +1 -1
- package/dist/ui/emoji-picker.js +92 -87
- package/dist/ui/emoji-picker.js.map +1 -1
- package/dist/ui/empty.d.ts +61 -59
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +49 -44
- package/dist/ui/empty.js.map +1 -1
- package/dist/ui/field.d.ts +11 -11
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +9 -7
- package/dist/ui/field.js.map +1 -1
- package/dist/ui/fieldset.d.ts.map +1 -1
- package/dist/ui/fieldset.js.map +1 -1
- package/dist/ui/form.d.ts +8 -8
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +2 -0
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/input-group.d.ts +35 -35
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +2 -28
- package/dist/ui/input-otp.d.ts +36 -36
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +29 -28
- package/dist/ui/input-otp.js.map +1 -1
- package/dist/ui/input.d.ts +2 -46
- package/dist/ui/input.js +2 -34
- package/dist/ui/item.d.ts +20 -20
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/item.js +24 -22
- package/dist/ui/item.js.map +1 -1
- package/dist/ui/kbd.d.ts.map +1 -1
- package/dist/ui/kbd.js +10 -8
- package/dist/ui/kbd.js.map +1 -1
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js.map +1 -1
- package/dist/ui/marquee.d.ts.map +1 -1
- package/dist/ui/marquee.js +1 -1
- package/dist/ui/marquee.js.map +1 -1
- package/dist/ui/menubar.d.ts +133 -134
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +84 -81
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/meter.d.ts.map +1 -1
- package/dist/ui/meter.js +2 -0
- package/dist/ui/meter.js.map +1 -1
- package/dist/ui/navigation-list.d.ts +226 -226
- package/dist/ui/navigation-list.d.ts.map +1 -1
- package/dist/ui/navigation-list.js +242 -235
- package/dist/ui/navigation-list.js.map +1 -1
- package/dist/ui/navigation-menu.d.ts +82 -82
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +72 -67
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/number-field.d.ts +34 -34
- package/dist/ui/number-field.d.ts.map +1 -1
- package/dist/ui/number-field.js +26 -23
- package/dist/ui/number-field.js.map +1 -1
- package/dist/ui/pagination.d.ts +42 -42
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +45 -41
- package/dist/ui/pagination.js.map +1 -1
- package/dist/ui/pill.d.ts +2 -3
- package/dist/ui/pill.d.ts.map +1 -1
- package/dist/ui/pill.js +34 -23
- package/dist/ui/pill.js.map +1 -1
- package/dist/ui/popover.d.ts +13 -11
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +17 -14
- package/dist/ui/popover.js.map +1 -1
- package/dist/ui/portal.d.ts.map +1 -1
- package/dist/ui/portal.js +52 -11
- package/dist/ui/portal.js.map +1 -1
- package/dist/ui/preview-card.js +5 -5
- package/dist/ui/preview-card.js.map +1 -1
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/qr-code.d.ts.map +1 -1
- package/dist/ui/qr-code.js +7 -7
- package/dist/ui/qr-code.js.map +1 -1
- package/dist/ui/radio-group.d.ts +22 -22
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/radio-group.js +17 -15
- package/dist/ui/radio-group.js.map +1 -1
- package/dist/ui/range-slider.d.ts +1 -1
- package/dist/ui/range-slider.d.ts.map +1 -1
- package/dist/ui/range-slider.js +4 -7
- package/dist/ui/range-slider.js.map +1 -1
- package/dist/ui/rating.d.ts +35 -35
- package/dist/ui/rating.d.ts.map +1 -1
- package/dist/ui/rating.js +55 -46
- package/dist/ui/rating.js.map +1 -1
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +2 -2
- package/dist/ui/resizable.js.map +1 -1
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +2 -0
- package/dist/ui/scroll-area.js.map +1 -1
- package/dist/ui/select.d.ts +87 -87
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +85 -84
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/separator.d.ts +2 -13
- package/dist/ui/separator.js +2 -0
- package/dist/ui/separator.js.map +1 -1
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +2 -24
- package/dist/ui/sidebar.d.ts +73 -74
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +87 -84
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/slider.d.ts +1 -1
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +3 -1
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/spacer.d.ts.map +1 -1
- package/dist/ui/spacer.js +2 -2
- package/dist/ui/spacer.js.map +1 -1
- package/dist/ui/spinner.js +4 -2
- package/dist/ui/spinner.js.map +1 -1
- package/dist/ui/switch.d.ts +11 -11
- package/dist/ui/switch.js +7 -7
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.d.ts +60 -60
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +54 -46
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts +25 -25
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +75 -68
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/textarea.d.ts +2 -37
- package/dist/ui/textarea.js +3 -34
- package/dist/ui/theme-icon.d.ts +30 -30
- package/dist/ui/theme-icon.d.ts.map +1 -1
- package/dist/ui/theme-icon.js +22 -22
- package/dist/ui/theme-icon.js.map +1 -1
- package/dist/ui/timeline.d.ts +6 -6
- package/dist/ui/timeline.d.ts.map +1 -1
- package/dist/ui/timeline.js +165 -163
- package/dist/ui/timeline.js.map +1 -1
- package/dist/ui/toggle-group.d.ts +32 -32
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +22 -16
- package/dist/ui/toggle-group.js.map +1 -1
- package/dist/ui/toggle.d.ts +2 -53
- package/dist/ui/toggle.js +17 -15
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/toolbar.d.ts +54 -54
- package/dist/ui/toolbar.d.ts.map +1 -1
- package/dist/ui/toolbar.js +45 -40
- package/dist/ui/toolbar.js.map +1 -1
- package/dist/ui/tooltip.d.ts +2 -54
- package/dist/ui/tooltip.js +2 -28
- package/dist/ui/typography.d.ts +50 -36
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +28 -17
- package/dist/ui/typography.js.map +1 -1
- package/package.json +15 -15
- package/dist/avatar-image-BQ_NEKH4.js +0 -47
- package/dist/avatar-image-BQ_NEKH4.js.map +0 -1
- package/dist/avatar-image-Ce26D2fb.d.ts.map +0 -1
- package/dist/dialog-trigger-BUF3elAP.js.map +0 -1
- package/dist/dialog-viewport-Ce1huyAI.d.ts.map +0 -1
- package/dist/dropdown-menu-trigger-BpgtLUvf.d.ts.map +0 -1
- package/dist/dropdown-menu-trigger-COnFGfDa.js.map +0 -1
- package/dist/input-group-textarea-B-rP98r5.js.map +0 -1
- package/dist/sheet-trigger-D7neoTF5.js.map +0 -1
- package/dist/size-context-BjRwqlSg.js.map +0 -1
- package/dist/size-system-DTXmtQXw.js +0 -47
- package/dist/size-system-DTXmtQXw.js.map +0 -1
- package/dist/slider-root-presentation-ChJHPMIV.js.map +0 -1
- package/dist/slider-value-Db8SCu0c.d.ts.map +0 -1
- package/dist/tooltip-trigger-qXw-_nbh.js.map +0 -1
- package/dist/tooltip-viewport-csA6luqI.d.ts.map +0 -1
- package/dist/ui/avatar.d.ts.map +0 -1
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/badge.js.map +0 -1
- package/dist/ui/button.d.ts.map +0 -1
- package/dist/ui/dialog.d.ts.map +0 -1
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui/input-group.js.map +0 -1
- package/dist/ui/input.d.ts.map +0 -1
- package/dist/ui/input.js.map +0 -1
- package/dist/ui/separator.d.ts.map +0 -1
- package/dist/ui/sheet.js.map +0 -1
- package/dist/ui/textarea.d.ts.map +0 -1
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/toggle.d.ts.map +0 -1
- package/dist/ui/tooltip.d.ts.map +0 -1
- package/dist/ui/tooltip.js.map +0 -1
- package/dist/use-badge-default-props-8d9wPL0k.js +0 -8
- package/dist/use-badge-default-props-8d9wPL0k.js.map +0 -1
- package/dist/use-input-default-props-B6VgKXGM.js +0 -8
- package/dist/use-input-default-props-B6VgKXGM.js.map +0 -1
- package/dist/use-textarea-default-props-7MlOxkDO.js +0 -8
- package/dist/use-textarea-default-props-7MlOxkDO.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { a as useComponentSize } from "./size-provider-18EvJgDT.js";
|
|
1
2
|
import { t as mergeBaseUIClassName } from "./merge-base-ui-class-name-HKsgjcXj.js";
|
|
2
|
-
import { createContext, useContext } from "react";
|
|
3
|
+
import { createContext, useContext, useMemo } from "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { cn, tv } from "tailwind-variants";
|
|
5
6
|
import { ArrowRight01Icon, Tick02Icon } from "@hugeicons/core-free-icons";
|
|
@@ -32,33 +33,33 @@ const DropdownMenuOverlayContext = createContext({});
|
|
|
32
33
|
//#endregion
|
|
33
34
|
//#region src/ui/dropdown-menu/dropdown-menu-checkbox-item.tsx
|
|
34
35
|
const dropdownMenuCheckboxItemVariants = tv({
|
|
36
|
+
defaultVariants: { size: "md" },
|
|
35
37
|
slots: {
|
|
36
38
|
indicator: "pointer-events-none absolute flex items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
37
|
-
root: "
|
|
39
|
+
root: "cursor-clickable focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex items-center rounded-md outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
38
40
|
},
|
|
39
41
|
variants: { size: {
|
|
40
|
-
|
|
41
|
-
indicator: "right-
|
|
42
|
-
root: "gap-
|
|
43
|
-
},
|
|
44
|
-
sm: {
|
|
45
|
-
indicator: "right-2 size-3.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
46
|
-
root: "gap-1.5 rounded-[min(var(--radius-md),10px)] py-1 pr-7 pl-2 text-sm [&_svg:not([class*='size-'])]:size-3.5"
|
|
42
|
+
lg: {
|
|
43
|
+
indicator: "right-2.5 size-4 [&_svg:not([class*='size-'])]:size-4",
|
|
44
|
+
root: "gap-2 py-1.5 pr-9 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4"
|
|
47
45
|
},
|
|
48
46
|
md: {
|
|
49
47
|
indicator: "right-2 size-4 [&_svg:not([class*='size-'])]:size-4",
|
|
50
48
|
root: "gap-1.5 py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4"
|
|
51
49
|
},
|
|
52
|
-
|
|
53
|
-
indicator: "right-2
|
|
54
|
-
root: "gap-
|
|
50
|
+
sm: {
|
|
51
|
+
indicator: "right-2 size-3.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
52
|
+
root: "gap-1.5 rounded-[min(var(--radius-md),10px)] py-1 pr-7 pl-2 text-sm [&_svg:not([class*='size-'])]:size-3.5"
|
|
55
53
|
},
|
|
56
54
|
xl: {
|
|
57
55
|
indicator: "right-3 size-5 [&_svg:not([class*='size-'])]:size-5",
|
|
58
56
|
root: "gap-2.5 py-2 pr-10 pl-2.5 text-base [&_svg:not([class*='size-'])]:size-5"
|
|
57
|
+
},
|
|
58
|
+
xs: {
|
|
59
|
+
indicator: "right-1.5 size-3 [&_svg:not([class*='size-'])]:size-3",
|
|
60
|
+
root: "gap-1 rounded-[min(var(--radius-md),8px)] py-1 pr-6 pl-1.5 text-xs [&_svg:not([class*='size-'])]:size-3"
|
|
59
61
|
}
|
|
60
|
-
} }
|
|
61
|
-
defaultVariants: { size: "md" }
|
|
62
|
+
} }
|
|
62
63
|
});
|
|
63
64
|
const DropdownMenuCheckboxItem = ({ className, children, checked, size, ...props }) => {
|
|
64
65
|
const { size: rootSize } = useContext(DropdownMenuContext);
|
|
@@ -85,15 +86,15 @@ const DropdownMenuCheckboxItem = ({ className, children, checked, size, ...props
|
|
|
85
86
|
//#endregion
|
|
86
87
|
//#region src/ui/dropdown-menu/dropdown-menu-popup.tsx
|
|
87
88
|
const dropdownMenuPopupVariants = tv({
|
|
88
|
-
base: "z-
|
|
89
|
+
base: "z-overlay bg-popover text-popover-foreground ring-foreground/10 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-open:animate-in data-open:fade-in-0 data-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 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto shadow-md ring-1 duration-100 outline-none data-closed:overflow-hidden",
|
|
90
|
+
defaultVariants: { size: "md" },
|
|
89
91
|
variants: { size: {
|
|
90
|
-
xs: "min-w-24 rounded-[min(var(--radius-md),8px)] p-0.5",
|
|
91
|
-
sm: "min-w-28 rounded-[min(var(--radius-md),10px)] p-0.5",
|
|
92
|
-
md: "min-w-32 rounded-md p-1",
|
|
93
92
|
lg: "min-w-36 rounded-md p-1.5",
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
md: "min-w-32 rounded-md p-1",
|
|
94
|
+
sm: "min-w-28 rounded-[min(var(--radius-md),10px)] p-0.5",
|
|
95
|
+
xl: "min-w-40 rounded-md p-2",
|
|
96
|
+
xs: "min-w-24 rounded-[min(var(--radius-md),8px)] p-0.5"
|
|
97
|
+
} }
|
|
97
98
|
});
|
|
98
99
|
const DropdownMenuPopup = ({ className, size, ...props }) => {
|
|
99
100
|
const { size: rootSize } = useContext(DropdownMenuContext);
|
|
@@ -117,7 +118,7 @@ const DropdownMenuPortal = ({ ...props }) => /* @__PURE__ */ jsx(Menu.Portal, {
|
|
|
117
118
|
//#endregion
|
|
118
119
|
//#region src/ui/dropdown-menu/dropdown-menu-positioner.tsx
|
|
119
120
|
const DropdownMenuPositioner = ({ className, ...props }) => /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
120
|
-
className: cn("
|
|
121
|
+
className: cn("z-overlay isolate outline-none", className),
|
|
121
122
|
"data-slot": "dropdown-menu-positioner",
|
|
122
123
|
...props
|
|
123
124
|
});
|
|
@@ -127,8 +128,9 @@ const DropdownMenuPositioner = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
127
128
|
const DropdownMenuContent = ({ align = "start", alignOffset = 0, side = "bottom", sideOffset = 4, className, size, ...props }) => {
|
|
128
129
|
const { size: rootSize } = useContext(DropdownMenuContext);
|
|
129
130
|
const resolvedSize = size ?? rootSize ?? "md";
|
|
131
|
+
const contextValue = useMemo(() => ({ size: resolvedSize }), [resolvedSize]);
|
|
130
132
|
return /* @__PURE__ */ jsx(DropdownMenuOverlayContext.Provider, {
|
|
131
|
-
value:
|
|
133
|
+
value: contextValue,
|
|
132
134
|
children: /* @__PURE__ */ jsx(DropdownMenuPortal, { children: /* @__PURE__ */ jsx(DropdownMenuPositioner, {
|
|
133
135
|
align,
|
|
134
136
|
alignOffset,
|
|
@@ -155,28 +157,28 @@ const DropdownMenuGroup = ({ ...props }) => /* @__PURE__ */ jsx(Menu.Group, {
|
|
|
155
157
|
//#endregion
|
|
156
158
|
//#region src/ui/dropdown-menu/dropdown-menu-item.tsx
|
|
157
159
|
const dropdownMenuItemVariants = tv({
|
|
158
|
-
base: "group/dropdown-menu-item
|
|
160
|
+
base: "group/dropdown-menu-item cursor-clickable focus:bg-accent focus:text-accent-foreground relative flex items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
161
|
+
defaultVariants: {
|
|
162
|
+
inset: false,
|
|
163
|
+
size: "md",
|
|
164
|
+
variant: "default"
|
|
165
|
+
},
|
|
159
166
|
variants: {
|
|
160
167
|
inset: {
|
|
161
168
|
false: "",
|
|
162
169
|
true: ""
|
|
163
170
|
},
|
|
164
171
|
size: {
|
|
165
|
-
xs: "gap-1 rounded-[min(var(--radius-md),8px)] px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3",
|
|
166
|
-
sm: "gap-1.5 rounded-[min(var(--radius-md),10px)] px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5",
|
|
167
|
-
md: "gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
168
172
|
lg: "gap-2 rounded-md px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
169
|
-
|
|
173
|
+
md: "gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
174
|
+
sm: "gap-1.5 rounded-[min(var(--radius-md),10px)] px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5",
|
|
175
|
+
xl: "gap-2.5 rounded-md px-3 py-2.5 text-base [&_svg:not([class*='size-'])]:size-5",
|
|
176
|
+
xs: "gap-1 rounded-[min(var(--radius-md),8px)] px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3"
|
|
170
177
|
},
|
|
171
178
|
variant: {
|
|
172
179
|
danger: "text-danger-foreground focus:bg-danger focus:text-danger-foreground dark:focus:bg-danger/20 *:[svg]:text-danger-foreground",
|
|
173
180
|
default: "focus:**:text-accent-foreground"
|
|
174
181
|
}
|
|
175
|
-
},
|
|
176
|
-
defaultVariants: {
|
|
177
|
-
inset: false,
|
|
178
|
-
size: "md",
|
|
179
|
-
variant: "default"
|
|
180
182
|
}
|
|
181
183
|
});
|
|
182
184
|
const DropdownMenuItem = ({ className, inset, size, variant = "default", ...props }) => {
|
|
@@ -200,15 +202,15 @@ const DropdownMenuItem = ({ className, inset, size, variant = "default", ...prop
|
|
|
200
202
|
//#endregion
|
|
201
203
|
//#region src/ui/dropdown-menu/dropdown-menu-label.tsx
|
|
202
204
|
const dropdownMenuLabelVariants = tv({
|
|
203
|
-
base: "
|
|
205
|
+
base: "text-muted-foreground font-medium data-[inset]:pl-8",
|
|
206
|
+
defaultVariants: { size: "md" },
|
|
204
207
|
variants: { size: {
|
|
205
|
-
xs: "px-1.5 py-1 text-[11px]",
|
|
206
|
-
sm: "px-1.5 py-1 text-xs",
|
|
207
|
-
md: "px-1.5 py-1 text-xs",
|
|
208
208
|
lg: "px-2 py-1.5 text-xs",
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
md: "px-1.5 py-1 text-xs",
|
|
210
|
+
sm: "px-1.5 py-1 text-xs",
|
|
211
|
+
xl: "px-2.5 py-1.5 text-sm",
|
|
212
|
+
xs: "px-1.5 py-1 text-[11px]"
|
|
213
|
+
} }
|
|
212
214
|
});
|
|
213
215
|
const DropdownMenuLabel = ({ className, inset, size, ...props }) => {
|
|
214
216
|
const { size: rootSize } = useContext(DropdownMenuContext);
|
|
@@ -226,28 +228,28 @@ const DropdownMenuLabel = ({ className, inset, size, ...props }) => {
|
|
|
226
228
|
//#endregion
|
|
227
229
|
//#region src/ui/dropdown-menu/dropdown-menu-link-item.tsx
|
|
228
230
|
const dropdownMenuLinkItemVariants = tv({
|
|
229
|
-
base: "group/dropdown-menu-link-item
|
|
231
|
+
base: "group/dropdown-menu-link-item cursor-clickable focus:bg-accent focus:text-accent-foreground relative flex items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
232
|
+
defaultVariants: {
|
|
233
|
+
inset: false,
|
|
234
|
+
size: "md",
|
|
235
|
+
variant: "default"
|
|
236
|
+
},
|
|
230
237
|
variants: {
|
|
231
238
|
inset: {
|
|
232
239
|
false: "",
|
|
233
240
|
true: ""
|
|
234
241
|
},
|
|
235
242
|
size: {
|
|
236
|
-
xs: "gap-1 rounded-[min(var(--radius-md),8px)] px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3",
|
|
237
|
-
sm: "gap-1.5 rounded-[min(var(--radius-md),10px)] px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5",
|
|
238
|
-
md: "gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
239
243
|
lg: "gap-2 rounded-md px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
240
|
-
|
|
244
|
+
md: "gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
245
|
+
sm: "gap-1.5 rounded-[min(var(--radius-md),10px)] px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5",
|
|
246
|
+
xl: "gap-2.5 rounded-md px-3 py-2.5 text-base [&_svg:not([class*='size-'])]:size-5",
|
|
247
|
+
xs: "gap-1 rounded-[min(var(--radius-md),8px)] px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3"
|
|
241
248
|
},
|
|
242
249
|
variant: {
|
|
243
250
|
danger: "text-danger-foreground focus:bg-danger focus:text-danger-foreground dark:focus:bg-danger/20 *:[svg]:text-danger-foreground",
|
|
244
251
|
default: "focus:**:text-accent-foreground"
|
|
245
252
|
}
|
|
246
|
-
},
|
|
247
|
-
defaultVariants: {
|
|
248
|
-
inset: false,
|
|
249
|
-
size: "md",
|
|
250
|
-
variant: "default"
|
|
251
253
|
}
|
|
252
254
|
});
|
|
253
255
|
const DropdownMenuLinkItem = ({ className, inset, size, variant = "default", ...props }) => {
|
|
@@ -278,33 +280,33 @@ const DropdownMenuRadioGroup = ({ ...props }) => /* @__PURE__ */ jsx(Menu.RadioG
|
|
|
278
280
|
//#endregion
|
|
279
281
|
//#region src/ui/dropdown-menu/dropdown-menu-radio-item.tsx
|
|
280
282
|
const dropdownMenuRadioItemVariants = tv({
|
|
283
|
+
defaultVariants: { size: "md" },
|
|
281
284
|
slots: {
|
|
282
285
|
indicator: "pointer-events-none absolute flex items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
283
|
-
root: "
|
|
286
|
+
root: "cursor-clickable focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex items-center rounded-md outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
284
287
|
},
|
|
285
288
|
variants: { size: {
|
|
286
|
-
|
|
287
|
-
indicator: "right-
|
|
288
|
-
root: "gap-
|
|
289
|
-
},
|
|
290
|
-
sm: {
|
|
291
|
-
indicator: "right-2 size-3.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
292
|
-
root: "gap-1.5 rounded-[min(var(--radius-md),10px)] py-1 pr-7 pl-2 text-sm [&_svg:not([class*='size-'])]:size-3.5"
|
|
289
|
+
lg: {
|
|
290
|
+
indicator: "right-2.5 size-4 [&_svg:not([class*='size-'])]:size-4",
|
|
291
|
+
root: "gap-2 py-1.5 pr-9 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4"
|
|
293
292
|
},
|
|
294
293
|
md: {
|
|
295
294
|
indicator: "right-2 size-4 [&_svg:not([class*='size-'])]:size-4",
|
|
296
295
|
root: "gap-1.5 py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4"
|
|
297
296
|
},
|
|
298
|
-
|
|
299
|
-
indicator: "right-2
|
|
300
|
-
root: "gap-
|
|
297
|
+
sm: {
|
|
298
|
+
indicator: "right-2 size-3.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
299
|
+
root: "gap-1.5 rounded-[min(var(--radius-md),10px)] py-1 pr-7 pl-2 text-sm [&_svg:not([class*='size-'])]:size-3.5"
|
|
301
300
|
},
|
|
302
301
|
xl: {
|
|
303
302
|
indicator: "right-3 size-5 [&_svg:not([class*='size-'])]:size-5",
|
|
304
303
|
root: "gap-2.5 py-2 pr-10 pl-2.5 text-base [&_svg:not([class*='size-'])]:size-5"
|
|
304
|
+
},
|
|
305
|
+
xs: {
|
|
306
|
+
indicator: "right-1.5 size-3 [&_svg:not([class*='size-'])]:size-3",
|
|
307
|
+
root: "gap-1 rounded-[min(var(--radius-md),8px)] py-1 pr-6 pl-1.5 text-xs [&_svg:not([class*='size-'])]:size-3"
|
|
305
308
|
}
|
|
306
|
-
} }
|
|
307
|
-
defaultVariants: { size: "md" }
|
|
309
|
+
} }
|
|
308
310
|
});
|
|
309
311
|
const DropdownMenuRadioItem = ({ className, children, size, ...props }) => {
|
|
310
312
|
const { size: rootSize } = useContext(DropdownMenuContext);
|
|
@@ -330,15 +332,15 @@ const DropdownMenuRadioItem = ({ className, children, size, ...props }) => {
|
|
|
330
332
|
//#endregion
|
|
331
333
|
//#region src/ui/dropdown-menu/dropdown-menu-separator.tsx
|
|
332
334
|
const dropdownMenuSeparatorVariants = tv({
|
|
333
|
-
base: "h-px
|
|
335
|
+
base: "bg-border h-px",
|
|
336
|
+
defaultVariants: { size: "md" },
|
|
334
337
|
variants: { size: {
|
|
335
|
-
xs: "-mx-0.5 my-0.5",
|
|
336
|
-
sm: "-mx-0.5 my-0.5",
|
|
337
|
-
md: "-mx-1 my-1",
|
|
338
338
|
lg: "-mx-1.5 my-1.5",
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
339
|
+
md: "-mx-1 my-1",
|
|
340
|
+
sm: "-mx-0.5 my-0.5",
|
|
341
|
+
xl: "-mx-2 my-2",
|
|
342
|
+
xs: "-mx-0.5 my-0.5"
|
|
343
|
+
} }
|
|
342
344
|
});
|
|
343
345
|
const DropdownMenuSeparator = ({ className, size, ...props }) => {
|
|
344
346
|
const { size: rootSize } = useContext(DropdownMenuContext);
|
|
@@ -355,15 +357,15 @@ const DropdownMenuSeparator = ({ className, size, ...props }) => {
|
|
|
355
357
|
//#endregion
|
|
356
358
|
//#region src/ui/dropdown-menu/dropdown-menu-shortcut.tsx
|
|
357
359
|
const dropdownMenuShortcutVariants = tv({
|
|
358
|
-
base: "
|
|
360
|
+
base: "text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto",
|
|
361
|
+
defaultVariants: { size: "md" },
|
|
359
362
|
variants: { size: {
|
|
360
|
-
xs: "text-[10px] tracking-wide",
|
|
361
|
-
sm: "text-xs tracking-wider",
|
|
362
|
-
md: "text-xs tracking-widest",
|
|
363
363
|
lg: "text-xs tracking-widest",
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
364
|
+
md: "text-xs tracking-widest",
|
|
365
|
+
sm: "text-xs tracking-wider",
|
|
366
|
+
xl: "text-sm tracking-wide",
|
|
367
|
+
xs: "text-[10px] tracking-wide"
|
|
368
|
+
} }
|
|
367
369
|
});
|
|
368
370
|
const DropdownMenuShortcut = ({ className, size, ...props }) => {
|
|
369
371
|
const { size: rootSize } = useContext(DropdownMenuContext);
|
|
@@ -388,14 +390,14 @@ const DropdownMenuSub = ({ ...props }) => /* @__PURE__ */ jsx(Menu.SubmenuRoot,
|
|
|
388
390
|
//#region src/ui/dropdown-menu/dropdown-menu-sub-content.tsx
|
|
389
391
|
const dropdownMenuSubContentVariants = tv({
|
|
390
392
|
base: "w-auto shadow-lg",
|
|
393
|
+
defaultVariants: { size: "md" },
|
|
391
394
|
variants: { size: {
|
|
392
|
-
xs: "min-w-[84px] rounded-[min(var(--radius-md),8px)]",
|
|
393
|
-
sm: "min-w-[90px] rounded-[min(var(--radius-md),10px)]",
|
|
394
|
-
md: "min-w-[96px] rounded-md",
|
|
395
395
|
lg: "min-w-[104px] rounded-md",
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
396
|
+
md: "min-w-[96px] rounded-md",
|
|
397
|
+
sm: "min-w-[90px] rounded-[min(var(--radius-md),10px)]",
|
|
398
|
+
xl: "min-w-[112px] rounded-md",
|
|
399
|
+
xs: "min-w-[84px] rounded-[min(var(--radius-md),8px)]"
|
|
400
|
+
} }
|
|
399
401
|
});
|
|
400
402
|
const DropdownMenuSubContent = ({ align = "start", alignOffset = -3, side = "right", sideOffset = 0, className, size, ...props }) => {
|
|
401
403
|
const { size: rootSize } = useContext(DropdownMenuContext);
|
|
@@ -416,9 +418,13 @@ const DropdownMenuSubContent = ({ align = "start", alignOffset = -3, side = "rig
|
|
|
416
418
|
//#endregion
|
|
417
419
|
//#region src/ui/dropdown-menu/dropdown-menu-sub-trigger.tsx
|
|
418
420
|
const dropdownMenuSubTriggerVariants = tv({
|
|
421
|
+
defaultVariants: {
|
|
422
|
+
inset: false,
|
|
423
|
+
size: "md"
|
|
424
|
+
},
|
|
419
425
|
slots: {
|
|
420
426
|
icon: "ml-auto",
|
|
421
|
-
root: "
|
|
427
|
+
root: "cursor-clickable focus:bg-accent focus:text-accent-foreground not-data-[variant=danger]:focus:**:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex items-center outline-hidden select-none data-disabled:cursor-not-allowed data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
422
428
|
},
|
|
423
429
|
variants: {
|
|
424
430
|
inset: {
|
|
@@ -426,31 +432,27 @@ const dropdownMenuSubTriggerVariants = tv({
|
|
|
426
432
|
true: ""
|
|
427
433
|
},
|
|
428
434
|
size: {
|
|
429
|
-
|
|
430
|
-
icon: "size-
|
|
431
|
-
root: "gap-
|
|
432
|
-
},
|
|
433
|
-
sm: {
|
|
434
|
-
icon: "size-3.5",
|
|
435
|
-
root: "gap-1.5 rounded-[min(var(--radius-md),10px)] px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5"
|
|
435
|
+
lg: {
|
|
436
|
+
icon: "size-4",
|
|
437
|
+
root: "gap-2 rounded-md px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4"
|
|
436
438
|
},
|
|
437
439
|
md: {
|
|
438
440
|
icon: "size-4",
|
|
439
441
|
root: "gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-4"
|
|
440
442
|
},
|
|
441
|
-
|
|
442
|
-
icon: "size-
|
|
443
|
-
root: "gap-
|
|
443
|
+
sm: {
|
|
444
|
+
icon: "size-3.5",
|
|
445
|
+
root: "gap-1.5 rounded-[min(var(--radius-md),10px)] px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5"
|
|
444
446
|
},
|
|
445
447
|
xl: {
|
|
446
448
|
icon: "size-5",
|
|
447
449
|
root: "gap-2.5 rounded-md px-2.5 py-2 text-base [&_svg:not([class*='size-'])]:size-5"
|
|
450
|
+
},
|
|
451
|
+
xs: {
|
|
452
|
+
icon: "size-3",
|
|
453
|
+
root: "gap-1 rounded-[min(var(--radius-md),8px)] px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3"
|
|
448
454
|
}
|
|
449
455
|
}
|
|
450
|
-
},
|
|
451
|
-
defaultVariants: {
|
|
452
|
-
inset: false,
|
|
453
|
-
size: "md"
|
|
454
456
|
}
|
|
455
457
|
});
|
|
456
458
|
const DropdownMenuSubTrigger = ({ className, inset, size, children, ...props }) => {
|
|
@@ -478,11 +480,45 @@ const DropdownMenuSubTrigger = ({ className, inset, size, children, ...props })
|
|
|
478
480
|
//#endregion
|
|
479
481
|
//#region src/ui/dropdown-menu/dropdown-menu-trigger.tsx
|
|
480
482
|
const DropdownMenuTrigger = ({ className, ...props }) => /* @__PURE__ */ jsx(Menu.Trigger, {
|
|
481
|
-
className: cn("cursor-
|
|
483
|
+
className: cn("cursor-clickable", className),
|
|
482
484
|
"data-slot": "dropdown-menu-trigger",
|
|
483
485
|
...props
|
|
484
486
|
});
|
|
485
487
|
|
|
486
488
|
//#endregion
|
|
487
|
-
|
|
488
|
-
|
|
489
|
+
//#region src/ui/dropdown-menu/dropdown-menu.tsx
|
|
490
|
+
const DropdownMenu = ({ size: providedSize, ...props }) => {
|
|
491
|
+
const size = useComponentSize(providedSize);
|
|
492
|
+
const contextValue = useMemo(() => ({ size }), [size]);
|
|
493
|
+
return /* @__PURE__ */ jsx(DropdownMenuContext.Provider, {
|
|
494
|
+
value: contextValue,
|
|
495
|
+
children: /* @__PURE__ */ jsx(Menu.Root, {
|
|
496
|
+
"data-size": size,
|
|
497
|
+
"data-slot": "dropdown-menu",
|
|
498
|
+
...props
|
|
499
|
+
})
|
|
500
|
+
});
|
|
501
|
+
};
|
|
502
|
+
DropdownMenu.Arrow = DropdownMenuArrow;
|
|
503
|
+
DropdownMenu.Backdrop = DropdownMenuBackdrop;
|
|
504
|
+
DropdownMenu.CheckboxItem = DropdownMenuCheckboxItem;
|
|
505
|
+
DropdownMenu.Content = DropdownMenuContent;
|
|
506
|
+
DropdownMenu.Group = DropdownMenuGroup;
|
|
507
|
+
DropdownMenu.Item = DropdownMenuItem;
|
|
508
|
+
DropdownMenu.Label = DropdownMenuLabel;
|
|
509
|
+
DropdownMenu.LinkItem = DropdownMenuLinkItem;
|
|
510
|
+
DropdownMenu.Portal = DropdownMenuPortal;
|
|
511
|
+
DropdownMenu.Popup = DropdownMenuPopup;
|
|
512
|
+
DropdownMenu.Positioner = DropdownMenuPositioner;
|
|
513
|
+
DropdownMenu.RadioGroup = DropdownMenuRadioGroup;
|
|
514
|
+
DropdownMenu.RadioItem = DropdownMenuRadioItem;
|
|
515
|
+
DropdownMenu.Separator = DropdownMenuSeparator;
|
|
516
|
+
DropdownMenu.Shortcut = DropdownMenuShortcut;
|
|
517
|
+
DropdownMenu.Sub = DropdownMenuSub;
|
|
518
|
+
DropdownMenu.SubContent = DropdownMenuSubContent;
|
|
519
|
+
DropdownMenu.SubTrigger = DropdownMenuSubTrigger;
|
|
520
|
+
DropdownMenu.Trigger = DropdownMenuTrigger;
|
|
521
|
+
|
|
522
|
+
//#endregion
|
|
523
|
+
export { DropdownMenuArrow as S, DropdownMenuPositioner as _, DropdownMenuSub as a, DropdownMenuCheckboxItem as b, DropdownMenuRadioItem as c, dropdownMenuLinkItemVariants as d, DropdownMenuLabel as f, DropdownMenuContent as g, DropdownMenuGroup as h, DropdownMenuSubContent as i, DropdownMenuRadioGroup as l, dropdownMenuItemVariants as m, DropdownMenuTrigger as n, DropdownMenuShortcut as o, DropdownMenuItem as p, DropdownMenuSubTrigger as r, DropdownMenuSeparator as s, DropdownMenu as t, DropdownMenuLinkItem as u, DropdownMenuPortal as v, DropdownMenuBackdrop as x, DropdownMenuPopup as y };
|
|
524
|
+
//# sourceMappingURL=dropdown-menu-BJi-V71O.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-menu-BJi-V71O.js","names":["MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive","MenuPrimitive"],"sources":["../src/ui/dropdown-menu/dropdown-menu-arrow.tsx","../src/ui/dropdown-menu/dropdown-menu-backdrop.tsx","../src/ui/dropdown-menu/dropdown-menu-context.tsx","../src/ui/dropdown-menu/dropdown-menu-overlay-context.tsx","../src/ui/dropdown-menu/dropdown-menu-checkbox-item.tsx","../src/ui/dropdown-menu/dropdown-menu-popup.tsx","../src/ui/dropdown-menu/dropdown-menu-portal.tsx","../src/ui/dropdown-menu/dropdown-menu-positioner.tsx","../src/ui/dropdown-menu/dropdown-menu-content.tsx","../src/ui/dropdown-menu/dropdown-menu-group.tsx","../src/ui/dropdown-menu/dropdown-menu-item.tsx","../src/ui/dropdown-menu/dropdown-menu-label.tsx","../src/ui/dropdown-menu/dropdown-menu-link-item.tsx","../src/ui/dropdown-menu/dropdown-menu-radio-group.tsx","../src/ui/dropdown-menu/dropdown-menu-radio-item.tsx","../src/ui/dropdown-menu/dropdown-menu-separator.tsx","../src/ui/dropdown-menu/dropdown-menu-shortcut.tsx","../src/ui/dropdown-menu/dropdown-menu-sub.tsx","../src/ui/dropdown-menu/dropdown-menu-sub-content.tsx","../src/ui/dropdown-menu/dropdown-menu-sub-trigger.tsx","../src/ui/dropdown-menu/dropdown-menu-trigger.tsx","../src/ui/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { cn } from \"tailwind-variants\";\nexport type DropdownMenuArrowProps = MenuPrimitive.Arrow.Props;\n\nconst DropdownMenuArrow = ({ className, ...props }: DropdownMenuArrowProps) => (\n <MenuPrimitive.Arrow\n className={cn(\"fill-popover stroke-border\", className)}\n data-slot=\"dropdown-menu-arrow\"\n {...props}\n />\n);\n\nexport { DropdownMenuArrow };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { cn } from \"tailwind-variants\";\nexport type DropdownMenuBackdropProps = MenuPrimitive.Backdrop.Props;\n\nconst DropdownMenuBackdrop = ({\n className,\n ...props\n}: DropdownMenuBackdropProps) => (\n <MenuPrimitive.Backdrop\n className={cn(className)}\n data-slot=\"dropdown-menu-backdrop\"\n {...props}\n />\n);\n\nexport { DropdownMenuBackdrop };\n","\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nexport interface DropdownMenuContextValue {\n size?: InputSize;\n}\n\nconst DropdownMenuContext = createContext<DropdownMenuContextValue>({\n size: \"md\",\n});\n\nexport { DropdownMenuContext };\n","\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nexport interface DropdownMenuOverlayContextValue {\n size?: InputSize;\n}\n\nconst DropdownMenuOverlayContext =\n createContext<DropdownMenuOverlayContextValue>({});\n\nexport { DropdownMenuOverlayContext };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { Tick02Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\n\nconst dropdownMenuCheckboxItemVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n slots: {\n indicator:\n \"pointer-events-none absolute flex items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n root: \"cursor-clickable focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex items-center rounded-md outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n },\n variants: {\n size: {\n lg: {\n indicator: \"right-2.5 size-4 [&_svg:not([class*='size-'])]:size-4\",\n root: \"gap-2 py-1.5 pr-9 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n md: {\n indicator: \"right-2 size-4 [&_svg:not([class*='size-'])]:size-4\",\n root: \"gap-1.5 py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n sm: {\n indicator: \"right-2 size-3.5 [&_svg:not([class*='size-'])]:size-3.5\",\n root: \"gap-1.5 rounded-[min(var(--radius-md),10px)] py-1 pr-7 pl-2 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n },\n xl: {\n indicator: \"right-3 size-5 [&_svg:not([class*='size-'])]:size-5\",\n root: \"gap-2.5 py-2 pr-10 pl-2.5 text-base [&_svg:not([class*='size-'])]:size-5\",\n },\n xs: {\n indicator: \"right-1.5 size-3 [&_svg:not([class*='size-'])]:size-3\",\n root: \"gap-1 rounded-[min(var(--radius-md),8px)] py-1 pr-6 pl-1.5 text-xs [&_svg:not([class*='size-'])]:size-3\",\n },\n },\n },\n});\n\ntype DropdownMenuCheckboxItemVariantProps = VariantProps<\n typeof dropdownMenuCheckboxItemVariants\n>;\n\nexport type DropdownMenuCheckboxItemProps = MenuPrimitive.CheckboxItem.Props &\n DropdownMenuCheckboxItemVariantProps;\n\nconst DropdownMenuCheckboxItem = ({\n className,\n children,\n checked,\n size,\n ...props\n}: DropdownMenuCheckboxItemProps) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const { size: overlaySize } = useContext(DropdownMenuOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? rootSize ?? \"md\";\n const { indicator, root } = dropdownMenuCheckboxItemVariants({\n size: resolvedSize,\n });\n\n return (\n <MenuPrimitive.CheckboxItem\n checked={checked}\n className={cn(root(), className)}\n data-size={resolvedSize}\n data-slot=\"dropdown-menu-checkbox-item\"\n {...props}\n >\n <span\n className={indicator()}\n data-slot=\"dropdown-menu-checkbox-item-indicator\"\n >\n <MenuPrimitive.CheckboxItemIndicator>\n <HugeiconsIcon icon={Tick02Icon} strokeWidth={2} />\n </MenuPrimitive.CheckboxItemIndicator>\n </span>\n {children}\n </MenuPrimitive.CheckboxItem>\n );\n};\n\nexport { DropdownMenuCheckboxItem };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\n\nconst dropdownMenuPopupVariants = tv({\n base: \"z-overlay bg-popover text-popover-foreground ring-foreground/10 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-open:animate-in data-open:fade-in-0 data-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 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto shadow-md ring-1 duration-100 outline-none data-closed:overflow-hidden\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"min-w-36 rounded-md p-1.5\",\n md: \"min-w-32 rounded-md p-1\",\n sm: \"min-w-28 rounded-[min(var(--radius-md),10px)] p-0.5\",\n xl: \"min-w-40 rounded-md p-2\",\n xs: \"min-w-24 rounded-[min(var(--radius-md),8px)] p-0.5\",\n },\n },\n});\n\ntype DropdownMenuPopupVariantProps = VariantProps<\n typeof dropdownMenuPopupVariants\n>;\n\nexport type DropdownMenuPopupProps = MenuPrimitive.Popup.Props &\n DropdownMenuPopupVariantProps;\n\nconst DropdownMenuPopup = ({\n className,\n size,\n ...props\n}: DropdownMenuPopupProps) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const { size: overlaySize } = useContext(DropdownMenuOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? rootSize ?? \"md\";\n\n return (\n <MenuPrimitive.Popup\n className={cn(\n dropdownMenuPopupVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"dropdown-menu-popup\"\n {...props}\n />\n );\n};\n\nexport { DropdownMenuPopup };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nexport type DropdownMenuPortalProps = MenuPrimitive.Portal.Props;\n\nconst DropdownMenuPortal = ({ ...props }: DropdownMenuPortalProps) => (\n <MenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />\n);\n\nexport { DropdownMenuPortal };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { cn } from \"tailwind-variants\";\nexport type DropdownMenuPositionerProps = MenuPrimitive.Positioner.Props;\n\nconst DropdownMenuPositioner = ({\n className,\n ...props\n}: DropdownMenuPositionerProps) => (\n <MenuPrimitive.Positioner\n className={cn(\"z-overlay isolate outline-none\", className)}\n data-slot=\"dropdown-menu-positioner\"\n {...props}\n />\n);\n\nexport { DropdownMenuPositioner };\n","import type { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { useContext, useMemo } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\nimport { DropdownMenuPopup } from \"./dropdown-menu-popup\";\nimport { DropdownMenuPortal } from \"./dropdown-menu-portal\";\nimport { DropdownMenuPositioner } from \"./dropdown-menu-positioner\";\nexport type DropdownMenuContentProps = MenuPrimitive.Popup.Props &\n Pick<\n MenuPrimitive.Positioner.Props,\n \"align\" | \"alignOffset\" | \"side\" | \"sideOffset\"\n > & {\n size?: InputSize;\n };\n\nconst DropdownMenuContent = ({\n align = \"start\",\n alignOffset = 0,\n side = \"bottom\",\n sideOffset = 4,\n className,\n size,\n ...props\n}: DropdownMenuContentProps) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const resolvedSize = size ?? rootSize ?? \"md\";\n const contextValue = useMemo(() => ({ size: resolvedSize }), [resolvedSize]);\n\n return (\n <DropdownMenuOverlayContext.Provider value={contextValue}>\n <DropdownMenuPortal>\n <DropdownMenuPositioner\n align={align}\n alignOffset={alignOffset}\n side={side}\n sideOffset={sideOffset}\n >\n <DropdownMenuPopup\n className={className}\n data-size={resolvedSize}\n data-slot=\"dropdown-menu-content\"\n size={resolvedSize}\n {...props}\n />\n </DropdownMenuPositioner>\n </DropdownMenuPortal>\n </DropdownMenuOverlayContext.Provider>\n );\n};\n\nexport { DropdownMenuContent };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nexport type DropdownMenuGroupProps = MenuPrimitive.Group.Props;\n\nconst DropdownMenuGroup = ({ ...props }: DropdownMenuGroupProps) => (\n <MenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />\n);\n\nexport { DropdownMenuGroup };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { useContext } from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\n\nconst dropdownMenuItemVariants = tv({\n base: \"group/dropdown-menu-item cursor-clickable focus:bg-accent focus:text-accent-foreground relative flex items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n defaultVariants: {\n inset: false,\n size: \"md\",\n variant: \"default\",\n },\n variants: {\n inset: {\n false: \"\",\n true: \"\",\n },\n size: {\n lg: \"gap-2 rounded-md px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4\",\n md: \"gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4\",\n sm: \"gap-1.5 rounded-[min(var(--radius-md),10px)] px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n xl: \"gap-2.5 rounded-md px-3 py-2.5 text-base [&_svg:not([class*='size-'])]:size-5\",\n xs: \"gap-1 rounded-[min(var(--radius-md),8px)] px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3\",\n },\n variant: {\n danger:\n \"text-danger-foreground focus:bg-danger focus:text-danger-foreground dark:focus:bg-danger/20 *:[svg]:text-danger-foreground\",\n default: \"focus:**:text-accent-foreground\",\n },\n },\n});\n\nexport type DropdownMenuItemProps = MenuPrimitive.Item.Props &\n VariantProps<typeof dropdownMenuItemVariants>;\n\nconst DropdownMenuItem = ({\n className,\n inset,\n size,\n variant = \"default\",\n ...props\n}: DropdownMenuItemProps) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const { size: overlaySize } = useContext(DropdownMenuOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? rootSize ?? \"md\";\n\n return (\n <MenuPrimitive.Item\n className={mergeBaseUIClassName<MenuPrimitive.Item.State>(\n dropdownMenuItemVariants({\n inset: Boolean(inset),\n size: resolvedSize,\n variant,\n }),\n className\n )}\n data-inset={inset}\n data-size={resolvedSize}\n data-slot=\"dropdown-menu-item\"\n data-variant={variant}\n {...props}\n />\n );\n};\n\nexport { DropdownMenuItem, dropdownMenuItemVariants };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\n\nconst dropdownMenuLabelVariants = tv({\n base: \"text-muted-foreground font-medium data-[inset]:pl-8\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"px-2 py-1.5 text-xs\",\n md: \"px-1.5 py-1 text-xs\",\n sm: \"px-1.5 py-1 text-xs\",\n xl: \"px-2.5 py-1.5 text-sm\",\n xs: \"px-1.5 py-1 text-[11px]\",\n },\n },\n});\n\nexport type DropdownMenuLabelProps = MenuPrimitive.GroupLabel.Props & {\n inset?: boolean;\n} & VariantProps<typeof dropdownMenuLabelVariants>;\n\nconst DropdownMenuLabel = ({\n className,\n inset,\n size,\n ...props\n}: DropdownMenuLabelProps) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const { size: overlaySize } = useContext(DropdownMenuOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? rootSize ?? \"md\";\n\n return (\n <MenuPrimitive.GroupLabel\n className={cn(\n dropdownMenuLabelVariants({ size: resolvedSize }),\n className\n )}\n data-inset={inset}\n data-size={resolvedSize}\n data-slot=\"dropdown-menu-label\"\n {...props}\n />\n );\n};\n\nexport { DropdownMenuLabel };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { useContext } from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\n\nconst dropdownMenuLinkItemVariants = tv({\n base: \"group/dropdown-menu-link-item cursor-clickable focus:bg-accent focus:text-accent-foreground relative flex items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n defaultVariants: {\n inset: false,\n size: \"md\",\n variant: \"default\",\n },\n variants: {\n inset: {\n false: \"\",\n true: \"\",\n },\n size: {\n lg: \"gap-2 rounded-md px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4\",\n md: \"gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4\",\n sm: \"gap-1.5 rounded-[min(var(--radius-md),10px)] px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n xl: \"gap-2.5 rounded-md px-3 py-2.5 text-base [&_svg:not([class*='size-'])]:size-5\",\n xs: \"gap-1 rounded-[min(var(--radius-md),8px)] px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3\",\n },\n variant: {\n danger:\n \"text-danger-foreground focus:bg-danger focus:text-danger-foreground dark:focus:bg-danger/20 *:[svg]:text-danger-foreground\",\n default: \"focus:**:text-accent-foreground\",\n },\n },\n});\n\nexport type DropdownMenuLinkItemProps = MenuPrimitive.LinkItem.Props &\n VariantProps<typeof dropdownMenuLinkItemVariants>;\n\nconst DropdownMenuLinkItem = ({\n className,\n inset,\n size,\n variant = \"default\",\n ...props\n}: DropdownMenuLinkItemProps) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const { size: overlaySize } = useContext(DropdownMenuOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? rootSize ?? \"md\";\n\n return (\n <MenuPrimitive.LinkItem\n className={mergeBaseUIClassName<MenuPrimitive.LinkItem.State>(\n dropdownMenuLinkItemVariants({\n inset: Boolean(inset),\n size: resolvedSize,\n variant,\n }),\n className\n )}\n data-inset={inset}\n data-size={resolvedSize}\n data-slot=\"dropdown-menu-link-item\"\n data-variant={variant}\n {...props}\n />\n );\n};\n\nexport { DropdownMenuLinkItem, dropdownMenuLinkItemVariants };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nexport type DropdownMenuRadioGroupProps = MenuPrimitive.RadioGroup.Props;\n\nconst DropdownMenuRadioGroup = ({ ...props }: DropdownMenuRadioGroupProps) => (\n <MenuPrimitive.RadioGroup data-slot=\"dropdown-menu-radio-group\" {...props} />\n);\n\nexport { DropdownMenuRadioGroup };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { Tick02Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\n\nconst dropdownMenuRadioItemVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n slots: {\n indicator:\n \"pointer-events-none absolute flex items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n root: \"cursor-clickable focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex items-center rounded-md outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n },\n variants: {\n size: {\n lg: {\n indicator: \"right-2.5 size-4 [&_svg:not([class*='size-'])]:size-4\",\n root: \"gap-2 py-1.5 pr-9 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n md: {\n indicator: \"right-2 size-4 [&_svg:not([class*='size-'])]:size-4\",\n root: \"gap-1.5 py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n sm: {\n indicator: \"right-2 size-3.5 [&_svg:not([class*='size-'])]:size-3.5\",\n root: \"gap-1.5 rounded-[min(var(--radius-md),10px)] py-1 pr-7 pl-2 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n },\n xl: {\n indicator: \"right-3 size-5 [&_svg:not([class*='size-'])]:size-5\",\n root: \"gap-2.5 py-2 pr-10 pl-2.5 text-base [&_svg:not([class*='size-'])]:size-5\",\n },\n xs: {\n indicator: \"right-1.5 size-3 [&_svg:not([class*='size-'])]:size-3\",\n root: \"gap-1 rounded-[min(var(--radius-md),8px)] py-1 pr-6 pl-1.5 text-xs [&_svg:not([class*='size-'])]:size-3\",\n },\n },\n },\n});\n\ntype DropdownMenuRadioItemVariantProps = VariantProps<\n typeof dropdownMenuRadioItemVariants\n>;\n\nexport type DropdownMenuRadioItemProps = MenuPrimitive.RadioItem.Props &\n DropdownMenuRadioItemVariantProps;\n\nconst DropdownMenuRadioItem = ({\n className,\n children,\n size,\n ...props\n}: DropdownMenuRadioItemProps) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const { size: overlaySize } = useContext(DropdownMenuOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? rootSize ?? \"md\";\n const { indicator, root } = dropdownMenuRadioItemVariants({\n size: resolvedSize,\n });\n\n return (\n <MenuPrimitive.RadioItem\n className={cn(root(), className)}\n data-size={resolvedSize}\n data-slot=\"dropdown-menu-radio-item\"\n {...props}\n >\n <span\n className={indicator()}\n data-slot=\"dropdown-menu-radio-item-indicator\"\n >\n <MenuPrimitive.RadioItemIndicator>\n <HugeiconsIcon icon={Tick02Icon} strokeWidth={2} />\n </MenuPrimitive.RadioItemIndicator>\n </span>\n {children}\n </MenuPrimitive.RadioItem>\n );\n};\n\nexport { DropdownMenuRadioItem };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\n\nconst dropdownMenuSeparatorVariants = tv({\n base: \"bg-border h-px\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"-mx-1.5 my-1.5\",\n md: \"-mx-1 my-1\",\n sm: \"-mx-0.5 my-0.5\",\n xl: \"-mx-2 my-2\",\n xs: \"-mx-0.5 my-0.5\",\n },\n },\n});\n\nexport type DropdownMenuSeparatorProps = MenuPrimitive.Separator.Props;\n\nconst DropdownMenuSeparator = ({\n className,\n size,\n ...props\n}: DropdownMenuSeparatorProps &\n VariantProps<typeof dropdownMenuSeparatorVariants>) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const { size: overlaySize } = useContext(DropdownMenuOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? rootSize ?? \"md\";\n\n return (\n <MenuPrimitive.Separator\n className={cn(\n dropdownMenuSeparatorVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"dropdown-menu-separator\"\n {...props}\n />\n );\n};\n\nexport { DropdownMenuSeparator };\n","import type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\n\nconst dropdownMenuShortcutVariants = tv({\n base: \"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"text-xs tracking-widest\",\n md: \"text-xs tracking-widest\",\n sm: \"text-xs tracking-wider\",\n xl: \"text-sm tracking-wide\",\n xs: \"text-[10px] tracking-wide\",\n },\n },\n});\n\nexport type DropdownMenuShortcutProps = ComponentProps<\"span\"> &\n VariantProps<typeof dropdownMenuShortcutVariants>;\n\nconst DropdownMenuShortcut = ({\n className,\n size,\n ...props\n}: DropdownMenuShortcutProps) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const { size: overlaySize } = useContext(DropdownMenuOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? rootSize ?? \"md\";\n\n return (\n <span\n className={cn(\n dropdownMenuShortcutVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"dropdown-menu-shortcut\"\n {...props}\n />\n );\n};\n\nexport { DropdownMenuShortcut };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nexport type DropdownMenuSubProps = MenuPrimitive.SubmenuRoot.Props;\n\nconst DropdownMenuSub = ({ ...props }: DropdownMenuSubProps) => (\n <MenuPrimitive.SubmenuRoot data-slot=\"dropdown-menu-sub\" {...props} />\n);\n\nexport { DropdownMenuSub };\n","import type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContent } from \"./dropdown-menu-content\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\n\nconst dropdownMenuSubContentVariants = tv({\n base: \"w-auto shadow-lg\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"min-w-[104px] rounded-md\",\n md: \"min-w-[96px] rounded-md\",\n sm: \"min-w-[90px] rounded-[min(var(--radius-md),10px)]\",\n xl: \"min-w-[112px] rounded-md\",\n xs: \"min-w-[84px] rounded-[min(var(--radius-md),8px)]\",\n },\n },\n});\n\nexport type DropdownMenuSubContentProps = ComponentProps<\n typeof DropdownMenuContent\n> &\n VariantProps<typeof dropdownMenuSubContentVariants>;\n\nconst DropdownMenuSubContent = ({\n align = \"start\",\n alignOffset = -3,\n side = \"right\",\n sideOffset = 0,\n className,\n size,\n ...props\n}: DropdownMenuSubContentProps) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const { size: overlaySize } = useContext(DropdownMenuOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? rootSize ?? \"md\";\n\n return (\n <DropdownMenuContent\n align={align}\n alignOffset={alignOffset}\n className={cn(\n dropdownMenuSubContentVariants({ size: resolvedSize }),\n className\n )}\n data-slot=\"dropdown-menu-sub-content\"\n side={side}\n sideOffset={sideOffset}\n size={resolvedSize}\n {...props}\n />\n );\n};\n\nexport { DropdownMenuSubContent };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { ArrowRight01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { useContext } from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport type { InputSize } from \"../input/input\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuOverlayContext } from \"./dropdown-menu-overlay-context\";\n\nconst dropdownMenuSubTriggerVariants = tv({\n defaultVariants: {\n inset: false,\n size: \"md\",\n },\n slots: {\n icon: \"ml-auto\",\n root: \"cursor-clickable focus:bg-accent focus:text-accent-foreground not-data-[variant=danger]:focus:**:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex items-center outline-hidden select-none data-disabled:cursor-not-allowed data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n },\n variants: {\n inset: {\n false: \"\",\n true: \"\",\n },\n size: {\n lg: {\n icon: \"size-4\",\n root: \"gap-2 rounded-md px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n md: {\n icon: \"size-4\",\n root: \"gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n sm: {\n icon: \"size-3.5\",\n root: \"gap-1.5 rounded-[min(var(--radius-md),10px)] px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n },\n xl: {\n icon: \"size-5\",\n root: \"gap-2.5 rounded-md px-2.5 py-2 text-base [&_svg:not([class*='size-'])]:size-5\",\n },\n xs: {\n icon: \"size-3\",\n root: \"gap-1 rounded-[min(var(--radius-md),8px)] px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3\",\n },\n },\n },\n});\n\nexport type DropdownMenuSubTriggerProps = MenuPrimitive.SubmenuTrigger.Props &\n VariantProps<typeof dropdownMenuSubTriggerVariants>;\n\nconst DropdownMenuSubTrigger = ({\n className,\n inset,\n size,\n children,\n ...props\n}: DropdownMenuSubTriggerProps) => {\n const { size: rootSize } = useContext(DropdownMenuContext);\n const { size: overlaySize } = useContext(DropdownMenuOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? rootSize ?? \"md\";\n\n const { icon, root } = dropdownMenuSubTriggerVariants({\n inset: Boolean(inset),\n size: resolvedSize,\n });\n\n return (\n <MenuPrimitive.SubmenuTrigger\n className={mergeBaseUIClassName<MenuPrimitive.SubmenuTrigger.State>(\n root(),\n className\n )}\n data-inset={inset}\n data-size={resolvedSize}\n data-slot=\"dropdown-menu-sub-trigger\"\n {...props}\n >\n {children}\n <HugeiconsIcon\n className={icon()}\n icon={ArrowRight01Icon}\n strokeWidth={2}\n />\n </MenuPrimitive.SubmenuTrigger>\n );\n};\n\nexport { DropdownMenuSubTrigger };\n","import { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { cn } from \"tailwind-variants\";\nexport type DropdownMenuTriggerProps = MenuPrimitive.Trigger.Props;\n\nconst DropdownMenuTrigger = ({\n className,\n ...props\n}: DropdownMenuTriggerProps) => (\n <MenuPrimitive.Trigger\n className={cn(\"cursor-clickable\", className)}\n data-slot=\"dropdown-menu-trigger\"\n {...props}\n />\n);\n\nexport { DropdownMenuTrigger };\n","\"use client\";\n\nimport { Menu as MenuPrimitive } from \"@base-ui/react/menu\";\nimport { useMemo } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { DropdownMenuArrow } from \"./dropdown-menu-arrow\";\nimport { DropdownMenuBackdrop } from \"./dropdown-menu-backdrop\";\nimport { DropdownMenuCheckboxItem } from \"./dropdown-menu-checkbox-item\";\nimport { DropdownMenuContent } from \"./dropdown-menu-content\";\nimport { DropdownMenuContext } from \"./dropdown-menu-context\";\nimport { DropdownMenuGroup } from \"./dropdown-menu-group\";\nimport { DropdownMenuItem } from \"./dropdown-menu-item\";\nimport { DropdownMenuLabel } from \"./dropdown-menu-label\";\nimport { DropdownMenuLinkItem } from \"./dropdown-menu-link-item\";\nimport { DropdownMenuPopup } from \"./dropdown-menu-popup\";\nimport { DropdownMenuPortal } from \"./dropdown-menu-portal\";\nimport { DropdownMenuPositioner } from \"./dropdown-menu-positioner\";\nimport { DropdownMenuRadioGroup } from \"./dropdown-menu-radio-group\";\nimport { DropdownMenuRadioItem } from \"./dropdown-menu-radio-item\";\nimport { DropdownMenuSeparator } from \"./dropdown-menu-separator\";\nimport { DropdownMenuShortcut } from \"./dropdown-menu-shortcut\";\nimport { DropdownMenuSub } from \"./dropdown-menu-sub\";\nimport { DropdownMenuSubContent } from \"./dropdown-menu-sub-content\";\nimport { DropdownMenuSubTrigger } from \"./dropdown-menu-sub-trigger\";\nimport { DropdownMenuTrigger } from \"./dropdown-menu-trigger\";\nexport type DropdownMenuProps = MenuPrimitive.Root.Props & {\n size?: InputSize;\n};\n\nconst DropdownMenu = ({ size: providedSize, ...props }: DropdownMenuProps) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n return (\n <DropdownMenuContext.Provider value={contextValue}>\n <MenuPrimitive.Root\n data-size={size}\n data-slot=\"dropdown-menu\"\n {...props}\n />\n </DropdownMenuContext.Provider>\n );\n};\n\nDropdownMenu.Arrow = DropdownMenuArrow;\nDropdownMenu.Backdrop = DropdownMenuBackdrop;\nDropdownMenu.CheckboxItem = DropdownMenuCheckboxItem;\nDropdownMenu.Content = DropdownMenuContent;\nDropdownMenu.Group = DropdownMenuGroup;\nDropdownMenu.Item = DropdownMenuItem;\nDropdownMenu.Label = DropdownMenuLabel;\nDropdownMenu.LinkItem = DropdownMenuLinkItem;\nDropdownMenu.Portal = DropdownMenuPortal;\nDropdownMenu.Popup = DropdownMenuPopup;\nDropdownMenu.Positioner = DropdownMenuPositioner;\nDropdownMenu.RadioGroup = DropdownMenuRadioGroup;\nDropdownMenu.RadioItem = DropdownMenuRadioItem;\nDropdownMenu.Separator = DropdownMenuSeparator;\nDropdownMenu.Shortcut = DropdownMenuShortcut;\nDropdownMenu.Sub = DropdownMenuSub;\nDropdownMenu.SubContent = DropdownMenuSubContent;\nDropdownMenu.SubTrigger = DropdownMenuSubTrigger;\nDropdownMenu.Trigger = DropdownMenuTrigger;\n\nexport {\n DropdownMenu,\n DropdownMenuArrow,\n DropdownMenuBackdrop,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuLinkItem,\n DropdownMenuPortal,\n DropdownMenuPopup,\n DropdownMenuPositioner,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type { DropdownMenuArrowProps } from \"./dropdown-menu-arrow\";\nexport type { DropdownMenuBackdropProps } from \"./dropdown-menu-backdrop\";\nexport type { DropdownMenuCheckboxItemProps } from \"./dropdown-menu-checkbox-item\";\nexport type { DropdownMenuContentProps } from \"./dropdown-menu-content\";\nexport type { DropdownMenuGroupProps } from \"./dropdown-menu-group\";\nexport type { DropdownMenuItemProps } from \"./dropdown-menu-item\";\nexport type { DropdownMenuLabelProps } from \"./dropdown-menu-label\";\nexport type { DropdownMenuLinkItemProps } from \"./dropdown-menu-link-item\";\nexport type { DropdownMenuPopupProps } from \"./dropdown-menu-popup\";\nexport type { DropdownMenuPortalProps } from \"./dropdown-menu-portal\";\nexport type { DropdownMenuPositionerProps } from \"./dropdown-menu-positioner\";\nexport type { DropdownMenuRadioGroupProps } from \"./dropdown-menu-radio-group\";\nexport type { DropdownMenuRadioItemProps } from \"./dropdown-menu-radio-item\";\nexport type { DropdownMenuSeparatorProps } from \"./dropdown-menu-separator\";\nexport type { DropdownMenuShortcutProps } from \"./dropdown-menu-shortcut\";\nexport type { DropdownMenuSubProps } from \"./dropdown-menu-sub\";\nexport type { DropdownMenuSubContentProps } from \"./dropdown-menu-sub-content\";\nexport type { DropdownMenuSubTriggerProps } from \"./dropdown-menu-sub-trigger\";\nexport type { DropdownMenuTriggerProps } from \"./dropdown-menu-trigger\";\n"],"mappings":";;;;;;;;;;AAIA,MAAM,qBAAqB,EAAE,WAAW,GAAG,YACzC,oBAACA,KAAc,OAAf;CACE,WAAW,GAAG,8BAA8B,UAAU;CACtD,aAAU;CACV,GAAI;CACJ;;;;ACLJ,MAAM,wBAAwB,EAC5B,WACA,GAAG,YAEH,oBAACC,KAAc,UAAf;CACE,WAAW,GAAG,UAAU;CACxB,aAAU;CACV,GAAI;CACJ;;;;ACFJ,MAAM,sBAAsB,cAAwC,EAClE,MAAM,MACP,CAAC;;;;ACFF,MAAM,6BACJ,cAA+C,EAAE,CAAC;;;;ACApD,MAAM,mCAAmC,GAAG;CAC1C,iBAAiB,EACf,MAAM,MACP;CACD,OAAO;EACL,WACE;EACF,MAAM;EACP;CACD,UAAU,EACR,MAAM;EACJ,IAAI;GACF,WAAW;GACX,MAAM;GACP;EACD,IAAI;GACF,WAAW;GACX,MAAM;GACP;EACD,IAAI;GACF,WAAW;GACX,MAAM;GACP;EACD,IAAI;GACF,WAAW;GACX,MAAM;GACP;EACD,IAAI;GACF,WAAW;GACX,MAAM;GACP;EACF,EACF;CACF,CAAC;AASF,MAAM,4BAA4B,EAChC,WACA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