@pixpilot/shadcn-ui 0.18.0 → 0.20.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/ColorSelect.cjs +64 -0
- package/dist/ColorSelect.d.cts +20 -0
- package/dist/ColorSelect.d.ts +20 -0
- package/dist/ColorSelect.js +60 -0
- package/dist/ContentCard.d.cts +2 -2
- package/dist/ContentCard.d.ts +2 -2
- package/dist/DatePicker.d.cts +2 -2
- package/dist/DatePicker.d.ts +2 -2
- package/dist/Select.cjs +19 -1
- package/dist/Select.d.cts +3 -2
- package/dist/Select.d.ts +3 -2
- package/dist/Select.js +19 -1
- package/dist/ThemeToggle.d.cts +2 -2
- package/dist/ThemeToggle.d.ts +2 -2
- package/dist/file-upload/FileUpload.d.cts +2 -2
- package/dist/file-upload-inline/FileUploadInline.d.cts +2 -2
- package/dist/hooks/index.cjs +1 -0
- package/dist/hooks/index.d.cts +2 -0
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-select-keyboard.cjs +37 -0
- package/dist/hooks/use-select-keyboard.d.cts +27 -0
- package/dist/hooks/use-select-keyboard.d.ts +27 -0
- package/dist/hooks/use-select-keyboard.js +35 -0
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/input/Input.d.cts +2 -2
- package/dist/input/Input.d.ts +2 -2
- package/dist/tags-input.d.cts +2 -2
- package/dist/tags-input.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_use_select_keyboard = require('./hooks/use-select-keyboard.cjs');
|
|
3
|
+
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
4
|
+
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/ColorSelect.tsx
|
|
11
|
+
function ColorSelect(props) {
|
|
12
|
+
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp,...restProps } = props;
|
|
13
|
+
const [uncontrolledOpen, setUncontrolledOpen] = react.default.useState(false);
|
|
14
|
+
const open = openProp ?? uncontrolledOpen;
|
|
15
|
+
const handleOpenChange = (nextOpen) => {
|
|
16
|
+
if (openProp === void 0) setUncontrolledOpen(nextOpen);
|
|
17
|
+
onOpenChangeProp?.(nextOpen);
|
|
18
|
+
};
|
|
19
|
+
const { handleTriggerKeyDown } = require_use_select_keyboard.useSelectKeyboard({
|
|
20
|
+
options,
|
|
21
|
+
value,
|
|
22
|
+
onChange,
|
|
23
|
+
keyboardMode,
|
|
24
|
+
open,
|
|
25
|
+
getValue: (option) => option.value
|
|
26
|
+
});
|
|
27
|
+
const selectedOption = options?.find((option) => option.value === value);
|
|
28
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.Select, {
|
|
29
|
+
value,
|
|
30
|
+
onValueChange: onChange,
|
|
31
|
+
open,
|
|
32
|
+
onOpenChange: handleOpenChange,
|
|
33
|
+
...restProps,
|
|
34
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectTrigger, {
|
|
35
|
+
className: "w-full",
|
|
36
|
+
onKeyDown: handleTriggerKeyDown,
|
|
37
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectValue, {
|
|
38
|
+
placeholder,
|
|
39
|
+
children: selectedOption && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
40
|
+
className: "flex items-center gap-2",
|
|
41
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
42
|
+
className: "h-4 w-4 rounded border border-gray-300",
|
|
43
|
+
style: { backgroundColor: selectedOption.value }
|
|
44
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: selectedOption.label })]
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectContent, {
|
|
48
|
+
...contentProps,
|
|
49
|
+
children: options?.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectItem, {
|
|
50
|
+
value: option.value,
|
|
51
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
52
|
+
className: "flex items-center gap-2",
|
|
53
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
54
|
+
className: "h-4 w-4 rounded border border-gray-300",
|
|
55
|
+
style: { backgroundColor: option.value }
|
|
56
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: option.label })]
|
|
57
|
+
})
|
|
58
|
+
}, option.value))
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
exports.ColorSelect = ColorSelect;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
|
+
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
3
|
+
import React, { ComponentProps } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/ColorSelect.d.ts
|
|
6
|
+
interface ColorSelectOption {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
type BaseColorSelectProps = {
|
|
11
|
+
options?: ColorSelectOption[];
|
|
12
|
+
contentProps?: React.ComponentProps<typeof SelectContent>;
|
|
13
|
+
value?: string;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
keyboardMode?: 'cycle' | 'dropdown';
|
|
17
|
+
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
18
|
+
declare function ColorSelect(props: BaseColorSelectProps): react_jsx_runtime1.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { BaseColorSelectProps, ColorSelect, ColorSelectOption };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
2
|
+
import React, { ComponentProps } from "react";
|
|
3
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/ColorSelect.d.ts
|
|
6
|
+
interface ColorSelectOption {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
type BaseColorSelectProps = {
|
|
11
|
+
options?: ColorSelectOption[];
|
|
12
|
+
contentProps?: React.ComponentProps<typeof SelectContent>;
|
|
13
|
+
value?: string;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
keyboardMode?: 'cycle' | 'dropdown';
|
|
17
|
+
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
18
|
+
declare function ColorSelect(props: BaseColorSelectProps): react_jsx_runtime1.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { BaseColorSelectProps, ColorSelect, ColorSelectOption };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { useSelectKeyboard } from "./hooks/use-select-keyboard.js";
|
|
2
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@pixpilot/shadcn";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/ColorSelect.tsx
|
|
7
|
+
function ColorSelect(props) {
|
|
8
|
+
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp,...restProps } = props;
|
|
9
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false);
|
|
10
|
+
const open = openProp ?? uncontrolledOpen;
|
|
11
|
+
const handleOpenChange = (nextOpen) => {
|
|
12
|
+
if (openProp === void 0) setUncontrolledOpen(nextOpen);
|
|
13
|
+
onOpenChangeProp?.(nextOpen);
|
|
14
|
+
};
|
|
15
|
+
const { handleTriggerKeyDown } = useSelectKeyboard({
|
|
16
|
+
options,
|
|
17
|
+
value,
|
|
18
|
+
onChange,
|
|
19
|
+
keyboardMode,
|
|
20
|
+
open,
|
|
21
|
+
getValue: (option) => option.value
|
|
22
|
+
});
|
|
23
|
+
const selectedOption = options?.find((option) => option.value === value);
|
|
24
|
+
return /* @__PURE__ */ jsxs(Select, {
|
|
25
|
+
value,
|
|
26
|
+
onValueChange: onChange,
|
|
27
|
+
open,
|
|
28
|
+
onOpenChange: handleOpenChange,
|
|
29
|
+
...restProps,
|
|
30
|
+
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
31
|
+
className: "w-full",
|
|
32
|
+
onKeyDown: handleTriggerKeyDown,
|
|
33
|
+
children: /* @__PURE__ */ jsx(SelectValue, {
|
|
34
|
+
placeholder,
|
|
35
|
+
children: selectedOption && /* @__PURE__ */ jsxs("div", {
|
|
36
|
+
className: "flex items-center gap-2",
|
|
37
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: "h-4 w-4 rounded border border-gray-300",
|
|
39
|
+
style: { backgroundColor: selectedOption.value }
|
|
40
|
+
}), /* @__PURE__ */ jsx("span", { children: selectedOption.label })]
|
|
41
|
+
})
|
|
42
|
+
})
|
|
43
|
+
}), /* @__PURE__ */ jsx(SelectContent, {
|
|
44
|
+
...contentProps,
|
|
45
|
+
children: options?.map((option) => /* @__PURE__ */ jsx(SelectItem, {
|
|
46
|
+
value: option.value,
|
|
47
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
48
|
+
className: "flex items-center gap-2",
|
|
49
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
50
|
+
className: "h-4 w-4 rounded border border-gray-300",
|
|
51
|
+
style: { backgroundColor: option.value }
|
|
52
|
+
}), /* @__PURE__ */ jsx("span", { children: option.label })]
|
|
53
|
+
})
|
|
54
|
+
}, option.value))
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
export { ColorSelect };
|
package/dist/ContentCard.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
import { Card } from "@pixpilot/shadcn";
|
|
3
3
|
import React, { ReactNode } from "react";
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ interface SectionCardProps extends React.ComponentProps<typeof Card> {
|
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
marginBottom?: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare function ContentCard(props: SectionCardProps):
|
|
11
|
+
declare function ContentCard(props: SectionCardProps): react_jsx_runtime2.JSX.Element;
|
|
12
12
|
declare namespace ContentCard {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
package/dist/ContentCard.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Card } from "@pixpilot/shadcn";
|
|
2
2
|
import React, { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/ContentCard.d.ts
|
|
6
6
|
interface SectionCardProps extends React.ComponentProps<typeof Card> {
|
|
@@ -8,7 +8,7 @@ interface SectionCardProps extends React.ComponentProps<typeof Card> {
|
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
marginBottom?: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare function ContentCard(props: SectionCardProps):
|
|
11
|
+
declare function ContentCard(props: SectionCardProps): react_jsx_runtime2.JSX.Element;
|
|
12
12
|
declare namespace ContentCard {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
package/dist/DatePicker.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
import { Calendar } from "@pixpilot/shadcn";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ type DatePickerProps = {
|
|
|
8
8
|
onChange?: (date: Date | undefined) => void;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
} & Omit<ComponentProps<typeof Calendar>, 'selected' | 'onSelect' | 'mode'>;
|
|
11
|
-
declare function DatePicker(props: DatePickerProps):
|
|
11
|
+
declare function DatePicker(props: DatePickerProps): react_jsx_runtime3.JSX.Element;
|
|
12
12
|
declare namespace DatePicker {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
package/dist/DatePicker.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Calendar } from "@pixpilot/shadcn";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/DatePicker.d.ts
|
|
6
6
|
type DatePickerProps = {
|
|
@@ -8,7 +8,7 @@ type DatePickerProps = {
|
|
|
8
8
|
onChange?: (date: Date | undefined) => void;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
} & Omit<ComponentProps<typeof Calendar>, 'selected' | 'onSelect' | 'mode'>;
|
|
11
|
-
declare function DatePicker(props: DatePickerProps):
|
|
11
|
+
declare function DatePicker(props: DatePickerProps): react_jsx_runtime3.JSX.Element;
|
|
12
12
|
declare namespace DatePicker {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
package/dist/Select.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_use_select_keyboard = require('./hooks/use-select-keyboard.cjs');
|
|
2
3
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
3
4
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
4
5
|
let react = require("react");
|
|
@@ -8,13 +9,30 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
8
9
|
|
|
9
10
|
//#region src/Select.tsx
|
|
10
11
|
function Select(props) {
|
|
11
|
-
const { options, value = "", onChange, placeholder, contentProps,...restProps } = props;
|
|
12
|
+
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp,...restProps } = props;
|
|
13
|
+
const [uncontrolledOpen, setUncontrolledOpen] = react.default.useState(false);
|
|
14
|
+
const open = openProp ?? uncontrolledOpen;
|
|
15
|
+
const handleOpenChange = (nextOpen) => {
|
|
16
|
+
if (openProp === void 0) setUncontrolledOpen(nextOpen);
|
|
17
|
+
onOpenChangeProp?.(nextOpen);
|
|
18
|
+
};
|
|
19
|
+
const { handleTriggerKeyDown } = require_use_select_keyboard.useSelectKeyboard({
|
|
20
|
+
options,
|
|
21
|
+
value,
|
|
22
|
+
onChange,
|
|
23
|
+
keyboardMode,
|
|
24
|
+
open,
|
|
25
|
+
getValue: (option) => String(option.value)
|
|
26
|
+
});
|
|
12
27
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__pixpilot_shadcn.Select, {
|
|
13
28
|
value,
|
|
14
29
|
onValueChange: onChange,
|
|
30
|
+
open,
|
|
31
|
+
onOpenChange: handleOpenChange,
|
|
15
32
|
...restProps,
|
|
16
33
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectTrigger, {
|
|
17
34
|
className: "w-full",
|
|
35
|
+
onKeyDown: handleTriggerKeyDown,
|
|
18
36
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectValue, { placeholder })
|
|
19
37
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__pixpilot_shadcn.SelectContent, {
|
|
20
38
|
...contentProps,
|
package/dist/Select.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
2
|
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
3
3
|
import React, { ComponentProps } from "react";
|
|
4
4
|
|
|
@@ -13,7 +13,8 @@ type BaseSelectProps = {
|
|
|
13
13
|
value?: string;
|
|
14
14
|
onChange?: (value: string) => void;
|
|
15
15
|
placeholder?: string;
|
|
16
|
+
keyboardMode?: 'cycle' | 'dropdown';
|
|
16
17
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
17
|
-
declare function Select$1(props: BaseSelectProps):
|
|
18
|
+
declare function Select$1(props: BaseSelectProps): react_jsx_runtime4.JSX.Element;
|
|
18
19
|
//#endregion
|
|
19
20
|
export { Select$1 as Select, SelectOption };
|
package/dist/Select.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Select, SelectContent } from "@pixpilot/shadcn";
|
|
2
2
|
import React, { ComponentProps } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/Select.d.ts
|
|
6
6
|
interface SelectOption {
|
|
@@ -13,7 +13,8 @@ type BaseSelectProps = {
|
|
|
13
13
|
value?: string;
|
|
14
14
|
onChange?: (value: string) => void;
|
|
15
15
|
placeholder?: string;
|
|
16
|
+
keyboardMode?: 'cycle' | 'dropdown';
|
|
16
17
|
} & Omit<ComponentProps<typeof Select>, 'value' | 'onValueChange' | 'children'>;
|
|
17
|
-
declare function Select$1(props: BaseSelectProps):
|
|
18
|
+
declare function Select$1(props: BaseSelectProps): react_jsx_runtime4.JSX.Element;
|
|
18
19
|
//#endregion
|
|
19
20
|
export { Select$1 as Select, SelectOption };
|
package/dist/Select.js
CHANGED
|
@@ -1,16 +1,34 @@
|
|
|
1
|
+
import { useSelectKeyboard } from "./hooks/use-select-keyboard.js";
|
|
1
2
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@pixpilot/shadcn";
|
|
2
3
|
import React from "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
|
|
5
6
|
//#region src/Select.tsx
|
|
6
7
|
function Select$1(props) {
|
|
7
|
-
const { options, value = "", onChange, placeholder, contentProps,...restProps } = props;
|
|
8
|
+
const { options, value = "", onChange, placeholder, contentProps, keyboardMode = "dropdown", open: openProp, onOpenChange: onOpenChangeProp,...restProps } = props;
|
|
9
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false);
|
|
10
|
+
const open = openProp ?? uncontrolledOpen;
|
|
11
|
+
const handleOpenChange = (nextOpen) => {
|
|
12
|
+
if (openProp === void 0) setUncontrolledOpen(nextOpen);
|
|
13
|
+
onOpenChangeProp?.(nextOpen);
|
|
14
|
+
};
|
|
15
|
+
const { handleTriggerKeyDown } = useSelectKeyboard({
|
|
16
|
+
options,
|
|
17
|
+
value,
|
|
18
|
+
onChange,
|
|
19
|
+
keyboardMode,
|
|
20
|
+
open,
|
|
21
|
+
getValue: (option) => String(option.value)
|
|
22
|
+
});
|
|
8
23
|
return /* @__PURE__ */ jsxs(Select, {
|
|
9
24
|
value,
|
|
10
25
|
onValueChange: onChange,
|
|
26
|
+
open,
|
|
27
|
+
onOpenChange: handleOpenChange,
|
|
11
28
|
...restProps,
|
|
12
29
|
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
13
30
|
className: "w-full",
|
|
31
|
+
onKeyDown: handleTriggerKeyDown,
|
|
14
32
|
children: /* @__PURE__ */ jsx(SelectValue, { placeholder })
|
|
15
33
|
}), /* @__PURE__ */ jsx(SelectContent, {
|
|
16
34
|
...contentProps,
|
package/dist/ThemeToggle.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/ThemeToggle.d.ts
|
|
4
|
-
declare function ThemeToggle():
|
|
4
|
+
declare function ThemeToggle(): react_jsx_runtime6.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ThemeToggle };
|
package/dist/ThemeToggle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/ThemeToggle.d.ts
|
|
4
|
-
declare function ThemeToggle():
|
|
4
|
+
declare function ThemeToggle(): react_jsx_runtime6.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ThemeToggle };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileUploadProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/file-upload/FileUpload.d.ts
|
|
5
|
-
declare function FileUpload(props: FileUploadProps):
|
|
5
|
+
declare function FileUpload(props: FileUploadProps): react_jsx_runtime7.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { FileUpload };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FileUploadInlineProps } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 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_runtime8.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { FileUploadInline };
|
package/dist/hooks/index.cjs
CHANGED
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import { useMediaQuery } from "./use-media-query.js";
|
|
1
|
+
import { useMediaQuery } from "./use-media-query.js";
|
|
2
|
+
import { useSelectKeyboard } from "./use-select-keyboard.js";
|
package/dist/hooks/index.js
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
+
|
|
5
|
+
//#region src/hooks/use-select-keyboard.ts
|
|
6
|
+
/**
|
|
7
|
+
* Hook to handle keyboard navigation for select components
|
|
8
|
+
* Supports cycling through options with arrow keys when closed
|
|
9
|
+
*/
|
|
10
|
+
function useSelectKeyboard({ options, value, onChange, keyboardMode = "dropdown", open, getValue }) {
|
|
11
|
+
return { handleTriggerKeyDown: react.default.useCallback((event) => {
|
|
12
|
+
if (keyboardMode !== "cycle") return;
|
|
13
|
+
if (open) return;
|
|
14
|
+
if (event.key !== "ArrowDown" && event.key !== "ArrowUp") return;
|
|
15
|
+
event.preventDefault();
|
|
16
|
+
event.stopPropagation();
|
|
17
|
+
if (!options || options.length === 0) return;
|
|
18
|
+
const currentIndex = options.findIndex((option) => getValue(option) === value);
|
|
19
|
+
const optionCount = options.length;
|
|
20
|
+
let nextIndex = 0;
|
|
21
|
+
if (event.key === "ArrowDown") nextIndex = currentIndex >= 0 ? (currentIndex + 1) % optionCount : 0;
|
|
22
|
+
else nextIndex = currentIndex >= 0 ? (currentIndex - 1 + optionCount) % optionCount : optionCount - 1;
|
|
23
|
+
const nextValue = getValue(options[nextIndex]);
|
|
24
|
+
if (!nextValue || nextValue === value) return;
|
|
25
|
+
onChange?.(nextValue);
|
|
26
|
+
}, [
|
|
27
|
+
keyboardMode,
|
|
28
|
+
open,
|
|
29
|
+
options,
|
|
30
|
+
value,
|
|
31
|
+
onChange,
|
|
32
|
+
getValue
|
|
33
|
+
]) };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.useSelectKeyboard = useSelectKeyboard;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-select-keyboard.d.ts
|
|
4
|
+
interface UseSelectKeyboardProps<T> {
|
|
5
|
+
options?: T[];
|
|
6
|
+
value: string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
keyboardMode?: 'cycle' | 'dropdown';
|
|
9
|
+
open: boolean;
|
|
10
|
+
getValue: (option: T) => string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Hook to handle keyboard navigation for select components
|
|
14
|
+
* Supports cycling through options with arrow keys when closed
|
|
15
|
+
*/
|
|
16
|
+
declare function useSelectKeyboard<T>({
|
|
17
|
+
options,
|
|
18
|
+
value,
|
|
19
|
+
onChange,
|
|
20
|
+
keyboardMode,
|
|
21
|
+
open,
|
|
22
|
+
getValue
|
|
23
|
+
}: UseSelectKeyboardProps<T>): {
|
|
24
|
+
handleTriggerKeyDown: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { useSelectKeyboard };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-select-keyboard.d.ts
|
|
4
|
+
interface UseSelectKeyboardProps<T> {
|
|
5
|
+
options?: T[];
|
|
6
|
+
value: string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
keyboardMode?: 'cycle' | 'dropdown';
|
|
9
|
+
open: boolean;
|
|
10
|
+
getValue: (option: T) => string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Hook to handle keyboard navigation for select components
|
|
14
|
+
* Supports cycling through options with arrow keys when closed
|
|
15
|
+
*/
|
|
16
|
+
declare function useSelectKeyboard<T>({
|
|
17
|
+
options,
|
|
18
|
+
value,
|
|
19
|
+
onChange,
|
|
20
|
+
keyboardMode,
|
|
21
|
+
open,
|
|
22
|
+
getValue
|
|
23
|
+
}: UseSelectKeyboardProps<T>): {
|
|
24
|
+
handleTriggerKeyDown: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { useSelectKeyboard };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-select-keyboard.ts
|
|
4
|
+
/**
|
|
5
|
+
* Hook to handle keyboard navigation for select components
|
|
6
|
+
* Supports cycling through options with arrow keys when closed
|
|
7
|
+
*/
|
|
8
|
+
function useSelectKeyboard({ options, value, onChange, keyboardMode = "dropdown", open, getValue }) {
|
|
9
|
+
return { handleTriggerKeyDown: React.useCallback((event) => {
|
|
10
|
+
if (keyboardMode !== "cycle") return;
|
|
11
|
+
if (open) return;
|
|
12
|
+
if (event.key !== "ArrowDown" && event.key !== "ArrowUp") return;
|
|
13
|
+
event.preventDefault();
|
|
14
|
+
event.stopPropagation();
|
|
15
|
+
if (!options || options.length === 0) return;
|
|
16
|
+
const currentIndex = options.findIndex((option) => getValue(option) === value);
|
|
17
|
+
const optionCount = options.length;
|
|
18
|
+
let nextIndex = 0;
|
|
19
|
+
if (event.key === "ArrowDown") nextIndex = currentIndex >= 0 ? (currentIndex + 1) % optionCount : 0;
|
|
20
|
+
else nextIndex = currentIndex >= 0 ? (currentIndex - 1 + optionCount) % optionCount : optionCount - 1;
|
|
21
|
+
const nextValue = getValue(options[nextIndex]);
|
|
22
|
+
if (!nextValue || nextValue === value) return;
|
|
23
|
+
onChange?.(nextValue);
|
|
24
|
+
}, [
|
|
25
|
+
keyboardMode,
|
|
26
|
+
open,
|
|
27
|
+
options,
|
|
28
|
+
value,
|
|
29
|
+
onChange,
|
|
30
|
+
getValue
|
|
31
|
+
]) };
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { useSelectKeyboard };
|
package/dist/index.cjs
CHANGED
|
@@ -14,6 +14,8 @@ const require_ColorPickerBase = require('./ColorPickerBase/ColorPickerBase.cjs')
|
|
|
14
14
|
require('./ColorPickerBase/index.cjs');
|
|
15
15
|
const require_ColorPicker = require('./ColorPicker/ColorPicker.cjs');
|
|
16
16
|
require('./ColorPicker/index.cjs');
|
|
17
|
+
const require_use_select_keyboard = require('./hooks/use-select-keyboard.cjs');
|
|
18
|
+
const require_ColorSelect = require('./ColorSelect.cjs');
|
|
17
19
|
const require_Combobox = require('./Combobox.cjs');
|
|
18
20
|
const require_confirmation_dialogs = require('./confirmation-dialog/confirmation-dialogs.cjs');
|
|
19
21
|
const require_DialogProvider = require('./confirmation-dialog/DialogProvider.cjs');
|
|
@@ -68,6 +70,7 @@ exports.CloseButtonAbsolute = require_CloseButtonAbsolute.CloseButtonAbsolute;
|
|
|
68
70
|
exports.CloseButtonRounded = require_CloseButtonRounded.CloseButtonRounded;
|
|
69
71
|
exports.ColorPicker = require_ColorPicker.ColorPicker;
|
|
70
72
|
exports.ColorPickerBase = require_ColorPickerBase.ColorPickerBase;
|
|
73
|
+
exports.ColorSelect = require_ColorSelect.ColorSelect;
|
|
71
74
|
exports.Combobox = require_Combobox.Combobox;
|
|
72
75
|
exports.ContentCard = require_ContentCard.ContentCard;
|
|
73
76
|
exports.DEFAULT_ALERT_DURATION = require_toast.DEFAULT_ALERT_DURATION;
|
|
@@ -105,6 +108,7 @@ exports.toastInfo = require_toast.toastInfo;
|
|
|
105
108
|
exports.toastSuccess = require_toast.toastSuccess;
|
|
106
109
|
exports.toastWarning = require_toast.toastWarning;
|
|
107
110
|
exports.useMediaQuery = require_use_media_query.useMediaQuery;
|
|
111
|
+
exports.useSelectKeyboard = require_use_select_keyboard.useSelectKeyboard;
|
|
108
112
|
exports.useTabsContext = require_TabsContext.useTabsContext;
|
|
109
113
|
Object.defineProperty(exports, 'useTheme', {
|
|
110
114
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -13,6 +13,7 @@ import { CloseButtonAbsolute, PopoverCloseButtonProps } from "./CloseButtonAbsol
|
|
|
13
13
|
import { ColorPickerBaseProps } from "./ColorPickerBase/types.cjs";
|
|
14
14
|
import { ColorPickerBase } from "./ColorPickerBase/ColorPickerBase.cjs";
|
|
15
15
|
import { ColorPicker, ColorPickerProps } from "./ColorPicker/ColorPicker.cjs";
|
|
16
|
+
import { BaseColorSelectProps, ColorSelect, ColorSelectOption } from "./ColorSelect.cjs";
|
|
16
17
|
import { Combobox } from "./Combobox.cjs";
|
|
17
18
|
import { ConfirmationDialogProps } from "./confirmation-dialog/ConfirmationDialog.cjs";
|
|
18
19
|
import { showConfirmDialog } from "./confirmation-dialog/confirmation-dialogs.cjs";
|
|
@@ -24,6 +25,8 @@ import { FileUploadInlineBaseProps, FileUploadInlineProps } from "./file-upload-
|
|
|
24
25
|
import { FileUploadInline } from "./file-upload-inline/FileUploadInline.cjs";
|
|
25
26
|
import "./file-upload-inline/index.cjs";
|
|
26
27
|
import { useMediaQuery } from "./hooks/use-media-query.cjs";
|
|
28
|
+
import { useSelectKeyboard } from "./hooks/use-select-keyboard.cjs";
|
|
29
|
+
import "./hooks/index.cjs";
|
|
27
30
|
import { IconProvider, IconProviderLoader, IconProviderProps } from "./icon-selector/types.cjs";
|
|
28
31
|
import { IconPicker, IconPickerProps, IconPickerVariant } from "./icon-selector/IconPicker.cjs";
|
|
29
32
|
import "./icon-selector/index.cjs";
|
|
@@ -59,4 +62,4 @@ import { ThemeToggle } from "./ThemeToggle.cjs";
|
|
|
59
62
|
import { DEFAULT_ALERT_DURATION, ToastMessage, toast, toastError, toastInfo, toastSuccess, toastWarning } from "./toast/toast.cjs";
|
|
60
63
|
import "./toast/index.cjs";
|
|
61
64
|
import { cn } from "@pixpilot/shadcn";
|
|
62
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, DialogProvider, DialogProviderProps, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, 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, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTabsContext, useTheme };
|
|
65
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, DialogProvider, DialogProviderProps, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, 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, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { ColorPickerBase } from "./ColorPickerBase/ColorPickerBase.js";
|
|
|
15
15
|
import "./ColorPickerBase/index.js";
|
|
16
16
|
import { ColorPicker, ColorPickerProps } from "./ColorPicker/ColorPicker.js";
|
|
17
17
|
import "./ColorPicker/index.js";
|
|
18
|
+
import { BaseColorSelectProps, ColorSelect, ColorSelectOption } from "./ColorSelect.js";
|
|
18
19
|
import { Combobox } from "./Combobox.js";
|
|
19
20
|
import { ConfirmationDialogProps } from "./confirmation-dialog/ConfirmationDialog.js";
|
|
20
21
|
import { showConfirmDialog } from "./confirmation-dialog/confirmation-dialogs.js";
|
|
@@ -26,6 +27,7 @@ import { FileUploadInlineBaseProps, FileUploadInlineProps } from "./file-upload-
|
|
|
26
27
|
import { FileUploadInline } from "./file-upload-inline/FileUploadInline.js";
|
|
27
28
|
import "./file-upload-inline/index.js";
|
|
28
29
|
import { useMediaQuery } from "./hooks/use-media-query.js";
|
|
30
|
+
import { useSelectKeyboard } from "./hooks/use-select-keyboard.js";
|
|
29
31
|
import "./hooks/index.js";
|
|
30
32
|
import { IconProvider, IconProviderLoader, IconProviderProps } from "./icon-selector/types.js";
|
|
31
33
|
import { IconPicker, IconPickerProps, IconPickerVariant } from "./icon-selector/IconPicker.js";
|
|
@@ -62,4 +64,4 @@ import { ThemeToggle } from "./ThemeToggle.js";
|
|
|
62
64
|
import { DEFAULT_ALERT_DURATION, ToastMessage, toast, toastError, toastInfo, toastSuccess, toastWarning } from "./toast/toast.js";
|
|
63
65
|
import "./toast/index.js";
|
|
64
66
|
import { cn } from "@pixpilot/shadcn";
|
|
65
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, DialogProvider, DialogProviderProps, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, 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, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTabsContext, useTheme };
|
|
67
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonLoaderProps, ButtonProps, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerBase, ColorPickerBaseProps, ColorPickerProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, DialogProvider, DialogProviderProps, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoaderProps, LoadingOverlay, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, PopoverCloseButtonProps, RichTextEditor, RichTextEditorProps, 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, ThemeProvider, ThemeProviderProps, ThemeToggle, ToastMessage, ToolbarOption, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,8 @@ import { ColorPickerBase } from "./ColorPickerBase/ColorPickerBase.js";
|
|
|
13
13
|
import "./ColorPickerBase/index.js";
|
|
14
14
|
import { ColorPicker } from "./ColorPicker/ColorPicker.js";
|
|
15
15
|
import "./ColorPicker/index.js";
|
|
16
|
+
import { useSelectKeyboard } from "./hooks/use-select-keyboard.js";
|
|
17
|
+
import { ColorSelect } from "./ColorSelect.js";
|
|
16
18
|
import { Combobox } from "./Combobox.js";
|
|
17
19
|
import { showConfirmDialog } from "./confirmation-dialog/confirmation-dialogs.js";
|
|
18
20
|
import { DialogProvider } from "./confirmation-dialog/DialogProvider.js";
|
|
@@ -57,4 +59,4 @@ import { DEFAULT_ALERT_DURATION, toast, toastError, toastInfo, toastSuccess, toa
|
|
|
57
59
|
import "./toast/index.js";
|
|
58
60
|
import { cn } from "@pixpilot/shadcn";
|
|
59
61
|
|
|
60
|
-
export { AbsoluteFill, Alert, AvatarUpload, Button, CircleLoader, CloseButtonAbsolute, CloseButtonRounded, ColorPicker, ColorPickerBase, Combobox, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DialogProvider, FileUpload, FileUploadInline, IconPicker, Input, Layout, LayoutFooter, LayoutHeader, LayoutMain, LoadingOverlay, Pagination, RichTextEditor, ScaledPreview, Select, Slider, SliderInput, SliderSelect, Tabs, TabsContent, TabsContext, TabsList, TabsTrigger, TagsInput, ThemeProvider, ThemeToggle, cn, showConfirmDialog, toast, toastError, toastInfo, toastSuccess, toastWarning, useMediaQuery, useTabsContext, useTheme };
|
|
62
|
+
export { AbsoluteFill, Alert, AvatarUpload, Button, CircleLoader, CloseButtonAbsolute, CloseButtonRounded, ColorPicker, ColorPickerBase, ColorSelect, Combobox, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DialogProvider, FileUpload, FileUploadInline, IconPicker, Input, Layout, LayoutFooter, LayoutHeader, LayoutMain, LoadingOverlay, Pagination, RichTextEditor, ScaledPreview, Select, Slider, SliderInput, SliderSelect, Tabs, TabsContent, TabsContext, TabsList, TabsTrigger, TagsInput, ThemeProvider, ThemeToggle, cn, showConfirmDialog, 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_runtime9 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_runtime9.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Input, InputProps$1 as InputProps };
|
package/dist/input/Input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputProps } from "@pixpilot/shadcn";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/input/Input.d.ts
|
|
6
6
|
type InputProps$1 = InputProps & {
|
|
@@ -10,6 +10,6 @@ type InputProps$1 = InputProps & {
|
|
|
10
10
|
prefixClassName?: string;
|
|
11
11
|
suffixClassName?: string;
|
|
12
12
|
};
|
|
13
|
-
declare function Input$1(props: InputProps$1):
|
|
13
|
+
declare function Input$1(props: InputProps$1): react_jsx_runtime9.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Input$1 as Input, InputProps$1 as InputProps };
|
package/dist/tags-input.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommandOptionListItem } from "./CommandOptionList.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/tags-input.d.ts
|
|
5
5
|
interface TagsInputProps {
|
|
@@ -55,6 +55,6 @@ declare function TagsInput({
|
|
|
55
55
|
addOnPaste,
|
|
56
56
|
addOnTab,
|
|
57
57
|
onValidate
|
|
58
|
-
}: TagsInputProps):
|
|
58
|
+
}: TagsInputProps): react_jsx_runtime5.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { TagsInput, TagsInputProps };
|
package/dist/tags-input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommandOptionListItem } from "./CommandOptionList.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/tags-input.d.ts
|
|
5
5
|
interface TagsInputProps {
|
|
@@ -55,6 +55,6 @@ declare function TagsInput({
|
|
|
55
55
|
addOnPaste,
|
|
56
56
|
addOnTab,
|
|
57
57
|
onValidate
|
|
58
|
-
}: TagsInputProps):
|
|
58
|
+
}: TagsInputProps): react_jsx_runtime5.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { TagsInput, TagsInputProps };
|
package/package.json
CHANGED