claritas-web-framework 8.5.8 → 8.5.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/.prettierrc +10 -10
- package/README.md +1 -1
- package/dist/index.css +1 -1
- package/index.html +20 -20
- package/index.js +2 -2
- package/package.json +33 -33
- package/sass/_functions.scss +55 -55
- package/sass/_helpers.scss +8 -8
- package/sass/_mixins.scss +12 -12
- package/sass/_modules.scss +30 -30
- package/sass/_reboot.scss +264 -264
- package/sass/_root.scss +56 -56
- package/sass/_utilities.scss +17 -17
- package/sass/_variables.scss +445 -445
- package/sass/helpers/_container.scss +11 -11
- package/sass/helpers/_embed.scss +36 -36
- package/sass/helpers/_grid.scss +53 -53
- package/sass/helpers/_image.scss +5 -5
- package/sass/helpers/_link.scss +15 -15
- package/sass/helpers/_rfs.scss +303 -303
- package/sass/helpers/_screenReader.scss +13 -13
- package/sass/helpers/_wrap.scss +5 -5
- package/sass/index.scss +12 -12
- package/sass/mixins/_breakpoints.scss +133 -133
- package/sass/mixins/_button.scss +116 -116
- package/sass/mixins/_caret.scss +41 -41
- package/sass/mixins/_clearfix.scss +7 -7
- package/sass/mixins/_colors.scss +23 -23
- package/sass/mixins/_container.scss +21 -21
- package/sass/mixins/_gradient.scss +55 -55
- package/sass/mixins/_grid.scss +156 -156
- package/sass/mixins/_group.scss +70 -70
- package/sass/mixins/_list.scss +18 -18
- package/sass/mixins/_screenReader.scss +22 -22
- package/sass/mixins/_wrap.scss +7 -7
- package/sass/modules/_alert.scss +60 -60
- package/sass/modules/_breadcrumbs.scss +43 -43
- package/sass/modules/_button.scss +170 -170
- package/sass/modules/_card.scss +107 -107
- package/sass/modules/_close.scss +59 -59
- package/sass/modules/_details.scss +48 -48
- package/sass/modules/_dialog.scss +47 -47
- package/sass/modules/_dropdown.scss +44 -43
- package/sass/modules/_form.scss +261 -261
- package/sass/modules/_list.scss +78 -78
- package/sass/modules/_loader.scss +183 -183
- package/sass/modules/_modal.scss +45 -45
- package/sass/modules/_nav.scss +136 -135
- package/sass/modules/_pill.scss +61 -61
- package/sass/modules/_table.scss +96 -96
- package/sass/modules/_tabs.scss +88 -93
- package/sass/modules/_tag.scss +72 -72
- package/sass/modules/_tile.scss +101 -101
- package/sass/modules/_tooltip.scss +108 -108
- package/sass/modules/form/_checkbox.scss +78 -78
- package/sass/modules/form/_file.scss +149 -149
- package/sass/modules/form/_formFieldGroup.scss +60 -60
- package/sass/modules/form/_output.scss +6 -6
- package/sass/modules/form/_progress.scss +55 -55
- package/sass/modules/form/_radio.scss +57 -57
- package/sass/modules/form/_range.scss +144 -144
- package/sass/modules/form/_select.scss +22 -22
- package/sass/modules/form/_text.scss +28 -28
- package/sass/modules/form/_textarea.scss +3 -3
- package/sass/modules/form/_toggle.scss +68 -68
- package/sass/utilities/_align.scss +25 -25
- package/sass/utilities/_border.scss +59 -59
- package/sass/utilities/_colors.scss +76 -76
- package/sass/utilities/_display.scss +25 -25
- package/sass/utilities/_flex.scss +65 -65
- package/sass/utilities/_float.scss +17 -17
- package/sass/utilities/_order.scss +23 -23
- package/sass/utilities/_overflow.scss +25 -25
- package/sass/utilities/_pointerEvents.scss +17 -17
- package/sass/utilities/_position.scss +59 -59
- package/sass/utilities/_shadow.scss +7 -7
- package/sass/utilities/_size.scss +118 -118
- package/sass/utilities/_spacing.scss +107 -107
- package/sass/utilities/_translate.scss +15 -15
- package/sass/utilities/_typography.scss +62 -62
- package/sass/utilities/_visibility.scss +17 -17
- package/sass/utilities/_zIndex.scss +15 -15
- package/tests.js +5 -5
- package/webpack.config.js +27 -27
- package/webpack.plugins.js +15 -15
- package/webpack.rules.js +8 -8
package/index.html
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
8
|
-
</head>
|
|
9
|
-
|
|
10
|
-
<body>
|
|
11
|
-
<div class="container">
|
|
12
|
-
hello
|
|
13
|
-
<button type="button" class="button button--primary">Hello</button>
|
|
14
|
-
<button type="button" class="button button--primary button--outline">Hello</button>
|
|
15
|
-
<button type="button" class="button button--primary button--outline" disabled>Hello</button>
|
|
16
|
-
<button type="button" class="button button--danger" disabled>Hello</button>
|
|
17
|
-
<div class="alert alert--primary">Hello <a href="/">Click me</a></div>
|
|
18
|
-
</div>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
8
|
+
</head>
|
|
9
|
+
|
|
10
|
+
<body>
|
|
11
|
+
<div class="container">
|
|
12
|
+
hello
|
|
13
|
+
<button type="button" class="button button--primary">Hello</button>
|
|
14
|
+
<button type="button" class="button button--primary button--outline">Hello</button>
|
|
15
|
+
<button type="button" class="button button--primary button--outline" disabled>Hello</button>
|
|
16
|
+
<button type="button" class="button button--danger" disabled>Hello</button>
|
|
17
|
+
<div class="alert alert--primary">Hello <a href="/">Click me</a></div>
|
|
18
|
+
</div>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Import CSS
|
|
2
|
-
import "./sass/index.scss";
|
|
1
|
+
// Import CSS
|
|
2
|
+
import "./sass/index.scss";
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "claritas-web-framework",
|
|
3
|
-
"version": "8.5.
|
|
4
|
-
"description": "The CSS framework built for Claritas front end.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "webpack --config webpack.config.js --mode production",
|
|
8
|
-
"start": "webpack serve --config webpack.config.js --mode development",
|
|
9
|
-
"find-unused-sass-variables": "npx find-unused-sass-variables ./sass/"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "ssh://git@cla-git01/srv/git/ClaWebFramework"
|
|
14
|
-
},
|
|
15
|
-
"author": "David Brooks",
|
|
16
|
-
"license": "UNLICENSED",
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"css-loader": "^7.1.2",
|
|
19
|
-
"find-unused-sass-variables": "^6.1.0",
|
|
20
|
-
"html-webpack-plugin": "^5.6.
|
|
21
|
-
"mini-css-extract-plugin": "^2.9.
|
|
22
|
-
"prettier": "^3.
|
|
23
|
-
"sass-loader": "^16.0.5",
|
|
24
|
-
"webpack": "^5.
|
|
25
|
-
"webpack-cli": "^6.0.1",
|
|
26
|
-
"webpack-dev-server": "^5.2.2"
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"modern-normalize": "^3.0.1",
|
|
30
|
-
"rfs": "^10.0.0",
|
|
31
|
-
"sass": "^1.
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "claritas-web-framework",
|
|
3
|
+
"version": "8.5.9",
|
|
4
|
+
"description": "The CSS framework built for Claritas front end.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "webpack --config webpack.config.js --mode production",
|
|
8
|
+
"start": "webpack serve --config webpack.config.js --mode development",
|
|
9
|
+
"find-unused-sass-variables": "npx find-unused-sass-variables ./sass/"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "ssh://git@cla-git01/srv/git/ClaWebFramework"
|
|
14
|
+
},
|
|
15
|
+
"author": "David Brooks",
|
|
16
|
+
"license": "UNLICENSED",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"css-loader": "^7.1.2",
|
|
19
|
+
"find-unused-sass-variables": "^6.1.0",
|
|
20
|
+
"html-webpack-plugin": "^5.6.4",
|
|
21
|
+
"mini-css-extract-plugin": "^2.9.4",
|
|
22
|
+
"prettier": "^3.6.2",
|
|
23
|
+
"sass-loader": "^16.0.5",
|
|
24
|
+
"webpack": "^5.101.3",
|
|
25
|
+
"webpack-cli": "^6.0.1",
|
|
26
|
+
"webpack-dev-server": "^5.2.2"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"modern-normalize": "^3.0.1",
|
|
30
|
+
"rfs": "^10.0.0",
|
|
31
|
+
"sass": "^1.90.0"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/sass/_functions.scss
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
@use "sass:color";
|
|
2
|
-
@use "sass:math";
|
|
3
|
-
@use "sass:string";
|
|
4
|
-
@use "./variables" as *;
|
|
5
|
-
|
|
6
|
-
// Functions
|
|
7
|
-
|
|
8
|
-
// Replace `$search` with `$replace` in `$string`
|
|
9
|
-
// Used on our SVG icon backgrounds for custom forms.
|
|
10
|
-
// @author Hugo Giraudel
|
|
11
|
-
// @param {String} $string - Initial string
|
|
12
|
-
// @param {String} $search - Substring to replace
|
|
13
|
-
// @param {String} $replace ('') - New value
|
|
14
|
-
// @return {String} - Updated string
|
|
15
|
-
|
|
16
|
-
@function str-replace($string, $search, $replace: "") {
|
|
17
|
-
$index: string.index($string, $search);
|
|
18
|
-
|
|
19
|
-
@if $index {
|
|
20
|
-
$new: str-replace(string.slice($string, $index + string.length($search)), $search, $replace);
|
|
21
|
-
|
|
22
|
-
@return (string.slice($string, 1, $index - 1) + $replace + $new);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@return $string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// See https://codepen.io/kevinweber/pen/dXWoRw
|
|
29
|
-
// Requires the use of quotes around data URIs.
|
|
30
|
-
|
|
31
|
-
@function escape-svg($string) {
|
|
32
|
-
@if string.index($string, "data:image/svg+xml") {
|
|
33
|
-
@each $char, $encoded in $escaped-characters {
|
|
34
|
-
// Do not escape the url brackets
|
|
35
|
-
|
|
36
|
-
@if string.index($string, "url(") == 1 {
|
|
37
|
-
$string: url("#{str-replace(string.slice($string, 6, -3), $char, $encoded)}");
|
|
38
|
-
} @else {
|
|
39
|
-
$string: str-replace($string, $char, $encoded);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@return $string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@function color-flip($key, $value, $threshold: $color-flip-threshold, $lightness: $color-flip-l, $opacity: 100%) {
|
|
48
|
-
$color-sum: math.max(color.channel($value, "lightness", $space: hsl), 0%);
|
|
49
|
-
|
|
50
|
-
@if $color-sum > $threshold {
|
|
51
|
-
@return hsl(from var(--dark) h s l / $opacity);
|
|
52
|
-
} @else {
|
|
53
|
-
@return hsl(from var(--white) h s l / $opacity);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "sass:math";
|
|
3
|
+
@use "sass:string";
|
|
4
|
+
@use "./variables" as *;
|
|
5
|
+
|
|
6
|
+
// Functions
|
|
7
|
+
|
|
8
|
+
// Replace `$search` with `$replace` in `$string`
|
|
9
|
+
// Used on our SVG icon backgrounds for custom forms.
|
|
10
|
+
// @author Hugo Giraudel
|
|
11
|
+
// @param {String} $string - Initial string
|
|
12
|
+
// @param {String} $search - Substring to replace
|
|
13
|
+
// @param {String} $replace ('') - New value
|
|
14
|
+
// @return {String} - Updated string
|
|
15
|
+
|
|
16
|
+
@function str-replace($string, $search, $replace: "") {
|
|
17
|
+
$index: string.index($string, $search);
|
|
18
|
+
|
|
19
|
+
@if $index {
|
|
20
|
+
$new: str-replace(string.slice($string, $index + string.length($search)), $search, $replace);
|
|
21
|
+
|
|
22
|
+
@return (string.slice($string, 1, $index - 1) + $replace + $new);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@return $string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// See https://codepen.io/kevinweber/pen/dXWoRw
|
|
29
|
+
// Requires the use of quotes around data URIs.
|
|
30
|
+
|
|
31
|
+
@function escape-svg($string) {
|
|
32
|
+
@if string.index($string, "data:image/svg+xml") {
|
|
33
|
+
@each $char, $encoded in $escaped-characters {
|
|
34
|
+
// Do not escape the url brackets
|
|
35
|
+
|
|
36
|
+
@if string.index($string, "url(") == 1 {
|
|
37
|
+
$string: url("#{str-replace(string.slice($string, 6, -3), $char, $encoded)}");
|
|
38
|
+
} @else {
|
|
39
|
+
$string: str-replace($string, $char, $encoded);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@return $string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@function color-flip($key, $value, $threshold: $color-flip-threshold, $lightness: $color-flip-l, $opacity: 100%) {
|
|
48
|
+
$color-sum: math.max(color.channel($value, "lightness", $space: hsl), 0%);
|
|
49
|
+
|
|
50
|
+
@if $color-sum > $threshold {
|
|
51
|
+
@return hsl(from var(--dark) h s l / $opacity);
|
|
52
|
+
} @else {
|
|
53
|
+
@return hsl(from var(--white) h s l / $opacity);
|
|
54
|
+
}
|
|
55
|
+
}
|
package/sass/_helpers.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@forward "./helpers/container";
|
|
2
|
-
@forward "./helpers/embed";
|
|
3
|
-
@forward "./helpers/grid";
|
|
4
|
-
@forward "./helpers/image";
|
|
5
|
-
@forward "./helpers/link";
|
|
6
|
-
@forward "./helpers/rfs";
|
|
7
|
-
@forward "./helpers/screenReader";
|
|
8
|
-
@forward "./helpers/wrap";
|
|
1
|
+
@forward "./helpers/container";
|
|
2
|
+
@forward "./helpers/embed";
|
|
3
|
+
@forward "./helpers/grid";
|
|
4
|
+
@forward "./helpers/image";
|
|
5
|
+
@forward "./helpers/link";
|
|
6
|
+
@forward "./helpers/rfs";
|
|
7
|
+
@forward "./helpers/screenReader";
|
|
8
|
+
@forward "./helpers/wrap";
|
package/sass/_mixins.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@forward "./mixins/breakpoints";
|
|
2
|
-
@forward "./mixins/button";
|
|
3
|
-
@forward "./mixins/caret";
|
|
4
|
-
@forward "./mixins/clearfix";
|
|
5
|
-
@forward "./mixins/colors";
|
|
6
|
-
@forward "./mixins/container";
|
|
7
|
-
@forward "./mixins/gradient";
|
|
8
|
-
@forward "./mixins/grid";
|
|
9
|
-
@forward "./mixins/group";
|
|
10
|
-
@forward "./mixins/list";
|
|
11
|
-
@forward "./mixins/screenReader";
|
|
12
|
-
@forward "./mixins/wrap";
|
|
1
|
+
@forward "./mixins/breakpoints";
|
|
2
|
+
@forward "./mixins/button";
|
|
3
|
+
@forward "./mixins/caret";
|
|
4
|
+
@forward "./mixins/clearfix";
|
|
5
|
+
@forward "./mixins/colors";
|
|
6
|
+
@forward "./mixins/container";
|
|
7
|
+
@forward "./mixins/gradient";
|
|
8
|
+
@forward "./mixins/grid";
|
|
9
|
+
@forward "./mixins/group";
|
|
10
|
+
@forward "./mixins/list";
|
|
11
|
+
@forward "./mixins/screenReader";
|
|
12
|
+
@forward "./mixins/wrap";
|
package/sass/_modules.scss
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
@forward "./modules/alert";
|
|
2
|
-
@forward "./modules/breadcrumbs";
|
|
3
|
-
@forward "./modules/button";
|
|
4
|
-
@forward "./modules/card";
|
|
5
|
-
@forward "./modules/close";
|
|
6
|
-
@forward "./modules/details";
|
|
7
|
-
@forward "./modules/dialog";
|
|
8
|
-
@forward "./modules/dropdown";
|
|
9
|
-
@forward "./modules/form";
|
|
10
|
-
@forward "./modules/form/formFieldGroup";
|
|
11
|
-
@forward "./modules/form/checkbox";
|
|
12
|
-
@forward "./modules/form/file";
|
|
13
|
-
@forward "./modules/form/output";
|
|
14
|
-
@forward "./modules/form/progress";
|
|
15
|
-
@forward "./modules/form/radio";
|
|
16
|
-
@forward "./modules/form/range";
|
|
17
|
-
@forward "./modules/form/select";
|
|
18
|
-
@forward "./modules/form/text";
|
|
19
|
-
@forward "./modules/form/textarea";
|
|
20
|
-
@forward "./modules/form/toggle";
|
|
21
|
-
@forward "./modules/list";
|
|
22
|
-
@forward "./modules/loader";
|
|
23
|
-
@forward "./modules/modal";
|
|
24
|
-
@forward "./modules/nav";
|
|
25
|
-
@forward "./modules/pill";
|
|
26
|
-
@forward "./modules/table";
|
|
27
|
-
@forward "./modules/tabs";
|
|
28
|
-
@forward "./modules/tag";
|
|
29
|
-
@forward "./modules/tile";
|
|
30
|
-
@forward "./modules/tooltip";
|
|
1
|
+
@forward "./modules/alert";
|
|
2
|
+
@forward "./modules/breadcrumbs";
|
|
3
|
+
@forward "./modules/button";
|
|
4
|
+
@forward "./modules/card";
|
|
5
|
+
@forward "./modules/close";
|
|
6
|
+
@forward "./modules/details";
|
|
7
|
+
@forward "./modules/dialog";
|
|
8
|
+
@forward "./modules/dropdown";
|
|
9
|
+
@forward "./modules/form";
|
|
10
|
+
@forward "./modules/form/formFieldGroup";
|
|
11
|
+
@forward "./modules/form/checkbox";
|
|
12
|
+
@forward "./modules/form/file";
|
|
13
|
+
@forward "./modules/form/output";
|
|
14
|
+
@forward "./modules/form/progress";
|
|
15
|
+
@forward "./modules/form/radio";
|
|
16
|
+
@forward "./modules/form/range";
|
|
17
|
+
@forward "./modules/form/select";
|
|
18
|
+
@forward "./modules/form/text";
|
|
19
|
+
@forward "./modules/form/textarea";
|
|
20
|
+
@forward "./modules/form/toggle";
|
|
21
|
+
@forward "./modules/list";
|
|
22
|
+
@forward "./modules/loader";
|
|
23
|
+
@forward "./modules/modal";
|
|
24
|
+
@forward "./modules/nav";
|
|
25
|
+
@forward "./modules/pill";
|
|
26
|
+
@forward "./modules/table";
|
|
27
|
+
@forward "./modules/tabs";
|
|
28
|
+
@forward "./modules/tag";
|
|
29
|
+
@forward "./modules/tile";
|
|
30
|
+
@forward "./modules/tooltip";
|