@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,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_runtime22 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_runtime22.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_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_runtime20 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeToggleButton.d.ts
|
|
4
4
|
interface ThemeModeToggleButtonProps {
|
|
@@ -14,7 +14,7 @@ interface ThemeModeToggleButtonProps {
|
|
|
14
14
|
* Light/Dark toggle button.
|
|
15
15
|
* Pure component - toggles between light and dark.
|
|
16
16
|
*/
|
|
17
|
-
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps):
|
|
17
|
+
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime20.JSX.Element;
|
|
18
18
|
declare namespace ThemeModeToggleButton {
|
|
19
19
|
var displayName: string;
|
|
20
20
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_variant_config = require('../variant-config.cjs');
|
|
3
|
-
const require_Alert = require('../Alert.cjs');
|
|
3
|
+
const require_Alert = require('../alert/Alert.cjs');
|
|
4
|
+
require('../alert/index.cjs');
|
|
4
5
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
5
6
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
6
7
|
let lucide_react = require("lucide-react");
|
package/dist/toast/AlertToast.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { variantConfig } from "../variant-config.js";
|
|
2
|
-
import { Alert as Alert$1 } from "../Alert.js";
|
|
2
|
+
import { Alert as Alert$1 } from "../alert/Alert.js";
|
|
3
|
+
import "../alert/index.js";
|
|
3
4
|
import { cn } from "@pixpilot/shadcn";
|
|
4
5
|
import { XIcon } from "lucide-react";
|
|
5
6
|
import React from "react";
|
package/dist/toast/toast.d.cts
CHANGED
package/dist/toast/toast.d.ts
CHANGED
package/dist/toast/types.d.cts
CHANGED
package/dist/toast/types.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const require_rolldown_runtime = require('
|
|
5
|
-
const require_Button = require('
|
|
4
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
const require_Button = require('../button/Button.cjs');
|
|
6
|
+
require('../button/index.cjs');
|
|
6
7
|
let react = require("react");
|
|
7
8
|
react = require_rolldown_runtime.__toESM(react);
|
|
8
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
10
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
10
11
|
|
|
11
|
-
//#region src/ToggleButton.tsx
|
|
12
|
+
//#region src/toggle-button/ToggleButton.tsx
|
|
12
13
|
const ToggleButton = react.default.forwardRef(({ checked: controlledChecked, defaultChecked = false, onChange, checkedContent, uncheckedContent, checkedProps, uncheckedProps, disabled,...props }, ref) => {
|
|
13
14
|
const [uncontrolledChecked, setUncontrolledChecked] = react.default.useState(defaultChecked);
|
|
14
15
|
const isControlled = controlledChecked !== void 0;
|
|
@@ -2,7 +2,7 @@ import { buttonVariants } from "@pixpilot/shadcn";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
|
|
5
|
-
//#region src/ToggleButton.d.ts
|
|
5
|
+
//#region src/toggle-button/ToggleButton.d.ts
|
|
6
6
|
type ButtonBaseProps = React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
7
7
|
asChild?: boolean;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ import { buttonVariants } from "@pixpilot/shadcn";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
|
|
5
|
-
//#region src/ToggleButton.d.ts
|
|
5
|
+
//#region src/toggle-button/ToggleButton.d.ts
|
|
6
6
|
type ButtonBaseProps = React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
7
7
|
asChild?: boolean;
|
|
8
8
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import { Button } from "
|
|
4
|
+
import { Button } from "../button/Button.js";
|
|
5
|
+
import "../button/index.js";
|
|
5
6
|
import React, { useCallback } from "react";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
8
|
|
|
8
|
-
//#region src/ToggleButton.tsx
|
|
9
|
+
//#region src/toggle-button/ToggleButton.tsx
|
|
9
10
|
const ToggleButton = React.forwardRef(({ checked: controlledChecked, defaultChecked = false, onChange, checkedContent, uncheckedContent, checkedProps, uncheckedProps, disabled,...props }, ref) => {
|
|
10
11
|
const [uncontrolledChecked, setUncontrolledChecked] = React.useState(defaultChecked);
|
|
11
12
|
const isControlled = controlledChecked !== void 0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ToggleButton = require('./ToggleButton.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ToggleButton, ToggleButtonProps } from "./ToggleButton.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ToggleButton, ToggleButtonProps } from "./ToggleButton.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ToggleButton } from "./ToggleButton.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
3
3
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps } from "@pixpilot/shadcn";
|
|
2
2
|
|
|
3
|
-
//#region src/ToggleGroup.d.ts
|
|
3
|
+
//#region src/toggle-group/ToggleGroup.d.ts
|
|
4
4
|
type ToggleGroupValue = string | number;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, ToggleGroupValue };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps } from "@pixpilot/shadcn";
|
|
2
2
|
|
|
3
|
-
//#region src/ToggleGroup.d.ts
|
|
3
|
+
//#region src/toggle-group/ToggleGroup.d.ts
|
|
4
4
|
type ToggleGroupValue = string | number;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, ToggleGroupValue };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupValue } from "./ToggleGroup.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ToggleGroup, ToggleGroupItem } from "./ToggleGroup.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Tooltip as Tooltip$1, TooltipContent as TooltipContent$1, TooltipProvider as TooltipProvider$1, TooltipTrigger as TooltipTrigger$1 } from "@pixpilot/shadcn";
|
|
2
|
+
export { Tooltip$1 as Tooltip, TooltipContent$1 as TooltipContent, TooltipProvider$1 as TooltipProvider, TooltipTrigger$1 as TooltipTrigger };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Tooltip as Tooltip$1, TooltipContent as TooltipContent$1, TooltipProvider as TooltipProvider$1, TooltipTrigger as TooltipTrigger$1 } from "@pixpilot/shadcn";
|
|
2
|
+
|
|
3
|
+
export { Tooltip$1 as Tooltip, TooltipContent$1 as TooltipContent, TooltipProvider$1 as TooltipProvider, TooltipTrigger$1 as TooltipTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./Tooltip.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./Tooltip.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixpilot/shadcn-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.38.0",
|
|
5
5
|
"description": "Custom UI components and utilities built with shadcn/ui.",
|
|
6
6
|
"author": "m.doaie <m.doaie@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
"require": "./dist/index.cjs"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
+
"bin": {
|
|
21
|
+
"shadcn-ui-mcp": "./dist/mcp-server.js"
|
|
22
|
+
},
|
|
20
23
|
"files": [
|
|
21
24
|
"dist"
|
|
22
25
|
],
|
|
@@ -32,6 +35,7 @@
|
|
|
32
35
|
"@iconify-json/fa": "^1.2.2",
|
|
33
36
|
"@iconify-json/mdi": "^1.2.3",
|
|
34
37
|
"@iconify/react": "^6.0.2",
|
|
38
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
35
39
|
"@pixpilot/hash": "^0.2.0",
|
|
36
40
|
"@pixpilot/string": "^3.0.0",
|
|
37
41
|
"@radix-ui/react-slot": "^1.2.4",
|
|
@@ -49,7 +53,8 @@
|
|
|
49
53
|
"pretty-bytes": "^7.1.0",
|
|
50
54
|
"react-responsive": "^10.0.1",
|
|
51
55
|
"sonner": "2.0.7",
|
|
52
|
-
"
|
|
56
|
+
"zod": "^4.3.6",
|
|
57
|
+
"@pixpilot/shadcn": "1.4.0"
|
|
53
58
|
},
|
|
54
59
|
"devDependencies": {
|
|
55
60
|
"@storybook/react": "^8.6.18",
|
|
@@ -63,20 +68,23 @@
|
|
|
63
68
|
"react-dom": "19.2.0",
|
|
64
69
|
"tailwindcss": "^4.2.2",
|
|
65
70
|
"tsdown": "^0.15.12",
|
|
71
|
+
"tsx": "^4.21.0",
|
|
66
72
|
"typescript": "^5.9.3",
|
|
73
|
+
"@internal/eslint-config": "0.3.0",
|
|
67
74
|
"@internal/hooks": "0.0.0",
|
|
75
|
+
"@internal/mcp": "0.0.0",
|
|
68
76
|
"@internal/prettier-config": "0.0.1",
|
|
69
|
-
"@internal/tsconfig": "0.1.0",
|
|
70
|
-
"@internal/eslint-config": "0.3.0",
|
|
71
77
|
"@internal/tsdown-config": "0.1.0",
|
|
78
|
+
"@internal/tsconfig": "0.1.0",
|
|
72
79
|
"@internal/vitest-config": "0.1.0"
|
|
73
80
|
},
|
|
74
81
|
"prettier": "@internal/prettier-config",
|
|
75
82
|
"scripts": {
|
|
76
83
|
"clean": "git clean -xdf .cache .turbo dist",
|
|
77
84
|
"clean:all": "git clean -xdf .cache .turbo dist node_modules",
|
|
78
|
-
"build": "tsdown",
|
|
85
|
+
"build": "pnpm run mcp:registry && tsdown",
|
|
79
86
|
"build:watch": "tsdown --watch",
|
|
87
|
+
"mcp:registry": "tsx ../mcp/src/generate-mcp-registry-cli.ts",
|
|
80
88
|
"test": "vitest --run --passWithNoTests",
|
|
81
89
|
"test:watch": "vitest --watch",
|
|
82
90
|
"test:ui": "vitest --ui",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CloseButtonRounded } from "./CloseButtonRounded.cjs";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/CloseButtonAbsolute.d.ts
|
|
5
|
-
interface PopoverCloseButtonProps extends React.ComponentProps<typeof CloseButtonRounded> {}
|
|
6
|
-
declare const CloseButtonAbsolute: React.FC<PopoverCloseButtonProps>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { CloseButtonAbsolute, PopoverCloseButtonProps };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CloseButtonRounded } from "./CloseButtonRounded.js";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/CloseButtonAbsolute.d.ts
|
|
5
|
-
interface PopoverCloseButtonProps extends React.ComponentProps<typeof CloseButtonRounded> {}
|
|
6
|
-
declare const CloseButtonAbsolute: React.FC<PopoverCloseButtonProps>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { CloseButtonAbsolute, PopoverCloseButtonProps };
|
|
File without changes
|