@kosdev-code/base-ui-components 1.0.8 → 1.0.10

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/index.cjs CHANGED
@@ -731,7 +731,7 @@
731
731
  color: ${He("color-disabled")};
732
732
  pointer-events: none;
733
733
  }
734
- `,vo=["black","blue","green","grey","orange","purple","red","white","yellow"],Ta=["xxsm","xsm","sm","med","lrg","xlrg","xxlrg"],Hn=d.createContext(null),Ea=({children:e,publicPath:t})=>{const o=d.useMemo(()=>({basePath:t??"/"}),[t]);return a.jsx(Hn.Provider,{value:o,children:e})},Gn=()=>{const e=d.useContext(Hn);if(!e)throw new Error("BaseUIComponentsContext cannot be used outside of its provider.");return e},[ht]=I(["icon"]),Ia=d.forwardRef(({iconId:e,size:t="sm",color:o,...n},r)=>{const{basePath:s}=Gn();return a.jsx(za,{viewBox:"0 0 36 36",ref:r,"data-size":t,"data-color":o,xmlns:"http://www.w3.org/2000/svg",...n,children:a.jsx("use",{href:`${s}icon-sprite.svg#${e}`})})}),A=d.memo(Ia);A.displayName="Icon";const za=h.svg`
734
+ `,vo=["black","blue","green","grey","orange","purple","red","white","yellow"],Ta=["xxsm","xsm","sm","med","lrg","xlrg","xxlrg"],Hn=d.createContext(null),Ea=({children:e,publicPath:t})=>{const o=d.useMemo(()=>({basePath:t??"/ui/"}),[t]);return a.jsx(Hn.Provider,{value:o,children:e})},Gn=()=>{const e=d.useContext(Hn);if(!e)throw new Error("BaseUIComponentsContext cannot be used outside of its provider.");return e},[ht]=I(["icon"]),Ia=d.forwardRef(({iconId:e,size:t="sm",color:o,...n},r)=>{const{basePath:s}=Gn();return a.jsx(za,{viewBox:"0 0 36 36",ref:r,"data-size":t,"data-color":o,xmlns:"http://www.w3.org/2000/svg",...n,children:a.jsx("use",{href:`${s}icon-sprite.svg#${e}`})})}),A=d.memo(Ia);A.displayName="Icon";const za=h.svg`
735
735
  fill: currentColor;
736
736
  transition: fill 0.125s ease-in-out;
737
737