@amsom-habitat/ui 1.0.5 → 2.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/package.json +5 -2
- package/dist/ui.js +0 -107
- package/dist/ui.umd.cjs +0 -1
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amsom-habitat/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
7
7
|
"build": "vite build",
|
|
8
|
-
"preview": "vite preview"
|
|
8
|
+
"preview": "vite preview",
|
|
9
|
+
"lint": "npx eslint --ext .js,.vue src/"
|
|
9
10
|
},
|
|
10
11
|
"main": "./dist/ui.umd.js",
|
|
11
12
|
"module": "./dist/ui.js",
|
|
@@ -24,6 +25,8 @@
|
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
28
|
+
"eslint": "^8.57.0",
|
|
29
|
+
"eslint-plugin-vue": "^9.22.0",
|
|
27
30
|
"vite": "^5.1.3"
|
|
28
31
|
}
|
|
29
32
|
}
|
package/dist/ui.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as u, openBlock as n, createElementBlock as i, withModifiers as f, createElementVNode as e, createBlock as h, createCommentVNode as r, renderSlot as c, toDisplayString as $ } from "vue";
|
|
2
|
-
const d = (t, s) => {
|
|
3
|
-
const o = t.__vccOpts || t;
|
|
4
|
-
for (const [a, l] of s)
|
|
5
|
-
o[a] = l;
|
|
6
|
-
return o;
|
|
7
|
-
}, v = {
|
|
8
|
-
name: "Modal",
|
|
9
|
-
props: {
|
|
10
|
-
closeOption: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
default: !1
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
emits: ["close"]
|
|
16
|
-
}, y = { class: "container bg-white rounded-4 p-3 m-3 position-relative" }, b = {
|
|
17
|
-
class: "overflow-y-auto",
|
|
18
|
-
style: { "max-height": "80vh" }
|
|
19
|
-
}, k = /* @__PURE__ */ e("div", { class: "mt-2" }, null, -1);
|
|
20
|
-
function g(t, s, o, a, l, _) {
|
|
21
|
-
const p = u("font-awesome-icon");
|
|
22
|
-
return n(), i("div", {
|
|
23
|
-
class: "amsom-modal-block bg-black bg-opacity-25 position-fixed top-50 start-50 translate-middle min-vw-100 min-vh-100 d-flex justify-content-center align-items-center overflow-y-auto",
|
|
24
|
-
style: { "z-index": "1055" },
|
|
25
|
-
onClick: s[1] || (s[1] = f((m) => o.closeOption ? t.$emit("close") : "", ["self"]))
|
|
26
|
-
}, [
|
|
27
|
-
e("div", y, [
|
|
28
|
-
o.closeOption ? (n(), h(p, {
|
|
29
|
-
key: 0,
|
|
30
|
-
icon: "fa-solid fa-times",
|
|
31
|
-
role: "button",
|
|
32
|
-
class: "position-absolute top-0 end-0 m-3 translate-middle-y",
|
|
33
|
-
size: "lg",
|
|
34
|
-
onClick: s[0] || (s[0] = (m) => t.$emit("close"))
|
|
35
|
-
})) : r("", !0),
|
|
36
|
-
e("div", b, [
|
|
37
|
-
k,
|
|
38
|
-
c(t.$slots, "default")
|
|
39
|
-
])
|
|
40
|
-
])
|
|
41
|
-
]);
|
|
42
|
-
}
|
|
43
|
-
const A = /* @__PURE__ */ d(v, [["render", g]]), x = {
|
|
44
|
-
name: "Card",
|
|
45
|
-
props: {
|
|
46
|
-
title: {
|
|
47
|
-
type: String
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}, w = { class: "card" }, C = { class: "card-body" }, O = {
|
|
51
|
-
key: 0,
|
|
52
|
-
class: "card-title"
|
|
53
|
-
}, B = /* @__PURE__ */ e("h5", { class: "card-title" }, " Card title ", -1), S = /* @__PURE__ */ e("p", { class: "card-text" }, " Some quick example text to build on the card title and make up the bulk of the card's content. ", -1), z = /* @__PURE__ */ e("a", {
|
|
54
|
-
href: "#",
|
|
55
|
-
class: "btn btn-primary"
|
|
56
|
-
}, "Go somewhere", -1);
|
|
57
|
-
function M(t, s, o, a, l, _) {
|
|
58
|
-
return n(), i("div", w, [
|
|
59
|
-
e("div", C, [
|
|
60
|
-
c(t.$slots, "header", {}, () => [
|
|
61
|
-
o.title ? (n(), i("h4", O, $(o.title), 1)) : r("", !0)
|
|
62
|
-
]),
|
|
63
|
-
c(t.$slots, "default", {}, () => [
|
|
64
|
-
B,
|
|
65
|
-
S,
|
|
66
|
-
z
|
|
67
|
-
])
|
|
68
|
-
])
|
|
69
|
-
]);
|
|
70
|
-
}
|
|
71
|
-
const F = /* @__PURE__ */ d(x, [["render", M]]), j = {
|
|
72
|
-
name: "Overlay",
|
|
73
|
-
props: {
|
|
74
|
-
loading: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: !1
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}, E = { class: "position-relative" }, N = {
|
|
80
|
-
key: 0,
|
|
81
|
-
class: "position-absolute w-100 h-100 d-flex align-items-center justify-content-center z-index-50 rounded",
|
|
82
|
-
style: { "background-color": "rgba(193, 193, 193, 0.592)", "box-shadow": "inset 0 0 0 10px rgba(193, 193, 193, 0.5)" }
|
|
83
|
-
}, V = /* @__PURE__ */ e("div", {
|
|
84
|
-
class: "spinner-border text-primary position-sticky sticky-top",
|
|
85
|
-
role: "status"
|
|
86
|
-
}, [
|
|
87
|
-
/* @__PURE__ */ e("span", { class: "sr-only" }, "Chargement...")
|
|
88
|
-
], -1), q = [
|
|
89
|
-
V
|
|
90
|
-
];
|
|
91
|
-
function D(t, s, o, a, l, _) {
|
|
92
|
-
return n(), i("div", null, [
|
|
93
|
-
e("div", E, [
|
|
94
|
-
o.loading ? (n(), i("div", N, q)) : r("", !0),
|
|
95
|
-
e("div", null, [
|
|
96
|
-
c(t.$slots, "default")
|
|
97
|
-
])
|
|
98
|
-
])
|
|
99
|
-
]);
|
|
100
|
-
}
|
|
101
|
-
const H = /* @__PURE__ */ d(j, [["render", D]]);
|
|
102
|
-
export {
|
|
103
|
-
F as Card,
|
|
104
|
-
A as Modal,
|
|
105
|
-
H as Overlay,
|
|
106
|
-
A as default
|
|
107
|
-
};
|
package/dist/ui.umd.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.UI={},o.Vue))})(this,function(o,e){"use strict";const a=(t,s)=>{const n=t.__vccOpts||t;for(const[l,i]of s)n[l]=i;return n},r={name:"Modal",props:{closeOption:{type:Boolean,default:!1}},emits:["close"]},m={class:"container bg-white rounded-4 p-3 m-3 position-relative"},p={class:"overflow-y-auto",style:{"max-height":"80vh"}},f=e.createElementVNode("div",{class:"mt-2"},null,-1);function _(t,s,n,l,i,d){const O=e.resolveComponent("font-awesome-icon");return e.openBlock(),e.createElementBlock("div",{class:"amsom-modal-block bg-black bg-opacity-25 position-fixed top-50 start-50 translate-middle min-vw-100 min-vh-100 d-flex justify-content-center align-items-center overflow-y-auto",style:{"z-index":"1055"},onClick:s[1]||(s[1]=e.withModifiers(M=>n.closeOption?t.$emit("close"):"",["self"]))},[e.createElementVNode("div",m,[n.closeOption?(e.openBlock(),e.createBlock(O,{key:0,icon:"fa-solid fa-times",role:"button",class:"position-absolute top-0 end-0 m-3 translate-middle-y",size:"lg",onClick:s[0]||(s[0]=M=>t.$emit("close"))})):e.createCommentVNode("",!0),e.createElementVNode("div",p,[f,e.renderSlot(t.$slots,"default")])])])}const c=a(r,[["render",_]]),h={name:"Card",props:{title:{type:String}}},y={class:"card"},k={class:"card-body"},$={key:0,class:"card-title"},u=e.createElementVNode("h5",{class:"card-title"}," Card title ",-1),b=e.createElementVNode("p",{class:"card-text"}," Some quick example text to build on the card title and make up the bulk of the card's content. ",-1),g=e.createElementVNode("a",{href:"#",class:"btn btn-primary"},"Go somewhere",-1);function E(t,s,n,l,i,d){return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",k,[e.renderSlot(t.$slots,"header",{},()=>[n.title?(e.openBlock(),e.createElementBlock("h4",$,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0)]),e.renderSlot(t.$slots,"default",{},()=>[u,b,g])])])}const V=a(h,[["render",E]]),B={name:"Overlay",props:{loading:{type:Boolean,default:!1}}},N={class:"position-relative"},C={key:0,class:"position-absolute w-100 h-100 d-flex align-items-center justify-content-center z-index-50 rounded",style:{"background-color":"rgba(193, 193, 193, 0.592)","box-shadow":"inset 0 0 0 10px rgba(193, 193, 193, 0.5)"}},w=[e.createElementVNode("div",{class:"spinner-border text-primary position-sticky sticky-top",role:"status"},[e.createElementVNode("span",{class:"sr-only"},"Chargement...")],-1)];function x(t,s,n,l,i,d){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",N,[n.loading?(e.openBlock(),e.createElementBlock("div",C,w)):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.renderSlot(t.$slots,"default")])])])}const S=a(B,[["render",x]]);o.Card=V,o.Modal=c,o.Overlay=S,o.default=c,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|