@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "@pixpilot/shadcn";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
//#region src/CloseButtonRounded.d.ts
|
|
4
|
+
//#region src/close-button-rounded/CloseButtonRounded.d.ts
|
|
5
5
|
interface CloseButtonRoundedProps extends React.ComponentProps<typeof Button> {}
|
|
6
6
|
declare const CloseButtonRounded: React.FC<CloseButtonRoundedProps>;
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "@pixpilot/shadcn";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
//#region src/CloseButtonRounded.d.ts
|
|
4
|
+
//#region src/close-button-rounded/CloseButtonRounded.d.ts
|
|
5
5
|
interface CloseButtonRoundedProps extends React.ComponentProps<typeof Button> {}
|
|
6
6
|
declare const CloseButtonRounded: React.FC<CloseButtonRoundedProps>;
|
|
7
7
|
//#endregion
|
|
@@ -3,7 +3,7 @@ import { X } from "lucide-react";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
|
-
//#region src/CloseButtonRounded.tsx
|
|
6
|
+
//#region src/close-button-rounded/CloseButtonRounded.tsx
|
|
7
7
|
const CloseButtonRounded = (props) => {
|
|
8
8
|
return /* @__PURE__ */ jsx(Button, {
|
|
9
9
|
...props,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_CloseButtonRounded = require('./CloseButtonRounded.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { CloseButtonRounded, CloseButtonRoundedProps } from "./CloseButtonRounded.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { CloseButtonRounded, CloseButtonRoundedProps } from "./CloseButtonRounded.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { CloseButtonRounded } from "./CloseButtonRounded.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 react = require("react");
|
|
@@ -8,7 +8,7 @@ react = require_rolldown_runtime.__toESM(react);
|
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
10
10
|
|
|
11
|
-
//#region src/ColorSelect.tsx
|
|
11
|
+
//#region src/color-select/ColorSelect.tsx
|
|
12
12
|
function ColorSelect(props) {
|
|
13
13
|
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp, id,...restProps } = props;
|
|
14
14
|
const [uncontrolledOpen, setUncontrolledOpen] = react.default.useState(false);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
2
2
|
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
3
3
|
import React, { ComponentProps } from "react";
|
|
4
4
|
|
|
5
|
-
//#region src/ColorSelect.d.ts
|
|
5
|
+
//#region src/color-select/ColorSelect.d.ts
|
|
6
6
|
interface ColorSelectOption {
|
|
7
7
|
label: string;
|
|
8
8
|
value: string;
|
|
@@ -16,6 +16,6 @@ type BaseColorSelectProps = {
|
|
|
16
16
|
placeholder?: string;
|
|
17
17
|
keyboardMode?: 'cycle' | 'dropdown';
|
|
18
18
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
19
|
-
declare function ColorSelect(props: BaseColorSelectProps):
|
|
19
|
+
declare function ColorSelect(props: BaseColorSelectProps): react_jsx_runtime16.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { BaseColorSelectProps, ColorSelect, ColorSelectOption };
|
|
@@ -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_runtime6 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
//#region src/ColorSelect.d.ts
|
|
5
|
+
//#region src/color-select/ColorSelect.d.ts
|
|
6
6
|
interface ColorSelectOption {
|
|
7
7
|
label: string;
|
|
8
8
|
value: string;
|
|
@@ -16,6 +16,6 @@ type BaseColorSelectProps = {
|
|
|
16
16
|
placeholder?: string;
|
|
17
17
|
keyboardMode?: 'cycle' | 'dropdown';
|
|
18
18
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
19
|
-
declare function ColorSelect(props: BaseColorSelectProps):
|
|
19
|
+
declare function ColorSelect(props: BaseColorSelectProps): react_jsx_runtime6.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { BaseColorSelectProps, ColorSelect, ColorSelectOption };
|
|
@@ -1,10 +1,10 @@
|
|
|
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 } from "@pixpilot/shadcn";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
|
-
//#region src/ColorSelect.tsx
|
|
7
|
+
//#region src/color-select/ColorSelect.tsx
|
|
8
8
|
function ColorSelect(props) {
|
|
9
9
|
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp, id,...restProps } = props;
|
|
10
10
|
const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ColorSelect = require('./ColorSelect.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { BaseColorSelectProps, ColorSelect, ColorSelectOption } from "./ColorSelect.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { BaseColorSelectProps, ColorSelect, ColorSelectOption } from "./ColorSelect.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ColorSelect } from "./ColorSelect.js";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const require_rolldown_runtime = require('
|
|
5
|
-
const require_get_id = require('
|
|
6
|
-
const require_CommandOptionList = require('
|
|
4
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
const require_get_id = require('../utils/get-id.cjs');
|
|
6
|
+
const require_CommandOptionList = require('../command-option-list/CommandOptionList.cjs');
|
|
7
|
+
require('../command-option-list/index.cjs');
|
|
7
8
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
8
9
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
9
10
|
let lucide_react = require("lucide-react");
|
|
@@ -13,7 +14,7 @@ react = require_rolldown_runtime.__toESM(react);
|
|
|
13
14
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
15
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
15
16
|
|
|
16
|
-
//#region src/Combobox.tsx
|
|
17
|
+
//#region src/combobox/Combobox.tsx
|
|
17
18
|
const DEFAULT_OPTIONS = [];
|
|
18
19
|
const Combobox = (props) => {
|
|
19
20
|
const { value = "", onChange, options = DEFAULT_OPTIONS, placeholder = "Select option...", searchPlaceholder = "Search...", emptyText = "No option found.", id,...commandProps } = props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CommandOptionListItem } from "
|
|
1
|
+
import { CommandOptionListItem } from "../command-option-list/CommandOptionList.cjs";
|
|
2
2
|
import { Command } from "@pixpilot/shadcn";
|
|
3
3
|
import React, { ComponentProps } from "react";
|
|
4
4
|
|
|
5
|
-
//#region src/Combobox.d.ts
|
|
5
|
+
//#region src/combobox/Combobox.d.ts
|
|
6
6
|
type ComboboxProps = {
|
|
7
7
|
id?: string;
|
|
8
8
|
value?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CommandOptionListItem } from "
|
|
1
|
+
import { CommandOptionListItem } from "../command-option-list/CommandOptionList.js";
|
|
2
2
|
import { Command } from "@pixpilot/shadcn";
|
|
3
3
|
import React, { ComponentProps } from "react";
|
|
4
4
|
|
|
5
|
-
//#region src/Combobox.d.ts
|
|
5
|
+
//#region src/combobox/Combobox.d.ts
|
|
6
6
|
type ComboboxProps = {
|
|
7
7
|
id?: string;
|
|
8
8
|
value?: string;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import { getId } from "
|
|
5
|
-
import { CommandOptionList } from "
|
|
4
|
+
import { getId } from "../utils/get-id.js";
|
|
5
|
+
import { CommandOptionList } from "../command-option-list/CommandOptionList.js";
|
|
6
|
+
import "../command-option-list/index.js";
|
|
6
7
|
import { Button, Command, CommandInput, Popover, PopoverContent, PopoverTrigger } from "@pixpilot/shadcn";
|
|
7
8
|
import { ChevronsUpDown } from "lucide-react";
|
|
8
9
|
import React, { useState } from "react";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
|
|
11
|
-
//#region src/Combobox.tsx
|
|
12
|
+
//#region src/combobox/Combobox.tsx
|
|
12
13
|
const DEFAULT_OPTIONS = [];
|
|
13
14
|
const Combobox = (props) => {
|
|
14
15
|
const { value = "", onChange, options = DEFAULT_OPTIONS, placeholder = "Select option...", searchPlaceholder = "Search...", emptyText = "No option found.", id,...commandProps } = props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Combobox = require('./Combobox.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Combobox } from "./Combobox.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Combobox } from "./Combobox.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Combobox } from "./Combobox.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const require_rolldown_runtime = require('
|
|
5
|
-
const require_get_id = require('
|
|
4
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
const require_get_id = require('../utils/get-id.cjs');
|
|
6
6
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
7
7
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
8
8
|
let lucide_react = require("lucide-react");
|
|
@@ -10,7 +10,7 @@ lucide_react = require_rolldown_runtime.__toESM(lucide_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/CommandOptionList.tsx
|
|
13
|
+
//#region src/command-option-list/CommandOptionList.tsx
|
|
14
14
|
const CommandOptionList = (props) => {
|
|
15
15
|
const { id, options, value, onChange, emptyText = "No option found." } = props;
|
|
16
16
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.CommandList, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.CommandEmpty, { children: emptyText }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.CommandGroup, { children: options.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.CommandItem, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import { getId } from "
|
|
4
|
+
import { getId } from "../utils/get-id.js";
|
|
5
5
|
import { CommandEmpty, CommandGroup, CommandItem, CommandList, cn } from "@pixpilot/shadcn";
|
|
6
6
|
import { Check } from "lucide-react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
|
-
//#region src/CommandOptionList.tsx
|
|
9
|
+
//#region src/command-option-list/CommandOptionList.tsx
|
|
10
10
|
const CommandOptionList = (props) => {
|
|
11
11
|
const { id, options, value, onChange, emptyText = "No option found." } = props;
|
|
12
12
|
return /* @__PURE__ */ jsxs(CommandList, { children: [/* @__PURE__ */ jsx(CommandEmpty, { children: emptyText }), /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsx(CommandItem, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_CommandOptionList = require('./CommandOptionList.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { CommandOptionList } from "./CommandOptionList.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
2
|
-
const require_Card = require('
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_Card = require('../card/Card.cjs');
|
|
3
|
+
require('../card/index.cjs');
|
|
3
4
|
let react = require("react");
|
|
4
5
|
react = require_rolldown_runtime.__toESM(react);
|
|
5
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -7,7 +8,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
7
8
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
8
9
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
9
10
|
|
|
10
|
-
//#region src/ContentCard.tsx
|
|
11
|
+
//#region src/content-card/ContentCard.tsx
|
|
11
12
|
function ContentCard(props) {
|
|
12
13
|
const { title, children,...other } = props;
|
|
13
14
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.Card, {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Card } from "
|
|
1
|
+
import { Card } from "../card/Card.cjs";
|
|
2
|
+
import "../card/index.cjs";
|
|
2
3
|
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
4
|
import React, { ReactNode } from "react";
|
|
4
5
|
|
|
5
|
-
//#region src/ContentCard.d.ts
|
|
6
|
+
//#region src/content-card/ContentCard.d.ts
|
|
6
7
|
interface SectionCardProps extends React.ComponentProps<typeof Card> {
|
|
7
8
|
title?: string;
|
|
8
9
|
children: ReactNode;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Card } from "
|
|
1
|
+
import { Card } from "../card/Card.js";
|
|
2
|
+
import "../card/index.js";
|
|
2
3
|
import React, { ReactNode } from "react";
|
|
3
4
|
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
4
5
|
|
|
5
|
-
//#region src/ContentCard.d.ts
|
|
6
|
+
//#region src/content-card/ContentCard.d.ts
|
|
6
7
|
interface SectionCardProps extends React.ComponentProps<typeof Card> {
|
|
7
8
|
title?: string;
|
|
8
9
|
children: ReactNode;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Card, CardContent, CardHeader, CardTitle } from "
|
|
1
|
+
import { Card, CardContent, CardHeader, CardTitle } from "../card/Card.js";
|
|
2
|
+
import "../card/index.js";
|
|
2
3
|
import React from "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
|
|
5
|
-
//#region src/ContentCard.tsx
|
|
6
|
+
//#region src/content-card/ContentCard.tsx
|
|
6
7
|
function ContentCard(props) {
|
|
7
8
|
const { title, children,...other } = props;
|
|
8
9
|
return /* @__PURE__ */ jsxs(Card, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ContentCard = require('./ContentCard.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ContentCard } from "./ContentCard.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ContentCard } from "./ContentCard.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ContentCard } from "./ContentCard.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const require_rolldown_runtime = require('
|
|
4
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
6
6
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
7
7
|
let lucide_react = require("lucide-react");
|
|
@@ -11,7 +11,7 @@ react = require_rolldown_runtime.__toESM(react);
|
|
|
11
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
12
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
13
13
|
|
|
14
|
-
//#region src/DatePicker.tsx
|
|
14
|
+
//#region src/date-picker/DatePicker.tsx
|
|
15
15
|
function DatePicker(props) {
|
|
16
16
|
const { id, value, onChange, placeholder = "Pick a date", showClearButton = true,...calendarProps } = props;
|
|
17
17
|
const [open, setOpen] = react.default.useState(false);
|
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
|
2
2
|
import { Calendar } from "@pixpilot/shadcn";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
|
|
5
|
-
//#region src/DatePicker.d.ts
|
|
5
|
+
//#region src/date-picker/DatePicker.d.ts
|
|
6
6
|
type DatePickerProps = {
|
|
7
7
|
id?: string;
|
|
8
8
|
value?: Date;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Calendar } from "@pixpilot/shadcn";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
//#region src/DatePicker.d.ts
|
|
5
|
+
//#region src/date-picker/DatePicker.d.ts
|
|
6
6
|
type DatePickerProps = {
|
|
7
7
|
id?: string;
|
|
8
8
|
value?: Date;
|
|
@@ -10,7 +10,7 @@ type DatePickerProps = {
|
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
showClearButton?: boolean;
|
|
12
12
|
} & Omit<ComponentProps<typeof Calendar>, 'selected' | 'onSelect' | 'mode'>;
|
|
13
|
-
declare function DatePicker(props: DatePickerProps):
|
|
13
|
+
declare function DatePicker(props: DatePickerProps): react_jsx_runtime7.JSX.Element;
|
|
14
14
|
declare namespace DatePicker {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
|
@@ -6,7 +6,7 @@ import { CalendarIcon, XIcon } from "lucide-react";
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
|
-
//#region src/DatePicker.tsx
|
|
9
|
+
//#region src/date-picker/DatePicker.tsx
|
|
10
10
|
function DatePicker(props) {
|
|
11
11
|
const { id, value, onChange, placeholder = "Pick a date", showClearButton = true,...calendarProps } = props;
|
|
12
12
|
const [open, setOpen] = React.useState(false);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_DatePicker = require('./DatePicker.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DatePicker, DatePickerProps } from "./DatePicker.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DatePicker, DatePickerProps } from "./DatePicker.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DatePicker } from "./DatePicker.js";
|
package/dist/dialog/Dialog.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
import { DialogClose, DialogContent } from "@pixpilot/shadcn";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
|
|
@@ -10,18 +10,18 @@ declare const DialogContent$1: React$1.ForwardRefExoticComponent<DialogContentPr
|
|
|
10
10
|
declare function DialogHeader({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
13
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime7.JSX.Element;
|
|
14
14
|
declare function DialogBody({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
17
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime7.JSX.Element;
|
|
18
18
|
declare function DialogFooter({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
21
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime7.JSX.Element;
|
|
22
22
|
declare function DialogClose$1({
|
|
23
23
|
className,
|
|
24
24
|
...props
|
|
25
|
-
}: React$1.ComponentPropsWithoutRef<typeof DialogClose>):
|
|
25
|
+
}: React$1.ComponentPropsWithoutRef<typeof DialogClose>): react_jsx_runtime7.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { DialogBody, DialogClose$1 as DialogClose, DialogContent$1 as DialogContent, DialogContentProps, DialogFooter, DialogHeader };
|
package/dist/dialog/Dialog.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DialogClose, DialogContent } from "@pixpilot/shadcn";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/dialog/Dialog.d.ts
|
|
6
6
|
interface DialogContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogContent> {
|
|
@@ -10,18 +10,18 @@ declare const DialogContent$1: React$1.ForwardRefExoticComponent<DialogContentPr
|
|
|
10
10
|
declare function DialogHeader$1({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
13
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime8.JSX.Element;
|
|
14
14
|
declare function DialogBody({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
17
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime8.JSX.Element;
|
|
18
18
|
declare function DialogFooter$1({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
21
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime8.JSX.Element;
|
|
22
22
|
declare function DialogClose$1({
|
|
23
23
|
className,
|
|
24
24
|
...props
|
|
25
|
-
}: React$1.ComponentPropsWithoutRef<typeof DialogClose>):
|
|
25
|
+
}: React$1.ComponentPropsWithoutRef<typeof DialogClose>): react_jsx_runtime8.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { DialogBody, DialogClose$1 as DialogClose, DialogContent$1 as DialogContent, DialogContentProps, DialogFooter$1 as DialogFooter, DialogHeader$1 as DialogHeader };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileUploadProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/file-upload/FileUpload.d.ts
|
|
5
|
-
declare function FileUpload(props: FileUploadProps):
|
|
5
|
+
declare function FileUpload(props: FileUploadProps): react_jsx_runtime3.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { FileUpload };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileUploadProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/file-upload/FileUpload.d.ts
|
|
5
|
-
declare function FileUpload(props: FileUploadProps):
|
|
5
|
+
declare function FileUpload(props: FileUploadProps): react_jsx_runtime4.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { FileUpload };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineProps } from "../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/file-upload/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "FileUpload",
|
|
6
|
+
category: "Forms",
|
|
7
|
+
description: "A managed file upload field that stores file metadata, handles duplicate prevention, and renders accepted files with progress/error callbacks.",
|
|
8
|
+
htmlElement: "div",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
accept: "Comma-separated MIME types or file extensions accepted by the hidden file input.",
|
|
11
|
+
asChild: "Render the root upload behavior through a child element instead of a div.",
|
|
12
|
+
disabled: "Disables upload interactions.",
|
|
13
|
+
invalid: "Marks the upload root as invalid for styling and accessibility.",
|
|
14
|
+
label: "Accessible label for the hidden file input.",
|
|
15
|
+
maxFiles: "Maximum number of files allowed in the upload list.",
|
|
16
|
+
maxSize: "Maximum accepted file size in bytes.",
|
|
17
|
+
multiple: {
|
|
18
|
+
description: "When true, the component accepts and returns an array of file metadata. When false, it accepts and returns a single file metadata object or null.",
|
|
19
|
+
type: "boolean",
|
|
20
|
+
defaultValue: "true"
|
|
21
|
+
},
|
|
22
|
+
name: "Name applied to the hidden file input.",
|
|
23
|
+
onAccept: "Called with accepted File objects before they are converted into component metadata.",
|
|
24
|
+
onChange: "Called with FileMetadata[] in multiple mode, or FileMetadata | null in single-file mode.",
|
|
25
|
+
onFileAccept: "Called by the underlying upload root for each accepted File.",
|
|
26
|
+
onFileError: "Called when an upload item reports an error.",
|
|
27
|
+
onFileReject: "Called when a File is rejected with a validation message.",
|
|
28
|
+
onFileSuccess: "Called when an upload item reports successful completion.",
|
|
29
|
+
onFileValidate: "Custom validation hook that returns a rejection message for invalid files.",
|
|
30
|
+
onFilesReject: "Called with every rejected File and rejection message from a selection.",
|
|
31
|
+
onUpload: "Optional upload handler with progress, success, and error callbacks.",
|
|
32
|
+
onValueChange: "Called by the underlying upload root when its File[] value changes.",
|
|
33
|
+
preventDuplicates: "When true, skips files already represented in the current value.",
|
|
34
|
+
required: "Marks the hidden file input as required.",
|
|
35
|
+
transformFile: "Optional transform applied to each accepted File before it enters the upload store.",
|
|
36
|
+
value: "Controlled FileMetadata value. Use an array in multiple mode or a single item/null in single-file mode."
|
|
37
|
+
}),
|
|
38
|
+
examples: [{
|
|
39
|
+
title: "Multiple files",
|
|
40
|
+
code: "<FileUpload multiple value={files} onChange={setFiles} maxFiles={10} maxSize={5 * 1024 * 1024} />"
|
|
41
|
+
}, {
|
|
42
|
+
title: "Single file",
|
|
43
|
+
code: "<FileUpload value={file} onChange={setFile} multiple={false} accept=\"image/*\" />"
|
|
44
|
+
}],
|
|
45
|
+
keywords: [
|
|
46
|
+
"file",
|
|
47
|
+
"upload",
|
|
48
|
+
"form"
|
|
49
|
+
]
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
export { meta };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FileUploadInlineProps } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/file-upload-inline/FileUploadInline.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* FileUploadInline - An inline file upload component using FileUpload primitives
|
|
7
7
|
*/
|
|
8
|
-
declare function FileUploadInline(props: FileUploadInlineProps):
|
|
8
|
+
declare function FileUploadInline(props: FileUploadInlineProps): react_jsx_runtime11.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { FileUploadInline };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FileUploadInlineProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/file-upload-inline/FileUploadInline.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* FileUploadInline - An inline file upload component using FileUpload primitives
|
|
7
7
|
*/
|
|
8
|
-
declare function FileUploadInline(props: FileUploadInlineProps):
|
|
8
|
+
declare function FileUploadInline(props: FileUploadInlineProps): react_jsx_runtime12.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { FileUploadInline };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FileUploadRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/file-upload-root/FileUploadRoot.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* FileUploadInline - An inline file upload component using FileUpload primitives
|
|
7
7
|
*/
|
|
8
|
-
declare function FileUploadRoot(props: FileUploadRootProps):
|
|
8
|
+
declare function FileUploadRoot(props: FileUploadRootProps): react_jsx_runtime14.JSX.Element;
|
|
9
9
|
declare namespace FileUploadRoot {
|
|
10
10
|
var displayName: string;
|
|
11
11
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { meta } from "../button/mcp.js";
|
|
2
|
+
import { meta as meta$1 } from "../card/mcp.js";
|
|
3
|
+
import { meta as meta$2 } from "../file-upload/mcp.js";
|
|
4
|
+
|
|
5
|
+
//#region src/generated/mcp-registry.ts
|
|
6
|
+
function withHtmlElementNote(comp) {
|
|
7
|
+
const htmlNote = comp.htmlElement != null && comp.htmlElement.length > 0 ? `Also supports all standard props of a native <${comp.htmlElement}> element (onClick, disabled, className, style, type, aria-*, data-*, etc.).` : "";
|
|
8
|
+
return {
|
|
9
|
+
...comp,
|
|
10
|
+
notes: htmlNote.length > 0 ? [...comp.notes ?? [], htmlNote] : [...comp.notes ?? []]
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** Generated component metadata map keyed by public component name. */
|
|
14
|
+
const mcpRegistry = {
|
|
15
|
+
"Button": withHtmlElementNote(meta),
|
|
16
|
+
"Card": withHtmlElementNote(meta$1),
|
|
17
|
+
"FileUpload": withHtmlElementNote(meta$2)
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { mcpRegistry };
|