merge updates from 2.x

This commit is contained in:
Pouya Saadeghi 2023-04-05 15:28:13 +03:00
parent 2f794fc77a
commit e53f0cd637
9 changed files with 68 additions and 25 deletions

View File

@ -2,6 +2,27 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [2.51.5](https://github.com/saadeghi/daisyui/compare/v2.51.4...v2.51.5) (2023-03-21)
### Bug Fixes
* [#1700](https://github.com/saadeghi/daisyui/issues/1700) ([ef1941e](https://github.com/saadeghi/daisyui/commit/ef1941ea1dee945ad3ebb672bd5dcf38388efa8b))
### [2.51.4](https://github.com/saadeghi/daisyui/compare/v2.51.3...v2.51.4) (2023-03-15)
### Bug Fixes
* [#1666](https://github.com/saadeghi/daisyui/issues/1666), fix: [#1691](https://github.com/saadeghi/daisyui/issues/1691) - Button group responsive classes not working properly. ([#1676](https://github.com/saadeghi/daisyui/issues/1676)) ([60893db](https://github.com/saadeghi/daisyui/commit/60893db4ba13d50812ee287da158a0f45cc69a50))
### [2.51.3](https://github.com/saadeghi/daisyui/compare/v2.51.2...v2.51.3) (2023-03-01)
### Bug Fixes
* [#1569](https://github.com/saadeghi/daisyui/issues/1569) extend breadcrumb support for an ordered list ([#1648](https://github.com/saadeghi/daisyui/issues/1648)) ([ca82b9b](https://github.com/saadeghi/daisyui/commit/ca82b9bafe4e8f11ebdc70bc7cb0c2b82caf222e))
### [2.51.2](https://github.com/saadeghi/daisyui/compare/v2.51.1...v2.51.2) (2023-02-27)

View File

@ -56,7 +56,7 @@ module.exports = {
Loading CSS files from CDN is not recommended for production. It's better to install Tailwind and daisyUI as Nodejs dependencies so you can config/customize everything, and purge unused styles.
```html
<link href="https://cdn.jsdelivr.net/npm/daisyui@2.51.2/dist/full.css" rel="stylesheet" type="text/css" />
<link href="https://cdn.jsdelivr.net/npm/daisyui@2.51.5/dist/full.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>
```

View File

@ -1,6 +1,6 @@
{
"name": "daisyui",
"version": "2.51.2",
"version": "2.51.5",
"description": "daisyUI - Tailwind CSS Components",
"author": "Pouya Saadeghi",
"license": "MIT",

View File

@ -1,6 +1,6 @@
.breadcrumbs {
@apply py-2;
& > ul {
& > ul,& > ol {
& > li {
& > a {
&:focus {
@ -22,6 +22,7 @@
}
}
[dir="rtl"] .breadcrumbs > ul > li + *:before {
[dir="rtl"] .breadcrumbs > ul > li + *:before,
[dir="rtl"] .breadcrumbs > ol > li + *:before {
--tw-rotate: -135deg;
}

View File

@ -1,6 +1,7 @@
.file-input {
@apply border border-base-content border-opacity-0 bg-base-100 rounded-btn text-base overflow-hidden;
&::file-selector-button {
border-style: solid;
@apply font-semibold uppercase no-underline border-neutral bg-neutral text-neutral-content;
border-width: var(--border-btn, 1px);
animation: button-pop var(--animation-btn, 0.25s) ease-out;

View File

@ -1,6 +1,6 @@
.breadcrumbs {
@apply max-w-full overflow-x-auto;
& > ul {
& > ul,& > ol {
@apply flex items-center whitespace-nowrap;
min-height: min-content;
& > li {

View File

@ -1,7 +1,7 @@
.file-input {
@apply flex-shrink h-12 pr-4 text-sm leading-loose;
&::file-selector-button {
@apply inline-flex flex-shrink-0 cursor-pointer select-none flex-wrap items-center justify-center border-transparent text-center transition duration-200 ease-in-out h-[2.875rem] px-4 text-sm min-h-[2.875rem] mr-4;
@apply inline-flex flex-shrink-0 cursor-pointer select-none flex-wrap items-center justify-center text-center transition duration-200 ease-in-out h-[2.875rem] px-4 text-sm min-h-[2.875rem] mr-4;
line-height: 1em;
}
}

View File

@ -1,6 +1,5 @@
/* group */
.btn-group,
.btn-group.btn-group-horizontal {
.btn-group {
.btn:not(:first-child):not(:last-child) {
border-top-left-radius: 0;
border-top-right-radius: 0;
@ -8,7 +7,7 @@
border-bottom-right-radius: 0;
}
.btn:first-child:not(:last-child) {
@apply -ml-px -mt-0;
@apply -mt-0 -ml-px;
border-top-left-radius: var(--rounded-btn, 0.5rem);
border-top-right-radius: 0;
border-bottom-left-radius: var(--rounded-btn, 0.5rem);
@ -20,19 +19,40 @@
border-bottom-left-radius: 0;
border-bottom-right-radius: var(--rounded-btn, 0.5rem);
}
&-horizontal {
.btn:not(:first-child):not(:last-child) {
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.btn:first-child:not(:last-child) {
@apply -mt-0 -ml-px;
border-top-left-radius: var(--rounded-btn, 0.5rem);
border-top-right-radius: 0;
border-bottom-left-radius: var(--rounded-btn, 0.5rem);
border-bottom-right-radius: 0;
}
.btn:last-child:not(:first-child) {
border-top-left-radius: 0;
border-top-right-radius: var(--rounded-btn, 0.5rem);
border-bottom-left-radius: 0;
border-bottom-right-radius: var(--rounded-btn, 0.5rem);
}
}
&-vertical {
.btn:first-child:not(:last-child) {
@apply -mt-px -ml-0;
border-top-left-radius: var(--rounded-btn, 0.5rem);
border-top-right-radius: var(--rounded-btn, 0.5rem);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.btn:last-child:not(:first-child) {
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: var(--rounded-btn, 0.5rem);
border-bottom-right-radius: var(--rounded-btn, 0.5rem);
}
}
}
.btn-group.btn-group-vertical {
.btn:first-child:not(:last-child) {
@apply -ml-0 -mt-px;
border-top-left-radius: var(--rounded-btn, 0.5rem);
border-top-right-radius: var(--rounded-btn, 0.5rem);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.btn:last-child:not(:first-child) {
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: var(--rounded-btn, 0.5rem);
border-bottom-right-radius: var(--rounded-btn, 0.5rem);
}
}

View File

@ -7,7 +7,7 @@
}
}
&-sm {
@apply pr-3 text-sm leading-8 h-8;
@apply pr-3 text-sm leading-loose h-8;
&::file-selector-button {
@apply mr-3 h-[1.875rem] min-h-[1.875rem];
font-size: 0.875rem;