chore(deps): update dependency daisyui to v5 #132
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.12.24
->5.0.0
Release Notes
saadeghi/daisyui (daisyui)
v5.0.0
Compare Source
Alert
🆕 Additions
alert-outline
,alert-dash
, andalert-soft
variants.alert-vertical
andalert-horizontal
layout options.🔧 Changes
max-sm:alert-horizontal
or any other responsive breakpoint.Artboard
🗑️ Removals
artboard
andphone-*
classes. These classes were simply setting the width and height of the div. Use Tailwind CSSw-*
andh-*
classes instead.artboard phone-1
w-[320px] h-[568px]
artboard phone-2
w-[375px] h-[667px]
artboard phone-3
w-[414px] h-[736px]
artboard phone-4
w-[375px] h-[812px]
artboard phone-5
w-[414px] h-[896px]
artboard phone-6
w-[320px] h-[1024px]
artboard artboard-horizontal phone-1
w-[568px] h-[320px]
artboard artboard-horizontal phone-2
w-[667px] h-[375px]
artboard artboard-horizontal phone-3
w-[736px] h-[414px]
artboard artboard-horizontal phone-4
w-[812px] h-[375px]
artboard artboard-horizontal phone-5
w-[896px] h-[414px]
artboard artboard-horizontal phone-6
w-[1024px] h-[320px]
To be clear,
mockup-phone
is not removed. It just doesn't need theartboard
class anymore.Avatar
🔧 Changes
online
class toavatar-online
,offline
toavatar-offline
, andplaceholder
toavatar-placeholder
.Badge
🆕 Additions
badge-dash
, andbadge-soft
styles.badge-xl
size.gap-2
between content of badge so you don't have to add it manually to put a space between the text and icon.🔧 Changes
Breadcrumbs
🆕 Additions
gap-2
for the element inside list item so you don't have to add it manually to put a space between the text and icon.Bottom Navigation
🗑️ Removals
bottom-nav
component. Usedock
component instead.btm-nav-xs
,btm-nav-sm
,btm-nav-md
,btm-nav-lg
. Usedock-xs
,dock-sm
,dock-md
,dock-lg
instead.btm-nav-active
. Usedock-active
instead.disabled
class ofbottom-nav
. Usearia-disabled="true"
attribute ordisabled
attribute if it's a button. This is for better accessibility.Button
🆕 Additions
btn-xl
size.btn-dash
andbtn-soft
styles.--depth
effect is enabled.🔧 Changes
--size-field
.checked:btn-secondary
Card
🆕 Additions
card-border
andcard-dash
styles which adapts the border width from the theme.card-xs
,card-sm
,card-md
,card-lg
,card-xl
).<label class="card">
to be used as a radio card. If a checkbox or radio is directly inside a card, clicking the card will toggle the checkbox/radio and will show an outline around the card.🔧 Changes
card-bordered
is renamed tocard-border
.🗑️ Removals
card-compact
. Usecard-sm
instead.Chat
🆕 Additions
chat-bubble-neutral
color.🔧 Changes
neutral
tobase-300
. Addchat-bubble-neutral
if you want to keep using the neutral color.Checkbox
🆕 Additions
checkbox-xl
size.checkbox-neutral
color.🔧 Changes
Countdown
🆕 Additions
Diff
🆕 Additions
🔧 Changes
diff-item-1
and second image isdiff-item-2
.tabindex="0"
allows focus on the element using keyboard navigation or tap on iOS Safari where CSSresize
property is not supported.Dropdown
🆕 Additions
popover
attribute. HTML popover is the new standard for creating dropdowns in HTML. It prevents any overflow edgecase issues and any z-index issues.Anchor positioning
(Currently only works on Chromium-based browsers. Other browsers will position the dropdown on the middle of the screen, like a modal).🔧 Changes
@starting-style
now.display
instead ofvisibility
to show/hide the dropdown to prevent overflow issues.Divider
🆕 Additions
FileInput
🆕 Additions
file-input-xl
size.🔧 Changes
file-input-ghost
if you want to remove the border.🗑️ Removals
file-input-bordered
. File input has a border by default now. Usefile-input-ghost
if you want to remove the border.Footer
🆕 Additions
footer-horizontal
,footer-vertical
).🔧 Changes
footer-horizontal
to make it horizontal at the screen size you want.Input
🆕 Additions
input-xl
size.🔧 Changes
w-full max-w-xs
.input-border
.Input has a border by default now. Useinput-ghost
if you want to remove the border.🗑️ Removals
input-bordered
class (not needed anymore).Join
🔧 Changes
Kbd
🆕 Additions
kbd-xl
size.Label
🔧 Changes
Loading
🔧 Changes
loading-xl
size.Mask
🗑️ Removals
mask-parallelogram
,mask-parallelogram-2
,mask-parallelogram-3
, andmask-parallelogram-4
. These mask styles are no longer included in the library. If you need them, manually use the CSSMenu
🆕 Additions
menu-xl
size.🔧 Changes
w-full
anymore. Usew-full
if you want it to be full width.disabled
class of menu item tomenu-disabled
.active
class of menu item tomenu-active
.focus
class of menu item tomenu-focus
.Mockup
🔧 Changes
camera
class in mockup-phone tomockup-phone-camera
.display
class in mockup-phone tomockup-phone-display
.mockup-phone-display
Modal
🆕 Additions
modal-start
andmodal-end
positioning options.🔧 Changes
@starting-style
nowdisplay
instead ofvisibility
to show/hide the modal.Radial Progress
🆕 Additions
--value
when it changes.Radio
🆕 Additions
radio-xl
size.🔧 Changes
Range
🆕 Additions
range-xl
size.🔧 Changes
Rating
🆕 Additions
🔧 Changes
Select
🆕 Additions
select-xl
size.🔧 Changes
Breaking Change: Select now has a default width of 20rem, no need for adding
w-full max-w-xs
.max-w-none
class.Breaking Change: Removed
select-border
. Select has a border by default now. Useselect-ghost
if you want to remove the border.Adjusted padding, height, and font-size to match other components.
Stack
🆕 Additions
stack-bottom
,stack-top
,stack-start
,stack-end
.🔧 Changes
Stat
🔧 Changes
stats
background color is now transparent. Usebg-base-100
if you need a background color.Steps
🆕 Additions
step-icon
class for custom icons inside step.Tab
🆕 Additions
tab-xl
size.tabs-top
andtabs-bottom
positioning options.🔧 Changes
tabs
andtab-content
form a grid to flex, allowing us to fix the unstable margin issue at the end of thetab-content
which was a side-effect of using infinite grid columns in v4, to push the tabs to the left while keeping the content full width. flex and flex order gives us more control over in this layout.tabs-lifted
totabs-lift
.Table
🆕 Additions
table-xl
size.🔧 Changes
hover
class. Usehover:bg-base-300
(or any other color) instead.Textarea
🆕 Additions
textarea-xl
size.🔧 Changes
textarea-border
. Textarea has a border by default now. Usetextarea-ghost
if you want to remove the border.Timeline
🆕 Additions
Toggle
🆕 Additions
toggle-xl
size.toggle-neutral
color.🔧 Changes
Tooltip
🆕 Additions
tooltip-content
class, allowing HTML content inside the tooltip.🔧 Changes
Typography
🔧 Changes
@tailwindcss/typography
plugin, not other modifications like padding. You can customize those according to@tailwindcss/typography
config If you want other modifications from v4, Here's the CSSOther removals
🗑️ Remove form-control, label-text, label-text-alt
You can still use the same HTML still, but class names don't exist anymore and won't apply color, font-size, flex, etc.
I suggest using the newly added class names for
fieldset
andlegend
elements for better accessibility.🗑️ Remove btn-group and input-group
btn-group, input-group were deprecated a year ago and now finally removed.
If you've been using btn-group or input-group, you can use
join
insteadConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.