@pixpilot/shadcn-ui 1.37.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} +1 -1
- 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} +3 -3
- 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.cts +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 +39 -21
- package/dist/index.d.cts +38 -20
- package/dist/index.d.ts +40 -20
- package/dist/index.js +41 -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.ts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchOutside.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.ts +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.cjs → tooltip/Tooltip.cjs} +1 -1
- 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 +12 -4
- 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/{Tooltip.d.cts → tooltip/Tooltip.d.cts} +0 -0
- /package/dist/{Tooltip.d.ts → tooltip/Tooltip.d.ts} +0 -0
- /package/dist/{Tooltip.js → tooltip/Tooltip.js} +0 -0
|
@@ -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);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { getId } from "../utils/get-id.js";
|
|
2
2
|
import useControlled from "../hooks/src/use-controlled.js";
|
|
3
3
|
import "../hooks/src/index.js";
|
|
4
|
-
import { Select as Select$1 } from "../Select.js";
|
|
4
|
+
import { Select as Select$1 } from "../select/Select.js";
|
|
5
|
+
import "../select/index.js";
|
|
5
6
|
import { Slider as Slider$1 } from "./Slider.js";
|
|
6
7
|
import { cn } from "@pixpilot/shadcn";
|
|
7
8
|
import React from "react";
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const require_CommandOptionList = require('../CommandOptionList.cjs');
|
|
5
|
+
const require_CommandOptionList = require('../command-option-list/CommandOptionList.cjs');
|
|
6
|
+
require('../command-option-list/index.cjs');
|
|
6
7
|
const require_TagsInputInline = require('./TagsInputInline.cjs');
|
|
7
8
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
8
9
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommandOptionListItem } from "../CommandOptionList.cjs";
|
|
2
|
-
import * as
|
|
1
|
+
import { CommandOptionListItem } from "../command-option-list/CommandOptionList.cjs";
|
|
2
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/tags-input/TagsInput.d.ts
|
|
5
5
|
interface TagsInputProps {
|
|
@@ -59,6 +59,6 @@ declare function TagsInput({
|
|
|
59
59
|
addOnTab,
|
|
60
60
|
onValidate,
|
|
61
61
|
addButtonVisibility
|
|
62
|
-
}: TagsInputProps):
|
|
62
|
+
}: TagsInputProps): react_jsx_runtime15.JSX.Element;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { TagsInput, TagsInputProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommandOptionListItem } from "../CommandOptionList.js";
|
|
2
|
-
import * as
|
|
1
|
+
import { CommandOptionListItem } from "../command-option-list/CommandOptionList.js";
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/tags-input/TagsInput.d.ts
|
|
5
5
|
interface TagsInputProps {
|
|
@@ -59,6 +59,6 @@ declare function TagsInput({
|
|
|
59
59
|
addOnTab,
|
|
60
60
|
onValidate,
|
|
61
61
|
addButtonVisibility
|
|
62
|
-
}: TagsInputProps):
|
|
62
|
+
}: TagsInputProps): react_jsx_runtime18.JSX.Element;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { TagsInput, TagsInputProps };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import { CommandOptionList } from "../CommandOptionList.js";
|
|
4
|
+
import { CommandOptionList } from "../command-option-list/CommandOptionList.js";
|
|
5
|
+
import "../command-option-list/index.js";
|
|
5
6
|
import { TagsInputInline } from "./TagsInputInline.js";
|
|
6
7
|
import { Command, Popover, PopoverContent, PopoverTrigger, TagsInputInLineLabel, cn } from "@pixpilot/shadcn";
|
|
7
8
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
2
2
|
import { ChangeEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, Ref } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/tags-input/TagsInputInline.d.ts
|
|
@@ -77,6 +77,6 @@ declare function TagsInputInline({
|
|
|
77
77
|
canAddCurrentValue,
|
|
78
78
|
onAddCurrentInput,
|
|
79
79
|
showClear
|
|
80
|
-
}: TagsInputInlineProps):
|
|
80
|
+
}: TagsInputInlineProps): react_jsx_runtime14.JSX.Element;
|
|
81
81
|
//#endregion
|
|
82
82
|
export { TagsInputInline, TagsInputInlineItem, TagsInputInlineProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, Ref } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/tags-input/TagsInputInline.d.ts
|
|
5
5
|
interface TagsInputInlineItem {
|
|
@@ -77,6 +77,6 @@ declare function TagsInputInline({
|
|
|
77
77
|
canAddCurrentValue,
|
|
78
78
|
onAddCurrentInput,
|
|
79
79
|
showClear
|
|
80
|
-
}: TagsInputInlineProps):
|
|
80
|
+
}: TagsInputInlineProps): react_jsx_runtime19.JSX.Element;
|
|
81
81
|
//#endregion
|
|
82
82
|
export { TagsInputInline, TagsInputInlineItem, TagsInputInlineProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeDropdown.d.ts
|
|
4
4
|
interface ThemeModeDropdownProps {
|
|
@@ -18,7 +18,7 @@ interface ThemeModeDropdownProps {
|
|
|
18
18
|
* Provides Light / Dark / System options.
|
|
19
19
|
* Pure component - requires themeValue and onChange props.
|
|
20
20
|
*/
|
|
21
|
-
declare function ThemeModeDropdown(props: ThemeModeDropdownProps):
|
|
21
|
+
declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime20.JSX.Element;
|
|
22
22
|
declare namespace ThemeModeDropdown {
|
|
23
23
|
var displayName: string;
|
|
24
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeSwitchInside.d.ts
|
|
4
4
|
type ThemeModeSwitchInsideSize = 'sm' | 'md' | 'lg';
|
|
@@ -26,7 +26,7 @@ interface ThemeModeSwitchInsideProps {
|
|
|
26
26
|
* Icons are embedded within the switch control.
|
|
27
27
|
* Pure component - requires value and onChange props.
|
|
28
28
|
*/
|
|
29
|
-
declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps):
|
|
29
|
+
declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime21.JSX.Element;
|
|
30
30
|
declare namespace ThemeModeSwitchInside {
|
|
31
31
|
var displayName: string;
|
|
32
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeSwitchOutside.d.ts
|
|
4
4
|
interface ThemeModeSwitchOutsideProps {
|
|
@@ -23,7 +23,7 @@ interface ThemeModeSwitchOutsideProps {
|
|
|
23
23
|
* Icons flank the switch control on either side.
|
|
24
24
|
* Pure component - requires value and onChange props.
|
|
25
25
|
*/
|
|
26
|
-
declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps):
|
|
26
|
+
declare function ThemeModeSwitchOutside(props: ThemeModeSwitchOutsideProps): react_jsx_runtime22.JSX.Element;
|
|
27
27
|
declare namespace ThemeModeSwitchOutside {
|
|
28
28
|
var displayName: string;
|
|
29
29
|
}
|