memorial-ui-component-library 1.0.10-beta.1-dev.2861 → 1.0.10-beta.1-dev.3029
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/memorial-ui-component-library.common.js +526 -138
- package/dist/memorial-ui-component-library.common.js.map +1 -1
- package/dist/memorial-ui-component-library.css +1 -1
- package/dist/memorial-ui-component-library.umd.js +526 -138
- package/dist/memorial-ui-component-library.umd.js.map +1 -1
- package/dist/memorial-ui-component-library.umd.min.js +5 -5
- package/dist/memorial-ui-component-library.umd.min.js.map +1 -1
- package/dist/report.html +2 -2
- package/package.json +6 -4
- package/src/assets/scss/_colors.scss +22 -0
- package/src/assets/scss/_focus.scss +64 -0
- package/src/assets/scss/_variables.module.scss +1 -2
- package/src/assets/scss/main.scss +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memorial-ui-component-library",
|
|
3
|
-
"version": "1.0.10-beta.1-dev.
|
|
3
|
+
"version": "1.0.10-beta.1-dev.3029",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Memorial Health System Vue UI library.",
|
|
6
6
|
"author": "Solutions Development",
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"test:playwright": "start-server-and-test serve http://127.0.0.1:8080/ 'playwright test ./tests/playwright/*'",
|
|
12
12
|
"test:e2e:cicd": "npx start-server-and-test serve http://127.0.0.1:8080/ 'playwright test ./tests/playwright/*'",
|
|
13
13
|
"lint": "vue-cli-service lint",
|
|
14
|
-
"build:lib": "vue-cli-service build --target lib --name memorial-ui-component-library --entry ./src/index.ts"
|
|
14
|
+
"build:lib": "vue-cli-service build --target lib --name memorial-ui-component-library --entry ./src/index.ts",
|
|
15
|
+
"watch": "nodemon --watch src --ext vue,ts,js,scss --exec \"npm run yalc\"",
|
|
16
|
+
"yalc": "npm run build:lib && yalc publish --push"
|
|
15
17
|
},
|
|
16
18
|
"main": "dist/memorial-ui-component-library.umd.min.js",
|
|
17
19
|
"module": "dist/memorial-ui-component-library.common.min.js",
|
|
@@ -61,8 +63,8 @@
|
|
|
61
63
|
"jest-junit": "^16.0.0",
|
|
62
64
|
"playwright": "^1.51.1",
|
|
63
65
|
"prettier": "^2.4.1",
|
|
64
|
-
"sass": "^1.
|
|
65
|
-
"sass-loader": "^
|
|
66
|
+
"sass": "^1.87.0",
|
|
67
|
+
"sass-loader": "^14.2.1",
|
|
66
68
|
"start-server-and-test": "^2.0.11",
|
|
67
69
|
"style-resources-loader": "^1.5.0",
|
|
68
70
|
"ts-jest": "^27.0.4",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
|
|
3
|
+
$--color-black: #000000;
|
|
4
|
+
$--color-grey-primary: #e7e7e7;
|
|
5
|
+
$--color-white: #ffffff;
|
|
6
|
+
$--color-primary: #00284f;
|
|
7
|
+
$--color-secondary: #27779c;
|
|
8
|
+
$color--grey-light-3: #676d74;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
$--color-grey-focus: color.mix($--color-black, $--color-grey-primary, 10%);
|
|
12
|
+
$--color-checkbox-disabled:color.mix($--color-white, $--color-grey-focus, 80%);
|
|
13
|
+
$--color-rater-hovered:color.mix(black, $--color-primary, 25%);
|
|
14
|
+
$--color-button-hovered:color.mix($--color-white, $--color-primary, 10%);
|
|
15
|
+
$--color-button-active:color.mix($--color-black, $--color-primary, 10%);
|
|
16
|
+
$--color-button-primary-hover:color.mix($--color-white, $--color-primary, 20%);
|
|
17
|
+
|
|
18
|
+
$--color-button-secondary-hover:color.mix($--color-white, $--color-secondary, 20%);
|
|
19
|
+
$--color-button-secondary-active:color.mix($--color-black, $--color-secondary, 10%);
|
|
20
|
+
|
|
21
|
+
$--color-button-secondary-active-focus:color.mix($--color-black, $color--grey-light-3, 20%);
|
|
22
|
+
$--color-button-primary-active-text:color.mix($--color-black, $--color-primary, 20%);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// Define variables at the root level for global access
|
|
2
|
+
:root {
|
|
3
|
+
--sd-focus-color: #4a90e2; // Blue is generally recommended for focus indicators
|
|
4
|
+
--sd-focus-width: 2px;
|
|
5
|
+
--sd-focus-width-secondary: 2px;
|
|
6
|
+
--sd-focus-offset: 4px;
|
|
7
|
+
--sd-focus-offset-secondary: 1px;
|
|
8
|
+
--sd-focus-offset-inset: 2px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Hide focus styles by default (for mouse users)
|
|
12
|
+
:focus:not(:focus-visible) {
|
|
13
|
+
outline: none !important;
|
|
14
|
+
box-shadow: none !important;
|
|
15
|
+
&::before {
|
|
16
|
+
display: none !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Global focus styles
|
|
21
|
+
|
|
22
|
+
// Default focus style for interactive elements
|
|
23
|
+
:focus-visible {
|
|
24
|
+
outline: var(--sd-focus-width) solid var(--sd-focus-color);
|
|
25
|
+
outline-offset: var(--sd-focus-offset);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Enhanced focus for form controls
|
|
29
|
+
input:focus-visible,
|
|
30
|
+
select:focus-visible,
|
|
31
|
+
textarea:focus-visible,
|
|
32
|
+
button:focus-visible,
|
|
33
|
+
[role="button"]:focus-visible,
|
|
34
|
+
[role="combobox"]:focus-visible,
|
|
35
|
+
[tabindex]:focus-visible {
|
|
36
|
+
outline: var(--sd-focus-width) solid var(--sd-focus-color);
|
|
37
|
+
outline-offset: var(--sd-focus-offset);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Focus within containers (for composite widgets)
|
|
41
|
+
[role="combobox"]:focus-within,
|
|
42
|
+
[role="listbox"]:focus-within,
|
|
43
|
+
[role="menu"]:focus-within {
|
|
44
|
+
outline: var(--sd-focus-width-secondary) solid var(--sd-focus-color);
|
|
45
|
+
outline-offset: var(--sd-focus-offset-secondary);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Focus styles for list items
|
|
49
|
+
[role="option"].focus,
|
|
50
|
+
[role="menuitem"].focus,
|
|
51
|
+
[role="option"]:focus-visible,
|
|
52
|
+
[role="menuitem"]:focus-visible {
|
|
53
|
+
outline: var(--sd-focus-width) solid var(--sd-focus-color);
|
|
54
|
+
outline-offset: var(--sd-focus-offset-inset);
|
|
55
|
+
position: relative;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Support for high contrast mode
|
|
59
|
+
@media (forced-colors: active) {
|
|
60
|
+
:focus-visible {
|
|
61
|
+
outline: var(--sd-focus-width) solid HighlightText !important;
|
|
62
|
+
outline-offset: var(--sd-focus-offset) !important;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
$--transition-all: all .3s cubic-bezier(.645,.045,.355,1);
|
|
2
3
|
$--transition-all-ease: all .3s ease;
|
|
3
4
|
|
|
@@ -18,8 +19,6 @@ $--color-grey-secondary: #9fa7b3;
|
|
|
18
19
|
$--color-font-default: #2c353f;
|
|
19
20
|
$--color-component-bg: $--color-grey-primary;
|
|
20
21
|
|
|
21
|
-
$--color-grey-focus: mix($--color-black, $--color-grey-primary, 10%);
|
|
22
|
-
|
|
23
22
|
$color--grey-primary: #f4f3f3;
|
|
24
23
|
$color--grey-light-1: #e7e7e8;
|
|
25
24
|
$color--grey-light-2: #d8d8d8;
|