@workday/canvas-kit-preview-css 14.0.0-alpha.1127-next.0 → 14.0.0-alpha.1133-next.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.
@@ -1,4 +1,4 @@
1
- @keyframes animation-ppux3 {
1
+ @keyframes animation-h6y23 {
2
2
  0%, 79%, 100% {
3
3
  opacity: 0.2;
4
4
  transform: scale(0.55);
@@ -26,7 +26,7 @@
26
26
  animation-duration: 1230ms;
27
27
  animation-fill-mode: both;
28
28
  animation-iteration-count: infinite;
29
- animation-name: animation-ppux3;
29
+ animation-name: animation-h6y23;
30
30
  animation-timing-function: ease-in-out;
31
31
  --cnvs-system-icon-color: var(--cnvs-base-extended-palette-dragon-fruit-400);
32
32
  }
package/multi-select.css CHANGED
@@ -1,4 +1,4 @@
1
- .cnvs-preview-multi-select {
1
+ .cnvs-preview-multi-select-input {
2
2
  box-sizing: border-box;
3
3
  border: 1px solid var(--cnvs-sys-color-border-input-default);
4
4
  display: flex;
@@ -8,18 +8,19 @@
8
8
  min-height: var(--cnvs-sys-space-x10);
9
9
  transition: 0.2s box-shadow,0.2s border-color;
10
10
  margin: 0;
11
+ --cnvs-text-input-width: 100%;
11
12
  }
12
13
 
13
- .cnvs-preview-multi-select:hover, .cnvs-preview-multi-select.hover {
14
+ .cnvs-preview-multi-select-input:hover, .cnvs-preview-multi-select-input.hover {
14
15
  border-color: var(--cnvs-sys-color-border-input-strong);
15
16
  }
16
17
 
17
- .cnvs-preview-multi-select:focus-within {
18
+ .cnvs-preview-multi-select-input:has(:focus-visible:not([disabled])), .cnvs-preview-multi-select-input.focus {
18
19
  border-color: var(--cnvs-sys-color-border-primary-default);
19
20
  box-shadow: inset 0 0 0 1px var(--cnvs-sys-color-border-primary-default);
20
21
  }
21
22
 
22
- .cnvs-preview-multi-select [data-part="user-input"] {
23
+ .cnvs-preview-multi-select-input [data-part="user-input"] {
23
24
  font-family: var(--cnvs-sys-font-family-default);
24
25
  font-weight: var(--cnvs-sys-font-weight-normal);
25
26
  line-height: var(--cnvs-sys-line-height-subtext-large);
@@ -32,21 +33,25 @@
32
33
  outline-width: 0px;
33
34
  }
34
35
 
35
- .cnvs-preview-multi-select [data-part="user-input"]:where(:not([aria-autocomplete])) {
36
+ .cnvs-preview-multi-select-input [data-part="user-input"]:where([data-part="user-input"], [data-part="form-input"]) {
37
+ height: calc(var(--cnvs-sys-space-x10) - 0.125rem);
38
+ }
39
+
40
+ .cnvs-preview-multi-select-input [data-part="user-input"]:where(:not([aria-autocomplete])) {
36
41
  caret-color: transparent;
37
42
  cursor: default;
38
43
  }
39
44
 
40
- .cnvs-preview-multi-select [data-part="user-input"]:where(:not([aria-autocomplete]))::selection {
45
+ .cnvs-preview-multi-select-input [data-part="user-input"]:where(:not([aria-autocomplete]))::selection {
41
46
  background-color: transparent;
42
47
  }
43
48
 
44
- .cnvs-preview-multi-select:has(:disabled, .disabled) {
49
+ .cnvs-preview-multi-select-input:has(:disabled, .disabled) {
45
50
  border-color: var(--cnvs-sys-color-border-input-disabled);
46
51
  color: var(--cnvs-sys-color-text-disabled);
47
52
  }
48
53
 
49
- .cnvs-preview-multi-select :where([data-part="form-input"]) {
54
+ .cnvs-preview-multi-select-input :where([data-part="form-input"]) {
50
55
  position: absolute;
51
56
  top: var(--cnvs-sys-space-zero);
52
57
  bottom: var(--cnvs-sys-space-zero);
@@ -57,16 +62,46 @@
57
62
  pointer-events: none;
58
63
  }
59
64
 
60
- .cnvs-preview-multi-select :where([data-part="separator"]) {
65
+ .cnvs-preview-multi-select-input :where([data-part="separator"]) {
61
66
  background-color: var(--cnvs-sys-color-border-divider);
62
67
  height: 1px;
63
68
  margin: var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x2);
64
69
  }
65
70
 
66
- .cnvs-preview-multi-select :where([data-part="list"]) {
71
+ .cnvs-preview-multi-select-input :where([data-part="list"]) {
67
72
  display: flex;
68
73
  gap: var(--cnvs-sys-space-x2);
69
74
  padding: var(--cnvs-sys-space-x2);
70
75
  flex-wrap: wrap;
71
76
  }
72
77
 
78
+
79
+ .cnvs-preview-multi-select-input.error-error {
80
+ border-color: var(--cnvs-brand-error-base);
81
+ box-shadow: inset 0 0 0 0.0625rem var(--cnvs-brand-error-base);
82
+ }
83
+
84
+ .cnvs-preview-multi-select-input.error-error:has(:hover, :disabled, :focus-visible), .cnvs-preview-multi-select-input.error-error:is(.hover, .disabled, .focus) {
85
+ border-color: var(--cnvs-brand-error-base);
86
+ }
87
+
88
+ .cnvs-preview-multi-select-input.error-error:has(:focus-visible:not([disabled])), .cnvs-preview-multi-select-input.error-error.focus {
89
+ box-shadow: inset 0 0 0 0.0625rem var(--cnvs-brand-error-base),0 0 0 2px var(--cnvs-sys-color-border-inverse),0 0 0 4px var(--cnvs-brand-common-focus-outline);
90
+ outline-offset: 0.125rem;
91
+ }
92
+
93
+
94
+ .cnvs-preview-multi-select-input.error-alert {
95
+ border-color: var(--cnvs-brand-alert-darkest);
96
+ box-shadow: inset 0 0 0 0.125rem var(--cnvs-brand-alert-base);
97
+ outline-offset: 0.125rem;
98
+ }
99
+
100
+ .cnvs-preview-multi-select-input.error-alert:has(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled])), .focus:not(:has([disabled])) {
101
+ border-color: var(--cnvs-brand-alert-darkest);
102
+ }
103
+
104
+ .cnvs-preview-multi-select-input.error-alert:has(:focus-visible, .focus):not(:has([disabled])) {
105
+ box-shadow: inset 0 0 0 0.125rem var(--cnvs-brand-alert-base),0 0 0 2px var(--cnvs-sys-color-border-inverse),0 0 0 4px var(--cnvs-brand-common-focus-outline);
106
+ }
107
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-preview-css",
3
- "version": "14.0.0-alpha.1127-next.0",
3
+ "version": "14.0.0-alpha.1133-next.0",
4
4
  "description": "The parent module that contains all Workday Canvas Kit Preview CSS components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -25,5 +25,5 @@
25
25
  "components",
26
26
  "workday"
27
27
  ],
28
- "gitHead": "3067be6c028bb5eee066f8dc3ef82a5788b3fa98"
28
+ "gitHead": "eb3759bc235f1a76edeae94e6e09d4395bcb90a4"
29
29
  }