@phila/phila-ui-callout 0.0.17 → 0.0.18
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/README.md +87 -18
- package/dist/Callout.vue.d.ts +20 -30
- package/dist/Callout.vue.d.ts.map +1 -0
- package/dist/index.css +0 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +557 -0
- package/dist/index.mjs +3595 -0
- package/package.json +40 -35
- package/dist/Callout.js +0 -30
- package/dist/Callout.umd.cjs +0 -1
- package/dist/types.d.ts +0 -12
package/package.json
CHANGED
|
@@ -1,47 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phila/phila-ui-callout",
|
|
3
|
-
"
|
|
4
|
-
"version": "0.0.17",
|
|
3
|
+
"version": "0.0.18",
|
|
5
4
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"module": "./dist/Callout.js",
|
|
11
|
-
"types": "./dist/types.d.ts",
|
|
5
|
+
"description": "A vue component for displaying important messages and warnings.",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
12
9
|
"exports": {
|
|
13
10
|
".": {
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
"require": "./dist/Callout.umd.cjs"
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.js"
|
|
19
14
|
}
|
|
20
15
|
},
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"keywords": [
|
|
20
|
+
"ui",
|
|
21
|
+
"callout",
|
|
22
|
+
"vue",
|
|
23
|
+
"component"
|
|
24
|
+
],
|
|
25
|
+
"author": "",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"vue": "^3.0.0"
|
|
26
29
|
},
|
|
27
30
|
"dependencies": {
|
|
28
|
-
"@phila/phila-ui-core": "
|
|
29
|
-
"bulma": "^0.9.4",
|
|
30
|
-
"vue": "^3.3.8"
|
|
31
|
+
"@phila/phila-ui-core": "2.1.0"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^
|
|
34
|
-
"@vitejs/plugin-vue": "^
|
|
35
|
-
"
|
|
36
|
-
"typescript": "^5.8.
|
|
37
|
-
"vite": "^
|
|
38
|
-
"vite-plugin-dts": "^
|
|
39
|
-
"vite-plugin-lib-inject-css": "^
|
|
40
|
-
"vue-tsc": "^2.2.8"
|
|
34
|
+
"@types/node": "^24.0.0",
|
|
35
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
36
|
+
"eslint": "^9.0.0",
|
|
37
|
+
"typescript": "^5.8.3",
|
|
38
|
+
"vite": "^7.0.6",
|
|
39
|
+
"vite-plugin-dts": "^4.5.4",
|
|
40
|
+
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
41
41
|
},
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "vite build",
|
|
44
|
+
"dev": "vite build --watch",
|
|
45
|
+
"lint": "eslint src --ext .ts,.tsx,.vue",
|
|
46
|
+
"lint:fix": "eslint src --ext .ts,.tsx,.vue --fix",
|
|
47
|
+
"type-check": "tsc --noEmit",
|
|
48
|
+
"clean": "rm -rf dist",
|
|
49
|
+
"format": "prettier --write .",
|
|
50
|
+
"format:check": "prettier --check ."
|
|
51
|
+
}
|
|
52
|
+
}
|
package/dist/Callout.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, computed as m, createElementBlock as s, openBlock as t, normalizeClass as d, createElementVNode as c, Fragment as a, createTextVNode as p, toDisplayString as u, renderSlot as i, createCommentVNode as f } from "vue";
|
|
2
|
-
const g = { class: "message-body" }, y = {
|
|
3
|
-
// Disabling the multi-word component name rule for this file
|
|
4
|
-
// to ensure component backwards compatibility.
|
|
5
|
-
// eslint-disable-next-line vue/multi-word-component-names
|
|
6
|
-
name: "Callout"
|
|
7
|
-
}, C = /* @__PURE__ */ r({
|
|
8
|
-
...y,
|
|
9
|
-
props: {
|
|
10
|
-
message: { default: "" },
|
|
11
|
-
messageType: { default: "info" }
|
|
12
|
-
},
|
|
13
|
-
setup(o) {
|
|
14
|
-
const n = o, l = m(() => `is-${n.messageType}`);
|
|
15
|
-
return (e, _) => (t(), s("div", {
|
|
16
|
-
class: d(["message", l.value])
|
|
17
|
-
}, [
|
|
18
|
-
c("div", g, [
|
|
19
|
-
e.message ? (t(), s(a, { key: 0 }, [
|
|
20
|
-
p(u(e.message), 1)
|
|
21
|
-
], 64)) : (t(), s(a, { key: 1 }, [
|
|
22
|
-
e.$slots.default ? i(e.$slots, "default", { key: 0 }) : f("", !0)
|
|
23
|
-
], 64))
|
|
24
|
-
])
|
|
25
|
-
], 2));
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
export {
|
|
29
|
-
C as default
|
|
30
|
-
};
|
package/dist/Callout.umd.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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.Callout=t(e.Vue))})(this,function(e){"use strict";const t={class:"message-body"},n={name:"Callout"};return e.defineComponent({...n,props:{message:{default:""},messageType:{default:"info"}},setup(o){const a=o,l=e.computed(()=>`is-${a.messageType}`);return(s,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message",l.value])},[e.createElementVNode("div",t,[s.message?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.message),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.$slots.default?e.renderSlot(s.$slots,"default",{key:0}):e.createCommentVNode("",!0)],64))])],2))}})});
|
package/dist/types.d.ts
DELETED