@uniformdev/design-system 13.0.1-alpha.132
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/LICENSE +2 -0
- package/dist/esm/index.js +772 -0
- package/dist/index.d.ts +408 -0
- package/dist/index.js +772 -0
- package/package.json +44 -0
|
@@ -0,0 +1,772 @@
|
|
|
1
|
+
import{jsx as e}from"@emotion/react";import*as m from"react";import mo from"react";var Wo=({disableReset:o=!1})=>e(mo.Fragment,null,e("link",{href:"https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Quantico:wght@700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap",rel:"stylesheet"}),o?null:e("style",{dangerouslySetInnerHTML:{__html:`
|
|
2
|
+
/*** The new CSS Reset - version 1.2.0 (last updated 23.7.2021) ***/
|
|
3
|
+
|
|
4
|
+
/* Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property */
|
|
5
|
+
*:where(:not(iframe, canvas, img, svg, video):not(svg *)) {
|
|
6
|
+
all: unset;
|
|
7
|
+
display: revert;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Preferred box-sizing value */
|
|
11
|
+
*,
|
|
12
|
+
*::before,
|
|
13
|
+
*::after {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
Remove list styles (bullets/numbers)
|
|
19
|
+
in case you use it with normalize.css
|
|
20
|
+
*/
|
|
21
|
+
ol,
|
|
22
|
+
ul {
|
|
23
|
+
list-style: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* For images to not be able to exceed their container */
|
|
27
|
+
img {
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Removes spacing between cells in tables */
|
|
32
|
+
table {
|
|
33
|
+
border-collapse: collapse;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Revert the 'white-space' property for textarea elements on Safari */
|
|
37
|
+
textarea {
|
|
38
|
+
white-space: revert;
|
|
39
|
+
}`}}),e("style",{dangerouslySetInnerHTML:{__html:`
|
|
40
|
+
:root {
|
|
41
|
+
--brand-primary-1: #438fd5; /* bright blue */
|
|
42
|
+
--brand-primary-2: #f4220b; /* red */
|
|
43
|
+
--brand-primary-3: #83c6e1; /* slate blue */
|
|
44
|
+
|
|
45
|
+
/* secondary colours */
|
|
46
|
+
--brand-secondary-1: #1f2b34; /* carbon */
|
|
47
|
+
--brand-secondary-2: #ecf1f1; /* silver */
|
|
48
|
+
--brand-secondary-3: #2ecdb4; /* teal */
|
|
49
|
+
--brand-secondary-4: #f6f1c3; /* yellow */
|
|
50
|
+
--brand-secondary-5: #d9534f; /* brick red */
|
|
51
|
+
--brand-secondary-6: #dbf6f2; /* mint */
|
|
52
|
+
|
|
53
|
+
/* off brand */
|
|
54
|
+
--input-border: rgba(31, 43, 52, 0.5);
|
|
55
|
+
--ring: 0 0 0 0 var(--white), 0 0 0 3px var(--brand-primary-3);
|
|
56
|
+
--ring-inset: inset 0 0 0 0 var(--white), inset 0 0 0 3px var(--brand-primary-3);
|
|
57
|
+
|
|
58
|
+
/* site settings */
|
|
59
|
+
--site-width: 1536px;
|
|
60
|
+
|
|
61
|
+
--spacing-base: 1rem;
|
|
62
|
+
--spacing-xs: calc(var(--spacing-base) - 0.75rem);
|
|
63
|
+
--spacing-sm: calc(var(--spacing-base) - 0.5rem);
|
|
64
|
+
--spacing-3: calc(var(--spacing-base) - 0.25rem);
|
|
65
|
+
--spacing-md: calc(var(--spacing-base) * 1.5);
|
|
66
|
+
--spacing-lg: calc(var(--spacing-base) * 2);
|
|
67
|
+
--spacing-xl: calc(var(--spacing-base) * 2.5);
|
|
68
|
+
--spacing-2xl: calc(var(--spacing-base) * 3);
|
|
69
|
+
|
|
70
|
+
/* font sizes */
|
|
71
|
+
--fluid-font-base: 2vw + 1rem;
|
|
72
|
+
|
|
73
|
+
--fs-base: 1rem; /* 16px */
|
|
74
|
+
--fs-xxs: calc(var(--fs-base) - 0.5rem);
|
|
75
|
+
--fs-xs: calc(var(--fs-base) - 0.25rem);
|
|
76
|
+
--fs-sm: calc(var(--fs-base) - 0.125rem);
|
|
77
|
+
--fs-md: calc(var(--fs-base) * 1.25);
|
|
78
|
+
--fs-lg: calc(var(--fs-base) * 1.5);
|
|
79
|
+
--fs-xl: clamp(calc(var(--fs-base) * 1.5), var(--fluid-font-base), calc(var(--fs-base) * 2));
|
|
80
|
+
--fs-xxl: calc(var(--fs-base) * 2.25);
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/* font-weight */
|
|
84
|
+
--fw-regular: 400;
|
|
85
|
+
--fw-medium: 500;
|
|
86
|
+
--fw-bold: 700;
|
|
87
|
+
|
|
88
|
+
/* font family */
|
|
89
|
+
--ff-base: 'DM Sans', sans-serif;
|
|
90
|
+
--ff-heading: 'Quantico', sans-serif;
|
|
91
|
+
--ff-mono: 'Space Mono', monospace
|
|
92
|
+
|
|
93
|
+
/* max text width */
|
|
94
|
+
--prose: 65ch;
|
|
95
|
+
|
|
96
|
+
/* brand shadow styles */
|
|
97
|
+
--shadow-base: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
|
|
98
|
+
rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
|
|
99
|
+
|
|
100
|
+
/* rounder corners */
|
|
101
|
+
--rounded-base: 6px;
|
|
102
|
+
--rounded-md: 0.375rem;
|
|
103
|
+
--rounded-full: 99999px;
|
|
104
|
+
|
|
105
|
+
/* gray spectrum */
|
|
106
|
+
--white: #fff;
|
|
107
|
+
--gray-50: #f9fafb;
|
|
108
|
+
--gray-100: #f3f4f6;
|
|
109
|
+
--gray-200: #e5e7eb;
|
|
110
|
+
--gray-300: #d1d5db;
|
|
111
|
+
--gray-400: #9ca3af;
|
|
112
|
+
--gray-500: #6b7280;
|
|
113
|
+
--gray-600: #4b5563;
|
|
114
|
+
--gray-700: #374151;
|
|
115
|
+
--gray-800: #1f2937;
|
|
116
|
+
--gray-900: #111827;
|
|
117
|
+
|
|
118
|
+
/* green spectrum */
|
|
119
|
+
--green-50: rgb(236 253 245 / 1);
|
|
120
|
+
|
|
121
|
+
--alert: #facc15;
|
|
122
|
+
|
|
123
|
+
/* z-indexs */
|
|
124
|
+
--z-10: 10;
|
|
125
|
+
|
|
126
|
+
/* opacity */
|
|
127
|
+
--opacity-75: 0.75;
|
|
128
|
+
|
|
129
|
+
/* animation function times */
|
|
130
|
+
--timing-ease-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
131
|
+
--duration-fast: 0.25s;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
html,
|
|
135
|
+
body {
|
|
136
|
+
color: var(--brand-secondary-1);
|
|
137
|
+
font-family: var(--ff-base);
|
|
138
|
+
scroll-behavior: smooth;
|
|
139
|
+
font-weight: var(--fw-regular);
|
|
140
|
+
line-height: 1.5;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
li {
|
|
144
|
+
line-height: 1.5rem;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
a, button {
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
button, input, optgroup, select, textarea {
|
|
152
|
+
font-family: inherit;
|
|
153
|
+
font-size: inherit;
|
|
154
|
+
color: inherit;
|
|
155
|
+
line-height: 1.25rem;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[role=button], button {
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
audio, canvas, embed, iframe, img, object, svg, video {
|
|
163
|
+
display: block;
|
|
164
|
+
vertical-align: middle;
|
|
165
|
+
}
|
|
166
|
+
`}}));import{css as b}from"@emotion/react";var B=b`
|
|
167
|
+
position: relative;
|
|
168
|
+
`,x=b`
|
|
169
|
+
display: flex;
|
|
170
|
+
font-weight: var(--fw-bold);
|
|
171
|
+
margin: 0 0 var(--spacing-xs);
|
|
172
|
+
align-items: center;
|
|
173
|
+
`,k=b`
|
|
174
|
+
appearance: none;
|
|
175
|
+
background-color: var(--white);
|
|
176
|
+
border: 1px solid var(--gray-400);
|
|
177
|
+
border-radius: var(--rounded-md);
|
|
178
|
+
color: var(--gray-700);
|
|
179
|
+
padding: var(--spacing-base) var(--spacing-md) var(--spacing-base) var(--spacing-base);
|
|
180
|
+
width: 100%;
|
|
181
|
+
position: relative;
|
|
182
|
+
white-space: nowrap;
|
|
183
|
+
transition: background var(--duration-fast) var(--timing-ease-out),
|
|
184
|
+
border-color var(--duration-fast) var(--timing-ease-out),
|
|
185
|
+
color var(--duration-fast) var(--timing-ease-out);
|
|
186
|
+
|
|
187
|
+
&::placeholder {
|
|
188
|
+
color: var(--gray-400);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&:focus,
|
|
192
|
+
&:focus-within {
|
|
193
|
+
border-color: var(--brand-secondary-1);
|
|
194
|
+
outline: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&:disabled,
|
|
198
|
+
&:disabled::placeholder {
|
|
199
|
+
cursor: not-allowed;
|
|
200
|
+
color: var(--gray-300);
|
|
201
|
+
border-color: var(--gray-300);
|
|
202
|
+
}
|
|
203
|
+
`,P=b`
|
|
204
|
+
border-color: var(--brand-secondary-5);
|
|
205
|
+
`,N=b`
|
|
206
|
+
align-items: center;
|
|
207
|
+
display: flex;
|
|
208
|
+
position: absolute;
|
|
209
|
+
inset: 0 var(--spacing-base) 0 auto;
|
|
210
|
+
pointer-event: one;
|
|
211
|
+
`,U=b`
|
|
212
|
+
padding-right: var(--spacing-2xl);
|
|
213
|
+
`,G=b`
|
|
214
|
+
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
|
|
215
|
+
background-position: right var(--spacing-sm) center;
|
|
216
|
+
background-repeat: no-repeat;
|
|
217
|
+
background-size: 1rem;
|
|
218
|
+
padding-right: var(--spacing-xl);
|
|
219
|
+
`,W=b`
|
|
220
|
+
color: var(--brand-secondary-1);
|
|
221
|
+
height: 1.25rem;
|
|
222
|
+
width: 1.25rem;
|
|
223
|
+
`,Y=b`
|
|
224
|
+
align-items: center;
|
|
225
|
+
cursor: pointer;
|
|
226
|
+
display: inline-flex;
|
|
227
|
+
gap: var(--spacing-sm);
|
|
228
|
+
margin: var(--spacing-sm) 0;
|
|
229
|
+
flex-wrap: wrap;
|
|
230
|
+
`,K=b`
|
|
231
|
+
border: 1px solid var(--brand-secondary-1);
|
|
232
|
+
background: var(--white);
|
|
233
|
+
width: var(--spacing-md);
|
|
234
|
+
height: var(--spacing-md);
|
|
235
|
+
transition: background var(--duration) var(--timing), border-color var(--duration) var(--timing),
|
|
236
|
+
color var(--duration) var(--timing);
|
|
237
|
+
|
|
238
|
+
&[type='radio'] {
|
|
239
|
+
border-radius: var(--rounded-full);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&[type='checkbox'] {
|
|
243
|
+
border-radius: var(--rounded-base);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&:checked,
|
|
247
|
+
&:checked:hover,
|
|
248
|
+
&:checked:focus {
|
|
249
|
+
background: var(--brand-secondary-3)
|
|
250
|
+
url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M10.5858 13.4142L7.75735 10.5858L6.34314 12L10.5858 16.2427L17.6568 9.1716L16.2426 7.75739L10.5858 13.4142Z' fill='%23fff' /%3E%3C/svg%3E")
|
|
251
|
+
no-repeat center center;
|
|
252
|
+
border-color: var(--brand-secondary-3);
|
|
253
|
+
color: var(--white);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&:disabled {
|
|
257
|
+
cursor: not-allowed;
|
|
258
|
+
color: var(--gray-300);
|
|
259
|
+
border-color: var(--gray-300);
|
|
260
|
+
}
|
|
261
|
+
`,_=b`
|
|
262
|
+
font-weight: var(--font-medium);
|
|
263
|
+
`,q=b`
|
|
264
|
+
cursor: not-allowed;
|
|
265
|
+
color: var(--gray-400);
|
|
266
|
+
`,J=b`
|
|
267
|
+
display: flex;
|
|
268
|
+
flex-direction: column;
|
|
269
|
+
flex-basis: 100%;
|
|
270
|
+
padding-left: var(--spacing-lg);
|
|
271
|
+
margin-top: -0.5rem;
|
|
272
|
+
line-height: 1.15;
|
|
273
|
+
`;import{css as go}from"@emotion/react";var F=go`
|
|
274
|
+
@supports ((scrollbar-color: #d1d5db transparent) and (scrollbar-width: thin)) {
|
|
275
|
+
/*
|
|
276
|
+
#d1d5db = bg-gray-300
|
|
277
|
+
scrollbar-color first arg is the thumb, the second arg is the trackbar color
|
|
278
|
+
hover state in firefox is controlled within the browser
|
|
279
|
+
*/
|
|
280
|
+
scrollbar-color: #d1d5db transparent;
|
|
281
|
+
scrollbar-width: thin;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
&::-webkit-scrollbar {
|
|
285
|
+
width: 8px;
|
|
286
|
+
height: 8px;
|
|
287
|
+
}
|
|
288
|
+
&::-webkit-scrollbar-track {
|
|
289
|
+
background: transparent;
|
|
290
|
+
border-radius: var(--rounded-base);
|
|
291
|
+
}
|
|
292
|
+
&::-webkit-scrollbar-thumb {
|
|
293
|
+
background: var(--gray-300);
|
|
294
|
+
border-radius: var(--rounded-base);
|
|
295
|
+
}
|
|
296
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
297
|
+
background: var(--gray-500);
|
|
298
|
+
}
|
|
299
|
+
`;import{css as Z}from"@emotion/react";var z=Z`
|
|
300
|
+
display: block;
|
|
301
|
+
`,E=Z`
|
|
302
|
+
background: transparent;
|
|
303
|
+
color: var(--brand-secondary-1);
|
|
304
|
+
`,V=Z`
|
|
305
|
+
background: var(--brand-secondary-1);
|
|
306
|
+
color: var(--white);
|
|
307
|
+
`;var er=({theme:o="light",...r})=>e("svg",{width:"38",height:"44",viewBox:"0 0 87 101",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-test-id":"uniform-Badge",css:[z,o==="dark"?V:E],...r},e("path",{d:"M28.998 0 0 16.744V50.23l28.998-16.744 29.004-16.743L28.998 0Z",fill:"#83C6E1"}),e("path",{d:"M28.998 66.974V33.487L0 50.231v33.487l28.998 16.744 29.004-16.744V50.23L28.998 66.974Z",fill:"#438FD5"}),e("path",{d:"M58.002 16.744 28.998 33.487l29.004 16.744v33.487L87 66.975V33.487L58.002 16.744Z",fill:"#F4220B"}));var tr=({theme:o="light"})=>e("div",{"data-test-id":"uniform-Logo"},e("svg",{width:"153",height:"53",viewBox:"0 0 153 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",css:[z,o==="dark"?V:E]},e("path",{d:"M11.249 0 0 6.495v12.99l11.249-6.495L22.5 6.495 11.25 0Z",fill:"#83C6E1"}),e("path",{d:"M11.249 25.98V12.99L0 19.486v12.99l11.249 6.495L22.5 32.476v-12.99L11.25 25.98Z",fill:"#438FD5"}),e("path",{d:"m22.5 6.495-11.25 6.496 11.25 6.495v12.99l11.25-6.495V12.99L22.5 6.495Z",fill:"#F4220B"}),e("path",{d:"M86.45 12.98h-4.076v14.87h4.076V12.98Zm.146-6.843h-4.371v4.076h4.37V6.137Zm5.861 1.993v4.85h-2.736v3.477h2.736V27.85h4.076V16.457h3.27V12.98h-3.27V9.617h3.27v-3.48h-3.896l-3.45 1.992Zm13.503 4.7-3.45 1.993v11.183l3.45 1.992h6.335l3.45-1.992V14.823l-3.45-1.992h-6.335Zm5.71 11.688h-5.087v-8.21h5.087v8.21Zm12.607-10.315-2.119-1.224h-1.954v14.87h4.076V16.457h5.115V12.98h-2.999l-2.119 1.224ZM71.034 12.83l-2.375 1.373-2.379-1.372h-1.6v15.018h4.075V16.31h5.084v11.54h4.076V14.823l-3.45-1.992h-3.431ZM56.145 24.517h-5.087V12.98h-4.073v13.027l3.45 1.992h3.593l2.111-1.22.003.002.003-.003v.003l2.108 1.218h1.965v-15.02h-4.073v11.538Zm93.68-11.687h-2.855l-2.794 1.604-2.767-1.603h-2.854l-2.111 1.218-2.111-1.218h-1.965v15.018h4.076V16.31h4.343v11.54h4.073V16.31h4.343v11.54h4.073V14.823l-3.451-1.992Z",fill:"currentColor"})));import*as te from"react";import{Button as fo}from"reakit/Button";import{css as w}from"@emotion/react";var Q=w`
|
|
308
|
+
align-items: center;
|
|
309
|
+
border: 1px solid transparent;
|
|
310
|
+
cursor: pointer;
|
|
311
|
+
display: inline-flex;
|
|
312
|
+
font-weight: var(--fw-medium);
|
|
313
|
+
transition: opacity var(--duration-fast) var(--timing-ease-out),
|
|
314
|
+
color var(--duration-fast) var(--timing-ease-out),
|
|
315
|
+
border-color var(--duration-fast) var(--timing-ease-out);
|
|
316
|
+
|
|
317
|
+
&:focus {
|
|
318
|
+
outline: none;
|
|
319
|
+
border-color: var(--gray-700);
|
|
320
|
+
box-shadow: var(--ring);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
&:hover,
|
|
324
|
+
&:active {
|
|
325
|
+
opacity: var(--opacity-75);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
&:disabled {
|
|
329
|
+
cursor: not-allowed;
|
|
330
|
+
}
|
|
331
|
+
`,X=w`
|
|
332
|
+
background: var(--brand-secondary-1);
|
|
333
|
+
color: var(--white);
|
|
334
|
+
|
|
335
|
+
&:disabled {
|
|
336
|
+
background: var(--gray-500);
|
|
337
|
+
color: var(--white);
|
|
338
|
+
}
|
|
339
|
+
`,j=w`
|
|
340
|
+
background: var(--brand-secondary-5);
|
|
341
|
+
color: var(--white);
|
|
342
|
+
|
|
343
|
+
&:disabled {
|
|
344
|
+
background: var(--gray-500);
|
|
345
|
+
color: var(--white);
|
|
346
|
+
}
|
|
347
|
+
`,ee=w`
|
|
348
|
+
background: var(--brand-secondary-2);
|
|
349
|
+
color: var(--brand-secondary-1);
|
|
350
|
+
|
|
351
|
+
&:disabled {
|
|
352
|
+
background: var(--brand-secondary-2);
|
|
353
|
+
color: var(--gray-400);
|
|
354
|
+
}
|
|
355
|
+
`,oe=w`
|
|
356
|
+
background: transparent;
|
|
357
|
+
color: var(--brand-secondary-3);
|
|
358
|
+
|
|
359
|
+
&:hover {
|
|
360
|
+
border-color: var(--brand-secondary-3);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
&:disabled {
|
|
364
|
+
background: transparent;
|
|
365
|
+
border-color: var(--gray-400);
|
|
366
|
+
color: var(--gray-400);
|
|
367
|
+
}
|
|
368
|
+
`,re=w`
|
|
369
|
+
background: var(--brand-secondary-3);
|
|
370
|
+
color: var(--white);
|
|
371
|
+
|
|
372
|
+
&:disabled {
|
|
373
|
+
background: var(--gray-500);
|
|
374
|
+
color: var(--white);
|
|
375
|
+
}
|
|
376
|
+
`;var pr=te.forwardRef(({buttonType:o="primary",size:r="md",children:a,...t},n)=>{let l={primary:X,secondary:j,ghost:oe,unimportant:ee,tertiary:re},p={xs:"padding: 0.375rem 0.625rem; font-size: var(--fs-xs);",sm:"padding: var(--spacing-sm) 0.75rem; font-size: var(--fs-sm);",md:"padding: var(--spacing-sm) var(--spacing-base); font-size: var(--fs-sm);",lg:"padding: var(--spacing-sm) var(--spacing-base)",xl:"padding: 0.75rem var(--spacing-md)"};return e(fo,{"data-testid":"uniform-button",ref:n,css:[Q,l[o],p[r]],...t},a)});import Io from"react";import{createContext as vo,useContext as bo,useEffect as ho,useState as ne}from"react";import{paramCase as yo}from"param-case";var ae=vo({iconsMap:{},isLoading:!0});function ie(){return bo(ae)}function vr({children:o}){let[r,a]=ne(!0),[t,n]=ne({});return ho(()=>{import("react-icons/cg").then(l=>{let p=Object.entries(l).reduce((d,[u,f])=>{if(u==="default")return d;let v=xo(u);return{...d,[v]:f}},{});n(p),a(!1)})},[]),e(ae.Provider,{value:{iconsMap:t,isLoading:r}},o)}function xo(o){return yo(o.replace("Cg",""))}import{css as L}from"@emotion/react";var wo={sm:"640px",md:"768px",lg:"1025px",xl:"1280px","2xl":"1536px"},se=o=>`@media (min-width: ${wo[o]})`;var le=L`
|
|
377
|
+
display: hidden;
|
|
378
|
+
|
|
379
|
+
${se("sm")} {
|
|
380
|
+
display: block;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
& svg {
|
|
384
|
+
display: block;
|
|
385
|
+
vertical-align: middle;
|
|
386
|
+
}
|
|
387
|
+
`,ce=L`
|
|
388
|
+
color: var(--brand-secondary-3);
|
|
389
|
+
`,pe=L`
|
|
390
|
+
color: var(--brand-secondary-5);
|
|
391
|
+
`,de=L`
|
|
392
|
+
color: var(--gray-500);
|
|
393
|
+
`,ue=L`
|
|
394
|
+
color: currentColor;
|
|
395
|
+
`;var So=({icon:o,iconColorClass:r="green",...a})=>{let t=typeof o=="string",{iconsMap:n,isLoading:l}=ie(),p={green:ce,gray:de,red:pe,currentColor:ue};if(t&&l)return null;let d=t?n[o]:o;return t&&d===void 0?(console.error(`We don't seem to have the icon you're looking for ("${o}"). Make sure you're using <IconsProvider> and try an icon from our Storybook.`),null):e(d,{role:"img",...a,css:[le,p[r]]})},me=Io.memo(So);import{css as Mo}from"@emotion/react";var ge=Mo`
|
|
396
|
+
color: var(--gray-500);
|
|
397
|
+
display: block;
|
|
398
|
+
font-size: var(--fs-base);
|
|
399
|
+
margin: var(--spacing-sm) 0;
|
|
400
|
+
max-width: var(--prose);
|
|
401
|
+
`;var C=({children:o})=>e("small",{css:ge},o);import{css as Ro}from"@emotion/react";var fe=Ro`
|
|
402
|
+
align-items: center;
|
|
403
|
+
color: var(--brand-secondary-5);
|
|
404
|
+
display: flex;
|
|
405
|
+
gap: var(--spacing-sm);
|
|
406
|
+
margin: var(--spacing-xs) 0;
|
|
407
|
+
`;var I=({message:o})=>o?e("span",{css:fe},e("svg",{width:"12",height:"12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{clipPath:"url(#a)"},e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.67 1.125A.77.77 0 0 0 6.005.75a.769.769 0 0 0-.665.375l-5.236 9a.735.735 0 0 0 0 .75.79.79 0 0 0 .664.376h10.473a.749.749 0 0 0 .76-.75.773.773 0 0 0-.095-.377L6.67 1.125Zm.1 8.623H5.24V8.246h1.53v1.502Zm0-2.253H5.24V4.49h1.53v3.005Z",fill:"currentColor"})),e("defs",null,e("clipPath",{id:"a"},e("path",{fill:"#fff",d:"M0 0h12v12H0z"})))),o):null;import*as ve from"react";var be=({label:o,icon:r,id:a,caption:t,showLabel:n=!0,errorMessage:l,classNameContainer:p,classNameControl:d,classNameLabel:u,...f})=>e(ve.Fragment,null,n?e("label",{htmlFor:a,css:[x,typeof u=="object"?u:void 0],className:typeof u=="string"?u:""},o):null,e("div",{css:[B,typeof p=="object"?p:void 0],className:typeof p=="string"?p:""},e("input",{id:a,css:[k,typeof d=="object"?d:void 0,l?P:void 0,r?U:""],"aria-label":n?void 0:o,className:typeof d=="string"?d:"",...f}),r?e("div",{css:N},r):null),t?e(C,null,t):null,l?e(I,{message:l}):null);import ko from"react-select";function Fr(o){return e(ko,{...o,styles:{...o.styles,singleValue:(r,a)=>{var t,n;return{...r,...(n=(t=o.styles)==null?void 0:t.singleValue)==null?void 0:n.call(t,r,a),color:"#828282"}},valueContainer:(r,a)=>{var t,n;return{...r,...(n=(t=o.styles)==null?void 0:t.valueContainer)==null?void 0:n.call(t,r,a),padding:"var(--spacing-base)"}},input:(r,a)=>{var t,n;return{...r,...(n=(t=o.styles)==null?void 0:t.input)==null?void 0:n.call(t,r,a),margin:"0",padding:"0","& > input":{boxShadow:"none !important"}}},control:(r,a)=>({...r,border:a.isFocused?"1px solid transparent":"1px solid var(--gray-400)",outline:a.isFocused?"1px solid var(--brand-secondary-1)":"none",outlineOffset:0,boxShadow:"none","&:hover":{boxShadow:"none"}})}})}import{css as Po}from"@emotion/react";import*as Ie from"react";import{useState as Lo,useRef as To}from"react";import{css as T}from"@emotion/react";var he=T`
|
|
408
|
+
margin-inline: auto;
|
|
409
|
+
max-width: fit-content;
|
|
410
|
+
`,ye=T`
|
|
411
|
+
align-items: center;
|
|
412
|
+
background: var(--brand-secondary-3);
|
|
413
|
+
border: 2px solid var(--brand-secondary-3);
|
|
414
|
+
border-radius: var(--rounded-base);
|
|
415
|
+
cursor: pointer;
|
|
416
|
+
color: var(--white);
|
|
417
|
+
display: flex;
|
|
418
|
+
gap: var(--spacing-sm);
|
|
419
|
+
font-size: var(--fs-sm);
|
|
420
|
+
padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) var(--spacing-base);
|
|
421
|
+
|
|
422
|
+
&:disabled {
|
|
423
|
+
background: var(--white);
|
|
424
|
+
border-color: var(--gray-200);
|
|
425
|
+
cursor: default;
|
|
426
|
+
color: var(--gray-500);
|
|
427
|
+
padding-right: var(--spacing-base);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
&:focus {
|
|
431
|
+
outline: 2px solid var(--brand-secondary-1);
|
|
432
|
+
}
|
|
433
|
+
`,xe=T`
|
|
434
|
+
background: var(--white);
|
|
435
|
+
border: 1px solid var(--brand-secondary-3);
|
|
436
|
+
border-top: none;
|
|
437
|
+
color: var(--brand-secondary-1);
|
|
438
|
+
display: block;
|
|
439
|
+
text-align: center;
|
|
440
|
+
position: absolute;
|
|
441
|
+
inset: auto 0;
|
|
442
|
+
transform: translateY(-0.2rem);
|
|
443
|
+
`,we=T`
|
|
444
|
+
cursor: pointer;
|
|
445
|
+
display: block;
|
|
446
|
+
font-size: var(--fs-sm);
|
|
447
|
+
padding: var(--spacing-xs) var(--spacing-base);
|
|
448
|
+
width: 100%;
|
|
449
|
+
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
450
|
+
|
|
451
|
+
&:focus {
|
|
452
|
+
outline: 2px solid var(--brand-secondary-1);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
&:hover {
|
|
456
|
+
background: var(--gray-50);
|
|
457
|
+
}
|
|
458
|
+
`,Ce=T`
|
|
459
|
+
position: absolute;
|
|
460
|
+
overflow: hidden;
|
|
461
|
+
height: 1px;
|
|
462
|
+
width: 1px;
|
|
463
|
+
clip: rect(0, 0, 0, 0);
|
|
464
|
+
padding: 0;
|
|
465
|
+
`;import{CgChevronDown as Bo}from"react-icons/cg";var _r=({classNameContainer:o,options:r,value:a,onChange:t,disabled:n,...l})=>{var v;let[p,d]=Lo(!1),u=To(null);Ie.useEffect(()=>{let g=y=>{u.current&&!u.current.contains(y.target)&&d(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[u]);let f=r.find(g=>g.value===a);return e("div",{ref:u,css:o?Po`
|
|
466
|
+
max-width: fit-content;
|
|
467
|
+
${typeof o=="object"?o:void 0}
|
|
468
|
+
`:he,className:typeof o=="string"?o:""},e("button",{type:"button","aria-controls":`and-or-${l.id}`,"aria-expanded":p,css:ye,onClick:()=>{n||d(g=>!g)},disabled:n,...l},e("span",null,(v=f==null?void 0:f.label)!=null?v:a),n?null:e(me,{icon:Bo,iconColorClass:"currentColor"})),e("div",{id:`and-or-${l.id}`,css:[xe,p?void 0:Ce],"aria-hidden":!p},r.map(g=>e("button",{key:g.value,type:"button",css:we,onClick:()=>{t(g),d(y=>!y)}},g.label))))};var Xr=({onSearchTextChanged:o,disabled:r=!1,placeholder:a="Keyword search",inputFieldName:t="keywordSearch",disabledFieldSubmission:n=!1,value:l})=>e(be,{type:"text",name:t,placeholder:a,showLabel:!1,value:l,icon:e("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",css:W},e("g",{clipPath:"url(#clip0)"},e("path",{d:"M11.539 0C5.48429 0 0.558105 4.74145 0.558105 10.5691C0.558105 16.3971 5.48429 21.1382 11.539 21.1382C17.594 21.1382 22.5199 16.3971 22.5199 10.5691C22.5199 4.74145 17.594 0 11.539 0ZM11.539 19.187C6.60198 19.187 2.58535 15.321 2.58535 10.5691C2.58535 5.81728 6.60198 1.95122 11.539 1.95122C16.476 1.95122 20.4926 5.81723 20.4926 10.5691C20.4926 15.321 16.476 19.187 11.539 19.187Z"}),e("path",{d:"M25.196 22.3344L19.3846 16.7409C18.9886 16.3598 18.3473 16.3598 17.9513 16.7409C17.5553 17.1217 17.5553 17.7397 17.9513 18.1205L23.7627 23.714C23.9607 23.9045 24.2199 23.9998 24.4794 23.9998C24.7385 23.9998 24.998 23.9045 25.196 23.714C25.592 23.3332 25.592 22.7153 25.196 22.3344Z"})),e("defs",null,e("clipPath",{id:"clip0"},e("rect",{width:"24.9351",height:"24",fill:"white",transform:"translate(0.558105)"})))),onChange:u=>{o(u.currentTarget.value)},onKeyPress:u=>{u.key==="Enter"&&n&&u.preventDefault()},disabled:r,"aria-label":a});var tt=({label:o,defaultOption:r,options:a,caption:t,errorMessage:n,showLabel:l=!0,labelCta:p,classNameContainer:d,classNameControl:u,classNameLabel:f,...v})=>e("div",{css:[B,typeof d=="object"?d:void 0],className:typeof d=="string"?d:""},l?e("label",{htmlFor:v.id,css:[x,typeof f=="object"?f:void 0],className:typeof f=="string"?f:""},o,p):null,e("select",{title:o,"aria-label":l?void 0:o,css:[k,G,n?P:void 0,typeof u=="object"?u:void 0],className:typeof u=="string"?u:"",...v},r?e("option",{value:""},r):null,a.map((g,y)=>e("option",{key:y,value:g.label,...g}))),t?e(C,null,t):null,n?e(I,{message:n}):null);var st=({label:o,type:r,disabled:a,checked:t,name:n,caption:l,errorMessage:p,...d})=>e("label",{css:[Y,a?q:void 0]},e("input",{type:r,css:K,checked:t,name:n,disabled:a,...d}),e("span",{css:_},o),l||p?e("span",{css:J},l?e(C,null,l):null,p?e(I,{message:p}):null):null);import*as S from"react";import{useMenuState as Eo,Menu as Vo,MenuButton as Ho}from"reakit/Menu";import{css as zo}from"@emotion/react";var Se=zo`
|
|
469
|
+
border: 1px solid var(--gray-500);
|
|
470
|
+
border-radius: var(--rounded-base);
|
|
471
|
+
outline: none;
|
|
472
|
+
overflow: hidden;
|
|
473
|
+
z-index: 50;
|
|
474
|
+
`;var Me=S.createContext({}),Re=()=>S.useContext(Me),vt=({menuLabel:o,menuTrigger:r,placement:a="auto",children:t})=>{let n=Eo({placement:a});return e(Me.Provider,{value:n},e(Ho,{...n,ref:r.ref,...r.props},l=>S.cloneElement(r,l)),e(Vo,{...n,"aria-label":o,css:Se},t))};import*as Be from"react";import{MenuItem as Le}from"reakit";import{css as ke}from"@emotion/react";var A=ke`
|
|
475
|
+
background: var(--white);
|
|
476
|
+
border-top: 1px solid var(--gray-500);
|
|
477
|
+
color: var(--brand-secondary-1);
|
|
478
|
+
display: block;
|
|
479
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
480
|
+
font-weight: var(--fw-bold);
|
|
481
|
+
width: 100%;
|
|
482
|
+
|
|
483
|
+
&:first-of-type {
|
|
484
|
+
border-top-color: var(--white);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
&:disabled {
|
|
488
|
+
color: var(--gray-500);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
&:focus {
|
|
492
|
+
outline: none;
|
|
493
|
+
box-shadow: var(--ring-inset);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
&:hover {
|
|
497
|
+
background: var(--gray-200);
|
|
498
|
+
}
|
|
499
|
+
`,Pe=ke`
|
|
500
|
+
align-items: center;
|
|
501
|
+
display: flex;
|
|
502
|
+
justify-content: space-between;
|
|
503
|
+
gap: var(--spacing-base);
|
|
504
|
+
|
|
505
|
+
svg {
|
|
506
|
+
align-self: center;
|
|
507
|
+
width: var(--spacing-base);
|
|
508
|
+
height: var(--spacing-base);
|
|
509
|
+
}
|
|
510
|
+
`;var St=Be.forwardRef(({children:o,className:r,hideMenuOnClick:a=!0,icon:t,...n},l)=>{let p=Re(),d=f=>{let v={...f};if(v.onClick){let g=v.onClick;v.onClick=y=>{p.hide(),g(y)}}return v};if(typeof o=="function")return e(Le,{ref:l,"data-testid":"uniform-menuItem",...p,...n,css:A},f=>{let v=a?d(f):f,g=o(v);return t?Te(g,t):g});let u=a?d(n):n;return e(Le,{ref:l,...p,...u,css:A},t?Te(o,t):o)});function Te(o,r){return e("span",{css:Pe},o," ",r)}import{css as c}from"@emotion/react";var ze=({...o})=>e("svg",{role:"img","data-img":"info",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 14 16",fill:"currentColor",...o},e("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})),Ee=({...o})=>e("svg",{role:"img","data-img":"danger",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",...o},e("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})),Ve=({...o})=>e("svg",{role:"img","data-img":"note",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 14 16",fill:"currentColor",...o},e("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})),He=({...o})=>e("svg",{role:"img","data-img":"tip",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",...o},e("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})),D=({...o})=>e("svg",{role:"img","data-img":"caution",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",...o},e("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})),Oe=({...o})=>e("svg",{role:"img","data-img":"success",width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o},e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 39.2A19.2 19.2 0 1 0 20 .8a19.2 19.2 0 0 0 0 38.4Zm8.897-22.303a2.4 2.4 0 0 0-3.394-3.394L17.6 21.407l-3.103-3.104a2.4 2.4 0 0 0-3.394 3.394l4.8 4.8a2.4 2.4 0 0 0 3.394 0l9.6-9.6Z"}));import{css as M}from"@emotion/react";var Ge=M`
|
|
511
|
+
--caution-desc: rgb(161, 98, 7);
|
|
512
|
+
--caution-icon: rgb(250, 204, 21);
|
|
513
|
+
--caution-title: rgb(133, 77, 14);
|
|
514
|
+
--caution-container: rgb(254, 252, 232);
|
|
515
|
+
|
|
516
|
+
--danger-desc: rgb(185, 28, 28);
|
|
517
|
+
--danger-icon: rgb(248, 113, 113);
|
|
518
|
+
--danger-title: rgb(153, 27, 27);
|
|
519
|
+
--danger-container: rgb(254, 242, 242);
|
|
520
|
+
|
|
521
|
+
--info-desc: rgb(29, 78, 216);
|
|
522
|
+
--info-icon: rgb(96, 165, 250);
|
|
523
|
+
--info-title: rgb(30, 64, 175);
|
|
524
|
+
--info-container: rgb(239, 246, 255);
|
|
525
|
+
|
|
526
|
+
--note-desc: var(--gray-700);
|
|
527
|
+
--note-icon: var(--gray-400);
|
|
528
|
+
--note-title: var(--gray-800);
|
|
529
|
+
--note-container: var(--gray-50);
|
|
530
|
+
|
|
531
|
+
--success-desc: rgb(21, 128, 61);
|
|
532
|
+
--success-icon: rgb(74, 222, 128);
|
|
533
|
+
--success-title: rgb(22, 101, 52);
|
|
534
|
+
--success-container: rgb(240, 253, 250);
|
|
535
|
+
|
|
536
|
+
border-radius: var(--rounded-base);
|
|
537
|
+
padding: var(--spacing-base);
|
|
538
|
+
`,Fe=M`
|
|
539
|
+
display: flex;
|
|
540
|
+
gap: var(--spacing-base);
|
|
541
|
+
`,Ze=M`
|
|
542
|
+
flex-shrink: 0;
|
|
543
|
+
`,Ae=M`
|
|
544
|
+
font-size: var(--fs-sm);
|
|
545
|
+
font-weight: var(--fw-bold);
|
|
546
|
+
margin: 0 0 var(--spacing-sm);
|
|
547
|
+
`,De=M`
|
|
548
|
+
font-size: var(--fs-sm);
|
|
549
|
+
`,$e=M`
|
|
550
|
+
width: 1.25rem;
|
|
551
|
+
height: 1.25rem;
|
|
552
|
+
`;var Oo={caution:{icon:D,descriptionColor:c`
|
|
553
|
+
color: var(--caution-desc);
|
|
554
|
+
`,iconColor:c`
|
|
555
|
+
color: var(--caution-icon);
|
|
556
|
+
`,titleColor:c`
|
|
557
|
+
color: var(--caution-title);
|
|
558
|
+
`,containerColor:c`
|
|
559
|
+
background-color: var(--caution-container);
|
|
560
|
+
`},danger:{icon:Ee,descriptionColor:c`
|
|
561
|
+
color: var(--danger-desc);
|
|
562
|
+
`,iconColor:c`
|
|
563
|
+
color: var(--danger-icon);
|
|
564
|
+
`,titleColor:c`
|
|
565
|
+
color: var(--danger-title);
|
|
566
|
+
`,containerColor:c`
|
|
567
|
+
background-color: var(--danger-container);
|
|
568
|
+
`},error:{icon:D,descriptionColor:c`
|
|
569
|
+
color: var(--danger-desc);
|
|
570
|
+
`,iconColor:c`
|
|
571
|
+
color: var(--danger-icon);
|
|
572
|
+
`,titleColor:c`
|
|
573
|
+
color: var(--danger-title);
|
|
574
|
+
`,containerColor:c`
|
|
575
|
+
background-color: var(--danger-container);
|
|
576
|
+
`},info:{icon:ze,descriptionColor:c`
|
|
577
|
+
color: var(--info-desc);
|
|
578
|
+
`,iconColor:c`
|
|
579
|
+
color: var(--info-icon);
|
|
580
|
+
`,titleColor:c`
|
|
581
|
+
color: var(--info-title);
|
|
582
|
+
`,containerColor:c`
|
|
583
|
+
background-color: var(--info-container);
|
|
584
|
+
`},note:{icon:Ve,descriptionColor:c`
|
|
585
|
+
color: var(--note-desc);
|
|
586
|
+
`,iconColor:c`
|
|
587
|
+
color: var(--note-icon);
|
|
588
|
+
`,titleColor:c`
|
|
589
|
+
color: var(--note-title);
|
|
590
|
+
`,containerColor:c`
|
|
591
|
+
background-color: var(--note-container);
|
|
592
|
+
`},success:{icon:Oe,descriptionColor:c`
|
|
593
|
+
color: var(--success-desc);
|
|
594
|
+
`,iconColor:c`
|
|
595
|
+
color: var(--success-icon);
|
|
596
|
+
`,titleColor:c`
|
|
597
|
+
color: var(--success-title);
|
|
598
|
+
`,containerColor:c`
|
|
599
|
+
background-color: var(--success-container);
|
|
600
|
+
`},tip:{icon:He,descriptionColor:c`
|
|
601
|
+
color: var(--success-desc);
|
|
602
|
+
`,iconColor:c`
|
|
603
|
+
color: var(--success-icon);
|
|
604
|
+
`,titleColor:c`
|
|
605
|
+
color: var(--success-title);
|
|
606
|
+
`,containerColor:c`
|
|
607
|
+
background-color: var(--success-container);
|
|
608
|
+
`}},Et=({type:o="info",title:r,children:a,className:t})=>{let n=Oo[o];if(!n)return null;let l=n.icon;return e("div",{"data-testid":"sdk-ui-callout",css:[Ge,n.containerColor,typeof t=="object"?t:""],className:`${typeof t=="string"?t:""}`},e("div",{css:Fe},e("div",{css:Ze},e(l,{css:[$e,n.iconColor]})),e("div",null,r?e("h3",{css:[Ae,n.titleColor]},r):null,a?e("div",{css:[De,n.descriptionColor]},a):null)))};import{css as Ne,keyframes as Go}from"@emotion/react";var Fo=Go`
|
|
609
|
+
0%, 100% {
|
|
610
|
+
opacity: 1.0;
|
|
611
|
+
transform: translateY(0);
|
|
612
|
+
}
|
|
613
|
+
30% {
|
|
614
|
+
opacity: 0.6;
|
|
615
|
+
}
|
|
616
|
+
80% {
|
|
617
|
+
opacity: 0.4;
|
|
618
|
+
transform: translateY(-10px);
|
|
619
|
+
}
|
|
620
|
+
90% {
|
|
621
|
+
opacity: 0.2;
|
|
622
|
+
transform: translateY(-5px);
|
|
623
|
+
}
|
|
624
|
+
`,Ue=Ne`
|
|
625
|
+
display: inline-flex;
|
|
626
|
+
justify-content: center;
|
|
627
|
+
`,H=Ne`
|
|
628
|
+
background-color: var(--gray-700);
|
|
629
|
+
display: block;
|
|
630
|
+
border-radius: var(--rounded-full);
|
|
631
|
+
animation: ${Fo} 0.75s infinite ease-in-out;
|
|
632
|
+
width: 8px;
|
|
633
|
+
height: 8px;
|
|
634
|
+
margin: 0 var(--spacing-xs);
|
|
635
|
+
transform: translateY(0);
|
|
636
|
+
|
|
637
|
+
&:nth-of-type(1) {
|
|
638
|
+
animation-delay: 0.15s;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
&:nth-of-type(2) {
|
|
642
|
+
animation-delay: 0.3s;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
&:nth-of-type(3) {
|
|
646
|
+
animation-delay: 0.6s;
|
|
647
|
+
}
|
|
648
|
+
`;var Ft=()=>e("div",{css:Ue,role:"alert"},e("span",{css:H}),e("span",{css:H}),e("span",{css:H}));import{css as Zo}from"@emotion/react";import{css as R}from"@emotion/react";var We=R`
|
|
649
|
+
align-items: center;
|
|
650
|
+
position: absolute;
|
|
651
|
+
inset: 0 0;
|
|
652
|
+
overflow: hidden;
|
|
653
|
+
z-index: 9999;
|
|
654
|
+
justify-content: center;
|
|
655
|
+
`,Ye=R`
|
|
656
|
+
display: flex;
|
|
657
|
+
`,Ke=R`
|
|
658
|
+
display: none;
|
|
659
|
+
`,_e=R`
|
|
660
|
+
background: var(--white);
|
|
661
|
+
opacity: 0.5;
|
|
662
|
+
position: absolute;
|
|
663
|
+
inset: 0 0;
|
|
664
|
+
`,qe=R`
|
|
665
|
+
align-items: center;
|
|
666
|
+
display: flex;
|
|
667
|
+
flex-direction: column;
|
|
668
|
+
`,Je=R`
|
|
669
|
+
color: var(--gray-500);
|
|
670
|
+
margin: var(--spacing-base) 0 0;
|
|
671
|
+
`;var Ut=({isActive:o,statusMessage:r})=>e("div",{role:"alert",css:[We,o?Ye:Ke],"aria-hidden":!o},e("div",{css:_e}),e("div",{css:Zo`
|
|
672
|
+
position: relative;
|
|
673
|
+
`},e("div",{css:qe},e(Ao,{height:128,width:128}),r?e("div",{css:Je},r):null))),Ao=({height:o,width:r})=>e("svg",{"data-testid":"svg",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:r!=null?r:40,height:o!=null?o:40,stroke:"currentColor"},e("g",{fill:"none",fillRule:"evenodd"},e("g",{transform:"translate(1 1)",strokeWidth:"2"},e("circle",{strokeOpacity:".25",cx:"18",cy:"18",r:"18"}),e("path",{d:"M36 18c0-9.94-8.06-18-18-18",transform:"rotate(166.645 18 18)"},e("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.8s",repeatCount:"indefinite"})))));import{css as h}from"@emotion/react";var Qe=h`
|
|
674
|
+
font-family: var(--ff-heading);
|
|
675
|
+
font-size: clamp(1.5rem, var(--fluid-font-base), 2.25rem);
|
|
676
|
+
font-weight: var(--font-bold);
|
|
677
|
+
`,Xe=h`
|
|
678
|
+
font-size: clamp(1.35rem, var(--fluid-font-base), 1.75rem);
|
|
679
|
+
`,je=h`
|
|
680
|
+
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
681
|
+
`,eo=h`
|
|
682
|
+
font-size: clamp(1.15rem, var(--fluid-font-base), 1.35rem);
|
|
683
|
+
`,oo=h`
|
|
684
|
+
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.25rem);
|
|
685
|
+
`,ro=h`
|
|
686
|
+
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
687
|
+
`,to=h`
|
|
688
|
+
font-weight: var(--fw-bold);
|
|
689
|
+
font-family: var(--ff-base);
|
|
690
|
+
`,Kt=h`
|
|
691
|
+
line-height: 1.35;
|
|
692
|
+
`;var Jt=({level:o=2,children:r})=>{let a=`h${o}`,t={h1:Qe,h2:Xe,h3:je,h4:eo,h5:oo,h6:ro},n=a.includes("h1")?void 0:to;return e(a,{css:[t[a],n]},r)};import{css as Do}from"@emotion/react";import{css as no}from"@emotion/react";var ao=no`
|
|
693
|
+
position: relative;
|
|
694
|
+
`,io=no`
|
|
695
|
+
background: var(--gray-50);
|
|
696
|
+
border-top: 1px solid var(--gray-200);
|
|
697
|
+
border-bottom: 1px solid var(--gray-200);
|
|
698
|
+
max-height: 24rem;
|
|
699
|
+
overflow-y: auto;
|
|
700
|
+
padding: var(--spacing-sm);
|
|
701
|
+
`;var tn=({label:o,children:r})=>e("div",{css:ao},o?e("span",{css:Do`
|
|
702
|
+
${x}
|
|
703
|
+
`},o):null,e("div",{css:[io,F]},r));import{css as $}from"@emotion/react";var so=$`
|
|
704
|
+
align-items: center;
|
|
705
|
+
background: var(--white);
|
|
706
|
+
border-radius: var(--rounded-base);
|
|
707
|
+
box-shadow: var(--shadow-base);
|
|
708
|
+
border: 2px solid var(--gray-200);
|
|
709
|
+
display: flex;
|
|
710
|
+
padding: var(--spacing-3);
|
|
711
|
+
margin-block: var(--spacing-sm);
|
|
712
|
+
min-height: 52px;
|
|
713
|
+
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
714
|
+
|
|
715
|
+
&:first-of-type,
|
|
716
|
+
&:last-of-type {
|
|
717
|
+
margin-block: 0;
|
|
718
|
+
}
|
|
719
|
+
`,lo=$`
|
|
720
|
+
border-color: var(--brand-secondary-3);
|
|
721
|
+
`,co=$`
|
|
722
|
+
align-items: center;
|
|
723
|
+
display: flex;
|
|
724
|
+
justify-content: space-between;
|
|
725
|
+
width: 100%;
|
|
726
|
+
outline: none;
|
|
727
|
+
|
|
728
|
+
&:focus {
|
|
729
|
+
outline: none;
|
|
730
|
+
}
|
|
731
|
+
`;import{css as uo}from"@emotion/react";import{keyframes as O}from"@emotion/react";var cn=O`
|
|
732
|
+
0%,
|
|
733
|
+
100% {
|
|
734
|
+
transform: scale(1);
|
|
735
|
+
opacity: 1;
|
|
736
|
+
}
|
|
737
|
+
50% {
|
|
738
|
+
transform: scale(1.15);
|
|
739
|
+
opacity: 1;
|
|
740
|
+
}
|
|
741
|
+
`,po=O`
|
|
742
|
+
0% {
|
|
743
|
+
opacity: 0;
|
|
744
|
+
transform: translateY(10px);
|
|
745
|
+
}
|
|
746
|
+
100% {
|
|
747
|
+
opacity: 1;
|
|
748
|
+
transform: translateY(0);
|
|
749
|
+
}
|
|
750
|
+
`,pn=O`
|
|
751
|
+
0% {
|
|
752
|
+
opacity: 1;
|
|
753
|
+
transform: translateY(0);
|
|
754
|
+
}
|
|
755
|
+
100% {
|
|
756
|
+
opacity: 0;
|
|
757
|
+
transform: translateY(10px);
|
|
758
|
+
}
|
|
759
|
+
`,dn=O`
|
|
760
|
+
0% {
|
|
761
|
+
opacity: 0;
|
|
762
|
+
}
|
|
763
|
+
100% {
|
|
764
|
+
opacity: 1;
|
|
765
|
+
}
|
|
766
|
+
`;var vn=({buttonText:o,active:r,...a})=>e("div",{css:[so,r?lo:void 0],className:"flex items-center space-x-2 p-3 bg-white border-2 rounded-md shadow-md border-gray-300"},e("button",{css:co,className:"flex items-center justify-between w-full outline-none focus:outline-none",type:"button",...a},e("span",null,o),e("svg",{width:"24",height:"24",viewBox:"0 0 40 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!r,css:uo`
|
|
767
|
+
color: var(--brand-secondary-3);
|
|
768
|
+
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
769
|
+
${r?uo`
|
|
770
|
+
animation: ${po} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
771
|
+
`:"opacity: 0;"}
|
|
772
|
+
`},e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 39.2A19.2 19.2 0 1 0 20 .8a19.2 19.2 0 0 0 0 38.4Zm8.897-22.303a2.4 2.4 0 0 0-3.394-3.394L17.6 21.407l-3.103-3.104a2.4 2.4 0 0 0-3.394 3.394l4.8 4.8a2.4 2.4 0 0 0 3.394 0l9.6-9.6Z"}))));export{pr as Button,Et as Callout,C as Caption,I as ErrorMessage,Jt as Heading,me as Icon,vr as IconsProvider,be as Input,Fr as InputComboBox,_r as InputInlineSelect,Xr as InputKeywordSearch,tt as InputSelect,st as InputToggle,Ao as LoadingIcon,Ft as LoadingIndicator,Ut as LoadingOverlay,vt as Menu,Me as MenuContext,St as MenuItem,tn as ScrollableList,vn as ScrollableListItem,Wo as Theme,er as UniformBadge,tr as UniformLogo,wo as breakpoints,k as input,P as inputError,G as inputSelect,x as labelText,se as mq,F as scrollbarStyles,ie as useIconContext,Re as useMenuContext};
|