@timeax/form-palette 0.0.39 → 0.1.1
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/extra.d.mts +2 -2
- package/dist/extra.d.ts +2 -2
- package/dist/extra.js +2 -1
- package/dist/extra.js.map +1 -1
- package/dist/extra.mjs +2 -1
- package/dist/extra.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{variant-aFXJGBXI.d.mts → variant-BGkGWsSy.d.mts} +1 -0
- package/dist/{variant-Jrd0I0Ey.d.ts → variant-B_L0opEi.d.ts} +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -19689,6 +19689,7 @@ var ShadcnFileVariant = React68.forwardRef(function ShadcnFileVariant2(props, re
|
|
|
19689
19689
|
formatFileSize = formatSizeDefault,
|
|
19690
19690
|
placeholder = "Select file...",
|
|
19691
19691
|
className,
|
|
19692
|
+
custom,
|
|
19692
19693
|
dropAreaClassName,
|
|
19693
19694
|
listClassName,
|
|
19694
19695
|
triggerClassName,
|
|
@@ -19800,7 +19801,7 @@ var ShadcnFileVariant = React68.forwardRef(function ShadcnFileVariant2(props, re
|
|
|
19800
19801
|
const openPicker = React68.useCallback(async () => {
|
|
19801
19802
|
var _a;
|
|
19802
19803
|
if (isDisabled) return;
|
|
19803
|
-
let resolvedLoader = customLoader != null ? customLoader : getPaletteUtil("customLoader");
|
|
19804
|
+
let resolvedLoader = customLoader != null ? customLoader : custom && getPaletteUtil("customLoader");
|
|
19804
19805
|
if (resolvedLoader) {
|
|
19805
19806
|
try {
|
|
19806
19807
|
const result = await resolvedLoader({ multiple, current: items, allowedTypes: toArray(accept) });
|