@pixpilot/shadcn-ui 1.32.0 → 1.33.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/Button.d.cts +2 -2
- package/dist/ButtonExtended.d.cts +2 -2
- package/dist/Card.d.cts +3 -3
- package/dist/ColorSelect.d.cts +2 -2
- package/dist/ContentCard.d.cts +2 -2
- package/dist/DatePicker.d.cts +2 -2
- package/dist/confirmation-dialog/confirmation-dialogs.cjs +3 -5
- package/dist/confirmation-dialog/confirmation-dialogs.js +3 -3
- package/dist/confirmation-dialog/index.cjs +0 -1
- package/dist/confirmation-dialog/index.d.cts +1 -2
- package/dist/confirmation-dialog/index.d.ts +1 -2
- package/dist/confirmation-dialog/index.js +0 -1
- package/dist/dialog/Dialog.cjs +4 -4
- package/dist/dialog/Dialog.d.cts +5 -5
- package/dist/dialog/Dialog.js +4 -4
- package/dist/{confirmation-dialog → dialog-provider}/DialogProvider.cjs +1 -1
- package/dist/{confirmation-dialog → dialog-provider}/DialogProvider.d.cts +1 -1
- package/dist/{confirmation-dialog → dialog-provider}/DialogProvider.d.ts +1 -1
- package/dist/{confirmation-dialog → dialog-provider}/DialogProvider.js +1 -1
- package/dist/dialog-provider/dialog-registry.cjs +85 -0
- package/dist/dialog-provider/dialog-registry.d.cts +124 -0
- package/dist/dialog-provider/dialog-registry.d.ts +124 -0
- package/dist/dialog-provider/dialog-registry.js +80 -0
- package/dist/dialog-provider/index.cjs +4 -0
- package/dist/dialog-provider/index.d.cts +4 -0
- package/dist/dialog-provider/index.d.ts +4 -0
- package/dist/dialog-provider/index.js +4 -0
- package/dist/dialog-provider/register-dialog.cjs +41 -0
- package/dist/dialog-provider/register-dialog.d.cts +89 -0
- package/dist/dialog-provider/register-dialog.d.ts +89 -0
- package/dist/dialog-provider/register-dialog.js +39 -0
- package/dist/dialog-provider/show-dialog.cjs +30 -0
- package/dist/dialog-provider/show-dialog.d.cts +24 -0
- package/dist/dialog-provider/show-dialog.d.ts +24 -0
- package/dist/dialog-provider/show-dialog.js +28 -0
- package/dist/file-upload/FileUpload.d.cts +2 -2
- package/dist/index.cjs +11 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +6 -2
- package/dist/input/Input.d.cts +2 -2
- package/dist/tags-input/TagsInput.d.cts +2 -2
- package/dist/tags-input/TagsInput.d.ts +2 -2
- package/dist/tags-input/TagsInputInline.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeDropdown.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchInside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchOutside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.ts +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { registerDialog } from "./register-dialog.js";
|
|
2
|
+
import { showDialog } from "./show-dialog.js";
|
|
3
|
+
import NiceModal, { unregister } from "@ebay/nice-modal-react";
|
|
4
|
+
|
|
5
|
+
//#region src/dialog-provider/dialog-registry.ts
|
|
6
|
+
/**
|
|
7
|
+
* Hides a registered dialog by id.
|
|
8
|
+
*
|
|
9
|
+
* Use this when the caller only knows the dialog id. If you already have the
|
|
10
|
+
* controller returned by `dialog.register(...)`, prefer `controller.hide()`.
|
|
11
|
+
*
|
|
12
|
+
* @param id - Dialog id that was previously registered.
|
|
13
|
+
* @returns A promise from NiceModal that resolves after the hide action is
|
|
14
|
+
* dispatched.
|
|
15
|
+
*
|
|
16
|
+
* Usage:
|
|
17
|
+
* ```ts
|
|
18
|
+
* await hideDialog('project-dialog');
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
async function hideDialog(id) {
|
|
22
|
+
return NiceModal.hide(id);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Removes a registered dialog instance from the NiceModal render tree by id.
|
|
26
|
+
*
|
|
27
|
+
* This does not unregister the dialog component; it only removes the mounted
|
|
28
|
+
* instance from the modal tree.
|
|
29
|
+
*
|
|
30
|
+
* @param id - Dialog id that was previously registered.
|
|
31
|
+
* Usage:
|
|
32
|
+
* ```ts
|
|
33
|
+
* removeDialog('project-dialog');
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
function removeDialog(id) {
|
|
37
|
+
NiceModal.remove(id);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Unregisters a dialog component by id.
|
|
41
|
+
*
|
|
42
|
+
* Use this when a registered dialog should no longer be available through
|
|
43
|
+
* `showDialog(...)` or `dialog.show(...)`.
|
|
44
|
+
*
|
|
45
|
+
* @param id - Dialog id that was previously registered.
|
|
46
|
+
* Usage:
|
|
47
|
+
* ```ts
|
|
48
|
+
* unregisterDialog('project-dialog');
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
function unregisterDialog(id) {
|
|
52
|
+
unregister(id);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Convenience registry facade for dialog operations.
|
|
56
|
+
*
|
|
57
|
+
* Use this when you prefer a single import with discoverable methods instead of
|
|
58
|
+
* importing `registerDialog`, `showDialog`, `hideDialog`, `removeDialog`, and
|
|
59
|
+
* `unregisterDialog` separately.
|
|
60
|
+
*
|
|
61
|
+
* @returns An object of dialog helper functions.
|
|
62
|
+
*
|
|
63
|
+
* Usage:
|
|
64
|
+
* ```ts
|
|
65
|
+
* const projectDialog = dialog.register('project-dialog', ProjectDialog);
|
|
66
|
+
* await projectDialog.show({ projectId: 'project-1' });
|
|
67
|
+
* await dialog.show('project-dialog', { projectId: 'project-2' });
|
|
68
|
+
* dialog.unregister('project-dialog');
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
const dialog = {
|
|
72
|
+
hide: hideDialog,
|
|
73
|
+
register: registerDialog,
|
|
74
|
+
remove: removeDialog,
|
|
75
|
+
show: showDialog,
|
|
76
|
+
unregister: unregisterDialog
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
export { dialog, hideDialog, removeDialog, unregisterDialog };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RegisteredDialog, RegisteredDialogShowProps, registerDialog } from "./register-dialog.cjs";
|
|
2
|
+
import { ShowDialogProps, showDialog } from "./show-dialog.cjs";
|
|
3
|
+
import { DialogRegistry, dialog, hideDialog, removeDialog, unregisterDialog } from "./dialog-registry.cjs";
|
|
4
|
+
import { DialogProvider, DialogProviderProps } from "./DialogProvider.cjs";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RegisteredDialog, RegisteredDialogShowProps, registerDialog } from "./register-dialog.js";
|
|
2
|
+
import { ShowDialogProps, showDialog } from "./show-dialog.js";
|
|
3
|
+
import { DialogRegistry, dialog, hideDialog, removeDialog, unregisterDialog } from "./dialog-registry.js";
|
|
4
|
+
import { DialogProvider, DialogProviderProps } from "./DialogProvider.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __ebay_nice_modal_react = require("@ebay/nice-modal-react");
|
|
3
|
+
__ebay_nice_modal_react = require_rolldown_runtime.__toESM(__ebay_nice_modal_react);
|
|
4
|
+
|
|
5
|
+
//#region src/dialog-provider/register-dialog.ts
|
|
6
|
+
/**
|
|
7
|
+
* Registers a NiceModal dialog component and returns a typed controller for it.
|
|
8
|
+
*
|
|
9
|
+
* Use this when a dialog has a known component and you want type-safe props for
|
|
10
|
+
* default values and `show(...)` calls.
|
|
11
|
+
*
|
|
12
|
+
* @param id - Stable dialog id used by NiceModal and by generic `showDialog`.
|
|
13
|
+
* @param component - Dialog component, usually created with `NiceModal.create`.
|
|
14
|
+
* @param defaultProps - Optional component props registered as defaults.
|
|
15
|
+
* @returns A controller with `id`, `show`, `hide`, and `remove` helpers.
|
|
16
|
+
*
|
|
17
|
+
* Usage:
|
|
18
|
+
* ```ts
|
|
19
|
+
* const projectDialog = registerDialog('project-dialog', ProjectDialog, {
|
|
20
|
+
* mode: 'edit',
|
|
21
|
+
* });
|
|
22
|
+
*
|
|
23
|
+
* await projectDialog.show({
|
|
24
|
+
* projectId: 'project-1',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
function registerDialog(id, component, defaultProps) {
|
|
29
|
+
__ebay_nice_modal_react.default.register(id, component, defaultProps);
|
|
30
|
+
return {
|
|
31
|
+
id,
|
|
32
|
+
show: async (props) => __ebay_nice_modal_react.default.show(id, props),
|
|
33
|
+
hide: async () => __ebay_nice_modal_react.default.hide(id),
|
|
34
|
+
remove: () => {
|
|
35
|
+
__ebay_nice_modal_react.default.remove(id);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.registerDialog = registerDialog;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NiceModalHocProps } from "@ebay/nice-modal-react";
|
|
3
|
+
|
|
4
|
+
//#region src/dialog-provider/register-dialog.d.ts
|
|
5
|
+
type NiceModalInjectedKeys = keyof NiceModalHocProps;
|
|
6
|
+
type Pretty<TValue> = { [TKey in keyof TValue]: TValue[TKey] } & {};
|
|
7
|
+
type OptionalNiceModalProps<TProps extends object> = Pretty<Omit<TProps, Extract<keyof TProps, NiceModalInjectedKeys>> & Partial<Pick<TProps, Extract<keyof TProps, NiceModalInjectedKeys>>>>;
|
|
8
|
+
type DefaultedDialogProps<TProps extends object, TDefaultProps extends Partial<TProps>> = Pretty<Omit<TProps, keyof TDefaultProps> & Partial<Pick<TProps, Extract<keyof TProps, keyof TDefaultProps>>>>;
|
|
9
|
+
type EmptyDialogDefaultProps = Record<never, never>;
|
|
10
|
+
type RegisteredDialogShowProps<TProps extends object, TDefaultProps extends Partial<OptionalNiceModalProps<TProps>> = EmptyDialogDefaultProps> = DefaultedDialogProps<OptionalNiceModalProps<TProps>, TDefaultProps>;
|
|
11
|
+
interface RegisteredDialog<TProps extends object, TDefaultProps extends Partial<OptionalNiceModalProps<TProps>> = EmptyDialogDefaultProps> {
|
|
12
|
+
/**
|
|
13
|
+
* The stable NiceModal id used to register, show, hide, and remove this dialog.
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```ts
|
|
17
|
+
* const editProjectDialog = registerDialog('edit-project', EditProjectDialog);
|
|
18
|
+
* console.log(editProjectDialog.id);
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Opens the registered dialog and passes props to the component.
|
|
24
|
+
*
|
|
25
|
+
* Props are inferred from the registered component. Props supplied as
|
|
26
|
+
* `defaultProps` in `registerDialog` become optional when calling `show`.
|
|
27
|
+
*
|
|
28
|
+
* @returns A promise that resolves with the value passed to `modal.resolve(...)`
|
|
29
|
+
* inside the dialog component.
|
|
30
|
+
*
|
|
31
|
+
* Usage:
|
|
32
|
+
* ```ts
|
|
33
|
+
* const confirmed = await confirmDialog.show<boolean>({
|
|
34
|
+
* title: 'Delete project?',
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
show: <TResult = unknown>(props?: RegisteredDialogShowProps<TProps, TDefaultProps>) => Promise<TResult>;
|
|
39
|
+
/**
|
|
40
|
+
* Hides the registered dialog without resolving the `show` promise for you.
|
|
41
|
+
*
|
|
42
|
+
* @returns A promise from NiceModal that resolves after the hide action is
|
|
43
|
+
* dispatched.
|
|
44
|
+
*
|
|
45
|
+
* Usage:
|
|
46
|
+
* ```ts
|
|
47
|
+
* await editProjectDialog.hide();
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
hide: <TResult = unknown>() => Promise<TResult>;
|
|
51
|
+
/**
|
|
52
|
+
* Removes the registered dialog instance from the NiceModal render tree.
|
|
53
|
+
*
|
|
54
|
+
* The dialog id remains registered, so the same controller can show it again.
|
|
55
|
+
*
|
|
56
|
+
* @returns Nothing.
|
|
57
|
+
*
|
|
58
|
+
* Usage:
|
|
59
|
+
* ```ts
|
|
60
|
+
* editProjectDialog.remove();
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
remove: () => void;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Registers a NiceModal dialog component and returns a typed controller for it.
|
|
67
|
+
*
|
|
68
|
+
* Use this when a dialog has a known component and you want type-safe props for
|
|
69
|
+
* default values and `show(...)` calls.
|
|
70
|
+
*
|
|
71
|
+
* @param id - Stable dialog id used by NiceModal and by generic `showDialog`.
|
|
72
|
+
* @param component - Dialog component, usually created with `NiceModal.create`.
|
|
73
|
+
* @param defaultProps - Optional component props registered as defaults.
|
|
74
|
+
* @returns A controller with `id`, `show`, `hide`, and `remove` helpers.
|
|
75
|
+
*
|
|
76
|
+
* Usage:
|
|
77
|
+
* ```ts
|
|
78
|
+
* const projectDialog = registerDialog('project-dialog', ProjectDialog, {
|
|
79
|
+
* mode: 'edit',
|
|
80
|
+
* });
|
|
81
|
+
*
|
|
82
|
+
* await projectDialog.show({
|
|
83
|
+
* projectId: 'project-1',
|
|
84
|
+
* });
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
declare function registerDialog<TProps extends object, TDefaultProps extends Partial<OptionalNiceModalProps<TProps>> = EmptyDialogDefaultProps>(id: string, component: React.FC<TProps>, defaultProps?: TDefaultProps): RegisteredDialog<TProps, TDefaultProps>;
|
|
88
|
+
//#endregion
|
|
89
|
+
export { RegisteredDialog, RegisteredDialogShowProps, registerDialog };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NiceModalHocProps } from "@ebay/nice-modal-react";
|
|
3
|
+
|
|
4
|
+
//#region src/dialog-provider/register-dialog.d.ts
|
|
5
|
+
type NiceModalInjectedKeys = keyof NiceModalHocProps;
|
|
6
|
+
type Pretty<TValue> = { [TKey in keyof TValue]: TValue[TKey] } & {};
|
|
7
|
+
type OptionalNiceModalProps<TProps extends object> = Pretty<Omit<TProps, Extract<keyof TProps, NiceModalInjectedKeys>> & Partial<Pick<TProps, Extract<keyof TProps, NiceModalInjectedKeys>>>>;
|
|
8
|
+
type DefaultedDialogProps<TProps extends object, TDefaultProps extends Partial<TProps>> = Pretty<Omit<TProps, keyof TDefaultProps> & Partial<Pick<TProps, Extract<keyof TProps, keyof TDefaultProps>>>>;
|
|
9
|
+
type EmptyDialogDefaultProps = Record<never, never>;
|
|
10
|
+
type RegisteredDialogShowProps<TProps extends object, TDefaultProps extends Partial<OptionalNiceModalProps<TProps>> = EmptyDialogDefaultProps> = DefaultedDialogProps<OptionalNiceModalProps<TProps>, TDefaultProps>;
|
|
11
|
+
interface RegisteredDialog<TProps extends object, TDefaultProps extends Partial<OptionalNiceModalProps<TProps>> = EmptyDialogDefaultProps> {
|
|
12
|
+
/**
|
|
13
|
+
* The stable NiceModal id used to register, show, hide, and remove this dialog.
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```ts
|
|
17
|
+
* const editProjectDialog = registerDialog('edit-project', EditProjectDialog);
|
|
18
|
+
* console.log(editProjectDialog.id);
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Opens the registered dialog and passes props to the component.
|
|
24
|
+
*
|
|
25
|
+
* Props are inferred from the registered component. Props supplied as
|
|
26
|
+
* `defaultProps` in `registerDialog` become optional when calling `show`.
|
|
27
|
+
*
|
|
28
|
+
* @returns A promise that resolves with the value passed to `modal.resolve(...)`
|
|
29
|
+
* inside the dialog component.
|
|
30
|
+
*
|
|
31
|
+
* Usage:
|
|
32
|
+
* ```ts
|
|
33
|
+
* const confirmed = await confirmDialog.show<boolean>({
|
|
34
|
+
* title: 'Delete project?',
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
show: <TResult = unknown>(props?: RegisteredDialogShowProps<TProps, TDefaultProps>) => Promise<TResult>;
|
|
39
|
+
/**
|
|
40
|
+
* Hides the registered dialog without resolving the `show` promise for you.
|
|
41
|
+
*
|
|
42
|
+
* @returns A promise from NiceModal that resolves after the hide action is
|
|
43
|
+
* dispatched.
|
|
44
|
+
*
|
|
45
|
+
* Usage:
|
|
46
|
+
* ```ts
|
|
47
|
+
* await editProjectDialog.hide();
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
hide: <TResult = unknown>() => Promise<TResult>;
|
|
51
|
+
/**
|
|
52
|
+
* Removes the registered dialog instance from the NiceModal render tree.
|
|
53
|
+
*
|
|
54
|
+
* The dialog id remains registered, so the same controller can show it again.
|
|
55
|
+
*
|
|
56
|
+
* @returns Nothing.
|
|
57
|
+
*
|
|
58
|
+
* Usage:
|
|
59
|
+
* ```ts
|
|
60
|
+
* editProjectDialog.remove();
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
remove: () => void;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Registers a NiceModal dialog component and returns a typed controller for it.
|
|
67
|
+
*
|
|
68
|
+
* Use this when a dialog has a known component and you want type-safe props for
|
|
69
|
+
* default values and `show(...)` calls.
|
|
70
|
+
*
|
|
71
|
+
* @param id - Stable dialog id used by NiceModal and by generic `showDialog`.
|
|
72
|
+
* @param component - Dialog component, usually created with `NiceModal.create`.
|
|
73
|
+
* @param defaultProps - Optional component props registered as defaults.
|
|
74
|
+
* @returns A controller with `id`, `show`, `hide`, and `remove` helpers.
|
|
75
|
+
*
|
|
76
|
+
* Usage:
|
|
77
|
+
* ```ts
|
|
78
|
+
* const projectDialog = registerDialog('project-dialog', ProjectDialog, {
|
|
79
|
+
* mode: 'edit',
|
|
80
|
+
* });
|
|
81
|
+
*
|
|
82
|
+
* await projectDialog.show({
|
|
83
|
+
* projectId: 'project-1',
|
|
84
|
+
* });
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
declare function registerDialog<TProps extends object, TDefaultProps extends Partial<OptionalNiceModalProps<TProps>> = EmptyDialogDefaultProps>(id: string, component: React.FC<TProps>, defaultProps?: TDefaultProps): RegisteredDialog<TProps, TDefaultProps>;
|
|
88
|
+
//#endregion
|
|
89
|
+
export { RegisteredDialog, RegisteredDialogShowProps, registerDialog };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import NiceModal from "@ebay/nice-modal-react";
|
|
2
|
+
|
|
3
|
+
//#region src/dialog-provider/register-dialog.ts
|
|
4
|
+
/**
|
|
5
|
+
* Registers a NiceModal dialog component and returns a typed controller for it.
|
|
6
|
+
*
|
|
7
|
+
* Use this when a dialog has a known component and you want type-safe props for
|
|
8
|
+
* default values and `show(...)` calls.
|
|
9
|
+
*
|
|
10
|
+
* @param id - Stable dialog id used by NiceModal and by generic `showDialog`.
|
|
11
|
+
* @param component - Dialog component, usually created with `NiceModal.create`.
|
|
12
|
+
* @param defaultProps - Optional component props registered as defaults.
|
|
13
|
+
* @returns A controller with `id`, `show`, `hide`, and `remove` helpers.
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```ts
|
|
17
|
+
* const projectDialog = registerDialog('project-dialog', ProjectDialog, {
|
|
18
|
+
* mode: 'edit',
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* await projectDialog.show({
|
|
22
|
+
* projectId: 'project-1',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
function registerDialog(id, component, defaultProps) {
|
|
27
|
+
NiceModal.register(id, component, defaultProps);
|
|
28
|
+
return {
|
|
29
|
+
id,
|
|
30
|
+
show: async (props) => NiceModal.show(id, props),
|
|
31
|
+
hide: async () => NiceModal.hide(id),
|
|
32
|
+
remove: () => {
|
|
33
|
+
NiceModal.remove(id);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { registerDialog };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __ebay_nice_modal_react = require("@ebay/nice-modal-react");
|
|
3
|
+
__ebay_nice_modal_react = require_rolldown_runtime.__toESM(__ebay_nice_modal_react);
|
|
4
|
+
|
|
5
|
+
//#region src/dialog-provider/show-dialog.ts
|
|
6
|
+
/**
|
|
7
|
+
* Opens a registered dialog by id when the caller does not have its typed controller.
|
|
8
|
+
*
|
|
9
|
+
* This helper is intentionally generic: because it only receives a string id, it
|
|
10
|
+
* cannot infer the component prop type. Prefer `registerDialog(...).show(...)`
|
|
11
|
+
* when the dialog component is available in the same module.
|
|
12
|
+
*
|
|
13
|
+
* @param id - Dialog id that was previously registered with `registerDialog`.
|
|
14
|
+
* @param props - Optional props forwarded to the registered dialog component.
|
|
15
|
+
* @returns A promise that resolves with the value passed to `modal.resolve(...)`
|
|
16
|
+
* inside the dialog component.
|
|
17
|
+
*
|
|
18
|
+
* Usage:
|
|
19
|
+
* ```ts
|
|
20
|
+
* await showDialog('project-dialog', {
|
|
21
|
+
* projectId: 'project-1',
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
async function showDialog(id, props) {
|
|
26
|
+
return __ebay_nice_modal_react.default.show(id, props);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.showDialog = showDialog;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/dialog-provider/show-dialog.d.ts
|
|
2
|
+
type ShowDialogProps = Record<string, unknown>;
|
|
3
|
+
/**
|
|
4
|
+
* Opens a registered dialog by id when the caller does not have its typed controller.
|
|
5
|
+
*
|
|
6
|
+
* This helper is intentionally generic: because it only receives a string id, it
|
|
7
|
+
* cannot infer the component prop type. Prefer `registerDialog(...).show(...)`
|
|
8
|
+
* when the dialog component is available in the same module.
|
|
9
|
+
*
|
|
10
|
+
* @param id - Dialog id that was previously registered with `registerDialog`.
|
|
11
|
+
* @param props - Optional props forwarded to the registered dialog component.
|
|
12
|
+
* @returns A promise that resolves with the value passed to `modal.resolve(...)`
|
|
13
|
+
* inside the dialog component.
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```ts
|
|
17
|
+
* await showDialog('project-dialog', {
|
|
18
|
+
* projectId: 'project-1',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function showDialog<TResult = unknown>(id: string, props?: ShowDialogProps): Promise<TResult>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ShowDialogProps, showDialog };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/dialog-provider/show-dialog.d.ts
|
|
2
|
+
type ShowDialogProps = Record<string, unknown>;
|
|
3
|
+
/**
|
|
4
|
+
* Opens a registered dialog by id when the caller does not have its typed controller.
|
|
5
|
+
*
|
|
6
|
+
* This helper is intentionally generic: because it only receives a string id, it
|
|
7
|
+
* cannot infer the component prop type. Prefer `registerDialog(...).show(...)`
|
|
8
|
+
* when the dialog component is available in the same module.
|
|
9
|
+
*
|
|
10
|
+
* @param id - Dialog id that was previously registered with `registerDialog`.
|
|
11
|
+
* @param props - Optional props forwarded to the registered dialog component.
|
|
12
|
+
* @returns A promise that resolves with the value passed to `modal.resolve(...)`
|
|
13
|
+
* inside the dialog component.
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```ts
|
|
17
|
+
* await showDialog('project-dialog', {
|
|
18
|
+
* projectId: 'project-1',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function showDialog<TResult = unknown>(id: string, props?: ShowDialogProps): Promise<TResult>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ShowDialogProps, showDialog };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import NiceModal from "@ebay/nice-modal-react";
|
|
2
|
+
|
|
3
|
+
//#region src/dialog-provider/show-dialog.ts
|
|
4
|
+
/**
|
|
5
|
+
* Opens a registered dialog by id when the caller does not have its typed controller.
|
|
6
|
+
*
|
|
7
|
+
* This helper is intentionally generic: because it only receives a string id, it
|
|
8
|
+
* cannot infer the component prop type. Prefer `registerDialog(...).show(...)`
|
|
9
|
+
* when the dialog component is available in the same module.
|
|
10
|
+
*
|
|
11
|
+
* @param id - Dialog id that was previously registered with `registerDialog`.
|
|
12
|
+
* @param props - Optional props forwarded to the registered dialog component.
|
|
13
|
+
* @returns A promise that resolves with the value passed to `modal.resolve(...)`
|
|
14
|
+
* inside the dialog component.
|
|
15
|
+
*
|
|
16
|
+
* Usage:
|
|
17
|
+
* ```ts
|
|
18
|
+
* await showDialog('project-dialog', {
|
|
19
|
+
* projectId: 'project-1',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
async function showDialog(id, props) {
|
|
24
|
+
return NiceModal.show(id, props);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { showDialog };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileUploadProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 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_runtime10.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { FileUpload };
|
package/dist/index.cjs
CHANGED
|
@@ -35,8 +35,12 @@ require('./ColorPicker/index.cjs');
|
|
|
35
35
|
const require_use_select_keyboard = require('./hooks/use-select-keyboard.cjs');
|
|
36
36
|
const require_ColorSelect = require('./ColorSelect.cjs');
|
|
37
37
|
const require_Combobox = require('./Combobox.cjs');
|
|
38
|
+
const require_register_dialog = require('./dialog-provider/register-dialog.cjs');
|
|
39
|
+
const require_show_dialog = require('./dialog-provider/show-dialog.cjs');
|
|
40
|
+
const require_dialog_registry = require('./dialog-provider/dialog-registry.cjs');
|
|
41
|
+
const require_DialogProvider = require('./dialog-provider/DialogProvider.cjs');
|
|
42
|
+
require('./dialog-provider/index.cjs');
|
|
38
43
|
const require_confirmation_dialogs = require('./confirmation-dialog/confirmation-dialogs.cjs');
|
|
39
|
-
const require_DialogProvider = require('./confirmation-dialog/DialogProvider.cjs');
|
|
40
44
|
require('./confirmation-dialog/index.cjs');
|
|
41
45
|
const require_ContentCard = require('./ContentCard.cjs');
|
|
42
46
|
const require_DatePicker = require('./DatePicker.cjs');
|
|
@@ -208,11 +212,17 @@ Object.defineProperty(exports, 'ToggleGroupItem', {
|
|
|
208
212
|
}
|
|
209
213
|
});
|
|
210
214
|
exports.cn = __pixpilot_shadcn.cn;
|
|
215
|
+
exports.dialog = require_dialog_registry.dialog;
|
|
211
216
|
exports.getId = require_get_id.getId;
|
|
217
|
+
exports.hideDialog = require_dialog_registry.hideDialog;
|
|
212
218
|
exports.isSvgMarkupString = require_svg.isSvgMarkupString;
|
|
219
|
+
exports.registerDialog = require_register_dialog.registerDialog;
|
|
220
|
+
exports.removeDialog = require_dialog_registry.removeDialog;
|
|
213
221
|
exports.showConfirmDialog = require_confirmation_dialogs.showConfirmDialog;
|
|
222
|
+
exports.showDialog = require_show_dialog.showDialog;
|
|
214
223
|
exports.svgMarkupToMaskUrl = require_svg.svgMarkupToMaskUrl;
|
|
215
224
|
exports.toast = require_toast.toast;
|
|
225
|
+
exports.unregisterDialog = require_dialog_registry.unregisterDialog;
|
|
216
226
|
exports.useColorPickerContext = require_color_picker_context.useColorPickerContext;
|
|
217
227
|
exports.useDelayedVisibility = require_use_delayed_visibility.useDelayedVisibility;
|
|
218
228
|
exports.useMediaQuery = require_use_media_query.useMediaQuery;
|
package/dist/index.d.cts
CHANGED
|
@@ -36,12 +36,16 @@ import { BaseColorSelectProps, ColorSelect, ColorSelectOption } from "./ColorSel
|
|
|
36
36
|
import { Combobox } from "./Combobox.cjs";
|
|
37
37
|
import { ConfirmationDialogProps, ConfirmationDialogVariant } from "./confirmation-dialog/ConfirmationDialog.cjs";
|
|
38
38
|
import { showConfirmDialog } from "./confirmation-dialog/confirmation-dialogs.cjs";
|
|
39
|
-
import { DialogProvider, DialogProviderProps } from "./confirmation-dialog/DialogProvider.cjs";
|
|
40
39
|
import "./confirmation-dialog/index.cjs";
|
|
41
40
|
import { ContentCard } from "./ContentCard.cjs";
|
|
42
41
|
import { DatePicker, DatePickerProps } from "./DatePicker.cjs";
|
|
43
42
|
import { DialogBody, DialogClose, DialogContent, DialogContentProps, DialogFooter, DialogHeader } from "./dialog/Dialog.cjs";
|
|
44
43
|
import { Dialog, DialogDescription, DialogTitle, DialogTrigger } from "./dialog/index.cjs";
|
|
44
|
+
import { RegisteredDialog, RegisteredDialogShowProps, registerDialog } from "./dialog-provider/register-dialog.cjs";
|
|
45
|
+
import { ShowDialogProps, showDialog } from "./dialog-provider/show-dialog.cjs";
|
|
46
|
+
import { DialogRegistry, dialog, hideDialog, removeDialog, unregisterDialog } from "./dialog-provider/dialog-registry.cjs";
|
|
47
|
+
import { DialogProvider, DialogProviderProps } from "./dialog-provider/DialogProvider.cjs";
|
|
48
|
+
import "./dialog-provider/index.cjs";
|
|
45
49
|
import { FileUploadRootItem, FileUploadRootItemProps } from "./file-upload-root/FileUploadRootItem.cjs";
|
|
46
50
|
import { FileUploadRootProps, FileUploadRootPropsBaseProps } from "./file-upload-root/types.cjs";
|
|
47
51
|
import { FileUploadRoot } from "./file-upload-root/FileUploadRoot.cjs";
|
|
@@ -104,4 +108,4 @@ import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, T
|
|
|
104
108
|
import { getId } from "./utils/get-id.cjs";
|
|
105
109
|
import { isSvgMarkupString, svgMarkupToMaskUrl } from "./utils/svg.cjs";
|
|
106
110
|
import { cn } from "@pixpilot/shadcn";
|
|
107
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertToastProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonExtended, ButtonExtendedLoaderProps, ButtonExtendedProps, ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, ButtonProps, COLOR_PICKER_PALETTE_BUTTON_CLASSES, COMMON_COLORS, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerButton, ColorPickerButtonProps, ColorPickerColorPalette, ColorPickerColorPaletteProps, ColorPickerCompactControls, ColorPickerCompactControlsProps, ColorPickerContent, ColorPickerContentProps, ColorPickerContext, Consumer as ColorPickerContextContextConsumer, Provider as ColorPickerContextContextProvider, ColorPickerContextStates, ColorPickerControls, ColorPickerControlsProps, ColorPickerEyeDropper, ColorPickerFormatControls, ColorPickerFormatControlsProps, ColorPickerFormatInput, ColorPickerFormatInputProps, ColorPickerFormatSelect, ColorPickerFullControls, ColorPickerFullControlsProps, ColorPickerHueSlider, ColorPickerInput, ColorPickerInputProps, ColorPickerPaletteButton, ColorPickerPaletteButtonProps, ColorPickerPaletteSwatch, ColorPickerProps, ColorPickerResetOptions, ColorPickerRoot, ColorPickerRootProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ConfirmationDialogVariant, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadCallbacks, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, FileUploadRoot, FileUploadRootItem, FileUploadRootItemProps, FileUploadRootProps, FileUploadRootPropsBaseProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoadingOverlay, LoadingOverlayProps, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverContentUnstyled, PopoverTrigger, PresetColor, Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps, 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, TagsInputInline, TagsInputInlineItem, TagsInputInlineProps, TagsInputProps, ThemeModeDropdown, ThemeModeDropdownProps, ThemeModeSwitchInside, ThemeModeSwitchInsideProps, ThemeModeSwitchInsideSize, ThemeModeSwitchOutside, ThemeModeSwitchOutsideProps, ThemeModeToggleButton, ThemeModeToggleButtonProps, ThemeProvider, ThemeProviderProps, ToastFunction, ToastMessage, Toaster, ToggleButton, ToggleButtonProps, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupValue, ToolbarItems, UseDelayedVisibilityOptions, UseDelayedVisibilityResult, cn, getId, isSvgMarkupString, showConfirmDialog, svgMarkupToMaskUrl, toast, useColorPickerContext, useDelayedVisibility, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
|
111
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertToastProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonExtended, ButtonExtendedLoaderProps, ButtonExtendedProps, ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, ButtonProps, COLOR_PICKER_PALETTE_BUTTON_CLASSES, COMMON_COLORS, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerButton, ColorPickerButtonProps, ColorPickerColorPalette, ColorPickerColorPaletteProps, ColorPickerCompactControls, ColorPickerCompactControlsProps, ColorPickerContent, ColorPickerContentProps, ColorPickerContext, Consumer as ColorPickerContextContextConsumer, Provider as ColorPickerContextContextProvider, ColorPickerContextStates, ColorPickerControls, ColorPickerControlsProps, ColorPickerEyeDropper, ColorPickerFormatControls, ColorPickerFormatControlsProps, ColorPickerFormatInput, ColorPickerFormatInputProps, ColorPickerFormatSelect, ColorPickerFullControls, ColorPickerFullControlsProps, ColorPickerHueSlider, ColorPickerInput, ColorPickerInputProps, ColorPickerPaletteButton, ColorPickerPaletteButtonProps, ColorPickerPaletteSwatch, ColorPickerProps, ColorPickerResetOptions, ColorPickerRoot, ColorPickerRootProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ConfirmationDialogVariant, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogRegistry, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadCallbacks, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, FileUploadRoot, FileUploadRootItem, FileUploadRootItemProps, FileUploadRootProps, FileUploadRootPropsBaseProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoadingOverlay, LoadingOverlayProps, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverContentUnstyled, PopoverTrigger, PresetColor, Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps, RegisteredDialog, RegisteredDialogShowProps, RichTextEditor, RichTextEditorProps, RichTextEditorSlots, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectContentProps, SelectOption, ShowDialogProps, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputInline, TagsInputInlineItem, TagsInputInlineProps, TagsInputProps, ThemeModeDropdown, ThemeModeDropdownProps, ThemeModeSwitchInside, ThemeModeSwitchInsideProps, ThemeModeSwitchInsideSize, ThemeModeSwitchOutside, ThemeModeSwitchOutsideProps, ThemeModeToggleButton, ThemeModeToggleButtonProps, ThemeProvider, ThemeProviderProps, ToastFunction, ToastMessage, Toaster, ToggleButton, ToggleButtonProps, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupValue, ToolbarItems, UseDelayedVisibilityOptions, UseDelayedVisibilityResult, cn, dialog, getId, hideDialog, isSvgMarkupString, registerDialog, removeDialog, showConfirmDialog, showDialog, svgMarkupToMaskUrl, toast, unregisterDialog, useColorPickerContext, useDelayedVisibility, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -36,12 +36,16 @@ import { BaseColorSelectProps, ColorSelect, ColorSelectOption } from "./ColorSel
|
|
|
36
36
|
import { Combobox } from "./Combobox.js";
|
|
37
37
|
import { ConfirmationDialogProps, ConfirmationDialogVariant } from "./confirmation-dialog/ConfirmationDialog.js";
|
|
38
38
|
import { showConfirmDialog } from "./confirmation-dialog/confirmation-dialogs.js";
|
|
39
|
-
import { DialogProvider, DialogProviderProps } from "./confirmation-dialog/DialogProvider.js";
|
|
40
39
|
import "./confirmation-dialog/index.js";
|
|
41
40
|
import { ContentCard } from "./ContentCard.js";
|
|
42
41
|
import { DatePicker, DatePickerProps } from "./DatePicker.js";
|
|
43
42
|
import { DialogBody, DialogClose, DialogContent, DialogContentProps, DialogFooter, DialogHeader } from "./dialog/Dialog.js";
|
|
44
43
|
import { Dialog, DialogDescription, DialogTitle, DialogTrigger } from "./dialog/index.js";
|
|
44
|
+
import { RegisteredDialog, RegisteredDialogShowProps, registerDialog } from "./dialog-provider/register-dialog.js";
|
|
45
|
+
import { ShowDialogProps, showDialog } from "./dialog-provider/show-dialog.js";
|
|
46
|
+
import { DialogRegistry, dialog, hideDialog, removeDialog, unregisterDialog } from "./dialog-provider/dialog-registry.js";
|
|
47
|
+
import { DialogProvider, DialogProviderProps } from "./dialog-provider/DialogProvider.js";
|
|
48
|
+
import "./dialog-provider/index.js";
|
|
45
49
|
import { FileUploadRootItem, FileUploadRootItemProps } from "./file-upload-root/FileUploadRootItem.js";
|
|
46
50
|
import { FileUploadRootProps, FileUploadRootPropsBaseProps } from "./file-upload-root/types.js";
|
|
47
51
|
import { FileUploadRoot } from "./file-upload-root/FileUploadRoot.js";
|
|
@@ -104,4 +108,4 @@ import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, T
|
|
|
104
108
|
import { getId } from "./utils/get-id.js";
|
|
105
109
|
import { isSvgMarkupString, svgMarkupToMaskUrl } from "./utils/svg.js";
|
|
106
110
|
import { cn } from "@pixpilot/shadcn";
|
|
107
|
-
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertToastProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonExtended, ButtonExtendedLoaderProps, ButtonExtendedProps, ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, ButtonProps, COLOR_PICKER_PALETTE_BUTTON_CLASSES, COMMON_COLORS, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerButton, ColorPickerButtonProps, ColorPickerColorPalette, ColorPickerColorPaletteProps, ColorPickerCompactControls, ColorPickerCompactControlsProps, ColorPickerContent, ColorPickerContentProps, ColorPickerContext, Consumer as ColorPickerContextContextConsumer, Provider as ColorPickerContextContextProvider, ColorPickerContextStates, ColorPickerControls, ColorPickerControlsProps, ColorPickerEyeDropper, ColorPickerFormatControls, ColorPickerFormatControlsProps, ColorPickerFormatInput, ColorPickerFormatInputProps, ColorPickerFormatSelect, ColorPickerFullControls, ColorPickerFullControlsProps, ColorPickerHueSlider, ColorPickerInput, ColorPickerInputProps, ColorPickerPaletteButton, ColorPickerPaletteButtonProps, ColorPickerPaletteSwatch, ColorPickerProps, ColorPickerResetOptions, ColorPickerRoot, ColorPickerRootProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ConfirmationDialogVariant, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadCallbacks, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, FileUploadRoot, FileUploadRootItem, FileUploadRootItemProps, FileUploadRootProps, FileUploadRootPropsBaseProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoadingOverlay, LoadingOverlayProps, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverContentUnstyled, PopoverTrigger, PresetColor, Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps, 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, TagsInputInline, TagsInputInlineItem, TagsInputInlineProps, TagsInputProps, ThemeModeDropdown, ThemeModeDropdownProps, ThemeModeSwitchInside, ThemeModeSwitchInsideProps, ThemeModeSwitchInsideSize, ThemeModeSwitchOutside, ThemeModeSwitchOutsideProps, ThemeModeToggleButton, ThemeModeToggleButtonProps, ThemeProvider, ThemeProviderProps, ToastFunction, ToastMessage, Toaster, ToggleButton, ToggleButtonProps, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupValue, ToolbarItems, UseDelayedVisibilityOptions, UseDelayedVisibilityResult, cn, getId, isSvgMarkupString, showConfirmDialog, svgMarkupToMaskUrl, toast, useColorPickerContext, useDelayedVisibility, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
|
111
|
+
export { AbsoluteFill, Alert, AlertBaseProps, AlertProps, AlertToastProps, AlertVariant, AvatarUpload, AvatarUploadProps, BaseTabsTriggerProps, Button, ButtonExtended, ButtonExtendedLoaderProps, ButtonExtendedProps, ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, ButtonProps, COLOR_PICKER_PALETTE_BUTTON_CLASSES, COMMON_COLORS, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CircleLoader, CircleLoaderProps, CloseButtonAbsolute, CloseButtonRounded, CloseButtonRoundedProps, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerBase, ColorPickerBaseProps, ColorPickerBaseSection, ColorPickerButton, ColorPickerButtonProps, ColorPickerColorPalette, ColorPickerColorPaletteProps, ColorPickerCompactControls, ColorPickerCompactControlsProps, ColorPickerContent, ColorPickerContentProps, ColorPickerContext, Consumer as ColorPickerContextContextConsumer, Provider as ColorPickerContextContextProvider, ColorPickerContextStates, ColorPickerControls, ColorPickerControlsProps, ColorPickerEyeDropper, ColorPickerFormatControls, ColorPickerFormatControlsProps, ColorPickerFormatInput, ColorPickerFormatInputProps, ColorPickerFormatSelect, ColorPickerFullControls, ColorPickerFullControlsProps, ColorPickerHueSlider, ColorPickerInput, ColorPickerInputProps, ColorPickerPaletteButton, ColorPickerPaletteButtonProps, ColorPickerPaletteSwatch, ColorPickerProps, ColorPickerResetOptions, ColorPickerRoot, ColorPickerRootProps, ColorSelect, ColorSelectOption, BaseColorSelectProps as ColorSelectProps, Combobox, ConfirmationDialogProps, ConfirmationDialogVariant, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, DatePickerProps, Dialog, DialogBody, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogProviderProps, DialogRegistry, DialogTitle, DialogTrigger, type FileMetadata, FileUpload, FileUploadBaseProps, FileUploadCallbacks, FileUploadInline, FileUploadInlineBaseProps, FileUploadInlineProps, type FileUploadProgressCallBacks, type FileUploadProps, FileUploadRoot, FileUploadRootItem, FileUploadRootItemProps, FileUploadRootProps, FileUploadRootPropsBaseProps, IconPicker, IconPickerProps, IconPickerVariant, IconProvider, IconProviderLoader, IconProviderProps, IconToggle, IconToggleProps, Input, InputProps, Layout, LayoutFooter, LayoutFooterProps, LayoutHeader, LayoutHeaderProps, LayoutMain, LayoutMainProps, LayoutProps, LoadingOverlay, LoadingOverlayProps, MultiFileUploadProps, OnChangeMultipleFiles, OnChangeSingleFile, Pagination, PaginationProps, Popover, PopoverAnchor, PopoverCloseButtonProps, PopoverContent, PopoverContentProps, PopoverContentUnstyled, PopoverTrigger, PresetColor, Rating, RatingButton, RatingButtonProps, RatingColor, RatingOption, RatingProps, RegisteredDialog, RegisteredDialogShowProps, RichTextEditor, RichTextEditorProps, RichTextEditorSlots, ScaledPreview, ScaledPreviewProps, ScaledPreviewSize, Select, SelectContentProps, SelectOption, ShowDialogProps, SingleFileUploadProps, Slider, SliderInput, SliderInputProps, SliderProps, SliderSelect, SliderSelectOption, SliderSelectProps, SliderSelectValue, Tabs, TabsContent, TabsContext, TabsContextValue, TabsList, TabsListProps, TabsTrigger, TabsTriggerProps, TabsVariant, TagsInput, TagsInputInline, TagsInputInlineItem, TagsInputInlineProps, TagsInputProps, ThemeModeDropdown, ThemeModeDropdownProps, ThemeModeSwitchInside, ThemeModeSwitchInsideProps, ThemeModeSwitchInsideSize, ThemeModeSwitchOutside, ThemeModeSwitchOutsideProps, ThemeModeToggleButton, ThemeModeToggleButtonProps, ThemeProvider, ThemeProviderProps, ToastFunction, ToastMessage, Toaster, ToggleButton, ToggleButtonProps, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleGroupValue, ToolbarItems, UseDelayedVisibilityOptions, UseDelayedVisibilityResult, cn, dialog, getId, hideDialog, isSvgMarkupString, registerDialog, removeDialog, showConfirmDialog, showDialog, svgMarkupToMaskUrl, toast, unregisterDialog, useColorPickerContext, useDelayedVisibility, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -34,8 +34,12 @@ import "./ColorPicker/index.js";
|
|
|
34
34
|
import { useSelectKeyboard } from "./hooks/use-select-keyboard.js";
|
|
35
35
|
import { ColorSelect } from "./ColorSelect.js";
|
|
36
36
|
import { Combobox } from "./Combobox.js";
|
|
37
|
+
import { registerDialog } from "./dialog-provider/register-dialog.js";
|
|
38
|
+
import { showDialog } from "./dialog-provider/show-dialog.js";
|
|
39
|
+
import { dialog, hideDialog, removeDialog, unregisterDialog } from "./dialog-provider/dialog-registry.js";
|
|
40
|
+
import { DialogProvider } from "./dialog-provider/DialogProvider.js";
|
|
41
|
+
import "./dialog-provider/index.js";
|
|
37
42
|
import { showConfirmDialog } from "./confirmation-dialog/confirmation-dialogs.js";
|
|
38
|
-
import { DialogProvider } from "./confirmation-dialog/DialogProvider.js";
|
|
39
43
|
import "./confirmation-dialog/index.js";
|
|
40
44
|
import { ContentCard } from "./ContentCard.js";
|
|
41
45
|
import { DatePicker } from "./DatePicker.js";
|
|
@@ -96,4 +100,4 @@ import "./toast/index.js";
|
|
|
96
100
|
import { ToggleGroup, ToggleGroupItem } from "./ToggleGroup.js";
|
|
97
101
|
import { cn } from "@pixpilot/shadcn";
|
|
98
102
|
|
|
99
|
-
export { AbsoluteFill, Alert, AvatarUpload, Button, ButtonExtended, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COLOR_PICKER_PALETTE_BUTTON_CLASSES, COMMON_COLORS, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CircleLoader, CloseButtonAbsolute, CloseButtonRounded, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerBase, ColorPickerButton, ColorPickerColorPalette, ColorPickerCompactControls, ColorPickerContent, ColorPickerContext, Consumer as ColorPickerContextContextConsumer, Provider as ColorPickerContextContextProvider, ColorPickerControls, ColorPickerEyeDropper, ColorPickerFormatControls, ColorPickerFormatInput, ColorPickerFormatSelect, ColorPickerFullControls, ColorPickerHueSlider, ColorPickerInput, ColorPickerPaletteButton, ColorPickerPaletteSwatch, ColorPickerRoot, ColorSelect, Combobox, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogTitle, DialogTrigger, FileUpload, FileUploadInline, FileUploadRoot, FileUploadRootItem, IconPicker, IconToggle, Input, Layout, LayoutFooter, LayoutHeader, LayoutMain, LoadingOverlay, Pagination, Popover, PopoverAnchor, PopoverContent, PopoverContentUnstyled, PopoverTrigger, Rating, RatingButton, RichTextEditor, ScaledPreview, Select, Slider, SliderInput, SliderSelect, Tabs, TabsContent, TabsContext, TabsList, TabsTrigger, TagsInput, TagsInputInline, ThemeModeDropdown, ThemeModeSwitchInside, ThemeModeSwitchOutside, ThemeModeToggleButton, ThemeProvider, Toaster, ToggleButton, ToggleGroup, ToggleGroupItem, cn, getId, isSvgMarkupString, showConfirmDialog, svgMarkupToMaskUrl, toast, useColorPickerContext, useDelayedVisibility, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
|
103
|
+
export { AbsoluteFill, Alert, AvatarUpload, Button, ButtonExtended, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COLOR_PICKER_PALETTE_BUTTON_CLASSES, COMMON_COLORS, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CircleLoader, CloseButtonAbsolute, CloseButtonRounded, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerBase, ColorPickerButton, ColorPickerColorPalette, ColorPickerCompactControls, ColorPickerContent, ColorPickerContext, Consumer as ColorPickerContextContextConsumer, Provider as ColorPickerContextContextProvider, ColorPickerControls, ColorPickerEyeDropper, ColorPickerFormatControls, ColorPickerFormatInput, ColorPickerFormatSelect, ColorPickerFullControls, ColorPickerHueSlider, ColorPickerInput, ColorPickerPaletteButton, ColorPickerPaletteSwatch, ColorPickerRoot, ColorSelect, Combobox, ContentCard, DEFAULT_ALERT_DURATION, DatePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogProvider, DialogTitle, DialogTrigger, FileUpload, FileUploadInline, FileUploadRoot, FileUploadRootItem, IconPicker, IconToggle, Input, Layout, LayoutFooter, LayoutHeader, LayoutMain, LoadingOverlay, Pagination, Popover, PopoverAnchor, PopoverContent, PopoverContentUnstyled, PopoverTrigger, Rating, RatingButton, RichTextEditor, ScaledPreview, Select, Slider, SliderInput, SliderSelect, Tabs, TabsContent, TabsContext, TabsList, TabsTrigger, TagsInput, TagsInputInline, ThemeModeDropdown, ThemeModeSwitchInside, ThemeModeSwitchOutside, ThemeModeToggleButton, ThemeProvider, Toaster, ToggleButton, ToggleGroup, ToggleGroupItem, cn, dialog, getId, hideDialog, isSvgMarkupString, registerDialog, removeDialog, showConfirmDialog, showDialog, svgMarkupToMaskUrl, toast, unregisterDialog, useColorPickerContext, useDelayedVisibility, useMediaQuery, useSelectKeyboard, useTabsContext, useTheme };
|
package/dist/input/Input.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 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_runtime17.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Input, InputProps$1 as InputProps };
|