Skip to content

Commit

Permalink
chore(main): release 5.0.3 (#453)
Browse files Browse the repository at this point in the history
* chore(main): release 5.0.3

* docs: update storybook for latest release

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: benjitrosch <benjitrosch@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and benjitrosch committed Jul 26, 2024
1 parent 602bf54 commit 9f583d2
Show file tree
Hide file tree
Showing 135 changed files with 486 additions and 471 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [5.0.3](https://github.com/daisyui/react-daisyui/compare/v5.0.2...v5.0.3) (2024-07-26)


### Miscellaneous

* **Carousel:** added snap start utility ([50a5add](https://github.com/daisyui/react-daisyui/commit/50a5add71d22dff4b865135961d6e8124ea6e61b))
* **Tab:** added bg and border colors (full support WIP) ([1cd081e](https://github.com/daisyui/react-daisyui/commit/1cd081e6a9a713c61ecdae73d0e9429bf82c16db))
* upgraded daisyui version to 4.12.10 ([602bf54](https://github.com/daisyui/react-daisyui/commit/602bf54d8c3a3b7005faa083fe9890e24ef57e4a))

## [5.0.2](https://github.com/daisyui/react-daisyui/compare/v5.0.1...v5.0.2) (2024-07-26)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{t as M,a as o,j as e,F as S}from"./tw-merge-0a3648bd.js";import{r as D}from"./index-1b03fe98.js";import{c as W}from"./clsx.m-1229b3e0.js";import{C as q,a as V}from"./CollapseContent-8035002f.js";import{J as E}from"./Join-47e05b2f.js";const a=D.forwardRef(({name:c="accordion",icon:s,dataTheme:B,className:G,children:_,...y},J)=>{const j=M("collapse",W({"collapse-arrow":s==="arrow","collapse-plus":s==="plus"}),G);return o("div",{"data-theme":B,className:j,children:[e("input",{...y,ref:J,type:"radio",name:c}),_]})});a.displayName="Accordion";const n=Object.assign(a,{Title:q,Content:V});try{a.displayName="Accordion",a.__docgenInfo={description:"",displayName:"Accordion",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},name:{defaultValue:{value:"accordion"},description:"",name:"name",required:!1,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:'"arrow"'},{value:'"plus"'}]}}}}}catch{}const $={title:"Data Display/Accordion",component:n},t=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});t.args={className:"bg-base-200"};const l=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});l.args={className:"bg-base-200",icon:"arrow"};const r=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});r.args={className:"bg-base-200",icon:"plus"};const i=c=>o(E,{className:"w-full",vertical:!0,children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});i.args={className:"border border-base-300 join-item",icon:"arrow"};const d=c=>o(S,{children:[o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]})]}),o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]})]})]});d.args={className:"bg-base-200"};var m,h,p;t.parameters={...t.parameters,docs:{...(m=t.parameters)==null?void 0:m.docs,source:{originalSource:`args => {
import{t as M,a as o,j as e,F as S}from"./tw-merge-4486aaf0.js";import{r as D}from"./index-f46741a2.js";import{c as W}from"./clsx.m-1229b3e0.js";import{C as q,a as V}from"./CollapseContent-4c7c3cf3.js";import{J as E}from"./Join-455a80a9.js";const a=D.forwardRef(({name:c="accordion",icon:s,dataTheme:B,className:G,children:_,...y},J)=>{const j=M("collapse",W({"collapse-arrow":s==="arrow","collapse-plus":s==="plus"}),G);return o("div",{"data-theme":B,className:j,children:[e("input",{...y,ref:J,type:"radio",name:c}),_]})});a.displayName="Accordion";const n=Object.assign(a,{Title:q,Content:V});try{a.displayName="Accordion",a.__docgenInfo={description:"",displayName:"Accordion",props:{dataTheme:{defaultValue:null,description:"",name:"dataTheme",required:!1,type:{name:"string"}},name:{defaultValue:{value:"accordion"},description:"",name:"name",required:!1,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:'"arrow"'},{value:'"plus"'}]}}}}}catch{}const $={title:"Data Display/Accordion",component:n},t=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});t.args={className:"bg-base-200"};const l=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});l.args={className:"bg-base-200",icon:"arrow"};const r=c=>o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});r.args={className:"bg-base-200",icon:"plus"};const i=c=>o(E,{className:"w-full",vertical:!0,children:[o(n,{...c,defaultChecked:!0,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,children:[e(n.Title,{className:"text-xl font-medium",children:"Click to open this one and close others"}),e(n.Content,{children:e("p",{children:"hello"})})]})]});i.args={className:"border border-base-300 join-item",icon:"arrow"};const d=c=>o(S,{children:[o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupA",children:[e(n.Title,{className:"text-xl font-medium",children:"Group A"}),e(n.Content,{children:e("p",{children:"hello"})})]})]}),o("div",{className:"flex flex-wrap gap-2",children:[o(n,{...c,defaultChecked:!0,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]}),o(n,{...c,name:"groupB",children:[e(n.Title,{className:"text-xl font-medium",children:"Group B"}),e(n.Content,{children:e("p",{children:"hello"})})]})]})]});d.args={className:"bg-base-200"};var m,h,p;t.parameters={...t.parameters,docs:{...(m=t.parameters)==null?void 0:m.docs,source:{originalSource:`args => {
return <div className="flex flex-wrap gap-2">
<Accordion {...args} defaultChecked>
<Accordion.Title className="text-xl font-medium">
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9f583d2

Please sign in to comment.