@draftbit/types
Advanced tools
Comparing version 40.36.1 to 40.36.2-2409ba.7
@@ -238,3 +238,2 @@ "use strict"; | ||
required: true, | ||
min: 0, | ||
step: 1, | ||
@@ -293,3 +292,3 @@ ...overrides | ||
formType: FORM_TYPES.flatArray, | ||
defaultValue: "horizontal", | ||
defaultValue: null, | ||
options: ["horizontal", "vertical"], | ||
@@ -341,3 +340,3 @@ ...overrides | ||
propType: PROP_TYPES.STRING, | ||
defaultValue: null, | ||
defaultValue: "value", | ||
valuePropName: "value", | ||
@@ -357,3 +356,13 @@ handlerPropName: "onChange", | ||
const createActionProp = (overrides = {}) => createFieldNameProp(overrides); | ||
const createActionProp = (overrides = {}) => ({ | ||
label: "Action", | ||
description: "Action to execute when button pressed", | ||
editable: true, | ||
required: false, | ||
formType: FORM_TYPES.action, | ||
propType: PROP_TYPES.STRING, | ||
defaultValue: null, | ||
group: GROUPS.basic, | ||
...overrides | ||
}); | ||
@@ -360,0 +369,0 @@ exports.createActionProp = createActionProp; |
@@ -196,3 +196,2 @@ // @ts-nocheck | ||
required: true, | ||
min: 0, | ||
step: 1, | ||
@@ -239,3 +238,3 @@ ...overrides | ||
formType: FORM_TYPES.flatArray, | ||
defaultValue: "horizontal", | ||
defaultValue: null, | ||
options: ["horizontal", "vertical"], | ||
@@ -278,3 +277,3 @@ ...overrides | ||
propType: PROP_TYPES.STRING, | ||
defaultValue: null, | ||
defaultValue: "value", | ||
valuePropName: "value", | ||
@@ -289,3 +288,13 @@ handlerPropName: "onChange", | ||
}); | ||
export const createActionProp = (overrides = {}) => createFieldNameProp(overrides); | ||
export const createActionProp = (overrides = {}) => ({ | ||
label: "Action", | ||
description: "Action to execute when button pressed", | ||
editable: true, | ||
required: false, | ||
formType: FORM_TYPES.action, | ||
propType: PROP_TYPES.STRING, | ||
defaultValue: null, | ||
group: GROUPS.basic, | ||
...overrides | ||
}); | ||
export const createStateValue = (overrides = {}) => ({ ...FIELD_NAME, | ||
@@ -292,0 +301,0 @@ ...overrides |
@@ -166,3 +166,2 @@ export declare const PROP_TYPES: { | ||
required: boolean; | ||
min: number; | ||
step: number; | ||
@@ -249,3 +248,3 @@ }; | ||
propType: string; | ||
defaultValue: null; | ||
defaultValue: string; | ||
valuePropName: string; | ||
@@ -263,3 +262,3 @@ handlerPropName: string; | ||
propType: string; | ||
defaultValue: null; | ||
defaultValue: string; | ||
valuePropName: string; | ||
@@ -270,12 +269,10 @@ editable: boolean; | ||
export declare const createActionProp: (overrides?: {}) => { | ||
handlerPropName: string; | ||
group: string; | ||
label: string; | ||
description: string; | ||
editable: boolean; | ||
required: boolean; | ||
formType: string; | ||
propType: string; | ||
defaultValue: null; | ||
valuePropName: string; | ||
editable: boolean; | ||
required: boolean; | ||
group: string; | ||
}; | ||
@@ -288,3 +285,3 @@ export declare const createStateValue: (overrides?: {}) => { | ||
propType: string; | ||
defaultValue: null; | ||
defaultValue: string; | ||
valuePropName: string; | ||
@@ -291,0 +288,0 @@ handlerPropName: string; |
{ | ||
"name": "@draftbit/types", | ||
"version": "40.36.1", | ||
"version": "40.36.2-2409ba.7+2409ba7", | ||
"description": "Shared constants and types between native and core components", | ||
@@ -53,3 +53,3 @@ "main": "lib/commonjs/index.js", | ||
}, | ||
"gitHead": "1451375fed60bae228bbac406fbc68f651b22910" | ||
"gitHead": "2409ba7c3b91d98228101f3ceb72e5df8d476c42" | ||
} |
@@ -207,3 +207,2 @@ // @ts-nocheck | ||
required: true, | ||
min: 0, | ||
step: 1, | ||
@@ -256,3 +255,3 @@ ...overrides, | ||
formType: FORM_TYPES.flatArray, | ||
defaultValue: "horizontal", | ||
defaultValue: null, | ||
options: ["horizontal", "vertical"], | ||
@@ -302,3 +301,3 @@ ...overrides, | ||
propType: PROP_TYPES.STRING, | ||
defaultValue: null, | ||
defaultValue: "value", | ||
valuePropName: "value", | ||
@@ -316,4 +315,13 @@ handlerPropName: "onChange", | ||
export const createActionProp = (overrides = {}) => | ||
createFieldNameProp(overrides); | ||
export const createActionProp = (overrides = {}) => ({ | ||
label: "Action", | ||
description: "Action to execute when button pressed", | ||
editable: true, | ||
required: false, | ||
formType: FORM_TYPES.action, | ||
propType: PROP_TYPES.STRING, | ||
defaultValue: null, | ||
group: GROUPS.basic, | ||
...overrides, | ||
}); | ||
@@ -320,0 +328,0 @@ export const createStateValue = (overrides = {}) => ({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141397
2640
1
1