shadcn-ui-react 0.7.9 → 0.7.10

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/style.css CHANGED
@@ -64,6 +64,7 @@
64
64
  --container-sm: 24rem;
65
65
  --container-md: 28rem;
66
66
  --container-lg: 32rem;
67
+ --container-xl: 36rem;
67
68
  --text-xs: 0.75rem;
68
69
  --text-xs--line-height: calc(1 / 0.75);
69
70
  --text-sm: 0.875rem;
@@ -347,12 +348,6 @@
347
348
  .inset-y-0 {
348
349
  inset-block: calc(var(--spacing) * 0);
349
350
  }
350
- .start {
351
- inset-inline-start: var(--spacing);
352
- }
353
- .end {
354
- inset-inline-end: var(--spacing);
355
- }
356
351
  .-top-12 {
357
352
  top: calc(var(--spacing) * -12);
358
353
  }
@@ -564,9 +559,6 @@
564
559
  width: calc(var(--spacing) * 8);
565
560
  height: calc(var(--spacing) * 8);
566
561
  }
567
- .h-\(--radix-select-trigger-height\) {
568
- height: var(--radix-select-trigger-height);
569
- }
570
562
  .h-1\.5 {
571
563
  height: calc(var(--spacing) * 1.5);
572
564
  }
@@ -639,21 +631,27 @@
639
631
  .max-h-72 {
640
632
  max-height: calc(var(--spacing) * 72);
641
633
  }
642
- .max-h-96 {
643
- max-height: calc(var(--spacing) * 96);
644
- }
645
634
  .max-h-\[300px\] {
646
635
  max-height: 300px;
647
636
  }
637
+ .max-h-\[min\(20rem\,var\(--radix-select-content-available-height\)\)\] {
638
+ max-height: min(20rem, var(--radix-select-content-available-height));
639
+ }
648
640
  .max-h-screen {
649
641
  max-height: 100vh;
650
642
  }
651
643
  .min-h-0 {
652
644
  min-height: calc(var(--spacing) * 0);
653
645
  }
646
+ .min-h-10 {
647
+ min-height: calc(var(--spacing) * 10);
648
+ }
654
649
  .min-h-\[60px\] {
655
650
  min-height: 60px;
656
651
  }
652
+ .min-h-screen {
653
+ min-height: 100vh;
654
+ }
657
655
  .w-\(--radix-select-trigger-width\) {
658
656
  width: var(--radix-select-trigger-width);
659
657
  }
@@ -749,6 +747,9 @@
749
747
  .max-w-md {
750
748
  max-width: var(--container-md);
751
749
  }
750
+ .max-w-xl {
751
+ max-width: var(--container-xl);
752
+ }
752
753
  .min-w-\(--radix-select-trigger-width\) {
753
754
  min-width: var(--radix-select-trigger-width);
754
755
  }
@@ -853,6 +854,9 @@
853
854
  .touch-none {
854
855
  touch-action: none;
855
856
  }
857
+ .\[scrollbar-gutter\:stable\] {
858
+ scrollbar-gutter: stable;
859
+ }
856
860
  .list-none {
857
861
  list-style-type: none;
858
862
  }
@@ -907,6 +911,9 @@
907
911
  .gap-4 {
908
912
  gap: calc(var(--spacing) * 4);
909
913
  }
914
+ .gap-6 {
915
+ gap: calc(var(--spacing) * 6);
916
+ }
910
917
  .space-y-1 {
911
918
  :where(& > :not(:last-child)) {
912
919
  --tw-space-y-reverse: 0;
@@ -1023,9 +1030,17 @@
1023
1030
  border-top-left-radius: 10px;
1024
1031
  border-top-right-radius: 10px;
1025
1032
  }
1033
+ .rounded-l-md {
1034
+ border-top-left-radius: calc(var(--radius) - 2px);
1035
+ border-bottom-left-radius: calc(var(--radius) - 2px);
1036
+ }
1026
1037
  .rounded-tl-sm {
1027
1038
  border-top-left-radius: calc(var(--radius) - 4px);
1028
1039
  }
1040
+ .rounded-r-md {
1041
+ border-top-right-radius: calc(var(--radius) - 2px);
1042
+ border-bottom-right-radius: calc(var(--radius) - 2px);
1043
+ }
1029
1044
  .border {
1030
1045
  border-style: var(--tw-border-style);
1031
1046
  border-width: 1px;
@@ -1411,6 +1426,9 @@
1411
1426
  .p-6 {
1412
1427
  padding: calc(var(--spacing) * 6);
1413
1428
  }
1429
+ .p-10 {
1430
+ padding: calc(var(--spacing) * 10);
1431
+ }
1414
1432
  .p-\[1px\] {
1415
1433
  padding: 1px;
1416
1434
  }
@@ -1498,6 +1516,9 @@
1498
1516
  .pb-4 {
1499
1517
  padding-bottom: calc(var(--spacing) * 4);
1500
1518
  }
1519
+ .pb-230 {
1520
+ padding-bottom: calc(var(--spacing) * 230);
1521
+ }
1501
1522
  .pl-2 {
1502
1523
  padding-left: calc(var(--spacing) * 2);
1503
1524
  }
@@ -1950,9 +1971,6 @@
1950
1971
  -moz-user-select: none;
1951
1972
  user-select: none;
1952
1973
  }
1953
- .\[scrollbar-gutter\:stable\] {
1954
- scrollbar-gutter: stable;
1955
- }
1956
1974
  .duration-200 {
1957
1975
  animation-duration: 200ms;
1958
1976
  }
@@ -2152,6 +2170,11 @@
2152
2170
  z-index: 20;
2153
2171
  }
2154
2172
  }
2173
+ .focus-within\:border-primary {
2174
+ &:focus-within {
2175
+ border-color: var(--primary);
2176
+ }
2177
+ }
2155
2178
  .focus-within\:border-primary\/60 {
2156
2179
  &:focus-within {
2157
2180
  border-color: var(--primary);
@@ -2374,13 +2397,6 @@
2374
2397
  }
2375
2398
  }
2376
2399
  }
2377
- .hover\:bg-primary {
2378
- &:hover {
2379
- @media (hover: hover) {
2380
- background-color: var(--primary);
2381
- }
2382
- }
2383
- }
2384
2400
  .hover\:bg-primary\/15 {
2385
2401
  &:hover {
2386
2402
  @media (hover: hover) {
@@ -2507,13 +2523,6 @@
2507
2523
  }
2508
2524
  }
2509
2525
  }
2510
- .hover\:text-primary-foreground {
2511
- &:hover {
2512
- @media (hover: hover) {
2513
- color: var(--primary-foreground);
2514
- }
2515
- }
2516
- }
2517
2526
  .hover\:underline {
2518
2527
  &:hover {
2519
2528
  @media (hover: hover) {
@@ -2682,21 +2691,11 @@
2682
2691
  }
2683
2692
  }
2684
2693
  }
2685
- .focus\:bg-primary {
2686
- &:focus {
2687
- background-color: var(--primary);
2688
- }
2689
- }
2690
2694
  .focus\:text-accent-foreground {
2691
2695
  &:focus {
2692
2696
  color: var(--accent-foreground);
2693
2697
  }
2694
2698
  }
2695
- .focus\:text-primary-foreground {
2696
- &:focus {
2697
- color: var(--primary-foreground);
2698
- }
2699
- }
2700
2699
  .focus\:underline {
2701
2700
  &:focus {
2702
2701
  text-decoration-line: underline;
@@ -2949,34 +2948,11 @@
2949
2948
  background-color: var(--accent);
2950
2949
  }
2951
2950
  }
2952
- .aria-selected\:bg-accent\/50 {
2953
- &[aria-selected=true] {
2954
- background-color: var(--accent);
2955
- @supports (color: color-mix(in lab, red, red)) {
2956
- background-color: color-mix(in oklab, var(--accent) 50%, transparent);
2957
- }
2958
- }
2959
- }
2960
2951
  .aria-selected\:text-accent-foreground {
2961
2952
  &[aria-selected=true] {
2962
2953
  color: var(--accent-foreground);
2963
2954
  }
2964
2955
  }
2965
- .aria-selected\:text-muted-foreground {
2966
- &[aria-selected=true] {
2967
- color: var(--muted-foreground);
2968
- }
2969
- }
2970
- .aria-selected\:opacity-30 {
2971
- &[aria-selected=true] {
2972
- opacity: 30%;
2973
- }
2974
- }
2975
- .aria-selected\:opacity-100 {
2976
- &[aria-selected=true] {
2977
- opacity: 100%;
2978
- }
2979
- }
2980
2956
  .aria-\[orientation\=vertical\]\:flex-col {
2981
2957
  &[aria-orientation=vertical] {
2982
2958
  flex-direction: column;
@@ -3765,13 +3741,10 @@
3765
3741
  gap: calc(var(--spacing) * 8);
3766
3742
  }
3767
3743
  }
3768
- .sm\:space-y-0 {
3744
+ .sm\:gap-x-4 {
3769
3745
  @media (width >= 40rem) {
3770
- :where(& > :not(:last-child)) {
3771
- --tw-space-y-reverse: 0;
3772
- margin-block-start: calc(calc(var(--spacing) * 0) * var(--tw-space-y-reverse));
3773
- margin-block-end: calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-y-reverse)));
3774
- }
3746
+ -moz-column-gap: calc(var(--spacing) * 4);
3747
+ column-gap: calc(var(--spacing) * 4);
3775
3748
  }
3776
3749
  }
3777
3750
  .sm\:space-x-2 {
@@ -3783,13 +3756,9 @@
3783
3756
  }
3784
3757
  }
3785
3758
  }
3786
- .sm\:space-x-4 {
3759
+ .sm\:gap-y-0 {
3787
3760
  @media (width >= 40rem) {
3788
- :where(& > :not(:last-child)) {
3789
- --tw-space-x-reverse: 0;
3790
- margin-inline-start: calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));
3791
- margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)));
3792
- }
3761
+ row-gap: calc(var(--spacing) * 0);
3793
3762
  }
3794
3763
  }
3795
3764
  .sm\:rounded-lg {
@@ -3999,6 +3968,11 @@
3999
3968
  max-height: calc(var(--spacing) * 72);
4000
3969
  }
4001
3970
  }
3971
+ .\[\&_\[data-radix-select-viewport\]\]\:\[scrollbar-gutter\:stable\] {
3972
+ & [data-radix-select-viewport] {
3973
+ scrollbar-gutter: stable;
3974
+ }
3975
+ }
4002
3976
  .\[\&_\[data-radix-select-viewport\]\]\:overflow-y-auto {
4003
3977
  & [data-radix-select-viewport] {
4004
3978
  overflow-y: auto;
@@ -4009,11 +3983,6 @@
4009
3983
  overscroll-behavior: contain;
4010
3984
  }
4011
3985
  }
4012
- .\[\&_\[data-radix-select-viewport\]\]\:\[scrollbar-gutter\:stable\] {
4013
- & [data-radix-select-viewport] {
4014
- scrollbar-gutter: stable;
4015
- }
4016
- }
4017
3986
  .\[\&_p\]\:leading-relaxed {
4018
3987
  & p {
4019
3988
  --tw-leading: var(--leading-relaxed);
@@ -4246,69 +4215,84 @@
4246
4215
  line-height: var(--tw-leading, var(--text-xs--line-height));
4247
4216
  }
4248
4217
  }
4249
- .\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md {
4250
- &:has(> .day-range-end) {
4251
- border-top-right-radius: calc(var(--radius) - 2px);
4252
- border-bottom-right-radius: calc(var(--radius) - 2px);
4218
+ .\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0 {
4219
+ &:has([role=checkbox]) {
4220
+ padding-right: calc(var(--spacing) * 0);
4221
+ }
4222
+ }
4223
+ .\*\:\[\[role\=checkbox\]\]\:translate-y-0\.5 {
4224
+ :is(& > *) {
4225
+ &:is([role=checkbox]) {
4226
+ --tw-translate-y: calc(var(--spacing) * 0.5);
4227
+ translate: var(--tw-translate-x) var(--tw-translate-y);
4228
+ }
4229
+ }
4230
+ }
4231
+ .\[\&\>button\]\:cursor-not-allowed {
4232
+ & > button {
4233
+ cursor: not-allowed;
4253
4234
  }
4254
4235
  }
4255
- .\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md {
4256
- &:has(> .day-range-start) {
4236
+ .\[\&\>button\]\:rounded-none {
4237
+ & > button {
4238
+ border-radius: 0;
4239
+ }
4240
+ }
4241
+ .\[\&\>button\]\:rounded-l-md {
4242
+ & > button {
4257
4243
  border-top-left-radius: calc(var(--radius) - 2px);
4258
4244
  border-bottom-left-radius: calc(var(--radius) - 2px);
4259
4245
  }
4260
4246
  }
4261
- .\[\&\:has\(\[aria-selected\]\)\]\:rounded-md {
4262
- &:has([aria-selected]) {
4263
- border-radius: calc(var(--radius) - 2px);
4247
+ .\[\&\>button\]\:rounded-r-md {
4248
+ & > button {
4249
+ border-top-right-radius: calc(var(--radius) - 2px);
4250
+ border-bottom-right-radius: calc(var(--radius) - 2px);
4264
4251
  }
4265
4252
  }
4266
- .\[\&\:has\(\[aria-selected\]\)\]\:bg-accent {
4267
- &:has([aria-selected]) {
4253
+ .\[\&\>button\]\:bg-accent {
4254
+ & > button {
4268
4255
  background-color: var(--accent);
4269
4256
  }
4270
4257
  }
4271
- .first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md {
4272
- &:first-child {
4273
- &:has([aria-selected]) {
4274
- border-top-left-radius: calc(var(--radius) - 2px);
4275
- border-bottom-left-radius: calc(var(--radius) - 2px);
4276
- }
4258
+ .\[\&\>button\]\:bg-primary {
4259
+ & > button {
4260
+ background-color: var(--primary);
4277
4261
  }
4278
4262
  }
4279
- .last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md {
4280
- &:last-child {
4281
- &:has([aria-selected]) {
4282
- border-top-right-radius: calc(var(--radius) - 2px);
4283
- border-bottom-right-radius: calc(var(--radius) - 2px);
4284
- }
4263
+ .\[\&\>button\]\:text-accent-foreground {
4264
+ & > button {
4265
+ color: var(--accent-foreground);
4285
4266
  }
4286
4267
  }
4287
- .\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50 {
4288
- &:has([aria-selected].day-outside) {
4289
- background-color: var(--accent);
4290
- @supports (color: color-mix(in lab, red, red)) {
4291
- background-color: color-mix(in oklab, var(--accent) 50%, transparent);
4292
- }
4268
+ .\[\&\>button\]\:text-muted-foreground {
4269
+ & > button {
4270
+ color: var(--muted-foreground);
4293
4271
  }
4294
4272
  }
4295
- .\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md {
4296
- &:has([aria-selected].day-range-end) {
4297
- border-top-right-radius: calc(var(--radius) - 2px);
4298
- border-bottom-right-radius: calc(var(--radius) - 2px);
4273
+ .\[\&\>button\]\:text-primary-foreground {
4274
+ & > button {
4275
+ color: var(--primary-foreground);
4299
4276
  }
4300
4277
  }
4301
- .\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0 {
4302
- &:has([role=checkbox]) {
4303
- padding-right: calc(var(--spacing) * 0);
4278
+ .\[\&\>button\:focus\]\:bg-primary {
4279
+ & > button:focus {
4280
+ background-color: var(--primary);
4304
4281
  }
4305
4282
  }
4306
- .\*\:\[\[role\=checkbox\]\]\:translate-y-0\.5 {
4307
- :is(& > *) {
4308
- &:is([role=checkbox]) {
4309
- --tw-translate-y: calc(var(--spacing) * 0.5);
4310
- translate: var(--tw-translate-x) var(--tw-translate-y);
4311
- }
4283
+ .\[\&\>button\:focus\]\:text-primary-foreground {
4284
+ & > button:focus {
4285
+ color: var(--primary-foreground);
4286
+ }
4287
+ }
4288
+ .\[\&\>button\:hover\]\:bg-primary {
4289
+ & > button:hover {
4290
+ background-color: var(--primary);
4291
+ }
4292
+ }
4293
+ .\[\&\>button\:hover\]\:text-primary-foreground {
4294
+ & > button:hover {
4295
+ color: var(--primary-foreground);
4312
4296
  }
4313
4297
  }
4314
4298
  .\[\&\>span\]\:line-clamp-1 {
@@ -4658,4 +4642,4 @@
4658
4642
  }
4659
4643
  }
4660
4644
  }
4661
- /*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
4645
+ /*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
package/package.json CHANGED
@@ -1,28 +1,27 @@
1
1
  {
2
2
  "name": "shadcn-ui-react",
3
- "version": "0.7.9",
3
+ "version": "0.7.10",
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.",
7
- "sideEffect": [
8
- "**/*.css"
9
- ],
10
7
  "type": "module",
11
- "main": "dist/index.js",
12
- "module": "dist/index.js",
13
- "types": "dist/index.d.ts",
14
- "style": "dist/style.css",
8
+ "main": "./dist/index.cjs",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "style": "./dist/style.css",
15
12
  "files": [
16
13
  "dist",
17
- "dist/style.css",
18
14
  "bin",
19
- "templates"
15
+ "templates",
16
+ "README.md",
17
+ "LICENSE"
20
18
  ],
21
19
  "bin": {
22
20
  "shadcn-ui-react": "./bin/shadcn-ui-react.mjs"
23
21
  },
24
22
  "sideEffects": [
25
- "dist/*.css"
23
+ "**/*.css",
24
+ "./dist/style.css"
26
25
  ],
27
26
  "lint-staged": {
28
27
  "*.{js,jsx,ts,tsx}": "eslint --fix"
@@ -47,9 +46,12 @@
47
46
  "homepage": "https://github.com/blencm/shadcn-ui-react#readme",
48
47
  "scripts": {
49
48
  "dev": "vite",
50
- "build": "cross-env NODE_ENV=production && rimraf ./dist && vite build && tsup && node scripts/postbuild.js",
49
+ "build": "rimraf ./dist && tsup && node scripts/postbuild.js",
51
50
  "test": "cross-env NODE_ENV=test && jest",
52
- "test:watch": "jest --watch"
51
+ "test:watch": "jest --watch",
52
+ "clean": "rimraf ./dist",
53
+ "build:vite": "vite build",
54
+ "prepack": "npm run build"
53
55
  },
54
56
  "devDependencies": {
55
57
  "@babel/core": "^7.29.0",
@@ -93,11 +95,13 @@
93
95
  "vite": "^8.0.11",
94
96
  "vite-plugin-dts": "^5.0.0",
95
97
  "vite-plugin-ts-alias": "^0.1.1",
96
- "zod": "^4.4.3"
98
+ "zod": "^4.4.3",
99
+ "@vitejs/plugin-react": "^6.0.1",
100
+ "@vitejs/plugin-react-swc": "^4.3.0"
97
101
  },
98
102
  "peerDependencies": {
99
- "react": "^17.0.0 || ^18.3.1 || ^19.2.6 || ^20.0.0",
100
- "react-dom": "^17.0.0 || ^18.3.1 || ^19.2.6 || ^20.0.0"
103
+ "react": ">=17.0.0 <21.0.0",
104
+ "react-dom": ">=17.0.0 <21.0.0"
101
105
  },
102
106
  "publishConfig": {
103
107
  "access": "public"
@@ -132,8 +136,6 @@
132
136
  "@radix-ui/react-toggle-group": "^1.1.11",
133
137
  "@radix-ui/react-tooltip": "^1.2.8",
134
138
  "@tanstack/react-table": "^8.21.3",
135
- "@vitejs/plugin-react": "^6.0.1",
136
- "@vitejs/plugin-react-swc": "^4.3.0",
137
139
  "class-variance-authority": "^0.7.1",
138
140
  "clsx": "^2.1.1",
139
141
  "cmdk": "^1.1.1",
@@ -151,5 +153,15 @@
151
153
  "tailwind-variants": "^3.2.2",
152
154
  "use-debounce": "^10.1.1",
153
155
  "vaul": "^1.1.2"
156
+ },
157
+ "exports": {
158
+ ".": {
159
+ "types": "./dist/index.d.ts",
160
+ "import": "./dist/index.js",
161
+ "require": "./dist/index.cjs"
162
+ },
163
+ "./style.css": "./dist/style.css",
164
+ "./dist/style.css": "./dist/style.css",
165
+ "./package.json": "./package.json"
154
166
  }
155
- }
167
+ }