Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@featherds/input-helper

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@featherds/input-helper - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

66

dist/app.es.js

@@ -0,11 +1,31 @@

var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
import { FeatherIcon } from "@featherds/icon";
import { resolveComponent, openBlock, createElementBlock, createVNode, createBlock, withModifiers, markRaw, inject, normalizeClass, createElementVNode, toDisplayString, withDirectives, normalizeStyle, vShow, renderSlot, createCommentVNode } from "vue";
import { resolveComponent, openBlock, createElementBlock, createVNode, createBlock, withModifiers, markRaw, inject, computed, normalizeClass, createElementVNode, toDisplayString, withDirectives, normalizeStyle, vShow, renderSlot, createCommentVNode } from "vue";
import Cancel from "@featherds/icon/navigation/Cancel";
import Error from "@featherds/icon/notification/Warning";
import Error2 from "@featherds/icon/notification/Warning";
var ActionIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
var _export_sfc = (sfc, props) => {
const target = sfc.__vccOpts || sfc;
for (const [key, val] of props) {
sfc[key] = val;
target[key] = val;
}
return sfc;
return target;
};

@@ -59,3 +79,3 @@ const _sfc_main$4 = {

return openBlock(), createBlock(_component_ActionIcon, {
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("clear"), ["stop"])),
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("clear"), ["stop", "prevent"])),
title: $props.clear,

@@ -71,3 +91,3 @@ icon: $options.clearIcon,

errorIcon() {
return markRaw(Error);
return markRaw(Error2);
}

@@ -119,3 +139,13 @@ },

const options = inject("wrapperOptions");
return options;
const errorMessage = inject("validationErrorMessage", false);
const error = computed(() => {
if (options.error) {
return options.error;
}
if (errorMessage && errorMessage.value) {
return errorMessage.value;
}
return false;
});
return __spreadProps(__spreadValues({}, options), { error });
},

@@ -237,3 +267,3 @@ computed: {

}, null, 8, ["clear"])) : createCommentVNode("", true),
_ctx.error ? (openBlock(), createBlock(_component_ErrorIcon, { key: 1 })) : createCommentVNode("", true),
$setup.error ? (openBlock(), createBlock(_component_ErrorIcon, { key: 1 })) : createCommentVNode("", true),
renderSlot(_ctx.$slots, "post", {}, void 0, true)

@@ -244,3 +274,3 @@ ])

}
var InputWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-051667c2"]]);
var InputWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-3828e91d"]]);
var InputWrapperMixin = {

@@ -298,3 +328,13 @@ props: {

const options = inject("subTextOptions");
return options;
const errorMessage = inject("validationErrorMessage", false);
const error = computed(() => {
if (options.error) {
return options.error;
}
if (errorMessage && errorMessage.value) {
return errorMessage.value;
}
return "";
});
return __spreadProps(__spreadValues({}, options), { error });
}

@@ -319,4 +359,4 @@ };

}, [
_ctx.hint && !_ctx.error ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true),
_ctx.error ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(_ctx.error), 1)) : createCommentVNode("", true),
_ctx.hint && !$setup.error.length ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true),
$setup.error.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString($setup.error), 1)) : createCommentVNode("", true),
renderSlot(_ctx.$slots, "right", {}, void 0, true)

@@ -327,3 +367,3 @@ ], 8, _hoisted_1)), [

}
var InputSubText = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-cef1410a"]]);
var InputSubText = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-51d97390"]]);
var InputSubTextMixin = {

@@ -330,0 +370,0 @@ props: {

6

package.json
{
"name": "@featherds/input-helper",
"version": "0.9.2",
"version": "0.9.3",
"publishConfig": {

@@ -12,3 +12,3 @@ "access": "public"

"dependencies": {
"@featherds/styles": "^0.9.2",
"@featherds/styles": "^0.9.3",
"vue": "^3.1.0-0"

@@ -21,3 +21,3 @@ },

"types": "./src/index.d.ts",
"gitHead": "c5b9a591688579921f59e070325aa141c23315f7"
"gitHead": "aebb5c7fe38504ab6719aff7007fe42ba940c63e"
}

@@ -28,4 +28,4 @@ import InputSubText from "./InputSubText.vue";

provide: {
hint: ref("HINT"),
error: ref(""),
hint: "HINT",
error: "",
},

@@ -43,4 +43,4 @@ },

provide: {
hint: ref(""),
error: ref("HINT"),
hint: "",
error: "HINT",
},

@@ -47,0 +47,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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