@workday/canvas-kit-css 11.0.0-alpha.696-next.0 → 11.0.0-alpha.699-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/badge.css CHANGED
@@ -22,7 +22,7 @@
22
22
  justify-content: center;
23
23
  line-height: 1.25rem;
24
24
  min-width: 1.25rem;
25
- padding: 0 0.375rem;
25
+ padding: 0 0.40625rem;
26
26
  }
27
27
 
28
28
 
package/button.css CHANGED
@@ -220,7 +220,7 @@
220
220
  padding-inline: var(--cnvs-sys-space-x2, calc(0.25rem * 2));
221
221
  min-width: auto;
222
222
  text-decoration: underline;
223
- border: 0px;
223
+ border: 0;
224
224
  --cnvs-button-default-background: transparent;
225
225
  --cnvs-button-default-border: transparent;
226
226
  --cnvs-button-default-borderRadius: var(--cnvs-sys-shape-x1, 0.25rem);
package/card.css CHANGED
@@ -1,7 +1,7 @@
1
1
  .cnvs-card-heading-base {
2
2
  font-weight: var(--cnvs-sys-font-weight-bold, 700);
3
3
  margin-bottom: var(--cnvs-sys-space-x6, calc(0.25rem * 6));
4
- margin-top: 0px;
4
+ margin-top: 0;
5
5
  }
6
6
 
7
7
 
package/checkbox.css CHANGED
@@ -64,7 +64,7 @@
64
64
  max-width: 100%;
65
65
  pointer-events: none;
66
66
  transition: transform 200ms ease,opacity 200ms ease;
67
- opacity: 0px;
67
+ opacity: 0;
68
68
  transform: scale(0.5);
69
69
  }
70
70
 
@@ -75,13 +75,13 @@
75
75
 
76
76
 
77
77
  .cnvs-checkbox-check--checked {
78
- opacity: 1px;
78
+ opacity: 1;
79
79
  transform: scale(1);
80
80
  }
81
81
 
82
82
 
83
83
  .cnvs-checkbox-check--indeterminate {
84
- opacity: 1px;
84
+ opacity: 1;
85
85
  transform: scale(1);
86
86
  }
87
87
 
@@ -106,7 +106,7 @@
106
106
  margin-top: calc(0.1875rem * -1);
107
107
  margin-inline-start: calc(0.1875rem * -1);
108
108
  position: absolute;
109
- opacity: 0px;
109
+ opacity: 0;
110
110
  }
111
111
 
112
112
  .cnvs-checkbox-input:not(:disabled) {
@@ -129,7 +129,7 @@
129
129
  .cnvs-checkbox-input:disabled~div:first-of-type {
130
130
  border-color: var(--cnvs-base-palette-licorice-100, rgba(161,170,179,1));
131
131
  background-color: var(--cnvs-base-palette-soap-100, rgba(246,247,248,1));
132
- opacity: 1px;
132
+ opacity: 1;
133
133
  }
134
134
 
135
135
  .cnvs-checkbox-input:disabled:where(:checked, :indeterminate)~div:first-of-type {
package/common.css CHANGED
@@ -7,8 +7,8 @@
7
7
  height: 1px;
8
8
  width: 1px;
9
9
  margin: -1px;
10
- padding: 0px;
11
- border: 0px;
10
+ padding: 0;
11
+ border: 0;
12
12
  }
13
13
 
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-css",
3
- "version": "11.0.0-alpha.696-next.0",
3
+ "version": "11.0.0-alpha.699-next.0",
4
4
  "description": "The parent module that contains all Workday Canvas Kit 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": "2b897235cbf8b889cd1e7f750e8c905b56944368"
28
+ "gitHead": "6dca00808a902605bad2c3c2f083ad6ba310bf4b"
29
29
  }
package/select.css CHANGED
@@ -10,11 +10,11 @@
10
10
 
11
11
  .cnvs-hidden-select {
12
12
  position: absolute;
13
- top: 0px;
14
- bottom: 0px;
15
- left: 0px;
16
- right: 0px;
17
- opacity: 0px;
13
+ top: 0;
14
+ bottom: 0;
15
+ left: 0;
16
+ right: 0;
17
+ opacity: 0;
18
18
  cursor: default;
19
19
  pointer-events: none;
20
20
  }
package/switch.css ADDED
@@ -0,0 +1,86 @@
1
+ .cnvs-switch-container {
2
+ position: relative;
3
+ height: var(--cnvs-sys-space-x6, calc(0.25rem * 6));
4
+ width: var(--cnvs-sys-space-x8, calc(0.25rem * 8));
5
+ }
6
+
7
+
8
+ .cnvs-switch-input {
9
+ display: flex;
10
+ position: absolute;
11
+ height: var(--cnvs-sys-space-x6, calc(0.25rem * 6));
12
+ width: var(--cnvs-sys-space-x8, calc(0.25rem * 8));
13
+ margin: var(--cnvs-sys-space-zero, 0);
14
+ margin-left: var(--cnvs-sys-space-x1, 0.25rem);
15
+ border-radius: var(--cnvs-sys-shape-round, calc(0.25rem * 250));
16
+ opacity: 0;
17
+ cursor: pointer;
18
+ }
19
+
20
+ .cnvs-switch-input:checked~div:first-of-type, .cnvs-switch-input.checked~div:first-of-type {
21
+ background-color: var(--cnvs-brand-primary-base, rgba(8,117,225,1));
22
+ }
23
+
24
+ .cnvs-switch-input:checked:disabled~div:first-of-type, .cnvs-switch-input.checked:disabled~div:first-of-type, .cnvs-switch-input:checked.disabled~div:first-of-type, .cnvs-switch-input.checked.disabled~div:first-of-type {
25
+ background-color: var(--cnvs-brand-primary-light, rgba(166,210,255,1));
26
+ }
27
+
28
+ .cnvs-switch-input:disabled, .cnvs-switch-input.disabled {
29
+ cursor: not-allowed;
30
+ }
31
+
32
+ .cnvs-switch-input:disabled~div:first-of-type, .cnvs-switch-input.disabled~div:first-of-type {
33
+ background-color: var(--cnvs-base-palette-soap-400, rgba(223,226,230,1));
34
+ }
35
+
36
+ .cnvs-switch-input:focus-visible, .cnvs-switch-input:focus, .cnvs-switch-input.focus {
37
+ outline: none;
38
+ }
39
+
40
+ .cnvs-switch-input:focus-visible~div:first-of-type, .cnvs-switch-input:focus~div:first-of-type, .cnvs-switch-input.focus~div:first-of-type {
41
+ box-shadow: 0 0 0 2px var(--cnvs-base-palette-french-vanilla-100),0 0 0 4px var(--cnvs-brand-common-focus-outline);
42
+ }
43
+
44
+
45
+ .cnvs-switch-input--error-error~div:first-of-type {
46
+ box-shadow: 0 0 0 0.125rem var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1)),0 0 0 var(--cnvs-sys-space-x1, 0.25rem) var(--cnvs-brand-error-base, rgba(222,46,33,1)),0 0 0 0.3125rem transparent;
47
+ }
48
+
49
+
50
+ .cnvs-switch-input--error-alert~div:first-of-type {
51
+ box-shadow: 0 0 0 0.125rem var(--cnvs-base-palette-french-vanilla-100, rgba(255,255,255,1)),0 0 0 var(--cnvs-sys-space-x1, 0.25rem) var(--cnvs-brand-alert-base, rgba(255,161,38,1)),0 0 0 0.3125rem var(--cnvs-brand-alert-darkest, rgba(192,108,0,1));
52
+ }
53
+
54
+
55
+ .cnvs-switch-background {
56
+ box-sizing: border-box;
57
+ position: absolute;
58
+ display: flex;
59
+ align-items: center;
60
+ pointer-events: none;
61
+ margin-top: var(--cnvs-sys-space-x1, 0.25rem);
62
+ width: var(--cnvs-sys-space-x8, calc(0.25rem * 8));
63
+ height: var(--cnvs-sys-space-x4, calc(0.25rem * 4));
64
+ border-radius: var(--cnvs-sys-shape-round, calc(0.25rem * 250));
65
+ padding: var(--cnvs-sys-space-zero, 0) 0.125rem;
66
+ transition: background-color 200ms ease;
67
+ background-color: var(--cnvs-base-palette-licorice-200, rgba(123,133,143,1));
68
+ }
69
+
70
+
71
+ .cnvs-switch-circle {
72
+ width: var(--cnvs-sys-space-x3, calc(0.25rem * 3));
73
+ height: var(--cnvs-sys-space-x3, calc(0.25rem * 3));
74
+ border-radius: var(--cnvs-sys-shape-round, calc(0.25rem * 250));
75
+ box-shadow: var(--cnvs-sys-depth-1, 0 0.0625rem 0.25rem 0 rgba(31,38,46,0.12),0 0.125rem 0.5rem 0 rgba(31,38,46,0.08));
76
+ transition: transform 150ms ease;
77
+ pointer-events: none;
78
+ background-color: var(--cnvs-brand-primary-accent, rgba(255,255,255,1));
79
+ transform: translateX(var(--cnvs-sys-space-zero, 0));
80
+ }
81
+
82
+
83
+ .cnvs-switch-circle--checked {
84
+ transform: translateX(var(--cnvs-sys-space-x4, calc(0.25rem * 4)));
85
+ }
86
+