@muraldevkit/ds-foundation 2.4.1 → 2.4.2
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/dist/ios-swift/Mrl.swift
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@muraldevkit/ds-foundation","version":"2.4.
|
|
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"]}}}
|
package/src/styles/focus.scss
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
outline: none;
|
|
54
54
|
|
|
55
55
|
&::#{string.unquote($pseudo-element)} {
|
|
56
|
-
@include mrl-focus-pseudo-element($element-radius, $color-token, $border-width);
|
|
56
|
+
@include mrl-focus-pseudo-element($element-radius, $color-token, $border-width, $is-inverse);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -68,15 +68,24 @@
|
|
|
68
68
|
/// Default is '' which uses the default focus color. To change to the inverse base '-inverse'
|
|
69
69
|
/// @param {String} $border-width - The border width of the element having focus applied to ensure the offset
|
|
70
70
|
/// is correct. Default is '0px'
|
|
71
|
+
/// @param {String} $is-inverse - Used when the element is an inverse use case so colors are updated accordingly.
|
|
72
|
+
/// Available options are "false" (default) and "true"
|
|
71
73
|
///
|
|
72
74
|
/// @example :host(:focus-visible)::after { @include mrl-focus-shadow(); } // Generates the default version
|
|
73
|
-
@mixin mrl-focus-pseudo-element($element-radius: 'var(--mrl-border-radius-functional)', $color-token: '', $border-width: '0px') {
|
|
75
|
+
@mixin mrl-focus-pseudo-element($element-radius: 'var(--mrl-border-radius-functional)', $color-token: '', $border-width: '0px', $is-inverse: 'false') {
|
|
74
76
|
animation-duration: var(--mrl-duration-03);
|
|
75
77
|
animation-fill-mode: forwards;
|
|
76
78
|
animation-iteration-count: 1;
|
|
77
|
-
|
|
79
|
+
@if $is-inverse == 'true' {
|
|
80
|
+
animation-name: border-animation-inverse;
|
|
81
|
+
} @else if $color-token != '' {
|
|
82
|
+
animation-name: border-animation-inverse;
|
|
83
|
+
} @else {
|
|
84
|
+
animation-name: border-animation;
|
|
85
|
+
}
|
|
86
|
+
|
|
78
87
|
animation-timing-function: var(--mrl-timing-m2);
|
|
79
|
-
border: var(--mrl-line-width-focus) solid
|
|
88
|
+
border: var(--mrl-line-width-focus) solid transparent;
|
|
80
89
|
border-radius: calc(#{string.unquote($element-radius)} + var(--mrl-line-width-focus) + var(--mrl-space-offset-focus));
|
|
81
90
|
bottom: calc((var(--mrl-space-offset-focus) + var(--mrl-line-width-focus) + #{string.unquote($border-width)}) * -1);
|
|
82
91
|
content: '';
|
|
@@ -93,7 +102,17 @@
|
|
|
93
102
|
}
|
|
94
103
|
|
|
95
104
|
100% {
|
|
96
|
-
border-color: var(--mrl-color-focus
|
|
105
|
+
border-color: var(--mrl-color-focus);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@keyframes border-animation-inverse {
|
|
110
|
+
0% {
|
|
111
|
+
border-color: transparent;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
100% {
|
|
115
|
+
border-color: var(--mrl-color-focus-inverse);
|
|
97
116
|
}
|
|
98
117
|
}
|
|
99
118
|
}
|