@cubit-ui/svelte 1.0.1 → 1.1.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/LICENSE +21 -21
- package/README.md +30 -30
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +403 -254
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Cubit UI
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cubit UI
|
|
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
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# @cubit-ui/svelte
|
|
2
|
-
|
|
3
|
-
Svelte wrappers for the Cubit UI Web Components. Requires Svelte 4 or 5.
|
|
4
|
-
|
|
5
|
-
> **Language notice:** The Korean README ([README.md](https://github.com/tsuel-dev/Cubit/blob/main/README.md)) in the repository root always takes precedence. If this document differs from it or is inaccurate, the Korean README prevails.
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install @cubit-ui/svelte
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```svelte
|
|
16
|
-
<script lang="ts">
|
|
17
|
-
import { Button, Input } from '@cubit-ui/svelte';
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<Input placeholder="Name" />
|
|
21
|
-
<Button variant="primary">Save</Button>
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Links
|
|
25
|
-
|
|
26
|
-
- Repository & full documentation: <https://github.com/tsuel-dev/Cubit>
|
|
27
|
-
- Issues: <https://github.com/tsuel-dev/Cubit/issues>
|
|
28
|
-
- Contact (legal, licensing, security): github@mataku.org
|
|
29
|
-
|
|
30
|
-
License: MIT
|
|
1
|
+
# @cubit-ui/svelte
|
|
2
|
+
|
|
3
|
+
Svelte wrappers for the Cubit UI Web Components. Requires Svelte 4 or 5.
|
|
4
|
+
|
|
5
|
+
> **Language notice:** The Korean README ([README.md](https://github.com/tsuel-dev/Cubit/blob/main/README.md)) in the repository root always takes precedence. If this document differs from it or is inaccurate, the Korean README prevails.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @cubit-ui/svelte
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```svelte
|
|
16
|
+
<script lang="ts">
|
|
17
|
+
import { Button, Input } from '@cubit-ui/svelte';
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<Input placeholder="Name" />
|
|
21
|
+
<Button variant="primary">Save</Button>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Links
|
|
25
|
+
|
|
26
|
+
- Repository & full documentation: <https://github.com/tsuel-dev/Cubit>
|
|
27
|
+
- Issues: <https://github.com/tsuel-dev/Cubit/issues>
|
|
28
|
+
- Contact (legal, licensing, security): github@mataku.org
|
|
29
|
+
|
|
30
|
+
License: MIT
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("svelte/internal/disclose-version");require("svelte/internal/flags/legacy");const y=require("svelte/internal/client");require("@cubit-ui/core");const v=require("svelte");function z(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>n[r]})}}return t.default=n,Object.freeze(t)}const e=z(y);var L=e.from_html("<ui-button><!></ui-button>",2);function P(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","size","disabled","type","ariaLabel"]);let l=e.prop(t,"variant",8,"primary"),s=e.prop(t,"size",8,"md"),a=e.prop(t,"disabled",8,!1),i=e.prop(t,"type",8,"button"),u=e.prop(t,"ariaLabel",8,void 0);var d=L();e.attribute_effect(d,()=>({variant:l(),size:s(),disabled:a()?"":void 0,type:i(),"aria-label":u(),...o}));var c=e.child(d);e.slot(c,t,"default",{},null),e.reset(d),e.event("click",d,function(p){e.bubble_event.call(this,t,p)}),e.append(n,d)}var k=e.from_html("<ui-input></ui-input>",2);function $(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value","placeholder","type","disabled","readonly","size","invalid","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"value",12,""),s=e.prop(t,"placeholder",8,""),a=e.prop(t,"type",8,"text"),i=e.prop(t,"disabled",8,!1),u=e.prop(t,"readonly",8,!1),d=e.prop(t,"size",8,"md"),c=e.prop(t,"invalid",8,!1),p=e.prop(t,"ariaLabel",8,void 0);const f=v.createEventDispatcher();function b(g){var m;l(((m=g.detail)==null?void 0:m.value)??""),f("input",g.detail)}function _(g){var m;l(((m=g.detail)==null?void 0:m.value)??""),f("change",g.detail)}e.init();var h=k();e.attribute_effect(h,()=>({value:l(),placeholder:s(),type:a(),disabled:i()?"":void 0,readonly:u()?"":void 0,size:d(),invalid:c()?"":void 0,"aria-label":p(),...o})),e.event("input",h,b),e.event("change",h,_),e.append(n,h),e.pop()}var w=e.from_html("<ui-checkbox><!></ui-checkbox>",2);function D(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["checked","disabled","indeterminate","name","value","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"checked",12,!1),s=e.prop(t,"disabled",8,!1),a=e.prop(t,"indeterminate",8,!1),i=e.prop(t,"name",8,void 0),u=e.prop(t,"value",8,void 0),d=e.prop(t,"ariaLabel",8,void 0);const c=v.createEventDispatcher();function p(_){var h;l(((h=_.detail)==null?void 0:h.checked)??!1),c("change",_.detail)}e.init();var f=w();e.attribute_effect(f,()=>({checked:l()?"":void 0,disabled:s()?"":void 0,indeterminate:a()?"":void 0,name:i(),value:u(),"aria-label":d(),...o}));var b=e.child(f);e.slot(b,t,"default",{},null),e.reset(f),e.event("change",f,p),e.append(n,f),e.pop()}var C=e.from_html("<ui-radio><!></ui-radio>",2);function x(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["checked","disabled","name","value"]);e.push(t,!1);let l=e.prop(t,"checked",12,!1),s=e.prop(t,"disabled",8,!1),a=e.prop(t,"name",8,void 0),i=e.prop(t,"value",8,void 0);const u=v.createEventDispatcher();function d(f){var b;l(((b=f.detail)==null?void 0:b.checked)??!1),u("change",f.detail)}e.init();var c=C();e.attribute_effect(c,()=>({checked:l()?"":void 0,disabled:s()?"":void 0,name:a(),value:i(),...o}));var p=e.child(c);e.slot(p,t,"default",{},null),e.reset(c),e.event("change",c,d),e.append(n,c),e.pop()}var S=e.from_html("<ui-switch><!></ui-switch>",2);function E(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["checked","disabled","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"checked",12,!1),s=e.prop(t,"disabled",8,!1),a=e.prop(t,"ariaLabel",8,void 0);const i=v.createEventDispatcher();function u(p){var f;l(((f=p.detail)==null?void 0:f.checked)??!1),i("change",p.detail)}e.init();var d=S();e.attribute_effect(d,()=>({checked:l()?"":void 0,disabled:s()?"":void 0,"aria-label":a(),...o}));var c=e.child(d);e.slot(c,t,"default",{},null),e.reset(d),e.event("change",d,u),e.append(n,d),e.pop()}var T=e.from_html("<ui-select><!></ui-select>",2);function O(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value","placeholder","disabled","size","open","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"value",12,""),s=e.prop(t,"placeholder",8,"선택하세요"),a=e.prop(t,"disabled",8,!1),i=e.prop(t,"size",8,"md"),u=e.prop(t,"open",12,!1),d=e.prop(t,"ariaLabel",8,void 0);const c=v.createEventDispatcher();function p(g){var m;l(((m=g.detail)==null?void 0:m.value)??""),c("change",g.detail)}function f(){u(!0),c("open")}function b(){u(!1),c("close")}e.init();var _=T();e.attribute_effect(_,()=>({value:l(),placeholder:s(),disabled:a()?"":void 0,size:i(),open:u()?"":void 0,"aria-label":d(),...o}));var h=e.child(_);e.slot(h,t,"default",{},null),e.reset(_),e.event("change",_,p),e.event("open",_,f),e.event("close",_,b),e.append(n,_),e.pop()}var B=e.from_html("<ui-modal><!> <!></ui-modal>",2);function j(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["open","title","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"open",12,!1),s=e.prop(t,"title",8,""),a=e.prop(t,"ariaLabel",8,void 0);const i=v.createEventDispatcher();function u(){l(!1),i("close")}e.init();var d=B();e.attribute_effect(d,()=>({open:l()?"":void 0,title:s(),"aria-label":a(),...o}));var c=e.child(d);e.slot(c,t,"default",{},null);var p=e.sibling(c,2);e.slot(p,t,"footer",{},null),e.reset(d),e.event("close",d,u),e.append(n,d),e.pop()}var A=e.from_html("<ui-toast><!></ui-toast>",2);function q(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","duration","open"]);e.push(t,!1);let l=e.prop(t,"variant",8,"info"),s=e.prop(t,"duration",8,4e3),a=e.prop(t,"open",12,!1);const i=v.createEventDispatcher();function u(){a(!1),i("close")}e.init();var d=A();e.attribute_effect(d,()=>({variant:l(),duration:s(),open:a()?"":void 0,...o}));var c=e.child(d);e.slot(c,t,"default",{},null),e.reset(d),e.event("close",d,u),e.append(n,d),e.pop()}var I=e.from_html("<ui-tooltip><!></ui-tooltip>",2);function M(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["content","position"]);let l=e.prop(t,"content",8,""),s=e.prop(t,"position",8,"top");var a=I();e.attribute_effect(a,()=>({content:l(),position:s(),...o}));var i=e.child(a);e.slot(i,t,"default",{},null),e.reset(a),e.append(n,a)}var N=e.from_html("<ui-tabs><!> <!></ui-tabs>",2);function R(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value"]);e.push(t,!1);let l=e.prop(t,"value",12,"");const s=v.createEventDispatcher();function a(c){var p;l(((p=c.detail)==null?void 0:p.value)??""),s("change",c.detail)}e.init();var i=N();e.attribute_effect(i,()=>({value:l(),...o}));var u=e.child(i);e.slot(u,t,"tabs",{},null);var d=e.sibling(u,2);e.slot(d,t,"default",{},null),e.reset(i),e.event("change",i,a),e.append(n,i),e.pop()}var F=e.from_html("<ui-badge><!></ui-badge>",2);function G(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","size"]);let l=e.prop(t,"variant",8,"primary"),s=e.prop(t,"size",8,"md");var a=F();e.attribute_effect(a,()=>({variant:l(),size:s(),...o}));var i=e.child(a);e.slot(i,t,"default",{},null),e.reset(a),e.append(n,a)}var H=e.from_html("<ui-spinner></ui-spinner>",2);function J(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["size","ariaLabel"]);let l=e.prop(t,"size",8,"md"),s=e.prop(t,"ariaLabel",8,"Loading");var a=H();e.attribute_effect(a,()=>({size:l(),"aria-label":s(),...o})),e.append(n,a)}var K=e.from_html("<ui-alert><!></ui-alert>",2);function Q(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","title","closable","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"variant",8,"info"),s=e.prop(t,"title",8,""),a=e.prop(t,"closable",8,!1),i=e.prop(t,"ariaLabel",8,void 0);const u=v.createEventDispatcher();function d(){u("close")}e.init();var c=K();e.attribute_effect(c,()=>({variant:l(),title:s(),closable:a()?"":void 0,"aria-label":i(),...o}));var p=e.child(c);e.slot(p,t,"default",{},null),e.reset(c),e.event("close",c,d),e.append(n,c),e.pop()}var U=e.from_html("<ui-card><!> <!> <!></ui-card>",2);function V(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","bordered"]);let l=e.prop(t,"variant",8,"default"),s=e.prop(t,"bordered",8,!1);var a=U();e.attribute_effect(a,()=>({variant:l(),bordered:s()?"":void 0,...o}));var i=e.child(a);e.slot(i,t,"header",{},null);var u=e.sibling(i,2);e.slot(u,t,"default",{},null);var d=e.sibling(u,2);e.slot(d,t,"footer",{},null),e.reset(a),e.append(n,a)}var W=e.from_html("<ui-accordion><!></ui-accordion>",2);function X(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["multiple"]);let l=e.prop(t,"multiple",8,!1);var s=W();e.attribute_effect(s,()=>({multiple:l()?"":void 0,...o}));var a=e.child(s);e.slot(a,t,"default",{},null),e.reset(s),e.append(n,s)}var Y=e.from_html("<ui-dropdown><!> <!></ui-dropdown>",2);function Z(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["open","placement","disabled"]);e.push(t,!1);let l=e.prop(t,"open",12,!1),s=e.prop(t,"placement",8,"bottom-start"),a=e.prop(t,"disabled",8,!1);const i=v.createEventDispatcher();function u(){l(!0),i("open")}function d(){l(!1),i("close")}e.init();var c=Y();e.attribute_effect(c,()=>({open:l()?"":void 0,placement:s(),disabled:a()?"":void 0,...o}));var p=e.child(c);e.slot(p,t,"trigger",{},null);var f=e.sibling(p,2);e.slot(f,t,"default",{},null),e.reset(c),e.event("open",c,u),e.event("close",c,d),e.append(n,c),e.pop()}var ee=e.from_html("<ui-progress></ui-progress>",2);function te(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value","max","size","variant","ariaLabel"]);let l=e.prop(t,"value",8,0),s=e.prop(t,"max",8,100),a=e.prop(t,"size",8,"md"),i=e.prop(t,"variant",8,"primary"),u=e.prop(t,"ariaLabel",8,"Progress");var d=ee();e.attribute_effect(d,()=>({value:l(),max:s(),size:a(),variant:i(),"aria-label":u(),...o})),e.append(n,d)}var ae=e.from_html("<ui-pagination></ui-pagination>",2);function le(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["current","total","pageSize"]);e.push(t,!1);let l=e.prop(t,"current",12,1),s=e.prop(t,"total",8,1),a=e.prop(t,"pageSize",8,10);const i=v.createEventDispatcher();function u(c){var p;l(((p=c.detail)==null?void 0:p.page)??1),i("change",c.detail)}e.init();var d=ae();e.attribute_effect(d,()=>({current:l(),total:s(),"page-size":a(),...o})),e.event("change",d,u),e.append(n,d),e.pop()}var ne=e.from_html("<ui-table><!></ui-table>",2);function ie(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["striped","bordered","hoverable"]);let l=e.prop(t,"striped",8,!1),s=e.prop(t,"bordered",8,!1),a=e.prop(t,"hoverable",8,!1);var i=ne();e.attribute_effect(i,()=>({striped:l()?"":void 0,bordered:s()?"":void 0,hoverable:a()?"":void 0,...o}));var u=e.child(i);e.slot(u,t,"default",{},null),e.reset(i),e.append(n,i)}var re=e.from_html("<ui-avatar></ui-avatar>",2);function oe(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["src","alt","name","size"]);let l=e.prop(t,"src",8,""),s=e.prop(t,"alt",8,""),a=e.prop(t,"name",8,""),i=e.prop(t,"size",8,"md");var u=re();e.attribute_effect(u,()=>({src:l(),alt:s(),name:a(),size:i(),...o})),e.append(n,u)}var se=e.from_html("<ui-breadcrumbs><!></ui-breadcrumbs>",2);function de(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["separator","ariaLabel"]);let l=e.prop(t,"separator",8,"/"),s=e.prop(t,"ariaLabel",8,"Breadcrumbs");var a=se();e.attribute_effect(a,()=>({separator:l(),"aria-label":s(),...o}));var i=e.child(a);e.slot(i,t,"default",{},null),e.reset(a),e.append(n,a)}var ce=e.from_html("<ui-drawer><!> <!></ui-drawer>",2);function ue(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["open","side","title"]);e.push(t,!1);let l=e.prop(t,"open",12,!1),s=e.prop(t,"side",8,"right"),a=e.prop(t,"title",8,"");const i=v.createEventDispatcher();function u(){l(!1),i("close")}e.init();var d=ce();e.attribute_effect(d,()=>({open:l()?"":void 0,side:s(),title:a(),...o}));var c=e.child(d);e.slot(c,t,"default",{},null);var p=e.sibling(c,2);e.slot(p,t,"footer",{},null),e.reset(d),e.event("close",d,u),e.append(n,d),e.pop()}var pe=e.from_html("<ui-skeleton></ui-skeleton>",2);function fe(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","width","height","lines"]);let l=e.prop(t,"variant",8,"text"),s=e.prop(t,"width",8,void 0),a=e.prop(t,"height",8,void 0),i=e.prop(t,"lines",8,1);var u=pe();e.attribute_effect(u,()=>({variant:l(),width:s(),height:a(),lines:i(),...o})),e.append(n,u)}var _e=e.from_html("<ui-navbar><!> <!></ui-navbar>",2);function ve(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["brand","sticky"]);let l=e.prop(t,"brand",8,""),s=e.prop(t,"sticky",8,!1);var a=_e();e.attribute_effect(a,()=>({brand:l(),sticky:s()?"":void 0,...o}));var i=e.child(a);e.slot(i,t,"default",{},null);var u=e.sibling(i,2);e.slot(u,t,"actions",{},null),e.reset(a),e.append(n,a)}var he=e.from_html("<ui-log><!></ui-log>",2);function be(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["label","height","wrap","autoscroll","max","empty"]);let l=e.prop(t,"label",8,""),s=e.prop(t,"height",8,void 0),a=e.prop(t,"wrap",8,!1),i=e.prop(t,"autoscroll",8,!0),u=e.prop(t,"max",8,void 0),d=e.prop(t,"empty",8,void 0);var c=he();e.attribute_effect(c,()=>({label:l(),height:s(),max:u(),empty:d(),wrap:a()?"":void 0,"auto-scroll":i()?"":"false",...o}));var p=e.child(c);e.slot(p,t,"default",{},null),e.reset(c),e.append(n,c)}var ge=e.from_html("<ui-log-item><!></ui-log-item>",2);function me(n,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["level","time"]);let l=e.prop(t,"level",8,"info"),s=e.prop(t,"time",8,void 0);var a=ge();e.attribute_effect(a,()=>({level:l(),time:s(),...o}));var i=e.child(a);e.slot(i,t,"default",{},null),e.reset(a),e.append(n,a)}exports.Accordion=X;exports.Alert=Q;exports.Avatar=oe;exports.Badge=G;exports.Breadcrumbs=de;exports.Button=P;exports.Card=V;exports.Checkbox=D;exports.Drawer=ue;exports.Dropdown=Z;exports.Input=$;exports.Log=be;exports.LogItem=me;exports.Modal=j;exports.Navbar=ve;exports.Pagination=le;exports.Progress=te;exports.Radio=x;exports.Select=O;exports.Skeleton=fe;exports.Spinner=J;exports.Switch=E;exports.Table=ie;exports.Tabs=R;exports.Toast=q;exports.Tooltip=M;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("svelte/internal/disclose-version");require("svelte/internal/flags/legacy");const P=require("svelte/internal/client");require("@cubit-ui/core");const v=require("svelte");function k(i){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const r in i)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>i[r]})}}return t.default=i,Object.freeze(t)}const e=k(P);var w=e.from_html("<ui-button><!></ui-button>",2);function S(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","size","disabled","type","ariaLabel"]);let l=e.prop(t,"variant",8,"primary"),s=e.prop(t,"size",8,"md"),a=e.prop(t,"disabled",8,!1),n=e.prop(t,"type",8,"button"),u=e.prop(t,"ariaLabel",8,void 0);var c=w();e.attribute_effect(c,()=>({variant:l(),size:s(),disabled:a()?"":void 0,type:n(),"aria-label":u(),...o}));var d=e.child(c);e.slot(d,t,"default",{},null),e.reset(c),e.event("click",c,function(p){e.bubble_event.call(this,t,p)}),e.append(i,c)}var x=e.from_html("<ui-input></ui-input>",2);function $(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value","placeholder","type","disabled","readonly","size","invalid","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"value",12,""),s=e.prop(t,"placeholder",8,""),a=e.prop(t,"type",8,"text"),n=e.prop(t,"disabled",8,!1),u=e.prop(t,"readonly",8,!1),c=e.prop(t,"size",8,"md"),d=e.prop(t,"invalid",8,!1),p=e.prop(t,"ariaLabel",8,void 0);const f=v.createEventDispatcher();function h(g){var m;l(((m=g.detail)==null?void 0:m.value)??""),f("input",g.detail)}function _(g){var m;l(((m=g.detail)==null?void 0:m.value)??""),f("change",g.detail)}e.init();var b=x();e.attribute_effect(b,()=>({value:l(),placeholder:s(),type:a(),disabled:n()?"":void 0,readonly:u()?"":void 0,size:c(),invalid:d()?"":void 0,"aria-label":p(),...o})),e.event("input",b,h),e.event("change",b,_),e.append(i,b),e.pop()}var C=e.from_html("<ui-checkbox><!></ui-checkbox>",2);function D(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["checked","disabled","indeterminate","name","value","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"checked",12,!1),s=e.prop(t,"disabled",8,!1),a=e.prop(t,"indeterminate",8,!1),n=e.prop(t,"name",8,void 0),u=e.prop(t,"value",8,void 0),c=e.prop(t,"ariaLabel",8,void 0);const d=v.createEventDispatcher();function p(_){var b;l(((b=_.detail)==null?void 0:b.checked)??!1),d("change",_.detail)}e.init();var f=C();e.attribute_effect(f,()=>({checked:l()?"":void 0,disabled:s()?"":void 0,indeterminate:a()?"":void 0,name:n(),value:u(),"aria-label":c(),...o}));var h=e.child(f);e.slot(h,t,"default",{},null),e.reset(f),e.event("change",f,p),e.append(i,f),e.pop()}var E=e.from_html("<ui-radio><!></ui-radio>",2);function T(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["checked","disabled","name","value"]);e.push(t,!1);let l=e.prop(t,"checked",12,!1),s=e.prop(t,"disabled",8,!1),a=e.prop(t,"name",8,void 0),n=e.prop(t,"value",8,void 0);const u=v.createEventDispatcher();function c(f){var h;l(((h=f.detail)==null?void 0:h.checked)??!1),u("change",f.detail)}e.init();var d=E();e.attribute_effect(d,()=>({checked:l()?"":void 0,disabled:s()?"":void 0,name:a(),value:n(),...o}));var p=e.child(d);e.slot(p,t,"default",{},null),e.reset(d),e.event("change",d,c),e.append(i,d),e.pop()}var O=e.from_html("<ui-switch><!></ui-switch>",2);function B(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["checked","disabled","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"checked",12,!1),s=e.prop(t,"disabled",8,!1),a=e.prop(t,"ariaLabel",8,void 0);const n=v.createEventDispatcher();function u(p){var f;l(((f=p.detail)==null?void 0:f.checked)??!1),n("change",p.detail)}e.init();var c=O();e.attribute_effect(c,()=>({checked:l()?"":void 0,disabled:s()?"":void 0,"aria-label":a(),...o}));var d=e.child(c);e.slot(d,t,"default",{},null),e.reset(c),e.event("change",c,u),e.append(i,c),e.pop()}var j=e.from_html("<ui-select><!></ui-select>",2);function q(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value","placeholder","disabled","size","open","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"value",12,""),s=e.prop(t,"placeholder",8,"선택하세요"),a=e.prop(t,"disabled",8,!1),n=e.prop(t,"size",8,"md"),u=e.prop(t,"open",12,!1),c=e.prop(t,"ariaLabel",8,void 0);const d=v.createEventDispatcher();function p(g){var m;l(((m=g.detail)==null?void 0:m.value)??""),d("change",g.detail)}function f(){u(!0),d("open")}function h(){u(!1),d("close")}e.init();var _=j();e.attribute_effect(_,()=>({value:l(),placeholder:s(),disabled:a()?"":void 0,size:n(),open:u()?"":void 0,"aria-label":c(),...o}));var b=e.child(_);e.slot(b,t,"default",{},null),e.reset(_),e.event("change",_,p),e.event("open",_,f),e.event("close",_,h),e.append(i,_),e.pop()}var A=e.from_html("<ui-modal><!> <!></ui-modal>",2);function I(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["open","title","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"open",12,!1),s=e.prop(t,"title",8,""),a=e.prop(t,"ariaLabel",8,void 0);const n=v.createEventDispatcher();function u(){l(!1),n("close")}e.init();var c=A();e.attribute_effect(c,()=>({open:l()?"":void 0,title:s(),"aria-label":a(),...o}));var d=e.child(c);e.slot(d,t,"default",{},null);var p=e.sibling(d,2);e.slot(p,t,"footer",{},null),e.reset(c),e.event("close",c,u),e.append(i,c),e.pop()}var M=e.from_html("<ui-toast><!></ui-toast>",2);function N(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","duration","open"]);e.push(t,!1);let l=e.prop(t,"variant",8,"info"),s=e.prop(t,"duration",8,4e3),a=e.prop(t,"open",12,!1);const n=v.createEventDispatcher();function u(){a(!1),n("close")}e.init();var c=M();e.attribute_effect(c,()=>({variant:l(),duration:s(),open:a()?"":void 0,...o}));var d=e.child(c);e.slot(d,t,"default",{},null),e.reset(c),e.event("close",c,u),e.append(i,c),e.pop()}var R=e.from_html("<ui-tooltip><!></ui-tooltip>",2);function F(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["content","position"]);let l=e.prop(t,"content",8,""),s=e.prop(t,"position",8,"top");var a=R();e.attribute_effect(a,()=>({content:l(),position:s(),...o}));var n=e.child(a);e.slot(n,t,"default",{},null),e.reset(a),e.append(i,a)}var G=e.from_html("<ui-tabs><!> <!></ui-tabs>",2);function H(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value"]);e.push(t,!1);let l=e.prop(t,"value",12,"");const s=v.createEventDispatcher();function a(d){var p;l(((p=d.detail)==null?void 0:p.value)??""),s("change",d.detail)}e.init();var n=G();e.attribute_effect(n,()=>({value:l(),...o}));var u=e.child(n);e.slot(u,t,"tabs",{},null);var c=e.sibling(u,2);e.slot(c,t,"default",{},null),e.reset(n),e.event("change",n,a),e.append(i,n),e.pop()}var J=e.from_html("<ui-badge><!></ui-badge>",2);function K(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","size"]);let l=e.prop(t,"variant",8,"primary"),s=e.prop(t,"size",8,"md");var a=J();e.attribute_effect(a,()=>({variant:l(),size:s(),...o}));var n=e.child(a);e.slot(n,t,"default",{},null),e.reset(a),e.append(i,a)}var Q=e.from_html("<ui-spinner></ui-spinner>",2);function U(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["size","ariaLabel"]);let l=e.prop(t,"size",8,"md"),s=e.prop(t,"ariaLabel",8,"Loading");var a=Q();e.attribute_effect(a,()=>({size:l(),"aria-label":s(),...o})),e.append(i,a)}var V=e.from_html("<ui-alert><!></ui-alert>",2);function W(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","title","closable","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"variant",8,"info"),s=e.prop(t,"title",8,""),a=e.prop(t,"closable",8,!1),n=e.prop(t,"ariaLabel",8,void 0);const u=v.createEventDispatcher();function c(){u("close")}e.init();var d=V();e.attribute_effect(d,()=>({variant:l(),title:s(),closable:a()?"":void 0,"aria-label":n(),...o}));var p=e.child(d);e.slot(p,t,"default",{},null),e.reset(d),e.event("close",d,c),e.append(i,d),e.pop()}var X=e.from_html("<ui-card><!> <!> <!></ui-card>",2);function Y(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","bordered"]);let l=e.prop(t,"variant",8,"default"),s=e.prop(t,"bordered",8,!1);var a=X();e.attribute_effect(a,()=>({variant:l(),bordered:s()?"":void 0,...o}));var n=e.child(a);e.slot(n,t,"header",{},null);var u=e.sibling(n,2);e.slot(u,t,"default",{},null);var c=e.sibling(u,2);e.slot(c,t,"footer",{},null),e.reset(a),e.append(i,a)}var Z=e.from_html("<ui-accordion><!></ui-accordion>",2);function ee(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["multiple"]);let l=e.prop(t,"multiple",8,!1);var s=Z();e.attribute_effect(s,()=>({multiple:l()?"":void 0,...o}));var a=e.child(s);e.slot(a,t,"default",{},null),e.reset(s),e.append(i,s)}var te=e.from_html("<ui-dropdown><!> <!></ui-dropdown>",2);function ae(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["open","placement","disabled"]);e.push(t,!1);let l=e.prop(t,"open",12,!1),s=e.prop(t,"placement",8,"bottom-start"),a=e.prop(t,"disabled",8,!1);const n=v.createEventDispatcher();function u(){l(!0),n("open")}function c(){l(!1),n("close")}e.init();var d=te();e.attribute_effect(d,()=>({open:l()?"":void 0,placement:s(),disabled:a()?"":void 0,...o}));var p=e.child(d);e.slot(p,t,"trigger",{},null);var f=e.sibling(p,2);e.slot(f,t,"default",{},null),e.reset(d),e.event("open",d,u),e.event("close",d,c),e.append(i,d),e.pop()}var le=e.from_html("<ui-progress></ui-progress>",2);function ne(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value","max","size","variant","ariaLabel"]);let l=e.prop(t,"value",8,0),s=e.prop(t,"max",8,100),a=e.prop(t,"size",8,"md"),n=e.prop(t,"variant",8,"primary"),u=e.prop(t,"ariaLabel",8,"Progress");var c=le();e.attribute_effect(c,()=>({value:l(),max:s(),size:a(),variant:n(),"aria-label":u(),...o})),e.append(i,c)}var ie=e.from_html("<ui-pagination></ui-pagination>",2);function re(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["current","total","pageSize"]);e.push(t,!1);let l=e.prop(t,"current",12,1),s=e.prop(t,"total",8,1),a=e.prop(t,"pageSize",8,10);const n=v.createEventDispatcher();function u(d){var p;l(((p=d.detail)==null?void 0:p.page)??1),n("change",d.detail)}e.init();var c=ie();e.attribute_effect(c,()=>({current:l(),total:s(),"page-size":a(),...o})),e.event("change",c,u),e.append(i,c),e.pop()}var oe=e.from_html("<ui-table><!></ui-table>",2);function se(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["striped","bordered","hoverable"]);let l=e.prop(t,"striped",8,!1),s=e.prop(t,"bordered",8,!1),a=e.prop(t,"hoverable",8,!1);var n=oe();e.attribute_effect(n,()=>({striped:l()?"":void 0,bordered:s()?"":void 0,hoverable:a()?"":void 0,...o}));var u=e.child(n);e.slot(u,t,"default",{},null),e.reset(n),e.append(i,n)}var de=e.from_html("<ui-avatar></ui-avatar>",2);function ce(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["src","alt","name","size"]);let l=e.prop(t,"src",8,""),s=e.prop(t,"alt",8,""),a=e.prop(t,"name",8,""),n=e.prop(t,"size",8,"md");var u=de();e.attribute_effect(u,()=>({src:l(),alt:s(),name:a(),size:n(),...o})),e.append(i,u)}var ue=e.from_html("<ui-breadcrumbs><!></ui-breadcrumbs>",2);function pe(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["separator","ariaLabel"]);let l=e.prop(t,"separator",8,"/"),s=e.prop(t,"ariaLabel",8,"Breadcrumbs");var a=ue();e.attribute_effect(a,()=>({separator:l(),"aria-label":s(),...o}));var n=e.child(a);e.slot(n,t,"default",{},null),e.reset(a),e.append(i,a)}var fe=e.from_html("<ui-drawer><!> <!></ui-drawer>",2);function ve(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["open","side","title"]);e.push(t,!1);let l=e.prop(t,"open",12,!1),s=e.prop(t,"side",8,"right"),a=e.prop(t,"title",8,"");const n=v.createEventDispatcher();function u(){l(!1),n("close")}e.init();var c=fe();e.attribute_effect(c,()=>({open:l()?"":void 0,side:s(),title:a(),...o}));var d=e.child(c);e.slot(d,t,"default",{},null);var p=e.sibling(d,2);e.slot(p,t,"footer",{},null),e.reset(c),e.event("close",c,u),e.append(i,c),e.pop()}var _e=e.from_html("<ui-skeleton></ui-skeleton>",2);function he(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","width","height","lines"]);let l=e.prop(t,"variant",8,"text"),s=e.prop(t,"width",8,void 0),a=e.prop(t,"height",8,void 0),n=e.prop(t,"lines",8,1);var u=_e();e.attribute_effect(u,()=>({variant:l(),width:s(),height:a(),lines:n(),...o})),e.append(i,u)}var be=e.from_html("<ui-navbar><!> <!></ui-navbar>",2);function ge(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["brand","sticky"]);let l=e.prop(t,"brand",8,""),s=e.prop(t,"sticky",8,!1);var a=be();e.attribute_effect(a,()=>({brand:l(),sticky:s()?"":void 0,...o}));var n=e.child(a);e.slot(n,t,"default",{},null);var u=e.sibling(n,2);e.slot(u,t,"actions",{},null),e.reset(a),e.append(i,a)}var me=e.from_html("<ui-textarea></ui-textarea>",2);function ye(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value","placeholder","rows","maxlength","resize","size","name","disabled","readonly","invalid","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"value",12,""),s=e.prop(t,"placeholder",8,""),a=e.prop(t,"rows",8,3),n=e.prop(t,"maxlength",8,void 0),u=e.prop(t,"resize",8,"vertical"),c=e.prop(t,"size",8,"md"),d=e.prop(t,"name",8,void 0),p=e.prop(t,"disabled",8,!1),f=e.prop(t,"readonly",8,!1),h=e.prop(t,"invalid",8,!1),_=e.prop(t,"ariaLabel",8,void 0);const b=v.createEventDispatcher();function g(y){var z;l(((z=y.detail)==null?void 0:z.value)??""),b("input",y.detail)}function m(y){var z;l(((z=y.detail)==null?void 0:z.value)??""),b("change",y.detail)}e.init();var L=me();e.attribute_effect(L,()=>({value:l(),placeholder:s(),rows:a(),maxlength:n(),resize:u(),size:c(),name:d(),disabled:p()?"":void 0,readonly:f()?"":void 0,invalid:h()?"":void 0,"aria-label":_(),...o})),e.event("input",L,g),e.event("change",L,m),e.append(i,L),e.pop()}var ze=e.from_html("<ui-empty-state><!> <!></ui-empty-state>",2);function Le(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["heading","description","size","variant"]);let l=e.prop(t,"heading",8,""),s=e.prop(t,"description",8,""),a=e.prop(t,"size",8,"md"),n=e.prop(t,"variant",8,"default");var u=ze();e.attribute_effect(u,()=>({heading:l(),description:s(),size:a(),variant:n(),...o}));var c=e.child(u);e.slot(c,t,"icon",{},null);var d=e.sibling(c,2);e.slot(d,t,"default",{},null),e.reset(u),e.append(i,u)}var Pe=e.from_html("<ui-segmented><!></ui-segmented>",2);function ke(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value","size","disabled","ariaLabel"]);e.push(t,!1);let l=e.prop(t,"value",12,""),s=e.prop(t,"size",8,"md"),a=e.prop(t,"disabled",8,!1),n=e.prop(t,"ariaLabel",8,void 0);const u=v.createEventDispatcher();function c(f){var h;l(((h=f.detail)==null?void 0:h.value)??""),u("change",f.detail)}e.init();var d=Pe();e.attribute_effect(d,()=>({value:l(),size:s(),disabled:a()?"":void 0,"aria-label":n(),...o}));var p=e.child(d);e.slot(p,t,"default",{},null),e.reset(d),e.event("change",d,c),e.append(i,d),e.pop()}var we=e.from_html("<ui-segment><!></ui-segment>",2);function Se(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["value","disabled"]);let l=e.prop(t,"value",8),s=e.prop(t,"disabled",8,!1);var a=we();e.attribute_effect(a,()=>({value:l(),disabled:s()?"":void 0,...o}));var n=e.child(a);e.slot(n,t,"default",{},null),e.reset(a),e.append(i,a)}var xe=e.from_html("<ui-stepper><!></ui-stepper>",2);function $e(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["current","orientation","ariaLabel"]);let l=e.prop(t,"current",8,0),s=e.prop(t,"orientation",8,"horizontal"),a=e.prop(t,"ariaLabel",8,void 0);var n=xe();e.attribute_effect(n,()=>({current:l(),orientation:s(),"aria-label":a(),...o}));var u=e.child(n);e.slot(u,t,"default",{},null),e.reset(n),e.append(i,n)}var Ce=e.from_html("<ui-step><!></ui-step>",2);function De(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["label","description","status"]);let l=e.prop(t,"label",8,""),s=e.prop(t,"description",8,""),a=e.prop(t,"status",8,void 0);var n=Ce();e.attribute_effect(n,()=>({label:l(),description:s(),status:a(),...o}));var u=e.child(n);e.slot(u,t,"default",{},null),e.reset(n),e.append(i,n)}var Ee=e.from_html("<ui-chip><!></ui-chip>",2);function Te(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["variant","size","removable","disabled","removeLabel"]);e.push(t,!1);let l=e.prop(t,"variant",8,"neutral"),s=e.prop(t,"size",8,"md"),a=e.prop(t,"removable",8,!1),n=e.prop(t,"disabled",8,!1),u=e.prop(t,"removeLabel",8,void 0);const c=v.createEventDispatcher();e.init();var d=Ee();e.attribute_effect(d,()=>({variant:l(),size:s(),removable:a()?"":void 0,disabled:n()?"":void 0,"remove-label":u(),...o}));var p=e.child(d);e.slot(p,t,"default",{},null),e.reset(d),e.event("remove",d,()=>c("remove")),e.append(i,d),e.pop()}var Oe=e.from_html("<ui-log><!></ui-log>",2);function Be(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["label","height","wrap","autoscroll","max","empty"]);let l=e.prop(t,"label",8,""),s=e.prop(t,"height",8,void 0),a=e.prop(t,"wrap",8,!1),n=e.prop(t,"autoscroll",8,!0),u=e.prop(t,"max",8,void 0),c=e.prop(t,"empty",8,void 0);var d=Oe();e.attribute_effect(d,()=>({label:l(),height:s(),max:u(),empty:c(),wrap:a()?"":void 0,"auto-scroll":n()?"":"false",...o}));var p=e.child(d);e.slot(p,t,"default",{},null),e.reset(d),e.append(i,d)}var je=e.from_html("<ui-log-item><!></ui-log-item>",2);function qe(i,t){const r=e.legacy_rest_props(t,["children","$$slots","$$events","$$legacy"]),o=e.legacy_rest_props(r,["level","time"]);let l=e.prop(t,"level",8,"info"),s=e.prop(t,"time",8,void 0);var a=je();e.attribute_effect(a,()=>({level:l(),time:s(),...o}));var n=e.child(a);e.slot(n,t,"default",{},null),e.reset(a),e.append(i,a)}exports.Accordion=ee;exports.Alert=W;exports.Avatar=ce;exports.Badge=K;exports.Breadcrumbs=pe;exports.Button=S;exports.Card=Y;exports.Checkbox=D;exports.Chip=Te;exports.Drawer=ve;exports.Dropdown=ae;exports.EmptyState=Le;exports.Input=$;exports.Log=Be;exports.LogItem=qe;exports.Modal=I;exports.Navbar=ge;exports.Pagination=re;exports.Progress=ne;exports.Radio=T;exports.Segment=Se;exports.Segmented=ke;exports.Select=q;exports.Skeleton=he;exports.Spinner=U;exports.Step=De;exports.Stepper=$e;exports.Switch=B;exports.Table=se;exports.Tabs=H;exports.Textarea=ye;exports.Toast=N;exports.Tooltip=F;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,13 @@ export { default as Breadcrumbs } from './components/Breadcrumbs.svelte';
|
|
|
22
22
|
export { default as Drawer } from './components/Drawer.svelte';
|
|
23
23
|
export { default as Skeleton } from './components/Skeleton.svelte';
|
|
24
24
|
export { default as Navbar } from './components/Navbar.svelte';
|
|
25
|
+
export { default as Textarea } from './components/Textarea.svelte';
|
|
26
|
+
export { default as EmptyState } from './components/EmptyState.svelte';
|
|
27
|
+
export { default as Segmented } from './components/Segmented.svelte';
|
|
28
|
+
export { default as Segment } from './components/Segment.svelte';
|
|
29
|
+
export { default as Stepper } from './components/Stepper.svelte';
|
|
30
|
+
export { default as Step } from './components/Step.svelte';
|
|
31
|
+
export { default as Chip } from './components/Chip.svelte';
|
|
25
32
|
export { default as Log } from './components/Log.svelte';
|
|
26
33
|
export { default as LogItem } from './components/LogItem.svelte';
|
|
27
34
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,28 +2,28 @@ import "svelte/internal/disclose-version";
|
|
|
2
2
|
import "svelte/internal/flags/legacy";
|
|
3
3
|
import * as e from "svelte/internal/client";
|
|
4
4
|
import "@cubit-ui/core";
|
|
5
|
-
import { createEventDispatcher as
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
const
|
|
5
|
+
import { createEventDispatcher as _ } from "svelte";
|
|
6
|
+
var P = e.from_html("<ui-button><!></ui-button>", 2);
|
|
7
|
+
function re(r, t) {
|
|
8
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["variant", "size", "disabled", "type", "ariaLabel"]);
|
|
9
9
|
let l = e.prop(t, "variant", 8, "primary"), i = e.prop(t, "size", 8, "md"), a = e.prop(t, "disabled", 8, !1), n = e.prop(t, "type", 8, "button"), u = e.prop(t, "ariaLabel", 8, void 0);
|
|
10
|
-
var
|
|
11
|
-
e.attribute_effect(
|
|
10
|
+
var c = P();
|
|
11
|
+
e.attribute_effect(c, () => ({
|
|
12
12
|
variant: l(),
|
|
13
13
|
size: i(),
|
|
14
14
|
disabled: a() ? "" : void 0,
|
|
15
15
|
type: n(),
|
|
16
16
|
"aria-label": u(),
|
|
17
|
-
...
|
|
17
|
+
...s
|
|
18
18
|
}));
|
|
19
|
-
var
|
|
20
|
-
e.slot(
|
|
19
|
+
var d = e.child(c);
|
|
20
|
+
e.slot(d, t, "default", {}, null), e.reset(c), e.event("click", c, function(p) {
|
|
21
21
|
e.bubble_event.call(this, t, p);
|
|
22
|
-
}), e.append(
|
|
22
|
+
}), e.append(r, c);
|
|
23
23
|
}
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
const
|
|
24
|
+
var k = e.from_html("<ui-input></ui-input>", 2);
|
|
25
|
+
function oe(r, t) {
|
|
26
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, [
|
|
27
27
|
"value",
|
|
28
28
|
"placeholder",
|
|
29
29
|
"type",
|
|
@@ -34,33 +34,33 @@ function X(o, t) {
|
|
|
34
34
|
"ariaLabel"
|
|
35
35
|
]);
|
|
36
36
|
e.push(t, !1);
|
|
37
|
-
let l = e.prop(t, "value", 12, ""), i = e.prop(t, "placeholder", 8, ""), a = e.prop(t, "type", 8, "text"), n = e.prop(t, "disabled", 8, !1), u = e.prop(t, "readonly", 8, !1),
|
|
38
|
-
const f =
|
|
39
|
-
function
|
|
37
|
+
let l = e.prop(t, "value", 12, ""), i = e.prop(t, "placeholder", 8, ""), a = e.prop(t, "type", 8, "text"), n = e.prop(t, "disabled", 8, !1), u = e.prop(t, "readonly", 8, !1), c = e.prop(t, "size", 8, "md"), d = e.prop(t, "invalid", 8, !1), p = e.prop(t, "ariaLabel", 8, void 0);
|
|
38
|
+
const f = _();
|
|
39
|
+
function h(g) {
|
|
40
40
|
var m;
|
|
41
41
|
l(((m = g.detail) == null ? void 0 : m.value) ?? ""), f("input", g.detail);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function v(g) {
|
|
44
44
|
var m;
|
|
45
45
|
l(((m = g.detail) == null ? void 0 : m.value) ?? ""), f("change", g.detail);
|
|
46
46
|
}
|
|
47
47
|
e.init();
|
|
48
|
-
var
|
|
49
|
-
e.attribute_effect(
|
|
48
|
+
var b = k();
|
|
49
|
+
e.attribute_effect(b, () => ({
|
|
50
50
|
value: l(),
|
|
51
51
|
placeholder: i(),
|
|
52
52
|
type: a(),
|
|
53
53
|
disabled: n() ? "" : void 0,
|
|
54
54
|
readonly: u() ? "" : void 0,
|
|
55
|
-
size:
|
|
56
|
-
invalid:
|
|
55
|
+
size: c(),
|
|
56
|
+
invalid: d() ? "" : void 0,
|
|
57
57
|
"aria-label": p(),
|
|
58
|
-
...
|
|
59
|
-
})), e.event("input",
|
|
58
|
+
...s
|
|
59
|
+
})), e.event("input", b, h), e.event("change", b, v), e.append(r, b), e.pop();
|
|
60
60
|
}
|
|
61
|
-
var
|
|
62
|
-
function
|
|
63
|
-
const
|
|
61
|
+
var w = e.from_html("<ui-checkbox><!></ui-checkbox>", 2);
|
|
62
|
+
function se(r, t) {
|
|
63
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, [
|
|
64
64
|
"checked",
|
|
65
65
|
"disabled",
|
|
66
66
|
"indeterminate",
|
|
@@ -69,72 +69,72 @@ function Y(o, t) {
|
|
|
69
69
|
"ariaLabel"
|
|
70
70
|
]);
|
|
71
71
|
e.push(t, !1);
|
|
72
|
-
let l = e.prop(t, "checked", 12, !1), i = e.prop(t, "disabled", 8, !1), a = e.prop(t, "indeterminate", 8, !1), n = e.prop(t, "name", 8, void 0), u = e.prop(t, "value", 8, void 0),
|
|
73
|
-
const
|
|
74
|
-
function p(
|
|
75
|
-
var
|
|
76
|
-
l(((
|
|
72
|
+
let l = e.prop(t, "checked", 12, !1), i = e.prop(t, "disabled", 8, !1), a = e.prop(t, "indeterminate", 8, !1), n = e.prop(t, "name", 8, void 0), u = e.prop(t, "value", 8, void 0), c = e.prop(t, "ariaLabel", 8, void 0);
|
|
73
|
+
const d = _();
|
|
74
|
+
function p(v) {
|
|
75
|
+
var b;
|
|
76
|
+
l(((b = v.detail) == null ? void 0 : b.checked) ?? !1), d("change", v.detail);
|
|
77
77
|
}
|
|
78
78
|
e.init();
|
|
79
|
-
var f =
|
|
79
|
+
var f = w();
|
|
80
80
|
e.attribute_effect(f, () => ({
|
|
81
81
|
checked: l() ? "" : void 0,
|
|
82
82
|
disabled: i() ? "" : void 0,
|
|
83
83
|
indeterminate: a() ? "" : void 0,
|
|
84
84
|
name: n(),
|
|
85
85
|
value: u(),
|
|
86
|
-
"aria-label":
|
|
87
|
-
...
|
|
86
|
+
"aria-label": c(),
|
|
87
|
+
...s
|
|
88
88
|
}));
|
|
89
|
-
var
|
|
90
|
-
e.slot(
|
|
89
|
+
var h = e.child(f);
|
|
90
|
+
e.slot(h, t, "default", {}, null), e.reset(f), e.event("change", f, p), e.append(r, f), e.pop();
|
|
91
91
|
}
|
|
92
|
-
var
|
|
93
|
-
function
|
|
94
|
-
const
|
|
92
|
+
var x = e.from_html("<ui-radio><!></ui-radio>", 2);
|
|
93
|
+
function de(r, t) {
|
|
94
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["checked", "disabled", "name", "value"]);
|
|
95
95
|
e.push(t, !1);
|
|
96
96
|
let l = e.prop(t, "checked", 12, !1), i = e.prop(t, "disabled", 8, !1), a = e.prop(t, "name", 8, void 0), n = e.prop(t, "value", 8, void 0);
|
|
97
|
-
const u =
|
|
98
|
-
function
|
|
99
|
-
var
|
|
100
|
-
l(((
|
|
97
|
+
const u = _();
|
|
98
|
+
function c(f) {
|
|
99
|
+
var h;
|
|
100
|
+
l(((h = f.detail) == null ? void 0 : h.checked) ?? !1), u("change", f.detail);
|
|
101
101
|
}
|
|
102
102
|
e.init();
|
|
103
|
-
var
|
|
104
|
-
e.attribute_effect(
|
|
103
|
+
var d = x();
|
|
104
|
+
e.attribute_effect(d, () => ({
|
|
105
105
|
checked: l() ? "" : void 0,
|
|
106
106
|
disabled: i() ? "" : void 0,
|
|
107
107
|
name: a(),
|
|
108
108
|
value: n(),
|
|
109
|
-
...
|
|
109
|
+
...s
|
|
110
110
|
}));
|
|
111
|
-
var p = e.child(
|
|
112
|
-
e.slot(p, t, "default", {}, null), e.reset(
|
|
111
|
+
var p = e.child(d);
|
|
112
|
+
e.slot(p, t, "default", {}, null), e.reset(d), e.event("change", d, c), e.append(r, d), e.pop();
|
|
113
113
|
}
|
|
114
|
-
var
|
|
115
|
-
function
|
|
116
|
-
const
|
|
114
|
+
var $ = e.from_html("<ui-switch><!></ui-switch>", 2);
|
|
115
|
+
function ce(r, t) {
|
|
116
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["checked", "disabled", "ariaLabel"]);
|
|
117
117
|
e.push(t, !1);
|
|
118
118
|
let l = e.prop(t, "checked", 12, !1), i = e.prop(t, "disabled", 8, !1), a = e.prop(t, "ariaLabel", 8, void 0);
|
|
119
|
-
const n =
|
|
119
|
+
const n = _();
|
|
120
120
|
function u(p) {
|
|
121
121
|
var f;
|
|
122
122
|
l(((f = p.detail) == null ? void 0 : f.checked) ?? !1), n("change", p.detail);
|
|
123
123
|
}
|
|
124
124
|
e.init();
|
|
125
|
-
var
|
|
126
|
-
e.attribute_effect(
|
|
125
|
+
var c = $();
|
|
126
|
+
e.attribute_effect(c, () => ({
|
|
127
127
|
checked: l() ? "" : void 0,
|
|
128
128
|
disabled: i() ? "" : void 0,
|
|
129
129
|
"aria-label": a(),
|
|
130
|
-
...
|
|
130
|
+
...s
|
|
131
131
|
}));
|
|
132
|
-
var
|
|
133
|
-
e.slot(
|
|
132
|
+
var d = e.child(c);
|
|
133
|
+
e.slot(d, t, "default", {}, null), e.reset(c), e.event("change", c, u), e.append(r, c), e.pop();
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
137
|
-
const
|
|
135
|
+
var C = e.from_html("<ui-select><!></ui-select>", 2);
|
|
136
|
+
function ue(r, t) {
|
|
137
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, [
|
|
138
138
|
"value",
|
|
139
139
|
"placeholder",
|
|
140
140
|
"disabled",
|
|
@@ -143,363 +143,512 @@ function te(o, t) {
|
|
|
143
143
|
"ariaLabel"
|
|
144
144
|
]);
|
|
145
145
|
e.push(t, !1);
|
|
146
|
-
let l = e.prop(t, "value", 12, ""), i = e.prop(t, "placeholder", 8, "선택하세요"), a = e.prop(t, "disabled", 8, !1), n = e.prop(t, "size", 8, "md"), u = e.prop(t, "open", 12, !1),
|
|
147
|
-
const
|
|
146
|
+
let l = e.prop(t, "value", 12, ""), i = e.prop(t, "placeholder", 8, "선택하세요"), a = e.prop(t, "disabled", 8, !1), n = e.prop(t, "size", 8, "md"), u = e.prop(t, "open", 12, !1), c = e.prop(t, "ariaLabel", 8, void 0);
|
|
147
|
+
const d = _();
|
|
148
148
|
function p(g) {
|
|
149
149
|
var m;
|
|
150
|
-
l(((m = g.detail) == null ? void 0 : m.value) ?? ""),
|
|
150
|
+
l(((m = g.detail) == null ? void 0 : m.value) ?? ""), d("change", g.detail);
|
|
151
151
|
}
|
|
152
152
|
function f() {
|
|
153
|
-
u(!0),
|
|
153
|
+
u(!0), d("open");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
u(!1),
|
|
155
|
+
function h() {
|
|
156
|
+
u(!1), d("close");
|
|
157
157
|
}
|
|
158
158
|
e.init();
|
|
159
|
-
var
|
|
160
|
-
e.attribute_effect(
|
|
159
|
+
var v = C();
|
|
160
|
+
e.attribute_effect(v, () => ({
|
|
161
161
|
value: l(),
|
|
162
162
|
placeholder: i(),
|
|
163
163
|
disabled: a() ? "" : void 0,
|
|
164
164
|
size: n(),
|
|
165
165
|
open: u() ? "" : void 0,
|
|
166
|
-
"aria-label":
|
|
167
|
-
...
|
|
166
|
+
"aria-label": c(),
|
|
167
|
+
...s
|
|
168
168
|
}));
|
|
169
|
-
var
|
|
170
|
-
e.slot(
|
|
169
|
+
var b = e.child(v);
|
|
170
|
+
e.slot(b, t, "default", {}, null), e.reset(v), e.event("change", v, p), e.event("open", v, f), e.event("close", v, h), e.append(r, v), e.pop();
|
|
171
171
|
}
|
|
172
|
-
var
|
|
173
|
-
function
|
|
174
|
-
const
|
|
172
|
+
var S = e.from_html("<ui-modal><!> <!></ui-modal>", 2);
|
|
173
|
+
function pe(r, t) {
|
|
174
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["open", "title", "ariaLabel"]);
|
|
175
175
|
e.push(t, !1);
|
|
176
176
|
let l = e.prop(t, "open", 12, !1), i = e.prop(t, "title", 8, ""), a = e.prop(t, "ariaLabel", 8, void 0);
|
|
177
|
-
const n =
|
|
177
|
+
const n = _();
|
|
178
178
|
function u() {
|
|
179
179
|
l(!1), n("close");
|
|
180
180
|
}
|
|
181
181
|
e.init();
|
|
182
|
-
var
|
|
183
|
-
e.attribute_effect(
|
|
182
|
+
var c = S();
|
|
183
|
+
e.attribute_effect(c, () => ({
|
|
184
184
|
open: l() ? "" : void 0,
|
|
185
185
|
title: i(),
|
|
186
186
|
"aria-label": a(),
|
|
187
|
-
...
|
|
187
|
+
...s
|
|
188
188
|
}));
|
|
189
|
-
var
|
|
190
|
-
e.slot(
|
|
191
|
-
var p = e.sibling(
|
|
192
|
-
e.slot(p, t, "footer", {}, null), e.reset(
|
|
193
|
-
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
196
|
-
const
|
|
189
|
+
var d = e.child(c);
|
|
190
|
+
e.slot(d, t, "default", {}, null);
|
|
191
|
+
var p = e.sibling(d, 2);
|
|
192
|
+
e.slot(p, t, "footer", {}, null), e.reset(c), e.event("close", c, u), e.append(r, c), e.pop();
|
|
193
|
+
}
|
|
194
|
+
var T = e.from_html("<ui-toast><!></ui-toast>", 2);
|
|
195
|
+
function fe(r, t) {
|
|
196
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["variant", "duration", "open"]);
|
|
197
197
|
e.push(t, !1);
|
|
198
198
|
let l = e.prop(t, "variant", 8, "info"), i = e.prop(t, "duration", 8, 4e3), a = e.prop(t, "open", 12, !1);
|
|
199
|
-
const n =
|
|
199
|
+
const n = _();
|
|
200
200
|
function u() {
|
|
201
201
|
a(!1), n("close");
|
|
202
202
|
}
|
|
203
203
|
e.init();
|
|
204
|
-
var
|
|
205
|
-
e.attribute_effect(
|
|
204
|
+
var c = T();
|
|
205
|
+
e.attribute_effect(c, () => ({
|
|
206
206
|
variant: l(),
|
|
207
207
|
duration: i(),
|
|
208
208
|
open: a() ? "" : void 0,
|
|
209
|
-
...
|
|
209
|
+
...s
|
|
210
210
|
}));
|
|
211
|
-
var
|
|
212
|
-
e.slot(
|
|
211
|
+
var d = e.child(c);
|
|
212
|
+
e.slot(d, t, "default", {}, null), e.reset(c), e.event("close", c, u), e.append(r, c), e.pop();
|
|
213
213
|
}
|
|
214
|
-
var
|
|
215
|
-
function
|
|
216
|
-
const
|
|
214
|
+
var B = e.from_html("<ui-tooltip><!></ui-tooltip>", 2);
|
|
215
|
+
function _e(r, t) {
|
|
216
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["content", "position"]);
|
|
217
217
|
let l = e.prop(t, "content", 8, ""), i = e.prop(t, "position", 8, "top");
|
|
218
|
-
var a =
|
|
219
|
-
e.attribute_effect(a, () => ({ content: l(), position: i(), ...
|
|
218
|
+
var a = B();
|
|
219
|
+
e.attribute_effect(a, () => ({ content: l(), position: i(), ...s }));
|
|
220
220
|
var n = e.child(a);
|
|
221
|
-
e.slot(n, t, "default", {}, null), e.reset(a), e.append(
|
|
221
|
+
e.slot(n, t, "default", {}, null), e.reset(a), e.append(r, a);
|
|
222
222
|
}
|
|
223
|
-
var
|
|
224
|
-
function
|
|
225
|
-
const
|
|
223
|
+
var I = e.from_html("<ui-tabs><!> <!></ui-tabs>", 2);
|
|
224
|
+
function ve(r, t) {
|
|
225
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["value"]);
|
|
226
226
|
e.push(t, !1);
|
|
227
227
|
let l = e.prop(t, "value", 12, "");
|
|
228
|
-
const i =
|
|
229
|
-
function a(
|
|
228
|
+
const i = _();
|
|
229
|
+
function a(d) {
|
|
230
230
|
var p;
|
|
231
|
-
l(((p =
|
|
231
|
+
l(((p = d.detail) == null ? void 0 : p.value) ?? ""), i("change", d.detail);
|
|
232
232
|
}
|
|
233
233
|
e.init();
|
|
234
|
-
var n =
|
|
235
|
-
e.attribute_effect(n, () => ({ value: l(), ...
|
|
234
|
+
var n = I();
|
|
235
|
+
e.attribute_effect(n, () => ({ value: l(), ...s }));
|
|
236
236
|
var u = e.child(n);
|
|
237
237
|
e.slot(u, t, "tabs", {}, null);
|
|
238
|
-
var
|
|
239
|
-
e.slot(
|
|
238
|
+
var c = e.sibling(u, 2);
|
|
239
|
+
e.slot(c, t, "default", {}, null), e.reset(n), e.event("change", n, a), e.append(r, n), e.pop();
|
|
240
240
|
}
|
|
241
|
-
var
|
|
242
|
-
function
|
|
243
|
-
const
|
|
241
|
+
var A = e.from_html("<ui-badge><!></ui-badge>", 2);
|
|
242
|
+
function he(r, t) {
|
|
243
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["variant", "size"]);
|
|
244
244
|
let l = e.prop(t, "variant", 8, "primary"), i = e.prop(t, "size", 8, "md");
|
|
245
|
-
var a =
|
|
246
|
-
e.attribute_effect(a, () => ({ variant: l(), size: i(), ...
|
|
245
|
+
var a = A();
|
|
246
|
+
e.attribute_effect(a, () => ({ variant: l(), size: i(), ...s }));
|
|
247
247
|
var n = e.child(a);
|
|
248
|
-
e.slot(n, t, "default", {}, null), e.reset(a), e.append(
|
|
248
|
+
e.slot(n, t, "default", {}, null), e.reset(a), e.append(r, a);
|
|
249
249
|
}
|
|
250
|
-
var
|
|
251
|
-
function
|
|
252
|
-
const
|
|
250
|
+
var D = e.from_html("<ui-spinner></ui-spinner>", 2);
|
|
251
|
+
function be(r, t) {
|
|
252
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["size", "ariaLabel"]);
|
|
253
253
|
let l = e.prop(t, "size", 8, "md"), i = e.prop(t, "ariaLabel", 8, "Loading");
|
|
254
|
-
var a =
|
|
255
|
-
e.attribute_effect(a, () => ({ size: l(), "aria-label": i(), ...
|
|
254
|
+
var a = D();
|
|
255
|
+
e.attribute_effect(a, () => ({ size: l(), "aria-label": i(), ...s })), e.append(r, a);
|
|
256
256
|
}
|
|
257
|
-
var
|
|
258
|
-
function
|
|
259
|
-
const
|
|
257
|
+
var E = e.from_html("<ui-alert><!></ui-alert>", 2);
|
|
258
|
+
function ge(r, t) {
|
|
259
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["variant", "title", "closable", "ariaLabel"]);
|
|
260
260
|
e.push(t, !1);
|
|
261
261
|
let l = e.prop(t, "variant", 8, "info"), i = e.prop(t, "title", 8, ""), a = e.prop(t, "closable", 8, !1), n = e.prop(t, "ariaLabel", 8, void 0);
|
|
262
|
-
const u =
|
|
263
|
-
function
|
|
262
|
+
const u = _();
|
|
263
|
+
function c() {
|
|
264
264
|
u("close");
|
|
265
265
|
}
|
|
266
266
|
e.init();
|
|
267
|
-
var
|
|
268
|
-
e.attribute_effect(
|
|
267
|
+
var d = E();
|
|
268
|
+
e.attribute_effect(d, () => ({
|
|
269
269
|
variant: l(),
|
|
270
270
|
title: i(),
|
|
271
271
|
closable: a() ? "" : void 0,
|
|
272
272
|
"aria-label": n(),
|
|
273
|
-
...
|
|
273
|
+
...s
|
|
274
274
|
}));
|
|
275
|
-
var p = e.child(
|
|
276
|
-
e.slot(p, t, "default", {}, null), e.reset(
|
|
275
|
+
var p = e.child(d);
|
|
276
|
+
e.slot(p, t, "default", {}, null), e.reset(d), e.event("close", d, c), e.append(r, d), e.pop();
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
const
|
|
278
|
+
var O = e.from_html("<ui-card><!> <!> <!></ui-card>", 2);
|
|
279
|
+
function me(r, t) {
|
|
280
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["variant", "bordered"]);
|
|
281
281
|
let l = e.prop(t, "variant", 8, "default"), i = e.prop(t, "bordered", 8, !1);
|
|
282
|
-
var a =
|
|
282
|
+
var a = O();
|
|
283
283
|
e.attribute_effect(a, () => ({
|
|
284
284
|
variant: l(),
|
|
285
285
|
bordered: i() ? "" : void 0,
|
|
286
|
-
...
|
|
286
|
+
...s
|
|
287
287
|
}));
|
|
288
288
|
var n = e.child(a);
|
|
289
289
|
e.slot(n, t, "header", {}, null);
|
|
290
290
|
var u = e.sibling(n, 2);
|
|
291
291
|
e.slot(u, t, "default", {}, null);
|
|
292
|
-
var
|
|
293
|
-
e.slot(
|
|
292
|
+
var c = e.sibling(u, 2);
|
|
293
|
+
e.slot(c, t, "footer", {}, null), e.reset(a), e.append(r, a);
|
|
294
294
|
}
|
|
295
|
-
var
|
|
296
|
-
function
|
|
297
|
-
const
|
|
295
|
+
var j = e.from_html("<ui-accordion><!></ui-accordion>", 2);
|
|
296
|
+
function ye(r, t) {
|
|
297
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["multiple"]);
|
|
298
298
|
let l = e.prop(t, "multiple", 8, !1);
|
|
299
|
-
var i =
|
|
300
|
-
e.attribute_effect(i, () => ({ multiple: l() ? "" : void 0, ...
|
|
299
|
+
var i = j();
|
|
300
|
+
e.attribute_effect(i, () => ({ multiple: l() ? "" : void 0, ...s }));
|
|
301
301
|
var a = e.child(i);
|
|
302
|
-
e.slot(a, t, "default", {}, null), e.reset(i), e.append(
|
|
302
|
+
e.slot(a, t, "default", {}, null), e.reset(i), e.append(r, i);
|
|
303
303
|
}
|
|
304
|
-
var
|
|
305
|
-
function
|
|
306
|
-
const
|
|
304
|
+
var q = e.from_html("<ui-dropdown><!> <!></ui-dropdown>", 2);
|
|
305
|
+
function ze(r, t) {
|
|
306
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["open", "placement", "disabled"]);
|
|
307
307
|
e.push(t, !1);
|
|
308
308
|
let l = e.prop(t, "open", 12, !1), i = e.prop(t, "placement", 8, "bottom-start"), a = e.prop(t, "disabled", 8, !1);
|
|
309
|
-
const n =
|
|
309
|
+
const n = _();
|
|
310
310
|
function u() {
|
|
311
311
|
l(!0), n("open");
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function c() {
|
|
314
314
|
l(!1), n("close");
|
|
315
315
|
}
|
|
316
316
|
e.init();
|
|
317
|
-
var
|
|
318
|
-
e.attribute_effect(
|
|
317
|
+
var d = q();
|
|
318
|
+
e.attribute_effect(d, () => ({
|
|
319
319
|
open: l() ? "" : void 0,
|
|
320
320
|
placement: i(),
|
|
321
321
|
disabled: a() ? "" : void 0,
|
|
322
|
-
...
|
|
322
|
+
...s
|
|
323
323
|
}));
|
|
324
|
-
var p = e.child(
|
|
324
|
+
var p = e.child(d);
|
|
325
325
|
e.slot(p, t, "trigger", {}, null);
|
|
326
326
|
var f = e.sibling(p, 2);
|
|
327
|
-
e.slot(f, t, "default", {}, null), e.reset(
|
|
327
|
+
e.slot(f, t, "default", {}, null), e.reset(d), e.event("open", d, u), e.event("close", d, c), e.append(r, d), e.pop();
|
|
328
328
|
}
|
|
329
|
-
var
|
|
330
|
-
function
|
|
331
|
-
const
|
|
329
|
+
var M = e.from_html("<ui-progress></ui-progress>", 2);
|
|
330
|
+
function Le(r, t) {
|
|
331
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["value", "max", "size", "variant", "ariaLabel"]);
|
|
332
332
|
let l = e.prop(t, "value", 8, 0), i = e.prop(t, "max", 8, 100), a = e.prop(t, "size", 8, "md"), n = e.prop(t, "variant", 8, "primary"), u = e.prop(t, "ariaLabel", 8, "Progress");
|
|
333
|
-
var
|
|
334
|
-
e.attribute_effect(
|
|
333
|
+
var c = M();
|
|
334
|
+
e.attribute_effect(c, () => ({
|
|
335
335
|
value: l(),
|
|
336
336
|
max: i(),
|
|
337
337
|
size: a(),
|
|
338
338
|
variant: n(),
|
|
339
339
|
"aria-label": u(),
|
|
340
|
-
...
|
|
341
|
-
})), e.append(
|
|
340
|
+
...s
|
|
341
|
+
})), e.append(r, c);
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
const
|
|
343
|
+
var N = e.from_html("<ui-pagination></ui-pagination>", 2);
|
|
344
|
+
function Pe(r, t) {
|
|
345
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["current", "total", "pageSize"]);
|
|
346
346
|
e.push(t, !1);
|
|
347
347
|
let l = e.prop(t, "current", 12, 1), i = e.prop(t, "total", 8, 1), a = e.prop(t, "pageSize", 8, 10);
|
|
348
|
-
const n =
|
|
349
|
-
function u(
|
|
348
|
+
const n = _();
|
|
349
|
+
function u(d) {
|
|
350
350
|
var p;
|
|
351
|
-
l(((p =
|
|
351
|
+
l(((p = d.detail) == null ? void 0 : p.page) ?? 1), n("change", d.detail);
|
|
352
352
|
}
|
|
353
353
|
e.init();
|
|
354
|
-
var
|
|
355
|
-
e.attribute_effect(
|
|
354
|
+
var c = N();
|
|
355
|
+
e.attribute_effect(c, () => ({
|
|
356
356
|
current: l(),
|
|
357
357
|
total: i(),
|
|
358
358
|
"page-size": a(),
|
|
359
|
-
...
|
|
360
|
-
})), e.event("change",
|
|
359
|
+
...s
|
|
360
|
+
})), e.event("change", c, u), e.append(r, c), e.pop();
|
|
361
361
|
}
|
|
362
|
-
var
|
|
363
|
-
function
|
|
364
|
-
const
|
|
362
|
+
var R = e.from_html("<ui-table><!></ui-table>", 2);
|
|
363
|
+
function ke(r, t) {
|
|
364
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["striped", "bordered", "hoverable"]);
|
|
365
365
|
let l = e.prop(t, "striped", 8, !1), i = e.prop(t, "bordered", 8, !1), a = e.prop(t, "hoverable", 8, !1);
|
|
366
|
-
var n =
|
|
366
|
+
var n = R();
|
|
367
367
|
e.attribute_effect(n, () => ({
|
|
368
368
|
striped: l() ? "" : void 0,
|
|
369
369
|
bordered: i() ? "" : void 0,
|
|
370
370
|
hoverable: a() ? "" : void 0,
|
|
371
|
-
...
|
|
371
|
+
...s
|
|
372
372
|
}));
|
|
373
373
|
var u = e.child(n);
|
|
374
|
-
e.slot(u, t, "default", {}, null), e.reset(n), e.append(
|
|
374
|
+
e.slot(u, t, "default", {}, null), e.reset(n), e.append(r, n);
|
|
375
375
|
}
|
|
376
|
-
var
|
|
377
|
-
function
|
|
378
|
-
const
|
|
376
|
+
var F = e.from_html("<ui-avatar></ui-avatar>", 2);
|
|
377
|
+
function we(r, t) {
|
|
378
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["src", "alt", "name", "size"]);
|
|
379
379
|
let l = e.prop(t, "src", 8, ""), i = e.prop(t, "alt", 8, ""), a = e.prop(t, "name", 8, ""), n = e.prop(t, "size", 8, "md");
|
|
380
|
-
var u =
|
|
380
|
+
var u = F();
|
|
381
381
|
e.attribute_effect(u, () => ({
|
|
382
382
|
src: l(),
|
|
383
383
|
alt: i(),
|
|
384
384
|
name: a(),
|
|
385
385
|
size: n(),
|
|
386
|
-
...
|
|
387
|
-
})), e.append(
|
|
386
|
+
...s
|
|
387
|
+
})), e.append(r, u);
|
|
388
388
|
}
|
|
389
|
-
var
|
|
390
|
-
function
|
|
391
|
-
const
|
|
389
|
+
var G = e.from_html("<ui-breadcrumbs><!></ui-breadcrumbs>", 2);
|
|
390
|
+
function xe(r, t) {
|
|
391
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["separator", "ariaLabel"]);
|
|
392
392
|
let l = e.prop(t, "separator", 8, "/"), i = e.prop(t, "ariaLabel", 8, "Breadcrumbs");
|
|
393
|
-
var a =
|
|
393
|
+
var a = G();
|
|
394
394
|
e.attribute_effect(a, () => ({
|
|
395
395
|
separator: l(),
|
|
396
396
|
"aria-label": i(),
|
|
397
|
-
...
|
|
397
|
+
...s
|
|
398
398
|
}));
|
|
399
399
|
var n = e.child(a);
|
|
400
|
-
e.slot(n, t, "default", {}, null), e.reset(a), e.append(
|
|
400
|
+
e.slot(n, t, "default", {}, null), e.reset(a), e.append(r, a);
|
|
401
401
|
}
|
|
402
|
-
var
|
|
403
|
-
function
|
|
404
|
-
const
|
|
402
|
+
var H = e.from_html("<ui-drawer><!> <!></ui-drawer>", 2);
|
|
403
|
+
function $e(r, t) {
|
|
404
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["open", "side", "title"]);
|
|
405
405
|
e.push(t, !1);
|
|
406
406
|
let l = e.prop(t, "open", 12, !1), i = e.prop(t, "side", 8, "right"), a = e.prop(t, "title", 8, "");
|
|
407
|
-
const n =
|
|
407
|
+
const n = _();
|
|
408
408
|
function u() {
|
|
409
409
|
l(!1), n("close");
|
|
410
410
|
}
|
|
411
411
|
e.init();
|
|
412
|
-
var
|
|
413
|
-
e.attribute_effect(
|
|
412
|
+
var c = H();
|
|
413
|
+
e.attribute_effect(c, () => ({
|
|
414
414
|
open: l() ? "" : void 0,
|
|
415
415
|
side: i(),
|
|
416
416
|
title: a(),
|
|
417
|
-
...
|
|
417
|
+
...s
|
|
418
418
|
}));
|
|
419
|
-
var
|
|
420
|
-
e.slot(
|
|
421
|
-
var p = e.sibling(
|
|
422
|
-
e.slot(p, t, "footer", {}, null), e.reset(
|
|
423
|
-
}
|
|
424
|
-
var
|
|
425
|
-
function
|
|
426
|
-
const
|
|
419
|
+
var d = e.child(c);
|
|
420
|
+
e.slot(d, t, "default", {}, null);
|
|
421
|
+
var p = e.sibling(d, 2);
|
|
422
|
+
e.slot(p, t, "footer", {}, null), e.reset(c), e.event("close", c, u), e.append(r, c), e.pop();
|
|
423
|
+
}
|
|
424
|
+
var J = e.from_html("<ui-skeleton></ui-skeleton>", 2);
|
|
425
|
+
function Ce(r, t) {
|
|
426
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["variant", "width", "height", "lines"]);
|
|
427
427
|
let l = e.prop(t, "variant", 8, "text"), i = e.prop(t, "width", 8, void 0), a = e.prop(t, "height", 8, void 0), n = e.prop(t, "lines", 8, 1);
|
|
428
|
-
var u =
|
|
428
|
+
var u = J();
|
|
429
429
|
e.attribute_effect(u, () => ({
|
|
430
430
|
variant: l(),
|
|
431
431
|
width: i(),
|
|
432
432
|
height: a(),
|
|
433
433
|
lines: n(),
|
|
434
|
-
...
|
|
435
|
-
})), e.append(
|
|
434
|
+
...s
|
|
435
|
+
})), e.append(r, u);
|
|
436
436
|
}
|
|
437
|
-
var
|
|
438
|
-
function
|
|
439
|
-
const
|
|
437
|
+
var K = e.from_html("<ui-navbar><!> <!></ui-navbar>", 2);
|
|
438
|
+
function Se(r, t) {
|
|
439
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["brand", "sticky"]);
|
|
440
440
|
let l = e.prop(t, "brand", 8, ""), i = e.prop(t, "sticky", 8, !1);
|
|
441
|
-
var a =
|
|
441
|
+
var a = K();
|
|
442
442
|
e.attribute_effect(a, () => ({
|
|
443
443
|
brand: l(),
|
|
444
444
|
sticky: i() ? "" : void 0,
|
|
445
|
-
...
|
|
445
|
+
...s
|
|
446
446
|
}));
|
|
447
447
|
var n = e.child(a);
|
|
448
448
|
e.slot(n, t, "default", {}, null);
|
|
449
449
|
var u = e.sibling(n, 2);
|
|
450
|
-
e.slot(u, t, "actions", {}, null), e.reset(a), e.append(
|
|
450
|
+
e.slot(u, t, "actions", {}, null), e.reset(a), e.append(r, a);
|
|
451
451
|
}
|
|
452
|
-
var
|
|
453
|
-
function
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
452
|
+
var Q = e.from_html("<ui-textarea></ui-textarea>", 2);
|
|
453
|
+
function Te(r, t) {
|
|
454
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, [
|
|
455
|
+
"value",
|
|
456
|
+
"placeholder",
|
|
457
|
+
"rows",
|
|
458
|
+
"maxlength",
|
|
459
|
+
"resize",
|
|
460
|
+
"size",
|
|
461
|
+
"name",
|
|
462
|
+
"disabled",
|
|
463
|
+
"readonly",
|
|
464
|
+
"invalid",
|
|
465
|
+
"ariaLabel"
|
|
466
|
+
]);
|
|
467
|
+
e.push(t, !1);
|
|
468
|
+
let l = e.prop(t, "value", 12, ""), i = e.prop(t, "placeholder", 8, ""), a = e.prop(t, "rows", 8, 3), n = e.prop(t, "maxlength", 8, void 0), u = e.prop(t, "resize", 8, "vertical"), c = e.prop(t, "size", 8, "md"), d = e.prop(t, "name", 8, void 0), p = e.prop(t, "disabled", 8, !1), f = e.prop(t, "readonly", 8, !1), h = e.prop(t, "invalid", 8, !1), v = e.prop(t, "ariaLabel", 8, void 0);
|
|
469
|
+
const b = _();
|
|
470
|
+
function g(y) {
|
|
471
|
+
var z;
|
|
472
|
+
l(((z = y.detail) == null ? void 0 : z.value) ?? ""), b("input", y.detail);
|
|
473
|
+
}
|
|
474
|
+
function m(y) {
|
|
475
|
+
var z;
|
|
476
|
+
l(((z = y.detail) == null ? void 0 : z.value) ?? ""), b("change", y.detail);
|
|
477
|
+
}
|
|
478
|
+
e.init();
|
|
479
|
+
var L = Q();
|
|
480
|
+
e.attribute_effect(L, () => ({
|
|
481
|
+
value: l(),
|
|
482
|
+
placeholder: i(),
|
|
483
|
+
rows: a(),
|
|
484
|
+
maxlength: n(),
|
|
485
|
+
resize: u(),
|
|
486
|
+
size: c(),
|
|
487
|
+
name: d(),
|
|
488
|
+
disabled: p() ? "" : void 0,
|
|
489
|
+
readonly: f() ? "" : void 0,
|
|
490
|
+
invalid: h() ? "" : void 0,
|
|
491
|
+
"aria-label": v(),
|
|
492
|
+
...s
|
|
493
|
+
})), e.event("input", L, g), e.event("change", L, m), e.append(r, L), e.pop();
|
|
494
|
+
}
|
|
495
|
+
var U = e.from_html("<ui-empty-state><!> <!></ui-empty-state>", 2);
|
|
496
|
+
function Be(r, t) {
|
|
497
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["heading", "description", "size", "variant"]);
|
|
498
|
+
let l = e.prop(t, "heading", 8, ""), i = e.prop(t, "description", 8, ""), a = e.prop(t, "size", 8, "md"), n = e.prop(t, "variant", 8, "default");
|
|
499
|
+
var u = U();
|
|
500
|
+
e.attribute_effect(u, () => ({
|
|
501
|
+
heading: l(),
|
|
502
|
+
description: i(),
|
|
503
|
+
size: a(),
|
|
504
|
+
variant: n(),
|
|
505
|
+
...s
|
|
506
|
+
}));
|
|
507
|
+
var c = e.child(u);
|
|
508
|
+
e.slot(c, t, "icon", {}, null);
|
|
509
|
+
var d = e.sibling(c, 2);
|
|
510
|
+
e.slot(d, t, "default", {}, null), e.reset(u), e.append(r, u);
|
|
511
|
+
}
|
|
512
|
+
var V = e.from_html("<ui-segmented><!></ui-segmented>", 2);
|
|
513
|
+
function Ie(r, t) {
|
|
514
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["value", "size", "disabled", "ariaLabel"]);
|
|
515
|
+
e.push(t, !1);
|
|
516
|
+
let l = e.prop(t, "value", 12, ""), i = e.prop(t, "size", 8, "md"), a = e.prop(t, "disabled", 8, !1), n = e.prop(t, "ariaLabel", 8, void 0);
|
|
517
|
+
const u = _();
|
|
518
|
+
function c(f) {
|
|
519
|
+
var h;
|
|
520
|
+
l(((h = f.detail) == null ? void 0 : h.value) ?? ""), u("change", f.detail);
|
|
521
|
+
}
|
|
522
|
+
e.init();
|
|
523
|
+
var d = V();
|
|
524
|
+
e.attribute_effect(d, () => ({
|
|
525
|
+
value: l(),
|
|
526
|
+
size: i(),
|
|
527
|
+
disabled: a() ? "" : void 0,
|
|
528
|
+
"aria-label": n(),
|
|
529
|
+
...s
|
|
530
|
+
}));
|
|
531
|
+
var p = e.child(d);
|
|
532
|
+
e.slot(p, t, "default", {}, null), e.reset(d), e.event("change", d, c), e.append(r, d), e.pop();
|
|
533
|
+
}
|
|
534
|
+
var W = e.from_html("<ui-segment><!></ui-segment>", 2);
|
|
535
|
+
function Ae(r, t) {
|
|
536
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["value", "disabled"]);
|
|
537
|
+
let l = e.prop(t, "value", 8), i = e.prop(t, "disabled", 8, !1);
|
|
538
|
+
var a = W();
|
|
539
|
+
e.attribute_effect(a, () => ({
|
|
540
|
+
value: l(),
|
|
541
|
+
disabled: i() ? "" : void 0,
|
|
542
|
+
...s
|
|
543
|
+
}));
|
|
544
|
+
var n = e.child(a);
|
|
545
|
+
e.slot(n, t, "default", {}, null), e.reset(a), e.append(r, a);
|
|
546
|
+
}
|
|
547
|
+
var X = e.from_html("<ui-stepper><!></ui-stepper>", 2);
|
|
548
|
+
function De(r, t) {
|
|
549
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["current", "orientation", "ariaLabel"]);
|
|
550
|
+
let l = e.prop(t, "current", 8, 0), i = e.prop(t, "orientation", 8, "horizontal"), a = e.prop(t, "ariaLabel", 8, void 0);
|
|
551
|
+
var n = X();
|
|
552
|
+
e.attribute_effect(n, () => ({
|
|
553
|
+
current: l(),
|
|
554
|
+
orientation: i(),
|
|
555
|
+
"aria-label": a(),
|
|
556
|
+
...s
|
|
557
|
+
}));
|
|
558
|
+
var u = e.child(n);
|
|
559
|
+
e.slot(u, t, "default", {}, null), e.reset(n), e.append(r, n);
|
|
560
|
+
}
|
|
561
|
+
var Y = e.from_html("<ui-step><!></ui-step>", 2);
|
|
562
|
+
function Ee(r, t) {
|
|
563
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["label", "description", "status"]);
|
|
564
|
+
let l = e.prop(t, "label", 8, ""), i = e.prop(t, "description", 8, ""), a = e.prop(t, "status", 8, void 0);
|
|
565
|
+
var n = Y();
|
|
566
|
+
e.attribute_effect(n, () => ({
|
|
567
|
+
label: l(),
|
|
568
|
+
description: i(),
|
|
569
|
+
status: a(),
|
|
570
|
+
...s
|
|
571
|
+
}));
|
|
572
|
+
var u = e.child(n);
|
|
573
|
+
e.slot(u, t, "default", {}, null), e.reset(n), e.append(r, n);
|
|
574
|
+
}
|
|
575
|
+
var Z = e.from_html("<ui-chip><!></ui-chip>", 2);
|
|
576
|
+
function Oe(r, t) {
|
|
577
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["variant", "size", "removable", "disabled", "removeLabel"]);
|
|
578
|
+
e.push(t, !1);
|
|
579
|
+
let l = e.prop(t, "variant", 8, "neutral"), i = e.prop(t, "size", 8, "md"), a = e.prop(t, "removable", 8, !1), n = e.prop(t, "disabled", 8, !1), u = e.prop(t, "removeLabel", 8, void 0);
|
|
580
|
+
const c = _();
|
|
581
|
+
e.init();
|
|
582
|
+
var d = Z();
|
|
583
|
+
e.attribute_effect(d, () => ({
|
|
584
|
+
variant: l(),
|
|
585
|
+
size: i(),
|
|
586
|
+
removable: a() ? "" : void 0,
|
|
587
|
+
disabled: n() ? "" : void 0,
|
|
588
|
+
"remove-label": u(),
|
|
589
|
+
...s
|
|
590
|
+
}));
|
|
591
|
+
var p = e.child(d);
|
|
592
|
+
e.slot(p, t, "default", {}, null), e.reset(d), e.event("remove", d, () => c("remove")), e.append(r, d), e.pop();
|
|
593
|
+
}
|
|
594
|
+
var ee = e.from_html("<ui-log><!></ui-log>", 2);
|
|
595
|
+
function je(r, t) {
|
|
596
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["label", "height", "wrap", "autoscroll", "max", "empty"]);
|
|
597
|
+
let l = e.prop(t, "label", 8, ""), i = e.prop(t, "height", 8, void 0), a = e.prop(t, "wrap", 8, !1), n = e.prop(t, "autoscroll", 8, !0), u = e.prop(t, "max", 8, void 0), c = e.prop(t, "empty", 8, void 0);
|
|
598
|
+
var d = ee();
|
|
599
|
+
e.attribute_effect(d, () => ({
|
|
458
600
|
label: l(),
|
|
459
601
|
height: i(),
|
|
460
602
|
max: u(),
|
|
461
|
-
empty:
|
|
603
|
+
empty: c(),
|
|
462
604
|
wrap: a() ? "" : void 0,
|
|
463
605
|
"auto-scroll": n() ? "" : "false",
|
|
464
|
-
...
|
|
606
|
+
...s
|
|
465
607
|
}));
|
|
466
|
-
var p = e.child(
|
|
467
|
-
e.slot(p, t, "default", {}, null), e.reset(
|
|
608
|
+
var p = e.child(d);
|
|
609
|
+
e.slot(p, t, "default", {}, null), e.reset(d), e.append(r, d);
|
|
468
610
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
471
|
-
const
|
|
611
|
+
var te = e.from_html("<ui-log-item><!></ui-log-item>", 2);
|
|
612
|
+
function qe(r, t) {
|
|
613
|
+
const o = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), s = e.legacy_rest_props(o, ["level", "time"]);
|
|
472
614
|
let l = e.prop(t, "level", 8, "info"), i = e.prop(t, "time", 8, void 0);
|
|
473
|
-
var a =
|
|
474
|
-
e.attribute_effect(a, () => ({ level: l(), time: i(), ...
|
|
615
|
+
var a = te();
|
|
616
|
+
e.attribute_effect(a, () => ({ level: l(), time: i(), ...s }));
|
|
475
617
|
var n = e.child(a);
|
|
476
|
-
e.slot(n, t, "default", {}, null), e.reset(a), e.append(
|
|
618
|
+
e.slot(n, t, "default", {}, null), e.reset(a), e.append(r, a);
|
|
477
619
|
}
|
|
478
620
|
export {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
621
|
+
ye as Accordion,
|
|
622
|
+
ge as Alert,
|
|
623
|
+
we as Avatar,
|
|
624
|
+
he as Badge,
|
|
625
|
+
xe as Breadcrumbs,
|
|
626
|
+
re as Button,
|
|
627
|
+
me as Card,
|
|
628
|
+
se as Checkbox,
|
|
629
|
+
Oe as Chip,
|
|
630
|
+
$e as Drawer,
|
|
631
|
+
ze as Dropdown,
|
|
632
|
+
Be as EmptyState,
|
|
633
|
+
oe as Input,
|
|
634
|
+
je as Log,
|
|
635
|
+
qe as LogItem,
|
|
636
|
+
pe as Modal,
|
|
637
|
+
Se as Navbar,
|
|
638
|
+
Pe as Pagination,
|
|
639
|
+
Le as Progress,
|
|
640
|
+
de as Radio,
|
|
641
|
+
Ae as Segment,
|
|
642
|
+
Ie as Segmented,
|
|
643
|
+
ue as Select,
|
|
644
|
+
Ce as Skeleton,
|
|
645
|
+
be as Spinner,
|
|
646
|
+
Ee as Step,
|
|
647
|
+
De as Stepper,
|
|
648
|
+
ce as Switch,
|
|
649
|
+
ke as Table,
|
|
650
|
+
ve as Tabs,
|
|
651
|
+
Te as Textarea,
|
|
652
|
+
fe as Toast,
|
|
653
|
+
_e as Tooltip
|
|
505
654
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubit-ui/svelte",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Svelte framework wrapper for Cubit UI Web Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"svelte": ">=4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@cubit-ui/core": "1.0
|
|
43
|
-
"@cubit-ui/tokens": "1.0
|
|
42
|
+
"@cubit-ui/core": "1.1.0",
|
|
43
|
+
"@cubit-ui/tokens": "1.1.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|