@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
package/dist/ui/select.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { a as useComponentSize, i as useComponentDefaultProps } from "../size-provider-18EvJgDT.js";
|
|
4
|
-
import { a as
|
|
4
|
+
import { a as resolveFieldHeightClassBySize, i as resolveDefaultNestedIconClassBySize, o as resolveFieldTextClassBySize, r as resolveDefaultIconClassBySize } from "../size-system-BTsMqZRQ.js";
|
|
5
5
|
import { t as mergeBaseUIClassName } from "../merge-base-ui-class-name-HKsgjcXj.js";
|
|
6
|
-
import { createContext, useContext } from "react";
|
|
6
|
+
import { createContext, useContext, useMemo } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { cn, tv } from "tailwind-variants";
|
|
9
9
|
import { ArrowDown01Icon, ArrowUp01Icon, Tick02Icon, UnfoldMoreIcon } from "@hugeicons/core-free-icons";
|
|
@@ -44,15 +44,15 @@ const SelectOverlayContext = createContext({ size: "md" });
|
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/ui/select/select-popup.tsx
|
|
46
46
|
const selectPopupVariants = tv({
|
|
47
|
-
base: "
|
|
47
|
+
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 relative isolate max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto shadow-md ring-1 duration-100",
|
|
48
|
+
defaultVariants: { size: "md" },
|
|
48
49
|
variants: { size: {
|
|
49
|
-
xs: "rounded-[min(var(--radius-md),8px)] p-0.5",
|
|
50
|
-
sm: "rounded-[min(var(--radius-md),10px)] p-1",
|
|
51
|
-
md: "rounded-md p-1",
|
|
52
50
|
lg: "rounded-md p-1.5",
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
md: "rounded-md p-1",
|
|
52
|
+
sm: "rounded-[min(var(--radius-md),10px)] p-1",
|
|
53
|
+
xl: "rounded-md p-2",
|
|
54
|
+
xs: "rounded-[min(var(--radius-md),8px)] p-0.5"
|
|
55
|
+
} }
|
|
56
56
|
});
|
|
57
57
|
const SelectPopup = ({ className, size, ...props }) => {
|
|
58
58
|
const { size: overlaySize } = useContext(SelectOverlayContext);
|
|
@@ -75,7 +75,7 @@ const SelectPortal = (props) => /* @__PURE__ */ jsx(Select$1.Portal, {
|
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region src/ui/select/select-positioner.tsx
|
|
77
77
|
const SelectPositioner = ({ className, ...props }) => /* @__PURE__ */ jsx(Select$1.Positioner, {
|
|
78
|
-
className: mergeBaseUIClassName("isolate z-
|
|
78
|
+
className: mergeBaseUIClassName("isolate z-overlay", className),
|
|
79
79
|
"data-slot": "select-positioner",
|
|
80
80
|
...props
|
|
81
81
|
});
|
|
@@ -83,15 +83,15 @@ const SelectPositioner = ({ className, ...props }) => /* @__PURE__ */ jsx(Select
|
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region src/ui/select/select-scroll-down-button.tsx
|
|
85
85
|
const selectScrollDownButtonVariants = tv({
|
|
86
|
-
base: "bottom-0
|
|
86
|
+
base: "z-raised cursor-clickable bg-popover bottom-0 flex w-full items-center justify-center",
|
|
87
|
+
defaultVariants: { size: "md" },
|
|
87
88
|
variants: { size: {
|
|
88
|
-
xs: "py-0.5 [&_svg:not([class*='size-'])]:size-3",
|
|
89
|
-
sm: "py-1 [&_svg:not([class*='size-'])]:size-3.5",
|
|
90
|
-
md: "py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
91
89
|
lg: "py-1.5 [&_svg:not([class*='size-'])]:size-4",
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
md: "py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
91
|
+
sm: "py-1 [&_svg:not([class*='size-'])]:size-3.5",
|
|
92
|
+
xl: "py-2 [&_svg:not([class*='size-'])]:size-5",
|
|
93
|
+
xs: "py-0.5 [&_svg:not([class*='size-'])]:size-3"
|
|
94
|
+
} }
|
|
95
95
|
});
|
|
96
96
|
const SelectScrollDownButton = ({ className, size, ...props }) => {
|
|
97
97
|
const { size: overlaySize } = useContext(SelectOverlayContext);
|
|
@@ -111,15 +111,15 @@ const SelectScrollDownButton = ({ className, size, ...props }) => {
|
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region src/ui/select/select-scroll-up-button.tsx
|
|
113
113
|
const selectScrollUpButtonVariants = tv({
|
|
114
|
-
base: "top-0
|
|
114
|
+
base: "z-raised cursor-clickable bg-popover top-0 flex w-full items-center justify-center",
|
|
115
|
+
defaultVariants: { size: "md" },
|
|
115
116
|
variants: { size: {
|
|
116
|
-
xs: "py-0.5 [&_svg:not([class*='size-'])]:size-3",
|
|
117
|
-
sm: "py-1 [&_svg:not([class*='size-'])]:size-3.5",
|
|
118
|
-
md: "py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
119
117
|
lg: "py-1.5 [&_svg:not([class*='size-'])]:size-4",
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
md: "py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
119
|
+
sm: "py-1 [&_svg:not([class*='size-'])]:size-3.5",
|
|
120
|
+
xl: "py-2 [&_svg:not([class*='size-'])]:size-5",
|
|
121
|
+
xs: "py-0.5 [&_svg:not([class*='size-'])]:size-3"
|
|
122
|
+
} }
|
|
123
123
|
});
|
|
124
124
|
const SelectScrollUpButton = ({ className, size, ...props }) => {
|
|
125
125
|
const { size: overlaySize } = useContext(SelectOverlayContext);
|
|
@@ -141,8 +141,9 @@ const SelectScrollUpButton = ({ className, size, ...props }) => {
|
|
|
141
141
|
const SelectContent = ({ className, children, size, side = "bottom", sideOffset = 4, align = "center", alignOffset = 0, alignItemWithTrigger = true, ...props }) => {
|
|
142
142
|
const { size: rootSize } = useContext(SelectContext);
|
|
143
143
|
const resolvedSize = size ?? rootSize ?? "md";
|
|
144
|
+
const contextValue = useMemo(() => ({ size: resolvedSize }), [resolvedSize]);
|
|
144
145
|
return /* @__PURE__ */ jsx(SelectOverlayContext.Provider, {
|
|
145
|
-
value:
|
|
146
|
+
value: contextValue,
|
|
146
147
|
children: /* @__PURE__ */ jsx(SelectPortal, { children: /* @__PURE__ */ jsx(SelectPositioner, {
|
|
147
148
|
align,
|
|
148
149
|
alignItemWithTrigger,
|
|
@@ -169,14 +170,14 @@ const SelectContent = ({ className, children, size, side = "bottom", sideOffset
|
|
|
169
170
|
//#region src/ui/select/select-group.tsx
|
|
170
171
|
const selectGroupVariants = tv({
|
|
171
172
|
base: "",
|
|
173
|
+
defaultVariants: { size: "md" },
|
|
172
174
|
variants: { size: {
|
|
173
|
-
xs: "scroll-my-0.5 p-0.5",
|
|
174
|
-
sm: "scroll-my-1 p-1",
|
|
175
|
-
md: "scroll-my-1 p-1",
|
|
176
175
|
lg: "scroll-my-1.5 p-1.5",
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
md: "scroll-my-1 p-1",
|
|
177
|
+
sm: "scroll-my-1 p-1",
|
|
178
|
+
xl: "scroll-my-2 p-2",
|
|
179
|
+
xs: "scroll-my-0.5 p-0.5"
|
|
180
|
+
} }
|
|
180
181
|
});
|
|
181
182
|
const SelectGroup = ({ className, size, ...props }) => {
|
|
182
183
|
const { size: overlaySize } = useContext(SelectOverlayContext);
|
|
@@ -201,14 +202,14 @@ const SelectIcon = ({ className, ...props }) => /* @__PURE__ */ jsx(Select$1.Ico
|
|
|
201
202
|
//#region src/ui/select/select-item-indicator.tsx
|
|
202
203
|
const selectItemIndicatorVariants = tv({
|
|
203
204
|
base: "pointer-events-none absolute flex items-center justify-center",
|
|
205
|
+
defaultVariants: { size: "md" },
|
|
204
206
|
variants: { size: {
|
|
205
|
-
xs: "right-1.5 size-3",
|
|
206
|
-
sm: "right-2 size-3.5",
|
|
207
|
-
md: "right-2 size-4",
|
|
208
207
|
lg: "right-2.5 size-4",
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
208
|
+
md: "right-2 size-4",
|
|
209
|
+
sm: "right-2 size-3.5",
|
|
210
|
+
xl: "right-3 size-5",
|
|
211
|
+
xs: "right-1.5 size-3"
|
|
212
|
+
} }
|
|
212
213
|
});
|
|
213
214
|
const SelectItemIndicator = ({ className, render, size, ...props }) => {
|
|
214
215
|
const { size: overlaySize } = useContext(SelectOverlayContext);
|
|
@@ -234,33 +235,33 @@ const SelectItemText = ({ className, ...props }) => /* @__PURE__ */ jsx(Select$1
|
|
|
234
235
|
//#endregion
|
|
235
236
|
//#region src/ui/select/select-item.tsx
|
|
236
237
|
const selectItemVariants = tv({
|
|
238
|
+
defaultVariants: { size: "md" },
|
|
237
239
|
slots: {
|
|
238
240
|
icon: "pointer-events-none",
|
|
239
|
-
root: "
|
|
241
|
+
root: "cursor-clickable focus:bg-accent focus:text-accent-foreground not-data-[variant=danger]:focus:**:text-accent-foreground relative flex w-full items-center rounded-sm 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 *:[span]:last:flex *:[span]:last:items-center"
|
|
240
242
|
},
|
|
241
243
|
variants: { size: {
|
|
242
|
-
|
|
243
|
-
icon: "size-
|
|
244
|
-
root: "gap-
|
|
245
|
-
},
|
|
246
|
-
sm: {
|
|
247
|
-
icon: "size-3.5",
|
|
248
|
-
root: "gap-1.5 py-1 pr-7 pl-2 text-sm [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:gap-1.5"
|
|
244
|
+
lg: {
|
|
245
|
+
icon: "size-4",
|
|
246
|
+
root: "gap-2 py-2 pr-9 pl-2.5 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2"
|
|
249
247
|
},
|
|
250
248
|
md: {
|
|
251
249
|
icon: "size-4",
|
|
252
250
|
root: "gap-2 py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2"
|
|
253
251
|
},
|
|
254
|
-
|
|
255
|
-
icon: "size-
|
|
256
|
-
root: "gap-
|
|
252
|
+
sm: {
|
|
253
|
+
icon: "size-3.5",
|
|
254
|
+
root: "gap-1.5 py-1 pr-7 pl-2 text-sm [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:gap-1.5"
|
|
257
255
|
},
|
|
258
256
|
xl: {
|
|
259
257
|
icon: "size-5",
|
|
260
258
|
root: "gap-2.5 py-2.5 pr-10 pl-3 text-base [&_svg:not([class*='size-'])]:size-5 *:[span]:last:gap-2.5"
|
|
259
|
+
},
|
|
260
|
+
xs: {
|
|
261
|
+
icon: "size-3",
|
|
262
|
+
root: "gap-1 py-1 pr-6 pl-1.5 text-xs [&_svg:not([class*='size-'])]:size-3 *:[span]:last:gap-1"
|
|
261
263
|
}
|
|
262
|
-
} }
|
|
263
|
-
defaultVariants: { size: "md" }
|
|
264
|
+
} }
|
|
264
265
|
});
|
|
265
266
|
const SelectItem = ({ className, children, size, ...props }) => {
|
|
266
267
|
const { size: overlaySize } = useContext(SelectOverlayContext);
|
|
@@ -286,14 +287,14 @@ const SelectItem = ({ className, children, size, ...props }) => {
|
|
|
286
287
|
//#region src/ui/select/select-label.tsx
|
|
287
288
|
const selectLabelVariants = tv({
|
|
288
289
|
base: "text-muted-foreground",
|
|
290
|
+
defaultVariants: { size: "md" },
|
|
289
291
|
variants: { size: {
|
|
290
|
-
xs: "px-1.5 py-0.5 text-xs",
|
|
291
|
-
sm: "px-1.5 py-1 text-xs",
|
|
292
|
-
md: "px-1.5 py-1 text-xs",
|
|
293
292
|
lg: "px-2 py-1.5 text-xs",
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
293
|
+
md: "px-1.5 py-1 text-xs",
|
|
294
|
+
sm: "px-1.5 py-1 text-xs",
|
|
295
|
+
xl: "px-2.5 py-1.5 text-sm",
|
|
296
|
+
xs: "px-1.5 py-0.5 text-xs"
|
|
297
|
+
} }
|
|
297
298
|
});
|
|
298
299
|
const SelectLabel = ({ className, size, ...props }) => {
|
|
299
300
|
const { size: overlaySize } = useContext(SelectOverlayContext);
|
|
@@ -317,42 +318,41 @@ const SelectSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(Select$
|
|
|
317
318
|
//#endregion
|
|
318
319
|
//#region src/ui/select/select-trigger.tsx
|
|
319
320
|
const selectTriggerVariants = tv({
|
|
320
|
-
base: "flex w-fit
|
|
321
|
+
base: "cursor-clickable border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-danger aria-invalid:ring-danger/20 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-danger/50 dark:aria-invalid:ring-danger/40 flex w-fit items-center justify-between border bg-transparent whitespace-nowrap transition-colors outline-none select-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-[3px] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
322
|
+
defaultVariants: { size: "md" },
|
|
321
323
|
variants: { size: {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
"gap-1 rounded-
|
|
327
|
-
],
|
|
328
|
-
sm: [
|
|
329
|
-
FIELD_HEIGHT_CLASS_BY_SIZE.sm,
|
|
330
|
-
FIELD_TEXT_CLASS_BY_SIZE.sm,
|
|
331
|
-
DEFAULT_NESTED_ICON_CLASS_BY_SIZE.sm,
|
|
332
|
-
"gap-1 rounded-[min(var(--radius-md),10px)] pr-2 pl-2.5 *:data-[slot=select-value]:gap-1.5"
|
|
324
|
+
lg: [
|
|
325
|
+
resolveFieldHeightClassBySize("lg"),
|
|
326
|
+
resolveFieldTextClassBySize("lg"),
|
|
327
|
+
resolveDefaultNestedIconClassBySize("lg"),
|
|
328
|
+
"gap-1.5 rounded-md pr-2.5 pl-3 *:data-[slot=select-value]:gap-1.5"
|
|
333
329
|
],
|
|
334
330
|
md: [
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
331
|
+
resolveFieldHeightClassBySize("md"),
|
|
332
|
+
resolveFieldTextClassBySize("md"),
|
|
333
|
+
resolveDefaultNestedIconClassBySize("md"),
|
|
338
334
|
"gap-1.5 rounded-md pr-2 pl-2.5 *:data-[slot=select-value]:gap-1.5"
|
|
339
335
|
],
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
"gap-1
|
|
336
|
+
sm: [
|
|
337
|
+
resolveFieldHeightClassBySize("sm"),
|
|
338
|
+
resolveFieldTextClassBySize("sm"),
|
|
339
|
+
resolveDefaultNestedIconClassBySize("sm"),
|
|
340
|
+
"gap-1 rounded-[min(var(--radius-md),10px)] pr-2 pl-2.5 *:data-[slot=select-value]:gap-1.5"
|
|
345
341
|
],
|
|
346
342
|
xl: [
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
343
|
+
resolveFieldHeightClassBySize("xl"),
|
|
344
|
+
resolveFieldTextClassBySize("xl"),
|
|
345
|
+
resolveDefaultNestedIconClassBySize("xl"),
|
|
350
346
|
"gap-2 rounded-md pr-3 pl-4 *:data-[slot=select-value]:gap-2"
|
|
347
|
+
],
|
|
348
|
+
xs: [
|
|
349
|
+
resolveFieldHeightClassBySize("xs"),
|
|
350
|
+
resolveFieldTextClassBySize("xs"),
|
|
351
|
+
resolveDefaultNestedIconClassBySize("xs"),
|
|
352
|
+
"gap-1 rounded-[min(var(--radius-md),8px)] pr-1.5 pl-2 *:data-[slot=select-value]:gap-1"
|
|
351
353
|
]
|
|
352
|
-
} }
|
|
353
|
-
defaultVariants: { size: "md" }
|
|
354
|
+
} }
|
|
354
355
|
});
|
|
355
|
-
const getSelectIconSizeClassName = (size) => DEFAULT_ICON_CLASS_BY_SIZE[size];
|
|
356
356
|
const SelectTrigger = ({ className, size, children, ...props }) => {
|
|
357
357
|
const { size: contextSize } = useContext(SelectContext);
|
|
358
358
|
const resolvedSize = size ?? contextSize ?? "md";
|
|
@@ -362,7 +362,7 @@ const SelectTrigger = ({ className, size, children, ...props }) => {
|
|
|
362
362
|
"data-slot": "select-trigger",
|
|
363
363
|
...props,
|
|
364
364
|
children: [children, /* @__PURE__ */ jsx(SelectIcon, { render: /* @__PURE__ */ jsx(HugeiconsIcon, {
|
|
365
|
-
className: cn("pointer-events-none
|
|
365
|
+
className: cn("text-muted-foreground pointer-events-none", resolveDefaultIconClassBySize(resolvedSize)),
|
|
366
366
|
icon: UnfoldMoreIcon,
|
|
367
367
|
strokeWidth: 2
|
|
368
368
|
}) })]
|
|
@@ -389,8 +389,9 @@ const SelectScrollUpArrow = SelectScrollUpButton;
|
|
|
389
389
|
const Select = (incomingProps) => {
|
|
390
390
|
const { size: providedSize, ...props } = useSelectDefaultProps(incomingProps);
|
|
391
391
|
const size = useComponentSize(providedSize);
|
|
392
|
+
const contextValue = useMemo(() => ({ size }), [size]);
|
|
392
393
|
return /* @__PURE__ */ jsx(SelectContext.Provider, {
|
|
393
|
-
value:
|
|
394
|
+
value: contextValue,
|
|
394
395
|
children: /* @__PURE__ */ jsx(Select$1.Root, {
|
|
395
396
|
"data-size": size,
|
|
396
397
|
"data-slot": "select",
|
package/dist/ui/select.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","names":["SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive"],"sources":["../../src/ui/select/select-arrow.tsx","../../src/ui/select/select-backdrop.tsx","../../src/ui/select/select-context.tsx","../../src/ui/select/select-list.tsx","../../src/ui/select/select-overlay-context.tsx","../../src/ui/select/select-popup.tsx","../../src/ui/select/select-portal.tsx","../../src/ui/select/select-positioner.tsx","../../src/ui/select/select-scroll-down-button.tsx","../../src/ui/select/select-scroll-up-button.tsx","../../src/ui/select/select-content.tsx","../../src/ui/select/select-group.tsx","../../src/ui/select/select-icon.tsx","../../src/ui/select/select-item-indicator.tsx","../../src/ui/select/select-item-text.tsx","../../src/ui/select/select-item.tsx","../../src/ui/select/select-label.tsx","../../src/ui/select/select-separator.tsx","../../src/ui/select/select-trigger.tsx","../../src/ui/select/select-value.tsx","../../src/ui/select/use-select-default-props.ts","../../src/ui/select/select.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectArrowProps = ComponentProps<typeof SelectPrimitive.Arrow>;\n\nconst SelectArrow = ({ className, ...props }: SelectArrowProps) => (\n <SelectPrimitive.Arrow\n className={mergeBaseUIClassName<SelectPrimitive.Arrow.State>(\n undefined,\n className\n )}\n data-slot=\"select-arrow\"\n {...props}\n />\n);\n\nexport { SelectArrow };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectBackdropProps = ComponentProps<\n typeof SelectPrimitive.Backdrop\n>;\n\nconst SelectBackdrop = ({ className, ...props }: SelectBackdropProps) => (\n <SelectPrimitive.Backdrop\n className={mergeBaseUIClassName<SelectPrimitive.Backdrop.State>(\n undefined,\n className\n )}\n data-slot=\"select-backdrop\"\n {...props}\n />\n);\n\nexport { SelectBackdrop };\n","\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nexport interface SelectContextValue {\n size?: InputSize;\n}\n\nconst SelectContext = createContext<SelectContextValue>({\n size: \"md\",\n});\n\nexport { SelectContext };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectListProps = ComponentProps<typeof SelectPrimitive.List>;\n\nconst SelectList = ({ className, ...props }: SelectListProps) => (\n <SelectPrimitive.List\n className={mergeBaseUIClassName<SelectPrimitive.List.State>(\n undefined,\n className\n )}\n data-slot=\"select-list\"\n {...props}\n />\n);\n\nexport { SelectList };\n","\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nexport interface SelectOverlayContextValue {\n size?: InputSize;\n}\n\nconst SelectOverlayContext = createContext<SelectOverlayContextValue>({\n size: \"md\",\n});\n\nexport { SelectOverlayContext };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { useContext } from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectPopupVariants = tv({\n base: \"relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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\",\n variants: {\n size: {\n xs: \"rounded-[min(var(--radius-md),8px)] p-0.5\",\n sm: \"rounded-[min(var(--radius-md),10px)] p-1\",\n md: \"rounded-md p-1\",\n lg: \"rounded-md p-1.5\",\n xl: \"rounded-md p-2\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype SelectPopupVariantProps = VariantProps<typeof selectPopupVariants>;\n\nexport type SelectPopupProps = ComponentProps<typeof SelectPrimitive.Popup> &\n SelectPopupVariantProps;\n\nconst SelectPopup = ({ className, size, ...props }: SelectPopupProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n\n return (\n <SelectPrimitive.Popup\n className={mergeBaseUIClassName<SelectPrimitive.Popup.State>(\n selectPopupVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-popup\"\n {...props}\n />\n );\n};\n\nexport { SelectPopup };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nexport type SelectPortalProps = ComponentProps<typeof SelectPrimitive.Portal>;\n\nconst SelectPortal = (props: SelectPortalProps) => (\n <SelectPrimitive.Portal data-slot=\"select-portal\" {...props} />\n);\n\nexport { SelectPortal };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectPositionerProps = ComponentProps<\n typeof SelectPrimitive.Positioner\n>;\n\nconst SelectPositioner = ({ className, ...props }: SelectPositionerProps) => (\n <SelectPrimitive.Positioner\n className={mergeBaseUIClassName<SelectPrimitive.Positioner.State>(\n \"isolate z-50\",\n className\n )}\n data-slot=\"select-positioner\"\n {...props}\n />\n);\n\nexport { SelectPositioner };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { ArrowDown01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { useContext } from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectScrollDownButtonVariants = tv({\n base: \"bottom-0 z-10 flex w-full cursor-pointer items-center justify-center bg-popover\",\n variants: {\n size: {\n xs: \"py-0.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: \"py-1 [&_svg:not([class*='size-'])]:size-3.5\",\n md: \"py-1 [&_svg:not([class*='size-'])]:size-4\",\n lg: \"py-1.5 [&_svg:not([class*='size-'])]:size-4\",\n xl: \"py-2 [&_svg:not([class*='size-'])]:size-5\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype SelectScrollDownButtonVariantProps = VariantProps<\n typeof selectScrollDownButtonVariants\n>;\n\nexport type SelectScrollDownButtonProps = ComponentProps<\n typeof SelectPrimitive.ScrollDownArrow\n> &\n SelectScrollDownButtonVariantProps;\n\nconst SelectScrollDownButton = ({\n className,\n size,\n ...props\n}: SelectScrollDownButtonProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n\n return (\n <SelectPrimitive.ScrollDownArrow\n className={mergeBaseUIClassName<SelectPrimitive.ScrollDownArrow.State>(\n selectScrollDownButtonVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-scroll-down-button\"\n {...props}\n >\n <HugeiconsIcon icon={ArrowDown01Icon} strokeWidth={2} />\n </SelectPrimitive.ScrollDownArrow>\n );\n};\n\nexport { SelectScrollDownButton };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { ArrowUp01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { useContext } from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectScrollUpButtonVariants = tv({\n base: \"top-0 z-10 flex w-full cursor-pointer items-center justify-center bg-popover\",\n variants: {\n size: {\n xs: \"py-0.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: \"py-1 [&_svg:not([class*='size-'])]:size-3.5\",\n md: \"py-1 [&_svg:not([class*='size-'])]:size-4\",\n lg: \"py-1.5 [&_svg:not([class*='size-'])]:size-4\",\n xl: \"py-2 [&_svg:not([class*='size-'])]:size-5\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype SelectScrollUpButtonVariantProps = VariantProps<\n typeof selectScrollUpButtonVariants\n>;\n\nexport type SelectScrollUpButtonProps = ComponentProps<\n typeof SelectPrimitive.ScrollUpArrow\n> &\n SelectScrollUpButtonVariantProps;\n\nconst SelectScrollUpButton = ({\n className,\n size,\n ...props\n}: SelectScrollUpButtonProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n\n return (\n <SelectPrimitive.ScrollUpArrow\n className={mergeBaseUIClassName<SelectPrimitive.ScrollUpArrow.State>(\n selectScrollUpButtonVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-scroll-up-button\"\n {...props}\n >\n <HugeiconsIcon icon={ArrowUp01Icon} strokeWidth={2} />\n </SelectPrimitive.ScrollUpArrow>\n );\n};\n\nexport { SelectScrollUpButton };\n","\"use client\";\n\nimport type { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { useContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { SelectContext } from \"./select-context\";\nimport { SelectList } from \"./select-list\";\nimport { SelectOverlayContext } from \"./select-overlay-context\";\nimport { SelectPopup } from \"./select-popup\";\nimport { SelectPortal } from \"./select-portal\";\nimport { SelectPositioner } from \"./select-positioner\";\nimport { SelectScrollDownButton } from \"./select-scroll-down-button\";\nimport { SelectScrollUpButton } from \"./select-scroll-up-button\";\n\nexport type SelectContentProps = SelectPrimitive.Popup.Props &\n Pick<\n SelectPrimitive.Positioner.Props,\n \"align\" | \"alignOffset\" | \"side\" | \"sideOffset\" | \"alignItemWithTrigger\"\n > & {\n size?: InputSize;\n };\n\nconst SelectContent = ({\n className,\n children,\n size,\n side = \"bottom\",\n sideOffset = 4,\n align = \"center\",\n alignOffset = 0,\n alignItemWithTrigger = true,\n ...props\n}: SelectContentProps) => {\n const { size: rootSize } = useContext(SelectContext);\n const resolvedSize = size ?? rootSize ?? \"md\";\n\n return (\n <SelectOverlayContext.Provider value={{ size: resolvedSize }}>\n <SelectPortal>\n <SelectPositioner\n align={align}\n alignItemWithTrigger={alignItemWithTrigger}\n alignOffset={alignOffset}\n side={side}\n sideOffset={sideOffset}\n >\n <SelectPopup\n className={className}\n data-size={resolvedSize}\n data-slot=\"select-content\"\n size={resolvedSize}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectList>{children}</SelectList>\n <SelectScrollDownButton />\n </SelectPopup>\n </SelectPositioner>\n </SelectPortal>\n </SelectOverlayContext.Provider>\n );\n};\n\nexport { SelectContent };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { useContext } from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectGroupVariants = tv({\n base: \"\",\n variants: {\n size: {\n xs: \"scroll-my-0.5 p-0.5\",\n sm: \"scroll-my-1 p-1\",\n md: \"scroll-my-1 p-1\",\n lg: \"scroll-my-1.5 p-1.5\",\n xl: \"scroll-my-2 p-2\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype SelectGroupVariantProps = VariantProps<typeof selectGroupVariants>;\n\nexport type SelectGroupProps = SelectPrimitive.Group.Props &\n SelectGroupVariantProps;\n\nconst SelectGroup = ({ className, size, ...props }: SelectGroupProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n\n return (\n <SelectPrimitive.Group\n className={mergeBaseUIClassName<SelectPrimitive.Group.State>(\n selectGroupVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-group\"\n {...props}\n />\n );\n};\n\nexport { SelectGroup };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectIconProps = SelectPrimitive.Icon.Props;\n\nconst SelectIcon = ({ className, ...props }: SelectIconProps) => (\n <SelectPrimitive.Icon\n className={mergeBaseUIClassName<SelectPrimitive.Icon.State>(\n \"pointer-events-none size-4 text-muted-foreground\",\n className\n )}\n data-slot=\"select-icon\"\n {...props}\n />\n);\n\nexport { SelectIcon };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { useContext } from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectItemIndicatorVariants = tv({\n base: \"pointer-events-none absolute flex items-center justify-center\",\n variants: {\n size: {\n xs: \"right-1.5 size-3\",\n sm: \"right-2 size-3.5\",\n md: \"right-2 size-4\",\n lg: \"right-2.5 size-4\",\n xl: \"right-3 size-5\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype SelectItemIndicatorVariantProps = VariantProps<\n typeof selectItemIndicatorVariants\n>;\n\nexport type SelectItemIndicatorProps = ComponentProps<\n typeof SelectPrimitive.ItemIndicator\n> &\n SelectItemIndicatorVariantProps;\n\nconst SelectItemIndicator = ({\n className,\n render,\n size,\n ...props\n}: SelectItemIndicatorProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n const indicatorClassName = selectItemIndicatorVariants({\n size: resolvedSize,\n });\n\n return (\n <SelectPrimitive.ItemIndicator\n className={mergeBaseUIClassName<SelectPrimitive.ItemIndicator.State>(\n indicatorClassName,\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-item-indicator\"\n render={render ?? <span className={indicatorClassName} />}\n {...props}\n />\n );\n};\n\nexport { SelectItemIndicator };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectItemTextProps = ComponentProps<\n typeof SelectPrimitive.ItemText\n>;\n\nconst SelectItemText = ({ className, ...props }: SelectItemTextProps) => (\n <SelectPrimitive.ItemText\n className={mergeBaseUIClassName<SelectPrimitive.ItemText.State>(\n \"flex flex-1 shrink-0 gap-2 whitespace-nowrap\",\n className\n )}\n data-slot=\"select-item-text\"\n {...props}\n />\n);\n\nexport { SelectItemText };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { Tick02Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { useContext } from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport { SelectItemIndicator } from \"./select-item-indicator\";\nimport { SelectItemText } from \"./select-item-text\";\nimport { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectItemVariants = tv({\n slots: {\n icon: \"pointer-events-none\",\n root: \"relative flex w-full cursor-pointer items-center rounded-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=danger]:focus:**:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center\",\n },\n variants: {\n size: {\n xs: {\n icon: \"size-3\",\n root: \"gap-1 py-1 pr-6 pl-1.5 text-xs [&_svg:not([class*='size-'])]:size-3 *:[span]:last:gap-1\",\n },\n sm: {\n icon: \"size-3.5\",\n root: \"gap-1.5 py-1 pr-7 pl-2 text-sm [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:gap-1.5\",\n },\n md: {\n icon: \"size-4\",\n root: \"gap-2 py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2\",\n },\n lg: {\n icon: \"size-4\",\n root: \"gap-2 py-2 pr-9 pl-2.5 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2\",\n },\n xl: {\n icon: \"size-5\",\n root: \"gap-2.5 py-2.5 pr-10 pl-3 text-base [&_svg:not([class*='size-'])]:size-5 *:[span]:last:gap-2.5\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype SelectItemVariantProps = VariantProps<typeof selectItemVariants>;\n\nexport type SelectItemProps = SelectPrimitive.Item.Props &\n SelectItemVariantProps;\n\nconst SelectItem = ({\n className,\n children,\n size,\n ...props\n}: SelectItemProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n const { icon, root } = selectItemVariants({ size: resolvedSize });\n\n return (\n <SelectPrimitive.Item\n className={mergeBaseUIClassName<SelectPrimitive.Item.State>(\n root(),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-item\"\n {...props}\n >\n <SelectItemText>{children}</SelectItemText>\n <SelectItemIndicator size={resolvedSize}>\n <HugeiconsIcon className={icon()} icon={Tick02Icon} strokeWidth={2} />\n </SelectItemIndicator>\n </SelectPrimitive.Item>\n );\n};\n\nexport { SelectItem };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { useContext } from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectLabelVariants = tv({\n base: \"text-muted-foreground\",\n variants: {\n size: {\n xs: \"px-1.5 py-0.5 text-xs\",\n sm: \"px-1.5 py-1 text-xs\",\n md: \"px-1.5 py-1 text-xs\",\n lg: \"px-2 py-1.5 text-xs\",\n xl: \"px-2.5 py-1.5 text-sm\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\ntype SelectLabelVariantProps = VariantProps<typeof selectLabelVariants>;\n\nexport type SelectLabelProps = SelectPrimitive.GroupLabel.Props &\n SelectLabelVariantProps;\n\nconst SelectLabel = ({ className, size, ...props }: SelectLabelProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n\n return (\n <SelectPrimitive.GroupLabel\n className={mergeBaseUIClassName<SelectPrimitive.GroupLabel.State>(\n selectLabelVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-label\"\n {...props}\n />\n );\n};\n\nexport { SelectLabel };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectSeparatorProps = SelectPrimitive.Separator.Props;\n\nconst SelectSeparator = ({ className, ...props }: SelectSeparatorProps) => (\n <SelectPrimitive.Separator\n className={mergeBaseUIClassName<SelectPrimitive.Separator.State>(\n \"pointer-events-none -mx-1 my-1 h-px bg-border\",\n className\n )}\n data-slot=\"select-separator\"\n {...props}\n />\n);\n\nexport { SelectSeparator };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { UnfoldMoreIcon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport {\n DEFAULT_ICON_CLASS_BY_SIZE,\n DEFAULT_NESTED_ICON_CLASS_BY_SIZE,\n FIELD_HEIGHT_CLASS_BY_SIZE,\n FIELD_TEXT_CLASS_BY_SIZE,\n} from \"../shared/size/size-system\";\nimport { SelectContext } from \"./select-context\";\nimport { SelectIcon } from \"./select-icon\";\n\nconst selectTriggerVariants = tv({\n base: \"flex w-fit cursor-pointer items-center justify-between border border-input bg-transparent whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-[3px] aria-invalid:ring-danger/20 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-danger/50 dark:aria-invalid:ring-danger/40 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n variants: {\n size: {\n xs: [\n FIELD_HEIGHT_CLASS_BY_SIZE.xs,\n FIELD_TEXT_CLASS_BY_SIZE.xs,\n DEFAULT_NESTED_ICON_CLASS_BY_SIZE.xs,\n \"gap-1 rounded-[min(var(--radius-md),8px)] pr-1.5 pl-2 *:data-[slot=select-value]:gap-1\",\n ],\n sm: [\n FIELD_HEIGHT_CLASS_BY_SIZE.sm,\n FIELD_TEXT_CLASS_BY_SIZE.sm,\n DEFAULT_NESTED_ICON_CLASS_BY_SIZE.sm,\n \"gap-1 rounded-[min(var(--radius-md),10px)] pr-2 pl-2.5 *:data-[slot=select-value]:gap-1.5\",\n ],\n md: [\n FIELD_HEIGHT_CLASS_BY_SIZE.md,\n FIELD_TEXT_CLASS_BY_SIZE.md,\n DEFAULT_NESTED_ICON_CLASS_BY_SIZE.md,\n \"gap-1.5 rounded-md pr-2 pl-2.5 *:data-[slot=select-value]:gap-1.5\",\n ],\n lg: [\n FIELD_HEIGHT_CLASS_BY_SIZE.lg,\n FIELD_TEXT_CLASS_BY_SIZE.lg,\n DEFAULT_NESTED_ICON_CLASS_BY_SIZE.lg,\n \"gap-1.5 rounded-md pr-2.5 pl-3 *:data-[slot=select-value]:gap-1.5\",\n ],\n xl: [\n FIELD_HEIGHT_CLASS_BY_SIZE.xl,\n FIELD_TEXT_CLASS_BY_SIZE.xl,\n DEFAULT_NESTED_ICON_CLASS_BY_SIZE.xl,\n \"gap-2 rounded-md pr-3 pl-4 *:data-[slot=select-value]:gap-2\",\n ],\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type SelectTriggerProps = SelectPrimitive.Trigger.Props &\n VariantProps<typeof selectTriggerVariants>;\n\nconst getSelectIconSizeClassName = (size: InputSize) =>\n DEFAULT_ICON_CLASS_BY_SIZE[size];\n\nconst SelectTrigger = ({\n className,\n size,\n children,\n ...props\n}: SelectTriggerProps) => {\n const { size: contextSize } = useContext(SelectContext);\n const resolvedSize = size ?? contextSize ?? \"md\";\n\n return (\n <SelectPrimitive.Trigger\n className={mergeBaseUIClassName<SelectPrimitive.Trigger.State>(\n selectTriggerVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-trigger\"\n {...props}\n >\n {children}\n <SelectIcon\n render={\n <HugeiconsIcon\n className={cn(\n \"pointer-events-none text-muted-foreground\",\n getSelectIconSizeClassName(resolvedSize)\n )}\n icon={UnfoldMoreIcon}\n strokeWidth={2}\n />\n }\n />\n </SelectPrimitive.Trigger>\n );\n};\n\nexport { SelectTrigger };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectValueProps = SelectPrimitive.Value.Props;\n\nconst SelectValue = ({ className, ...props }: SelectValueProps) => (\n <SelectPrimitive.Value\n className={mergeBaseUIClassName<SelectPrimitive.Value.State>(\n \"flex flex-1 text-left\",\n className\n )}\n data-slot=\"select-value\"\n {...props}\n />\n);\n\nexport { SelectValue };\n","import type { SelectProps } from \"./select\";\n\nimport { useComponentDefaultProps } from \"../shared/size/size-provider\";\n\nexport const useSelectDefaultProps = <\n Value,\n Multiple extends boolean | undefined = false,\n>(\n incomingProps: SelectProps<Value, Multiple>\n): SelectProps<Value, Multiple> =>\n useComponentDefaultProps<SelectProps<Value, Multiple>>(\n \"Select\",\n {},\n incomingProps\n );\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { SelectArrow } from \"./select-arrow\";\nimport { SelectBackdrop } from \"./select-backdrop\";\nimport { SelectContent } from \"./select-content\";\nimport { SelectContext } from \"./select-context\";\nimport { SelectGroup } from \"./select-group\";\nimport { SelectIcon } from \"./select-icon\";\nimport { SelectItem } from \"./select-item\";\nimport { SelectItemIndicator } from \"./select-item-indicator\";\nimport { SelectItemText } from \"./select-item-text\";\nimport { SelectLabel } from \"./select-label\";\nimport { SelectList } from \"./select-list\";\nimport { SelectPopup } from \"./select-popup\";\nimport { SelectPortal } from \"./select-portal\";\nimport { SelectPositioner } from \"./select-positioner\";\nimport { SelectScrollDownButton } from \"./select-scroll-down-button\";\nimport { SelectScrollUpButton } from \"./select-scroll-up-button\";\nimport { SelectSeparator } from \"./select-separator\";\nimport { SelectTrigger } from \"./select-trigger\";\nimport { SelectValue } from \"./select-value\";\nimport { useSelectDefaultProps } from \"./use-select-default-props\";\n\nexport interface SelectOption<Value> {\n value: Value;\n label: string;\n}\n\nexport type SelectProps<\n Value,\n Multiple extends boolean | undefined = false,\n> = ComponentProps<typeof SelectPrimitive.Root<Value, Multiple>> & {\n size?: InputSize;\n};\n\nconst SelectGroupLabel = SelectLabel;\nconst SelectScrollDownArrow = SelectScrollDownButton;\nconst SelectScrollUpArrow = SelectScrollUpButton;\n\nexport type SelectGroupLabelProps = ComponentProps<typeof SelectGroupLabel>;\nexport type SelectScrollDownArrowProps = ComponentProps<\n typeof SelectScrollDownArrow\n>;\nexport type SelectScrollUpArrowProps = ComponentProps<\n typeof SelectScrollUpArrow\n>;\n\nconst Select = <Value, Multiple extends boolean | undefined = false>(\n incomingProps: SelectProps<Value, Multiple>\n) => {\n const { size: providedSize, ...props } = useSelectDefaultProps(incomingProps);\n const size = useComponentSize(providedSize);\n\n return (\n <SelectContext.Provider value={{ size }}>\n <SelectPrimitive.Root<Value, Multiple>\n data-size={size}\n data-slot=\"select\"\n {...props}\n />\n </SelectContext.Provider>\n );\n};\n\nSelect.Arrow = SelectArrow;\nSelect.Backdrop = SelectBackdrop;\nSelect.Content = SelectContent;\nSelect.Group = SelectGroup;\nSelect.GroupLabel = SelectLabel;\nSelect.Icon = SelectIcon;\nSelect.Item = SelectItem;\nSelect.ItemIndicator = SelectItemIndicator;\nSelect.ItemText = SelectItemText;\nSelect.Label = SelectLabel;\nSelect.List = SelectList;\nSelect.Popup = SelectPopup;\nSelect.Portal = SelectPortal;\nSelect.Positioner = SelectPositioner;\nSelect.ScrollDownArrow = SelectScrollDownArrow;\nSelect.ScrollDownButton = SelectScrollDownButton;\nSelect.ScrollUpArrow = SelectScrollUpArrow;\nSelect.ScrollUpButton = SelectScrollUpButton;\nSelect.Separator = SelectSeparator;\nSelect.Trigger = SelectTrigger;\nSelect.Value = SelectValue;\n\nexport type { SelectArrowProps } from \"./select-arrow\";\nexport type { SelectBackdropProps } from \"./select-backdrop\";\nexport type { SelectContentProps } from \"./select-content\";\nexport type { SelectGroupProps } from \"./select-group\";\nexport type { SelectIconProps } from \"./select-icon\";\nexport type { SelectItemProps } from \"./select-item\";\nexport type { SelectItemIndicatorProps } from \"./select-item-indicator\";\nexport type { SelectItemTextProps } from \"./select-item-text\";\nexport type { SelectLabelProps } from \"./select-label\";\nexport type { SelectListProps } from \"./select-list\";\nexport type { SelectPopupProps } from \"./select-popup\";\nexport type { SelectPortalProps } from \"./select-portal\";\nexport type { SelectPositionerProps } from \"./select-positioner\";\nexport type { SelectScrollDownButtonProps } from \"./select-scroll-down-button\";\nexport type { SelectScrollUpButtonProps } from \"./select-scroll-up-button\";\nexport type { SelectSeparatorProps } from \"./select-separator\";\nexport type { SelectTriggerProps } from \"./select-trigger\";\nexport type { SelectValueProps } from \"./select-value\";\n\nexport {\n Select,\n SelectArrow,\n SelectBackdrop,\n SelectContent,\n SelectGroup,\n SelectGroupLabel,\n SelectIcon,\n SelectItem,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectList,\n SelectPopup,\n SelectPortal,\n SelectPositioner,\n SelectScrollDownArrow,\n SelectScrollDownButton,\n SelectScrollUpArrow,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n"],"mappings":";;;;;;;;;;;;;AAUA,MAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAACA,SAAgB;CACf,WAAW,qBACT,QACA,UACD;CACD,aAAU;CACV,GAAI;EACJ;;;;ACNJ,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;;AAI7B,OAAO,QAAQ;AACf,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,QAAQ;AACf,OAAO,aAAa;AACpB,OAAO,OAAO;AACd,OAAO,OAAO;AACd,OAAO,gBAAgB;AACvB,OAAO,WAAW;AAClB,OAAO,QAAQ;AACf,OAAO,OAAO;AACd,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB,OAAO,aAAa;AACpB,OAAO,kBAAkB;AACzB,OAAO,mBAAmB;AAC1B,OAAO,gBAAgB;AACvB,OAAO,iBAAiB;AACxB,OAAO,YAAY;AACnB,OAAO,UAAU;AACjB,OAAO,QAAQ"}
|
|
1
|
+
{"version":3,"file":"select.js","names":["SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive","SelectPrimitive"],"sources":["../../src/ui/select/select-arrow.tsx","../../src/ui/select/select-backdrop.tsx","../../src/ui/select/select-context.tsx","../../src/ui/select/select-list.tsx","../../src/ui/select/select-overlay-context.tsx","../../src/ui/select/select-popup.tsx","../../src/ui/select/select-portal.tsx","../../src/ui/select/select-positioner.tsx","../../src/ui/select/select-scroll-down-button.tsx","../../src/ui/select/select-scroll-up-button.tsx","../../src/ui/select/select-content.tsx","../../src/ui/select/select-group.tsx","../../src/ui/select/select-icon.tsx","../../src/ui/select/select-item-indicator.tsx","../../src/ui/select/select-item-text.tsx","../../src/ui/select/select-item.tsx","../../src/ui/select/select-label.tsx","../../src/ui/select/select-separator.tsx","../../src/ui/select/select-trigger.tsx","../../src/ui/select/select-value.tsx","../../src/ui/select/use-select-default-props.ts","../../src/ui/select/select.tsx"],"sourcesContent":["\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport type { ComponentProps } from \"react\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectArrowProps = ComponentProps<typeof SelectPrimitive.Arrow>;\n\nconst SelectArrow = ({ className, ...props }: SelectArrowProps) => (\n <SelectPrimitive.Arrow\n className={mergeBaseUIClassName<SelectPrimitive.Arrow.State>(\n undefined,\n className\n )}\n data-slot=\"select-arrow\"\n {...props}\n />\n);\n\nexport { SelectArrow };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport type { ComponentProps } from \"react\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectBackdropProps = ComponentProps<\n typeof SelectPrimitive.Backdrop\n>;\n\nconst SelectBackdrop = ({ className, ...props }: SelectBackdropProps) => (\n <SelectPrimitive.Backdrop\n className={mergeBaseUIClassName<SelectPrimitive.Backdrop.State>(\n undefined,\n className\n )}\n data-slot=\"select-backdrop\"\n {...props}\n />\n);\n\nexport { SelectBackdrop };\n","\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nexport interface SelectContextValue {\n size?: InputSize;\n}\n\nconst SelectContext = createContext<SelectContextValue>({\n size: \"md\",\n});\n\nexport { SelectContext };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport type { ComponentProps } from \"react\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectListProps = ComponentProps<typeof SelectPrimitive.List>;\n\nconst SelectList = ({ className, ...props }: SelectListProps) => (\n <SelectPrimitive.List\n className={mergeBaseUIClassName<SelectPrimitive.List.State>(\n undefined,\n className\n )}\n data-slot=\"select-list\"\n {...props}\n />\n);\n\nexport { SelectList };\n","\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nexport interface SelectOverlayContextValue {\n size?: InputSize;\n}\n\nconst SelectOverlayContext = createContext<SelectOverlayContextValue>({\n size: \"md\",\n});\n\nexport { SelectOverlayContext };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport type { ComponentProps } from \"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 { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectPopupVariants = 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 relative isolate max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto shadow-md ring-1 duration-100\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"rounded-md p-1.5\",\n md: \"rounded-md p-1\",\n sm: \"rounded-[min(var(--radius-md),10px)] p-1\",\n xl: \"rounded-md p-2\",\n xs: \"rounded-[min(var(--radius-md),8px)] p-0.5\",\n },\n },\n});\n\ntype SelectPopupVariantProps = VariantProps<typeof selectPopupVariants>;\n\nexport type SelectPopupProps = ComponentProps<typeof SelectPrimitive.Popup> &\n SelectPopupVariantProps;\n\nconst SelectPopup = ({ className, size, ...props }: SelectPopupProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n\n return (\n <SelectPrimitive.Popup\n className={mergeBaseUIClassName<SelectPrimitive.Popup.State>(\n selectPopupVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-popup\"\n {...props}\n />\n );\n};\n\nexport { SelectPopup };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport type { ComponentProps } from \"react\";\n\nexport type SelectPortalProps = ComponentProps<typeof SelectPrimitive.Portal>;\n\nconst SelectPortal = (props: SelectPortalProps) => (\n <SelectPrimitive.Portal data-slot=\"select-portal\" {...props} />\n);\n\nexport { SelectPortal };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport type { ComponentProps } from \"react\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectPositionerProps = ComponentProps<\n typeof SelectPrimitive.Positioner\n>;\n\nconst SelectPositioner = ({ className, ...props }: SelectPositionerProps) => (\n <SelectPrimitive.Positioner\n className={mergeBaseUIClassName<SelectPrimitive.Positioner.State>(\n \"isolate z-overlay\",\n className\n )}\n data-slot=\"select-positioner\"\n {...props}\n />\n);\n\nexport { SelectPositioner };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { ArrowDown01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport type { ComponentProps } from \"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 { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectScrollDownButtonVariants = tv({\n base: \"z-raised cursor-clickable bg-popover bottom-0 flex w-full items-center justify-center\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"py-1.5 [&_svg:not([class*='size-'])]:size-4\",\n md: \"py-1 [&_svg:not([class*='size-'])]:size-4\",\n sm: \"py-1 [&_svg:not([class*='size-'])]:size-3.5\",\n xl: \"py-2 [&_svg:not([class*='size-'])]:size-5\",\n xs: \"py-0.5 [&_svg:not([class*='size-'])]:size-3\",\n },\n },\n});\n\ntype SelectScrollDownButtonVariantProps = VariantProps<\n typeof selectScrollDownButtonVariants\n>;\n\nexport type SelectScrollDownButtonProps = ComponentProps<\n typeof SelectPrimitive.ScrollDownArrow\n> &\n SelectScrollDownButtonVariantProps;\n\nconst SelectScrollDownButton = ({\n className,\n size,\n ...props\n}: SelectScrollDownButtonProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n\n return (\n <SelectPrimitive.ScrollDownArrow\n className={mergeBaseUIClassName<SelectPrimitive.ScrollDownArrow.State>(\n selectScrollDownButtonVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-scroll-down-button\"\n {...props}\n >\n <HugeiconsIcon icon={ArrowDown01Icon} strokeWidth={2} />\n </SelectPrimitive.ScrollDownArrow>\n );\n};\n\nexport { SelectScrollDownButton };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { ArrowUp01Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport type { ComponentProps } from \"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 { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectScrollUpButtonVariants = tv({\n base: \"z-raised cursor-clickable bg-popover top-0 flex w-full items-center justify-center\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"py-1.5 [&_svg:not([class*='size-'])]:size-4\",\n md: \"py-1 [&_svg:not([class*='size-'])]:size-4\",\n sm: \"py-1 [&_svg:not([class*='size-'])]:size-3.5\",\n xl: \"py-2 [&_svg:not([class*='size-'])]:size-5\",\n xs: \"py-0.5 [&_svg:not([class*='size-'])]:size-3\",\n },\n },\n});\n\ntype SelectScrollUpButtonVariantProps = VariantProps<\n typeof selectScrollUpButtonVariants\n>;\n\nexport type SelectScrollUpButtonProps = ComponentProps<\n typeof SelectPrimitive.ScrollUpArrow\n> &\n SelectScrollUpButtonVariantProps;\n\nconst SelectScrollUpButton = ({\n className,\n size,\n ...props\n}: SelectScrollUpButtonProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n\n return (\n <SelectPrimitive.ScrollUpArrow\n className={mergeBaseUIClassName<SelectPrimitive.ScrollUpArrow.State>(\n selectScrollUpButtonVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-scroll-up-button\"\n {...props}\n >\n <HugeiconsIcon icon={ArrowUp01Icon} strokeWidth={2} />\n </SelectPrimitive.ScrollUpArrow>\n );\n};\n\nexport { SelectScrollUpButton };\n","\"use client\";\n\nimport type { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { useContext, useMemo } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\nimport { SelectContext } from \"./select-context\";\nimport { SelectList } from \"./select-list\";\nimport { SelectOverlayContext } from \"./select-overlay-context\";\nimport { SelectPopup } from \"./select-popup\";\nimport { SelectPortal } from \"./select-portal\";\nimport { SelectPositioner } from \"./select-positioner\";\nimport { SelectScrollDownButton } from \"./select-scroll-down-button\";\nimport { SelectScrollUpButton } from \"./select-scroll-up-button\";\n\nexport type SelectContentProps = SelectPrimitive.Popup.Props &\n Pick<\n SelectPrimitive.Positioner.Props,\n \"align\" | \"alignOffset\" | \"side\" | \"sideOffset\" | \"alignItemWithTrigger\"\n > & {\n size?: InputSize;\n };\n\nconst SelectContent = ({\n className,\n children,\n size,\n side = \"bottom\",\n sideOffset = 4,\n align = \"center\",\n alignOffset = 0,\n alignItemWithTrigger = true,\n ...props\n}: SelectContentProps) => {\n const { size: rootSize } = useContext(SelectContext);\n const resolvedSize = size ?? rootSize ?? \"md\";\n const contextValue = useMemo(() => ({ size: resolvedSize }), [resolvedSize]);\n\n return (\n <SelectOverlayContext.Provider value={contextValue}>\n <SelectPortal>\n <SelectPositioner\n align={align}\n alignItemWithTrigger={alignItemWithTrigger}\n alignOffset={alignOffset}\n side={side}\n sideOffset={sideOffset}\n >\n <SelectPopup\n className={className}\n data-size={resolvedSize}\n data-slot=\"select-content\"\n size={resolvedSize}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectList>{children}</SelectList>\n <SelectScrollDownButton />\n </SelectPopup>\n </SelectPositioner>\n </SelectPortal>\n </SelectOverlayContext.Provider>\n );\n};\n\nexport { SelectContent };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\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 { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectGroupVariants = tv({\n base: \"\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"scroll-my-1.5 p-1.5\",\n md: \"scroll-my-1 p-1\",\n sm: \"scroll-my-1 p-1\",\n xl: \"scroll-my-2 p-2\",\n xs: \"scroll-my-0.5 p-0.5\",\n },\n },\n});\n\ntype SelectGroupVariantProps = VariantProps<typeof selectGroupVariants>;\n\nexport type SelectGroupProps = SelectPrimitive.Group.Props &\n SelectGroupVariantProps;\n\nconst SelectGroup = ({ className, size, ...props }: SelectGroupProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n\n return (\n <SelectPrimitive.Group\n className={mergeBaseUIClassName<SelectPrimitive.Group.State>(\n selectGroupVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-group\"\n {...props}\n />\n );\n};\n\nexport { SelectGroup };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectIconProps = SelectPrimitive.Icon.Props;\n\nconst SelectIcon = ({ className, ...props }: SelectIconProps) => (\n <SelectPrimitive.Icon\n className={mergeBaseUIClassName<SelectPrimitive.Icon.State>(\n \"pointer-events-none size-4 text-muted-foreground\",\n className\n )}\n data-slot=\"select-icon\"\n {...props}\n />\n);\n\nexport { SelectIcon };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport type { ComponentProps } from \"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 { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectItemIndicatorVariants = tv({\n base: \"pointer-events-none absolute flex items-center justify-center\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"right-2.5 size-4\",\n md: \"right-2 size-4\",\n sm: \"right-2 size-3.5\",\n xl: \"right-3 size-5\",\n xs: \"right-1.5 size-3\",\n },\n },\n});\n\ntype SelectItemIndicatorVariantProps = VariantProps<\n typeof selectItemIndicatorVariants\n>;\n\nexport type SelectItemIndicatorProps = ComponentProps<\n typeof SelectPrimitive.ItemIndicator\n> &\n SelectItemIndicatorVariantProps;\n\nconst SelectItemIndicator = ({\n className,\n render,\n size,\n ...props\n}: SelectItemIndicatorProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n const indicatorClassName = selectItemIndicatorVariants({\n size: resolvedSize,\n });\n\n return (\n <SelectPrimitive.ItemIndicator\n className={mergeBaseUIClassName<SelectPrimitive.ItemIndicator.State>(\n indicatorClassName,\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-item-indicator\"\n render={render ?? <span className={indicatorClassName} />}\n {...props}\n />\n );\n};\n\nexport { SelectItemIndicator };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport type { ComponentProps } from \"react\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectItemTextProps = ComponentProps<\n typeof SelectPrimitive.ItemText\n>;\n\nconst SelectItemText = ({ className, ...props }: SelectItemTextProps) => (\n <SelectPrimitive.ItemText\n className={mergeBaseUIClassName<SelectPrimitive.ItemText.State>(\n \"flex flex-1 shrink-0 gap-2 whitespace-nowrap\",\n className\n )}\n data-slot=\"select-item-text\"\n {...props}\n />\n);\n\nexport { SelectItemText };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { Tick02Icon } 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 { SelectItemIndicator } from \"./select-item-indicator\";\nimport { SelectItemText } from \"./select-item-text\";\nimport { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectItemVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n slots: {\n icon: \"pointer-events-none\",\n root: \"cursor-clickable focus:bg-accent focus:text-accent-foreground not-data-[variant=danger]:focus:**:text-accent-foreground relative flex w-full items-center rounded-sm 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 *:[span]:last:flex *:[span]:last:items-center\",\n },\n variants: {\n size: {\n lg: {\n icon: \"size-4\",\n root: \"gap-2 py-2 pr-9 pl-2.5 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2\",\n },\n md: {\n icon: \"size-4\",\n root: \"gap-2 py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2\",\n },\n sm: {\n icon: \"size-3.5\",\n root: \"gap-1.5 py-1 pr-7 pl-2 text-sm [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:gap-1.5\",\n },\n xl: {\n icon: \"size-5\",\n root: \"gap-2.5 py-2.5 pr-10 pl-3 text-base [&_svg:not([class*='size-'])]:size-5 *:[span]:last:gap-2.5\",\n },\n xs: {\n icon: \"size-3\",\n root: \"gap-1 py-1 pr-6 pl-1.5 text-xs [&_svg:not([class*='size-'])]:size-3 *:[span]:last:gap-1\",\n },\n },\n },\n});\n\ntype SelectItemVariantProps = VariantProps<typeof selectItemVariants>;\n\nexport type SelectItemProps = SelectPrimitive.Item.Props &\n SelectItemVariantProps;\n\nconst SelectItem = ({\n className,\n children,\n size,\n ...props\n}: SelectItemProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n const { icon, root } = selectItemVariants({ size: resolvedSize });\n\n return (\n <SelectPrimitive.Item\n className={mergeBaseUIClassName<SelectPrimitive.Item.State>(\n root(),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-item\"\n {...props}\n >\n <SelectItemText>{children}</SelectItemText>\n <SelectItemIndicator size={resolvedSize}>\n <HugeiconsIcon className={icon()} icon={Tick02Icon} strokeWidth={2} />\n </SelectItemIndicator>\n </SelectPrimitive.Item>\n );\n};\n\nexport { SelectItem };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\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 { SelectOverlayContext } from \"./select-overlay-context\";\n\nconst selectLabelVariants = tv({\n base: \"text-muted-foreground\",\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-0.5 text-xs\",\n },\n },\n});\n\ntype SelectLabelVariantProps = VariantProps<typeof selectLabelVariants>;\n\nexport type SelectLabelProps = SelectPrimitive.GroupLabel.Props &\n SelectLabelVariantProps;\n\nconst SelectLabel = ({ className, size, ...props }: SelectLabelProps) => {\n const { size: overlaySize } = useContext(SelectOverlayContext);\n const resolvedSize: InputSize = size ?? overlaySize ?? \"md\";\n\n return (\n <SelectPrimitive.GroupLabel\n className={mergeBaseUIClassName<SelectPrimitive.GroupLabel.State>(\n selectLabelVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-label\"\n {...props}\n />\n );\n};\n\nexport { SelectLabel };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectSeparatorProps = SelectPrimitive.Separator.Props;\n\nconst SelectSeparator = ({ className, ...props }: SelectSeparatorProps) => (\n <SelectPrimitive.Separator\n className={mergeBaseUIClassName<SelectPrimitive.Separator.State>(\n \"pointer-events-none -mx-1 my-1 h-px bg-border\",\n className\n )}\n data-slot=\"select-separator\"\n {...props}\n />\n);\n\nexport { SelectSeparator };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport { UnfoldMoreIcon } 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 { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\nimport {\n resolveDefaultIconClassBySize,\n resolveDefaultNestedIconClassBySize,\n resolveFieldHeightClassBySize,\n resolveFieldTextClassBySize,\n} from \"../shared/size/size-system\";\nimport { SelectContext } from \"./select-context\";\nimport { SelectIcon } from \"./select-icon\";\n\nconst selectTriggerVariants = tv({\n base: \"cursor-clickable border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-danger aria-invalid:ring-danger/20 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-danger/50 dark:aria-invalid:ring-danger/40 flex w-fit items-center justify-between border bg-transparent whitespace-nowrap transition-colors outline-none select-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-[3px] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: [\n resolveFieldHeightClassBySize(\"lg\"),\n resolveFieldTextClassBySize(\"lg\"),\n resolveDefaultNestedIconClassBySize(\"lg\"),\n \"gap-1.5 rounded-md pr-2.5 pl-3 *:data-[slot=select-value]:gap-1.5\",\n ],\n md: [\n resolveFieldHeightClassBySize(\"md\"),\n resolveFieldTextClassBySize(\"md\"),\n resolveDefaultNestedIconClassBySize(\"md\"),\n \"gap-1.5 rounded-md pr-2 pl-2.5 *:data-[slot=select-value]:gap-1.5\",\n ],\n sm: [\n resolveFieldHeightClassBySize(\"sm\"),\n resolveFieldTextClassBySize(\"sm\"),\n resolveDefaultNestedIconClassBySize(\"sm\"),\n \"gap-1 rounded-[min(var(--radius-md),10px)] pr-2 pl-2.5 *:data-[slot=select-value]:gap-1.5\",\n ],\n xl: [\n resolveFieldHeightClassBySize(\"xl\"),\n resolveFieldTextClassBySize(\"xl\"),\n resolveDefaultNestedIconClassBySize(\"xl\"),\n \"gap-2 rounded-md pr-3 pl-4 *:data-[slot=select-value]:gap-2\",\n ],\n xs: [\n resolveFieldHeightClassBySize(\"xs\"),\n resolveFieldTextClassBySize(\"xs\"),\n resolveDefaultNestedIconClassBySize(\"xs\"),\n \"gap-1 rounded-[min(var(--radius-md),8px)] pr-1.5 pl-2 *:data-[slot=select-value]:gap-1\",\n ],\n },\n },\n});\n\nexport type SelectTriggerProps = SelectPrimitive.Trigger.Props &\n VariantProps<typeof selectTriggerVariants>;\n\nconst SelectTrigger = ({\n className,\n size,\n children,\n ...props\n}: SelectTriggerProps) => {\n const { size: contextSize } = useContext(SelectContext);\n const resolvedSize = size ?? contextSize ?? \"md\";\n\n return (\n <SelectPrimitive.Trigger\n className={mergeBaseUIClassName<SelectPrimitive.Trigger.State>(\n selectTriggerVariants({ size: resolvedSize }),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"select-trigger\"\n {...props}\n >\n {children}\n <SelectIcon\n render={\n <HugeiconsIcon\n className={cn(\n \"text-muted-foreground pointer-events-none\",\n resolveDefaultIconClassBySize(resolvedSize)\n )}\n icon={UnfoldMoreIcon}\n strokeWidth={2}\n />\n }\n />\n </SelectPrimitive.Trigger>\n );\n};\n\nexport { SelectTrigger };\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SelectValueProps = SelectPrimitive.Value.Props;\n\nconst SelectValue = ({ className, ...props }: SelectValueProps) => (\n <SelectPrimitive.Value\n className={mergeBaseUIClassName<SelectPrimitive.Value.State>(\n \"flex flex-1 text-left\",\n className\n )}\n data-slot=\"select-value\"\n {...props}\n />\n);\n\nexport { SelectValue };\n","import { useComponentDefaultProps } from \"../shared/size/size-provider\";\nimport type { SelectProps } from \"./select\";\n\nexport const useSelectDefaultProps = <\n Value,\n Multiple extends boolean | undefined = false,\n>(\n incomingProps: SelectProps<Value, Multiple>\n): SelectProps<Value, Multiple> =>\n useComponentDefaultProps<SelectProps<Value, Multiple>>(\n \"Select\",\n {},\n incomingProps\n );\n","\"use client\";\n\nimport { Select as SelectPrimitive } from \"@base-ui/react/select\";\nimport type { ComponentProps } from \"react\";\nimport { useMemo } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { SelectArrow } from \"./select-arrow\";\nimport { SelectBackdrop } from \"./select-backdrop\";\nimport { SelectContent } from \"./select-content\";\nimport { SelectContext } from \"./select-context\";\nimport { SelectGroup } from \"./select-group\";\nimport { SelectIcon } from \"./select-icon\";\nimport { SelectItem } from \"./select-item\";\nimport { SelectItemIndicator } from \"./select-item-indicator\";\nimport { SelectItemText } from \"./select-item-text\";\nimport { SelectLabel } from \"./select-label\";\nimport { SelectList } from \"./select-list\";\nimport { SelectPopup } from \"./select-popup\";\nimport { SelectPortal } from \"./select-portal\";\nimport { SelectPositioner } from \"./select-positioner\";\nimport { SelectScrollDownButton } from \"./select-scroll-down-button\";\nimport { SelectScrollUpButton } from \"./select-scroll-up-button\";\nimport { SelectSeparator } from \"./select-separator\";\nimport { SelectTrigger } from \"./select-trigger\";\nimport { SelectValue } from \"./select-value\";\nimport { useSelectDefaultProps } from \"./use-select-default-props\";\n\nexport interface SelectOption<Value> {\n value: Value;\n label: string;\n}\n\nexport type SelectProps<\n Value,\n Multiple extends boolean | undefined = false,\n> = ComponentProps<typeof SelectPrimitive.Root<Value, Multiple>> & {\n size?: InputSize;\n};\n\nconst SelectGroupLabel = SelectLabel;\nconst SelectScrollDownArrow = SelectScrollDownButton;\nconst SelectScrollUpArrow = SelectScrollUpButton;\n\nexport type SelectGroupLabelProps = ComponentProps<typeof SelectGroupLabel>;\nexport type SelectScrollDownArrowProps = ComponentProps<\n typeof SelectScrollDownArrow\n>;\nexport type SelectScrollUpArrowProps = ComponentProps<\n typeof SelectScrollUpArrow\n>;\n\nconst Select = <Value, Multiple extends boolean | undefined = false>(\n incomingProps: SelectProps<Value, Multiple>\n) => {\n const { size: providedSize, ...props } = useSelectDefaultProps(incomingProps);\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n return (\n <SelectContext.Provider value={contextValue}>\n <SelectPrimitive.Root<Value, Multiple>\n data-size={size}\n data-slot=\"select\"\n {...props}\n />\n </SelectContext.Provider>\n );\n};\n\nSelect.Arrow = SelectArrow;\nSelect.Backdrop = SelectBackdrop;\nSelect.Content = SelectContent;\nSelect.Group = SelectGroup;\nSelect.GroupLabel = SelectLabel;\nSelect.Icon = SelectIcon;\nSelect.Item = SelectItem;\nSelect.ItemIndicator = SelectItemIndicator;\nSelect.ItemText = SelectItemText;\nSelect.Label = SelectLabel;\nSelect.List = SelectList;\nSelect.Popup = SelectPopup;\nSelect.Portal = SelectPortal;\nSelect.Positioner = SelectPositioner;\nSelect.ScrollDownArrow = SelectScrollDownArrow;\nSelect.ScrollDownButton = SelectScrollDownButton;\nSelect.ScrollUpArrow = SelectScrollUpArrow;\nSelect.ScrollUpButton = SelectScrollUpButton;\nSelect.Separator = SelectSeparator;\nSelect.Trigger = SelectTrigger;\nSelect.Value = SelectValue;\n\nexport type { SelectArrowProps } from \"./select-arrow\";\nexport type { SelectBackdropProps } from \"./select-backdrop\";\nexport type { SelectContentProps } from \"./select-content\";\nexport type { SelectGroupProps } from \"./select-group\";\nexport type { SelectIconProps } from \"./select-icon\";\nexport type { SelectItemProps } from \"./select-item\";\nexport type { SelectItemIndicatorProps } from \"./select-item-indicator\";\nexport type { SelectItemTextProps } from \"./select-item-text\";\nexport type { SelectLabelProps } from \"./select-label\";\nexport type { SelectListProps } from \"./select-list\";\nexport type { SelectPopupProps } from \"./select-popup\";\nexport type { SelectPortalProps } from \"./select-portal\";\nexport type { SelectPositionerProps } from \"./select-positioner\";\nexport type { SelectScrollDownButtonProps } from \"./select-scroll-down-button\";\nexport type { SelectScrollUpButtonProps } from \"./select-scroll-up-button\";\nexport type { SelectSeparatorProps } from \"./select-separator\";\nexport type { SelectTriggerProps } from \"./select-trigger\";\nexport type { SelectValueProps } from \"./select-value\";\n\nexport {\n Select,\n SelectArrow,\n SelectBackdrop,\n SelectContent,\n SelectGroup,\n SelectGroupLabel,\n SelectIcon,\n SelectItem,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectList,\n SelectPopup,\n SelectPortal,\n SelectPositioner,\n SelectScrollDownArrow,\n SelectScrollDownButton,\n SelectScrollU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aAAa,CAC5C;GACD,MAAM;GACN,aAAa;GACb,GAEJ,EACsB;;;;;;ACvF9B,MAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAACC,SAAgB,OAAjB;CACE,WAAW,qBACT,yBACA,UACD;CACD,aAAU;CACV,GAAI;CACJ;;;;ACbJ,MAAa,yBAIX,kBAEA,yBACE,UACA,EAAE,EACF,cACD;;;;AC4BH,MAAM,mBAAmB;AACzB,MAAM,wBAAwB;AAC9B,MAAM,sBAAsB;AAU5B,MAAM,UACJ,kBACG;CACH,MAAM,EAAE,MAAM,cAAc,GAAG,UAAU,sBAAsB,cAAc;CAC7E,MAAM,OAAO,iBAAiB,aAAa;CAC3C,MAAM,eAAe,eAAe,EAAE,MAAM,GAAG,CAAC,KAAK,CAAC;AAEtD,QACE,oBAAC,cAAc,UAAf;EAAwB,OAAO;YAC7B,oBAACC,SAAgB,MAAjB;GACE,aAAW;GACX,aAAU;GACV,GAAI;GACJ;EACqB;;AAI7B,OAAO,QAAQ;AACf,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,QAAQ;AACf,OAAO,aAAa;AACpB,OAAO,OAAO;AACd,OAAO,OAAO;AACd,OAAO,gBAAgB;AACvB,OAAO,WAAW;AAClB,OAAO,QAAQ;AACf,OAAO,OAAO;AACd,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB,OAAO,aAAa;AACpB,OAAO,kBAAkB;AACzB,OAAO,mBAAmB;AAC1B,OAAO,gBAAgB;AACvB,OAAO,iBAAiB;AACxB,OAAO,YAAY;AACnB,OAAO,UAAU;AACjB,OAAO,QAAQ"}
|
package/dist/ui/separator.d.ts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/ui/separator/separator.d.ts
|
|
5
|
-
type SeparatorProps = Separator$1.Props;
|
|
6
|
-
declare const Separator: ({
|
|
7
|
-
className,
|
|
8
|
-
orientation,
|
|
9
|
-
...props
|
|
10
|
-
}: SeparatorProps) => react_jsx_runtime0.JSX.Element;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { Separator, SeparatorProps };
|
|
13
|
-
//# sourceMappingURL=separator.d.ts.map
|
|
1
|
+
import { n as SeparatorProps, t as Separator } from "../separator-C8Qw2ADs.js";
|
|
2
|
+
export { Separator, SeparatorProps };
|
package/dist/ui/separator.js
CHANGED
package/dist/ui/separator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.js","names":["SeparatorPrimitive"],"sources":["../../src/ui/separator/separator.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"separator.js","names":["SeparatorPrimitive"],"sources":["../../src/ui/separator/separator.tsx"],"sourcesContent":["\"use client\";\n\nimport { Separator as SeparatorPrimitive } from \"@base-ui/react/separator\";\n\nimport { mergeBaseUIClassName } from \"../../utils/merge-base-ui-class-name\";\n\nexport type SeparatorProps = SeparatorPrimitive.Props;\n\nconst Separator = ({\n className,\n orientation = \"horizontal\",\n ...props\n}: SeparatorProps) => (\n <SeparatorPrimitive\n className={mergeBaseUIClassName<SeparatorPrimitive.State>(\n \"shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch\",\n className\n )}\n data-slot=\"separator\"\n orientation={orientation}\n {...props}\n />\n);\n\nexport { Separator };\n"],"mappings":";;;;;;;AAQA,MAAM,aAAa,EACjB,WACA,cAAc,cACd,GAAG,YAEH,oBAACA,aAAD;CACE,WAAW,qBACT,wKACA,UACD;CACD,aAAU;CACG;CACb,GAAI;CACJ"}
|
package/dist/ui/sheet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","names":[],"sources":["../../src/ui/sheet/sheet-close.tsx","../../src/ui/sheet/sheet-popup.tsx","../../src/ui/sheet/sheet-content.tsx","../../src/ui/sheet/sheet-backdrop.tsx","../../src/ui/sheet/sheet-description.tsx","../../src/ui/sheet/sheet-footer.tsx","../../src/ui/sheet/sheet-header.tsx","../../src/ui/sheet/sheet-overlay.tsx","../../src/ui/sheet/sheet-portal.tsx","../../src/ui/sheet/sheet-title.tsx","../../src/ui/sheet/sheet-trigger.tsx","../../src/ui/sheet/sheet-viewport.tsx","../../src/ui/sheet/sheet.tsx"],"mappings":";;;;;KAIY,eAAA,GAAkB,MAAA,CAAe,KAAA,CAAM,KAAA;AAAA,cAE7C,UAAA;EAAc,SAAA;EAAA,GAAA;AAAA,GAAyB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCDhD,SAAA;AAAA,KACA,eAAA,GAAkB,MAAA,CAAe,KAAA,CAAM,KAAA;EACjD,IAAA,GAAO,SAAA;AAAA;AAAA,cAGH,UAAA;EAAc,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAIjB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","names":[],"sources":["../../src/ui/sheet/sheet-close.tsx","../../src/ui/sheet/sheet-popup.tsx","../../src/ui/sheet/sheet-content.tsx","../../src/ui/sheet/sheet-backdrop.tsx","../../src/ui/sheet/sheet-description.tsx","../../src/ui/sheet/sheet-footer.tsx","../../src/ui/sheet/sheet-header.tsx","../../src/ui/sheet/sheet-overlay.tsx","../../src/ui/sheet/sheet-portal.tsx","../../src/ui/sheet/sheet-title.tsx","../../src/ui/sheet/sheet-trigger.tsx","../../src/ui/sheet/sheet-viewport.tsx","../../src/ui/sheet/sheet.tsx"],"mappings":";;;;;KAIY,eAAA,GAAkB,MAAA,CAAe,KAAA,CAAM,KAAA;AAAA,cAE7C,UAAA;EAAc,SAAA;EAAA,GAAA;AAAA,GAAyB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCDhD,SAAA;AAAA,KACA,eAAA,GAAkB,MAAA,CAAe,KAAA,CAAM,KAAA;EACjD,IAAA,GAAO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,CAAM,KAAA;AAAA,cAE7C,UAAA;EAAc,SAAA;EAAA,GAAA;AAAA,GAAyB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCFhD,iBAAA,GAAoB,MAAA,CAAe,OAAA,CAAQ,KAAA;AAAA,cAEjD,YAAA;EAAgB,SAAA;EAAA,GAAA;AAAA,GAAyB,iBAAA,KAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCDpD,kBAAA,GAAqB,MAAA,CAAe,QAAA,CAAS,KAAA;AAAA,cAEnD,aAAA;EAAiB,SAAA;EAAA,GAAA;AAAA,GAAyB,kBAAA,KAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCStD,UAAA,GAAa,MAAA,CAAe,IAAA,CAAK,KAAA;AAAA,cAEvC,KAAA;EAAA;IAAA;KAAuB,UAAA,GAAU,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/dist/ui/sheet.js
CHANGED
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { a as
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { Dialog } from "@base-ui/react/dialog";
|
|
3
|
+
import { a as SheetHeader, c as SheetContent, d as SheetPopup, f as SheetClose, i as SheetOverlay, l as SheetViewport, n as SheetTrigger, o as SheetFooter, p as SheetBackdrop, r as SheetTitle, s as SheetDescription, t as Sheet, u as SheetPortal } from "../sheet-imSHXfFH.js";
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
const Sheet = ({ ...props }) => /* @__PURE__ */ jsx(Dialog.Root, {
|
|
9
|
-
"data-slot": "sheet",
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
12
|
-
Sheet.Close = SheetClose;
|
|
13
|
-
Sheet.Content = SheetContent;
|
|
14
|
-
Sheet.Backdrop = SheetBackdrop;
|
|
15
|
-
Sheet.Description = SheetDescription;
|
|
16
|
-
Sheet.Footer = SheetFooter;
|
|
17
|
-
Sheet.Header = SheetHeader;
|
|
18
|
-
Sheet.Overlay = SheetOverlay;
|
|
19
|
-
Sheet.Portal = SheetPortal;
|
|
20
|
-
Sheet.Popup = SheetPopup;
|
|
21
|
-
Sheet.Title = SheetTitle;
|
|
22
|
-
Sheet.Trigger = SheetTrigger;
|
|
23
|
-
Sheet.Viewport = SheetViewport;
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export { Sheet, SheetBackdrop, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPopup, SheetPortal, SheetTitle, SheetTrigger, SheetViewport };
|
|
27
|
-
//# sourceMappingURL=sheet.js.map
|
|
5
|
+
export { Sheet, SheetBackdrop, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPopup, SheetPortal, SheetTitle, SheetTrigger, SheetViewport };
|