@kubetail/ui 0.1.5 → 0.1.7
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/elements/FormCheck.cjs +1 -1
- package/dist/elements/FormCheck.cjs.map +1 -1
- package/dist/elements/FormCheck.js +1 -1
- package/dist/elements/FormCheck.js.map +1 -1
- package/dist/elements/FormControl.cjs +1 -1
- package/dist/elements/FormControl.cjs.map +1 -1
- package/dist/elements/FormControl.js +1 -1
- package/dist/elements/FormControl.js.map +1 -1
- package/dist/elements/FormSelect.cjs +1 -1
- package/dist/elements/FormSelect.cjs.map +1 -1
- package/dist/elements/FormSelect.js +1 -1
- package/dist/elements/FormSelect.js.map +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +2 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),u=require("react"),l=require("../lib/utils.cjs"),m="flex items-center",d="h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),u=require("react"),l=require("../lib/utils.cjs"),m="flex items-center",d="h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:opacity-50",f="ml-2 block text-sm text-chrome-900",t=u.forwardRef(({as:c="input",className:o,id:s,label:r,...n},i)=>{const a=c;return e.jsxs("div",{className:l.cn(m,o),children:[e.jsx(a,{...n,ref:i,id:s,type:"checkbox",className:d}),r&&e.jsx("label",{htmlFor:s,className:f,children:r})]})});t.displayName="FormCheck";module.exports=t;
|
|
2
2
|
//# sourceMappingURL=FormCheck.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCheck.cjs","sources":["../../src/elements/FormCheck.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst wrapperBaseCls = 'flex items-center';\nconst inputBaseCls = 'h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
1
|
+
{"version":3,"file":"FormCheck.cjs","sources":["../../src/elements/FormCheck.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst wrapperBaseCls = 'flex items-center';\nconst inputBaseCls = 'h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:opacity-50';\nconst labelBaseCls = 'ml-2 block text-sm text-chrome-900';\nconst FormCheck = forwardRef(({ as = 'input', className, id, label, ...props }, ref) => {\n const Tag = as;\n return (_jsxs(\"div\", { className: cn(wrapperBaseCls, className), children: [_jsx(Tag, { ...props, ref: ref, id: id, type: \"checkbox\", className: inputBaseCls }), label && (_jsx(\"label\", { htmlFor: id, className: labelBaseCls, children: label }))] }));\n});\nFormCheck.displayName = 'FormCheck';\nexport default FormCheck;\n"],"names":["wrapperBaseCls","inputBaseCls","labelBaseCls","FormCheck","forwardRef","as","className","id","label","props","ref","Tag","_jsxs","cn","_jsx"],"mappings":"mGAgBMA,EAAiB,oBACjBC,EAAe,gMACfC,EAAe,qCACfC,EAAYC,EAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,GAAAC,EAAI,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAAQ,CACpF,MAAMC,EAAMN,EACZ,OAAQO,EAAAA,KAAM,MAAO,CAAE,UAAWC,EAAA,GAAGb,EAAgBM,CAAS,EAAG,SAAU,CAACQ,MAAKH,EAAK,CAAE,GAAGF,EAAO,IAAAC,EAAU,GAAAH,EAAQ,KAAM,WAAY,UAAWN,CAAc,CAAA,EAAGO,GAAUM,EAAAA,IAAK,QAAS,CAAE,QAASP,EAAI,UAAWL,EAAc,SAAUM,CAAA,CAAO,CAAE,EAAG,CAC5P,CAAC,EACDL,EAAU,YAAc"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { cn as m } from "../lib/utils.js";
|
|
4
|
-
const f = "flex items-center", u = "h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
4
|
+
const f = "flex items-center", u = "h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:opacity-50", p = "ml-2 block text-sm text-chrome-900", d = l(({ as: s = "input", className: t, id: e, label: o, ...c }, n) => {
|
|
5
5
|
const a = s;
|
|
6
6
|
return i("div", { className: m(f, t), children: [r(a, { ...c, ref: n, id: e, type: "checkbox", className: u }), o && r("label", { htmlFor: e, className: p, children: o })] });
|
|
7
7
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCheck.js","sources":["../../src/elements/FormCheck.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst wrapperBaseCls = 'flex items-center';\nconst inputBaseCls = 'h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
1
|
+
{"version":3,"file":"FormCheck.js","sources":["../../src/elements/FormCheck.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst wrapperBaseCls = 'flex items-center';\nconst inputBaseCls = 'h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:opacity-50';\nconst labelBaseCls = 'ml-2 block text-sm text-chrome-900';\nconst FormCheck = forwardRef(({ as = 'input', className, id, label, ...props }, ref) => {\n const Tag = as;\n return (_jsxs(\"div\", { className: cn(wrapperBaseCls, className), children: [_jsx(Tag, { ...props, ref: ref, id: id, type: \"checkbox\", className: inputBaseCls }), label && (_jsx(\"label\", { htmlFor: id, className: labelBaseCls, children: label }))] }));\n});\nFormCheck.displayName = 'FormCheck';\nexport default FormCheck;\n"],"names":["wrapperBaseCls","inputBaseCls","labelBaseCls","FormCheck","forwardRef","as","className","id","label","props","ref","Tag","_jsxs","cn","_jsx"],"mappings":";;;AAgBA,MAAMA,IAAiB,qBACjBC,IAAe,iMACfC,IAAe,sCACfC,IAAYC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,IAAAC,GAAI,OAAAC,GAAO,GAAGC,EAAM,GAAGC,MAAQ;AACpF,QAAMC,IAAMN;AACZ,SAAQO,EAAM,OAAO,EAAE,WAAWC,EAAGb,GAAgBM,CAAS,GAAG,UAAU,CAACQ,EAAKH,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,IAAAH,GAAQ,MAAM,YAAY,WAAWN,EAAc,CAAA,GAAGO,KAAUM,EAAK,SAAS,EAAE,SAASP,GAAI,WAAWL,GAAc,UAAUM,EAAA,CAAO,CAAE,GAAG;AAC5P,CAAC;AACDL,EAAU,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const d=require("react/jsx-runtime"),o=require("react"),l=require("../lib/utils.cjs"),a=require("./FormGroup.cjs"),f=require("./FormControlFeedback.cjs"),b="flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
1
|
+
"use strict";const d=require("react/jsx-runtime"),o=require("react"),l=require("../lib/utils.cjs"),a=require("./FormGroup.cjs"),f=require("./FormControlFeedback.cjs"),b="flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium",e=o.forwardRef(({as:r="input",className:t,id:n,...s},c)=>{const i=r,{controlId:u}=o.useContext(a.Context);return d.jsx(i,{...s,ref:c,id:n||u,className:l.cn(b,t)})});e.displayName="FormControl";const m=Object.assign(e,{Feedback:f});module.exports=m;
|
|
2
2
|
//# sourceMappingURL=FormControl.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.cjs","sources":["../../src/elements/FormControl.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nimport FormControlFeedback from './FormControlFeedback';\nconst baseCls = 'flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
1
|
+
{"version":3,"file":"FormControl.cjs","sources":["../../src/elements/FormControl.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nimport FormControlFeedback from './FormControlFeedback';\nconst baseCls = 'flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium';\nconst FormControl = forwardRef(({ as = 'input', className, id, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormControl.displayName = 'FormControl';\nconst FormControlExport = Object.assign(FormControl, {\n Feedback: FormControlFeedback,\n});\nexport default FormControlExport;\n"],"names":["baseCls","FormControl","forwardRef","as","className","id","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn","FormControlExport","FormControlFeedback"],"mappings":"uKAkBMA,EAAU,+UACVC,EAAcC,EAAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,GAAAC,EAAI,GAAGC,CAAM,EAAGC,IAAQ,CAC/E,MAAMC,EAAML,EACN,CAAE,UAAAM,CAAA,EAAcC,EAAA,WAAWC,SAAgB,EACjD,OAAQC,EAAK,IAAAJ,EAAK,CAAE,GAAGF,EAAO,IAAAC,EAAU,GAAIF,GAAMI,EAAW,UAAWI,EAAAA,GAAGb,EAASI,CAAS,EAAG,CACpG,CAAC,EACDH,EAAY,YAAc,cACpB,MAAAa,EAAoB,OAAO,OAAOb,EAAa,CACjD,SAAUc,CACd,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { forwardRef as l, useContext as a } from "react";
|
|
|
3
3
|
import { cn as c } from "../lib/utils.js";
|
|
4
4
|
import { Context as m } from "./FormGroup.js";
|
|
5
5
|
import u from "./FormControlFeedback.js";
|
|
6
|
-
const p = "flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
6
|
+
const p = "flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium", o = l(({ as: r = "input", className: t, id: e, ...n }, s) => {
|
|
7
7
|
const f = r, { controlId: i } = a(m);
|
|
8
8
|
return d(f, { ...n, ref: s, id: e || i, className: c(p, t) });
|
|
9
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.js","sources":["../../src/elements/FormControl.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nimport FormControlFeedback from './FormControlFeedback';\nconst baseCls = 'flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
1
|
+
{"version":3,"file":"FormControl.js","sources":["../../src/elements/FormControl.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nimport FormControlFeedback from './FormControlFeedback';\nconst baseCls = 'flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium';\nconst FormControl = forwardRef(({ as = 'input', className, id, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormControl.displayName = 'FormControl';\nconst FormControlExport = Object.assign(FormControl, {\n Feedback: FormControlFeedback,\n});\nexport default FormControlExport;\n"],"names":["baseCls","FormControl","forwardRef","as","className","id","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn","FormControlExport","FormControlFeedback"],"mappings":";;;;;AAkBA,MAAMA,IAAU,gVACVC,IAAcC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,IAAAC,GAAI,GAAGC,EAAM,GAAGC,MAAQ;AAC/E,QAAMC,IAAML,GACN,EAAE,WAAAM,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAKJ,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,IAAIF,KAAMI,GAAW,WAAWI,EAAGb,GAASI,CAAS,GAAG;AACpG,CAAC;AACDH,EAAY,cAAc;AACpB,MAAAa,IAAoB,OAAO,OAAOb,GAAa;AAAA,EACjD,UAAUc;AACd,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const u=require("react/jsx-runtime"),e=require("react"),i=require("../lib/utils.cjs"),l=require("./FormGroup.cjs"),d="mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),e=require("react"),i=require("../lib/utils.cjs"),l=require("./FormGroup.cjs"),d="mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:opacity-50",r=e.forwardRef(({className:o,id:t,...s},n)=>{const{controlId:c}=e.useContext(l.Context);return u.jsx("select",{...s,ref:n,id:t||c,className:i.cn(d,o)})});r.displayName="FormSelect";module.exports=r;
|
|
2
2
|
//# sourceMappingURL=FormSelect.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelect.cjs","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
1
|
+
{"version":3,"file":"FormSelect.cjs","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:opacity-50';\nconst FormSelect = forwardRef(({ className, id, ...props }, ref) => {\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(\"select\", { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormSelect.displayName = 'FormSelect';\nexport default FormSelect;\n"],"names":["baseCls","FormSelect","forwardRef","className","id","props","ref","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":"gIAiBMA,EAAU,6NACVC,EAAaC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAAC,EAAI,GAAGC,CAAM,EAAGC,IAAQ,CAChE,KAAM,CAAE,UAAAC,CAAA,EAAcC,EAAA,WAAWC,SAAgB,EACjD,OAAQC,EAAK,IAAA,SAAU,CAAE,GAAGL,EAAO,IAAAC,EAAU,GAAIF,GAAMG,EAAW,UAAWI,EAAAA,GAAGX,EAASG,CAAS,EAAG,CACzG,CAAC,EACDF,EAAW,YAAc"}
|
|
@@ -2,7 +2,7 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as c, useContext as f } from "react";
|
|
3
3
|
import { cn as i } from "../lib/utils.js";
|
|
4
4
|
import { Context as u } from "./FormGroup.js";
|
|
5
|
-
const d = "mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
5
|
+
const d = "mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:opacity-50", l = c(({ className: o, id: r, ...t }, e) => {
|
|
6
6
|
const { controlId: n } = f(u);
|
|
7
7
|
return s("select", { ...t, ref: e, id: r || n, className: i(d, o) });
|
|
8
8
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelect.js","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-
|
|
1
|
+
{"version":3,"file":"FormSelect.js","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-1 focus:ring-ring focus:ring-offset-0 disabled:opacity-50';\nconst FormSelect = forwardRef(({ className, id, ...props }, ref) => {\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(\"select\", { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormSelect.displayName = 'FormSelect';\nexport default FormSelect;\n"],"names":["baseCls","FormSelect","forwardRef","className","id","props","ref","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":";;;;AAiBA,MAAMA,IAAU,8NACVC,IAAaC,EAAW,CAAC,EAAE,WAAAC,GAAW,IAAAC,GAAI,GAAGC,EAAM,GAAGC,MAAQ;AAChE,QAAM,EAAE,WAAAC,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAK,UAAU,EAAE,GAAGL,GAAO,KAAAC,GAAU,IAAIF,KAAMG,GAAW,WAAWI,EAAGX,GAASG,CAAS,GAAG;AACzG,CAAC;AACDF,EAAW,cAAc;"}
|
package/dist/plugin.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const u=require("@tailwindcss/forms"),t=require("tailwindcss/plugin"),e=require("tailwindcss/colors"),y=u();function r(o){const g=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,m=o.replace(g,(b,n,d,c)=>n+n+d+d+c+c),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(m);return a?`${parseInt(a[1],16)} ${parseInt(a[2],16)} ${parseInt(a[3],16)}`:""}const h=t(o=>{y.handler(o);const{addBase:g}=o;g({":root":{"--accent":r(e.amber[200]),"--accent-foreground":r(e.gray[800]),"--background":r(e.white),"--border":r(e.gray[200]),"--danger":r(e.red[500]),"--danger-foreground":r(e.white),"--foreground":r(e.gray[900]),"--input":r(e.gray[300]),"--muted":r(e.gray[100]),"--muted-foreground":r(e.gray[400]),"--popover":r(e.white),"--popover-foreground":r(e.gray[900]),"--primary":r("#456EDE"),"--primary-foreground":r(e.white),"--ring":r(e.blue[
|
|
1
|
+
"use strict";const u=require("@tailwindcss/forms"),t=require("tailwindcss/plugin"),e=require("tailwindcss/colors"),y=u();function r(o){const g=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,m=o.replace(g,(b,n,d,c)=>n+n+d+d+c+c),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(m);return a?`${parseInt(a[1],16)} ${parseInt(a[2],16)} ${parseInt(a[3],16)}`:""}const h=t(o=>{y.handler(o);const{addBase:g}=o;g({":root":{"--accent":r(e.amber[200]),"--accent-foreground":r(e.gray[800]),"--background":r(e.white),"--border":r(e.gray[200]),"--danger":r(e.red[500]),"--danger-foreground":r(e.white),"--foreground":r(e.gray[900]),"--input":r(e.gray[300]),"--muted":r(e.gray[100]),"--muted-foreground":r(e.gray[400]),"--popover":r(e.white),"--popover-foreground":r(e.gray[900]),"--primary":r("#456EDE"),"--primary-foreground":r(e.white),"--ring":r(e.blue[400]),"--secondary":r(e.blue[100]),"--secondary-foreground":r(e.gray[800]),"--chrome-50":r(e.gray[50]),"--chrome-100":r(e.gray[100]),"--chrome-200":r(e.gray[200]),"--chrome-300":r(e.gray[300]),"--chrome-400":r(e.gray[400]),"--chrome-500":r(e.gray[500]),"--chrome-600":r(e.gray[600]),"--chrome-700":r(e.gray[700]),"--chrome-800":r(e.gray[800]),"--chrome-900":r(e.gray[900]),"--chrome-950":r(e.gray[950]),"--chrome-foreground":r(e.gray[800]),"--chrome-foreground-muted":r(e.gray[500]),"--chrome-foreground-subtle":r(e.gray[300]),"--chrome-divider":r(e.gray[300])},".dark":{"--accent":r(e.amber[200]),"--accent-foreground":r(e.gray[800]),"--background":r(e.neutral[800]),"--border":r(e.gray[200]),"--danger":r(e.red[500]),"--danger-foreground":r(e.white),"--foreground":r(e.white),"--input":r(e.gray[300]),"--muted":r(e.gray[100]),"--muted-foreground":r(e.gray[600]),"--popover":r(e.neutral[800]),"--popover-foreground":r(e.white),"--primary":r(e.blue[500]),"--primary-foreground":r(e.white),"--ring":r(e.blue[400]),"--secondary":r(e.blue[100]),"--secondary-foreground":r(e.gray[800]),"--chrome-50":r(e.gray[950]),"--chrome-100":r(e.gray[900]),"--chrome-200":r(e.gray[800]),"--chrome-300":r(e.gray[700]),"--chrome-400":r(e.gray[600]),"--chrome-500":r(e.gray[500]),"--chrome-600":r(e.gray[400]),"--chrome-700":r(e.gray[300]),"--chrome-800":r(e.gray[200]),"--chrome-900":r(e.gray[100]),"--chrome-950":r(e.gray[50]),"--chrome-foreground":r(e.white),"--chrome-divider":r(e.gray[700])},"*":{"@apply border-border":""},body:{"@apply bg-background text-foreground":"","font-feature-settings":'"rlig" 1, "calt" 1',"@apply antialiased":""}})},{darkMode:"selector",theme:{screens:{sm:"576px",md:"768px",lg:"992px",xl:"1200px","2xl":"1400px"},extend:{maxWidth:{"max-w-screen-sm":"540px","max-w-screen-md":"720px","max-w-screen-lg":"960px","max-w-screen-xl":"1140px","max-w-screen-2xl":"1320px"},colors:{accent:{DEFAULT:"rgb(var(--accent))",foreground:"rgb(var(--accent-foreground))"},background:{DEFAULT:"rgb(var(--background))"},border:{DEFAULT:"rgb(var(--border))"},danger:{DEFAULT:"rgb(var(--danger))",foreground:"rgb(var(--danger-foreground))"},foreground:{DEFAULT:"rgb(var(--foreground))"},input:{DEFAULT:"rgb(var(--input))"},muted:{DEFAULT:"rgb(var(--muted))",foreground:"rgb(var(--muted-foreground))"},popover:{DEFAULT:"rgb(var(--popover))",foreground:"rgb(var(--popover-foreground))"},primary:{DEFAULT:"rgb(var(--primary))",foreground:"rgb(var(--primary-foreground))"},ring:{DEFAULT:"rgb(var(--ring))"},secondary:{DEFAULT:"rgb(var(--secondary))",foreground:"rgb(var(--secondary-foreground))"},chrome:{50:"rgb(var(--chrome-50))",100:"rgb(var(--chrome-100))",200:"rgb(var(--chrome-200))",300:"rgb(var(--chrome-300))",400:"rgb(var(--chrome-400))",500:"rgb(var(--chrome-500))",600:"rgb(var(--chrome-600))",700:"rgb(var(--chrome-700))",800:"rgb(var(--chrome-800))",900:"rgb(var(--chrome-900))",950:"rgb(var(--chrome-950))",foreground:"rgb(var(--chrome-foreground))",divider:"rgb(var(--chrome-divider))"}}}}});module.exports=h;
|
|
2
2
|
//# sourceMappingURL=plugin.cjs.map
|
package/dist/plugin.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs","sources":["../src/plugin.ts"],"sourcesContent":["// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport forms from '@tailwindcss/forms';\nimport plugin from 'tailwindcss/plugin';\nimport colors from 'tailwindcss/colors';\nconst formsPlugin = forms();\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nfunction hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const hexFixed = hex.replace(shorthandRegex, (_, r, g, b) => (r + r + g + g + b + b));\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexFixed);\n return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : '';\n}\n/**\n * Plugin\n */\nexport default plugin((apiArgs) => {\n // initialize forms plugin\n // @ts-expect-error Expected 0 arguments, but got 1.\n formsPlugin.handler(apiArgs);\n // add custom styles\n const { addBase } = apiArgs;\n addBase({\n ':root': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.white),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.gray[900]),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[400]),\n '--popover': hexToRgb(colors.white),\n '--popover-foreground': hexToRgb(colors.gray[900]),\n '--primary': hexToRgb('#456EDE'),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[200]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[50]),\n '--chrome-100': hexToRgb(colors.gray[100]),\n '--chrome-200': hexToRgb(colors.gray[200]),\n '--chrome-300': hexToRgb(colors.gray[300]),\n '--chrome-400': hexToRgb(colors.gray[400]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[600]),\n '--chrome-700': hexToRgb(colors.gray[700]),\n '--chrome-800': hexToRgb(colors.gray[800]),\n '--chrome-900': hexToRgb(colors.gray[900]),\n '--chrome-950': hexToRgb(colors.gray[950]),\n '--chrome-foreground': hexToRgb(colors.gray[800]),\n '--chrome-foreground-muted': hexToRgb(colors.gray[500]),\n '--chrome-foreground-subtle': hexToRgb(colors.gray[300]),\n '--chrome-divider': hexToRgb(colors.gray[300]),\n },\n '.dark': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.neutral[800]),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.white),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[600]),\n '--popover': hexToRgb(colors.neutral[800]),\n '--popover-foreground': hexToRgb(colors.white),\n '--primary': hexToRgb(colors.blue[500]),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[200]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[950]),\n '--chrome-100': hexToRgb(colors.gray[900]),\n '--chrome-200': hexToRgb(colors.gray[800]),\n '--chrome-300': hexToRgb(colors.gray[700]),\n '--chrome-400': hexToRgb(colors.gray[600]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[400]),\n '--chrome-700': hexToRgb(colors.gray[300]),\n '--chrome-800': hexToRgb(colors.gray[200]),\n '--chrome-900': hexToRgb(colors.gray[100]),\n '--chrome-950': hexToRgb(colors.gray[50]),\n '--chrome-foreground': hexToRgb(colors.white),\n '--chrome-divider': hexToRgb(colors.gray[700]),\n },\n '*': {\n '@apply border-border': '',\n },\n body: {\n '@apply bg-background text-foreground': '',\n 'font-feature-settings': '\"rlig\" 1, \"calt\" 1',\n '@apply antialiased': '',\n },\n });\n}, {\n darkMode: 'selector',\n theme: {\n screens: {\n sm: '576px',\n md: '768px',\n lg: '992px',\n xl: '1200px',\n '2xl': '1400px',\n },\n extend: {\n maxWidth: {\n 'max-w-screen-sm': '540px',\n 'max-w-screen-md': '720px',\n 'max-w-screen-lg': '960px',\n 'max-w-screen-xl': '1140px',\n 'max-w-screen-2xl': '1320px',\n },\n colors: {\n accent: {\n DEFAULT: 'rgb(var(--accent))',\n foreground: 'rgb(var(--accent-foreground))',\n },\n background: {\n DEFAULT: 'rgb(var(--background))',\n },\n border: {\n DEFAULT: 'rgb(var(--border))',\n },\n danger: {\n DEFAULT: 'rgb(var(--danger))',\n foreground: 'rgb(var(--danger-foreground))',\n },\n foreground: {\n DEFAULT: 'rgb(var(--foreground))',\n },\n input: {\n DEFAULT: 'rgb(var(--input))',\n },\n muted: {\n DEFAULT: 'rgb(var(--muted))',\n foreground: 'rgb(var(--muted-foreground))',\n },\n popover: {\n DEFAULT: 'rgb(var(--popover))',\n foreground: 'rgb(var(--popover-foreground))',\n },\n primary: {\n DEFAULT: 'rgb(var(--primary))',\n foreground: 'rgb(var(--primary-foreground))',\n },\n ring: {\n DEFAULT: 'rgb(var(--ring))',\n },\n secondary: {\n DEFAULT: 'rgb(var(--secondary))',\n foreground: 'rgb(var(--secondary-foreground))',\n },\n chrome: {\n 50: 'rgb(var(--chrome-50))',\n 100: 'rgb(var(--chrome-100))',\n 200: 'rgb(var(--chrome-200))',\n 300: 'rgb(var(--chrome-300))',\n 400: 'rgb(var(--chrome-400))',\n 500: 'rgb(var(--chrome-500))',\n 600: 'rgb(var(--chrome-600))',\n 700: 'rgb(var(--chrome-700))',\n 800: 'rgb(var(--chrome-800))',\n 900: 'rgb(var(--chrome-900))',\n 950: 'rgb(var(--chrome-950))',\n foreground: 'rgb(var(--chrome-foreground))',\n divider: 'rgb(var(--chrome-divider))',\n },\n },\n },\n },\n});\n"],"names":["formsPlugin","forms","hexToRgb","hex","shorthandRegex","hexFixed","_","r","g","b","result","plugin","apiArgs","addBase","colors"],"mappings":"mHAgBMA,EAAcC,EAAM,EAE1B,SAASC,EAASC,EAAK,CAEnB,MAAMC,EAAiB,mCACjBC,EAAWF,EAAI,QAAQC,EAAgB,CAACE,EAAGC,EAAGC,EAAGC,IAAOF,EAAIA,EAAIC,EAAIA,EAAIC,EAAIA,CAAE,EAC9EC,EAAS,4CAA4C,KAAKL,CAAQ,EACjE,OAAAK,EAAS,GAAG,SAASA,EAAO,CAAC,EAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,EAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,EAAG,EAAE,C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AK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,WAAY,gCACZ,QAAS,4BAAA,CACb,CACJ,CACJ,CAER,CAAC"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs","sources":["../src/plugin.ts"],"sourcesContent":["// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport forms from '@tailwindcss/forms';\nimport plugin from 'tailwindcss/plugin';\nimport colors from 'tailwindcss/colors';\nconst formsPlugin = forms();\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nfunction hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const hexFixed = hex.replace(shorthandRegex, (_, r, g, b) => (r + r + g + g + b + b));\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexFixed);\n return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : '';\n}\n/**\n * Plugin\n */\nexport default plugin((apiArgs) => {\n // initialize forms plugin\n // @ts-expect-error Expected 0 arguments, but got 1.\n formsPlugin.handler(apiArgs);\n // add custom styles\n const { addBase } = apiArgs;\n addBase({\n ':root': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.white),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.gray[900]),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[400]),\n '--popover': hexToRgb(colors.white),\n '--popover-foreground': hexToRgb(colors.gray[900]),\n '--primary': hexToRgb('#456EDE'),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[400]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[50]),\n '--chrome-100': hexToRgb(colors.gray[100]),\n '--chrome-200': hexToRgb(colors.gray[200]),\n '--chrome-300': hexToRgb(colors.gray[300]),\n '--chrome-400': hexToRgb(colors.gray[400]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[600]),\n '--chrome-700': hexToRgb(colors.gray[700]),\n '--chrome-800': hexToRgb(colors.gray[800]),\n '--chrome-900': hexToRgb(colors.gray[900]),\n '--chrome-950': hexToRgb(colors.gray[950]),\n '--chrome-foreground': hexToRgb(colors.gray[800]),\n '--chrome-foreground-muted': hexToRgb(colors.gray[500]),\n '--chrome-foreground-subtle': hexToRgb(colors.gray[300]),\n '--chrome-divider': hexToRgb(colors.gray[300]),\n },\n '.dark': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.neutral[800]),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.white),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[600]),\n '--popover': hexToRgb(colors.neutral[800]),\n '--popover-foreground': hexToRgb(colors.white),\n '--primary': hexToRgb(colors.blue[500]),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[400]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[950]),\n '--chrome-100': hexToRgb(colors.gray[900]),\n '--chrome-200': hexToRgb(colors.gray[800]),\n '--chrome-300': hexToRgb(colors.gray[700]),\n '--chrome-400': hexToRgb(colors.gray[600]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[400]),\n '--chrome-700': hexToRgb(colors.gray[300]),\n '--chrome-800': hexToRgb(colors.gray[200]),\n '--chrome-900': hexToRgb(colors.gray[100]),\n '--chrome-950': hexToRgb(colors.gray[50]),\n '--chrome-foreground': hexToRgb(colors.white),\n '--chrome-divider': hexToRgb(colors.gray[700]),\n },\n '*': {\n '@apply border-border': '',\n },\n body: {\n '@apply bg-background text-foreground': '',\n 'font-feature-settings': '\"rlig\" 1, \"calt\" 1',\n '@apply antialiased': '',\n },\n });\n}, {\n darkMode: 'selector',\n theme: {\n screens: {\n sm: '576px',\n md: '768px',\n lg: '992px',\n xl: '1200px',\n '2xl': '1400px',\n },\n extend: {\n maxWidth: {\n 'max-w-screen-sm': '540px',\n 'max-w-screen-md': '720px',\n 'max-w-screen-lg': '960px',\n 'max-w-screen-xl': '1140px',\n 'max-w-screen-2xl': '1320px',\n },\n colors: {\n accent: {\n DEFAULT: 'rgb(var(--accent))',\n foreground: 'rgb(var(--accent-foreground))',\n },\n background: {\n DEFAULT: 'rgb(var(--background))',\n },\n border: {\n DEFAULT: 'rgb(var(--border))',\n },\n danger: {\n DEFAULT: 'rgb(var(--danger))',\n foreground: 'rgb(var(--danger-foreground))',\n },\n foreground: {\n DEFAULT: 'rgb(var(--foreground))',\n },\n input: {\n DEFAULT: 'rgb(var(--input))',\n },\n muted: {\n DEFAULT: 'rgb(var(--muted))',\n foreground: 'rgb(var(--muted-foreground))',\n },\n popover: {\n DEFAULT: 'rgb(var(--popover))',\n foreground: 'rgb(var(--popover-foreground))',\n },\n primary: {\n DEFAULT: 'rgb(var(--primary))',\n foreground: 'rgb(var(--primary-foreground))',\n },\n ring: {\n DEFAULT: 'rgb(var(--ring))',\n },\n secondary: {\n DEFAULT: 'rgb(var(--secondary))',\n foreground: 'rgb(var(--secondary-foreground))',\n },\n chrome: {\n 50: 'rgb(var(--chrome-50))',\n 100: 'rgb(var(--chrome-100))',\n 200: 'rgb(var(--chrome-200))',\n 300: 'rgb(var(--chrome-300))',\n 400: 'rgb(var(--chrome-400))',\n 500: 'rgb(var(--chrome-500))',\n 600: 'rgb(var(--chrome-600))',\n 700: 'rgb(var(--chrome-700))',\n 800: 'rgb(var(--chrome-800))',\n 900: 'rgb(var(--chrome-900))',\n 950: 'rgb(var(--chrome-950))',\n foreground: 'rgb(var(--chrome-foreground))',\n divider: 'rgb(var(--chrome-divider))',\n },\n },\n },\n },\n});\n"],"names":["formsPlugin","forms","hexToRgb","hex","shorthandRegex","hexFixed","_","r","g","b","result","plugin","apiArgs","addBase","colors"],"mappings":"mHAgBMA,EAAcC,EAAM,EAE1B,SAASC,EAASC,EAAK,CAEnB,MAAMC,EAAiB,mCACjBC,EAAWF,EAAI,QAAQC,EAAgB,CAACE,EAAGC,EAAGC,EAAGC,IAAOF,EAAIA,EAAIC,EAAIA,EAAIC,EAAIA,CAAE,EAC9EC,EAAS,4CAA4C,KAAKL,CAAQ,EACjE,OAAAK,EAAS,GAAG,SAASA,EAAO,CAAC,EAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,EAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,EAAG,EAAE,CAAC,GAAK,EACzG,CAIA,MAAAC,EAAeA,EAAQC,GAAY,CAG/BZ,EAAY,QAAQY,CAAO,EAErB,KAAA,CAAE,QAAAC,GAAYD,EACZC,EAAA,CACJ,QAAS,CACL,WAAYX,EAASY,EAAO,MAAM,GAAG,CAAC,EACtC,sBAAuBZ,EAASY,EAAO,KAAK,GAAG,CAAC,EAChD,eAAgBZ,EAASY,EAAO,KAAK,EACrC,WAAYZ,EAASY,EAAO,KAAK,G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AASY,EAAO,KAAK,EAAE,CAAC,EACxC,sBAAuBZ,EAASY,EAAO,KAAK,EAC5C,mBAAoBZ,EAASY,EAAO,KAAK,GAAG,CAAC,CACjD,EACA,IAAK,CACD,uBAAwB,EAC5B,EACA,KAAM,CACF,uCAAwC,GACxC,wBAAyB,qBACzB,qBAAsB,EAAA,CAC1B,CACH,CACL,EAAG,CACC,SAAU,WACV,MAAO,CACH,QAAS,CACL,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,SACJ,MAAO,QACX,EACA,OAAQ,CACJ,SAAU,CACN,kBAAmB,QACnB,kBAAmB,QACnB,kBAAmB,QACnB,kBAAmB,SACnB,mBAAoB,QACxB,EACA,OAAQ,CACJ,OAAQ,CACJ,QAAS,qBACT,WAAY,+BAChB,EACA,WAAY,CACR,QAAS,wBACb,EACA,OAAQ,CACJ,QAAS,oBACb,EACA,OAAQ,CACJ,QAAS,qBACT,WAAY,+BAChB,EACA,WAAY,CACR,QAAS,wBACb,EACA,MAAO,CACH,QAAS,mBACb,EACA,MAAO,CACH,QAAS,oBACT,WAAY,8BAChB,EACA,QAAS,CACL,QAAS,sBACT,WAAY,gCAChB,EACA,QAAS,CACL,QAAS,sBACT,WAAY,gCAChB,EACA,KAAM,CACF,QAAS,kBACb,EACA,UAAW,CACP,QAAS,wBACT,WAAY,kCAChB,EACA,OAAQ,CACJ,GAAI,wBACJ,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,WAAY,gCACZ,QAAS,4BAAA,CACb,CACJ,CACJ,CAER,CAAC"}
|
package/dist/plugin.js
CHANGED
|
@@ -25,7 +25,7 @@ const i = t((o) => {
|
|
|
25
25
|
"--popover-foreground": r(e.gray[900]),
|
|
26
26
|
"--primary": r("#456EDE"),
|
|
27
27
|
"--primary-foreground": r(e.white),
|
|
28
|
-
"--ring": r(e.blue[
|
|
28
|
+
"--ring": r(e.blue[400]),
|
|
29
29
|
"--secondary": r(e.blue[100]),
|
|
30
30
|
"--secondary-foreground": r(e.gray[800]),
|
|
31
31
|
"--chrome-50": r(e.gray[50]),
|
|
@@ -59,7 +59,7 @@ const i = t((o) => {
|
|
|
59
59
|
"--popover-foreground": r(e.white),
|
|
60
60
|
"--primary": r(e.blue[500]),
|
|
61
61
|
"--primary-foreground": r(e.white),
|
|
62
|
-
"--ring": r(e.blue[
|
|
62
|
+
"--ring": r(e.blue[400]),
|
|
63
63
|
"--secondary": r(e.blue[100]),
|
|
64
64
|
"--secondary-foreground": r(e.gray[800]),
|
|
65
65
|
"--chrome-50": r(e.gray[950]),
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["../src/plugin.ts"],"sourcesContent":["// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport forms from '@tailwindcss/forms';\nimport plugin from 'tailwindcss/plugin';\nimport colors from 'tailwindcss/colors';\nconst formsPlugin = forms();\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nfunction hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const hexFixed = hex.replace(shorthandRegex, (_, r, g, b) => (r + r + g + g + b + b));\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexFixed);\n return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : '';\n}\n/**\n * Plugin\n */\nexport default plugin((apiArgs) => {\n // initialize forms plugin\n // @ts-expect-error Expected 0 arguments, but got 1.\n formsPlugin.handler(apiArgs);\n // add custom styles\n const { addBase } = apiArgs;\n addBase({\n ':root': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.white),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.gray[900]),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[400]),\n '--popover': hexToRgb(colors.white),\n '--popover-foreground': hexToRgb(colors.gray[900]),\n '--primary': hexToRgb('#456EDE'),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[200]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[50]),\n '--chrome-100': hexToRgb(colors.gray[100]),\n '--chrome-200': hexToRgb(colors.gray[200]),\n '--chrome-300': hexToRgb(colors.gray[300]),\n '--chrome-400': hexToRgb(colors.gray[400]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[600]),\n '--chrome-700': hexToRgb(colors.gray[700]),\n '--chrome-800': hexToRgb(colors.gray[800]),\n '--chrome-900': hexToRgb(colors.gray[900]),\n '--chrome-950': hexToRgb(colors.gray[950]),\n '--chrome-foreground': hexToRgb(colors.gray[800]),\n '--chrome-foreground-muted': hexToRgb(colors.gray[500]),\n '--chrome-foreground-subtle': hexToRgb(colors.gray[300]),\n '--chrome-divider': hexToRgb(colors.gray[300]),\n },\n '.dark': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.neutral[800]),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.white),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[600]),\n '--popover': hexToRgb(colors.neutral[800]),\n '--popover-foreground': hexToRgb(colors.white),\n '--primary': hexToRgb(colors.blue[500]),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[200]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[950]),\n '--chrome-100': hexToRgb(colors.gray[900]),\n '--chrome-200': hexToRgb(colors.gray[800]),\n '--chrome-300': hexToRgb(colors.gray[700]),\n '--chrome-400': hexToRgb(colors.gray[600]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[400]),\n '--chrome-700': hexToRgb(colors.gray[300]),\n '--chrome-800': hexToRgb(colors.gray[200]),\n '--chrome-900': hexToRgb(colors.gray[100]),\n '--chrome-950': hexToRgb(colors.gray[50]),\n '--chrome-foreground': hexToRgb(colors.white),\n '--chrome-divider': hexToRgb(colors.gray[700]),\n },\n '*': {\n '@apply border-border': '',\n },\n body: {\n '@apply bg-background text-foreground': '',\n 'font-feature-settings': '\"rlig\" 1, \"calt\" 1',\n '@apply antialiased': '',\n },\n });\n}, {\n darkMode: 'selector',\n theme: {\n screens: {\n sm: '576px',\n md: '768px',\n lg: '992px',\n xl: '1200px',\n '2xl': '1400px',\n },\n extend: {\n maxWidth: {\n 'max-w-screen-sm': '540px',\n 'max-w-screen-md': '720px',\n 'max-w-screen-lg': '960px',\n 'max-w-screen-xl': '1140px',\n 'max-w-screen-2xl': '1320px',\n },\n colors: {\n accent: {\n DEFAULT: 'rgb(var(--accent))',\n foreground: 'rgb(var(--accent-foreground))',\n },\n background: {\n DEFAULT: 'rgb(var(--background))',\n },\n border: {\n DEFAULT: 'rgb(var(--border))',\n },\n danger: {\n DEFAULT: 'rgb(var(--danger))',\n foreground: 'rgb(var(--danger-foreground))',\n },\n foreground: {\n DEFAULT: 'rgb(var(--foreground))',\n },\n input: {\n DEFAULT: 'rgb(var(--input))',\n },\n muted: {\n DEFAULT: 'rgb(var(--muted))',\n foreground: 'rgb(var(--muted-foreground))',\n },\n popover: {\n DEFAULT: 'rgb(var(--popover))',\n foreground: 'rgb(var(--popover-foreground))',\n },\n primary: {\n DEFAULT: 'rgb(var(--primary))',\n foreground: 'rgb(var(--primary-foreground))',\n },\n ring: {\n DEFAULT: 'rgb(var(--ring))',\n },\n secondary: {\n DEFAULT: 'rgb(var(--secondary))',\n foreground: 'rgb(var(--secondary-foreground))',\n },\n chrome: {\n 50: 'rgb(var(--chrome-50))',\n 100: 'rgb(var(--chrome-100))',\n 200: 'rgb(var(--chrome-200))',\n 300: 'rgb(var(--chrome-300))',\n 400: 'rgb(var(--chrome-400))',\n 500: 'rgb(var(--chrome-500))',\n 600: 'rgb(var(--chrome-600))',\n 700: 'rgb(var(--chrome-700))',\n 800: 'rgb(var(--chrome-800))',\n 900: 'rgb(var(--chrome-900))',\n 950: 'rgb(var(--chrome-950))',\n foreground: 'rgb(var(--chrome-foreground))',\n divider: 'rgb(var(--chrome-divider))',\n },\n },\n },\n },\n});\n"],"names":["formsPlugin","forms","hexToRgb","hex","shorthandRegex","hexFixed","_","r","g","b","result","plugin","apiArgs","addBase","colors"],"mappings":";;;AAgBA,MAAMA,IAAcC,EAAM;AAE1B,SAASC,EAASC,GAAK;AAEnB,QAAMC,IAAiB,oCACjBC,IAAWF,EAAI,QAAQC,GAAgB,CAACE,GAAGC,GAAGC,GAAGC,MAAOF,IAAIA,IAAIC,IAAIA,IAAIC,IAAIA,CAAE,GAC9EC,IAAS,4CAA4C,KAAKL,CAAQ;AACjE,SAAAK,IAAS,GAAG,SAASA,EAAO,CAAC,GAAG,EAAE,CAAC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J,OAAO;AAAA,IACX;AAAA,IACA,QAAQ;AAAA,MACJ,UAAU;AAAA,QACN,mBAAmB;AAAA,QACnB,mBAAmB;AAAA,QACnB,mBAAmB;AAAA,QACnB,mBAAmB;AAAA,QACnB,oBAAoB;AAAA,MACxB;AAAA,MACA,QAAQ;AAAA,QACJ,QAAQ;AAAA,UACJ,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,YAAY;AAAA,UACR,SAAS;AAAA,QACb;AAAA,QACA,QAAQ;AAAA,UACJ,SAAS;AAAA,QACb;AAAA,QACA,QAAQ;AAAA,UACJ,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,YAAY;AAAA,UACR,SAAS;AAAA,QACb;AAAA,QACA,OAAO;AAAA,UACH,SAAS;AAAA,QACb;AAAA,QACA,OAAO;AAAA,UACH,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,SAAS;AAAA,UACL,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,SAAS;AAAA,UACL,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,MAAM;AAAA,UACF,SAAS;AAAA,QACb;AAAA,QACA,WAAW;AAAA,UACP,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,QAAQ;AAAA,UACJ,IAAI;AAAA,UACJ,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,YAAY;AAAA,UACZ,SAAS;AAAA,QAAA;AAAA,MACb;AAAA,IACJ;AAAA,EACJ;AAER,CAAC;"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["../src/plugin.ts"],"sourcesContent":["// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport forms from '@tailwindcss/forms';\nimport plugin from 'tailwindcss/plugin';\nimport colors from 'tailwindcss/colors';\nconst formsPlugin = forms();\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nfunction hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const hexFixed = hex.replace(shorthandRegex, (_, r, g, b) => (r + r + g + g + b + b));\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexFixed);\n return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : '';\n}\n/**\n * Plugin\n */\nexport default plugin((apiArgs) => {\n // initialize forms plugin\n // @ts-expect-error Expected 0 arguments, but got 1.\n formsPlugin.handler(apiArgs);\n // add custom styles\n const { addBase } = apiArgs;\n addBase({\n ':root': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.white),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.gray[900]),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[400]),\n '--popover': hexToRgb(colors.white),\n '--popover-foreground': hexToRgb(colors.gray[900]),\n '--primary': hexToRgb('#456EDE'),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[400]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[50]),\n '--chrome-100': hexToRgb(colors.gray[100]),\n '--chrome-200': hexToRgb(colors.gray[200]),\n '--chrome-300': hexToRgb(colors.gray[300]),\n '--chrome-400': hexToRgb(colors.gray[400]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[600]),\n '--chrome-700': hexToRgb(colors.gray[700]),\n '--chrome-800': hexToRgb(colors.gray[800]),\n '--chrome-900': hexToRgb(colors.gray[900]),\n '--chrome-950': hexToRgb(colors.gray[950]),\n '--chrome-foreground': hexToRgb(colors.gray[800]),\n '--chrome-foreground-muted': hexToRgb(colors.gray[500]),\n '--chrome-foreground-subtle': hexToRgb(colors.gray[300]),\n '--chrome-divider': hexToRgb(colors.gray[300]),\n },\n '.dark': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.neutral[800]),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.white),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[600]),\n '--popover': hexToRgb(colors.neutral[800]),\n '--popover-foreground': hexToRgb(colors.white),\n '--primary': hexToRgb(colors.blue[500]),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[400]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[950]),\n '--chrome-100': hexToRgb(colors.gray[900]),\n '--chrome-200': hexToRgb(colors.gray[800]),\n '--chrome-300': hexToRgb(colors.gray[700]),\n '--chrome-400': hexToRgb(colors.gray[600]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[400]),\n '--chrome-700': hexToRgb(colors.gray[300]),\n '--chrome-800': hexToRgb(colors.gray[200]),\n '--chrome-900': hexToRgb(colors.gray[100]),\n '--chrome-950': hexToRgb(colors.gray[50]),\n '--chrome-foreground': hexToRgb(colors.white),\n '--chrome-divider': hexToRgb(colors.gray[700]),\n },\n '*': {\n '@apply border-border': '',\n },\n body: {\n '@apply bg-background text-foreground': '',\n 'font-feature-settings': '\"rlig\" 1, \"calt\" 1',\n '@apply antialiased': '',\n },\n });\n}, {\n darkMode: 'selector',\n theme: {\n screens: {\n sm: '576px',\n md: '768px',\n lg: '992px',\n xl: '1200px',\n '2xl': '1400px',\n },\n extend: {\n maxWidth: {\n 'max-w-screen-sm': '540px',\n 'max-w-screen-md': '720px',\n 'max-w-screen-lg': '960px',\n 'max-w-screen-xl': '1140px',\n 'max-w-screen-2xl': '1320px',\n },\n colors: {\n accent: {\n DEFAULT: 'rgb(var(--accent))',\n foreground: 'rgb(var(--accent-foreground))',\n },\n background: {\n DEFAULT: 'rgb(var(--background))',\n },\n border: {\n DEFAULT: 'rgb(var(--border))',\n },\n danger: {\n DEFAULT: 'rgb(var(--danger))',\n foreground: 'rgb(var(--danger-foreground))',\n },\n foreground: {\n DEFAULT: 'rgb(var(--foreground))',\n },\n input: {\n DEFAULT: 'rgb(var(--input))',\n },\n muted: {\n DEFAULT: 'rgb(var(--muted))',\n foreground: 'rgb(var(--muted-foreground))',\n },\n popover: {\n DEFAULT: 'rgb(var(--popover))',\n foreground: 'rgb(var(--popover-foreground))',\n },\n primary: {\n DEFAULT: 'rgb(var(--primary))',\n foreground: 'rgb(var(--primary-foreground))',\n },\n ring: {\n DEFAULT: 'rgb(var(--ring))',\n },\n secondary: {\n DEFAULT: 'rgb(var(--secondary))',\n foreground: 'rgb(var(--secondary-foreground))',\n },\n chrome: {\n 50: 'rgb(var(--chrome-50))',\n 100: 'rgb(var(--chrome-100))',\n 200: 'rgb(var(--chrome-200))',\n 300: 'rgb(var(--chrome-300))',\n 400: 'rgb(var(--chrome-400))',\n 500: 'rgb(var(--chrome-500))',\n 600: 'rgb(var(--chrome-600))',\n 700: 'rgb(var(--chrome-700))',\n 800: 'rgb(var(--chrome-800))',\n 900: 'rgb(var(--chrome-900))',\n 950: 'rgb(var(--chrome-950))',\n foreground: 'rgb(var(--chrome-foreground))',\n divider: 'rgb(var(--chrome-divider))',\n },\n },\n },\n },\n});\n"],"names":["formsPlugin","forms","hexToRgb","hex","shorthandRegex","hexFixed","_","r","g","b","result","plugin","apiArgs","addBase","colors"],"mappings":";;;AAgBA,MAAMA,IAAcC,EAAM;AAE1B,SAASC,EAASC,GAAK;AAEnB,QAAMC,IAAiB,oCACjBC,IAAWF,EAAI,QAAQC,GAAgB,CAACE,GAAGC,GAAGC,GAAGC,MAAOF,IAAIA,IAAIC,IAAIA,IAAIC,IAAIA,CAAE,GAC9EC,IAAS,4CAA4C,KAAKL,CAAQ;AACjE,SAAAK,IAAS,GAAG,SAASA,EAAO,CAAC,GAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,GAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,GAAG,EAAE,CAAC,KAAK;AACzG;AAIA,MAAAC,IAAeA,EAAO,CAACC,MAAY;AAG/B,EAAAZ,EAAY,QAAQY,CAAO;AAErB,QAAA,EAAE,SAAAC,MAAYD;AACZ,EAAAC,EAAA;AAAA,IACJ,SAAS;AAAA,MACL,YAAYX,EAASY,EAAO,MAAM,GAAG,CAAC;AAAA,MACtC,uBAAuBZ,EAASY,EAAO,KAAK,GAAG,CAAC;AAAA,MAChD,gBAAgBZ,EAASY,EAAO,KAAK;AAAA,MACrC,YAAYZ,EAASY,EAAO,KAAK,GAAG,CAAC;AAAA,MACrC,YAAYZ,EAASY,EAAO,IAAI,GAAG,CAAC;AAAA,MACpC,uBAAuBZ,EAASY,EAAO,KAAK;AAAA,MAC5C,gBAAgBZ,EAASY,EAAO,KAAK,GAAG,CAAC;AAAA,MACzC,WAAWZ,EAASY,E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