shadcn-ui-react 0.7.12 → 0.7.13
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/index.cjs +6 -4
- package/dist/index.js +6 -4
- package/dist/style.css +64 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7824,8 +7824,9 @@ var SelectContent = React46.forwardRef(
|
|
|
7824
7824
|
ref: composeRefs(ref, context.contentRef),
|
|
7825
7825
|
role: "listbox",
|
|
7826
7826
|
"data-side": side,
|
|
7827
|
+
"data-select-content": true,
|
|
7827
7828
|
className: cn(
|
|
7828
|
-
"min-w-32 overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md",
|
|
7829
|
+
"pointer-events-auto min-w-32 overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md",
|
|
7829
7830
|
className
|
|
7830
7831
|
),
|
|
7831
7832
|
style: __spreadValues(__spreadValues({}, contentStyle), style),
|
|
@@ -8255,8 +8256,9 @@ function SearchableSelectBase({
|
|
|
8255
8256
|
"div",
|
|
8256
8257
|
{
|
|
8257
8258
|
ref: contentRef,
|
|
8259
|
+
"data-searchable-select-content": true,
|
|
8258
8260
|
className: cn(
|
|
8259
|
-
"overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-xl",
|
|
8261
|
+
"pointer-events-auto overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-xl",
|
|
8260
8262
|
contentClassName
|
|
8261
8263
|
),
|
|
8262
8264
|
style: __spreadProps(__spreadValues({}, contentStyle), {
|
|
@@ -9836,7 +9838,7 @@ var TableHead = React63.forwardRef((_a, ref) => {
|
|
|
9836
9838
|
__spreadValues({
|
|
9837
9839
|
ref,
|
|
9838
9840
|
className: cn(
|
|
9839
|
-
"h-10 px-2 text-left align-middle font-medium text-muted-foreground
|
|
9841
|
+
"h-10 px-2 text-left align-middle font-medium text-muted-foreground has-[[role=checkbox]]:pr-0 *:[[role=checkbox]]:translate-y-0.5",
|
|
9840
9842
|
className
|
|
9841
9843
|
)
|
|
9842
9844
|
}, props)
|
|
@@ -9850,7 +9852,7 @@ var TableCell = React63.forwardRef((_a, ref) => {
|
|
|
9850
9852
|
__spreadValues({
|
|
9851
9853
|
ref,
|
|
9852
9854
|
className: cn(
|
|
9853
|
-
"p-2 align-middle
|
|
9855
|
+
"p-2 align-middle has-[[role=checkbox]]:pr-0 *:[[role=checkbox]]:translate-y-0.5",
|
|
9854
9856
|
className
|
|
9855
9857
|
)
|
|
9856
9858
|
}, props)
|
package/dist/index.js
CHANGED
|
@@ -7548,8 +7548,9 @@ var SelectContent = React46.forwardRef(
|
|
|
7548
7548
|
ref: composeRefs(ref, context.contentRef),
|
|
7549
7549
|
role: "listbox",
|
|
7550
7550
|
"data-side": side,
|
|
7551
|
+
"data-select-content": true,
|
|
7551
7552
|
className: cn(
|
|
7552
|
-
"min-w-32 overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md",
|
|
7553
|
+
"pointer-events-auto min-w-32 overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md",
|
|
7553
7554
|
className
|
|
7554
7555
|
),
|
|
7555
7556
|
style: __spreadValues(__spreadValues({}, contentStyle), style),
|
|
@@ -7979,8 +7980,9 @@ function SearchableSelectBase({
|
|
|
7979
7980
|
"div",
|
|
7980
7981
|
{
|
|
7981
7982
|
ref: contentRef,
|
|
7983
|
+
"data-searchable-select-content": true,
|
|
7982
7984
|
className: cn(
|
|
7983
|
-
"overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-xl",
|
|
7985
|
+
"pointer-events-auto overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-xl",
|
|
7984
7986
|
contentClassName
|
|
7985
7987
|
),
|
|
7986
7988
|
style: __spreadProps(__spreadValues({}, contentStyle), {
|
|
@@ -9596,7 +9598,7 @@ var TableHead = React63.forwardRef((_a, ref) => {
|
|
|
9596
9598
|
__spreadValues({
|
|
9597
9599
|
ref,
|
|
9598
9600
|
className: cn(
|
|
9599
|
-
"h-10 px-2 text-left align-middle font-medium text-muted-foreground
|
|
9601
|
+
"h-10 px-2 text-left align-middle font-medium text-muted-foreground has-[[role=checkbox]]:pr-0 *:[[role=checkbox]]:translate-y-0.5",
|
|
9600
9602
|
className
|
|
9601
9603
|
)
|
|
9602
9604
|
}, props)
|
|
@@ -9610,7 +9612,7 @@ var TableCell = React63.forwardRef((_a, ref) => {
|
|
|
9610
9612
|
__spreadValues({
|
|
9611
9613
|
ref,
|
|
9612
9614
|
className: cn(
|
|
9613
|
-
"p-2 align-middle
|
|
9615
|
+
"p-2 align-middle has-[[role=checkbox]]:pr-0 *:[[role=checkbox]]:translate-y-0.5",
|
|
9614
9616
|
className
|
|
9615
9617
|
)
|
|
9616
9618
|
}, props)
|
package/dist/style.css
CHANGED
|
@@ -61,10 +61,13 @@
|
|
|
61
61
|
--color-black: #000;
|
|
62
62
|
--color-white: #fff;
|
|
63
63
|
--spacing: 0.25rem;
|
|
64
|
+
--container-xs: 20rem;
|
|
64
65
|
--container-sm: 24rem;
|
|
65
66
|
--container-md: 28rem;
|
|
66
67
|
--container-lg: 32rem;
|
|
67
68
|
--container-xl: 36rem;
|
|
69
|
+
--container-2xl: 42rem;
|
|
70
|
+
--container-3xl: 48rem;
|
|
68
71
|
--text-xs: 0.75rem;
|
|
69
72
|
--text-xs--line-height: calc(1 / 0.75);
|
|
70
73
|
--text-sm: 0.875rem;
|
|
@@ -631,6 +634,9 @@
|
|
|
631
634
|
.max-h-\[300px\] {
|
|
632
635
|
max-height: 300px;
|
|
633
636
|
}
|
|
637
|
+
.max-h-\[calc\(100vh-2rem\)\] {
|
|
638
|
+
max-height: calc(100vh - 2rem);
|
|
639
|
+
}
|
|
634
640
|
.max-h-full {
|
|
635
641
|
max-height: 100%;
|
|
636
642
|
}
|
|
@@ -718,6 +724,9 @@
|
|
|
718
724
|
.w-\[100px\] {
|
|
719
725
|
width: 100px;
|
|
720
726
|
}
|
|
727
|
+
.w-\[calc\(100vw-1rem\)\] {
|
|
728
|
+
width: calc(100vw - 1rem);
|
|
729
|
+
}
|
|
721
730
|
.w-full {
|
|
722
731
|
width: 100%;
|
|
723
732
|
}
|
|
@@ -1479,6 +1488,9 @@
|
|
|
1479
1488
|
.py-4 {
|
|
1480
1489
|
padding-block: calc(var(--spacing) * 4);
|
|
1481
1490
|
}
|
|
1491
|
+
.py-5 {
|
|
1492
|
+
padding-block: calc(var(--spacing) * 5);
|
|
1493
|
+
}
|
|
1482
1494
|
.py-6 {
|
|
1483
1495
|
padding-block: calc(var(--spacing) * 6);
|
|
1484
1496
|
}
|
|
@@ -1491,6 +1503,9 @@
|
|
|
1491
1503
|
.pt-4 {
|
|
1492
1504
|
padding-top: calc(var(--spacing) * 4);
|
|
1493
1505
|
}
|
|
1506
|
+
.pt-5 {
|
|
1507
|
+
padding-top: calc(var(--spacing) * 5);
|
|
1508
|
+
}
|
|
1494
1509
|
.pt-6 {
|
|
1495
1510
|
padding-top: calc(var(--spacing) * 6);
|
|
1496
1511
|
}
|
|
@@ -1548,6 +1563,9 @@
|
|
|
1548
1563
|
.text-left {
|
|
1549
1564
|
text-align: left;
|
|
1550
1565
|
}
|
|
1566
|
+
.text-start {
|
|
1567
|
+
text-align: start;
|
|
1568
|
+
}
|
|
1551
1569
|
.align-middle {
|
|
1552
1570
|
vertical-align: middle;
|
|
1553
1571
|
}
|
|
@@ -2979,6 +2997,11 @@
|
|
|
2979
2997
|
opacity: 50%;
|
|
2980
2998
|
}
|
|
2981
2999
|
}
|
|
3000
|
+
.has-\[\[role\=checkbox\]\]\:pr-0 {
|
|
3001
|
+
&:has(*:is([role=checkbox])) {
|
|
3002
|
+
padding-right: calc(var(--spacing) * 0);
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
2982
3005
|
.aria-selected\:bg-accent {
|
|
2983
3006
|
&[aria-selected=true] {
|
|
2984
3007
|
background-color: var(--accent);
|
|
@@ -3713,11 +3736,52 @@
|
|
|
3713
3736
|
display: none;
|
|
3714
3737
|
}
|
|
3715
3738
|
}
|
|
3739
|
+
.sm\:w-fit {
|
|
3740
|
+
@media (width >= 40rem) {
|
|
3741
|
+
width: -moz-fit-content;
|
|
3742
|
+
width: fit-content;
|
|
3743
|
+
}
|
|
3744
|
+
}
|
|
3745
|
+
.sm\:max-w-2xl {
|
|
3746
|
+
@media (width >= 40rem) {
|
|
3747
|
+
max-width: var(--container-2xl);
|
|
3748
|
+
}
|
|
3749
|
+
}
|
|
3750
|
+
.sm\:max-w-3xl {
|
|
3751
|
+
@media (width >= 40rem) {
|
|
3752
|
+
max-width: var(--container-3xl);
|
|
3753
|
+
}
|
|
3754
|
+
}
|
|
3755
|
+
.sm\:max-w-\[calc\(100vw-2rem\)\] {
|
|
3756
|
+
@media (width >= 40rem) {
|
|
3757
|
+
max-width: calc(100vw - 2rem);
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
.sm\:max-w-lg {
|
|
3761
|
+
@media (width >= 40rem) {
|
|
3762
|
+
max-width: var(--container-lg);
|
|
3763
|
+
}
|
|
3764
|
+
}
|
|
3765
|
+
.sm\:max-w-md {
|
|
3766
|
+
@media (width >= 40rem) {
|
|
3767
|
+
max-width: var(--container-md);
|
|
3768
|
+
}
|
|
3769
|
+
}
|
|
3716
3770
|
.sm\:max-w-sm {
|
|
3717
3771
|
@media (width >= 40rem) {
|
|
3718
3772
|
max-width: var(--container-sm);
|
|
3719
3773
|
}
|
|
3720
3774
|
}
|
|
3775
|
+
.sm\:max-w-xl {
|
|
3776
|
+
@media (width >= 40rem) {
|
|
3777
|
+
max-width: var(--container-xl);
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
.sm\:max-w-xs {
|
|
3781
|
+
@media (width >= 40rem) {
|
|
3782
|
+
max-width: var(--container-xs);
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3721
3785
|
.sm\:grid-cols-\[1fr_auto\] {
|
|
3722
3786
|
@media (width >= 40rem) {
|
|
3723
3787
|
grid-template-columns: 1fr auto;
|
|
@@ -4212,11 +4276,6 @@
|
|
|
4212
4276
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
4213
4277
|
}
|
|
4214
4278
|
}
|
|
4215
|
-
.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0 {
|
|
4216
|
-
&:has([role=checkbox]) {
|
|
4217
|
-
padding-right: calc(var(--spacing) * 0);
|
|
4218
|
-
}
|
|
4219
|
-
}
|
|
4220
4279
|
.\*\:\[\[role\=checkbox\]\]\:translate-y-0\.5 {
|
|
4221
4280
|
:is(& > *) {
|
|
4222
4281
|
&:is([role=checkbox]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shadcn-ui-react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Bleker <bleker@gliyen.com>",
|
|
6
6
|
"description": "A collection of components for building beautiful and accessible user interfaces with React and Tailwind CSS.",
|