dendelion-ui 0.0.1
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/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/dendelion-ui.cjs.js +5 -0
- package/dist/dendelion-ui.es.js +452 -0
- package/dist/dendelion-ui.umd.js +5 -0
- package/dist/types/components/button/Button.vue.d.ts +22 -0
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/button/interface.d.ts +8 -0
- package/dist/types/components/card/Card.vue.d.ts +23 -0
- package/dist/types/components/card/CardBody.vue.d.ts +17 -0
- package/dist/types/components/card/CardTitle.vue.d.ts +10 -0
- package/dist/types/components/card/index.d.ts +4 -0
- package/dist/types/components/card/interface.d.ts +8 -0
- package/dist/types/components/container/Container.vue.d.ts +21 -0
- package/dist/types/components/container/index.d.ts +2 -0
- package/dist/types/components/container/interface.d.ts +4 -0
- package/dist/types/components/modal/Modal.vue.d.ts +31 -0
- package/dist/types/components/modal/index.d.ts +2 -0
- package/dist/types/components/modal/interface.d.ts +6 -0
- package/dist/types/components/stepper/Step.vue.d.ts +18 -0
- package/dist/types/components/stepper/StepList.vue.d.ts +17 -0
- package/dist/types/components/stepper/StepPanel.vue.d.ts +22 -0
- package/dist/types/components/stepper/StepPanels.vue.d.ts +20 -0
- package/dist/types/components/stepper/Stepper.vue.d.ts +26 -0
- package/dist/types/components/stepper/index.d.ts +6 -0
- package/dist/types/components/stepper/interface.d.ts +3 -0
- package/dist/types/components/table/Table.vue.d.ts +11 -0
- package/dist/types/components/table/index.d.ts +2 -0
- package/dist/types/components/table/interface.d.ts +24 -0
- package/dist/types/components.d.ts +6 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/types/color.d.ts +25 -0
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/size.d.ts +12 -0
- package/dist/vite.svg +1 -0
- package/package.json +72 -0
- package/src/components/button/Button.vue +24 -0
- package/src/components/button/index.ts +2 -0
- package/src/components/button/interface.ts +10 -0
- package/src/components/card/Card.vue +25 -0
- package/src/components/card/CardBody.vue +9 -0
- package/src/components/card/CardTitle.vue +18 -0
- package/src/components/card/index.ts +4 -0
- package/src/components/card/interface.ts +9 -0
- package/src/components/container/Container.vue +21 -0
- package/src/components/container/index.ts +2 -0
- package/src/components/container/interface.ts +5 -0
- package/src/components/modal/Modal.vue +36 -0
- package/src/components/modal/index.ts +2 -0
- package/src/components/modal/interface.ts +8 -0
- package/src/components/stepper/Step.vue +35 -0
- package/src/components/stepper/StepList.vue +8 -0
- package/src/components/stepper/StepPanel.vue +30 -0
- package/src/components/stepper/StepPanels.vue +17 -0
- package/src/components/stepper/Stepper.vue +33 -0
- package/src/components/stepper/index.ts +6 -0
- package/src/components/stepper/interface.ts +4 -0
- package/src/components/table/Table.vue +27 -0
- package/src/components/table/index.ts +2 -0
- package/src/components/table/interface.ts +28 -0
- package/src/components.ts +6 -0
- package/src/index.ts +91 -0
- package/src/shims-vue.d.ts +12 -0
- package/src/types/color.ts +72 -0
- package/src/types/index.ts +2 -0
- package/src/types/size.ts +32 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 ThatzOkay
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");var d=(e=>(e[e.Primary=0]="Primary",e[e.PrimaryContent=1]="PrimaryContent",e[e.Secondary=2]="Secondary",e[e.SecondaryContent=3]="SecondaryContent",e[e.Accent=4]="Accent",e[e.AccentContent=5]="AccentContent",e[e.Neutral=6]="Neutral",e[e.NeutralContent=7]="NeutralContent",e[e.Base100=8]="Base100",e[e.Base200=9]="Base200",e[e.Base300=10]="Base300",e[e.BaseContent=11]="BaseContent",e[e.Info=12]="Info",e[e.InfoContent=13]="InfoContent",e[e.Success=14]="Success",e[e.SuccessContent=15]="SuccessContent",e[e.Warning=16]="Warning",e[e.WarningContent=17]="WarningContent",e[e.Error=18]="Error",e[e.ErrorContent=19]="ErrorContent",e))(d||{});class b{static toClassName(n){switch(n){case 0:return"primary";case 1:return"primary-content";case 2:return"secondary";case 3:return"secondary-content";case 4:return"accent";case 5:return"accent-content";case 6:return"neutral";case 7:return"neutral-content";case 8:return"base-100";case 9:return"base-200";case 10:return"base-300";case 11:return"base-content";case 12:return"info";case 13:return"info-content";case 14:return"success";case 15:return"success-content";case 16:return"warning";case 17:return"warning-content";case 18:return"error";case 19:return"error-content";default:return"primary"}}}function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i={exports:{}};/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/var m;function B(){return m||(m=1,function(e){(function(){var n={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=o(a,s(c)))}return a}function s(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)n.call(a,c)&&a[c]&&(l=o(l,c));return l}function o(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(i)),i.exports}var h=B();const p=v(h),x=["type"],S={class:"group-[.is-loading]:text-transparent"},k=t.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:d.Neutral},click:{}},setup(e){const n=e,r=t.ref(p("btn","group",`btn-${b.toClassName(n.color)}`,n.loading?"is-loading":""));return(s,o)=>(t.openBlock(),t.createElementBlock("button",{onClick:o[0]||(o[0]=(...a)=>s.click&&s.click(...a)),class:t.normalizeClass(r.value),type:s.type},[o[1]||(o[1]=t.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),t.createElementVNode("span",S,[t.renderSlot(s.$slots,"default")])],10,x))}});var f=(e=>(e[e.XS=0]="XS",e[e.SM=1]="SM",e[e.MD=2]="MD",e[e.LG=3]="LG",e[e.XL=4]="XL",e[e.TWOXL=5]="TWOXL",e[e.THREEXL=6]="THREEXL",e))(f||{});class _{static toClassName(n){switch(n){case 0:return"xs";case 1:return"sm";case 2:return"md";case 3:return"lg";case 4:return"xl";case 5:return"2xl";case 6:return"3xl";default:return"md"}}}const $=t.defineComponent({__name:"Card",props:{backgroundColor:{default:d.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(e){const n=e,r=t.ref(p("card",`bg-${n.backgroundColor}`,n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?`rounded-${n.roundedSize}`:""));return(s,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.value)},[t.renderSlot(s.$slots,"default")],2))}}),y=(e,n)=>{const r=e.__vccOpts||e;for(const[s,o]of n)r[s]=o;return r},w={},C={class:"card-body"};function N(e,n){return t.openBlock(),t.createElementBlock("div",C,[t.renderSlot(e.$slots,"default")])}const E=y(w,[["render",N]]),M=t.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(e){return(n,r)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.is),{class:"card-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.text),1)]),_:1}))}}),L=t.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(e){const n=e,r=t.ref([n.container?"container":"",n.padding?"p-6":""]);return(s,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.value)},[t.renderSlot(s.$slots,"default")],2))}}),P=t.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},size:{default:f.MD},columns:{},dataSource:{},ajax:{}},setup(e){const n=t.ref(null),r=e,s=t.ref(p("table",`table-${_.toClassName(r.size)}`,{"table-zebra":r.zebra,"table-pin-rows":r.pinRows,"table-pin-cols ":r.pinCols}));return(o,a)=>(t.openBlock(),t.createElementBlock("table",{ref_key:"table",ref:n,class:t.normalizeClass(s.value)},null,2))}}),V=t.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(e,{expose:n,emit:r}){const s=e,o=t.ref(s.value),a=r,l=c=>{o.value=c,a("update:value",c)};return t.provide("stepper",{value:o,updateValue:l}),t.watch(()=>s.value,c=>{o.value=c}),n({updateValue:l}),(c,u)=>t.renderSlot(c.$slots,"default",{updateValue:l})}}),T=t.defineComponent({__name:"Step",props:{value:{}},setup(e){const n=e,r=t.inject("stepper"),s=t.ref("");return t.watch(()=>r==null?void 0:r.value.value,o=>{o&&n.value&&(s.value=Number(o)>=Number(n.value)?"step-primary":"")}),t.onMounted(()=>{r&&(s.value=r.value.value===n.value?"step-primary":"",Number(r.value.value)>=Number(n.value)&&(s.value="step-primary"))}),(o,a)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["step",s.value])},[t.renderSlot(o.$slots,"default")],2))}}),j={},O={class:"steps"};function W(e,n){return t.openBlock(),t.createElementBlock("ul",O,[t.renderSlot(e.$slots,"default")])}const X=y(j,[["render",W]]),A={key:0},D=t.defineComponent({__name:"StepPanels",setup(e){const n=t.inject("stepper");return(r,s)=>(t.openBlock(),t.createBlock(t.Transition,{name:"fade",mode:"out-in"},{default:t.withCtx(()=>{var o,a;return[(o=t.unref(n))!=null&&o.value?(t.openBlock(),t.createElementBlock("div",A,[t.renderSlot(r.$slots,"default",{currentStep:(a=t.unref(n))==null?void 0:a.value})])):t.createCommentVNode("",!0)]}),_:3}))}}),R={key:0},z=t.defineComponent({__name:"StepPanel",props:{value:{}},setup(e,{expose:n}){const r=t.computed(()=>s==null?void 0:s.value.value),s=t.inject("stepper"),o=a=>{s&&s.updateValue(a.toString())};return n({activateCallback:o}),(a,l)=>a.value===r.value?(t.openBlock(),t.createElementBlock("div",R,[t.renderSlot(a.$slots,"default",{activateCallback:o})])):t.createCommentVNode("",!0)}}),I={className:"modal-box"},U={key:0,method:"dialog"},q=t.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0}},emits:["close"],setup(e,{expose:n,emit:r}){const s=t.ref(null),o=r;return n({showModal:()=>{var c;(c=s.value)==null||c.showModal()},closeModal:()=>{var c;(c=s.value)==null||c.close()}}),(c,u)=>(t.openBlock(),t.createElementBlock("dialog",{ref_key:"modal",ref:s,class:"modal","aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:u[0]||(u[0]=g=>o("close",g))},[t.createElementVNode("div",I,[c.closeButton?(t.openBlock(),t.createElementBlock("form",U,u[1]||(u[1]=[t.createElementVNode("button",{className:"btn btn-sm btn-circle btn-ghost absolute right-2 top-2"},"✕",-1)]))):t.createCommentVNode("",!0),t.renderSlot(c.$slots,"default")])],544))}}),G=["bg-primary","bg-primary-content","bg-secondary","bg-secondary-content","bg-accent","bg-accent-content","bg-neutral","bg-neutral-content","bg-base-100","bg-base-200","bg-base-300","bg-base-content","bg-info","bg-info-content","bg-success","bg-success-content","bg-warning","bg-warning-content","bg-error","bg-error-content","btn-primary","btn-primary-content","btn-secondary","btn-secondary-content","btn-accent","btn-accent-content","btn-neutral","btn-neutral-content","btn-base-100","btn-base-200","btn-base-300","btn-base-content","btn-info","btn-info-content","btn-success","btn-success-content","btn-warning","btn-warning-content","btn-error","btn-error-content","text-primary","text-primary-content","text-secondary","text-secondary-content","text-accent","text-accent-content","text-neutral","text-neutral-content","text-base-100","text-base-200","text-base-300","text-base-content","text-info","text-info-content","text-success","text-success-content","text-warning","text-warning-content","text-error","text-error-content","text-transparent","step","steps","modal","modal-box","btn","btn-sm","btn-circle","btn-ghost","absolute","right-2","top-2","shadow-lg","w-full","rounded-xs","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","hidden","block"];exports.Button=k;exports.Card=$;exports.CardBody=E;exports.CardTitle=M;exports.Color=d;exports.ColorUtils=b;exports.Container=L;exports.Modal=q;exports.Size=f;exports.SizeUtils=_;exports.Step=T;exports.StepList=X;exports.StepPanel=z;exports.StepPanels=D;exports.Stepper=V;exports.Table=P;exports.dendelionSafeList=G;
|
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { defineComponent as d, ref as p, openBlock as u, createElementBlock as l, normalizeClass as b, createElementVNode as m, renderSlot as i, createBlock as w, resolveDynamicComponent as E, withCtx as B, createTextVNode as P, toDisplayString as L, provide as T, watch as S, inject as y, onMounted as O, Transition as W, unref as h, createCommentVNode as g, computed as X } from "vue";
|
|
2
|
+
var v = /* @__PURE__ */ ((e) => (e[e.Primary = 0] = "Primary", e[e.PrimaryContent = 1] = "PrimaryContent", e[e.Secondary = 2] = "Secondary", e[e.SecondaryContent = 3] = "SecondaryContent", e[e.Accent = 4] = "Accent", e[e.AccentContent = 5] = "AccentContent", e[e.Neutral = 6] = "Neutral", e[e.NeutralContent = 7] = "NeutralContent", e[e.Base100 = 8] = "Base100", e[e.Base200 = 9] = "Base200", e[e.Base300 = 10] = "Base300", e[e.BaseContent = 11] = "BaseContent", e[e.Info = 12] = "Info", e[e.InfoContent = 13] = "InfoContent", e[e.Success = 14] = "Success", e[e.SuccessContent = 15] = "SuccessContent", e[e.Warning = 16] = "Warning", e[e.WarningContent = 17] = "WarningContent", e[e.Error = 18] = "Error", e[e.ErrorContent = 19] = "ErrorContent", e))(v || {});
|
|
3
|
+
class C {
|
|
4
|
+
static toClassName(t) {
|
|
5
|
+
switch (t) {
|
|
6
|
+
case 0:
|
|
7
|
+
return "primary";
|
|
8
|
+
case 1:
|
|
9
|
+
return "primary-content";
|
|
10
|
+
case 2:
|
|
11
|
+
return "secondary";
|
|
12
|
+
case 3:
|
|
13
|
+
return "secondary-content";
|
|
14
|
+
case 4:
|
|
15
|
+
return "accent";
|
|
16
|
+
case 5:
|
|
17
|
+
return "accent-content";
|
|
18
|
+
case 6:
|
|
19
|
+
return "neutral";
|
|
20
|
+
case 7:
|
|
21
|
+
return "neutral-content";
|
|
22
|
+
case 8:
|
|
23
|
+
return "base-100";
|
|
24
|
+
case 9:
|
|
25
|
+
return "base-200";
|
|
26
|
+
case 10:
|
|
27
|
+
return "base-300";
|
|
28
|
+
case 11:
|
|
29
|
+
return "base-content";
|
|
30
|
+
case 12:
|
|
31
|
+
return "info";
|
|
32
|
+
case 13:
|
|
33
|
+
return "info-content";
|
|
34
|
+
case 14:
|
|
35
|
+
return "success";
|
|
36
|
+
case 15:
|
|
37
|
+
return "success-content";
|
|
38
|
+
case 16:
|
|
39
|
+
return "warning";
|
|
40
|
+
case 17:
|
|
41
|
+
return "warning-content";
|
|
42
|
+
case 18:
|
|
43
|
+
return "error";
|
|
44
|
+
case 19:
|
|
45
|
+
return "error-content";
|
|
46
|
+
default:
|
|
47
|
+
return "primary";
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function V(e) {
|
|
52
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
53
|
+
}
|
|
54
|
+
var _ = { exports: {} };
|
|
55
|
+
/*!
|
|
56
|
+
Copyright (c) 2018 Jed Watson.
|
|
57
|
+
Licensed under the MIT License (MIT), see
|
|
58
|
+
http://jedwatson.github.io/classnames
|
|
59
|
+
*/
|
|
60
|
+
var $;
|
|
61
|
+
function j() {
|
|
62
|
+
return $ || ($ = 1, function(e) {
|
|
63
|
+
(function() {
|
|
64
|
+
var t = {}.hasOwnProperty;
|
|
65
|
+
function s() {
|
|
66
|
+
for (var n = "", c = 0; c < arguments.length; c++) {
|
|
67
|
+
var o = arguments[c];
|
|
68
|
+
o && (n = r(n, a(o)));
|
|
69
|
+
}
|
|
70
|
+
return n;
|
|
71
|
+
}
|
|
72
|
+
function a(n) {
|
|
73
|
+
if (typeof n == "string" || typeof n == "number")
|
|
74
|
+
return n;
|
|
75
|
+
if (typeof n != "object")
|
|
76
|
+
return "";
|
|
77
|
+
if (Array.isArray(n))
|
|
78
|
+
return s.apply(null, n);
|
|
79
|
+
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
|
|
80
|
+
return n.toString();
|
|
81
|
+
var c = "";
|
|
82
|
+
for (var o in n)
|
|
83
|
+
t.call(n, o) && n[o] && (c = r(c, o));
|
|
84
|
+
return c;
|
|
85
|
+
}
|
|
86
|
+
function r(n, c) {
|
|
87
|
+
return c ? n ? n + " " + c : n + c : n;
|
|
88
|
+
}
|
|
89
|
+
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
90
|
+
})();
|
|
91
|
+
}(_)), _.exports;
|
|
92
|
+
}
|
|
93
|
+
var A = j();
|
|
94
|
+
const x = /* @__PURE__ */ V(A), D = ["type"], R = { class: "group-[.is-loading]:text-transparent" }, ee = /* @__PURE__ */ d({
|
|
95
|
+
__name: "Button",
|
|
96
|
+
props: {
|
|
97
|
+
type: { default: "button" },
|
|
98
|
+
loading: { type: Boolean },
|
|
99
|
+
color: { default: v.Neutral },
|
|
100
|
+
click: {}
|
|
101
|
+
},
|
|
102
|
+
setup(e) {
|
|
103
|
+
const t = e, s = p(x(
|
|
104
|
+
"btn",
|
|
105
|
+
"group",
|
|
106
|
+
`btn-${C.toClassName(t.color)}`,
|
|
107
|
+
t.loading ? "is-loading" : ""
|
|
108
|
+
));
|
|
109
|
+
return (a, r) => (u(), l("button", {
|
|
110
|
+
onClick: r[0] || (r[0] = //@ts-ignore
|
|
111
|
+
(...n) => a.click && a.click(...n)),
|
|
112
|
+
class: b(s.value),
|
|
113
|
+
type: a.type
|
|
114
|
+
}, [
|
|
115
|
+
r[1] || (r[1] = m("span", { class: "loading loading-spinner loading-md absolute hidden group-[.is-loading]:block" }, null, -1)),
|
|
116
|
+
m("span", R, [
|
|
117
|
+
i(a.$slots, "default")
|
|
118
|
+
])
|
|
119
|
+
], 10, D));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
var N = /* @__PURE__ */ ((e) => (e[e.XS = 0] = "XS", e[e.SM = 1] = "SM", e[e.MD = 2] = "MD", e[e.LG = 3] = "LG", e[e.XL = 4] = "XL", e[e.TWOXL = 5] = "TWOXL", e[e.THREEXL = 6] = "THREEXL", e))(N || {});
|
|
123
|
+
class I {
|
|
124
|
+
static toClassName(t) {
|
|
125
|
+
switch (t) {
|
|
126
|
+
case 0:
|
|
127
|
+
return "xs";
|
|
128
|
+
case 1:
|
|
129
|
+
return "sm";
|
|
130
|
+
case 2:
|
|
131
|
+
return "md";
|
|
132
|
+
case 3:
|
|
133
|
+
return "lg";
|
|
134
|
+
case 4:
|
|
135
|
+
return "xl";
|
|
136
|
+
case 5:
|
|
137
|
+
return "2xl";
|
|
138
|
+
case 6:
|
|
139
|
+
return "3xl";
|
|
140
|
+
default:
|
|
141
|
+
return "md";
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const te = /* @__PURE__ */ d({
|
|
146
|
+
__name: "Card",
|
|
147
|
+
props: {
|
|
148
|
+
backgroundColor: { default: v.Primary },
|
|
149
|
+
shadow: { type: Boolean, default: !1 },
|
|
150
|
+
fullWidth: { type: Boolean, default: !1 },
|
|
151
|
+
rounded: { type: Boolean },
|
|
152
|
+
roundedSize: {}
|
|
153
|
+
},
|
|
154
|
+
setup(e) {
|
|
155
|
+
const t = e, s = p(x(
|
|
156
|
+
"card",
|
|
157
|
+
`bg-${t.backgroundColor}`,
|
|
158
|
+
t.shadow ? "shadow-lg" : "",
|
|
159
|
+
t.fullWidth ? "w-full" : "",
|
|
160
|
+
t.rounded && !t.roundedSize ? "rounded" : t.roundedSize ? `rounded-${t.roundedSize}` : ""
|
|
161
|
+
));
|
|
162
|
+
return (a, r) => (u(), l("div", {
|
|
163
|
+
class: b(s.value)
|
|
164
|
+
}, [
|
|
165
|
+
i(a.$slots, "default")
|
|
166
|
+
], 2));
|
|
167
|
+
}
|
|
168
|
+
}), k = (e, t) => {
|
|
169
|
+
const s = e.__vccOpts || e;
|
|
170
|
+
for (const [a, r] of t)
|
|
171
|
+
s[a] = r;
|
|
172
|
+
return s;
|
|
173
|
+
}, q = {}, G = { class: "card-body" };
|
|
174
|
+
function H(e, t) {
|
|
175
|
+
return u(), l("div", G, [
|
|
176
|
+
i(e.$slots, "default")
|
|
177
|
+
]);
|
|
178
|
+
}
|
|
179
|
+
const ne = /* @__PURE__ */ k(q, [["render", H]]), se = /* @__PURE__ */ d({
|
|
180
|
+
__name: "CardTitle",
|
|
181
|
+
props: {
|
|
182
|
+
is: { default: "h1" },
|
|
183
|
+
text: { default: "" }
|
|
184
|
+
},
|
|
185
|
+
setup(e) {
|
|
186
|
+
return (t, s) => (u(), w(E(t.is), { class: "card-title" }, {
|
|
187
|
+
default: B(() => [
|
|
188
|
+
P(L(t.text), 1)
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}));
|
|
192
|
+
}
|
|
193
|
+
}), ae = /* @__PURE__ */ d({
|
|
194
|
+
__name: "Container",
|
|
195
|
+
props: {
|
|
196
|
+
container: { type: Boolean, default: !0 },
|
|
197
|
+
padding: { type: Boolean, default: !0 }
|
|
198
|
+
},
|
|
199
|
+
setup(e) {
|
|
200
|
+
const t = e, s = p([
|
|
201
|
+
t.container ? "container" : "",
|
|
202
|
+
//To disable the max width in some cases
|
|
203
|
+
t.padding ? "p-6" : ""
|
|
204
|
+
]);
|
|
205
|
+
return (a, r) => (u(), l("div", {
|
|
206
|
+
class: b(s.value)
|
|
207
|
+
}, [
|
|
208
|
+
i(a.$slots, "default")
|
|
209
|
+
], 2));
|
|
210
|
+
}
|
|
211
|
+
}), re = /* @__PURE__ */ d({
|
|
212
|
+
__name: "Table",
|
|
213
|
+
props: {
|
|
214
|
+
zebra: { type: Boolean, default: !1 },
|
|
215
|
+
pinRows: { type: Boolean, default: !1 },
|
|
216
|
+
pinCols: { type: Boolean, default: !1 },
|
|
217
|
+
size: { default: N.MD },
|
|
218
|
+
columns: {},
|
|
219
|
+
dataSource: {},
|
|
220
|
+
ajax: {}
|
|
221
|
+
},
|
|
222
|
+
setup(e) {
|
|
223
|
+
const t = p(null), s = e, a = p(x("table", `table-${I.toClassName(s.size)}`, {
|
|
224
|
+
"table-zebra": s.zebra,
|
|
225
|
+
"table-pin-rows": s.pinRows,
|
|
226
|
+
"table-pin-cols ": s.pinCols
|
|
227
|
+
}));
|
|
228
|
+
return (r, n) => (u(), l("table", {
|
|
229
|
+
ref_key: "table",
|
|
230
|
+
ref: t,
|
|
231
|
+
class: b(a.value)
|
|
232
|
+
}, null, 2));
|
|
233
|
+
}
|
|
234
|
+
}), oe = /* @__PURE__ */ d({
|
|
235
|
+
__name: "Stepper",
|
|
236
|
+
props: {
|
|
237
|
+
value: {}
|
|
238
|
+
},
|
|
239
|
+
emits: ["update:value"],
|
|
240
|
+
setup(e, { expose: t, emit: s }) {
|
|
241
|
+
const a = e, r = p(a.value), n = s, c = (o) => {
|
|
242
|
+
r.value = o, n("update:value", o);
|
|
243
|
+
};
|
|
244
|
+
return T("stepper", {
|
|
245
|
+
value: r,
|
|
246
|
+
updateValue: c
|
|
247
|
+
}), S(() => a.value, (o) => {
|
|
248
|
+
r.value = o;
|
|
249
|
+
}), t({
|
|
250
|
+
updateValue: c
|
|
251
|
+
}), (o, f) => i(o.$slots, "default", { updateValue: c });
|
|
252
|
+
}
|
|
253
|
+
}), ce = /* @__PURE__ */ d({
|
|
254
|
+
__name: "Step",
|
|
255
|
+
props: {
|
|
256
|
+
value: {}
|
|
257
|
+
},
|
|
258
|
+
setup(e) {
|
|
259
|
+
const t = e, s = y("stepper"), a = p("");
|
|
260
|
+
return S(() => s == null ? void 0 : s.value.value, (r) => {
|
|
261
|
+
r && t.value && (a.value = Number(r) >= Number(t.value) ? "step-primary" : "");
|
|
262
|
+
}), O(() => {
|
|
263
|
+
s && (a.value = s.value.value === t.value ? "step-primary" : "", Number(s.value.value) >= Number(t.value) && (a.value = "step-primary"));
|
|
264
|
+
}), (r, n) => (u(), l("li", {
|
|
265
|
+
class: b(["step", a.value])
|
|
266
|
+
}, [
|
|
267
|
+
i(r.$slots, "default")
|
|
268
|
+
], 2));
|
|
269
|
+
}
|
|
270
|
+
}), U = {}, F = { class: "steps" };
|
|
271
|
+
function J(e, t) {
|
|
272
|
+
return u(), l("ul", F, [
|
|
273
|
+
i(e.$slots, "default")
|
|
274
|
+
]);
|
|
275
|
+
}
|
|
276
|
+
const ue = /* @__PURE__ */ k(U, [["render", J]]), K = { key: 0 }, le = /* @__PURE__ */ d({
|
|
277
|
+
__name: "StepPanels",
|
|
278
|
+
setup(e) {
|
|
279
|
+
const t = y("stepper");
|
|
280
|
+
return (s, a) => (u(), w(W, {
|
|
281
|
+
name: "fade",
|
|
282
|
+
mode: "out-in"
|
|
283
|
+
}, {
|
|
284
|
+
default: B(() => {
|
|
285
|
+
var r, n;
|
|
286
|
+
return [
|
|
287
|
+
(r = h(t)) != null && r.value ? (u(), l("div", K, [
|
|
288
|
+
i(s.$slots, "default", {
|
|
289
|
+
currentStep: (n = h(t)) == null ? void 0 : n.value
|
|
290
|
+
})
|
|
291
|
+
])) : g("", !0)
|
|
292
|
+
];
|
|
293
|
+
}),
|
|
294
|
+
_: 3
|
|
295
|
+
}));
|
|
296
|
+
}
|
|
297
|
+
}), Q = { key: 0 }, de = /* @__PURE__ */ d({
|
|
298
|
+
__name: "StepPanel",
|
|
299
|
+
props: {
|
|
300
|
+
value: {}
|
|
301
|
+
},
|
|
302
|
+
setup(e, { expose: t }) {
|
|
303
|
+
const s = X(() => a == null ? void 0 : a.value.value), a = y("stepper"), r = (n) => {
|
|
304
|
+
a && a.updateValue(n.toString());
|
|
305
|
+
};
|
|
306
|
+
return t({
|
|
307
|
+
activateCallback: r
|
|
308
|
+
}), (n, c) => n.value === s.value ? (u(), l("div", Q, [
|
|
309
|
+
i(n.$slots, "default", { activateCallback: r })
|
|
310
|
+
])) : g("", !0);
|
|
311
|
+
}
|
|
312
|
+
}), Y = { className: "modal-box" }, Z = {
|
|
313
|
+
key: 0,
|
|
314
|
+
method: "dialog"
|
|
315
|
+
}, ie = /* @__PURE__ */ d({
|
|
316
|
+
__name: "Modal",
|
|
317
|
+
props: {
|
|
318
|
+
closeButton: { type: Boolean, default: !0 }
|
|
319
|
+
},
|
|
320
|
+
emits: ["close"],
|
|
321
|
+
setup(e, { expose: t, emit: s }) {
|
|
322
|
+
const a = p(null), r = s;
|
|
323
|
+
return t({
|
|
324
|
+
showModal: () => {
|
|
325
|
+
var o;
|
|
326
|
+
(o = a.value) == null || o.showModal();
|
|
327
|
+
},
|
|
328
|
+
closeModal: () => {
|
|
329
|
+
var o;
|
|
330
|
+
(o = a.value) == null || o.close();
|
|
331
|
+
}
|
|
332
|
+
}), (o, f) => (u(), l("dialog", {
|
|
333
|
+
ref_key: "modal",
|
|
334
|
+
ref: a,
|
|
335
|
+
class: "modal",
|
|
336
|
+
"aria-modal": "true",
|
|
337
|
+
"aria-hidden": "true",
|
|
338
|
+
role: "dialog",
|
|
339
|
+
onClose: f[0] || (f[0] = (M) => r("close", M))
|
|
340
|
+
}, [
|
|
341
|
+
m("div", Y, [
|
|
342
|
+
o.closeButton ? (u(), l("form", Z, f[1] || (f[1] = [
|
|
343
|
+
m("button", { className: "btn btn-sm btn-circle btn-ghost absolute right-2 top-2" }, "✕", -1)
|
|
344
|
+
]))) : g("", !0),
|
|
345
|
+
i(o.$slots, "default")
|
|
346
|
+
])
|
|
347
|
+
], 544));
|
|
348
|
+
}
|
|
349
|
+
}), pe = [
|
|
350
|
+
"bg-primary",
|
|
351
|
+
"bg-primary-content",
|
|
352
|
+
"bg-secondary",
|
|
353
|
+
"bg-secondary-content",
|
|
354
|
+
"bg-accent",
|
|
355
|
+
"bg-accent-content",
|
|
356
|
+
"bg-neutral",
|
|
357
|
+
"bg-neutral-content",
|
|
358
|
+
"bg-base-100",
|
|
359
|
+
"bg-base-200",
|
|
360
|
+
"bg-base-300",
|
|
361
|
+
"bg-base-content",
|
|
362
|
+
"bg-info",
|
|
363
|
+
"bg-info-content",
|
|
364
|
+
"bg-success",
|
|
365
|
+
"bg-success-content",
|
|
366
|
+
"bg-warning",
|
|
367
|
+
"bg-warning-content",
|
|
368
|
+
"bg-error",
|
|
369
|
+
"bg-error-content",
|
|
370
|
+
"btn-primary",
|
|
371
|
+
"btn-primary-content",
|
|
372
|
+
"btn-secondary",
|
|
373
|
+
"btn-secondary-content",
|
|
374
|
+
"btn-accent",
|
|
375
|
+
"btn-accent-content",
|
|
376
|
+
"btn-neutral",
|
|
377
|
+
"btn-neutral-content",
|
|
378
|
+
"btn-base-100",
|
|
379
|
+
"btn-base-200",
|
|
380
|
+
"btn-base-300",
|
|
381
|
+
"btn-base-content",
|
|
382
|
+
"btn-info",
|
|
383
|
+
"btn-info-content",
|
|
384
|
+
"btn-success",
|
|
385
|
+
"btn-success-content",
|
|
386
|
+
"btn-warning",
|
|
387
|
+
"btn-warning-content",
|
|
388
|
+
"btn-error",
|
|
389
|
+
"btn-error-content",
|
|
390
|
+
"text-primary",
|
|
391
|
+
"text-primary-content",
|
|
392
|
+
"text-secondary",
|
|
393
|
+
"text-secondary-content",
|
|
394
|
+
"text-accent",
|
|
395
|
+
"text-accent-content",
|
|
396
|
+
"text-neutral",
|
|
397
|
+
"text-neutral-content",
|
|
398
|
+
"text-base-100",
|
|
399
|
+
"text-base-200",
|
|
400
|
+
"text-base-300",
|
|
401
|
+
"text-base-content",
|
|
402
|
+
"text-info",
|
|
403
|
+
"text-info-content",
|
|
404
|
+
"text-success",
|
|
405
|
+
"text-success-content",
|
|
406
|
+
"text-warning",
|
|
407
|
+
"text-warning-content",
|
|
408
|
+
"text-error",
|
|
409
|
+
"text-error-content",
|
|
410
|
+
"text-transparent",
|
|
411
|
+
"step",
|
|
412
|
+
"steps",
|
|
413
|
+
"modal",
|
|
414
|
+
"modal-box",
|
|
415
|
+
"btn",
|
|
416
|
+
"btn-sm",
|
|
417
|
+
"btn-circle",
|
|
418
|
+
"btn-ghost",
|
|
419
|
+
"absolute",
|
|
420
|
+
"right-2",
|
|
421
|
+
"top-2",
|
|
422
|
+
"shadow-lg",
|
|
423
|
+
"w-full",
|
|
424
|
+
"rounded-xs",
|
|
425
|
+
"rounded-sm",
|
|
426
|
+
"rounded-md",
|
|
427
|
+
"rounded-lg",
|
|
428
|
+
"rounded-xl",
|
|
429
|
+
"rounded-2xl",
|
|
430
|
+
"rounded-3xl",
|
|
431
|
+
"hidden",
|
|
432
|
+
"block"
|
|
433
|
+
];
|
|
434
|
+
export {
|
|
435
|
+
ee as Button,
|
|
436
|
+
te as Card,
|
|
437
|
+
ne as CardBody,
|
|
438
|
+
se as CardTitle,
|
|
439
|
+
v as Color,
|
|
440
|
+
C as ColorUtils,
|
|
441
|
+
ae as Container,
|
|
442
|
+
ie as Modal,
|
|
443
|
+
N as Size,
|
|
444
|
+
I as SizeUtils,
|
|
445
|
+
ce as Step,
|
|
446
|
+
ue as StepList,
|
|
447
|
+
de as StepPanel,
|
|
448
|
+
le as StepPanels,
|
|
449
|
+
oe as Stepper,
|
|
450
|
+
re as Table,
|
|
451
|
+
pe as dendelionSafeList
|
|
452
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(function(c,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(c=typeof globalThis<"u"?globalThis:c||self,t(c.DendelionUI={},c.Vue))})(this,function(c,t){"use strict";var u=(e=>(e[e.Primary=0]="Primary",e[e.PrimaryContent=1]="PrimaryContent",e[e.Secondary=2]="Secondary",e[e.SecondaryContent=3]="SecondaryContent",e[e.Accent=4]="Accent",e[e.AccentContent=5]="AccentContent",e[e.Neutral=6]="Neutral",e[e.NeutralContent=7]="NeutralContent",e[e.Base100=8]="Base100",e[e.Base200=9]="Base200",e[e.Base300=10]="Base300",e[e.BaseContent=11]="BaseContent",e[e.Info=12]="Info",e[e.InfoContent=13]="InfoContent",e[e.Success=14]="Success",e[e.SuccessContent=15]="SuccessContent",e[e.Warning=16]="Warning",e[e.WarningContent=17]="WarningContent",e[e.Error=18]="Error",e[e.ErrorContent=19]="ErrorContent",e))(u||{});class b{static toClassName(n){switch(n){case 0:return"primary";case 1:return"primary-content";case 2:return"secondary";case 3:return"secondary-content";case 4:return"accent";case 5:return"accent-content";case 6:return"neutral";case 7:return"neutral-content";case 8:return"base-100";case 9:return"base-200";case 10:return"base-300";case 11:return"base-content";case 12:return"info";case 13:return"info-content";case 14:return"success";case 15:return"success-content";case 16:return"warning";case 17:return"warning-content";case 18:return"error";case 19:return"error-content";default:return"primary"}}}function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p={exports:{}};/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/var _;function h(){return _||(_=1,function(e){(function(){var n={}.hasOwnProperty;function s(){for(var a="",d=0;d<arguments.length;d++){var l=arguments[d];l&&(a=o(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return s.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var d="";for(var l in a)n.call(a,l)&&a[l]&&(d=o(d,l));return d}function o(a,d){return d?a?a+" "+d:a+d:a}e.exports?(s.default=s,e.exports=s):window.classNames=s})()}(p)),p.exports}var S=h();const f=B(S),k=["type"],$={class:"group-[.is-loading]:text-transparent"},w=t.defineComponent({__name:"Button",props:{type:{default:"button"},loading:{type:Boolean},color:{default:u.Neutral},click:{}},setup(e){const n=e,s=t.ref(f("btn","group",`btn-${b.toClassName(n.color)}`,n.loading?"is-loading":""));return(r,o)=>(t.openBlock(),t.createElementBlock("button",{onClick:o[0]||(o[0]=(...a)=>r.click&&r.click(...a)),class:t.normalizeClass(s.value),type:r.type},[o[1]||(o[1]=t.createElementVNode("span",{class:"loading loading-spinner loading-md absolute hidden group-[.is-loading]:block"},null,-1)),t.createElementVNode("span",$,[t.renderSlot(r.$slots,"default")])],10,k))}});var m=(e=>(e[e.XS=0]="XS",e[e.SM=1]="SM",e[e.MD=2]="MD",e[e.LG=3]="LG",e[e.XL=4]="XL",e[e.TWOXL=5]="TWOXL",e[e.THREEXL=6]="THREEXL",e))(m||{});class y{static toClassName(n){switch(n){case 0:return"xs";case 1:return"sm";case 2:return"md";case 3:return"lg";case 4:return"xl";case 5:return"2xl";case 6:return"3xl";default:return"md"}}}const x=t.defineComponent({__name:"Card",props:{backgroundColor:{default:u.Primary},shadow:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},rounded:{type:Boolean},roundedSize:{}},setup(e){const n=e,s=t.ref(f("card",`bg-${n.backgroundColor}`,n.shadow?"shadow-lg":"",n.fullWidth?"w-full":"",n.rounded&&!n.roundedSize?"rounded":n.roundedSize?`rounded-${n.roundedSize}`:""));return(r,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.value)},[t.renderSlot(r.$slots,"default")],2))}}),g=(e,n)=>{const s=e.__vccOpts||e;for(const[r,o]of n)s[r]=o;return s},C={},N={class:"card-body"};function E(e,n){return t.openBlock(),t.createElementBlock("div",N,[t.renderSlot(e.$slots,"default")])}const M=g(C,[["render",E]]),T=t.defineComponent({__name:"CardTitle",props:{is:{default:"h1"},text:{default:""}},setup(e){return(n,s)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.is),{class:"card-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.text),1)]),_:1}))}}),V=t.defineComponent({__name:"Container",props:{container:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},setup(e){const n=e,s=t.ref([n.container?"container":"",n.padding?"p-6":""]);return(r,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.value)},[t.renderSlot(r.$slots,"default")],2))}}),L=t.defineComponent({__name:"Table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},size:{default:m.MD},columns:{},dataSource:{},ajax:{}},setup(e){const n=t.ref(null),s=e,r=t.ref(f("table",`table-${y.toClassName(s.size)}`,{"table-zebra":s.zebra,"table-pin-rows":s.pinRows,"table-pin-cols ":s.pinCols}));return(o,a)=>(t.openBlock(),t.createElementBlock("table",{ref_key:"table",ref:n,class:t.normalizeClass(r.value)},null,2))}}),P=t.defineComponent({__name:"Stepper",props:{value:{}},emits:["update:value"],setup(e,{expose:n,emit:s}){const r=e,o=t.ref(r.value),a=s,d=l=>{o.value=l,a("update:value",l)};return t.provide("stepper",{value:o,updateValue:d}),t.watch(()=>r.value,l=>{o.value=l}),n({updateValue:d}),(l,i)=>t.renderSlot(l.$slots,"default",{updateValue:d})}}),j=t.defineComponent({__name:"Step",props:{value:{}},setup(e){const n=e,s=t.inject("stepper"),r=t.ref("");return t.watch(()=>s==null?void 0:s.value.value,o=>{o&&n.value&&(r.value=Number(o)>=Number(n.value)?"step-primary":"")}),t.onMounted(()=>{s&&(r.value=s.value.value===n.value?"step-primary":"",Number(s.value.value)>=Number(n.value)&&(r.value="step-primary"))}),(o,a)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["step",r.value])},[t.renderSlot(o.$slots,"default")],2))}}),O={},W={class:"steps"};function X(e,n){return t.openBlock(),t.createElementBlock("ul",W,[t.renderSlot(e.$slots,"default")])}const D=g(O,[["render",X]]),A={key:0},I=t.defineComponent({__name:"StepPanels",setup(e){const n=t.inject("stepper");return(s,r)=>(t.openBlock(),t.createBlock(t.Transition,{name:"fade",mode:"out-in"},{default:t.withCtx(()=>{var o,a;return[(o=t.unref(n))!=null&&o.value?(t.openBlock(),t.createElementBlock("div",A,[t.renderSlot(s.$slots,"default",{currentStep:(a=t.unref(n))==null?void 0:a.value})])):t.createCommentVNode("",!0)]}),_:3}))}}),R={key:0},U=t.defineComponent({__name:"StepPanel",props:{value:{}},setup(e,{expose:n}){const s=t.computed(()=>r==null?void 0:r.value.value),r=t.inject("stepper"),o=a=>{r&&r.updateValue(a.toString())};return n({activateCallback:o}),(a,d)=>a.value===s.value?(t.openBlock(),t.createElementBlock("div",R,[t.renderSlot(a.$slots,"default",{activateCallback:o})])):t.createCommentVNode("",!0)}}),z={className:"modal-box"},q={key:0,method:"dialog"},G=t.defineComponent({__name:"Modal",props:{closeButton:{type:Boolean,default:!0}},emits:["close"],setup(e,{expose:n,emit:s}){const r=t.ref(null),o=s;return n({showModal:()=>{var l;(l=r.value)==null||l.showModal()},closeModal:()=>{var l;(l=r.value)==null||l.close()}}),(l,i)=>(t.openBlock(),t.createElementBlock("dialog",{ref_key:"modal",ref:r,class:"modal","aria-modal":"true","aria-hidden":"true",role:"dialog",onClose:i[0]||(i[0]=F=>o("close",F))},[t.createElementVNode("div",z,[l.closeButton?(t.openBlock(),t.createElementBlock("form",q,i[1]||(i[1]=[t.createElementVNode("button",{className:"btn btn-sm btn-circle btn-ghost absolute right-2 top-2"},"✕",-1)]))):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default")])],544))}}),H=["bg-primary","bg-primary-content","bg-secondary","bg-secondary-content","bg-accent","bg-accent-content","bg-neutral","bg-neutral-content","bg-base-100","bg-base-200","bg-base-300","bg-base-content","bg-info","bg-info-content","bg-success","bg-success-content","bg-warning","bg-warning-content","bg-error","bg-error-content","btn-primary","btn-primary-content","btn-secondary","btn-secondary-content","btn-accent","btn-accent-content","btn-neutral","btn-neutral-content","btn-base-100","btn-base-200","btn-base-300","btn-base-content","btn-info","btn-info-content","btn-success","btn-success-content","btn-warning","btn-warning-content","btn-error","btn-error-content","text-primary","text-primary-content","text-secondary","text-secondary-content","text-accent","text-accent-content","text-neutral","text-neutral-content","text-base-100","text-base-200","text-base-300","text-base-content","text-info","text-info-content","text-success","text-success-content","text-warning","text-warning-content","text-error","text-error-content","text-transparent","step","steps","modal","modal-box","btn","btn-sm","btn-circle","btn-ghost","absolute","right-2","top-2","shadow-lg","w-full","rounded-xs","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","hidden","block"];c.Button=w,c.Card=x,c.CardBody=M,c.CardTitle=T,c.Color=u,c.ColorUtils=b,c.Container=V,c.Modal=G,c.Size=m,c.SizeUtils=y,c.Step=j,c.StepList=D,c.StepPanel=U,c.StepPanels=I,c.Stepper=P,c.Table=L,c.dendelionSafeList=H,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Color } from '@/types/color';
|
|
2
|
+
import { ButtonProps } from './interface';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLButtonElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
13
|
+
type: import("./interface").Type;
|
|
14
|
+
color: Color;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CardProps } from './interface';
|
|
2
|
+
import { Color } from '@/types';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
13
|
+
backgroundColor: Color;
|
|
14
|
+
shadow: boolean;
|
|
15
|
+
fullWidth: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
is?: string | object | Component;
|
|
4
|
+
text: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
text: string;
|
|
8
|
+
is: string | object | Component;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ContainerProps } from './interface';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {
|
|
12
|
+
container: boolean;
|
|
13
|
+
padding: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|