mtxuilib 0.0.374 → 0.0.375

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.
@@ -0,0 +1 @@
1
+ export declare function pathMatch(path: string): void;
@@ -0,0 +1 @@
1
+ function a(t){}export{a as pathMatch};
@@ -0,0 +1 @@
1
+ import{Fragment as a,jsx as e,jsxs as l}from"react/jsx-runtime";import{StoryDemoButton as o}from"./StoryDemoButton";import"./header.css";const v=({user:i,onLogin:s,onLogout:d,onCreateAccount:n})=>e("header",{children:l("div",{className:"storybook-header",children:[l("div",{children:[e("svg",{width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:l("g",{fill:"none",fillRule:"evenodd",children:[e("path",{d:"M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z",fill:"#FFF"}),e("path",{d:"M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z",fill:"#555AB9"}),e("path",{d:"M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z",fill:"#91BAF8"})]})}),e("h1",{children:"Acme"})]}),e("div",{children:i?l(a,{children:[l("span",{className:"welcome",children:["Welcome, ",e("b",{children:i.name}),"!"]}),e(o,{size:"small",onClick:d,label:"Log out"})]}):l(a,{children:[e(o,{size:"small",onClick:s,label:"Log in"}),e(o,{primary:!0,size:"small",onClick:n,label:"Sign up"})]})})]})});export{v as Header};
@@ -0,0 +1 @@
1
+ import{fn as o}from"@storybook/test";import{Header as t}from"./Header";const e={title:"Example/Header",component:t,tags:["autodocs"],parameters:{layout:"fullscreen"},args:{onLogin:o(),onLogout:o(),onCreateAccount:o()}};var n=e;const s={args:{user:{name:"Jane Doe"}}},p={};export{s as LoggedIn,p as LoggedOut,n as default};
@@ -0,0 +1 @@
1
+ import{Fragment as o,jsx as n}from"react/jsx-runtime";function e(){return console.log("MyServerComponent-----------------------------------------------------------------"),n(o,{children:"MyServerComponent22"})}export{e as default};
@@ -0,0 +1 @@
1
+ import t from"./MyServerComponent";const e={title:"sc",component:t,parameters:{react:{rsc:!0}}};var y=e;const a={};export{a as RSC1,y as default};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import n from"react";import{Header as r}from"./Header";import"./page.css";const c=()=>{const[a,t]=n.useState();return o("article",{children:[e(r,{user:a,onLogin:()=>t({name:"Jane Doe"}),onLogout:()=>t(void 0),onCreateAccount:()=>t({name:"Jane Doe"})}),o("section",{className:"storybook-page",children:[e("h2",{children:"Pages in Storybook"}),o("p",{children:["We recommend building UIs with a"," ",e("a",{href:"https://componentdriven.org",target:"_blank",rel:"noopener noreferrer",children:e("strong",{children:"component-driven"})})," ","process starting with atomic components and ending with pages."]}),e("p",{children:"Render pages with mock data. This makes it easy to build and review page states without needing to navigate to them in your app. Here are some handy patterns for managing page data in Storybook:"}),o("ul",{children:[e("li",{children:"Use a higher-level connected component. Storybook helps you compose such data from the args of child component stories"}),e("li",{children:"Assemble data in the page component from your services. You can mock these services out using Storybook."})]}),o("p",{children:["Get a guided tutorial on component-driven development at"," ",e("a",{href:"https://storybook.js.org/tutorials/",target:"_blank",rel:"noopener noreferrer",children:"Storybook tutorials"}),". Read more in the"," ",e("a",{href:"https://storybook.js.org/docs",target:"_blank",rel:"noopener noreferrer",children:"docs"}),"."]}),o("div",{className:"tip-wrapper",children:[e("span",{className:"tip",children:"Tip"})," Adjust the width of the canvas with the"," ",e("svg",{width:"10",height:"10",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:e("g",{fill:"none",fillRule:"evenodd",children:e("path",{d:"M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z",id:"a",fill:"#999"})})}),"Viewports addon in the toolbar"]})]})]})};export{c as Page};
@@ -0,0 +1 @@
1
+ import{Page as t}from"./Page";const e={title:"Example/Page",component:t,parameters:{layout:"fullscreen"}};var r=e;const a={},p={};export{p as LoggedIn,a as LoggedOut,r as default};
@@ -0,0 +1,5 @@
1
+ var k=Object.defineProperty,d=Object.defineProperties;var p=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var b=(o,t,n)=>t in o?k(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n,a=(o,t)=>{for(var n in t||(t={}))l.call(t,n)&&b(o,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&b(o,n,t[n]);return o},i=(o,t)=>d(o,p(t));var y=(o,t)=>{var n={};for(var r in o)l.call(o,r)&&t.indexOf(r)<0&&(n[r]=o[r]);if(o!=null&&s)for(var r of s(o))t.indexOf(r)<0&&u.call(o,r)&&(n[r]=o[r]);return n};import{jsx as g,jsxs as B}from"react/jsx-runtime";import"./button.css";const $=C=>{var e=C,{primary:o=!1,size:t="medium",backgroundColor:n,label:r}=e,c=y(e,["primary","size","backgroundColor","label"]);const m=o?"storybook-button--primary":"storybook-button--secondary";return B("button",i(a({onClick:()=>{console.log(1)},type:"button",className:["storybook-button",`storybook-button--${t}`,m].join(" ")},c),{children:[r,g("style",{jsx:!0,children:`
2
+ button {
3
+ background-color: ${n};
4
+ }
5
+ `})]}))};export{$ as StoryDemoButton};
@@ -0,0 +1 @@
1
+ import{fn as t}from"@storybook/test";import{StoryDemoButton as o}from"./StoryDemoButton";const r={title:"Example/Button",component:o,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{backgroundColor:{control:"color"}},args:{onClick:t()}};var l=r;const s={args:{primary:!0,label:"Button"}},n={args:{label:"Button"}},y={args:{size:"large",label:"Button"}},m={args:{size:"small",label:"Button"}};export{y as Large,s as Primary,n as Secondary,m as Small,l as default};