@workday/canvas-kit-css 14.0.0-alpha.1164-next.0 → 14.0.0-alpha.1167-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.
package/form-field.css DELETED
@@ -1,190 +0,0 @@
1
- .cnvs-form-field-label {
2
- box-sizing: border-box;
3
- font-weight: var(--cnvs-sys-font-weight-medium);
4
- color: var(--cnvs-sys-color-text-default);
5
- padding-inline-start: var(--cnvs-sys-space-zero);
6
- display: flex;
7
- align-items: center;
8
- min-width: 11.25rem;
9
- }
10
-
11
-
12
- .cnvs-form-field-label.is-required::after {
13
- content: "*";
14
- font-size: var(--cnvs-sys-font-size-body-large);
15
- font-weight: var(--cnvs-sys-font-weight-normal);
16
- color: var(--cnvs-brand-error-base);
17
- text-decoration: unset;
18
- margin-inline-start: var(--cnvs-sys-space-x1);
19
- }
20
-
21
-
22
- .cnvs-form-field-label.orientation-horizontal-start {
23
- justify-content: flex-start;
24
- float: left;
25
- max-height: var(--cnvs-sys-space-x10);
26
- }
27
-
28
-
29
- .cnvs-form-field-label.orientation-horizontal-end {
30
- max-height: var(--cnvs-sys-space-x10);
31
- float: left;
32
- justify-content: flex-end;
33
- }
34
-
35
-
36
- .cnvs-form-field-label.orientation-vertical {
37
- width: 100%;
38
- }
39
-
40
-
41
- .cnvs-form-field-label.is-hidden {
42
- clip: rect(1px, 1px, 1px, 1px);
43
- clip-path: polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px);
44
- position: absolute;
45
- overflow: hidden;
46
- white-space: nowrap;
47
- height: 1px;
48
- min-height: 1px;
49
- width: 1px;
50
- min-width: 1px;
51
- margin: -1px;
52
- padding: 0;
53
- border: 0;
54
- }
55
-
56
-
57
- .cnvs-form-field-hint {
58
- box-sizing: border-box;
59
- margin: var(--cnvs-sys-space-zero);
60
- }
61
-
62
-
63
- .cnvs-form-field-hint.error-error {
64
- color: var(--cnvs-brand-error-base);
65
- }
66
-
67
-
68
-
69
- .cnvs-form-field-container {
70
- box-sizing: border-box;
71
- display: flex;
72
- flex-direction: column;
73
- gap: var(--cnvs-sys-space-x2);
74
- }
75
-
76
-
77
- .cnvs-form-field {
78
- box-sizing: border-box;
79
- display: flex;
80
- border: none;
81
- padding: var(--cnvs-sys-space-zero);
82
- margin: var(--cnvs-sys-space-zero) var(--cnvs-sys-space-zero) var(--cnvs-sys-space-x6);
83
- }
84
-
85
-
86
- .cnvs-form-field.grow {
87
- width: 100%;
88
- }
89
-
90
- .cnvs-form-field.grow [data-width="ck-formfield-width"] {
91
- width: 100%;
92
- }
93
-
94
- .cnvs-form-field.grow:has(div[data-width="ck-formfield-width"]) {
95
- width: 100%;
96
- }
97
-
98
-
99
- .cnvs-form-field.orientation-horizontal-start {
100
- flex-direction: row;
101
- gap: var(--cnvs-sys-space-x8);
102
- }
103
-
104
-
105
- .cnvs-form-field.orientation-horizontal-end {
106
- flex-direction: row;
107
- gap: var(--cnvs-sys-space-x8);
108
- }
109
-
110
-
111
- .cnvs-form-field.orientation-vertical {
112
- flex-direction: column;
113
- gap: var(--cnvs-sys-space-x1);
114
- align-items: flex-start;
115
- }
116
-
117
-
118
-
119
-
120
-
121
- .cnvs-form-field-field {
122
- box-sizing: border-box;
123
- display: flex;
124
- flex-direction: column;
125
- gap: var(--cnvs-sys-space-x2);
126
- }
127
-
128
-
129
- .cnvs-form-field-group-list {
130
- box-sizing: border-box;
131
- display: flex;
132
- flex-direction: column;
133
- border-radius: var(--cnvs-sys-shape-x1);
134
- gap: var(--cnvs-sys-space-x2);
135
- padding: 0.625rem var(--cnvs-sys-space-x3) var(--cnvs-sys-space-x2);
136
- margin: 0 calc(var(--cnvs-sys-space-x3) * -1);
137
- transition: 100ms box-shadow;
138
- width: fit-content;
139
- }
140
-
141
-
142
- .cnvs-form-field-group-list.error-error {
143
- box-shadow: inset 0 0 0 0.125rem var(--cnvs-brand-error-base);
144
- }
145
-
146
-
147
- .cnvs-form-field-group-list.error-alert {
148
- box-shadow: inset 0 0 0 0.0625rem var(--cnvs-brand-alert-darkest),inset 0 0 0 0.1875rem var(--cnvs-brand-alert-base);
149
- }
150
-
151
-
152
- .cnvs-form-field-group-label {
153
- box-sizing: border-box;
154
- font-weight: var(--cnvs-sys-font-weight-medium);
155
- color: var(--cnvs-sys-color-text-default);
156
- padding-inline-start: var(--cnvs-sys-space-zero);
157
- display: flex;
158
- align-items: center;
159
- min-width: 11.25rem;
160
- }
161
-
162
-
163
- .cnvs-form-field-group-label.is-required::after {
164
- content: "*";
165
- font-size: var(--cnvs-sys-font-size-body-large);
166
- font-weight: var(--cnvs-sys-font-weight-normal);
167
- color: var(--cnvs-brand-error-base);
168
- text-decoration: unset;
169
- margin-inline-start: var(--cnvs-sys-space-x1);
170
- }
171
-
172
-
173
- .cnvs-form-field-group-label.orientation-vertical {
174
- width: 100%;
175
- }
176
-
177
-
178
- .cnvs-form-field-group-label.orientation-horizontal-start {
179
- justify-content: flex-start;
180
- float: left;
181
- max-height: var(--cnvs-sys-space-x10);
182
- }
183
-
184
-
185
- .cnvs-form-field-group-label.orientation-horizontal-end {
186
- max-height: var(--cnvs-sys-space-x10);
187
- float: left;
188
- justify-content: flex-end;
189
- }
190
-
package/icon.css DELETED
@@ -1,165 +0,0 @@
1
- .cnvs-svg {
2
- box-sizing: border-box;
3
- display: inline-block;
4
- }
5
-
6
- .cnvs-svg >svg {
7
- display: block;
8
- width: var(--cnvs-svg-width, var(--cnvs-svg-size));
9
- height: var(--cnvs-svg-height, var(--cnvs-svg-size));
10
- }
11
-
12
-
13
- .cnvs-svg.should-mirror {
14
- transform: scaleX(-1);
15
- }
16
-
17
-
18
- .cnvs-accent-icon {
19
- box-sizing: border-box;
20
- --cnvs-svg-size: 3.5rem;
21
- }
22
-
23
- .cnvs-accent-icon .color-500 {
24
- fill: var(--cnvs-accent-icon-color, var(--cnvs-sys-color-bg-primary-strong));
25
- }
26
-
27
- .cnvs-accent-icon .french-vanilla-100 {
28
- fill: var(--cnvs-sys-color-bg-default);
29
- }
30
-
31
-
32
- .cnvs-accent-icon.transparent .french-vanilla-100 {
33
- fill: transparent;
34
- }
35
-
36
-
37
- .cnvs-applet-icon {
38
- box-sizing: border-box;
39
- --cnvs-svg-size: 5.75rem;
40
- }
41
-
42
- .cnvs-applet-icon .color-100 {
43
- fill: var(--cnvs-sys-color-fg-inverse);
44
- }
45
-
46
- .cnvs-applet-icon .color-200 {
47
- fill: var(--cnvs-applet-icon-color200, var(--cnvs-base-palette-blue-200));
48
- }
49
-
50
- .cnvs-applet-icon .color-300 {
51
- fill: var(--cnvs-applet-icon-color300, var(--cnvs-base-palette-blue-400));
52
- }
53
-
54
- .cnvs-applet-icon .color-400 {
55
- fill: var(--cnvs-applet-icon-color400, var(--cnvs-base-palette-blue-600));
56
- }
57
-
58
- .cnvs-applet-icon .color-400-alpha-20 {
59
- fill: var(--cnvs-applet-icon-color400, var(--cnvs-base-palette-blue-600));
60
- }
61
-
62
- .cnvs-applet-icon .color-500 {
63
- fill: var(--cnvs-applet-icon-color500, var(--cnvs-base-palette-blue-700));
64
- }
65
-
66
-
67
- .cnvs-system-icon {
68
- box-sizing: border-box;
69
- }
70
-
71
- .cnvs-system-icon svg {
72
- width: var(--cnvs-svg-width, var(--cnvs-svg-size, var(--cnvs-sys-space-x6)));
73
- height: var(--cnvs-svg-height, var(--cnvs-svg-size, var(--cnvs-sys-space-x6)));
74
- }
75
-
76
- .cnvs-system-icon .wd-icon-fill {
77
- fill: var(--cnvs-system-icon-color, var(--cnvs-sys-color-icon-default));
78
- }
79
-
80
- .cnvs-system-icon .wd-icon-accent, .cnvs-system-icon .wd-icon-accent2 {
81
- fill: var(--cnvs-system-icon-accent-color, var(--cnvs-system-icon-color, var(--cnvs-sys-color-fg-default)));
82
- }
83
-
84
- .cnvs-system-icon .wd-icon-background {
85
- fill: var(--cnvs-system-icon-background-color, transparent);
86
- }
87
-
88
- .cnvs-system-icon:where(:hover, .hover) .wd-icon-fill {
89
- fill: var(--cnvs-deprecated-system-icon-fill-hover, var(--cnvs-deprecated-system-icon-color-hover, var(--cnvs-system-icon-color, var(--cnvs-sys-color-fg-default))));
90
- }
91
-
92
- .cnvs-system-icon:where(:hover, .hover) .wd-icon-accent, .cnvs-system-icon .wd-icon-accent2 {
93
- fill: var(--cnvs-deprecated-system-icon-accent-hover, var(--cnvs-deprecated-system-icon-color-hover, var(--cnvs-system-icon-accent-color, var(--cnvs-system-icon-color, var(--cnvs-sys-color-fg-default)))));
94
- }
95
-
96
- .cnvs-system-icon:where(:hover, .hover) .wd-icon-background {
97
- fill: var(--cnvs-deprecated-system-icon-background-hover, var(--cnvs-system-icon-background-color, transparent));
98
- }
99
-
100
- @media (prefers-contrast: more) {
101
- .cnvs-system-icon .wd-icon-fill, .cnvs-system-icon .wd-icon-accent {
102
- color: currentColor;
103
- fill: currentColor;
104
- }
105
-
106
-
107
- }
108
-
109
-
110
- .cnvs-system-icon-circle {
111
- box-sizing: border-box;
112
- background: var(--cnvs-system-icon-circle-background, var(--cnvs-sys-color-bg-alt-soft));
113
- display: flex;
114
- align-items: center;
115
- justify-content: center;
116
- padding: var(--cnvs-sys-space-zero);
117
- border: none;
118
- border-radius: var(--cnvs-sys-shape-round);
119
- overflow: hidden;
120
- width: var(--cnvs-system-icon-circle-container-size, var(--cnvs-sys-space-x10));
121
- height: var(--cnvs-system-icon-circle-container-size, var(--cnvs-sys-space-x10));
122
- --cnvs-svg-size: calc(var(--cnvs-system-icon-circle-container-size, var(--cnvs-sys-space-x10)) * 0.625);
123
- --cnvs-system-icon-color: var(--cnvs-system-icon-circle-color);
124
- }
125
-
126
- .cnvs-system-icon-circle img {
127
- width: 100%;
128
- height: 100%;
129
- }
130
-
131
-
132
- .cnvs-graphic {
133
- box-sizing: border-box;
134
- }
135
-
136
-
137
- .cnvs-graphic.grow {
138
- width: 100%;
139
- --cnvs-svg-width: 100%;
140
- }
141
-
142
-
143
- .cnvs-graphic-image {
144
- box-sizing: border-box;
145
- width: var(--cnvs-graphic-image-width);
146
- height: var(--cnvs-graphic-image-height);
147
- display: inline-block;
148
- }
149
-
150
- .cnvs-graphic-image [data-part="graphic-img"] {
151
- width: var(--cnvs-graphic-image-width);
152
- height: var(--cnvs-graphic-image-height);
153
- max-width: 100%;
154
- max-height: 100%;
155
- }
156
-
157
-
158
- .cnvs-graphic-image.grow {
159
- width: 100%;
160
- }
161
-
162
- .cnvs-graphic-image.grow [data-part="graphic-img"] {
163
- width: 100%;
164
- }
165
-
package/loading-dots.css DELETED
@@ -1,47 +0,0 @@
1
- @keyframes animation-pt3z6e {
2
- 0%, 80%, 100% {
3
- transform: scale(0);
4
- }
5
-
6
- 40% {
7
- transform: scale(1);
8
- }
9
-
10
- }
11
-
12
- .cnvs-loading-dots {
13
- --cnvs-loading-dots-animation-duration-ms: 40ms;
14
- --cnvs-loading-dots-loading-dot-color: var(--cnvs-sys-color-bg-alt-strong);
15
- box-sizing: border-box;
16
- display: inline-flex;
17
- gap: var(--cnvs-sys-space-x2);
18
- }
19
-
20
- .cnvs-loading-dots [data-part="loading-animation-dot"] {
21
- background-color: var(--cnvs-loading-dots-loading-dot-color);
22
- width: var(--cnvs-sys-space-x4);
23
- height: var(--cnvs-sys-space-x4);
24
- font-size: var(--cnvs-sys-space-zero);
25
- border-radius: var(--cnvs-sys-shape-round);
26
- outline: 0.125rem solid transparent;
27
- transform: scale(0);
28
- display: inline-block;
29
- animation-name: animation-pt3z6e;
30
- animation-duration: calc(var(--cnvs-loading-dots-animation-duration-ms) * 35);
31
- animation-iteration-count: infinite;
32
- animation-timing-function: ease-in-out;
33
- animation-fill-mode: both;
34
- }
35
-
36
- .cnvs-loading-dots [data-part="loading-animation-dot"]:nth-child(1) {
37
- animation-delay: 0ms;
38
- }
39
-
40
- .cnvs-loading-dots [data-part="loading-animation-dot"]:nth-child(2) {
41
- animation-delay: calc(var(--cnvs-loading-dots-animation-duration-ms) * 4);
42
- }
43
-
44
- .cnvs-loading-dots [data-part="loading-animation-dot"]:nth-child(3) {
45
- animation-delay: calc(var(--cnvs-loading-dots-animation-duration-ms) * 8);
46
- }
47
-
package/menu.css DELETED
@@ -1,155 +0,0 @@
1
- .cnvs-menu-item {
2
- box-sizing: border-box;
3
- font-family: var(--cnvs-sys-font-family-default);
4
- font-weight: var(--cnvs-sys-font-weight-normal);
5
- line-height: var(--cnvs-sys-line-height-subtext-large);
6
- font-size: var(--cnvs-sys-font-size-subtext-large);
7
- letter-spacing: var(--cnvs-base-letter-spacing-150);
8
- display: flex;
9
- align-items: center;
10
- width: 100%;
11
- gap: var(--cnvs-sys-space-x4);
12
- padding: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);
13
- cursor: pointer;
14
- color: var(--cnvs-sys-color-fg-default);
15
- border-width: 0;
16
- text-align: start;
17
- transition: background-color 80ms,color 80ms;
18
- background-color: inherit;
19
- min-height: var(--cnvs-sys-space-x10);
20
- overflow-wrap: anywhere;
21
- --cnvs-system-icon-color: currentcolor;
22
- }
23
-
24
- .cnvs-menu-item :where([data-part="menu-item-selected"]) {
25
- transition: opacity 80ms linear;
26
- opacity: var(--cnvs-sys-opacity-zero);
27
- }
28
-
29
- .cnvs-menu-item:where(:has(span)) {
30
- display: flex;
31
- }
32
-
33
- .cnvs-menu-item[aria-selected=true] {
34
- color: var(--cnvs-brand-primary-dark);
35
- background-color: var(--cnvs-brand-primary-lightest);
36
- }
37
-
38
- .cnvs-menu-item[aria-selected=true] :where([data-part="menu-item-selected"]) {
39
- opacity: var(--cnvs-sys-opacity-full);
40
- }
41
-
42
- .cnvs-menu-item[aria-selected=true]:where(.focus, :focus) {
43
- --cnvs-system-icon-color: var(--cnvs-brand-primary-accent);
44
- outline: none;
45
- background-color: var(--cnvs-brand-primary-base);
46
- color: var(--cnvs-system-icon-color);
47
- }
48
-
49
- .cnvs-menu-item:is(.hover, :hover) {
50
- color: var(--cnvs-sys-color-fg-strong);
51
- background-color: var(--cnvs-brand-neutral-lightest);
52
- }
53
-
54
- .cnvs-menu-item:is(.focus, :focus) {
55
- color: var(--cnvs-brand-primary-accent);
56
- background-color: var(--cnvs-brand-primary-base);
57
- outline: 0.125rem solid transparent;
58
- outline-offset: -0.125rem;
59
- }
60
-
61
- .cnvs-menu-item:is(:disabled, [aria-disabled=true]) {
62
- color: var(--cnvs-sys-color-fg-disabled);
63
- cursor: default;
64
- }
65
-
66
- .cnvs-menu-item:is(:disabled, [aria-disabled=true]):where(.focus, :focus) {
67
- color: var(--cnvs-sys-color-fg-inverse);
68
- background-color: var(--cnvs-brand-primary-light);
69
- }
70
-
71
- .cnvs-menu-item:is(:disabled, [aria-disabled=true]):where(.hover, :hover, [aria-selected=true]) {
72
- background: none;
73
- }
74
-
75
- .cnvs-menu-item :where([data-part="menu-item-text"]) {
76
- flex-grow: 1;
77
- align-self: center;
78
- }
79
-
80
- .cnvs-menu-item :where([data-part="menu-item-icon"]) {
81
- align-self: start;
82
- }
83
-
84
-
85
- .cnvs-menu-card {
86
- --cnvs-menu-card-min-width: 0.0625rem;
87
- --cnvs-menu-card-transform-origin-vertical: top;
88
- --cnvs-menu-card-transform-origin-horizontal: left;
89
- box-sizing: border-box;
90
- font-family: var(--cnvs-sys-font-family-default);
91
- font-weight: var(--cnvs-sys-font-weight-normal);
92
- line-height: var(--cnvs-sys-line-height-subtext-large);
93
- font-size: var(--cnvs-sys-font-size-subtext-large);
94
- letter-spacing: var(--cnvs-base-letter-spacing-150);
95
- color: var(--cnvs-sys-color-text-default);
96
- position: relative;
97
- display: flex;
98
- flex-direction: column;
99
- transition: transform ease-out 150ms;
100
- padding: var(--cnvs-sys-space-zero);
101
- max-width: calc(100vw - var(--cnvs-sys-space-x8));
102
- box-shadow: var(--cnvs-sys-depth-3);
103
- min-width: var(--cnvs-menu-card-min-width);
104
- max-height: var(--cnvs-menu-card-max-height);
105
- transform-origin: var(--cnvs-menu-card-transform-origin-vertical) var(--cnvs-menu-card-transform-origin-horizontal);
106
- }
107
-
108
- .wd-no-animation .cnvs-menu-card {
109
- animation: none;
110
- }
111
-
112
-
113
- .cnvs-menu-list {
114
- box-sizing: border-box;
115
- background: var(--cnvs-sys-color-bg-default);
116
- border-radius: var(--cnvs-sys-shape-zero);
117
- padding: var(--cnvs-sys-space-zero);
118
- gap: var(--cnvs-sys-space-zero);
119
- }
120
-
121
-
122
- .cnvs-menu-list.orientation-vertical {
123
- flex-direction: column;
124
- }
125
-
126
-
127
- .cnvs-menu-list.orientation-horizontal {
128
- flex-direction: row;
129
- }
130
-
131
-
132
- .cnvs-menu-divider {
133
- box-sizing: border-box;
134
- display: block;
135
- height: 0.0625rem;
136
- border: var(--cnvs-sys-space-zero);
137
- border-top: 0.0625rem solid var(--cnvs-sys-color-border-divider);
138
- margin: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-zero);
139
- }
140
-
141
-
142
- .cnvs-menu-group-heading {
143
- box-sizing: border-box;
144
- font-family: var(--cnvs-sys-font-family-default);
145
- font-weight: var(--cnvs-sys-font-weight-bold);
146
- line-height: var(--cnvs-sys-line-height-subtext-large);
147
- font-size: var(--cnvs-sys-font-size-subtext-large);
148
- letter-spacing: var(--cnvs-base-letter-spacing-150);
149
- display: flex;
150
- align-items: center;
151
- width: 100%;
152
- gap: var(--cnvs-sys-space-x4);
153
- padding: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);
154
- }
155
-
package/modal.css DELETED
@@ -1,108 +0,0 @@
1
- @keyframes animation-pt3z6g {
2
- 0% {
3
- background: none;
4
- }
5
-
6
- 100% {
7
- background: var(--cnvs-sys-color-bg-overlay);
8
- }
9
-
10
- }
11
-
12
- .cnvs-modal-overlay-container {
13
- box-sizing: border-box;
14
- position: fixed;
15
- top: var(--cnvs-sys-space-zero);
16
- left: var(--cnvs-sys-space-zero);
17
- width: 100vw;
18
- height: 100vh;
19
- background: var(--cnvs-sys-color-bg-overlay);
20
- animation-duration: 0.3s;
21
- animation-name: animation-pt3z6g;
22
- }
23
-
24
- .wd-no-animation .cnvs-modal-overlay-container {
25
- animation: none;
26
- }
27
-
28
- .cnvs-modal-overlay-container>div {
29
- max-height: 100%;
30
- display: flex;
31
- position: absolute;
32
- left: var(--cnvs-sys-space-zero);
33
- top: var(--cnvs-sys-space-zero);
34
- justify-content: center;
35
- align-items: center;
36
- height: 100%;
37
- width: var(--cnvs-modal-overlay-container-container-center);
38
- }
39
-
40
- @media screen and (max-width: 768px) {
41
- .cnvs-modal-overlay-container {
42
- height: 100%;
43
- }
44
-
45
- .cnvs-modal-overlay-container>div {
46
- align-items: end;
47
- }
48
-
49
-
50
- }
51
-
52
-
53
- .cnvs-modal-card {
54
- box-sizing: border-box;
55
- margin: var(--cnvs-sys-space-x10);
56
- width: calc(calc(var(--cnvs-sys-space-x20) * 5) + var(--cnvs-sys-space-x10));
57
- border-width: var(--cnvs-sys-space-zero);
58
- outline: 0.0625rem solid transparent;
59
- box-shadow: var(--cnvs-sys-depth-6);
60
- }
61
-
62
- @media screen and (max-width: 768px) {
63
- .cnvs-modal-card {
64
- gap: var(--cnvs-sys-space-zero);
65
- margin: var(--cnvs-sys-space-x4);
66
- padding: var(--cnvs-sys-space-x4);
67
- border-radius: var(--cnvs-sys-space-x6);
68
- }
69
-
70
-
71
- }
72
-
73
-
74
- .cnvs-modal-heading {
75
- box-sizing: border-box;
76
- }
77
-
78
- @media screen and (max-width: 768px) {
79
- .cnvs-modal-heading {
80
- padding: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x1);
81
- }
82
-
83
-
84
- }
85
-
86
-
87
- .cnvs-modal-overflow-overlay {
88
- box-sizing: border-box;
89
- overflow: hidden auto;
90
- }
91
-
92
- .cnvs-modal-overflow-overlay>div {
93
- max-height: inherit;
94
- }
95
-
96
-
97
- .cnvs-modal-body {
98
- box-sizing: border-box;
99
- }
100
-
101
- @media screen and (max-width: 768px) {
102
- .cnvs-modal-body {
103
- padding: var(--cnvs-sys-space-x1) var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2);
104
- }
105
-
106
-
107
- }
108
-