@draftbit/types
Advanced tools
Comparing version 42.1.0 to 42.1.1-958d73.2
@@ -7,5 +7,6 @@ "use strict"; | ||
var _exportNames = { | ||
RowDirection: true | ||
RowDirection: true, | ||
Triggers: true | ||
}; | ||
exports.RowDirection = void 0; | ||
exports.Triggers = exports.RowDirection = void 0; | ||
@@ -25,3 +26,3 @@ var _componentTypes = require("./component-types"); | ||
}); | ||
let RowDirection; | ||
var RowDirection; | ||
exports.RowDirection = RowDirection; | ||
@@ -32,3 +33,42 @@ | ||
RowDirection["RowReverse"] = "row-reverse"; | ||
})(RowDirection || (exports.RowDirection = RowDirection = {})); | ||
})(RowDirection || (exports.RowDirection = RowDirection = {})); // enum TriggerType { | ||
// ON_REFRESH = "ON_REFRESH", | ||
// ON_PRESS = "ON_PRESS", | ||
// ON_VALUE_CHANGE = "ON_VALUE_CHANGE", | ||
// ON_BLUR = "ON_BLUR", | ||
// ON_SWIPE = "ON_SWIPE", | ||
// ON_CHANGE_TEXT = "ON_CHANGE_TEXT", | ||
// ON_DATE_CHANGE = "ON_DATE_CHANGE", | ||
// ON_CHANGE = "ON_CHANGE", | ||
// ON_SELECT = "ON_SELECT", | ||
// } | ||
const OnPress = { | ||
trigger: "ON_PRESS", | ||
name: "On Press", | ||
description: "When Presesd" | ||
}; | ||
const OnValueChange = { | ||
trigger: "ON_VALUE_CHANGE", | ||
name: "On Value Change", | ||
description: "Value Change" | ||
}; | ||
const OnDateChange = { | ||
trigger: "ON_DATE_CHANGE", | ||
name: "On Date Change", | ||
description: "" | ||
}; | ||
const OnChange = { | ||
trigger: "ON_CHANGE", | ||
name: "On Change", | ||
description: "" | ||
}; | ||
const Triggers = { | ||
OnPress, | ||
OnValueChange, | ||
OnDateChange, | ||
OnChange | ||
}; | ||
exports.Triggers = Triggers; | ||
//# sourceMappingURL=index.js.map |
export * from "./component-types"; | ||
export let RowDirection; | ||
export var RowDirection; | ||
@@ -7,3 +7,41 @@ (function (RowDirection) { | ||
RowDirection["RowReverse"] = "row-reverse"; | ||
})(RowDirection || (RowDirection = {})); | ||
})(RowDirection || (RowDirection = {})); // enum TriggerType { | ||
// ON_REFRESH = "ON_REFRESH", | ||
// ON_PRESS = "ON_PRESS", | ||
// ON_VALUE_CHANGE = "ON_VALUE_CHANGE", | ||
// ON_BLUR = "ON_BLUR", | ||
// ON_SWIPE = "ON_SWIPE", | ||
// ON_CHANGE_TEXT = "ON_CHANGE_TEXT", | ||
// ON_DATE_CHANGE = "ON_DATE_CHANGE", | ||
// ON_CHANGE = "ON_CHANGE", | ||
// ON_SELECT = "ON_SELECT", | ||
// } | ||
const OnPress = { | ||
trigger: "ON_PRESS", | ||
name: "On Press", | ||
description: "When Presesd" | ||
}; | ||
const OnValueChange = { | ||
trigger: "ON_VALUE_CHANGE", | ||
name: "On Value Change", | ||
description: "Value Change" | ||
}; | ||
const OnDateChange = { | ||
trigger: "ON_DATE_CHANGE", | ||
name: "On Date Change", | ||
description: "" | ||
}; | ||
const OnChange = { | ||
trigger: "ON_CHANGE", | ||
name: "On Change", | ||
description: "" | ||
}; | ||
export const Triggers = { | ||
OnPress, | ||
OnValueChange, | ||
OnDateChange, | ||
OnChange | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -22,1 +22,23 @@ import type { ComponentType, ComponentPropsWithoutRef } from "react"; | ||
export declare type EllipsizeProp = "head" | "middle" | "tail" | "clip"; | ||
export declare const Triggers: { | ||
OnPress: { | ||
trigger: string; | ||
name: string; | ||
description: string; | ||
}; | ||
OnValueChange: { | ||
trigger: string; | ||
name: string; | ||
description: string; | ||
}; | ||
OnDateChange: { | ||
trigger: string; | ||
name: string; | ||
description: string; | ||
}; | ||
OnChange: { | ||
trigger: string; | ||
name: string; | ||
description: string; | ||
}; | ||
}; |
{ | ||
"name": "@draftbit/types", | ||
"version": "42.1.0", | ||
"version": "42.1.1-958d73.2+958d736", | ||
"description": "Shared constants and types between native and core components", | ||
@@ -53,3 +53,3 @@ "main": "lib/commonjs/index.js", | ||
}, | ||
"gitHead": "b477be3fafbe8816afe385fa1ec5ff57cf90ceff" | ||
"gitHead": "958d73644f12ad6b1fcb4c33ef5b36c0cdfd7f0d" | ||
} |
@@ -7,1 +7,38 @@ export * from "./component-types"; | ||
})(RowDirection || (RowDirection = {})); | ||
// enum TriggerType { | ||
// ON_REFRESH = "ON_REFRESH", | ||
// ON_PRESS = "ON_PRESS", | ||
// ON_VALUE_CHANGE = "ON_VALUE_CHANGE", | ||
// ON_BLUR = "ON_BLUR", | ||
// ON_SWIPE = "ON_SWIPE", | ||
// ON_CHANGE_TEXT = "ON_CHANGE_TEXT", | ||
// ON_DATE_CHANGE = "ON_DATE_CHANGE", | ||
// ON_CHANGE = "ON_CHANGE", | ||
// ON_SELECT = "ON_SELECT", | ||
// } | ||
const OnPress = { | ||
trigger: "ON_PRESS", | ||
name: "On Press", | ||
description: "When Presesd", | ||
}; | ||
const OnValueChange = { | ||
trigger: "ON_VALUE_CHANGE", | ||
name: "On Value Change", | ||
description: "Value Change", | ||
}; | ||
const OnDateChange = { | ||
trigger: "ON_DATE_CHANGE", | ||
name: "On Date Change", | ||
description: "", | ||
}; | ||
const OnChange = { | ||
trigger: "ON_CHANGE", | ||
name: "On Change", | ||
description: "", | ||
}; | ||
export const Triggers = { | ||
OnPress, | ||
OnValueChange, | ||
OnDateChange, | ||
OnChange, | ||
}; |
@@ -79,1 +79,44 @@ import type { ComponentType, ComponentPropsWithoutRef } from "react"; | ||
export type EllipsizeProp = "head" | "middle" | "tail" | "clip"; | ||
// enum TriggerType { | ||
// ON_REFRESH = "ON_REFRESH", | ||
// ON_PRESS = "ON_PRESS", | ||
// ON_VALUE_CHANGE = "ON_VALUE_CHANGE", | ||
// ON_BLUR = "ON_BLUR", | ||
// ON_SWIPE = "ON_SWIPE", | ||
// ON_CHANGE_TEXT = "ON_CHANGE_TEXT", | ||
// ON_DATE_CHANGE = "ON_DATE_CHANGE", | ||
// ON_CHANGE = "ON_CHANGE", | ||
// ON_SELECT = "ON_SELECT", | ||
// } | ||
const OnPress = { | ||
trigger: "ON_PRESS", | ||
name: "On Press", | ||
description: "When Presesd", | ||
}; | ||
const OnValueChange = { | ||
trigger: "ON_VALUE_CHANGE", | ||
name: "On Value Change", | ||
description: "Value Change", | ||
}; | ||
const OnDateChange = { | ||
trigger: "ON_DATE_CHANGE", | ||
name: "On Date Change", | ||
description: "", | ||
}; | ||
const OnChange = { | ||
trigger: "ON_CHANGE", | ||
name: "On Change", | ||
description: "", | ||
}; | ||
export const Triggers = { | ||
OnPress, | ||
OnValueChange, | ||
OnDateChange, | ||
OnChange, | ||
}; |
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
168229
3468
1
1