ablok-components 0.0.24 → 0.0.27
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, computed, resolveComponent, createBlock, createCommentVNode, unref, toDisplayString, withDirectives, isRef, vModelDynamic, ref, watch, onBeforeMount, Fragment, renderList, createTextVNode, withModifiers } from "vue";
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, computed, resolveComponent, createBlock, createCommentVNode, unref, toDisplayString, withDirectives, isRef, vModelDynamic, vModelText, ref, watch, onBeforeMount, Fragment, renderList, createTextVNode, withModifiers } from "vue";
|
|
2
2
|
var svgIcon_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".svg-icon{display:inline-block}.svg-icon svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:1.5em;height:1.5em}.svg-icon--xxl svg{width:12rem;height:12rem}.svg-icon--xl svg{width:8rem;height:8rem}.svg-icon--large svg{width:4rem;height:4rem}\n")();
|
|
3
3
|
const _hoisted_1$6 = {
|
|
4
4
|
class: "icon",
|
|
@@ -60,7 +60,7 @@ const _hoisted_3$2 = {
|
|
|
60
60
|
"xml:space": "preserve"
|
|
61
61
|
};
|
|
62
62
|
const _hoisted_4$2 = ["fill"];
|
|
63
|
-
const _hoisted_5$
|
|
63
|
+
const _hoisted_5$2 = /* @__PURE__ */ createElementVNode("animateTransform", {
|
|
64
64
|
attributeName: "transform",
|
|
65
65
|
attributeType: "XML",
|
|
66
66
|
type: "rotate",
|
|
@@ -70,7 +70,7 @@ const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("animateTransform", {
|
|
|
70
70
|
repeatCount: "indefinite"
|
|
71
71
|
}, null, -1);
|
|
72
72
|
const _hoisted_6$1 = [
|
|
73
|
-
_hoisted_5$
|
|
73
|
+
_hoisted_5$2
|
|
74
74
|
];
|
|
75
75
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
76
76
|
__name: "loading-spinner",
|
|
@@ -156,11 +156,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
156
156
|
function uniqueId() {
|
|
157
157
|
return (new Date().valueOf() + Math.random()).toString(36);
|
|
158
158
|
}
|
|
159
|
-
var formInput_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".form-input{display:flex;flex-flow:column}.form-input>*{order:2}.form-input__label{order:0}.form-input__input-group{order:1}\n")();
|
|
159
|
+
var formInput_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".form-input{display:flex;flex-flow:column}.form-input>*{order:2}.form-input__label{order:0}.form-input__input-group{order:1}.form-input input[type=color]{flex:0 0 3rem;height:auto;padding:0;border-width:0}\n")();
|
|
160
160
|
const _hoisted_1$3 = { class: "form-input" };
|
|
161
161
|
const _hoisted_2$3 = { class: "input-group form-input__input-group" };
|
|
162
162
|
const _hoisted_3$1 = ["type", "name", "id", "label", "placeholder", "pattern", "disabled", "read-only", "required", "maxlength", "checked", "aria-label"];
|
|
163
|
-
const _hoisted_4$1 = ["
|
|
163
|
+
const _hoisted_4$1 = ["name", "id", "disabled", "read-only", "required", "aria-label"];
|
|
164
|
+
const _hoisted_5$1 = ["for", "innerHTML"];
|
|
164
165
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
165
166
|
__name: "form-input",
|
|
166
167
|
props: {
|
|
@@ -233,7 +234,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
233
234
|
renderSlot(_ctx.$slots, "input-prepend"),
|
|
234
235
|
withDirectives(createElementVNode("input", {
|
|
235
236
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
236
|
-
type: __props.type,
|
|
237
|
+
type: __props.type === "color" ? "text" : __props.type,
|
|
237
238
|
name: __props.name,
|
|
238
239
|
id: __props.id,
|
|
239
240
|
label: `${__props.label}${__props.required ? " *" : ""}`,
|
|
@@ -249,14 +250,29 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
249
250
|
}, null, 8, _hoisted_3$1), [
|
|
250
251
|
[vModelDynamic, unref(model)]
|
|
251
252
|
]),
|
|
252
|
-
renderSlot(_ctx.$slots, "input-append")
|
|
253
|
+
renderSlot(_ctx.$slots, "input-append", {}, () => [
|
|
254
|
+
__props.type === "color" ? withDirectives((openBlock(), createElementBlock("input", {
|
|
255
|
+
key: 0,
|
|
256
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(model) ? model.value = $event : null),
|
|
257
|
+
type: "color",
|
|
258
|
+
name: `${__props.name}-color`,
|
|
259
|
+
id: `${__props.id}-color`,
|
|
260
|
+
disabled: __props.disabled,
|
|
261
|
+
"read-only": __props.readOnly,
|
|
262
|
+
required: __props.required,
|
|
263
|
+
class: "form-control",
|
|
264
|
+
"aria-label": __props.label
|
|
265
|
+
}, null, 8, _hoisted_4$1)), [
|
|
266
|
+
[vModelText, unref(model)]
|
|
267
|
+
]) : createCommentVNode("", true)
|
|
268
|
+
])
|
|
253
269
|
]),
|
|
254
270
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
255
271
|
createElementVNode("label", {
|
|
256
272
|
for: __props.id,
|
|
257
273
|
class: "form-input__label",
|
|
258
274
|
innerHTML: __props.label
|
|
259
|
-
}, null, 8,
|
|
275
|
+
}, null, 8, _hoisted_5$1)
|
|
260
276
|
])
|
|
261
277
|
]);
|
|
262
278
|
};
|
|
@@ -479,6 +495,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
479
495
|
type: Boolean,
|
|
480
496
|
default: false
|
|
481
497
|
},
|
|
498
|
+
outline: {
|
|
499
|
+
type: Boolean,
|
|
500
|
+
default: true
|
|
501
|
+
},
|
|
482
502
|
resetOption: {
|
|
483
503
|
type: Boolean,
|
|
484
504
|
default: true
|
|
@@ -517,7 +537,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
517
537
|
class: normalizeClass(["btn dropdown-toggle", {
|
|
518
538
|
[`btn-${__props.variant}`]: __props.variant,
|
|
519
539
|
[`btn-${__props.color}`]: __props.color,
|
|
520
|
-
[`btn-${__props.disabled}`]: __props.disabled
|
|
540
|
+
[`btn-${__props.disabled}`]: __props.disabled,
|
|
541
|
+
[`btn-outline-${__props.color || "dark"}`]: __props.outline
|
|
521
542
|
}]),
|
|
522
543
|
type: "button",
|
|
523
544
|
id: __props.id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(r,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis!="undefined"?globalThis:r||self,e(r.AblokComponents={},r.Vue))})(this,function(r,e){"use strict";var
|
|
2
|
-
`)();const
|
|
3
|
-
`)();const y={class:"loading-spinner d-block"},h={class:"loading-spinner__animation"},k={class:"d-block",version:"1.1",id:"L9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","enable-background":"new 0 0 0 0","xml:space":"preserve"},B=["fill"]
|
|
4
|
-
`)();const x=["type","disabled","href","to"],V=e.defineComponent({__name:"base-button",props:{type:null,caption:null,variant:null,size:null,icon:null,href:null,to:null,disabled:{type:Boolean},pending:{type:Boolean},outlined:{type:Boolean},rounded:{type:Boolean},fab:{type:Boolean}},setup(t){const
|
|
5
|
-
`)();const w={class:"form-input"},E={class:"input-group form-input__input-group"},C=["type","name","id","label","placeholder","pattern","disabled","read-only","required","maxlength","checked","aria-label"],N=["for","innerHTML"],
|
|
1
|
+
(function(r,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis!="undefined"?globalThis:r||self,e(r.AblokComponents={},r.Vue))})(this,function(r,e){"use strict";var J=(()=>`.svg-icon{display:inline-block}.svg-icon svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:1.5em;height:1.5em}.svg-icon--xxl svg{width:12rem;height:12rem}.svg-icon--xl svg{width:8rem;height:8rem}.svg-icon--large svg{width:4rem;height:4rem}
|
|
2
|
+
`)();const b={class:"icon",preserveAspectRatio:"xMaxYMin"},p=["xlink:href"],g=e.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/static/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(i,l)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(e.openBlock(),e.createElementBlock("svg",b,[e.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,p)]))],2))}});var X=(()=>`.loading-spinner{min-width:2rem}
|
|
3
|
+
`)();const y={class:"loading-spinner d-block"},h={class:"loading-spinner__animation"},k={class:"d-block",version:"1.1",id:"L9",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 100 100","enable-background":"new 0 0 0 0","xml:space":"preserve"},B=["fill"],$=[e.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"},null,-1)],S=e.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(i,l)=>(e.openBlock(),e.createElementBlock("span",y,[e.createElementVNode("span",h,[(e.openBlock(),e.createElementBlock("svg",k,[e.createElementVNode("path",{fill:t.color,d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},$,8,B)]))]),e.renderSlot(i.$slots,"default")]))}});var K=(()=>`.base-button{display:flex;justify-content:center;align-items:center;box-sizing:border-box;transition:all .2s ease;text-decoration:none;width:100%;margin:0;padding:1.036em 1.625em;appearance:none;outline:none;border:none;border-radius:.4375em;font-size:.875em;line-height:1.125em;text-transform:uppercase;font-weight:700}@media screen and (min-width: 600px){.base-button{width:auto}}.base-button .icon{width:16px;height:16px;margin-top:-1px}.base-button.s-collapsed>.caption{display:none}.base-button.s-pending{background-repeat:no-repeat;background-position:center center}.base-button.s-pending .caption{margin-left:25px;visibility:hidden}@media screen and (min-width: 600px){.base-button.s-pending{background-position:1.625em center}.base-button.s-pending .caption{visibility:visible}}.base-button[readonly],.base-button[disabled]{cursor:not-allowed}
|
|
4
|
+
`)();const x=["type","disabled","href","to"],V=e.defineComponent({__name:"base-button",props:{type:null,caption:null,variant:null,size:null,icon:null,href:null,to:null,disabled:{type:Boolean},pending:{type:Boolean},outlined:{type:Boolean},rounded:{type:Boolean},fab:{type:Boolean}},setup(t){const i=t,l=e.computed(()=>i.caption&&!i.fab);return(d,a)=>{const s=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("button",{type:t.type,disabled:t.disabled,href:t.href,to:t.to,class:e.normalizeClass(["base-button btn btn-primary",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,outlined:t.outlined,fab:t.fab,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[e.renderSlot(d.$slots,"default",{},()=>[t.icon?(e.openBlock(),e.createBlock(s,{key:0,id:t.icon,class:"base-button__caption"},null,8,["id"])):e.createCommentVNode("",!0),e.unref(l)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},e.toDisplayString(t.caption),3)):e.createCommentVNode("",!0)])],10,x)}}});function m(){return(new Date().valueOf()+Math.random()).toString(36)}var Q=(()=>`.form-input{display:flex;flex-flow:column}.form-input>*{order:2}.form-input__label{order:0}.form-input__input-group{order:1}.form-input input[type=color]{flex:0 0 3rem;height:auto;padding:0;border-width:0}
|
|
5
|
+
`)();const w={class:"form-input"},E={class:"input-group form-input__input-group"},C=["type","name","id","label","placeholder","pattern","disabled","read-only","required","maxlength","checked","aria-label"],N=["name","id","disabled","read-only","required","aria-label"],q=["for","innerHTML"],M=e.defineComponent({__name:"form-input",props:{modelValue:{type:[String,Number,Boolean],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>m()},id:{type:String,default:()=>m()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){const l=t,d=e.computed({get(){return l.modelValue},set(a){i("update:modelValue",a)}});return(a,s)=>(e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("div",E,[e.renderSlot(a.$slots,"input-prepend"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=n=>e.isRef(d)?d.value=n:null),type:t.type==="color"?"text":t.type,name:t.name,id:t.id,label:`${t.label}${t.required?" *":""}`,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,checked:t.checked,class:"form-control","aria-label":t.label},null,8,C),[[e.vModelDynamic,e.unref(d)]]),e.renderSlot(a.$slots,"input-append",{},()=>[t.type==="color"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":s[1]||(s[1]=n=>e.isRef(d)?d.value=n:null),type:"color",name:`${t.name}-color`,id:`${t.id}-color`,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,N)),[[e.vModelText,e.unref(d)]]):e.createCommentVNode("",!0)])]),e.renderSlot(a.$slots,"label",{},()=>[e.createElementVNode("label",{for:t.id,class:"form-input__label",innerHTML:t.label},null,8,q)])]))}}),O={class:"radio-group"},z=["for"],D=e.defineComponent({__name:"check-group",props:{modelValue:{default:[]},options:{type:Array,default:[]},name:{type:String,default:()=>m()},id:{type:String,default:()=>m()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:i}){const l=t,d=e.ref([]);return e.watch(()=>l.modelValue,(a,s)=>{d.value=l.options.map(n=>n.value?l.modelValue.some(o=>o["value "]===n.value):l.modelValue.some(o=>o===n))},{immediate:!0}),e.watch(d,(a,s)=>{const n=a.reduce((o,c,u)=>{const f=c&&l.options[u]?[l.options[u]||l.options[u]]:[];return[...o,...f]},[]);i("update:modelValue",n)},{deep:!0}),e.onBeforeMount(()=>{}),(a,s)=>{const n=e.resolveComponent("form-input");return e.openBlock(),e.createElementBlock("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(o,c)=>(e.openBlock(),e.createBlock(n,{key:c,modelValue:e.unref(d)[c],"onUpdate:modelValue":u=>e.unref(d)[c]=u,type:"checkbox",name:t.name,id:`${t.id}-${c}`,label:`${o.text||o}${t.required?" *":""}`,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,["modelValue","onUpdate:modelValue","name","id","label","disabled","read-only","required"]))),128)),e.createElementVNode("label",{for:t.id},[e.renderSlot(a.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],8,z)])}}}),T={class:"radio-group"},L=["for"],I=e.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>m()},id:{type:String,default:()=>m()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:i}){const l=t;e.ref(l.options.map(a=>a.value===l.modelValue));function d(a){i("update:modelValue",a)}return e.onBeforeMount(()=>{}),(a,s)=>{const n=e.resolveComponent("form-input");return e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(o,c)=>(e.openBlock(),e.createBlock(n,{key:c,type:"radio",name:t.name,id:`${t.id}-${c}`,value:o.value||o,label:`${o.text||o}${t.required?" *":""}`,checked:o.value?o.value===t.modelValue:o===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:u=>d(o)},null,8,["name","id","value","label","checked","disabled","read-only","required","onChange"]))),128)),e.createElementVNode("label",{for:t.id},[e.renderSlot(a.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],8,L)])}}}),A={class:"input input-dropdown"},P={class:"dropdown"},j={class:"btn-group",role:"group"},F=["id","disabled"],R=["aria-labelledby"],U=["onClick"],G=["for"],H=e.defineComponent({__name:"input-dropdown",props:{modelValue:{type:[String,Number,Boolean,Object],default:""},name:{type:String,default:()=>m()},id:{type:String,default:()=>m()},label:{type:String,default:""},placeholder:{type:String,default:"Please select"},options:{type:Array,default:[]},variant:{type:String,default:""},color:{type:String,default:""},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},required:{type:Boolean,default:!1},outline:{type:Boolean,default:!0},resetOption:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:i}){const l=t;e.computed({get(){return l.modelValue},set(n){i("update:modelValue",n)}});function d(n){i("update:modelValue",n)}const a=e.computed(()=>[{text:"Please select"},...l.options.map(n=>typeof n=="string"?{value:n,text:n}:n)]),s=e.computed(()=>[...l.options].find(n=>JSON.stringify(n.value)===JSON.stringify(l.modelValue)));return(n,o)=>(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("div",P,[e.createElementVNode("div",j,[e.createElementVNode("button",{class:e.normalizeClass(["btn dropdown-toggle",{[`btn-${t.variant}`]:t.variant,[`btn-${t.color}`]:t.color,[`btn-${t.disabled}`]:t.disabled,[`btn-outline-${t.color||"dark"}`]:t.outline}]),type:"button",id:t.id,"data-bs-toggle":"dropdown","aria-expanded":"false",disabled:t.disabled},e.toDisplayString(e.unref(s)?e.unref(s).text:t.placeholder),11,F),e.createElementVNode("ul",{class:"dropdown-menu","aria-labelledby":t.id},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(c,u)=>(e.openBlock(),e.createElementBlock("li",{key:u},[e.renderSlot(n.$slots,"option",{},()=>[e.createElementVNode("a",{class:"dropdown-item",onClick:e.withModifiers(f=>d(c.value),["prevent"])},e.toDisplayString(c.text),9,U)])]))),128))],8,R)])]),e.createElementVNode("label",{for:t.id},[e.renderSlot(n.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],8,G)]))}});r.BaseButton=V,r.CheckGroup=D,r.FormInput=M,r.InputDropdown=H,r.LoadingSpinner=S,r.RadioGroup=I,r.SvgIcon=g,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -56,6 +56,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
type: BooleanConstructor;
|
|
57
57
|
default: boolean;
|
|
58
58
|
};
|
|
59
|
+
outline: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
59
63
|
resetOption: {
|
|
60
64
|
type: BooleanConstructor;
|
|
61
65
|
default: boolean;
|
|
@@ -118,6 +122,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
122
|
type: BooleanConstructor;
|
|
119
123
|
default: boolean;
|
|
120
124
|
};
|
|
125
|
+
outline: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
121
129
|
resetOption: {
|
|
122
130
|
type: BooleanConstructor;
|
|
123
131
|
default: boolean;
|
|
@@ -128,14 +136,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
136
|
options: any[];
|
|
129
137
|
required: boolean;
|
|
130
138
|
label: string;
|
|
139
|
+
color: string;
|
|
131
140
|
modelValue: string | number | boolean | Record<string, any>;
|
|
132
141
|
id: string;
|
|
133
142
|
variant: string;
|
|
134
|
-
color: string;
|
|
135
143
|
name: string;
|
|
136
144
|
disabled: boolean;
|
|
137
145
|
placeholder: string;
|
|
138
146
|
multiple: boolean;
|
|
147
|
+
outline: boolean;
|
|
139
148
|
resetOption: boolean;
|
|
140
149
|
}>;
|
|
141
150
|
export default _default;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.svg-icon{display:inline-block}.svg-icon svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:1.5em;height:1.5em}.svg-icon--xxl svg{width:12rem;height:12rem}.svg-icon--xl svg{width:8rem;height:8rem}.svg-icon--large svg{width:4rem;height:4rem}.loading-spinner{min-width:2rem}.base-button{display:flex;justify-content:center;align-items:center;box-sizing:border-box;transition:all .2s ease;text-decoration:none;width:100%;margin:0;padding:1.036em 1.625em;appearance:none;outline:none;border:none;border-radius:.4375em;font-size:.875em;line-height:1.125em;text-transform:uppercase;font-weight:700}@media screen and (min-width: 600px){.base-button{width:auto}}.base-button .icon{width:16px;height:16px;margin-top:-1px}.base-button.s-collapsed>.caption{display:none}.base-button.s-pending{background-repeat:no-repeat;background-position:center center}.base-button.s-pending .caption{margin-left:25px;visibility:hidden}@media screen and (min-width: 600px){.base-button.s-pending{background-position:1.625em center}.base-button.s-pending .caption{visibility:visible}}.base-button[readonly],.base-button[disabled]{cursor:not-allowed}.form-input{display:flex;flex-flow:column}.form-input>*{order:2}.form-input__label{order:0}.form-input__input-group{order:1}
|
|
1
|
+
.svg-icon{display:inline-block}.svg-icon svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:1.5em;height:1.5em}.svg-icon--xxl svg{width:12rem;height:12rem}.svg-icon--xl svg{width:8rem;height:8rem}.svg-icon--large svg{width:4rem;height:4rem}.loading-spinner{min-width:2rem}.base-button{display:flex;justify-content:center;align-items:center;box-sizing:border-box;transition:all .2s ease;text-decoration:none;width:100%;margin:0;padding:1.036em 1.625em;appearance:none;outline:none;border:none;border-radius:.4375em;font-size:.875em;line-height:1.125em;text-transform:uppercase;font-weight:700}@media screen and (min-width: 600px){.base-button{width:auto}}.base-button .icon{width:16px;height:16px;margin-top:-1px}.base-button.s-collapsed>.caption{display:none}.base-button.s-pending{background-repeat:no-repeat;background-position:center center}.base-button.s-pending .caption{margin-left:25px;visibility:hidden}@media screen and (min-width: 600px){.base-button.s-pending{background-position:1.625em center}.base-button.s-pending .caption{visibility:visible}}.base-button[readonly],.base-button[disabled]{cursor:not-allowed}.form-input{display:flex;flex-flow:column}.form-input>*{order:2}.form-input__label{order:0}.form-input__input-group{order:1}.form-input input[type=color]{flex:0 0 3rem;height:auto;padding:0;border-width:0}
|