@cubit-ui/svelte 0.0.0-stage → 1.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 ADDED
@@ -0,0 +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.
package/README.md CHANGED
@@ -1,3 +1,30 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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 ADDED
@@ -0,0 +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;
@@ -0,0 +1,27 @@
1
+ export { default as Button } from './components/Button.svelte';
2
+ export { default as Input } from './components/Input.svelte';
3
+ export { default as Checkbox } from './components/Checkbox.svelte';
4
+ export { default as Radio } from './components/Radio.svelte';
5
+ export { default as Switch } from './components/Switch.svelte';
6
+ export { default as Select } from './components/Select.svelte';
7
+ export { default as Modal } from './components/Modal.svelte';
8
+ export { default as Toast } from './components/Toast.svelte';
9
+ export { default as Tooltip } from './components/Tooltip.svelte';
10
+ export { default as Tabs } from './components/Tabs.svelte';
11
+ export { default as Badge } from './components/Badge.svelte';
12
+ export { default as Spinner } from './components/Spinner.svelte';
13
+ export { default as Alert } from './components/Alert.svelte';
14
+ export { default as Card } from './components/Card.svelte';
15
+ export { default as Accordion } from './components/Accordion.svelte';
16
+ export { default as Dropdown } from './components/Dropdown.svelte';
17
+ export { default as Progress } from './components/Progress.svelte';
18
+ export { default as Pagination } from './components/Pagination.svelte';
19
+ export { default as Table } from './components/Table.svelte';
20
+ export { default as Avatar } from './components/Avatar.svelte';
21
+ export { default as Breadcrumbs } from './components/Breadcrumbs.svelte';
22
+ export { default as Drawer } from './components/Drawer.svelte';
23
+ export { default as Skeleton } from './components/Skeleton.svelte';
24
+ export { default as Navbar } from './components/Navbar.svelte';
25
+ export { default as Log } from './components/Log.svelte';
26
+ export { default as LogItem } from './components/LogItem.svelte';
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
package/dist/index.js ADDED
@@ -0,0 +1,505 @@
1
+ import "svelte/internal/disclose-version";
2
+ import "svelte/internal/flags/legacy";
3
+ import * as e from "svelte/internal/client";
4
+ import "@cubit-ui/core";
5
+ import { createEventDispatcher as v } from "svelte";
6
+ var y = e.from_html("<ui-button><!></ui-button>", 2);
7
+ function W(o, t) {
8
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["variant", "size", "disabled", "type", "ariaLabel"]);
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 r = y();
11
+ e.attribute_effect(r, () => ({
12
+ variant: l(),
13
+ size: i(),
14
+ disabled: a() ? "" : void 0,
15
+ type: n(),
16
+ "aria-label": u(),
17
+ ...d
18
+ }));
19
+ var c = e.child(r);
20
+ e.slot(c, t, "default", {}, null), e.reset(r), e.event("click", r, function(p) {
21
+ e.bubble_event.call(this, t, p);
22
+ }), e.append(o, r);
23
+ }
24
+ var z = e.from_html("<ui-input></ui-input>", 2);
25
+ function X(o, t) {
26
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, [
27
+ "value",
28
+ "placeholder",
29
+ "type",
30
+ "disabled",
31
+ "readonly",
32
+ "size",
33
+ "invalid",
34
+ "ariaLabel"
35
+ ]);
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), r = e.prop(t, "size", 8, "md"), c = e.prop(t, "invalid", 8, !1), p = e.prop(t, "ariaLabel", 8, void 0);
38
+ const f = v();
39
+ function b(g) {
40
+ var m;
41
+ l(((m = g.detail) == null ? void 0 : m.value) ?? ""), f("input", g.detail);
42
+ }
43
+ function _(g) {
44
+ var m;
45
+ l(((m = g.detail) == null ? void 0 : m.value) ?? ""), f("change", g.detail);
46
+ }
47
+ e.init();
48
+ var h = z();
49
+ e.attribute_effect(h, () => ({
50
+ value: l(),
51
+ placeholder: i(),
52
+ type: a(),
53
+ disabled: n() ? "" : void 0,
54
+ readonly: u() ? "" : void 0,
55
+ size: r(),
56
+ invalid: c() ? "" : void 0,
57
+ "aria-label": p(),
58
+ ...d
59
+ })), e.event("input", h, b), e.event("change", h, _), e.append(o, h), e.pop();
60
+ }
61
+ var L = e.from_html("<ui-checkbox><!></ui-checkbox>", 2);
62
+ function Y(o, t) {
63
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, [
64
+ "checked",
65
+ "disabled",
66
+ "indeterminate",
67
+ "name",
68
+ "value",
69
+ "ariaLabel"
70
+ ]);
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), r = e.prop(t, "ariaLabel", 8, void 0);
73
+ const c = v();
74
+ function p(_) {
75
+ var h;
76
+ l(((h = _.detail) == null ? void 0 : h.checked) ?? !1), c("change", _.detail);
77
+ }
78
+ e.init();
79
+ var f = L();
80
+ e.attribute_effect(f, () => ({
81
+ checked: l() ? "" : void 0,
82
+ disabled: i() ? "" : void 0,
83
+ indeterminate: a() ? "" : void 0,
84
+ name: n(),
85
+ value: u(),
86
+ "aria-label": r(),
87
+ ...d
88
+ }));
89
+ var b = e.child(f);
90
+ e.slot(b, t, "default", {}, null), e.reset(f), e.event("change", f, p), e.append(o, f), e.pop();
91
+ }
92
+ var k = e.from_html("<ui-radio><!></ui-radio>", 2);
93
+ function Z(o, t) {
94
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["checked", "disabled", "name", "value"]);
95
+ e.push(t, !1);
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 = v();
98
+ function r(f) {
99
+ var b;
100
+ l(((b = f.detail) == null ? void 0 : b.checked) ?? !1), u("change", f.detail);
101
+ }
102
+ e.init();
103
+ var c = k();
104
+ e.attribute_effect(c, () => ({
105
+ checked: l() ? "" : void 0,
106
+ disabled: i() ? "" : void 0,
107
+ name: a(),
108
+ value: n(),
109
+ ...d
110
+ }));
111
+ var p = e.child(c);
112
+ e.slot(p, t, "default", {}, null), e.reset(c), e.event("change", c, r), e.append(o, c), e.pop();
113
+ }
114
+ var P = e.from_html("<ui-switch><!></ui-switch>", 2);
115
+ function ee(o, t) {
116
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["checked", "disabled", "ariaLabel"]);
117
+ e.push(t, !1);
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 = v();
120
+ function u(p) {
121
+ var f;
122
+ l(((f = p.detail) == null ? void 0 : f.checked) ?? !1), n("change", p.detail);
123
+ }
124
+ e.init();
125
+ var r = P();
126
+ e.attribute_effect(r, () => ({
127
+ checked: l() ? "" : void 0,
128
+ disabled: i() ? "" : void 0,
129
+ "aria-label": a(),
130
+ ...d
131
+ }));
132
+ var c = e.child(r);
133
+ e.slot(c, t, "default", {}, null), e.reset(r), e.event("change", r, u), e.append(o, r), e.pop();
134
+ }
135
+ var $ = e.from_html("<ui-select><!></ui-select>", 2);
136
+ function te(o, t) {
137
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, [
138
+ "value",
139
+ "placeholder",
140
+ "disabled",
141
+ "size",
142
+ "open",
143
+ "ariaLabel"
144
+ ]);
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), r = e.prop(t, "ariaLabel", 8, void 0);
147
+ const c = v();
148
+ function p(g) {
149
+ var m;
150
+ l(((m = g.detail) == null ? void 0 : m.value) ?? ""), c("change", g.detail);
151
+ }
152
+ function f() {
153
+ u(!0), c("open");
154
+ }
155
+ function b() {
156
+ u(!1), c("close");
157
+ }
158
+ e.init();
159
+ var _ = $();
160
+ e.attribute_effect(_, () => ({
161
+ value: l(),
162
+ placeholder: i(),
163
+ disabled: a() ? "" : void 0,
164
+ size: n(),
165
+ open: u() ? "" : void 0,
166
+ "aria-label": r(),
167
+ ...d
168
+ }));
169
+ var h = e.child(_);
170
+ e.slot(h, t, "default", {}, null), e.reset(_), e.event("change", _, p), e.event("open", _, f), e.event("close", _, b), e.append(o, _), e.pop();
171
+ }
172
+ var w = e.from_html("<ui-modal><!> <!></ui-modal>", 2);
173
+ function ae(o, t) {
174
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["open", "title", "ariaLabel"]);
175
+ e.push(t, !1);
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 = v();
178
+ function u() {
179
+ l(!1), n("close");
180
+ }
181
+ e.init();
182
+ var r = w();
183
+ e.attribute_effect(r, () => ({
184
+ open: l() ? "" : void 0,
185
+ title: i(),
186
+ "aria-label": a(),
187
+ ...d
188
+ }));
189
+ var c = e.child(r);
190
+ e.slot(c, t, "default", {}, null);
191
+ var p = e.sibling(c, 2);
192
+ e.slot(p, t, "footer", {}, null), e.reset(r), e.event("close", r, u), e.append(o, r), e.pop();
193
+ }
194
+ var x = e.from_html("<ui-toast><!></ui-toast>", 2);
195
+ function le(o, t) {
196
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["variant", "duration", "open"]);
197
+ e.push(t, !1);
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 = v();
200
+ function u() {
201
+ a(!1), n("close");
202
+ }
203
+ e.init();
204
+ var r = x();
205
+ e.attribute_effect(r, () => ({
206
+ variant: l(),
207
+ duration: i(),
208
+ open: a() ? "" : void 0,
209
+ ...d
210
+ }));
211
+ var c = e.child(r);
212
+ e.slot(c, t, "default", {}, null), e.reset(r), e.event("close", r, u), e.append(o, r), e.pop();
213
+ }
214
+ var C = e.from_html("<ui-tooltip><!></ui-tooltip>", 2);
215
+ function ne(o, t) {
216
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["content", "position"]);
217
+ let l = e.prop(t, "content", 8, ""), i = e.prop(t, "position", 8, "top");
218
+ var a = C();
219
+ e.attribute_effect(a, () => ({ content: l(), position: i(), ...d }));
220
+ var n = e.child(a);
221
+ e.slot(n, t, "default", {}, null), e.reset(a), e.append(o, a);
222
+ }
223
+ var S = e.from_html("<ui-tabs><!> <!></ui-tabs>", 2);
224
+ function ie(o, t) {
225
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["value"]);
226
+ e.push(t, !1);
227
+ let l = e.prop(t, "value", 12, "");
228
+ const i = v();
229
+ function a(c) {
230
+ var p;
231
+ l(((p = c.detail) == null ? void 0 : p.value) ?? ""), i("change", c.detail);
232
+ }
233
+ e.init();
234
+ var n = S();
235
+ e.attribute_effect(n, () => ({ value: l(), ...d }));
236
+ var u = e.child(n);
237
+ e.slot(u, t, "tabs", {}, null);
238
+ var r = e.sibling(u, 2);
239
+ e.slot(r, t, "default", {}, null), e.reset(n), e.event("change", n, a), e.append(o, n), e.pop();
240
+ }
241
+ var B = e.from_html("<ui-badge><!></ui-badge>", 2);
242
+ function re(o, t) {
243
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["variant", "size"]);
244
+ let l = e.prop(t, "variant", 8, "primary"), i = e.prop(t, "size", 8, "md");
245
+ var a = B();
246
+ e.attribute_effect(a, () => ({ variant: l(), size: i(), ...d }));
247
+ var n = e.child(a);
248
+ e.slot(n, t, "default", {}, null), e.reset(a), e.append(o, a);
249
+ }
250
+ var T = e.from_html("<ui-spinner></ui-spinner>", 2);
251
+ function oe(o, t) {
252
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["size", "ariaLabel"]);
253
+ let l = e.prop(t, "size", 8, "md"), i = e.prop(t, "ariaLabel", 8, "Loading");
254
+ var a = T();
255
+ e.attribute_effect(a, () => ({ size: l(), "aria-label": i(), ...d })), e.append(o, a);
256
+ }
257
+ var A = e.from_html("<ui-alert><!></ui-alert>", 2);
258
+ function se(o, t) {
259
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["variant", "title", "closable", "ariaLabel"]);
260
+ e.push(t, !1);
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 = v();
263
+ function r() {
264
+ u("close");
265
+ }
266
+ e.init();
267
+ var c = A();
268
+ e.attribute_effect(c, () => ({
269
+ variant: l(),
270
+ title: i(),
271
+ closable: a() ? "" : void 0,
272
+ "aria-label": n(),
273
+ ...d
274
+ }));
275
+ var p = e.child(c);
276
+ e.slot(p, t, "default", {}, null), e.reset(c), e.event("close", c, r), e.append(o, c), e.pop();
277
+ }
278
+ var D = e.from_html("<ui-card><!> <!> <!></ui-card>", 2);
279
+ function de(o, t) {
280
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["variant", "bordered"]);
281
+ let l = e.prop(t, "variant", 8, "default"), i = e.prop(t, "bordered", 8, !1);
282
+ var a = D();
283
+ e.attribute_effect(a, () => ({
284
+ variant: l(),
285
+ bordered: i() ? "" : void 0,
286
+ ...d
287
+ }));
288
+ var n = e.child(a);
289
+ e.slot(n, t, "header", {}, null);
290
+ var u = e.sibling(n, 2);
291
+ e.slot(u, t, "default", {}, null);
292
+ var r = e.sibling(u, 2);
293
+ e.slot(r, t, "footer", {}, null), e.reset(a), e.append(o, a);
294
+ }
295
+ var I = e.from_html("<ui-accordion><!></ui-accordion>", 2);
296
+ function ce(o, t) {
297
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["multiple"]);
298
+ let l = e.prop(t, "multiple", 8, !1);
299
+ var i = I();
300
+ e.attribute_effect(i, () => ({ multiple: l() ? "" : void 0, ...d }));
301
+ var a = e.child(i);
302
+ e.slot(a, t, "default", {}, null), e.reset(i), e.append(o, i);
303
+ }
304
+ var O = e.from_html("<ui-dropdown><!> <!></ui-dropdown>", 2);
305
+ function ue(o, t) {
306
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["open", "placement", "disabled"]);
307
+ e.push(t, !1);
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 = v();
310
+ function u() {
311
+ l(!0), n("open");
312
+ }
313
+ function r() {
314
+ l(!1), n("close");
315
+ }
316
+ e.init();
317
+ var c = O();
318
+ e.attribute_effect(c, () => ({
319
+ open: l() ? "" : void 0,
320
+ placement: i(),
321
+ disabled: a() ? "" : void 0,
322
+ ...d
323
+ }));
324
+ var p = e.child(c);
325
+ e.slot(p, t, "trigger", {}, null);
326
+ var f = e.sibling(p, 2);
327
+ e.slot(f, t, "default", {}, null), e.reset(c), e.event("open", c, u), e.event("close", c, r), e.append(o, c), e.pop();
328
+ }
329
+ var j = e.from_html("<ui-progress></ui-progress>", 2);
330
+ function pe(o, t) {
331
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["value", "max", "size", "variant", "ariaLabel"]);
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 r = j();
334
+ e.attribute_effect(r, () => ({
335
+ value: l(),
336
+ max: i(),
337
+ size: a(),
338
+ variant: n(),
339
+ "aria-label": u(),
340
+ ...d
341
+ })), e.append(o, r);
342
+ }
343
+ var E = e.from_html("<ui-pagination></ui-pagination>", 2);
344
+ function fe(o, t) {
345
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["current", "total", "pageSize"]);
346
+ e.push(t, !1);
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 = v();
349
+ function u(c) {
350
+ var p;
351
+ l(((p = c.detail) == null ? void 0 : p.page) ?? 1), n("change", c.detail);
352
+ }
353
+ e.init();
354
+ var r = E();
355
+ e.attribute_effect(r, () => ({
356
+ current: l(),
357
+ total: i(),
358
+ "page-size": a(),
359
+ ...d
360
+ })), e.event("change", r, u), e.append(o, r), e.pop();
361
+ }
362
+ var M = e.from_html("<ui-table><!></ui-table>", 2);
363
+ function _e(o, t) {
364
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["striped", "bordered", "hoverable"]);
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 = M();
367
+ e.attribute_effect(n, () => ({
368
+ striped: l() ? "" : void 0,
369
+ bordered: i() ? "" : void 0,
370
+ hoverable: a() ? "" : void 0,
371
+ ...d
372
+ }));
373
+ var u = e.child(n);
374
+ e.slot(u, t, "default", {}, null), e.reset(n), e.append(o, n);
375
+ }
376
+ var N = e.from_html("<ui-avatar></ui-avatar>", 2);
377
+ function ve(o, t) {
378
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["src", "alt", "name", "size"]);
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 = N();
381
+ e.attribute_effect(u, () => ({
382
+ src: l(),
383
+ alt: i(),
384
+ name: a(),
385
+ size: n(),
386
+ ...d
387
+ })), e.append(o, u);
388
+ }
389
+ var R = e.from_html("<ui-breadcrumbs><!></ui-breadcrumbs>", 2);
390
+ function he(o, t) {
391
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["separator", "ariaLabel"]);
392
+ let l = e.prop(t, "separator", 8, "/"), i = e.prop(t, "ariaLabel", 8, "Breadcrumbs");
393
+ var a = R();
394
+ e.attribute_effect(a, () => ({
395
+ separator: l(),
396
+ "aria-label": i(),
397
+ ...d
398
+ }));
399
+ var n = e.child(a);
400
+ e.slot(n, t, "default", {}, null), e.reset(a), e.append(o, a);
401
+ }
402
+ var q = e.from_html("<ui-drawer><!> <!></ui-drawer>", 2);
403
+ function be(o, t) {
404
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["open", "side", "title"]);
405
+ e.push(t, !1);
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 = v();
408
+ function u() {
409
+ l(!1), n("close");
410
+ }
411
+ e.init();
412
+ var r = q();
413
+ e.attribute_effect(r, () => ({
414
+ open: l() ? "" : void 0,
415
+ side: i(),
416
+ title: a(),
417
+ ...d
418
+ }));
419
+ var c = e.child(r);
420
+ e.slot(c, t, "default", {}, null);
421
+ var p = e.sibling(c, 2);
422
+ e.slot(p, t, "footer", {}, null), e.reset(r), e.event("close", r, u), e.append(o, r), e.pop();
423
+ }
424
+ var F = e.from_html("<ui-skeleton></ui-skeleton>", 2);
425
+ function ge(o, t) {
426
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["variant", "width", "height", "lines"]);
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 = F();
429
+ e.attribute_effect(u, () => ({
430
+ variant: l(),
431
+ width: i(),
432
+ height: a(),
433
+ lines: n(),
434
+ ...d
435
+ })), e.append(o, u);
436
+ }
437
+ var G = e.from_html("<ui-navbar><!> <!></ui-navbar>", 2);
438
+ function me(o, t) {
439
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["brand", "sticky"]);
440
+ let l = e.prop(t, "brand", 8, ""), i = e.prop(t, "sticky", 8, !1);
441
+ var a = G();
442
+ e.attribute_effect(a, () => ({
443
+ brand: l(),
444
+ sticky: i() ? "" : void 0,
445
+ ...d
446
+ }));
447
+ var n = e.child(a);
448
+ e.slot(n, t, "default", {}, null);
449
+ var u = e.sibling(n, 2);
450
+ e.slot(u, t, "actions", {}, null), e.reset(a), e.append(o, a);
451
+ }
452
+ var H = e.from_html("<ui-log><!></ui-log>", 2);
453
+ function ye(o, t) {
454
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["label", "height", "wrap", "autoscroll", "max", "empty"]);
455
+ 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), r = e.prop(t, "empty", 8, void 0);
456
+ var c = H();
457
+ e.attribute_effect(c, () => ({
458
+ label: l(),
459
+ height: i(),
460
+ max: u(),
461
+ empty: r(),
462
+ wrap: a() ? "" : void 0,
463
+ "auto-scroll": n() ? "" : "false",
464
+ ...d
465
+ }));
466
+ var p = e.child(c);
467
+ e.slot(p, t, "default", {}, null), e.reset(c), e.append(o, c);
468
+ }
469
+ var J = e.from_html("<ui-log-item><!></ui-log-item>", 2);
470
+ function ze(o, t) {
471
+ const s = e.legacy_rest_props(t, ["children", "$$slots", "$$events", "$$legacy"]), d = e.legacy_rest_props(s, ["level", "time"]);
472
+ let l = e.prop(t, "level", 8, "info"), i = e.prop(t, "time", 8, void 0);
473
+ var a = J();
474
+ e.attribute_effect(a, () => ({ level: l(), time: i(), ...d }));
475
+ var n = e.child(a);
476
+ e.slot(n, t, "default", {}, null), e.reset(a), e.append(o, a);
477
+ }
478
+ export {
479
+ ce as Accordion,
480
+ se as Alert,
481
+ ve as Avatar,
482
+ re as Badge,
483
+ he as Breadcrumbs,
484
+ W as Button,
485
+ de as Card,
486
+ Y as Checkbox,
487
+ be as Drawer,
488
+ ue as Dropdown,
489
+ X as Input,
490
+ ye as Log,
491
+ ze as LogItem,
492
+ ae as Modal,
493
+ me as Navbar,
494
+ fe as Pagination,
495
+ pe as Progress,
496
+ Z as Radio,
497
+ te as Select,
498
+ ge as Skeleton,
499
+ oe as Spinner,
500
+ ee as Switch,
501
+ _e as Table,
502
+ ie as Tabs,
503
+ le as Toast,
504
+ ne as Tooltip
505
+ };
package/package.json CHANGED
@@ -1,6 +1,55 @@
1
1
  {
2
2
  "name": "@cubit-ui/svelte",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.1",
4
+ "description": "Svelte framework wrapper for Cubit UI Web Components",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/tsuel-dev/Cubit.git",
9
+ "directory": "packages/svelte"
10
+ },
11
+ "homepage": "https://github.com/tsuel-dev/Cubit#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/tsuel-dev/Cubit/issues"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "keywords": [
19
+ "web-components",
20
+ "ui",
21
+ "design-system",
22
+ "cubit"
23
+ ],
24
+ "type": "module",
25
+ "main": "./dist/index.js",
26
+ "module": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/index.js",
32
+ "require": "./dist/index.cjs"
33
+ }
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "peerDependencies": {
39
+ "svelte": ">=4.0.0"
40
+ },
41
+ "dependencies": {
42
+ "@cubit-ui/core": "1.0.1",
43
+ "@cubit-ui/tokens": "1.0.1"
44
+ },
45
+ "devDependencies": {
46
+ "@sveltejs/vite-plugin-svelte": "^7.3.1",
47
+ "svelte": "^5.19.0",
48
+ "typescript": "^5.7.3",
49
+ "vite": "^6.0.7"
50
+ },
51
+ "scripts": {
52
+ "build": "vite build && tsc --emitDeclarationOnly",
53
+ "typecheck": "tsc --noEmit"
54
+ }
6
55
  }