@pixpilot/shadcn-ui 2.0.1 → 3.0.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/ColorPicker/ColorPicker.cjs +0 -1
- package/dist/ColorPicker/ColorPicker.js +0 -1
- package/dist/ColorPickerBase/ColorPickerBase.cjs +0 -1
- package/dist/ColorPickerBase/ColorPickerBase.js +0 -1
- package/dist/ColorPickerBase/ColorPickerButton.js +3 -1
- package/dist/ColorPickerBase/ColorPickerCompactControls.cjs +0 -1
- package/dist/ColorPickerBase/ColorPickerCompactControls.js +0 -1
- package/dist/ColorPickerBase/ColorPickerFullControls.cjs +0 -1
- package/dist/ColorPickerBase/ColorPickerFullControls.js +0 -1
- package/dist/ColorPickerBase/ColorPickerInput.js +3 -1
- package/dist/avatar-upload/AvatarUploadItem.cjs +0 -1
- package/dist/avatar-upload/AvatarUploadItem.js +0 -1
- package/dist/button/Button.cjs +0 -1
- package/dist/button/Button.d.ts +2 -2
- package/dist/button/Button.js +0 -1
- package/dist/button-extended/ButtonExtended.cjs +0 -1
- package/dist/button-extended/ButtonExtended.js +0 -1
- package/dist/close-button-absolute/CloseButtonAbsolute.cjs +0 -1
- package/dist/close-button-absolute/CloseButtonAbsolute.js +0 -1
- package/dist/color-select/ColorSelect.d.cts +2 -2
- package/dist/color-select/ColorSelect.d.ts +2 -2
- package/dist/combobox/Combobox.cjs +0 -1
- package/dist/combobox/Combobox.js +0 -1
- package/dist/confirmation-dialog/ConfirmationDialog.cjs +2 -3
- package/dist/confirmation-dialog/ConfirmationDialog.js +2 -3
- package/dist/confirmation-dialog/mcp.js +3 -3
- package/dist/content-card/ContentCard.cjs +0 -1
- package/dist/content-card/ContentCard.d.cts +2 -2
- package/dist/content-card/ContentCard.d.ts +2 -2
- package/dist/content-card/ContentCard.js +0 -1
- package/dist/date-picker/DatePicker.d.cts +2 -2
- package/dist/date-picker/DatePicker.d.ts +2 -2
- package/dist/dialog/Dialog.d.cts +5 -5
- package/dist/dialog/mcp.js +1 -1
- package/dist/dialog-registry/dialog-registry.cjs +24 -0
- package/dist/dialog-registry/dialog-registry.d.cts +23 -0
- package/dist/dialog-registry/dialog-registry.d.ts +23 -0
- package/dist/dialog-registry/dialog-registry.js +23 -0
- package/dist/dialog-registry/index.d.cts +3 -0
- package/dist/dialog-registry/index.d.ts +3 -0
- package/dist/dialog-registry/mcp.js +51 -0
- package/dist/dialog-registry/register-dialog.cjs +20 -0
- package/dist/dialog-registry/register-dialog.d.cts +21 -0
- package/dist/dialog-registry/register-dialog.d.ts +21 -0
- package/dist/dialog-registry/register-dialog.js +20 -0
- package/dist/dialog-registry/show-dialog.cjs +17 -0
- package/dist/dialog-registry/show-dialog.d.cts +18 -0
- package/dist/dialog-registry/show-dialog.d.ts +18 -0
- package/dist/dialog-registry/show-dialog.js +17 -0
- package/dist/drawer/Drawer.cjs +57 -0
- package/dist/drawer/Drawer.d.cts +40 -0
- package/dist/drawer/Drawer.d.ts +40 -0
- package/dist/drawer/Drawer.js +49 -0
- package/dist/drawer/index.d.cts +3 -0
- package/dist/drawer/index.d.ts +3 -0
- package/dist/drawer/index.js +4 -0
- package/dist/drawer/mcp.js +55 -0
- package/dist/drawer-registry/drawer-registry.cjs +28 -0
- package/dist/drawer-registry/drawer-registry.d.cts +27 -0
- package/dist/drawer-registry/drawer-registry.d.ts +27 -0
- package/dist/drawer-registry/drawer-registry.js +27 -0
- package/dist/drawer-registry/index.d.cts +3 -0
- package/dist/drawer-registry/index.d.ts +3 -0
- package/dist/drawer-registry/mcp.js +51 -0
- package/dist/drawer-registry/register-drawer.cjs +20 -0
- package/dist/drawer-registry/register-drawer.d.cts +21 -0
- package/dist/drawer-registry/register-drawer.d.ts +21 -0
- package/dist/drawer-registry/register-drawer.js +20 -0
- package/dist/drawer-registry/show-drawer.cjs +17 -0
- package/dist/drawer-registry/show-drawer.d.cts +18 -0
- package/dist/drawer-registry/show-drawer.d.ts +18 -0
- package/dist/drawer-registry/show-drawer.js +17 -0
- package/dist/file-upload/FileUpload.d.ts +2 -2
- package/dist/file-upload/FileUploadListItem.cjs +0 -1
- package/dist/file-upload/FileUploadListItem.js +0 -1
- package/dist/file-upload-inline/FileUploadInline.cjs +0 -1
- package/dist/file-upload-inline/FileUploadInline.d.cts +2 -2
- package/dist/file-upload-inline/FileUploadInline.d.ts +2 -2
- package/dist/file-upload-inline/FileUploadInline.js +0 -1
- package/dist/file-upload-root/FileUploadRoot.cjs +0 -1
- package/dist/file-upload-root/FileUploadRoot.d.cts +2 -2
- package/dist/file-upload-root/FileUploadRoot.d.ts +2 -2
- package/dist/file-upload-root/FileUploadRoot.js +3 -2
- package/dist/file-upload-root/FileUploadRootItem.cjs +0 -1
- package/dist/file-upload-root/FileUploadRootItem.js +0 -1
- package/dist/generated/mcp-registry.js +38 -32
- package/dist/hooks/src/use-controlled.js +1 -1
- package/dist/icon-selector/IconPicker.cjs +0 -2
- package/dist/icon-selector/IconPicker.js +2 -3
- package/dist/icon-selector/icon-picker-content.cjs +0 -2
- package/dist/icon-selector/icon-picker-content.js +0 -2
- package/dist/icon-toggle/IconToggle.cjs +0 -1
- package/dist/icon-toggle/IconToggle.js +0 -1
- package/dist/index.cjs +32 -52
- package/dist/index.d.cts +14 -6
- package/dist/index.d.ts +14 -6
- package/dist/index.js +11 -46
- package/dist/input/Input.d.cts +2 -2
- package/dist/input/Input.d.ts +2 -2
- package/dist/loading-overlay/LoadingOverlay.cjs +0 -1
- package/dist/loading-overlay/LoadingOverlay.js +0 -1
- package/dist/overlay-provider/OverlayProvider.cjs +47 -0
- package/dist/overlay-provider/OverlayProvider.d.cts +18 -0
- package/dist/overlay-provider/OverlayProvider.d.ts +18 -0
- package/dist/overlay-provider/OverlayProvider.js +42 -0
- package/dist/overlay-provider/index.d.cts +2 -0
- package/dist/overlay-provider/index.d.ts +2 -0
- package/dist/overlay-provider/mcp.js +35 -0
- package/dist/overlay-provider/overlay-registry.cjs +104 -0
- package/dist/overlay-provider/overlay-registry.d.cts +91 -0
- package/dist/overlay-provider/overlay-registry.d.ts +91 -0
- package/dist/overlay-provider/overlay-registry.js +94 -0
- package/dist/overlay-provider/types.d.cts +20 -0
- package/dist/overlay-provider/types.d.ts +20 -0
- package/dist/rating/Rating.d.cts +3 -3
- package/dist/rating/Rating.d.ts +3 -3
- package/dist/rich-text-editor/LinkPopoverToolbarButton.cjs +0 -3
- package/dist/rich-text-editor/LinkPopoverToolbarButton.js +0 -3
- package/dist/rich-text-editor/ToolbarButton.cjs +0 -1
- package/dist/rich-text-editor/ToolbarButton.js +0 -1
- package/dist/select/Select.d.cts +2 -2
- package/dist/select/Select.d.ts +2 -2
- package/dist/slider/SliderInput.cjs +0 -1
- package/dist/slider/SliderSelect.cjs +0 -1
- package/dist/slider/SliderSelect.js +0 -1
- package/dist/tags-input/TagsInput.cjs +0 -1
- package/dist/tags-input/TagsInput.d.cts +2 -2
- package/dist/tags-input/TagsInput.d.ts +2 -2
- package/dist/tags-input/TagsInput.js +0 -1
- package/dist/tags-input/TagsInputInline.d.cts +2 -2
- package/dist/tags-input/TagsInputInline.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeDropdown.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeDropdown.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchInside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchInside.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchOutside.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeSwitchOutside.d.ts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.cts +2 -2
- package/dist/theme-toggle/ThemeModeToggleButton.d.ts +2 -2
- package/dist/toast/AlertToast.cjs +0 -1
- package/dist/toast/AlertToast.js +0 -1
- package/dist/toggle-button/ToggleButton.cjs +0 -1
- package/dist/toggle-button/ToggleButton.js +0 -1
- package/package.json +5 -4
- package/dist/ColorPicker/index.cjs +0 -1
- package/dist/ColorPicker/index.js +0 -1
- package/dist/ColorPickerBase/color-palette/index.cjs +0 -3
- package/dist/ColorPickerBase/color-palette/index.js +0 -3
- package/dist/ColorPickerBase/index.cjs +0 -18
- package/dist/ColorPickerBase/index.js +0 -15
- package/dist/absolute-fill/index.cjs +0 -1
- package/dist/absolute-fill/index.js +0 -1
- package/dist/alert/index.cjs +0 -1
- package/dist/alert/index.js +0 -1
- package/dist/avatar-upload/index.cjs +0 -1
- package/dist/avatar-upload/index.js +0 -1
- package/dist/button/index.cjs +0 -1
- package/dist/button/index.js +0 -1
- package/dist/button-extended/index.cjs +0 -1
- package/dist/button-extended/index.js +0 -1
- package/dist/button-group/index.cjs +0 -1
- package/dist/button-group/index.js +0 -1
- package/dist/card/index.cjs +0 -4
- package/dist/card/index.js +0 -1
- package/dist/circle-loader/index.cjs +0 -1
- package/dist/circle-loader/index.js +0 -1
- package/dist/close-button-absolute/index.cjs +0 -1
- package/dist/close-button-absolute/index.js +0 -1
- package/dist/close-button-rounded/index.cjs +0 -1
- package/dist/close-button-rounded/index.js +0 -1
- package/dist/color-select/index.cjs +0 -1
- package/dist/color-select/index.js +0 -1
- package/dist/combobox/index.cjs +0 -1
- package/dist/combobox/index.js +0 -1
- package/dist/command-option-list/index.cjs +0 -1
- package/dist/command-option-list/index.js +0 -1
- package/dist/confirmation-dialog/index.cjs +0 -5
- package/dist/confirmation-dialog/index.js +0 -5
- package/dist/content-card/index.cjs +0 -1
- package/dist/content-card/index.js +0 -1
- package/dist/date-picker/index.cjs +0 -1
- package/dist/date-picker/index.js +0 -1
- package/dist/dialog/index.cjs +0 -4
- package/dist/dialog-provider/DialogProvider.cjs +0 -40
- package/dist/dialog-provider/DialogProvider.d.cts +0 -28
- package/dist/dialog-provider/DialogProvider.d.ts +0 -28
- package/dist/dialog-provider/DialogProvider.js +0 -36
- package/dist/dialog-provider/dialog-registry.cjs +0 -100
- package/dist/dialog-provider/dialog-registry.d.cts +0 -150
- package/dist/dialog-provider/dialog-registry.d.ts +0 -150
- package/dist/dialog-provider/dialog-registry.js +0 -93
- package/dist/dialog-provider/index.cjs +0 -4
- package/dist/dialog-provider/index.d.cts +0 -4
- package/dist/dialog-provider/index.d.ts +0 -4
- package/dist/dialog-provider/index.js +0 -4
- package/dist/dialog-provider/mcp.js +0 -24
- package/dist/dialog-provider/register-dialog.cjs +0 -64
- package/dist/dialog-provider/register-dialog.d.cts +0 -98
- package/dist/dialog-provider/register-dialog.d.ts +0 -98
- package/dist/dialog-provider/register-dialog.js +0 -61
- package/dist/dialog-provider/show-dialog.cjs +0 -30
- package/dist/dialog-provider/show-dialog.d.cts +0 -24
- package/dist/dialog-provider/show-dialog.d.ts +0 -24
- package/dist/dialog-provider/show-dialog.js +0 -28
- package/dist/file-upload/hooks/index.cjs +0 -3
- package/dist/file-upload/hooks/index.js +0 -3
- package/dist/file-upload/index.cjs +0 -5
- package/dist/file-upload/index.js +0 -5
- package/dist/file-upload-inline/index.cjs +0 -1
- package/dist/file-upload-inline/index.js +0 -1
- package/dist/file-upload-root/index.cjs +0 -2
- package/dist/file-upload-root/index.js +0 -2
- package/dist/hooks/index.cjs +0 -3
- package/dist/hooks/index.js +0 -3
- package/dist/icon-selector/index.cjs +0 -1
- package/dist/icon-selector/index.js +0 -1
- package/dist/icon-toggle/index.cjs +0 -1
- package/dist/icon-toggle/index.js +0 -1
- package/dist/input/index.cjs +0 -1
- package/dist/input/index.js +0 -1
- package/dist/layout/index.cjs +0 -4
- package/dist/layout/index.js +0 -4
- package/dist/loading-overlay/index.cjs +0 -1
- package/dist/loading-overlay/index.js +0 -1
- package/dist/pagination/index.cjs +0 -1
- package/dist/pagination/index.js +0 -1
- package/dist/popover/index.cjs +0 -4
- package/dist/popover/index.js +0 -1
- package/dist/rating/index.cjs +0 -1
- package/dist/rating/index.js +0 -1
- package/dist/rich-text-editor/index.cjs +0 -1
- package/dist/rich-text-editor/index.js +0 -1
- package/dist/scaled-preview/index.cjs +0 -1
- package/dist/scaled-preview/index.js +0 -1
- package/dist/select/index.cjs +0 -1
- package/dist/select/index.js +0 -1
- package/dist/slider/index.cjs +0 -3
- package/dist/slider/index.js +0 -3
- package/dist/tabs/Tabs.cjs +0 -3
- package/dist/tabs/TabsContent.cjs +0 -3
- package/dist/tabs/index.cjs +0 -8
- package/dist/tabs/index.js +0 -5
- package/dist/tags-input/index.cjs +0 -2
- package/dist/tags-input/index.js +0 -2
- package/dist/theme-provider/index.cjs +0 -4
- package/dist/theme-toggle/index.cjs +0 -4
- package/dist/theme-toggle/index.js +0 -4
- package/dist/toast/index.cjs +0 -2
- package/dist/toast/index.js +0 -2
- package/dist/toggle-button/index.cjs +0 -1
- package/dist/toggle-button/index.js +0 -1
- package/dist/toggle-group/ToggleGroup.cjs +0 -3
- package/dist/toggle-group/index.cjs +0 -4
- package/dist/toggle-group/index.js +0 -1
- package/dist/tooltip/Tooltip.cjs +0 -3
- package/dist/tooltip/index.cjs +0 -4
- package/dist/tooltip/index.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeToggleButton.d.ts
|
|
4
4
|
interface ThemeModeToggleButtonProps {
|
|
@@ -14,7 +14,7 @@ interface ThemeModeToggleButtonProps {
|
|
|
14
14
|
* Light/Dark toggle button.
|
|
15
15
|
* Pure component - toggles between light and dark.
|
|
16
16
|
*/
|
|
17
|
-
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps):
|
|
17
|
+
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime23.JSX.Element;
|
|
18
18
|
declare namespace ThemeModeToggleButton {
|
|
19
19
|
var displayName: string;
|
|
20
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-toggle/ThemeModeToggleButton.d.ts
|
|
4
4
|
interface ThemeModeToggleButtonProps {
|
|
@@ -14,7 +14,7 @@ interface ThemeModeToggleButtonProps {
|
|
|
14
14
|
* Light/Dark toggle button.
|
|
15
15
|
* Pure component - toggles between light and dark.
|
|
16
16
|
*/
|
|
17
|
-
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps):
|
|
17
|
+
declare function ThemeModeToggleButton(props: ThemeModeToggleButtonProps): react_jsx_runtime23.JSX.Element;
|
|
18
18
|
declare namespace ThemeModeToggleButton {
|
|
19
19
|
var displayName: string;
|
|
20
20
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_variant_config = require('../variant-config.cjs');
|
|
3
3
|
const require_Alert = require('../alert/Alert.cjs');
|
|
4
|
-
require('../alert/index.cjs');
|
|
5
4
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
6
5
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
7
6
|
let lucide_react = require("lucide-react");
|
package/dist/toast/AlertToast.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
const require_Button = require('../button/Button.cjs');
|
|
6
|
-
require('../button/index.cjs');
|
|
7
6
|
let react = require("react");
|
|
8
7
|
react = require_rolldown_runtime.__toESM(react);
|
|
9
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixpilot/shadcn-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"description": "Custom UI components and utilities built with shadcn/ui.",
|
|
6
6
|
"author": "m.doaie <m.doaie@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/pixpilot/shadcn-components.git",
|
|
11
11
|
"directory": "packages/shadcn-ui"
|
|
12
12
|
},
|
|
13
|
+
"sideEffects": false,
|
|
13
14
|
"exports": {
|
|
14
15
|
".": {
|
|
15
16
|
"types": "./dist/index.d.ts",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"@iconify/react": "^6.0.2",
|
|
38
39
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
39
40
|
"@pixpilot/hash": "^0.2.0",
|
|
40
|
-
"@pixpilot/string": "^3.0.
|
|
41
|
+
"@pixpilot/string": "^3.0.1",
|
|
41
42
|
"@radix-ui/react-slot": "^1.2.4",
|
|
42
43
|
"@tailwindcss/typography": "^0.5.19",
|
|
43
44
|
"@tanstack/react-virtual": "^3.13.23",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"react-responsive": "^10.0.1",
|
|
55
56
|
"sonner": "2.0.7",
|
|
56
57
|
"zod": "^4.3.6",
|
|
57
|
-
"@pixpilot/shadcn": "
|
|
58
|
+
"@pixpilot/shadcn": "2.0.0"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
61
|
"@storybook/react": "^8.6.18",
|
|
@@ -70,12 +71,12 @@
|
|
|
70
71
|
"tsdown": "^0.15.12",
|
|
71
72
|
"tsx": "^4.21.0",
|
|
72
73
|
"typescript": "^5.9.3",
|
|
73
|
-
"@internal/eslint-config": "0.3.0",
|
|
74
74
|
"@internal/hooks": "0.0.0",
|
|
75
75
|
"@internal/mcp": "0.0.0",
|
|
76
76
|
"@internal/prettier-config": "0.0.1",
|
|
77
77
|
"@internal/tsconfig": "0.1.0",
|
|
78
78
|
"@internal/tsdown-config": "0.1.0",
|
|
79
|
+
"@internal/eslint-config": "0.3.0",
|
|
79
80
|
"@internal/vitest-config": "0.1.0"
|
|
80
81
|
},
|
|
81
82
|
"prettier": "@internal/prettier-config",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_ColorPicker = require('./ColorPicker.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { ColorPicker } from "./ColorPicker.js";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_color_picker_context = require('./color-picker-context.cjs');
|
|
3
|
-
const require_PaletteButton = require('./color-palette/PaletteButton.cjs');
|
|
4
|
-
const require_PaletteSwatch = require('./color-palette/PaletteSwatch.cjs');
|
|
5
|
-
const require_ColorPalette = require('./color-palette/ColorPalette.cjs');
|
|
6
|
-
require('./color-palette/index.cjs');
|
|
7
|
-
const require_ColorPickerContent = require('./ColorPickerContent.cjs');
|
|
8
|
-
const require_ColorPickerControls = require('./ColorPickerControls.cjs');
|
|
9
|
-
const require_ColorPickerFormatInput = require('./ColorPickerFormatInput.cjs');
|
|
10
|
-
const require_ColorPickerFormatControls = require('./ColorPickerFormatControls.cjs');
|
|
11
|
-
const require_ColorPickerCompactControls = require('./ColorPickerCompactControls.cjs');
|
|
12
|
-
const require_ColorPickerFullControls = require('./ColorPickerFullControls.cjs');
|
|
13
|
-
const require_ColorPickerRoot = require('./ColorPickerRoot.cjs');
|
|
14
|
-
const require_ColorPickerBase = require('./ColorPickerBase.cjs');
|
|
15
|
-
const require_ColorPickerButton = require('./ColorPickerButton.cjs');
|
|
16
|
-
const require_ColorPickerInput = require('./ColorPickerInput.cjs');
|
|
17
|
-
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
18
|
-
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ColorPickerContext, Consumer, Provider, useColorPickerContext } from "./color-picker-context.js";
|
|
2
|
-
import { COLOR_PICKER_PALETTE_BUTTON_CLASSES, ColorPickerPaletteButton } from "./color-palette/PaletteButton.js";
|
|
3
|
-
import { ColorPickerPaletteSwatch } from "./color-palette/PaletteSwatch.js";
|
|
4
|
-
import { COMMON_COLORS, ColorPickerColorPalette } from "./color-palette/ColorPalette.js";
|
|
5
|
-
import "./color-palette/index.js";
|
|
6
|
-
import { ColorPickerContent } from "./ColorPickerContent.js";
|
|
7
|
-
import { ColorPickerAlphaSlider, ColorPickerArea, ColorPickerControls, ColorPickerEyeDropper, ColorPickerHueSlider } from "./ColorPickerControls.js";
|
|
8
|
-
import { ColorPickerFormatInput } from "./ColorPickerFormatInput.js";
|
|
9
|
-
import { ColorPickerFormatControls, ColorPickerFormatSelect } from "./ColorPickerFormatControls.js";
|
|
10
|
-
import { ColorPickerCompactControls } from "./ColorPickerCompactControls.js";
|
|
11
|
-
import { ColorPickerFullControls } from "./ColorPickerFullControls.js";
|
|
12
|
-
import { ColorPickerRoot } from "./ColorPickerRoot.js";
|
|
13
|
-
import { ColorPickerBase } from "./ColorPickerBase.js";
|
|
14
|
-
import { ColorPickerButton } from "./ColorPickerButton.js";
|
|
15
|
-
import { ColorPickerInput } from "./ColorPickerInput.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_AbsoluteFill = require('./AbsoluteFill.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { AbsoluteFill } from "./AbsoluteFill.js";
|
package/dist/alert/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_Alert = require('./Alert.cjs');
|
package/dist/alert/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { Alert } from "./Alert.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_AvatarUpload = require('./AvatarUpload.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { AvatarUpload } from "./AvatarUpload.js";
|
package/dist/button/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_Button = require('./Button.cjs');
|
package/dist/button/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { Button } from "./Button.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_ButtonExtended = require('./ButtonExtended.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { ButtonExtended } from "./ButtonExtended.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_ButtonGroup = require('./ButtonGroup.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from "./ButtonGroup.js";
|
package/dist/card/index.cjs
DELETED
package/dist/card/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./Card.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_circle_loader = require('./circle-loader.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { CircleLoader } from "./circle-loader.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_CloseButtonAbsolute = require('./CloseButtonAbsolute.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { CloseButtonAbsolute } from "./CloseButtonAbsolute.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_CloseButtonRounded = require('./CloseButtonRounded.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { CloseButtonRounded } from "./CloseButtonRounded.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_ColorSelect = require('./ColorSelect.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { ColorSelect } from "./ColorSelect.js";
|
package/dist/combobox/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_Combobox = require('./Combobox.cjs');
|
package/dist/combobox/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { Combobox } from "./Combobox.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_CommandOptionList = require('./CommandOptionList.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { CommandOptionList } from "./CommandOptionList.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_ContentCard = require('./ContentCard.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { ContentCard } from "./ContentCard.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_DatePicker = require('./DatePicker.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { DatePicker } from "./DatePicker.js";
|
package/dist/dialog/index.cjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let react = require("react");
|
|
3
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
6
|
-
let __ebay_nice_modal_react = require("@ebay/nice-modal-react");
|
|
7
|
-
__ebay_nice_modal_react = require_rolldown_runtime.__toESM(__ebay_nice_modal_react);
|
|
8
|
-
|
|
9
|
-
//#region src/dialog-provider/DialogProvider.tsx
|
|
10
|
-
const DialogProviderMountedContext = (0, react.createContext)(false);
|
|
11
|
-
/**
|
|
12
|
-
* Guards against nested DialogProviders, which would break NiceModal.
|
|
13
|
-
*
|
|
14
|
-
* NiceModal.Provider creates its own isolated modal state store via React context.
|
|
15
|
-
* If a second NiceModal.Provider mounts anywhere below the first, it shadows the
|
|
16
|
-
* outer one — meaning modals registered/shown inside the inner provider are
|
|
17
|
-
* invisible to the outer one, and vice versa.
|
|
18
|
-
*
|
|
19
|
-
* This becomes especially bad with navigation: when you navigate away and back,
|
|
20
|
-
* the inner provider unmounts and remounts, creating a brand-new store. Any
|
|
21
|
-
* in-flight `showConfirmDialog` calls still hold a reference to the old store's
|
|
22
|
-
* dispatch, so their promises never resolve and the modal tree is left in a
|
|
23
|
-
* broken state. This has been detected when navigating in a Next.js app,
|
|
24
|
-
* but it could happen in any React app that conditionally mounts/unmounts providers.
|
|
25
|
-
*
|
|
26
|
-
* The fix: track whether a DialogProvider is already mounted above us in the tree.
|
|
27
|
-
* If one is, skip rendering NiceModal.Provider entirely and just pass children
|
|
28
|
-
* through — making the inner DialogProvider a safe no-op.
|
|
29
|
-
*/
|
|
30
|
-
const DialogProvider = (props) => {
|
|
31
|
-
if ((0, react.use)(DialogProviderMountedContext)) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: props.children });
|
|
32
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogProviderMountedContext.Provider, {
|
|
33
|
-
value: true,
|
|
34
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ebay_nice_modal_react.default.Provider, { children: props.children })
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
DialogProvider.displayName = "DialogProvider";
|
|
38
|
-
|
|
39
|
-
//#endregion
|
|
40
|
-
exports.DialogProvider = DialogProvider;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/dialog-provider/DialogProvider.d.ts
|
|
4
|
-
interface DialogProviderProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Guards against nested DialogProviders, which would break NiceModal.
|
|
9
|
-
*
|
|
10
|
-
* NiceModal.Provider creates its own isolated modal state store via React context.
|
|
11
|
-
* If a second NiceModal.Provider mounts anywhere below the first, it shadows the
|
|
12
|
-
* outer one — meaning modals registered/shown inside the inner provider are
|
|
13
|
-
* invisible to the outer one, and vice versa.
|
|
14
|
-
*
|
|
15
|
-
* This becomes especially bad with navigation: when you navigate away and back,
|
|
16
|
-
* the inner provider unmounts and remounts, creating a brand-new store. Any
|
|
17
|
-
* in-flight `showConfirmDialog` calls still hold a reference to the old store's
|
|
18
|
-
* dispatch, so their promises never resolve and the modal tree is left in a
|
|
19
|
-
* broken state. This has been detected when navigating in a Next.js app,
|
|
20
|
-
* but it could happen in any React app that conditionally mounts/unmounts providers.
|
|
21
|
-
*
|
|
22
|
-
* The fix: track whether a DialogProvider is already mounted above us in the tree.
|
|
23
|
-
* If one is, skip rendering NiceModal.Provider entirely and just pass children
|
|
24
|
-
* through — making the inner DialogProvider a safe no-op.
|
|
25
|
-
*/
|
|
26
|
-
declare const DialogProvider: React.FC<DialogProviderProps>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { DialogProvider, DialogProviderProps };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/dialog-provider/DialogProvider.d.ts
|
|
4
|
-
interface DialogProviderProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Guards against nested DialogProviders, which would break NiceModal.
|
|
9
|
-
*
|
|
10
|
-
* NiceModal.Provider creates its own isolated modal state store via React context.
|
|
11
|
-
* If a second NiceModal.Provider mounts anywhere below the first, it shadows the
|
|
12
|
-
* outer one — meaning modals registered/shown inside the inner provider are
|
|
13
|
-
* invisible to the outer one, and vice versa.
|
|
14
|
-
*
|
|
15
|
-
* This becomes especially bad with navigation: when you navigate away and back,
|
|
16
|
-
* the inner provider unmounts and remounts, creating a brand-new store. Any
|
|
17
|
-
* in-flight `showConfirmDialog` calls still hold a reference to the old store's
|
|
18
|
-
* dispatch, so their promises never resolve and the modal tree is left in a
|
|
19
|
-
* broken state. This has been detected when navigating in a Next.js app,
|
|
20
|
-
* but it could happen in any React app that conditionally mounts/unmounts providers.
|
|
21
|
-
*
|
|
22
|
-
* The fix: track whether a DialogProvider is already mounted above us in the tree.
|
|
23
|
-
* If one is, skip rendering NiceModal.Provider entirely and just pass children
|
|
24
|
-
* through — making the inner DialogProvider a safe no-op.
|
|
25
|
-
*/
|
|
26
|
-
declare const DialogProvider: React.FC<DialogProviderProps>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { DialogProvider, DialogProviderProps };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React, { createContext, use } from "react";
|
|
2
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
-
import NiceModal from "@ebay/nice-modal-react";
|
|
4
|
-
|
|
5
|
-
//#region src/dialog-provider/DialogProvider.tsx
|
|
6
|
-
const DialogProviderMountedContext = createContext(false);
|
|
7
|
-
/**
|
|
8
|
-
* Guards against nested DialogProviders, which would break NiceModal.
|
|
9
|
-
*
|
|
10
|
-
* NiceModal.Provider creates its own isolated modal state store via React context.
|
|
11
|
-
* If a second NiceModal.Provider mounts anywhere below the first, it shadows the
|
|
12
|
-
* outer one — meaning modals registered/shown inside the inner provider are
|
|
13
|
-
* invisible to the outer one, and vice versa.
|
|
14
|
-
*
|
|
15
|
-
* This becomes especially bad with navigation: when you navigate away and back,
|
|
16
|
-
* the inner provider unmounts and remounts, creating a brand-new store. Any
|
|
17
|
-
* in-flight `showConfirmDialog` calls still hold a reference to the old store's
|
|
18
|
-
* dispatch, so their promises never resolve and the modal tree is left in a
|
|
19
|
-
* broken state. This has been detected when navigating in a Next.js app,
|
|
20
|
-
* but it could happen in any React app that conditionally mounts/unmounts providers.
|
|
21
|
-
*
|
|
22
|
-
* The fix: track whether a DialogProvider is already mounted above us in the tree.
|
|
23
|
-
* If one is, skip rendering NiceModal.Provider entirely and just pass children
|
|
24
|
-
* through — making the inner DialogProvider a safe no-op.
|
|
25
|
-
*/
|
|
26
|
-
const DialogProvider = (props) => {
|
|
27
|
-
if (use(DialogProviderMountedContext)) return /* @__PURE__ */ jsx(Fragment, { children: props.children });
|
|
28
|
-
return /* @__PURE__ */ jsx(DialogProviderMountedContext.Provider, {
|
|
29
|
-
value: true,
|
|
30
|
-
children: /* @__PURE__ */ jsx(NiceModal.Provider, { children: props.children })
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
DialogProvider.displayName = "DialogProvider";
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
export { DialogProvider };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_register_dialog = require('./register-dialog.cjs');
|
|
3
|
-
const require_show_dialog = require('./show-dialog.cjs');
|
|
4
|
-
let __ebay_nice_modal_react = require("@ebay/nice-modal-react");
|
|
5
|
-
__ebay_nice_modal_react = require_rolldown_runtime.__toESM(__ebay_nice_modal_react);
|
|
6
|
-
|
|
7
|
-
//#region src/dialog-provider/dialog-registry.ts
|
|
8
|
-
const useDialog = __ebay_nice_modal_react.useModal;
|
|
9
|
-
function createDialog(component) {
|
|
10
|
-
const CreatedDialog = __ebay_nice_modal_react.default.create(component);
|
|
11
|
-
return Object.assign(CreatedDialog, {
|
|
12
|
-
show: async (props) => __ebay_nice_modal_react.default.show(CreatedDialog, props),
|
|
13
|
-
hide: async () => __ebay_nice_modal_react.default.hide(CreatedDialog),
|
|
14
|
-
remove: () => {
|
|
15
|
-
__ebay_nice_modal_react.default.remove(CreatedDialog);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Hides a registered dialog by id.
|
|
21
|
-
*
|
|
22
|
-
* Use this when the caller only knows the dialog id. If you already have the
|
|
23
|
-
* controller returned by `dialog.register(...)`, prefer `controller.hide()`.
|
|
24
|
-
*
|
|
25
|
-
* @param id - Dialog id that was previously registered.
|
|
26
|
-
* @returns A promise from NiceModal that resolves after the hide action is
|
|
27
|
-
* dispatched.
|
|
28
|
-
*
|
|
29
|
-
* Usage:
|
|
30
|
-
* ```ts
|
|
31
|
-
* await hideDialog('project-dialog');
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
async function hideDialog(id) {
|
|
35
|
-
return __ebay_nice_modal_react.default.hide(id);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Removes a registered dialog instance from the NiceModal render tree by id.
|
|
39
|
-
*
|
|
40
|
-
* This does not unregister the dialog component; it only removes the mounted
|
|
41
|
-
* instance from the modal tree.
|
|
42
|
-
*
|
|
43
|
-
* @param id - Dialog id that was previously registered.
|
|
44
|
-
* Usage:
|
|
45
|
-
* ```ts
|
|
46
|
-
* removeDialog('project-dialog');
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
function removeDialog(id) {
|
|
50
|
-
__ebay_nice_modal_react.default.remove(id);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Unregisters a dialog component by id.
|
|
54
|
-
*
|
|
55
|
-
* Use this when a registered dialog should no longer be available through
|
|
56
|
-
* `showDialog(...)` or `dialog.show(...)`.
|
|
57
|
-
*
|
|
58
|
-
* @param id - Dialog id that was previously registered.
|
|
59
|
-
* Usage:
|
|
60
|
-
* ```ts
|
|
61
|
-
* unregisterDialog('project-dialog');
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
function unregisterDialog(id) {
|
|
65
|
-
(0, __ebay_nice_modal_react.unregister)(id);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Convenience registry facade for dialog operations.
|
|
69
|
-
*
|
|
70
|
-
* Use this when you prefer a single import with discoverable methods instead of
|
|
71
|
-
* importing `registerDialog`, `showDialog`, `hideDialog`, `removeDialog`, and
|
|
72
|
-
* `unregisterDialog` separately.
|
|
73
|
-
*
|
|
74
|
-
* @returns An object of dialog helper functions.
|
|
75
|
-
*
|
|
76
|
-
* Usage:
|
|
77
|
-
* ```ts
|
|
78
|
-
* const projectDialog = dialog.register('project-dialog', ProjectDialog);
|
|
79
|
-
* await projectDialog.show({ projectId: 'project-1' });
|
|
80
|
-
* await dialog.show('project-dialog', { projectId: 'project-2' });
|
|
81
|
-
* dialog.unregister('project-dialog');
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
const dialog = {
|
|
85
|
-
create: createDialog,
|
|
86
|
-
hide: hideDialog,
|
|
87
|
-
register: require_register_dialog.registerDialog,
|
|
88
|
-
remove: removeDialog,
|
|
89
|
-
show: require_show_dialog.showDialog,
|
|
90
|
-
unregister: unregisterDialog,
|
|
91
|
-
useDialog
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
//#endregion
|
|
95
|
-
exports.createDialog = createDialog;
|
|
96
|
-
exports.dialog = dialog;
|
|
97
|
-
exports.hideDialog = hideDialog;
|
|
98
|
-
exports.removeDialog = removeDialog;
|
|
99
|
-
exports.unregisterDialog = unregisterDialog;
|
|
100
|
-
exports.useDialog = useDialog;
|