@purr-react-tailwindcss/utils.helpers 0.0.4 → 0.0.6
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/index.cjs +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -12
- package/package.json +3 -1
- package/dist/_tailwind-css.d.ts +0 -2
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';var d=(r,e)=>[r==="outlined"&&e&&"border border-white/50",r==="outlined"&&!e&&"border border-white/20 hover:border-white focus:border-blue-300",r==="filled"&&e&&"rounded-t border-b border-white/50 bg-white/10",r==="filled"&&!e&&"rounded-t border-b border-white/20 bg-white/10 hover:border-white hover:bg-white/20 focus:border-blue-300",r==="standard"&&e&&"rounded-none border-b border-white/50",r==="standard"&&!e&&"rounded-none border-b border-white/20 hover:border-white focus:border-blue-300"],t=(r,e,o)=>r&&e?o==="standard"?"px-8":"px-11":r?o==="standard"?"pl-8 pr-0":"pl-11 pr-3":e?o==="standard"?"pl-0 pr-8":"pl-3 pr-11":o==="standard"?"px-0":"px-3";exports.getInputPaddingClasses=t;exports.getVariantClasses=d;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const getVariantClasses: (variant: string, disabled: boolean) => (string | false)[];
|
|
2
|
+
declare const getInputPaddingClasses: (hasPreAdornment: boolean, hasPostAdornment: boolean, variant: string) => "px-8" | "px-11" | "pl-8 pr-0" | "pl-11 pr-3" | "pl-0 pr-8" | "pl-3 pr-11" | "px-0" | "px-3";
|
|
3
|
+
|
|
4
|
+
export { getInputPaddingClasses, getVariantClasses };
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
declare const getVariantClasses: (variant: string, disabled: boolean) => (string | false)[];
|
|
2
|
+
declare const getInputPaddingClasses: (hasPreAdornment: boolean, hasPostAdornment: boolean, variant: string) => "px-8" | "px-11" | "pl-8 pr-0" | "pl-11 pr-3" | "pl-0 pr-8" | "pl-3 pr-11" | "px-0" | "px-3";
|
|
3
|
+
|
|
4
|
+
export { getInputPaddingClasses, getVariantClasses };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
r === "outlined" && e && "border border-white/50",
|
|
3
|
-
r === "outlined" && !e && "border border-white/20 hover:border-white focus:border-blue-300",
|
|
4
|
-
r === "filled" && e && "rounded-t border-b border-white/50 bg-white/10",
|
|
5
|
-
r === "filled" && !e && "rounded-t border-b border-white/20 bg-white/10 hover:border-white hover:bg-white/20 focus:border-blue-300",
|
|
6
|
-
r === "standard" && e && "rounded-none border-b border-white/50",
|
|
7
|
-
r === "standard" && !e && "rounded-none border-b border-white/20 hover:border-white focus:border-blue-300"
|
|
8
|
-
], b = (r, e, o) => r && e ? o === "standard" ? "px-8" : "px-11" : r ? o === "standard" ? "pl-8 pr-0" : "pl-11 pr-3" : e ? o === "standard" ? "pl-0 pr-8" : "pl-3 pr-11" : o === "standard" ? "px-0" : "px-3";
|
|
9
|
-
export {
|
|
10
|
-
b as getInputPaddingClasses,
|
|
11
|
-
d as getVariantClasses
|
|
12
|
-
};
|
|
1
|
+
var d=(r,e)=>[r==="outlined"&&e&&"border border-white/50",r==="outlined"&&!e&&"border border-white/20 hover:border-white focus:border-blue-300",r==="filled"&&e&&"rounded-t border-b border-white/50 bg-white/10",r==="filled"&&!e&&"rounded-t border-b border-white/20 bg-white/10 hover:border-white hover:bg-white/20 focus:border-blue-300",r==="standard"&&e&&"rounded-none border-b border-white/50",r==="standard"&&!e&&"rounded-none border-b border-white/20 hover:border-white focus:border-blue-300"],t=(r,e,o)=>r&&e?o==="standard"?"px-8":"px-11":r?o==="standard"?"pl-8 pr-0":"pl-11 pr-3":e?o==="standard"?"pl-0 pr-8":"pl-3 pr-11":o==="standard"?"px-0":"px-3";export{t as getInputPaddingClasses,d as getVariantClasses};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purr-react-tailwindcss/utils.helpers",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"scripts": {
|
|
31
31
|
"dev": "vite build --watch",
|
|
32
32
|
"build": "tsc && vite build",
|
|
33
|
+
"build:vite": "tsc && vite build",
|
|
34
|
+
"build:tsup": "tsup",
|
|
33
35
|
"lint": "eslint . --ext ts,tsx --max-warnings 0"
|
|
34
36
|
}
|
|
35
37
|
}
|
package/dist/_tailwind-css.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const getVariantClasses: (variant: string, disabled: boolean) => (string | false)[];
|
|
2
|
-
export declare const getInputPaddingClasses: (hasPreAdornment: boolean, hasPostAdornment: boolean, variant: string) => "px-8" | "px-11" | "pl-8 pr-0" | "pl-11 pr-3" | "pl-0 pr-8" | "pl-3 pr-11" | "px-0" | "px-3";
|