@oslokommune/punkt-css 12.12.3 → 12.12.4
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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [12.12.4](https://github.com/oslokommune/punkt/compare/12.12.3...12.12.4) (2024-12-11)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* str-slice --> string.slice etc.. 👩🏻🔧 (#2086).
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [12.12.3](https://github.com/oslokommune/punkt/compare/12.12.2...12.12.3) (2024-12-09)
|
|
9
27
|
|
|
10
28
|
### ⚠ BREAKING CHANGES
|
|
@@ -22,13 +22,7 @@
|
|
|
22
22
|
// Requires the use of quotes around data URIs.
|
|
23
23
|
|
|
24
24
|
// Characters which are escaped by the escape-svg function
|
|
25
|
-
$escaped-characters: (
|
|
26
|
-
('<', '%3c'),
|
|
27
|
-
('>', '%3e'),
|
|
28
|
-
('#', '%23'),
|
|
29
|
-
('(', '%28'),
|
|
30
|
-
(')', '%29')
|
|
31
|
-
) !default;
|
|
25
|
+
$escaped-characters: (('<', '%3c'), ('>', '%3e'), ('#', '%23'), ('(', '%28'), (')', '%29')) !default;
|
|
32
26
|
|
|
33
27
|
// Replace `$search` with `$replace` in `$string`
|
|
34
28
|
// Used on our SVG icon backgrounds for custom forms.
|
|
@@ -42,8 +36,8 @@ $escaped-characters: (
|
|
|
42
36
|
$index: string.index($string, $search);
|
|
43
37
|
|
|
44
38
|
@if $index {
|
|
45
|
-
@return
|
|
46
|
-
str-replace(
|
|
39
|
+
@return string.slice($string, 1, $index - 1) + $replace +
|
|
40
|
+
str-replace(string.slice($string, $index + string.length($search)), $search, $replace);
|
|
47
41
|
}
|
|
48
42
|
|
|
49
43
|
@return $string;
|
|
@@ -54,7 +48,7 @@ $escaped-characters: (
|
|
|
54
48
|
@each $char, $encoded in $escaped-characters {
|
|
55
49
|
// Do not escape the url brackets
|
|
56
50
|
@if string.index($string, 'url(') == 1 {
|
|
57
|
-
$string: url('#{str-replace(
|
|
51
|
+
$string: url('#{str-replace(string.slice($string, 6, -3), $char, $encoded)}');
|
|
58
52
|
} @else {
|
|
59
53
|
$string: str-replace($string, $char, $encoded);
|
|
60
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "12.12.
|
|
3
|
+
"version": "12.12.4",
|
|
4
4
|
"description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
55
55
|
},
|
|
56
56
|
"license": "MIT",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "4bcea517f67a8684e49cc6d8a1c1e87231b933c0"
|
|
58
58
|
}
|