@matteusan/himig 1.0.0 → 1.0.1
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.
|
@@ -41,11 +41,31 @@ $token-keys: map.keys(data.$ms-tokens);
|
|
|
41
41
|
$variant-keys: map.keys(map.get($map, $token-key));
|
|
42
42
|
@each $variant-key in $variant-keys {
|
|
43
43
|
$_primitive-token-registry: list.append($_primitive-token-registry, '#{$token-key}.#{$variant-key}') !global;
|
|
44
|
-
@debug $_primitive-token-registry;
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
|
|
48
|
+
// TODO: Look further into this function at a later time.
|
|
49
|
+
// @function registry-get($targets: 'all') {
|
|
50
|
+
// @if not tools.is-empty($targets) {
|
|
51
|
+
// $targeted-tokens: ();
|
|
52
|
+
// @each $target in $targets {
|
|
53
|
+
// @each $key, $value in $_primitive-token-registry {
|
|
54
|
+
// @if string.index($key, $target) == 1 {
|
|
55
|
+
// $targeted-tokens: map.set($targeted-tokens, $key, $value);
|
|
56
|
+
// }
|
|
57
|
+
// }
|
|
58
|
+
// }
|
|
59
|
+
// @return $targeted-tokens;
|
|
60
|
+
// }
|
|
61
|
+
//
|
|
62
|
+
// @if $targets == 'all' {
|
|
63
|
+
// @return $_primitive-token-registry;
|
|
64
|
+
// }
|
|
65
|
+
//
|
|
66
|
+
// @return $_primitive-token-registry;
|
|
67
|
+
// }
|
|
68
|
+
|
|
49
69
|
/// Retrieves a token from the primitive token registry based on a given query.
|
|
50
70
|
/// @param {PrimitiveToken} $query
|
|
51
71
|
/// @return {*} primitive token value.
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matteusan/himig",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Matteu's personal design system for building user interfaces.",
|
|
5
5
|
"repository": "https://github.com/MatteuSan/himig",
|
|
6
6
|
"author": "Matteu <matteugt@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"private": false,
|
|
9
8
|
"publishConfig": {
|
|
10
9
|
"access": "public"
|
|
11
10
|
},
|