@publicapps/icons 0.3.1 → 0.3.3
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/IconStyle.js +1 -1
- package/esm/IconStyle.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/IconStyle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";"use client";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var e=require("@publicapps/styles");var t=t=>{const s=t?.cssObject?t?.cssObject:e.mainTheme?.cssObject;const
|
|
1
|
+
"use strict";"use client";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var e=require("@publicapps/styles");var t=t=>{const s=t?.cssObject?t?.cssObject:e.mainTheme?.cssObject;const l={icon_container:`${e.styleVariables?.prefixDefaultClassName}_icon_container`,icon:`${e.styleVariables?.prefixDefaultClassName}_icon`,sx:`${e.styleVariables?.prefixDefaultClassName}_icon_sx`};const o=(0,e.StyleBuilder)({blnRandomPrefix:false,blnIsDefaultStyle:true,blnCbmisStyle:true,objStyles:{[l?.icon_container]:{position:"relative",background:s?.color?.[e.cssKeys?.transparent],backgroundColor:s?.color?.[e.cssKeys?.transparent],margin:"0",padding:0,zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",placeContent:"center",outline:"none",border:"none",height:"fit-content",width:"fit-content",boxSizing:s?.boxSizing?.[e.cssKeys?.borderBox],overflow:"hidden"}}});const n=(0,e.StyleBuilder)({blnRandomPrefix:true,blnIsDefaultStyle:false,blnCbmisStyle:true,objStyles:{[l?.icon_container]:t=>({"&hover":t?.onClick?{background:s?.color?.[e.cssKeys?.bodyColorBgLight],cursor:"pointer"}:null,color:e.styleFunction.checkColorReturnValue(t?.color||s?.color?.[e.cssKeys?.currentColor])}),[l?.sx]:e=>({...e?.sx})}});const r=(0,e.StyleBuilder)({blnRandomPrefix:false,blnIsDefaultStyle:true,blnCbmisStyle:true,objStyles:{[l?.icon]:{fill:s?.color?.[e.cssKeys?.currentColor]}}});const i=(0,e.StyleBuilder)({blnRandomPrefix:true,blnIsDefaultStyle:false,blnCbmisStyle:true,objStyles:{[l?.icon]:t=>{if(t?.size)return{width:t?.size,height:t?.size};if(t?.fontSize)return{...t?.fontSize};return{width:s?.text?.[e.cssKeys?.size]?.[e.cssKeys?.body1],height:s?.text?.[e.cssKeys?.size]?.[e.cssKeys?.body1]}}}});return{classesName:l,style:o,styleSx:n,styleIconBody:r,styleSxIconBody:i}};exports.default=t;
|
package/esm/IconStyle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{StyleBuilder as e,styleVariables as t,cssKeys as o,mainTheme as n,styleFunction as l}from"@publicapps/styles";export default r=>{const i=r?.cssObject?r?.cssObject:n?.cssObject;const s={icon_container:`${t?.prefixDefaultClassName}_icon_container`,icon:`${t?.prefixDefaultClassName}_icon`,sx:`${t?.prefixDefaultClassName}_icon_sx`};const c=e({blnRandomPrefix:false,blnIsDefaultStyle:true,blnCbmisStyle:true,objStyles:{[s?.icon_container]:{position:"relative",background:i?.color?.[o?.transparent],backgroundColor:i?.color?.[o?.transparent],margin:"
|
|
1
|
+
"use client";import{StyleBuilder as e,styleVariables as t,cssKeys as o,mainTheme as n,styleFunction as l}from"@publicapps/styles";export default r=>{const i=r?.cssObject?r?.cssObject:n?.cssObject;const s={icon_container:`${t?.prefixDefaultClassName}_icon_container`,icon:`${t?.prefixDefaultClassName}_icon`,sx:`${t?.prefixDefaultClassName}_icon_sx`};const c=e({blnRandomPrefix:false,blnIsDefaultStyle:true,blnCbmisStyle:true,objStyles:{[s?.icon_container]:{position:"relative",background:i?.color?.[o?.transparent],backgroundColor:i?.color?.[o?.transparent],margin:"0",padding:0,zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",placeContent:"center",outline:"none",border:"none",height:"fit-content",width:"fit-content",boxSizing:i?.boxSizing?.[o?.borderBox],overflow:"hidden"}}});const a=e({blnRandomPrefix:true,blnIsDefaultStyle:false,blnCbmisStyle:true,objStyles:{[s?.icon_container]:e=>({"&hover":e?.onClick?{background:i?.color?.[o?.bodyColorBgLight],cursor:"pointer"}:null,color:l.checkColorReturnValue(e?.color||i?.color?.[o?.currentColor])}),[s?.sx]:e=>({...e?.sx})}});const b=e({blnRandomPrefix:false,blnIsDefaultStyle:true,blnCbmisStyle:true,objStyles:{[s?.icon]:{fill:i?.color?.[o?.currentColor]}}});const u=e({blnRandomPrefix:true,blnIsDefaultStyle:false,blnCbmisStyle:true,objStyles:{[s?.icon]:e=>{if(e?.size)return{width:e?.size,height:e?.size};if(e?.fontSize)return{...e?.fontSize};return{width:i?.text?.[o?.size]?.[o?.body1],height:i?.text?.[o?.size]?.[o?.body1]}}}});return{classesName:s,style:c,styleSx:a,styleIconBody:b,styleSxIconBody:u}};
|
package/index.js
CHANGED