Skip to content

Commit fa116f5

Browse files
benjitroschgithub-actions[bot]
authored andcommitted
docs: update storybook for latest release
1 parent 85b2c9f commit fa116f5

21 files changed

+23
-23
lines changed

docs/assets/Collapse.stories-38f9c57c.js renamed to docs/assets/Collapse.stories-4861692d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{a as n,j as s}from"./tw-merge-4486aaf0.js";import{r as Y}from"./index-f46741a2.js";import{C as e}from"./index-b2a88d73.js";import"./clsx.m-1229b3e0.js";import"./CollapseContent-4c7c3cf3.js";const re={title:"Data Display/Collapse",component:e,args:{className:"bg-base-200"}},g=t=>n(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"Focus me to see content"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]}),a=g.bind({});a.args={};const r=t=>n(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"Click me to show/hide content"}),s(e.Content,{children:"hello"})]});r.args={checkbox:!0};const c=g.bind({});c.args={className:"border border-base-300 bg-base-200"};const l=g.bind({});l.args={className:"border border-base-300 bg-base-200",icon:"arrow"};const i=g.bind({});i.args={className:"border border-base-300 bg-base-200",icon:"plus"};const p=t=>n(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"I have collapse-open class"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]});p.args={className:"border border-base-300 bg-base-200",open:!0};const d=t=>n(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"I have collapse-close class"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]});d.args={className:"border border-base-300 bg-base-200",open:!1};const m=t=>n(e,{...t,className:"group",children:[s(e.Title,{className:"bg-primary text-primary-content group-focus:bg-secondary group-focus:text-secondary-content",children:"Focus me to see content"}),s(e.Content,{className:"bg-primary text-primary-content group-focus:bg-secondary group-focus:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]}),u=t=>n(e,{...t,className:"group",checkbox:!0,children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]}),h=t=>{const[b,o]=Y.useState(!1);return n("div",{children:[n("span",{children:["Checkbox is ",b?"open":"closed","."]}),n(e,{...t,className:"group",onClose:()=>{o(!1)},onOpen:()=>{o(!0)},onToggle:()=>{console.log("toggled!")},children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]})]})},C=t=>{const[b,o]=Y.useState(!1);return n("div",{children:[n("span",{children:["Checkbox is ",b?"open":"closed","."]}),n(e,{...t,className:"group",onClose:()=>{o(!1)},onOpen:()=>{o(!0)},onToggle:()=>{console.log("toggled!")},checkbox:!0,children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]})]})};var x,y,k;a.parameters={...a.parameters,docs:{...(x=a.parameters)==null?void 0:x.docs,source:{originalSource:`args => {
1+
import{a as n,j as s}from"./tw-merge-4486aaf0.js";import{r as Y}from"./index-f46741a2.js";import{C as e}from"./index-095cc0b9.js";import"./clsx.m-1229b3e0.js";import"./CollapseContent-4c7c3cf3.js";const re={title:"Data Display/Collapse",component:e,args:{className:"bg-base-200"}},g=t=>n(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"Focus me to see content"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]}),a=g.bind({});a.args={};const r=t=>n(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"Click me to show/hide content"}),s(e.Content,{children:"hello"})]});r.args={checkbox:!0};const c=g.bind({});c.args={className:"border border-base-300 bg-base-200"};const l=g.bind({});l.args={className:"border border-base-300 bg-base-200",icon:"arrow"};const i=g.bind({});i.args={className:"border border-base-300 bg-base-200",icon:"plus"};const p=t=>n(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"I have collapse-open class"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]});p.args={className:"border border-base-300 bg-base-200",open:!0};const d=t=>n(e,{...t,children:[s(e.Title,{className:"text-xl font-medium",children:"I have collapse-close class"}),s(e.Content,{children:'tabindex="0" attribute is necessary to make the div focusable'})]});d.args={className:"border border-base-300 bg-base-200",open:!1};const m=t=>n(e,{...t,className:"group",children:[s(e.Title,{className:"bg-primary text-primary-content group-focus:bg-secondary group-focus:text-secondary-content",children:"Focus me to see content"}),s(e.Content,{className:"bg-primary text-primary-content group-focus:bg-secondary group-focus:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]}),u=t=>n(e,{...t,className:"group",checkbox:!0,children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]}),h=t=>{const[b,o]=Y.useState(!1);return n("div",{children:[n("span",{children:["Checkbox is ",b?"open":"closed","."]}),n(e,{...t,className:"group",onClose:()=>{o(!1)},onOpen:()=>{o(!0)},onToggle:()=>{console.log("toggled!")},children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]})]})},C=t=>{const[b,o]=Y.useState(!1);return n("div",{children:[n("span",{children:["Checkbox is ",b?"open":"closed","."]}),n(e,{...t,className:"group",onClose:()=>{o(!1)},onOpen:()=>{o(!0)},onToggle:()=>{console.log("toggled!")},checkbox:!0,children:[s(e.Title,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:"Click me to show/hide content"}),s(e.Content,{className:"bg-primary text-primary-content peer-checked:bg-secondary peer-checked:text-secondary-content",children:s("p",{children:'tabindex="0" attribute is necessary to make the div focusable'})})]})]})};var x,y,k;a.parameters={...a.parameters,docs:{...(x=a.parameters)==null?void 0:x.docs,source:{originalSource:`args => {
22
return <Collapse {...args}>
33
<Collapse.Title className="text-xl font-medium">
44
Focus me to see content

docs/assets/CollapseDetails.stories-72a12026.js renamed to docs/assets/CollapseDetails.stories-27a86dbd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{a as r,j as s}from"./tw-merge-4486aaf0.js";import{C as t}from"./index-b2a88d73.js";import"./index-f46741a2.js";import"./clsx.m-1229b3e0.js";import"./CollapseContent-4c7c3cf3.js";const D={title:"Data Display/Collapse/Details",component:t.Details},e=n=>r(t.Details,{...n,children:[s(t.Details.Title,{className:"text-xl font-medium",children:"Click to open/close"}),s(t.Content,{children:s("p",{children:"content"})})]});e.args={className:"bg-base-200"};var a,l,o;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`args => {
1+
import{a as r,j as s}from"./tw-merge-4486aaf0.js";import{C as t}from"./index-095cc0b9.js";import"./index-f46741a2.js";import"./clsx.m-1229b3e0.js";import"./CollapseContent-4c7c3cf3.js";const D={title:"Data Display/Collapse/Details",component:t.Details},e=n=>r(t.Details,{...n,children:[s(t.Details.Title,{className:"text-xl font-medium",children:"Click to open/close"}),s(t.Content,{children:s("p",{children:"content"})})]});e.args={className:"bg-base-200"};var a,l,o;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`args => {
22
return <Collapse.Details {...args}>
33
<Collapse.Details.Title className="text-xl font-medium">
44
Click to open/close

docs/assets/Color-6VNJS4EI-afc89e58.js renamed to docs/assets/Color-6VNJS4EI-bd1b1724.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/DocsRenderer-NNNQARDV-c41e41e0.js renamed to docs/assets/DocsRenderer-NNNQARDV-e0475188.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/Dropdown.stories-6e700d32.js renamed to docs/assets/Dropdown.stories-cc5f31f0.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{j as e,a as r}from"./tw-merge-4486aaf0.js";import{D as n}from"./index-8ea57d49.js";import{C as c}from"./index-92e1ed70.js";import{N as l}from"./index-44811f16.js";import{B as y}from"./Button-e31631bb.js";import"./index-f46741a2.js";import"./clsx.m-1229b3e0.js";import"./index-8d7e61f2.js";const A={title:"Actions/Dropdown",component:n,argTypes:{item:{control:!1}}},s=o=>e("div",{className:"my-32",children:r(n,{...o,children:[e(n.Toggle,{children:"Click"}),r(n.Menu,{className:"w-52",children:[e(n.Item,{children:"Item 1"}),e(n.Item,{children:"Item 2"})]})]})}),d=o=>e("div",{className:"my-32",children:r(n,{...o,children:[e(n.Toggle,{children:"Click"}),e(n.Menu,{className:"card card-compact w-64 p-2 shadow bg-primary text-primary-content m-1",children:r(c.Body,{children:[e(c.Title,{tag:"h3",children:"Card title!"}),e("p",{children:"you can use any element as a dropdown."})]})})]})}),a=({dataTheme:o,...v})=>r(l,{className:"my-32 px-2 font-sans bg-base-300 rounded-box",dataTheme:o,children:[e(l.Start,{className:"px-2 lg:flex-none",children:e("span",{className:"text-lg font-bold",children:"daisyUI"})}),r(l.End,{children:[e(y,{color:"ghost",dataTheme:o,children:"Button"}),r(n,{...v,dataTheme:o,children:[e(n.Toggle,{className:"btn btn-ghost rounded-btn",button:!1,children:"Dropdown"}),r(n.Menu,{className:"w-52 mt-4",children:[e(n.Item,{children:"Item 1"}),e(n.Item,{children:"Item 2"})]})]})]})]});a.args={end:!0};const t=o=>r("div",{className:"my-32 font-sans",children:["A normal text and a helper dropdown",r(n,{...o,children:[e(n.Toggle,{button:!1,className:"btn btn-circle btn-ghost btn-xs text-info",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-4 h-4 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),e(n.Menu,{className:"card compact w-64 !p-0 shadow bg-base-100 rounded-box",children:r(c.Body,{children:[e(c.Title,{tag:"h2",children:"You needed more info?"}),e("p",{children:"Here is a description!"})]})})]})]});t.args={end:!0};var m,p,i;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`args => {
1+
import{j as e,a as r}from"./tw-merge-4486aaf0.js";import{D as n}from"./index-fb84fb0b.js";import{C as c}from"./index-92e1ed70.js";import{N as l}from"./index-44811f16.js";import{B as y}from"./Button-e31631bb.js";import"./index-f46741a2.js";import"./clsx.m-1229b3e0.js";import"./index-8d7e61f2.js";const A={title:"Actions/Dropdown",component:n,argTypes:{item:{control:!1}}},s=o=>e("div",{className:"my-32",children:r(n,{...o,children:[e(n.Toggle,{children:"Click"}),r(n.Menu,{className:"w-52",children:[e(n.Item,{children:"Item 1"}),e(n.Item,{children:"Item 2"})]})]})}),d=o=>e("div",{className:"my-32",children:r(n,{...o,children:[e(n.Toggle,{children:"Click"}),e(n.Menu,{className:"card card-compact w-64 p-2 shadow bg-primary text-primary-content m-1",children:r(c.Body,{children:[e(c.Title,{tag:"h3",children:"Card title!"}),e("p",{children:"you can use any element as a dropdown."})]})})]})}),a=({dataTheme:o,...v})=>r(l,{className:"my-32 px-2 font-sans bg-base-300 rounded-box",dataTheme:o,children:[e(l.Start,{className:"px-2 lg:flex-none",children:e("span",{className:"text-lg font-bold",children:"daisyUI"})}),r(l.End,{children:[e(y,{color:"ghost",dataTheme:o,children:"Button"}),r(n,{...v,dataTheme:o,children:[e(n.Toggle,{className:"btn btn-ghost rounded-btn",button:!1,children:"Dropdown"}),r(n.Menu,{className:"w-52 mt-4",children:[e(n.Item,{children:"Item 1"}),e(n.Item,{children:"Item 2"})]})]})]})]});a.args={end:!0};const t=o=>r("div",{className:"my-32 font-sans",children:["A normal text and a helper dropdown",r(n,{...o,children:[e(n.Toggle,{button:!1,className:"btn btn-circle btn-ghost btn-xs text-info",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"w-4 h-4 stroke-current",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),e(n.Menu,{className:"card compact w-64 !p-0 shadow bg-base-100 rounded-box",children:r(c.Body,{children:[e(c.Title,{tag:"h2",children:"You needed more info?"}),e("p",{children:"Here is a description!"})]})})]})]});t.args={end:!0};var m,p,i;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`args => {
22
return <div className="my-32">
33
<Dropdown {...args}>
44
<Dropdown.Toggle>Click</Dropdown.Toggle>

docs/assets/DropdownDetails.stories-d1cc8002.js renamed to docs/assets/DropdownDetails.stories-64420c7d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{j as r,a as t}from"./tw-merge-4486aaf0.js";import{D as e}from"./index-8ea57d49.js";import"./index-f46741a2.js";import"./clsx.m-1229b3e0.js";import"./Button-e31631bb.js";import"./index-8d7e61f2.js";const w={title:"Actions/Dropdown/Details",component:e.Details},o=i=>r("div",{className:"my-32",children:t(e.Details,{...i,children:[r(e.Details.Toggle,{children:"Click"}),t(e.Menu,{className:"w-52",children:[r(e.Item,{children:"Item 1"}),r(e.Item,{children:"Item 2"})]})]})});o.args={};var s,n,a;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:`args => {
1+
import{j as r,a as t}from"./tw-merge-4486aaf0.js";import{D as e}from"./index-fb84fb0b.js";import"./index-f46741a2.js";import"./clsx.m-1229b3e0.js";import"./Button-e31631bb.js";import"./index-8d7e61f2.js";const w={title:"Actions/Dropdown/Details",component:e.Details},o=i=>r("div",{className:"my-32",children:t(e.Details,{...i,children:[r(e.Details.Toggle,{children:"Click"}),t(e.Menu,{className:"w-52",children:[r(e.Item,{children:"Item 1"}),r(e.Item,{children:"Item 2"})]})]})});o.args={};var s,n,a;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:`args => {
22
return <div className="my-32">
33
<Dropdown.Details {...args}>
44
<Dropdown.Details.Toggle>Click</Dropdown.Details.Toggle>

0 commit comments

Comments
 (0)