@brightspace-ui/core 3.339.0 → 3.340.0

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/README.md CHANGED
@@ -84,7 +84,7 @@ npm install @brightspace-ui/core
84
84
 
85
85
  After cloning the repo, run `npm install` to install dependencies.
86
86
 
87
- Run `npm run build` once, or any time icon or Sass files are changed.
87
+ Run `npm run build` once, or any time icon files are changed.
88
88
 
89
89
  ### Running the demos
90
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.339.0",
3
+ "version": "3.340.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",
@@ -12,9 +12,8 @@
12
12
  "build:clean": "node ./cli/clean.js",
13
13
  "build:icons": "node ./cli/icon-generator.js",
14
14
  "build:illustrations": "node ./cli/state-illustration-generator.js",
15
- "build:sass": "sass ./test/sass.scss > ./test/sass.output.css",
16
15
  "build:wca": "node ./cli/wca.js \"{components,mixins,templates}/**/*.js\"",
17
- "build": "npm run build:clean && npm run build:icons && npm run build:illustrations && npm run build:sass && npm run build:wca",
16
+ "build": "npm run build:clean && npm run build:icons && npm run build:illustrations && npm run build:wca",
18
17
  "build-static": "rollup -c ./rollup/rollup.config.js",
19
18
  "lint": "npm run lint:eslint && npm run lint:style",
20
19
  "lint:eslint": "eslint .",
@@ -67,7 +66,6 @@
67
66
  "rollup": "^4",
68
67
  "rollup-plugin-copy": "^3",
69
68
  "rollup-plugin-delete": "^3",
70
- "sass": "^1",
71
69
  "sinon": "^22",
72
70
  "stylelint": "^17",
73
71
  "web-component-analyzer": "^2"
@@ -1,38 +0,0 @@
1
- @mixin d2l-input-radio() {
2
- -webkit-appearance: none;
3
- -moz-appearance: none;
4
- appearance: none;
5
- background-position: center center;
6
- background-repeat: no-repeat;
7
- background-size: 0.5rem 0.5rem;
8
- border-radius: 50%;
9
- border-style: solid;
10
- box-sizing: border-box;
11
- display: inline-block;
12
- height: 1.2rem;
13
- margin: 0;
14
- padding: 0;
15
- vertical-align: middle;
16
- width: 1.2rem;
17
- &:checked {
18
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%0A%09%3Ccircle%20cx%3D%225%22%20cy%3D%225%22%20r%3D%225%22%20fill%3D%22%23494c4e%22%3E%3C/circle%3E%0A%3C/svg%3E");
19
- }
20
- &,
21
- &:hover:disabled {
22
- background-color: var(--d2l-color-regolith);
23
- border-color: var(--d2l-color-galena);
24
- border-width: 1px;
25
- }
26
- &:hover,
27
- &:focus {
28
- border-color: var(--d2l-color-celestine);
29
- border-width: 2px;
30
- outline: none;
31
- }
32
- &[aria-invalid="true"] {
33
- border-color: var(--d2l-color-cinnabar);
34
- }
35
- &:disabled {
36
- opacity: 0.5;
37
- }
38
- }
@@ -1,64 +0,0 @@
1
- @mixin d2l-input-text(
2
- $include-pseudo-classes: true,
3
- $line-height: 1.2rem,
4
- $padding: 0.4rem 0.75rem,
5
- $padding-focus: calc(0.4rem - 1px) calc(0.75rem - 1px)
6
- ) {
7
- background-color: #ffffff;
8
- border-radius: 0.3rem;
9
- border-style: solid;
10
- border-width: 1px;
11
- box-shadow: inset 0 2px 0 0 rgba(177, 185, 190, 0.2), /* corundum */;
12
- box-sizing: border-box;
13
- color: var(--d2l-color-ferrite);
14
- display: inline-block;
15
- font-family: inherit;
16
- font-size: 0.8rem;
17
- font-weight: 400;
18
- height: auto;
19
- letter-spacing: 0.02rem;
20
- line-height: $line-height;
21
- margin: 0;
22
- min-width: calc(2rem + 1em);
23
- position: relative;
24
- vertical-align: middle;
25
- width: 100%;
26
- &::placeholder,
27
- &::-ms-input-placeholder {
28
- color: var(--d2l-color-galena);
29
- font-size: 0.8rem;
30
- font-weight: 400;
31
- opacity: 1; /* Firefox has non-1 default */
32
- }
33
- &:hover,
34
- &:focus {
35
- border-color: var(--d2l-color-celestine);
36
- border-width: 2px;
37
- outline: none;
38
- padding: $padding-focus;
39
- }
40
- &[aria-invalid="true"] {
41
- border-color: var(--d2l-color-cinnabar);
42
- }
43
- &,
44
- &:hover:disabled,
45
- &[aria-invalid="true"]:disabled {
46
- border-color: var(--d2l-color-galena);
47
- border-width: 1px;
48
- padding: $padding;
49
- }
50
- &:disabled {
51
- opacity: 0.5;
52
- }
53
- @if $include-pseudo-classes {
54
- &::-webkit-search-cancel-button,
55
- &::-webkit-search-decoration {
56
- display: none;
57
- }
58
- &::-ms-clear {
59
- display: none;
60
- height: 0;
61
- width: 0;
62
- }
63
- }
64
- }
@@ -1,37 +0,0 @@
1
- @use "./text.scss";
2
-
3
- @mixin d2l-input-textarea() {
4
- overflow: auto;
5
- @include text.d2l-input-text(
6
- $include-pseudo-classes: false,
7
- $line-height: normal,
8
- $padding: 0.5rem 0.75rem,
9
- $padding-focus: calc(0.5rem - 1px) calc(0.75rem - 1px)
10
- );
11
- &[aria-invalid="true"] {
12
- background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE4IDE4Ij4KICA8cGF0aCBmaWxsPSIjY2QyMDI2IiBkPSJNMTcuNzkgMTUuMTFsLTctMTRhMiAyIDAgMCAwLTMuNTggMGwtNyAxNGExLjk3NSAxLjk3NSAwIDAgMCAuMDkgMS45NEEyIDIgMCAwIDAgMiAxOGgxNGExLjk5NCAxLjk5NCAwIDAgMCAxLjctLjk1IDEuOTY3IDEuOTY3IDAgMCAwIC4wOS0xLjk0ek05IDE2YTEuNSAxLjUgMCAxIDEgMS41LTEuNUExLjUgMS41IDAgMCAxIDkgMTZ6bS45OC00LjgwNmExIDEgMCAwIDEtMS45NiAwbC0uOTktNUExIDEgMCAwIDEgOC4wMSA1aDEuOTgzYTEgMSAwIDAgMSAuOTggMS4xOTR6Ii8+Cjwvc3ZnPgo=");
13
- background-position: top 12px right 18px;
14
- background-repeat: no-repeat;
15
- background-size: 0.8rem 0.8rem;
16
- padding-right: calc(18px + 0.8rem);
17
- &:hover,
18
- &:focus {
19
- background-position: top calc(12px - 1px) right calc(18px - 1px);
20
- padding-right: calc(18px + 0.8rem - 1px);
21
- }
22
- &:disabled {
23
- background-image: none;
24
- }
25
- }
26
- [dir="rtl"] &[aria-invalid="true"] {
27
- background-position: top 12px left 18px;
28
- padding-left: calc(18px + 0.8rem);
29
- padding-right: 0.75rem;
30
- &:hover,
31
- &:focus {
32
- background-position: top calc(12px - 1px) left calc(18px - 1px);
33
- padding-left: calc(18px + 0.8rem - 1px);
34
- padding-right: calc(0.75rem - 1px);
35
- }
36
- }
37
- }