@nswds/app 1.92.0 → 1.94.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/dist/globals.css +70 -60
- package/dist/index.cjs +56 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +56 -30
- package/dist/index.js.map +1 -1
- package/dist/styles.css +134 -57
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/globals.css
CHANGED
|
@@ -2470,12 +2470,6 @@
|
|
|
2470
2470
|
border-color: color-mix(in oklab, var(--color-grey-950) 5%, transparent);
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
|
-
.border-grey-950\/10 {
|
|
2474
|
-
border-color: var(--color-grey-950);
|
|
2475
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
2476
|
-
border-color: color-mix(in oklab, var(--color-grey-950) 10%, transparent);
|
|
2477
|
-
}
|
|
2478
|
-
}
|
|
2479
2473
|
.border-inherit {
|
|
2480
2474
|
border-color: inherit;
|
|
2481
2475
|
}
|
|
@@ -2674,15 +2668,6 @@
|
|
|
2674
2668
|
.bg-grey-800 {
|
|
2675
2669
|
background-color: var(--color-grey-800);
|
|
2676
2670
|
}
|
|
2677
|
-
.bg-grey-950 {
|
|
2678
|
-
background-color: var(--color-grey-950);
|
|
2679
|
-
}
|
|
2680
|
-
.bg-grey-950\/\[2\.5\%\] {
|
|
2681
|
-
background-color: var(--color-grey-950);
|
|
2682
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
2683
|
-
background-color: color-mix(in oklab, var(--color-grey-950) 2.5%, transparent);
|
|
2684
|
-
}
|
|
2685
|
-
}
|
|
2686
2671
|
.bg-lime-500 {
|
|
2687
2672
|
background-color: var(--color-lime-500);
|
|
2688
2673
|
}
|
|
@@ -2995,9 +2980,6 @@
|
|
|
2995
2980
|
.px-0 {
|
|
2996
2981
|
padding-inline: calc(var(--spacing) * 0);
|
|
2997
2982
|
}
|
|
2998
|
-
.px-0\.5 {
|
|
2999
|
-
padding-inline: calc(var(--spacing) * 0.5);
|
|
3000
|
-
}
|
|
3001
2983
|
.px-1 {
|
|
3002
2984
|
padding-inline: calc(var(--spacing) * 1);
|
|
3003
2985
|
}
|
|
@@ -9588,14 +9570,6 @@
|
|
|
9588
9570
|
}
|
|
9589
9571
|
}
|
|
9590
9572
|
}
|
|
9591
|
-
.dark\:border-white\/20 {
|
|
9592
|
-
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9593
|
-
border-color: color-mix(in srgb, #fff 20%, transparent);
|
|
9594
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
9595
|
-
border-color: color-mix(in oklab, var(--color-white) 20%, transparent);
|
|
9596
|
-
}
|
|
9597
|
-
}
|
|
9598
|
-
}
|
|
9599
9573
|
.dark\:bg-\(--badge-bg\) {
|
|
9600
9574
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9601
9575
|
background-color: var(--badge-bg);
|
|
@@ -9718,6 +9692,11 @@
|
|
|
9718
9692
|
}
|
|
9719
9693
|
}
|
|
9720
9694
|
}
|
|
9695
|
+
.dark\:bg-grey-600 {
|
|
9696
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9697
|
+
background-color: var(--color-grey-600);
|
|
9698
|
+
}
|
|
9699
|
+
}
|
|
9721
9700
|
.dark\:bg-grey-700 {
|
|
9722
9701
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9723
9702
|
background-color: var(--color-grey-700);
|
|
@@ -10698,6 +10677,23 @@
|
|
|
10698
10677
|
}
|
|
10699
10678
|
}
|
|
10700
10679
|
}
|
|
10680
|
+
.dark\:focus\:bg-primary-200\/10 {
|
|
10681
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10682
|
+
&:focus {
|
|
10683
|
+
background-color: var(--color-primary-200);
|
|
10684
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
10685
|
+
background-color: color-mix(in oklab, var(--color-primary-200) 10%, transparent);
|
|
10686
|
+
}
|
|
10687
|
+
}
|
|
10688
|
+
}
|
|
10689
|
+
}
|
|
10690
|
+
.dark\:focus\:text-primary-200 {
|
|
10691
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10692
|
+
&:focus {
|
|
10693
|
+
color: var(--color-primary-200);
|
|
10694
|
+
}
|
|
10695
|
+
}
|
|
10696
|
+
}
|
|
10701
10697
|
.dark\:focus\:ring-primary-700\/30 {
|
|
10702
10698
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10703
10699
|
&:focus {
|
|
@@ -10890,6 +10886,13 @@
|
|
|
10890
10886
|
}
|
|
10891
10887
|
}
|
|
10892
10888
|
}
|
|
10889
|
+
.dark\:data-\[placeholder\]\:text-grey-400 {
|
|
10890
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10891
|
+
&[data-placeholder] {
|
|
10892
|
+
color: var(--color-grey-400);
|
|
10893
|
+
}
|
|
10894
|
+
}
|
|
10895
|
+
}
|
|
10893
10896
|
.dark\:\*\:data-\[slot\=icon\]\:fill-zinc-400 {
|
|
10894
10897
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10895
10898
|
:is(& > *) {
|
|
@@ -11646,6 +11649,13 @@
|
|
|
11646
11649
|
color: var(--muted-foreground);
|
|
11647
11650
|
}
|
|
11648
11651
|
}
|
|
11652
|
+
.dark\:\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-grey-400 {
|
|
11653
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
11654
|
+
& svg:not([class*='text-']) {
|
|
11655
|
+
color: var(--color-grey-400);
|
|
11656
|
+
}
|
|
11657
|
+
}
|
|
11658
|
+
}
|
|
11649
11659
|
.\[\&_svg\:not\(\[class\*\=\\\"size-\\\"\]\)\]\:size-4 {
|
|
11650
11660
|
& svg:not([class*=\"size-\"]) {
|
|
11651
11661
|
width: calc(var(--spacing) * 4);
|
|
@@ -12970,138 +12980,138 @@
|
|
|
12970
12980
|
bottom: 0;
|
|
12971
12981
|
right: 0;
|
|
12972
12982
|
}
|
|
12973
|
-
.dark .code-responsive-wrapper {
|
|
12983
|
+
.dark .code-responsive-wrapper, [data-theme='dark'] .code-responsive-wrapper {
|
|
12974
12984
|
background-color: #111827;
|
|
12975
12985
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fillRule='evenodd'%3E%3Cg fill='%236b7280' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
|
12976
12986
|
}
|
|
12977
|
-
.dark code[class*='language-'], .dark pre[class*='language-'] {
|
|
12987
|
+
.dark code[class*='language-'], .dark pre[class*='language-'], pre.dark[class*='language-'], [data-theme='dark'] code[class*='language-'], [data-theme='dark'] pre[class*='language-'], pre[data-theme='dark'][class*='language-'] {
|
|
12978
12988
|
--tw-text-opacity: 1;
|
|
12979
12989
|
color: rgb(241 126 184 / var(--tw-text-opacity, 1));
|
|
12980
12990
|
}
|
|
12981
|
-
.dark .highlight-line {
|
|
12991
|
+
.dark .highlight-line, [data-theme='dark'] .highlight-line {
|
|
12982
12992
|
--tw-bg-opacity: 1;
|
|
12983
12993
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
|
|
12984
12994
|
}
|
|
12985
|
-
.dark .code-preview-wrapper + .code-syntax-wrapper > .code-syntax > .relative > [data-code-wrapper] > .highlight > pre[class*='language-'], .dark .highlight pre[class*='language-'], .dark :not(pre) > code[class*='language-'], .dark pre[class*='language-'] {
|
|
12995
|
+
.dark .code-preview-wrapper + .code-syntax-wrapper > .code-syntax > .relative > [data-code-wrapper] > .highlight > pre[class*='language-'], [data-theme='dark'] .code-preview-wrapper + .code-syntax-wrapper > .code-syntax > .relative > [data-code-wrapper] > .highlight > pre[class*='language-'], .dark .highlight pre[class*='language-'], [data-theme='dark'] .highlight pre[class*='language-'], .dark :not(pre) > code[class*='language-'], [data-theme='dark'] :not(pre) > code[class*='language-'], .dark pre[class*='language-'], [data-theme='dark'] pre[class*='language-'], pre.dark[class*='language-'], pre[data-theme='dark'][class*='language-'] {
|
|
12986
12996
|
--tw-bg-opacity: 1;
|
|
12987
12997
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
|
|
12988
12998
|
}
|
|
12989
|
-
.dark .token.cdata, .dark .token.comment, .dark .token.doctype, .dark .token.prolog {
|
|
12999
|
+
.dark .token.cdata, .dark .token.comment, .dark .token.doctype, .dark .token.prolog, [data-theme='dark'] .token.cdata, [data-theme='dark'] .token.comment, [data-theme='dark'] .token.doctype, [data-theme='dark'] .token.prolog {
|
|
12990
13000
|
--tw-text-opacity: 1;
|
|
12991
13001
|
color: rgb(156 163 175 / var(--tw-text-opacity, 1));
|
|
12992
13002
|
}
|
|
12993
|
-
.dark .token.punctuation {
|
|
13003
|
+
.dark .token.punctuation, [data-theme='dark'] .token.punctuation {
|
|
12994
13004
|
--tw-text-opacity: 1;
|
|
12995
13005
|
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
12996
13006
|
}
|
|
12997
|
-
.dark .token.class-name, .dark .token.keyword, .dark .token.property, .dark .token.tag {
|
|
13007
|
+
.dark .token.class-name, .dark .token.keyword, .dark .token.property, .dark .token.tag, [data-theme='dark'] .token.class-name, [data-theme='dark'] .token.keyword, [data-theme='dark'] .token.property, [data-theme='dark'] .token.tag {
|
|
12998
13008
|
--tw-text-opacity: 1;
|
|
12999
13009
|
color: rgb(172 148 250 / var(--tw-text-opacity, 1));
|
|
13000
13010
|
}
|
|
13001
|
-
.dark .token.boolean, .dark .token.constant {
|
|
13011
|
+
.dark .token.boolean, .dark .token.constant, [data-theme='dark'] .token.boolean, [data-theme='dark'] .token.constant {
|
|
13002
13012
|
--tw-text-opacity: 1;
|
|
13003
13013
|
color: rgb(52 211 153 / var(--tw-text-opacity, 1));
|
|
13004
13014
|
}
|
|
13005
|
-
.dark .token.deleted, .dark .token.symbol {
|
|
13015
|
+
.dark .token.deleted, .dark .token.symbol, [data-theme='dark'] .token.deleted, [data-theme='dark'] .token.symbol {
|
|
13006
13016
|
--tw-text-opacity: 1;
|
|
13007
13017
|
color: rgb(249 128 128 / var(--tw-text-opacity, 1));
|
|
13008
13018
|
}
|
|
13009
|
-
.dark .token.number {
|
|
13019
|
+
.dark .token.number, [data-theme='dark'] .token.number {
|
|
13010
13020
|
--tw-text-opacity: 1;
|
|
13011
13021
|
color: rgb(241 126 184 / var(--tw-text-opacity, 1));
|
|
13012
13022
|
}
|
|
13013
|
-
.dark .token.attr-name, .dark .token.builtin, .dark .token.char, .dark .token.inserted, .dark .token.selector, .dark .token.string {
|
|
13023
|
+
.dark .token.attr-name, .dark .token.builtin, .dark .token.char, .dark .token.inserted, .dark .token.selector, .dark .token.string, [data-theme='dark'] .token.attr-name, [data-theme='dark'] .token.builtin, [data-theme='dark'] .token.char, [data-theme='dark'] .token.inserted, [data-theme='dark'] .token.selector, [data-theme='dark'] .token.string {
|
|
13014
13024
|
--tw-text-opacity: 1;
|
|
13015
13025
|
color: rgb(56 189 248 / var(--tw-text-opacity, 1));
|
|
13016
13026
|
}
|
|
13017
|
-
.dark .token.variable {
|
|
13027
|
+
.dark .token.variable, [data-theme='dark'] .token.variable {
|
|
13018
13028
|
--tw-text-opacity: 1;
|
|
13019
13029
|
color: rgb(172 148 250 / var(--tw-text-opacity, 1));
|
|
13020
13030
|
}
|
|
13021
|
-
.dark .token.operator {
|
|
13031
|
+
.dark .token.operator, [data-theme='dark'] .token.operator {
|
|
13022
13032
|
--tw-text-opacity: 1;
|
|
13023
13033
|
color: rgb(156 163 175 / var(--tw-text-opacity, 1));
|
|
13024
13034
|
}
|
|
13025
|
-
.dark .token.entity {
|
|
13035
|
+
.dark .token.entity, [data-theme='dark'] .token.entity {
|
|
13026
13036
|
--tw-text-opacity: 1;
|
|
13027
13037
|
color: rgb(250 202 21 / var(--tw-text-opacity, 1));
|
|
13028
13038
|
}
|
|
13029
|
-
.dark .token.url {
|
|
13039
|
+
.dark .token.url, [data-theme='dark'] .token.url {
|
|
13030
13040
|
--tw-text-opacity: 1;
|
|
13031
13041
|
color: rgb(6 182 212 / var(--tw-text-opacity, 1));
|
|
13032
13042
|
}
|
|
13033
|
-
.dark .language-css .token.string, .dark .style .token.string {
|
|
13043
|
+
.dark .language-css .token.string, .dark .style .token.string, [data-theme='dark'] .language-css .token.string, [data-theme='dark'] .style .token.string {
|
|
13034
13044
|
--tw-text-opacity: 1;
|
|
13035
13045
|
color: rgb(249 128 128 / var(--tw-text-opacity, 1));
|
|
13036
13046
|
}
|
|
13037
|
-
.dark .token.atrule, .dark .token.attr-value {
|
|
13047
|
+
.dark .token.atrule, .dark .token.attr-value, [data-theme='dark'] .token.atrule, [data-theme='dark'] .token.attr-value {
|
|
13038
13048
|
--tw-text-opacity: 1;
|
|
13039
13049
|
color: rgb(110 231 183 / var(--tw-text-opacity, 1));
|
|
13040
13050
|
}
|
|
13041
|
-
.dark .token.function {
|
|
13051
|
+
.dark .token.function, [data-theme='dark'] .token.function {
|
|
13042
13052
|
--tw-text-opacity: 1;
|
|
13043
13053
|
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
13044
13054
|
}
|
|
13045
|
-
.dark .token {
|
|
13055
|
+
.dark .token, [data-theme='dark'] .token {
|
|
13046
13056
|
--tw-text-opacity: 1;
|
|
13047
13057
|
color: rgb(156 163 175 / var(--tw-text-opacity, 1));
|
|
13048
13058
|
}
|
|
13049
|
-
.dark code.language-bash, .dark code.language-tsx, .dark pre.language-bash {
|
|
13059
|
+
.dark code.language-bash, .dark code.language-tsx, .dark pre.language-bash, [data-theme='dark'] code.language-bash, [data-theme='dark'] code.language-tsx, [data-theme='dark'] pre.language-bash {
|
|
13050
13060
|
--tw-text-opacity: 1;
|
|
13051
13061
|
color: rgb(34 211 238 / var(--tw-text-opacity, 1));
|
|
13052
13062
|
}
|
|
13053
|
-
.dark code.language-tsx .token.function {
|
|
13063
|
+
.dark code.language-tsx .token.function, [data-theme='dark'] code.language-tsx .token.function {
|
|
13054
13064
|
--tw-text-opacity: 1;
|
|
13055
13065
|
color: rgb(132 225 188 / var(--tw-text-opacity, 1));
|
|
13056
13066
|
}
|
|
13057
|
-
.dark code.language-tsx .token.punctuation {
|
|
13067
|
+
.dark code.language-tsx .token.punctuation, [data-theme='dark'] code.language-tsx .token.punctuation {
|
|
13058
13068
|
--tw-text-opacity: 1;
|
|
13059
13069
|
color: rgb(107 114 128 / var(--tw-text-opacity, 1));
|
|
13060
13070
|
}
|
|
13061
|
-
.dark code.language-tsx .token.keyword {
|
|
13071
|
+
.dark code.language-tsx .token.keyword, [data-theme='dark'] code.language-tsx .token.keyword {
|
|
13062
13072
|
--tw-text-opacity: 1;
|
|
13063
13073
|
color: rgb(232 121 249 / var(--tw-text-opacity, 1));
|
|
13064
13074
|
}
|
|
13065
|
-
.dark code.language-tsx .token.comment {
|
|
13075
|
+
.dark code.language-tsx .token.comment, [data-theme='dark'] code.language-tsx .token.comment {
|
|
13066
13076
|
--tw-text-opacity: 1;
|
|
13067
13077
|
color: rgb(107 114 128 / var(--tw-text-opacity, 1));
|
|
13068
13078
|
}
|
|
13069
|
-
.dark code.language-tsx .token.class-name, .dark code.language-tsx .token.string {
|
|
13079
|
+
.dark code.language-tsx .token.class-name, .dark code.language-tsx .token.string, [data-theme='dark'] code.language-tsx .token.class-name, [data-theme='dark'] code.language-tsx .token.string {
|
|
13070
13080
|
--tw-text-opacity: 1;
|
|
13071
13081
|
color: rgb(172 148 250 / var(--tw-text-opacity, 1));
|
|
13072
13082
|
}
|
|
13073
|
-
.dark code.language-html .token.tag {
|
|
13083
|
+
.dark code.language-html .token.tag, [data-theme='dark'] code.language-html .token.tag {
|
|
13074
13084
|
--tw-text-opacity: 1;
|
|
13075
13085
|
color: rgb(232 121 249 / var(--tw-text-opacity, 1));
|
|
13076
13086
|
}
|
|
13077
|
-
.dark code.language-html .token.attr-name {
|
|
13087
|
+
.dark code.language-html .token.attr-name, [data-theme='dark'] code.language-html .token.attr-name {
|
|
13078
13088
|
color: rgb(156 163 175 / var(--tw-text-opacity, 1));
|
|
13079
13089
|
}
|
|
13080
|
-
.dark code.language-html .token.attr-value {
|
|
13090
|
+
.dark code.language-html .token.attr-value, [data-theme='dark'] code.language-html .token.attr-value {
|
|
13081
13091
|
--tw-text-opacity: 1;
|
|
13082
13092
|
color: rgb(34 211 238 / var(--tw-text-opacity, 1));
|
|
13083
13093
|
}
|
|
13084
|
-
.dark code.language-html .token.punctuation {
|
|
13094
|
+
.dark code.language-html .token.punctuation, [data-theme='dark'] code.language-html .token.punctuation {
|
|
13085
13095
|
--tw-text-opacity: 1;
|
|
13086
13096
|
color: rgb(107 114 128 / var(--tw-text-opacity, 1));
|
|
13087
13097
|
}
|
|
13088
|
-
.dark code.language-html .token.attr-name {
|
|
13098
|
+
.dark code.language-html .token.attr-name, [data-theme='dark'] code.language-html .token.attr-name {
|
|
13089
13099
|
--tw-text-opacity: 1;
|
|
13090
13100
|
color: rgb(49 196 141 / var(--tw-text-opacity, 1));
|
|
13091
13101
|
}
|
|
13092
|
-
.dark code.language-html .token.comment {
|
|
13102
|
+
.dark code.language-html .token.comment, [data-theme='dark'] code.language-html .token.comment {
|
|
13093
13103
|
--tw-text-opacity: 1;
|
|
13094
13104
|
color: rgb(107 114 128 / var(--tw-text-opacity, 1));
|
|
13095
13105
|
}
|
|
13096
|
-
.dark #carbonads {
|
|
13106
|
+
.dark #carbonads, [data-theme='dark'] #carbonads {
|
|
13097
13107
|
--tw-bg-opacity: 1;
|
|
13098
13108
|
--tw-text-opacity: 1;
|
|
13099
13109
|
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
13100
13110
|
}
|
|
13101
|
-
.dark #carbonads, .dark #carbonads .carbon-poweredby {
|
|
13111
|
+
.dark #carbonads, .dark #carbonads .carbon-poweredby, [data-theme='dark'] #carbonads, [data-theme='dark'] #carbonads .carbon-poweredby {
|
|
13102
13112
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
|
|
13103
13113
|
}
|
|
13104
|
-
.dark #carbonads .carbon-poweredby {
|
|
13114
|
+
.dark #carbonads .carbon-poweredby, [data-theme='dark'] #carbonads .carbon-poweredby {
|
|
13105
13115
|
--tw-bg-opacity: 1;
|
|
13106
13116
|
}
|
|
13107
13117
|
.prose {
|
package/dist/index.cjs
CHANGED
|
@@ -13602,17 +13602,27 @@ function CodeHighlight({
|
|
|
13602
13602
|
language,
|
|
13603
13603
|
className,
|
|
13604
13604
|
withCopy = false,
|
|
13605
|
+
"data-theme": dataTheme,
|
|
13605
13606
|
...props
|
|
13606
13607
|
}) {
|
|
13607
13608
|
const highlightedCode = Prism__default.default.highlight(code.trim(), Prism__default.default.languages[language], language);
|
|
13608
13609
|
const Component2 = withCopy ? PreWithCopy : "pre";
|
|
13609
|
-
|
|
13610
|
-
|
|
13610
|
+
const themeClassName = dataTheme !== void 0 ? dataTheme === "dark" ? "dark" : "light" : void 0;
|
|
13611
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13612
|
+
Component2,
|
|
13611
13613
|
{
|
|
13612
|
-
className: `language-${language}`,
|
|
13613
|
-
|
|
13614
|
+
className: tailwindMerge.twMerge(`language-${language}`, themeClassName, className),
|
|
13615
|
+
"data-theme": dataTheme,
|
|
13616
|
+
...props,
|
|
13617
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13618
|
+
"code",
|
|
13619
|
+
{
|
|
13620
|
+
className: `language-${language}`,
|
|
13621
|
+
dangerouslySetInnerHTML: { __html: highlightedCode }
|
|
13622
|
+
}
|
|
13623
|
+
)
|
|
13614
13624
|
}
|
|
13615
|
-
)
|
|
13625
|
+
);
|
|
13616
13626
|
}
|
|
13617
13627
|
function Popover({ ...props }) {
|
|
13618
13628
|
return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Root, { "data-slot": "popover", ...props });
|
|
@@ -13727,7 +13737,7 @@ function SelectTrigger({
|
|
|
13727
13737
|
"data-size": size,
|
|
13728
13738
|
className: cn(
|
|
13729
13739
|
// Base styles
|
|
13730
|
-
"flex w-full items-center justify-between gap-2 rounded-sm border border-grey-600 bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-grey-600",
|
|
13740
|
+
"flex w-full items-center justify-between gap-2 rounded-sm border border-grey-600 bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-grey-600 dark:[&_svg:not([class*='text-'])]:text-grey-400",
|
|
13731
13741
|
// Disabled styles
|
|
13732
13742
|
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
13733
13743
|
// aria-invalid styles
|
|
@@ -13735,9 +13745,9 @@ function SelectTrigger({
|
|
|
13735
13745
|
// Focus styles
|
|
13736
13746
|
"focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-primary-650/70",
|
|
13737
13747
|
// Placeholder styles
|
|
13738
|
-
"data-[placeholder]:text-grey-600",
|
|
13748
|
+
"data-[placeholder]:text-grey-600 dark:data-[placeholder]:text-grey-400",
|
|
13739
13749
|
// Dark mode styles
|
|
13740
|
-
"dark:bg-input/30 dark:hover:bg-input/50",
|
|
13750
|
+
"dark:bg-input/30 dark:hover:bg-input/50 dark:border-grey-700",
|
|
13741
13751
|
// Size styles
|
|
13742
13752
|
"data-[size=default]:h-12 data-[size=sm]:h-9",
|
|
13743
13753
|
className
|
|
@@ -13762,7 +13772,7 @@ function SelectContent({
|
|
|
13762
13772
|
"data-slot": "select-content",
|
|
13763
13773
|
className: cn(
|
|
13764
13774
|
// Base styles
|
|
13765
|
-
"relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-sm border border-grey-200 bg-white text-grey-800 shadow-md",
|
|
13775
|
+
"relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-sm border border-grey-200 bg-white text-grey-800 shadow-md dark:border-grey-700 dark:bg-grey-900 dark:text-grey-100",
|
|
13766
13776
|
// State styles
|
|
13767
13777
|
"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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
13768
13778
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
@@ -13792,7 +13802,7 @@ function SelectLabel({ className, ...props }) {
|
|
|
13792
13802
|
SelectPrimitive__namespace.Label,
|
|
13793
13803
|
{
|
|
13794
13804
|
"data-slot": "select-label",
|
|
13795
|
-
className: cn("px-2 py-1.5 text-xs text-grey-600", className),
|
|
13805
|
+
className: cn("px-2 py-1.5 text-xs text-grey-600 dark:text-grey-400", className),
|
|
13796
13806
|
...props
|
|
13797
13807
|
}
|
|
13798
13808
|
);
|
|
@@ -13807,7 +13817,7 @@ function SelectItem({
|
|
|
13807
13817
|
{
|
|
13808
13818
|
"data-slot": "select-item",
|
|
13809
13819
|
className: cn(
|
|
13810
|
-
"relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-primary-800/10 focus:font-bold focus:text-primary-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-6 [&_svg:not([class*='text-'])]:text-grey-600 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
13820
|
+
"relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-primary-800/10 focus:font-bold focus:text-primary-800 dark:focus:bg-primary-200/10 dark:focus:text-primary-200 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-6 [&_svg:not([class*='text-'])]:text-grey-600 dark:[&_svg:not([class*='text-'])]:text-grey-400 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
13811
13821
|
className
|
|
13812
13822
|
),
|
|
13813
13823
|
...props,
|
|
@@ -13826,7 +13836,10 @@ function SelectSeparator({
|
|
|
13826
13836
|
SelectPrimitive__namespace.Separator,
|
|
13827
13837
|
{
|
|
13828
13838
|
"data-slot": "select-separator",
|
|
13829
|
-
className: cn(
|
|
13839
|
+
className: cn(
|
|
13840
|
+
"pointer-events-none -mx-1 my-1 h-px bg-primary-800/20 dark:bg-grey-700",
|
|
13841
|
+
className
|
|
13842
|
+
),
|
|
13830
13843
|
...props
|
|
13831
13844
|
}
|
|
13832
13845
|
);
|
|
@@ -14286,18 +14299,18 @@ function TooltipContent({
|
|
|
14286
14299
|
function CodeDemoLoading() {
|
|
14287
14300
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 animate-pulse", children: [
|
|
14288
14301
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full rounded-t-xl border border-grey-200 bg-grey-50 p-4 dark:border-grey-600 dark:bg-grey-700", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 sm:grid-cols-3", children: [
|
|
14289
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-32 rounded bg-grey-200" }),
|
|
14290
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-32 rounded bg-grey-200" }),
|
|
14302
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-32 rounded bg-grey-200 dark:bg-grey-600" }),
|
|
14303
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-32 rounded bg-grey-200 dark:bg-grey-600" }),
|
|
14291
14304
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-3", children: [
|
|
14292
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-20 rounded bg-grey-200" }),
|
|
14293
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-16 rounded bg-grey-200" }),
|
|
14294
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-10 rounded bg-grey-200" })
|
|
14305
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-20 rounded bg-grey-200 dark:bg-grey-600" }),
|
|
14306
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-16 rounded bg-grey-200 dark:bg-grey-600" }),
|
|
14307
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-10 rounded bg-grey-200 dark:bg-grey-600" })
|
|
14295
14308
|
] })
|
|
14296
14309
|
] }) }),
|
|
14297
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex border-x border-grey-200 bg-white bg-gradient-to-r p-5 dark:border-grey-600 dark:bg-grey-900", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-64 w-full rounded bg-grey-200" }) }),
|
|
14310
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex border-x border-grey-200 bg-white bg-gradient-to-r p-5 dark:border-grey-600 dark:bg-grey-900", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-64 w-full rounded bg-grey-200 dark:bg-grey-600" }) }),
|
|
14298
14311
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border border-grey-200 dark:border-grey-600", children: [
|
|
14299
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full rounded-t-md border-b border-grey-200 bg-grey-50 p-2 dark:border-grey-600 dark:bg-grey-700", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-8 w-24 rounded bg-grey-200" }) }),
|
|
14300
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-48 bg-grey-100" })
|
|
14312
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full rounded-t-md border-b border-grey-200 bg-grey-50 p-2 dark:border-grey-600 dark:bg-grey-700", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-8 w-24 rounded bg-grey-200 dark:bg-grey-600" }) }),
|
|
14313
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-48 bg-grey-100 dark:bg-grey-800" })
|
|
14301
14314
|
] })
|
|
14302
14315
|
] });
|
|
14303
14316
|
}
|
|
@@ -14453,6 +14466,7 @@ function CodeDemoContent({ data, showCode = true, controls = defaultControls })
|
|
|
14453
14466
|
const codeItems = getCodeItems(code);
|
|
14454
14467
|
const current = getCurrent(codeItems, tabIndex);
|
|
14455
14468
|
const shouldExpand = getShouldExpand(current.code.trim());
|
|
14469
|
+
const codeTheme = isDarkMode === null ? void 0 : isDarkMode ? "dark" : "light";
|
|
14456
14470
|
const variantLabels = React5__namespace.default.useMemo(() => {
|
|
14457
14471
|
const explicit = data.labels ?? {};
|
|
14458
14472
|
return Object.fromEntries(variants.map((v) => [v, explicit[v] ?? humaniseVariant(v)]));
|
|
@@ -14561,7 +14575,8 @@ function CodeDemoContent({ data, showCode = true, controls = defaultControls })
|
|
|
14561
14575
|
{
|
|
14562
14576
|
className: "!mb-0 !rounded-none",
|
|
14563
14577
|
code: current.code,
|
|
14564
|
-
language: current.language
|
|
14578
|
+
language: current.language,
|
|
14579
|
+
"data-theme": codeTheme
|
|
14565
14580
|
}
|
|
14566
14581
|
)
|
|
14567
14582
|
}
|
|
@@ -14584,12 +14599,21 @@ function CodeDemo(props) {
|
|
|
14584
14599
|
var IFrame = React5__namespace.default.forwardRef(
|
|
14585
14600
|
({ iframe, isRTL, isDarkMode }, ref) => {
|
|
14586
14601
|
React5.useEffect(() => {
|
|
14587
|
-
const
|
|
14588
|
-
|
|
14589
|
-
|
|
14602
|
+
const frame2 = ref?.current;
|
|
14603
|
+
if (!frame2) return;
|
|
14604
|
+
const applyFrameSettings = () => {
|
|
14605
|
+
const document2 = frame2.contentDocument;
|
|
14606
|
+
const root = document2?.documentElement;
|
|
14607
|
+
if (!document2 || !root) return;
|
|
14590
14608
|
root.setAttribute("dir", isRTL ? "rtl" : "ltr");
|
|
14591
|
-
|
|
14592
|
-
|
|
14609
|
+
if (isDarkMode !== null) {
|
|
14610
|
+
root.setAttribute("data-theme", isDarkMode ? "dark" : "light");
|
|
14611
|
+
root.classList.toggle("dark", !!isDarkMode);
|
|
14612
|
+
}
|
|
14613
|
+
};
|
|
14614
|
+
applyFrameSettings();
|
|
14615
|
+
frame2.addEventListener("load", applyFrameSettings);
|
|
14616
|
+
return () => frame2.removeEventListener("load", applyFrameSettings);
|
|
14593
14617
|
}, [isRTL, isDarkMode, ref]);
|
|
14594
14618
|
if (typeof iframe === "number") {
|
|
14595
14619
|
return /* @__PURE__ */ jsxRuntime.jsx("iframe", { ref, src: "", height: iframe, width: "100%", className: "w-full" });
|
|
@@ -14646,9 +14670,9 @@ function CodePreview({
|
|
|
14646
14670
|
{
|
|
14647
14671
|
className: tailwindMerge.twMerge(
|
|
14648
14672
|
"code-responsive-wrapper w-full",
|
|
14649
|
-
isDarkMode !== null
|
|
14673
|
+
isDarkMode !== null ? isDarkMode ? "dark" : "light" : void 0
|
|
14650
14674
|
),
|
|
14651
|
-
"data-theme": isDarkMode !== null
|
|
14675
|
+
"data-theme": isDarkMode !== null ? isDarkMode ? "dark" : "light" : void 0,
|
|
14652
14676
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14653
14677
|
"div",
|
|
14654
14678
|
{
|
|
@@ -17572,7 +17596,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
17572
17596
|
|
|
17573
17597
|
// package.json
|
|
17574
17598
|
var package_default = {
|
|
17575
|
-
version: "1.
|
|
17599
|
+
version: "1.93.0"};
|
|
17576
17600
|
var SluggerContext = React5__namespace.default.createContext(null);
|
|
17577
17601
|
function flattenText(nodes) {
|
|
17578
17602
|
if (nodes == null || typeof nodes === "boolean") return "";
|
|
@@ -18976,13 +19000,15 @@ function Strong({ className, ...props }) {
|
|
|
18976
19000
|
return /* @__PURE__ */ jsxRuntime.jsx("strong", { ...props, className: clsx12__default.default(className, "font-medium text-grey-950 dark:text-white") });
|
|
18977
19001
|
}
|
|
18978
19002
|
function Code({ className, ...props }) {
|
|
19003
|
+
const hasLanguageClass = typeof className === "string" && className.includes("language-");
|
|
18979
19004
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18980
19005
|
"code",
|
|
18981
19006
|
{
|
|
18982
19007
|
...props,
|
|
18983
19008
|
className: clsx12__default.default(
|
|
18984
19009
|
className,
|
|
18985
|
-
|
|
19010
|
+
!hasLanguageClass && "language-plaintext",
|
|
19011
|
+
"text-sm sm:text-[0.8125rem]"
|
|
18986
19012
|
)
|
|
18987
19013
|
}
|
|
18988
19014
|
);
|