@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 CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=(e,r)=>[e==="outlined"&&r&&"border border-white/50",e==="outlined"&&!r&&"border border-white/20 hover:border-white focus:border-blue-300",e==="filled"&&r&&"rounded-t border-b border-white/50 bg-white/10",e==="filled"&&!r&&"rounded-t border-b border-white/20 bg-white/10 hover:border-white hover:bg-white/20 focus:border-blue-300",e==="standard"&&r&&"rounded-none border-b border-white/50",e==="standard"&&!r&&"rounded-none border-b border-white/20 hover:border-white focus:border-blue-300"],t=(e,r,d)=>e&&r?d==="standard"?"px-8":"px-11":e?d==="standard"?"pl-8 pr-0":"pl-11 pr-3":r?d==="standard"?"pl-0 pr-8":"pl-3 pr-11":d==="standard"?"px-0":"px-3";exports.getInputPaddingClasses=t;exports.getVariantClasses=o;
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;
@@ -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
- export * from './_tailwind-css';
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
- const d = (r, e) => [
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.4",
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
  }
@@ -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";