@process.co/ui 0.0.11 → 0.0.12
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/components/fields/index.cjs +14 -1
- package/dist/components/fields/index.cjs.map +1 -1
- package/dist/components/fields/index.d.cts +1 -1
- package/dist/components/fields/index.d.ts +1 -1
- package/dist/components/fields/index.js +13 -1
- package/dist/components/fields/index.js.map +1 -1
- package/dist/{index-B-kAG1RW.d.cts → index-ep9HbrZE.d.cts} +26 -2
- package/dist/{index-B-kAG1RW.d.ts → index-ep9HbrZE.d.ts} +26 -2
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
5
|
-
export { i as fields } from './index-
|
|
5
|
+
export { i as fields } from './index-ep9HbrZE.cjs';
|
|
6
6
|
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
5
|
-
export { i as fields } from './index-
|
|
5
|
+
export { i as fields } from './index-ep9HbrZE.js';
|
|
6
6
|
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -5167,6 +5167,9 @@ __export(fields_exports, {
|
|
|
5167
5167
|
},
|
|
5168
5168
|
useTemplateFieldContext: function() {
|
|
5169
5169
|
return useTemplateFieldContext;
|
|
5170
|
+
},
|
|
5171
|
+
useTriggerLayoutUpdate: function() {
|
|
5172
|
+
return useTriggerLayoutUpdate;
|
|
5170
5173
|
}
|
|
5171
5174
|
});
|
|
5172
5175
|
var DevContext = createContext(null);
|
|
@@ -6043,6 +6046,18 @@ function useSetProperty() {
|
|
|
6043
6046
|
devContext
|
|
6044
6047
|
]);
|
|
6045
6048
|
}
|
|
6049
|
+
function useTriggerLayoutUpdate() {
|
|
6050
|
+
var devContext = useContext(DevContext);
|
|
6051
|
+
return useCallback(function() {
|
|
6052
|
+
if (devContext) {
|
|
6053
|
+
console.log("[useTriggerLayoutUpdate] Dev mode - layout update is a no-op");
|
|
6054
|
+
} else {
|
|
6055
|
+
console.warn("[useTriggerLayoutUpdate] No provider - layout update ignored");
|
|
6056
|
+
}
|
|
6057
|
+
}, [
|
|
6058
|
+
devContext
|
|
6059
|
+
]);
|
|
6060
|
+
}
|
|
6046
6061
|
function useFieldValidation() {
|
|
6047
6062
|
var setFieldRequired = useCallback(function(fieldName, required) {
|
|
6048
6063
|
console.warn('[useFieldValidation] Mock mode - cannot set required for "'.concat(fieldName, '"'));
|