@uniformdev/design-system 13.0.1-alpha.271 → 13.0.1-alpha.278
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/dist/esm/index.js +86 -84
- package/dist/index.d.ts +22 -1
- package/dist/index.js +91 -89
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react";import*as
|
|
1
|
+
import{jsx as e}from"@emotion/react";import*as m from"react";import bo from"react";var Jo=({disableReset:o=!1})=>e(bo.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
2
|
/*** The new CSS Reset - version 1.2.0 (last updated 23.7.2021) ***/
|
|
3
3
|
|
|
4
4
|
/* Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property */
|
|
@@ -167,14 +167,14 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
167
167
|
pre {
|
|
168
168
|
white-space: pre;
|
|
169
169
|
}
|
|
170
|
-
`}}));import{css as b}from"@emotion/react";var
|
|
170
|
+
`}}));import{css as b}from"@emotion/react";var S=b`
|
|
171
171
|
position: relative;
|
|
172
|
-
`,
|
|
172
|
+
`,h=b`
|
|
173
173
|
display: flex;
|
|
174
174
|
font-weight: var(--fw-bold);
|
|
175
175
|
margin: 0 0 var(--spacing-xs);
|
|
176
176
|
align-items: center;
|
|
177
|
-
`,
|
|
177
|
+
`,M=b`
|
|
178
178
|
appearance: none;
|
|
179
179
|
background-color: var(--white);
|
|
180
180
|
border: 1px solid var(--gray-400);
|
|
@@ -204,23 +204,23 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
204
204
|
color: var(--gray-300);
|
|
205
205
|
border-color: var(--gray-300);
|
|
206
206
|
}
|
|
207
|
-
`,
|
|
207
|
+
`,I=b`
|
|
208
208
|
border-color: var(--brand-secondary-5);
|
|
209
|
-
`,
|
|
209
|
+
`,z=b`
|
|
210
210
|
align-items: center;
|
|
211
211
|
display: flex;
|
|
212
212
|
position: absolute;
|
|
213
213
|
inset: 0 var(--spacing-base) 0 auto;
|
|
214
214
|
pointer-event: one;
|
|
215
|
-
`,
|
|
215
|
+
`,E=b`
|
|
216
216
|
padding-right: var(--spacing-2xl);
|
|
217
|
-
`,
|
|
217
|
+
`,Z=b`
|
|
218
218
|
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");
|
|
219
219
|
background-position: right var(--spacing-sm) center;
|
|
220
220
|
background-repeat: no-repeat;
|
|
221
221
|
background-size: 1rem;
|
|
222
222
|
padding-right: var(--spacing-xl);
|
|
223
|
-
`,
|
|
223
|
+
`,U=b`
|
|
224
224
|
color: var(--brand-secondary-1);
|
|
225
225
|
height: 1.25rem;
|
|
226
226
|
width: 1.25rem;
|
|
@@ -274,7 +274,9 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
274
274
|
padding-left: var(--spacing-lg);
|
|
275
275
|
margin-top: -0.5rem;
|
|
276
276
|
line-height: 1.15;
|
|
277
|
-
|
|
277
|
+
`,Q=b`
|
|
278
|
+
${M}
|
|
279
|
+
`;import{css as ho}from"@emotion/react";var A=ho`
|
|
278
280
|
@supports ((scrollbar-color: #d1d5db transparent) and (scrollbar-width: thin)) {
|
|
279
281
|
/*
|
|
280
282
|
#d1d5db = bg-gray-300
|
|
@@ -300,15 +302,15 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
300
302
|
&::-webkit-scrollbar-thumb:hover {
|
|
301
303
|
background: var(--gray-500);
|
|
302
304
|
}
|
|
303
|
-
`;import{css as
|
|
305
|
+
`;import{css as D}from"@emotion/react";var H=D`
|
|
304
306
|
display: block;
|
|
305
|
-
`,
|
|
307
|
+
`,V=D`
|
|
306
308
|
background: transparent;
|
|
307
309
|
color: var(--brand-secondary-1);
|
|
308
|
-
`,
|
|
310
|
+
`,O=D`
|
|
309
311
|
background: var(--brand-secondary-1);
|
|
310
312
|
color: var(--white);
|
|
311
|
-
`;var
|
|
313
|
+
`;var ar=({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:[H,o==="dark"?O:V],...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 lr=({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:[H,o==="dark"?O:V]},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 ne from"react";import{Button as yo}from"reakit/Button";import{css as R}from"@emotion/react";var X=R`
|
|
312
314
|
align-items: center;
|
|
313
315
|
border: 1px solid transparent;
|
|
314
316
|
cursor: pointer;
|
|
@@ -332,7 +334,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
332
334
|
&:disabled {
|
|
333
335
|
cursor: not-allowed;
|
|
334
336
|
}
|
|
335
|
-
`,
|
|
337
|
+
`,j=R`
|
|
336
338
|
background: var(--brand-secondary-1);
|
|
337
339
|
color: var(--white);
|
|
338
340
|
|
|
@@ -340,7 +342,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
340
342
|
background: var(--gray-500);
|
|
341
343
|
color: var(--white);
|
|
342
344
|
}
|
|
343
|
-
`,
|
|
345
|
+
`,ee=R`
|
|
344
346
|
background: var(--brand-secondary-5);
|
|
345
347
|
color: var(--white);
|
|
346
348
|
|
|
@@ -348,7 +350,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
348
350
|
background: var(--gray-500);
|
|
349
351
|
color: var(--white);
|
|
350
352
|
}
|
|
351
|
-
`,
|
|
353
|
+
`,oe=R`
|
|
352
354
|
background: var(--brand-secondary-2);
|
|
353
355
|
color: var(--brand-secondary-1);
|
|
354
356
|
|
|
@@ -356,7 +358,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
356
358
|
background: var(--brand-secondary-2);
|
|
357
359
|
color: var(--gray-400);
|
|
358
360
|
}
|
|
359
|
-
`,
|
|
361
|
+
`,re=R`
|
|
360
362
|
background: transparent;
|
|
361
363
|
color: var(--brand-secondary-3);
|
|
362
364
|
|
|
@@ -369,7 +371,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
369
371
|
border-color: var(--gray-400);
|
|
370
372
|
color: var(--gray-400);
|
|
371
373
|
}
|
|
372
|
-
`,
|
|
374
|
+
`,te=R`
|
|
373
375
|
background: var(--brand-secondary-3);
|
|
374
376
|
color: var(--white);
|
|
375
377
|
|
|
@@ -377,10 +379,10 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
377
379
|
background: var(--gray-500);
|
|
378
380
|
color: var(--white);
|
|
379
381
|
}
|
|
380
|
-
`;var
|
|
382
|
+
`;var fr=ne.forwardRef(({buttonType:o="primary",size:r="md",children:a,...t},n)=>{let l={primary:j,secondary:ee,ghost:re,unimportant:oe,tertiary:te},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(yo,{"data-testid":"uniform-button",ref:n,css:[X,l[o],p[r]],...t},a)});import Po from"react";import{createContext as xo,useContext as wo,useEffect as Co,useState as ae}from"react";import{paramCase as Io}from"param-case";var ie=xo({iconsMap:{},isLoading:!0});function se(){return wo(ie)}function wr({children:o}){let[r,a]=ae(!0),[t,n]=ae({});return Co(()=>{import("react-icons/cg").then(l=>{let p=Object.entries(l).reduce((d,[u,f])=>{if(u==="default")return d;let v=So(u);return{...d,[v]:f}},{});n(p),a(!1)})},[]),e(ie.Provider,{value:{iconsMap:t,isLoading:r}},o)}function So(o){return Io(o.replace("Cg",""))}import{css as T}from"@emotion/react";var Mo={sm:"640px",md:"768px",lg:"1025px",xl:"1280px","2xl":"1536px"},le=o=>`@media (min-width: ${Mo[o]})`;var ce=T`
|
|
381
383
|
display: hidden;
|
|
382
384
|
|
|
383
|
-
${
|
|
385
|
+
${le("sm")} {
|
|
384
386
|
display: block;
|
|
385
387
|
}
|
|
386
388
|
|
|
@@ -388,30 +390,30 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
388
390
|
display: block;
|
|
389
391
|
vertical-align: middle;
|
|
390
392
|
}
|
|
391
|
-
`,
|
|
393
|
+
`,pe=T`
|
|
392
394
|
color: var(--brand-secondary-3);
|
|
393
|
-
`,
|
|
395
|
+
`,de=T`
|
|
394
396
|
color: var(--brand-secondary-5);
|
|
395
|
-
`,
|
|
397
|
+
`,ue=T`
|
|
396
398
|
color: var(--gray-500);
|
|
397
|
-
`,me=
|
|
399
|
+
`,me=T`
|
|
398
400
|
color: currentColor;
|
|
399
|
-
`;var
|
|
401
|
+
`;var ko=({icon:o,iconColorClass:r="green",...a})=>{let t=typeof o=="string",{iconsMap:n,isLoading:l}=se(),p={green:pe,gray:ue,red:de,currentColor:me};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:[ce,p[r]]})},ge=Po.memo(ko);import{css as Lo}from"@emotion/react";var fe=Lo`
|
|
400
402
|
color: var(--gray-500);
|
|
401
403
|
display: block;
|
|
402
404
|
font-size: var(--fs-base);
|
|
403
405
|
margin: var(--spacing-sm) 0;
|
|
404
406
|
max-width: var(--prose);
|
|
405
|
-
`;var
|
|
407
|
+
`;var y=({children:o})=>e("small",{css:fe},o);import{css as To}from"@emotion/react";var ve=To`
|
|
406
408
|
align-items: center;
|
|
407
409
|
color: var(--brand-secondary-5);
|
|
408
410
|
display: flex;
|
|
409
411
|
gap: var(--spacing-sm);
|
|
410
412
|
margin: var(--spacing-xs) 0;
|
|
411
|
-
`;var
|
|
413
|
+
`;var x=({message:o})=>o?e("span",{css:ve},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 be from"react";var he=({label:o,icon:r,id:a,caption:t,showLabel:n=!0,errorMessage:l,classNameContainer:p,classNameControl:d,classNameLabel:u,...f})=>e(be.Fragment,null,n?e("label",{htmlFor:a,css:[h,typeof u=="object"?u:void 0],className:typeof u=="string"?u:""},o):null,e("div",{css:[S,typeof p=="object"?p:void 0],className:typeof p=="string"?p:""},e("input",{id:a,css:[M,typeof d=="object"?d:void 0,l?I:void 0,r?E:""],"aria-label":n?void 0:o,className:typeof d=="string"?d:"",...f}),r?e("div",{css:z},r):null),t?e(y,null,t):null,l?e(x,{message:l}):null);import Bo from"react-select";function Nr(o){return e(Bo,{...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 zo}from"@emotion/react";import*as Se from"react";import{useState as Eo,useRef as Ho}from"react";import{css as B}from"@emotion/react";var ye=B`
|
|
412
414
|
margin-inline: auto;
|
|
413
415
|
max-width: fit-content;
|
|
414
|
-
`,
|
|
416
|
+
`,xe=B`
|
|
415
417
|
align-items: center;
|
|
416
418
|
background: var(--brand-secondary-3);
|
|
417
419
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -434,7 +436,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
434
436
|
&:focus {
|
|
435
437
|
outline: 2px solid var(--brand-secondary-1);
|
|
436
438
|
}
|
|
437
|
-
`,
|
|
439
|
+
`,we=B`
|
|
438
440
|
background: var(--white);
|
|
439
441
|
border: 1px solid var(--brand-secondary-3);
|
|
440
442
|
border-top: none;
|
|
@@ -444,7 +446,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
444
446
|
position: absolute;
|
|
445
447
|
inset: auto 0;
|
|
446
448
|
transform: translateY(-0.2rem);
|
|
447
|
-
`,
|
|
449
|
+
`,Ce=B`
|
|
448
450
|
cursor: pointer;
|
|
449
451
|
display: block;
|
|
450
452
|
font-size: var(--fs-sm);
|
|
@@ -459,23 +461,23 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
459
461
|
&:hover {
|
|
460
462
|
background: var(--gray-50);
|
|
461
463
|
}
|
|
462
|
-
`,
|
|
464
|
+
`,Ie=B`
|
|
463
465
|
position: absolute;
|
|
464
466
|
overflow: hidden;
|
|
465
467
|
height: 1px;
|
|
466
468
|
width: 1px;
|
|
467
469
|
clip: rect(0, 0, 0, 0);
|
|
468
470
|
padding: 0;
|
|
469
|
-
`;import{CgChevronDown as
|
|
471
|
+
`;import{CgChevronDown as Vo}from"react-icons/cg";var jr=({classNameContainer:o,options:r,value:a,onChange:t,disabled:n,...l})=>{var v;let[p,d]=Eo(!1),u=Ho(null);Se.useEffect(()=>{let g=C=>{u.current&&!u.current.contains(C.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?zo`
|
|
470
472
|
max-width: fit-content;
|
|
471
473
|
${typeof o=="object"?o:void 0}
|
|
472
|
-
`:
|
|
474
|
+
`:ye,className:typeof o=="string"?o:""},e("button",{type:"button","aria-controls":`and-or-${l.id}`,"aria-expanded":p,css:xe,onClick:()=>{n||d(g=>!g)},disabled:n,...l},e("span",null,(v=f==null?void 0:f.label)!=null?v:a),n?null:e(ge,{icon:Vo,iconColorClass:"currentColor"})),e("div",{id:`and-or-${l.id}`,css:[we,p?void 0:Ie],"aria-hidden":!p},r.map(g=>e("button",{key:g.value,type:"button",css:Ce,onClick:()=>{t(g),d(C=>!C)}},g.label))))};var tt=({onSearchTextChanged:o,disabled:r=!1,placeholder:a="Keyword search",inputFieldName:t="keywordSearch",disabledFieldSubmission:n=!1,value:l})=>e(he,{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:U},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 lt=({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:[S,typeof d=="object"?d:void 0],className:typeof d=="string"?d:""},l?e("label",{htmlFor:v.id,css:[h,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:[M,Z,n?I:void 0,typeof u=="object"?u:void 0],className:typeof u=="string"?u:"",...v},r?e("option",{value:""},r):null,a.map((g,C)=>e("option",{key:C,value:g.label,...g}))),t?e(y,null,t):null,n?e(x,{message:n}):null);var ut=({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(y,null,l):null,p?e(x,{message:p}):null):null);import*as Me from"react";var bt=({label:o,icon:r,id:a,caption:t,showLabel:n=!0,errorMessage:l,...p})=>e(Me.Fragment,null,n?e("label",{htmlFor:a,css:[h]},o):null,e("div",{css:[S]},e("textarea",{id:a,css:[Q,l?I:void 0,r?E:""],"aria-label":n?void 0:o,...p}),r?e("div",{css:z},r):null),t?e(y,null,t):null,l?e(x,{message:l}):null);import*as P from"react";import{useMenuState as Go,Menu as Fo,MenuButton as Zo}from"reakit/Menu";import{css as Oo}from"@emotion/react";var Re=Oo`
|
|
473
475
|
border: 1px solid var(--gray-500);
|
|
474
476
|
border-radius: var(--rounded-base);
|
|
475
477
|
outline: none;
|
|
476
478
|
overflow: hidden;
|
|
477
479
|
z-index: 50;
|
|
478
|
-
`;var
|
|
480
|
+
`;var Pe=P.createContext({}),ke=()=>P.useContext(Pe),Rt=({menuLabel:o,menuTrigger:r,placement:a="auto",children:t})=>{let n=Go({placement:a});return e(Pe.Provider,{value:n},e(Zo,{...n,ref:r.ref,...r.props},l=>P.cloneElement(r,l)),e(Fo,{...n,"aria-label":o,css:Re},t))};import*as Ee from"react";import{MenuItem as Be}from"reakit";import{css as Le}from"@emotion/react";var $=Le`
|
|
479
481
|
background: var(--white);
|
|
480
482
|
border-top: 1px solid var(--gray-500);
|
|
481
483
|
color: var(--brand-secondary-1);
|
|
@@ -500,7 +502,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
500
502
|
&:hover {
|
|
501
503
|
background: var(--gray-200);
|
|
502
504
|
}
|
|
503
|
-
`,
|
|
505
|
+
`,Te=Le`
|
|
504
506
|
align-items: center;
|
|
505
507
|
display: flex;
|
|
506
508
|
justify-content: space-between;
|
|
@@ -511,7 +513,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
511
513
|
width: var(--spacing-base);
|
|
512
514
|
height: var(--spacing-base);
|
|
513
515
|
}
|
|
514
|
-
`;var
|
|
516
|
+
`;var Ht=Ee.forwardRef(({children:o,className:r,hideMenuOnClick:a=!0,icon:t,...n},l)=>{let p=ke(),d=f=>{let v={...f};if(v.onClick){let g=v.onClick;v.onClick=C=>{p.hide(),g(C)}}return v};if(typeof o=="function")return e(Be,{ref:l,"data-testid":"uniform-menuItem",...p,...n,css:$},f=>{let v=a?d(f):f,g=o(v);return t?ze(g,t):g});let u=a?d(n):n;return e(Be,{ref:l,...p,...u,css:$},t?ze(o,t):o)});function ze(o,r){return e("span",{css:Te},o," ",r)}import{css as c}from"@emotion/react";var He=({...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"})),Ve=({...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"})),Oe=({...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"})),Ge=({...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"})),N=({...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"})),Fe=({...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 k}from"@emotion/react";var Ze=k`
|
|
515
517
|
--caution-desc: rgb(161, 98, 7);
|
|
516
518
|
--caution-icon: rgb(250, 204, 21);
|
|
517
519
|
--caution-title: rgb(133, 77, 14);
|
|
@@ -539,21 +541,21 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
539
541
|
|
|
540
542
|
border-radius: var(--rounded-base);
|
|
541
543
|
padding: var(--spacing-base);
|
|
542
|
-
`,
|
|
544
|
+
`,Ae=k`
|
|
543
545
|
display: flex;
|
|
544
546
|
gap: var(--spacing-base);
|
|
545
|
-
`,
|
|
547
|
+
`,De=k`
|
|
546
548
|
flex-shrink: 0;
|
|
547
|
-
|
|
549
|
+
`,$e=k`
|
|
548
550
|
font-size: var(--fs-sm);
|
|
549
551
|
font-weight: var(--fw-bold);
|
|
550
552
|
margin: 0 0 var(--spacing-sm);
|
|
551
|
-
`,
|
|
553
|
+
`,Ne=k`
|
|
552
554
|
font-size: var(--fs-sm);
|
|
553
|
-
|
|
555
|
+
`,We=k`
|
|
554
556
|
width: 1.25rem;
|
|
555
557
|
height: 1.25rem;
|
|
556
|
-
`;var
|
|
558
|
+
`;var Ao={caution:{icon:N,descriptionColor:c`
|
|
557
559
|
color: var(--caution-desc);
|
|
558
560
|
`,iconColor:c`
|
|
559
561
|
color: var(--caution-icon);
|
|
@@ -561,7 +563,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
561
563
|
color: var(--caution-title);
|
|
562
564
|
`,containerColor:c`
|
|
563
565
|
background-color: var(--caution-container);
|
|
564
|
-
`},danger:{icon:
|
|
566
|
+
`},danger:{icon:Ve,descriptionColor:c`
|
|
565
567
|
color: var(--danger-desc);
|
|
566
568
|
`,iconColor:c`
|
|
567
569
|
color: var(--danger-icon);
|
|
@@ -569,7 +571,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
569
571
|
color: var(--danger-title);
|
|
570
572
|
`,containerColor:c`
|
|
571
573
|
background-color: var(--danger-container);
|
|
572
|
-
`},error:{icon:
|
|
574
|
+
`},error:{icon:N,descriptionColor:c`
|
|
573
575
|
color: var(--danger-desc);
|
|
574
576
|
`,iconColor:c`
|
|
575
577
|
color: var(--danger-icon);
|
|
@@ -577,7 +579,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
577
579
|
color: var(--danger-title);
|
|
578
580
|
`,containerColor:c`
|
|
579
581
|
background-color: var(--danger-container);
|
|
580
|
-
`},info:{icon:
|
|
582
|
+
`},info:{icon:He,descriptionColor:c`
|
|
581
583
|
color: var(--info-desc);
|
|
582
584
|
`,iconColor:c`
|
|
583
585
|
color: var(--info-icon);
|
|
@@ -585,7 +587,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
585
587
|
color: var(--info-title);
|
|
586
588
|
`,containerColor:c`
|
|
587
589
|
background-color: var(--info-container);
|
|
588
|
-
`},note:{icon:
|
|
590
|
+
`},note:{icon:Oe,descriptionColor:c`
|
|
589
591
|
color: var(--note-desc);
|
|
590
592
|
`,iconColor:c`
|
|
591
593
|
color: var(--note-icon);
|
|
@@ -593,7 +595,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
593
595
|
color: var(--note-title);
|
|
594
596
|
`,containerColor:c`
|
|
595
597
|
background-color: var(--note-container);
|
|
596
|
-
`},success:{icon:
|
|
598
|
+
`},success:{icon:Fe,descriptionColor:c`
|
|
597
599
|
color: var(--success-desc);
|
|
598
600
|
`,iconColor:c`
|
|
599
601
|
color: var(--success-icon);
|
|
@@ -601,7 +603,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
601
603
|
color: var(--success-title);
|
|
602
604
|
`,containerColor:c`
|
|
603
605
|
background-color: var(--success-container);
|
|
604
|
-
`},tip:{icon:
|
|
606
|
+
`},tip:{icon:Ge,descriptionColor:c`
|
|
605
607
|
color: var(--success-desc);
|
|
606
608
|
`,iconColor:c`
|
|
607
609
|
color: var(--success-icon);
|
|
@@ -609,7 +611,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
609
611
|
color: var(--success-title);
|
|
610
612
|
`,containerColor:c`
|
|
611
613
|
background-color: var(--success-container);
|
|
612
|
-
`}},
|
|
614
|
+
`}},Nt=({type:o="info",title:r,children:a,className:t})=>{let n=Ao[o];if(!n)return null;let l=n.icon;return e("div",{"data-testid":"sdk-ui-callout",css:[Ze,n.containerColor,typeof t=="object"?t:""],className:`${typeof t=="string"?t:""}`},e("div",{css:Ae},e("div",{css:De},e(l,{css:[We,n.iconColor]})),e("div",null,r?e("h3",{css:[$e,n.titleColor]},r):null,a?e("div",{css:[Ne,n.descriptionColor]},a):null)))};import{css as Ue,keyframes as Do}from"@emotion/react";var $o=Do`
|
|
613
615
|
0%, 100% {
|
|
614
616
|
opacity: 1.0;
|
|
615
617
|
transform: translateY(0);
|
|
@@ -625,14 +627,14 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
625
627
|
opacity: 0.2;
|
|
626
628
|
transform: translateY(-5px);
|
|
627
629
|
}
|
|
628
|
-
`,Ue
|
|
630
|
+
`,Ye=Ue`
|
|
629
631
|
display: inline-flex;
|
|
630
632
|
justify-content: center;
|
|
631
|
-
`,
|
|
633
|
+
`,G=Ue`
|
|
632
634
|
background-color: var(--gray-700);
|
|
633
635
|
display: block;
|
|
634
636
|
border-radius: var(--rounded-full);
|
|
635
|
-
animation: ${
|
|
637
|
+
animation: ${$o} 0.75s infinite ease-in-out;
|
|
636
638
|
width: 8px;
|
|
637
639
|
height: 8px;
|
|
638
640
|
margin: 0 var(--spacing-xs);
|
|
@@ -649,53 +651,53 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
649
651
|
&:nth-of-type(3) {
|
|
650
652
|
animation-delay: 0.6s;
|
|
651
653
|
}
|
|
652
|
-
`;var
|
|
654
|
+
`;var _t=()=>e("div",{css:Ye,role:"alert"},e("span",{css:G}),e("span",{css:G}),e("span",{css:G}));import{css as No}from"@emotion/react";import{css as L}from"@emotion/react";var Ke=L`
|
|
653
655
|
align-items: center;
|
|
654
656
|
position: absolute;
|
|
655
657
|
inset: 0 0;
|
|
656
658
|
overflow: hidden;
|
|
657
659
|
z-index: 9999;
|
|
658
660
|
justify-content: center;
|
|
659
|
-
`,
|
|
661
|
+
`,_e=L`
|
|
660
662
|
display: flex;
|
|
661
|
-
`,
|
|
663
|
+
`,qe=L`
|
|
662
664
|
display: none;
|
|
663
|
-
`,
|
|
665
|
+
`,Je=L`
|
|
664
666
|
background: var(--white);
|
|
665
667
|
opacity: 0.5;
|
|
666
668
|
position: absolute;
|
|
667
669
|
inset: 0 0;
|
|
668
|
-
`,
|
|
670
|
+
`,Qe=L`
|
|
669
671
|
align-items: center;
|
|
670
672
|
display: flex;
|
|
671
673
|
flex-direction: column;
|
|
672
|
-
`,
|
|
674
|
+
`,Xe=L`
|
|
673
675
|
color: var(--gray-500);
|
|
674
676
|
margin: var(--spacing-base) 0 0;
|
|
675
|
-
`;var
|
|
677
|
+
`;var en=({isActive:o,statusMessage:r})=>e("div",{role:"alert",css:[Ke,o?_e:qe],"aria-hidden":!o},e("div",{css:Je}),e("div",{css:No`
|
|
676
678
|
position: relative;
|
|
677
|
-
`},e("div",{css:
|
|
679
|
+
`},e("div",{css:Qe},e(Wo,{height:128,width:128}),r?e("div",{css:Xe},r):null))),Wo=({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 w}from"@emotion/react";var je=w`
|
|
678
680
|
font-family: var(--ff-heading);
|
|
679
681
|
font-size: clamp(1.75rem, var(--fluid-font-base), 3.25rem);
|
|
680
682
|
font-weight: var(--fw-bold);
|
|
681
683
|
margin-bottom: var(--spacing-base);
|
|
682
|
-
`,
|
|
684
|
+
`,eo=w`
|
|
683
685
|
font-size: clamp(1.35rem, var(--fluid-font-base), 2.25rem);
|
|
684
|
-
`,
|
|
686
|
+
`,oo=w`
|
|
685
687
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
686
|
-
`,
|
|
688
|
+
`,ro=w`
|
|
687
689
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.35rem);
|
|
688
|
-
`,
|
|
690
|
+
`,to=w`
|
|
689
691
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.25rem);
|
|
690
|
-
`,
|
|
692
|
+
`,no=w`
|
|
691
693
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
692
|
-
`,
|
|
694
|
+
`,ao=w`
|
|
693
695
|
font-weight: var(--fw-bold);
|
|
694
696
|
font-family: var(--ff-base);
|
|
695
697
|
margin-bottom: var(--spacing-base);
|
|
696
|
-
`,
|
|
698
|
+
`,io=w`
|
|
697
699
|
line-height: 1.35;
|
|
698
|
-
`;var
|
|
700
|
+
`;var an=({level:o=2,children:r})=>{let a=`h${o}`,t={h1:je,h2:eo,h3:oo,h4:ro,h5:to,h6:no},n=a.includes("h1")?void 0:ao;return e(a,{css:[t[a],n,io]},r)};import{css as Uo}from"@emotion/react";var so=Uo`
|
|
699
701
|
font-size: var(--fs-base);
|
|
700
702
|
line-height: 1.5;
|
|
701
703
|
margin-bottom: var(--spacing-base);
|
|
@@ -703,18 +705,18 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
703
705
|
&:last-of-type {
|
|
704
706
|
margin-bottom: 0;
|
|
705
707
|
}
|
|
706
|
-
`;var
|
|
708
|
+
`;var dn=({className:o,children:r})=>e("p",{css:[so,typeof o=="object"?o:void 0],className:typeof o=="string"?o:""},r);import{css as Yo}from"@emotion/react";import{css as lo}from"@emotion/react";var co=lo`
|
|
707
709
|
position: relative;
|
|
708
|
-
`,lo
|
|
710
|
+
`,po=lo`
|
|
709
711
|
background: var(--gray-50);
|
|
710
712
|
border-top: 1px solid var(--gray-200);
|
|
711
713
|
border-bottom: 1px solid var(--gray-200);
|
|
712
714
|
max-height: 24rem;
|
|
713
715
|
overflow-y: auto;
|
|
714
716
|
padding: var(--spacing-sm);
|
|
715
|
-
`;var
|
|
716
|
-
${
|
|
717
|
-
`},o):null,e("div",{css:[
|
|
717
|
+
`;var hn=({label:o,children:r})=>e("div",{css:co},o?e("span",{css:Yo`
|
|
718
|
+
${h}
|
|
719
|
+
`},o):null,e("div",{css:[po,A]},r));import{css as W}from"@emotion/react";var uo=W`
|
|
718
720
|
align-items: center;
|
|
719
721
|
background: var(--white);
|
|
720
722
|
border-radius: var(--rounded-base);
|
|
@@ -729,9 +731,9 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
729
731
|
&:last-of-type {
|
|
730
732
|
margin-block: 0;
|
|
731
733
|
}
|
|
732
|
-
`,
|
|
734
|
+
`,mo=W`
|
|
733
735
|
border-color: var(--brand-secondary-3);
|
|
734
|
-
`,
|
|
736
|
+
`,go=W`
|
|
735
737
|
align-items: center;
|
|
736
738
|
display: flex;
|
|
737
739
|
justify-content: space-between;
|
|
@@ -741,7 +743,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
741
743
|
&:focus {
|
|
742
744
|
outline: none;
|
|
743
745
|
}
|
|
744
|
-
`;import{css as
|
|
746
|
+
`;import{css as vo}from"@emotion/react";import{keyframes as F}from"@emotion/react";var In=F`
|
|
745
747
|
0%,
|
|
746
748
|
100% {
|
|
747
749
|
transform: scale(1);
|
|
@@ -751,7 +753,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
751
753
|
transform: scale(1.15);
|
|
752
754
|
opacity: 1;
|
|
753
755
|
}
|
|
754
|
-
`,
|
|
756
|
+
`,fo=F`
|
|
755
757
|
0% {
|
|
756
758
|
opacity: 0;
|
|
757
759
|
transform: translateY(10px);
|
|
@@ -760,7 +762,7 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
760
762
|
opacity: 1;
|
|
761
763
|
transform: translateY(0);
|
|
762
764
|
}
|
|
763
|
-
`,
|
|
765
|
+
`,Sn=F`
|
|
764
766
|
0% {
|
|
765
767
|
opacity: 1;
|
|
766
768
|
transform: translateY(0);
|
|
@@ -769,17 +771,17 @@ import{jsx as e}from"@emotion/react";import*as u from"react";import fo from"reac
|
|
|
769
771
|
opacity: 0;
|
|
770
772
|
transform: translateY(10px);
|
|
771
773
|
}
|
|
772
|
-
`,
|
|
774
|
+
`,Mn=F`
|
|
773
775
|
0% {
|
|
774
776
|
opacity: 0;
|
|
775
777
|
}
|
|
776
778
|
100% {
|
|
777
779
|
opacity: 1;
|
|
778
780
|
}
|
|
779
|
-
`;var
|
|
781
|
+
`;var Tn=({buttonText:o,active:r,...a})=>e("div",{css:[uo,r?mo: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:go,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:vo`
|
|
780
782
|
color: var(--brand-secondary-3);
|
|
781
783
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
782
|
-
${r?
|
|
783
|
-
animation: ${
|
|
784
|
+
${r?vo`
|
|
785
|
+
animation: ${fo} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
784
786
|
`:"opacity: 0;"}
|
|
785
|
-
`},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{
|
|
787
|
+
`},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{fr as Button,Nt as Callout,y as Caption,x as ErrorMessage,an as Heading,ge as Icon,wr as IconsProvider,he as Input,Nr as InputComboBox,jr as InputInlineSelect,tt as InputKeywordSearch,lt as InputSelect,ut as InputToggle,Wo as LoadingIcon,_t as LoadingIndicator,en as LoadingOverlay,Rt as Menu,Pe as MenuContext,Ht as MenuItem,dn as Paragraph,hn as ScrollableList,Tn as ScrollableListItem,bt as Textarea,Jo as Theme,ar as UniformBadge,lr as UniformLogo,Mo as breakpoints,M as input,I as inputError,Z as inputSelect,h as labelText,le as mq,A as scrollbarStyles,se as useIconContext,ke as useMenuContext};
|
package/dist/index.d.ts
CHANGED
|
@@ -262,6 +262,27 @@ declare type InputToggleProps = React$1.HTMLAttributes<HTMLInputElement> & {
|
|
|
262
262
|
*/
|
|
263
263
|
declare const InputToggle: ({ label, type, disabled, checked, name, caption, errorMessage, ...props }: InputToggleProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
264
264
|
|
|
265
|
+
declare type TextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
266
|
+
label?: string;
|
|
267
|
+
caption?: string;
|
|
268
|
+
icon?: React$1.ReactElement;
|
|
269
|
+
showLabel?: boolean;
|
|
270
|
+
errorMessage?: string;
|
|
271
|
+
capture?: boolean | 'user' | 'environment';
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Input Component
|
|
275
|
+
*
|
|
276
|
+
* @component
|
|
277
|
+
* @param {string} label - sets the label value
|
|
278
|
+
* @param {string} caption - sets help text value
|
|
279
|
+
* @param {boolean} showLabel - sets whether to hide the label and use aria-label on the input itself
|
|
280
|
+
* @param {React.ReactElement} icon - add an input icon to the input field
|
|
281
|
+
* @param {string} errorMessage - sets shows the the error message value
|
|
282
|
+
* @example - <Input label="my label" id="some-id" name="some-name" caption="some help text" errorMessage={hasError ? 'something went wrong' : undefined} />
|
|
283
|
+
*/
|
|
284
|
+
declare const Textarea: ({ label, icon, id, caption, showLabel, errorMessage, ...props }: TextareaProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
285
|
+
|
|
265
286
|
interface MenuProps extends MenuHTMLProps {
|
|
266
287
|
menuTrigger: React$1.ReactElement & React$1.RefAttributes<any>;
|
|
267
288
|
menuLabel: string;
|
|
@@ -418,4 +439,4 @@ declare const breakpoints: breakpointsProps;
|
|
|
418
439
|
*/
|
|
419
440
|
declare const mq: (size: breakpointSizeProps) => string;
|
|
420
441
|
|
|
421
|
-
export { Button, ButtonProps, ButtonSizeProps, ButtonThemeProps, Callout, CalloutProps, CalloutType, Caption, ChildFunction, ComboBoxGroupBase, ErrorMessage, ErrorMessageProps, Heading, HeadingProps, Icon, IconColorProps, IconProps, IconsProvider, InlineSelectInputOption, InlineSelectInputProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, LevelProps, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuProps, Paragraph, ParagraphProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Theme, ThemeProps, UniformBadge, UniformLogo, UniformLogoProps, breakpointSizeProps, breakpoints, breakpointsProps, input, inputError, inputSelect, labelText, mq, scrollbarStyles, useIconContext, useMenuContext };
|
|
442
|
+
export { Button, ButtonProps, ButtonSizeProps, ButtonThemeProps, Callout, CalloutProps, CalloutType, Caption, ChildFunction, ComboBoxGroupBase, ErrorMessage, ErrorMessageProps, Heading, HeadingProps, Icon, IconColorProps, IconProps, IconsProvider, InlineSelectInputOption, InlineSelectInputProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, LevelProps, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuProps, Paragraph, ParagraphProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Textarea, TextareaProps, Theme, ThemeProps, UniformBadge, UniformLogo, UniformLogoProps, breakpointSizeProps, breakpoints, breakpointsProps, input, inputError, inputSelect, labelText, mq, scrollbarStyles, useIconContext, useMenuContext };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Go=Object.create;var O=Object.defineProperty;var Fo=Object.getOwnPropertyDescriptor;var Zo=Object.getOwnPropertyNames;var Ao=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty;var $o=(o,r)=>{for(var n in r)O(o,n,{get:r[n],enumerable:!0})},ie=(o,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of Zo(r))!Do.call(o,t)&&t!==n&&O(o,t,{get:()=>r[t],enumerable:!(a=Fo(r,t))||a.enumerable});return o};var b=(o,r,n)=>(n=o!=null?Go(Ao(o)):{},ie(r||!o||!o.__esModule?O(n,"default",{value:o,enumerable:!0}):n,o)),No=o=>ie(O({},"__esModule",{value:!0}),o);var fr={};$o(fr,{Button:()=>Ko,Callout:()=>sr,Caption:()=>x,ErrorMessage:()=>w,Heading:()=>dr,Icon:()=>J,IconsProvider:()=>_o,Input:()=>Q,InputComboBox:()=>Xo,InputInlineSelect:()=>jo,InputKeywordSearch:()=>er,InputSelect:()=>or,InputToggle:()=>rr,LoadingIcon:()=>yo,LoadingIndicator:()=>cr,LoadingOverlay:()=>pr,Menu:()=>nr,MenuContext:()=>X,MenuItem:()=>ar,Paragraph:()=>ur,ScrollableList:()=>mr,ScrollableListItem:()=>gr,Textarea:()=>tr,Theme:()=>Wo,UniformBadge:()=>Uo,UniformLogo:()=>Yo,breakpoints:()=>Re,input:()=>M,inputError:()=>I,inputSelect:()=>Z,labelText:()=>h,mq:()=>q,scrollbarStyles:()=>A,useIconContext:()=>_,useMenuContext:()=>j});module.exports=No(fr);var e=require("@emotion/react"),u=b(require("react"));var se=b(require("react")),Wo=({disableReset:o=!1})=>(0,e.jsx)(se.default.Fragment,null,(0,e.jsx)("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:(0,e.jsx)("style",{dangerouslySetInnerHTML:{__html:`
|
|
2
2
|
/*** The new CSS Reset - version 1.2.0 (last updated 23.7.2021) ***/
|
|
3
3
|
|
|
4
4
|
/* Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property */
|
|
@@ -167,14 +167,14 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
167
167
|
pre {
|
|
168
168
|
white-space: pre;
|
|
169
169
|
}
|
|
170
|
-
`}}));var
|
|
170
|
+
`}}));var f=require("@emotion/react"),L=f.css`
|
|
171
171
|
position: relative;
|
|
172
|
-
`,
|
|
172
|
+
`,h=f.css`
|
|
173
173
|
display: flex;
|
|
174
174
|
font-weight: var(--fw-bold);
|
|
175
175
|
margin: 0 0 var(--spacing-xs);
|
|
176
176
|
align-items: center;
|
|
177
|
-
`,
|
|
177
|
+
`,M=f.css`
|
|
178
178
|
appearance: none;
|
|
179
179
|
background-color: var(--white);
|
|
180
180
|
border: 1px solid var(--gray-400);
|
|
@@ -204,34 +204,34 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
204
204
|
color: var(--gray-300);
|
|
205
205
|
border-color: var(--gray-300);
|
|
206
206
|
}
|
|
207
|
-
`,
|
|
207
|
+
`,I=f.css`
|
|
208
208
|
border-color: var(--brand-secondary-5);
|
|
209
|
-
`,
|
|
209
|
+
`,G=f.css`
|
|
210
210
|
align-items: center;
|
|
211
211
|
display: flex;
|
|
212
212
|
position: absolute;
|
|
213
213
|
inset: 0 var(--spacing-base) 0 auto;
|
|
214
214
|
pointer-event: one;
|
|
215
|
-
`,
|
|
215
|
+
`,F=f.css`
|
|
216
216
|
padding-right: var(--spacing-2xl);
|
|
217
|
-
`,
|
|
217
|
+
`,Z=f.css`
|
|
218
218
|
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");
|
|
219
219
|
background-position: right var(--spacing-sm) center;
|
|
220
220
|
background-repeat: no-repeat;
|
|
221
221
|
background-size: 1rem;
|
|
222
222
|
padding-right: var(--spacing-xl);
|
|
223
|
-
`,le=
|
|
223
|
+
`,le=f.css`
|
|
224
224
|
color: var(--brand-secondary-1);
|
|
225
225
|
height: 1.25rem;
|
|
226
226
|
width: 1.25rem;
|
|
227
|
-
`,ce=
|
|
227
|
+
`,ce=f.css`
|
|
228
228
|
align-items: center;
|
|
229
229
|
cursor: pointer;
|
|
230
230
|
display: inline-flex;
|
|
231
231
|
gap: var(--spacing-sm);
|
|
232
232
|
margin: var(--spacing-sm) 0;
|
|
233
233
|
flex-wrap: wrap;
|
|
234
|
-
`,pe=
|
|
234
|
+
`,pe=f.css`
|
|
235
235
|
border: 1px solid var(--brand-secondary-1);
|
|
236
236
|
background: var(--white);
|
|
237
237
|
width: var(--spacing-md);
|
|
@@ -262,19 +262,21 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
262
262
|
color: var(--gray-300);
|
|
263
263
|
border-color: var(--gray-300);
|
|
264
264
|
}
|
|
265
|
-
`,de=
|
|
265
|
+
`,de=f.css`
|
|
266
266
|
font-weight: var(--font-medium);
|
|
267
|
-
`,
|
|
267
|
+
`,ue=f.css`
|
|
268
268
|
cursor: not-allowed;
|
|
269
269
|
color: var(--gray-400);
|
|
270
|
-
`,
|
|
270
|
+
`,me=f.css`
|
|
271
271
|
display: flex;
|
|
272
272
|
flex-direction: column;
|
|
273
273
|
flex-basis: 100%;
|
|
274
274
|
padding-left: var(--spacing-lg);
|
|
275
275
|
margin-top: -0.5rem;
|
|
276
276
|
line-height: 1.15;
|
|
277
|
-
|
|
277
|
+
`,ge=f.css`
|
|
278
|
+
${M}
|
|
279
|
+
`;var fe=require("@emotion/react"),A=fe.css`
|
|
278
280
|
@supports ((scrollbar-color: #d1d5db transparent) and (scrollbar-width: thin)) {
|
|
279
281
|
/*
|
|
280
282
|
#d1d5db = bg-gray-300
|
|
@@ -300,15 +302,15 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
300
302
|
&::-webkit-scrollbar-thumb:hover {
|
|
301
303
|
background: var(--gray-500);
|
|
302
304
|
}
|
|
303
|
-
`;var
|
|
305
|
+
`;var D=require("@emotion/react"),$=D.css`
|
|
304
306
|
display: block;
|
|
305
|
-
`,D
|
|
307
|
+
`,N=D.css`
|
|
306
308
|
background: transparent;
|
|
307
309
|
color: var(--brand-secondary-1);
|
|
308
|
-
|
|
310
|
+
`,W=D.css`
|
|
309
311
|
background: var(--brand-secondary-1);
|
|
310
312
|
color: var(--white);
|
|
311
|
-
`;var
|
|
313
|
+
`;var Uo=({theme:o="light",...r})=>(0,e.jsx)("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:[$,o==="dark"?W:N],...r},(0,e.jsx)("path",{d:"M28.998 0 0 16.744V50.23l28.998-16.744 29.004-16.743L28.998 0Z",fill:"#83C6E1"}),(0,e.jsx)("path",{d:"M28.998 66.974V33.487L0 50.231v33.487l28.998 16.744 29.004-16.744V50.23L28.998 66.974Z",fill:"#438FD5"}),(0,e.jsx)("path",{d:"M58.002 16.744 28.998 33.487l29.004 16.744v33.487L87 66.975V33.487L58.002 16.744Z",fill:"#F4220B"}));var Yo=({theme:o="light"})=>(0,e.jsx)("div",{"data-test-id":"uniform-Logo"},(0,e.jsx)("svg",{width:"153",height:"53",viewBox:"0 0 153 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",css:[$,o==="dark"?W:N]},(0,e.jsx)("path",{d:"M11.249 0 0 6.495v12.99l11.249-6.495L22.5 6.495 11.25 0Z",fill:"#83C6E1"}),(0,e.jsx)("path",{d:"M11.249 25.98V12.99L0 19.486v12.99l11.249 6.495L22.5 32.476v-12.99L11.25 25.98Z",fill:"#438FD5"}),(0,e.jsx)("path",{d:"m22.5 6.495-11.25 6.496 11.25 6.495v12.99l11.25-6.495V12.99L22.5 6.495Z",fill:"#F4220B"}),(0,e.jsx)("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"})));var Ce=b(require("react")),Ie=require("reakit/Button");var R=require("@emotion/react"),ve=R.css`
|
|
312
314
|
align-items: center;
|
|
313
315
|
border: 1px solid transparent;
|
|
314
316
|
cursor: pointer;
|
|
@@ -332,7 +334,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
332
334
|
&:disabled {
|
|
333
335
|
cursor: not-allowed;
|
|
334
336
|
}
|
|
335
|
-
`,
|
|
337
|
+
`,be=R.css`
|
|
336
338
|
background: var(--brand-secondary-1);
|
|
337
339
|
color: var(--white);
|
|
338
340
|
|
|
@@ -340,7 +342,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
340
342
|
background: var(--gray-500);
|
|
341
343
|
color: var(--white);
|
|
342
344
|
}
|
|
343
|
-
`,
|
|
345
|
+
`,he=R.css`
|
|
344
346
|
background: var(--brand-secondary-5);
|
|
345
347
|
color: var(--white);
|
|
346
348
|
|
|
@@ -348,7 +350,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
348
350
|
background: var(--gray-500);
|
|
349
351
|
color: var(--white);
|
|
350
352
|
}
|
|
351
|
-
`,
|
|
353
|
+
`,ye=R.css`
|
|
352
354
|
background: var(--brand-secondary-2);
|
|
353
355
|
color: var(--brand-secondary-1);
|
|
354
356
|
|
|
@@ -356,7 +358,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
356
358
|
background: var(--brand-secondary-2);
|
|
357
359
|
color: var(--gray-400);
|
|
358
360
|
}
|
|
359
|
-
`,
|
|
361
|
+
`,xe=R.css`
|
|
360
362
|
background: transparent;
|
|
361
363
|
color: var(--brand-secondary-3);
|
|
362
364
|
|
|
@@ -369,7 +371,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
369
371
|
border-color: var(--gray-400);
|
|
370
372
|
color: var(--gray-400);
|
|
371
373
|
}
|
|
372
|
-
`,
|
|
374
|
+
`,we=R.css`
|
|
373
375
|
background: var(--brand-secondary-3);
|
|
374
376
|
color: var(--white);
|
|
375
377
|
|
|
@@ -377,10 +379,10 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
377
379
|
background: var(--gray-500);
|
|
378
380
|
color: var(--white);
|
|
379
381
|
}
|
|
380
|
-
`;var
|
|
382
|
+
`;var Ko=Ce.forwardRef(({buttonType:o="primary",size:r="md",children:n,...a},t)=>{let s={primary:be,secondary:he,ghost:xe,unimportant:ye,tertiary:we},c={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(0,e.jsx)(Ie.Button,{"data-testid":"uniform-button",ref:t,css:[ve,s[o],c[r]],...a},n)});var ze=b(require("react"));var y=require("react"),Se=require("param-case"),Me=(0,y.createContext)({iconsMap:{},isLoading:!0});function _(){return(0,y.useContext)(Me)}function _o({children:o}){let[r,n]=(0,y.useState)(!0),[a,t]=(0,y.useState)({});return(0,y.useEffect)(()=>{import("react-icons/cg").then(s=>{let c=Object.entries(s).reduce((p,[d,g])=>{if(d==="default")return p;let v=qo(d);return{...p,[v]:g}},{});t(c),n(!1)})},[]),(0,e.jsx)(Me.Provider,{value:{iconsMap:a,isLoading:r}},o)}function qo(o){return(0,Se.paramCase)(o.replace("Cg",""))}var T=require("@emotion/react");var Re={sm:"640px",md:"768px",lg:"1025px",xl:"1280px","2xl":"1536px"},q=o=>`@media (min-width: ${Re[o]})`;var Pe=T.css`
|
|
381
383
|
display: hidden;
|
|
382
384
|
|
|
383
|
-
${
|
|
385
|
+
${q("sm")} {
|
|
384
386
|
display: block;
|
|
385
387
|
}
|
|
386
388
|
|
|
@@ -388,30 +390,30 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
388
390
|
display: block;
|
|
389
391
|
vertical-align: middle;
|
|
390
392
|
}
|
|
391
|
-
`,
|
|
393
|
+
`,ke=T.css`
|
|
392
394
|
color: var(--brand-secondary-3);
|
|
393
|
-
`,
|
|
395
|
+
`,Le=T.css`
|
|
394
396
|
color: var(--brand-secondary-5);
|
|
395
|
-
`,
|
|
397
|
+
`,Te=T.css`
|
|
396
398
|
color: var(--gray-500);
|
|
397
|
-
`,
|
|
399
|
+
`,Be=T.css`
|
|
398
400
|
color: currentColor;
|
|
399
|
-
`;var
|
|
401
|
+
`;var Qo=({icon:o,iconColorClass:r="green",...n})=>{let a=typeof o=="string",{iconsMap:t,isLoading:s}=_(),c={green:ke,gray:Te,red:Le,currentColor:Be};if(a&&s)return null;let p=a?t[o]:o;return a&&p===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):(0,e.jsx)(p,{role:"img",...n,css:[Pe,c[r]]})},J=ze.default.memo(Qo);var Ee=require("@emotion/react"),He=Ee.css`
|
|
400
402
|
color: var(--gray-500);
|
|
401
403
|
display: block;
|
|
402
404
|
font-size: var(--fs-base);
|
|
403
405
|
margin: var(--spacing-sm) 0;
|
|
404
406
|
max-width: var(--prose);
|
|
405
|
-
`;var
|
|
407
|
+
`;var x=({children:o})=>(0,e.jsx)("small",{css:He},o);var Ve=require("@emotion/react"),Oe=Ve.css`
|
|
406
408
|
align-items: center;
|
|
407
409
|
color: var(--brand-secondary-5);
|
|
408
410
|
display: flex;
|
|
409
411
|
gap: var(--spacing-sm);
|
|
410
412
|
margin: var(--spacing-xs) 0;
|
|
411
|
-
`;var
|
|
413
|
+
`;var w=({message:o})=>o?(0,e.jsx)("span",{css:Oe},(0,e.jsx)("svg",{width:"12",height:"12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.jsx)("g",{clipPath:"url(#a)"},(0,e.jsx)("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"})),(0,e.jsx)("defs",null,(0,e.jsx)("clipPath",{id:"a"},(0,e.jsx)("path",{fill:"#fff",d:"M0 0h12v12H0z"})))),o):null;var Ge=b(require("react"));var Q=({label:o,icon:r,id:n,caption:a,showLabel:t=!0,errorMessage:s,classNameContainer:c,classNameControl:p,classNameLabel:d,...g})=>(0,e.jsx)(Ge.Fragment,null,t?(0,e.jsx)("label",{htmlFor:n,css:[h,typeof d=="object"?d:void 0],className:typeof d=="string"?d:""},o):null,(0,e.jsx)("div",{css:[L,typeof c=="object"?c:void 0],className:typeof c=="string"?c:""},(0,e.jsx)("input",{id:n,css:[M,typeof p=="object"?p:void 0,s?I:void 0,r?F:""],"aria-label":t?void 0:o,className:typeof p=="string"?p:"",...g}),r?(0,e.jsx)("div",{css:G},r):null),a?(0,e.jsx)(x,null,a):null,s?(0,e.jsx)(w,{message:s}):null);var Fe=b(require("react-select"));function Xo(o){return(0,e.jsx)(Fe.default,{...o,styles:{...o.styles,singleValue:(r,n)=>{var a,t;return{...r,...(t=(a=o.styles)==null?void 0:a.singleValue)==null?void 0:t.call(a,r,n),color:"#828282"}},valueContainer:(r,n)=>{var a,t;return{...r,...(t=(a=o.styles)==null?void 0:a.valueContainer)==null?void 0:t.call(a,r,n),padding:"var(--spacing-base)"}},input:(r,n)=>{var a,t;return{...r,...(t=(a=o.styles)==null?void 0:a.input)==null?void 0:t.call(a,r,n),margin:"0",padding:"0","& > input":{boxShadow:"none !important"}}},control:(r,n)=>({...r,border:n.isFocused?"1px solid transparent":"1px solid var(--gray-400)",outline:n.isFocused?"1px solid var(--brand-secondary-1)":"none",outlineOffset:0,boxShadow:"none","&:hover":{boxShadow:"none"}})}})}var We=require("@emotion/react"),Ue=b(require("react")),U=require("react");var B=require("@emotion/react"),Ze=B.css`
|
|
412
414
|
margin-inline: auto;
|
|
413
415
|
max-width: fit-content;
|
|
414
|
-
`,
|
|
416
|
+
`,Ae=B.css`
|
|
415
417
|
align-items: center;
|
|
416
418
|
background: var(--brand-secondary-3);
|
|
417
419
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -434,7 +436,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
434
436
|
&:focus {
|
|
435
437
|
outline: 2px solid var(--brand-secondary-1);
|
|
436
438
|
}
|
|
437
|
-
`,
|
|
439
|
+
`,De=B.css`
|
|
438
440
|
background: var(--white);
|
|
439
441
|
border: 1px solid var(--brand-secondary-3);
|
|
440
442
|
border-top: none;
|
|
@@ -444,7 +446,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
444
446
|
position: absolute;
|
|
445
447
|
inset: auto 0;
|
|
446
448
|
transform: translateY(-0.2rem);
|
|
447
|
-
|
|
449
|
+
`,$e=B.css`
|
|
448
450
|
cursor: pointer;
|
|
449
451
|
display: block;
|
|
450
452
|
font-size: var(--fs-sm);
|
|
@@ -459,23 +461,23 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
459
461
|
&:hover {
|
|
460
462
|
background: var(--gray-50);
|
|
461
463
|
}
|
|
462
|
-
|
|
464
|
+
`,Ne=B.css`
|
|
463
465
|
position: absolute;
|
|
464
466
|
overflow: hidden;
|
|
465
467
|
height: 1px;
|
|
466
468
|
width: 1px;
|
|
467
469
|
clip: rect(0, 0, 0, 0);
|
|
468
470
|
padding: 0;
|
|
469
|
-
`;var
|
|
471
|
+
`;var Ye=require("react-icons/cg"),jo=({classNameContainer:o,options:r,value:n,onChange:a,disabled:t,...s})=>{var v;let[c,p]=(0,U.useState)(!1),d=(0,U.useRef)(null);Ue.useEffect(()=>{let m=S=>{d.current&&!d.current.contains(S.target)&&p(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[d]);let g=r.find(m=>m.value===n);return(0,e.jsx)("div",{ref:d,css:o?We.css`
|
|
470
472
|
max-width: fit-content;
|
|
471
473
|
${typeof o=="object"?o:void 0}
|
|
472
|
-
`:
|
|
474
|
+
`:Ze,className:typeof o=="string"?o:""},(0,e.jsx)("button",{type:"button","aria-controls":`and-or-${s.id}`,"aria-expanded":c,css:Ae,onClick:()=>{t||p(m=>!m)},disabled:t,...s},(0,e.jsx)("span",null,(v=g==null?void 0:g.label)!=null?v:n),t?null:(0,e.jsx)(J,{icon:Ye.CgChevronDown,iconColorClass:"currentColor"})),(0,e.jsx)("div",{id:`and-or-${s.id}`,css:[De,c?void 0:Ne],"aria-hidden":!c},r.map(m=>(0,e.jsx)("button",{key:m.value,type:"button",css:$e,onClick:()=>{a(m),p(S=>!S)}},m.label))))};var er=({onSearchTextChanged:o,disabled:r=!1,placeholder:n="Keyword search",inputFieldName:a="keywordSearch",disabledFieldSubmission:t=!1,value:s})=>(0,e.jsx)(Q,{type:"text",name:a,placeholder:n,showLabel:!1,value:s,icon:(0,e.jsx)("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",css:le},(0,e.jsx)("g",{clipPath:"url(#clip0)"},(0,e.jsx)("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"}),(0,e.jsx)("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"})),(0,e.jsx)("defs",null,(0,e.jsx)("clipPath",{id:"clip0"},(0,e.jsx)("rect",{width:"24.9351",height:"24",fill:"white",transform:"translate(0.558105)"})))),onChange:d=>{o(d.currentTarget.value)},onKeyPress:d=>{d.key==="Enter"&&t&&d.preventDefault()},disabled:r,"aria-label":n});var or=({label:o,defaultOption:r,options:n,caption:a,errorMessage:t,showLabel:s=!0,labelCta:c,classNameContainer:p,classNameControl:d,classNameLabel:g,...v})=>(0,e.jsx)("div",{css:[L,typeof p=="object"?p:void 0],className:typeof p=="string"?p:""},s?(0,e.jsx)("label",{htmlFor:v.id,css:[h,typeof g=="object"?g:void 0],className:typeof g=="string"?g:""},o,c):null,(0,e.jsx)("select",{title:o,"aria-label":s?void 0:o,css:[M,Z,t?I:void 0,typeof d=="object"?d:void 0],className:typeof d=="string"?d:"",...v},r?(0,e.jsx)("option",{value:""},r):null,n.map((m,S)=>(0,e.jsx)("option",{key:S,value:m.label,...m}))),a?(0,e.jsx)(x,null,a):null,t?(0,e.jsx)(w,{message:t}):null);var rr=({label:o,type:r,disabled:n,checked:a,name:t,caption:s,errorMessage:c,...p})=>(0,e.jsx)("label",{css:[ce,n?ue:void 0]},(0,e.jsx)("input",{type:r,css:pe,checked:a,name:t,disabled:n,...p}),(0,e.jsx)("span",{css:de},o),s||c?(0,e.jsx)("span",{css:me},s?(0,e.jsx)(x,null,s):null,c?(0,e.jsx)(w,{message:c}):null):null);var Ke=b(require("react"));var tr=({label:o,icon:r,id:n,caption:a,showLabel:t=!0,errorMessage:s,...c})=>(0,e.jsx)(Ke.Fragment,null,t?(0,e.jsx)("label",{htmlFor:n,css:[h]},o):null,(0,e.jsx)("div",{css:[L]},(0,e.jsx)("textarea",{id:n,css:[ge,s?I:void 0,r?F:""],"aria-label":t?void 0:o,...c}),r?(0,e.jsx)("div",{css:G},r):null),a?(0,e.jsx)(x,null,a):null,s?(0,e.jsx)(w,{message:s}):null);var z=b(require("react")),E=require("reakit/Menu");var _e=require("@emotion/react"),qe=_e.css`
|
|
473
475
|
border: 1px solid var(--gray-500);
|
|
474
476
|
border-radius: var(--rounded-base);
|
|
475
477
|
outline: none;
|
|
476
478
|
overflow: hidden;
|
|
477
479
|
z-index: 50;
|
|
478
|
-
`;var
|
|
480
|
+
`;var X=z.createContext({}),j=()=>z.useContext(X),nr=({menuLabel:o,menuTrigger:r,placement:n="auto",children:a})=>{let t=(0,E.useMenuState)({placement:n});return(0,e.jsx)(X.Provider,{value:t},(0,e.jsx)(E.MenuButton,{...t,ref:r.ref,...r.props},s=>z.cloneElement(r,s)),(0,e.jsx)(E.Menu,{...t,"aria-label":o,css:qe},a))};var Xe=b(require("react")),re=require("reakit");var ee=require("@emotion/react"),oe=ee.css`
|
|
479
481
|
background: var(--white);
|
|
480
482
|
border-top: 1px solid var(--gray-500);
|
|
481
483
|
color: var(--brand-secondary-1);
|
|
@@ -500,7 +502,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
500
502
|
&:hover {
|
|
501
503
|
background: var(--gray-200);
|
|
502
504
|
}
|
|
503
|
-
`,
|
|
505
|
+
`,Je=ee.css`
|
|
504
506
|
align-items: center;
|
|
505
507
|
display: flex;
|
|
506
508
|
justify-content: space-between;
|
|
@@ -511,7 +513,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
511
513
|
width: var(--spacing-base);
|
|
512
514
|
height: var(--spacing-base);
|
|
513
515
|
}
|
|
514
|
-
`;var
|
|
516
|
+
`;var ar=Xe.forwardRef(({children:o,className:r,hideMenuOnClick:n=!0,icon:a,...t},s)=>{let c=j(),p=g=>{let v={...g};if(v.onClick){let m=v.onClick;v.onClick=S=>{c.hide(),m(S)}}return v};if(typeof o=="function")return(0,e.jsx)(re.MenuItem,{ref:s,"data-testid":"uniform-menuItem",...c,...t,css:oe},g=>{let v=n?p(g):g,m=o(v);return a?Qe(m,a):m});let d=n?p(t):t;return(0,e.jsx)(re.MenuItem,{ref:s,...c,...d,css:oe},a?Qe(o,a):o)});function Qe(o,r){return(0,e.jsx)("span",{css:Je},o," ",r)}var l=require("@emotion/react");var je=({...o})=>(0,e.jsx)("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},(0,e.jsx)("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"})),eo=({...o})=>(0,e.jsx)("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},(0,e.jsx)("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"})),oo=({...o})=>(0,e.jsx)("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},(0,e.jsx)("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"})),ro=({...o})=>(0,e.jsx)("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},(0,e.jsx)("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"})),te=({...o})=>(0,e.jsx)("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},(0,e.jsx)("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"})),to=({...o})=>(0,e.jsx)("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},(0,e.jsx)("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"}));var P=require("@emotion/react"),no=P.css`
|
|
515
517
|
--caution-desc: rgb(161, 98, 7);
|
|
516
518
|
--caution-icon: rgb(250, 204, 21);
|
|
517
519
|
--caution-title: rgb(133, 77, 14);
|
|
@@ -539,21 +541,21 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
539
541
|
|
|
540
542
|
border-radius: var(--rounded-base);
|
|
541
543
|
padding: var(--spacing-base);
|
|
542
|
-
`,
|
|
544
|
+
`,ao=P.css`
|
|
543
545
|
display: flex;
|
|
544
546
|
gap: var(--spacing-base);
|
|
545
|
-
`,
|
|
547
|
+
`,io=P.css`
|
|
546
548
|
flex-shrink: 0;
|
|
547
|
-
`,
|
|
549
|
+
`,so=P.css`
|
|
548
550
|
font-size: var(--fs-sm);
|
|
549
551
|
font-weight: var(--fw-bold);
|
|
550
552
|
margin: 0 0 var(--spacing-sm);
|
|
551
|
-
`,
|
|
553
|
+
`,lo=P.css`
|
|
552
554
|
font-size: var(--fs-sm);
|
|
553
|
-
`,
|
|
555
|
+
`,co=P.css`
|
|
554
556
|
width: 1.25rem;
|
|
555
557
|
height: 1.25rem;
|
|
556
|
-
`;var
|
|
558
|
+
`;var ir={caution:{icon:te,descriptionColor:l.css`
|
|
557
559
|
color: var(--caution-desc);
|
|
558
560
|
`,iconColor:l.css`
|
|
559
561
|
color: var(--caution-icon);
|
|
@@ -561,7 +563,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
561
563
|
color: var(--caution-title);
|
|
562
564
|
`,containerColor:l.css`
|
|
563
565
|
background-color: var(--caution-container);
|
|
564
|
-
`},danger:{icon:
|
|
566
|
+
`},danger:{icon:eo,descriptionColor:l.css`
|
|
565
567
|
color: var(--danger-desc);
|
|
566
568
|
`,iconColor:l.css`
|
|
567
569
|
color: var(--danger-icon);
|
|
@@ -569,7 +571,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
569
571
|
color: var(--danger-title);
|
|
570
572
|
`,containerColor:l.css`
|
|
571
573
|
background-color: var(--danger-container);
|
|
572
|
-
`},error:{icon:
|
|
574
|
+
`},error:{icon:te,descriptionColor:l.css`
|
|
573
575
|
color: var(--danger-desc);
|
|
574
576
|
`,iconColor:l.css`
|
|
575
577
|
color: var(--danger-icon);
|
|
@@ -577,7 +579,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
577
579
|
color: var(--danger-title);
|
|
578
580
|
`,containerColor:l.css`
|
|
579
581
|
background-color: var(--danger-container);
|
|
580
|
-
`},info:{icon:
|
|
582
|
+
`},info:{icon:je,descriptionColor:l.css`
|
|
581
583
|
color: var(--info-desc);
|
|
582
584
|
`,iconColor:l.css`
|
|
583
585
|
color: var(--info-icon);
|
|
@@ -585,7 +587,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
585
587
|
color: var(--info-title);
|
|
586
588
|
`,containerColor:l.css`
|
|
587
589
|
background-color: var(--info-container);
|
|
588
|
-
`},note:{icon:
|
|
590
|
+
`},note:{icon:oo,descriptionColor:l.css`
|
|
589
591
|
color: var(--note-desc);
|
|
590
592
|
`,iconColor:l.css`
|
|
591
593
|
color: var(--note-icon);
|
|
@@ -593,7 +595,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
593
595
|
color: var(--note-title);
|
|
594
596
|
`,containerColor:l.css`
|
|
595
597
|
background-color: var(--note-container);
|
|
596
|
-
`},success:{icon:
|
|
598
|
+
`},success:{icon:to,descriptionColor:l.css`
|
|
597
599
|
color: var(--success-desc);
|
|
598
600
|
`,iconColor:l.css`
|
|
599
601
|
color: var(--success-icon);
|
|
@@ -601,7 +603,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
601
603
|
color: var(--success-title);
|
|
602
604
|
`,containerColor:l.css`
|
|
603
605
|
background-color: var(--success-container);
|
|
604
|
-
`},tip:{icon:
|
|
606
|
+
`},tip:{icon:ro,descriptionColor:l.css`
|
|
605
607
|
color: var(--success-desc);
|
|
606
608
|
`,iconColor:l.css`
|
|
607
609
|
color: var(--success-icon);
|
|
@@ -609,7 +611,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
609
611
|
color: var(--success-title);
|
|
610
612
|
`,containerColor:l.css`
|
|
611
613
|
background-color: var(--success-container);
|
|
612
|
-
`}},
|
|
614
|
+
`}},sr=({type:o="info",title:r,children:n,className:a})=>{let t=ir[o];if(!t)return null;let s=t.icon;return(0,e.jsx)("div",{"data-testid":"sdk-ui-callout",css:[no,t.containerColor,typeof a=="object"?a:""],className:`${typeof a=="string"?a:""}`},(0,e.jsx)("div",{css:ao},(0,e.jsx)("div",{css:io},(0,e.jsx)(s,{css:[co,t.iconColor]})),(0,e.jsx)("div",null,r?(0,e.jsx)("h3",{css:[so,t.titleColor]},r):null,n?(0,e.jsx)("div",{css:[lo,t.descriptionColor]},n):null)))};var H=require("@emotion/react"),lr=H.keyframes`
|
|
613
615
|
0%, 100% {
|
|
614
616
|
opacity: 1.0;
|
|
615
617
|
transform: translateY(0);
|
|
@@ -625,14 +627,14 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
625
627
|
opacity: 0.2;
|
|
626
628
|
transform: translateY(-5px);
|
|
627
629
|
}
|
|
628
|
-
`,
|
|
630
|
+
`,po=H.css`
|
|
629
631
|
display: inline-flex;
|
|
630
632
|
justify-content: center;
|
|
631
|
-
`,
|
|
633
|
+
`,Y=H.css`
|
|
632
634
|
background-color: var(--gray-700);
|
|
633
635
|
display: block;
|
|
634
636
|
border-radius: var(--rounded-full);
|
|
635
|
-
animation: ${
|
|
637
|
+
animation: ${lr} 0.75s infinite ease-in-out;
|
|
636
638
|
width: 8px;
|
|
637
639
|
height: 8px;
|
|
638
640
|
margin: 0 var(--spacing-xs);
|
|
@@ -649,53 +651,53 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
649
651
|
&:nth-of-type(3) {
|
|
650
652
|
animation-delay: 0.6s;
|
|
651
653
|
}
|
|
652
|
-
`;var
|
|
654
|
+
`;var cr=()=>(0,e.jsx)("div",{css:po,role:"alert"},(0,e.jsx)("span",{css:Y}),(0,e.jsx)("span",{css:Y}),(0,e.jsx)("span",{css:Y}));var ho=require("@emotion/react");var k=require("@emotion/react"),uo=k.css`
|
|
653
655
|
align-items: center;
|
|
654
656
|
position: absolute;
|
|
655
657
|
inset: 0 0;
|
|
656
658
|
overflow: hidden;
|
|
657
659
|
z-index: 9999;
|
|
658
660
|
justify-content: center;
|
|
659
|
-
`,
|
|
661
|
+
`,mo=k.css`
|
|
660
662
|
display: flex;
|
|
661
|
-
`,
|
|
663
|
+
`,go=k.css`
|
|
662
664
|
display: none;
|
|
663
|
-
`,
|
|
665
|
+
`,fo=k.css`
|
|
664
666
|
background: var(--white);
|
|
665
667
|
opacity: 0.5;
|
|
666
668
|
position: absolute;
|
|
667
669
|
inset: 0 0;
|
|
668
|
-
`,
|
|
670
|
+
`,vo=k.css`
|
|
669
671
|
align-items: center;
|
|
670
672
|
display: flex;
|
|
671
673
|
flex-direction: column;
|
|
672
|
-
`,
|
|
674
|
+
`,bo=k.css`
|
|
673
675
|
color: var(--gray-500);
|
|
674
676
|
margin: var(--spacing-base) 0 0;
|
|
675
|
-
`;var
|
|
677
|
+
`;var pr=({isActive:o,statusMessage:r})=>(0,e.jsx)("div",{role:"alert",css:[uo,o?mo:go],"aria-hidden":!o},(0,e.jsx)("div",{css:fo}),(0,e.jsx)("div",{css:ho.css`
|
|
676
678
|
position: relative;
|
|
677
|
-
`},(0,e.jsx)("div",{css:
|
|
679
|
+
`},(0,e.jsx)("div",{css:vo},(0,e.jsx)(yo,{height:128,width:128}),r?(0,e.jsx)("div",{css:bo},r):null))),yo=({height:o,width:r})=>(0,e.jsx)("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"},(0,e.jsx)("g",{fill:"none",fillRule:"evenodd"},(0,e.jsx)("g",{transform:"translate(1 1)",strokeWidth:"2"},(0,e.jsx)("circle",{strokeOpacity:".25",cx:"18",cy:"18",r:"18"}),(0,e.jsx)("path",{d:"M36 18c0-9.94-8.06-18-18-18",transform:"rotate(166.645 18 18)"},(0,e.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.8s",repeatCount:"indefinite"})))));var C=require("@emotion/react"),xo=C.css`
|
|
678
680
|
font-family: var(--ff-heading);
|
|
679
681
|
font-size: clamp(1.75rem, var(--fluid-font-base), 3.25rem);
|
|
680
682
|
font-weight: var(--fw-bold);
|
|
681
683
|
margin-bottom: var(--spacing-base);
|
|
682
|
-
`,
|
|
684
|
+
`,wo=C.css`
|
|
683
685
|
font-size: clamp(1.35rem, var(--fluid-font-base), 2.25rem);
|
|
684
|
-
`,
|
|
686
|
+
`,Co=C.css`
|
|
685
687
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
686
|
-
`,
|
|
688
|
+
`,Io=C.css`
|
|
687
689
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.35rem);
|
|
688
|
-
`,
|
|
690
|
+
`,So=C.css`
|
|
689
691
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.25rem);
|
|
690
|
-
`,
|
|
692
|
+
`,Mo=C.css`
|
|
691
693
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
692
|
-
`,
|
|
694
|
+
`,Ro=C.css`
|
|
693
695
|
font-weight: var(--fw-bold);
|
|
694
696
|
font-family: var(--ff-base);
|
|
695
697
|
margin-bottom: var(--spacing-base);
|
|
696
|
-
`,
|
|
698
|
+
`,Po=C.css`
|
|
697
699
|
line-height: 1.35;
|
|
698
|
-
`;var
|
|
700
|
+
`;var dr=({level:o=2,children:r})=>{let n=`h${o}`,a={h1:xo,h2:wo,h3:Co,h4:Io,h5:So,h6:Mo},t=n.includes("h1")?void 0:Ro;return(0,e.jsx)(n,{css:[a[n],t,Po]},r)};var ko=require("@emotion/react"),Lo=ko.css`
|
|
699
701
|
font-size: var(--fs-base);
|
|
700
702
|
line-height: 1.5;
|
|
701
703
|
margin-bottom: var(--spacing-base);
|
|
@@ -703,18 +705,18 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
703
705
|
&:last-of-type {
|
|
704
706
|
margin-bottom: 0;
|
|
705
707
|
}
|
|
706
|
-
`;var
|
|
708
|
+
`;var ur=({className:o,children:r})=>(0,e.jsx)("p",{css:[Lo,typeof o=="object"?o:void 0],className:typeof o=="string"?o:""},r);var zo=require("@emotion/react");var ne=require("@emotion/react"),To=ne.css`
|
|
707
709
|
position: relative;
|
|
708
|
-
`,
|
|
710
|
+
`,Bo=ne.css`
|
|
709
711
|
background: var(--gray-50);
|
|
710
712
|
border-top: 1px solid var(--gray-200);
|
|
711
713
|
border-bottom: 1px solid var(--gray-200);
|
|
712
714
|
max-height: 24rem;
|
|
713
715
|
overflow-y: auto;
|
|
714
716
|
padding: var(--spacing-sm);
|
|
715
|
-
`;var
|
|
716
|
-
${
|
|
717
|
-
`},o):null,(0,e.jsx)("div",{css:[
|
|
717
|
+
`;var mr=({label:o,children:r})=>(0,e.jsx)("div",{css:To},o?(0,e.jsx)("span",{css:zo.css`
|
|
718
|
+
${h}
|
|
719
|
+
`},o):null,(0,e.jsx)("div",{css:[Bo,A]},r));var K=require("@emotion/react"),Eo=K.css`
|
|
718
720
|
align-items: center;
|
|
719
721
|
background: var(--white);
|
|
720
722
|
border-radius: var(--rounded-base);
|
|
@@ -729,9 +731,9 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
729
731
|
&:last-of-type {
|
|
730
732
|
margin-block: 0;
|
|
731
733
|
}
|
|
732
|
-
`,
|
|
734
|
+
`,Ho=K.css`
|
|
733
735
|
border-color: var(--brand-secondary-3);
|
|
734
|
-
`,
|
|
736
|
+
`,Vo=K.css`
|
|
735
737
|
align-items: center;
|
|
736
738
|
display: flex;
|
|
737
739
|
justify-content: space-between;
|
|
@@ -741,7 +743,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
741
743
|
&:focus {
|
|
742
744
|
outline: none;
|
|
743
745
|
}
|
|
744
|
-
`;var
|
|
746
|
+
`;var ae=require("@emotion/react");var V=require("@emotion/react"),_t=V.keyframes`
|
|
745
747
|
0%,
|
|
746
748
|
100% {
|
|
747
749
|
transform: scale(1);
|
|
@@ -751,7 +753,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
751
753
|
transform: scale(1.15);
|
|
752
754
|
opacity: 1;
|
|
753
755
|
}
|
|
754
|
-
`,
|
|
756
|
+
`,Oo=V.keyframes`
|
|
755
757
|
0% {
|
|
756
758
|
opacity: 0;
|
|
757
759
|
transform: translateY(10px);
|
|
@@ -760,7 +762,7 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
760
762
|
opacity: 1;
|
|
761
763
|
transform: translateY(0);
|
|
762
764
|
}
|
|
763
|
-
|
|
765
|
+
`,qt=V.keyframes`
|
|
764
766
|
0% {
|
|
765
767
|
opacity: 1;
|
|
766
768
|
transform: translateY(0);
|
|
@@ -769,17 +771,17 @@ var Vo=Object.create;var V=Object.defineProperty;var Oo=Object.getOwnPropertyDes
|
|
|
769
771
|
opacity: 0;
|
|
770
772
|
transform: translateY(10px);
|
|
771
773
|
}
|
|
772
|
-
`,
|
|
774
|
+
`,Jt=V.keyframes`
|
|
773
775
|
0% {
|
|
774
776
|
opacity: 0;
|
|
775
777
|
}
|
|
776
778
|
100% {
|
|
777
779
|
opacity: 1;
|
|
778
780
|
}
|
|
779
|
-
`;var
|
|
781
|
+
`;var gr=({buttonText:o,active:r,...n})=>(0,e.jsx)("div",{css:[Eo,r?Ho:void 0],className:"flex items-center space-x-2 p-3 bg-white border-2 rounded-md shadow-md border-gray-300"},(0,e.jsx)("button",{css:Vo,className:"flex items-center justify-between w-full outline-none focus:outline-none",type:"button",...n},(0,e.jsx)("span",null,o),(0,e.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 40 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!r,css:ae.css`
|
|
780
782
|
color: var(--brand-secondary-3);
|
|
781
783
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
782
|
-
${r?
|
|
783
|
-
animation: ${
|
|
784
|
+
${r?ae.css`
|
|
785
|
+
animation: ${Oo} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
784
786
|
`:"opacity: 0;"}
|
|
785
|
-
`},(0,e.jsx)("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"}))));0&&(module.exports={Button,Callout,Caption,ErrorMessage,Heading,Icon,IconsProvider,Input,InputComboBox,InputInlineSelect,InputKeywordSearch,InputSelect,InputToggle,LoadingIcon,LoadingIndicator,LoadingOverlay,Menu,MenuContext,MenuItem,Paragraph,ScrollableList,ScrollableListItem,Theme,UniformBadge,UniformLogo,breakpoints,input,inputError,inputSelect,labelText,mq,scrollbarStyles,useIconContext,useMenuContext});
|
|
787
|
+
`},(0,e.jsx)("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"}))));0&&(module.exports={Button,Callout,Caption,ErrorMessage,Heading,Icon,IconsProvider,Input,InputComboBox,InputInlineSelect,InputKeywordSearch,InputSelect,InputToggle,LoadingIcon,LoadingIndicator,LoadingOverlay,Menu,MenuContext,MenuItem,Paragraph,ScrollableList,ScrollableListItem,Textarea,Theme,UniformBadge,UniformLogo,breakpoints,input,inputError,inputSelect,labelText,mq,scrollbarStyles,useIconContext,useMenuContext});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "13.0.1-alpha.
|
|
3
|
+
"version": "13.0.1-alpha.278+8557f2dc1",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"files": [
|
|
45
45
|
"/dist"
|
|
46
46
|
],
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "8557f2dc1d71ce4c26b588fb5a4d8659a4ff3966"
|
|
48
48
|
}
|