proto-daisy-ui 0.0.3 → 0.0.6

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.
@@ -33,20 +33,20 @@ const ProtoHeader = (_props, _children) => {
33
33
  return (index.h("div", { class: "navbar m-1 w-auto rounded-md bg-base-100" },
34
34
  index.h("div", { class: "flex-none" },
35
35
  index.h("div", { class: "dropdown" },
36
- index.h("button", { class: "btn btn-ghost btn-square drawer-button" },
36
+ index.h("button", { class: "btn btn-ghost btn-square drawer-button", "aria-label": "Navigation" },
37
37
  index.h("svg", { fill: "none", viewBox: "0 0 24 24", class: "inline-block h-5 w-5 stroke-current" },
38
38
  index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M4 6h16M4 12h16M4 18h16" }))),
39
39
  index.h("ul", { class: "dropdown-content menu mt-1 rounded-md bg-accent p-2 text-accent-content" },
40
40
  index.h("li", null,
41
- index.h("button", { class: "btn-ghost", onClick: clickHandler('proto-home') },
41
+ index.h("button", { class: "btn-ghost", onClick: clickHandler('proto-home'), "aria-label": "Home" },
42
42
  index.h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
43
43
  index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" })))),
44
44
  index.h("li", null,
45
- index.h("button", { class: "btn-ghost", onClick: clickHandler('proto-demo') },
45
+ index.h("button", { class: "btn-ghost", onClick: clickHandler('proto-demo'), "aria-label": "Demo" },
46
46
  index.h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
47
47
  index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" })))),
48
48
  index.h("li", null,
49
- index.h("button", { class: "btn-ghost", onClick: clickHandler('proto-list') },
49
+ index.h("button", { class: "btn-ghost", onClick: clickHandler('proto-list'), "aria-label": "List" },
50
50
  index.h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
51
51
  index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" }))))))),
52
52
  index.h("div", { class: "flex-1" },
@@ -70,7 +70,7 @@ const ProtoHeader = (_props, _children) => {
70
70
  })))),
71
71
  index.h("div", { class: "flex-none" },
72
72
  index.h("div", { class: "dropdown dropdown-end" },
73
- index.h("button", { class: "btn btn-ghost btn-square" },
73
+ index.h("button", { class: "btn btn-ghost btn-square", "aria-label": "Actions" },
74
74
  index.h("svg", { fill: "none", viewBox: "0 0 24 24", class: "inline-block h-5 w-5 stroke-current" },
75
75
  index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z" }))),
76
76
  index.h("ul", { tabindex: "0", class: "dropdown-content menu menu-compact mt-1 w-52 rounded-md bg-secondary p-2 text-secondary-content shadow " },
@@ -27,20 +27,20 @@ const ProtoHeader = (_props, _children) => {
27
27
  return (h("div", { class: "navbar m-1 w-auto rounded-md bg-base-100" },
28
28
  h("div", { class: "flex-none" },
29
29
  h("div", { class: "dropdown" },
30
- h("button", { class: "btn btn-ghost btn-square drawer-button" },
30
+ h("button", { class: "btn btn-ghost btn-square drawer-button", "aria-label": "Navigation" },
31
31
  h("svg", { fill: "none", viewBox: "0 0 24 24", class: "inline-block h-5 w-5 stroke-current" },
32
32
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M4 6h16M4 12h16M4 18h16" }))),
33
33
  h("ul", { class: "dropdown-content menu mt-1 rounded-md bg-accent p-2 text-accent-content" },
34
34
  h("li", null,
35
- h("button", { class: "btn-ghost", onClick: clickHandler('proto-home') },
35
+ h("button", { class: "btn-ghost", onClick: clickHandler('proto-home'), "aria-label": "Home" },
36
36
  h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
37
37
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" })))),
38
38
  h("li", null,
39
- h("button", { class: "btn-ghost", onClick: clickHandler('proto-demo') },
39
+ h("button", { class: "btn-ghost", onClick: clickHandler('proto-demo'), "aria-label": "Demo" },
40
40
  h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
41
41
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" })))),
42
42
  h("li", null,
43
- h("button", { class: "btn-ghost", onClick: clickHandler('proto-list') },
43
+ h("button", { class: "btn-ghost", onClick: clickHandler('proto-list'), "aria-label": "List" },
44
44
  h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
45
45
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" }))))))),
46
46
  h("div", { class: "flex-1" },
@@ -64,7 +64,7 @@ const ProtoHeader = (_props, _children) => {
64
64
  })))),
65
65
  h("div", { class: "flex-none" },
66
66
  h("div", { class: "dropdown dropdown-end" },
67
- h("button", { class: "btn btn-ghost btn-square" },
67
+ h("button", { class: "btn btn-ghost btn-square", "aria-label": "Actions" },
68
68
  h("svg", { fill: "none", viewBox: "0 0 24 24", class: "inline-block h-5 w-5 stroke-current" },
69
69
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z" }))),
70
70
  h("ul", { tabindex: "0", class: "dropdown-content menu menu-compact mt-1 w-52 rounded-md bg-secondary p-2 text-secondary-content shadow " },
@@ -29,20 +29,20 @@ const ProtoHeader = (_props, _children) => {
29
29
  return (h("div", { class: "navbar m-1 w-auto rounded-md bg-base-100" },
30
30
  h("div", { class: "flex-none" },
31
31
  h("div", { class: "dropdown" },
32
- h("button", { class: "btn btn-ghost btn-square drawer-button" },
32
+ h("button", { class: "btn btn-ghost btn-square drawer-button", "aria-label": "Navigation" },
33
33
  h("svg", { fill: "none", viewBox: "0 0 24 24", class: "inline-block h-5 w-5 stroke-current" },
34
34
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M4 6h16M4 12h16M4 18h16" }))),
35
35
  h("ul", { class: "dropdown-content menu mt-1 rounded-md bg-accent p-2 text-accent-content" },
36
36
  h("li", null,
37
- h("button", { class: "btn-ghost", onClick: clickHandler('proto-home') },
37
+ h("button", { class: "btn-ghost", onClick: clickHandler('proto-home'), "aria-label": "Home" },
38
38
  h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
39
39
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" })))),
40
40
  h("li", null,
41
- h("button", { class: "btn-ghost", onClick: clickHandler('proto-demo') },
41
+ h("button", { class: "btn-ghost", onClick: clickHandler('proto-demo'), "aria-label": "Demo" },
42
42
  h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
43
43
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" })))),
44
44
  h("li", null,
45
- h("button", { class: "btn-ghost", onClick: clickHandler('proto-list') },
45
+ h("button", { class: "btn-ghost", onClick: clickHandler('proto-list'), "aria-label": "List" },
46
46
  h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
47
47
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" }))))))),
48
48
  h("div", { class: "flex-1" },
@@ -66,7 +66,7 @@ const ProtoHeader = (_props, _children) => {
66
66
  })))),
67
67
  h("div", { class: "flex-none" },
68
68
  h("div", { class: "dropdown dropdown-end" },
69
- h("button", { class: "btn btn-ghost btn-square" },
69
+ h("button", { class: "btn btn-ghost btn-square", "aria-label": "Actions" },
70
70
  h("svg", { fill: "none", viewBox: "0 0 24 24", class: "inline-block h-5 w-5 stroke-current" },
71
71
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z" }))),
72
72
  h("ul", { tabindex: "0", class: "dropdown-content menu menu-compact mt-1 w-52 rounded-md bg-secondary p-2 text-secondary-content shadow " },
@@ -29,20 +29,20 @@ const ProtoHeader = (_props, _children) => {
29
29
  return (h("div", { class: "navbar m-1 w-auto rounded-md bg-base-100" },
30
30
  h("div", { class: "flex-none" },
31
31
  h("div", { class: "dropdown" },
32
- h("button", { class: "btn btn-ghost btn-square drawer-button" },
32
+ h("button", { class: "btn btn-ghost btn-square drawer-button", "aria-label": "Navigation" },
33
33
  h("svg", { fill: "none", viewBox: "0 0 24 24", class: "inline-block h-5 w-5 stroke-current" },
34
34
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M4 6h16M4 12h16M4 18h16" }))),
35
35
  h("ul", { class: "dropdown-content menu mt-1 rounded-md bg-accent p-2 text-accent-content" },
36
36
  h("li", null,
37
- h("button", { class: "btn-ghost", onClick: clickHandler('proto-home') },
37
+ h("button", { class: "btn-ghost", onClick: clickHandler('proto-home'), "aria-label": "Home" },
38
38
  h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
39
39
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" })))),
40
40
  h("li", null,
41
- h("button", { class: "btn-ghost", onClick: clickHandler('proto-demo') },
41
+ h("button", { class: "btn-ghost", onClick: clickHandler('proto-demo'), "aria-label": "Demo" },
42
42
  h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
43
43
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" })))),
44
44
  h("li", null,
45
- h("button", { class: "btn-ghost", onClick: clickHandler('proto-list') },
45
+ h("button", { class: "btn-ghost", onClick: clickHandler('proto-list'), "aria-label": "List" },
46
46
  h("svg", { class: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor" },
47
47
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" }))))))),
48
48
  h("div", { class: "flex-1" },
@@ -66,7 +66,7 @@ const ProtoHeader = (_props, _children) => {
66
66
  })))),
67
67
  h("div", { class: "flex-none" },
68
68
  h("div", { class: "dropdown dropdown-end" },
69
- h("button", { class: "btn btn-ghost btn-square" },
69
+ h("button", { class: "btn btn-ghost btn-square", "aria-label": "Actions" },
70
70
  h("svg", { fill: "none", viewBox: "0 0 24 24", class: "inline-block h-5 w-5 stroke-current" },
71
71
  h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z" }))),
72
72
  h("ul", { tabindex: "0", class: "dropdown-content menu menu-compact mt-1 w-52 rounded-md bg-secondary p-2 text-secondary-content shadow " },
@@ -0,0 +1 @@
1
+ import{h as o,r as l}from"./p-f445bcf9.js";import{d as n}from"./p-0cbc124a.js";import{a as e,s as t}from"./p-78473e80.js";const s=o=>()=>{console.log("-- mfe:",o),e.updateApp(o),document.activeElement.blur()},a=o=>()=>{console.log("-- pick:",o),e.updatePick(o),document.activeElement.blur()},c=o=>()=>{console.log("-- theme:",o),e.updateTheme(o),document.activeElement.blur()},r=()=>{const{pick:l,themes:e}=t,r=n[l];return o("div",{class:"navbar m-1 w-auto rounded-md bg-base-100"},o("div",{class:"flex-none"},o("div",{class:"dropdown"},o("button",{class:"btn btn-ghost btn-square drawer-button","aria-label":"Navigation"},o("svg",{fill:"none",viewBox:"0 0 24 24",class:"inline-block h-5 w-5 stroke-current"},o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"}))),o("ul",{class:"dropdown-content menu mt-1 rounded-md bg-accent p-2 text-accent-content"},o("li",null,o("button",{class:"btn-ghost",onClick:s("proto-home"),"aria-label":"Home"},o("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})))),o("li",null,o("button",{class:"btn-ghost",onClick:s("proto-demo"),"aria-label":"Demo"},o("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})))),o("li",null,o("button",{class:"btn-ghost",onClick:s("proto-list"),"aria-label":"List"},o("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}))))))),o("div",{class:"flex-1"},o("a",{class:"btn btn-ghost text-xl normal-case"},"daisyUI")),o("div",{class:"flex-none"},o("div",{class:"dropdown dropdown-end"},o("button",{class:"btn btn-ghost normal-case"},r.name),o("ul",{tabindex:"0",class:"dropdown-content menu menu-compact mt-1 w-52 rounded-md bg-secondary p-2 text-secondary-content shadow "},n.map(((n,e)=>o("li",null,o("a",{class:e===l?"active":void 0,onClick:a(e)},n.name))))))),o("div",{class:"divider divider-horizontal flex-none"}),o("div",{class:"flex-none"},o("div",{class:"dropdown dropdown-end"},o("button",{class:"btn btn-ghost normal-case"},t.theme),o("ul",{tabindex:"0",class:"dropdown-content menu menu-compact mt-1 w-52 rounded-md bg-secondary p-2 text-secondary-content shadow "},e.map((l=>o("li",null,o("a",{class:l===t.theme?"active":void 0,onClick:c(l)},l))))))),o("div",{class:"flex-none"},o("div",{class:"dropdown dropdown-end"},o("button",{class:"btn btn-ghost btn-square","aria-label":"Actions"},o("svg",{fill:"none",viewBox:"0 0 24 24",class:"inline-block h-5 w-5 stroke-current"},o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"}))),o("ul",{tabindex:"0",class:"dropdown-content menu menu-compact mt-1 w-52 rounded-md bg-secondary p-2 text-secondary-content shadow "},o("li",null,o("a",{class:"justify-between"},"Profile",o("span",{class:"badge"},"New"))),o("li",null,o("a",null,"Settings...")),o("li",null,o("a",{onClick:s()},"Logout"))))))},i=()=>o("footer",{class:"footer w-auto items-center bg-neutral p-4 text-neutral-content"},o("div",{class:"grid-flow-col items-center"},o("svg",{width:"36",height:"36",viewBox:"0 0 24 24","fill-rule":"evenodd","clip-rule":"evenodd",class:"fill-current"},o("path",{d:"M22.672 15.226l-2.432.811.841 2.515c.33 1.019-.209 2.127-1.23 2.456-1.15.325-2.148-.321-2.463-1.226l-.84-2.518-5.013 1.677.84 2.517c.391 1.203-.434 2.542-1.831 2.542-.88 0-1.601-.564-1.86-1.314l-.842-2.516-2.431.809c-1.135.328-2.145-.317-2.463-1.229-.329-1.018.211-2.127 1.231-2.456l2.432-.809-1.621-4.823-2.432.808c-1.355.384-2.558-.59-2.558-1.839 0-.817.509-1.582 1.327-1.846l2.433-.809-.842-2.515c-.33-1.02.211-2.129 1.232-2.458 1.02-.329 2.13.209 2.461 1.229l.842 2.515 5.011-1.677-.839-2.517c-.403-1.238.484-2.553 1.843-2.553.819 0 1.585.509 1.85 1.326l.841 2.517 2.431-.81c1.02-.33 2.131.211 2.461 1.229.332 1.018-.21 2.126-1.23 2.456l-2.433.809 1.622 4.823 2.433-.809c1.242-.401 2.557.484 2.557 1.838 0 .819-.51 1.583-1.328 1.847m-8.992-6.428l-5.01 1.675 1.619 4.828 5.011-1.674-1.62-4.829z"})),o("p",null,"Copyright © 2022 - All right reserved")),o("div",{class:"grid-flow-col gap-4 md:place-self-center md:justify-self-end"},o("a",null,o("svg",{width:"24",height:"24",viewBox:"0 0 24 24",class:"fill-current"},o("path",{d:"M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"}))),o("a",null,o("svg",{width:"24",height:"24",viewBox:"0 0 24 24",class:"fill-current"},o("path",{d:"M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"}))),o("a",null,o("svg",{width:"24",height:"24",viewBox:"0 0 24 24",class:"fill-current"},o("path",{d:"M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"}))))),d=class{constructor(o){l(this,o),this.theme="light"}render(){const l=t.mfe;return console.log("-- render:",l),o("div",{class:"flex min-h-screen flex-col font-sans","data-theme":this.theme},o(r,null),o("div",{class:"flex-auto p-4 pt-0"},o("div",{class:"divider mt-0"}),o("div",null,o(l,null))),o(i,null))}};d.style="proto-shell{}";export{d as proto_shell}
@@ -1 +1 @@
1
- import{p as o,b as e}from"./p-f445bcf9.js";(()=>{const e=import.meta.url,p={};return""!==e&&(p.resourcesUrl=new URL(".",e).href),o(p)})().then((o=>e([["p-e274e36c",[[1,"proto-daisy-ui"]]],["p-bba460f2",[[0,"proto-demo"]]],["p-82c6ae5e",[[0,"proto-hero",{theme:[1]}]]],["p-d7d5a047",[[0,"proto-home"]]],["p-4c1c4093",[[0,"proto-list"]]],["p-eeb6284e",[[0,"proto-shell",{theme:[1]}]]]],o)));
1
+ import{p as o,b as e}from"./p-f445bcf9.js";(()=>{const e=import.meta.url,p={};return""!==e&&(p.resourcesUrl=new URL(".",e).href),o(p)})().then((o=>e([["p-e274e36c",[[1,"proto-daisy-ui"]]],["p-bba460f2",[[0,"proto-demo"]]],["p-82c6ae5e",[[0,"proto-hero",{theme:[1]}]]],["p-d7d5a047",[[0,"proto-home"]]],["p-4c1c4093",[[0,"proto-list"]]],["p-fe3c98e6",[[0,"proto-shell",{theme:[1]}]]]],o)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-daisy-ui",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -33,14 +33,14 @@
33
33
  "dependencies": {
34
34
  "@stencil/core": "2.17.0",
35
35
  "@stencil/store": "2.0.0",
36
- "mitt": "^3.0.0",
36
+ "mitt": "3.0.0",
37
37
  "tailwindcss": "3.1.4"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/jest": "28.1.3",
41
41
  "autoprefixer": "10.4.7",
42
42
  "concurrently": "7.2.2",
43
- "cspell": "6.1.2",
43
+ "cspell": "6.1.3",
44
44
  "daisyui": "2.17.0",
45
45
  "jest": "28.1.1",
46
46
  "jest-cli": "28.1.1",
@@ -1 +0,0 @@
1
- import{h as n,r as o}from"./p-f445bcf9.js";import{d as e}from"./p-0cbc124a.js";import{a as l,s as t}from"./p-78473e80.js";const s=n=>()=>{console.log("-- mfe:",n),l.updateApp(n),document.activeElement.blur()},a=n=>()=>{console.log("-- pick:",n),l.updatePick(n),document.activeElement.blur()},c=n=>()=>{console.log("-- theme:",n),l.updateTheme(n),document.activeElement.blur()},d=()=>{const{pick:o,themes:l}=t,d=e[o];return n("div",{class:"navbar m-1 w-auto rounded-md bg-base-100"},n("div",{class:"flex-none"},n("div",{class:"dropdown"},n("button",{class:"btn btn-ghost btn-square drawer-button"},n("svg",{fill:"none",viewBox:"0 0 24 24",class:"inline-block h-5 w-5 stroke-current"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"}))),n("ul",{class:"dropdown-content menu mt-1 rounded-md bg-accent p-2 text-accent-content"},n("li",null,n("button",{class:"btn-ghost",onClick:s("proto-home")},n("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})))),n("li",null,n("button",{class:"btn-ghost",onClick:s("proto-demo")},n("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})))),n("li",null,n("button",{class:"btn-ghost",onClick:s("proto-list")},n("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}))))))),n("div",{class:"flex-1"},n("a",{class:"btn btn-ghost text-xl normal-case"},"daisyUI")),n("div",{class:"flex-none"},n("div",{class:"dropdown dropdown-end"},n("button",{class:"btn btn-ghost normal-case"},d.name),n("ul",{tabindex:"0",class:"dropdown-content menu menu-compact mt-1 w-52 rounded-md bg-secondary p-2 text-secondary-content shadow "},e.map(((e,l)=>n("li",null,n("a",{class:l===o?"active":void 0,onClick:a(l)},e.name))))))),n("div",{class:"divider divider-horizontal flex-none"}),n("div",{class:"flex-none"},n("div",{class:"dropdown dropdown-end"},n("button",{class:"btn btn-ghost normal-case"},t.theme),n("ul",{tabindex:"0",class:"dropdown-content menu menu-compact mt-1 w-52 rounded-md bg-secondary p-2 text-secondary-content shadow "},l.map((o=>n("li",null,n("a",{class:o===t.theme?"active":void 0,onClick:c(o)},o))))))),n("div",{class:"flex-none"},n("div",{class:"dropdown dropdown-end"},n("button",{class:"btn btn-ghost btn-square"},n("svg",{fill:"none",viewBox:"0 0 24 24",class:"inline-block h-5 w-5 stroke-current"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"}))),n("ul",{tabindex:"0",class:"dropdown-content menu menu-compact mt-1 w-52 rounded-md bg-secondary p-2 text-secondary-content shadow "},n("li",null,n("a",{class:"justify-between"},"Profile",n("span",{class:"badge"},"New"))),n("li",null,n("a",null,"Settings...")),n("li",null,n("a",{onClick:s()},"Logout"))))))},r=()=>n("footer",{class:"footer w-auto items-center bg-neutral p-4 text-neutral-content"},n("div",{class:"grid-flow-col items-center"},n("svg",{width:"36",height:"36",viewBox:"0 0 24 24","fill-rule":"evenodd","clip-rule":"evenodd",class:"fill-current"},n("path",{d:"M22.672 15.226l-2.432.811.841 2.515c.33 1.019-.209 2.127-1.23 2.456-1.15.325-2.148-.321-2.463-1.226l-.84-2.518-5.013 1.677.84 2.517c.391 1.203-.434 2.542-1.831 2.542-.88 0-1.601-.564-1.86-1.314l-.842-2.516-2.431.809c-1.135.328-2.145-.317-2.463-1.229-.329-1.018.211-2.127 1.231-2.456l2.432-.809-1.621-4.823-2.432.808c-1.355.384-2.558-.59-2.558-1.839 0-.817.509-1.582 1.327-1.846l2.433-.809-.842-2.515c-.33-1.02.211-2.129 1.232-2.458 1.02-.329 2.13.209 2.461 1.229l.842 2.515 5.011-1.677-.839-2.517c-.403-1.238.484-2.553 1.843-2.553.819 0 1.585.509 1.85 1.326l.841 2.517 2.431-.81c1.02-.33 2.131.211 2.461 1.229.332 1.018-.21 2.126-1.23 2.456l-2.433.809 1.622 4.823 2.433-.809c1.242-.401 2.557.484 2.557 1.838 0 .819-.51 1.583-1.328 1.847m-8.992-6.428l-5.01 1.675 1.619 4.828 5.011-1.674-1.62-4.829z"})),n("p",null,"Copyright © 2022 - All right reserved")),n("div",{class:"grid-flow-col gap-4 md:place-self-center md:justify-self-end"},n("a",null,n("svg",{width:"24",height:"24",viewBox:"0 0 24 24",class:"fill-current"},n("path",{d:"M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"}))),n("a",null,n("svg",{width:"24",height:"24",viewBox:"0 0 24 24",class:"fill-current"},n("path",{d:"M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"}))),n("a",null,n("svg",{width:"24",height:"24",viewBox:"0 0 24 24",class:"fill-current"},n("path",{d:"M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"}))))),i=class{constructor(n){o(this,n),this.theme="light"}render(){const o=t.mfe;return console.log("-- render:",o),n("div",{class:"flex min-h-screen flex-col font-sans","data-theme":this.theme},n(d,null),n("div",{class:"flex-auto p-4 pt-0"},n("div",{class:"divider mt-0"}),n("div",null,n(o,null))),n(r,null))}};i.style="proto-shell{}";export{i as proto_shell}