oga-ui 0.1.71 → 0.1.73

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oga-ui",
3
- "version": "0.1.71",
3
+ "version": "0.1.73",
4
4
  "description": "A Component Library for Vue3",
5
5
  "author": {
6
6
  "name": "Alonso Spenser",
@@ -1,12 +1,13 @@
1
1
  import { createCommentVNode, createElementBlock, defineComponent, normalizeClass, normalizeStyle, openBlock, renderSlot, toDisplayString, unref } from "vue";
2
- var _hoisted_1 = { key: 0 }, _hoisted_2 = {
3
- key: 1,
4
- class: "oga-section-action"
5
- }, _hoisted_3 = {
2
+ const isEmpty = (e) => e == null || e.trim().length === 0, isNotEmpty = (e) => !isEmpty(e);
3
+ var _hoisted_1 = { key: 0 }, _hoisted_2 = { key: 1 }, _hoisted_3 = {
6
4
  key: 2,
7
- class: "oga-section-description"
5
+ class: "oga-section-action"
8
6
  }, _hoisted_4 = {
9
7
  key: 3,
8
+ class: "oga-section-description"
9
+ }, _hoisted_5 = {
10
+ key: 4,
10
11
  class: "oga-section-content"
11
12
  }, src_default = /* @__PURE__ */ defineComponent({
12
13
  __name: "index",
@@ -28,16 +29,16 @@ var _hoisted_1 = { key: 0 }, _hoisted_2 = {
28
29
  default: 20
29
30
  }
30
31
  },
31
- setup(f) {
32
- let p = f, m = {};
33
- return p.borderRadius > 0 && p.borderRadius != 7 && (m["--borderRadius"] = p.borderRadius), p.padding > 0 && p.padding != 20 && (m["--padding"] = p.padding), (p, h) => (openBlock(), createElementBlock("fieldset", {
34
- class: normalizeClass(["oga-section", f.description ? "has-description" : ""]),
35
- style: normalizeStyle(unref(m))
32
+ setup(m) {
33
+ let h = m, g = {};
34
+ return h.borderRadius > 0 && h.borderRadius != 7 && (g["--borderRadius"] = h.borderRadius), h.padding > 0 && h.padding != 20 && (g["--padding"] = h.padding), (h, _) => (openBlock(), createElementBlock("fieldset", {
35
+ class: normalizeClass(["oga-section", m.description ? "has-description" : ""]),
36
+ style: normalizeStyle(unref(g))
36
37
  }, [
37
- f.heading ? (openBlock(), createElementBlock("legend", _hoisted_1, toDisplayString(f.heading), 1)) : createCommentVNode("v-if", !0),
38
- p.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(p.$slots, "header")])) : createCommentVNode("v-if", !0),
39
- f.description ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(f.description), 1)) : createCommentVNode("v-if", !0),
40
- p.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(p.$slots, "default")])) : createCommentVNode("v-if", !0)
38
+ unref(isNotEmpty)(m.heading) ? (openBlock(), createElementBlock("legend", _hoisted_1, toDisplayString(m.heading), 1)) : h.$slots.heading ? (openBlock(), createElementBlock("legend", _hoisted_2, [renderSlot(h.$slots, "heading")])) : createCommentVNode("v-if", !0),
39
+ h.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(h.$slots, "header")])) : createCommentVNode("v-if", !0),
40
+ m.description ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(m.description), 1)) : createCommentVNode("v-if", !0),
41
+ h.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(h.$slots, "default")])) : createCommentVNode("v-if", !0)
41
42
  ], 6));
42
43
  }
43
44
  }), section_default = { install(e) {
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){var t={key:0},n={key:1,class:`oga-section-action`},r={key:2,class:`oga-section-description`},i={key:3,class:`oga-section-content`},a=(0,e.defineComponent)({__name:`index`,props:{heading:{type:String,default:``},description:{type:String,default:``},borderRadius:{type:Number,default:0},padding:{type:Number,default:20}},setup(a){let o=a,s={};return o.borderRadius>0&&o.borderRadius!=7&&(s[`--borderRadius`]=o.borderRadius),o.padding>0&&o.padding!=20&&(s[`--padding`]=o.padding),(o,c)=>((0,e.openBlock)(),(0,e.createElementBlock)(`fieldset`,{class:(0,e.normalizeClass)([`oga-section`,a.description?`has-description`:``]),style:(0,e.normalizeStyle)((0,e.unref)(s))},[a.heading?((0,e.openBlock)(),(0,e.createElementBlock)(`legend`,t,(0,e.toDisplayString)(a.heading),1)):(0,e.createCommentVNode)(`v-if`,!0),o.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,n,[(0,e.renderSlot)(o.$slots,`header`)])):(0,e.createCommentVNode)(`v-if`,!0),a.description?((0,e.openBlock)(),(0,e.createElementBlock)(`p`,r,(0,e.toDisplayString)(a.description),1)):(0,e.createCommentVNode)(`v-if`,!0),o.$slots.default?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,i,[(0,e.renderSlot)(o.$slots,`default`)])):(0,e.createCommentVNode)(`v-if`,!0)],6))}});return{install(e){e.component(`OgaSection`,a)}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){let t=e=>e==null||e.trim().length===0,n=e=>!t(e);var r={key:0},i={key:1},a={key:2,class:`oga-section-action`},o={key:3,class:`oga-section-description`},s={key:4,class:`oga-section-content`},c=(0,e.defineComponent)({__name:`index`,props:{heading:{type:String,default:``},description:{type:String,default:``},borderRadius:{type:Number,default:0},padding:{type:Number,default:20}},setup(t){let c=t,l={};return c.borderRadius>0&&c.borderRadius!=7&&(l[`--borderRadius`]=c.borderRadius),c.padding>0&&c.padding!=20&&(l[`--padding`]=c.padding),(c,u)=>((0,e.openBlock)(),(0,e.createElementBlock)(`fieldset`,{class:(0,e.normalizeClass)([`oga-section`,t.description?`has-description`:``]),style:(0,e.normalizeStyle)((0,e.unref)(l))},[(0,e.unref)(n)(t.heading)?((0,e.openBlock)(),(0,e.createElementBlock)(`legend`,r,(0,e.toDisplayString)(t.heading),1)):c.$slots.heading?((0,e.openBlock)(),(0,e.createElementBlock)(`legend`,i,[(0,e.renderSlot)(c.$slots,`heading`)])):(0,e.createCommentVNode)(`v-if`,!0),c.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,a,[(0,e.renderSlot)(c.$slots,`header`)])):(0,e.createCommentVNode)(`v-if`,!0),t.description?((0,e.openBlock)(),(0,e.createElementBlock)(`p`,o,(0,e.toDisplayString)(t.description),1)):(0,e.createCommentVNode)(`v-if`,!0),c.$slots.default?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,s,[(0,e.renderSlot)(c.$slots,`default`)])):(0,e.createCommentVNode)(`v-if`,!0)],6))}});return{install(e){e.component(`OgaSection`,c)}}});