@kubetail/ui 0.1.7 → 0.2.0-rc1

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/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Kubetail-UI is a project for developing and sharing React components and other UI elements for Kubetail
4
4
 
5
+ <a href="https://discord.gg/pXHXaUqt"><img src="https://img.shields.io/discord/1212031524216770650?logo=Discord&style=flat-square&logoColor=FFFFFF&labelColor=5B65F0&label=Discord&color=64B73A"></a>
6
+ [![slack](https://img.shields.io/badge/Slack-kubetail-364954?logo=slack&labelColor=4D1C51)](https://join.slack.com/t/kubetail/shared_invite/zt-2cq01cbm8-e1kbLT3EmcLPpHSeoFYm1w)
7
+ [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
8
+
5
9
  ## Getting started
6
10
 
7
11
  First, install the dependencies:
@@ -16,6 +20,14 @@ Next, run storybook:
16
20
  pnpm storybook
17
21
  ```
18
22
 
23
+ ## Getting started in Docker
24
+
25
+ This should work as simple as running the following command:
26
+
27
+ ```sh
28
+ docker compose up
29
+ ```
30
+
19
31
  Open [http://localhost:6006](http://localhost:6006) in your browser to see the components.
20
32
 
21
33
  ## Scripts
@@ -1,9 +1,9 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { ChevronLeft as c, ChevronRight as s } from "lucide-react";
2
+ import { ChevronRight as c, ChevronLeft as s } from "lucide-react";
3
3
  import { DayPicker as i } from "react-day-picker";
4
4
  import { buttonVariants as a } from "./Button.js";
5
5
  import { cn as e } from "../lib/utils.js";
6
- const l = () => t(c, { className: "h-4 w-4" }), m = () => t(s, { className: "h-4 w-4" });
6
+ const l = () => t(s, { className: "h-4 w-4" }), m = () => t(c, { className: "h-4 w-4" });
7
7
  function u({ className: r, classNames: o, showOutsideDays: n = !0, ...d }) {
8
8
  return t(i, { showOutsideDays: n, className: e("p-3", r), classNames: {
9
9
  months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
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[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;
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[600]),"--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
@@ -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[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,MA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K,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[600]),\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,GAAG,CAAC,EACrC,WAAYZ,EAASY,E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C,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
@@ -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[400]),
62
+ "--ring": r(e.blue[600]),
63
63
  "--secondary": r(e.blue[100]),
64
64
  "--secondary-foreground": r(e.gray[800]),
65
65
  "--chrome-50": r(e.gray[950]),
@@ -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[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,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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[600]),\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,EAA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QAAA;AAAA,MACb;AAAA,IACJ;AAAA,EACJ;AAER,CAAC;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubetail/ui",
3
- "version": "v0.1.7",
3
+ "version": "v0.2.0-rc1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "module": "./dist/index.js",
@@ -31,42 +31,39 @@
31
31
  "/dist"
32
32
  ],
33
33
  "devDependencies": {
34
- "@chromatic-com/storybook": "^1.9.0",
34
+ "@chromatic-com/storybook": "^4.0.0",
35
35
  "@rollup/plugin-typescript": "^11.1.6",
36
- "@storybook/addon-essentials": "^8.5.0",
37
- "@storybook/addon-interactions": "^8.5.0",
38
- "@storybook/addon-links": "^8.5.0",
39
- "@storybook/addon-onboarding": "^8.5.0",
40
- "@storybook/addon-themes": "^8.5.0",
41
- "@storybook/blocks": "^8.5.0",
42
- "@storybook/react": "^8.5.0",
43
- "@storybook/react-vite": "^8.5.0",
44
- "@storybook/test": "^8.5.0",
36
+ "@storybook/addon-docs": "^9.0.5",
37
+ "@storybook/addon-links": "^9.0.5",
38
+ "@storybook/addon-onboarding": "^9.0.5",
39
+ "@storybook/addon-themes": "^9.0.5",
40
+ "@storybook/builder-vite": "^9.0.5",
41
+ "@storybook/react-vite": "^9.0.5",
45
42
  "@testing-library/jest-dom": "^6.6.3",
46
43
  "@testing-library/react": "^14.3.1",
47
44
  "@types/jest": "^29.5.14",
48
- "@types/react": "^18.3.18",
49
- "@types/react-dom": "^18.3.5",
45
+ "@types/react": "^18.3.23",
46
+ "@types/react-dom": "^18.3.7",
50
47
  "@types/rollup-plugin-auto-external": "^2.0.5",
51
48
  "@typescript-eslint/eslint-plugin": "^7.18.0",
52
49
  "@typescript-eslint/parser": "^7.18.0",
53
- "@vitejs/plugin-react": "^4.3.4",
54
- "autoprefixer": "^10.4.20",
50
+ "@vitejs/plugin-react": "^4.5.1",
51
+ "@vueless/storybook-dark-mode": "^9.0.5",
52
+ "autoprefixer": "^10.4.21",
55
53
  "eslint": "^8.57.1",
56
54
  "eslint-config-airbnb": "^19.0.4",
57
55
  "eslint-config-airbnb-typescript": "^18.0.0",
58
56
  "eslint-plugin-react-hooks": "^4.6.2",
59
- "eslint-plugin-react-refresh": "^0.4.18",
60
- "eslint-plugin-storybook": "^0.8.0",
57
+ "eslint-plugin-react-refresh": "^0.4.20",
58
+ "eslint-plugin-storybook": "^9.0.5",
61
59
  "glob": "^10.4.5",
62
- "jsdom": "^26.0.0",
63
- "postcss": "^8.5.1",
60
+ "jsdom": "^26.1.0",
61
+ "postcss": "^8.5.4",
64
62
  "rollup-plugin-auto-external": "^2.0.0",
65
- "storybook": "^8.5.0",
66
- "storybook-dark-mode": "^4.0.2",
63
+ "storybook": "^9.0.5",
67
64
  "typescript": "5.5.4",
68
- "vite": "^5.4.13",
69
- "vitest": "^2.1.8"
65
+ "vite": "^5.4.19",
66
+ "vitest": "^2.1.9"
70
67
  },
71
68
  "peerDependencies": {
72
69
  "@heroicons/react": "^2.0.15",
@@ -76,10 +73,10 @@
76
73
  "tailwindcss": "^3.4.3"
77
74
  },
78
75
  "dependencies": {
79
- "@radix-ui/react-dropdown-menu": "^2.1.4",
80
- "@radix-ui/react-popover": "^1.1.4",
81
- "@radix-ui/react-tabs": "^1.1.2",
82
- "@restart/ui": "^1.9.3",
76
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
77
+ "@radix-ui/react-popover": "^1.1.14",
78
+ "@radix-ui/react-tabs": "^1.1.12",
79
+ "@restart/ui": "^1.9.4",
83
80
  "class-variance-authority": "^0.7.1",
84
81
  "clsx": "^2.1.1",
85
82
  "lucide-react": "^0.364.0",