@lucca-front/scss 17.3.8 → 17.3.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "17.3.8",
3
+ "version": "17.3.9",
4
4
  "description": "A Sass framework for Lucca products.",
5
5
  "main": "src/main.scss",
6
6
  "scripts": {},
@@ -23,6 +23,6 @@
23
23
  "normalize.css": "^8.0.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@lucca-front/icons": "v17.3.8"
26
+ "@lucca-front/icons": "v17.3.9"
27
27
  }
28
28
  }
@@ -0,0 +1,15 @@
1
+ // This file contains only the component mixin, this structure never changes.
2
+ // It does not contain its selector, which is present in the index.
3
+ // Any sub-components are placed in the `@at-root`.
4
+ // The `@at-root` eliminates this selector by default, and its parameter can be used to restore it.
5
+
6
+ @mixin component($atRoot: 'without: rule') {
7
+ property: value;
8
+ property: var(--components-sample-property1);
9
+
10
+ @at-root ($atRoot) {
11
+ .sample-subComponent {
12
+ property: var(--components-sample-property2);
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,8 @@
1
+ // All component mixins are exported to this file.
2
+ // This file is always present and is never modified.
3
+ // Calling only this file generates no additional CSS weight.
4
+
5
+ @forward 'vars';
6
+ @forward 'mods';
7
+ @forward 'states';
8
+ @forward 'component';
@@ -0,0 +1,19 @@
1
+ // This file contains all the connections required to make the component functional.
2
+ // The component’s mixins are requested, then assigned to classes.
3
+ // To add the component to the list of all existing components, call it from `components/index` with `@forward 'sample';`.
4
+ // Modifiers and states are optional and must be prefixed by `.mod-` and `.is-`.
5
+
6
+ @use 'exports' as *;
7
+
8
+ .sample {
9
+ @include vars;
10
+ @include component;
11
+
12
+ &.mod-sampleModifierA {
13
+ @include sampleModifierA;
14
+ }
15
+
16
+ &.is-sampleStateA {
17
+ @include sampleStateA;
18
+ }
19
+ }
@@ -0,0 +1,7 @@
1
+ // All component modifiers are defined in this file through various mixins.
2
+ // The file may be empty but must be present.
3
+ // All property values modified by a modifier are modified through a CSS variable.
4
+
5
+ @mixin sampleModifierA {
6
+ --components-sample-property1: otherValue;
7
+ }
@@ -0,0 +1,9 @@
1
+ // All component states are defined in this file through various mixins.
2
+ // The file may be empty but must be present.
3
+ // All property values modified by a state are modified through a CSS variable.
4
+
5
+ @mixin sampleStateA {
6
+ .sample-subComponent {
7
+ --components-sample-property2: otherValue;
8
+ }
9
+ }
@@ -0,0 +1,8 @@
1
+ // All component CSS variables are defined in this file, which contains one mixin.
2
+ // The mixin can be empty, but not the file.
3
+ // CSS variables begin with `--components-componentName-`.
4
+
5
+ @mixin vars {
6
+ --components-sample-property1: value;
7
+ --components-sample-property2: value;
8
+ }