@procore/core-react 10.18.0-rc.4 → 10.18.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/.storybook/coreTheme.ts +12 -0
- package/.storybook/manager-head.html +2 -1
- package/.storybook/manager.js +6 -0
- package/.storybook/preview.js +6 -0
- package/.storybook/secureLogin.js +75 -0
- package/.storybook/static/favicon.ico +0 -0
- package/.storybook/static/logo.png +0 -0
- package/CHANGELOG.md +17 -0
- package/dist/esm/components/Panel/Panel.js +8 -4
- package/dist/esm/components/Panel/Panel.js.map +1 -1
- package/dist/esm/components/Panel/Panel.styles.d.ts +1 -0
- package/dist/esm/components/Panel/Panel.styles.js +7 -6
- package/dist/esm/components/Panel/Panel.styles.js.map +1 -1
- package/dist/esm/components/Panel/Panel.types.d.ts +1 -0
- package/dist/esm/components/Title/Title.js +19 -7
- package/dist/esm/components/Title/Title.js.map +1 -1
- package/dist/esm/components/Title/Title.styles.d.ts +3 -1
- package/dist/esm/components/Title/Title.styles.js +10 -8
- package/dist/esm/components/Title/Title.styles.js.map +1 -1
- package/dist/esm/components/ToggleButton/ToggleButton.d.ts +3 -0
- package/dist/esm/components/ToggleButton/ToggleButton.js +30 -0
- package/dist/esm/components/ToggleButton/ToggleButton.js.map +1 -0
- package/dist/esm/components/ToggleButton/ToggleButton.styles.d.ts +3 -0
- package/dist/esm/components/ToggleButton/ToggleButton.styles.js +13 -0
- package/dist/esm/components/ToggleButton/ToggleButton.styles.js.map +1 -0
- package/dist/esm/components/ToggleButton/ToggleButton.types.d.ts +7 -0
- package/dist/esm/components/ToggleButton/ToggleButton.types.js +2 -0
- package/dist/esm/components/ToggleButton/ToggleButton.types.js.map +1 -0
- package/dist/esm/components/ToggleButton/index.d.ts +2 -0
- package/dist/esm/components/ToggleButton/index.js +2 -0
- package/dist/esm/components/ToggleButton/index.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/layouts/DetailPage/index.d.ts +1 -0
- package/dist/esm/layouts/DetailPage/index.js +2 -0
- package/dist/esm/layouts/DetailPage/index.js.map +1 -0
- package/dist/esm/layouts/Section/Section.js +11 -6
- package/dist/esm/layouts/Section/Section.js.map +1 -1
- package/dist/esm/layouts/Section/Section.styles.d.ts +7 -1
- package/dist/esm/layouts/Section/Section.styles.js +8 -8
- package/dist/esm/layouts/Section/Section.styles.js.map +1 -1
- package/dist/esm/layouts/Section/Section.types.d.ts +13 -0
- package/dist/esm/locales/en.json +3 -0
- package/package.json +21 -19
- package/storybook-static/0.27266d3ea02847f9150e.manager.bundle.js +1 -0
- package/storybook-static/0.705b2268.iframe.bundle.js +1 -0
- package/storybook-static/4.2ae8fcbcd1b989fef469.manager.bundle.js +2 -0
- package/storybook-static/4.2ae8fcbcd1b989fef469.manager.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/4.6a9fe513.iframe.bundle.js +3 -0
- package/storybook-static/4.6a9fe513.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/4.6a9fe513.iframe.bundle.js.map +1 -0
- package/storybook-static/5.36be1a5f.iframe.bundle.js +1 -0
- package/storybook-static/5.5ea857ddbb24541722f5.manager.bundle.js +1 -0
- package/storybook-static/6.c89b7fef.iframe.bundle.js +3 -0
- package/storybook-static/6.c89b7fef.iframe.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/6.c89b7fef.iframe.bundle.js.map +1 -0
- package/storybook-static/6.db69b23fc03f1a0aa79b.manager.bundle.js +2 -0
- package/storybook-static/6.db69b23fc03f1a0aa79b.manager.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/7.198e5f91.iframe.bundle.js +1 -0
- package/storybook-static/7.869b66f3036fe47eff86.manager.bundle.js +1 -0
- package/storybook-static/8.3b5edc9c451b171a928d.manager.bundle.js +1 -0
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +167 -0
- package/storybook-static/index.html +55 -0
- package/storybook-static/logo.png +0 -0
- package/storybook-static/main.0a2a6763.iframe.bundle.js +1 -0
- package/storybook-static/main.2bb737db3c476ea730f0.manager.bundle.js +1 -0
- package/storybook-static/runtime~main.d519cacb.iframe.bundle.js +1 -0
- package/storybook-static/runtime~main.dcf7bf866d8908314fe1.manager.bundle.js +1 -0
- package/storybook-static/static/media/1.13dc8c2c.png +0 -0
- package/storybook-static/static/media/1.36180268.png +0 -0
- package/storybook-static/static/media/2.9314e7b0.png +0 -0
- package/storybook-static/static/media/2.fe5e9f4f.png +0 -0
- package/storybook-static/static/media/3.b141918a.png +0 -0
- package/storybook-static/static/media/3.c17acbc8.png +0 -0
- package/storybook-static/static/media/4.d192a649.png +0 -0
- package/storybook-static/static/media/4.f3f694fc.png +0 -0
- package/storybook-static/static/media/5.1bc2c380.png +0 -0
- package/storybook-static/static/media/5.9d9116a9.png +0 -0
- package/storybook-static/static/media/default.stories.74f74132.png +0 -0
- package/storybook-static/static/media/dog.a379ab68.jpeg +0 -0
- package/storybook-static/static/media/logo.31746cdb.png +0 -0
- package/storybook-static/static/media/thumb_104x104_1.15896857.png +0 -0
- package/storybook-static/static/media/thumb_104x104_2.ace6dbdf.png +0 -0
- package/storybook-static/static/media/thumb_104x104_3.7f044128.png +0 -0
- package/storybook-static/static/media/thumb_104x104_4.e3afac44.png +0 -0
- package/storybook-static/static/media/thumb_40x40_1.e049af5f.png +0 -0
- package/storybook-static/static/media/thumb_40x40_2.324dc5b3.png +0 -0
- package/storybook-static/static/media/thumb_40x40_3.467cde29.png +0 -0
- package/storybook-static/static/media/thumb_40x40_4.eb7de868.png +0 -0
- package/storybook-static/static/media/video.05470725.mp4 +0 -0
- package/storybook-static/static/media/visual_placeholder_40x40.0f5a60ca.svg +9 -0
- package/storybook-static/vendors~main.75c25cc6961ef1a69efe.manager.bundle.js +2 -0
- package/storybook-static/vendors~main.75c25cc6961ef1a69efe.manager.bundle.js.LICENSE.txt +88 -0
- package/storybook-static/vendors~main.82114243.iframe.bundle.js +3 -0
- package/storybook-static/vendors~main.82114243.iframe.bundle.js.LICENSE.txt +160 -0
- package/storybook-static/vendors~main.82114243.iframe.bundle.js.map +1 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"><base target="_parent"><style>:not(.sb-show-main) > .sb-main,
|
|
2
|
+
:not(.sb-show-nopreview) > .sb-nopreview,
|
|
3
|
+
:not(.sb-show-errordisplay) > .sb-errordisplay {
|
|
4
|
+
display: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.sb-show-main.sb-main-centered {
|
|
8
|
+
margin: 0;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
min-height: 100vh;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sb-show-main.sb-main-centered #root {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
margin: auto;
|
|
17
|
+
padding: 1rem;
|
|
18
|
+
max-height: 100%; /* Hack for centering correctly in IE11 */
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Vertical centering fix for IE11 */
|
|
22
|
+
@media screen and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
23
|
+
.sb-show-main.sb-main-centered:after {
|
|
24
|
+
content: '';
|
|
25
|
+
min-height: inherit;
|
|
26
|
+
font-size: 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sb-show-main.sb-main-fullscreen {
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.sb-show-main.sb-main-padded {
|
|
37
|
+
margin: 0;
|
|
38
|
+
padding: 1rem;
|
|
39
|
+
display: block;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sb-wrapper {
|
|
44
|
+
position: fixed;
|
|
45
|
+
top: 0;
|
|
46
|
+
bottom: 0;
|
|
47
|
+
left: 0;
|
|
48
|
+
right: 0;
|
|
49
|
+
padding: 20px;
|
|
50
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
51
|
+
-webkit-font-smoothing: antialiased;
|
|
52
|
+
overflow: auto;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.sb-heading {
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
font-weight: 600;
|
|
58
|
+
letter-spacing: 0.2px;
|
|
59
|
+
margin: 10px 0;
|
|
60
|
+
padding-right: 25px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sb-nopreview {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-content: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.sb-nopreview_main {
|
|
70
|
+
margin: auto;
|
|
71
|
+
padding: 30px;
|
|
72
|
+
border-radius: 10px;
|
|
73
|
+
background: rgba(0,0,0,0.03);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.sb-nopreview_heading {
|
|
77
|
+
text-align: center;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.sb-errordisplay {
|
|
81
|
+
border: 20px solid rgb(187, 49, 49);
|
|
82
|
+
background: #222;
|
|
83
|
+
color: #fff;
|
|
84
|
+
z-index: 999999;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.sb-errordisplay_code {
|
|
88
|
+
padding: 10px;
|
|
89
|
+
background: #000;
|
|
90
|
+
color: #eee;
|
|
91
|
+
font-family: "Operator Mono", "Fira Code Retina", "Fira Code", "FiraCode-Retina", "Andale Mono", "Lucida Console", Consolas, Monaco, monospace;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.sb-errordisplay pre {
|
|
95
|
+
white-space: pre-wrap;
|
|
96
|
+
}</style><script>/* globals window */
|
|
97
|
+
/* eslint-disable no-underscore-dangle */
|
|
98
|
+
try {
|
|
99
|
+
if (window.top !== window) {
|
|
100
|
+
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
101
|
+
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.top.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
102
|
+
window.top.__VUE_DEVTOOLS_CONTEXT__ = window.document;
|
|
103
|
+
}
|
|
104
|
+
} catch (e) {
|
|
105
|
+
// eslint-disable-next-line no-console
|
|
106
|
+
console.warn('unable to connect to top frame for connecting dev tools');
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
window.onerror = function onerror(message, source, line, column, err) {
|
|
110
|
+
if (window.CONFIG_TYPE !== 'DEVELOPMENT') return;
|
|
111
|
+
// eslint-disable-next-line no-var, vars-on-top
|
|
112
|
+
var xhr = new window.XMLHttpRequest();
|
|
113
|
+
xhr.open('POST', '/runtime-error');
|
|
114
|
+
xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
|
|
115
|
+
xhr.send(
|
|
116
|
+
JSON.stringify({
|
|
117
|
+
/* eslint-disable object-shorthand */
|
|
118
|
+
message: message,
|
|
119
|
+
source: source,
|
|
120
|
+
line: line,
|
|
121
|
+
column: column,
|
|
122
|
+
error: err && { message: err.message, name: err.name, stack: err.stack },
|
|
123
|
+
origin: 'preview',
|
|
124
|
+
/* eslint-enable object-shorthand */
|
|
125
|
+
})
|
|
126
|
+
);
|
|
127
|
+
};</script><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet"><style>*,
|
|
128
|
+
*:before,
|
|
129
|
+
*:after {
|
|
130
|
+
-webkit-box-sizing: inherit;
|
|
131
|
+
-moz-box-sizing: inherit;
|
|
132
|
+
box-sizing: inherit;
|
|
133
|
+
}
|
|
134
|
+
html {
|
|
135
|
+
-webkit-box-sizing: border-box;
|
|
136
|
+
-moz-box-sizing: border-box;
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
font-family: Inter, sans-serif;
|
|
139
|
+
}
|
|
140
|
+
body {
|
|
141
|
+
width: 100%;
|
|
142
|
+
}
|
|
143
|
+
p {
|
|
144
|
+
margin: 0;
|
|
145
|
+
}
|
|
146
|
+
.percy-only {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
@media only percy {
|
|
150
|
+
.percy-hidden {
|
|
151
|
+
visibility: hidden;
|
|
152
|
+
}
|
|
153
|
+
.percy-only {
|
|
154
|
+
display: block;
|
|
155
|
+
}
|
|
156
|
+
}</style><style>#root[hidden],
|
|
157
|
+
#docs-root[hidden] {
|
|
158
|
+
display: none !important;
|
|
159
|
+
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script>window['LOGLEVEL'] = "info";
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
window['FRAMEWORK_OPTIONS'] = {};
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
window['FEATURES'] = {"postcss":true};</script><script src="runtime~main.d519cacb.iframe.bundle.js"></script><script src="vendors~main.82114243.iframe.bundle.js"></script><script src="main.0a2a6763.iframe.bundle.js"></script></body></html>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"/><style>html, body {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
* {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}</style><script>/* globals window */
|
|
12
|
+
/* eslint-disable no-underscore-dangle */
|
|
13
|
+
try {
|
|
14
|
+
if (window.top !== window) {
|
|
15
|
+
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
16
|
+
}
|
|
17
|
+
} catch (e) {
|
|
18
|
+
// eslint-disable-next-line no-console
|
|
19
|
+
console.warn('unable to connect to top frame for connecting dev tools');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
window.onerror = function onerror(message, source, line, column, err) {
|
|
23
|
+
if (window.CONFIG_TYPE !== 'DEVELOPMENT') return;
|
|
24
|
+
// eslint-disable-next-line no-var, vars-on-top
|
|
25
|
+
var xhr = new window.XMLHttpRequest();
|
|
26
|
+
xhr.open('POST', '/runtime-error');
|
|
27
|
+
xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
|
|
28
|
+
xhr.send(
|
|
29
|
+
JSON.stringify({
|
|
30
|
+
/* eslint-disable object-shorthand */
|
|
31
|
+
message: message,
|
|
32
|
+
source: source,
|
|
33
|
+
line: line,
|
|
34
|
+
column: column,
|
|
35
|
+
error: err && { message: err.message, name: err.name, stack: err.stack },
|
|
36
|
+
origin: 'manager',
|
|
37
|
+
/* eslint-enable object-shorthand */
|
|
38
|
+
})
|
|
39
|
+
);
|
|
40
|
+
};</script><script src="https://cdn.auth0.com/js/lock/11.21.0/lock.min.js"></script><script src="/core/secureLogin.js"></script><link rel="icon" href="favicon.ico"/><style>#root[hidden],
|
|
41
|
+
#docs-root[hidden] {
|
|
42
|
+
display: none !important;
|
|
43
|
+
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['CONFIG_TYPE'] = "PRODUCTION";
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
window['LOGLEVEL'] = "info";
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
window['DOCS_MODE'] = false;</script><script src="runtime~main.dcf7bf866d8908314fe1.manager.bundle.js"></script><script src="vendors~main.75c25cc6961ef1a69efe.manager.bundle.js"></script><script src="main.2bb737db3c476ea730f0.manager.bundle.js"></script></body></html>
|
|
Binary file
|