Skip to content

Commit

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

* 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 Dec 2, 2023
1 parent 28f2fc4 commit 13c8db2
Show file tree
Hide file tree
Showing 305 changed files with 2,260 additions and 2,151 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,31 @@
# Changelog

## [5.0.0](https://github.com/daisyui/react-daisyui/compare/v4.1.2...v5.0.0) (2023-11-28)


### ⚠ BREAKING CHANGES

* removes InputGroup and ButtonGroup components and changes tabs API

### Features

* **Diff:** Add Diff Component ([#430](https://github.com/daisyui/react-daisyui/issues/430)) ([858cd96](https://github.com/daisyui/react-daisyui/commit/858cd96514b9dcb0888c8a9f340db547a1e8b7d2))
* exported new components ([28f2fc4](https://github.com/daisyui/react-daisyui/commit/28f2fc48e4c8cac7041ea8f24bcd4bb59a0df5cb))
* **Skeleton:** Add skeleton component ([#429](https://github.com/daisyui/react-daisyui/issues/429)) ([d7af59e](https://github.com/daisyui/react-daisyui/commit/d7af59ee6a83afa7994f4507e5bd76f92fce25ec))
* support daisyUI V4 ([#428](https://github.com/daisyui/react-daisyui/issues/428)) ([a835ccf](https://github.com/daisyui/react-daisyui/commit/a835ccfbd2aada01e362798a4490de35dffedb01))
* **Timeline:** add timeline component ([#431](https://github.com/daisyui/react-daisyui/issues/431)) ([0a7d560](https://github.com/daisyui/react-daisyui/commit/0a7d56021950499ad523d53b429b47a15fccc6c3))


### Bug Fixes

* **Divider:** support v4 ([#434](https://github.com/daisyui/react-daisyui/issues/434)) ([f8dd4fd](https://github.com/daisyui/react-daisyui/commit/f8dd4fdd91aa9dcc028276955429c0a51764de3c))
* **Tabs:** support v4 ([#433](https://github.com/daisyui/react-daisyui/issues/433)) ([2dfbf6f](https://github.com/daisyui/react-daisyui/commit/2dfbf6fe0b5e8b3750c5fdf4e3584bdea000fa18))


### Miscellaneous

* removed unused dependency ([63a042d](https://github.com/daisyui/react-daisyui/commit/63a042dd120dcd2e87670986fdc18e60354a775d))

## [4.1.2](https://github.com/daisyui/react-daisyui/compare/v4.1.1...v4.1.2) (2023-10-05)


Expand Down
@@ -1,4 +1,4 @@
import{t as M,j as o,a as e,F as S}from"./tw-merge-fe695a60.js";import{r as D}from"./index-ebeaab24.js";import{c as W}from"./clsx.m-1229b3e0.js";import{C as q,a as V}from"./CollapseContent-ad905ac7.js";import{J as E}from"./Join-09755b13.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-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 => {
return <div className="flex flex-wrap gap-2">
<Accordion {...args} defaultChecked>
<Accordion.Title className="text-xl font-medium">
Expand Down Expand Up @@ -162,4 +162,3 @@ import{t as M,j as o,a as e,F as S}from"./tw-merge-fe695a60.js";import{r as D}fr
</div>
</>;
}`,...(b=(w=d.parameters)==null?void 0:w.docs)==null?void 0:b.source}}};const z=["Default","WithArrow","WithPlusMinus","AndJoinTogether","Multiple"];export{i as AndJoinTogether,t as Default,d as Multiple,l as WithArrow,r as WithPlusMinus,z as __namedExportsOrder,$ as default};
//# sourceMappingURL=Accordion.stories-fa0c3041.js.map
1 change: 0 additions & 1 deletion docs/assets/Accordion.stories-fa0c3041.js.map

This file was deleted.

0 comments on commit 13c8db2

Please sign in to comment.