LuccaSA / lucca-front

documentation
https://prisme.lucca.io
MIT License
38 stars 4 forks source link

feat: allow global LF namespace #3110

Open GuillaumeNury opened 3 days ago

GuillaumeNury commented 3 days ago

Description

Some apps will use different versions of LF. So it has to be namespaced.


Allows importing LF inside a selector with:

@use "@lucca-front/scss/src/commons/config" as scssConfig with (
  $namespace: ".lucca-principal-container"
);
@use "@lucca-front/icons/src/commons/config" as iconsConfig with (
  $namespace: ".lucca-principal-container"
);

@forward "@lucca-front/icons/src/main";
@forward "@lucca-front/scss/src/main";
@forward "@lucca-front/scss/src/components/button";
@forward "@lucca-front/scss/src/components/callout";
@forward "@lucca-front/ng/src/components/popover";
@forward "@lucca-front/ng/src/components/popup";
@forward "@lucca-front/ng/src/components/cdk/global";
@forward "@lucca-front/ng/src/components/cdk/overlay";

LuccaIntegration commented 3 days ago

:woman_cook: https://lucca-front.lucca.tech/PR-3110/storybook