@muraldevkit/ds-foundation 2.4.2 → 2.4.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!--
4
4
  Do not edit directly
5
- Generated on Thu, 15 Feb 2024 21:47:46 GMT
5
+ Generated on Tue, 27 Feb 2024 17:55:39 GMT
6
6
  -->
7
7
  <resources>
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!--
4
4
  Do not edit directly
5
- Generated on Thu, 15 Feb 2024 21:47:46 GMT
5
+ Generated on Tue, 27 Feb 2024 17:55:39 GMT
6
6
  -->
7
7
  <resources>
8
8
 
@@ -4,7 +4,7 @@
4
4
  //
5
5
 
6
6
  // Do not edit directly
7
- // Generated on Thu, 15 Feb 2024 21:47:46 GMT
7
+ // Generated on Tue, 27 Feb 2024 17:55:39 GMT
8
8
 
9
9
 
10
10
  import UIKit
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@muraldevkit/ds-foundation","version":"2.4.2","description":"Mural's design system's Foundation package containing our design language features used across all components","license":"https://www.mural.co/terms/developer-addendum","scripts":{"copy":"npm run copy:json","copy:json":"cpy src/tokens/*.json dist/tokens/ --flat","build:minify":"npm run build:fonts:min && npm run build:foundation:min","build:transpile":"npm run build:fonts && npm run build:foundation","build:foundation":"sass src/styles/index.scss dist/foundation.css","build:foundation:min":"sass src/styles/index.scss dist/foundation.min.css --style compressed","build:fonts":"sass src/styles/fonts.scss dist/fonts.css","build:fonts:min":"sass src/styles/fonts.scss dist/fonts.min.css --style compressed","build:tokens":"style-dictionary build --config ../../node_modules/@muraldevkit/ds-utilities/lib/configs/style-dictionary.json","build:styles":"npm run build:transpile && npm run build:minify","build":"npm run clean && npm run build:tokens && npm run build:styles","postbuild":"npm run copy","clean":"rimraf dist && rimraf src/styles/_global.scss","watch":"sass src/styles/index.scss dist/foundation.css --watch","release":"npx semantic-release"},"files":["dist/","src/styles/","assets/fonts"],"publishConfig":{"access":"public"},"packageConfig":{"status":"integration-ready"},"devDependencies":{"@muraldevkit/ds-semrel-config":"1.1.0","@muraldevkit/ds-semrel-manager":"1.0.0","@muraldevkit/ds-semrel-stencil-exports":"1.0.1","@muraldevkit/ds-utilities":"1.0.5","cpy-cli":"4.2.0","rimraf":"3.0.2","sass":"1.62.1","semantic-release-monorepo":"7.0.5","style-dictionary":"3.7.2"},"release":{"extends":["semantic-release-monorepo","./config/release.config"]},"nx":{"targets":{"build":{"dependsOn":["^build"]},"inputs":["{projectRoot}/src/**/*"],"outputs":["{projectRoot}/dist"]}}}
1
+ {"name":"@muraldevkit/ds-foundation","version":"2.4.3","description":"Mural's design system's Foundation package containing our design language features used across all components","license":"https://www.mural.co/terms/developer-addendum","scripts":{"copy":"npm run copy:json","copy:json":"cpy src/tokens/*.json dist/tokens/ --flat","build:minify":"npm run build:fonts:min && npm run build:foundation:min","build:transpile":"npm run build:fonts && npm run build:foundation","build:foundation":"sass src/styles/index.scss dist/foundation.css","build:foundation:min":"sass src/styles/index.scss dist/foundation.min.css --style compressed","build:fonts":"sass src/styles/fonts.scss dist/fonts.css","build:fonts:min":"sass src/styles/fonts.scss dist/fonts.min.css --style compressed","build:tokens":"style-dictionary build --config ../../node_modules/@muraldevkit/ds-utilities/lib/configs/style-dictionary.json","build:styles":"npm run build:transpile && npm run build:minify","build":"npm run clean && npm run build:tokens && npm run build:styles","postbuild":"npm run copy","clean":"rimraf dist && rimraf src/styles/_global.scss","watch":"sass src/styles/index.scss dist/foundation.css --watch","release":"npx semantic-release"},"files":["dist/","src/styles/","assets/fonts"],"publishConfig":{"access":"public"},"packageConfig":{"status":"integration-ready"},"devDependencies":{"@muraldevkit/ds-semrel-config":"1.1.0","@muraldevkit/ds-semrel-manager":"1.0.0","@muraldevkit/ds-semrel-stencil-exports":"1.0.1","@muraldevkit/ds-utilities":"1.0.5","cpy-cli":"4.2.0","rimraf":"3.0.2","sass":"1.62.1","semantic-release-monorepo":"7.0.5","style-dictionary":"3.7.2"},"release":{"extends":["semantic-release-monorepo","./config/release.config"]},"nx":{"targets":{"build":{"dependsOn":["^build"]},"inputs":["{projectRoot}/src/**/*"],"outputs":["{projectRoot}/dist"]}}}
@@ -22,12 +22,13 @@
22
22
  /// Typical use includes ":focus" or ":focus-within"
23
23
  /// @param {String} $border-width - The border width of the element having focus applied to ensure the offset
24
24
  /// is correct. Default is '0px'
25
+ /// @param {String} $position - The position of the element having focus applied to ensure the offset, default is 'relative', pass in 'none' to remove the position property
25
26
  ///
26
27
  /// @example @include mrl-focus; // Generates the default outline version
27
28
  /// @example @include mrl-focus($is-inverse: 'true'); // Generates an inverse outline
28
29
  /// Generate the element version in the default color on a control element that has a border using the after pseudo element
29
30
  /// @example @include mrl-focus('element', 'false', 'var(--mrl-border-radius-control)', 'after');
30
- @mixin mrl-focus($style: 'element', $is-inverse: 'false', $element-radius: 'var(--mrl-border-radius-functional)', $pseudo-element: 'after', $is-inline-element: 'false', $focus-selector: ':focus-visible', $border-width: '0px') {
31
+ @mixin mrl-focus($style: 'element', $is-inverse: 'false', $element-radius: 'var(--mrl-border-radius-functional)', $pseudo-element: 'after', $is-inline-element: 'false', $focus-selector: ':focus-visible', $border-width: '0px', $position: 'relative') {
31
32
  $color-token: '';
32
33
 
33
34
  @if $is-inverse == 'true' {
@@ -39,7 +40,13 @@
39
40
  }
40
41
 
41
42
  @if $style == 'element' {
42
- position: relative;
43
+ @if $position == 'relative' {
44
+ position: relative;
45
+ }
46
+
47
+ @if $position == 'absolute' {
48
+ position: absolute;
49
+ }
43
50
  }
44
51
 
45
52
  &#{string.unquote($focus-selector)} {