@pixpilot/shadcn-ui 1.36.0 → 1.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -1
- package/dist/{AbsoluteFill.cjs → absolute-fill/AbsoluteFill.cjs} +2 -2
- package/dist/{AbsoluteFill.d.cts → absolute-fill/AbsoluteFill.d.cts} +3 -3
- package/dist/{AbsoluteFill.d.ts → absolute-fill/AbsoluteFill.d.ts} +1 -1
- package/dist/{AbsoluteFill.js → absolute-fill/AbsoluteFill.js} +1 -1
- package/dist/absolute-fill/index.cjs +1 -0
- package/dist/absolute-fill/index.d.cts +1 -0
- package/dist/absolute-fill/index.d.ts +1 -0
- package/dist/absolute-fill/index.js +1 -0
- package/dist/{Alert.cjs → alert/Alert.cjs} +4 -4
- package/dist/{Alert.d.cts → alert/Alert.d.cts} +2 -2
- package/dist/{Alert.d.ts → alert/Alert.d.ts} +2 -2
- package/dist/{Alert.js → alert/Alert.js} +3 -3
- package/dist/alert/index.cjs +1 -0
- package/dist/alert/index.d.cts +2 -0
- package/dist/alert/index.d.ts +2 -0
- package/dist/alert/index.js +1 -0
- package/dist/{Button.cjs → button/Button.cjs} +4 -3
- package/dist/{Button.d.cts → button/Button.d.cts} +3 -3
- package/dist/{Button.d.ts → button/Button.d.ts} +1 -1
- package/dist/{Button.js → button/Button.js} +3 -2
- package/dist/button/index.cjs +1 -0
- package/dist/button/index.d.cts +1 -0
- package/dist/button/index.d.ts +1 -0
- package/dist/button/index.js +1 -0
- package/dist/button/mcp.js +43 -0
- package/dist/{ButtonExtended.cjs → button-extended/ButtonExtended.cjs} +4 -3
- package/dist/{ButtonExtended.d.cts → button-extended/ButtonExtended.d.cts} +1 -1
- package/dist/{ButtonExtended.d.ts → button-extended/ButtonExtended.d.ts} +1 -1
- package/dist/{ButtonExtended.js → button-extended/ButtonExtended.js} +3 -2
- package/dist/button-extended/index.cjs +1 -0
- package/dist/button-extended/index.d.cts +1 -0
- package/dist/button-extended/index.d.ts +1 -0
- package/dist/button-extended/index.js +1 -0
- package/dist/{ButtonGroup.cjs → button-group/ButtonGroup.cjs} +2 -2
- package/dist/{ButtonGroup.d.cts → button-group/ButtonGroup.d.cts} +1 -1
- package/dist/{ButtonGroup.d.ts → button-group/ButtonGroup.d.ts} +1 -1
- package/dist/{ButtonGroup.js → button-group/ButtonGroup.js} +1 -1
- package/dist/button-group/index.cjs +1 -0
- package/dist/button-group/index.d.cts +1 -0
- package/dist/button-group/index.d.ts +1 -0
- package/dist/button-group/index.js +1 -0
- package/dist/{Card.cjs → card/Card.cjs} +2 -2
- package/dist/{Card.d.cts → card/Card.d.cts} +4 -4
- package/dist/{Card.d.ts → card/Card.d.ts} +1 -1
- package/dist/{Card.js → card/Card.js} +1 -1
- package/dist/card/index.cjs +4 -0
- package/dist/card/index.d.cts +1 -0
- package/dist/card/index.d.ts +1 -0
- package/dist/card/index.js +1 -0
- package/dist/card/mcp.js +22 -0
- package/dist/{CloseButtonAbsolute.cjs → close-button-absolute/CloseButtonAbsolute.cjs} +4 -3
- package/dist/close-button-absolute/CloseButtonAbsolute.d.cts +9 -0
- package/dist/close-button-absolute/CloseButtonAbsolute.d.ts +9 -0
- package/dist/{CloseButtonAbsolute.js → close-button-absolute/CloseButtonAbsolute.js} +3 -2
- package/dist/close-button-absolute/index.cjs +1 -0
- package/dist/close-button-absolute/index.d.cts +1 -0
- package/dist/close-button-absolute/index.d.ts +1 -0
- package/dist/close-button-absolute/index.js +1 -0
- package/dist/{CloseButtonRounded.cjs → close-button-rounded/CloseButtonRounded.cjs} +2 -2
- package/dist/{CloseButtonRounded.d.cts → close-button-rounded/CloseButtonRounded.d.cts} +1 -1
- package/dist/{CloseButtonRounded.d.ts → close-button-rounded/CloseButtonRounded.d.ts} +1 -1
- package/dist/{CloseButtonRounded.js → close-button-rounded/CloseButtonRounded.js} +1 -1
- package/dist/close-button-rounded/index.cjs +1 -0
- package/dist/close-button-rounded/index.d.cts +1 -0
- package/dist/close-button-rounded/index.d.ts +1 -0
- package/dist/close-button-rounded/index.js +1 -0
- package/dist/{ColorSelect.cjs → color-select/ColorSelect.cjs} +4 -4
- package/dist/{ColorSelect.d.cts → color-select/ColorSelect.d.cts} +3 -3
- package/dist/{ColorSelect.d.ts → color-select/ColorSelect.d.ts} +3 -3
- package/dist/{ColorSelect.js → color-select/ColorSelect.js} +3 -3
- package/dist/color-select/index.cjs +1 -0
- package/dist/color-select/index.d.cts +1 -0
- package/dist/color-select/index.d.ts +1 -0
- package/dist/color-select/index.js +1 -0
- package/dist/{Combobox.cjs → combobox/Combobox.cjs} +5 -4
- package/dist/{Combobox.d.cts → combobox/Combobox.d.cts} +2 -2
- package/dist/{Combobox.d.ts → combobox/Combobox.d.ts} +2 -2
- package/dist/{Combobox.js → combobox/Combobox.js} +4 -3
- package/dist/combobox/index.cjs +1 -0
- package/dist/combobox/index.d.cts +1 -0
- package/dist/combobox/index.d.ts +1 -0
- package/dist/combobox/index.js +1 -0
- package/dist/{CommandOptionList.cjs → command-option-list/CommandOptionList.cjs} +3 -3
- package/dist/command-option-list/CommandOptionList.d.cts +7 -0
- package/dist/command-option-list/CommandOptionList.d.ts +7 -0
- package/dist/{CommandOptionList.js → command-option-list/CommandOptionList.js} +2 -2
- package/dist/command-option-list/index.cjs +1 -0
- package/dist/command-option-list/index.js +1 -0
- package/dist/{ContentCard.cjs → content-card/ContentCard.cjs} +4 -3
- package/dist/{ContentCard.d.cts → content-card/ContentCard.d.cts} +3 -2
- package/dist/{ContentCard.d.ts → content-card/ContentCard.d.ts} +3 -2
- package/dist/{ContentCard.js → content-card/ContentCard.js} +3 -2
- package/dist/content-card/index.cjs +1 -0
- package/dist/content-card/index.d.cts +1 -0
- package/dist/content-card/index.d.ts +1 -0
- package/dist/content-card/index.js +1 -0
- package/dist/{DatePicker.cjs → date-picker/DatePicker.cjs} +2 -2
- package/dist/{DatePicker.d.cts → date-picker/DatePicker.d.cts} +1 -1
- package/dist/{DatePicker.d.ts → date-picker/DatePicker.d.ts} +3 -3
- package/dist/{DatePicker.js → date-picker/DatePicker.js} +1 -1
- package/dist/date-picker/index.cjs +1 -0
- package/dist/date-picker/index.d.cts +1 -0
- package/dist/date-picker/index.d.ts +1 -0
- package/dist/date-picker/index.js +1 -0
- package/dist/dialog/Dialog.d.cts +5 -5
- package/dist/dialog/Dialog.d.ts +5 -5
- package/dist/file-upload/FileUpload.d.cts +2 -2
- package/dist/file-upload/FileUpload.d.ts +2 -2
- package/dist/file-upload/mcp.js +53 -0
- package/dist/file-upload-inline/FileUploadInline.d.cts +2 -2
- package/dist/file-upload-inline/FileUploadInline.d.ts +2 -2
- package/dist/file-upload-root/FileUploadRoot.d.ts +2 -2
- package/dist/generated/mcp-registry.js +21 -0
- package/dist/icon-selector/IconPicker.cjs +2 -1
- package/dist/icon-selector/IconPicker.js +2 -1
- package/dist/icon-selector/icon-picker-content.cjs +2 -1
- package/dist/icon-selector/icon-picker-content.js +2 -1
- package/dist/{IconToggle.cjs → icon-toggle/IconToggle.cjs} +5 -4
- package/dist/{IconToggle.d.cts → icon-toggle/IconToggle.d.cts} +3 -2
- package/dist/{IconToggle.d.ts → icon-toggle/IconToggle.d.ts} +3 -2
- package/dist/{IconToggle.js → icon-toggle/IconToggle.js} +4 -3
- package/dist/icon-toggle/index.cjs +1 -0
- package/dist/icon-toggle/index.d.cts +1 -0
- package/dist/icon-toggle/index.d.ts +1 -0
- package/dist/icon-toggle/index.js +1 -0
- package/dist/index.cjs +63 -20
- package/dist/index.d.cts +39 -20
- package/dist/index.d.ts +41 -20
- package/dist/index.js +42 -21
- package/dist/input/Input.d.cts +2 -2
- package/dist/input/Input.d.ts +2 -2
- package/dist/{LoadingOverlay.cjs → loading-overlay/LoadingOverlay.cjs} +4 -4
- package/dist/{LoadingOverlay.d.cts → loading-overlay/LoadingOverlay.d.cts} +1 -1
- package/dist/{LoadingOverlay.d.ts → loading-overlay/LoadingOverlay.d.ts} +1 -1
- package/dist/{LoadingOverlay.js → loading-overlay/LoadingOverlay.js} +3 -3
- package/dist/loading-overlay/index.cjs +1 -0
- package/dist/loading-overlay/index.d.cts +1 -0
- package/dist/loading-overlay/index.d.ts +1 -0
- package/dist/loading-overlay/index.js +1 -0
- package/dist/mcp/src/server.js +67 -0
- package/dist/mcp/src/utils.js +8 -0
- package/dist/mcp-server.js +18 -0
- package/dist/{Rating.cjs → rating/Rating.cjs} +3 -3
- package/dist/{Rating.d.cts → rating/Rating.d.cts} +4 -4
- package/dist/{Rating.d.ts → rating/Rating.d.ts} +4 -4
- package/dist/{Rating.js → rating/Rating.js} +2 -2
- package/dist/rating/index.cjs +1 -0
- package/dist/rating/index.d.cts +1 -0
- package/dist/rating/index.d.ts +1 -0
- package/dist/rating/index.js +1 -0
- package/dist/rich-text-editor/LinkPopoverToolbarButton.cjs +2 -1
- package/dist/rich-text-editor/LinkPopoverToolbarButton.js +2 -1
- package/dist/rich-text-editor/ToolbarButton.cjs +2 -1
- package/dist/rich-text-editor/ToolbarButton.js +2 -1
- package/dist/{ScaledPreview.cjs → scaled-preview/ScaledPreview.cjs} +2 -2
- package/dist/{ScaledPreview.d.cts → scaled-preview/ScaledPreview.d.cts} +1 -1
- package/dist/{ScaledPreview.d.ts → scaled-preview/ScaledPreview.d.ts} +1 -1
- package/dist/{ScaledPreview.js → scaled-preview/ScaledPreview.js} +1 -1
- package/dist/scaled-preview/index.cjs +1 -0
- package/dist/scaled-preview/index.d.cts +1 -0
- package/dist/scaled-preview/index.d.ts +1 -0
- package/dist/scaled-preview/index.js +1 -0
- package/dist/{Select.cjs → select/Select.cjs} +4 -4
- package/dist/{Select.d.cts → select/Select.d.cts} +3 -3
- package/dist/{Select.d.ts → select/Select.d.ts} +3 -3
- package/dist/{Select.js → select/Select.js} +3 -3
- package/dist/select/index.cjs +1 -0
- package/dist/select/index.d.cts +1 -0
- package/dist/select/index.d.ts +1 -0
- package/dist/select/index.js +1 -0
- package/dist/slider/SliderSelect.cjs +2 -1
- package/dist/slider/SliderSelect.d.cts +2 -1
- package/dist/slider/SliderSelect.d.ts +2 -1
- package/dist/slider/SliderSelect.js +2 -1
- package/dist/tags-input/TagsInput.cjs +2 -1
- package/dist/tags-input/TagsInput.d.cts +3 -3
- package/dist/tags-input/TagsInput.d.ts +3 -3
- package/dist/tags-input/TagsInput.js +2 -1
- package/dist/tags-input/TagsInputInline.d.cts +2 -2
- package/dist/tags-input/TagsInputInline.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeDropdown.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchInside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchInside.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.cts +2 -2
- package/dist/toast/AlertToast.cjs +2 -1
- package/dist/toast/AlertToast.js +2 -1
- package/dist/toast/toast.d.cts +1 -1
- package/dist/toast/toast.d.ts +1 -1
- package/dist/toast/types.d.cts +2 -1
- package/dist/toast/types.d.ts +2 -1
- package/dist/{ToggleButton.cjs → toggle-button/ToggleButton.cjs} +4 -3
- package/dist/{ToggleButton.d.cts → toggle-button/ToggleButton.d.cts} +1 -1
- package/dist/{ToggleButton.d.ts → toggle-button/ToggleButton.d.ts} +1 -1
- package/dist/{ToggleButton.js → toggle-button/ToggleButton.js} +3 -2
- package/dist/toggle-button/index.cjs +1 -0
- package/dist/toggle-button/index.d.cts +1 -0
- package/dist/toggle-button/index.d.ts +1 -0
- package/dist/toggle-button/index.js +1 -0
- package/dist/{ToggleGroup.cjs → toggle-group/ToggleGroup.cjs} +1 -1
- package/dist/{ToggleGroup.d.cts → toggle-group/ToggleGroup.d.cts} +1 -1
- package/dist/{ToggleGroup.d.ts → toggle-group/ToggleGroup.d.ts} +1 -1
- package/dist/toggle-group/index.cjs +4 -0
- package/dist/toggle-group/index.d.ts +1 -0
- package/dist/toggle-group/index.js +1 -0
- package/dist/tooltip/Tooltip.cjs +3 -0
- package/dist/tooltip/Tooltip.d.cts +2 -0
- package/dist/tooltip/Tooltip.d.ts +2 -0
- package/dist/tooltip/Tooltip.js +3 -0
- package/dist/tooltip/index.cjs +4 -0
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.js +1 -0
- package/package.json +13 -5
- package/dist/CloseButtonAbsolute.d.cts +0 -8
- package/dist/CloseButtonAbsolute.d.ts +0 -8
- package/dist/CommandOptionList.d.cts +0 -7
- package/dist/CommandOptionList.d.ts +0 -7
- /package/dist/{ToggleGroup.js → toggle-group/ToggleGroup.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -2,18 +2,29 @@ import { getId } from "./utils/get-id.js";
|
|
|
2
2
|
import { isSvgMarkupString, svgMarkupToMaskUrl } from "./utils/svg.js";
|
|
3
3
|
import { FileUpload } from "./file-upload/FileUpload.js";
|
|
4
4
|
import "./file-upload/index.js";
|
|
5
|
-
import { AbsoluteFill } from "./AbsoluteFill.js";
|
|
6
|
-
import
|
|
5
|
+
import { AbsoluteFill } from "./absolute-fill/AbsoluteFill.js";
|
|
6
|
+
import "./absolute-fill/index.js";
|
|
7
|
+
import { Alert } from "./alert/Alert.js";
|
|
8
|
+
import "./alert/index.js";
|
|
7
9
|
import { AvatarUpload } from "./avatar-upload/AvatarUpload.js";
|
|
8
10
|
import "./avatar-upload/index.js";
|
|
9
|
-
import { Button } from "./Button.js";
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
11
|
+
import { Button } from "./button/Button.js";
|
|
12
|
+
import "./button/index.js";
|
|
13
|
+
import { ButtonExtended } from "./button-extended/ButtonExtended.js";
|
|
14
|
+
import "./button-extended/index.js";
|
|
15
|
+
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from "./button-group/ButtonGroup.js";
|
|
16
|
+
import "./button-group/index.js";
|
|
17
|
+
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./card/Card.js";
|
|
18
|
+
import "./card/index.js";
|
|
13
19
|
import { CircleLoader } from "./circle-loader/circle-loader.js";
|
|
14
20
|
import "./circle-loader/index.js";
|
|
15
|
-
import { CloseButtonRounded } from "./CloseButtonRounded.js";
|
|
16
|
-
import
|
|
21
|
+
import { CloseButtonRounded } from "./close-button-rounded/CloseButtonRounded.js";
|
|
22
|
+
import "./close-button-rounded/index.js";
|
|
23
|
+
import { CloseButtonAbsolute } from "./close-button-absolute/CloseButtonAbsolute.js";
|
|
24
|
+
import "./close-button-absolute/index.js";
|
|
25
|
+
import { useSelectKeyboard } from "./hooks/use-select-keyboard.js";
|
|
26
|
+
import { ColorSelect } from "./color-select/ColorSelect.js";
|
|
27
|
+
import "./color-select/index.js";
|
|
17
28
|
import { ColorPickerContext, Consumer, Provider, useColorPickerContext } from "./ColorPickerBase/color-picker-context.js";
|
|
18
29
|
import { COLOR_PICKER_PALETTE_BUTTON_CLASSES, ColorPickerPaletteButton } from "./ColorPickerBase/color-palette/PaletteButton.js";
|
|
19
30
|
import { ColorPickerPaletteSwatch } from "./ColorPickerBase/color-palette/PaletteSwatch.js";
|
|
@@ -31,9 +42,8 @@ import { ColorPickerInput } from "./ColorPickerBase/ColorPickerInput.js";
|
|
|
31
42
|
import "./ColorPickerBase/index.js";
|
|
32
43
|
import { ColorPicker } from "./ColorPicker/ColorPicker.js";
|
|
33
44
|
import "./ColorPicker/index.js";
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
36
|
-
import { Combobox } from "./Combobox.js";
|
|
45
|
+
import { Combobox } from "./combobox/Combobox.js";
|
|
46
|
+
import "./combobox/index.js";
|
|
37
47
|
import { registerDialog } from "./dialog-provider/register-dialog.js";
|
|
38
48
|
import { showDialog } from "./dialog-provider/show-dialog.js";
|
|
39
49
|
import { createDialog, dialog, hideDialog, removeDialog, unregisterDialog, useDialog } from "./dialog-provider/dialog-registry.js";
|
|
@@ -41,8 +51,10 @@ import { DialogProvider } from "./dialog-provider/DialogProvider.js";
|
|
|
41
51
|
import "./dialog-provider/index.js";
|
|
42
52
|
import { confirmDialog, showConfirmDialog } from "./confirmation-dialog/confirmation-dialogs.js";
|
|
43
53
|
import "./confirmation-dialog/index.js";
|
|
44
|
-
import { ContentCard } from "./ContentCard.js";
|
|
45
|
-
import
|
|
54
|
+
import { ContentCard } from "./content-card/ContentCard.js";
|
|
55
|
+
import "./content-card/index.js";
|
|
56
|
+
import { DatePicker } from "./date-picker/DatePicker.js";
|
|
57
|
+
import "./date-picker/index.js";
|
|
46
58
|
import { DialogBody, DialogClose, DialogContent, DialogFooter, DialogHeader } from "./dialog/Dialog.js";
|
|
47
59
|
import { Dialog, DialogDescription, DialogTitle, DialogTrigger } from "./dialog/index.js";
|
|
48
60
|
import { FileUploadRootItem } from "./file-upload-root/FileUploadRootItem.js";
|
|
@@ -55,11 +67,14 @@ import { useMediaQuery } from "./hooks/use-media-query.js";
|
|
|
55
67
|
import "./hooks/index.js";
|
|
56
68
|
import { Input } from "./input/Input.js";
|
|
57
69
|
import "./input/index.js";
|
|
58
|
-
import { LoadingOverlay } from "./LoadingOverlay.js";
|
|
70
|
+
import { LoadingOverlay } from "./loading-overlay/LoadingOverlay.js";
|
|
71
|
+
import "./loading-overlay/index.js";
|
|
59
72
|
import { IconPicker } from "./icon-selector/IconPicker.js";
|
|
60
73
|
import "./icon-selector/index.js";
|
|
61
|
-
import { ToggleButton } from "./ToggleButton.js";
|
|
62
|
-
import
|
|
74
|
+
import { ToggleButton } from "./toggle-button/ToggleButton.js";
|
|
75
|
+
import "./toggle-button/index.js";
|
|
76
|
+
import { IconToggle } from "./icon-toggle/IconToggle.js";
|
|
77
|
+
import "./icon-toggle/index.js";
|
|
63
78
|
import { Layout } from "./layout/Layout.js";
|
|
64
79
|
import { LayoutFooter } from "./layout/LayoutFooter.js";
|
|
65
80
|
import { LayoutHeader } from "./layout/LayoutHeader.js";
|
|
@@ -69,11 +84,14 @@ import { Pagination } from "./pagination/Pagination.js";
|
|
|
69
84
|
import "./pagination/index.js";
|
|
70
85
|
import { Popover, PopoverAnchor, PopoverContent, PopoverContentUnstyled, PopoverTrigger } from "./popover/Popover.js";
|
|
71
86
|
import "./popover/index.js";
|
|
72
|
-
import { Rating, RatingButton } from "./Rating.js";
|
|
87
|
+
import { Rating, RatingButton } from "./rating/Rating.js";
|
|
88
|
+
import "./rating/index.js";
|
|
73
89
|
import { RichTextEditor } from "./rich-text-editor/RichTextEditor.js";
|
|
74
90
|
import "./rich-text-editor/index.js";
|
|
75
|
-
import { ScaledPreview } from "./ScaledPreview.js";
|
|
76
|
-
import
|
|
91
|
+
import { ScaledPreview } from "./scaled-preview/ScaledPreview.js";
|
|
92
|
+
import "./scaled-preview/index.js";
|
|
93
|
+
import { Select } from "./select/Select.js";
|
|
94
|
+
import "./select/index.js";
|
|
77
95
|
import { Slider } from "./slider/Slider.js";
|
|
78
96
|
import { SliderInput } from "./slider/SliderInput.js";
|
|
79
97
|
import { SliderSelect } from "./slider/SliderSelect.js";
|
|
@@ -97,7 +115,10 @@ import "./theme-toggle/index.js";
|
|
|
97
115
|
import { DEFAULT_ALERT_DURATION, toast } from "./toast/toast.js";
|
|
98
116
|
import { Toaster } from "./toast/ToastProvider.js";
|
|
99
117
|
import "./toast/index.js";
|
|
100
|
-
import { ToggleGroup, ToggleGroupItem } from "./ToggleGroup.js";
|
|
118
|
+
import { ToggleGroup, ToggleGroupItem } from "./toggle-group/ToggleGroup.js";
|
|
119
|
+
import "./toggle-group/index.js";
|
|
120
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip/Tooltip.js";
|
|
121
|
+
import "./tooltip/index.js";
|
|
101
122
|
import { cn } from "@pixpilot/shadcn";
|
|
102
123
|
|
|
103
|
-
export { AbsoluteFill, Alert, AvatarUpload, Button, ButtonExtended, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COLOR_PICKER_PALETTE_BUTTON_CLASSES, COMMON_COLORS, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CircleLoader, CloseButtonAbsolute, CloseButtonRounded, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerBase, ColorPickerButton, ColorPickerColorPalette, ColorPickerCompactControls, ColorPickerContent, ColorPickerContext, Consumer as ColorPickerContextContextConsumer, Provider as ColorPickerContextContextProvider, ColorPickerControls, ColorPickerEyeDropper, ColorPickerFormatControls, ColorPickerFormatInput, ColorPickerFormatSelect, ColorPickerFullControls, ColorPickerHueSlider, ColorPickerInput, ColorPickerPaletteButton, ColorPickerPaletteSwatch, ColorPickerRoot, ColorSelect, Combobox, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogTitle, DialogTrigger, FileUpload, FileUploadInline, FileUploadRoot, FileUploadRootItem, IconPicker, IconToggle, Input, Layout, LayoutFooter, LayoutHeader, LayoutMain, LoadingOverlay, Pagination, Popover, PopoverAnchor, PopoverContent, PopoverContentUnstyled, PopoverTrigger, Rating, RatingButton, RichTextEditor, ScaledPreview, Select, Slider, SliderInput, SliderSelect, Tabs, TabsContent, TabsContext, TabsList, TabsTrigger, TagsInput, TagsInputInline, ThemeModeDropdown, ThemeModeSwitchInside, ThemeModeSwitchOutside, ThemeModeToggleButton, ThemeProvider, Toaster, ToggleButton, ToggleGroup, ToggleGroupItem, cn, confirmDialog, createDialog, dialog, getId, hideDialog, isSvgMarkupString, registerDialog, removeDialog, showConfirmDialog, showDialog, svgMarkupToMaskUrl, toast, unregisterDialog, useColorPickerContext, useDelayedVisibility, useDialog, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
|
124
|
+
export { AbsoluteFill, Alert, AvatarUpload, Button, ButtonExtended, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COLOR_PICKER_PALETTE_BUTTON_CLASSES, COMMON_COLORS, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CircleLoader, CloseButtonAbsolute, CloseButtonRounded, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerBase, ColorPickerButton, ColorPickerColorPalette, ColorPickerCompactControls, ColorPickerContent, ColorPickerContext, Consumer as ColorPickerContextContextConsumer, Provider as ColorPickerContextContextProvider, ColorPickerControls, ColorPickerEyeDropper, ColorPickerFormatControls, ColorPickerFormatInput, ColorPickerFormatSelect, ColorPickerFullControls, ColorPickerHueSlider, ColorPickerInput, ColorPickerPaletteButton, ColorPickerPaletteSwatch, ColorPickerRoot, ColorSelect, Combobox, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogTitle, DialogTrigger, FileUpload, FileUploadInline, FileUploadRoot, FileUploadRootItem, IconPicker, IconToggle, Input, Layout, LayoutFooter, LayoutHeader, LayoutMain, LoadingOverlay, Pagination, Popover, PopoverAnchor, PopoverContent, PopoverContentUnstyled, PopoverTrigger, Rating, RatingButton, RichTextEditor, ScaledPreview, Select, Slider, SliderInput, SliderSelect, Tabs, TabsContent, TabsContext, TabsList, TabsTrigger, TagsInput, TagsInputInline, ThemeModeDropdown, ThemeModeSwitchInside, ThemeModeSwitchOutside, ThemeModeToggleButton, ThemeProvider, Toaster, ToggleButton, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, cn, confirmDialog, createDialog, dialog, getId, hideDialog, isSvgMarkupString, registerDialog, removeDialog, showConfirmDialog, showDialog, svgMarkupToMaskUrl, toast, unregisterDialog, useColorPickerContext, useDelayedVisibility, useDialog, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
package/dist/input/Input.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
2
2
|
import { InputProps } from "@pixpilot/shadcn";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
|
|
@@ -10,6 +10,6 @@ type InputProps$1 = InputProps & {
|
|
|
10
10
|
prefixClassName?: string;
|
|
11
11
|
suffixClassName?: string;
|
|
12
12
|
};
|
|
13
|
-
declare function Input(props: InputProps$1):
|
|
13
|
+
declare function Input(props: InputProps$1): react_jsx_runtime13.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Input, InputProps$1 as InputProps };
|
package/dist/input/Input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputProps } from "@pixpilot/shadcn";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/input/Input.d.ts
|
|
6
6
|
type InputProps$1 = InputProps & {
|
|
@@ -10,6 +10,6 @@ type InputProps$1 = InputProps & {
|
|
|
10
10
|
prefixClassName?: string;
|
|
11
11
|
suffixClassName?: string;
|
|
12
12
|
};
|
|
13
|
-
declare function Input$1(props: InputProps$1):
|
|
13
|
+
declare function Input$1(props: InputProps$1): react_jsx_runtime13.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Input$1 as Input, InputProps$1 as InputProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const require_rolldown_runtime = require('
|
|
5
|
-
const require_use_delayed_visibility = require('
|
|
6
|
-
require('
|
|
4
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
const require_use_delayed_visibility = require('../hooks/use-delayed-visibility.cjs');
|
|
6
|
+
require('../hooks/index.cjs');
|
|
7
7
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
8
8
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
9
9
|
let lucide_react = require("lucide-react");
|
|
@@ -13,7 +13,7 @@ react = require_rolldown_runtime.__toESM(react);
|
|
|
13
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
14
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
15
15
|
|
|
16
|
-
//#region src/LoadingOverlay.tsx
|
|
16
|
+
//#region src/loading-overlay/LoadingOverlay.tsx
|
|
17
17
|
const DEFAULT_DELAY = 0;
|
|
18
18
|
const FADE_DURATION = 300;
|
|
19
19
|
const LoadingOverlay = (props) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import { useDelayedVisibility } from "
|
|
5
|
-
import "
|
|
4
|
+
import { useDelayedVisibility } from "../hooks/use-delayed-visibility.js";
|
|
5
|
+
import "../hooks/index.js";
|
|
6
6
|
import { cn } from "@pixpilot/shadcn";
|
|
7
7
|
import { Loader2 } from "lucide-react";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
|
|
11
|
-
//#region src/LoadingOverlay.tsx
|
|
11
|
+
//#region src/loading-overlay/LoadingOverlay.tsx
|
|
12
12
|
const DEFAULT_DELAY = 0;
|
|
13
13
|
const FADE_DURATION = 300;
|
|
14
14
|
const LoadingOverlay = (props) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_LoadingOverlay = require('./LoadingOverlay.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { LoadingOverlay, LoadingOverlayProps } from "./LoadingOverlay.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { LoadingOverlay, LoadingOverlayProps } from "./LoadingOverlay.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { LoadingOverlay } from "./LoadingOverlay.js";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import process from "node:process";
|
|
2
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
|
+
import { z } from "zod/v4";
|
|
5
|
+
|
|
6
|
+
//#region ../mcp/src/server.ts
|
|
7
|
+
const JSON_INDENT = 2;
|
|
8
|
+
function jsonToolResult(data) {
|
|
9
|
+
return {
|
|
10
|
+
content: [{
|
|
11
|
+
type: "text",
|
|
12
|
+
text: JSON.stringify(data, null, JSON_INDENT)
|
|
13
|
+
}],
|
|
14
|
+
structuredContent: data
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function getComponentByName(registry, name) {
|
|
18
|
+
if (!Object.hasOwn(registry, name)) return;
|
|
19
|
+
return registry[name];
|
|
20
|
+
}
|
|
21
|
+
/** Creates an MCP server with generic component listing and detail tools. */
|
|
22
|
+
function createComponentMcpServer({ packageName, packageVersion, registry }) {
|
|
23
|
+
const components = Object.values(registry);
|
|
24
|
+
const server = new McpServer({
|
|
25
|
+
name: packageName,
|
|
26
|
+
version: packageVersion
|
|
27
|
+
});
|
|
28
|
+
server.registerTool("list_components", {
|
|
29
|
+
title: "List components",
|
|
30
|
+
description: `List registered ${packageName} components.`
|
|
31
|
+
}, async () => jsonToolResult({ components: components.map(({ name, category, description }) => ({
|
|
32
|
+
name,
|
|
33
|
+
category,
|
|
34
|
+
description
|
|
35
|
+
})) }));
|
|
36
|
+
server.registerTool("get_component_details", {
|
|
37
|
+
title: "Get component details",
|
|
38
|
+
description: `Get the full MCP metadata object for a registered ${packageName} component.`,
|
|
39
|
+
inputSchema: { name: z.string().min(1) }
|
|
40
|
+
}, async ({ name }) => {
|
|
41
|
+
const component = getComponentByName(registry, name);
|
|
42
|
+
if (!component) return {
|
|
43
|
+
content: [{
|
|
44
|
+
type: "text",
|
|
45
|
+
text: `Component "${name}" is not registered.`
|
|
46
|
+
}],
|
|
47
|
+
isError: true
|
|
48
|
+
};
|
|
49
|
+
return jsonToolResult({ component });
|
|
50
|
+
});
|
|
51
|
+
return server;
|
|
52
|
+
}
|
|
53
|
+
/** Starts the generic component MCP server over stdio for package bin entrypoints. */
|
|
54
|
+
async function startComponentMcpServer(options) {
|
|
55
|
+
try {
|
|
56
|
+
const server = createComponentMcpServer(options);
|
|
57
|
+
const transport = new StdioServerTransport();
|
|
58
|
+
await server.connect(transport);
|
|
59
|
+
} catch (error) {
|
|
60
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
61
|
+
console.error(`Failed to start ${options.packageName} MCP server: ${message}`);
|
|
62
|
+
process.exit(1);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { startComponentMcpServer };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { startComponentMcpServer } from "./mcp/src/server.js";
|
|
3
|
+
import { mcpRegistry } from "./generated/mcp-registry.js";
|
|
4
|
+
import process from "node:process";
|
|
5
|
+
|
|
6
|
+
//#region src/mcp-server.ts
|
|
7
|
+
startComponentMcpServer({
|
|
8
|
+
packageName: "@pixpilot/shadcn-ui",
|
|
9
|
+
packageVersion: "1.37.0",
|
|
10
|
+
registry: mcpRegistry
|
|
11
|
+
}).catch((error) => {
|
|
12
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
13
|
+
process.stderr.write(`Failed to start @pixpilot/shadcn-ui MCP server: ${message}\n`);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
2
|
-
const require_get_id = require('
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_get_id = require('../utils/get-id.cjs');
|
|
3
3
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
4
4
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
5
5
|
let lucide_react = require("lucide-react");
|
|
@@ -11,7 +11,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
11
11
|
let class_variance_authority = require("class-variance-authority");
|
|
12
12
|
class_variance_authority = require_rolldown_runtime.__toESM(class_variance_authority);
|
|
13
13
|
|
|
14
|
-
//#region src/Rating.tsx
|
|
14
|
+
//#region src/rating/Rating.tsx
|
|
15
15
|
const DEFAULT_MAX_RATING = 5;
|
|
16
16
|
const ratingVariants = (0, class_variance_authority.cva)("inline-flex items-center gap-1", {
|
|
17
17
|
variants: { size: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
|
-
//#region src/Rating.d.ts
|
|
6
|
+
//#region src/rating/Rating.d.ts
|
|
7
7
|
type RatingColor = 'default' | 'primary' | 'secondary' | 'destructive' | 'foreground' | 'accent' | 'muted' | 'ring';
|
|
8
8
|
interface RatingOption {
|
|
9
9
|
label: string;
|
|
@@ -35,7 +35,7 @@ declare function RatingButton({
|
|
|
35
35
|
index,
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: RatingButtonProps):
|
|
38
|
+
}: RatingButtonProps): react_jsx_runtime17.JSX.Element;
|
|
39
39
|
declare function Rating({
|
|
40
40
|
value: valueProp,
|
|
41
41
|
defaultValue,
|
|
@@ -53,6 +53,6 @@ declare function Rating({
|
|
|
53
53
|
children,
|
|
54
54
|
id,
|
|
55
55
|
...props
|
|
56
|
-
}: React$1.PropsWithChildren<RatingProps>):
|
|
56
|
+
}: React$1.PropsWithChildren<RatingProps>): react_jsx_runtime17.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
|
-
//#region src/Rating.d.ts
|
|
6
|
+
//#region src/rating/Rating.d.ts
|
|
7
7
|
type RatingColor = 'default' | 'primary' | 'secondary' | 'destructive' | 'foreground' | 'accent' | 'muted' | 'ring';
|
|
8
8
|
interface RatingOption {
|
|
9
9
|
label: string;
|
|
@@ -35,7 +35,7 @@ declare function RatingButton({
|
|
|
35
35
|
index,
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: RatingButtonProps):
|
|
38
|
+
}: RatingButtonProps): react_jsx_runtime15.JSX.Element;
|
|
39
39
|
declare function Rating({
|
|
40
40
|
value: valueProp,
|
|
41
41
|
defaultValue,
|
|
@@ -53,6 +53,6 @@ declare function Rating({
|
|
|
53
53
|
children,
|
|
54
54
|
id,
|
|
55
55
|
...props
|
|
56
|
-
}: React$1.PropsWithChildren<RatingProps>):
|
|
56
|
+
}: React$1.PropsWithChildren<RatingProps>): react_jsx_runtime15.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getId } from "
|
|
1
|
+
import { getId } from "../utils/get-id.js";
|
|
2
2
|
import { cn } from "@pixpilot/shadcn";
|
|
3
3
|
import { Circle, Star } from "lucide-react";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { cva } from "class-variance-authority";
|
|
7
7
|
|
|
8
|
-
//#region src/Rating.tsx
|
|
8
|
+
//#region src/rating/Rating.tsx
|
|
9
9
|
const DEFAULT_MAX_RATING = 5;
|
|
10
10
|
const ratingVariants = cva("inline-flex items-center gap-1", {
|
|
11
11
|
variants: { size: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Rating = require('./Rating.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps } from "./Rating.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps } from "./Rating.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Rating, RatingButton } from "./Rating.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Button = require('../Button.cjs');
|
|
2
|
+
const require_Button = require('../button/Button.cjs');
|
|
3
|
+
require('../button/index.cjs');
|
|
3
4
|
const require_Input = require('../input/Input.cjs');
|
|
4
5
|
require('../input/index.cjs');
|
|
5
6
|
const require_Popover = require('../popover/Popover.cjs');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Button as Button$1 } from "../Button.js";
|
|
1
|
+
import { Button as Button$1 } from "../button/Button.js";
|
|
2
|
+
import "../button/index.js";
|
|
2
3
|
import { Input as Input$1 } from "../input/Input.js";
|
|
3
4
|
import "../input/index.js";
|
|
4
5
|
import { Popover as Popover$1, PopoverContent as PopoverContent$1, PopoverTrigger as PopoverTrigger$1 } from "../popover/Popover.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_svg = require('../utils/svg.cjs');
|
|
3
|
-
const require_Button = require('../Button.cjs');
|
|
3
|
+
const require_Button = require('../button/Button.cjs');
|
|
4
|
+
require('../button/index.cjs');
|
|
4
5
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
5
6
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
6
7
|
let react = require("react");
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isSvgMarkupString, svgMarkupToMaskUrl } from "../utils/svg.js";
|
|
2
|
-
import { Button as Button$1 } from "../Button.js";
|
|
2
|
+
import { Button as Button$1 } from "../button/Button.js";
|
|
3
|
+
import "../button/index.js";
|
|
3
4
|
import { cn } from "@pixpilot/shadcn";
|
|
4
5
|
import React from "react";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
let react = require("react");
|
|
3
3
|
react = require_rolldown_runtime.__toESM(react);
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
6
6
|
|
|
7
|
-
//#region src/ScaledPreview.tsx
|
|
7
|
+
//#region src/scaled-preview/ScaledPreview.tsx
|
|
8
8
|
const DEFAULT_BASE_SIZE = {
|
|
9
9
|
width: 1e3,
|
|
10
10
|
height: 1e3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ScaledPreview = require('./ScaledPreview.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ScaledPreview, ScaledPreviewProps, ScaledPreviewSize } from "./ScaledPreview.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ScaledPreview, ScaledPreviewProps, ScaledPreviewSize } from "./ScaledPreview.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ScaledPreview } from "./ScaledPreview.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
2
|
-
const require_get_id = require('
|
|
3
|
-
const require_use_select_keyboard = require('
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_get_id = require('../utils/get-id.cjs');
|
|
3
|
+
const require_use_select_keyboard = require('../hooks/use-select-keyboard.cjs');
|
|
4
4
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
5
5
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
6
6
|
let lucide_react = require("lucide-react");
|
|
@@ -10,7 +10,7 @@ react = require_rolldown_runtime.__toESM(react);
|
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
12
12
|
|
|
13
|
-
//#region src/Select.tsx
|
|
13
|
+
//#region src/select/Select.tsx
|
|
14
14
|
function Select(props) {
|
|
15
15
|
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp, position, clearable = false, disabled, className, id,...restProps } = props;
|
|
16
16
|
const [uncontrolledOpen, setUncontrolledOpen] = react.default.useState(false);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
2
2
|
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
3
3
|
import React, { ComponentProps } from "react";
|
|
4
4
|
|
|
5
|
-
//#region src/Select.d.ts
|
|
5
|
+
//#region src/select/Select.d.ts
|
|
6
6
|
interface SelectOption {
|
|
7
7
|
value: string | number;
|
|
8
8
|
label: string;
|
|
@@ -51,6 +51,6 @@ type BaseSelectProps = {
|
|
|
51
51
|
required?: boolean;
|
|
52
52
|
className?: string;
|
|
53
53
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children' | 'disabled' | 'name' | 'required'>;
|
|
54
|
-
declare function Select$1(props: BaseSelectProps):
|
|
54
|
+
declare function Select$1(props: BaseSelectProps): react_jsx_runtime19.JSX.Element;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { Select$1 as Select, SelectContentProps, SelectOption };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
2
2
|
import React, { ComponentProps } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
//#region src/Select.d.ts
|
|
5
|
+
//#region src/select/Select.d.ts
|
|
6
6
|
interface SelectOption {
|
|
7
7
|
value: string | number;
|
|
8
8
|
label: string;
|
|
@@ -51,6 +51,6 @@ type BaseSelectProps = {
|
|
|
51
51
|
required?: boolean;
|
|
52
52
|
className?: string;
|
|
53
53
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children' | 'disabled' | 'name' | 'required'>;
|
|
54
|
-
declare function Select$1(props: BaseSelectProps):
|
|
54
|
+
declare function Select$1(props: BaseSelectProps): react_jsx_runtime17.JSX.Element;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { Select$1 as Select, SelectContentProps, SelectOption };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getId } from "
|
|
2
|
-
import { useSelectKeyboard } from "
|
|
1
|
+
import { getId } from "../utils/get-id.js";
|
|
2
|
+
import { useSelectKeyboard } from "../hooks/use-select-keyboard.js";
|
|
3
3
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, cn } from "@pixpilot/shadcn";
|
|
4
4
|
import { XIcon } from "lucide-react";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
|
-
//#region src/Select.tsx
|
|
8
|
+
//#region src/select/Select.tsx
|
|
9
9
|
function Select$1(props) {
|
|
10
10
|
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp, position, clearable = false, disabled, className, id,...restProps } = props;
|
|
11
11
|
const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Select = require('./Select.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Select, SelectContentProps, SelectOption } from "./Select.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Select, SelectContentProps, SelectOption } from "./Select.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Select } from "./Select.js";
|
|
@@ -2,7 +2,8 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_get_id = require('../utils/get-id.cjs');
|
|
3
3
|
const require_use_controlled = require('../hooks/src/use-controlled.cjs');
|
|
4
4
|
require('../hooks/src/index.cjs');
|
|
5
|
-
const require_Select = require('../Select.cjs');
|
|
5
|
+
const require_Select = require('../select/Select.cjs');
|
|
6
|
+
require('../select/index.cjs');
|
|
6
7
|
const require_Slider = require('./Slider.cjs');
|
|
7
8
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
8
9
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|