Socket
Socket
Sign inDemoInstall

@draftbit/types

Package Overview
Dependencies
Maintainers
3
Versions
1214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@draftbit/types - npm Package Compare versions

Comparing version 42.1.0 to 42.1.1-958d73.2

48

lib/commonjs/index.js

@@ -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;
};
};

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc