@worldresources/wri-design-systems 0.0.1 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
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`
1
+ import{jsx as e,jsxs as l,Fragment as a}from"react/jsx-runtime";import n,{useState as i,useEffect as r,Children as o,cloneElement as t}from"react";import d from"react-dom/client";import{createSystem as c,defaultConfig as s,Switch as p,Icon as h,Button as u,Box as x,Spinner as b,Tabs as g,Collapsible as m,RadioGroup as f,HStack as v,Checkbox as C,Tag as y,Accordion as w,Field as $,Input as k,Textarea as L,Slider as z,For as I,Popover as D,Stack as B,ChakraProvider as F}from"@chakra-ui/react";import V from"@emotion/styled";!function(e,l){void 0===l&&(l={});var a=l.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===a&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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\n/* .app-container {\n margin-left: 364px;\n transition: margin-left 0.1s;\n padding: 20px;\n}\n\n.app-container.sidebar-closed {\n margin-left: 64px;\n transition: margin-left 0.1s;\n} */\n\n/* ::-webkit-scrollbar {\n width: 5px;\n}\n\n::-webkit-scrollbar-track {\n box-shadow: inset 0 0 5px grey; \n border-radius: 5px;\n}\n \n::-webkit-scrollbar-thumb {\n background: red; \n border-radius: 5px;\n}\n\n::-webkit-scrollbar-thumb:hover {\n background: #b30000; \n} */\n");const A={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"}}},M=c(s,{theme:{tokens:{colors:A}}}),T=(e,l)=>M.tokens.getVar(`colors.${e}.${l}`)||A?.[e]?.[l]?.value,_=V.div`
2
2
  display: flex;
3
3
  align-items: center;
4
- `,T=H(p.Root)`
4
+ `,E=V(p.Root)`
5
5
  .chakra-switch__control-container {
6
6
  width: 42px;
7
7
  height: 26px;
@@ -9,11 +9,11 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
9
9
  display: flex;
10
10
  justify-content: center;
11
11
  align-items: center;
12
- background-color: ${F("neutral",600)};
12
+ background-color: ${T("neutral",600)};
13
13
  }
14
14
 
15
15
  &[data-state='checked'] .chakra-switch__control-container {
16
- background-color: ${F("primary",700)};
16
+ background-color: ${T("primary",700)};
17
17
  }
18
18
 
19
19
  &[data-disabled] .chakra-switch__control-container {
@@ -25,22 +25,22 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
25
25
  width: 40px;
26
26
  display: flex;
27
27
  align-items: center;
28
- background-color: ${F("neutral",500)};
28
+ background-color: ${T("neutral",500)};
29
29
 
30
30
  &:focus-visible,
31
31
  &[data-focus-visible] {
32
32
  box-shadow: none;
33
33
  outline: none;
34
- outline: 2px solid ${F("primary",700)};
34
+ outline: 2px solid ${T("primary",700)};
35
35
  outline-offset: 3px;
36
36
  }
37
37
 
38
38
  &[data-state='checked'] {
39
- background-color: ${F("primary",500)};
39
+ background-color: ${T("primary",500)};
40
40
  }
41
41
 
42
42
  &[data-disabled] {
43
- background-color: ${F("neutral",300)};
43
+ background-color: ${T("neutral",300)};
44
44
  }
45
45
  }
46
46
 
@@ -49,19 +49,19 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
49
49
  width: 12px;
50
50
 
51
51
  path {
52
- fill: ${F("primary",700)};
52
+ fill: ${T("primary",700)};
53
53
  }
54
54
  }
55
55
 
56
56
  &:hover,
57
57
  &[data-hover] {
58
58
  outline: 9px solid
59
- color-mix(in srgb, ${F("primary",500)} 20%, transparent);
59
+ color-mix(in srgb, ${T("primary",500)} 20%, transparent);
60
60
  }
61
61
 
62
62
  &[data-active] {
63
63
  outline: 9px solid
64
- color-mix(in srgb, ${F("primary",500)} 40%, transparent);
64
+ color-mix(in srgb, ${T("primary",500)} 40%, transparent);
65
65
  }
66
66
 
67
67
  &[data-disabled] {
@@ -70,13 +70,13 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
70
70
  &[data-state='checked'] {
71
71
  svg {
72
72
  path {
73
- fill: ${F("neutral",500)};
73
+ fill: ${T("neutral",500)};
74
74
  }
75
75
  }
76
76
  }
77
77
  }
78
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)`
79
+ `,H=a=>e(h,{...a,children:l("svg",{viewBox:"0 0 16 17",children:[l("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)"})})})]})}),R=a=>e(h,{...a,children:l("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"})]})}),Z=l=>e(h,{...l,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"})})}),S=l=>e(h,{...l,children:e("svg",{viewBox:"0 0 12 12",height:"12px",width:"12px",children:e("path",{d:"M0 6.75V5.25H12V6.75H0Z",fill:"auto"})})}),j=l=>e(h,{...l,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"})})}),N=l=>e(h,{...l,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"})})}),O=l=>e(h,{...l,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"})})}),P=l=>e(h,{...l,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 16C7.45 16 6.97917 15.8042 6.5875 15.4125C6.19583 15.0208 6 14.55 6 14C6 13.45 6.19583 12.9792 6.5875 12.5875C6.97917 12.1958 7.45 12 8 12C8.55 12 9.02083 12.1958 9.4125 12.5875C9.80417 12.9792 10 13.45 10 14C10 14.55 9.80417 15.0208 9.4125 15.4125C9.02083 15.8042 8.55 16 8 16ZM8 10C7.45 10 6.97917 9.80417 6.5875 9.4125C6.19583 9.02083 6 8.55 6 8C6 7.45 6.19583 6.97917 6.5875 6.5875C6.97917 6.19583 7.45 6 8 6C8.55 6 9.02083 6.19583 9.4125 6.5875C9.80417 6.97917 10 7.45 10 8C10 8.55 9.80417 9.02083 9.4125 9.4125C9.02083 9.80417 8.55 10 8 10ZM8 4C7.45 4 6.97917 3.80417 6.5875 3.4125C6.19583 3.02083 6 2.55 6 2C6 1.45 6.19583 0.979167 6.5875 0.5875C6.97917 0.195833 7.45 0 8 0C8.55 0 9.02083 0.195833 9.4125 0.5875C9.80417 0.979167 10 1.45 10 2C10 2.55 9.80417 3.02083 9.4125 3.4125C9.02083 3.80417 8.55 4 8 4Z",fill:"currentColor"})})}),q=l=>e(h,{...l,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"})})}),U=a=>e(h,{...a,children:l("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"})})})]})}),G=l=>e(h,{...l,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"})})}),W=a=>e(h,{...a,children:l("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)"})})})]})}),Y=l=>e(h,{...l,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"})})}),K=({name:a,defaultChecked:n=!1,onChange:i,disabled:r=!1,isLabelOnLeft:o=!1,children:t,...d})=>e(_,{children:l(E,{id:a,name:a,"aria-label":d["aria-label"]||a,defaultChecked:n,onCheckedChange:({checked:e})=>{i&&i(a,e)},disabled:r,...d,children:[o&&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(Z,{})})})})}),o||null==t?null:e(p.Label,{children:t})]})}),J=V(u)`
80
80
  width: auto;
81
81
  height: ${({size:e})=>"small"===e?"28px":"40px"};
82
82
  font-size: ${({size:e})=>"small"===e?"12px":"16px"};
@@ -94,34 +94,34 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
94
94
  width: ${({size:e})=>"small"===e?"10px":"16px"};
95
95
  height: ${({size:e})=>"small"===e?"10px":"16px"};
96
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`
97
+ `,Q=V(J)`
98
+ ${({disabled:e})=>e?`\n background-color: ${T("neutral",300)};\n border: 1px solid ${T("neutral",400)};\n color: ${T("neutral",500)};\n\n &:hover {\n background-color: ${T("neutral",300)} !important;\n }\n `:`\n background-color: ${T("primary",500)};\n border: 1px solid ${T("primary",600)};\n color: ${T("primary",900)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n\n &:hover {\n background-color: ${T("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: ${T("primary",600)} !important;\n border: 1px solid ${T("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: ${T("primary",700)};\n background-color: ${T("primary",500)};\n border: 2px solid ${T("primary",500)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n }\n `};
99
+ `,X=V(J)`
100
+ ${({disabled:e})=>e?`\n background-color: ${T("neutral",200)};\n border: 1px solid ${T("neutral",300)};\n color: ${T("neutral",500)};\n\n &:hover {\n background-color: ${T("neutral",200)} !important;\n }\n `:`\n background-color: ${T("neutral",100)};\n border: 1px solid ${T("neutral",300)};\n color: ${T("neutral",700)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n\n &:hover {\n background-color: ${T("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: ${T("neutral",200)} !important;\n border: 1px solid ${T("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: ${T("primary",700)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n }\n `};
101
+ `,ee=V(J)`
102
+ ${({disabled:e})=>e?`\n background-color: transparent;\n color: ${T("neutral",500)};\n\n &:hover {\n background-color: transparent !important;\n }\n `:`\n background-color: transparent;\n border: none;\n color: ${T("neutral",800)};\n box-shadow: none;\n\n &:hover {\n background-color: color-mix(in srgb, ${T("primary",500)} 20%, transparent);\n }\n\n &:active {\n outline: none;\n background-color: color-mix(in srgb, ${T("primary",500)} 40%, transparent);\n box-shadow: 0px 4px 6px -1px #0000001A;\n }\n\n &:focus-visible {\n outline-color: ${T("primary",700)};\n box-shadow: 0px 1px 2px 0px #0000000D;\n }\n `};
103
+ `,le=V(J)`
104
+ ${({disabled:e})=>e?`\n background-color: ${T("neutral",200)};\n border: 1px solid ${T("neutral",300)};\n color: ${T("neutral",500)};\n\n &:hover {\n background-color: ${T("neutral",200)} !important;\n }\n `:`\n background-color: transparent;\n border: 1px solid ${T("primary",800)};\n color: ${T("primary",800)};\n\n &:hover {\n background-color: ${T("primary",100)};\n color: ${T("primary",900)};\n }\n\n &:active {\n outline: none;\n background-color: ${T("primary",200)} !important;\n border: 1px solid ${T("primary",900)} !important;\n color: ${T("primary",900)};\n }\n\n &:focus-visible {\n outline-color: ${T("primary",800)};\n background-color: ${T("primary",100)};\n }\n `};
105
+ `,ae=({label:a,loading:n,variant:i="primary",size:r="default",disabled:o,leftIcon:t,rightIcon:d,...c})=>{let s=Q;"secondary"===i?s=X:"borderless"===i?s=ee:"outline"===i&&(s=le);return l(s,{"aria-label":(()=>{let e=c["aria-label"]||a;return n&&(e="Loading"),e})(),size:r,disabled:o||n,"aria-disabled":o||n,...c,children:[t&&!n?e(x,{marginRight:a?2:0,display:"flex",alignItems:"center",children:t}):null,!d&&n?e(b,{size:"sm",marginRight:a?2:0}):null,a,d&&!n?e(x,{marginLeft:a?2:0,display:"flex",alignItems:"center",children:d}):null,d&&n?e(b,{size:"sm",marginLeft:a?2:0}):null]})},ne=V.div`
106
106
  width: 64px;
107
107
  height: 100vh;
108
108
  z-index: 100;
109
109
  position: fixed;
110
110
  top: 0;
111
111
  left: 0;
112
- border-right: 1px solid ${F("neutral",300)};
113
- background-color: ${F("neutral",200)};
112
+ border-right: 1px solid ${T("neutral",300)};
113
+ background-color: ${T("neutral",200)};
114
114
  display: flex;
115
115
  flex-direction: column;
116
116
  justify-content: space-between;
117
- `,re=H(g.Trigger)`
117
+ `,ie=V(g.Trigger)`
118
118
  width: 64px;
119
119
  height: 64px;
120
- background-color: ${F("neutral",200)};
120
+ background-color: ${T("neutral",200)};
121
121
  border-radius: initial;
122
122
  border-style: solid;
123
123
  border-width: 1px 1px 0px 0px;
124
- border-color: ${F("neutral",300)};
124
+ border-color: ${T("neutral",300)};
125
125
  cursor: pointer;
126
126
  border-left: 2px solid transparent;
127
127
  padding: 0 5px;
@@ -130,16 +130,16 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
130
130
  justify-content: center;
131
131
 
132
132
  &:hover {
133
- background-color: ${F("neutral",100)};
133
+ background-color: ${T("neutral",100)};
134
134
  }
135
135
 
136
136
  &:active {
137
- background-color: ${F("neutral",300)} !important;
137
+ background-color: ${T("neutral",300)} !important;
138
138
  }
139
139
 
140
140
  &:focus-visible {
141
- background-color: ${F("neutral",200)};
142
- outline-color: ${F("primary",700)};
141
+ background-color: ${T("neutral",200)};
142
+ outline-color: ${T("primary",700)};
143
143
  outline-offset: 2px;
144
144
  box-shadow: none;
145
145
  }
@@ -149,20 +149,20 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
149
149
  font-weight: 400;
150
150
  line-height: 14px;
151
151
  text-align: center;
152
- color: ${F("neutral",600)};
152
+ color: ${T("neutral",600)};
153
153
  }
154
154
 
155
155
  &[data-selected] {
156
- background-color: ${F("neutral",100)};
157
- border-left: 2px solid ${F("secondary",500)};
156
+ background-color: ${T("neutral",100)};
157
+ border-left: 2px solid ${T("secondary",500)};
158
158
 
159
159
  &:hover {
160
- background-color: ${F("neutral",200)};
160
+ background-color: ${T("neutral",200)};
161
161
  }
162
162
 
163
163
  &:focus-visible {
164
- background-color: ${F("neutral",100)};
165
- outline-color: ${F("primary",700)};
164
+ background-color: ${T("neutral",100)};
165
+ outline-color: ${T("primary",700)};
166
166
  outline-offset: 2px;
167
167
  box-shadow: none;
168
168
  }
@@ -170,12 +170,12 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
170
170
  .tab-label {
171
171
  p {
172
172
  font-weight: 700;
173
- color: ${F("neutral",700)};
173
+ color: ${T("neutral",700)};
174
174
  }
175
175
 
176
176
  svg {
177
177
  path {
178
- fill: ${F("neutral",700)};
178
+ fill: ${T("neutral",700)};
179
179
  }
180
180
  }
181
181
  }
@@ -186,25 +186,25 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
186
186
  }
187
187
 
188
188
  &[data-disabled] {
189
- background-color: ${F("neutral",200)} !important;
189
+ background-color: ${T("neutral",200)} !important;
190
190
 
191
191
  &[data-selected] {
192
- background-color: ${F("neutral",100)} !important;
192
+ background-color: ${T("neutral",100)} !important;
193
193
  }
194
194
 
195
195
  .tab-label {
196
196
  p {
197
- color: ${F("neutral",400)};
197
+ color: ${T("neutral",400)};
198
198
  }
199
199
 
200
200
  svg {
201
201
  path {
202
- fill: ${F("neutral",400)};
202
+ fill: ${T("neutral",400)};
203
203
  }
204
204
  }
205
205
  }
206
206
  }
207
- `,le=H.div`
207
+ `,re=V.div`
208
208
  display: flex;
209
209
  justify-content: center;
210
210
  align-items: center;
@@ -214,17 +214,17 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
214
214
  height: 16px;
215
215
 
216
216
  path {
217
- fill: ${F("neutral",600)};
217
+ fill: ${T("neutral",600)};
218
218
  }
219
219
  }
220
- `,ne=H(b.Trigger)`
220
+ `,oe=V(m.Trigger)`
221
221
  width: 64px;
222
222
  height: 64px;
223
- background-color: ${F("neutral",200)};
223
+ background-color: ${T("neutral",200)};
224
224
  border-radius: initial;
225
225
  border-style: solid;
226
226
  border-width: 1px 1px 0px 0px;
227
- border-color: ${F("neutral",300)};
227
+ border-color: ${T("neutral",300)};
228
228
  cursor: pointer;
229
229
  border-left: 2px solid transparent;
230
230
  padding: 0 5px;
@@ -235,15 +235,15 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
235
235
  gap: 5px;
236
236
 
237
237
  &:hover {
238
- background-color: ${F("neutral",100)};
238
+ background-color: ${T("neutral",100)};
239
239
  }
240
240
 
241
241
  &:active {
242
- background-color: ${F("neutral",300)} !important;
242
+ background-color: ${T("neutral",300)} !important;
243
243
  }
244
244
 
245
245
  &:focus-visible {
246
- outline-color: ${F("primary",700)};
246
+ outline-color: ${T("primary",700)};
247
247
  outline-offset: 2px;
248
248
  box-shadow: none;
249
249
  }
@@ -253,9 +253,9 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
253
253
  font-weight: 400;
254
254
  line-height: 14px;
255
255
  text-align: center;
256
- color: ${F("neutral",600)};
256
+ color: ${T("neutral",600)};
257
257
  }
258
- `,ae=H.div`
258
+ `,te=V.div`
259
259
  width: 300px;
260
260
  height: 100vh;
261
261
  z-index: 100;
@@ -263,14 +263,14 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
263
263
  top: 0;
264
264
  left: 64px;
265
265
  box-shadow: 2px 0px 2px 0px #0000000d;
266
- background-color: ${F("neutral",100)};
266
+ background-color: ${T("neutral",100)};
267
267
  overflow-y: auto;
268
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)`
269
+ `,de=({tabs:n=[],defaultValue:r,onTabClick:o,children:t,onOpenChange:d})=>{const[c,s]=i(!1),[p,h]=i(r||n?.[0]?.value);return l(a,{children:[l(ne,{children:[e(g.Root,{defaultValue:r||n?.[0]?.value,orientation:"horizontal",width:"full",onFocusChange:({focusedValue:e})=>{return h(l=e),void(o&&o(l));var l},role:"tablist",children:e(g.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:n.map((a=>e(ie,{"aria-label":a["aria-label"]||a.label,...a,children:l(x,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"tab-label",children:[a.icon?e(re,{children:a.icon}):null,e("p",{children:a.label})]})},a.label)))})}),t?e(m.Root,{onOpenChange:({open:e})=>{s(e),d&&d(!e)},children:l(oe,{children:[e(re,{children:e(c?R:H,{})}),l("div",{className:"tab-label",children:[e("p",{children:c?"Show":"Hide"}),e("p",{children:"Sidebar"})]})]})}):null]}),t?e(m.Root,{defaultOpen:!0,open:!c,children:e(m.Content,{children:e(te,{role:"tabpanel","aria-labelledby":p,children:t})})}):null]})},ce=V(f.Item)`
270
270
  .radio-item-indicator {
271
271
  width: 20px;
272
272
  height: 20px;
273
- border: 1px solid ${F("neutral",600)};
273
+ border: 1px solid ${T("neutral",600)};
274
274
 
275
275
  .dot {
276
276
  width: 10px !important;
@@ -280,43 +280,43 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
280
280
 
281
281
  &:hover {
282
282
  outline: 4px solid
283
- color-mix(in srgb, ${F("primary",500)} 20%, transparent);
283
+ color-mix(in srgb, ${T("primary",500)} 20%, transparent);
284
284
  }
285
285
 
286
286
  &:active {
287
287
  outline: 4px solid
288
- color-mix(in srgb, ${F("primary",500)} 40%, transparent);
288
+ color-mix(in srgb, ${T("primary",500)} 40%, transparent);
289
289
  }
290
290
 
291
291
  &:focus-visible,
292
292
  &[data-focus-visible] {
293
- outline: 2px solid ${F("primary",700)};
293
+ outline: 2px solid ${T("primary",700)};
294
294
  outline-offset: 2px;
295
295
  box-shadow: none;
296
296
 
297
297
  &[data-checked] {
298
- border: 2px solid ${F("primary",700)};
298
+ border: 2px solid ${T("primary",700)};
299
299
 
300
300
  &[data-disabled] {
301
- border: 2px solid ${F("neutral",400)};
301
+ border: 2px solid ${T("neutral",400)};
302
302
  }
303
303
  }
304
304
  }
305
305
 
306
306
  &[data-checked] {
307
- border: 1px solid ${F("primary",700)};
308
- background-color: ${F("neutral",100)} !important;
309
- color: ${F("primary",700)};
307
+ border: 1px solid ${T("primary",700)};
308
+ background-color: ${T("neutral",100)} !important;
309
+ color: ${T("primary",700)};
310
310
 
311
311
  &[data-disabled] {
312
- border: 1px solid ${F("neutral",400)};
313
- color: ${F("neutral",400)};
312
+ border: 1px solid ${T("neutral",400)};
313
+ color: ${T("neutral",400)};
314
314
  }
315
315
  }
316
316
 
317
317
  &[data-disabled] {
318
- border: 1px solid ${F("neutral",400)} !important;
319
- background-color: ${F("neutral",100)} !important;
318
+ border: 1px solid ${T("neutral",400)} !important;
319
+ background-color: ${T("neutral",100)} !important;
320
320
 
321
321
  &:hover,
322
322
  &:active {
@@ -324,14 +324,14 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
324
324
  }
325
325
  }
326
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`
327
+ `,se=({children:a,value:n,disabled:i,...r})=>l(ce,{value:n,disabled:i,...r,children:[e(f.ItemHiddenInput,{}),e(f.ItemIndicator,{className:"radio-item-indicator"}),a?e(f.ItemText,{children:a}):null]}),pe=({children:l,isRow:a=!1,name:n,defaultValue:r,onChange:o,customGap:t,...d})=>{const[c,s]=i(r);let p=a?"20px":"8px";return p=t||p,e(f.Root,{onValueChange:e=>{s(e.value),o&&o(n,e.value)},value:c,...d,children:e(v,{gap:p,flexDirection:a?"row":"column",alignItems:"flex-start",children:l})})},he=V.div`
328
328
  width: 100%;
329
329
  display: flex;
330
330
  align-items: center;
331
331
  height: 40px;
332
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)`
333
+ ${({variant:e})=>"view"===e&&`\n border: 1px solid ${T("neutral",400)};\n background-color: ${T("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
334
+ `,ue=V(g.Trigger)`
335
335
  width: 99%;
336
336
  height: 40px;
337
337
  padding: 8px 16px;
@@ -347,39 +347,39 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
347
347
  &:focus-visible {
348
348
  box-shadow: none;
349
349
  }
350
- `,se=H(pe)`
351
- background-color: ${F("neutral",200)};
352
- color: ${F("neutral",600)};
350
+ `,xe=V(ue)`
351
+ background-color: ${T("neutral",200)};
352
+ color: ${T("neutral",600)};
353
353
 
354
354
  &:hover {
355
- background-color: ${F("neutral",100)};
355
+ background-color: ${T("neutral",100)};
356
356
  }
357
357
 
358
358
  &:active {
359
- background-color: ${F("neutral",300)};
359
+ background-color: ${T("neutral",300)};
360
360
  }
361
361
 
362
362
  &:focus-visible {
363
- background-color: ${F("neutral",300)};
364
- outline-color: ${F("primary",700)};
363
+ background-color: ${T("neutral",300)};
364
+ outline-color: ${T("primary",700)};
365
365
  outline-offset: 2px;
366
366
  }
367
367
 
368
368
  &[data-selected] {
369
- background-color: ${F("neutral",100)};
370
- color: ${F("neutral",800)};
369
+ background-color: ${T("neutral",100)};
370
+ color: ${T("neutral",800)};
371
371
 
372
372
  &:hover {
373
- background-color: ${F("neutral",200)};
373
+ background-color: ${T("neutral",200)};
374
374
  }
375
375
 
376
376
  &:active {
377
- background-color: ${F("neutral",300)};
377
+ background-color: ${T("neutral",300)};
378
378
  }
379
379
 
380
380
  &:focus-visible {
381
- background-color: ${F("neutral",100)};
382
- outline-color: ${F("primary",700)};
381
+ background-color: ${T("neutral",100)};
382
+ outline-color: ${T("primary",700)};
383
383
  outline-offset: 2px;
384
384
  }
385
385
 
@@ -389,63 +389,63 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
389
389
  }
390
390
 
391
391
  &[data-disabled] {
392
- background-color: ${F("neutral",200)};
393
- color: ${F("neutral",400)};
392
+ background-color: ${T("neutral",200)};
393
+ color: ${T("neutral",400)};
394
394
 
395
395
  &[data-selected] {
396
- background-color: ${F("neutral",100)};
397
- color: ${F("neutral",400)};
396
+ background-color: ${T("neutral",100)};
397
+ color: ${T("neutral",400)};
398
398
  opacity: 1;
399
399
  }
400
400
  }
401
- `,he=H.div`
401
+ `,be=V.div`
402
402
  width: 4px;
403
403
  height: 24px;
404
- background-color: ${F("neutral",400)};
405
- `,xe=H(pe)`
404
+ background-color: ${T("neutral",400)};
405
+ `,ge=V(ue)`
406
406
  height: 32px;
407
407
  border-radius: 2px;
408
- background-color: ${F("neutral",200)};
409
- color: ${F("neutral",600)};
408
+ background-color: ${T("neutral",200)};
409
+ color: ${T("neutral",600)};
410
410
 
411
411
  &:hover {
412
- background-color: ${F("neutral",300)};
412
+ background-color: ${T("neutral",300)};
413
413
  box-shadow: 0px 1px 2px 0px #0000000d;
414
414
  }
415
415
 
416
416
  &:active {
417
- background-color: ${F("neutral",300)};
417
+ background-color: ${T("neutral",300)};
418
418
  box-shadow: 0px 2px 4px -2px #0000001a;
419
419
  box-shadow: 0px 4px 6px -1px #0000001a;
420
420
  }
421
421
 
422
422
  &:focus-visible {
423
- outline-color: ${F("primary",700)};
423
+ outline-color: ${T("primary",700)};
424
424
  outline-offset: 2px;
425
425
  }
426
426
 
427
427
  &[data-selected] {
428
- background-color: ${F("neutral",100)};
429
- border: 1px solid ${F("neutral",300)};
428
+ background-color: ${T("neutral",100)};
429
+ border: 1px solid ${T("neutral",300)};
430
430
  box-shadow: 0px 1px 2px 0px #0000000d;
431
- color: ${F("neutral",800)};
431
+ color: ${T("neutral",800)};
432
432
 
433
433
  &:hover {
434
- background-color: ${F("neutral",200)};
435
- border: 1px solid ${F("neutral",300)};
434
+ background-color: ${T("neutral",200)};
435
+ border: 1px solid ${T("neutral",300)};
436
436
  box-shadow: 0px 2px 4px -2px #0000001a;
437
437
  box-shadow: 0px 4px 6px -1px #0000001a;
438
438
  }
439
439
 
440
440
  &:active {
441
- background-color: ${F("neutral",300)};
442
- border: 1px solid ${F("neutral",300)};
441
+ background-color: ${T("neutral",300)};
442
+ border: 1px solid ${T("neutral",300)};
443
443
  box-shadow: 0px 2px 4px -2px #0000001a;
444
444
  box-shadow: 0px 4px 6px -1px #0000001a;
445
445
  }
446
446
 
447
447
  &:focus-visible {
448
- outline-color: ${F("primary",700)};
448
+ outline-color: ${T("primary",700)};
449
449
  outline-offset: 2px;
450
450
  }
451
451
 
@@ -455,8 +455,8 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
455
455
  }
456
456
 
457
457
  &[data-disabled] {
458
- background-color: ${F("neutral",200)};
459
- color: ${F("neutral",400)};
458
+ background-color: ${T("neutral",200)};
459
+ color: ${T("neutral",400)};
460
460
  box-shadow: none;
461
461
 
462
462
  &:hover {
@@ -464,39 +464,39 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
464
464
  }
465
465
 
466
466
  &[data-selected] {
467
- background-color: ${F("neutral",100)};
468
- color: ${F("neutral",400)};
467
+ background-color: ${T("neutral",100)};
468
+ color: ${T("neutral",400)};
469
469
  opacity: 1;
470
470
  }
471
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`
472
+ `,me=(e,l)=>e.findIndex((e=>e.value===l)),fe=e=>1===e?"none":2===e?"left":"right",ve=({variant:n="panel",defaultValue:r,tabs:o,onTabClick:t})=>{const[d,c]=i(me(o,r)||0),s="view"===n,p=s?ge:xe;return e(he,{variant:n,children:e(g.Root,{width:"full",defaultValue:r||o?.[0]?.value,onFocusChange:({focusedValue:e})=>{return c(me(o,l=e)),void(t&&t(l));var l},children:e(g.List,{alignItems:"center",border:"none",children:o.map(((n,i)=>l(a,{children:[s&&1===i&&"left"===fe(d)?e(be,{}):null,e(p,{"aria-label":n["aria-label"]||n.label,...n,children:l(x,{display:"flex",alignItems:"center",gap:"5px",children:[n.icon,n.label]})},n.label),s&&1===i&&"right"===fe(d)?e(be,{}):null]})))})})})},Ce=V.div`
473
473
  width: 268px;
474
474
  padding: 16px 0;
475
- border-bottom: 1px solid ${F("neutral",300)};
476
- `,fe=H.div`
475
+ border-bottom: 1px solid ${T("neutral",300)};
476
+ `,ye=V.div`
477
477
  display: flex;
478
478
  align-items: flex-start;
479
479
  justify-content: space-between;
480
- `,$e=H.div`
480
+ `,we=V.div`
481
481
  display: flex;
482
482
  flex-direction: column;
483
- `,ve=H.p`
483
+ `,$e=V.p`
484
484
  font-size: 16px;
485
485
  font-weight: 400;
486
486
  line-height: 24px;
487
487
  text-align: left;
488
- color: ${F("neutral",800)};
489
- `,Ce=H.p`
488
+ color: ${T("neutral",800)};
489
+ `,ke=V.p`
490
490
  font-size: 14px;
491
491
  font-weight: 400;
492
492
  line-height: 20px;
493
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)`
494
+ color: ${T("neutral",600)};
495
+ `,Le=({name:a,label:n,caption:i,showInfoButton:r=!0,infoButtonLabel:o="About data",variant:t="switch",disabled:d,onInfoClick:c,isDefaultSelected:s=!1,onChange:p})=>{const h="switch"===t;return l(Ce,{children:[h?l(ye,{children:[l(we,{children:[e($e,{"aria-label":n,children:n}),e(ke,{"aria-label":i,children:i})]}),e(K,{"aria-label":`${n}, ${i}`,name:a,disabled:d,defaultChecked:s,onChange:p,role:"switch"})]}):l("div",{style:{display:"flex",flexDirection:"column"},children:[e(se,{value:a,disabled:d,fontSize:"16px",color:"var(--chakra-colors-neutral-800)",children:n}),e(ke,{style:{marginLeft:"28px"},children:i})]}),r?e(x,{display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:h?0:"28px",children:e(ae,{variant:"secondary",label:o,rightIcon:e(j,{}),size:"small",onClick:c,disabled:d})}):null]})},ze=V(C.Root)`
496
496
  .chakra-checkbox__control {
497
497
  width: 20px;
498
498
  height: 20px;
499
- border: 1px solid ${F("neutral",600)};
499
+ border: 1px solid ${T("neutral",600)};
500
500
 
501
501
  svg {
502
502
  width: 12px;
@@ -509,34 +509,34 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
509
509
  &:hover,
510
510
  &[data-hover] {
511
511
  outline: 4px solid
512
- color-mix(in srgb, ${F("primary",500)} 20%, transparent);
512
+ color-mix(in srgb, ${T("primary",500)} 20%, transparent);
513
513
  }
514
514
 
515
515
  &:active,
516
516
  &[data-active] {
517
517
  outline: 4px solid
518
- color-mix(in srgb, ${F("primary",500)} 40%, transparent);
518
+ color-mix(in srgb, ${T("primary",500)} 40%, transparent);
519
519
  }
520
520
 
521
521
  &:focus-visible,
522
522
  &[data-focus-visible] {
523
523
  box-shadow: none;
524
- outline: 2px solid ${F("primary",700)};
524
+ outline: 2px solid ${T("primary",700)};
525
525
  outline-offset: 2px;
526
526
  }
527
527
 
528
528
  &[data-state='checked'],
529
529
  &[data-state='indeterminate'] {
530
- border: 1px solid ${F("primary",700)};
531
- background-color: ${F("primary",500)} !important;
530
+ border: 1px solid ${T("primary",700)};
531
+ background-color: ${T("primary",500)} !important;
532
532
 
533
533
  svg path {
534
- fill: ${F("primary",900)};
534
+ fill: ${T("primary",900)};
535
535
  }
536
536
  }
537
537
 
538
538
  &[data-disabled] {
539
- border: 1px solid ${F("neutral",400)};
539
+ border: 1px solid ${T("neutral",400)};
540
540
  background-color: transparent !important;
541
541
  cursor: not-allowed;
542
542
 
@@ -550,34 +550,34 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
550
550
  &[data-state='checked'],
551
551
  &[data-state='indeterminate'] {
552
552
  border: none !important;
553
- background-color: ${F("neutral",300)} !important;
553
+ background-color: ${T("neutral",300)} !important;
554
554
 
555
555
  svg path {
556
- fill: ${F("neutral",500)} !important;
556
+ fill: ${T("neutral",500)} !important;
557
557
  }
558
558
  }
559
559
  }
560
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`
561
+ `,Ie=({name:a,value:n,checked:i,defaultChecked:r,disabled:o,indeterminate:t,onCheckedChange:d,children:c,...s})=>l(ze,{name:a,value:n,checked:t?"indeterminate":i,defaultChecked:r,disabled:o,onCheckedChange:d,"aria-label":s["aria-label"]||a,...s,children:[e(C.HiddenInput,{}),e(C.Control,{children:e(t?S:Z,{})}),e(C.Label,{children:c})]}),De=V.div`
562
+ background-color: ${T("neutral",100)};
563
+ `,Be=V.span`
564
564
  font-size: 16px;
565
565
  font-weight: 700;
566
566
  line-height: 24px;
567
567
  text-align: left;
568
- color: ${F("neutral",800)};
568
+ color: ${T("neutral",800)};
569
569
  display: flex;
570
570
  align-items: center;
571
571
  text-align: left;
572
572
  gap: 10px;
573
- `,Ie=H.div`
573
+ `,Fe=V.div`
574
574
  font-size: 12px;
575
575
  font-weight: 400;
576
576
  line-height: 16px;
577
577
  text-align: left;
578
- color: ${F("neutral",600)};
578
+ color: ${T("neutral",600)};
579
579
  margin-bottom: 8px;
580
- `,_e=H(v.Root)`
580
+ `,Ve=V(y.Root)`
581
581
  max-width: 100%;
582
582
  display: flex;
583
583
  justify-content: center;
@@ -586,7 +586,7 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
586
586
  padding: 4px 8px;
587
587
  border-radius: 4px;
588
588
  font-weight: 700;
589
- color: ${F("neutral",700)};
589
+ color: ${T("neutral",700)};
590
590
  box-shadow: none;
591
591
 
592
592
  height: 24px;
@@ -615,7 +615,7 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
615
615
  align-items: center;
616
616
 
617
617
  &:focus-visible {
618
- --focus-ring-color: ${F("primary",700)};
618
+ --focus-ring-color: ${T("primary",700)};
619
619
  }
620
620
  }
621
621
 
@@ -624,47 +624,47 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
624
624
  }
625
625
 
626
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`
627
+ border: 1px solid ${T("neutral",400)};
628
+ background-color: ${T("neutral",300)};
629
+ color: ${T("neutral",600)};
630
+ }
631
+ `,Ae=V(Ve)`
632
+ background-color: ${T("neutral",100)};
633
+ border: 1px solid ${T("neutral",300)};
634
+ `,Me=V(Ve)`
635
+ background-color: ${T("neutral",200)};
636
+ border: 1px solid ${T("neutral",400)};
637
+ `,Te=V(Ve)`
638
+ background-color: ${T("success",100)};
639
+ border: 1px solid ${T("success",200)};
640
+ color: ${T("success",500)};
641
+ `,_e=V(Ve)`
642
+ background-color: ${T("warning",100)};
643
+ border: 1px solid ${T("warning",200)};
644
+ color: ${T("warning",500)};
645
+ `,Ee=V(Ve)`
646
+ background-color: ${T("error",100)};
647
+ border: 1px solid ${T("error",200)};
648
+ color: ${T("error",500)};
649
+ `,He=({label:a,size:n="default",variant:i,disabled:r,icon:o,onClose:t,closable:d,...c})=>{let s=Ae;return"info-grey"===i?s=Me:"success"===i?s=Te:"warning"===i?s=_e:"error"===i&&(s=Ee),l(s,{size:n,"data-disabled":r,...c,children:[o?e(y.StartElement,{"aria-label":`${a} tag icon`,children:o}):null,e(y.Label,{"aria-label":a,children:a}),d&&!r?e(y.EndElement,{children:e(y.CloseTrigger,{onClick:t,"aria-label":`${a} tag close button`})}):null]})},Re=({label:a,caption:n,value:o,layerItems:t,onChangeForRadioVariant:d})=>{const[c,s]=i({}),[p]=i((e=>{const l=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return l?.name})(t));r((()=>{let e={...c};t.forEach((l=>{l.isDefaultSelected&&(e={...e,["radio"===l.variant?a:l.name]:l.isDefaultSelected})})),s(e)}),[]);const h=(e,l,a,n)=>{const i={...c,[e]:l};s(i),a&&a(e,l,n)},u=Object.values(c).filter((e=>!0===e)).length;return l(w.Item,{value:o,width:"300px",children:[l(w.ItemTrigger,{padding:"16px",alignItems:"flex-start",children:[l(x,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[l(Be,{children:[a,e(He,{label:`${u} Active`,size:"small",variant:u>0?"success":"info-grey"})]}),e(Fe,{children:n})]}),e(w.ItemIndicator,{display:"flex",children:e(N,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),e(w.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:e(pe,{name:a,defaultValue:p,customGap:"0px",onChange:(e,l)=>h(e,!!l,d,l),children:t.map((l=>e(Le,{...l,onChange:(e,a)=>h(e,a,l.onChange)},l.label)))})})]})},Ze=({children:l,defaultValue:a,...n})=>e(De,{style:{width:"300px"},children:e(w.Root,{defaultValue:a,multiple:!0,...n,children:l})}),Se=V.div`
650
650
  width: 300px;
651
- background-color: ${F("neutral",100)};
652
- `,De=H.aside`
651
+ background-color: ${T("neutral",100)};
652
+ `,je=V.aside`
653
653
  padding: 16px 16px 20px 16px;
654
- border-bottom: 1px solid ${F("neutral",300)};
655
- `,Ae=H.h2`
656
- color: ${F("neutral",700)};
654
+ border-bottom: 1px solid ${T("neutral",300)};
655
+ `,Ne=V.h2`
656
+ color: ${T("neutral",700)};
657
657
  font-weight: 700;
658
658
  font-size: 20px;
659
659
  line-height: 28px;
660
660
  text-align: left;
661
- `,je=H.p`
662
- color: ${F("neutral",600)};
661
+ `,Oe=V.p`
662
+ color: ${T("neutral",600)};
663
663
  font-weight: 400;
664
664
  font-size: 14px;
665
665
  line-height: 20px;
666
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`
667
+ `,Pe=({title:a,description:n,tabBarVariant:i="panel",buttonTabs:r,defaultValue:o,onTabClick:t,children:d})=>l(Se,{children:[l(je,{role:"complementary",children:[e(Ne,{"aria-label":a,children:a}),e(Oe,{"aria-label":n,children:n})]}),r&&r.length>0?e(ve,{variant:i,defaultValue:o,tabs:r,onTabClick:t}):null,d]}),qe=V.div`
668
668
  width: 100%;
669
669
  min-width: ${({size:e})=>"small"===e?"234px":"366px"};
670
670
  border-radius: 4px;
@@ -679,7 +679,7 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
679
679
  button {
680
680
  margin-left: ${({isButtonRight:e})=>e?0:"24px"};
681
681
  }
682
- `,Oe=H.div`
682
+ `,Ue=V.div`
683
683
  display: flex;
684
684
  align-items: flex-start;
685
685
  gap: 8px;
@@ -687,190 +687,190 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
687
687
  svg {
688
688
  margin-top: 6px;
689
689
  }
690
- `,qe=H.p`
691
- color: ${F("neutral",800)};
690
+ `,Ge=V.p`
691
+ color: ${T("neutral",800)};
692
692
  font-size: ${({size:e})=>"small"===e?"14px":"18px"};
693
693
  line-height: ${({size:e})=>"small"===e?"20px":"28px"};
694
694
  font-weight: 400;
695
- `,Pe=H.p`
696
- color: ${F("neutral",700)};
695
+ `,We=V.p`
696
+ color: ${T("neutral",700)};
697
697
  font-size: ${({size:e})=>"small"===e?"12px":"16px"};
698
698
  line-height: ${({size:e})=>"small"===e?"16px":"24px"};
699
699
  font-weight: 400;
700
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)};
701
+ `,Ye=V(qe)`
702
+ background-color: ${T("neutral",100)};
703
+ border: 1px solid ${T("neutral",300)};
704
+ color: ${T("neutral",700)};
705
+ `,Ke=V(qe)`
706
+ background-color: ${T("neutral",200)};
707
+ border: 1px solid ${T("neutral",300)};
708
+ color: ${T("neutral",700)};
709
+ `,Je=V(qe)`
710
+ background-color: ${T("success",100)};
711
+ border: 1px solid ${T("success",500)};
712
+ color: ${T("success",500)};
713
713
 
714
714
  p {
715
- color: ${F("success",500)};
715
+ color: ${T("success",500)};
716
716
  }
717
- `,We=H(Ne)`
718
- background-color: ${F("warning",100)};
719
- border: 1px solid ${F("warning",500)};
720
- color: ${F("warning",500)};
717
+ `,Qe=V(qe)`
718
+ background-color: ${T("warning",100)};
719
+ border: 1px solid ${T("warning",500)};
720
+ color: ${T("warning",500)};
721
721
 
722
722
  p {
723
- color: ${F("warning",500)};
723
+ color: ${T("warning",500)};
724
724
  }
725
- `,Je=H(Ne)`
726
- background-color: ${F("error",100)};
727
- border: 1px solid ${F("error",500)};
728
- color: ${F("error",500)};
725
+ `,Xe=V(qe)`
726
+ background-color: ${T("error",100)};
727
+ border: 1px solid ${T("error",500)};
728
+ color: ${T("error",500)};
729
729
 
730
730
  p {
731
- color: ${F("error",500)};
731
+ color: ${T("error",500)};
732
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`
733
+ `,el=({label:a,caption:n,variant:i,size:r="large",icon:o=e(j,{height:"16px",width:"16px"}),onActionClick:t,actionLabel:d,isButtonRight:c})=>{let s=Ye;return"info-grey"===i?s=Ke:"success"===i?s=Je:"warning"===i?s=Qe:"error"===i&&(s=Xe),l(s,{isButtonRight:c,size:r,"aria-roledescription":"Note",children:[l("div",{children:[l(Ue,{children:[o,e(Ge,{size:r,children:a})]}),e(We,{size:r,children:n})]}),d?e(ae,{label:d,variant:"info-white"===i||"info-grey"===i?"primary":"secondary",size:"large"===r?"default":"small",onClick:t}):null]})},ll=V.div`
734
734
  width: 100%;
735
735
  display: flex;
736
736
  justify-content: flex-start;
737
737
  align-items: flex-start;
738
738
  gap: ${({size:e})=>"small"===e?"12px":"16px"};
739
739
  margin-bottom: 20px;
740
- `,Xe=H.div`
740
+ `,al=V.div`
741
741
  width: 3px;
742
742
  height: 100%;
743
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)};
744
+ background-color: ${T("error",500)};
745
+ `,nl=V($.Label)`
746
+ color: ${({disabled:e})=>T("neutral",e?600:900)};
747
747
  font-size: ${({size:e})=>"small"===e?"14px":"16px"};
748
748
  font-weight: 400;
749
749
  line-height: ${({size:e})=>"small"===e?"20px":"24px"};
750
750
  margin-bottom: 2px;
751
751
 
752
752
  .chakra-field__requiredIndicator {
753
- color: ${({disabled:e})=>e?F("neutral",600):F("error",500)};
753
+ color: ${({disabled:e})=>e?T("neutral",600):T("error",500)};
754
754
  }
755
- `,rr=H(w.HelperText)`
756
- color: ${({disabled:e})=>F("neutral",e?500:600)};
755
+ `,il=V($.HelperText)`
756
+ color: ${({disabled:e})=>T("neutral",e?500:600)};
757
757
  font-size: ${({size:e})=>"small"===e?"12px":"14px"};
758
758
  font-weight: 400;
759
759
  line-height: ${({size:e})=>"small"===e?"16px":"20px"};
760
- `,lr=H(w.ErrorText)`
761
- color: ${F("error",500)};
760
+ `,rl=V($.ErrorText)`
761
+ color: ${T("error",500)};
762
762
  font-size: ${({size:e})=>"small"===e?"12px":"14px"};
763
763
  font-weight: 700;
764
764
  line-height: ${({size:e})=>"small"===e?"16px":"20px"};
765
765
  margin-top: 2px;
766
- `,nr=H(y)`
766
+ `,ol=V(k)`
767
767
  height: ${({size:e})=>"small"===e?"28px":"40px"};
768
768
  width: 100%;
769
769
  border-radius: 4px;
770
770
  padding: ${({size:e})=>"small"===e?"4px 8px":"12px"};
771
771
  margin-top: 8px;
772
- background-color: ${F("neutral",100)};
773
- color: ${F("neutral",800)};
774
- border: 1px solid ${F("neutral",400)};
772
+ background-color: ${T("neutral",100)};
773
+ color: ${T("neutral",800)};
774
+ border: 1px solid ${T("neutral",400)};
775
775
  box-shadow: 0px 1px 2px 0px #0000000d;
776
776
 
777
777
  &:focus-visible,
778
778
  &[data-focus-visible] {
779
- border: 2px solid ${F("neutral",700)};
780
- outline: 2px solid ${F("primary",700)};
779
+ border: 2px solid ${T("neutral",700)};
780
+ outline: 2px solid ${T("primary",700)};
781
781
  outline-offset: 2px;
782
782
  }
783
783
 
784
784
  &:active {
785
- border: 1px solid ${F("primary",600)} !important;
785
+ border: 1px solid ${T("primary",600)} !important;
786
786
  outline: none !important;
787
787
  box-shadow: 0px 1px 2px 0px #0000000d;
788
788
  }
789
789
 
790
790
  &[data-invalid] {
791
- border: 1px solid ${F("error",500)} !important;
791
+ border: 1px solid ${T("error",500)} !important;
792
792
  }
793
793
 
794
794
  &:disabled {
795
- background-color: ${F("neutral",200)};
796
- border: 1px solid ${F("neutral",300)} !important;
795
+ background-color: ${T("neutral",200)};
796
+ border: 1px solid ${T("neutral",300)} !important;
797
797
  }
798
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`
799
+ ${({value:e,defaultValue:l})=>e||l?`\n border: 1px solid ${T("neutral",700)};\n `:""}
800
+ `,tl=({label:a,caption:n,placeholder:r,errorMessage:o,required:t,disabled:d,size:c="default",defaultValue:s="",onChange:p,...h})=>{const[u,x]=i(s);return l(ll,{size:c,className:"text-input-container",children:[o?e(al,{size:c}):null,l($.Root,{required:t,invalid:!!o,gap:"0",children:[a?l(nl,{size:c,disabled:d,"aria-label":a,children:[e($.RequiredIndicator,{"aria-label":"required"}),a,t?"":" (optional)"]}):null,n?e(il,{size:c,disabled:d,"aria-label":n,children:n}):null,o?e(rl,{size:c,children:o}):null,e(ol,{placeholder:r,disabled:d,size:c,onChange:e=>{x(e.target.value),p&&p(e)},value:u,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...h})]})]})},dl=V.div`
801
801
  width: 100%;
802
802
  display: flex;
803
803
  justify-content: flex-start;
804
804
  align-items: flex-start;
805
805
  gap: ${({size:e})=>"small"===e?"12px":"16px"};
806
806
  margin-bottom: 16px;
807
- `,ir=H.div`
807
+ `,cl=V.div`
808
808
  width: 3px;
809
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)};
810
+ min-height: ${({size:e,hasHelperText:l,hasErrorMessage:a})=>((e,l,a)=>{const n="small"===e;return l&&a?n?"192px":"208px":l?n?"174px":"186px":a?n?"168px":"180px":n?"169px":"180px"})(e,l,a)};
811
+ background-color: ${T("error",500)};
812
+ `,sl=V($.Label)`
813
+ color: ${({disabled:e})=>T("neutral",e?600:900)};
814
814
  font-size: ${({size:e})=>"small"===e?"14px":"16px"};
815
815
  font-weight: 400;
816
816
  line-height: ${({size:e})=>"small"===e?"20px":"24px"};
817
817
  margin-bottom: 2px;
818
818
 
819
819
  .chakra-field__requiredIndicator {
820
- color: ${({disabled:e})=>e?F("neutral",600):F("error",500)};
820
+ color: ${({disabled:e})=>e?T("neutral",600):T("error",500)};
821
821
  }
822
- `,dr=H(w.HelperText)`
823
- color: ${({disabled:e})=>F("neutral",e?500:600)};
822
+ `,pl=V($.HelperText)`
823
+ color: ${({disabled:e})=>T("neutral",e?500:600)};
824
824
  font-size: ${({size:e})=>"small"===e?"12px":"14px"};
825
825
  font-weight: 400;
826
826
  line-height: ${({size:e})=>"small"===e?"16px":"20px"};
827
- `,cr=H(w.HelperText)`
828
- color: ${F("neutral",600)};
827
+ `,hl=V($.HelperText)`
828
+ color: ${T("neutral",600)};
829
829
  font-size: 12px;
830
830
  font-weight: 400;
831
831
  line-height: 16px;
832
832
  margin-top: 8px;
833
- `,pr=H(w.ErrorText)`
834
- color: ${F("error",500)};
833
+ `,ul=V($.ErrorText)`
834
+ color: ${T("error",500)};
835
835
  font-size: 14px;
836
836
  font-weight: 700;
837
837
  line-height: 20px;
838
838
  margin-top: 2px;
839
- `,sr=H(k)`
839
+ `,xl=V(L)`
840
840
  height: 104px;
841
841
  width: 100%;
842
842
  border-radius: 4px;
843
843
  padding: ${({size:e})=>"small"===e?"8px":"12px"};
844
844
  margin-top: 8px;
845
- background-color: ${F("neutral",100)};
846
- color: ${F("neutral",800)};
847
- border: 1px solid ${F("neutral",400)};
845
+ background-color: ${T("neutral",100)};
846
+ color: ${T("neutral",800)};
847
+ border: 1px solid ${T("neutral",400)};
848
848
  box-shadow: 0px 1px 2px 0px #0000000d;
849
849
 
850
850
  &:focus-visible,
851
851
  &[data-focus-visible] {
852
- border: 2px solid ${F("neutral",700)};
853
- outline: 2px solid ${F("primary",700)};
852
+ border: 2px solid ${T("neutral",700)};
853
+ outline: 2px solid ${T("primary",700)};
854
854
  outline-offset: 2px;
855
855
  }
856
856
 
857
857
  &:active {
858
- border: 1px solid ${F("primary",600)} !important;
858
+ border: 1px solid ${T("primary",600)} !important;
859
859
  outline: none !important;
860
860
  box-shadow: 0px 1px 2px 0px #0000000d;
861
861
  }
862
862
 
863
863
  &[data-invalid] {
864
- border: 1px solid ${F("error",500)} !important;
864
+ border: 1px solid ${T("error",500)} !important;
865
865
  }
866
866
 
867
867
  &:disabled {
868
- background-color: ${F("neutral",200)};
869
- border: 1px solid ${F("neutral",300)} !important;
868
+ background-color: ${T("neutral",200)};
869
+ border: 1px solid ${T("neutral",300)} !important;
870
870
  }
871
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)`
872
+ ${({value:e,defaultValue:l})=>e||l?`\n border: 1px solid ${T("neutral",700)};\n `:""}
873
+ `,bl=({label:a,caption:n,placeholder:o,errorMessage:t,required:d,disabled:c,size:s="default",defaultValue:p="",onChange:h,minLength:u,maxLength:x,...b})=>{const[g,m]=i(p),[f,v]=i(!1),[C,y]=i(!1),[w,k]=i("");r((()=>{const{length:e}=p;u&&e<u&&e>0&&(v(e<u),y(!1),k(`Enter at least ${u-e} characters`)),x&&e>x&&(v(!1),y(e>x),k(`You have ${x-e} characters remaining`))}),[]);return l(dl,{size:s,children:[t||f||C?e(cl,{size:s,hasHelperText:!!w,hasErrorMessage:!!t}):null,l($.Root,{required:d,invalid:!!t||f||C,gap:"0",children:[a?l(sl,{size:s,disabled:c,"aria-label":a,children:[e($.RequiredIndicator,{"aria-label":"required"}),a,d?"":" (optional)"]}):null,n?e(pl,{size:s,disabled:c,"aria-label":n,children:n}):null,t?e(ul,{children:t}):null,e(xl,{placeholder:o,disabled:c,size:s,onChange:e=>{m(e.target.value);const{length:l}=e.target.value;u&&x?(v(l<u),y(l>x),k(`You have ${x-l} characters remaining`)):u?(v(l<u),y(!1),k(l<u?`Enter at least ${u-l} characters`:"")):x&&(y(l>x),v(!1),k(`You have ${x-l} characters remaining`)),h&&h(e)},value:g,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...b}),f&&u?l(ul,{style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},children:["You need ",u-g.length," more characters"]}):null,C&&x?l(ul,{style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},children:["You have ",g.length-x," characters too many"]}):null,!w||C||f?null:e(hl,{"aria-label":w,children:w})]})]})},gl=V(u)`
874
874
  width: 20px !important;
875
875
  padding: 0 !important;
876
876
  min-width: 20px !important;
@@ -883,14 +883,14 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
883
883
  height: 15px;
884
884
 
885
885
  path {
886
- fill: ${F("neutral",800)};
886
+ fill: ${T("neutral",800)};
887
887
  }
888
888
  }
889
889
 
890
890
  &:hover {
891
891
  background-color: color-mix(
892
892
  in srgb,
893
- ${F("primary",500)} 20%,
893
+ ${T("primary",500)} 20%,
894
894
  transparent
895
895
  );
896
896
  }
@@ -898,13 +898,13 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
898
898
  &:active {
899
899
  background-color: color-mix(
900
900
  in srgb,
901
- ${F("primary",500)} 40%,
901
+ ${T("primary",500)} 40%,
902
902
  transparent
903
903
  );
904
904
  }
905
905
 
906
906
  &:focus-visible {
907
- outline-color: ${F("primary",700)};
907
+ outline-color: ${T("primary",700)};
908
908
  }
909
909
 
910
910
  &:disabled {
@@ -912,72 +912,72 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
912
912
 
913
913
  svg {
914
914
  path {
915
- fill: ${F("neutral",500)};
915
+ fill: ${T("neutral",500)};
916
916
  }
917
917
  }
918
918
  }
919
- `,ur=({icon:r,disabled:l,...n})=>e(xr,{"aria-label":n["aria-label"],disabled:l,...n,children:r}),gr=H(ur)`
919
+ `,ml=({icon:l,disabled:a,...n})=>e(gl,{"aria-label":n["aria-label"],disabled:a,...n,children:l}),fl=V(ml)`
920
920
  width: 20px !important;
921
921
  padding: 0 !important;
922
922
  min-width: 20px !important;
923
923
  height: 20px;
924
924
  border-radius: 2px;
925
- background-color: ${F("neutral",300)};
925
+ background-color: ${T("neutral",300)};
926
926
 
927
927
  svg {
928
928
  width: 10px;
929
929
  height: 10px;
930
930
 
931
931
  path {
932
- fill: ${F("neutral",800)};
932
+ fill: ${T("neutral",800)};
933
933
  }
934
934
  }
935
935
 
936
936
  &:hover {
937
- background-color: ${F("neutral",300)};
937
+ background-color: ${T("neutral",300)};
938
938
  box-shadow: 0px 1px 2px -1px #0000001a;
939
939
  box-shadow: 0px 1px 3px 0px #0000001a;
940
940
  }
941
941
 
942
942
  &:active {
943
- background-color: ${F("neutral",400)};
943
+ background-color: ${T("neutral",400)};
944
944
  box-shadow: 0px 1px 2px -1px #0000001a;
945
945
  box-shadow: 0px 1px 3px 0px #0000001a;
946
946
  }
947
947
 
948
948
  &:focus-visible {
949
- outline-color: ${F("primary",700)};
949
+ outline-color: ${T("primary",700)};
950
950
  }
951
951
 
952
952
  &:disabled {
953
- background-color: ${F("neutral",200)} !important;
953
+ background-color: ${T("neutral",200)} !important;
954
954
  box-shadow: none;
955
955
 
956
956
  svg {
957
957
  path {
958
- fill: ${F("neutral",400)};
958
+ fill: ${T("neutral",400)};
959
959
  }
960
960
  }
961
961
  }
962
- `,br=({disabled:r,...l})=>e(gr,{icon:e(S,{}),"aria-label":l["aria-label"]||"Close",disabled:r,...l}),mr=H(z.Root)`
962
+ `,vl=({disabled:l,...a})=>e(fl,{icon:e(O,{}),"aria-label":a["aria-label"]||"Close",disabled:l,...a}),Cl=V(z.Root)`
963
963
  height: 60px;
964
964
  padding: 40px 12px;
965
- `,fr=H(z.Thumb)`
965
+ `,yl=V(z.Thumb)`
966
966
  height: 20px;
967
967
  width: 20px;
968
- background-color: ${F("primary",500)};
969
- border: 2px solid ${F("primary",700)};
968
+ background-color: ${T("primary",500)};
969
+ border: 2px solid ${T("primary",700)};
970
970
  box-shadow: 0px 1px 2px 0px #0000000d;
971
971
 
972
972
  &:hover,
973
973
  &[data-hover] {
974
974
  outline: 4px solid
975
- color-mix(in srgb, ${F("primary",500)} 20%, transparent);
975
+ color-mix(in srgb, ${T("primary",500)} 20%, transparent);
976
976
  }
977
977
 
978
978
  &[data-dragging] {
979
979
  outline: 4px solid
980
- color-mix(in srgb, ${F("primary",500)} 40%, transparent);
980
+ color-mix(in srgb, ${T("primary",500)} 40%, transparent);
981
981
 
982
982
  div {
983
983
  display: flex;
@@ -987,24 +987,24 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
987
987
  &:focus-visible,
988
988
  &[data-focus-visible] {
989
989
  box-shadow: none;
990
- outline: 2px solid ${F("primary",700)};
990
+ outline: 2px solid ${T("primary",700)};
991
991
  outline-offset: 2px;
992
992
  }
993
993
 
994
994
  &[data-disabled] {
995
- background-color: ${F("neutral",400)};
995
+ background-color: ${T("neutral",400)};
996
996
  border: none;
997
997
  box-shadow: none;
998
998
  outline: none;
999
999
  cursor: not-allowed;
1000
1000
  }
1001
- `,$r=H.div`
1001
+ `,wl=V.div`
1002
1002
  font-size: 14px;
1003
1003
  line-height: 20px;
1004
- color: ${F("neutral",800)};
1004
+ color: ${T("neutral",800)};
1005
1005
  height: 28px;
1006
- background-color: ${F("neutral",100)};
1007
- border: 1px solid ${F("neutral",300)};
1006
+ background-color: ${T("neutral",100)};
1007
+ border: 1px solid ${T("neutral",300)};
1008
1008
  border-radius: 8px;
1009
1009
  padding: 0 8px;
1010
1010
  display: none;
@@ -1012,27 +1012,27 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
1012
1012
  align-items: center;
1013
1013
  position: relative;
1014
1014
  top: -30px;
1015
- `,vr=H(z.Track)`
1016
- background-color: ${F("neutral",300)};
1015
+ `,$l=V(z.Track)`
1016
+ background-color: ${T("neutral",300)};
1017
1017
  border: none;
1018
1018
  box-shadow: none;
1019
- `,Cr=H(z.Range)`
1020
- background-color: ${F("primary",500)};
1021
- border: 1px solid ${F("primary",700)};
1019
+ `,kl=V(z.Range)`
1020
+ background-color: ${T("primary",500)};
1021
+ border: 1px solid ${T("primary",700)};
1022
1022
  border-radius: 8px;
1023
1023
 
1024
1024
  &:disabled,
1025
1025
  &[disabled],
1026
1026
  &[data-disabled],
1027
1027
  &[aria-disabled='true'] {
1028
- --chakra-colors-border-emphasized: ${F("neutral",400)};
1029
- background-color: ${F("neutral",400)};
1028
+ --chakra-colors-border-emphasized: ${T("neutral",400)};
1029
+ background-color: ${T("neutral",400)};
1030
1030
  border: none;
1031
1031
  }
1032
- `,wr=H(z.Marker)`
1032
+ `,Ll=V(z.Marker)`
1033
1033
  font-size: 12px;
1034
1034
  line-height: 16px;
1035
- color: ${F("neutral",800)};
1035
+ color: ${T("neutral",800)};
1036
1036
 
1037
1037
  p {
1038
1038
  position: relative;
@@ -1041,42 +1041,42 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
1041
1041
 
1042
1042
  &[data-state='under-value'] {
1043
1043
  .chakra-slider__markerIndicator {
1044
- background-color: ${({isCentred:e})=>F("neutral",e?500:200)};
1044
+ background-color: ${({isCentred:e})=>T("neutral",e?500:200)};
1045
1045
  }
1046
1046
 
1047
1047
  &[data-disabled] {
1048
1048
  .chakra-slider__markerIndicator {
1049
- background-color: ${({isCentred:e})=>F("neutral",e?400:500)};
1049
+ background-color: ${({isCentred:e})=>T("neutral",e?400:500)};
1050
1050
  }
1051
1051
  }
1052
1052
  }
1053
1053
 
1054
1054
  &[data-state='over-value'] {
1055
1055
  .chakra-slider__markerIndicator {
1056
- background-color: ${F("neutral",500)};
1056
+ background-color: ${T("neutral",500)};
1057
1057
  }
1058
1058
 
1059
1059
  &[data-disabled] {
1060
1060
  .chakra-slider__markerIndicator {
1061
- background-color: ${F("neutral",400)};
1061
+ background-color: ${T("neutral",400)};
1062
1062
  }
1063
1063
  }
1064
1064
  }
1065
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`
1066
+ ${({isMiddleMark:e})=>e?`\n --ty: -6px !important;\n\n .chakra-slider__markerIndicator {\n height: 16px;\n width: 4px;\n background-color: ${T("primary",700)} !important;\n }\n\n &[data-disabled] {\n .chakra-slider__markerIndicator {\n background-color: ${T("neutral",400)} !important;\n }\n }\n `:""};
1067
+ `,zl=a=>{const{value:n}=a;return e(I,{each:n,children:(a,n)=>l(yl,{index:n,children:[e(wl,{children:a}),e(z.HiddenInput,{})]},n)})},Il=n.forwardRef(((a,n)=>{const{marks:i,isCentred:r}=a;return i?.length?e(z.MarkerGroup,{ref:n,children:i.map(((a,n)=>{const i="number"==typeof a?a:a.value,o="number"==typeof a?void 0:a.label;return l(Ll,{value:i,isCentred:r,isMiddleMark:r&&1===n,children:[e(z.MarkerIndicator,{}),e("p",{children:o})]},i)}))}):null})),Dl=n.forwardRef(((a,n)=>{const{marks:r,onValueChange:o,isCentred:t,...d}=a,[c,s]=i(a.defaultValue||a.value||[0]);let p=r?.map((e=>"number"==typeof e?{value:e,label:void 0}:e));if(t){const e=a.min||0,l=a.max||100;p=[e,(e+l)/2,l].map((e=>({value:e,label:void 0})))}const h=!!p?.some((e=>e.label));return e(Cl,{ref:n,thumbAlignment:"center",onValueChange:e=>{s(e.value),o&&o(e)},origin:t?"center":"start",...d,children:l(z.Control,{"data-has-mark-label":h||void 0,children:[e($l,{children:e(kl,{})}),e(zl,{value:c}),e(Il,{marks:p,isCentred:t})]})})})),Bl=V.div`
1068
1068
  width: 20px;
1069
1069
  height: 20px;
1070
1070
  border-radius: 50%;
1071
1071
  background-color: ${({color:e})=>e};
1072
- border: 1px solid ${F("neutral",400)};
1073
- `,Ir=H.div`
1072
+ border: 1px solid ${T("neutral",400)};
1073
+ `,Fl=V.div`
1074
1074
  width: 20px;
1075
1075
  height: 8px;
1076
1076
  border-radius: 2px;
1077
1077
  background-color: ${({color:e})=>e};
1078
- border: 1px solid ${F("neutral",400)};
1079
- `,_r=H.div`
1078
+ border: 1px solid ${T("neutral",400)};
1079
+ `,Vl=V.div`
1080
1080
  width: 20px;
1081
1081
  height: 20px;
1082
1082
  border-radius: 50%;
@@ -1089,47 +1089,47 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
1089
1089
  width: 10px;
1090
1090
  height: 10px;
1091
1091
  }
1092
- `,Hr=H.div`
1092
+ `,Al=V.div`
1093
1093
  min-height: 36px;
1094
1094
  width: 100%;
1095
1095
  display: flex;
1096
1096
  justify-content: space-between;
1097
1097
  gap: 8px;
1098
1098
  margin-bottom: 16px;
1099
- `,Mr=H.div`
1099
+ `,Ml=V.div`
1100
1100
  display: flex;
1101
1101
  gap: 8px;
1102
- `,Vr=H.p`
1102
+ `,Tl=V.p`
1103
1103
  font-size: 14px;
1104
1104
  line-height: 20px;
1105
1105
  font-weight: 400;
1106
- color: ${F("neutral",800)};
1107
- `,Fr=H.p`
1106
+ color: ${T("neutral",800)};
1107
+ `,_l=V.p`
1108
1108
  font-size: 12px;
1109
1109
  line-height: 16px;
1110
1110
  font-weight: 400;
1111
- color: ${F("neutral",700)};
1112
- `,Er=H.div`
1111
+ color: ${T("neutral",700)};
1112
+ `,El=V.div`
1113
1113
  button {
1114
1114
  height: 25px;
1115
1115
  font-size: 12px;
1116
1116
  line-height: 16px;
1117
1117
  font-weight: 400;
1118
- color: ${F("neutral",600)};
1118
+ color: ${T("neutral",600)};
1119
1119
  padding: 0 10px;
1120
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)`
1121
+ `,Hl=({type:a,label:i,caption:r,color:o,onActionClick:t,showActionButton:d,pointIcon:c})=>{const[s,p]=n.useState(!0),h="line"===a,u="point"===a;return l(Al,{children:[l(Ml,{children:[l("div",{children:["raster"===a&&e(Bl,{color:o}),h&&e(Fl,{color:o}),u&&e(Vl,{color:o,children:c})]}),l("div",{children:[e(Tl,{"aria-label":i,children:i}),e(_l,{"aria-label":r,children:r})]})]}),t&&d?e(El,{children:e(ae,{variant:"borderless",label:s?"Hide":"Show",rightIcon:e(s?U:q,{}),"aria-label":"Show or Hide action",onClick:()=>{p(!s),t&&t()}})}):null]})},Rl=V(w.Item)`
1122
1122
  margin-bottom: 16px;
1123
- border: 1px solid ${F("neutral",300)};
1123
+ border: 1px solid ${T("neutral",300)};
1124
1124
  border-radius: 4px;
1125
1125
  box-shadow: 0px 1px 2px 0px #0000000d;
1126
- `,Zr=H(C.ItemTrigger)`
1126
+ `,Zl=V(w.ItemTrigger)`
1127
1127
  padding: 6px 8px;
1128
1128
  align-items: center;
1129
- background-color: ${F("neutral",100)};
1129
+ background-color: ${T("neutral",100)};
1130
1130
 
1131
1131
  &[aria-expanded='true'] {
1132
- border-bottom: 1px solid ${F("neutral",300)};
1132
+ border-bottom: 1px solid ${T("neutral",300)};
1133
1133
  border-bottom-right-radius: 0px;
1134
1134
  border-bottom-left-radius: 0px;
1135
1135
  }
@@ -1138,19 +1138,19 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
1138
1138
  height: 10px;
1139
1139
  width: 10px;
1140
1140
  }
1141
- `,Br=H.p`
1141
+ `,Sl=V.p`
1142
1142
  font-size: 12px;
1143
1143
  font-weight: 700;
1144
1144
  line-height: 16px;
1145
- color: ${F("neutral",700)};
1146
- `,Dr=H(C.ItemContent)`
1145
+ color: ${T("neutral",700)};
1146
+ `,jl=V(w.ItemContent)`
1147
1147
  padding: 12px 8px;
1148
1148
  display: flex;
1149
1149
  flex-direction: column;
1150
1150
 
1151
1151
  .layer-parameters-item-child {
1152
1152
  padding-bottom: 16px;
1153
- border-bottom: 1px solid ${F("neutral",300)};
1153
+ border-bottom: 1px solid ${T("neutral",300)};
1154
1154
  margin-bottom: 16px;
1155
1155
 
1156
1156
  &:last-child {
@@ -1159,23 +1159,23 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
1159
1159
  margin-bottom: 0px;
1160
1160
  }
1161
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`
1162
+ `,Nl=({label:a,children:n,openedByDefault:i})=>e("div",{children:e(w.Root,{defaultValue:i?[a]:[],multiple:!0,children:l(Rl,{value:a,children:[l(Zl,{children:[e(x,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:e(Sl,{children:a})}),e(w.ItemIndicator,{display:"flex",children:e(N,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),e(jl,{children:o.map(n,(l=>e("div",{className:"layer-parameters-item-child",children:l})))})]})})}),Ol=V.div`
1163
1163
  width: 100%;
1164
1164
  display: flex;
1165
1165
  flex-direction: column;
1166
1166
  margin-bottom: 16px;
1167
- `,Sr=H.div`
1167
+ `,Pl=V.div`
1168
1168
  height: 20px;
1169
1169
  width: 100%;
1170
1170
  margin-bottom: 8px;
1171
- border: 1px solid ${F("neutral",300)};
1171
+ border: 1px solid ${T("neutral",300)};
1172
1172
  border-radius: 4px;
1173
1173
  ${({gradient:e})=>e?`background: ${e};`:""}
1174
- `,Nr=H.div`
1174
+ `,ql=V.div`
1175
1175
  height: 20px;
1176
1176
  width: 100%;
1177
1177
  margin-bottom: 8px;
1178
- border: 1px solid ${F("neutral",300)};
1178
+ border: 1px solid ${T("neutral",300)};
1179
1179
  border-radius: 4px;
1180
1180
  display: flex;
1181
1181
  align-items: center;
@@ -1189,76 +1189,76 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
1189
1189
  border-top-right-radius: 3px;
1190
1190
  border-bottom-right-radius: 3px;
1191
1191
  }
1192
- `,Or=H.div`
1192
+ `,Ul=V.div`
1193
1193
  display: flex;
1194
1194
  justify-content: space-between;
1195
1195
  align-items: flex-start;
1196
- `,qr=H.p`
1196
+ `,Gl=V.p`
1197
1197
  width: 100%;
1198
1198
  font-size: 12px;
1199
1199
  line-height: 16px;
1200
1200
  font-weight: 400;
1201
- color: ${F("neutral",800)};
1201
+ color: ${T("neutral",800)};
1202
1202
  text-align: center;
1203
- `,Pr=H.p`
1203
+ `,Wl=V.p`
1204
1204
  font-size: 12px;
1205
1205
  line-height: 16px;
1206
1206
  font-weight: 400;
1207
- color: ${F("neutral",600)};
1207
+ color: ${T("neutral",600)};
1208
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`
1209
+ `,Yl=e=>{const l=e.map(((l,a)=>`${a/(e.length-1)*100}%`));return`linear-gradient(to right, ${e.map(((e,a)=>`${e} ${l[a]}`)).join(", ")})`},Kl=({colors:a,values:n,subLabels:i,isGradient:r})=>l(Ol,{children:[r?e(Pl,{gradient:Yl(a)}):e(ql,{children:a?.map(((l,a)=>e("div",{style:{backgroundColor:l,width:"100%",height:"100%"}},`${l}-${n?.[a]}`)))}),e(Ul,{children:n?.map((l=>e("div",{style:{width:r?"auto":`calc(100% / ${n.length})`,display:"flex",justifyContent:"center"},children:e(Gl,{children:l},l)})))}),i&&i.length?e(Ul,{children:i.map((l=>e("div",{style:{width:r?"auto":`calc(100% / ${n.length})`,display:"flex",justifyContent:"center"},children:e(Wl,{style:{width:"100%"},children:l},l)})))}):null]}),Jl=V.div`
1210
1210
  padding: 12px;
1211
1211
  padding-bottom: 20px;
1212
1212
  display: flex;
1213
1213
  gap: 12px;
1214
- border-bottom: 1px solid ${F("neutral",300)};
1215
- `,Wr=H.div`
1214
+ border-bottom: 1px solid ${T("neutral",300)};
1215
+ `,Ql=V.div`
1216
1216
  display: flex;
1217
1217
  flex-direction: column;
1218
1218
 
1219
1219
  svg {
1220
1220
  path {
1221
- fill: ${F("neutral",500)} !important;
1221
+ fill: ${T("neutral",500)} !important;
1222
1222
  }
1223
1223
  }
1224
- `,Jr=H.div`
1224
+ `,Xl=V.div`
1225
1225
  display: flex;
1226
1226
  align-items: flex-start;
1227
1227
  justify-content: space-between;
1228
1228
  gap: 12px;
1229
1229
  margin-bottom: 16px;
1230
- `,Kr=H.p`
1230
+ `,ea=V.p`
1231
1231
  font-size: 16px;
1232
1232
  line-height: 24px;
1233
1233
  font-weight: 400;
1234
1234
  text-align: left;
1235
- color: ${F("neutral",800)};
1236
- `,Qr=H.p`
1235
+ color: ${T("neutral",800)};
1236
+ `,la=V.p`
1237
1237
  font-size: 14px;
1238
1238
  line-height: 20px;
1239
1239
  font-weight: 400;
1240
1240
  text-align: left;
1241
- color: ${F("neutral",600)};
1242
- `,Xr=H.div`
1241
+ color: ${T("neutral",600)};
1242
+ `,aa=V.div`
1243
1243
  display: flex;
1244
1244
  justify-content: space-between;
1245
1245
 
1246
1246
  button {
1247
1247
  width: 110px;
1248
1248
  }
1249
- `,el=H(I.Content)`
1249
+ `,na=V(D.Content)`
1250
1250
  width: 234px;
1251
- border: 1px solid ${F("neutral",600)};
1251
+ border: 1px solid ${T("neutral",600)};
1252
1252
  border-radius: 4px;
1253
- `,rl=H(I.Body)`
1253
+ `,ia=V(D.Body)`
1254
1254
  padding: 12px;
1255
- `,ll=H.p`
1255
+ `,ra=V.p`
1256
1256
  font-size: 14px;
1257
1257
  line-height: 20px;
1258
1258
  font-weight: 400;
1259
1259
  text-align: left;
1260
- color: ${F("neutral",900)};
1261
- `,nl=H.div`
1260
+ color: ${T("neutral",900)};
1261
+ `,oa=V.div`
1262
1262
  display: flex;
1263
1263
  align-items: center;
1264
1264
  gap: 12px;
@@ -1278,9 +1278,9 @@ import{jsx as e,jsxs as r,Fragment as l}from"react/jsx-runtime";import n,{useSta
1278
1278
  margin-top: 18px;
1279
1279
  width: 100%;
1280
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`
1281
+ `,ta=({defaultValue:a,onOpacityChanged:n})=>{const[r,o]=i(a);return l(D.Root,{positioning:{placement:"bottom-end"},children:[e(D.Trigger,{asChild:!0,children:e(ae,{label:"Opacity",size:"small",variant:"secondary",leftIcon:e(j,{})})}),e(D.Positioner,{children:e(na,{children:l(ia,{children:[e(ra,{children:"Opacity"}),l(oa,{children:[e(tl,{"aria-label":"Opacity",min:"0",max:"100",value:`${r}%`,onChange:e=>{const l=e.target.value||"0";let a=parseInt(l,10);a=Number.isNaN(a)?0:a,a=a<0?0:a,a=a>100?100:a,o(a),n&&n(a)},className:"opacity-control-text-input"}),e(Dl,{min:0,max:100,value:[r],onValueChangeEnd:({value:e})=>{o(e[0]),n&&n(e[0])}})]})]})})})]})},da=({layerName:a,dataUnit:n,onDrag:i,onUpClick:r,onDownClick:o,onRemoveClick:t,children:d,onInfoClick:c,onOpacityChanged:s})=>l(Jl,{children:[l(Ql,{children:[e(ml,{icon:e(G,{}),"aria-label":"Drag and drop",onClick:i,style:{display:"none",marginBottom:"12px"}}),l("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[e(ml,{icon:e(N,{rotate:"180"}),"aria-label":"Up",onClick:r}),e(ml,{icon:e(N,{}),"aria-label":"Down",onClick:o})]})]}),l("div",{children:[l(Xl,{children:[l("div",{children:[e(ea,{children:a}),e(la,{children:n})]}),e(ae,{label:"Remove",size:"small",variant:"secondary",rightIcon:e(O,{}),onClick:t})]}),d,l(aa,{children:[e(ae,{label:"About data",size:"small",variant:"secondary",leftIcon:e(j,{}),onClick:c}),e(ta,{defaultValue:80,onOpacityChanged:s})]})]})]}),ca=V.div`
1282
1282
  width: 290px;
1283
1283
  box-shadow: 0px 2px 4px -2px #0000001a;
1284
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};
1285
+ `,sa=(e,l,a)=>{const n=Array.from(e),[i]=n.splice(l,1);return n.splice(a,0,i),n},pa=({legendContent:a,analysisContent:n,onTabClick:r})=>{const[d,c]=i("legend-tab"),[s,p]=i(a);return l(ca,{children:[e(ve,{tabs:[{label:"Legend",value:"legend-tab",icon:e(W,{})},{label:"Analysis",value:"analysis-tab",icon:e(Y,{})}],onTabClick:e=>{c(e),r&&r(e)}}),"legend-tab"===d?e("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:o.map(s,((e,l)=>t(e,{onUpClick:()=>{const e=sa(s,l,l-1);p(e)},onDownClick:()=>{const e=sa(s,l,l+1);p(e)}})))}):null,"analysis-tab"===d?e("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:n}):null]})},ha=()=>l("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[e(K,{name:"switch",defaultChecked:!0,onChange:console.log,children:"defaultChecked"}),e(K,{name:"switch 2",isLabelOnLeft:!0,children:"isLabelOnLeft"}),e(K,{name:"switch 3",children:"Normal Label Positon"}),e(K,{name:"switch 4",disabled:!0,children:"disabled"}),e(K,{name:"switch 4",disabled:!0,checked:!0,children:"disabled cheked"})]}),ua=()=>l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[l("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[e(ae,{label:"Button Label",variant:"primary"}),e(ae,{label:"Button Label",variant:"primary",size:"small"})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[e(ae,{label:"Button Label",variant:"secondary"}),e(ae,{label:"Button Label",variant:"secondary",size:"small"})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[e(ae,{label:"Button Label",variant:"borderless"}),e(ae,{label:"Button Label",variant:"borderless",size:"small"})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[e(ae,{label:"Button Label",variant:"outline"}),e(ae,{label:"Button Label",variant:"outline",size:"small"})]})]}),xa=()=>l("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[l(pe,{name:"radio-group-1",defaultValue:"1",onChange:(e,l)=>console.log(e,l),children:[e(se,{value:"1",children:"One"}),e(se,{value:"2",children:"Two"}),e(se,{value:"3",children:"Three"})]}),l(pe,{name:"radio-group-2",defaultValue:"5",isRow:!0,children:[e(se,{value:"4",children:"Four"}),e(se,{value:"5",disabled:!0,children:"Five"}),e(se,{value:"6",children:"Six"})]})]}),ba=()=>l("div",{style:{width:"300px"},children:[e(ve,{variant:"panel",tabs:[{label:"One",value:"one"},{label:"Two",value:"two"},{label:"Three",value:"three"}],onTabClick:console.log}),e("br",{}),e(ve,{variant:"panel",defaultValue:"two",tabs:[{label:"One",value:"one"},{label:"Two",value:"two",icon:e(Z,{})},{label:"Three",value:"three"}]}),e("br",{}),e(ve,{variant:"panel",defaultValue:"two",tabs:[{label:"One",value:"one"},{label:"Two",value:"two",disabled:!0},{label:"Three",value:"three"}]}),e("br",{}),e(ve,{variant:"view",defaultValue:"two",tabs:[{label:"One",value:"one"},{label:"Two",value:"two"},{label:"Three",value:"three"}]})]}),ga=[{label:"Monday",checked:!1,value:"monday"},{label:"Tuesday",checked:!1,value:"tuesday"},{label:"Wednesday",checked:!1,value:"wednesday"},{label:"Thursday",checked:!1,value:"thursday"}],ma=()=>{const[n,r]=i(ga),o=n.every((e=>e.checked)),t=n.some((e=>e.checked))&&!o,d=n.map(((l,a)=>e(Ie,{ms:"6",checked:l.checked,onCheckedChange:e=>{r((l=>{const n=[...l];return n[a]={...n[a],checked:!!e.checked},n}))},children:l.label},l.value)));return l(a,{children:[l("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[e(Ie,{name:"Checkbox",value:"1",defaultChecked:!0,children:"Checkbox"}),e(Ie,{name:"Checkbox",value:"1",checked:!0,disabled:!0,children:"Checkbox"}),e(Ie,{name:"Checkbox",value:"1",disabled:!0,children:"Checkbox"})]}),l(B,{align:"flex-start",children:[e(Ie,{checked:o,indeterminate:t,onCheckedChange:e=>{r((l=>l.map((l=>({...l,checked:!!e.checked})))))},children:"Weekdays"}),d]})]})},fa=()=>l(Ze,{defaultValue:["1"],children:[e(Re,{label:"Title 1_1",caption:"Caption 1",value:"1",layerItems:[{name:"layer-10",label:"Layer name 1",caption:"Caption 1",isDefaultSelected:!0},{name:"layer-11",label:"Layer name 2",caption:"Caption 1"}]}),e(Re,{label:"Title 2",caption:"Caption 2",value:"2",layerItems:[{name:"layer-20",label:"Layer name 3",caption:"Caption 1",variant:"radio"},{name:"layer-21",label:"Layer name 4",caption:"Caption 4",variant:"radio"}]})]}),va=()=>l(Ze,{defaultValue:["3"],children:[e(Re,{label:"Title 1_2",caption:"Caption 1",value:"3",layerItems:[{name:"layer-12",label:"Layer name 1",caption:"Caption 1"},{name:"layer-13",label:"Layer name 2",caption:"Caption 1"}]}),e(Re,{label:"Title 2",caption:"Caption 2",value:"4",layerItems:[{name:"layer-22",label:"Layer name 3",caption:"Caption 1",variant:"radio"},{name:"layer-23",label:"Layer name 4",caption:"Caption 4",variant:"radio"}]})]}),Ca=()=>l(Ze,{defaultValue:["5"],children:[e(Re,{label:"Title 1_3",caption:"Caption 1",value:"5",layerItems:[{name:"layer-14",label:"Layer name 1",caption:"Caption 1"},{name:"layer-15",label:"Layer name 2",caption:"Caption 1"}]}),e(Re,{label:"Title 2",caption:"Caption 2",value:"6",layerItems:[{name:"layer-24",label:"Layer name 3",caption:"Caption 1",variant:"radio",isDefaultSelected:!0},{name:"layer-25",label:"Layer name 4",caption:"Caption 4",variant:"radio"}]})]}),ya="label-1",wa=()=>{const[a,n]=i(ya);return l(Pe,{title:"Title and more",description:"Lorem ipsum dolor sit amet consectetur. Ac lectus massa auctor ac purus aliquam enim nibh accumsan. Nunc neque suspendisse.",tabBarVariant:"panel",buttonTabs:[{label:"Label 1",value:"label-1"},{label:"Label 2",value:"label-2"},{label:"Label 3",value:"label-3"}],defaultValue:ya,onTabClick:n,children:["label-1"===a?e(fa,{}):null,"label-2"===a?e(va,{}):null,"label-3"===a?e(Ca,{}):null]})},$a="label-1",ka=()=>{const[a,n]=i($a);return l(de,{defaultValue:$a,onTabClick:e=>{n(e)},onOpenChange:e=>{const l=document.querySelector(".app-container");l&&l?.setAttribute("class",e?"app-container":"app-container sidebar-closed")},tabs:[{label:"Label 1",value:"label-1",icon:e(Z,{})},{label:"Label 2",value:"label-2",icon:e(Z,{})},{label:"Label 3",value:"label-3",icon:e(Z,{})}],children:["label-1"===a?e(wa,{}):null,"label-2"===a?e("div",{children:"content 2"}):null,"label-3"===a?e("div",{children:"content 3"}):null]})},La=()=>l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[l("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[e(He,{label:"Small",size:"small",variant:"info-white",icon:e(j,{}),closable:!0}),e(He,{label:"Default",variant:"info-white",icon:e(j,{}),closable:!0}),e(He,{label:"Large",size:"large",variant:"info-white",icon:e(j,{}),closable:!0}),e(He,{label:"Label",variant:"info-white"}),e(He,{label:"Disabled",variant:"info-white",icon:e(j,{}),closable:!0,disabled:!0})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[e(He,{label:"Small",size:"small",variant:"info-grey",icon:e(j,{}),closable:!0}),e(He,{label:"Default",variant:"info-grey",icon:e(j,{}),closable:!0}),e(He,{label:"Large",size:"large",variant:"info-grey",icon:e(j,{}),closable:!0}),e(He,{label:"Label",variant:"info-grey"}),e(He,{label:"Disabled",variant:"info-grey",icon:e(j,{}),closable:!0,disabled:!0})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[e(He,{label:"Small",size:"small",variant:"success",icon:e(j,{}),closable:!0}),e(He,{label:"Default",variant:"success",icon:e(j,{}),closable:!0}),e(He,{label:"Large",size:"large",variant:"success",icon:e(j,{}),closable:!0}),e(He,{label:"Label",variant:"success"}),e(He,{label:"Disabled",variant:"success",icon:e(j,{}),closable:!0,disabled:!0})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[e(He,{label:"Small",size:"small",variant:"warning",icon:e(j,{}),closable:!0}),e(He,{label:"Default",size:"small",variant:"warning",icon:e(j,{}),closable:!0}),e(He,{label:"Large",size:"large",variant:"warning",icon:e(j,{}),closable:!0}),e(He,{label:"Label",size:"small",variant:"warning"}),e(He,{label:"Disabled",size:"small",variant:"warning",icon:e(j,{}),closable:!0,disabled:!0})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[e(He,{label:"Small",size:"small",variant:"error",icon:e(j,{}),closable:!0}),e(He,{label:"Default",size:"small",variant:"error",icon:e(j,{}),closable:!0}),e(He,{label:"Large",size:"large",variant:"error",icon:e(j,{}),closable:!0}),e(He,{label:"Label",size:"small",variant:"error"}),e(He,{label:"Disabled",size:"small",variant:"error",icon:e(j,{}),closable:!0,disabled:!0})]})]}),za=()=>l(a,{children:[l("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[e(el,{label:"Label",caption:"caption",variant:"info-white",actionLabel:"Label"}),e(el,{label:"Label",caption:"caption",variant:"info-white",actionLabel:"Label",isButtonRight:!0})]}),l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[e(el,{label:"Label",caption:"caption",variant:"info-white",actionLabel:"Label",size:"small"}),e(el,{label:"Label",caption:"caption",variant:"info-white",actionLabel:"Label",isButtonRight:!0,size:"small"})]})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[e(el,{label:"Label",caption:"caption",variant:"info-grey",actionLabel:"Label"}),e(el,{label:"Label",caption:"caption",variant:"info-grey",actionLabel:"Label",isButtonRight:!0})]}),l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[e(el,{label:"Label",caption:"caption",variant:"info-grey",actionLabel:"Label",size:"small"}),e(el,{label:"Label",caption:"caption",variant:"info-grey",actionLabel:"Label",isButtonRight:!0,size:"small"})]})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[e(el,{label:"Label",caption:"caption",variant:"success",actionLabel:"Label"}),e(el,{label:"Label",caption:"caption",variant:"success",actionLabel:"Label",isButtonRight:!0})]}),l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[e(el,{label:"Label",caption:"caption",variant:"success",actionLabel:"Label",size:"small"}),e(el,{label:"Label",caption:"caption",variant:"success",actionLabel:"Label",isButtonRight:!0,size:"small"})]})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[e(el,{label:"Label",caption:"caption",variant:"warning",actionLabel:"Label"}),e(el,{label:"Label",caption:"caption",variant:"warning",actionLabel:"Label",isButtonRight:!0})]}),l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[e(el,{label:"Label",caption:"caption",variant:"warning",actionLabel:"Label",size:"small"}),e(el,{label:"Label",caption:"caption",variant:"warning",actionLabel:"Label",isButtonRight:!0,size:"small"})]})]}),l("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[e(el,{label:"Label",caption:"caption",variant:"error",actionLabel:"Label"}),e(el,{label:"Label",caption:"caption",variant:"error",actionLabel:"Label",isButtonRight:!0})]}),l("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",gap:"10px"},children:[e(el,{label:"Label",caption:"caption",variant:"error",actionLabel:"Label",size:"small"}),e(el,{label:"Label",caption:"caption",variant:"error",actionLabel:"Label",isButtonRight:!0,size:"small"})]})]})]}),Ia=()=>l("div",{children:[e(tl,{label:"Label",caption:"Caption",placeholder:"placeholder",defaultValue:"Default Value",required:!0}),e(tl,{label:"Label",caption:"Caption",placeholder:"placeholder",size:"small"}),e(tl,{label:"Label",caption:"Caption",placeholder:"placeholder",errorMessage:"Error Message",required:!0}),e(tl,{label:"Label",caption:"Caption",placeholder:"placeholder",required:!0,disabled:!0})]}),Da=()=>l("div",{children:[e(bl,{label:"Label",caption:"Caption",placeholder:"placeholder",defaultValue:"Default Value",minLength:5,maxLength:200,required:!0}),e(bl,{label:"Label",caption:"Caption",placeholder:"placeholder",size:"small"}),e(bl,{label:"Label",caption:"Caption",placeholder:"placeholder",errorMessage:"Error Message",required:!0}),e(bl,{label:"Label",caption:"Caption",placeholder:"placeholder",required:!0,disabled:!0})]}),Ba=()=>l("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[e(vl,{}),e(vl,{disabled:!0})]}),Fa=()=>l("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[e(ml,{icon:e(P,{}),"aria-label":"Menu"}),e(ml,{icon:e(Z,{}),"aria-label":"Check"}),e(ml,{icon:e(j,{}),"aria-label":"Info",disabled:!0})]}),Va=()=>l("div",{style:{width:"280px",display:"flex",flexDirection:"column",gap:"20px"},children:[e(Dl,{min:0,max:100,defaultValue:[50]}),e(Dl,{min:0,max:100,defaultValue:[50],marks:[{value:0,label:0},{value:25,label:25},{value:50,label:50},{value:75,label:75},{value:100,label:100}]}),e(Dl,{min:0,max:100,defaultValue:[50],marks:[{value:0,label:0},{value:25,label:25},{value:50,label:50},{value:75,label:75},{value:100,label:100}],step:25}),e(Dl,{value:[20,80]}),e(Dl,{min:-100,max:100,defaultValue:[0],isCentred:!0}),e(Dl,{value:[70],marks:[0,25,50,75,100],disabled:!0})]}),Aa=()=>l("div",{style:{width:"238px"},children:[e(Hl,{type:"raster",label:"Attribute",caption:"Caption",color:"#238B45",onActionClick:()=>console.log("click"),showActionButton:!0}),e(Hl,{type:"line",label:"Attribute",color:"#238B45",onActionClick:()=>console.log("click"),showActionButton:!0}),e(Hl,{type:"point",label:"Attribute",color:"#F3FFF2",pointIcon:e(j,{})})]}),Ma=()=>e("div",{style:{width:"238px"},children:l(Nl,{label:"Adjust layer parameters",children:[e("div",{children:"Component Placeholder"}),e("div",{children:"Component Placeholder"}),e("div",{children:"Component Placeholder"})]})}),Ta=()=>l("div",{style:{width:"238px"},children:[e(Kl,{colors:["#E5F5F9","#2CA25F"],values:["Low","Medium","High"],subLabels:["<100K",">600K"],isGradient:!0}),e(Kl,{colors:["#EDF8FB","#B2E2E2","#66C2A4","#2CA25F","#006D2C"],values:["0%","25%","50%","75%","100%"]}),e(Kl,{colors:["#A6611A","#DFC27D","#F5F5F5","#80CDC1","#018571"],values:["0%","25%","50%","75%","100%"]}),e(Kl,{colors:["#A6611A","#DFC27D","#F5F5F5","#80CDC1","#018571"],values:["Low","Low-medium","Medium-high","High","Extremely high"],subLabels:["(0 to 9 in 1,000,000)","(9 in 1,000,000 to 7 in 100,000)","(7 in 100,000 to 3 in 10,000)","(3 in 10,000 to 2 in 1,000)","(more than 2 in 1,000)"]})]}),_a=({onDrag:a=()=>{},onUpClick:n=()=>{},onDownClick:i=()=>{}})=>e("div",{style:{width:"290px"},children:l(da,{layerName:"Layer Name",dataUnit:"Data Unit",onDrag:a,onUpClick:n,onDownClick:i,onRemoveClick:()=>console.log("remove"),onInfoClick:()=>console.log("info"),onOpacityChanged:e=>console.log("opacity changed",e),children:[e(Kl,{colors:["#EDF8FB","#B2E2E2","#66C2A4","#2CA25F","#006D2C"],values:["0%","25%","50%","75%","100%"]}),e(Hl,{type:"raster",label:"Attribute",caption:"Caption",color:"#238B45",onActionClick:()=>console.log("click"),showActionButton:!0}),e(Hl,{type:"raster",label:"Attribute",caption:"Caption",color:"#238B45"}),e(el,{label:"Label",caption:"caption",variant:"info-white",actionLabel:"Label",size:"small"}),l(Nl,{label:"Adjust layer parameters",children:[e("div",{children:"Component Placeholder"}),e("div",{children:"Component Placeholder"}),e("div",{children:"Component Placeholder"})]})]})}),Ea=({onDrag:a=()=>{},onUpClick:n=()=>{},onDownClick:i=()=>{}})=>e("div",{style:{width:"290px"},children:l(da,{layerName:"Layer Name 2",dataUnit:"Data Unit",onDrag:a,onUpClick:n,onDownClick:i,onRemoveClick:()=>console.log("remove"),onInfoClick:()=>console.log("info"),onOpacityChanged:e=>console.log("opacity changed",e),children:[e(Kl,{colors:["#EDF8FB","#B2E2E2","#66C2A4","#2CA25F","#006D2C"],values:["0%","25%","50%","75%","100%"]}),e(Hl,{type:"raster",label:"Attribute",caption:"Caption",color:"#238B45",onActionClick:()=>console.log("click"),showActionButton:!0}),e(Hl,{type:"raster",label:"Attribute",caption:"Caption",color:"#238B45"}),e(el,{label:"Label",caption:"caption",variant:"info-white",actionLabel:"Label",size:"small"}),l(Nl,{label:"Adjust layer parameters",children:[e("div",{children:"Component Placeholder"}),e("div",{children:"Component Placeholder"}),e("div",{children:"Component Placeholder"})]})]})}),Ha=({onDrag:a=()=>{},onUpClick:n=()=>{},onDownClick:i=()=>{}})=>e("div",{style:{width:"290px"},children:l(da,{layerName:"Layer Name 3",dataUnit:"Data Unit",onDrag:a,onUpClick:n,onDownClick:i,onRemoveClick:()=>console.log("remove"),onInfoClick:()=>console.log("info"),onOpacityChanged:e=>console.log("opacity changed",e),children:[e(Kl,{colors:["#EDF8FB","#B2E2E2","#66C2A4","#2CA25F","#006D2C"],values:["0%","25%","50%","75%","100%"]}),e(Hl,{type:"raster",label:"Attribute",caption:"Caption",color:"#238B45",onActionClick:()=>console.log("click"),showActionButton:!0}),e(Hl,{type:"raster",label:"Attribute",caption:"Caption",color:"#238B45"}),e(el,{label:"Label",caption:"caption",variant:"info-white",actionLabel:"Label",size:"small"}),l(Nl,{label:"Adjust layer parameters",children:[e("div",{children:"Component Placeholder"}),e("div",{children:"Component Placeholder"}),e("div",{children:"Component Placeholder"})]})]})}),Ra=()=>e(pa,{legendContent:[e(_a,{}),e(Ea,{}),e(Ha,{})],analysisContent:e("div",{})});d.createRoot(document.getElementById("root")).render(e(n.StrictMode,{children:e(F,{value:M,children:e((()=>e("div",{className:"App",children:l("div",{className:"app-container",children:[e("h1",{style:{marginBottom:"20px"},children:"Welcome to WRI OS"}),l("div",{style:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",gap:25},children:[e(Ra,{}),e(_a,{}),e(Ta,{}),e(Ma,{}),e(Aa,{}),e(Va,{}),e(Fa,{}),e(Ba,{}),e(Ia,{}),e(Da,{}),e(za,{}),e(La,{}),e(ma,{}),e(ba,{}),e(xa,{}),e(ua,{}),e(ha,{})]}),e(ka,{})]})})),{})})}));export{ae as Button,Ie as Checkbox,vl as CloseButton,ml as IconButton,el as InlineMessage,Re as LayerGroup,Ze as LayerGroupContainer,Le as LayerItem,Pe as LayerPanel,Nl as LayerParameters,da as LegendItem,pa as LegendPanel,de as NavigationRail,Hl as QualitativeLegend,se as Radio,pe as RadioGroup,Kl as ScaleLegend,Dl as Slider,K as Switch,ve as TabBar,He as Tag,tl as TextInput,bl as Textarea};
1286
1286
  //# sourceMappingURL=index.js.map