@worldresources/wri-design-systems 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1286 @@
1
+ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useState as a,useEffect as o,Children as i}from"react";import t from"react-dom/client";import{createSystem as d,defaultConfig as c,Switch as p,Icon as s,Button as h,Box as x,Spinner as u,Tabs as g,Collapsible as b,RadioGroup as m,HStack as f,Checkbox as $,Tag as v,Accordion as C,Field as w,Input as y,Textarea as k,Slider as z,For as L,Popover as I,ChakraProvider as _}from"@chakra-ui/react";import H from"@emotion/styled";!function(e,r){void 0===r&&(r={});var l=r.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===l&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n\n*:focus-visible {\n box-shadow: none !important;\n}\n");const M={neutral:{100:{value:"#FFFFFF"},200:{value:"#F6F6F6"},300:{value:"#E7E6E6"},400:{value:"#C9C9C9"},500:{value:"#9B9B9B"},600:{value:"#686767"},700:{value:"#4F4E4E"},800:{value:"#1A1919"},900:{value:"#000000"}},primary:{100:{value:"#FFFBF2"},200:{value:"#FCEFD3"},500:{value:"#F0AB00"},600:{value:"#D49700"},700:{value:"#AD7500"},800:{value:"#5F4205"},900:{value:"#332300"}},secondary:{500:{value:"#3855A3"},600:{value:"#263A71"},700:{value:"#1F2F5C"}},success:{100:{value:"#F3FFF2"},200:{value:"#D3EED1"},300:{value:"#C7E9C0"},500:{value:"#086600"}},warning:{100:{value:"#FEF7E5"},200:{value:"#E3CC8F"},500:{value:"#804600"}},error:{100:{value:"#FFF3F4"},200:{value:"#EDA1A9"},500:{value:"#A80011"}}},V=d(c,{theme:{tokens:{colors:M}}}),F=(e,r)=>V.tokens.getVar(`colors.${e}.${r}`)||M?.[e]?.[r]?.value,E=H.div`
2
+ display: flex;
3
+ align-items: center;
4
+ `,T=H(p.Root)`
5
+ .chakra-switch__control-container {
6
+ width: 42px;
7
+ height: 26px;
8
+ border-radius: 13px;
9
+ display: flex;
10
+ justify-content: center;
11
+ align-items: center;
12
+ background-color: ${F("neutral",600)};
13
+ }
14
+
15
+ &[data-state='checked'] .chakra-switch__control-container {
16
+ background-color: ${F("primary",700)};
17
+ }
18
+
19
+ &[data-disabled] .chakra-switch__control-container {
20
+ background-color: transparent;
21
+ }
22
+
23
+ .chakra-switch__control {
24
+ height: 24px;
25
+ width: 40px;
26
+ display: flex;
27
+ align-items: center;
28
+ background-color: ${F("neutral",500)};
29
+
30
+ &:focus-visible,
31
+ &[data-focus-visible] {
32
+ box-shadow: none;
33
+ outline: none;
34
+ outline: 2px solid ${F("primary",700)};
35
+ outline-offset: 3px;
36
+ }
37
+
38
+ &[data-state='checked'] {
39
+ background-color: ${F("primary",500)};
40
+ }
41
+
42
+ &[data-disabled] {
43
+ background-color: ${F("neutral",300)};
44
+ }
45
+ }
46
+
47
+ .chakra-switch__thumb {
48
+ svg {
49
+ width: 12px;
50
+
51
+ path {
52
+ fill: ${F("primary",700)};
53
+ }
54
+ }
55
+
56
+ &:hover,
57
+ &[data-hover] {
58
+ outline: 9px solid
59
+ color-mix(in srgb, ${F("primary",500)} 20%, transparent);
60
+ }
61
+
62
+ &[data-active] {
63
+ outline: 9px solid
64
+ color-mix(in srgb, ${F("primary",500)} 40%, transparent);
65
+ }
66
+
67
+ &[data-disabled] {
68
+ outline: none;
69
+
70
+ &[data-state='checked'] {
71
+ svg {
72
+ path {
73
+ fill: ${F("neutral",500)};
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ `,R=l=>e(s,{...l,children:r("svg",{viewBox:"0 0 16 17",children:[r("g",{clipPath:"url(#clip0_1216_84)",children:[e("path",{d:"M9.78791 8.03125H16V2.21875C16 1.27103 15.229 0.5 14.2812 0.5H7.1875V16.5H14.2812C15.229 16.5 16 15.729 16 14.7812V8.96875H9.78791L10.5502 9.73106C10.7333 9.91413 10.7333 10.2109 10.5502 10.394C10.3672 10.577 10.0704 10.577 9.88731 10.394L8.32481 8.83147C8.14175 8.64841 8.14175 8.35162 8.32481 8.16856L9.88731 6.60606C10.0704 6.423 10.3672 6.423 10.5502 6.60606C10.7333 6.78912 10.7333 7.08591 10.5502 7.26897L9.78791 8.03125Z",fill:"#4F4E4E"}),e("path",{d:"M0 2.21875V14.7812C0 15.729 0.771031 16.5 1.71875 16.5H6.25V0.5H1.71875C0.771031 0.5 0 1.27103 0 2.21875ZM4.375 7.0625H1.875C1.61612 7.0625 1.40625 6.85262 1.40625 6.59375C1.40625 6.33488 1.61612 6.125 1.875 6.125H4.375C4.63387 6.125 4.84375 6.33488 4.84375 6.59375C4.84375 6.85262 4.63387 7.0625 4.375 7.0625ZM4.375 5.1875H1.875C1.61612 5.1875 1.40625 4.97762 1.40625 4.71875C1.40625 4.45988 1.61612 4.25 1.875 4.25H4.375C4.63387 4.25 4.84375 4.45988 4.84375 4.71875C4.84375 4.97762 4.63387 5.1875 4.375 5.1875ZM4.375 2.375C4.63387 2.375 4.84375 2.58488 4.84375 2.84375C4.84375 3.10262 4.63387 3.3125 4.375 3.3125H1.875C1.61612 3.3125 1.40625 3.10262 1.40625 2.84375C1.40625 2.58488 1.61612 2.375 1.875 2.375H4.375Z",fill:"#4F4E4E"})]}),e("defs",{children:e("clipPath",{id:"clip0_1216_84",children:e("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]})}),Z=l=>e(s,{...l,children:r("svg",{viewBox:"0 0 16 17",children:[e("path",{d:"M0 2.21875V14.7812C0 15.729 0.771031 16.5 1.71875 16.5H6.25V0.5H1.71875C0.771031 0.5 0 1.27103 0 2.21875ZM4.375 7.0625H1.875C1.61612 7.0625 1.40625 6.85262 1.40625 6.59375C1.40625 6.33488 1.61612 6.125 1.875 6.125H4.375C4.63387 6.125 4.84375 6.33488 4.84375 6.59375C4.84375 6.85262 4.63387 7.0625 4.375 7.0625ZM4.375 5.1875H1.875C1.61612 5.1875 1.40625 4.97762 1.40625 4.71875C1.40625 4.45988 1.61612 4.25 1.875 4.25H4.375C4.63387 4.25 4.84375 4.45988 4.84375 4.71875C4.84375 4.97762 4.63387 5.1875 4.375 5.1875ZM4.375 2.375C4.63387 2.375 4.84375 2.58488 4.84375 2.84375C4.84375 3.10262 4.63387 3.3125 4.375 3.3125H1.875C1.61612 3.3125 1.40625 3.10262 1.40625 2.84375C1.40625 2.58488 1.61612 2.375 1.875 2.375H4.375Z",fill:"#4F4E4E"}),e("path",{d:"M14.2812 0.5H7.1875V8.03125H12.4621L11.6998 7.26897C11.5168 7.08591 11.5168 6.78912 11.6998 6.60606C11.8829 6.423 12.1797 6.423 12.3627 6.60606L13.9252 8.16856C14.1083 8.35162 14.1083 8.64841 13.9252 8.83147L12.3627 10.394C12.1797 10.577 11.8829 10.577 11.6998 10.394C11.5168 10.2109 11.5168 9.91413 11.6998 9.73106L12.4621 8.96875H7.1875V16.5H14.2812C15.229 16.5 16 15.729 16 14.7812V2.21875C16 1.27103 15.229 0.5 14.2812 0.5Z",fill:"#4F4E4E"})]})}),B=r=>e(s,{...r,children:e("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:e("path",{d:"M4.19632 10.4277L0 6.23139L1.04908 5.18231L4.19632 8.32955L10.9509 1.57495L12 2.62403L4.19632 10.4277Z",fill:"currentColor"})})}),D=r=>e(s,{...r,children:e("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:e("path",{d:"M0 6.75V5.25H12V6.75H0Z",fill:"auto"})})}),A=r=>e(s,{...r,children:e("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M4.5 7.49997H5.5V4.49997H4.5V7.49997ZM5 3.49997C5.14167 3.49997 5.26042 3.45205 5.35625 3.35622C5.45208 3.26039 5.5 3.14164 5.5 2.99997C5.5 2.8583 5.45208 2.73955 5.35625 2.64372C5.26042 2.54789 5.14167 2.49997 5 2.49997C4.85833 2.49997 4.73958 2.54789 4.64375 2.64372C4.54792 2.73955 4.5 2.8583 4.5 2.99997C4.5 3.14164 4.54792 3.26039 4.64375 3.35622C4.73958 3.45205 4.85833 3.49997 5 3.49997ZM5 9.99997C4.30833 9.99997 3.65833 9.86872 3.05 9.60622C2.44167 9.34372 1.9125 8.98747 1.4625 8.53747C1.0125 8.08747 0.65625 7.5583 0.39375 6.94997C0.13125 6.34164 0 5.69164 0 4.99997C0 4.3083 0.13125 3.6583 0.39375 3.04997C0.65625 2.44164 1.0125 1.91247 1.4625 1.46247C1.9125 1.01247 2.44167 0.656219 3.05 0.393719C3.65833 0.131219 4.30833 -3.05176e-05 5 -3.05176e-05C5.69167 -3.05176e-05 6.34167 0.131219 6.95 0.393719C7.55833 0.656219 8.0875 1.01247 8.5375 1.46247C8.9875 1.91247 9.34375 2.44164 9.60625 3.04997C9.86875 3.6583 10 4.3083 10 4.99997C10 5.69164 9.86875 6.34164 9.60625 6.94997C9.34375 7.5583 8.9875 8.08747 8.5375 8.53747C8.0875 8.98747 7.55833 9.34372 6.95 9.60622C6.34167 9.86872 5.69167 9.99997 5 9.99997Z",fill:"currentColor"})})}),j=r=>e(s,{...r,children:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M8 13.3667L0 5.36667L1.86667 3.5L8 9.63333L14.1333 3.5L16 5.36667L8 13.3667Z",fill:"currentColor"})})}),S=r=>e(s,{...r,children:e("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M1 10L0 9L4 5L0 1L1 0L5 4L9 0L10 1L6 5L10 9L9 10L5 6L1 10Z",fill:"currentColor"})})}),N=r=>e(s,{...r,children:e("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M5 6.95455C5.56818 6.95455 6.05114 6.75568 6.44886 6.35795C6.84659 5.96023 7.04545 5.47727 7.04545 4.90909C7.04545 4.34091 6.84659 3.85795 6.44886 3.46023C6.05114 3.0625 5.56818 2.86364 5 2.86364C4.43182 2.86364 3.94886 3.0625 3.55114 3.46023C3.15341 3.85795 2.95455 4.34091 2.95455 4.90909C2.95455 5.47727 3.15341 5.96023 3.55114 6.35795C3.94886 6.75568 4.43182 6.95455 5 6.95455ZM5 6.13636C4.65909 6.13636 4.36932 6.01705 4.13068 5.77841C3.89205 5.53977 3.77273 5.25 3.77273 4.90909C3.77273 4.56818 3.89205 4.27841 4.13068 4.03977C4.36932 3.80114 4.65909 3.68182 5 3.68182C5.34091 3.68182 5.63068 3.80114 5.86932 4.03977C6.10795 4.27841 6.22727 4.56818 6.22727 4.90909C6.22727 5.25 6.10795 5.53977 5.86932 5.77841C5.63068 6.01705 5.34091 6.13636 5 6.13636ZM5 8.31818C3.89394 8.31818 2.88636 8.00947 1.97727 7.39205C1.06818 6.77462 0.409091 5.94697 0 4.90909C0.409091 3.87121 1.06818 3.04356 1.97727 2.42614C2.88636 1.80871 3.89394 1.5 5 1.5C6.10606 1.5 7.11364 1.80871 8.02273 2.42614C8.93182 3.04356 9.59091 3.87121 10 4.90909C9.59091 5.94697 8.93182 6.77462 8.02273 7.39205C7.11364 8.00947 6.10606 8.31818 5 8.31818Z",fill:"currentColor"})})}),O=l=>e(s,{...l,children:r("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("g",{clipPath:"url(#clip0_4626_1381)",children:e("path",{d:"M8.54545 9.9375L6.63636 8.05114C6.37121 8.13447 6.10417 8.19697 5.83523 8.23864C5.56629 8.2803 5.28788 8.30114 5 8.30114C3.85606 8.30114 2.83712 7.98485 1.94318 7.35227C1.04924 6.7197 0.401515 5.89962 0 4.89205C0.159091 4.49053 0.359848 4.11742 0.602273 3.77273C0.844697 3.42803 1.12121 3.11932 1.43182 2.84659L0.181818 1.57386L0.818182 0.9375L9.18182 9.30114L8.54545 9.9375ZM5 6.9375C5.08333 6.9375 5.16098 6.93371 5.23295 6.92614C5.30492 6.91856 5.38258 6.90341 5.46591 6.88068L3.01136 4.42614C2.98864 4.50947 2.97348 4.58712 2.96591 4.65909C2.95833 4.73106 2.95455 4.80871 2.95455 4.89205C2.95455 5.46023 3.15341 5.94318 3.55114 6.34091C3.94886 6.73864 4.43182 6.9375 5 6.9375ZM8.31818 7.14205L6.875 5.71023C6.92803 5.58144 6.9697 5.45076 7 5.31818C7.0303 5.18561 7.04545 5.04356 7.04545 4.89205C7.04545 4.32386 6.84659 3.84091 6.44886 3.44318C6.05114 3.04545 5.56818 2.84659 5 2.84659C4.84848 2.84659 4.70644 2.86174 4.57386 2.89205C4.44129 2.92235 4.31061 2.9678 4.18182 3.02841L3.02273 1.86932C3.33333 1.74053 3.65152 1.64394 3.97727 1.57955C4.30303 1.51515 4.64394 1.48295 5 1.48295C6.14394 1.48295 7.16288 1.79924 8.05682 2.43182C8.95076 3.06439 9.59848 3.88447 10 4.89205C9.82576 5.33902 9.59659 5.75379 9.3125 6.13636C9.02841 6.51894 8.69697 6.85417 8.31818 7.14205ZM6.21591 5.05114L4.85227 3.6875C5.06439 3.64962 5.25947 3.66667 5.4375 3.73864C5.61553 3.81061 5.76894 3.91477 5.89773 4.05114C6.02652 4.1875 6.11932 4.3447 6.17614 4.52273C6.23295 4.70076 6.24621 4.87689 6.21591 5.05114Z",fill:"currentColor"})}),e("defs",{children:e("clipPath",{id:"clip0_4626_1381",children:e("rect",{width:"10",height:"10",fill:"white"})})})]})}),q=r=>e(s,{...r,children:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M6.25 20C5.5625 20 4.97396 19.7552 4.48437 19.2656C3.99479 18.776 3.75 18.1875 3.75 17.5C3.75 16.8125 3.99479 16.224 4.48437 15.7344C4.97396 15.2448 5.5625 15 6.25 15C6.9375 15 7.52604 15.2448 8.01562 15.7344C8.50521 16.224 8.75 16.8125 8.75 17.5C8.75 18.1875 8.50521 18.776 8.01562 19.2656C7.52604 19.7552 6.9375 20 6.25 20ZM13.75 20C13.0625 20 12.474 19.7552 11.9844 19.2656C11.4948 18.776 11.25 18.1875 11.25 17.5C11.25 16.8125 11.4948 16.224 11.9844 15.7344C12.474 15.2448 13.0625 15 13.75 15C14.4375 15 15.026 15.2448 15.5156 15.7344C16.0052 16.224 16.25 16.8125 16.25 17.5C16.25 18.1875 16.0052 18.776 15.5156 19.2656C15.026 19.7552 14.4375 20 13.75 20ZM6.25 12.5C5.5625 12.5 4.97396 12.2552 4.48437 11.7656C3.99479 11.276 3.75 10.6875 3.75 10C3.75 9.3125 3.99479 8.72396 4.48437 8.23438C4.97396 7.74479 5.5625 7.5 6.25 7.5C6.9375 7.5 7.52604 7.74479 8.01562 8.23438C8.50521 8.72396 8.75 9.3125 8.75 10C8.75 10.6875 8.50521 11.276 8.01562 11.7656C7.52604 12.2552 6.9375 12.5 6.25 12.5ZM13.75 12.5C13.0625 12.5 12.474 12.2552 11.9844 11.7656C11.4948 11.276 11.25 10.6875 11.25 10C11.25 9.3125 11.4948 8.72396 11.9844 8.23438C12.474 7.74479 13.0625 7.5 13.75 7.5C14.4375 7.5 15.026 7.74479 15.5156 8.23438C16.0052 8.72396 16.25 9.3125 16.25 10C16.25 10.6875 16.0052 11.276 15.5156 11.7656C15.026 12.2552 14.4375 12.5 13.75 12.5ZM6.25 5C5.5625 5 4.97396 4.75521 4.48437 4.26562C3.99479 3.77604 3.75 3.1875 3.75 2.5C3.75 1.8125 3.99479 1.22396 4.48437 0.734375C4.97396 0.244792 5.5625 0 6.25 0C6.9375 0 7.52604 0.244792 8.01562 0.734375C8.50521 1.22396 8.75 1.8125 8.75 2.5C8.75 3.1875 8.50521 3.77604 8.01562 4.26562C7.52604 4.75521 6.9375 5 6.25 5ZM13.75 5C13.0625 5 12.474 4.75521 11.9844 4.26562C11.4948 3.77604 11.25 3.1875 11.25 2.5C11.25 1.8125 11.4948 1.22396 11.9844 0.734375C12.474 0.244792 13.0625 0 13.75 0C14.4375 0 15.026 0.244792 15.5156 0.734375C16.0052 1.22396 16.25 1.8125 16.25 2.5C16.25 3.1875 16.0052 3.77604 15.5156 4.26562C15.026 4.75521 14.4375 5 13.75 5Z",fill:"currentColor"})})}),P=l=>e(s,{...l,children:r("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("g",{clipPath:"url(#clip0_5584_387)",children:e("path",{d:"M8.49906 16L0.940002 10.1207L2.32583 9.07087L8.49906 13.8583L14.6723 9.07087L16.0581 10.1207L8.49906 16ZM8.49906 11.7585L0.940002 5.87926L8.49906 0L16.0581 5.87926L8.49906 11.7585Z",fill:"currentColor"})}),e("defs",{children:e("clipPath",{id:"clip0_5584_387",children:e("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})})})]})}),G=r=>e(s,{...r,children:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M1.71286 12.5714V3.42857H5.14144V12.5714H1.71286ZM6.28429 12.5714V6.85714H9.71286V12.5714H6.28429ZM10.8557 12.5714V0H14.2843V12.5714H10.8557ZM0.570007 16V13.7143H15.4271V16H0.570007Z",fill:"currentColor"})})}),U=({name:l,defaultChecked:n=!1,onChange:a,disabled:o=!1,isLabelOnLeft:i=!1,children:t,...d})=>e(E,{children:r(T,{id:l,name:l,"aria-label":d["aria-label"]||l,defaultChecked:n,onCheckedChange:({checked:e})=>{a&&a(l,e)},disabled:o,...d,children:[i&&null!=t?e(p.Label,{children:t}):null,e(p.HiddenInput,{style:{width:"42px",height:"26px"}}),e("div",{className:"chakra-switch__control-container",children:e(p.Control,{children:e(p.Thumb,{children:e(p.ThumbIndicator,{display:"flex",children:e(B,{})})})})}),i||null==t?null:e(p.Label,{children:t})]})}),Y=H(h)`
80
+ width: auto;
81
+ height: ${({size:e})=>"small"===e?"28px":"40px"};
82
+ font-size: ${({size:e})=>"small"===e?"12px":"16px"};
83
+ line-height: ${({size:e})=>"small"===e?"16px":"24px"};
84
+ font-weight: 700;
85
+ padding: ${({size:e})=>"small"===e?"6px 8px":"8px 16px"};
86
+ border-radius: 4px;
87
+ box-shadow: 0px 1px 2px 0px #0000000d;
88
+
89
+ &:focus-visible {
90
+ box-shadow: none;
91
+ }
92
+
93
+ svg {
94
+ width: ${({size:e})=>"small"===e?"10px":"16px"};
95
+ height: ${({size:e})=>"small"===e?"10px":"16px"};
96
+ }
97
+ `,W=H(Y)`
98
+ ${({disabled:e})=>e?`\n background-color: ${F("neutral",300)};\n border: 1px solid ${F("neutral",400)};\n color: ${F("neutral",500)};\n\n &:hover {\n background-color: ${F("neutral",300)} !important;\n }\n `:`\n background-color: ${F("primary",500)};\n border: 1px solid ${F("primary",600)};\n color: ${F("primary",900)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n\n &:hover {\n background-color: ${F("primary",500)};\n box-shadow: 0px 2px 4px -2px #0000001A;\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:active {\n outline: none;\n background-color: ${F("primary",600)} !important;\n border: 1px solid ${F("primary",700)} !important;\n box-shadow: 0px 2px 4px -2px #0000001A;\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:focus-visible {\n outline-color: ${F("primary",700)};\n background-color: ${F("primary",500)};\n border: 2px solid ${F("primary",500)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n }\n `};
99
+ `,J=H(Y)`
100
+ ${({disabled:e})=>e?`\n background-color: ${F("neutral",200)};\n border: 1px solid ${F("neutral",300)};\n color: ${F("neutral",500)};\n\n &:hover {\n background-color: ${F("neutral",200)} !important;\n }\n `:`\n background-color: ${F("neutral",100)};\n border: 1px solid ${F("neutral",300)};\n color: ${F("neutral",700)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n\n &:hover {\n background-color: ${F("neutral",100)};\n box-shadow: 0px 2px 4px -2px #0000001A;\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:active {\n outline: none;\n background-color: ${F("neutral",200)} !important;\n border: 1px solid ${F("neutral",300)} !important;\n box-shadow: 0px 2px 4px -2px #0000001A;\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:focus-visible {\n outline-color: ${F("primary",700)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n }\n `};
101
+ `,K=H(Y)`
102
+ ${({disabled:e})=>e?`\n background-color: transparent;\n color: ${F("neutral",500)};\n\n &:hover {\n background-color: transparent !important;\n }\n `:`\n background-color: transparent;\n border: none;\n color: ${F("neutral",800)};\n box-shadow: none;\n\n &:hover {\n background-color: color-mix(in srgb, ${F("primary",500)} 20%, transparent);\n }\n\n &:active {\n outline: none;\n background-color: color-mix(in srgb, ${F("primary",500)} 40%, transparent);\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:focus-visible {\n outline-color: ${F("primary",700)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n }\n `};
103
+ `,Q=H(Y)`
104
+ ${({disabled:e})=>e?`\n background-color: ${F("neutral",200)};\n border: 1px solid ${F("neutral",300)};\n color: ${F("neutral",500)};\n\n &:hover {\n background-color: ${F("neutral",200)} !important;\n }\n `:`\n background-color: transparent;\n border: 1px solid ${F("primary",800)};\n color: ${F("primary",800)};\n\n &:hover {\n background-color: ${F("primary",100)};\n color: ${F("primary",900)};\n }\n\n &:active {\n outline: none;\n background-color: ${F("primary",200)} !important;\n border: 1px solid ${F("primary",900)} !important;\n color: ${F("primary",900)};\n }\n\n &:focus-visible {\n outline-color: ${F("primary",800)};\n background-color: ${F("primary",100)};\n }\n `};
105
+ `,X=({label:l,loading:n,variant:a="primary",size:o="default",disabled:i,leftIcon:t,rightIcon:d,...c})=>{let p=W;"secondary"===a?p=J:"borderless"===a?p=K:"outline"===a&&(p=Q);return r(p,{"aria-label":(()=>{let e=c["aria-label"]||l;return n&&(e="Loading"),e})(),size:o,disabled:i||n,"aria-disabled":i||n,...c,children:[t&&!n?e(x,{marginRight:l?2:0,display:"flex",alignItems:"center",children:t}):null,!d&&n?e(u,{size:"sm",marginRight:l?2:0}):null,l,d&&!n?e(x,{marginLeft:l?2:0,display:"flex",alignItems:"center",children:d}):null,d&&n?e(u,{size:"sm",marginLeft:l?2:0}):null]})},ee=H.div`
106
+ width: 64px;
107
+ height: 100vh;
108
+ z-index: 100;
109
+ position: fixed;
110
+ top: 0;
111
+ left: 0;
112
+ border-right: 1px solid ${F("neutral",300)};
113
+ background-color: ${F("neutral",200)};
114
+ display: flex;
115
+ flex-direction: column;
116
+ justify-content: space-between;
117
+ `,re=H(g.Trigger)`
118
+ width: 64px;
119
+ height: 64px;
120
+ background-color: ${F("neutral",200)};
121
+ border-radius: initial;
122
+ border-style: solid;
123
+ border-width: 1px 1px 0px 0px;
124
+ border-color: ${F("neutral",300)};
125
+ cursor: pointer;
126
+ border-left: 2px solid transparent;
127
+ padding: 0 5px;
128
+ display: flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+
132
+ &:hover {
133
+ background-color: ${F("neutral",100)};
134
+ }
135
+
136
+ &:active {
137
+ background-color: ${F("neutral",300)} !important;
138
+ }
139
+
140
+ &:focus-visible {
141
+ background-color: ${F("neutral",200)};
142
+ outline-color: ${F("primary",700)};
143
+ outline-offset: 2px;
144
+ box-shadow: none;
145
+ }
146
+
147
+ .tab-label p {
148
+ font-size: 10px;
149
+ font-weight: 400;
150
+ line-height: 14px;
151
+ text-align: center;
152
+ color: ${F("neutral",600)};
153
+ }
154
+
155
+ &[data-selected] {
156
+ background-color: ${F("neutral",100)};
157
+ border-left: 2px solid ${F("secondary",500)};
158
+
159
+ &:hover {
160
+ background-color: ${F("neutral",200)};
161
+ }
162
+
163
+ &:focus-visible {
164
+ background-color: ${F("neutral",100)};
165
+ outline-color: ${F("primary",700)};
166
+ outline-offset: 2px;
167
+ box-shadow: none;
168
+ }
169
+
170
+ .tab-label {
171
+ p {
172
+ font-weight: 700;
173
+ color: ${F("neutral",700)};
174
+ }
175
+
176
+ svg {
177
+ path {
178
+ fill: ${F("neutral",700)};
179
+ }
180
+ }
181
+ }
182
+
183
+ &::before {
184
+ content: none;
185
+ }
186
+ }
187
+
188
+ &[data-disabled] {
189
+ background-color: ${F("neutral",200)} !important;
190
+
191
+ &[data-selected] {
192
+ background-color: ${F("neutral",100)} !important;
193
+ }
194
+
195
+ .tab-label {
196
+ p {
197
+ color: ${F("neutral",400)};
198
+ }
199
+
200
+ svg {
201
+ path {
202
+ fill: ${F("neutral",400)};
203
+ }
204
+ }
205
+ }
206
+ }
207
+ `,le=H.div`
208
+ display: flex;
209
+ justify-content: center;
210
+ align-items: center;
211
+
212
+ svg {
213
+ width: 16px;
214
+ height: 16px;
215
+
216
+ path {
217
+ fill: ${F("neutral",600)};
218
+ }
219
+ }
220
+ `,ne=H(b.Trigger)`
221
+ width: 64px;
222
+ height: 64px;
223
+ background-color: ${F("neutral",200)};
224
+ border-radius: initial;
225
+ border-style: solid;
226
+ border-width: 1px 1px 0px 0px;
227
+ border-color: ${F("neutral",300)};
228
+ cursor: pointer;
229
+ border-left: 2px solid transparent;
230
+ padding: 0 5px;
231
+ display: flex;
232
+ align-items: center;
233
+ justify-content: center;
234
+ flex-direction: column;
235
+ gap: 5px;
236
+
237
+ &:hover {
238
+ background-color: ${F("neutral",100)};
239
+ }
240
+
241
+ &:active {
242
+ background-color: ${F("neutral",300)} !important;
243
+ }
244
+
245
+ &:focus-visible {
246
+ outline-color: ${F("primary",700)};
247
+ outline-offset: 2px;
248
+ box-shadow: none;
249
+ }
250
+
251
+ .tab-label p {
252
+ font-size: 10px;
253
+ font-weight: 400;
254
+ line-height: 14px;
255
+ text-align: center;
256
+ color: ${F("neutral",600)};
257
+ }
258
+ `,ae=H.div`
259
+ width: 300px;
260
+ height: 100vh;
261
+ z-index: 100;
262
+ position: fixed;
263
+ top: 0;
264
+ left: 64px;
265
+ box-shadow: 2px 0px 2px 0px #0000000d;
266
+ background-color: ${F("neutral",100)};
267
+ overflow-y: auto;
268
+ overflow-x: hidden;
269
+ `,oe=({tabs:n=[],defaultValue:o,onTabClick:i,children:t,onOpenChange:d})=>{const[c,p]=a(!1),[s,h]=a(o||n?.[0]?.value);return r(l,{children:[r(ee,{children:[e(g.Root,{defaultValue:o||n?.[0]?.value,orientation:"horizontal",width:"full",onFocusChange:({focusedValue:e})=>{return h(r=e),void(i&&i(r));var r},role:"tablist",children:e(g.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:n.map((l=>e(re,{"aria-label":l["aria-label"]||l.label,...l,children:r(x,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"tab-label",children:[l.icon?e(le,{children:l.icon}):null,e("p",{children:l.label})]})},l.label)))})}),t?e(b.Root,{onOpenChange:({open:e})=>{p(e),d&&d(!e)},children:r(ne,{children:[e(le,{children:e(c?Z:R,{})}),r("div",{className:"tab-label",children:[e("p",{children:c?"Show":"Hide"}),e("p",{children:"Sidebar"})]})]})}):null]}),t?e(b.Root,{defaultOpen:!0,open:!c,children:e(b.Content,{children:e(ae,{role:"tabpanel","aria-labelledby":s,children:t})})}):null]})},ie=H(m.Item)`
270
+ .radio-item-indicator {
271
+ width: 20px;
272
+ height: 20px;
273
+ border: 1px solid ${F("neutral",600)};
274
+
275
+ .dot {
276
+ width: 10px !important;
277
+ height: 10px !important;
278
+ scale: 1 !important;
279
+ }
280
+
281
+ &:hover {
282
+ outline: 4px solid
283
+ color-mix(in srgb, ${F("primary",500)} 20%, transparent);
284
+ }
285
+
286
+ &:active {
287
+ outline: 4px solid
288
+ color-mix(in srgb, ${F("primary",500)} 40%, transparent);
289
+ }
290
+
291
+ &:focus-visible,
292
+ &[data-focus-visible] {
293
+ outline: 2px solid ${F("primary",700)};
294
+ outline-offset: 2px;
295
+ box-shadow: none;
296
+
297
+ &[data-checked] {
298
+ border: 2px solid ${F("primary",700)};
299
+
300
+ &[data-disabled] {
301
+ border: 2px solid ${F("neutral",400)};
302
+ }
303
+ }
304
+ }
305
+
306
+ &[data-checked] {
307
+ border: 1px solid ${F("primary",700)};
308
+ background-color: ${F("neutral",100)} !important;
309
+ color: ${F("primary",700)};
310
+
311
+ &[data-disabled] {
312
+ border: 1px solid ${F("neutral",400)};
313
+ color: ${F("neutral",400)};
314
+ }
315
+ }
316
+
317
+ &[data-disabled] {
318
+ border: 1px solid ${F("neutral",400)} !important;
319
+ background-color: ${F("neutral",100)} !important;
320
+
321
+ &:hover,
322
+ &:active {
323
+ outline: none;
324
+ }
325
+ }
326
+ }
327
+ `,te=({children:l,value:n,disabled:a,...o})=>r(ie,{value:n,disabled:a,...o,children:[e(m.ItemHiddenInput,{}),e(m.ItemIndicator,{className:"radio-item-indicator"}),l?e(m.ItemText,{children:l}):null]}),de=({children:r,isRow:l=!1,name:n,defaultValue:o,onChange:i,customGap:t,...d})=>{const[c,p]=a(o);let s=l?"20px":"8px";return s=t||s,e(m.Root,{onValueChange:e=>{p(e.value),i&&i(n,e.value)},value:c,...d,children:e(f,{gap:s,flexDirection:l?"row":"column",alignItems:"flex-start",children:r})})},ce=H.div`
328
+ width: 100%;
329
+ display: flex;
330
+ align-items: center;
331
+ height: 40px;
332
+
333
+ ${({variant:e})=>"view"===e&&`\n border: 1px solid ${F("neutral",400)};\n background-color: ${F("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
334
+ `,pe=H(g.Trigger)`
335
+ width: 99%;
336
+ height: 40px;
337
+ padding: 8px 16px;
338
+ border-radius: 0px;
339
+ display: flex;
340
+ justify-content: center;
341
+ align-items: center;
342
+ gap: 2px;
343
+ font-size: 16px;
344
+ line-height: 24px;
345
+ font-weight: 400;
346
+
347
+ &:focus-visible {
348
+ box-shadow: none;
349
+ }
350
+ `,se=H(pe)`
351
+ background-color: ${F("neutral",200)};
352
+ color: ${F("neutral",600)};
353
+
354
+ &:hover {
355
+ background-color: ${F("neutral",100)};
356
+ }
357
+
358
+ &:active {
359
+ background-color: ${F("neutral",300)};
360
+ }
361
+
362
+ &:focus-visible {
363
+ background-color: ${F("neutral",300)};
364
+ outline-color: ${F("primary",700)};
365
+ outline-offset: 2px;
366
+ }
367
+
368
+ &[data-selected] {
369
+ background-color: ${F("neutral",100)};
370
+ color: ${F("neutral",800)};
371
+
372
+ &:hover {
373
+ background-color: ${F("neutral",200)};
374
+ }
375
+
376
+ &:active {
377
+ background-color: ${F("neutral",300)};
378
+ }
379
+
380
+ &:focus-visible {
381
+ background-color: ${F("neutral",100)};
382
+ outline-color: ${F("primary",700)};
383
+ outline-offset: 2px;
384
+ }
385
+
386
+ &::before {
387
+ content: none;
388
+ }
389
+ }
390
+
391
+ &[data-disabled] {
392
+ background-color: ${F("neutral",200)};
393
+ color: ${F("neutral",400)};
394
+
395
+ &[data-selected] {
396
+ background-color: ${F("neutral",100)};
397
+ color: ${F("neutral",400)};
398
+ opacity: 1;
399
+ }
400
+ }
401
+ `,he=H.div`
402
+ width: 4px;
403
+ height: 24px;
404
+ background-color: ${F("neutral",400)};
405
+ `,xe=H(pe)`
406
+ height: 32px;
407
+ border-radius: 2px;
408
+ background-color: ${F("neutral",200)};
409
+ color: ${F("neutral",600)};
410
+
411
+ &:hover {
412
+ background-color: ${F("neutral",300)};
413
+ box-shadow: 0px 1px 2px 0px #0000000d;
414
+ }
415
+
416
+ &:active {
417
+ background-color: ${F("neutral",300)};
418
+ box-shadow: 0px 2px 4px -2px #0000001a;
419
+ box-shadow: 0px 4px 6px -1px #0000001a;
420
+ }
421
+
422
+ &:focus-visible {
423
+ outline-color: ${F("primary",700)};
424
+ outline-offset: 2px;
425
+ }
426
+
427
+ &[data-selected] {
428
+ background-color: ${F("neutral",100)};
429
+ border: 1px solid ${F("neutral",300)};
430
+ box-shadow: 0px 1px 2px 0px #0000000d;
431
+ color: ${F("neutral",800)};
432
+
433
+ &:hover {
434
+ background-color: ${F("neutral",200)};
435
+ border: 1px solid ${F("neutral",300)};
436
+ box-shadow: 0px 2px 4px -2px #0000001a;
437
+ box-shadow: 0px 4px 6px -1px #0000001a;
438
+ }
439
+
440
+ &:active {
441
+ background-color: ${F("neutral",300)};
442
+ border: 1px solid ${F("neutral",300)};
443
+ box-shadow: 0px 2px 4px -2px #0000001a;
444
+ box-shadow: 0px 4px 6px -1px #0000001a;
445
+ }
446
+
447
+ &:focus-visible {
448
+ outline-color: ${F("primary",700)};
449
+ outline-offset: 2px;
450
+ }
451
+
452
+ &::before {
453
+ content: none;
454
+ }
455
+ }
456
+
457
+ &[data-disabled] {
458
+ background-color: ${F("neutral",200)};
459
+ color: ${F("neutral",400)};
460
+ box-shadow: none;
461
+
462
+ &:hover {
463
+ box-shadow: none;
464
+ }
465
+
466
+ &[data-selected] {
467
+ background-color: ${F("neutral",100)};
468
+ color: ${F("neutral",400)};
469
+ opacity: 1;
470
+ }
471
+ }
472
+ `,ue=(e,r)=>e.findIndex((e=>e.value===r)),ge=e=>1===e?"none":2===e?"left":"right",be=({variant:n="panel",defaultValue:o,tabs:i,onTabClick:t})=>{const[d,c]=a(ue(i,o)||0),p="view"===n,s=p?xe:se;return e(ce,{variant:n,children:e(g.Root,{width:"full",defaultValue:o||i?.[0]?.value,onFocusChange:({focusedValue:e})=>{return c(ue(i,r=e)),void(t&&t(r));var r},children:e(g.List,{alignItems:"center",border:"none",children:i.map(((n,a)=>r(l,{children:[p&&1===a&&"left"===ge(d)?e(he,{}):null,e(s,{"aria-label":n["aria-label"]||n.label,...n,children:r(x,{display:"flex",alignItems:"center",gap:"5px",children:[n.icon,n.label]})},n.label),p&&1===a&&"right"===ge(d)?e(he,{}):null]})))})})})},me=H.div`
473
+ width: 268px;
474
+ padding: 16px 0;
475
+ border-bottom: 1px solid ${F("neutral",300)};
476
+ `,fe=H.div`
477
+ display: flex;
478
+ align-items: flex-start;
479
+ justify-content: space-between;
480
+ `,$e=H.div`
481
+ display: flex;
482
+ flex-direction: column;
483
+ `,ve=H.p`
484
+ font-size: 16px;
485
+ font-weight: 400;
486
+ line-height: 24px;
487
+ text-align: left;
488
+ color: ${F("neutral",800)};
489
+ `,Ce=H.p`
490
+ font-size: 14px;
491
+ font-weight: 400;
492
+ line-height: 20px;
493
+ text-align: left;
494
+ color: ${F("neutral",600)};
495
+ `,we=({name:l,label:n,caption:a,showInfoButton:o=!0,infoButtonLabel:i="About data",variant:t="switch",disabled:d,onInfoClick:c,isDefaultSelected:p=!1,onChange:s})=>{const h="switch"===t;return r(me,{children:[h?r(fe,{children:[r($e,{children:[e(ve,{"aria-label":n,children:n}),e(Ce,{"aria-label":a,children:a})]}),e(U,{"aria-label":`${n}, ${a}`,name:l,disabled:d,defaultChecked:p,onChange:s,role:"switch"})]}):r("div",{style:{display:"flex",flexDirection:"column"},children:[e(te,{value:l,disabled:d,fontSize:"16px",color:"var(--chakra-colors-neutral-800)",children:n}),e(Ce,{style:{marginLeft:"28px"},children:a})]}),o?e(x,{display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:h?0:"28px",children:e(X,{variant:"secondary",label:i,rightIcon:e(A,{}),size:"small",onClick:c,disabled:d})}):null]})},ye=H($.Root)`
496
+ .chakra-checkbox__control {
497
+ width: 20px;
498
+ height: 20px;
499
+ border: 1px solid ${F("neutral",600)};
500
+
501
+ svg {
502
+ width: 12px;
503
+
504
+ path {
505
+ fill: transparent;
506
+ }
507
+ }
508
+
509
+ &:hover,
510
+ &[data-hover] {
511
+ outline: 4px solid
512
+ color-mix(in srgb, ${F("primary",500)} 20%, transparent);
513
+ }
514
+
515
+ &:active,
516
+ &[data-active] {
517
+ outline: 4px solid
518
+ color-mix(in srgb, ${F("primary",500)} 40%, transparent);
519
+ }
520
+
521
+ &:focus-visible,
522
+ &[data-focus-visible] {
523
+ box-shadow: none;
524
+ outline: 2px solid ${F("primary",700)};
525
+ outline-offset: 2px;
526
+ }
527
+
528
+ &[data-state='checked'],
529
+ &[data-state='indeterminate'] {
530
+ border: 1px solid ${F("primary",700)};
531
+ background-color: ${F("primary",500)} !important;
532
+
533
+ svg path {
534
+ fill: ${F("primary",900)};
535
+ }
536
+ }
537
+
538
+ &[data-disabled] {
539
+ border: 1px solid ${F("neutral",400)};
540
+ background-color: transparent !important;
541
+ cursor: not-allowed;
542
+
543
+ &:hover,
544
+ &[data-hover],
545
+ &:active,
546
+ &[data-active] {
547
+ outline: none;
548
+ }
549
+
550
+ &[data-state='checked'],
551
+ &[data-state='indeterminate'] {
552
+ border: none !important;
553
+ background-color: ${F("neutral",300)} !important;
554
+
555
+ svg path {
556
+ fill: ${F("neutral",500)} !important;
557
+ }
558
+ }
559
+ }
560
+ }
561
+ `,ke=({name:l,value:n,checked:a,defaultChecked:o,disabled:i,indeterminate:t,onCheckedChange:d,children:c,...p})=>r(ye,{name:l,value:n,checked:t?"indeterminate":a,defaultChecked:o,disabled:i,onCheckedChange:d,"aria-label":p["aria-label"]||l,...p,children:[e($.HiddenInput,{}),e($.Control,{children:e(t?D:B,{})}),e($.Label,{children:c})]}),ze=H.div`
562
+ background-color: ${F("neutral",100)};
563
+ `,Le=H.span`
564
+ font-size: 16px;
565
+ font-weight: 700;
566
+ line-height: 24px;
567
+ text-align: left;
568
+ color: ${F("neutral",800)};
569
+ display: flex;
570
+ align-items: center;
571
+ text-align: left;
572
+ gap: 10px;
573
+ `,Ie=H.div`
574
+ font-size: 12px;
575
+ font-weight: 400;
576
+ line-height: 16px;
577
+ text-align: left;
578
+ color: ${F("neutral",600)};
579
+ margin-bottom: 8px;
580
+ `,_e=H(v.Root)`
581
+ max-width: 100%;
582
+ display: flex;
583
+ justify-content: center;
584
+ align-items: center;
585
+ gap: 8px;
586
+ padding: 4px 8px;
587
+ border-radius: 4px;
588
+ font-weight: 700;
589
+ color: ${F("neutral",700)};
590
+ box-shadow: none;
591
+
592
+ height: 24px;
593
+ font-size: 12px;
594
+ line-height: 16px;
595
+
596
+ svg {
597
+ width: 10px;
598
+ height: 10px;
599
+ }
600
+
601
+ button svg {
602
+ width: 14px;
603
+ height: 14px;
604
+ }
605
+
606
+ ${({size:e})=>"small"===e?"\n height: 16px;\n border: none !important;\n font-size: 10px;\n line-height: 12px;\n\n svg {\n width: 8px;\n height: 8px;\n }\n\n button svg {\n width: 12px;\n height: 12px;\n }\n ":""}
607
+
608
+ ${({size:e})=>"large"===e?"\n height: 32px;\n font-size: 16px;\n line-height: 24px;\n\n svg {\n width: 12px;\n height: 12px;\n }\n\n button svg {\n width: 16px;\n height: 16px;\n }\n ":""}
609
+
610
+ .chakra-tag__startElement,
611
+ .chakra-tag__endElement,
612
+ .chakra-tag__closeTrigger {
613
+ display: flex;
614
+ justify-content: center;
615
+ align-items: center;
616
+
617
+ &:focus-visible {
618
+ --focus-ring-color: ${F("primary",700)};
619
+ }
620
+ }
621
+
622
+ .chakra-tag__closeTrigger {
623
+ cursor: pointer;
624
+ }
625
+
626
+ &[data-disabled='true'] {
627
+ border: 1px solid ${F("neutral",400)};
628
+ background-color: ${F("neutral",300)};
629
+ color: ${F("neutral",600)};
630
+ }
631
+ `,He=H(_e)`
632
+ background-color: ${F("neutral",100)};
633
+ border: 1px solid ${F("neutral",300)};
634
+ `,Me=H(_e)`
635
+ background-color: ${F("neutral",200)};
636
+ border: 1px solid ${F("neutral",400)};
637
+ `,Ve=H(_e)`
638
+ background-color: ${F("success",100)};
639
+ border: 1px solid ${F("success",200)};
640
+ color: ${F("success",500)};
641
+ `,Fe=H(_e)`
642
+ background-color: ${F("warning",100)};
643
+ border: 1px solid ${F("warning",200)};
644
+ color: ${F("warning",500)};
645
+ `,Ee=H(_e)`
646
+ background-color: ${F("error",100)};
647
+ border: 1px solid ${F("error",200)};
648
+ color: ${F("error",500)};
649
+ `,Te=({label:l,size:n="default",variant:a,disabled:o,icon:i,onClose:t,closable:d,...c})=>{let p=He;return"info-grey"===a?p=Me:"success"===a?p=Ve:"warning"===a?p=Fe:"error"===a&&(p=Ee),r(p,{size:n,"data-disabled":o,...c,children:[i?e(v.StartElement,{"aria-label":`${l} tag icon`,children:i}):null,e(v.Label,{"aria-label":l,children:l}),d&&!o?e(v.EndElement,{children:e(v.CloseTrigger,{onClick:t,"aria-label":`${l} tag close button`})}):null]})},Re=({label:l,caption:n,value:i,layerItems:t,onChangeForRadioVariant:d})=>{const[c,p]=a({}),[s]=a((e=>{const r=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return r?.name})(t));o((()=>{let e={...c};t.forEach((r=>{r.isDefaultSelected&&(e={...e,["radio"===r.variant?l:r.name]:r.isDefaultSelected})})),p(e)}),[]);const h=(e,r,l,n)=>{const a={...c,[e]:r};p(a),l&&l(e,r,n)},u=Object.values(c).filter((e=>!0===e)).length;return r(C.Item,{value:i,width:"300px",children:[r(C.ItemTrigger,{padding:"16px",alignItems:"flex-start",children:[r(x,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[r(Le,{children:[l,e(Te,{label:`${u} Active`,size:"small",variant:u>0?"success":"info-grey"})]}),e(Ie,{children:n})]}),e(C.ItemIndicator,{display:"flex",children:e(j,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),e(C.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:e(de,{name:l,defaultValue:s,customGap:"0px",onChange:(e,r)=>h(e,!!r,d,r),children:t.map((r=>e(we,{...r,onChange:(e,l)=>h(e,l,r.onChange)},r.label)))})})]})},Ze=({children:r,defaultValue:l,...n})=>e(ze,{style:{width:"300px"},children:e(C.Root,{defaultValue:l,multiple:!0,...n,children:r})}),Be=H.div`
650
+ width: 300px;
651
+ background-color: ${F("neutral",100)};
652
+ `,De=H.aside`
653
+ padding: 16px 16px 20px 16px;
654
+ border-bottom: 1px solid ${F("neutral",300)};
655
+ `,Ae=H.h2`
656
+ color: ${F("neutral",700)};
657
+ font-weight: 700;
658
+ font-size: 20px;
659
+ line-height: 28px;
660
+ text-align: left;
661
+ `,je=H.p`
662
+ color: ${F("neutral",600)};
663
+ font-weight: 400;
664
+ font-size: 14px;
665
+ line-height: 20px;
666
+ text-align: left;
667
+ `,Se=({title:l,description:n,tabBarVariant:a="panel",buttonTabs:o,defaultValue:i,onTabClick:t,children:d})=>r(Be,{children:[r(De,{role:"complementary",children:[e(Ae,{"aria-label":l,children:l}),e(je,{"aria-label":n,children:n})]}),o&&o.length>0?e(be,{variant:a,defaultValue:i,tabs:o,onTabClick:t}):null,d]}),Ne=H.div`
668
+ width: 100%;
669
+ min-width: ${({size:e})=>"small"===e?"234px":"366px"};
670
+ border-radius: 4px;
671
+ padding: ${({size:e})=>"small"===e?"8px 8px 12px 8px":"8px 12px 12px 12px"};
672
+ display: flex;
673
+ align-items: ${({isButtonRight:e})=>e?"center":"flex-start"};
674
+ justify-content: ${({isButtonRight:e})=>e?"space-between":"flex-start"};
675
+ flex-direction: ${({isButtonRight:e})=>e?"row":"column"};
676
+ gap: 8px;
677
+ margin-bottom: 16px;
678
+
679
+ button {
680
+ margin-left: ${({isButtonRight:e})=>e?0:"24px"};
681
+ }
682
+ `,Oe=H.div`
683
+ display: flex;
684
+ align-items: flex-start;
685
+ gap: 8px;
686
+
687
+ svg {
688
+ margin-top: 6px;
689
+ }
690
+ `,qe=H.p`
691
+ color: ${F("neutral",800)};
692
+ font-size: ${({size:e})=>"small"===e?"14px":"18px"};
693
+ line-height: ${({size:e})=>"small"===e?"20px":"28px"};
694
+ font-weight: 400;
695
+ `,Pe=H.p`
696
+ color: ${F("neutral",700)};
697
+ font-size: ${({size:e})=>"small"===e?"12px":"16px"};
698
+ line-height: ${({size:e})=>"small"===e?"16px":"24px"};
699
+ font-weight: 400;
700
+ margin-left: 24px;
701
+ `,Ge=H(Ne)`
702
+ background-color: ${F("neutral",100)};
703
+ border: 1px solid ${F("neutral",300)};
704
+ color: ${F("neutral",700)};
705
+ `,Ue=H(Ne)`
706
+ background-color: ${F("neutral",200)};
707
+ border: 1px solid ${F("neutral",300)};
708
+ color: ${F("neutral",700)};
709
+ `,Ye=H(Ne)`
710
+ background-color: ${F("success",100)};
711
+ border: 1px solid ${F("success",500)};
712
+ color: ${F("success",500)};
713
+
714
+ p {
715
+ color: ${F("success",500)};
716
+ }
717
+ `,We=H(Ne)`
718
+ background-color: ${F("warning",100)};
719
+ border: 1px solid ${F("warning",500)};
720
+ color: ${F("warning",500)};
721
+
722
+ p {
723
+ color: ${F("warning",500)};
724
+ }
725
+ `,Je=H(Ne)`
726
+ background-color: ${F("error",100)};
727
+ border: 1px solid ${F("error",500)};
728
+ color: ${F("error",500)};
729
+
730
+ p {
731
+ color: ${F("error",500)};
732
+ }
733
+ `,Ke=({label:l,caption:n,variant:a,size:o="large",icon:i=e(A,{height:"16px",width:"16px"}),onActionClick:t,actionLabel:d,isButtonRight:c})=>{let p=Ge;return"info-grey"===a?p=Ue:"success"===a?p=Ye:"warning"===a?p=We:"error"===a&&(p=Je),r(p,{isButtonRight:c,size:o,"aria-roledescription":"Note",children:[r("div",{children:[r(Oe,{children:[i,e(qe,{size:o,children:l})]}),e(Pe,{size:o,children:n})]}),d?e(X,{label:d,variant:"info-white"===a||"info-grey"===a?"primary":"secondary",size:"large"===o?"default":"small",onClick:t}):null]})},Qe=H.div`
734
+ width: 100%;
735
+ display: flex;
736
+ justify-content: flex-start;
737
+ align-items: flex-start;
738
+ gap: ${({size:e})=>"small"===e?"12px":"16px"};
739
+ margin-bottom: 20px;
740
+ `,Xe=H.div`
741
+ width: 3px;
742
+ height: 100%;
743
+ min-height: ${({size:e})=>"small"===e?"92px":"116px"};
744
+ background-color: ${F("error",500)};
745
+ `,er=H(w.Label)`
746
+ color: ${({disabled:e})=>F("neutral",e?600:900)};
747
+ font-size: ${({size:e})=>"small"===e?"14px":"16px"};
748
+ font-weight: 400;
749
+ line-height: ${({size:e})=>"small"===e?"20px":"24px"};
750
+ margin-bottom: 2px;
751
+
752
+ .chakra-field__requiredIndicator {
753
+ color: ${({disabled:e})=>e?F("neutral",600):F("error",500)};
754
+ }
755
+ `,rr=H(w.HelperText)`
756
+ color: ${({disabled:e})=>F("neutral",e?500:600)};
757
+ font-size: ${({size:e})=>"small"===e?"12px":"14px"};
758
+ font-weight: 400;
759
+ line-height: ${({size:e})=>"small"===e?"16px":"20px"};
760
+ `,lr=H(w.ErrorText)`
761
+ color: ${F("error",500)};
762
+ font-size: ${({size:e})=>"small"===e?"12px":"14px"};
763
+ font-weight: 700;
764
+ line-height: ${({size:e})=>"small"===e?"16px":"20px"};
765
+ margin-top: 2px;
766
+ `,nr=H(y)`
767
+ height: ${({size:e})=>"small"===e?"28px":"40px"};
768
+ width: 100%;
769
+ border-radius: 4px;
770
+ padding: ${({size:e})=>"small"===e?"4px 8px":"12px"};
771
+ margin-top: 8px;
772
+ background-color: ${F("neutral",100)};
773
+ color: ${F("neutral",800)};
774
+ border: 1px solid ${F("neutral",400)};
775
+ box-shadow: 0px 1px 2px 0px #0000000d;
776
+
777
+ &:focus-visible,
778
+ &[data-focus-visible] {
779
+ border: 2px solid ${F("neutral",700)};
780
+ outline: 2px solid ${F("primary",700)};
781
+ outline-offset: 2px;
782
+ }
783
+
784
+ &:active {
785
+ border: 1px solid ${F("primary",600)} !important;
786
+ outline: none !important;
787
+ box-shadow: 0px 1px 2px 0px #0000000d;
788
+ }
789
+
790
+ &[data-invalid] {
791
+ border: 1px solid ${F("error",500)} !important;
792
+ }
793
+
794
+ &:disabled {
795
+ background-color: ${F("neutral",200)};
796
+ border: 1px solid ${F("neutral",300)} !important;
797
+ }
798
+
799
+ ${({value:e,defaultValue:r})=>e||r?`\n border: 1px solid ${F("neutral",700)};\n `:""}
800
+ `,ar=({label:l,caption:n,placeholder:o,errorMessage:i,required:t,disabled:d,size:c="default",defaultValue:p="",onChange:s,...h})=>{const[x,u]=a(p);return r(Qe,{size:c,className:"text-input-container",children:[i?e(Xe,{size:c}):null,r(w.Root,{required:t,invalid:!!i,gap:"0",children:[l?r(er,{size:c,disabled:d,"aria-label":l,children:[e(w.RequiredIndicator,{"aria-label":"required"}),l,t?"":" (optional)"]}):null,n?e(rr,{size:c,disabled:d,"aria-label":n,children:n}):null,i?e(lr,{size:c,children:i}):null,e(nr,{placeholder:o,disabled:d,size:c,onChange:e=>{u(e.target.value),s&&s(e)},value:x,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...h})]})]})},or=H.div`
801
+ width: 100%;
802
+ display: flex;
803
+ justify-content: flex-start;
804
+ align-items: flex-start;
805
+ gap: ${({size:e})=>"small"===e?"12px":"16px"};
806
+ margin-bottom: 16px;
807
+ `,ir=H.div`
808
+ width: 3px;
809
+ height: 100%;
810
+ min-height: ${({size:e,hasHelperText:r,hasErrorMessage:l})=>((e,r,l)=>{const n="small"===e;return r&&l?n?"192px":"208px":r?n?"174px":"186px":l?n?"168px":"180px":n?"169px":"180px"})(e,r,l)};
811
+ background-color: ${F("error",500)};
812
+ `,tr=H(w.Label)`
813
+ color: ${({disabled:e})=>F("neutral",e?600:900)};
814
+ font-size: ${({size:e})=>"small"===e?"14px":"16px"};
815
+ font-weight: 400;
816
+ line-height: ${({size:e})=>"small"===e?"20px":"24px"};
817
+ margin-bottom: 2px;
818
+
819
+ .chakra-field__requiredIndicator {
820
+ color: ${({disabled:e})=>e?F("neutral",600):F("error",500)};
821
+ }
822
+ `,dr=H(w.HelperText)`
823
+ color: ${({disabled:e})=>F("neutral",e?500:600)};
824
+ font-size: ${({size:e})=>"small"===e?"12px":"14px"};
825
+ font-weight: 400;
826
+ line-height: ${({size:e})=>"small"===e?"16px":"20px"};
827
+ `,cr=H(w.HelperText)`
828
+ color: ${F("neutral",600)};
829
+ font-size: 12px;
830
+ font-weight: 400;
831
+ line-height: 16px;
832
+ margin-top: 8px;
833
+ `,pr=H(w.ErrorText)`
834
+ color: ${F("error",500)};
835
+ font-size: 14px;
836
+ font-weight: 700;
837
+ line-height: 20px;
838
+ margin-top: 2px;
839
+ `,sr=H(k)`
840
+ height: 104px;
841
+ width: 100%;
842
+ border-radius: 4px;
843
+ padding: ${({size:e})=>"small"===e?"8px":"12px"};
844
+ margin-top: 8px;
845
+ background-color: ${F("neutral",100)};
846
+ color: ${F("neutral",800)};
847
+ border: 1px solid ${F("neutral",400)};
848
+ box-shadow: 0px 1px 2px 0px #0000000d;
849
+
850
+ &:focus-visible,
851
+ &[data-focus-visible] {
852
+ border: 2px solid ${F("neutral",700)};
853
+ outline: 2px solid ${F("primary",700)};
854
+ outline-offset: 2px;
855
+ }
856
+
857
+ &:active {
858
+ border: 1px solid ${F("primary",600)} !important;
859
+ outline: none !important;
860
+ box-shadow: 0px 1px 2px 0px #0000000d;
861
+ }
862
+
863
+ &[data-invalid] {
864
+ border: 1px solid ${F("error",500)} !important;
865
+ }
866
+
867
+ &:disabled {
868
+ background-color: ${F("neutral",200)};
869
+ border: 1px solid ${F("neutral",300)} !important;
870
+ }
871
+
872
+ ${({value:e,defaultValue:r})=>e||r?`\n border: 1px solid ${F("neutral",700)};\n `:""}
873
+ `,hr=({label:l,caption:n,placeholder:i,errorMessage:t,required:d,disabled:c,size:p="default",defaultValue:s="",onChange:h,minLength:x,maxLength:u,...g})=>{const[b,m]=a(s),[f,$]=a(!1),[v,C]=a(!1),[y,k]=a("");o((()=>{const{length:e}=s;x&&e<x&&e>0&&($(e<x),C(!1),k(`Enter at least ${x-e} characters`)),u&&e>u&&($(!1),C(e>u),k(`You have ${u-e} characters remaining`))}),[]);return r(or,{size:p,children:[t||f||v?e(ir,{size:p,hasHelperText:!!y,hasErrorMessage:!!t}):null,r(w.Root,{required:d,invalid:!!t||f||v,gap:"0",children:[l?r(tr,{size:p,disabled:c,"aria-label":l,children:[e(w.RequiredIndicator,{"aria-label":"required"}),l,d?"":" (optional)"]}):null,n?e(dr,{size:p,disabled:c,"aria-label":n,children:n}):null,t?e(pr,{children:t}):null,e(sr,{placeholder:i,disabled:c,size:p,onChange:e=>{m(e.target.value);const{length:r}=e.target.value;x&&u?($(r<x),C(r>u),k(`You have ${u-r} characters remaining`)):x?($(r<x),C(!1),k(r<x?`Enter at least ${x-r} characters`:"")):u&&(C(r>u),$(!1),k(`You have ${u-r} characters remaining`)),h&&h(e)},value:b,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...g}),f&&x?r(pr,{style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},children:["You need ",x-b.length," more characters"]}):null,v&&u?r(pr,{style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},children:["You have ",b.length-u," characters too many"]}):null,!y||v||f?null:e(cr,{"aria-label":y,children:y})]})]})},xr=H(h)`
874
+ width: 20px !important;
875
+ padding: 0 !important;
876
+ min-width: 20px !important;
877
+ height: 20px;
878
+ border-radius: 2px;
879
+ background-color: transparent;
880
+
881
+ svg {
882
+ width: 15px;
883
+ height: 15px;
884
+
885
+ path {
886
+ fill: ${F("neutral",800)};
887
+ }
888
+ }
889
+
890
+ &:hover {
891
+ background-color: color-mix(
892
+ in srgb,
893
+ ${F("primary",500)} 20%,
894
+ transparent
895
+ );
896
+ }
897
+
898
+ &:active {
899
+ background-color: color-mix(
900
+ in srgb,
901
+ ${F("primary",500)} 40%,
902
+ transparent
903
+ );
904
+ }
905
+
906
+ &:focus-visible {
907
+ outline-color: ${F("primary",700)};
908
+ }
909
+
910
+ &:disabled {
911
+ background-color: transparent;
912
+
913
+ svg {
914
+ path {
915
+ fill: ${F("neutral",500)};
916
+ }
917
+ }
918
+ }
919
+ `,ur=({icon:r,disabled:l,...n})=>e(xr,{"aria-label":n["aria-label"],disabled:l,...n,children:r}),gr=H(ur)`
920
+ width: 20px !important;
921
+ padding: 0 !important;
922
+ min-width: 20px !important;
923
+ height: 20px;
924
+ border-radius: 2px;
925
+ background-color: ${F("neutral",300)};
926
+
927
+ svg {
928
+ width: 10px;
929
+ height: 10px;
930
+
931
+ path {
932
+ fill: ${F("neutral",800)};
933
+ }
934
+ }
935
+
936
+ &:hover {
937
+ background-color: ${F("neutral",300)};
938
+ box-shadow: 0px 1px 2px -1px #0000001a;
939
+ box-shadow: 0px 1px 3px 0px #0000001a;
940
+ }
941
+
942
+ &:active {
943
+ background-color: ${F("neutral",400)};
944
+ box-shadow: 0px 1px 2px -1px #0000001a;
945
+ box-shadow: 0px 1px 3px 0px #0000001a;
946
+ }
947
+
948
+ &:focus-visible {
949
+ outline-color: ${F("primary",700)};
950
+ }
951
+
952
+ &:disabled {
953
+ background-color: ${F("neutral",200)} !important;
954
+ box-shadow: none;
955
+
956
+ svg {
957
+ path {
958
+ fill: ${F("neutral",400)};
959
+ }
960
+ }
961
+ }
962
+ `,br=({disabled:r,...l})=>e(gr,{icon:e(S,{}),"aria-label":l["aria-label"]||"Close",disabled:r,...l}),mr=H(z.Root)`
963
+ height: 60px;
964
+ padding: 40px 12px;
965
+ `,fr=H(z.Thumb)`
966
+ height: 20px;
967
+ width: 20px;
968
+ background-color: ${F("primary",500)};
969
+ border: 2px solid ${F("primary",700)};
970
+ box-shadow: 0px 1px 2px 0px #0000000d;
971
+
972
+ &:hover,
973
+ &[data-hover] {
974
+ outline: 4px solid
975
+ color-mix(in srgb, ${F("primary",500)} 20%, transparent);
976
+ }
977
+
978
+ &[data-dragging] {
979
+ outline: 4px solid
980
+ color-mix(in srgb, ${F("primary",500)} 40%, transparent);
981
+
982
+ div {
983
+ display: flex;
984
+ }
985
+ }
986
+
987
+ &:focus-visible,
988
+ &[data-focus-visible] {
989
+ box-shadow: none;
990
+ outline: 2px solid ${F("primary",700)};
991
+ outline-offset: 2px;
992
+ }
993
+
994
+ &[data-disabled] {
995
+ background-color: ${F("neutral",400)};
996
+ border: none;
997
+ box-shadow: none;
998
+ outline: none;
999
+ cursor: not-allowed;
1000
+ }
1001
+ `,$r=H.div`
1002
+ font-size: 14px;
1003
+ line-height: 20px;
1004
+ color: ${F("neutral",800)};
1005
+ height: 28px;
1006
+ background-color: ${F("neutral",100)};
1007
+ border: 1px solid ${F("neutral",300)};
1008
+ border-radius: 8px;
1009
+ padding: 0 8px;
1010
+ display: none;
1011
+ justify-content: center;
1012
+ align-items: center;
1013
+ position: relative;
1014
+ top: -30px;
1015
+ `,vr=H(z.Track)`
1016
+ background-color: ${F("neutral",300)};
1017
+ border: none;
1018
+ box-shadow: none;
1019
+ `,Cr=H(z.Range)`
1020
+ background-color: ${F("primary",500)};
1021
+ border: 1px solid ${F("primary",700)};
1022
+ border-radius: 8px;
1023
+
1024
+ &:disabled,
1025
+ &[disabled],
1026
+ &[data-disabled],
1027
+ &[aria-disabled='true'] {
1028
+ --chakra-colors-border-emphasized: ${F("neutral",400)};
1029
+ background-color: ${F("neutral",400)};
1030
+ border: none;
1031
+ }
1032
+ `,wr=H(z.Marker)`
1033
+ font-size: 12px;
1034
+ line-height: 16px;
1035
+ color: ${F("neutral",800)};
1036
+
1037
+ p {
1038
+ position: relative;
1039
+ top: -40px;
1040
+ }
1041
+
1042
+ &[data-state='under-value'] {
1043
+ .chakra-slider__markerIndicator {
1044
+ background-color: ${({isCentred:e})=>F("neutral",e?500:200)};
1045
+ }
1046
+
1047
+ &[data-disabled] {
1048
+ .chakra-slider__markerIndicator {
1049
+ background-color: ${({isCentred:e})=>F("neutral",e?400:500)};
1050
+ }
1051
+ }
1052
+ }
1053
+
1054
+ &[data-state='over-value'] {
1055
+ .chakra-slider__markerIndicator {
1056
+ background-color: ${F("neutral",500)};
1057
+ }
1058
+
1059
+ &[data-disabled] {
1060
+ .chakra-slider__markerIndicator {
1061
+ background-color: ${F("neutral",400)};
1062
+ }
1063
+ }
1064
+ }
1065
+
1066
+ ${({isMiddleMark:e})=>e?`\n --ty: -6px !important;\n\n .chakra-slider__markerIndicator {\n height: 16px;\n width: 4px;\n background-color: ${F("primary",700)} !important;\n }\n\n &[data-disabled] {\n .chakra-slider__markerIndicator {\n background-color: ${F("neutral",400)} !important;\n }\n }\n `:""};
1067
+ `,yr=l=>{const{value:n}=l;return e(L,{each:n,children:(l,n)=>r(fr,{index:n,children:[e($r,{children:l}),e(z.HiddenInput,{})]},n)})},kr=n.forwardRef(((l,n)=>{const{marks:a,isCentred:o}=l;return a?.length?e(z.MarkerGroup,{ref:n,children:a.map(((l,n)=>{const a="number"==typeof l?l:l.value,i="number"==typeof l?void 0:l.label;return r(wr,{value:a,isCentred:o,isMiddleMark:o&&1===n,children:[e(z.MarkerIndicator,{}),e("p",{children:i})]},a)}))}):null})),zr=n.forwardRef(((l,n)=>{const{marks:o,onValueChange:i,isCentred:t,...d}=l,[c,p]=a(l.defaultValue||l.value||[0]);let s=o?.map((e=>"number"==typeof e?{value:e,label:void 0}:e));if(t){const e=l.min||0,r=l.max||100;s=[e,(e+r)/2,r].map((e=>({value:e,label:void 0})))}const h=!!s?.some((e=>e.label));return e(mr,{ref:n,thumbAlignment:"center",onValueChange:e=>{p(e.value),i&&i(e)},origin:t?"center":"start",...d,children:r(z.Control,{"data-has-mark-label":h||void 0,children:[e(vr,{children:e(Cr,{})}),e(yr,{value:c}),e(kr,{marks:s,isCentred:t})]})})})),Lr=H.div`
1068
+ width: 20px;
1069
+ height: 20px;
1070
+ border-radius: 50%;
1071
+ background-color: ${({color:e})=>e};
1072
+ border: 1px solid ${F("neutral",400)};
1073
+ `,Ir=H.div`
1074
+ width: 20px;
1075
+ height: 8px;
1076
+ border-radius: 2px;
1077
+ background-color: ${({color:e})=>e};
1078
+ border: 1px solid ${F("neutral",400)};
1079
+ `,_r=H.div`
1080
+ width: 20px;
1081
+ height: 20px;
1082
+ border-radius: 50%;
1083
+ background-color: ${({color:e})=>e};
1084
+ display: flex;
1085
+ justify-content: center;
1086
+ align-items: center;
1087
+
1088
+ svg {
1089
+ width: 10px;
1090
+ height: 10px;
1091
+ }
1092
+ `,Hr=H.div`
1093
+ min-height: 36px;
1094
+ width: 100%;
1095
+ display: flex;
1096
+ justify-content: space-between;
1097
+ gap: 8px;
1098
+ margin-bottom: 16px;
1099
+ `,Mr=H.div`
1100
+ display: flex;
1101
+ gap: 8px;
1102
+ `,Vr=H.p`
1103
+ font-size: 14px;
1104
+ line-height: 20px;
1105
+ font-weight: 400;
1106
+ color: ${F("neutral",800)};
1107
+ `,Fr=H.p`
1108
+ font-size: 12px;
1109
+ line-height: 16px;
1110
+ font-weight: 400;
1111
+ color: ${F("neutral",700)};
1112
+ `,Er=H.div`
1113
+ button {
1114
+ height: 25px;
1115
+ font-size: 12px;
1116
+ line-height: 16px;
1117
+ font-weight: 400;
1118
+ color: ${F("neutral",600)};
1119
+ padding: 0 10px;
1120
+ }
1121
+ `,Tr=({type:l,label:a,caption:o,color:i,onActionClick:t,showActionButton:d,pointIcon:c})=>{const[p,s]=n.useState(!0),h="line"===l,x="point"===l;return r(Hr,{children:[r(Mr,{children:[r("div",{children:["raster"===l&&e(Lr,{color:i}),h&&e(Ir,{color:i}),x&&e(_r,{color:i,children:c})]}),r("div",{children:[e(Vr,{"aria-label":a,children:a}),e(Fr,{"aria-label":o,children:o})]})]}),t&&d?e(Er,{children:e(X,{variant:"borderless",label:p?"Hide":"Show",rightIcon:e(p?O:N,{}),"aria-label":"Show or Hide action",onClick:()=>{s(!p),t&&t()}})}):null]})},Rr=H(C.Item)`
1122
+ margin-bottom: 16px;
1123
+ border: 1px solid ${F("neutral",300)};
1124
+ border-radius: 4px;
1125
+ box-shadow: 0px 1px 2px 0px #0000000d;
1126
+ `,Zr=H(C.ItemTrigger)`
1127
+ padding: 6px 8px;
1128
+ align-items: center;
1129
+ background-color: ${F("neutral",100)};
1130
+
1131
+ &[aria-expanded='true'] {
1132
+ border-bottom: 1px solid ${F("neutral",300)};
1133
+ border-bottom-right-radius: 0px;
1134
+ border-bottom-left-radius: 0px;
1135
+ }
1136
+
1137
+ svg {
1138
+ height: 10px;
1139
+ width: 10px;
1140
+ }
1141
+ `,Br=H.p`
1142
+ font-size: 12px;
1143
+ font-weight: 700;
1144
+ line-height: 16px;
1145
+ color: ${F("neutral",700)};
1146
+ `,Dr=H(C.ItemContent)`
1147
+ padding: 12px 8px;
1148
+ display: flex;
1149
+ flex-direction: column;
1150
+
1151
+ .layer-parameters-item-child {
1152
+ padding-bottom: 16px;
1153
+ border-bottom: 1px solid ${F("neutral",300)};
1154
+ margin-bottom: 16px;
1155
+
1156
+ &:last-child {
1157
+ padding-bottom: 0px;
1158
+ border-bottom: none;
1159
+ margin-bottom: 0px;
1160
+ }
1161
+ }
1162
+ `,Ar=({label:l,children:n,openedByDefault:a})=>e("div",{children:e(C.Root,{defaultValue:a?[l]:[],multiple:!0,children:r(Rr,{value:l,children:[r(Zr,{children:[e(x,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:e(Br,{children:l})}),e(C.ItemIndicator,{display:"flex",children:e(j,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),e(Dr,{children:i.map(n,(r=>e("div",{className:"layer-parameters-item-child",children:r})))})]})})}),jr=H.div`
1163
+ width: 100%;
1164
+ display: flex;
1165
+ flex-direction: column;
1166
+ margin-bottom: 16px;
1167
+ `,Sr=H.div`
1168
+ height: 20px;
1169
+ width: 100%;
1170
+ margin-bottom: 8px;
1171
+ border: 1px solid ${F("neutral",300)};
1172
+ border-radius: 4px;
1173
+ ${({gradient:e})=>e?`background: ${e};`:""}
1174
+ `,Nr=H.div`
1175
+ height: 20px;
1176
+ width: 100%;
1177
+ margin-bottom: 8px;
1178
+ border: 1px solid ${F("neutral",300)};
1179
+ border-radius: 4px;
1180
+ display: flex;
1181
+ align-items: center;
1182
+
1183
+ div:first-of-type {
1184
+ border-top-left-radius: 3px;
1185
+ border-bottom-left-radius: 3px;
1186
+ }
1187
+
1188
+ div:last-of-type {
1189
+ border-top-right-radius: 3px;
1190
+ border-bottom-right-radius: 3px;
1191
+ }
1192
+ `,Or=H.div`
1193
+ display: flex;
1194
+ justify-content: space-between;
1195
+ align-items: flex-start;
1196
+ `,qr=H.p`
1197
+ width: 100%;
1198
+ font-size: 12px;
1199
+ line-height: 16px;
1200
+ font-weight: 400;
1201
+ color: ${F("neutral",800)};
1202
+ text-align: center;
1203
+ `,Pr=H.p`
1204
+ font-size: 12px;
1205
+ line-height: 16px;
1206
+ font-weight: 400;
1207
+ color: ${F("neutral",600)};
1208
+ text-align: center;
1209
+ `,Gr=e=>{const r=e.map(((r,l)=>`${l/(e.length-1)*100}%`));return`linear-gradient(to right, ${e.map(((e,l)=>`${e} ${r[l]}`)).join(", ")})`},Ur=({colors:l,values:n,subLabels:a,isGradient:o})=>r(jr,{children:[o?e(Sr,{gradient:Gr(l)}):e(Nr,{children:l?.map(((r,l)=>e("div",{style:{backgroundColor:r,width:"100%",height:"100%"}},`${r}-${n?.[l]}`)))}),e(Or,{children:n?.map((r=>e("div",{style:{width:o?"auto":`calc(100% / ${n.length})`,display:"flex",justifyContent:"center"},children:e(qr,{children:r},r)})))}),a&&a.length?e(Or,{children:a.map((r=>e("div",{style:{width:o?"auto":`calc(100% / ${n.length})`,display:"flex",justifyContent:"center"},children:e(Pr,{style:{width:"100%"},children:r},r)})))}):null]}),Yr=H.div`
1210
+ padding: 12px;
1211
+ padding-bottom: 20px;
1212
+ display: flex;
1213
+ gap: 12px;
1214
+ border-bottom: 1px solid ${F("neutral",300)};
1215
+ `,Wr=H.div`
1216
+ display: flex;
1217
+ flex-direction: column;
1218
+
1219
+ svg {
1220
+ path {
1221
+ fill: ${F("neutral",500)} !important;
1222
+ }
1223
+ }
1224
+ `,Jr=H.div`
1225
+ display: flex;
1226
+ align-items: flex-start;
1227
+ justify-content: space-between;
1228
+ gap: 12px;
1229
+ margin-bottom: 16px;
1230
+ `,Kr=H.p`
1231
+ font-size: 16px;
1232
+ line-height: 24px;
1233
+ font-weight: 400;
1234
+ text-align: left;
1235
+ color: ${F("neutral",800)};
1236
+ `,Qr=H.p`
1237
+ font-size: 14px;
1238
+ line-height: 20px;
1239
+ font-weight: 400;
1240
+ text-align: left;
1241
+ color: ${F("neutral",600)};
1242
+ `,Xr=H.div`
1243
+ display: flex;
1244
+ justify-content: space-between;
1245
+
1246
+ button {
1247
+ width: 110px;
1248
+ }
1249
+ `,el=H(I.Content)`
1250
+ width: 234px;
1251
+ border: 1px solid ${F("neutral",600)};
1252
+ border-radius: 4px;
1253
+ `,rl=H(I.Body)`
1254
+ padding: 12px;
1255
+ `,ll=H.p`
1256
+ font-size: 14px;
1257
+ line-height: 20px;
1258
+ font-weight: 400;
1259
+ text-align: left;
1260
+ color: ${F("neutral",900)};
1261
+ `,nl=H.div`
1262
+ display: flex;
1263
+ align-items: center;
1264
+ gap: 12px;
1265
+
1266
+ .text-input-container {
1267
+ width: 70px;
1268
+ margin: 0px;
1269
+
1270
+ .chakra-input {
1271
+ padding: 4px;
1272
+ }
1273
+ }
1274
+
1275
+ .chakra-slider__root {
1276
+ padding: 0 12px;
1277
+ height: 30px;
1278
+ margin-top: 18px;
1279
+ width: 100%;
1280
+ }
1281
+ `,al=({defaultValue:l,onOpacityChanged:n})=>{const[o,i]=a(l);return r(I.Root,{positioning:{placement:"bottom-end"},children:[e(I.Trigger,{asChild:!0,children:e(X,{label:"Opacity",size:"small",variant:"secondary",leftIcon:e(A,{})})}),e(I.Positioner,{children:e(el,{children:r(rl,{children:[e(ll,{children:"Opacity"}),r(nl,{children:[e(ar,{"aria-label":"Opacity",min:"0",max:"100",value:`${o}%`,onChange:e=>{const r=e.target.value||"0";let l=parseInt(r,10);l=Number.isNaN(l)?0:l,l=l<0?0:l,l=l>100?100:l,i(l),n&&n(l)},className:"opacity-control-text-input"}),e(zr,{min:0,max:100,value:[o],onValueChangeEnd:({value:e})=>{i(e[0]),n&&n(e[0])}})]})]})})})]})},ol=({layerName:l,dataUnit:n,onDrag:a,onUpClick:o,onDownClick:i,onRemoveClick:t,children:d,onInfoClick:c,onOpacityChanged:p})=>r(Yr,{children:[r(Wr,{children:[e(ur,{icon:e(q,{}),"aria-label":"Drag and drop",onClick:a}),r("div",{style:{display:"flex",flexDirection:"column",marginTop:"12px",gap:"12px"},children:[e(ur,{icon:e(j,{rotate:"180"}),"aria-label":"Up",onClick:o}),e(ur,{icon:e(j,{}),"aria-label":"Down",onClick:i})]})]}),r("div",{children:[r(Jr,{children:[r("div",{children:[e(Kr,{children:l}),e(Qr,{children:n})]}),e(X,{label:"Remove",size:"small",variant:"secondary",rightIcon:e(S,{}),onClick:t})]}),d,r(Xr,{children:[e(X,{label:"About data",size:"small",variant:"secondary",leftIcon:e(A,{}),onClick:c}),e(al,{defaultValue:80,onOpacityChanged:p})]})]})]}),il=H.div`
1282
+ width: 290px;
1283
+ box-shadow: 0px 2px 4px -2px #0000001a;
1284
+ box-shadow: 0px 4px 6px -1px #0000001a;
1285
+ `,tl=({legendContent:l,analysisContent:n,onTabClick:o})=>{const[t,d]=a("legend-tab"),[c]=a(i.map(l,((e,r)=>({id:r,child:e,sequence:r})))||[]);return r(il,{children:[e(be,{tabs:[{label:"Legend",value:"legend-tab",icon:e(P,{})},{label:"Analysis",value:"analysis-tab",icon:e(G,{})}],onTabClick:e=>{d(e),o&&o(e)}}),"legend-tab"===t?e("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:c.map((e=>e.child))}):null,"analysis-tab"===t?e("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:n}):null]})};t.createRoot(document.getElementById("root")).render(e(n.StrictMode,{children:e(_,{value:V,children:e((()=>e("div",{className:"App",children:e("h1",{children:"Welcome to WRI OS"})})),{})})}));export{X as Button,ke as Checkbox,br as CloseButton,ur as IconButton,Ke as InlineMessage,Re as LayerGroup,Ze as LayerGroupContainer,we as LayerItem,Se as LayerPanel,Ar as LayerParameters,ol as LegendItem,tl as LegendPanel,oe as NavigationRail,Tr as QualitativeLegend,te as Radio,de as RadioGroup,Ur as ScaleLegend,zr as Slider,U as Switch,be as TabBar,Te as Tag,ar as TextInput,hr as Textarea};
1286
+ //# sourceMappingURL=index.js.map