pelatform-ui 1.3.1 → 1.4.0
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/css/styles/style-lyra.css +16 -7
- package/css/styles/style-maia.css +15 -10
- package/css/styles/style-mira.css +16 -7
- package/css/styles/style-nova.css +11 -6
- package/css/styles/style-vega.css +11 -6
- package/css/theme.css +5 -0
- package/dist/{badge-Rr33PgV_.d.ts → badge-CnQznr5B.d.ts} +2 -1
- package/dist/base.d.ts +111 -24
- package/dist/base.js +2176 -1254
- package/dist/{chunk-Q2RH7YQE.js → chunk-Z4CHIWTI.js} +14 -8
- package/dist/components.d.ts +1 -1
- package/dist/components.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/radix.d.ts +122 -25
- package/dist/radix.js +2140 -1216
- package/package.json +12 -12
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
|
|
144
144
|
/* MARK: Button */
|
|
145
145
|
.cn-button {
|
|
146
|
-
@apply focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-none border border-transparent bg-clip-padding text-xs font-medium focus-visible:ring-1 aria-invalid:ring-1 [&_svg:not([class*='size-'])]:size-4;
|
|
146
|
+
@apply focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-none border border-transparent bg-clip-padding text-xs font-medium focus-visible:ring-1 aria-invalid:ring-1 active:translate-y-px [&_svg:not([class*='size-'])]:size-4;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.cn-button-variant-default {
|
|
@@ -731,7 +731,7 @@
|
|
|
731
731
|
|
|
732
732
|
/* MARK: Menubar */
|
|
733
733
|
.cn-menubar {
|
|
734
|
-
@apply
|
|
734
|
+
@apply h-8 gap-0.5 rounded-none border p-1;
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
.cn-menubar-trigger {
|
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
.cn-navigation-menu-viewport {
|
|
815
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-
|
|
815
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-90 data-open:zoom-in-90 ring-foreground/10 rounded-none shadow ring-1 duration-100;
|
|
816
816
|
}
|
|
817
817
|
|
|
818
818
|
.cn-navigation-menu-indicator {
|
|
@@ -998,11 +998,11 @@
|
|
|
998
998
|
|
|
999
999
|
/* MARK: Sheet */
|
|
1000
1000
|
.cn-sheet-overlay {
|
|
1001
|
-
@apply
|
|
1001
|
+
@apply bg-black/10 text-xs/relaxed supports-backdrop-filter:backdrop-blur-xs;
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
.cn-sheet-content {
|
|
1005
|
-
@apply bg-background
|
|
1005
|
+
@apply bg-background fixed z-50 flex flex-col bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
.cn-sheet-close {
|
|
@@ -1265,7 +1265,7 @@
|
|
|
1265
1265
|
|
|
1266
1266
|
/* MARK: Tooltip */
|
|
1267
1267
|
.cn-tooltip-content {
|
|
1268
|
-
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-none px-3 py-1.5 text-xs;
|
|
1268
|
+
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-none px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-none;
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
1271
1271
|
.cn-tooltip-content-logical {
|
|
@@ -1317,8 +1317,12 @@
|
|
|
1317
1317
|
@apply size-6 rounded-none p-0 has-[>svg]:p-0;
|
|
1318
1318
|
}
|
|
1319
1319
|
|
|
1320
|
+
.cn-input-group-button-size-sm {
|
|
1321
|
+
@apply gap-1;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1320
1324
|
.cn-input-group-button-size-icon-sm {
|
|
1321
|
-
@apply size-
|
|
1325
|
+
@apply size-7 p-0 has-[>svg]:p-0;
|
|
1322
1326
|
}
|
|
1323
1327
|
|
|
1324
1328
|
.cn-input-group-text {
|
|
@@ -1332,4 +1336,9 @@
|
|
|
1332
1336
|
.cn-input-group-textarea {
|
|
1333
1337
|
@apply rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent;
|
|
1334
1338
|
}
|
|
1339
|
+
|
|
1340
|
+
/* MARK: Menu Translucent */
|
|
1341
|
+
.cn-menu-translucent {
|
|
1342
|
+
@apply animate-none! relative bg-popover/70 before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit] before:backdrop-blur-2xl before:backdrop-saturate-150 **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!;
|
|
1343
|
+
}
|
|
1335
1344
|
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
|
|
148
148
|
/* MARK: Button */
|
|
149
149
|
.cn-button {
|
|
150
|
-
@apply focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-4xl border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4;
|
|
150
|
+
@apply focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-4xl border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] active:translate-y-px [&_svg:not([class*='size-'])]:size-4;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.cn-button-variant-default {
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
.cn-context-menu-radio-item {
|
|
415
|
-
@apply focus:bg-accent focus:text-accent-foreground gap-2 rounded-
|
|
415
|
+
@apply focus:bg-accent focus:text-accent-foreground gap-2 rounded-xl py-2 pr-8 pl-3 text-sm data-inset:pl-9.5 [&_svg:not([class*='size-'])]:size-4;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
.cn-context-menu-item-indicator {
|
|
@@ -436,7 +436,7 @@
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
.cn-context-menu-sub-content {
|
|
439
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground min-w-32 rounded-
|
|
439
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground min-w-32 rounded-2xl border p-1 shadow-lg duration-100;
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
.cn-context-menu-subcontent {
|
|
@@ -503,7 +503,7 @@
|
|
|
503
503
|
|
|
504
504
|
/* MARK: Dropdown Menu */
|
|
505
505
|
.cn-dropdown-menu-content {
|
|
506
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground min-w-48 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
506
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground min-w-48 rounded-2xl p-1 shadow-2xl ring-1 duration-100 dark:ring-foreground/10;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.cn-dropdown-menu-content-logical {
|
|
@@ -756,11 +756,11 @@
|
|
|
756
756
|
|
|
757
757
|
/* MARK: Menubar */
|
|
758
758
|
.cn-menubar {
|
|
759
|
-
@apply
|
|
759
|
+
@apply h-9 rounded-4xl border p-1;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
762
|
.cn-menubar-trigger {
|
|
763
|
-
@apply hover:bg-muted aria-expanded:bg-muted rounded-xl px-2
|
|
763
|
+
@apply hover:bg-muted aria-expanded:bg-muted rounded-xl px-2 py-0.75 text-sm font-medium;
|
|
764
764
|
}
|
|
765
765
|
|
|
766
766
|
.cn-menubar-content {
|
|
@@ -833,7 +833,7 @@
|
|
|
833
833
|
}
|
|
834
834
|
|
|
835
835
|
.cn-navigation-menu-viewport {
|
|
836
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-
|
|
836
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-90 data-open:zoom-in-90 ring-foreground/5 rounded-2xl shadow-2xl ring-1 duration-100;
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
.cn-navigation-menu-link {
|
|
@@ -1023,11 +1023,11 @@
|
|
|
1023
1023
|
|
|
1024
1024
|
/* MARK: Sheet */
|
|
1025
1025
|
.cn-sheet-overlay {
|
|
1026
|
-
@apply
|
|
1026
|
+
@apply bg-black/80 supports-backdrop-filter:backdrop-blur-xs;
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
1029
|
.cn-sheet-content {
|
|
1030
|
-
@apply bg-background
|
|
1030
|
+
@apply bg-background fixed z-50 flex flex-col bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm;
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
1033
|
.cn-sheet-close {
|
|
@@ -1290,7 +1290,7 @@
|
|
|
1290
1290
|
|
|
1291
1291
|
/* MARK: Tooltip */
|
|
1292
1292
|
.cn-tooltip-content {
|
|
1293
|
-
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-2xl px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-4xl;
|
|
1293
|
+
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-2xl px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-4xl;
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
1296
|
.cn-tooltip-content-logical {
|
|
@@ -1357,4 +1357,9 @@
|
|
|
1357
1357
|
.cn-input-group-textarea {
|
|
1358
1358
|
@apply rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
1359
1359
|
}
|
|
1360
|
+
|
|
1361
|
+
/* MARK: Menu Translucent */
|
|
1362
|
+
.cn-menu-translucent {
|
|
1363
|
+
@apply animate-none! relative bg-popover/70 before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit] before:backdrop-blur-2xl before:backdrop-saturate-150 **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!;
|
|
1364
|
+
}
|
|
1360
1365
|
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
|
|
148
148
|
/* MARK: Button */
|
|
149
149
|
.cn-button {
|
|
150
|
-
@apply focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:ring-2 aria-invalid:ring-2 [&_svg:not([class*='size-'])]:size-4;
|
|
150
|
+
@apply focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:ring-2 aria-invalid:ring-2 active:translate-y-px [&_svg:not([class*='size-'])]:size-4;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.cn-button-variant-default {
|
|
@@ -756,7 +756,7 @@
|
|
|
756
756
|
|
|
757
757
|
/* MARK: Menubar */
|
|
758
758
|
.cn-menubar {
|
|
759
|
-
@apply
|
|
759
|
+
@apply h-9 rounded-lg border p-1;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
762
|
.cn-menubar-trigger {
|
|
@@ -833,7 +833,7 @@
|
|
|
833
833
|
}
|
|
834
834
|
|
|
835
835
|
.cn-navigation-menu-viewport {
|
|
836
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-
|
|
836
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-90 data-open:zoom-in-90 ring-foreground/10 rounded-xl shadow-md ring-1 duration-100;
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
.cn-navigation-menu-link {
|
|
@@ -1023,11 +1023,11 @@
|
|
|
1023
1023
|
|
|
1024
1024
|
/* MARK: Sheet */
|
|
1025
1025
|
.cn-sheet-overlay {
|
|
1026
|
-
@apply
|
|
1026
|
+
@apply bg-black/80 supports-backdrop-filter:backdrop-blur-xs;
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
1029
|
.cn-sheet-content {
|
|
1030
|
-
@apply bg-background
|
|
1030
|
+
@apply bg-background fixed z-50 flex flex-col bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm;
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
1033
|
.cn-sheet-close {
|
|
@@ -1292,7 +1292,7 @@
|
|
|
1292
1292
|
|
|
1293
1293
|
/* MARK: Tooltip */
|
|
1294
1294
|
.cn-tooltip-content {
|
|
1295
|
-
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-
|
|
1295
|
+
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm;
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
1298
|
.cn-tooltip-content-logical {
|
|
@@ -1344,8 +1344,12 @@
|
|
|
1344
1344
|
@apply size-6 p-0 has-[>svg]:p-0;
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
|
+
.cn-input-group-button-size-sm {
|
|
1348
|
+
@apply gap-1;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1347
1351
|
.cn-input-group-button-size-icon-sm {
|
|
1348
|
-
@apply size-
|
|
1352
|
+
@apply size-7 p-0 has-[>svg]:p-0;
|
|
1349
1353
|
}
|
|
1350
1354
|
|
|
1351
1355
|
.cn-input-group-text {
|
|
@@ -1359,4 +1363,9 @@
|
|
|
1359
1363
|
.cn-input-group-textarea {
|
|
1360
1364
|
@apply rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
1361
1365
|
}
|
|
1366
|
+
|
|
1367
|
+
/* MARK: Menu Translucent */
|
|
1368
|
+
.cn-menu-translucent {
|
|
1369
|
+
@apply animate-none! relative bg-popover/70 before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit] before:backdrop-blur-2xl before:backdrop-saturate-150 **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!;
|
|
1370
|
+
}
|
|
1362
1371
|
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
|
|
148
148
|
/* MARK: Button */
|
|
149
149
|
.cn-button {
|
|
150
|
-
@apply focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
|
|
150
|
+
@apply focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 active:translate-y-px [&_svg:not([class*='size-'])]:size-4;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.cn-button-variant-default {
|
|
@@ -756,7 +756,7 @@
|
|
|
756
756
|
|
|
757
757
|
/* MARK: Menubar */
|
|
758
758
|
.cn-menubar {
|
|
759
|
-
@apply
|
|
759
|
+
@apply h-8 gap-0.5 rounded-lg border p-[3px];
|
|
760
760
|
}
|
|
761
761
|
|
|
762
762
|
.cn-menubar-trigger {
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
.cn-navigation-menu-viewport {
|
|
840
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-
|
|
840
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-90 data-open:zoom-in-90 ring-foreground/10 rounded-lg shadow ring-1 duration-100;
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
.cn-navigation-menu-indicator {
|
|
@@ -1023,11 +1023,11 @@
|
|
|
1023
1023
|
|
|
1024
1024
|
/* MARK: Sheet */
|
|
1025
1025
|
.cn-sheet-overlay {
|
|
1026
|
-
@apply
|
|
1026
|
+
@apply bg-black/10 supports-backdrop-filter:backdrop-blur-xs;
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
1029
|
.cn-sheet-content {
|
|
1030
|
-
@apply bg-background
|
|
1030
|
+
@apply bg-background fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm;
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
1033
|
.cn-sheet-close {
|
|
@@ -1290,7 +1290,7 @@
|
|
|
1290
1290
|
|
|
1291
1291
|
/* MARK: Tooltip */
|
|
1292
1292
|
.cn-tooltip-content {
|
|
1293
|
-
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs;
|
|
1293
|
+
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm;
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
1296
|
.cn-tooltip-content-logical {
|
|
@@ -1357,4 +1357,9 @@
|
|
|
1357
1357
|
.cn-input-group-textarea {
|
|
1358
1358
|
@apply rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent;
|
|
1359
1359
|
}
|
|
1360
|
+
|
|
1361
|
+
/* MARK: Menu Translucent */
|
|
1362
|
+
.cn-menu-translucent {
|
|
1363
|
+
@apply animate-none! relative bg-popover/70 before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit] before:backdrop-blur-2xl before:backdrop-saturate-150 **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!;
|
|
1364
|
+
}
|
|
1360
1365
|
}
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
|
|
144
144
|
/* MARK: Button */
|
|
145
145
|
.cn-button {
|
|
146
|
-
@apply focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
|
|
146
|
+
@apply focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 active:translate-y-px [&_svg:not([class*='size-'])]:size-4;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.cn-button-variant-default {
|
|
@@ -752,7 +752,7 @@
|
|
|
752
752
|
|
|
753
753
|
/* MARK: Menubar */
|
|
754
754
|
.cn-menubar {
|
|
755
|
-
@apply
|
|
755
|
+
@apply h-9 gap-1 rounded-md border p-1 shadow-xs;
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
.cn-menubar-trigger {
|
|
@@ -829,7 +829,7 @@
|
|
|
829
829
|
}
|
|
830
830
|
|
|
831
831
|
.cn-navigation-menu-viewport {
|
|
832
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-
|
|
832
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-90 data-open:zoom-in-90 ring-foreground/10 rounded-lg shadow ring-1 duration-100;
|
|
833
833
|
}
|
|
834
834
|
|
|
835
835
|
.cn-navigation-menu-link {
|
|
@@ -1019,11 +1019,11 @@
|
|
|
1019
1019
|
|
|
1020
1020
|
/* MARK: Sheet */
|
|
1021
1021
|
.cn-sheet-overlay {
|
|
1022
|
-
@apply
|
|
1022
|
+
@apply bg-black/10 supports-backdrop-filter:backdrop-blur-xs;
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
1025
|
.cn-sheet-content {
|
|
1026
|
-
@apply bg-background
|
|
1026
|
+
@apply bg-background fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm;
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
1029
|
.cn-sheet-close {
|
|
@@ -1286,7 +1286,7 @@
|
|
|
1286
1286
|
|
|
1287
1287
|
/* MARK: Tooltip */
|
|
1288
1288
|
.cn-tooltip-content {
|
|
1289
|
-
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs;
|
|
1289
|
+
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
1292
|
.cn-tooltip-content-logical {
|
|
@@ -1353,4 +1353,9 @@
|
|
|
1353
1353
|
.cn-input-group-textarea {
|
|
1354
1354
|
@apply rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
1355
1355
|
}
|
|
1356
|
+
|
|
1357
|
+
/* MARK: Menu Translucent */
|
|
1358
|
+
.cn-menu-translucent {
|
|
1359
|
+
@apply animate-none! relative bg-popover/70 before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit] before:backdrop-blur-2xl before:backdrop-saturate-150 **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!;
|
|
1360
|
+
}
|
|
1356
1361
|
}
|
package/css/theme.css
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
--font-sans: var(--font-sans);
|
|
56
56
|
--font-mono: var(--font-mono);
|
|
57
57
|
--font-inter: var(--font-inter);
|
|
58
|
+
--font-heading: var(--font-sans);
|
|
58
59
|
|
|
59
60
|
--radius-sm: calc(var(--radius) - 4px);
|
|
60
61
|
--radius-md: calc(var(--radius) - 2px);
|
|
@@ -101,6 +102,10 @@
|
|
|
101
102
|
button:active {
|
|
102
103
|
@apply opacity-60 md:opacity-100;
|
|
103
104
|
}
|
|
105
|
+
|
|
106
|
+
.cn-font-heading {
|
|
107
|
+
@apply font-heading;
|
|
108
|
+
}
|
|
104
109
|
}
|
|
105
110
|
|
|
106
111
|
@utility border-grid {
|
|
@@ -6,10 +6,11 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
6
6
|
declare const badgeVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "outline" | "secondary" | "destructive" | "info" | "success" | "warning" | "invert" | "focus" | "primary-light" | "warning-light" | "success-light" | "info-light" | "destructive-light" | "invert-light" | "focus-light" | "primary-outline" | "warning-outline" | "success-outline" | "info-outline" | "destructive-outline" | "invert-outline" | "focus-outline" | null | undefined;
|
|
8
8
|
size?: "default" | "xs" | "sm" | "lg" | "xl" | null | undefined;
|
|
9
|
+
radius?: "default" | "full" | null | undefined;
|
|
9
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
11
|
interface BadgeProps extends React.ComponentProps<"span">, VariantProps<typeof badgeVariants> {
|
|
11
12
|
asChild?: boolean;
|
|
12
13
|
}
|
|
13
|
-
declare function Badge({ className, variant, size, asChild, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function Badge({ className, variant, size, radius, asChild, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
14
15
|
|
|
15
16
|
export { Badge as B, type BadgeProps as a, badgeVariants as b };
|