@purple/phoenix-components 5.28.1 → 5.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs.js +51 -42
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +94 -85
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +51 -42
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
right: initial;
|
|
724
724
|
left: 1rem;
|
|
725
725
|
}
|
|
726
|
-
`,gl=({testId:t="Modal",size:l="md",center:n=!0,animate:i=!0,showCloseButton:r=!0,closeOnOverlayClick:o=!0,container:a,open:C,onClose:d,children:s,...c})=>{const[p,u]=e.useState(C),[g,h]=e.useState(C),m=e.useRef(null);if(e.useEffect((()=>{C?u(!0):(h(!1),i?m.current?.addEventListener("transitionend",(()=>u(!1))):u(!1))}),[C]),e.useEffect((()=>{p&&setTimeout((()=>h(!0)),1)}),[p]),!p&&!C)return null;const D={visible:g,animate:i},f=b.default.createElement(sl,{...D,onClick:e=>{e.stopPropagation(),!m.current?.contains(e.target)&&d&&o&&d()},"data-testid":t},b.default.createElement(cl,{center:n},b.default.createElement(pl,{
|
|
726
|
+
`,gl=({testId:t="Modal",size:l="md",center:n=!0,animate:i=!0,showCloseButton:r=!0,closeOnOverlayClick:o=!0,container:a,open:C,onClose:d,children:s,...c})=>{const[p,u]=e.useState(C),[g,h]=e.useState(C),m=e.useRef(null);if(e.useEffect((()=>{C?u(!0):(h(!1),i?m.current?.addEventListener("transitionend",(()=>u(!1))):u(!1))}),[C]),e.useEffect((()=>{p&&setTimeout((()=>h(!0)),1)}),[p]),!p&&!C)return null;const D={visible:g,animate:i},f=b.default.createElement(sl,{...D,onClick:e=>{e.stopPropagation(),!m.current?.contains(e.target)&&d&&o&&d()},"data-testid":t},b.default.createElement(cl,{center:n},b.default.createElement(pl,{$size:l,my:"3xl",p:"md",...D,...c,ref:m},r&&b.default.createElement(ul,{minimal:!0,size:"lg",icon:"cross",onClick:d,colorTheme:"neutral"}),s)));return a?H.default.createPortal(f,a):f},hl=w.default(_e)`
|
|
727
727
|
grid-area: button;
|
|
728
728
|
background: #fff;
|
|
729
729
|
color: ${({theme:e})=>e.tokens.color.text.primary};
|
|
@@ -974,7 +974,7 @@
|
|
|
974
974
|
|
|
975
975
|
${P}
|
|
976
976
|
${R}
|
|
977
|
-
`,en=
|
|
977
|
+
`,en=t.css`
|
|
978
978
|
display: flex;
|
|
979
979
|
align-items: center;
|
|
980
980
|
text-decoration: none;
|
|
@@ -990,24 +990,33 @@
|
|
|
990
990
|
background: ${e.tokens.color.background.neutral.secondary};
|
|
991
991
|
}
|
|
992
992
|
`}
|
|
993
|
-
`,tn=
|
|
993
|
+
`,tn=w.default.button`
|
|
994
|
+
${en};
|
|
995
|
+
border: none;
|
|
996
|
+
background: inherit;
|
|
997
|
+
width: 100%;
|
|
998
|
+
font-size: 14px;
|
|
999
|
+
font-family: ${({theme:e})=>e.tokens.ref.fontFamily.base};
|
|
1000
|
+
`,ln=w.default.a`
|
|
1001
|
+
${en}
|
|
1002
|
+
`,nn=t.css`
|
|
994
1003
|
width: 20px;
|
|
995
1004
|
height: 20px;
|
|
996
1005
|
margin-inline-end: 8px;
|
|
997
1006
|
|
|
998
1007
|
${({theme:e,icon:t,disabled:l,colorTheme:n})=>fe(t)?"":`\n\t\t\t\t\tpath {\n\t\t\t\t\t\tfill: ${l?e.tokens.color.text.quaternary:n?e.tokens.color.text[n].primary:e.tokens.color.text.secondary};\n\t\t\t\t\t}\n\t\t\t `}
|
|
999
|
-
`,
|
|
1000
|
-
${
|
|
1001
|
-
`,
|
|
1002
|
-
${
|
|
1003
|
-
`,
|
|
1008
|
+
`,rn=w.default(E.default)`
|
|
1009
|
+
${nn}
|
|
1010
|
+
`,on=w.default(be)`
|
|
1011
|
+
${nn}
|
|
1012
|
+
`,an=e=>e.icon?Fe(e.icon)?b.default.createElement(on,{icon:e.icon,disabled:e.disabled,colorTheme:e.colorTheme}):"string"==typeof e.icon?b.default.createElement(rn,{src:e.icon,disabled:e.disabled,colorTheme:e.colorTheme}):e.icon:null,Cn=w.default.div`
|
|
1004
1013
|
display: flex;
|
|
1005
1014
|
align-items: center;
|
|
1006
|
-
`,
|
|
1015
|
+
`,dn=(e,t)=>{if("value"===t.context)return e.label;const l=t.selectValue?.some((t=>t.value===e.value));return b.default.createElement(Cn,null,b.default.createElement(et,{checked:l,readOnly:!0}),e.label)};tl("/* Functional styling;\n * These styles are required for noUiSlider to function.\n * You don't need to change these rules to apply your design.\n */\n.noUi-target,\n.noUi-target * {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-user-select: none;\n -ms-touch-action: none;\n touch-action: none;\n -ms-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.noUi-target {\n position: relative;\n}\n.noUi-base,\n.noUi-connects {\n width: 100%;\n height: 100%;\n position: relative;\n z-index: 1;\n}\n/* Wrapper for all connect elements.\n */\n.noUi-connects {\n overflow: hidden;\n z-index: 0;\n}\n.noUi-connect,\n.noUi-origin {\n will-change: transform;\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n height: 100%;\n width: 100%;\n -ms-transform-origin: 0 0;\n -webkit-transform-origin: 0 0;\n -webkit-transform-style: preserve-3d;\n transform-origin: 0 0;\n transform-style: flat;\n}\n/* Offset direction\n */\n.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {\n left: 0;\n right: auto;\n}\n/* Give origins 0 height/width so they don't interfere with clicking the\n * connect elements.\n */\n.noUi-vertical .noUi-origin {\n top: -100%;\n width: 0;\n}\n.noUi-horizontal .noUi-origin {\n height: 0;\n}\n.noUi-handle {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n position: absolute;\n}\n.noUi-touch-area {\n height: 100%;\n width: 100%;\n}\n.noUi-state-tap .noUi-connect,\n.noUi-state-tap .noUi-origin {\n -webkit-transition: transform 0.3s;\n transition: transform 0.3s;\n}\n.noUi-state-drag * {\n cursor: inherit !important;\n}\n/* Slider size and handle placement;\n */\n.noUi-horizontal {\n height: 18px;\n}\n.noUi-horizontal .noUi-handle {\n width: 34px;\n height: 28px;\n right: -17px;\n top: -6px;\n}\n.noUi-vertical {\n width: 18px;\n}\n.noUi-vertical .noUi-handle {\n width: 28px;\n height: 34px;\n right: -6px;\n bottom: -17px;\n}\n.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {\n left: -17px;\n right: auto;\n}\n/* Styling;\n * Giving the connect element a border radius causes issues with using transform: scale\n */\n.noUi-target {\n background: #FAFAFA;\n border-radius: 4px;\n border: 1px solid #D3D3D3;\n box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;\n}\n.noUi-connects {\n border-radius: 3px;\n}\n.noUi-connect {\n background: #3FB8AF;\n}\n/* Handles and cursors;\n */\n.noUi-draggable {\n cursor: ew-resize;\n}\n.noUi-vertical .noUi-draggable {\n cursor: ns-resize;\n}\n.noUi-handle {\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #FFF;\n cursor: default;\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;\n}\n.noUi-active {\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;\n}\n/* Handle stripes;\n */\n.noUi-handle:before,\n.noUi-handle:after {\n content: \"\";\n display: block;\n position: absolute;\n height: 14px;\n width: 1px;\n background: #E8E7E6;\n left: 14px;\n top: 6px;\n}\n.noUi-handle:after {\n left: 17px;\n}\n.noUi-vertical .noUi-handle:before,\n.noUi-vertical .noUi-handle:after {\n width: 14px;\n height: 1px;\n left: 6px;\n top: 14px;\n}\n.noUi-vertical .noUi-handle:after {\n top: 17px;\n}\n/* Disabled state;\n */\n[disabled] .noUi-connect {\n background: #B8B8B8;\n}\n[disabled].noUi-target,\n[disabled].noUi-handle,\n[disabled] .noUi-handle {\n cursor: not-allowed;\n}\n/* Base;\n *\n */\n.noUi-pips,\n.noUi-pips * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.noUi-pips {\n position: absolute;\n color: #999;\n}\n/* Values;\n *\n */\n.noUi-value {\n position: absolute;\n white-space: nowrap;\n text-align: center;\n}\n.noUi-value-sub {\n color: #ccc;\n font-size: 10px;\n}\n/* Markings;\n *\n */\n.noUi-marker {\n position: absolute;\n background: #CCC;\n}\n.noUi-marker-sub {\n background: #AAA;\n}\n.noUi-marker-large {\n background: #AAA;\n}\n/* Horizontal layout;\n *\n */\n.noUi-pips-horizontal {\n padding: 10px 0;\n height: 80px;\n top: 100%;\n left: 0;\n width: 100%;\n}\n.noUi-value-horizontal {\n -webkit-transform: translate(-50%, 50%);\n transform: translate(-50%, 50%);\n}\n.noUi-rtl .noUi-value-horizontal {\n -webkit-transform: translate(50%, 50%);\n transform: translate(50%, 50%);\n}\n.noUi-marker-horizontal.noUi-marker {\n margin-left: -1px;\n width: 2px;\n height: 5px;\n}\n.noUi-marker-horizontal.noUi-marker-sub {\n height: 10px;\n}\n.noUi-marker-horizontal.noUi-marker-large {\n height: 15px;\n}\n/* Vertical layout;\n *\n */\n.noUi-pips-vertical {\n padding: 0 10px;\n height: 100%;\n top: 0;\n left: 100%;\n}\n.noUi-value-vertical {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n padding-left: 25px;\n}\n.noUi-rtl .noUi-value-vertical {\n -webkit-transform: translate(0, 50%);\n transform: translate(0, 50%);\n}\n.noUi-marker-vertical.noUi-marker {\n width: 5px;\n height: 2px;\n margin-top: -1px;\n}\n.noUi-marker-vertical.noUi-marker-sub {\n width: 10px;\n}\n.noUi-marker-vertical.noUi-marker-large {\n width: 15px;\n}\n.noUi-tooltip {\n display: block;\n position: absolute;\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #fff;\n color: #000;\n padding: 5px;\n text-align: center;\n white-space: nowrap;\n}\n.noUi-horizontal .noUi-tooltip {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n left: 50%;\n bottom: 120%;\n}\n.noUi-vertical .noUi-tooltip {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n top: 50%;\n right: 120%;\n}\n.noUi-horizontal .noUi-origin > .noUi-tooltip {\n -webkit-transform: translate(50%, 0);\n transform: translate(50%, 0);\n left: auto;\n bottom: 10px;\n}\n.noUi-vertical .noUi-origin > .noUi-tooltip {\n -webkit-transform: translate(0, -18px);\n transform: translate(0, -18px);\n top: auto;\n right: 28px;\n}\n",{});const sn=w.default.div`
|
|
1007
1016
|
padding: 0 ${({px:e})=>e??"10px"};
|
|
1008
1017
|
display: flex;
|
|
1009
1018
|
align-items: center;
|
|
1010
|
-
`,
|
|
1019
|
+
`,cn=w.default.div`
|
|
1011
1020
|
&,
|
|
1012
1021
|
&.noUi-target {
|
|
1013
1022
|
border: none;
|
|
@@ -1055,19 +1064,19 @@
|
|
|
1055
1064
|
.noUi-connect {
|
|
1056
1065
|
background: ${({theme:e})=>e.tokens.color.text.secondary};
|
|
1057
1066
|
}
|
|
1058
|
-
`,
|
|
1067
|
+
`,pn=({testId:t,px:l,className:n,sliderRef:i,sliderApi:r,disabled:o})=>(e.useEffect((()=>{r&&(o?r.disable():r.enable())}),[r,o]),b.default.createElement(sn,{"data-testid":t,className:n,px:l},b.default.createElement(cn,{ref:i})));function un(t,l,n){const i=e.useRef(null),r=e.useRef(null);return e.useEffect((()=>{if(!i||!r||!i.current||r.current)return;const e=l.connect??(["number","string"].includes(typeof t)?"lower":Array.isArray(t)&&2===t.length?[!1,!0,!1]:void 0);r.current=Z.default.create(i.current,{start:t,range:l.range,step:l.step,connect:e,animate:!1,snap:l.snap,pips:l.pips})}),[i]),e.useEffect((()=>{$.default(t,n)||r.current?.set(t)}),[t]),[r,i]}const gn=w.default.section`
|
|
1059
1068
|
display: flex;
|
|
1060
1069
|
flex-wrap: wrap;
|
|
1061
1070
|
justify-content: center;
|
|
1062
1071
|
|
|
1063
1072
|
${R}
|
|
1064
|
-
`,
|
|
1073
|
+
`,hn=w.default(_e)`
|
|
1065
1074
|
[dir='rtl'] & svg {
|
|
1066
1075
|
transform: scaleX(-1);
|
|
1067
1076
|
}
|
|
1068
1077
|
|
|
1069
1078
|
${({selected:e})=>!1===e?"font-weight: normal;":""}
|
|
1070
|
-
`,
|
|
1079
|
+
`,mn=w.default.div`
|
|
1071
1080
|
${e=>Le(e.theme)}
|
|
1072
1081
|
${e=>we(e.size,e.theme)}
|
|
1073
1082
|
${e=>Ee(e.theme,"brand",!0)}
|
|
@@ -1083,7 +1092,7 @@
|
|
|
1083
1092
|
}
|
|
1084
1093
|
|
|
1085
1094
|
${R}
|
|
1086
|
-
`,
|
|
1095
|
+
`,Dn=(e,t)=>{const l=t-e+1;return Array.from({length:l},((t,l)=>e+l))},fn=w.default(st)`
|
|
1087
1096
|
cursor: pointer;
|
|
1088
1097
|
|
|
1089
1098
|
&:hover path {
|
|
@@ -1091,22 +1100,22 @@
|
|
|
1091
1100
|
${({theme:e})=>e.tokens.duration.transition.base};
|
|
1092
1101
|
fill: ${({theme:e})=>e.tokens.color.text.primary};
|
|
1093
1102
|
}
|
|
1094
|
-
`,
|
|
1103
|
+
`,Fn=w.default.div`
|
|
1095
1104
|
background-color: ${({theme:e})=>e.tokens.color.background.tertiary};
|
|
1096
1105
|
border-radius: ${({theme:e})=>e.tokens.ref.borderRadius.pill};
|
|
1097
1106
|
height: 9px;
|
|
1098
1107
|
|
|
1099
1108
|
${R};
|
|
1100
|
-
`,
|
|
1109
|
+
`,xn=w.default.div`
|
|
1101
1110
|
background: ${({theme:e,$color:t})=>t?O(t)?e.tokens.color.background[t].primary:t:e.tokens.color.background.brand.primary};
|
|
1102
1111
|
border-radius: ${({theme:e})=>e.tokens.ref.borderRadius.pill};
|
|
1103
1112
|
width: ${({$value:e})=>e?`${e}%`:"0%"};
|
|
1104
1113
|
height: 100%;
|
|
1105
1114
|
transition: width
|
|
1106
1115
|
${({theme:e})=>e.tokens.duration.transition.base};
|
|
1107
|
-
`,
|
|
1116
|
+
`,vn=({testId:e="ProgressBar",value:t,color:l,...n})=>b.default.createElement(Fn,{"data-testid":e,...n},b.default.createElement(xn,{$value:t,$color:l})),bn=w.default.div`
|
|
1108
1117
|
width: 80px;
|
|
1109
|
-
`;var
|
|
1118
|
+
`;var wn;!function(e){e.NONE="none",e.WEAK="weak",e.FAIR="fair",e.GOOD="good",e.EXCELLENT="excellent"}(wn||(wn={}));const En=l=>{const n=t.useTheme(),i=e.useMemo((()=>({strength:wn.NONE,textColor:n.tokens.color.text.primary,progressBarColor:n.tokens.color.background.error.primary,progressBarValue:0})),[n]),[r,o]=e.useState(i);return e.useEffect((()=>{if(!l)return o(i);(async()=>{const{colorTheme:e,...t}=await(async e=>{let t,l,n;switch((await import("zxcvbn").then((t=>t.default(e)))).score){case 4:t=wn.EXCELLENT,l="success",n=100;break;case 3:t=wn.GOOD,l="success",n=75;break;case 2:t=wn.FAIR,l="warning",n=50;break;default:t=wn.WEAK,l="error",n=25}return{strength:t,colorTheme:l,progressBarValue:n}})(l);o({textColor:n.tokens.color.text[e].primary,progressBarColor:n.tokens.color.background[e].primary,...t})})()}),[n,l,i]),r},Ln=w.default(je)`
|
|
1110
1119
|
label::before {
|
|
1111
1120
|
border-radius: 100%;
|
|
1112
1121
|
}
|
|
@@ -1116,7 +1125,7 @@
|
|
|
1116
1125
|
solid
|
|
1117
1126
|
${({theme:e,colorTheme:t})=>e.tokens.color.background[t].primary};
|
|
1118
1127
|
}
|
|
1119
|
-
`,
|
|
1128
|
+
`,yn=(e,t)=>(q(t.tokens.inputButton.sizing.height[e])-2-q(t.tokens.checkboxRadio.sizing.md))/2,kn=(e,t,l,n)=>n?e.tokens.color.text.quaternary:l?e.tokens.color.text[t].primary:e.tokens.color.text.secondary,Hn=w.default.div`
|
|
1120
1129
|
display: grid;
|
|
1121
1130
|
grid-template-columns: ${({optionsLength:e})=>`repeat(${e}, minmax(100px, 300px))`};
|
|
1122
1131
|
grid-column-gap: ${({size:e})=>"md"===e?16:24}px;
|
|
@@ -1125,24 +1134,24 @@
|
|
|
1125
1134
|
grid-row-gap: 20px;
|
|
1126
1135
|
max-width: 100%;
|
|
1127
1136
|
}
|
|
1128
|
-
`,
|
|
1137
|
+
`,Mn=w.default.div`
|
|
1129
1138
|
font-size: 12px;
|
|
1130
|
-
color: ${e=>
|
|
1139
|
+
color: ${e=>kn(e.theme,e.colorTheme,e.checked,e.isDisabled)};
|
|
1131
1140
|
margin-top: 4px;
|
|
1132
1141
|
font-weight: normal;
|
|
1133
1142
|
opacity: 0.75;
|
|
1134
|
-
`,
|
|
1143
|
+
`,Vn=w.default.div`
|
|
1135
1144
|
display: flex;
|
|
1136
1145
|
flex-direction: column;
|
|
1137
1146
|
align-items: center;
|
|
1138
|
-
|
|
1147
|
+
`,$n=w.default.div`
|
|
1139
1148
|
display: flex;
|
|
1140
1149
|
position: relative;
|
|
1141
1150
|
min-height: ${({size:e,theme:t})=>t.tokens.inputButton.sizing.height[e]};
|
|
1142
1151
|
flex-direction: column;
|
|
1143
1152
|
align-items: center;
|
|
1144
1153
|
justify-content: center;
|
|
1145
|
-
${({withImage:e,checked:l,size:n,theme:i})=>{const r=
|
|
1154
|
+
${({withImage:e,checked:l,size:n,theme:i})=>{const r=yn(n,i),o=q(i.tokens.checkboxRadio.sizing.md),a=(q(i.tokens.inputButton.sizing.height[n])-2-16)/2;return e?t.css`
|
|
1146
1155
|
padding: ${a+4}px ${r}px;
|
|
1147
1156
|
`:l?t.css`
|
|
1148
1157
|
padding-top: ${a}px;
|
|
@@ -1155,7 +1164,7 @@
|
|
|
1155
1164
|
text-align: center;
|
|
1156
1165
|
border: 1px solid;
|
|
1157
1166
|
background: ${({theme:e})=>e.tokens.color.background.primary};
|
|
1158
|
-
color: ${e=>
|
|
1167
|
+
color: ${e=>kn(e.theme,e.colorTheme,e.checked,e.isDisabled)};
|
|
1159
1168
|
border-color: ${({isDisabled:e,checked:t,colorTheme:l,theme:n})=>e?n.tokens.color.border.secondary:t?n.tokens.color.border[l].primary:n.tokens.color.border.primary};
|
|
1160
1169
|
font-weight: ${({hasDescription:e,theme:t})=>e?t.tokens.ref.fontWeight.bold:t.tokens.ref.fontWeight.regular};
|
|
1161
1170
|
border-radius: 4px;
|
|
@@ -1166,7 +1175,7 @@
|
|
|
1166
1175
|
${({checked:e,theme:t})=>e?"":`\n\t\t&:hover {\n\t\t\tborder-color: ${t.tokens.color.border.primaryInteraction};\n\t\t} \n\t`}
|
|
1167
1176
|
|
|
1168
1177
|
${({isDisabled:e})=>e?"\n\t\tpointer-events: none;\n\t":""}
|
|
1169
|
-
`,
|
|
1178
|
+
`,Zn=w.default.img`
|
|
1170
1179
|
max-width: ${({imageSize:e,size:t})=>e??("md"===t?"48px":"64px")};
|
|
1171
1180
|
max-height: ${({imageSize:e,size:t})=>e??("md"===t?"48px":"64px")};
|
|
1172
1181
|
margin-bottom: 12px;
|
|
@@ -1174,10 +1183,10 @@
|
|
|
1174
1183
|
width: 100%;
|
|
1175
1184
|
height: 100%;
|
|
1176
1185
|
object-fit: contain;
|
|
1177
|
-
|
|
1186
|
+
`,Bn=w.default(Ke)`
|
|
1178
1187
|
position: absolute;
|
|
1179
|
-
top: ${({size:e,theme:t})=>
|
|
1180
|
-
${({size:e,theme:t})=>We(`${
|
|
1188
|
+
top: ${({size:e,theme:t})=>yn(e,t)}px;
|
|
1189
|
+
${({size:e,theme:t})=>We(`${yn(e,t)}px`)};
|
|
1181
1190
|
visibility: ${({checked:e})=>e?"visible":"hidden"};
|
|
1182
1191
|
pointer-events: none;
|
|
1183
1192
|
`;w.default.div`
|
|
@@ -1185,11 +1194,11 @@
|
|
|
1185
1194
|
padding: 5px 0;
|
|
1186
1195
|
font-size: 13px;
|
|
1187
1196
|
margin-top: 5px;
|
|
1188
|
-
`;const
|
|
1197
|
+
`;const zn=w.default.div`
|
|
1189
1198
|
${We("-5%")}
|
|
1190
1199
|
transform: translateX(6%);
|
|
1191
1200
|
position: relative;
|
|
1192
|
-
`,
|
|
1201
|
+
`,An=w.default(D.Tabs)`
|
|
1193
1202
|
.react-tabs__tab-panel {
|
|
1194
1203
|
display: none;
|
|
1195
1204
|
}
|
|
@@ -1203,13 +1212,13 @@
|
|
|
1203
1212
|
padding: 0;
|
|
1204
1213
|
margin: 0 -12px;
|
|
1205
1214
|
position: relative;
|
|
1206
|
-
`;const
|
|
1215
|
+
`;const Sn=w.default(D.TabList)`
|
|
1207
1216
|
display: flex;
|
|
1208
1217
|
list-style: none;
|
|
1209
1218
|
padding: 0;
|
|
1210
1219
|
margin: 0 -12px;
|
|
1211
1220
|
position: relative;
|
|
1212
|
-
`,
|
|
1221
|
+
`,_n=w.default.a`
|
|
1213
1222
|
display: block;
|
|
1214
1223
|
height: ${({theme:e,size:t})=>2*q(e.tokens.ref.fontSize[t??"md"])+12}px;
|
|
1215
1224
|
line-height: ${({theme:e,size:t})=>2*q(e.tokens.ref.fontSize[t??"md"])+12}px;
|
|
@@ -1239,7 +1248,7 @@
|
|
|
1239
1248
|
background: ${e.tokens.color.text.brand.primary};
|
|
1240
1249
|
}
|
|
1241
1250
|
`}}
|
|
1242
|
-
`,
|
|
1251
|
+
`,In=({disabledClassName:e,selectedClassName:t,tabIndex:l,id:n,testId:i="Tab",ref:r,...o})=>b.default.createElement(D.Tab,{disabled:o.disabled,disabledClassName:e,selectedClassName:t,tabIndex:l,selected:o.selected,id:n},b.default.createElement(_n,{ref:r,"data-testid":i,...o}));In.tabsRole="Tab";const Tn=w.default.div`
|
|
1243
1252
|
height: ${({theme:e})=>e.tokens.tabs.borderWidth.tab.bottom};
|
|
1244
1253
|
background: ${({theme:e})=>e.tokens.color.text.brand.primary};
|
|
1245
1254
|
position: absolute;
|
|
@@ -1250,7 +1259,7 @@
|
|
|
1250
1259
|
transition: transform ${e.tokens.duration.transition.base},
|
|
1251
1260
|
width ${e.tokens.duration.transition.base};
|
|
1252
1261
|
`:void 0}
|
|
1253
|
-
`,
|
|
1262
|
+
`,Pn=({tabs:t,tabRefs:l,selectedIndex:n,size:i})=>{const[r,o]=e.useState(0),[a,C]=e.useState(0);return e.useEffect((()=>{let e=0;b.default.Children.forEach(t,(t=>{if(b.default.isValidElement(t)&&"Tab"===t.type.tabsRole){const i=l.current[e];if(i&&(t.props.selected||n===e)){const e=getComputedStyle(i),t=i.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight);C(t),o(i?.offsetLeft??0)}e++}}))}),[n]),b.default.createElement(Tn,{style:{transform:`translateX(${r}px)`,width:`${a}px`},animate:void 0!==n,size:i})},Rn=({animate:t=!0,testId:l="TabList",size:n="sm",children:i,...r})=>{const o=e.useRef([]),[a,C]=e.useState();let d=0;return b.default.createElement(Sn,{"data-testid":l,...r},t&&b.default.createElement(Pn,{tabs:i,tabRefs:o,selectedIndex:a,size:n}),b.default.Children.map(i,(e=>{const l=e;if(b.default.isValidElement(e)&&"Tab"===e.type?.tabsRole){const e=d++;return l.props.selected&&a!==e&&C(e),b.default.cloneElement(l,{...l.props,ref:t=>{o.current[e]=t},size:n,animate:t})}return e})))};Rn.tabsRole="TabList";const Un=w.default.div`
|
|
1254
1263
|
border-radius: ${({theme:e})=>e.tokens.tag.borderRadius};
|
|
1255
1264
|
|
|
1256
1265
|
${({secondary:e,outline:l,colorTheme:n,theme:{tokens:i}})=>l?t.css`
|
|
@@ -1276,7 +1285,7 @@
|
|
|
1276
1285
|
cursor: default;
|
|
1277
1286
|
|
|
1278
1287
|
${R}
|
|
1279
|
-
`,
|
|
1288
|
+
`,On=()=>{const e=f.getAllTimezones(),t=Object.values(e);const l=(e=>e.map((e=>{const t=e.name.split("/"),l=t[t.length-1].replace(/_/g," ");return{value:e.name,label:`(GMT${e.utcOffsetStr}) ${l}`}})))(t.sort(((e,t)=>e.utcOffset===t.utcOffset?e.name<t.name?-1:e.name>t.name?1:0:e.utcOffset-t.utcOffset)));return l},Wn=e=>(q(e.tokens.toggle.sizing.container.md.height)-q(e.tokens.toggle.sizing.slider.md))/2,Nn=w.default.div`
|
|
1280
1289
|
font-size: 0;
|
|
1281
1290
|
|
|
1282
1291
|
input {
|
|
@@ -1335,8 +1344,8 @@
|
|
|
1335
1344
|
label::after {
|
|
1336
1345
|
width: ${({theme:e})=>e.tokens.toggle.sizing.slider.md};
|
|
1337
1346
|
height: ${({theme:e})=>e.tokens.toggle.sizing.slider.md};
|
|
1338
|
-
top: ${({theme:e})=>
|
|
1339
|
-
left: ${({theme:e})=>
|
|
1347
|
+
top: ${({theme:e})=>Wn(e)}px;
|
|
1348
|
+
left: ${({theme:e})=>Wn(e)}px;
|
|
1340
1349
|
border-radius: ${({theme:e})=>e.tokens.ref.borderRadius.circle};
|
|
1341
1350
|
background-color: ${({theme:e})=>e.tokens.toggle.color.background.slider.off};
|
|
1342
1351
|
transition: ${({theme:e})=>`left ${e.tokens.duration.transition.base}, background-color ${e.tokens.duration.transition.base}`};
|
|
@@ -1357,7 +1366,7 @@
|
|
|
1357
1366
|
// Slider
|
|
1358
1367
|
+ label::after {
|
|
1359
1368
|
background-color: ${({theme:e})=>e.tokens.ref.color.gray[0]};
|
|
1360
|
-
left: ${({theme:e})=>q(e.tokens.toggle.sizing.container.md.width)-q(e.tokens.toggle.sizing.slider.md)-
|
|
1369
|
+
left: ${({theme:e})=>q(e.tokens.toggle.sizing.container.md.width)-q(e.tokens.toggle.sizing.slider.md)-Wn(e)}px;
|
|
1361
1370
|
}
|
|
1362
1371
|
}
|
|
1363
1372
|
|
|
@@ -1382,7 +1391,7 @@
|
|
|
1382
1391
|
background-color: ${({theme:e,colorTheme:t})=>e.tokens.color.background[t].primaryDisabled};
|
|
1383
1392
|
}
|
|
1384
1393
|
}
|
|
1385
|
-
`;tl('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',{});const
|
|
1394
|
+
`;tl('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',{});const jn=w.default(B.default)`
|
|
1386
1395
|
font-size: 12px;
|
|
1387
1396
|
background: ${({theme:e})=>e.tokens.tooltip.color.background};
|
|
1388
1397
|
box-shadow: ${({theme:e})=>Y(e.tokens.tooltip.boxShadow)};
|
|
@@ -1394,7 +1403,7 @@
|
|
|
1394
1403
|
.tippy-arrow {
|
|
1395
1404
|
color: ${({theme:e})=>e.tokens.tooltip.color.background};
|
|
1396
1405
|
}
|
|
1397
|
-
`;const Nn="1px 2px 6px rgba(0,0,0,.13)",jn={_0:"#FFFFFF",_15:"#FAFAFA",_20:"#F5F5F5",_25:"#EDEDED",_30:"#E4E4E3",_35:"#D9D9D8",_40:"#CCCCCC",_45:"#BABABA",_50:"#737373",_60:"#595959",_80:"#4D4D4D",_85:"#333333",_90:"#141313",_100:"#000000"},qn={$pc:{colors:{primary:{dark:"#522974",darkHoverBackground:"#3F2059",darkDisabledBackground:"#BBA5CD",light:"#F1EDF6",lightHoverBackground:"#DFD5EB",lightDisabledBackground:"#F7F4FA",lightDisabledColor:"#D0C0DD"},neutral:{dark:jn._80,darkHoverBackground:jn._85,darkDisabledBackground:jn._35,light:jn._20,lightHoverBackground:jn._25,lightDisabledBackground:jn._15,lightDisabledColor:jn._45},success:{dark:"#0C8B51",darkHoverBackground:"#097041",darkDisabledBackground:"#A5CDBA",light:"#E8F0EC",lightHoverBackground:"#CFE8DA",lightDisabledBackground:"#F4FAF7",lightDisabledColor:"#C0DDCE"},error:{dark:"#A50000",darkHoverBackground:"#9C0909",darkDisabledBackground:"#CDA5A5",light:"#FCF2F2",lightHoverBackground:"#EDD3D3",lightDisabledBackground:"#FAF4F4",lightDisabledColor:"#DDC0C0"},warning:{dark:"#CB7307",darkHoverBackground:"#CB7307",darkDisabledBackground:"#E8CBA7",light:"#FBF6E9",lightHoverBackground:"#F4E9CB",lightDisabledBackground:"#FDF9EF",lightDisabledColor:"#EDC089"},info:{dark:"#3F75AC",darkHoverBackground:"#3F75AC",darkDisabledBackground:"#9EBFE1",light:"#F2F7FC",lightHoverBackground:"#E3ECF5",lightDisabledBackground:"#F2F7FC",lightDisabledColor:"#A5C4E3"},gray:jn,focus:"#8CB7FA",borderInputHover:jn._50,borderInput:jn._40,borderHr:jn._35,borderDisabled:jn._30,text:{darkest:jn._90,dark:jn._80,light:jn._50,lightest:jn._45,white:jn._0}},fontFamily:"'Mulish', sans-serif",fontWeight:{regular:400,bold:500},fontSize:14,borderRadius:{tiny:"4px",small:"4px",medium:"5px",large:"6px"},spacing:{xxxs:4,xxs:8,xs:12,s:16,m:20,l:24,xl:32,xxl:40,xxxl:52},transitionDuration:".2s",formControl:{height:{tiny:32,small:36,medium:44,large:52},paddingX:11},button:{minimalHoverBackground:"rgba(0,0,0,.05)",boxShadow:"4px 4px 6px rgba(0, 0, 0, 0.11)",height:{tiny:32,small:36,medium:44,large:52},fontSize:{tiny:14,small:14,medium:14,large:15},iconSize:{tiny:14,small:16,medium:20,large:22},padding:{tiny:"6px 12px",small:"8px 16px",medium:"12px 22px",large:"16px 26px"},borderRadius:{tiny:4,small:4,medium:5,large:6}},card:{default:{borderColor:"rgba(0,0,0,.1)",borderColorHover:"rgba(0,0,0,.2)",boxShadow:"none"},elevated:{borderColor:"rgba(0,0,0,0)",borderColorHover:"rgba(0,0,0,.2)",boxShadow:Nn}},checkboxRadio:{size:{medium:20,large:24}},fileUpload:{preview:{minSize:140,maxSize:160}},heading:{size:{h1:32,h2:28,h3:24,h4:20}},modal:{zIndex:9e3,overlayBackground:"rgba(0, 0, 0, 0.6)",windowShadow:"0 10px 30px rgba(0, 0, 0, 0.1)",size:{tiny:420,small:640,medium:940,large:1200}},multiSelect:{multiValueLabel:{paddingX:{tiny:5,small:6,medium:8,large:12},paddingY:{tiny:3,small:3,medium:5,large:8},fontSize:{tiny:12,small:12,medium:13,large:14}}},notice:{disabledButtonColor:jn._45,disabledButtonBackground:"#FAFAFA"},selectPicker:{boxShadow:Nn,iconMaxSize:{medium:48,large:64}},spinner:{size:{tiny:14,small:16,medium:18,large:20}},tabs:{size:{small:12,medium:14,large:18}},tag:{padding:{small:"4px 12px",medium:"6px 14px"}},text:{size:{small:12,medium:14,large:18}},tooltip:{background:jn._90,boxShadow:Nn}},tokens:{ref:{color:{gray:{0:"#FFFFFF",5:"#F8F8F8",10:"#F1F1F1",20:"#E4E4E4",30:"#D2D2D2",40:"#BABABA",50:"#9D9D9D",55:"#8A8A8A",60:"#6E6E6E",65:"#616161",70:"#4D4D4D",80:"#333333",85:"#212121",90:"#161616",100:"#000000"},purple:{5:"#F5EFF9",10:"#E7D8F1",15:"#D2B6E5",20:"#C1A4DF",30:"#A87CD5",50:"#8449BF",55:"#6F3CA4",60:"#633096",70:"#542D7C",90:"#351852"},teal:{5:"#E8F7F5",10:"#D7F4F0",20:"#97CFC7",50:"#00A78F",60:"#098775",70:"#2A6A61",80:"#1A584F",90:"#09352F"},blue:{5:"#EEF4FB",10:"#DCEAFB",20:"#ABC9ED",40:"#5692D7",50:"#4184D2",60:"#2E70BD",70:"#3069AC",80:"#245998",90:"#0F2651"},yellow:{5:"#FCF6EA",10:"#F5EAD3",20:"#DABD81",50:"#D99814",60:"#BD7F00",70:"#886A2E",80:"#725723",90:"#3D3017"},red:{5:"#FBF1EF",10:"#F9E4E0",20:"#D6A499",40:"#EE6C4F",50:"#C84E33",60:"#9C3923",70:"#893725",80:"#742919",90:"#4E1C11"}},borderRadius:{pill:"999px",circle:"50%",xs:"4px",sm:"6px",md:"8px",lg:"16px"},boxShadow:{xs:{x:"0",y:"2px",blur:"2px",spread:"0",color:"rgba(0,0,0,.06)",type:"dropShadow"},sm:[{x:"0",y:"4px",blur:"10px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"},{x:"0",y:"2px",blur:"4px",spread:"0",color:"rgba(0,0,0,.04)",type:"dropShadow"}],md:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],lg:{x:"0",y:"20px",blur:"50px",spread:"0",color:"rgba(0,0,0,.20)",type:"dropShadow"}},fontFamily:{base:"Mulish"},fontWeight:{regular:"400",semibold:"600",bold:"600"},spacing:{"3xs":"4px","2xs":"8px",xs:"12px",sm:"16px",md:"20px",lg:"24px",xl:"32px","2xl":"40px","3xl":"52px"},lineHeight:{xs:"100%",sm:"120%",md:"140%",lg:"160%"},fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px","2xl":"24px","3xl":"28px","4xl":"32px"}},text:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"12px"}},lineHeight:"100%"},paragraphSm:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"12px"}}},paragraphMd:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"12px"}}},paragraphLg:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"12px"}}},heading:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"32px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"28px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"24px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"20px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"32px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"28px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"24px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"20px"}},lineHeight:"120%",fontSize:{xs:"20px",sm:"24px",md:"28px",lg:"32px"}},button:{fontWeight:"600",boxShadow:{primary:{x:"0",y:"0",blur:"0",spread:"0",color:"rgba(0,0,0,0)",type:"dropShadow"}},spacing:{x:{xs:"12px",sm:"16px",md:"22px",lg:"26px"}},sizing:{icon:{xs:"14px",sm:"16px",md:"20px",lg:"22px"}},fontSize:{xs:"14px",sm:"14px",md:"14px",lg:"15px"},borderWidth:"1px"},inputButton:{borderRadius:{xs:"4px",sm:"6px",md:"6px",lg:"6px"},sizing:{height:{xs:"32px",sm:"36px",md:"44px",lg:"52px"}}},checkboxRadio:{sizing:{sm:"16px",md:"20px",lg:"24px"}},notice:{borderRadius:"6px"},tag:{borderRadius:"999px",sizing:{height:{sm:"22px",md:"26px"}},spacing:{x:{sm:"12px",md:"14px"}},fontSize:{sm:"12px",md:"12px"},fontWeight:"400",borderWidth:"1px"},toggle:{sizing:{container:{md:{width:"36px",height:"20px"}},slider:{md:"14px"}},color:{background:{container:{off:"#FFFFFF",offDisabled:"#F8F8F8",offInteraction:"#FFFFFF"},slider:{off:"#D2D2D2",offDisabled:"#E4E4E4"}},border:{container:{off:"#D2D2D2",offDisabled:"#E4E4E4",offInteraction:"#BABABA"}}}},modal:{color:{background:{overlay:"rgba(0,0,0,.6)"}},sizing:{maxWidth:{xs:"420px",sm:"640px",md:"940px",lg:"1200px"}},boxShadow:{x:"0",y:"20px",blur:"50px",spread:"0",color:"rgba(0,0,0,.20)",type:"dropShadow"},borderRadius:"16px"},color:{background:{primary:"#FFFFFF",secondary:"#F8F8F8",tertiary:"#F1F1F1",brand:{primary:"#8449BF",primaryInteraction:"#633096",primaryDisabled:"#D2B6E5",secondary:"#F5EFF9",secondaryInteraction:"#E7D8F1",secondaryDisabled:"#F5EFF9"},success:{primary:"#00A78F",primaryInteraction:"#098775",primaryDisabled:"#97CFC7",secondary:"#E8F7F5",secondaryInteraction:"#D7F4F0",secondaryDisabled:"#E8F7F5"},error:{primary:"#C84E33",primaryInteraction:"#9C3923",primaryDisabled:"#D6A499",secondary:"#FBF1EF",secondaryInteraction:"#F9E4E0",secondaryDisabled:"#FBF1EF"},warning:{primary:"#D99814",primaryInteraction:"#BD7F00",primaryDisabled:"#DABD81",secondary:"#FCF6EA",secondaryInteraction:"#F5EAD3",secondaryDisabled:"#FCF6EA"},info:{primary:"#4184D2",primaryInteraction:"#2E70BD",primaryDisabled:"#ABC9ED",secondary:"#EEF4FB",secondaryInteraction:"#DCEAFB",secondaryDisabled:"#EEF4FB"},neutral:{primary:"#616161",primaryInteraction:"#4D4D4D",primaryDisabled:"#BABABA",secondary:"#F1F1F1",secondaryInteraction:"#E4E4E4",secondaryDisabled:"#F1F1F1"}},text:{primary:"#161616",secondary:"#4D4D4D",tertiary:"#6E6E6E",quaternary:"#9D9D9D",inverse:"#FFFFFF",brand:{primary:"#8449BF",disabled:"#D2B6E5",onPrimary:"#FFFFFF",onSecondary:"#8449BF"},success:{primary:"#00A78F",disabled:"#97CFC7",onPrimary:"#FFFFFF",onSecondary:"#00A78F"},error:{primary:"#C84E33",disabled:"#D6A499",onPrimary:"#FFFFFF",onSecondary:"#C84E33"},warning:{primary:"#BD7F00",disabled:"#DABD81",onPrimary:"#FFFFFF",onSecondary:"#BD7F00"},info:{primary:"#4184D2",disabled:"#ABC9ED",onPrimary:"#FFFFFF",onSecondary:"#4184D2"},neutral:{primary:"#161616",disabled:"#BABABA",onPrimary:"#FFFFFF",onSecondary:"#161616"}},border:{primary:"#D2D2D2",primaryInteraction:"#9D9D9D",secondary:"#E4E4E4",secondaryInteraction:"#BABABA",focus:"#ABC9ED",brand:{primary:"#8449BF",secondary:"#C1A4DF"},error:{primary:"#C84E33"},success:{primary:"#00A78F"},warning:{primary:"#D99814"},info:{primary:"#4184D2"},neutral:{primary:"#9D9D9D"}}},card:{color:{background:{primary:"#FFFFFF",primaryDisabled:"#FFFFFF",secondary:"#F8F8F8",secondaryDisabled:"#F8F8F8"},border:{base:"#E4E4E4",elevated:"#F1F1F1",interaction:"#BABABA",disabled:"#F1F1F1"}},boxShadow:[{x:"0",y:"4px",blur:"10px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"},{x:"0",y:"2px",blur:"4px",spread:"0",color:"rgba(0,0,0,.04)",type:"dropShadow"}],borderRadius:"8px"},leverageSlider:{color:{background:{leverage:{1:"#00A78F",10:"#0FA888",25:"#21A67E",50:"#33A574",100:"#45A469",200:"#5EA25B",300:"#79A04C",400:"#809F47",500:"#909E3F",600:"#AC9C2E",777:"#C99A1E",800:"#C99A1E",1e3:"#D99814",2e3:"#D17324",unlimited:"#C84E33"}}}},duration:{transition:{base:"200ms"}},textParagraph:{fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px"}},tooltip:{boxShadow:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],color:{background:"#161616"}},dropdown:{boxShadow:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],borderRadius:"8px"},spinner:{sizing:{xs:"14px",sm:"16px",md:"18px",lg:"20px"}},fontSize:{base:"14px"},input:{spacing:{x:"11px"},borderWidth:"1px"},borderWidth:{focus:"2px"},multiSelect:{spacing:{multiValueLabel:{x:{xs:"5px",sm:"6px",md:"8px",lg:"12px"},y:{xs:"3px",sm:"3px",md:"5px",lg:"8px"}}},fontSize:{multiValueLabel:{xs:"12px",sm:"12px",md:"13px",lg:"14px"}}},tabs:{borderWidth:{tab:{bottom:"2px"}}},menu:{borderRadius:{item:"6px"}}}},Gn=t.createGlobalStyle`
|
|
1406
|
+
`;const qn="1px 2px 6px rgba(0,0,0,.13)",Gn={_0:"#FFFFFF",_15:"#FAFAFA",_20:"#F5F5F5",_25:"#EDEDED",_30:"#E4E4E3",_35:"#D9D9D8",_40:"#CCCCCC",_45:"#BABABA",_50:"#737373",_60:"#595959",_80:"#4D4D4D",_85:"#333333",_90:"#141313",_100:"#000000"},Yn={$pc:{colors:{primary:{dark:"#522974",darkHoverBackground:"#3F2059",darkDisabledBackground:"#BBA5CD",light:"#F1EDF6",lightHoverBackground:"#DFD5EB",lightDisabledBackground:"#F7F4FA",lightDisabledColor:"#D0C0DD"},neutral:{dark:Gn._80,darkHoverBackground:Gn._85,darkDisabledBackground:Gn._35,light:Gn._20,lightHoverBackground:Gn._25,lightDisabledBackground:Gn._15,lightDisabledColor:Gn._45},success:{dark:"#0C8B51",darkHoverBackground:"#097041",darkDisabledBackground:"#A5CDBA",light:"#E8F0EC",lightHoverBackground:"#CFE8DA",lightDisabledBackground:"#F4FAF7",lightDisabledColor:"#C0DDCE"},error:{dark:"#A50000",darkHoverBackground:"#9C0909",darkDisabledBackground:"#CDA5A5",light:"#FCF2F2",lightHoverBackground:"#EDD3D3",lightDisabledBackground:"#FAF4F4",lightDisabledColor:"#DDC0C0"},warning:{dark:"#CB7307",darkHoverBackground:"#CB7307",darkDisabledBackground:"#E8CBA7",light:"#FBF6E9",lightHoverBackground:"#F4E9CB",lightDisabledBackground:"#FDF9EF",lightDisabledColor:"#EDC089"},info:{dark:"#3F75AC",darkHoverBackground:"#3F75AC",darkDisabledBackground:"#9EBFE1",light:"#F2F7FC",lightHoverBackground:"#E3ECF5",lightDisabledBackground:"#F2F7FC",lightDisabledColor:"#A5C4E3"},gray:Gn,focus:"#8CB7FA",borderInputHover:Gn._50,borderInput:Gn._40,borderHr:Gn._35,borderDisabled:Gn._30,text:{darkest:Gn._90,dark:Gn._80,light:Gn._50,lightest:Gn._45,white:Gn._0}},fontFamily:"'Mulish', sans-serif",fontWeight:{regular:400,bold:500},fontSize:14,borderRadius:{tiny:"4px",small:"4px",medium:"5px",large:"6px"},spacing:{xxxs:4,xxs:8,xs:12,s:16,m:20,l:24,xl:32,xxl:40,xxxl:52},transitionDuration:".2s",formControl:{height:{tiny:32,small:36,medium:44,large:52},paddingX:11},button:{minimalHoverBackground:"rgba(0,0,0,.05)",boxShadow:"4px 4px 6px rgba(0, 0, 0, 0.11)",height:{tiny:32,small:36,medium:44,large:52},fontSize:{tiny:14,small:14,medium:14,large:15},iconSize:{tiny:14,small:16,medium:20,large:22},padding:{tiny:"6px 12px",small:"8px 16px",medium:"12px 22px",large:"16px 26px"},borderRadius:{tiny:4,small:4,medium:5,large:6}},card:{default:{borderColor:"rgba(0,0,0,.1)",borderColorHover:"rgba(0,0,0,.2)",boxShadow:"none"},elevated:{borderColor:"rgba(0,0,0,0)",borderColorHover:"rgba(0,0,0,.2)",boxShadow:qn}},checkboxRadio:{size:{medium:20,large:24}},fileUpload:{preview:{minSize:140,maxSize:160}},heading:{size:{h1:32,h2:28,h3:24,h4:20}},modal:{zIndex:9e3,overlayBackground:"rgba(0, 0, 0, 0.6)",windowShadow:"0 10px 30px rgba(0, 0, 0, 0.1)",size:{tiny:420,small:640,medium:940,large:1200}},multiSelect:{multiValueLabel:{paddingX:{tiny:5,small:6,medium:8,large:12},paddingY:{tiny:3,small:3,medium:5,large:8},fontSize:{tiny:12,small:12,medium:13,large:14}}},notice:{disabledButtonColor:Gn._45,disabledButtonBackground:"#FAFAFA"},selectPicker:{boxShadow:qn,iconMaxSize:{medium:48,large:64}},spinner:{size:{tiny:14,small:16,medium:18,large:20}},tabs:{size:{small:12,medium:14,large:18}},tag:{padding:{small:"4px 12px",medium:"6px 14px"}},text:{size:{small:12,medium:14,large:18}},tooltip:{background:Gn._90,boxShadow:qn}},tokens:{ref:{color:{gray:{0:"#FFFFFF",5:"#F8F8F8",10:"#F1F1F1",20:"#E4E4E4",30:"#D2D2D2",40:"#BABABA",50:"#9D9D9D",55:"#8A8A8A",60:"#6E6E6E",65:"#616161",70:"#4D4D4D",80:"#333333",85:"#212121",90:"#161616",100:"#000000"},purple:{5:"#F5EFF9",10:"#E7D8F1",15:"#D2B6E5",20:"#C1A4DF",30:"#A87CD5",50:"#8449BF",55:"#6F3CA4",60:"#633096",70:"#542D7C",90:"#351852"},teal:{5:"#E8F7F5",10:"#D7F4F0",20:"#97CFC7",50:"#00A78F",60:"#098775",70:"#2A6A61",80:"#1A584F",90:"#09352F"},blue:{5:"#EEF4FB",10:"#DCEAFB",20:"#ABC9ED",40:"#5692D7",50:"#4184D2",60:"#2E70BD",70:"#3069AC",80:"#245998",90:"#0F2651"},yellow:{5:"#FCF6EA",10:"#F5EAD3",20:"#DABD81",50:"#D99814",60:"#BD7F00",70:"#886A2E",80:"#725723",90:"#3D3017"},red:{5:"#FBF1EF",10:"#F9E4E0",20:"#D6A499",40:"#EE6C4F",50:"#C84E33",60:"#9C3923",70:"#893725",80:"#742919",90:"#4E1C11"}},borderRadius:{pill:"999px",circle:"50%",xs:"4px",sm:"6px",md:"8px",lg:"16px"},boxShadow:{xs:{x:"0",y:"2px",blur:"2px",spread:"0",color:"rgba(0,0,0,.06)",type:"dropShadow"},sm:[{x:"0",y:"4px",blur:"10px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"},{x:"0",y:"2px",blur:"4px",spread:"0",color:"rgba(0,0,0,.04)",type:"dropShadow"}],md:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],lg:{x:"0",y:"20px",blur:"50px",spread:"0",color:"rgba(0,0,0,.20)",type:"dropShadow"}},fontFamily:{base:"Mulish"},fontWeight:{regular:"400",semibold:"600",bold:"600"},spacing:{"3xs":"4px","2xs":"8px",xs:"12px",sm:"16px",md:"20px",lg:"24px",xl:"32px","2xl":"40px","3xl":"52px"},lineHeight:{xs:"100%",sm:"120%",md:"140%",lg:"160%"},fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px","2xl":"24px","3xl":"28px","4xl":"32px"}},text:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"12px"}},lineHeight:"100%"},paragraphSm:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"12px"}}},paragraphMd:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"12px"}}},paragraphLg:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"12px"}}},heading:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"32px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"28px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"24px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"20px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"32px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"28px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"24px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"20px"}},lineHeight:"120%",fontSize:{xs:"20px",sm:"24px",md:"28px",lg:"32px"}},button:{fontWeight:"600",boxShadow:{primary:{x:"0",y:"0",blur:"0",spread:"0",color:"rgba(0,0,0,0)",type:"dropShadow"}},spacing:{x:{xs:"12px",sm:"16px",md:"22px",lg:"26px"}},sizing:{icon:{xs:"14px",sm:"16px",md:"20px",lg:"22px"}},fontSize:{xs:"14px",sm:"14px",md:"14px",lg:"15px"},borderWidth:"1px"},inputButton:{borderRadius:{xs:"4px",sm:"6px",md:"6px",lg:"6px"},sizing:{height:{xs:"32px",sm:"36px",md:"44px",lg:"52px"}}},checkboxRadio:{sizing:{sm:"16px",md:"20px",lg:"24px"}},notice:{borderRadius:"6px"},tag:{borderRadius:"999px",sizing:{height:{sm:"22px",md:"26px"}},spacing:{x:{sm:"12px",md:"14px"}},fontSize:{sm:"12px",md:"12px"},fontWeight:"400",borderWidth:"1px"},toggle:{sizing:{container:{md:{width:"36px",height:"20px"}},slider:{md:"14px"}},color:{background:{container:{off:"#FFFFFF",offDisabled:"#F8F8F8",offInteraction:"#FFFFFF"},slider:{off:"#D2D2D2",offDisabled:"#E4E4E4"}},border:{container:{off:"#D2D2D2",offDisabled:"#E4E4E4",offInteraction:"#BABABA"}}}},modal:{color:{background:{overlay:"rgba(0,0,0,.6)"}},sizing:{maxWidth:{xs:"420px",sm:"640px",md:"940px",lg:"1200px"}},boxShadow:{x:"0",y:"20px",blur:"50px",spread:"0",color:"rgba(0,0,0,.20)",type:"dropShadow"},borderRadius:"16px"},color:{background:{primary:"#FFFFFF",secondary:"#F8F8F8",tertiary:"#F1F1F1",brand:{primary:"#8449BF",primaryInteraction:"#633096",primaryDisabled:"#D2B6E5",secondary:"#F5EFF9",secondaryInteraction:"#E7D8F1",secondaryDisabled:"#F5EFF9"},success:{primary:"#00A78F",primaryInteraction:"#098775",primaryDisabled:"#97CFC7",secondary:"#E8F7F5",secondaryInteraction:"#D7F4F0",secondaryDisabled:"#E8F7F5"},error:{primary:"#C84E33",primaryInteraction:"#9C3923",primaryDisabled:"#D6A499",secondary:"#FBF1EF",secondaryInteraction:"#F9E4E0",secondaryDisabled:"#FBF1EF"},warning:{primary:"#D99814",primaryInteraction:"#BD7F00",primaryDisabled:"#DABD81",secondary:"#FCF6EA",secondaryInteraction:"#F5EAD3",secondaryDisabled:"#FCF6EA"},info:{primary:"#4184D2",primaryInteraction:"#2E70BD",primaryDisabled:"#ABC9ED",secondary:"#EEF4FB",secondaryInteraction:"#DCEAFB",secondaryDisabled:"#EEF4FB"},neutral:{primary:"#616161",primaryInteraction:"#4D4D4D",primaryDisabled:"#BABABA",secondary:"#F1F1F1",secondaryInteraction:"#E4E4E4",secondaryDisabled:"#F1F1F1"}},text:{primary:"#161616",secondary:"#4D4D4D",tertiary:"#6E6E6E",quaternary:"#9D9D9D",inverse:"#FFFFFF",brand:{primary:"#8449BF",disabled:"#D2B6E5",onPrimary:"#FFFFFF",onSecondary:"#8449BF"},success:{primary:"#00A78F",disabled:"#97CFC7",onPrimary:"#FFFFFF",onSecondary:"#00A78F"},error:{primary:"#C84E33",disabled:"#D6A499",onPrimary:"#FFFFFF",onSecondary:"#C84E33"},warning:{primary:"#BD7F00",disabled:"#DABD81",onPrimary:"#FFFFFF",onSecondary:"#BD7F00"},info:{primary:"#4184D2",disabled:"#ABC9ED",onPrimary:"#FFFFFF",onSecondary:"#4184D2"},neutral:{primary:"#161616",disabled:"#BABABA",onPrimary:"#FFFFFF",onSecondary:"#161616"}},border:{primary:"#D2D2D2",primaryInteraction:"#9D9D9D",secondary:"#E4E4E4",secondaryInteraction:"#BABABA",focus:"#ABC9ED",brand:{primary:"#8449BF",secondary:"#C1A4DF"},error:{primary:"#C84E33"},success:{primary:"#00A78F"},warning:{primary:"#D99814"},info:{primary:"#4184D2"},neutral:{primary:"#9D9D9D"}}},card:{color:{background:{primary:"#FFFFFF",primaryDisabled:"#FFFFFF",secondary:"#F8F8F8",secondaryDisabled:"#F8F8F8"},border:{base:"#E4E4E4",elevated:"#F1F1F1",interaction:"#BABABA",disabled:"#F1F1F1"}},boxShadow:[{x:"0",y:"4px",blur:"10px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"},{x:"0",y:"2px",blur:"4px",spread:"0",color:"rgba(0,0,0,.04)",type:"dropShadow"}],borderRadius:"8px"},leverageSlider:{color:{background:{leverage:{1:"#00A78F",10:"#0FA888",25:"#21A67E",50:"#33A574",100:"#45A469",200:"#5EA25B",300:"#79A04C",400:"#809F47",500:"#909E3F",600:"#AC9C2E",777:"#C99A1E",800:"#C99A1E",1e3:"#D99814",2e3:"#D17324",unlimited:"#C84E33"}}}},duration:{transition:{base:"200ms"}},textParagraph:{fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px"}},tooltip:{boxShadow:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],color:{background:"#161616"}},dropdown:{boxShadow:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],borderRadius:"8px"},spinner:{sizing:{xs:"14px",sm:"16px",md:"18px",lg:"20px"}},fontSize:{base:"14px"},input:{spacing:{x:"11px"},borderWidth:"1px"},borderWidth:{focus:"2px"},multiSelect:{spacing:{multiValueLabel:{x:{xs:"5px",sm:"6px",md:"8px",lg:"12px"},y:{xs:"3px",sm:"3px",md:"5px",lg:"8px"}}},fontSize:{multiValueLabel:{xs:"12px",sm:"12px",md:"13px",lg:"14px"}}},tabs:{borderWidth:{tab:{bottom:"2px"}}},menu:{borderRadius:{item:"6px"}}}},Xn=t.createGlobalStyle`
|
|
1398
1407
|
*,
|
|
1399
1408
|
*:before,
|
|
1400
1409
|
*:after {
|
|
@@ -1412,5 +1421,5 @@
|
|
|
1412
1421
|
-webkit-font-smoothing: antialiased;
|
|
1413
1422
|
-moz-osx-font-smoothing: grayscale;
|
|
1414
1423
|
}
|
|
1415
|
-
`;Object.defineProperty(exports,"TabPanel",{enumerable:!0,get:function(){return D.TabPanel}}),exports.Box=ne,exports.Button=_e,exports.ButtonGroup=({testId:e="ButtonGroup",children:t,dividers:l,...n})=>{const i=l&&Array.isArray(t)?((e,t)=>b.default.Children.map(e,(e=>e.props.minimal?[e,t]:[e])).flat().slice(0,-1))(t,b.default.createElement(Te,null,b.default.createElement(Pe,null))):t;return b.default.createElement(Ie,{...n,"data-testid":e},i)},exports.Card=Ue,exports.Checkbox=et,exports.ClosableButton=({testId:e="ClosableButton",className:t,onClose:l,ref:n,...i})=>b.default.createElement(lt,{className:t,"data-testid":e},b.default.createElement(nt,{...i,ref:n,type:"button"}),b.default.createElement(it,{type:"button",onClick:l},b.default.createElement("img",{src:tt,alt:""}))),exports.ClosableItem=({testId:e="ClosableItem",className:t,onClose:l,...n})=>b.default.createElement(rt,{className:t,"data-testid":e},b.default.createElement(ot,{...n}),b.default.createElement(it,{type:"button",onClick:l},b.default.createElement("img",{src:tt,alt:""}))),exports.Collapsible=dt,exports.CollapsibleCard=({testId:e="CollapsibleCard",initialOpen:t=!0,arrowReverse:l=!1,showCard:n=!0,headingMarginBottom:i="xs",iconRotationDeg:r=90,arrow:o,heading:a,rightContent:C,children:d,...s})=>{const[c,p]=b.default.useState(!t);return b.default.createElement(gt,{as:n?Ue:ne,p:s.p??(n?"xs":0),pb:s.pb??s.py??s.p??0,"data-testid":e,...s},b.default.createElement(st,{alignItems:"center",justifyContent:"space-between",flexWrap:"wrap"},b.default.createElement(ht,{mb:i,onClick:()=>p(!c),arrowReverse:l},b.default.createElement(mt,{collapsed:c,iconRotationDeg:r},o??b.default.createElement(Dt,{secondary:!0,size:"xs",colorTheme:"neutral",icon:"chevron-right"})),"string"==typeof a?b.default.createElement(ut,{element:"h4",bold:!1,mx:l?0:"xs"},a):a),!!C&&b.default.createElement(ne,{mb:"xs"},C)),b.default.createElement(dt,{collapsed:c},b.default.createElement(ne,{pb:n?"xs":0},d)))},exports.ColorTheme=U,exports.DateInput=({size:t="md",months:l=Qt,locale:n="eu",testId:i="DateInput",onChange:r,warning:o,error:a,inputLabels:C,dateFormatError:d="Please enter a valid date.",value:s,className:c,dayProps:p,monthProps:u,yearProps:g,...h})=>{const m=l??[],[D,f]=e.useState(s?.day??null),[F,x]=e.useState(s?.month?{value:s.month,label:Jt(m,s.month)}:null),[v,w]=e.useState(s?.year??null),[E,L]=e.useState(void 0);e.useEffect((()=>{D&&F&&v?((e,t,l)=>{if(!e||!t||!l)return!1;const n=("string"==typeof t?parseInt(t,10):t)-1;return n>=0&&n<12&&e>0&&e<=((e,t)=>{switch(e){case 1:return t%4==0&&t%100||t%400==0?29:28;case 8:case 3:case 5:case 10:return 30;default:return 31}})(n,l)})(D,F.value,v)?(r({day:D,month:"string"==typeof F.value?parseInt(F.value,10):F.value,year:v}),L(void 0)):(r(null),L(d)):(r(null),L(void 0))}),[D,F,v,d]);const y=C??{day:"Day",month:"Month",year:"Year"},k=()=>{D&&F&&v&&h.setTouched&&h.setTouched(!0)},H=b.default.createElement(St,{name:"day",min:1,max:31,pattern:"[0-9]*",autoComplete:"bday-day",label:y.day,value:D,onChange:e=>f(e),onBlur:k,error:!!a,size:t,success:h.success,disabled:h.disabled,maxDecimalCount:0,numberFormatErrorMessage:d,...p}),M=b.default.createElement(Gt,{name:"month",label:y.month,value:F,onChange:e=>x(e),onBlur:k,options:m,error:!!a,size:t,success:h.success,disabled:h.disabled,...u}),V=b.default.createElement(St,{name:"year",min:1,autoComplete:"bday-year",pattern:"[0-9]*",label:y.year,value:v,onChange:e=>w(e),onBlur:k,error:!!a,size:t,success:h.success,disabled:h.disabled,maxDecimalCount:0,numberFormatErrorMessage:d,...g});return b.default.createElement(Yt,{className:c,"data-testid":i},"ja"===n?b.default.createElement(Xt,null,V,M,H):"us"===n?b.default.createElement(Xt,null,M,H,V):b.default.createElement(Xt,null,H,M,V),E&&!a&&b.default.createElement(Qe,{error:E}),b.default.createElement(Qe,{warning:o,error:a}))},exports.DatePicker=({testId:e="DatePicker",value:t,onChange:l,dayPickerProps:n,...i})=>b.default.createElement(ll,{selected:t??void 0,initialDate:t,onDayClick:(e,{selected:t,disabled:n})=>{n||l(t?null:e)},testId:e,...i,...n}),exports.DateRangePicker=({testId:e="DateRangePicker",value:t,onChange:l,dayPickerProps:n,...i})=>{const r={from:t.from??void 0,to:t.to??void 0};return b.default.createElement(nl,{className:"DateRangePicker",selected:r,initialDate:t.from,onDayClick:(e,{disabled:t})=>{if(t)return;const n=a.addToRange(e,r);l({from:n?.from??null,to:n?.to??null})},testId:e,...i,...n})},exports.Dropdown=({testId:t="Dropdown",content:l,onCreate:n,onMount:i,onHide:r,...o})=>{const[a,C]=e.useState(!1);return b.default.createElement(b.default.Fragment,null,b.default.createElement(k.default,{render:(e,t,n)=>b.default.createElement(il,{visible:a,...e},l(n?.hide)),trigger:"click",interactive:!0,animation:!0,placement:"bottom-start",onCreate:e=>{e.popper.dataset.testid=t,n&&n(e)},onMount:e=>{C(!0),i&&i(e)},onHide:e=>{const t=()=>{e.unmount(),e.popper.firstChild?.removeEventListener("transitionend",t)};e.popper.firstChild?.addEventListener("transitionend",t),C(!1),r&&r(e)},...o}))},exports.FileUpload=({multiple:t=!0,additive:l=!1,testId:n="FileUpload",files:i,setFiles:r,label:o,labelTouchDevice:a,dragInstructions:C,onFileDrop:s,acceptedFilePattern:c,uploadButtonText:p,uploadButtonTextTouchDevice:u,onFileRemove:g,error:h,className:m,fileValidation:D,withIcon:f,onPassword:F,passwordPromptText:x="Enter the password to open this PDF file.",passwordIncorrectText:v="Invalid password. Please try again.",passwordConfirmButtonText:w="Confirm",passwordCancelButtonText:E="Cancel",passwordPlaceholderText:L="Password",unsupportedFileFormatErrorMessage:y="Unsupported file format. Supported formats: "})=>{const[k,H]=e.useState([]),M=(()=>{const[t,l]=e.useState([]);return{add:e=>{l((t=>[...t,e]))},editCurrentItem:e=>{l((t=>[{...t[0],...e},...t.slice(1)]))},currentItem:t.length>0?t[0]:null,setAttr:e=>{l([{...t[0],...e},...t.slice(1)])},remove:()=>l(t.slice(1)),removeAll:()=>l([])}})(),V=c??{"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]},$=e.useCallback((async e=>{const t=D?[]:e;if(D){const l=[];await Promise.all(e.map((async e=>{const n=await D(e);n?l.push(`${e.name}: ${n}`):t.push(e)}))),H(l)}r(t)}),[r,D]);e.useEffect((()=>()=>{i.forEach((e=>URL.revokeObjectURL(e.preview)))}),[]);const Z=e.useCallback((e=>{k.includes(y)&&H((e=>e.filter((e=>e!==y))));const t=e.map((e=>Object.assign(e,{preview:URL.createObjectURL(e)})));void 0!==s&&s(t),$(l?[...i,...t].reduce(((e,t)=>(e.some((e=>e.name===t.name))||e.push(t),e)),[]):t)}),[i,l,s,$,k,y]),B=e.useCallback((e=>{const t=Object.values(V).flat().join(", "),l=`${y} ${t}.`;e.map((e=>{e.errors.map((e=>{"file-invalid-type"===e.code&&H((e=>e.includes(l)?e:[...e,l]))}))}))}),[y]),{getRootProps:z,getInputProps:A,isDragActive:S,open:_}=d.useDropzone({accept:V,onDrop:Z,onDropRejected:B,noClick:!0,multiple:t});return b.default.createElement(Vl,{className:m,"data-testid":n},b.default.createElement(yl,{open:!!M.currentItem,onClose:()=>{$([]),M.removeAll()},passwordPromptText:x,passwordIncorrectText:v,passwordConfirmButtonText:w,passwordCancelButtonText:E,passwordPlaceholderText:L,passwordQueue:M}),b.default.createElement($l,{...z(),isDragActive:S,error:h||k.length>0},b.default.createElement("input",{...A()}),b.default.createElement(Hl,null,i.map((e=>b.default.createElement(Ml,{key:e.name},b.default.createElement(dl,{file:e,setFiles:$,onPassword:F,passwordQueue:M}),b.default.createElement(kl,{onClick:()=>(e=>{URL.revokeObjectURL(e.preview),$(i.filter((t=>t.preview!==e.preview))),void 0!==g&&g(e)})(e)},b.default.createElement(be,{icon:"trash-error",size:"s"})))))),f&&b.default.createElement(Al,{src:"data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%2236%22%20viewBox%3D%220%200%2048%2036%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M24%2025.5V1.5%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M33.002%2010.5L24%201.5L15%2010.5%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M46.502%2025.5V28.5C46.502%2031.8%2043.802%2034.5%2040.502%2034.5H7.49998L7.47998%2034.498C4.15998%2034.478%201.47998%2031.798%201.47998%2028.498V28.496V25.496%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"}),S?b.default.createElement(Zl,null,C??"Drop the files here ..."):b.default.createElement(b.default.Fragment,null,b.default.createElement(Bl,null,b.default.createElement(Zl,null,o??"Drag 'n' drop some files here, or ")),a&&b.default.createElement(Zl,null,b.default.createElement(zl,null,a))),b.default.createElement(_e,{name:"uploadButton",type:"button",onClick:_,size:"sm",icon:"paper",colorTheme:"brand",secondary:!0},b.default.createElement(Bl,null,p??"Select files"),b.default.createElement(zl,null,u??"Select files"))),"string"==typeof h&&h&&b.default.createElement(Qe,{error:h}),k.length>0&&k.map(((e,t)=>b.default.createElement(Qe,{error:e,key:t}))))},exports.Flex=st,exports.GlobalStyles=Gn,exports.Grid=e=>b.default.createElement(ne,{display:"grid",...e}),exports.Heading=ut,exports.HorizontalDivider=({height:e=1,my:t="s",testId:l="HorizontalDivider",...n})=>b.default.createElement(Sl,{$height:e,my:t,"data-testid":l,...n}),exports.Icon=be,exports.IconAlignment=["left","right"],exports.Image=({testId:e="Image",width:t,height:l,...n})=>b.default.createElement(_l,{"data-testid":e,$width:t,$height:l,...n}),exports.Label=({testId:e="Label",...t})=>b.default.createElement(Il,{"data-testid":e,...t}),exports.Link=({testId:e="Link",children:t,icon:l,iconAlignment:n="left",color:i,ref:r,...o})=>b.default.createElement(Tl,{ref:r,"data-testid":e,$color:i,...o},"left"===n&&b.default.createElement(Wl,{icon:l,color:i}),b.default.createElement(Ol,{icon:!!l,iconAlignment:n},t),"right"===n&&b.default.createElement(Wl,{icon:l,color:i})),exports.LinkButton=({colorTheme:e="brand",size:t="md",iconAlignment:l="left",testId:n="LinkButton",secondary:i,light:r,icon:o,loading:a,children:C,ref:d,...s})=>{const c=i??r,p={...s,size:t,colorTheme:e,secondary:c,icon:o};return b.default.createElement(Me,{ref:d,"data-testid":n,...p},b.default.createElement(Se,{loading:a,size:t,colorTheme:e,secondary:c,icon:o,iconAlignment:l},C))},exports.List=({children:e,...t})=>{const l=M.default(t,Nl);return b.default.createElement(jl,{...t},b.default.Children.map(e,(e=>b.default.isValidElement(e)?b.default.cloneElement(e,Object.assign({},l,e.props)):e)))},exports.ListItem=({size:e="sm",color:t="primary",bulletColor:l="tertiary",mb:n="2xs",icon:i="bullet-point",children:r,...o})=>b.default.createElement(ql,{$size:e,$color:t,mb:n,...o},b.default.createElement(Ql,{icon:i,bulletColor:l}),r),exports.Menu=({testId:e="Menu",...t})=>b.default.createElement(Jl,{p:"xxxs","data-testid":e,...t}),exports.MenuItem=({testId:e="MenuItem",onClick:t,children:l,icon:n,className:i,...r})=>b.default.createElement(Kl,{"data-testid":e,className:i,...r},b.default.createElement(en,{onClick:r.disabled?void 0:t,...r},b.default.createElement(rn,{icon:n,disabled:r.disabled,colorTheme:r.colorTheme}),l)),exports.Modal=gl,exports.MultiSelect=({value:e=[],testId:t="MultiSelect",...l})=>b.default.createElement(Wt,{formatOptionLabel:an,multiple:!0,value:e,testId:t,...l}),exports.MultiSlider=({testId:t="MultiSlider",px:l,disabled:n,...i})=>{const r=V.default(i.value),[o,a]=cn(i.value,i,r);return e.useEffect((()=>{o&&o.current&&(o.current.on("update",(()=>{const e=o.current?.get();Array.isArray(e)&&i.onChange(e)})),o.current.on("change",(()=>{const e=o.current?.get();i.onRelease&&Array.isArray(e)&&i.onRelease(e)})))}),[o]),b.default.createElement(sn,{className:i.className,testId:t,sliderRef:a,sliderApi:o.current,disabled:n,px:l})},exports.Notice=vl,exports.NumberInput=St,exports.Pagination=({testId:e="Pagination",size:t="md",colorTheme:l="brand",previousLabel:n="Previous page",nextLabel:i="Next page",page:r,totalPages:o,onChange:a,...C})=>{const d=(({page:e,totalPages:t})=>{const l=hn(1,Math.min(1,t)),n=hn(Math.max(t-1+1,2),t),i=Math.max(Math.min(e-1,t-1-2-1),3),r=Math.min(Math.max(e+1,5),n.length>0?n[0]-2:t-1);return[...l,...i>3?["ellipsis-start"]:2<t-1?[2]:[],...hn(i,r),...r<t-1-1?["ellipsis-end"]:t-1>1?[t-1]:[],...n]})({page:r,totalPages:o}),s={colorTheme:l,size:t,mx:"3xs",mb:"2xs"};return b.default.createElement(pn,{mx:"-4px",...C,"data-testid":e},b.default.createElement(un,{...s,disabled:r<=1,onClick:()=>a(r-1),icon:"arrow-left",secondary:!0},n),d.map((e=>"string"==typeof e?b.default.createElement(gn,{size:t,key:e,mb:s.mb},"..."):b.default.createElement(un,{...s,key:e,onClick:()=>a(e),selected:r===e,secondary:r!==e},e))),b.default.createElement(un,{...s,disabled:r>=o,onClick:()=>a(r+1),icon:"arrow-right",iconAlignment:"right",secondary:!0},i))},exports.Paragraph=wl,exports.PasswordInput=({testId:t="PasswordInput",size:l="md",ref:n,...i})=>{const[r,o]=e.useState(!1);return b.default.createElement(El,{...i,testId:t,size:l,type:r?"text":"password",contentRight:b.default.createElement(st,{height:"100%",alignItems:"center"},b.default.createElement(mn,{onClick:()=>o(!r)},b.default.createElement(be,{icon:r?"eye":"eye-hidden",size:"lg"===l?"lg":"md",color:"tertiary"}))),ref:n})},exports.PasswordStrength=({testId:t="PasswordStrength",password:l,labelText:n="Password strength",strengthText:i,...r})=>{const o=e.useMemo((()=>Object.assign({[vn.NONE]:"None",[vn.WEAK]:"Weak",[vn.FAIR]:"Fair",[vn.GOOD]:"Good",[vn.EXCELLENT]:"Excellent"},i)),[i]),{strength:a,textColor:C,progressBarColor:d,progressBarValue:s}=bn(l);return b.default.createElement(st,{justifyContent:"space-between",alignItems:"center","data-testid":t,width:"100%",...r},b.default.createElement(st,{flexWrap:"wrap"},b.default.createElement(ol,{element:"span",pr:"2xs"},n),b.default.createElement(ol,{element:"span",color:C,bold:!0,pr:"2xs"},o[a])),b.default.createElement(xn,null,b.default.createElement(Fn,{value:s,color:d})))},exports.PhoenixIcons=me,exports.PhoenixIconsColored=he,exports.PhoenixIconsColoredSrc=pe,exports.PhoenixIconsOutlined=ge,exports.PhoenixIconsOutlinedSrc=ce,exports.PhoenixIconsSrc=ue,exports.ProgressBar=Fn,exports.Radio=({size:e="md",colorTheme:t="brand",className:l,warning:n,error:i,testId:r="Radio",...o})=>b.default.createElement(b.default.Fragment,null,b.default.createElement(wn,{className:l,colorTheme:t,size:e,"data-testid":r,warning:!!n,error:!!i},b.default.createElement(Ge,{type:"radio",...o})),b.default.createElement(Qe,{warning:n,error:i})),exports.Select=Gt,exports.SelectNative=qt,exports.SelectPicker=({colorTheme:t="brand",size:l="md",multiSelect:n=!1,testId:i="SelectPicker",imageSize:r,options:o,name:a,onChange:C,value:d,error:s,warning:c,onMouseOver:p,onMouseLeave:u,className:g})=>{const h=n&&Array.isArray(d)?d:[],[m,D]=e.useState(h),[f,F]=e.useState(!1);e.useEffect((()=>{if(n&&f)return C(m);f||F(!0)}),[m]);const x=e=>n?m.includes(e.value):d===e.value;return b.default.createElement("div",{className:g,"data-testid":i},b.default.createElement(yn,{optionsLength:o.length,onMouseOver:e=>{e.persist(),p?.(e)},onMouseLeave:e=>{e.persist(),u?.(e)},size:l},(e=>e?e.map((e=>b.default.createElement(Mn,{multiSelect:n,key:e.value,checked:x(e),onClick:()=>(e=>{if(n)if(m.includes(e.value)){const t=m.filter((t=>t!==e.value));D(t)}else D([...m,e.value]);else C(e.value)})(e),withImage:e.image,colorTheme:t,size:l,hasDescription:!!e.description,isDisabled:e.isDisabled},b.default.createElement($n,{colorTheme:t,size:l,checked:x(e)},b.default.createElement("input",{type:n?"checkbox":"radio",style:{display:"none"},value:e.value,name:a,checked:x(e),readOnly:!0,disabled:e.isDisabled}),b.default.createElement("label",null)),b.default.createElement(Hn,null,e.image&&b.default.createElement(Vn,{src:e.image,size:l,isDisabled:e.isDisabled,imageSize:r}),b.default.createElement(Zn,null,e.label??e.value)),e.description&&b.default.createElement(kn,{checked:x(e),colorTheme:t,isDisabled:e.isDisabled},e.description)))):null)(o)),b.default.createElement(Qe,{warning:c,error:s}))},exports.Sizing=X,exports.SizingMdLg=["md","lg"],exports.SizingSmMd=["sm","md"],exports.SizingSmMdLg=["sm","md","lg"],exports.Slider=({testId:t="Slider",px:l,limit:n,disabled:i,...r})=>{const o=V.default(r.value),[a,C]=cn(r.value,r,o);return e.useEffect((()=>{a&&a.current&&(a.current.off("update"),a.current.on("update",(()=>{const e=a.current?.get();if("string"==typeof e||"number"==typeof e){if(n&&Number(e)>n)return void a.current?.set(n);r.onChange(e)}})),a.current.off("change"),a.current.on("change",(()=>{const e=a.current?.get();!r.onRelease||"string"!=typeof e&&"number"!=typeof e||r.onRelease(e)})))}),[a,n]),b.default.createElement(sn,{className:r.className,sliderRef:C,sliderApi:a.current,disabled:i,testId:t,px:l})},exports.Spacing=z,exports.Spinner=se,exports.Tab=Sn,exports.TabList=Tn,exports.Tabs=({testId:e="Tabs",...t})=>b.default.createElement(Bn,{"data-testid":e,...t}),exports.Tag=({colorTheme:e="brand",size:t="md",testId:l="Tag",...n})=>b.default.createElement(Pn,{colorTheme:e,size:t,"data-testid":l,...n}),exports.Text=ol,exports.TextArea=({size:e="md",rows:t=3,testId:l="TextArea",label:n,success:i,warning:r,error:o,contentRight:a,helperText:C,className:d,...s})=>{const{focused:c,thisOnFocus:p,thisOnBlur:u}=zt(s.onFocus,s.onBlur);return b.default.createElement(Bt,{label:n,success:i,warning:r,error:o,contentRight:a,helperText:C,className:d,size:e,disabled:s.disabled,filled:!!s.value,focused:c,minimal:s.minimal,testId:l},b.default.createElement(yt,{...s,rows:t,onFocus:p,onBlur:u,focused:c,disabled:s.disabled??!1,$size:e}))},exports.TextColor=W,exports.TextInput=El,exports.Theme=qn,exports.TimezonePicker=({testId:e="TimezonePicker",...t})=>{const l=Rn();return b.default.createElement(Gt,{options:l,testId:e,...t})},exports.Toggle=({colorTheme:e="brand",className:t,warning:l,error:n,testId:i="Toggle",...r})=>b.default.createElement(b.default.Fragment,null,b.default.createElement(On,{className:t,colorTheme:e,"data-testid":i,warning:!!l,error:!!n},b.default.createElement(Ge,{type:"checkbox",...r})),b.default.createElement(Qe,{warning:l,error:n})),exports.Tooltip=({testId:e="Tooltip",onCreate:t,...l})=>b.default.createElement(Wn,{onCreate:l=>{l.popper.dataset.testid=e,t&&t(l)},maxWidth:300,...l}),exports.getBoxShadow=Y,exports.getLineHeightUnitless=G,exports.getSpacingCssValue=I,exports.getTextColor=j,exports.getTimezoneOptions=Rn,exports.getUnitlessNumber=q,exports.isColorTheme=O,exports.isSizing=Q,exports.isSpacing=A,exports.isTextColor=N;
|
|
1424
|
+
`;Object.defineProperty(exports,"TabPanel",{enumerable:!0,get:function(){return D.TabPanel}}),exports.Box=ne,exports.Button=_e,exports.ButtonGroup=({testId:e="ButtonGroup",children:t,dividers:l,...n})=>{const i=l&&Array.isArray(t)?((e,t)=>b.default.Children.map(e,(e=>e.props.minimal?[e,t]:[e])).flat().slice(0,-1))(t,b.default.createElement(Te,null,b.default.createElement(Pe,null))):t;return b.default.createElement(Ie,{...n,"data-testid":e},i)},exports.Card=Ue,exports.Checkbox=et,exports.ClosableButton=({testId:e="ClosableButton",className:t,onClose:l,ref:n,...i})=>b.default.createElement(lt,{className:t,"data-testid":e},b.default.createElement(nt,{...i,ref:n,type:"button"}),b.default.createElement(it,{type:"button",onClick:l},b.default.createElement("img",{src:tt,alt:""}))),exports.ClosableItem=({testId:e="ClosableItem",className:t,onClose:l,...n})=>b.default.createElement(rt,{className:t,"data-testid":e},b.default.createElement(ot,{...n}),b.default.createElement(it,{type:"button",onClick:l},b.default.createElement("img",{src:tt,alt:""}))),exports.Collapsible=dt,exports.CollapsibleCard=({testId:e="CollapsibleCard",initialOpen:t=!0,arrowReverse:l=!1,showCard:n=!0,headingMarginBottom:i="xs",iconRotationDeg:r=90,arrow:o,heading:a,rightContent:C,children:d,...s})=>{const[c,p]=b.default.useState(!t);return b.default.createElement(gt,{as:n?Ue:ne,p:s.p??(n?"xs":0),pb:s.pb??s.py??s.p??0,"data-testid":e,...s},b.default.createElement(st,{alignItems:"center",justifyContent:"space-between",flexWrap:"wrap"},b.default.createElement(ht,{mb:i,onClick:()=>p(!c),arrowReverse:l},b.default.createElement(mt,{collapsed:c,iconRotationDeg:r},o??b.default.createElement(Dt,{secondary:!0,size:"xs",colorTheme:"neutral",icon:"chevron-right"})),"string"==typeof a?b.default.createElement(ut,{element:"h4",bold:!1,mx:l?0:"xs"},a):a),!!C&&b.default.createElement(ne,{mb:"xs"},C)),b.default.createElement(dt,{collapsed:c},b.default.createElement(ne,{pb:n?"xs":0},d)))},exports.ColorTheme=U,exports.DateInput=({size:t="md",months:l=Qt,locale:n="eu",testId:i="DateInput",onChange:r,warning:o,error:a,inputLabels:C,dateFormatError:d="Please enter a valid date.",value:s,className:c,dayProps:p,monthProps:u,yearProps:g,...h})=>{const m=l??[],[D,f]=e.useState(s?.day??null),[F,x]=e.useState(s?.month?{value:s.month,label:Jt(m,s.month)}:null),[v,w]=e.useState(s?.year??null),[E,L]=e.useState(void 0);e.useEffect((()=>{D&&F&&v?((e,t,l)=>{if(!e||!t||!l)return!1;const n=("string"==typeof t?parseInt(t,10):t)-1;return n>=0&&n<12&&e>0&&e<=((e,t)=>{switch(e){case 1:return t%4==0&&t%100||t%400==0?29:28;case 8:case 3:case 5:case 10:return 30;default:return 31}})(n,l)})(D,F.value,v)?(r({day:D,month:"string"==typeof F.value?parseInt(F.value,10):F.value,year:v}),L(void 0)):(r(null),L(d)):(r(null),L(void 0))}),[D,F,v,d]);const y=C??{day:"Day",month:"Month",year:"Year"},k=()=>{D&&F&&v&&h.setTouched&&h.setTouched(!0)},H=b.default.createElement(St,{name:"day",min:1,max:31,pattern:"[0-9]*",autoComplete:"bday-day",label:y.day,value:D,onChange:e=>f(e),onBlur:k,error:!!a,size:t,success:h.success,disabled:h.disabled,maxDecimalCount:0,numberFormatErrorMessage:d,...p}),M=b.default.createElement(Gt,{name:"month",label:y.month,value:F,onChange:e=>x(e),onBlur:k,options:m,error:!!a,size:t,success:h.success,disabled:h.disabled,...u}),V=b.default.createElement(St,{name:"year",min:1,autoComplete:"bday-year",pattern:"[0-9]*",label:y.year,value:v,onChange:e=>w(e),onBlur:k,error:!!a,size:t,success:h.success,disabled:h.disabled,maxDecimalCount:0,numberFormatErrorMessage:d,...g});return b.default.createElement(Yt,{className:c,"data-testid":i},"ja"===n?b.default.createElement(Xt,null,V,M,H):"us"===n?b.default.createElement(Xt,null,M,H,V):b.default.createElement(Xt,null,H,M,V),E&&!a&&b.default.createElement(Qe,{error:E}),b.default.createElement(Qe,{warning:o,error:a}))},exports.DatePicker=({testId:e="DatePicker",value:t,onChange:l,dayPickerProps:n,...i})=>b.default.createElement(ll,{selected:t??void 0,initialDate:t,onDayClick:(e,{selected:t,disabled:n})=>{n||l(t?null:e)},testId:e,...i,...n}),exports.DateRangePicker=({testId:e="DateRangePicker",value:t,onChange:l,dayPickerProps:n,...i})=>{const r={from:t.from??void 0,to:t.to??void 0};return b.default.createElement(nl,{className:"DateRangePicker",selected:r,initialDate:t.from,onDayClick:(e,{disabled:t})=>{if(t)return;const n=a.addToRange(e,r);l({from:n?.from??null,to:n?.to??null})},testId:e,...i,...n})},exports.Dropdown=({testId:t="Dropdown",content:l,onCreate:n,onMount:i,onHide:r,...o})=>{const[a,C]=e.useState(!1);return b.default.createElement(b.default.Fragment,null,b.default.createElement(k.default,{render:(e,t,n)=>b.default.createElement(il,{visible:a,...e},l(n?.hide)),trigger:"click",interactive:!0,animation:!0,placement:"bottom-start",onCreate:e=>{e.popper.dataset.testid=t,n&&n(e)},onMount:e=>{C(!0),i&&i(e)},onHide:e=>{const t=()=>{e.unmount(),e.popper.firstChild?.removeEventListener("transitionend",t)};e.popper.firstChild?.addEventListener("transitionend",t),C(!1),r&&r(e)},...o}))},exports.FileUpload=({multiple:t=!0,additive:l=!1,testId:n="FileUpload",files:i,setFiles:r,label:o,labelTouchDevice:a,dragInstructions:C,onFileDrop:s,acceptedFilePattern:c,uploadButtonText:p,uploadButtonTextTouchDevice:u,onFileRemove:g,error:h,className:m,fileValidation:D,withIcon:f,onPassword:F,passwordPromptText:x="Enter the password to open this PDF file.",passwordIncorrectText:v="Invalid password. Please try again.",passwordConfirmButtonText:w="Confirm",passwordCancelButtonText:E="Cancel",passwordPlaceholderText:L="Password",unsupportedFileFormatErrorMessage:y="Unsupported file format. Supported formats: "})=>{const[k,H]=e.useState([]),M=(()=>{const[t,l]=e.useState([]);return{add:e=>{l((t=>[...t,e]))},editCurrentItem:e=>{l((t=>[{...t[0],...e},...t.slice(1)]))},currentItem:t.length>0?t[0]:null,setAttr:e=>{l([{...t[0],...e},...t.slice(1)])},remove:()=>l(t.slice(1)),removeAll:()=>l([])}})(),V=c??{"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]},$=e.useCallback((async e=>{const t=D?[]:e;if(D){const l=[];await Promise.all(e.map((async e=>{const n=await D(e);n?l.push(`${e.name}: ${n}`):t.push(e)}))),H(l)}r(t)}),[r,D]);e.useEffect((()=>()=>{i.forEach((e=>URL.revokeObjectURL(e.preview)))}),[]);const Z=e.useCallback((e=>{k.includes(y)&&H((e=>e.filter((e=>e!==y))));const t=e.map((e=>Object.assign(e,{preview:URL.createObjectURL(e)})));void 0!==s&&s(t),$(l?[...i,...t].reduce(((e,t)=>(e.some((e=>e.name===t.name))||e.push(t),e)),[]):t)}),[i,l,s,$,k,y]),B=e.useCallback((e=>{const t=Object.values(V).flat().join(", "),l=`${y} ${t}.`;e.map((e=>{e.errors.map((e=>{"file-invalid-type"===e.code&&H((e=>e.includes(l)?e:[...e,l]))}))}))}),[y]),{getRootProps:z,getInputProps:A,isDragActive:S,open:_}=d.useDropzone({accept:V,onDrop:Z,onDropRejected:B,noClick:!0,multiple:t});return b.default.createElement(Vl,{className:m,"data-testid":n},b.default.createElement(yl,{open:!!M.currentItem,onClose:()=>{$([]),M.removeAll()},passwordPromptText:x,passwordIncorrectText:v,passwordConfirmButtonText:w,passwordCancelButtonText:E,passwordPlaceholderText:L,passwordQueue:M}),b.default.createElement($l,{...z(),isDragActive:S,error:h||k.length>0},b.default.createElement("input",{...A()}),b.default.createElement(Hl,null,i.map((e=>b.default.createElement(Ml,{key:e.name},b.default.createElement(dl,{file:e,setFiles:$,onPassword:F,passwordQueue:M}),b.default.createElement(kl,{onClick:()=>(e=>{URL.revokeObjectURL(e.preview),$(i.filter((t=>t.preview!==e.preview))),void 0!==g&&g(e)})(e)},b.default.createElement(be,{icon:"trash-error",size:"s"})))))),f&&b.default.createElement(Al,{src:"data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%2236%22%20viewBox%3D%220%200%2048%2036%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M24%2025.5V1.5%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M33.002%2010.5L24%201.5L15%2010.5%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M46.502%2025.5V28.5C46.502%2031.8%2043.802%2034.5%2040.502%2034.5H7.49998L7.47998%2034.498C4.15998%2034.478%201.47998%2031.798%201.47998%2028.498V28.496V25.496%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"}),S?b.default.createElement(Zl,null,C??"Drop the files here ..."):b.default.createElement(b.default.Fragment,null,b.default.createElement(Bl,null,b.default.createElement(Zl,null,o??"Drag 'n' drop some files here, or ")),a&&b.default.createElement(Zl,null,b.default.createElement(zl,null,a))),b.default.createElement(_e,{name:"uploadButton",type:"button",onClick:_,size:"sm",icon:"paper",colorTheme:"brand",secondary:!0},b.default.createElement(Bl,null,p??"Select files"),b.default.createElement(zl,null,u??"Select files"))),"string"==typeof h&&h&&b.default.createElement(Qe,{error:h}),k.length>0&&k.map(((e,t)=>b.default.createElement(Qe,{error:e,key:t}))))},exports.Flex=st,exports.GlobalStyles=Xn,exports.Grid=e=>b.default.createElement(ne,{display:"grid",...e}),exports.Heading=ut,exports.HorizontalDivider=({height:e=1,my:t="s",testId:l="HorizontalDivider",...n})=>b.default.createElement(Sl,{$height:e,my:t,"data-testid":l,...n}),exports.Icon=be,exports.IconAlignment=["left","right"],exports.Image=({testId:e="Image",width:t,height:l,...n})=>b.default.createElement(_l,{"data-testid":e,$width:t,$height:l,...n}),exports.Label=({testId:e="Label",...t})=>b.default.createElement(Il,{"data-testid":e,...t}),exports.Link=({testId:e="Link",children:t,icon:l,iconAlignment:n="left",color:i,ref:r,...o})=>b.default.createElement(Tl,{ref:r,"data-testid":e,$color:i,...o},"left"===n&&b.default.createElement(Wl,{icon:l,color:i}),b.default.createElement(Ol,{icon:!!l,iconAlignment:n},t),"right"===n&&b.default.createElement(Wl,{icon:l,color:i})),exports.LinkButton=({colorTheme:e="brand",size:t="md",iconAlignment:l="left",testId:n="LinkButton",secondary:i,light:r,icon:o,loading:a,children:C,ref:d,...s})=>{const c=i??r,p={...s,size:t,colorTheme:e,secondary:c,icon:o};return b.default.createElement(Me,{ref:d,"data-testid":n,...p},b.default.createElement(Se,{loading:a,size:t,colorTheme:e,secondary:c,icon:o,iconAlignment:l},C))},exports.List=({children:e,...t})=>{const l=M.default(t,Nl);return b.default.createElement(jl,{...t},b.default.Children.map(e,(e=>b.default.isValidElement(e)?b.default.cloneElement(e,Object.assign({},l,e.props)):e)))},exports.ListItem=({size:e="sm",color:t="primary",bulletColor:l="tertiary",mb:n="2xs",icon:i="bullet-point",children:r,...o})=>b.default.createElement(ql,{$size:e,$color:t,mb:n,...o},b.default.createElement(Ql,{icon:i,bulletColor:l}),r),exports.Menu=({testId:e="Menu",...t})=>b.default.createElement(Jl,{p:"xxxs","data-testid":e,...t}),exports.MenuItem=({testId:e="MenuItem",onClick:t,children:l,icon:n,href:i,disabled:r,className:o,colorTheme:a,...C})=>{const d={onClick:r?void 0:t,disabled:r,...C},s=b.default.createElement(b.default.Fragment,null,b.default.createElement(an,{icon:n,disabled:r,colorTheme:a}),l);return b.default.createElement(Kl,{"data-testid":e,className:o,...C},i?b.default.createElement(ln,{href:i,...d},s):b.default.createElement(tn,{...d},s))},exports.Modal=gl,exports.MultiSelect=({value:e=[],testId:t="MultiSelect",...l})=>b.default.createElement(Wt,{formatOptionLabel:dn,multiple:!0,value:e,testId:t,...l}),exports.MultiSlider=({testId:t="MultiSlider",px:l,disabled:n,...i})=>{const r=V.default(i.value),[o,a]=un(i.value,i,r);return e.useEffect((()=>{o&&o.current&&(o.current.on("update",(()=>{const e=o.current?.get();Array.isArray(e)&&i.onChange(e)})),o.current.on("change",(()=>{const e=o.current?.get();i.onRelease&&Array.isArray(e)&&i.onRelease(e)})))}),[o]),b.default.createElement(pn,{className:i.className,testId:t,sliderRef:a,sliderApi:o.current,disabled:n,px:l})},exports.Notice=vl,exports.NumberInput=St,exports.Pagination=({testId:e="Pagination",size:t="md",colorTheme:l="brand",previousLabel:n="Previous page",nextLabel:i="Next page",page:r,totalPages:o,onChange:a,...C})=>{const d=(({page:e,totalPages:t})=>{const l=Dn(1,Math.min(1,t)),n=Dn(Math.max(t-1+1,2),t),i=Math.max(Math.min(e-1,t-1-2-1),3),r=Math.min(Math.max(e+1,5),n.length>0?n[0]-2:t-1);return[...l,...i>3?["ellipsis-start"]:2<t-1?[2]:[],...Dn(i,r),...r<t-1-1?["ellipsis-end"]:t-1>1?[t-1]:[],...n]})({page:r,totalPages:o}),s={colorTheme:l,size:t,mx:"3xs",mb:"2xs"};return b.default.createElement(gn,{mx:"-4px",...C,"data-testid":e},b.default.createElement(hn,{...s,disabled:r<=1,onClick:()=>a(r-1),icon:"arrow-left",secondary:!0},n),d.map((e=>"string"==typeof e?b.default.createElement(mn,{size:t,key:e,mb:s.mb},"..."):b.default.createElement(hn,{...s,key:e,onClick:()=>a(e),selected:r===e,secondary:r!==e},e))),b.default.createElement(hn,{...s,disabled:r>=o,onClick:()=>a(r+1),icon:"arrow-right",iconAlignment:"right",secondary:!0},i))},exports.Paragraph=wl,exports.PasswordInput=({testId:t="PasswordInput",size:l="md",ref:n,...i})=>{const[r,o]=e.useState(!1);return b.default.createElement(El,{...i,testId:t,size:l,type:r?"text":"password",contentRight:b.default.createElement(st,{height:"100%",alignItems:"center"},b.default.createElement(fn,{onClick:()=>o(!r)},b.default.createElement(be,{icon:r?"eye":"eye-hidden",size:"lg"===l?"lg":"md",color:"tertiary"}))),ref:n})},exports.PasswordStrength=({testId:t="PasswordStrength",password:l,labelText:n="Password strength",strengthText:i,...r})=>{const o=e.useMemo((()=>Object.assign({[wn.NONE]:"None",[wn.WEAK]:"Weak",[wn.FAIR]:"Fair",[wn.GOOD]:"Good",[wn.EXCELLENT]:"Excellent"},i)),[i]),{strength:a,textColor:C,progressBarColor:d,progressBarValue:s}=En(l);return b.default.createElement(st,{justifyContent:"space-between",alignItems:"center","data-testid":t,width:"100%",...r},b.default.createElement(st,{flexWrap:"wrap"},b.default.createElement(ol,{element:"span",pr:"2xs"},n),b.default.createElement(ol,{element:"span",color:C,bold:!0,pr:"2xs"},o[a])),b.default.createElement(bn,null,b.default.createElement(vn,{value:s,color:d})))},exports.PhoenixIcons=me,exports.PhoenixIconsColored=he,exports.PhoenixIconsColoredSrc=pe,exports.PhoenixIconsOutlined=ge,exports.PhoenixIconsOutlinedSrc=ce,exports.PhoenixIconsSrc=ue,exports.ProgressBar=vn,exports.Radio=({size:e="md",colorTheme:t="brand",className:l,warning:n,error:i,testId:r="Radio",...o})=>b.default.createElement(b.default.Fragment,null,b.default.createElement(Ln,{className:l,colorTheme:t,size:e,"data-testid":r,warning:!!n,error:!!i},b.default.createElement(Ge,{type:"radio",...o})),b.default.createElement(Qe,{warning:n,error:i})),exports.Select=Gt,exports.SelectNative=qt,exports.SelectPicker=({colorTheme:t="brand",size:l="md",multiSelect:n=!1,testId:i="SelectPicker",imageSize:r,options:o,name:a,onChange:C,value:d,error:s,warning:c,onMouseOver:p,onMouseLeave:u,className:g})=>{const h=n&&Array.isArray(d)?d:[],[m,D]=e.useState(h),[f,F]=e.useState(!1);e.useEffect((()=>{if(n&&f)return C(m);f||F(!0)}),[m]);const x=e=>n?m.includes(e.value):d===e.value;return b.default.createElement("div",{className:g,"data-testid":i},b.default.createElement(Hn,{optionsLength:o.length,onMouseOver:e=>{e.persist(),p?.(e)},onMouseLeave:e=>{e.persist(),u?.(e)},size:l},(e=>e?e.map((e=>b.default.createElement($n,{multiSelect:n,key:e.value,checked:x(e),onClick:()=>(e=>{if(n)if(m.includes(e.value)){const t=m.filter((t=>t!==e.value));D(t)}else D([...m,e.value]);else C(e.value)})(e),withImage:e.image,colorTheme:t,size:l,hasDescription:!!e.description,isDisabled:e.isDisabled},b.default.createElement(Bn,{colorTheme:t,size:l,checked:x(e)},b.default.createElement("input",{type:n?"checkbox":"radio",style:{display:"none"},value:e.value,name:a,checked:x(e),readOnly:!0,disabled:e.isDisabled}),b.default.createElement("label",null)),b.default.createElement(Vn,null,e.image&&b.default.createElement(Zn,{src:e.image,size:l,isDisabled:e.isDisabled,imageSize:r}),b.default.createElement(zn,null,e.label??e.value)),e.description&&b.default.createElement(Mn,{checked:x(e),colorTheme:t,isDisabled:e.isDisabled},e.description)))):null)(o)),b.default.createElement(Qe,{warning:c,error:s}))},exports.Sizing=X,exports.SizingMdLg=["md","lg"],exports.SizingSmMd=["sm","md"],exports.SizingSmMdLg=["sm","md","lg"],exports.Slider=({testId:t="Slider",px:l,limit:n,disabled:i,...r})=>{const o=V.default(r.value),[a,C]=un(r.value,r,o);return e.useEffect((()=>{a&&a.current&&(a.current.off("update"),a.current.on("update",(()=>{const e=a.current?.get();if("string"==typeof e||"number"==typeof e){if(n&&Number(e)>n)return void a.current?.set(n);r.onChange(e)}})),a.current.off("change"),a.current.on("change",(()=>{const e=a.current?.get();!r.onRelease||"string"!=typeof e&&"number"!=typeof e||r.onRelease(e)})))}),[a,n]),b.default.createElement(pn,{className:r.className,sliderRef:C,sliderApi:a.current,disabled:i,testId:t,px:l})},exports.Spacing=z,exports.Spinner=se,exports.Tab=In,exports.TabList=Rn,exports.Tabs=({testId:e="Tabs",...t})=>b.default.createElement(An,{"data-testid":e,...t}),exports.Tag=({colorTheme:e="brand",size:t="md",testId:l="Tag",...n})=>b.default.createElement(Un,{colorTheme:e,size:t,"data-testid":l,...n}),exports.Text=ol,exports.TextArea=({size:e="md",rows:t=3,testId:l="TextArea",label:n,success:i,warning:r,error:o,contentRight:a,helperText:C,className:d,...s})=>{const{focused:c,thisOnFocus:p,thisOnBlur:u}=zt(s.onFocus,s.onBlur);return b.default.createElement(Bt,{label:n,success:i,warning:r,error:o,contentRight:a,helperText:C,className:d,size:e,disabled:s.disabled,filled:!!s.value,focused:c,minimal:s.minimal,testId:l},b.default.createElement(yt,{...s,rows:t,onFocus:p,onBlur:u,focused:c,disabled:s.disabled??!1,$size:e}))},exports.TextColor=W,exports.TextInput=El,exports.Theme=Yn,exports.TimezonePicker=({testId:e="TimezonePicker",...t})=>{const l=On();return b.default.createElement(Gt,{options:l,testId:e,...t})},exports.Toggle=({colorTheme:e="brand",className:t,warning:l,error:n,testId:i="Toggle",...r})=>b.default.createElement(b.default.Fragment,null,b.default.createElement(Nn,{className:t,colorTheme:e,"data-testid":i,warning:!!l,error:!!n},b.default.createElement(Ge,{type:"checkbox",...r})),b.default.createElement(Qe,{warning:l,error:n})),exports.Tooltip=({testId:e="Tooltip",onCreate:t,...l})=>b.default.createElement(jn,{onCreate:l=>{l.popper.dataset.testid=e,t&&t(l)},maxWidth:300,...l}),exports.getBoxShadow=Y,exports.getLineHeightUnitless=G,exports.getSpacingCssValue=I,exports.getTextColor=j,exports.getTimezoneOptions=On,exports.getUnitlessNumber=q,exports.isColorTheme=O,exports.isSizing=Q,exports.isSpacing=A,exports.isTextColor=N;
|
|
1416
1425
|
//# sourceMappingURL=bundle.cjs.js.map
|