diff --git a/apps/docs/public/prism-themes/ad4cf4d8bf00e461.min.css b/apps/docs/public/prism-themes/0dd9bc8824fd31dd.min.css similarity index 81% rename from apps/docs/public/prism-themes/ad4cf4d8bf00e461.min.css rename to apps/docs/public/prism-themes/0dd9bc8824fd31dd.min.css index 51271a7018..54a947a5b4 100644 --- a/apps/docs/public/prism-themes/ad4cf4d8bf00e461.min.css +++ b/apps/docs/public/prism-themes/0dd9bc8824fd31dd.min.css @@ -1 +1 @@ -@layer code{:root{--code-font-family:"Operator Mono","Fira Code",Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;--code-font-size:17px;--code-line-height:25px;--code-tab-size:4}code[class*=language-],pre[class*=language-]{color:#9efeff;direction:ltr;font-family:var(--code-font-family);font-size:var(--code-font-size);font-weight:400;-webkit-hyphens:none;hyphens:none;letter-spacing:.5px;line-height:var(--code-line-height);-moz-tab-size:var(--code-tab-size);-o-tab-size:var(--code-tab-size);tab-size:var(--code-tab-size);text-align:left;text-shadow:0 1px #222245;white-space:pre;word-break:normal;word-spacing:normal}pre[class*=language-]{margin:.5em 0;overflow:auto;padding:2em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#1e1e3f}:not(pre)>code[class*=language-]{border-radius:.3em;padding:.1em}.token{font-weight:400}.token.cdata,.token.comment,.token.prolog{color:#b362ff}.token.atrule,.token.delimiter,.token.important,.token.keyword,.token.selector{color:#ff9d00}.token.attr-name,.token.operator{color:#ffb454}.token.punctuation{color:#fff}.token.boolean{color:#ff628c}.token.builtin,.token.doctype,.token.tag,.token.tag .punctuation{color:#ff9d00}.token.entity,.token.symbol{color:#6897bb}.token.constant,.token.number,.token.property,.token.variable{color:#ff628c}.token.char,.token.string{color:#a5ff90}.token.attr-value,.token.attr-value .punctuation{color:#a5c261}.token.attr-value .punctuation:first-child{color:#a9b7c6}.token.url{color:#287bde;text-decoration:underline}.token.function{color:#fad000}.token.regex{background:#364135}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.inserted{background:#0f0}.token.deleted{background:#ff000d}code.language-css .token.property,code.language-css .token.property+.token.punctuation{color:#a9b7c6}code.language-css .token.id{color:#ffc66d}code.language-css .token.selector>.token.attribute,code.language-css .token.selector>.token.class,code.language-css .token.selector>.token.pseudo-class,code.language-css .token.selector>.token.pseudo-element{color:#ffc66d}.token.class-name{color:#fb94ff}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{background:none}} \ No newline at end of file +@layer code{:root{--code-font-family:"Operator Mono","Fira Code",Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;--code-font-size:17px;--code-line-height:25px;--code-tab-size:4}code[class*=language-],pre[class*=language-]{color:#9efeff;direction:ltr;font-family:var(--code-font-family);font-size:var(--code-font-size);font-weight:400;-webkit-hyphens:none;hyphens:none;letter-spacing:.5px;line-height:var(--code-line-height);-moz-tab-size:var(--code-tab-size);-o-tab-size:var(--code-tab-size);tab-size:var(--code-tab-size);text-align:left;text-shadow:0 1px #222245;white-space:pre;word-break:normal;word-spacing:normal}pre[class*=language-]{margin:.5em 0;overflow:auto;padding:2em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#1e1e3f}:not(pre)>code[class*=language-]{border-radius:.3em;padding:.1em}.token{font-weight:400}.token.cdata,.token.comment,.token.prolog{color:#b362ff}.token.atrule,.token.delimiter,.token.important,.token.keyword,.token.selector{color:#ff9d00}.token.attr-name,.token.operator{color:#ffb454}.token.punctuation{color:#fff}.token.boolean{color:#ff628c}.token.builtin,.token.doctype,.token.tag,.token.tag .punctuation{color:#ff9d00}.token.entity,.token.symbol{color:#6897bb}.token.constant,.token.number,.token.property,.token.variable{color:#ff628c}.token.char,.token.string{color:#a5ff90}.token.attr-value,.token.attr-value .punctuation{color:#a5c261}.token.attr-value .punctuation:first-child{color:#a9b7c6}.token.url{color:#287bde;text-decoration:underline}.token.function{color:#fad000}.token.regex{background:#364135}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.inserted{background:#0f0}.token.deleted{background:#ff000d}code.language-css .token.property,code.language-css .token.property+.token.punctuation{color:#a9b7c6}code.language-css .token.id,code.language-css .token.selector>.token.attribute,code.language-css .token.selector>.token.class,code.language-css .token.selector>.token.pseudo-class,code.language-css .token.selector>.token.pseudo-element{color:#ffc66d}.token.class-name{color:#fb94ff}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{background:none}} \ No newline at end of file diff --git a/apps/docs/public/prism-themes/3516b127e246b234.min.css b/apps/docs/public/prism-themes/beb64ac6b3ce6bcb.min.css similarity index 54% rename from apps/docs/public/prism-themes/3516b127e246b234.min.css rename to apps/docs/public/prism-themes/beb64ac6b3ce6bcb.min.css index 2abbf6bb2d..3a3d006c9f 100644 --- a/apps/docs/public/prism-themes/3516b127e246b234.min.css +++ b/apps/docs/public/prism-themes/beb64ac6b3ce6bcb.min.css @@ -1 +1 @@ -@layer code{:root{--code-font-family:var(--source-code-pro,"Source Code Pro"),Consolas,Monaco,monospace}code[class*=language-],pre[class*=language-]{direction:ltr;font-family:var(--code-font-family)}pre[class*=language-]{background-color:#002b36;color:#93a1a1;-webkit-hyphens:none;hyphens:none;margin:.5em 0;min-height:calc(var(--rmd-button-text-min-height) + .5em);overflow:auto;padding:1em;white-space:pre}pre[class*=language-] ::-moz-selection, pre[class*=language-]::-moz-selection{background-color:#268bd2;color:#fdf6e3}pre[class*=language-] ::selection,pre[class*=language-]::selection{background-color:#268bd2;color:#fdf6e3}pre>code[class*=language-]{font-size:1em}.token{position:relative;z-index:1}.token.comment,.token.doctype{color:#586e75}.token.inserted,.token.keyword{color:#859900}.token.punctuation{color:#586e75}.language-tsx .token.attr-value,.token.string{color:#2aa198}.token.class-name,.token.selector,.token.tag{color:#268bd2}.token.attr-name,.token.builtin,.token.property{color:#b58900}.token.interpolation,.token.script{color:#93a1a1}.token.boolean,.token.deleted,.token.interpolation-punctuation,.token.number{color:#d30102}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.language-scss .token.function,.language-scss .token.variable{color:#268bd2}.language-ts .token+.class-name{color:#93a1a1}.language-tsx .function .maybe-class-name{color:#268bd2}.language-ts .token.number,.language-tsx .token.number{color:inherit}.language-ts .token.keyword.module,.language-tsx .token.keyword.module{color:#d30102}.language-ts .token.keyword.module+.keyword,.language-tsx .token.keyword.module+.keyword{color:#268bd2}.language-ts .token.spread,.language-tsx .token.spread{color:#93a1a1}.language-ts .token.spread .token.punctuation,.language-tsx .token.spread .token.punctuation{color:#d30102}.language-scss .token.function{color:#cb4b16}.language-bash .token.function,.language-sh .token.function,.language-shell .token.function{color:#268bd2}.language-bash .token.parameter,.language-sh .token.function,.language-shell .token.parameter{color:#cb4b16}} \ No newline at end of file +@layer code{:root{--code-font-family:var(--source-code-pro,"Source Code Pro"),Consolas,Monaco,monospace}code[class*=language-],pre[class*=language-]{direction:ltr;font-family:var(--code-font-family)}pre[class*=language-]{background-color:#002b36;color:#93a1a1;-webkit-hyphens:none;hyphens:none;margin:.5em 0;min-height:calc(var(--rmd-button-text-min-height) + .5em);overflow:auto;padding:1em;white-space:pre}pre[class*=language-] ::-moz-selection, pre[class*=language-]::-moz-selection{background-color:#268bd2;color:#fdf6e3}pre[class*=language-] ::selection,pre[class*=language-]::selection{background-color:#268bd2;color:#fdf6e3}pre>code[class*=language-]{font-size:1em}.token{position:relative;z-index:1}.token.comment,.token.doctype{color:#586e75}.token.inserted,.token.keyword{color:#859900}.token.punctuation{color:#586e75}.language-tsx .token.attr-value,.token.string{color:#2aa198}.token.class-name,.token.selector,.token.tag{color:#268bd2}.token.attr-name,.token.builtin,.token.property{color:#b58900}.token.interpolation,.token.script{color:#93a1a1}.token.boolean,.token.deleted,.token.interpolation-punctuation,.token.number{color:#d30102}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.language-bash .token.function,.language-css .token.function,.language-sh .token.function,.language-shell .token.function{color:#cb4b16}.language-scss .token.number,.language-scss .token.unit{color:#6c71c4}.language-scss .token.function,.language-scss .token.variable{color:#268bd2}.language-ts .token+.class-name{color:#93a1a1}.language-tsx .function .maybe-class-name{color:#268bd2}.language-ts .token.number,.language-tsx .token.number{color:inherit}.language-ts .function,.language-tsx .function{color:#268bd2}.language-ts .keyword+.keyword+.function,.language-tsx .keyword+.keyword+.function{color:inherit}.language-ts .token.keyword.module,.language-tsx .token.keyword.module{color:#d30102}.language-ts .token.keyword.module+.keyword,.language-tsx .token.keyword.module+.keyword{color:#268bd2}.language-ts .token.spread,.language-tsx .token.spread{color:#93a1a1}.language-ts .token.spread .token.punctuation,.language-tsx .token.spread .token.punctuation{color:#d30102}} \ No newline at end of file diff --git a/apps/docs/public/prism-themes/de476b82cb81da51.min.css b/apps/docs/public/prism-themes/f35b8154c6b86dcc.min.css similarity index 88% rename from apps/docs/public/prism-themes/de476b82cb81da51.min.css rename to apps/docs/public/prism-themes/f35b8154c6b86dcc.min.css index fcd08e03ef..5c76ae2a76 100644 --- a/apps/docs/public/prism-themes/de476b82cb81da51.min.css +++ b/apps/docs/public/prism-themes/f35b8154c6b86dcc.min.css @@ -1 +1 @@ -@layer code{:root{--code-font-family:Consolas,Monaco,"Andale Mono",monospace;--code-line-height:1.5;--code-padding:1em;--code-tab-size:4}code[class*=language-],pre[class*=language-]{color:#a9b7c6;direction:ltr;font-family:var(--code-font-family);-webkit-hyphens:none;hyphens:none;line-height:var(--code-line-height);-moz-tab-size:var(--code-tab-size);-o-tab-size:var(--code-tab-size);tab-size:var(--code-tab-size);text-align:left;white-space:pre;word-break:normal;word-spacing:normal}code[class*=language-] ::-moz-selection, code[class*=language-]::-moz-selection, pre[class*=language-] ::-moz-selection, pre[class*=language-]::-moz-selection{background:rgba(33,66,131,.85);color:inherit}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{background:rgba(33,66,131,.85);color:inherit}pre[class*=language-]{background:#2b2b2b;margin:.5em 0;overflow:auto;padding:var(--code-padding)}.token.cdata,.token.comment,.token.prolog{color:grey}.token.atrule,.token.boolean,.token.delimiter,.token.important,.token.keyword,.token.selector{color:#cc7832}.token.attr-name,.token.operator,.token.punctuation{color:#a9b7c6}.token.builtin,.token.doctype,.token.tag,.token.tag .punctuation{color:#e8bf6a}.token.entity,.token.number,.token.symbol{color:#6897bb}.token.constant,.token.property,.token.variable{color:#9876aa}.token.char,.token.string{color:#6a8759}.token.attr-value,.token.attr-value .punctuation{color:#a5c261}.token.attr-value .punctuation:first-child{color:#a9b7c6}.token.url{color:#287bde;text-decoration:underline}.token.function{color:#ffc66d}.token.regex{background:#364135}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.inserted{background:#294436}.token.deleted{background:#484a4a}code.language-css .token.property,code.language-css .token.property+.token.punctuation{color:#a9b7c6}code.language-css .token.id{color:#ffc66d}code.language-css .token.selector>.token.attribute,code.language-css .token.selector>.token.class,code.language-css .token.selector>.token.pseudo-class,code.language-css .token.selector>.token.pseudo-element{color:#ffc66d}} \ No newline at end of file +@layer code{:root{--code-font-family:Consolas,Monaco,"Andale Mono",monospace;--code-line-height:1.5;--code-padding:1em;--code-tab-size:4}code[class*=language-],pre[class*=language-]{color:#a9b7c6;direction:ltr;font-family:var(--code-font-family);-webkit-hyphens:none;hyphens:none;line-height:var(--code-line-height);-moz-tab-size:var(--code-tab-size);-o-tab-size:var(--code-tab-size);tab-size:var(--code-tab-size);text-align:left;white-space:pre;word-break:normal;word-spacing:normal}code[class*=language-] ::-moz-selection, code[class*=language-]::-moz-selection, pre[class*=language-] ::-moz-selection, pre[class*=language-]::-moz-selection{background:rgba(33,66,131,.85);color:inherit}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{background:rgba(33,66,131,.85);color:inherit}pre[class*=language-]{background:#2b2b2b;margin:.5em 0;overflow:auto;padding:var(--code-padding)}.token.cdata,.token.comment,.token.prolog{color:grey}.token.atrule,.token.boolean,.token.delimiter,.token.important,.token.keyword,.token.selector{color:#cc7832}.token.attr-name,.token.operator,.token.punctuation{color:#a9b7c6}.token.builtin,.token.doctype,.token.tag,.token.tag .punctuation{color:#e8bf6a}.token.entity,.token.number,.token.symbol{color:#6897bb}.token.constant,.token.property,.token.variable{color:#9876aa}.token.char,.token.string{color:#6a8759}.token.attr-value,.token.attr-value .punctuation{color:#a5c261}.token.attr-value .punctuation:first-child{color:#a9b7c6}.token.url{color:#287bde;text-decoration:underline}.token.function{color:#ffc66d}.token.regex{background:#364135}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.inserted{background:#294436}.token.deleted{background:#484a4a}code.language-css .token.property,code.language-css .token.property+.token.punctuation{color:#a9b7c6}code.language-css .token.id,code.language-css .token.selector>.token.attribute,code.language-css .token.selector>.token.class,code.language-css .token.selector>.token.pseudo-class,code.language-css .token.selector>.token.pseudo-element{color:#ffc66d}} \ No newline at end of file diff --git a/apps/docs/src/app/(main)/(markdown)/(demos)/components/autocomplete/CustomizingInlineChipsExample.tsx b/apps/docs/src/app/(main)/(markdown)/(demos)/components/autocomplete/CustomizingInlineChipsExample.tsx index 3603659f75..38c6dbbaaa 100644 --- a/apps/docs/src/app/(main)/(markdown)/(demos)/components/autocomplete/CustomizingInlineChipsExample.tsx +++ b/apps/docs/src/app/(main)/(markdown)/(demos)/components/autocomplete/CustomizingInlineChipsExample.tsx @@ -1,10 +1,13 @@ "use client"; -import { desserts } from "@/constants/desserts.js"; +import { type Dessert, desserts } from "@/constants/desserts.js"; import { Autocomplete } from "@react-md/core/autocomplete/Autocomplete"; import FavoriteIcon from "node_modules/@react-md/material-icons/src/FavoriteIcon.jsx"; import { type ReactElement } from "react"; export default function CustomizingInlineChipsExample(): ReactElement { + const isDisabled = (option: Dessert): boolean => + option === desserts[0] || option === desserts[1] || option === desserts[4]; + return ( <> dessert.name} + getOptionProps={({ option }) => { + return { + disabled: isDisabled(option), + }; + }} getChipProps={({ option, index }) => { return { theme: "outline", leftAddon: , - disabled: index < 3, + disabled: isDisabled(option), children: `${option.name} ${index + 1}`, }; }} diff --git a/apps/docs/src/components/DemoCode/ScssCodeEditor.tsx b/apps/docs/src/components/DemoCode/ScssCodeEditor.tsx index a575fb12dc..b38655c265 100644 --- a/apps/docs/src/components/DemoCode/ScssCodeEditor.tsx +++ b/apps/docs/src/components/DemoCode/ScssCodeEditor.tsx @@ -42,7 +42,7 @@ export function ScssCodeEditor(props: ScssCodeEditorProps): ReactElement { { const contentHashName = createHash("sha256") diff --git a/packages/docs-generator/src/scripts/vim-solarized-dark.scss b/packages/docs-generator/src/scripts/vim-solarized-dark.scss index bdfc6f677d..536190cfed 100644 --- a/packages/docs-generator/src/scripts/vim-solarized-dark.scss +++ b/packages/docs-generator/src/scripts/vim-solarized-dark.scss @@ -116,9 +116,25 @@ $green: #859900; } } - .language-scss .token.function, - .language-scss .token.variable { - color: $blue; + .language-sh, + .language-bash, + .language-shell, + .language-css { + .token.function { + color: $orange; + } + } + + .language-scss { + .token.unit, + .token.number { + color: $violet; + } + + .token.function, + .token.variable { + color: $blue; + } } .language-ts .token + .class-name { @@ -135,6 +151,14 @@ $green: #859900; color: inherit; } + .function { + color: $blue; + } + + .keyword + .keyword + .function { + color: inherit; + } + .token.keyword.module { color: $red; @@ -151,20 +175,4 @@ $green: #859900; } } } - - .language-scss .token.function { - color: $orange; - } - - .language-sh .token.function, - .language-bash .token.function, - .language-shell .token.function { - color: $blue; - } - - .language-sh .token.function, - .language-bash .token.parameter, - .language-shell .token.parameter { - color: $orange; - } }