@workday/canvas-kit-css 12.0.0-alpha.841-next.0 → 12.0.0-alpha.852-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.
Files changed (4) hide show
  1. package/modal.css +108 -0
  2. package/package.json +2 -2
  3. package/popup.css +69 -0
  4. package/toast.css +42 -0
package/modal.css ADDED
@@ -0,0 +1,108 @@
1
+ @keyframes animation-746311 {
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-746311;
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
+ box-shadow: var(--cnvs-sys-depth-6);
59
+ }
60
+
61
+ @media screen and (max-width: 768px) {
62
+ .cnvs-modal-card {
63
+ margin: var(--cnvs-sys-space-x4);
64
+ padding: var(--cnvs-sys-space-x4);
65
+ border-radius: var(--cnvs-sys-space-x6);
66
+ }
67
+
68
+
69
+ }
70
+
71
+
72
+ .cnvs-modal-heading {
73
+ box-sizing: border-box;
74
+ }
75
+
76
+ @media screen and (max-width: 768px) {
77
+ .cnvs-modal-heading {
78
+ margin-block-end: var(--cnvs-sys-space-zero);
79
+ padding: var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x1);
80
+ }
81
+
82
+
83
+ }
84
+
85
+
86
+ .cnvs-modal-overflow-overlay {
87
+ box-sizing: border-box;
88
+ overflow: hidden auto;
89
+ }
90
+
91
+ .cnvs-modal-overflow-overlay>div {
92
+ max-height: inherit;
93
+ }
94
+
95
+
96
+ .cnvs-modal-body {
97
+ box-sizing: border-box;
98
+ }
99
+
100
+ @media screen and (max-width: 768px) {
101
+ .cnvs-modal-body {
102
+ margin-block-end: var(--cnvs-sys-space-zero);
103
+ padding: var(--cnvs-sys-space-x1) var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x2);
104
+ }
105
+
106
+
107
+ }
108
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-css",
3
- "version": "12.0.0-alpha.841-next.0",
3
+ "version": "12.0.0-alpha.852-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": "066c4b170850949586bf9f89370f5302a6c8f9a4"
28
+ "gitHead": "bbd7343aec2a6657b8eff4981a7aa4a6e47af161"
29
29
  }
package/popup.css ADDED
@@ -0,0 +1,69 @@
1
+ @keyframes animation-c0610e {
2
+ 0% {
3
+ opacity: 1;
4
+ transform: translate(var(--cnvs-translate-position-x), var(--cnvs-translate-position-y));
5
+ }
6
+
7
+ 100% {
8
+ opacity: 1;
9
+ transform: translate(0);
10
+ }
11
+
12
+ }
13
+
14
+ .cnvs-popup-card {
15
+ box-sizing: border-box;
16
+ font-family: var(--cnvs-base-font-family-50);
17
+ font-weight: var(--cnvs-base-font-weight-400);
18
+ line-height: var(--cnvs-base-line-height-100);
19
+ font-size: var(--cnvs-base-font-size-75);
20
+ letter-spacing: var(--cnvs-base-letter-spacing-150);
21
+ display: flex;
22
+ position: relative;
23
+ max-width: calc(100vw - var(--cnvs-sys-space-x8));
24
+ flex-direction: column;
25
+ box-shadow: var(--cnvs-sys-depth-5);
26
+ min-height: var(--cnvs-sys-space-zero);
27
+ padding: var(--cnvs-sys-space-x6);
28
+ max-height: var(--cnvs-popup-card-max-height);
29
+ overflow-y: auto;
30
+ animation-name: animation-c0610e;
31
+ animation-duration: 150ms;
32
+ animation-timing-function: ease-out;
33
+ transform-origin: var(--cnvs-popup-card-transform-origin-vertical) var(--cnvs-popup-card-transform-origin-horizontal);
34
+ }
35
+
36
+ .wd-no-animation .cnvs-popup-card {
37
+ animation: none;
38
+ }
39
+
40
+ @media screen and (max-width: 768px) {
41
+ .cnvs-popup-card {
42
+ transform-origin: bottom center;
43
+ }
44
+
45
+
46
+ }
47
+
48
+
49
+ .cnvs-popup-heading {
50
+ box-sizing: border-box;
51
+ margin-block-end: var(--cnvs-sys-space-x2);
52
+ padding: var(--cnvs-sys-space-x2);
53
+ }
54
+
55
+
56
+ .cnvs-popup-close-icon {
57
+ box-sizing: border-box;
58
+ position: absolute;
59
+ inset-inline-end: var(--cnvs-sys-space-x1);
60
+ top: var(--cnvs-sys-space-x1);
61
+ }
62
+
63
+
64
+ .cnvs-popup-body {
65
+ box-sizing: border-box;
66
+ overflow-y: auto;
67
+ padding: var(--cnvs-sys-space-x2);
68
+ }
69
+
package/toast.css ADDED
@@ -0,0 +1,42 @@
1
+ .cnvs-toast-close-icon {
2
+ box-sizing: border-box;
3
+ position: relative;
4
+ }
5
+
6
+
7
+ .cnvs-toast-icon {
8
+ box-sizing: border-box;
9
+ align-self: start;
10
+ margin: var(--cnvs-sys-space-x4) var(--cnvs-sys-space-x3);
11
+ }
12
+
13
+
14
+ .cnvs-toast-message {
15
+ box-sizing: border-box;
16
+ word-break: break-word;
17
+ margin-block-start: var(--cnvs-sys-space-zero);
18
+ margin-block-end: var(--cnvs-sys-space-zero);
19
+ }
20
+
21
+
22
+ .cnvs-toast-body {
23
+ box-sizing: border-box;
24
+ align-items: flex-start;
25
+ flex-direction: column;
26
+ justify-content: center;
27
+ padding-top: var(--cnvs-sys-space-x4);
28
+ padding-bottom: var(--cnvs-sys-space-x4);
29
+ flex-grow: 1;
30
+ gap: var(--cnvs-sys-space-x1);
31
+ }
32
+
33
+
34
+ .cnvs-toast {
35
+ box-sizing: border-box;
36
+ display: flex;
37
+ flex-direction: row;
38
+ width: calc(calc(var(--cnvs-sys-space-x20) * 4) + var(--cnvs-sys-space-x10));
39
+ padding: var(--cnvs-sys-space-zero);
40
+ gap: var(--cnvs-sys-space-x1);
41
+ }
42
+