@pixpilot/shadcn-ui 0.40.0 → 0.41.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/dist/Select.cjs +22 -2
- package/dist/Select.d.cts +33 -2
- package/dist/Select.d.ts +33 -2
- package/dist/Select.js +21 -2
- package/dist/dialog/Dialog.d.cts +4 -4
- package/dist/file-upload-inline/FileUploadInline.d.cts +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/input/Input.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeDropdown.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchInside.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.ts +2 -2
- package/package.json +1 -1
package/dist/Select.cjs
CHANGED
|
@@ -2,6 +2,8 @@ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_use_select_keyboard = require('./hooks/use-select-keyboard.cjs');
|
|
3
3
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
4
4
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
5
|
+
let lucide_react = require("lucide-react");
|
|
6
|
+
lucide_react = require_rolldown_runtime.__toESM(lucide_react);
|
|
5
7
|
let react = require("react");
|
|
6
8
|
react = require_rolldown_runtime.__toESM(react);
|
|
7
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -9,7 +11,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
9
11
|
|
|
10
12
|
//#region src/Select.tsx
|
|
11
13
|
function Select(props) {
|
|
12
|
-
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp,...restProps } = props;
|
|
14
|
+
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp, position, clearable = false,...restProps } = props;
|
|
13
15
|
const [uncontrolledOpen, setUncontrolledOpen] = react.default.useState(false);
|
|
14
16
|
const open = openProp ?? uncontrolledOpen;
|
|
15
17
|
const handleOpenChange = (nextOpen) => {
|
|
@@ -33,8 +35,26 @@ function Select(props) {
|
|
|
33
35
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectTrigger, {
|
|
34
36
|
className: "w-full",
|
|
35
37
|
onKeyDown: handleTriggerKeyDown,
|
|
36
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.
|
|
38
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
39
|
+
className: "flex items-center justify-between gap-2 flex-1 w-full min-w-0",
|
|
40
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
41
|
+
className: "flex-1 truncate text-left",
|
|
42
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectValue, { placeholder })
|
|
43
|
+
}), clearable && value !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
44
|
+
type: "button",
|
|
45
|
+
className: "ml-auto flex h-6 w-6 shrink-0 items-center justify-center rounded-sm opacity-50 hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none",
|
|
46
|
+
onPointerDown: (e) => {
|
|
47
|
+
e.preventDefault();
|
|
48
|
+
e.stopPropagation();
|
|
49
|
+
onChange?.("");
|
|
50
|
+
handleOpenChange(false);
|
|
51
|
+
},
|
|
52
|
+
"aria-label": "Clear selection",
|
|
53
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.XIcon, { className: "h-4 w-4" })
|
|
54
|
+
})]
|
|
55
|
+
})
|
|
37
56
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectContent, {
|
|
57
|
+
position,
|
|
38
58
|
...contentProps,
|
|
39
59
|
children: options?.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectItem, {
|
|
40
60
|
value: String(option.value),
|
package/dist/Select.d.cts
CHANGED
|
@@ -7,14 +7,45 @@ interface SelectOption {
|
|
|
7
7
|
value: string | number;
|
|
8
8
|
label: string;
|
|
9
9
|
}
|
|
10
|
+
type SelectContentProps = React.ComponentProps<typeof SelectContent>;
|
|
10
11
|
type BaseSelectProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Array of options to display in the select dropdown
|
|
14
|
+
*/
|
|
11
15
|
options?: SelectOption[];
|
|
12
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Additional props to pass to the SelectContent component
|
|
18
|
+
*/
|
|
19
|
+
contentProps?: SelectContentProps;
|
|
20
|
+
/**
|
|
21
|
+
* The currently selected value
|
|
22
|
+
*/
|
|
13
23
|
value?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Callback function called when the selected value changes
|
|
26
|
+
*/
|
|
14
27
|
onChange?: (value: string) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Placeholder text to display when no value is selected
|
|
30
|
+
*/
|
|
15
31
|
placeholder?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Keyboard navigation mode
|
|
34
|
+
* - "cycle": Cycles through options with arrow keys
|
|
35
|
+
* - "dropdown": Opens dropdown on arrow keys
|
|
36
|
+
*/
|
|
16
37
|
keyboardMode?: 'cycle' | 'dropdown';
|
|
38
|
+
/**
|
|
39
|
+
* Controls how the dropdown is positioned
|
|
40
|
+
* - "item-aligned": Aligns with the trigger button
|
|
41
|
+
* - "popper": Uses floating-ui positioning
|
|
42
|
+
*/
|
|
43
|
+
position?: SelectContentProps['position'];
|
|
44
|
+
/**
|
|
45
|
+
* Whether to show a clear button when a value is selected
|
|
46
|
+
*/
|
|
47
|
+
clearable?: boolean;
|
|
17
48
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
18
49
|
declare function Select$1(props: BaseSelectProps): react_jsx_runtime4.JSX.Element;
|
|
19
50
|
//#endregion
|
|
20
|
-
export { Select$1 as Select, SelectOption };
|
|
51
|
+
export { Select$1 as Select, SelectContentProps, SelectOption };
|
package/dist/Select.d.ts
CHANGED
|
@@ -7,14 +7,45 @@ interface SelectOption {
|
|
|
7
7
|
value: string | number;
|
|
8
8
|
label: string;
|
|
9
9
|
}
|
|
10
|
+
type SelectContentProps = React.ComponentProps<typeof SelectContent>;
|
|
10
11
|
type BaseSelectProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Array of options to display in the select dropdown
|
|
14
|
+
*/
|
|
11
15
|
options?: SelectOption[];
|
|
12
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Additional props to pass to the SelectContent component
|
|
18
|
+
*/
|
|
19
|
+
contentProps?: SelectContentProps;
|
|
20
|
+
/**
|
|
21
|
+
* The currently selected value
|
|
22
|
+
*/
|
|
13
23
|
value?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Callback function called when the selected value changes
|
|
26
|
+
*/
|
|
14
27
|
onChange?: (value: string) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Placeholder text to display when no value is selected
|
|
30
|
+
*/
|
|
15
31
|
placeholder?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Keyboard navigation mode
|
|
34
|
+
* - "cycle": Cycles through options with arrow keys
|
|
35
|
+
* - "dropdown": Opens dropdown on arrow keys
|
|
36
|
+
*/
|
|
16
37
|
keyboardMode?: 'cycle' | 'dropdown';
|
|
38
|
+
/**
|
|
39
|
+
* Controls how the dropdown is positioned
|
|
40
|
+
* - "item-aligned": Aligns with the trigger button
|
|
41
|
+
* - "popper": Uses floating-ui positioning
|
|
42
|
+
*/
|
|
43
|
+
position?: SelectContentProps['position'];
|
|
44
|
+
/**
|
|
45
|
+
* Whether to show a clear button when a value is selected
|
|
46
|
+
*/
|
|
47
|
+
clearable?: boolean;
|
|
17
48
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
18
49
|
declare function Select$1(props: BaseSelectProps): react_jsx_runtime4.JSX.Element;
|
|
19
50
|
//#endregion
|
|
20
|
-
export { Select$1 as Select, SelectOption };
|
|
51
|
+
export { Select$1 as Select, SelectContentProps, SelectOption };
|
package/dist/Select.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useSelectKeyboard } from "./hooks/use-select-keyboard.js";
|
|
2
2
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@pixpilot/shadcn";
|
|
3
|
+
import { XIcon } from "lucide-react";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
|
|
6
7
|
//#region src/Select.tsx
|
|
7
8
|
function Select$1(props) {
|
|
8
|
-
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp,...restProps } = props;
|
|
9
|
+
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp, position, clearable = false,...restProps } = props;
|
|
9
10
|
const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false);
|
|
10
11
|
const open = openProp ?? uncontrolledOpen;
|
|
11
12
|
const handleOpenChange = (nextOpen) => {
|
|
@@ -29,8 +30,26 @@ function Select$1(props) {
|
|
|
29
30
|
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
30
31
|
className: "w-full",
|
|
31
32
|
onKeyDown: handleTriggerKeyDown,
|
|
32
|
-
children: /* @__PURE__ */
|
|
33
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
34
|
+
className: "flex items-center justify-between gap-2 flex-1 w-full min-w-0",
|
|
35
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
36
|
+
className: "flex-1 truncate text-left",
|
|
37
|
+
children: /* @__PURE__ */ jsx(SelectValue, { placeholder })
|
|
38
|
+
}), clearable && value !== "" && /* @__PURE__ */ jsx("button", {
|
|
39
|
+
type: "button",
|
|
40
|
+
className: "ml-auto flex h-6 w-6 shrink-0 items-center justify-center rounded-sm opacity-50 hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none",
|
|
41
|
+
onPointerDown: (e) => {
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
e.stopPropagation();
|
|
44
|
+
onChange?.("");
|
|
45
|
+
handleOpenChange(false);
|
|
46
|
+
},
|
|
47
|
+
"aria-label": "Clear selection",
|
|
48
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "h-4 w-4" })
|
|
49
|
+
})]
|
|
50
|
+
})
|
|
33
51
|
}), /* @__PURE__ */ jsx(SelectContent, {
|
|
52
|
+
position,
|
|
34
53
|
...contentProps,
|
|
35
54
|
children: options?.map((option) => /* @__PURE__ */ jsx(SelectItem, {
|
|
36
55
|
value: String(option.value),
|
package/dist/dialog/Dialog.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import * as _radix_ui_react_dialog0 from "@radix-ui/react-dialog";
|
|
4
4
|
|
|
@@ -9,14 +9,14 @@ declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<_radix_ui_re
|
|
|
9
9
|
declare function DialogHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
12
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime8.JSX.Element;
|
|
13
13
|
declare function DialogBody({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
16
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime8.JSX.Element;
|
|
17
17
|
declare function DialogFooter({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React$1.HTMLAttributes<HTMLDivElement>):
|
|
20
|
+
}: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime8.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { DialogBody, DialogContent, DialogFooter, DialogHeader };
|
|
@@ -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 };
|
package/dist/index.d.cts
CHANGED
|
@@ -48,7 +48,7 @@ import "./popover/index.cjs";
|
|
|
48
48
|
import { RichTextEditor, RichTextEditorProps, RichTextEditorSlots, ToolbarItems } from "./rich-text-editor/RichTextEditor.cjs";
|
|
49
49
|
import "./rich-text-editor/index.cjs";
|
|
50
50
|
import { ScaledPreview, ScaledPreviewProps, ScaledPreviewSize } from "./ScaledPreview.cjs";
|
|
51
|
-
import { Select, SelectOption } from "./Select.cjs";
|
|
51
|
+
import { Select, SelectContentProps, SelectOption } from "./Select.cjs";
|
|
52
52
|
import { Slider, SliderProps } from "./slider/Slider.cjs";
|
|
53
53
|
import { SliderInput, SliderInputProps } from "./slider/SliderInput.cjs";
|
|
54
54
|
import { SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue } from "./slider/SliderSelect.cjs";
|
|
@@ -73,4 +73,4 @@ import { Toaster } from "./toast/ToastProvider.cjs";
|
|
|
73
73
|
import "./toast/index.cjs";
|
|
74
74
|
import { isSvgMarkupString, svgMarkupToMaskUrl } from "./utils/svg.cjs";
|
|
75
75
|
import { cn } from "@pixpilot/shadcn";
|
|
76
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverTrigger, PresetColor, RichTextEditor, RichTextEditorProps, RichTextEditorSlots, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectOption, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputProps, ThemeModeDropdown, ThemeModeDropdownProps, ThemeModeSwitchInside, ThemeModeSwitchInsideProps, ThemeModeSwitchInsideSize, ThemeModeSwitchOutside, ThemeModeSwitchOutsideProps, ThemeModeToggleButton, ThemeModeToggleButtonProps, ThemeProvider, ThemeProviderProps, ToastMessage, Toaster, ToolbarItems, cn, isSvgMarkupString, showConfirmDialog, svgMarkupToMaskUrl, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
|
76
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverTrigger, PresetColor, RichTextEditor, RichTextEditorProps, RichTextEditorSlots, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectContentProps, SelectOption, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputProps, ThemeModeDropdown, ThemeModeDropdownProps, ThemeModeSwitchInside, ThemeModeSwitchInsideProps, ThemeModeSwitchInsideSize, ThemeModeSwitchOutside, ThemeModeSwitchOutsideProps, ThemeModeToggleButton, ThemeModeToggleButtonProps, ThemeProvider, ThemeProviderProps, ToastMessage, Toaster, ToolbarItems, cn, isSvgMarkupString, showConfirmDialog, svgMarkupToMaskUrl, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ import "./popover/index.js";
|
|
|
50
50
|
import { RichTextEditor, RichTextEditorProps, RichTextEditorSlots, ToolbarItems } from "./rich-text-editor/RichTextEditor.js";
|
|
51
51
|
import "./rich-text-editor/index.js";
|
|
52
52
|
import { ScaledPreview, ScaledPreviewProps, ScaledPreviewSize } from "./ScaledPreview.js";
|
|
53
|
-
import { Select, SelectOption } from "./Select.js";
|
|
53
|
+
import { Select, SelectContentProps, SelectOption } from "./Select.js";
|
|
54
54
|
import { Slider, SliderProps } from "./slider/Slider.js";
|
|
55
55
|
import { SliderInput, SliderInputProps } from "./slider/SliderInput.js";
|
|
56
56
|
import { SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue } from "./slider/SliderSelect.js";
|
|
@@ -75,4 +75,4 @@ import { Toaster } from "./toast/ToastProvider.js";
|
|
|
75
75
|
import "./toast/index.js";
|
|
76
76
|
import { isSvgMarkupString, svgMarkupToMaskUrl } from "./utils/svg.js";
|
|
77
77
|
import { cn } from "@pixpilot/shadcn";
|
|
78
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverTrigger, PresetColor, RichTextEditor, RichTextEditorProps, RichTextEditorSlots, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectOption, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputProps, ThemeModeDropdown, ThemeModeDropdownProps, ThemeModeSwitchInside, ThemeModeSwitchInsideProps, ThemeModeSwitchInsideSize, ThemeModeSwitchOutside, ThemeModeSwitchOutsideProps, ThemeModeToggleButton, ThemeModeToggleButtonProps, ThemeProvider, ThemeProviderProps, ToastMessage, Toaster, ToolbarItems, cn, isSvgMarkupString, showConfirmDialog, svgMarkupToMaskUrl, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
|
78
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverTrigger, PresetColor, RichTextEditor, RichTextEditorProps, RichTextEditorSlots, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectContentProps, SelectOption, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputProps, ThemeModeDropdown, ThemeModeDropdownProps, ThemeModeSwitchInside, ThemeModeSwitchInsideProps, ThemeModeSwitchInsideSize, ThemeModeSwitchOutside, ThemeModeSwitchOutsideProps, ThemeModeToggleButton, ThemeModeToggleButtonProps, ThemeProvider, ThemeProviderProps, ToastMessage, Toaster, ToolbarItems, cn, isSvgMarkupString, showConfirmDialog, svgMarkupToMaskUrl, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
package/dist/input/Input.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
import { InputProps } from "@pixpilot/shadcn";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
|
|
@@ -10,6 +10,6 @@ type InputProps$1 = InputProps & {
|
|
|
10
10
|
prefixClassName?: string;
|
|
11
11
|
suffixClassName?: string;
|
|
12
12
|
};
|
|
13
|
-
declare function Input(props: InputProps$1):
|
|
13
|
+
declare function Input(props: InputProps$1): react_jsx_runtime7.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Input, InputProps$1 as InputProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeDropdown.d.ts
|
|
4
4
|
interface ThemeModeDropdownProps {
|
|
@@ -17,7 +17,7 @@ interface ThemeModeDropdownProps {
|
|
|
17
17
|
* Provides Light / Dark / System options.
|
|
18
18
|
* Pure component - requires themeValue and onChange props.
|
|
19
19
|
*/
|
|
20
|
-
declare function ThemeModeDropdown(props: ThemeModeDropdownProps):
|
|
20
|
+
declare function ThemeModeDropdown(props: ThemeModeDropdownProps): react_jsx_runtime12.JSX.Element;
|
|
21
21
|
declare namespace ThemeModeDropdown {
|
|
22
22
|
var displayName: string;
|
|
23
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeSwitchInside.d.ts
|
|
4
4
|
type ThemeModeSwitchInsideSize = 'sm' | 'md' | 'lg';
|
|
@@ -25,7 +25,7 @@ interface ThemeModeSwitchInsideProps {
|
|
|
25
25
|
* Icons are embedded within the switch control.
|
|
26
26
|
* Pure component - requires value and onChange props.
|
|
27
27
|
*/
|
|
28
|
-
declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps):
|
|
28
|
+
declare function ThemeModeSwitchInside(props: ThemeModeSwitchInsideProps): react_jsx_runtime13.JSX.Element;
|
|
29
29
|
declare namespace ThemeModeSwitchInside {
|
|
30
30
|
var displayName: string;
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeToggleButton.d.ts
|
|
4
4
|
interface ThemeModeToggleButtonProps {
|
|
@@ -13,7 +13,7 @@ interface ThemeModeToggleButtonProps {
|
|
|
13
13
|
* Light/Dark toggle button.
|
|
14
14
|
* Pure component - toggles between light and dark.
|
|
15
15
|
*/
|
|
16
|
-
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps):
|
|
16
|
+
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime14.JSX.Element;
|
|
17
17
|
declare namespace ThemeModeToggleButton {
|
|
18
18
|
var displayName: string;
|
|
19
19
|
}
|
package/package.json
CHANGED