@vlalg-nimbus/nb-inputs 2.0.0 → 3.0.0

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/dist/nb-inputs.js CHANGED
@@ -1,5 +1,5 @@
1
- import { useCssVars as ne, onMounted as re, ref as se, toRefs as ce, computed as a, watch as B, openBlock as S, createElementBlock as C, normalizeClass as g, normalizeStyle as D, createElementVNode as H, Fragment as ie, renderList as de, unref as q, withDirectives as fe, vModelRadio as xe, toDisplayString as ve, createCommentVNode as pe, vModelCheckbox as _e } from "vue";
2
- const be = (e, o) => {
1
+ import { useCssVars as ue, onMounted as ne, ref as re, toRefs as se, computed as a, watch as B, openBlock as S, createElementBlock as C, normalizeClass as g, normalizeStyle as D, createElementVNode as H, Fragment as ce, renderList as ie, unref as q, withDirectives as de, vModelRadio as xe, toDisplayString as fe, createCommentVNode as ve, vModelCheckbox as _e } from "vue";
2
+ const pe = (e, o) => {
3
3
  const u = e.__vccOpts || e;
4
4
  for (const [d, i] of o)
5
5
  u[d] = i;
@@ -105,7 +105,7 @@ const be = (e, o) => {
105
105
  },
106
106
  emits: ["current-value", "changed"],
107
107
  setup(e, { emit: o }) {
108
- ne((l) => ({
108
+ ue((l) => ({
109
109
  "0bef0e00": P.value,
110
110
  "5d4a30b3": Q.value,
111
111
  fe937dba: K.value,
@@ -114,10 +114,10 @@ const be = (e, o) => {
114
114
  "721aad28": Z.value,
115
115
  "69c3c4e7": Y.value,
116
116
  "61e98d88": W.value
117
- })), re(() => {
117
+ })), ne(() => {
118
118
  j();
119
119
  });
120
- const u = o, d = e, i = se(null), {
120
+ const u = o, d = e, i = re(null), {
121
121
  currentOptiton: f,
122
122
  display: E,
123
123
  options: v,
@@ -133,7 +133,7 @@ const be = (e, o) => {
133
133
  fontFamily: A,
134
134
  fontSize: R,
135
135
  fontWeight: x
136
- } = ce(d), s = a(() => {
136
+ } = se(d), s = a(() => {
137
137
  const l = m.value ? "component-disabled" : "", c = E.value !== "b" ? "inline-block" : "block", b = A.value ? A.value : "'Lato', sans-serif", k = R.value ? R.value : "1.6em", t = !x.value || x.value < 0 ? 200 : x.value, r = G.value ? G.value : "left", y = N.value ? N.value : "black", w = V.value ? V.value : "#767676", z = [!1, !0].includes(I.value) ? I.value : !1, ee = [!1, !0].includes($.value) ? $.value : !1, te = O.value ? O.value : "#a6a6a6", ae = !h.value || h.value < 0 ? 15 : h.value, le = !p.value || p.value < 0 ? 6 : p.value;
138
138
  return {
139
139
  disabled: l,
@@ -188,11 +188,11 @@ const be = (e, o) => {
188
188
  class: g(["nb-reset", "component"]),
189
189
  style: D([M.value])
190
190
  }, [
191
- (S(!0), C(ie, null, de(q(v), (b, k) => (S(), C("div", {
191
+ (S(!0), C(ce, null, ie(q(v), (b, k) => (S(), C("div", {
192
192
  key: k,
193
193
  class: g(["custom-radio__item", [F.value, U.value]])
194
194
  }, [
195
- fe(H("input", {
195
+ de(H("input", {
196
196
  id: `${e.nbId}-${b.value}`,
197
197
  "onUpdate:modelValue": c[0] || (c[0] = (t) => i.value = t),
198
198
  type: "radio",
@@ -206,12 +206,12 @@ const be = (e, o) => {
206
206
  H("label", {
207
207
  for: `${e.nbId}-${b.value}`,
208
208
  class: "custom-radio__item--label"
209
- }, ve(b.text), 9, Ce)
209
+ }, fe(b.text), 9, Ce)
210
210
  ], 2))), 128))
211
211
  ], 12, ke)
212
- ], 6)) : pe("", !0);
212
+ ], 6)) : ve("", !0);
213
213
  }
214
- }), Ee = /* @__PURE__ */ be(He, [["__scopeId", "data-v-bc9a39f2"]]);
214
+ }), Ee = /* @__PURE__ */ pe(He, [["__scopeId", "data-v-bc9a39f2"]]);
215
215
  const Ge = ["id"], Ne = ["id", "disabled", "value", "name"], Ie = ["for"], $e = /* @__PURE__ */ Object.assign({
216
216
  name: "NbInputCheckbox",
217
217
  inheritAttrs: !1
@@ -322,20 +322,20 @@ const Ge = ["id"], Ne = ["id", "disabled", "value", "name"], Ie = ["for"], $e =
322
322
  },
323
323
  emits: ["current-value", "changed"],
324
324
  setup(e, { emit: o }) {
325
- ne((t) => ({
326
- "1751b7fe": K.value,
327
- cda5fb16: L.value,
328
- "710ceee6": l.value,
329
- "7424f4a1": X.value,
330
- f7cfb718: Q.value,
331
- "108abdca": Y.value,
332
- a657b72c: c.value,
333
- "37a8fdae": Z.value,
334
- bcc9f58c: j.value
335
- })), re(() => {
325
+ ue((t) => ({
326
+ "3f7e0200": K.value,
327
+ "0301bcb3": L.value,
328
+ "17769ee2": l.value,
329
+ "7b8395ba": X.value,
330
+ aa8d5814: Q.value,
331
+ b5813c4e: Y.value,
332
+ "1c30c528": c.value,
333
+ "593a50e7": Z.value,
334
+ "6333a588": j.value
335
+ })), ne(() => {
336
336
  k();
337
337
  });
338
- const u = o, d = e, i = se(null), {
338
+ const u = o, d = e, i = re(null), {
339
339
  currentOptiton: f,
340
340
  display: E,
341
341
  options: v,
@@ -353,21 +353,21 @@ const Ge = ["id"], Ne = ["id", "disabled", "value", "name"], Ie = ["for"], $e =
353
353
  fontFamily: x,
354
354
  fontSize: s,
355
355
  fontWeight: _
356
- } = ce(d), n = a(() => {
357
- const t = R.value ? "component-disabled" : "", r = E.value !== "b" ? "inline-block" : "block", y = x.value ? x.value : "'Lato', sans-serif", w = s.value ? s.value : "1.6em", z = _.value !== 0 && !_.value || _.value < 0 ? 200 : _.value, ee = G.value ? G.value : "left", te = N.value ? N.value : "black", ae = V.value !== 0 && !V.value || V.value < 0 ? 0 : V.value, le = I.value ? I.value : "#767676", ye = [!1, !0].includes($.value) ? $.value : !1, Ve = [!1, !0].includes(O.value) ? O.value : !1, me = h.value ? h.value : "#a6a6a6", ge = p.value !== 0 && !p.value || p.value < 0 ? 15 : p.value, he = m.value !== 0 && !m.value || m.value < 0 ? 6 : m.value, ue = ["box", "circle"].includes(A.value) ? A.value : "box";
358
- return console.log(ue), {
356
+ } = se(d), n = a(() => {
357
+ const t = R.value ? "component-disabled" : "", r = E.value !== "b" ? "inline-block" : "block", y = x.value ? x.value : "'Lato', sans-serif", w = s.value ? s.value : "1.6em", z = _.value !== 0 && !_.value || _.value < 0 ? 200 : _.value, ee = G.value ? G.value : "left", te = N.value ? N.value : "black", ae = V.value !== 0 && !V.value || V.value < 0 ? 0 : V.value, le = I.value ? I.value : "#767676", be = [!1, !0].includes($.value) ? $.value : !1, ye = [!1, !0].includes(O.value) ? O.value : !1, Ve = h.value ? h.value : "#a6a6a6", me = p.value !== 0 && !p.value || p.value < 0 ? 15 : p.value, ge = m.value !== 0 && !m.value || m.value < 0 ? 6 : m.value, he = ["box", "circle"].includes(A.value) ? A.value : "box";
358
+ return {
359
359
  disabled: t,
360
360
  display: r,
361
361
  direction: ee,
362
362
  textColor: te,
363
363
  boxRadius: ae,
364
364
  color: le,
365
- hoverEffect: ye,
366
- activeHoverEffect: Ve,
367
- colorHover: me,
368
- itemGap: ge,
369
- internalGap: he,
370
- type: ue,
365
+ hoverEffect: be,
366
+ activeHoverEffect: ye,
367
+ colorHover: Ve,
368
+ itemGap: me,
369
+ internalGap: ge,
370
+ type: he,
371
371
  font: y,
372
372
  fontSize: w,
373
373
  fontWeight: z
@@ -412,11 +412,11 @@ const Ge = ["id"], Ne = ["id", "disabled", "value", "name"], Ie = ["for"], $e =
412
412
  class: g(["nb-reset", "component"]),
413
413
  style: D([U.value])
414
414
  }, [
415
- (S(!0), C(ie, null, de(q(v), (y, w) => (S(), C("div", {
415
+ (S(!0), C(ce, null, ie(q(v), (y, w) => (S(), C("div", {
416
416
  key: w,
417
417
  class: g(["custom-checkbox__item", [T.value, J.value]])
418
418
  }, [
419
- fe(H("input", {
419
+ de(H("input", {
420
420
  id: `${e.nbId}-${y.value}`,
421
421
  "onUpdate:modelValue": r[0] || (r[0] = (z) => i.value = z),
422
422
  type: "checkbox",
@@ -430,12 +430,12 @@ const Ge = ["id"], Ne = ["id", "disabled", "value", "name"], Ie = ["for"], $e =
430
430
  H("label", {
431
431
  for: `${e.nbId}-${y.value}`,
432
432
  class: g([[b.value], "custom-checkbox__item--label"])
433
- }, ve(y.text), 11, Ie)
433
+ }, fe(y.text), 11, Ie)
434
434
  ], 2))), 128))
435
435
  ], 12, Ge)
436
- ], 6)) : pe("", !0);
436
+ ], 6)) : ve("", !0);
437
437
  }
438
- }), Oe = /* @__PURE__ */ be($e, [["__scopeId", "data-v-406f0fb9"]]), oe = {
438
+ }), Oe = /* @__PURE__ */ pe($e, [["__scopeId", "data-v-5733b814"]]), oe = {
439
439
  NbInputRadio: Ee,
440
440
  NbInputCheckbox: Oe
441
441
  }, Re = {
@@ -1 +1 @@
1
- (function(e,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("vue")):typeof define=="function"&&define.amd?define(["vue"],w):(e=typeof globalThis<"u"?globalThis:e||self,e.NbInputs=w(e.Vue))})(this,function(e){"use strict";const w="",Z=(t,o)=>{const n=t.__vccOpts||t;for(const[d,i]of o)n[d]=i;return n},te=["id"],ae=["id","disabled","value","name"],le=["for"],oe=Z(Object.assign({name:"NbInputRadio",inheritAttrs:!1},{__name:"NbInputRadio",props:{nbId:{type:String,required:!0},display:{type:String,default:"b",validator:(t="b")=>{const o=t?t.toLowerCase():"";return["b","ib"].includes(o)}},groupName:{type:String,default:"",required:!0,validator:t=>t.toString().toLowerCase()},options:{type:Array,required:!0,default:()=>[],validator:t=>{if(!t.length)return!1;let o=!1;for(const n of t){const d=Object.keys(n);d.length!==2&&(o=!0),d.every(f=>["value","text"].includes(f))||(o=!0)}if(!o)return t}},currentOptiton:{type:String,default:null},direction:{type:String,default:"left",validator:t=>["left","right"].indexOf(t)!==-1},textColor:{type:String,default:"black"},color:{type:String,default:"#767676"},hoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},activeHoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},colorHover:{type:String,default:"#a6a6a6"},itemGap:{type:Number,default:15},internalGap:{type:Number,default:6},disabled:{type:Boolean,default:!1,validator:t=>typeof t=="boolean"&&[!0,!1].includes(t)},fontFamily:{type:String,default:"'Lato', sans-serif"},fontSize:{type:String,default:"1.6em",validator:t=>t||"1.6em"},fontWeight:{type:Number,default:400,validator:t=>t||200}},emits:["current-value","changed"],setup(t,{emit:o}){e.useCssVars(l=>({"0bef0e00":q.value,"5d4a30b3":T.value,fe937dba:M.value,"164b5ff6":F.value,a822544e:U.value,"721aad28":J.value,"69c3c4e7":P.value,"61e98d88":O.value})),e.onMounted(()=>{A()});const n=o,d=t,i=e.ref(null),{currentOptiton:f,display:k,options:p,direction:S,textColor:C,color:b,hoverEffect:E,activeHoverEffect:N,colorHover:H,itemGap:g,internalGap:m,disabled:V,fontFamily:z,fontSize:G,fontWeight:h}=e.toRefs(d),s=e.computed(()=>{const l=V.value?"component-disabled":"",c=k.value!=="b"?"inline-block":"block",v=z.value?z.value:"'Lato', sans-serif",_=G.value?G.value:"1.6em",a=!h.value||h.value<0?200:h.value,u=S.value?S.value:"left",y=C.value?C.value:"black",I=b.value?b.value:"#767676",$=[!1,!0].includes(E.value)?E.value:!1,K=[!1,!0].includes(N.value)?N.value:!1,Q=H.value?H.value:"#a6a6a6",X=!g.value||g.value<0?15:g.value,Y=!m.value||m.value<0?6:m.value;return{disabled:l,display:c,direction:u,textColor:y,color:I,hoverEffect:$,activeHoverEffect:K,colorHover:Q,itemGap:X,internalGap:Y,font:v,fontSize:_,fontWeight:a}}),x=e.computed(()=>s.value.disabled),r=e.computed(()=>({display:s.value.display})),L=e.computed(()=>s.value.display==="inline-block"?"custom-radio__item--display-inline":"custom-radio__item--display-block"),W=e.computed(()=>{const l=s.value;return{fontSize:l.fontSize,fontWeight:l.fontWeight}}),j=e.computed(()=>Array.isArray(p.value)&&p.value.constructor===Array&&p.value.length>0),D=e.computed(()=>s.value.direction==="right"?"custom-radio__item--direction-right":"custom-radio__item--direction-left"),q=e.computed(()=>s.value.font),F=e.computed(()=>s.value.textColor),M=e.computed(()=>s.value.color),T=e.computed(()=>{const l=s.value;return l.activeHoverEffect?l.colorHover:l.color}),U=e.computed(()=>{const l=s.value;return l.hoverEffect?l.colorHover:l.color}),B=e.computed(()=>{const c=s.value.internalGap;return!c||c<0?0:c}),P=e.computed(()=>`0 0 0 2${B.value}px`),O=e.computed(()=>`0 2${B.value}px 0 0`),J=e.computed(()=>{const c=s.value.itemGap;return!c||c<0?0:`${c}px`}),A=()=>{const l=f.value;l&&(i.value=l.toString().toLowerCase()),n("current-value",l)};return e.watch(f,()=>{A()}),e.watch(i,l=>{n("current-value",l),n("changed",l)}),(l,c)=>t.nbId&&j.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nb-wrapper",x.value]),style:e.normalizeStyle([r.value])},[e.createElementVNode("div",{id:t.nbId,class:e.normalizeClass(["nb-reset","component"]),style:e.normalizeStyle([W.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(v,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:e.normalizeClass(["custom-radio__item",[L.value,D.value]])},[e.withDirectives(e.createElementVNode("input",{id:`${t.nbId}-${v.value}`,"onUpdate:modelValue":c[0]||(c[0]=a=>i.value=a),type:"radio",class:"custom-radio__item--input",disabled:e.unref(V),value:v.value,name:t.groupName},null,8,ae),[[e.vModelRadio,i.value]]),e.createElementVNode("label",{for:`${t.nbId}-${v.value}`,class:"custom-radio__item--label"},e.toDisplayString(v.text),9,le)],2))),128))],12,te)],6)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-bc9a39f2"]]),me="",ne=["id"],re=["id","disabled","value","name"],ue=["for"],R={NbInputRadio:oe,NbInputCheckbox:Z(Object.assign({name:"NbInputCheckbox",inheritAttrs:!1},{__name:"NbInputCheckbox",props:{nbId:{type:String,required:!0},display:{type:String,default:"b",validator:(t="b")=>{const o=t?t.toLowerCase():"";return["b","ib"].includes(o)}},groupName:{type:String,default:"",required:!0,validator:t=>t.toString().toLowerCase()},options:{type:Array,required:!0,default:()=>[],validator:t=>{if(!t.length)return!1;let o=!1;for(const n of t){const d=Object.keys(n);d.length!==2&&(o=!0),d.every(f=>["value","text"].includes(f))||(o=!0)}if(!o)return t}},currentOptiton:{type:Array,default:()=>[]},direction:{type:String,default:"left",validator:t=>["left","right"].indexOf(t)!==-1},textColor:{type:String,default:"black"},boxRadius:{type:Number,default:0},color:{type:String,default:"#767676"},hoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},activeHoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},colorHover:{type:String,default:"#a6a6a6"},itemGap:{type:Number,default:15},internalGap:{type:Number,default:6},type:{type:String,default:"box",validator:t=>["box","circle"].indexOf(t)!==-1},disabled:{type:Boolean,default:!1,validator:t=>typeof t=="boolean"&&[!0,!1].includes(t)},fontFamily:{type:String,default:"'Lato', sans-serif"},fontSize:{type:String,default:"1.6em",validator:t=>t||"1.6em"},fontWeight:{type:Number,default:400,validator:t=>t||200}},emits:["current-value","changed"],setup(t,{emit:o}){e.useCssVars(a=>({"1751b7fe":M.value,cda5fb16:B.value,"710ceee6":l.value,"7424f4a1":U.value,f7cfb718:T.value,"108abdca":P.value,a657b72c:c.value,"37a8fdae":J.value,bcc9f58c:A.value})),e.onMounted(()=>{_()});const n=o,d=t,i=e.ref(null),{currentOptiton:f,display:k,options:p,direction:S,textColor:C,boxRadius:b,color:E,hoverEffect:N,activeHoverEffect:H,colorHover:g,itemGap:m,internalGap:V,type:z,disabled:G,fontFamily:h,fontSize:s,fontWeight:x}=e.toRefs(d),r=e.computed(()=>{const a=G.value?"component-disabled":"",u=k.value!=="b"?"inline-block":"block",y=h.value?h.value:"'Lato', sans-serif",I=s.value?s.value:"1.6em",$=x.value!==0&&!x.value||x.value<0?200:x.value,K=S.value?S.value:"left",Q=C.value?C.value:"black",X=b.value!==0&&!b.value||b.value<0?0:b.value,Y=E.value?E.value:"#767676",se=[!1,!0].includes(N.value)?N.value:!1,ce=[!1,!0].includes(H.value)?H.value:!1,ie=g.value?g.value:"#a6a6a6",de=m.value!==0&&!m.value||m.value<0?15:m.value,fe=V.value!==0&&!V.value||V.value<0?6:V.value,ee=["box","circle"].includes(z.value)?z.value:"box";return console.log(ee),{disabled:a,display:u,direction:K,textColor:Q,boxRadius:X,color:Y,hoverEffect:se,activeHoverEffect:ce,colorHover:ie,itemGap:de,internalGap:fe,type:ee,font:y,fontSize:I,fontWeight:$}}),L=e.computed(()=>r.value.disabled),W=e.computed(()=>({display:r.value.display})),j=e.computed(()=>r.value.display==="inline-block"?"custom-checkbox__item--display-inline":"custom-checkbox__item--display-block"),D=e.computed(()=>{const a=r.value;return{fontSize:a.fontSize,fontWeight:a.fontWeight}}),q=e.computed(()=>Array.isArray(p.value)&&p.value.constructor===Array&&p.value.length>0),F=e.computed(()=>r.value.direction==="right"?"custom-checkbox__item--direction-right":"custom-checkbox__item--direction-left"),M=e.computed(()=>r.value.font),T=e.computed(()=>r.value.textColor),U=e.computed(()=>r.value.color),B=e.computed(()=>{const a=r.value;return a.activeHoverEffect?a.colorHover:a.color}),P=e.computed(()=>{const a=r.value;return a.hoverEffect?a.colorHover:a.color}),O=e.computed(()=>{const u=r.value.internalGap;return!u||u<0?0:u}),J=e.computed(()=>`0 0 0 2${O.value}px`),A=e.computed(()=>`0 2${O.value}px 0 0`),l=e.computed(()=>{const a=r.value;return`${a.borderRadius>7?7:a.borderRadius}px`}),c=e.computed(()=>{const u=r.value.itemGap;return!u||u<0?0:`${u}px`}),v=e.computed(()=>r.value.type==="circle"?"custom-checkbox__input--type-circle":""),_=()=>{i.value=f.value};return e.watch(f,()=>{_()}),e.watch(i,a=>{n("current-value",a),n("changed",a)}),(a,u)=>t.nbId&&q.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nb-wrapper",L.value]),style:e.normalizeStyle([W.value])},[e.createElementVNode("div",{id:t.nbId,class:e.normalizeClass(["nb-reset","component"]),style:e.normalizeStyle([D.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(y,I)=>(e.openBlock(),e.createElementBlock("div",{key:I,class:e.normalizeClass(["custom-checkbox__item",[j.value,F.value]])},[e.withDirectives(e.createElementVNode("input",{id:`${t.nbId}-${y.value}`,"onUpdate:modelValue":u[0]||(u[0]=$=>i.value=$),type:"checkbox",class:"custom-checkbox__item--input",disabled:e.unref(G),value:y.value,name:t.groupName},null,8,re),[[e.vModelCheckbox,i.value]]),e.createElementVNode("label",{for:`${t.nbId}-${y.value}`,class:e.normalizeClass([[v.value],"custom-checkbox__item--label"])},e.toDisplayString(y.text),11,ue)],2))),128))],12,ne)],6)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-406f0fb9"]])};return{install(t){for(const o in R)if(Object.prototype.hasOwnProperty.call(R,o)){const n=R[o];t.component(n.name,n)}}}});
1
+ (function(e,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("vue")):typeof define=="function"&&define.amd?define(["vue"],w):(e=typeof globalThis<"u"?globalThis:e||self,e.NbInputs=w(e.Vue))})(this,function(e){"use strict";const w="",Z=(t,o)=>{const n=t.__vccOpts||t;for(const[d,i]of o)n[d]=i;return n},ee=["id"],te=["id","disabled","value","name"],ae=["for"],le=Z(Object.assign({name:"NbInputRadio",inheritAttrs:!1},{__name:"NbInputRadio",props:{nbId:{type:String,required:!0},display:{type:String,default:"b",validator:(t="b")=>{const o=t?t.toLowerCase():"";return["b","ib"].includes(o)}},groupName:{type:String,default:"",required:!0,validator:t=>t.toString().toLowerCase()},options:{type:Array,required:!0,default:()=>[],validator:t=>{if(!t.length)return!1;let o=!1;for(const n of t){const d=Object.keys(n);d.length!==2&&(o=!0),d.every(f=>["value","text"].includes(f))||(o=!0)}if(!o)return t}},currentOptiton:{type:String,default:null},direction:{type:String,default:"left",validator:t=>["left","right"].indexOf(t)!==-1},textColor:{type:String,default:"black"},color:{type:String,default:"#767676"},hoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},activeHoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},colorHover:{type:String,default:"#a6a6a6"},itemGap:{type:Number,default:15},internalGap:{type:Number,default:6},disabled:{type:Boolean,default:!1,validator:t=>typeof t=="boolean"&&[!0,!1].includes(t)},fontFamily:{type:String,default:"'Lato', sans-serif"},fontSize:{type:String,default:"1.6em",validator:t=>t||"1.6em"},fontWeight:{type:Number,default:400,validator:t=>t||200}},emits:["current-value","changed"],setup(t,{emit:o}){e.useCssVars(l=>({"0bef0e00":q.value,"5d4a30b3":T.value,fe937dba:M.value,"164b5ff6":F.value,a822544e:U.value,"721aad28":J.value,"69c3c4e7":P.value,"61e98d88":O.value})),e.onMounted(()=>{A()});const n=o,d=t,i=e.ref(null),{currentOptiton:f,display:k,options:p,direction:S,textColor:C,color:b,hoverEffect:E,activeHoverEffect:N,colorHover:H,itemGap:g,internalGap:m,disabled:V,fontFamily:z,fontSize:G,fontWeight:h}=e.toRefs(d),s=e.computed(()=>{const l=V.value?"component-disabled":"",c=k.value!=="b"?"inline-block":"block",v=z.value?z.value:"'Lato', sans-serif",_=G.value?G.value:"1.6em",a=!h.value||h.value<0?200:h.value,u=S.value?S.value:"left",y=C.value?C.value:"black",I=b.value?b.value:"#767676",$=[!1,!0].includes(E.value)?E.value:!1,K=[!1,!0].includes(N.value)?N.value:!1,Q=H.value?H.value:"#a6a6a6",X=!g.value||g.value<0?15:g.value,Y=!m.value||m.value<0?6:m.value;return{disabled:l,display:c,direction:u,textColor:y,color:I,hoverEffect:$,activeHoverEffect:K,colorHover:Q,itemGap:X,internalGap:Y,font:v,fontSize:_,fontWeight:a}}),x=e.computed(()=>s.value.disabled),r=e.computed(()=>({display:s.value.display})),L=e.computed(()=>s.value.display==="inline-block"?"custom-radio__item--display-inline":"custom-radio__item--display-block"),W=e.computed(()=>{const l=s.value;return{fontSize:l.fontSize,fontWeight:l.fontWeight}}),j=e.computed(()=>Array.isArray(p.value)&&p.value.constructor===Array&&p.value.length>0),D=e.computed(()=>s.value.direction==="right"?"custom-radio__item--direction-right":"custom-radio__item--direction-left"),q=e.computed(()=>s.value.font),F=e.computed(()=>s.value.textColor),M=e.computed(()=>s.value.color),T=e.computed(()=>{const l=s.value;return l.activeHoverEffect?l.colorHover:l.color}),U=e.computed(()=>{const l=s.value;return l.hoverEffect?l.colorHover:l.color}),B=e.computed(()=>{const c=s.value.internalGap;return!c||c<0?0:c}),P=e.computed(()=>`0 0 0 2${B.value}px`),O=e.computed(()=>`0 2${B.value}px 0 0`),J=e.computed(()=>{const c=s.value.itemGap;return!c||c<0?0:`${c}px`}),A=()=>{const l=f.value;l&&(i.value=l.toString().toLowerCase()),n("current-value",l)};return e.watch(f,()=>{A()}),e.watch(i,l=>{n("current-value",l),n("changed",l)}),(l,c)=>t.nbId&&j.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nb-wrapper",x.value]),style:e.normalizeStyle([r.value])},[e.createElementVNode("div",{id:t.nbId,class:e.normalizeClass(["nb-reset","component"]),style:e.normalizeStyle([W.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(v,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:e.normalizeClass(["custom-radio__item",[L.value,D.value]])},[e.withDirectives(e.createElementVNode("input",{id:`${t.nbId}-${v.value}`,"onUpdate:modelValue":c[0]||(c[0]=a=>i.value=a),type:"radio",class:"custom-radio__item--input",disabled:e.unref(V),value:v.value,name:t.groupName},null,8,te),[[e.vModelRadio,i.value]]),e.createElementVNode("label",{for:`${t.nbId}-${v.value}`,class:"custom-radio__item--label"},e.toDisplayString(v.text),9,ae)],2))),128))],12,ee)],6)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-bc9a39f2"]]),me="",oe=["id"],ne=["id","disabled","value","name"],re=["for"],R={NbInputRadio:le,NbInputCheckbox:Z(Object.assign({name:"NbInputCheckbox",inheritAttrs:!1},{__name:"NbInputCheckbox",props:{nbId:{type:String,required:!0},display:{type:String,default:"b",validator:(t="b")=>{const o=t?t.toLowerCase():"";return["b","ib"].includes(o)}},groupName:{type:String,default:"",required:!0,validator:t=>t.toString().toLowerCase()},options:{type:Array,required:!0,default:()=>[],validator:t=>{if(!t.length)return!1;let o=!1;for(const n of t){const d=Object.keys(n);d.length!==2&&(o=!0),d.every(f=>["value","text"].includes(f))||(o=!0)}if(!o)return t}},currentOptiton:{type:Array,default:()=>[]},direction:{type:String,default:"left",validator:t=>["left","right"].indexOf(t)!==-1},textColor:{type:String,default:"black"},boxRadius:{type:Number,default:0},color:{type:String,default:"#767676"},hoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},activeHoverEffect:{type:Boolean,default:!1,validator:t=>[!0,!1].indexOf(t)!==-1},colorHover:{type:String,default:"#a6a6a6"},itemGap:{type:Number,default:15},internalGap:{type:Number,default:6},type:{type:String,default:"box",validator:t=>["box","circle"].indexOf(t)!==-1},disabled:{type:Boolean,default:!1,validator:t=>typeof t=="boolean"&&[!0,!1].includes(t)},fontFamily:{type:String,default:"'Lato', sans-serif"},fontSize:{type:String,default:"1.6em",validator:t=>t||"1.6em"},fontWeight:{type:Number,default:400,validator:t=>t||200}},emits:["current-value","changed"],setup(t,{emit:o}){e.useCssVars(a=>({"3f7e0200":M.value,"0301bcb3":B.value,"17769ee2":l.value,"7b8395ba":U.value,aa8d5814:T.value,b5813c4e:P.value,"1c30c528":c.value,"593a50e7":J.value,"6333a588":A.value})),e.onMounted(()=>{_()});const n=o,d=t,i=e.ref(null),{currentOptiton:f,display:k,options:p,direction:S,textColor:C,boxRadius:b,color:E,hoverEffect:N,activeHoverEffect:H,colorHover:g,itemGap:m,internalGap:V,type:z,disabled:G,fontFamily:h,fontSize:s,fontWeight:x}=e.toRefs(d),r=e.computed(()=>{const a=G.value?"component-disabled":"",u=k.value!=="b"?"inline-block":"block",y=h.value?h.value:"'Lato', sans-serif",I=s.value?s.value:"1.6em",$=x.value!==0&&!x.value||x.value<0?200:x.value,K=S.value?S.value:"left",Q=C.value?C.value:"black",X=b.value!==0&&!b.value||b.value<0?0:b.value,Y=E.value?E.value:"#767676",ue=[!1,!0].includes(N.value)?N.value:!1,se=[!1,!0].includes(H.value)?H.value:!1,ce=g.value?g.value:"#a6a6a6",ie=m.value!==0&&!m.value||m.value<0?15:m.value,de=V.value!==0&&!V.value||V.value<0?6:V.value,fe=["box","circle"].includes(z.value)?z.value:"box";return{disabled:a,display:u,direction:K,textColor:Q,boxRadius:X,color:Y,hoverEffect:ue,activeHoverEffect:se,colorHover:ce,itemGap:ie,internalGap:de,type:fe,font:y,fontSize:I,fontWeight:$}}),L=e.computed(()=>r.value.disabled),W=e.computed(()=>({display:r.value.display})),j=e.computed(()=>r.value.display==="inline-block"?"custom-checkbox__item--display-inline":"custom-checkbox__item--display-block"),D=e.computed(()=>{const a=r.value;return{fontSize:a.fontSize,fontWeight:a.fontWeight}}),q=e.computed(()=>Array.isArray(p.value)&&p.value.constructor===Array&&p.value.length>0),F=e.computed(()=>r.value.direction==="right"?"custom-checkbox__item--direction-right":"custom-checkbox__item--direction-left"),M=e.computed(()=>r.value.font),T=e.computed(()=>r.value.textColor),U=e.computed(()=>r.value.color),B=e.computed(()=>{const a=r.value;return a.activeHoverEffect?a.colorHover:a.color}),P=e.computed(()=>{const a=r.value;return a.hoverEffect?a.colorHover:a.color}),O=e.computed(()=>{const u=r.value.internalGap;return!u||u<0?0:u}),J=e.computed(()=>`0 0 0 2${O.value}px`),A=e.computed(()=>`0 2${O.value}px 0 0`),l=e.computed(()=>{const a=r.value;return`${a.borderRadius>7?7:a.borderRadius}px`}),c=e.computed(()=>{const u=r.value.itemGap;return!u||u<0?0:`${u}px`}),v=e.computed(()=>r.value.type==="circle"?"custom-checkbox__input--type-circle":""),_=()=>{i.value=f.value};return e.watch(f,()=>{_()}),e.watch(i,a=>{n("current-value",a),n("changed",a)}),(a,u)=>t.nbId&&q.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nb-wrapper",L.value]),style:e.normalizeStyle([W.value])},[e.createElementVNode("div",{id:t.nbId,class:e.normalizeClass(["nb-reset","component"]),style:e.normalizeStyle([D.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(y,I)=>(e.openBlock(),e.createElementBlock("div",{key:I,class:e.normalizeClass(["custom-checkbox__item",[j.value,F.value]])},[e.withDirectives(e.createElementVNode("input",{id:`${t.nbId}-${y.value}`,"onUpdate:modelValue":u[0]||(u[0]=$=>i.value=$),type:"checkbox",class:"custom-checkbox__item--input",disabled:e.unref(G),value:y.value,name:t.groupName},null,8,ne),[[e.vModelCheckbox,i.value]]),e.createElementVNode("label",{for:`${t.nbId}-${y.value}`,class:e.normalizeClass([[v.value],"custom-checkbox__item--label"])},e.toDisplayString(y.text),11,re)],2))),128))],12,oe)],6)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-5733b814"]])};return{install(t){for(const o in R)if(Object.prototype.hasOwnProperty.call(R,o)){const n=R[o];t.component(n.name,n)}}}});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap";.nb-wrapper[data-v-bc9a39f2]{margin:0;padding:0;font-size:62.5%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:bottom}.nb-reset[data-v-bc9a39f2]{font-family:Lato,sans-serif;font-style:normal;font-weight:light;line-height:1.42857143}.nb-reset[data-v-bc9a39f2] *{margin:0;padding:0}.nb-reset[data-v-bc9a39f2] *,.nb-reset[data-v-bc9a39f2] *:before,.nb-reset[data-v-bc9a39f2] *:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.component[data-v-bc9a39f2]{margin:0;box-sizing:border-box;line-height:16px;font-family:Lato,sans-serif;font-family:var(--0bef0e00);-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;-webkit-text-decoration-line:none;text-decoration-line:none;white-space:nowrap;outline:0;position:relative;overflow:hidden}.component .custom-radio__item .custom-radio__item--input[data-v-bc9a39f2]{display:none}.component .custom-radio__item .custom-radio__item--input:checked+.custom-radio__item--label[data-v-bc9a39f2]:hover:before{border:2px solid var(--5d4a30b3);color:var(--5d4a30b3)}.component .custom-radio__item .custom-radio__item--input:checked+.custom-radio__item--label[data-v-bc9a39f2]:before{content:"●";font-size:1.3em;text-shadow:0;display:flex;align-items:self-end;text-align:center;justify-content:space-around;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:2px solid var(--fe937dba);color:var(--fe937dba)}.component .custom-radio__item .custom-radio__item--label[data-v-bc9a39f2]{--disabled-color: var(--164b5ff6);color:var(--disabled-color)!important}.component .custom-radio__item .custom-radio__item--label[data-v-bc9a39f2]:before{border:2px solid var(--fe937dba)}.component .custom-radio__item .custom-radio__item--label[data-v-bc9a39f2]:hover{cursor:pointer}.component .custom-radio__item .custom-radio__item--label[data-v-bc9a39f2]:hover:before{border:2px solid var(--a822544e)}.component .custom-radio__item .custom-radio__item--label[data-v-bc9a39f2]:before{content:"";width:19px;height:19px;position:absolute;bottom:0;border:0;border-radius:50%;text-shadow:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:2px solid var(--fe937dba)}.component .custom-radio__item.custom-radio__item--display-block[data-v-bc9a39f2]{display:block}.component .custom-radio__item.custom-radio__item--display-block[data-v-bc9a39f2]:not(:first-child){margin-top:var(--721aad28)}.component .custom-radio__item.custom-radio__item--display-block .custom-radio__item--label[data-v-bc9a39f2]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-radio__item.custom-radio__item--display-inline[data-v-bc9a39f2]{display:inline-block}.component .custom-radio__item.custom-radio__item--display-inline[data-v-bc9a39f2]:not(:first-child){margin-left:var(--721aad28)}.component .custom-radio__item.custom-radio__item--display-inline .custom-radio__item--label[data-v-bc9a39f2]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-left .custom-radio__item--label[data-v-bc9a39f2]{display:inline-block;padding:var(--69c3c4e7)}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-left .custom-radio__item--label[data-v-bc9a39f2]:before{left:0}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-right .custom-radio__item--label[data-v-bc9a39f2]{padding:var(--61e98d88)}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-right .custom-radio__item--label[data-v-bc9a39f2]:before{right:0}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-left .custom-radio__item--label[data-v-bc9a39f2]{display:inline-block;padding:var(--69c3c4e7)}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-left .custom-radio__item--label[data-v-bc9a39f2]:before{left:0}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-right .custom-radio__item--label[data-v-bc9a39f2]{padding:var(--61e98d88)}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-right .custom-radio__item--label[data-v-bc9a39f2]:before{right:0}.component-disabled[data-v-bc9a39f2]{cursor:not-allowed;pointer-events:none;-webkit-user-select:none;user-select:none}.component-disabled .component[data-v-bc9a39f2]{--disabled-color: var(--164b5ff6);color:var(--disabled-color)!important;opacity:.7;border-radius:inherit}.nb-wrapper[data-v-406f0fb9]{margin:0;padding:0;font-size:62.5%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:bottom}.nb-reset[data-v-406f0fb9]{font-family:Lato,sans-serif;font-style:normal;font-weight:light;line-height:1.42857143}.nb-reset[data-v-406f0fb9] *{margin:0;padding:0}.nb-reset[data-v-406f0fb9] *,.nb-reset[data-v-406f0fb9] *:before,.nb-reset[data-v-406f0fb9] *:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.component[data-v-406f0fb9]{margin:0;box-sizing:border-box;line-height:16px;font-family:Lato,sans-serif;font-family:var(--1751b7fe);-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;-webkit-text-decoration-line:none;text-decoration-line:none;white-space:nowrap;outline:0;position:relative;overflow:hidden}.component .custom-checkbox__item .custom-checkbox__item--input[data-v-406f0fb9]{display:none}.component .custom-checkbox__item .custom-checkbox__item--input:checked+.custom-checkbox__item--label[data-v-406f0fb9]:hover:before{border:2px solid var(--cda5fb16);color:var(--cda5fb16)}.component .custom-checkbox__item .custom-checkbox__item--input:checked+.custom-checkbox__item--label[data-v-406f0fb9]:before{content:"✓";font-size:.7em;font-weight:900;line-height:17px;text-shadow:0;display:flex;align-items:self-end;text-align:center;justify-content:space-around;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:var(--710ceee6);border:2px solid var(--7424f4a1);color:var(--7424f4a1)}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-406f0fb9]{--disabled-color: var(--f7cfb718);color:var(--disabled-color)!important}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-406f0fb9]:before{border:2px solid var(--7424f4a1)}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-406f0fb9]:hover{cursor:pointer}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-406f0fb9]:hover:before{border:2px solid var(--108abdca)}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-406f0fb9]:before{content:"";width:19px;height:19px;position:absolute;bottom:0;border:0;text-shadow:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:var(--710ceee6);border:2px solid var(--7424f4a1);color:var(--7424f4a1)}.component .custom-checkbox__item .custom-checkbox__item--label.custom-checkbox__input--type-circle[data-v-406f0fb9]:before{border-radius:50%!important}.component .custom-checkbox__item.custom-checkbox__item--display-block[data-v-406f0fb9]{display:block}.component .custom-checkbox__item.custom-checkbox__item--display-block[data-v-406f0fb9]:not(:first-child){margin-top:var(--a657b72c)}.component .custom-checkbox__item.custom-checkbox__item--display-block .custom-checkbox__item--label[data-v-406f0fb9]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-checkbox__item.custom-checkbox__item--display-inline[data-v-406f0fb9]{display:inline-block}.component .custom-checkbox__item.custom-checkbox__item--display-inline[data-v-406f0fb9]:not(:first-child){margin-left:var(--a657b72c)}.component .custom-checkbox__item.custom-checkbox__item--display-inline .custom-checkbox__item--label[data-v-406f0fb9]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-406f0fb9]{display:inline-block;padding:var(--37a8fdae)}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-406f0fb9]:before{left:0}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-406f0fb9]{padding:var(--bcc9f58c)}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-406f0fb9]:before{right:0}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-406f0fb9]{display:inline-block;padding:var(--37a8fdae)}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-406f0fb9]:before{left:0}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-406f0fb9]{padding:var(--bcc9f58c)}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-406f0fb9]:before{right:0}.component-disabled[data-v-406f0fb9]{cursor:not-allowed;pointer-events:none;-webkit-user-select:none;user-select:none}.component-disabled .component[data-v-406f0fb9]{--disabled-color: var(--f7cfb718);color:var(--disabled-color)!important;opacity:.7;border-radius:inherit}
1
+ @charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap";.nb-wrapper[data-v-bc9a39f2]{margin:0;padding:0;font-size:62.5%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:bottom}.nb-reset[data-v-bc9a39f2]{font-family:Lato,sans-serif;font-style:normal;font-weight:light;line-height:1.42857143}.nb-reset[data-v-bc9a39f2] *{margin:0;padding:0}.nb-reset[data-v-bc9a39f2] *,.nb-reset[data-v-bc9a39f2] *:before,.nb-reset[data-v-bc9a39f2] *:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.component[data-v-bc9a39f2]{margin:0;box-sizing:border-box;line-height:16px;font-family:Lato,sans-serif;font-family:var(--0bef0e00);-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;-webkit-text-decoration-line:none;text-decoration-line:none;white-space:nowrap;outline:0;position:relative;overflow:hidden}.component .custom-radio__item .custom-radio__item--input[data-v-bc9a39f2]{display:none}.component .custom-radio__item .custom-radio__item--input:checked+.custom-radio__item--label[data-v-bc9a39f2]:hover:before{border:2px solid var(--5d4a30b3);color:var(--5d4a30b3)}.component .custom-radio__item .custom-radio__item--input:checked+.custom-radio__item--label[data-v-bc9a39f2]:before{content:"●";font-size:1.3em;text-shadow:0;display:flex;align-items:self-end;text-align:center;justify-content:space-around;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:2px solid var(--fe937dba);color:var(--fe937dba)}.component .custom-radio__item .custom-radio__item--label[data-v-bc9a39f2]{--disabled-color: var(--164b5ff6);color:var(--disabled-color)!important}.component .custom-radio__item .custom-radio__item--label[data-v-bc9a39f2]:before{border:2px solid var(--fe937dba)}.component .custom-radio__item .custom-radio__item--label[data-v-bc9a39f2]:hover{cursor:pointer}.component .custom-radio__item .custom-radio__item--label[data-v-bc9a39f2]:hover:before{border:2px solid var(--a822544e)}.component .custom-radio__item .custom-radio__item--label[data-v-bc9a39f2]:before{content:"";width:19px;height:19px;position:absolute;bottom:0;border:0;border-radius:50%;text-shadow:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border:2px solid var(--fe937dba)}.component .custom-radio__item.custom-radio__item--display-block[data-v-bc9a39f2]{display:block}.component .custom-radio__item.custom-radio__item--display-block[data-v-bc9a39f2]:not(:first-child){margin-top:var(--721aad28)}.component .custom-radio__item.custom-radio__item--display-block .custom-radio__item--label[data-v-bc9a39f2]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-radio__item.custom-radio__item--display-inline[data-v-bc9a39f2]{display:inline-block}.component .custom-radio__item.custom-radio__item--display-inline[data-v-bc9a39f2]:not(:first-child){margin-left:var(--721aad28)}.component .custom-radio__item.custom-radio__item--display-inline .custom-radio__item--label[data-v-bc9a39f2]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-left .custom-radio__item--label[data-v-bc9a39f2]{display:inline-block;padding:var(--69c3c4e7)}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-left .custom-radio__item--label[data-v-bc9a39f2]:before{left:0}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-right .custom-radio__item--label[data-v-bc9a39f2]{padding:var(--61e98d88)}.component .custom-radio__item.custom-radio__item--display-block.custom-radio__item--direction-right .custom-radio__item--label[data-v-bc9a39f2]:before{right:0}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-left .custom-radio__item--label[data-v-bc9a39f2]{display:inline-block;padding:var(--69c3c4e7)}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-left .custom-radio__item--label[data-v-bc9a39f2]:before{left:0}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-right .custom-radio__item--label[data-v-bc9a39f2]{padding:var(--61e98d88)}.component .custom-radio__item.custom-radio__item--display-inline.custom-radio__item--direction-right .custom-radio__item--label[data-v-bc9a39f2]:before{right:0}.component-disabled[data-v-bc9a39f2]{cursor:not-allowed;pointer-events:none;-webkit-user-select:none;user-select:none}.component-disabled .component[data-v-bc9a39f2]{--disabled-color: var(--164b5ff6);color:var(--disabled-color)!important;opacity:.7;border-radius:inherit}.nb-wrapper[data-v-5733b814]{margin:0;padding:0;font-size:62.5%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:bottom}.nb-reset[data-v-5733b814]{font-family:Lato,sans-serif;font-style:normal;font-weight:light;line-height:1.42857143}.nb-reset[data-v-5733b814] *{margin:0;padding:0}.nb-reset[data-v-5733b814] *,.nb-reset[data-v-5733b814] *:before,.nb-reset[data-v-5733b814] *:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.component[data-v-5733b814]{margin:0;box-sizing:border-box;line-height:16px;font-family:Lato,sans-serif;font-family:var(--3f7e0200);-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;-webkit-text-decoration-line:none;text-decoration-line:none;white-space:nowrap;outline:0;position:relative;overflow:hidden}.component .custom-checkbox__item .custom-checkbox__item--input[data-v-5733b814]{display:none}.component .custom-checkbox__item .custom-checkbox__item--input:checked+.custom-checkbox__item--label[data-v-5733b814]:hover:before{border:2px solid var(--0301bcb3);color:var(--0301bcb3)}.component .custom-checkbox__item .custom-checkbox__item--input:checked+.custom-checkbox__item--label[data-v-5733b814]:before{content:"✓";font-size:.7em;font-weight:900;line-height:17px;text-shadow:0;display:flex;align-items:self-end;text-align:center;justify-content:space-around;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:var(--17769ee2);border:2px solid var(--7b8395ba);color:var(--7b8395ba)}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-5733b814]{--disabled-color: var(--aa8d5814);color:var(--disabled-color)!important}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-5733b814]:before{border:2px solid var(--7b8395ba)}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-5733b814]:hover{cursor:pointer}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-5733b814]:hover:before{border:2px solid var(--b5813c4e)}.component .custom-checkbox__item .custom-checkbox__item--label[data-v-5733b814]:before{content:"";width:19px;height:19px;position:absolute;bottom:0;border:0;text-shadow:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:var(--17769ee2);border:2px solid var(--7b8395ba);color:var(--7b8395ba)}.component .custom-checkbox__item .custom-checkbox__item--label.custom-checkbox__input--type-circle[data-v-5733b814]:before{border-radius:50%!important}.component .custom-checkbox__item.custom-checkbox__item--display-block[data-v-5733b814]{display:block}.component .custom-checkbox__item.custom-checkbox__item--display-block[data-v-5733b814]:not(:first-child){margin-top:var(--1c30c528)}.component .custom-checkbox__item.custom-checkbox__item--display-block .custom-checkbox__item--label[data-v-5733b814]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-checkbox__item.custom-checkbox__item--display-inline[data-v-5733b814]{display:inline-block}.component .custom-checkbox__item.custom-checkbox__item--display-inline[data-v-5733b814]:not(:first-child){margin-left:var(--1c30c528)}.component .custom-checkbox__item.custom-checkbox__item--display-inline .custom-checkbox__item--label[data-v-5733b814]{display:inline;font-family:inherit;font-size:inherit;font-style:normal;line-height:20px;position:relative}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-5733b814]{display:inline-block;padding:var(--593a50e7)}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-5733b814]:before{left:0}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-5733b814]{padding:var(--6333a588)}.component .custom-checkbox__item.custom-checkbox__item--display-block.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-5733b814]:before{right:0}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-5733b814]{display:inline-block;padding:var(--593a50e7)}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-left .custom-checkbox__item--label[data-v-5733b814]:before{left:0}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-5733b814]{padding:var(--6333a588)}.component .custom-checkbox__item.custom-checkbox__item--display-inline.custom-checkbox__item--direction-right .custom-checkbox__item--label[data-v-5733b814]:before{right:0}.component-disabled[data-v-5733b814]{cursor:not-allowed;pointer-events:none;-webkit-user-select:none;user-select:none}.component-disabled .component[data-v-5733b814]{--disabled-color: var(--aa8d5814);color:var(--disabled-color)!important;opacity:.7;border-radius:inherit}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vlalg-nimbus/nb-inputs",
3
3
  "description": "Input components for Vuejs 3",
4
- "version": "2.0.0",
4
+ "version": "3.0.0",
5
5
  "type": "module",
6
6
  "main": "./dist/nb-inputs.umd.js",
7
7
  "module": "./dist/nb-inputs.js",