daisyui 4.0.0-alpha.4 → 4.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styled.css CHANGED
@@ -121,54 +121,40 @@
121
121
  padding-left: 1rem;
122
122
  padding-right: 1rem;
123
123
  font-size: 0.875rem;
124
- line-height: 1em;
124
+ line-height: 1em
125
125
  }
126
126
 
127
127
  /* disabled */
128
128
  .btn-disabled,
129
129
  .btn[disabled],
130
130
  .btn:disabled {
131
- pointer-events: none;
131
+ pointer-events: none
132
132
  }
133
133
  /* shapes */
134
134
  .btn-square {
135
135
  height: 3rem;
136
136
  width: 3rem;
137
- padding: 0px;
137
+ padding: 0px
138
138
  }
139
139
  .btn-circle {
140
140
  height: 3rem;
141
141
  width: 3rem;
142
142
  border-radius: 9999px;
143
- padding: 0px;
144
- }
145
-
146
- /* group */
147
-
148
- .btn-group {
149
- display: inline-flex;
150
- }
151
-
152
- .btn-group > input[type="radio"].btn {
153
- appearance: none;
143
+ padding: 0px
154
144
  }
155
145
 
156
- .btn-group > input[type="radio"].btn:before {
157
- content: attr(data-title);
158
- }
159
-
160
146
  /* radio input and checkbox as button */
161
147
 
162
148
  :where(.btn:is(input[type="checkbox"])),
163
149
  :where(.btn:is(input[type="radio"])) {
164
150
  width: auto;
165
- appearance: none;
151
+ appearance: none
166
152
  }
167
153
 
168
154
  .btn:is(input[type="checkbox"]):after,
169
155
  .btn:is(input[type="radio"]):after {
170
156
  --tw-content: attr(aria-label);
171
- content: var(--tw-content);
157
+ content: var(--tw-content)
172
158
  }
173
159
  .card {
174
160
  position: relative;
@@ -652,76 +638,8 @@
652
638
  padding-right: 1rem;
653
639
  font-size: 0.875rem;
654
640
  line-height: 1.25rem;
655
- line-height: 2;
656
- }
657
- .input-group {
658
- display: flex;
659
- width: 100%;
660
- align-items: stretch;
661
- }
662
- .input-group > .input {
663
- isolation: isolate;
664
- }
665
- .input-group > *,
666
- .input-group > .input,
667
- .input-group > .textarea,
668
- .input-group > .select {
669
- border-radius: 0px;
670
- }
671
- .input-group-md {
672
- font-size: 0.875rem;
673
- line-height: 1.25rem;
674
- line-height: 2;
675
- }
676
- .input-group-lg {
677
- font-size: 1.125rem;
678
- line-height: 1.75rem;
679
- line-height: 2;
680
- }
681
- .input-group-sm {
682
- font-size: 0.875rem;
683
- line-height: 2rem;
684
- }
685
- .input-group-xs {
686
- font-size: 0.75rem;
687
- line-height: 1rem;
688
- line-height: 1.625;
689
- }
690
- .input-group :where(span) {
691
- display: flex;
692
- align-items: center;
693
- --tw-bg-opacity: 1;
694
- background-color: oklch(var(--b3) / var(--tw-bg-opacity));
695
- padding-left: 1rem;
696
- padding-right: 1rem;
697
- }
698
- .input-group > :first-child {
699
- border-top-left-radius: var(--rounded-btn, 0.5rem);
700
- border-top-right-radius: 0;
701
- border-bottom-left-radius: var(--rounded-btn, 0.5rem);
702
- border-bottom-right-radius: 0;
703
- }
704
- .input-group > :last-child {
705
- border-top-left-radius: 0;
706
- border-top-right-radius: var(--rounded-btn, 0.5rem);
707
- border-bottom-left-radius: 0;
708
- border-bottom-right-radius: var(--rounded-btn, 0.5rem);
709
- }
710
- .input-group-vertical {
711
- flex-direction: column;
641
+ line-height: 2
712
642
  }
713
- .input-group-vertical :first-child {
714
- border-top-left-radius: var(--rounded-btn, 0.5rem);
715
- border-top-right-radius: var(--rounded-btn, 0.5rem);
716
- border-bottom-left-radius: 0;
717
- border-bottom-right-radius: 0;
718
- }
719
- .input-group-vertical :last-child {
720
- border-top-left-radius: 0;
721
- border-top-right-radius: 0;
722
- border-bottom-left-radius: var(--rounded-btn, 0.5rem);
723
- border-bottom-right-radius: var(--rounded-btn, 0.5rem);
724
- }
725
643
  .join {
726
644
  display: inline-flex;
727
645
  align-items: stretch;
@@ -2050,22 +1968,9 @@ input.tab:checked + .tab-content,
2050
1968
  --tw-text-opacity: 0.2;
2051
1969
  }
2052
1970
  }
2053
- /* group */
2054
- .btn-group > input[type="radio"]:checked.btn,
2055
- .btn-group > .btn-active {
2056
- --tw-border-opacity: 1;
2057
- border-color: oklch(var(--p) / var(--tw-border-opacity));
2058
- --tw-bg-opacity: 1;
2059
- background-color: oklch(var(--p) / var(--tw-bg-opacity));
2060
- --tw-text-opacity: 1;
2061
- color: oklch(var(--pc) / var(--tw-text-opacity));
2062
- }
2063
- .btn-group > input[type="radio"]:checked.btn:focus-visible, .btn-group > .btn-active:focus-visible {
2064
- outline-style: solid;
2065
- outline-width: 2px;
2066
- outline-color: oklch(var(--p) / 1);
2067
- }
1971
+
2068
1972
  /* radio input and checkbox as button */
1973
+
2069
1974
  .btn:is(input[type="checkbox"]:checked),
2070
1975
  .btn:is(input[type="radio"]:checked) {
2071
1976
  --tw-border-opacity: 1;
@@ -2075,6 +1980,7 @@ input.tab:checked + .tab-content,
2075
1980
  --tw-text-opacity: 1;
2076
1981
  color: oklch(var(--pc) / var(--tw-text-opacity));
2077
1982
  }
1983
+
2078
1984
  @media (hover: hover) {
2079
1985
  .btn:is(input[type="checkbox"]:checked):hover, .btn:is(input[type="radio"]:checked):hover {
2080
1986
  --tw-border-opacity: 1;
@@ -2083,9 +1989,11 @@ input.tab:checked + .tab-content,
2083
1989
  background-color: oklch(var(--pf) / var(--tw-bg-opacity));
2084
1990
  }
2085
1991
  }
1992
+
2086
1993
  .btn:is(input[type="checkbox"]:checked):focus-visible, .btn:is(input[type="radio"]:checked):focus-visible {
2087
1994
  outline-color: oklch(var(--p) / 1);
2088
1995
  }
1996
+
2089
1997
  @keyframes button-pop {
2090
1998
  0% {
2091
1999
  transform: scale(var(--btn-focus-scale, 0.98));
@@ -2648,7 +2556,7 @@ details.collapse summary {
2648
2556
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
2649
2557
  }
2650
2558
  .drawer-toggle:checked ~ .drawer-side > .drawer-overlay {
2651
- background-color: oklch(0 0% 0%/0.4);
2559
+ background-color: oklch(0 0 0/0.4);
2652
2560
  }
2653
2561
  .drawer-toggle:focus-visible ~ .drawer-content label.drawer-button {
2654
2562
  outline-style: solid;
@@ -4207,6 +4115,37 @@ details.collapse summary {
4207
4115
  calc(0% + 12px) calc(1px + 50%),
4208
4116
  calc(0% + 16px) calc(1px + 50%);
4209
4117
  }
4118
+ .skeleton {
4119
+ --tw-bg-opacity: 1;
4120
+ background-color: oklch(var(--b3) / var(--tw-bg-opacity));
4121
+ border-radius: var(--rounded-box, 1rem);
4122
+ will-change: background-position;
4123
+ animation: skeleton 2.5s ease-in-out infinite;
4124
+ background-image: linear-gradient(
4125
+ 105deg,
4126
+ transparent 0%,
4127
+ transparent 40%,
4128
+ oklch(var(--b1)) 50%,
4129
+ transparent 60%,
4130
+ transparent 100%
4131
+ );
4132
+ background-size: 200% auto;
4133
+ background-repeat: no-repeat;
4134
+ background-position-x: -50%;
4135
+ }
4136
+ @media (prefers-reduced-motion) {
4137
+ .skeleton {
4138
+ animation-duration: 15s;
4139
+ }
4140
+ }
4141
+ @keyframes skeleton {
4142
+ from {
4143
+ background-position: 150%;
4144
+ }
4145
+ to {
4146
+ background-position: -50%;
4147
+ }
4148
+ }
4210
4149
  .stack {
4211
4150
  place-items: center;
4212
4151
  align-items: flex-end