@purr-react-tailwindcss/utils.helpers 0.0.5 → 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 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.cjs
ADDED
|
@@ -0,0 +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
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.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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};
|