@frollo/frollo-web-ui 0.0.9 → 0.0.10

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.
@@ -5325,7 +5325,7 @@ var _hoisted_8 = /*#__PURE__*/createElementVNode("svg", {
5325
5325
 
5326
5326
  var _hoisted_9 = [_hoisted_8];
5327
5327
  var _hoisted_10 = {
5328
- "class": "text-error text-right text-sm font-medium mt-2 min-h-[21px]"
5328
+ "class": "text-error italic text-right text-sm font-medium mt-2 min-h-[21px]"
5329
5329
  };
5330
5330
  var _hoisted_11 = {
5331
5331
  key: 0
@@ -5343,6 +5343,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5343
5343
  }, {
5344
5344
  "default": withCtx(function (_ref) {
5345
5345
  var field = _ref.field,
5346
+ errors = _ref.errors,
5346
5347
  errorMessage = _ref.errorMessage,
5347
5348
  meta = _ref.meta;
5348
5349
  return [createElementVNode("div", _hoisted_2, [_ctx.label ? (openBlock(), createElementBlock("label", {
@@ -5359,14 +5360,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
5359
5360
  name: "errorFadeIn"
5360
5361
  }, {
5361
5362
  "default": withCtx(function () {
5362
- return [errorMessage && meta.touched ? (openBlock(), createElementBlock("div", _hoisted_7, _hoisted_9)) : createCommentVNode("", true)];
5363
+ return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("div", _hoisted_7, _hoisted_9)) : createCommentVNode("", true)];
5363
5364
  }),
5364
5365
  _: 2
5365
5366
  }, 1024)]), createElementVNode("div", _hoisted_10, [createVNode(Transition, {
5366
5367
  name: "errorFadeIn"
5367
5368
  }, {
5368
5369
  "default": withCtx(function () {
5369
- return [errorMessage && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(errorMessage), 1)) : createCommentVNode("", true)];
5370
+ return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(errorMessage || errors[0]), 1)) : createCommentVNode("", true)];
5370
5371
  }),
5371
5372
  _: 2
5372
5373
  }, 1024)])])];
@@ -5386,6 +5387,7 @@ var components = /*#__PURE__*/Object.freeze({
5386
5387
  FwCard: script$3,
5387
5388
  FwButton: script$2,
5388
5389
  FwNavigationMenu: script$1,
5390
+ FwForm: Form,
5389
5391
  FwInput: script
5390
5392
  });
5391
5393
 
@@ -5399,4 +5401,4 @@ var install = function install(app) {
5399
5401
  });
5400
5402
  };
5401
5403
 
5402
- export { script$2 as FwButton, script$3 as FwCard, script as FwInput, script$1 as FwNavigationMenu, install as default };
5404
+ export { script$2 as FwButton, script$3 as FwCard, Form as FwForm, script as FwInput, script$1 as FwNavigationMenu, install as default };
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as vue from 'vue';
2
2
  import { PropType, Plugin } from 'vue';
3
+ export { Form as FwForm } from 'vee-validate';
3
4
 
4
5
  declare const _default$3: vue.DefineComponent<{
5
6
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -0,0 +1,2 @@
1
+ import { Form as FwForm } from 'vee-validate';
2
+ export { FwForm };
@@ -1,4 +1,5 @@
1
1
  export * from './fw-card';
2
2
  export * from './fw-button';
3
3
  export * from './fw-navigation-menu';
4
+ export * from './fw-form';
4
5
  export * from './fw-input';