@incognia/cosmik 1.0.11 → 1.1.1
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/Tabs/index.d.ts +5 -1
- package/dist/Tabs/index.d.ts.map +1 -1
- package/dist/cosmik.css +3 -1
- package/dist/index.cjs +1 -2
- package/dist/index.js +36 -179
- package/dist/index10.cjs +2 -2
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +70 -193
- package/dist/index10.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +97 -139
- package/dist/index11.js.map +1 -1
- package/dist/index12.cjs +2 -2
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +57 -229
- package/dist/index12.js.map +1 -1
- package/dist/index13.cjs +2 -2
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +22 -119
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +2 -2
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +89 -25
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +2 -2
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +89 -26
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +2 -2
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +125 -23
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +2 -2
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +37 -60
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +2 -2
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +75 -22
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +2 -2
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +68 -108
- package/dist/index19.js.map +1 -1
- package/dist/index2.cjs +1 -0
- package/dist/index20.cjs +2 -2
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +28 -45
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +2 -2
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +15 -31
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +2 -2
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +16 -46
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +2 -2
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +51 -186
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +2 -2
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +9 -28
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +2 -2
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +24 -132
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +2 -2
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +68 -17
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +2 -2
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +22 -36
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +2 -2
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +29 -33
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +2 -2
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +89 -127
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +16 -85
- package/dist/index3.js.map +1 -1
- package/dist/index30.cjs +2 -2
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +18 -65
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +2 -2
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +82 -87
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +2 -2
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +12 -23
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +2 -2
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +44 -94
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +2 -2
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +20 -72
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +2 -2
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +66 -62
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +2 -2
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +59 -161
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +2 -2
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +73 -6
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +2 -2
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +15 -36
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +2 -2
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +86 -15
- package/dist/index39.js.map +1 -1
- package/dist/index4.cjs +2 -2
- package/dist/index4.cjs.map +1 -1
- package/dist/index4.js +34 -159
- package/dist/index4.js.map +1 -1
- package/dist/index40.cjs +2 -2
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +51 -119
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +2 -2
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +48 -16
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +2 -2
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +84 -11
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +2 -2
- package/dist/index43.cjs.map +1 -1
- package/dist/index5.cjs +2 -2
- package/dist/index5.cjs.map +1 -1
- package/dist/index5.js +1586 -79
- package/dist/index5.js.map +1 -1
- package/dist/index6.cjs +2 -2
- package/dist/index6.cjs.map +1 -1
- package/dist/index6.js +15 -164
- package/dist/index6.js.map +1 -1
- package/dist/index7.cjs +2 -2
- package/dist/index7.cjs.map +1 -1
- package/dist/index7.js +60 -196
- package/dist/index7.js.map +1 -1
- package/dist/index8.cjs +2 -2
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +156 -90
- package/dist/index8.js.map +1 -1
- package/dist/index9.cjs +2 -2
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +92 -40
- package/dist/index9.js.map +1 -1
- package/package.json +22 -20
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index3.cjs +0 -2
- package/dist/index3.cjs.map +0 -1
- package/dist/index43.js +0 -5
- package/dist/index43.js.map +0 -1
- package/dist/index44.cjs +0 -2
- package/dist/index44.cjs.map +0 -1
- package/dist/index44.js +0 -27
- package/dist/index44.js.map +0 -1
- package/dist/index45.cjs +0 -7
- package/dist/index45.cjs.map +0 -1
- package/dist/index45.js +0 -239
- package/dist/index45.js.map +0 -1
- package/dist/index46.cjs +0 -2
- package/dist/index46.cjs.map +0 -1
- package/dist/index46.js +0 -17
- package/dist/index46.js.map +0 -1
- package/dist/index47.cjs +0 -2
- package/dist/index47.cjs.map +0 -1
- package/dist/index47.js +0 -2732
- package/dist/index47.js.map +0 -1
- package/dist/index48.cjs +0 -2
- package/dist/index48.cjs.map +0 -1
- package/dist/index48.js +0 -5
- package/dist/index48.js.map +0 -1
- package/dist/index49.cjs +0 -2
- package/dist/index49.cjs.map +0 -1
- package/dist/index49.js +0 -5
- package/dist/index49.js.map +0 -1
- /package/dist/{cosmik-theme.css → src/cosmik-theme.css} +0 -0
package/dist/index37.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index37.js","sources":[],"sourcesContent":[],"
|
|
1
|
+
{"version":3,"file":"index37.js","names":[],"sources":["../src/TagInput/index.tsx"],"sourcesContent":["import { LucideX } from 'lucide-react'\nimport * as React from 'react'\nimport { Badge } from '../Badge'\nimport { Button } from '../Button'\nimport { cn } from '../lib/utils'\n\nexport type TagInputProps = React.HTMLAttributes<HTMLInputElement> & {\n value?: string[]\n onValueChange: (value: string[]) => void\n placeholder?: string\n}\n\nfunction TagInput({\n className,\n value,\n placeholder,\n onValueChange,\n ...props\n}: TagInputProps) {\n const [inputValue, setInputValue] = React.useState('')\n const inputRef = React.useRef<HTMLInputElement>(null)\n\n function handleChange(event: React.ChangeEvent<HTMLInputElement>) {\n const currentInputValue = event.target.value\n if (currentInputValue.includes(',')) {\n const currentValues = currentInputValue.split(',')\n //Remove duplicates\n const uniqueValues = Array.from(new Set(currentValues))\n\n onValueChange([\n ...(value || []),\n ...(uniqueValues\n .filter(inputValue => {\n //Remove empty values and already added values\n return Boolean(inputValue) && !value?.includes(inputValue)\n })\n .map(i => i.trim()) || [])\n ])\n setInputValue('')\n return\n }\n setInputValue(currentInputValue)\n }\n\n function handleKeyDown(event: React.KeyboardEvent<HTMLInputElement>) {\n if (['Enter', 'Tab'].includes(event.key)) {\n if (inputValue?.trim()) {\n event.preventDefault()\n if (!value?.includes(inputValue)) {\n addInputValue()\n }\n setInputValue('')\n }\n }\n\n if (event.key === 'Backspace' && !inputValue) {\n onValueChange(value?.slice(0, -1) || [])\n }\n }\n\n function addInputValue() {\n if (!inputValue.trim()) return\n onValueChange([...(value || []), inputValue])\n setInputValue('')\n }\n\n return (\n <div\n className={cn(\n 'flex flex-wrap items-center gap-8 min-h-[36px]',\n 'border rounded border-gray-900/24 bg-white px-12 py-4',\n 'hover:cursor-text',\n 'hover:shadow-field-hover',\n 'active:shadow-field-active',\n 'focus-visible:outline-none focus:shadow-field-active',\n className\n )}\n onClick={() => inputRef.current?.focus()}\n {...props}\n >\n <TagList value={value} onValueChange={onValueChange} />\n <input\n ref={inputRef}\n className=\"h-[26px] outline-none text-sm\"\n type=\"text\"\n value={inputValue}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n style={{ width: `${inputValue.length + 1}ch` }}\n onBlur={() => addInputValue()}\n />\n {value?.length === 0 && !inputValue && (\n <div className=\"text-gray-400 ml-[-2ch]\">{placeholder}</div>\n )}\n </div>\n )\n}\n\nTagInput.displayName = 'TagInput'\n\ntype TagListProps = React.HTMLAttributes<HTMLDivElement> & {\n value?: string[]\n onValueChange: (value: string[]) => void\n}\n\nfunction TagList({ value, onValueChange }: TagListProps) {\n return (\n <>\n {value?.map((tag, index) => (\n <Badge key={index} className=\"px-0 pr-8 pl-0 gap-x-4 overflow-hidden\">\n <Button\n type=\"button\"\n className=\"w-[26px] h-[26px] shrink-0\"\n size=\"icon\"\n intent=\"secondary\"\n onClick={() => {\n onValueChange(value?.filter((_, i) => i !== index) || [])\n }}\n >\n <LucideX className=\"w-16\" />\n </Button>\n <div className=\"truncate\">{tag}</div>\n </Badge>\n ))}\n </>\n )\n}\n\nexport { TagInput }\n"],"mappings":";;;;;;;AAYA,SAAS,EAAS,EAChB,cACA,UACA,gBACA,kBACA,GAAG,KACa;CAChB,IAAM,CAAC,GAAY,KAAiB,EAAM,SAAS,EAAE,GAC/C,IAAW,EAAM,OAAyB,IAAI;CAEpD,SAAS,EAAa,GAA4C;EAChE,IAAM,IAAoB,EAAM,OAAO;EACvC,IAAI,EAAkB,SAAS,GAAG,GAAG;GACnC,IAAM,IAAgB,EAAkB,MAAM,GAAG,GAE3C,IAAe,MAAM,KAAK,IAAI,IAAI,CAAa,CAAC;GAWtD,AATA,EAAc,CACZ,GAAI,KAAS,CAAC,GACd,GAAI,EACD,QAAO,MAEC,EAAQ,KAAe,CAAC,GAAO,SAAS,CAAU,CAC1D,EACA,KAAI,MAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAC5B,CAAC,GACD,EAAc,EAAE;GAChB;EACF;EACA,EAAc,CAAiB;CACjC;CAEA,SAAS,EAAc,GAA8C;EAWnE,AAVI,CAAC,SAAS,KAAK,EAAE,SAAS,EAAM,GAAG,KACjC,GAAY,KAAK,MACnB,EAAM,eAAe,GAChB,GAAO,SAAS,CAAU,KAC7B,EAAc,GAEhB,EAAc,EAAE,IAIhB,EAAM,QAAQ,eAAe,CAAC,KAChC,EAAc,GAAO,MAAM,GAAG,EAAE,KAAK,CAAC,CAAC;CAE3C;CAEA,SAAS,IAAgB;EAClB,EAAW,KAAK,MACrB,EAAc,CAAC,GAAI,KAAS,CAAC,GAAI,CAAU,CAAC,GAC5C,EAAc,EAAE;CAClB;CAEA,OACE,kBAAC,OAAD;EACE,WAAW,EACT,kDACA,yDACA,qBACA,4BACA,8BACA,wDACA,CACF;EACA,eAAe,EAAS,SAAS,MAAM;EACvC,GAAI;YAXN;GAaE,kBAAC,GAAD;IAAgB;IAAsB;GAAgB,CAAA;GACtD,kBAAC,SAAD;IACE,KAAK;IACL,WAAU;IACV,MAAK;IACL,OAAO;IACP,UAAU;IACV,WAAW;IACX,OAAO,EAAE,OAAO,GAAG,EAAW,SAAS,EAAE,IAAI;IAC7C,cAAc,EAAc;GAC7B,CAAA;GACA,GAAO,WAAW,KAAK,CAAC,KACvB,kBAAC,OAAD;IAAK,WAAU;cAA2B;GAAiB,CAAA;EAE1D;;AAET;AAEA,EAAS,cAAc;AAOvB,SAAS,EAAQ,EAAE,UAAO,oBAA+B;CACvD,OACE,kBAAA,GAAA,EAAA,UACG,GAAO,KAAK,GAAK,MAChB,kBAAC,GAAD;EAAmB,WAAU;YAA7B,CACE,kBAAC,GAAD;GACE,MAAK;GACL,WAAU;GACV,MAAK;GACL,QAAO;GACP,eAAe;IACb,EAAc,GAAO,QAAQ,GAAG,MAAM,MAAM,CAAK,KAAK,CAAC,CAAC;GAC1D;aAEA,kBAAC,GAAD,EAAS,WAAU,OAAQ,CAAA;EACrB,CAAA,GACR,kBAAC,OAAD;GAAK,WAAU;aAAY;EAAS,CAAA,CAC/B;IAbK,CAaL,CACR,EACD,CAAA;AAEN"}
|
package/dist/index38.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index38.cjs.map
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index7.cjs"),n=require("./index9.cjs"),r=require("./index11.cjs");let i=require("lucide-react"),a=require("react");a=e.__toESM(a,1);let o=require("react/jsx-runtime");function s({className:e,value:n,placeholder:r,onValueChange:i,...s}){let[l,u]=a.useState(``),d=a.useRef(null);function f(e){let t=e.target.value;if(t.includes(`,`)){let e=t.split(`,`),r=Array.from(new Set(e));i([...n||[],...r.filter(e=>!!e&&!n?.includes(e)).map(e=>e.trim())||[]]),u(``);return}u(t)}function p(e){[`Enter`,`Tab`].includes(e.key)&&l?.trim()&&(e.preventDefault(),n?.includes(l)||m(),u(``)),e.key===`Backspace`&&!l&&i(n?.slice(0,-1)||[])}function m(){l.trim()&&(i([...n||[],l]),u(``))}return(0,o.jsxs)(`div`,{className:t.cn(`flex flex-wrap items-center gap-8 min-h-[36px]`,`border rounded border-gray-900/24 bg-white px-12 py-4`,`hover:cursor-text`,`hover:shadow-field-hover`,`active:shadow-field-active`,`focus-visible:outline-none focus:shadow-field-active`,e),onClick:()=>d.current?.focus(),...s,children:[(0,o.jsx)(c,{value:n,onValueChange:i}),(0,o.jsx)(`input`,{ref:d,className:`h-[26px] outline-none text-sm`,type:`text`,value:l,onChange:f,onKeyDown:p,style:{width:`${l.length+1}ch`},onBlur:()=>m()}),n?.length===0&&!l&&(0,o.jsx)(`div`,{className:`text-gray-400 ml-[-2ch]`,children:r})]})}s.displayName=`TagInput`;function c({value:e,onValueChange:t}){return(0,o.jsx)(o.Fragment,{children:e?.map((a,s)=>(0,o.jsxs)(r.Badge,{className:`px-0 pr-8 pl-0 gap-x-4 overflow-hidden`,children:[(0,o.jsx)(n.Button,{type:`button`,className:`w-[26px] h-[26px] shrink-0`,size:`icon`,intent:`secondary`,onClick:()=>{t(e?.filter((e,t)=>t!==s)||[])},children:(0,o.jsx)(i.LucideX,{className:`w-16`})}),(0,o.jsx)(`div`,{className:`truncate`,children:a})]},s))})}exports.TagInput=s;
|
|
2
|
+
//# sourceMappingURL=index38.cjs.map
|
package/dist/index38.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index38.cjs","sources":["../
|
|
1
|
+
{"version":3,"file":"index38.cjs","names":[],"sources":["../src/TagInput/index.tsx"],"sourcesContent":["import { LucideX } from 'lucide-react'\nimport * as React from 'react'\nimport { Badge } from '../Badge'\nimport { Button } from '../Button'\nimport { cn } from '../lib/utils'\n\nexport type TagInputProps = React.HTMLAttributes<HTMLInputElement> & {\n value?: string[]\n onValueChange: (value: string[]) => void\n placeholder?: string\n}\n\nfunction TagInput({\n className,\n value,\n placeholder,\n onValueChange,\n ...props\n}: TagInputProps) {\n const [inputValue, setInputValue] = React.useState('')\n const inputRef = React.useRef<HTMLInputElement>(null)\n\n function handleChange(event: React.ChangeEvent<HTMLInputElement>) {\n const currentInputValue = event.target.value\n if (currentInputValue.includes(',')) {\n const currentValues = currentInputValue.split(',')\n //Remove duplicates\n const uniqueValues = Array.from(new Set(currentValues))\n\n onValueChange([\n ...(value || []),\n ...(uniqueValues\n .filter(inputValue => {\n //Remove empty values and already added values\n return Boolean(inputValue) && !value?.includes(inputValue)\n })\n .map(i => i.trim()) || [])\n ])\n setInputValue('')\n return\n }\n setInputValue(currentInputValue)\n }\n\n function handleKeyDown(event: React.KeyboardEvent<HTMLInputElement>) {\n if (['Enter', 'Tab'].includes(event.key)) {\n if (inputValue?.trim()) {\n event.preventDefault()\n if (!value?.includes(inputValue)) {\n addInputValue()\n }\n setInputValue('')\n }\n }\n\n if (event.key === 'Backspace' && !inputValue) {\n onValueChange(value?.slice(0, -1) || [])\n }\n }\n\n function addInputValue() {\n if (!inputValue.trim()) return\n onValueChange([...(value || []), inputValue])\n setInputValue('')\n }\n\n return (\n <div\n className={cn(\n 'flex flex-wrap items-center gap-8 min-h-[36px]',\n 'border rounded border-gray-900/24 bg-white px-12 py-4',\n 'hover:cursor-text',\n 'hover:shadow-field-hover',\n 'active:shadow-field-active',\n 'focus-visible:outline-none focus:shadow-field-active',\n className\n )}\n onClick={() => inputRef.current?.focus()}\n {...props}\n >\n <TagList value={value} onValueChange={onValueChange} />\n <input\n ref={inputRef}\n className=\"h-[26px] outline-none text-sm\"\n type=\"text\"\n value={inputValue}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n style={{ width: `${inputValue.length + 1}ch` }}\n onBlur={() => addInputValue()}\n />\n {value?.length === 0 && !inputValue && (\n <div className=\"text-gray-400 ml-[-2ch]\">{placeholder}</div>\n )}\n </div>\n )\n}\n\nTagInput.displayName = 'TagInput'\n\ntype TagListProps = React.HTMLAttributes<HTMLDivElement> & {\n value?: string[]\n onValueChange: (value: string[]) => void\n}\n\nfunction TagList({ value, onValueChange }: TagListProps) {\n return (\n <>\n {value?.map((tag, index) => (\n <Badge key={index} className=\"px-0 pr-8 pl-0 gap-x-4 overflow-hidden\">\n <Button\n type=\"button\"\n className=\"w-[26px] h-[26px] shrink-0\"\n size=\"icon\"\n intent=\"secondary\"\n onClick={() => {\n onValueChange(value?.filter((_, i) => i !== index) || [])\n }}\n >\n <LucideX className=\"w-16\" />\n </Button>\n <div className=\"truncate\">{tag}</div>\n </Badge>\n ))}\n </>\n )\n}\n\nexport { TagInput }\n"],"mappings":"oNAYA,SAAS,EAAS,CAChB,YACA,QACA,cACA,gBACA,GAAG,GACa,CAChB,GAAM,CAAC,EAAY,GAAiB,EAAM,SAAS,EAAE,EAC/C,EAAW,EAAM,OAAyB,IAAI,EAEpD,SAAS,EAAa,EAA4C,CAChE,IAAM,EAAoB,EAAM,OAAO,MACvC,GAAI,EAAkB,SAAS,GAAG,EAAG,CACnC,IAAM,EAAgB,EAAkB,MAAM,GAAG,EAE3C,EAAe,MAAM,KAAK,IAAI,IAAI,CAAa,CAAC,EAEtD,EAAc,CACZ,GAAI,GAAS,CAAC,EACd,GAAI,EACD,OAAO,GAEC,EAAQ,GAAe,CAAC,GAAO,SAAS,CAAU,CAC1D,EACA,IAAI,GAAK,EAAE,KAAK,CAAC,GAAK,CAAC,CAC5B,CAAC,EACD,EAAc,EAAE,EAChB,MACF,CACA,EAAc,CAAiB,CACjC,CAEA,SAAS,EAAc,EAA8C,CAC/D,CAAC,QAAS,KAAK,EAAE,SAAS,EAAM,GAAG,GACjC,GAAY,KAAK,IACnB,EAAM,eAAe,EAChB,GAAO,SAAS,CAAU,GAC7B,EAAc,EAEhB,EAAc,EAAE,GAIhB,EAAM,MAAQ,aAAe,CAAC,GAChC,EAAc,GAAO,MAAM,EAAG,EAAE,GAAK,CAAC,CAAC,CAE3C,CAEA,SAAS,GAAgB,CAClB,EAAW,KAAK,IACrB,EAAc,CAAC,GAAI,GAAS,CAAC,EAAI,CAAU,CAAC,EAC5C,EAAc,EAAE,EAClB,CAEA,OACE,EAAA,EAAA,MAAC,MAAD,CACE,UAAW,EAAA,GACT,iDACA,wDACA,oBACA,2BACA,6BACA,uDACA,CACF,EACA,YAAe,EAAS,SAAS,MAAM,EACvC,GAAI,WAXN,EAaE,EAAA,EAAA,KAAC,EAAD,CAAgB,QAAsB,eAAgB,CAAA,GACtD,EAAA,EAAA,KAAC,QAAD,CACE,IAAK,EACL,UAAU,gCACV,KAAK,OACL,MAAO,EACP,SAAU,EACV,UAAW,EACX,MAAO,CAAE,MAAO,GAAG,EAAW,OAAS,EAAE,GAAI,EAC7C,WAAc,EAAc,CAC7B,CAAA,EACA,GAAO,SAAW,GAAK,CAAC,IACvB,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,mCAA2B,CAAiB,CAAA,CAE1D,GAET,CAEA,EAAS,YAAc,WAOvB,SAAS,EAAQ,CAAE,QAAO,iBAA+B,CACvD,OACE,EAAA,EAAA,KAAA,EAAA,SAAA,CAAA,SACG,GAAO,KAAK,EAAK,KAChB,EAAA,EAAA,MAAC,EAAA,MAAD,CAAmB,UAAU,kDAA7B,EACE,EAAA,EAAA,KAAC,EAAA,OAAD,CACE,KAAK,SACL,UAAU,6BACV,KAAK,OACL,OAAO,YACP,YAAe,CACb,EAAc,GAAO,QAAQ,EAAG,IAAM,IAAM,CAAK,GAAK,CAAC,CAAC,CAC1D,YAEA,EAAA,EAAA,KAAC,EAAA,QAAD,CAAS,UAAU,MAAQ,CAAA,CACrB,CAAA,GACR,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,oBAAY,CAAS,CAAA,CAC/B,GAbK,CAaL,CACR,CACD,CAAA,CAEN"}
|
package/dist/index38.js
CHANGED
|
@@ -1,36 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
let [c, o] = C;
|
|
17
|
-
return Array.isArray(o) ? o.includes({
|
|
18
|
-
...d,
|
|
19
|
-
...v
|
|
20
|
-
}[c]) : {
|
|
21
|
-
...d,
|
|
22
|
-
...v
|
|
23
|
-
}[c] === o;
|
|
24
|
-
}) ? [
|
|
25
|
-
...t,
|
|
26
|
-
u,
|
|
27
|
-
i
|
|
28
|
-
] : t;
|
|
29
|
-
}, []);
|
|
30
|
-
return y(e, V, N, n?.class, n?.className);
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
j as cva,
|
|
34
|
-
y as cx
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=index38.js.map
|
|
1
|
+
import { cn as e } from "./index6.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/Textarea/index.tsx
|
|
5
|
+
function n({ className: n, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t("textarea", {
|
|
7
|
+
"data-slot": "textarea",
|
|
8
|
+
className: e("flex min-h-[60px] w-full rounded border border-gray-900/24 bg-white px-12 py-8 text-base", "placeholder:text-gray-400", "hover:shadow-field-hover", "active:shadow-field-active", "focus-visible:outline-none focus:shadow-field-active", "disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none", n),
|
|
9
|
+
...r
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as Textarea };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index38.js.map
|
package/dist/index38.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index38.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index38.js","names":[],"sources":["../src/Textarea/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn(\n 'flex min-h-[60px] w-full rounded border border-gray-900/24 bg-white px-12 py-8 text-base',\n 'placeholder:text-gray-400',\n 'hover:shadow-field-hover',\n 'active:shadow-field-active',\n 'focus-visible:outline-none focus:shadow-field-active',\n 'disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none',\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Textarea }\n"],"mappings":";;;;AAGA,SAAS,EAAS,EAAE,cAAW,GAAG,KAA2C;CAC3E,OACE,kBAAC,YAAD;EACE,aAAU;EACV,WAAW,EACT,4FACA,6BACA,4BACA,8BACA,wDACA,wEACA,CACF;EACA,GAAI;CACL,CAAA;AAEL"}
|
package/dist/index39.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index39.cjs.map
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index7.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");function i({className:e,...n}){return(0,r.jsx)(`textarea`,{"data-slot":`textarea`,className:t.cn(`flex min-h-[60px] w-full rounded border border-gray-900/24 bg-white px-12 py-8 text-base`,`placeholder:text-gray-400`,`hover:shadow-field-hover`,`active:shadow-field-active`,`focus-visible:outline-none focus:shadow-field-active`,`disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none`,e),...n})}exports.Textarea=i;
|
|
2
|
+
//# sourceMappingURL=index39.cjs.map
|
package/dist/index39.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index39.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index39.cjs","names":[],"sources":["../src/Textarea/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn(\n 'flex min-h-[60px] w-full rounded border border-gray-900/24 bg-white px-12 py-8 text-base',\n 'placeholder:text-gray-400',\n 'hover:shadow-field-hover',\n 'active:shadow-field-active',\n 'focus-visible:outline-none focus:shadow-field-active',\n 'disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none',\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Textarea }\n"],"mappings":"qIAGA,SAAS,EAAS,CAAE,YAAW,GAAG,GAA2C,CAC3E,OACE,EAAA,EAAA,KAAC,WAAD,CACE,YAAU,WACV,UAAW,EAAA,GACT,2FACA,4BACA,2BACA,6BACA,uDACA,uEACA,CACF,EACA,GAAI,CACL,CAAA,CAEL"}
|
package/dist/index39.js
CHANGED
|
@@ -1,16 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { cva as e } from "./index4.js";
|
|
3
|
+
import { cn as t } from "./index6.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
6
|
+
import * as r from "@radix-ui/react-toggle";
|
|
7
|
+
//#region src/Toggle/index.tsx
|
|
8
|
+
var i = e("inline-flex items-center justify-center rounded font-small transition-colors disabled:pointer-events-none disabled:opacity-40", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
"badge-green": "bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-green-50 hover:data-[state=on]:bg-green-50 data-[state=on]:text-green-800 [&_svg]:data-[state=on]:text-green-800 data-[state=on]:border-green-200",
|
|
12
|
+
"badge-yellow": "bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-yellow-50 hover:data-[state=on]:bg-yellow-50 data-[state=on]:text-yellow-700 [&_svg]:data-[state=on]:text-yellow-700 data-[state=on]:border-yellow-200",
|
|
13
|
+
"badge-magenta": "bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-magenta-50 hover:data-[state=on]:bg-magenta-50 data-[state=on]:text-magenta-700 [&_svg]:data-[state=on]:text-magenta-700 data-[state=on]:border-magenta-100",
|
|
14
|
+
"badge-gray": "bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-gray-200 hover:data-[state=on]:bg-gray-200 data-[state=on]:text-gray-900 [&_svg]:data-[state=on]:text-gray-900 data-[state=on]:border-gray-300",
|
|
15
|
+
"badge-purple": "bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-purple-100 hover:data-[state=on]:bg-purple-100 data-[state=on]:text-purple-900 [&_svg]:data-[state=on]:text-purple-900 data-[state=on]:border-purple-200",
|
|
16
|
+
"badge-robinblue": "bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-robinblue-100 hover:data-[state=on]:bg-robinblue-100 data-[state=on]:text-robinblue-900 [&_svg]:data-[state=on]:text-robinblue-900 data-[state=on]:border-robinblue-200"
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
icon: "w-32 h-32",
|
|
20
|
+
sm: "px-8 h-[26px] text-sm",
|
|
21
|
+
md: "px-12 h-32 text-base"
|
|
22
|
+
},
|
|
23
|
+
border: {
|
|
24
|
+
outline: "border",
|
|
25
|
+
none: "border-0"
|
|
26
|
+
},
|
|
27
|
+
inverted: {
|
|
28
|
+
true: "data-[state=on]:text-white [&_svg]:data-[state=on]:text-white",
|
|
29
|
+
false: ""
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
compoundVariants: [
|
|
33
|
+
{
|
|
34
|
+
inverted: !0,
|
|
35
|
+
variant: "badge-green",
|
|
36
|
+
className: "data-[state=on]:bg-green-700 hover:data-[state=on]:bg-green-700 data-[state=on]:border-green-800"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inverted: !0,
|
|
40
|
+
variant: "badge-yellow",
|
|
41
|
+
className: "data-[state=on]:bg-yellow-700 hover:data-[state=on]:bg-yellow-700 data-[state=on]:border-yellow-800"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
inverted: !0,
|
|
45
|
+
variant: "badge-magenta",
|
|
46
|
+
className: "data-[state=on]:bg-magenta-700 hover:data-[state=on]:bg-magenta-700 data-[state=on]:border-magenta-800"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
inverted: !0,
|
|
50
|
+
variant: "badge-gray",
|
|
51
|
+
className: "data-[state=on]:bg-gray-700 hover:data-[state=on]:bg-gray-700 data-[state=on]:border-gray-800"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
inverted: !0,
|
|
55
|
+
variant: "badge-purple",
|
|
56
|
+
className: "data-[state=on]:bg-purple-700 hover:data-[state=on]:bg-purple-700 data-[state=on]:border-purple-800"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
inverted: !0,
|
|
60
|
+
variant: "badge-robinblue",
|
|
61
|
+
className: "data-[state=on]:bg-robinblue-700 hover:data-[state=on]:bg-robinblue-700 data-[state=on]:border-robinblue-800"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
defaultVariants: {
|
|
65
|
+
variant: "badge-purple",
|
|
66
|
+
size: "icon",
|
|
67
|
+
border: "outline",
|
|
68
|
+
inverted: !1
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
function a({ className: e, variant: a, size: o, border: s, inverted: c, ...l }) {
|
|
72
|
+
return /* @__PURE__ */ n(r.Root, {
|
|
73
|
+
"data-slot": "toggle",
|
|
74
|
+
className: t(i({
|
|
75
|
+
variant: a,
|
|
76
|
+
size: o,
|
|
77
|
+
border: s,
|
|
78
|
+
inverted: c,
|
|
79
|
+
className: e
|
|
80
|
+
})),
|
|
81
|
+
...l
|
|
82
|
+
});
|
|
5
83
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
d as cn,
|
|
14
|
-
f as debounce
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=index39.js.map
|
|
84
|
+
//#endregion
|
|
85
|
+
export { a as Toggle, i as toggleVariants };
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=index39.js.map
|
package/dist/index39.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index39.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index39.js","names":[],"sources":["../src/Toggle/index.tsx"],"sourcesContent":["'use client'\n\nimport * as TogglePrimitive from '@radix-ui/react-toggle'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst toggleVariants = cva(\n 'inline-flex items-center justify-center rounded font-small transition-colors disabled:pointer-events-none disabled:opacity-40',\n {\n variants: {\n variant: {\n 'badge-green':\n 'bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-green-50 hover:data-[state=on]:bg-green-50 data-[state=on]:text-green-800 [&_svg]:data-[state=on]:text-green-800 data-[state=on]:border-green-200',\n 'badge-yellow':\n 'bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-yellow-50 hover:data-[state=on]:bg-yellow-50 data-[state=on]:text-yellow-700 [&_svg]:data-[state=on]:text-yellow-700 data-[state=on]:border-yellow-200',\n 'badge-magenta':\n 'bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-magenta-50 hover:data-[state=on]:bg-magenta-50 data-[state=on]:text-magenta-700 [&_svg]:data-[state=on]:text-magenta-700 data-[state=on]:border-magenta-100',\n 'badge-gray':\n 'bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-gray-200 hover:data-[state=on]:bg-gray-200 data-[state=on]:text-gray-900 [&_svg]:data-[state=on]:text-gray-900 data-[state=on]:border-gray-300',\n 'badge-purple':\n 'bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-purple-100 hover:data-[state=on]:bg-purple-100 data-[state=on]:text-purple-900 [&_svg]:data-[state=on]:text-purple-900 data-[state=on]:border-purple-200',\n 'badge-robinblue':\n 'bg-gray-100 text-gray-900/48 border-gray-200 hover:bg-gray-200 data-[state=on]:bg-robinblue-100 hover:data-[state=on]:bg-robinblue-100 data-[state=on]:text-robinblue-900 [&_svg]:data-[state=on]:text-robinblue-900 data-[state=on]:border-robinblue-200'\n },\n size: {\n icon: 'w-32 h-32',\n sm: 'px-8 h-[26px] text-sm',\n md: 'px-12 h-32 text-base'\n },\n border: {\n outline: 'border',\n none: 'border-0'\n },\n inverted: {\n true: 'data-[state=on]:text-white [&_svg]:data-[state=on]:text-white',\n false: ''\n }\n },\n compoundVariants: [\n {\n inverted: true,\n variant: 'badge-green',\n className:\n 'data-[state=on]:bg-green-700 hover:data-[state=on]:bg-green-700 data-[state=on]:border-green-800'\n },\n {\n inverted: true,\n variant: 'badge-yellow',\n className:\n 'data-[state=on]:bg-yellow-700 hover:data-[state=on]:bg-yellow-700 data-[state=on]:border-yellow-800'\n },\n {\n inverted: true,\n variant: 'badge-magenta',\n className:\n 'data-[state=on]:bg-magenta-700 hover:data-[state=on]:bg-magenta-700 data-[state=on]:border-magenta-800'\n },\n {\n inverted: true,\n variant: 'badge-gray',\n className:\n 'data-[state=on]:bg-gray-700 hover:data-[state=on]:bg-gray-700 data-[state=on]:border-gray-800'\n },\n {\n inverted: true,\n variant: 'badge-purple',\n className:\n 'data-[state=on]:bg-purple-700 hover:data-[state=on]:bg-purple-700 data-[state=on]:border-purple-800'\n },\n {\n inverted: true,\n variant: 'badge-robinblue',\n className:\n 'data-[state=on]:bg-robinblue-700 hover:data-[state=on]:bg-robinblue-700 data-[state=on]:border-robinblue-800'\n }\n ],\n defaultVariants: {\n variant: 'badge-purple',\n size: 'icon',\n border: 'outline',\n inverted: false\n }\n }\n)\n\nfunction Toggle({\n className,\n variant,\n size,\n border,\n inverted,\n ...props\n}: React.ComponentProps<typeof TogglePrimitive.Root> &\n VariantProps<typeof toggleVariants>) {\n return (\n <TogglePrimitive.Root\n data-slot=\"toggle\"\n className={cn(\n toggleVariants({ variant, size, border, inverted, className })\n )}\n {...props}\n />\n )\n}\n\nexport { Toggle, toggleVariants }\n"],"mappings":";;;;;;;AAOA,IAAM,IAAiB,EACrB,iIACA;CACE,UAAU;EACR,SAAS;GACP,eACE;GACF,gBACE;GACF,iBACE;GACF,cACE;GACF,gBACE;GACF,mBACE;EACJ;EACA,MAAM;GACJ,MAAM;GACN,IAAI;GACJ,IAAI;EACN;EACA,QAAQ;GACN,SAAS;GACT,MAAM;EACR;EACA,UAAU;GACR,MAAM;GACN,OAAO;EACT;CACF;CACA,kBAAkB;EAChB;GACE,UAAU;GACV,SAAS;GACT,WACE;EACJ;EACA;GACE,UAAU;GACV,SAAS;GACT,WACE;EACJ;EACA;GACE,UAAU;GACV,SAAS;GACT,WACE;EACJ;EACA;GACE,UAAU;GACV,SAAS;GACT,WACE;EACJ;EACA;GACE,UAAU;GACV,SAAS;GACT,WACE;EACJ;EACA;GACE,UAAU;GACV,SAAS;GACT,WACE;EACJ;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;EACN,QAAQ;EACR,UAAU;CACZ;AACF,CACF;AAEA,SAAS,EAAO,EACd,cACA,YACA,SACA,WACA,aACA,GAAG,KAEkC;CACrC,OACE,kBAAC,EAAgB,MAAjB;EACE,aAAU;EACV,WAAW,EACT,EAAe;GAAE;GAAS;GAAM;GAAQ;GAAU;EAAU,CAAC,CAC/D;EACA,GAAI;CACL,CAAA;AAEL"}
|
package/dist/index4.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index4.cjs.map
|
|
1
|
+
function e(t){var n,r,i=``;if(typeof t==`string`||typeof t==`number`)i+=t;else if(typeof t==`object`)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=` `),i+=r)}else for(r in t)t[r]&&(i&&(i+=` `),i+=r);return i}function t(){for(var t,n,r=0,i=``,a=arguments.length;r<a;r++)(t=arguments[r])&&(n=e(t))&&(i&&(i+=` `),i+=n);return i}exports.default=t;
|
|
2
|
+
//# sourceMappingURL=index4.cjs.map
|
package/dist/index4.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.cjs","sources":["../
|
|
1
|
+
{"version":3,"file":"index4.cjs","names":[],"sources":["../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"x_google_ignoreList":[0],"mappings":"AAAA,SAAS,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,GAAa,OAAO,GAAjB,UAA8B,OAAO,GAAjB,SAAmB,GAAG,OAAO,GAAa,OAAO,GAAjB,SAAmB,GAAG,MAAM,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,OAAO,IAAI,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,IAAI,GAAG,KAAK,GAAG,EAAE,MAAM,IAAI,KAAK,EAAE,EAAE,KAAK,IAAI,GAAG,KAAK,GAAG,GAAG,OAAO,CAAC,CAAC,SAAgB,GAAM,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,UAAU,OAAO,EAAE,EAAE,KAAK,EAAE,UAAU,MAAM,EAAE,EAAE,CAAC,KAAK,IAAI,GAAG,KAAK,GAAG,GAAG,OAAO,CAAC"}
|
package/dist/index4.js
CHANGED
|
@@ -1,160 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
t
|
|
32
|
-
),
|
|
33
|
-
...a
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
function j({
|
|
38
|
-
className: t,
|
|
39
|
-
...a
|
|
40
|
-
}) {
|
|
41
|
-
return /* @__PURE__ */ e.jsxs(s, { children: [
|
|
42
|
-
/* @__PURE__ */ e.jsx(d, {}),
|
|
43
|
-
/* @__PURE__ */ e.jsx(
|
|
44
|
-
o.Content,
|
|
45
|
-
{
|
|
46
|
-
"data-slot": "alert-dialog-content",
|
|
47
|
-
className: l(
|
|
48
|
-
"bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] gap-24 border-0 p-24 top-24 shadow-200 duration-200 sm:max-w-lg min-w-[384px]",
|
|
49
|
-
t
|
|
50
|
-
),
|
|
51
|
-
...a
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
] });
|
|
55
|
-
}
|
|
56
|
-
function A({
|
|
57
|
-
className: t,
|
|
58
|
-
...a
|
|
59
|
-
}) {
|
|
60
|
-
return /* @__PURE__ */ e.jsx(
|
|
61
|
-
"div",
|
|
62
|
-
{
|
|
63
|
-
"data-slot": "alert-dialog-header",
|
|
64
|
-
className: l("flex flex-col gap-8 text-left font-display", t),
|
|
65
|
-
...a
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
function D({
|
|
70
|
-
className: t,
|
|
71
|
-
...a
|
|
72
|
-
}) {
|
|
73
|
-
return /* @__PURE__ */ e.jsx(
|
|
74
|
-
"div",
|
|
75
|
-
{
|
|
76
|
-
"data-slot": "alert-dialog-footer",
|
|
77
|
-
className: l("flex gap-8 flex-row justify-end", t),
|
|
78
|
-
...a
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
const g = i("flex items-center text-lg font-semibold", {
|
|
83
|
-
variants: {
|
|
84
|
-
intent: {
|
|
85
|
-
default: "text-gray-800",
|
|
86
|
-
warning: "text-yellow-600",
|
|
87
|
-
danger: "text-magenta-600"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
defaultVariants: {
|
|
91
|
-
intent: "default"
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
function y({
|
|
95
|
-
className: t,
|
|
96
|
-
intent: a,
|
|
97
|
-
...r
|
|
98
|
-
}) {
|
|
99
|
-
return /* @__PURE__ */ e.jsx(
|
|
100
|
-
o.Title,
|
|
101
|
-
{
|
|
102
|
-
"data-slot": "alert-dialog-title",
|
|
103
|
-
className: l(g({ intent: a }), t),
|
|
104
|
-
...r
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
function w({
|
|
109
|
-
className: t,
|
|
110
|
-
...a
|
|
111
|
-
}) {
|
|
112
|
-
return /* @__PURE__ */ e.jsx(
|
|
113
|
-
o.Description,
|
|
114
|
-
{
|
|
115
|
-
"data-slot": "alert-dialog-description",
|
|
116
|
-
className: l("text-base text-gray-900", t),
|
|
117
|
-
...a
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
function v({
|
|
122
|
-
className: t,
|
|
123
|
-
intent: a,
|
|
124
|
-
...r
|
|
125
|
-
}) {
|
|
126
|
-
return /* @__PURE__ */ e.jsx(
|
|
127
|
-
o.Action,
|
|
128
|
-
{
|
|
129
|
-
className: l(n({ intent: a }), t),
|
|
130
|
-
...r
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
function N({
|
|
135
|
-
className: t,
|
|
136
|
-
...a
|
|
137
|
-
}) {
|
|
138
|
-
return /* @__PURE__ */ e.jsx(
|
|
139
|
-
o.Cancel,
|
|
140
|
-
{
|
|
141
|
-
className: l(n({ intent: "secondary" }), t),
|
|
142
|
-
...a
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
export {
|
|
147
|
-
m as AlertDialog,
|
|
148
|
-
v as AlertDialogAction,
|
|
149
|
-
N as AlertDialogCancel,
|
|
150
|
-
j as AlertDialogContent,
|
|
151
|
-
w as AlertDialogDescription,
|
|
152
|
-
D as AlertDialogFooter,
|
|
153
|
-
A as AlertDialogHeader,
|
|
154
|
-
d as AlertDialogOverlay,
|
|
155
|
-
s as AlertDialogPortal,
|
|
156
|
-
y as AlertDialogTitle,
|
|
157
|
-
p as AlertDialogTrigger,
|
|
158
|
-
g as titleVariants
|
|
1
|
+
import e from "./index3.js";
|
|
2
|
+
//#region node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
3
|
+
var t = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, n = e, r = (e, r) => (i) => {
|
|
4
|
+
if (r?.variants == null) return n(e, i?.class, i?.className);
|
|
5
|
+
let { variants: a, defaultVariants: o } = r, s = Object.keys(a).map((e) => {
|
|
6
|
+
let n = i?.[e], r = o?.[e];
|
|
7
|
+
if (n === null) return null;
|
|
8
|
+
let s = t(n) || t(r);
|
|
9
|
+
return a[e][s];
|
|
10
|
+
}), c = i && Object.entries(i).reduce((e, t) => {
|
|
11
|
+
let [n, r] = t;
|
|
12
|
+
return r === void 0 || (e[n] = r), e;
|
|
13
|
+
}, {});
|
|
14
|
+
return n(e, s, r?.compoundVariants?.reduce((e, t) => {
|
|
15
|
+
let { class: n, className: r, ...i } = t;
|
|
16
|
+
return Object.entries(i).every((e) => {
|
|
17
|
+
let [t, n] = e;
|
|
18
|
+
return Array.isArray(n) ? n.includes({
|
|
19
|
+
...o,
|
|
20
|
+
...c
|
|
21
|
+
}[t]) : {
|
|
22
|
+
...o,
|
|
23
|
+
...c
|
|
24
|
+
}[t] === n;
|
|
25
|
+
}) ? [
|
|
26
|
+
...e,
|
|
27
|
+
n,
|
|
28
|
+
r
|
|
29
|
+
] : e;
|
|
30
|
+
}, []), i?.class, i?.className);
|
|
159
31
|
};
|
|
160
|
-
//#
|
|
32
|
+
//#endregion
|
|
33
|
+
export { r as cva };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=index4.js.map
|
package/dist/index4.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index4.js","names":[],"sources":["../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. 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, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n"],"x_google_ignoreList":[0],"mappings":";;AAeA,IAAM,KAAiB,MAAQ,OAAO,KAAU,YAAY,GAAG,MAAU,MAAU,IAAI,MAAM,GAChF,IAAK,GACL,KAAO,GAAM,OAAU,MAAQ;CAEpC,IAAK,GAAuD,YAAa,MAAM,OAAO,EAAG,GAAM,GAAoD,OAAO,GAAoD,SAAS;CACvN,IAAM,EAAE,aAAU,uBAAoB,GAChC,IAAuB,OAAO,KAAK,CAAQ,EAAE,KAAK,MAAU;EAC9D,IAAM,IAAc,IAAoD,IAClE,IAAqB,IAAkF;EAC7G,IAAI,MAAgB,MAAM,OAAO;EACjC,IAAM,IAAa,EAAc,CAAW,KAAK,EAAc,CAAkB;EACjF,OAAO,EAAS,GAAS;CAC7B,CAAC,GACK,IAAwB,KAAS,OAAO,QAAQ,CAAK,EAAE,QAAQ,GAAK,MAAQ;EAC9E,IAAI,CAAC,GAAK,KAAS;EAKnB,OAJI,MAAU,KAAA,MAGd,EAAI,KAAO,IAFA;CAIf,GAAG,CAAC,CAAC;CAkBL,OAAO,EAAG,GAAM,GAjBqB,GAAmF,kBAAsG,QAAQ,GAAK,MAAQ;EAC/O,IAAI,EAAE,OAAO,GAAS,WAAW,GAAa,GAAG,MAA2B;EAC5E,OAAO,OAAO,QAAQ,CAAsB,EAAE,OAAO,MAAQ;GACzD,IAAI,CAAC,GAAK,KAAS;GACnB,OAAO,MAAM,QAAQ,CAAK,IAAI,EAAM,SAAS;IACzC,GAAG;IACH,GAAG;GACP,EAAE,EAAI,IAAK;IACP,GAAG;IACH,GAAG;GACP,EAAG,OAAS;EAChB,CAAC,IAAI;GACD,GAAG;GACH;GACA;EACJ,IAAI;CACR,GAAG,CAAC,CAAC,GAC+D,GAAoD,OAAO,GAAoD,SAAS;AAChM"}
|