@bobbykim/manguito-theme 0.28.1 → 0.28.3
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/CHANGELOG.md +12 -0
- package/dist/composable.cjs +1 -0
- package/dist/composable.d.ts +49 -0
- package/dist/composable.js +4 -0
- package/dist/core.cjs +2 -2
- package/dist/core.d.ts +183 -319
- package/dist/core.js +582 -2236
- package/dist/directives.cjs +1 -0
- package/dist/directives.d.ts +126 -0
- package/dist/directives.js +131 -0
- package/dist/getGlassmorphismClass-C-7frTJB.js +55 -0
- package/dist/getGlassmorphismClass-CKSrH9Jg.cjs +1 -0
- package/dist/index-CU3f0thH.cjs +1 -0
- package/dist/index-DHpsV8uC.js +95 -0
- package/dist/index-DoK_iF2I.js +1368 -0
- package/dist/index-M2bUcfcK.cjs +1 -0
- package/dist/mcl-theme-v4.css +11 -10
- package/dist/observeVisible-CPssysCl.cjs +1 -0
- package/dist/observeVisible-CnnM-J1f.js +19 -0
- package/dist/util.cjs +1 -0
- package/dist/util.d.ts +21 -0
- package/dist/util.js +5 -0
- package/package.json +18 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("vue"),u=require("./index-CU3f0thH.cjs"),v=(t,e,n)=>!e||!(e instanceof Node)||t===e||t.contains(e)?!1:n?.length?!n.some(o=>o===e||o.contains(e)):!0,s=t=>typeof t.value=="function"?{handler:t.value,events:["click"]}:{handler:t.value.handler,events:t.value.events||["click"],excludeElements:t.value.excludeElements},c=(t,e,n)=>o=>{v(t,o.target,n)&&e(o)},p={mounted(t,e){const{handler:n,events:o,excludeElements:l}=s(e);t.__ClickOutsideHandler=c(t,n,l),o.forEach(i=>{document.addEventListener(i,t.__ClickOutsideHandler,!0)})},updated(t,e){t.__ClickOutsideHandler&&s({...e,value:e.oldValue}).events.forEach(a=>{document.removeEventListener(a,t.__ClickOutsideHandler,!0)});const{handler:n,events:o,excludeElements:l}=s(e);t.__ClickOutsideHandler=c(t,n,l),o.forEach(i=>{document.addEventListener(i,t.__ClickOutsideHandler,!0)})},unmounted(t,e){if(t.__ClickOutsideHandler){const{events:n}=s(e);n.forEach(o=>{document.removeEventListener(o,t.__ClickOutsideHandler,!0)}),delete t.__ClickOutsideHandler}}},d={left:"tooltip-left",top:"tooltip-top",bottom:"tooltip-bottom",right:"tooltip-right"},f=r.defineComponent({name:"Tooltip",props:{direction:{type:String,default:"right"},color:{type:String,default:"dark-3"},textColor:{type:String,default:"white"},width:{type:[Number,String],default:80},customClass:{type:String,default:""},title:{type:String,required:!0}},setup(t){const e="invisible opacity-0 group-hover:visible group-hover:opacity-100 z-[100] tooltip",n=r.computed(()=>[u.generateClass("BGCOLOR",t.color),u.generateClass("TEXTCOLOR",t.textColor)].join(" ")),o=r.computed(()=>({width:`${t.width}px`})),l=r.computed(()=>d[t.direction]||d.right),i=r.computed(()=>[e,l.value,n.value,t.customClass]);return()=>r.h("div",{class:i.value,role:"tooltip",innerHTML:t.title,style:[o.value]})}});exports.tooltip=f;exports.vClickOutside=p;
|
package/dist/mcl-theme-v4.css
CHANGED
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
@property --mcl-depth-color {
|
|
71
71
|
syntax: '<color>';
|
|
72
72
|
inherits: false;
|
|
73
|
+
initial-value: white;
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
/* Base Styles - replaces addBase from your plugin */
|
|
@@ -123,29 +124,29 @@
|
|
|
123
124
|
margin-right: auto;
|
|
124
125
|
margin-left: auto;
|
|
125
126
|
}
|
|
126
|
-
@media (min-width:
|
|
127
|
+
@media (min-width: theme(--breakpoint-sm)) {
|
|
127
128
|
.container {
|
|
128
|
-
max-width:
|
|
129
|
+
max-width: theme(--breakpoint-sm);
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
@media (min-width:
|
|
132
|
+
@media (min-width: theme(--breakpoint-md)) {
|
|
132
133
|
.container {
|
|
133
|
-
max-width:
|
|
134
|
+
max-width: theme(--breakpoint-md);
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
|
-
@media (min-width:
|
|
137
|
+
@media (min-width: theme(--breakpoint-lg)) {
|
|
137
138
|
.container {
|
|
138
|
-
max-width:
|
|
139
|
+
max-width: theme(--breakpoint-lg);
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
|
-
@media (min-width:
|
|
142
|
+
@media (min-width: theme(--breakpoint-xl)) {
|
|
142
143
|
.container {
|
|
143
|
-
max-width:
|
|
144
|
+
max-width: theme(--breakpoint-xl);
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
|
-
@media (min-width:
|
|
147
|
+
@media (min-width: theme(--breakpoint-2xl)) {
|
|
147
148
|
.container {
|
|
148
|
-
max-width:
|
|
149
|
+
max-width: theme(--breakpoint-2xl);
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
152
|
/* Heading size variants */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("@vueuse/core"),n=t=>t.getAttribute("visible")==="true",o=t=>t.type==="attributes"&&t.attributeName==="visible",a=(t,i)=>u.useMutationObserver(t,r=>{const e=r.find(o);if(!e)return;const s=e.target,b=n(s);i(b)},{attributes:!0,attributeFilter:["visible"]});exports.observeVisibleAttr=a;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useMutationObserver as u } from "@vueuse/core";
|
|
2
|
+
const n = (t) => t.getAttribute("visible") === "true", o = (t) => t.type === "attributes" && t.attributeName === "visible", l = (t, i) => u(
|
|
3
|
+
t,
|
|
4
|
+
(r) => {
|
|
5
|
+
const e = r.find(o);
|
|
6
|
+
if (!e)
|
|
7
|
+
return;
|
|
8
|
+
const s = e.target, b = n(s);
|
|
9
|
+
i(b);
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
attributes: !0,
|
|
13
|
+
attributeFilter: ["visible"]
|
|
14
|
+
// only watch the visible attribute
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
l as o
|
|
19
|
+
};
|
package/dist/util.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./getGlassmorphismClass-CKSrH9Jg.cjs");exports.ClientSideRender=e.ClientSideRender;exports.getGlassmorphismClass=e.getGlassmorphismClass;
|
package/dist/util.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
import { PublicProps } from 'vue';
|
|
5
|
+
import { RendererElement } from 'vue';
|
|
6
|
+
import { RendererNode } from 'vue';
|
|
7
|
+
import { VNode } from 'vue';
|
|
8
|
+
|
|
9
|
+
declare type BodyText = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
|
|
11
|
+
export declare const ClientSideRender: DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>[] | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
|
|
15
|
+
declare type ColorPalette = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'light-1' | 'light-2' | 'light-3' | 'light-4' | 'dark-1' | 'dark-2' | 'dark-3' | 'dark-4' | 'black' | 'white' | 'transparent';
|
|
16
|
+
|
|
17
|
+
export declare const getGlassmorphismClass: (color: ColorPalette, blur: BodyText, opacity: OpacityRange, depth?: OpacityRange) => string;
|
|
18
|
+
|
|
19
|
+
declare type OpacityRange = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100;
|
|
20
|
+
|
|
21
|
+
export { }
|
package/dist/util.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobbykim/manguito-theme",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.3",
|
|
4
4
|
"description": "main theme file for manguito components library. Other MCL components will need to import this file to run.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -31,7 +31,22 @@
|
|
|
31
31
|
"import": "./dist/core.js",
|
|
32
32
|
"require": "./dist/core.cjs"
|
|
33
33
|
},
|
|
34
|
-
"./mcl-theme-v4.css": "./dist/mcl-theme-v4.css"
|
|
34
|
+
"./mcl-theme-v4.css": "./dist/mcl-theme-v4.css",
|
|
35
|
+
"./directives": {
|
|
36
|
+
"types": "./dist/directives.d.ts",
|
|
37
|
+
"import": "./dist/directives.js",
|
|
38
|
+
"require": "./dist/directives.cjs"
|
|
39
|
+
},
|
|
40
|
+
"./util": {
|
|
41
|
+
"types": "./dist/util.d.ts",
|
|
42
|
+
"import": "./dist/util.js",
|
|
43
|
+
"require": "./dist/util.cjs"
|
|
44
|
+
},
|
|
45
|
+
"./composable": {
|
|
46
|
+
"types": "./dist/composable.d.ts",
|
|
47
|
+
"import": "./dist/composable.js",
|
|
48
|
+
"require": "./dist/composable.cjs"
|
|
49
|
+
}
|
|
35
50
|
},
|
|
36
51
|
"scripts": {
|
|
37
52
|
"build": "vite build && cp lib/style/mcl-theme-v4.css dist/mcl-theme-v4.css"
|
|
@@ -60,5 +75,5 @@
|
|
|
60
75
|
"url": "https://github.com/bobbykim89/manguito-component-library.git"
|
|
61
76
|
},
|
|
62
77
|
"license": "MIT",
|
|
63
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "fc1830324e5a409b68bbb2b39280fe0b3cf3673a"
|
|
64
79
|
}
|