twenty-sdk 0.4.1 → 0.4.2
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/AllIcons-CGPKtPQS-DNCqqVPl.js +18986 -0
- package/dist/AllIcons-CGPKtPQS-pnhRwY6h.mjs +30768 -0
- package/dist/README.md +282 -0
- package/dist/{cli.cjs → cli/index.cjs} +33 -33
- package/dist/{cli.mjs → cli/index.mjs} +14 -17
- package/dist/front-component/index.cjs +1 -0
- package/dist/front-component/index.mjs +2668 -0
- package/dist/front-component-constants/index.cjs +1 -0
- package/dist/{front-component-constants.mjs → front-component-constants/index.mjs} +1 -1
- package/dist/input-CCBkYU6b.mjs +28020 -0
- package/dist/input-QArI9uHN.js +402 -0
- package/dist/isValidCountryCode-B7MxBtRC-BNPnBggZ.js +25 -0
- package/dist/{jsx-runtime-C9ldtZbm.mjs → isValidCountryCode-B7MxBtRC-BsdyqBLg.mjs} +4054 -4685
- package/dist/jsx-runtime-BdMIAavf.mjs +639 -0
- package/dist/jsx-runtime-Bglt9wWZ.js +30 -0
- package/dist/package.json +87 -0
- package/dist/ui/index.cjs +2015 -0
- package/dist/ui/index.d.ts +11 -0
- package/dist/ui/index.mjs +9941 -0
- package/dist/vendor/twenty-shared/{isValidCountryCode-Dyji5s5r.mjs → isValidCountryCode-B7MxBtRC.mjs} +963 -939
- package/dist/vendor/twenty-shared/{isValidCountryCode-D-UqlXRW.js → isValidCountryCode-BXhYkDye.js} +3 -3
- package/dist/vendor/twenty-shared/types/FilterableFieldType.d.ts +1 -1
- package/dist/vendor/twenty-shared/types/FilterableFieldType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/RecordGqlOperationFilter.d.ts +5 -1
- package/dist/vendor/twenty-shared/types/RecordGqlOperationFilter.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types/index.d.ts +1 -1
- package/dist/vendor/twenty-shared/types/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/types.cjs +1 -1
- package/dist/vendor/twenty-shared/types.mjs +3 -2
- package/dist/vendor/twenty-shared/utils/filter/index.d.ts +1 -0
- package/dist/vendor/twenty-shared/utils/filter/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/turnRecordFilterIntoGqlOperationFilter.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/utils/getEmptyRecordGqlOperationFilter.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/utils/getFilterTypeFromFieldType.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFilesFilter.d.ts +7 -0
- package/dist/vendor/twenty-shared/utils/filter/utils/isMatchingFilesFilter.d.ts.map +1 -0
- package/dist/vendor/twenty-shared/utils/index.d.ts +1 -0
- package/dist/vendor/twenty-shared/utils/index.d.ts.map +1 -1
- package/dist/vendor/twenty-shared/utils.cjs +2 -2
- package/dist/vendor/twenty-shared/utils.mjs +171 -151
- package/dist/vendor/twenty-shared/workflow.cjs +1 -1
- package/dist/vendor/twenty-shared/workflow.mjs +1 -1
- package/dist/vendor/twenty-ui/{Avatar-zyamQwOj.cjs → Avatar-CRldFv_0.cjs} +1 -1
- package/dist/vendor/twenty-ui/{Avatar-Cg4dvBA_.js → Avatar-q9sRncB5.js} +2 -2
- package/dist/vendor/twenty-ui/{Button-BChGSHVB.js → Button-C4mFr9D-.js} +2 -2
- package/dist/vendor/twenty-ui/{Button-PLd38fEI.cjs → Button-DglXLX4t.cjs} +2 -2
- package/dist/vendor/twenty-ui/{ColorSample-BEUix7Ah.cjs → ColorSample-D9DM-_ee.cjs} +1 -1
- package/dist/vendor/twenty-ui/{ColorSample-Bp-he5lO.js → ColorSample-IEHpxKsX.js} +1 -1
- package/dist/vendor/twenty-ui/MainColorNames-C1tU0n7M.cjs +1 -0
- package/dist/vendor/twenty-ui/MainColorNames-CH_C4JeD.js +5 -0
- package/dist/vendor/twenty-ui/{MainColorsLight-x_vjLhiq.js → MainColorsLight--0X05KcO.js} +1 -1
- package/dist/vendor/twenty-ui/{MainColorsLight-GOpmobTe.cjs → MainColorsLight-CpgC1-1i.cjs} +1 -1
- package/dist/vendor/twenty-ui/{OverflowingTextWithTooltip-1P96Lw-o.cjs → OverflowingTextWithTooltip-C4x0j2AD.cjs} +1 -1
- package/dist/vendor/twenty-ui/{OverflowingTextWithTooltip-F-KEqUMB.js → OverflowingTextWithTooltip-FRJL71ks.js} +2 -2
- package/dist/vendor/twenty-ui/{Tag-CfX8tARK.js → Tag-C0nqcoLd.js} +3 -3
- package/dist/vendor/twenty-ui/{Tag-DIE1bmT7.cjs → Tag-C6YGTe8G.cjs} +1 -1
- package/dist/vendor/twenty-ui/{ThemeCommon-BiQXECTo.cjs → ThemeCommon-DMvprlEs.cjs} +1 -1
- package/dist/vendor/twenty-ui/{ThemeCommon-CUpBXrDJ.js → ThemeCommon-RVLgB4Pa.js} +1 -1
- package/dist/vendor/twenty-ui/components.cjs +1 -1
- package/dist/vendor/twenty-ui/components.mjs +5 -5
- package/dist/vendor/twenty-ui/{config-D3RPmuwk.cjs → config-2EfZqKOo.cjs} +1 -1
- package/dist/vendor/twenty-ui/{config-D9UgCg2c.js → config-wKIVPAkA.js} +1 -1
- package/dist/vendor/twenty-ui/display.cjs +1 -1
- package/dist/vendor/twenty-ui/display.mjs +9 -9
- package/dist/vendor/twenty-ui/feedback.cjs +1 -1
- package/dist/vendor/twenty-ui/feedback.mjs +1 -1
- package/dist/vendor/twenty-ui/{getDisplayValueByUrlType-BMzTxZmB.cjs → getDisplayValueByUrlType-DwG-FZ1p.cjs} +1 -1
- package/dist/vendor/twenty-ui/{getDisplayValueByUrlType-BqPVhhu2.js → getDisplayValueByUrlType-DxqXD84p.js} +1 -1
- package/dist/vendor/twenty-ui/input.cjs +4 -4
- package/dist/vendor/twenty-ui/input.mjs +6 -6
- package/dist/vendor/twenty-ui/{isValidCountryCode-Dyji5s5r-MH68p3NE.cjs → isValidCountryCode-B7MxBtRC-BroSlnrA.cjs} +6 -6
- package/dist/vendor/twenty-ui/{isValidCountryCode-Dyji5s5r-B7O5eJvP.js → isValidCountryCode-B7MxBtRC-DyiZn2sl.js} +647 -647
- package/dist/vendor/twenty-ui/json-visualizer.cjs +2 -2
- package/dist/vendor/twenty-ui/json-visualizer.mjs +1 -1
- package/dist/vendor/twenty-ui/layout.cjs +2 -2
- package/dist/vendor/twenty-ui/layout.mjs +1 -1
- package/dist/vendor/twenty-ui/navigation.cjs +5 -5
- package/dist/vendor/twenty-ui/navigation.mjs +6 -6
- package/dist/vendor/twenty-ui/testing.cjs +2 -2
- package/dist/vendor/twenty-ui/testing.mjs +2 -2
- package/dist/vendor/twenty-ui/theme.cjs +1 -1
- package/dist/vendor/twenty-ui/theme.mjs +6 -6
- package/dist/vendor/twenty-ui/{themeColorSchema-CgAr-Bzv.js → themeColorSchema-DVfjPoxx.js} +1 -1
- package/dist/vendor/twenty-ui/{themeColorSchema-DSPsU2O5.cjs → themeColorSchema-DfeeV1pm.cjs} +1 -1
- package/dist/vendor/twenty-ui/{useMouseDownNavigation-C_8Q5KFZ.cjs → useMouseDownNavigation-Dr9ganU0.cjs} +1 -1
- package/dist/vendor/twenty-ui/{useMouseDownNavigation-qpLZC7wJ.js → useMouseDownNavigation-QLT907PP.js} +1 -1
- package/dist/vendor/twenty-ui/utilities.cjs +1 -1
- package/dist/vendor/twenty-ui/utilities.mjs +3 -3
- package/package.json +20 -9
- package/dist/front-component-constants.cjs +0 -1
- package/dist/front-component.cjs +0 -155
- package/dist/front-component.mjs +0 -23453
- package/dist/jsx-runtime-CfccAQK_.js +0 -54
- package/dist/vendor/twenty-ui/MainColorNames-DNUaoKmR.cjs +0 -1
- package/dist/vendor/twenty-ui/MainColorNames-O_b9E7H3.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./emotion-react-jsx-runtime.browser.esm-pt_kQSCG.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./emotion-react-jsx-runtime.browser.esm-pt_kQSCG.cjs"),V=require("@emotion/styled"),b=require("@sniptt/guards"),m=require("@emotion/react"),P=require("./VisibilityHidden-Bkyg_zrv.cjs"),j=require("react"),h=require("./isValidCountryCode-B7MxBtRC-BroSlnrA.cjs");require("react-router-dom");const N=require("./Animation-Dqlz22Qp.cjs"),x=require("framer-motion"),a=require("@tabler/icons-react"),R=e=>e&&e.__esModule?e:{default:e},d=R(V),C=j.createContext(void 0),u=()=>{const e=j.useContext(C);if(!h.Tr(e))throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");return e},D=d.default(x.motion.button,{target:"e1a5m94p0"})("align-items:center;background-color:",({theme:e,variant:r})=>r==="red"?e.background.danger:e.background.transparent.lighter,";border-color:",({theme:e,variant:r})=>r==="red"?e.border.color.danger:e.border.color.medium,";border-radius:",({theme:e})=>e.border.radius.sm,";border-style:solid;border-width:1px;display:flex;justify-content:center;padding-inline:",({theme:e})=>e.spacing(1),";height:24px;width:24px;box-sizing:border-box;cursor:pointer;"),H=x.motion.create(a.IconChevronDown),Y=({isOpen:e,onClick:r,variant:t})=>{const n=m.useTheme(),{arrowButtonCollapsedLabel:c,arrowButtonExpandedLabel:i}=u();return o.jsxs(D,{variant:t,onClick:r,children:[o.jsx(P.VisibilityHidden,{children:e?i:c}),o.jsx(H,{size:n.icon.size.md,color:t==="blue"?n.color.blue:t==="red"?n.font.color.danger:n.font.color.secondary,initial:!1,animate:{rotate:e?0:-90},transition:{duration:N.ANIMATION.duration.normal}})]})},I=d.default("ul",{target:"eayxlfb0"})("margin:0;padding:0;display:grid;row-gap:",({theme:e})=>e.spacing(2),";",({theme:e,depth:r})=>r>0&&m.css`
|
|
2
2
|
padding-left: ${e.spacing(8)};
|
|
3
3
|
|
|
4
4
|
> :first-of-type {
|
|
5
5
|
margin-top: ${e.spacing(2)};
|
|
6
6
|
}
|
|
7
|
-
`),F=d.default("span",{target:"e1c1vyj80"})("align-items:center;background-color:",({theme:e,highlighting:r})=>r==="blue"?e.color.blue3:r==="red"?e.background.danger:e.background.transparent.lighter,";border-color:",({theme:e,highlighting:r})=>r==="blue"?e.color.blue5:r==="red"?e.border.color.danger:e.border.color.medium,";color:",({theme:e,highlighting:r})=>r==="blue"?e.color.blue:r==="red"?e.font.color.danger:e.font.color.primary,";border-radius:",({theme:e})=>e.border.radius.sm,";border-style:solid;border-width:1px;height:24px;box-sizing:border-box;column-gap:",({theme:e})=>e.spacing(2),";display:grid;grid-template-columns:auto 1fr;align-items:center;white-space:nowrap;padding-block:",({theme:e})=>e.spacing(1),";padding-inline:",({theme:e})=>e.spacing(2),";"),A=({label:e,Icon:r,highlighting:t})=>{const n=m.useTheme();return o.jsxs(F,{highlighting:t,children:[o.jsx(r,{size:n.icon.size.md,color:t==="blue"?n.color.blue:t==="red"?n.font.color.danger:n.font.color.tertiary}),o.jsx("span",{children:e})]})},K=d.default("span",{target:"e1uq32gh0"})("align-items:center;box-sizing:border-box;color:",({theme:e,highlighting:r})=>r==="blue"?e.color.blue8:r==="red"?e.color.red8:e.font.color.tertiary,";display:inline-flex;height:24px;"),v=({valueAsString:e,highlighting:r})=>{const{onNodeValueClick:t}=u(),n=()=>{t?.(e)};return o.jsx(K,{highlighting:r,onClick:n,children:e})},q=({label:e,value:r,depth:t,keyPath:n,highlighting:c})=>{const{emptyObjectLabel:i}=u();return o.jsx(S,{elements:Object.entries(r).map(([s,l])=>({id:s,label:s,value:l})),renderElementsCount:s=>`{${s}}`,label:e,Icon:a.IconCube,depth:t,emptyElementsText:i,keyPath:n,highlighting:c})},G=d.default("li",{target:"e18nb3wl0"})("align-items:center;display:flex;list-style-type:none;white-space:nowrap;"),Q=d.default(G,{target:"e16o44ib0"})("column-gap:",({theme:e})=>e.spacing(2),";"),g=e=>o.jsxs(Q,{children:[e.label&&o.jsx(A,{label:e.label,Icon:e.Icon,highlighting:e.highlighting}),o.jsx(v,{valueAsString:e.valueAsString,highlighting:e.highlighting})]}),L=e=>b.isArray(e),w=({label:e,value:r,depth:t,keyPath:n})=>{const{getNodeHighlighting:c,emptyStringLabel:i}=u(),s=c?.(n);return h.Tr(r)?b.isString(r)?o.jsx(g,{label:e,valueAsString:b.isNonEmptyString(r)?r:i,Icon:a.IconTypography,highlighting:s}):b.isNumber(r)?o.jsx(g,{label:e,valueAsString:String(r),Icon:a.IconNumber9,highlighting:s}):b.isBoolean(r)?o.jsx(g,{label:e,valueAsString:String(r),Icon:a.IconCheckbox,highlighting:s}):L(r)?o.jsx(O,{label:e,value:r,depth:t,keyPath:n,highlighting:s}):o.jsx(q,{label:e,value:r,depth:t,keyPath:n,highlighting:s}):o.jsx(g,{label:e,valueAsString:"null",Icon:a.IconCircleOff,highlighting:s})},J=d.default("li",{target:"ele0b3h0"})("display:grid;list-style-type:none;"),U=d.default("div",{target:"ele0b3h1"})("display:flex;align-items:center;gap:",({theme:e})=>e.spacing(2),";"),W=d.default("span",{target:"ele0b3h2"})("color:",({theme:e,variant:r})=>r==="red"?e.font.color.danger:e.font.color.tertiary,";"),X=d.default(I)``.withComponent(x.motion.ul),S=({label:e,Icon:r,elements:t,renderElementsCount:n,emptyElementsText:c,depth:i,keyPath:s,highlighting:l})=>{const{shouldExpandNodeInitially:p}=u(),E=!h.Tr(e),[y,_]=j.useState(p({keyPath:s,depth:i})),T=o.jsx(X,{initial:{height:0,opacity:0,overflowY:"clip"},animate:{height:"auto",opacity:1,overflowY:"clip"},exit:{height:0,opacity:0,overflowY:"clip"},transition:{duration:N.ANIMATION.duration.normal},depth:i,children:t.length===0?o.jsx(v,{valueAsString:c}):t.map(({id:f,label:z
|
|
7
|
+
`),F=d.default("span",{target:"e1c1vyj80"})("align-items:center;background-color:",({theme:e,highlighting:r})=>r==="blue"?e.color.blue3:r==="red"?e.background.danger:e.background.transparent.lighter,";border-color:",({theme:e,highlighting:r})=>r==="blue"?e.color.blue5:r==="red"?e.border.color.danger:e.border.color.medium,";color:",({theme:e,highlighting:r})=>r==="blue"?e.color.blue:r==="red"?e.font.color.danger:e.font.color.primary,";border-radius:",({theme:e})=>e.border.radius.sm,";border-style:solid;border-width:1px;height:24px;box-sizing:border-box;column-gap:",({theme:e})=>e.spacing(2),";display:grid;grid-template-columns:auto 1fr;align-items:center;white-space:nowrap;padding-block:",({theme:e})=>e.spacing(1),";padding-inline:",({theme:e})=>e.spacing(2),";"),A=({label:e,Icon:r,highlighting:t})=>{const n=m.useTheme();return o.jsxs(F,{highlighting:t,children:[o.jsx(r,{size:n.icon.size.md,color:t==="blue"?n.color.blue:t==="red"?n.font.color.danger:n.font.color.tertiary}),o.jsx("span",{children:e})]})},K=d.default("span",{target:"e1uq32gh0"})("align-items:center;box-sizing:border-box;color:",({theme:e,highlighting:r})=>r==="blue"?e.color.blue8:r==="red"?e.color.red8:e.font.color.tertiary,";display:inline-flex;height:24px;"),v=({valueAsString:e,highlighting:r})=>{const{onNodeValueClick:t}=u(),n=()=>{t?.(e)};return o.jsx(K,{highlighting:r,onClick:n,children:e})},q=({label:e,value:r,depth:t,keyPath:n,highlighting:c})=>{const{emptyObjectLabel:i}=u();return o.jsx(S,{elements:Object.entries(r).map(([s,l])=>({id:s,label:s,value:l})),renderElementsCount:s=>`{${s}}`,label:e,Icon:a.IconCube,depth:t,emptyElementsText:i,keyPath:n,highlighting:c})},G=d.default("li",{target:"e18nb3wl0"})("align-items:center;display:flex;list-style-type:none;white-space:nowrap;"),Q=d.default(G,{target:"e16o44ib0"})("column-gap:",({theme:e})=>e.spacing(2),";"),g=e=>o.jsxs(Q,{children:[e.label&&o.jsx(A,{label:e.label,Icon:e.Icon,highlighting:e.highlighting}),o.jsx(v,{valueAsString:e.valueAsString,highlighting:e.highlighting})]}),L=e=>b.isArray(e),w=({label:e,value:r,depth:t,keyPath:n})=>{const{getNodeHighlighting:c,emptyStringLabel:i}=u(),s=c?.(n);return h.Tr(r)?b.isString(r)?o.jsx(g,{label:e,valueAsString:b.isNonEmptyString(r)?r:i,Icon:a.IconTypography,highlighting:s}):b.isNumber(r)?o.jsx(g,{label:e,valueAsString:String(r),Icon:a.IconNumber9,highlighting:s}):b.isBoolean(r)?o.jsx(g,{label:e,valueAsString:String(r),Icon:a.IconCheckbox,highlighting:s}):L(r)?o.jsx(O,{label:e,value:r,depth:t,keyPath:n,highlighting:s}):o.jsx(q,{label:e,value:r,depth:t,keyPath:n,highlighting:s}):o.jsx(g,{label:e,valueAsString:"null",Icon:a.IconCircleOff,highlighting:s})},J=d.default("li",{target:"ele0b3h0"})("display:grid;list-style-type:none;"),U=d.default("div",{target:"ele0b3h1"})("display:flex;align-items:center;gap:",({theme:e})=>e.spacing(2),";"),W=d.default("span",{target:"ele0b3h2"})("color:",({theme:e,variant:r})=>r==="red"?e.font.color.danger:e.font.color.tertiary,";"),X=d.default(I)``.withComponent(x.motion.ul),S=({label:e,Icon:r,elements:t,renderElementsCount:n,emptyElementsText:c,depth:i,keyPath:s,highlighting:l})=>{const{shouldExpandNodeInitially:p}=u(),E=!h.Tr(e),[y,_]=j.useState(p({keyPath:s,depth:i})),T=o.jsx(X,{initial:{height:0,opacity:0,overflowY:"clip"},animate:{height:"auto",opacity:1,overflowY:"clip"},exit:{height:0,opacity:0,overflowY:"clip"},transition:{duration:N.ANIMATION.duration.normal},depth:i,children:t.length===0?o.jsx(v,{valueAsString:c}):t.map(({id:f,label:$,value:z})=>{const B=b.isNonEmptyString(s)?`${s}.${f}`:String(f);return o.jsx(w,{label:$,value:z,depth:i+1,keyPath:B},f)})}),M=()=>{_(!y)};return E?o.jsx(J,{children:o.jsx(x.AnimatePresence,{initial:!1,children:T})}):o.jsxs(J,{children:[o.jsxs(U,{children:[o.jsx(Y,{isOpen:y,onClick:M,variant:l==="partial-blue"?"blue":l==="red"?l:void 0}),o.jsx(A,{label:e,Icon:r,highlighting:l==="red"?l:void 0}),n&&o.jsx(W,{variant:l==="red"?"red":void 0,children:n(t.length)})]}),o.jsx(x.AnimatePresence,{initial:!1,children:y&&T})]})},O=({label:e,value:r,depth:t,keyPath:n,highlighting:c})=>{const{emptyArrayLabel:i}=u();return o.jsx(S,{elements:[...r.entries()].map(([s,l])=>({id:s,label:String(s),value:l})),renderElementsCount:s=>`[${s}]`,label:e,Icon:a.IconBrackets,depth:t,emptyElementsText:i,keyPath:n,highlighting:c})},k=({value:e,children:r})=>o.jsx(C.Provider,{value:e,children:r}),Z=({value:e,getNodeHighlighting:r,shouldExpandNodeInitially:t,emptyArrayLabel:n,emptyObjectLabel:c,emptyStringLabel:i,arrowButtonCollapsedLabel:s,arrowButtonExpandedLabel:l,onNodeValueClick:p})=>o.jsx(k,{value:{getNodeHighlighting:r,shouldExpandNodeInitially:t,emptyArrayLabel:n,emptyObjectLabel:c,emptyStringLabel:i,arrowButtonCollapsedLabel:s,arrowButtonExpandedLabel:l,onNodeValueClick:p},children:o.jsx(I,{depth:0,children:o.jsx(w,{value:e,depth:0,keyPath:""})})}),ee=({depth:e})=>e<=1;exports.JsonArrayNode=O;exports.JsonNestedNode=S;exports.JsonNode=w;exports.JsonObjectNode=q;exports.JsonTree=Z;exports.JsonTreeContext=C;exports.JsonTreeContextProvider=k;exports.JsonValueNode=g;exports.isArray=L;exports.isTwoFirstDepths=ee;exports.useJsonTreeContextOrThrow=u;
|
|
@@ -4,7 +4,7 @@ import { isArray as B, isString as V, isNonEmptyString as w, isNumber as D, isBo
|
|
|
4
4
|
import { useTheme as S, css as Y } from "@emotion/react";
|
|
5
5
|
import { V as H } from "./VisibilityHidden-D9rwE91j.js";
|
|
6
6
|
import { createContext as M, useContext as q, useState as F } from "react";
|
|
7
|
-
import { T as y } from "./isValidCountryCode-
|
|
7
|
+
import { T as y } from "./isValidCountryCode-B7MxBtRC-DyiZn2sl.js";
|
|
8
8
|
import "react-router-dom";
|
|
9
9
|
import { A as I } from "./Animation-W4Sjfu-g.js";
|
|
10
10
|
import { motion as f, AnimatePresence as h } from "framer-motion";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./emotion-react-jsx-runtime.browser.esm-pt_kQSCG.cjs"),c=require("@emotion/react"),S=require("@emotion/styled"),i=require("framer-motion"),h=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./emotion-react-jsx-runtime.browser.esm-pt_kQSCG.cjs"),c=require("@emotion/react"),S=require("@emotion/styled"),i=require("framer-motion"),h=require("react"),C=require("./isValidCountryCode-B7MxBtRC-BroSlnrA.cjs");require("@sniptt/guards");require("react-router-dom");const T=e=>e&&e.__esModule?e:{default:e},t=T(S),_=(e,o,n)=>({transition:{opacity:{duration:o,ease:"easeInOut"},[e]:{duration:n,ease:"easeInOut"}}}),f=(e,o,n)=>({opacity:0,[e]:0,..._(e,o,n)}),x=(e,o,n,r,d)=>({initial:{...f(o,n,r)},animate:{opacity:1,[o]:e?d==="fit-content"?"fit-content":o==="width"?"100%":d:0,..._(o,n,r)},exit:{...f(o,n,r)}}),R=t.default(i.motion.div,{target:"e1ht0b490"})(({containAnimation:e})=>e&&`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
overflow: hidden;
|
|
5
5
|
width: 100%;
|
|
6
|
-
`),M=({children:e,isExpanded:o,dimension:n="height",animationDurations:r="default",mode:d="scroll-height",containAnimation:m=!0,initial:g=!0})=>{const l=c.useTheme(),a=h.useRef(null),[p,u]=h.useState(0),b=r==="default"?{opacity:l.animation.duration.normal,size:l.animation.duration.normal}:r,A=()=>{d==="scroll-height"&&n==="height"&&T.Tr(a.current)&&u(a.current.scrollHeight)},E=x(o,n,b.opacity,b.size,d==="fit-content"?"fit-content":p);return s.jsx(i.AnimatePresence,{initial:g,children:o&&s.jsx(R,{containAnimation:m,ref:a,initial:"initial",animate:"animate",exit:"exit",variants:E,onAnimationStart:A,children:e})})},y={noFile:"/images/placeholders/background/no_file_bg.png",noNote:"/images/placeholders/background/no_note_bg.png",noRecord:"/images/placeholders/background/no_record_bg.png",noMatchRecord:"/images/placeholders/background/no_match_record_bg.png",noTask:"/images/placeholders/background/no_task_bg.png",errorIndex:"/images/placeholders/background/error_index_bg.png",emptyTimeline:"/images/placeholders/background/empty_timeline_bg.png",loadingMessages:"/images/placeholders/background/loading_messages_bg.png",loadingAccounts:"/images/placeholders/background/loading_accounts_bg.png",emptyFunctions:"/images/placeholders/background/empty_functions_bg.png",emptyInbox:"/images/placeholders/background/empty_inbox_bg.png",error404:"/images/placeholders/background/404_bg.png",error500:"/images/placeholders/background/500_bg.png",noDeletedRecord:"/images/placeholders/background/no_deleted_record_bg.png",noWidgets:"/images/placeholders/background/no_widgets_bg.png"},k={noFile:"/images/placeholders/dark-background/no_file_bg.png",noNote:"/images/placeholders/dark-background/no_note_bg.png",noRecord:"/images/placeholders/dark-background/no_record_bg.png",noMatchRecord:"/images/placeholders/dark-background/no_match_record_bg.png",noTask:"/images/placeholders/dark-background/no_task_bg.png",errorIndex:"/images/placeholders/dark-background/error_index_bg.png",emptyTimeline:"/images/placeholders/dark-background/empty_timeline_bg.png",emptyInbox:"/images/placeholders/dark-background/empty_inbox_bg.png",error404:"/images/placeholders/dark-background/404_bg.png",error500:"/images/placeholders/dark-background/500_bg.png",loadingMessages:"/images/placeholders/background/loading_messages_bg.png",loadingAccounts:"/images/placeholders/background/loading_accounts_bg.png",emptyFunctions:"/images/placeholders/dark-background/empty_functions_bg.png",noDeletedRecord:"/images/placeholders/dark-background/no_deleted_record_bg.png",noWidgets:"/images/placeholders/dark-background/no_widgets_bg.png"},v={noFile:"/images/placeholders/dark-moving-image/no_file.png",noNote:"/images/placeholders/dark-moving-image/no_note.png",noRecord:"/images/placeholders/dark-moving-image/no_record.png",noMatchRecord:"/images/placeholders/dark-moving-image/no_match_record.png",noTask:"/images/placeholders/dark-moving-image/no_task.png",errorIndex:"/images/placeholders/dark-moving-image/error_index.png",emptyTimeline:"/images/placeholders/dark-moving-image/empty_timeline.png",emptyInbox:"/images/placeholders/dark-moving-image/empty_inbox.png",error404:"/images/placeholders/dark-moving-image/404.png",error500:"/images/placeholders/dark-moving-image/500.png",loadingMessages:"/images/placeholders/moving-image/loading_messages.png",loadingAccounts:"/images/placeholders/moving-image/loading_accounts.png",emptyFunctions:"/images/placeholders/dark-moving-image/empty_functions.png",noDeletedRecord:"/images/placeholders/dark-moving-image/no_deleted_record.png",noWidgets:"/images/placeholders/dark-moving-image/no_widgets.png"},w={noFile:"/images/placeholders/moving-image/no_file.png",noNote:"/images/placeholders/moving-image/no_note.png",noRecord:"/images/placeholders/moving-image/no_record.png",noMatchRecord:"/images/placeholders/moving-image/no_match_record.png",noTask:"/images/placeholders/moving-image/no_task.png",errorIndex:"/images/placeholders/moving-image/error_index.png",emptyTimeline:"/images/placeholders/moving-image/empty_timeline.png",loadingMessages:"/images/placeholders/moving-image/loading_messages.png",loadingAccounts:"/images/placeholders/moving-image/loading_accounts.png",emptyFunctions:"/images/placeholders/moving-image/empty_functions.png",emptyInbox:"/images/placeholders/moving-image/empty_inbox.png",error404:"/images/placeholders/moving-image/404.png",error500:"/images/placeholders/moving-image/500.png",noDeletedRecord:"/images/placeholders/moving-image/no_deleted_record.png",noWidgets:"/images/placeholders/moving-image/no_widgets.png"},I=t.default("div",{target:"e1xr360p0"})("display:flex;align-items:center;justify-content:center;position:relative;min-height:100px;"),z=t.default("img",{target:"e1xr360p1"})("max-height:",({type:e})=>e==="error500"||e==="error404"?"245px":"160px",";max-width:",({type:e})=>e==="error500"||e==="error404"?"245px":"160px",";"),P=t.default(i.motion.img,{target:"e1xr360p2"})("position:absolute;max-width:",({type:e})=>e==="error500"||e==="error404"?"185px":"130px",";max-height:",({type:e})=>e==="error500"||e==="error404"?"185px":"130px",";z-index:2;"),O=({type:e})=>{const o=c.useTheme(),n=i.useMotionValue(window.innerWidth/2),r=i.useMotionValue(window.innerHeight/2),d=i.useTransform(n,[0,window.innerWidth],[-2,2]),m=i.useTransform(r,[0,window.innerHeight],[-2,2]);return h.useEffect(()=>{const g=a=>{const p="touches"in a?a.touches[0].clientX:a.clientX,u="touches"in a?a.touches[0].clientY:a.clientY;n.set(p),r.set(u)},l=()=>{i.animate(n,window.innerWidth/2,{type:"spring",stiffness:100,damping:10}),i.animate(r,window.innerHeight/2,{type:"spring",stiffness:100,damping:10})};return window.addEventListener("mousemove",g),window.addEventListener("touchmove",g),window.document.addEventListener("mouseleave",l),()=>{window.removeEventListener("mousemove",g),window.removeEventListener("touchmove",g),window.document.removeEventListener("mouseleave",l)}},[n,r]),s.jsxs(I,{children:[s.jsx(z,{src:o.name==="dark"?k[e]:y[e],alt:"",type:e}),s.jsx(P,{src:o.name==="dark"?v[e]:w[e],alt:"",style:{translateX:d,translateY:m},transition:{type:"spring",stiffness:100,damping:10},type:e})]})},N=t.default(i.motion.div,{target:"elfezeu0"})("align-items:center;width:100%;height:100%;display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(6),";justify-content:center;text-align:center;"),j={initial:{opacity:0},animate:{opacity:1},transition:{duration:.15}},D=t.default("div",{target:"elfezeu1"})("align-items:center;display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(2),";justify-content:center;text-align:center;width:100%;"),G=t.default("div",{target:"elfezeu2"})("color:",({theme:e})=>e.font.color.primary,";font-size:",({theme:e})=>e.font.size.lg,";font-weight:",({theme:e})=>e.font.weight.semiBold,";"),L=t.default("div",{target:"elfezeu3"})("color:",({theme:e})=>e.font.color.tertiary,";font-size:",({theme:e})=>e.font.size.sm,";font-weight:",({theme:e})=>e.font.weight.regular,";line-height:",({theme:e})=>e.text.lineHeight.lg,";max-height:2.8em;overflow:hidden;width:50%;"),H=t.default("div",{target:"ef16b2x0"})("align-items:center;width:100%;height:100%;display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(8),";justify-content:center;text-align:center;"),V=t.default("div",{target:"ef16b2x1"})("align-items:center;display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(4),";justify-content:center;text-align:center;width:100%;"),q=t.default("div",{target:"ef16b2x2"})("color:",({theme:e})=>e.font.color.primary,";font-size:",({theme:e})=>e.font.size.xl,";font-weight:",({theme:e})=>e.font.weight.semiBold,";line-height:",({theme:e})=>e.text.lineHeight.lg,";"),F=t.default("div",{target:"ef16b2x3"})("color:",({theme:e})=>e.font.color.tertiary,";font-size:",({theme:e})=>e.font.size.xs,";font-weight:",({theme:e})=>e.font.weight.regular,";line-height:",({theme:e})=>e.text.lineHeight.md,";max-height:2.4em;overflow:hidden;"),K=t.default("div",{target:"e9ttznj0"})("border:1px solid ",({theme:e})=>e.border.color.medium,";border-radius:",({theme:e,rounded:o})=>o?e.border.radius.md:e.border.radius.sm,";color:",({theme:e})=>e.font.color.secondary,";overflow:hidden;width:",({fullWidth:e})=>e?"100%":"auto",";"),B=t.default(i.motion.div,{target:"evrxf770"})("background-color:",({theme:e})=>e.background.secondary,";padding:",({theme:e})=>e.spacing(4),";",({divider:e,theme:o})=>e?c.css("border-bottom:1px solid ",o.border.color.medium,";"):""),W=t.default("div",{target:"e1xj867z0"})("background-color:",({theme:e})=>e.background.primary,";border-top:",({divider:e=!0,theme:o})=>e?c.css`1px solid ${o.border.color.medium}`:0,";font-size:",({theme:e})=>e.font.size.sm,";padding:",({theme:e})=>e.spacing(2,4),";"),Y=t.default("div",{target:"e19wikz40"})("background-color:",({theme:e})=>e.background.primary,";border-bottom:1px solid ",({theme:e})=>e.border.color.medium,";font-size:",({theme:e})=>e.font.size.sm,";font-weight:",({theme:e})=>e.font.weight.medium,";padding:",({theme:e})=>e.spacing(2,4),";");var U=function(e){return e.Left="left",e.Center="center",e}({}),X=function(e){return e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e}({});const J=t.default("div",{target:"e1t6q5rz0"})("color:",({theme:e,fontColor:o})=>e.font.color[o],";text-align:",({alignment:e})=>e,";width:",({fullWidth:e})=>e?"100%":"auto",";"),$=({children:e,className:o,alignment:n="left",fullWidth:r=!0,fontColor:d="primary"})=>s.jsx(J,{className:o,alignment:n,fullWidth:r,fontColor:d,children:e});exports.AnimatedExpandableContainer=M;exports.AnimatedPlaceholder=O;exports.AnimatedPlaceholderEmptyContainer=N;exports.AnimatedPlaceholderEmptySubTitle=L;exports.AnimatedPlaceholderEmptyTextContainer=D;exports.AnimatedPlaceholderEmptyTitle=G;exports.AnimatedPlaceholderErrorContainer=H;exports.AnimatedPlaceholderErrorSubTitle=F;exports.AnimatedPlaceholderErrorTextContainer=V;exports.AnimatedPlaceholderErrorTitle=q;exports.BACKGROUND=y;exports.Card=K;exports.CardContent=B;exports.CardFooter=W;exports.CardHeader=Y;exports.DARK_BACKGROUND=k;exports.DARK_MOVING_IMAGE=v;exports.EMPTY_PLACEHOLDER_TRANSITION_PROPS=j;exports.MOVING_IMAGE=w;exports.Section=$;exports.SectionAlignment=U;exports.SectionFontColor=X;exports.getCommonStyles=f;exports.getExpandableAnimationConfig=x;exports.getTransitionValues=_;
|
|
6
|
+
`),M=({children:e,isExpanded:o,dimension:n="height",animationDurations:r="default",mode:d="scroll-height",containAnimation:m=!0,initial:g=!0})=>{const l=c.useTheme(),a=h.useRef(null),[p,u]=h.useState(0),b=r==="default"?{opacity:l.animation.duration.normal,size:l.animation.duration.normal}:r,A=()=>{d==="scroll-height"&&n==="height"&&C.Tr(a.current)&&u(a.current.scrollHeight)},E=x(o,n,b.opacity,b.size,d==="fit-content"?"fit-content":p);return s.jsx(i.AnimatePresence,{initial:g,children:o&&s.jsx(R,{containAnimation:m,ref:a,initial:"initial",animate:"animate",exit:"exit",variants:E,onAnimationStart:A,children:e})})},y={noFile:"/images/placeholders/background/no_file_bg.png",noNote:"/images/placeholders/background/no_note_bg.png",noRecord:"/images/placeholders/background/no_record_bg.png",noMatchRecord:"/images/placeholders/background/no_match_record_bg.png",noTask:"/images/placeholders/background/no_task_bg.png",errorIndex:"/images/placeholders/background/error_index_bg.png",emptyTimeline:"/images/placeholders/background/empty_timeline_bg.png",loadingMessages:"/images/placeholders/background/loading_messages_bg.png",loadingAccounts:"/images/placeholders/background/loading_accounts_bg.png",emptyFunctions:"/images/placeholders/background/empty_functions_bg.png",emptyInbox:"/images/placeholders/background/empty_inbox_bg.png",error404:"/images/placeholders/background/404_bg.png",error500:"/images/placeholders/background/500_bg.png",noDeletedRecord:"/images/placeholders/background/no_deleted_record_bg.png",noWidgets:"/images/placeholders/background/no_widgets_bg.png"},k={noFile:"/images/placeholders/dark-background/no_file_bg.png",noNote:"/images/placeholders/dark-background/no_note_bg.png",noRecord:"/images/placeholders/dark-background/no_record_bg.png",noMatchRecord:"/images/placeholders/dark-background/no_match_record_bg.png",noTask:"/images/placeholders/dark-background/no_task_bg.png",errorIndex:"/images/placeholders/dark-background/error_index_bg.png",emptyTimeline:"/images/placeholders/dark-background/empty_timeline_bg.png",emptyInbox:"/images/placeholders/dark-background/empty_inbox_bg.png",error404:"/images/placeholders/dark-background/404_bg.png",error500:"/images/placeholders/dark-background/500_bg.png",loadingMessages:"/images/placeholders/background/loading_messages_bg.png",loadingAccounts:"/images/placeholders/background/loading_accounts_bg.png",emptyFunctions:"/images/placeholders/dark-background/empty_functions_bg.png",noDeletedRecord:"/images/placeholders/dark-background/no_deleted_record_bg.png",noWidgets:"/images/placeholders/dark-background/no_widgets_bg.png"},v={noFile:"/images/placeholders/dark-moving-image/no_file.png",noNote:"/images/placeholders/dark-moving-image/no_note.png",noRecord:"/images/placeholders/dark-moving-image/no_record.png",noMatchRecord:"/images/placeholders/dark-moving-image/no_match_record.png",noTask:"/images/placeholders/dark-moving-image/no_task.png",errorIndex:"/images/placeholders/dark-moving-image/error_index.png",emptyTimeline:"/images/placeholders/dark-moving-image/empty_timeline.png",emptyInbox:"/images/placeholders/dark-moving-image/empty_inbox.png",error404:"/images/placeholders/dark-moving-image/404.png",error500:"/images/placeholders/dark-moving-image/500.png",loadingMessages:"/images/placeholders/moving-image/loading_messages.png",loadingAccounts:"/images/placeholders/moving-image/loading_accounts.png",emptyFunctions:"/images/placeholders/dark-moving-image/empty_functions.png",noDeletedRecord:"/images/placeholders/dark-moving-image/no_deleted_record.png",noWidgets:"/images/placeholders/dark-moving-image/no_widgets.png"},w={noFile:"/images/placeholders/moving-image/no_file.png",noNote:"/images/placeholders/moving-image/no_note.png",noRecord:"/images/placeholders/moving-image/no_record.png",noMatchRecord:"/images/placeholders/moving-image/no_match_record.png",noTask:"/images/placeholders/moving-image/no_task.png",errorIndex:"/images/placeholders/moving-image/error_index.png",emptyTimeline:"/images/placeholders/moving-image/empty_timeline.png",loadingMessages:"/images/placeholders/moving-image/loading_messages.png",loadingAccounts:"/images/placeholders/moving-image/loading_accounts.png",emptyFunctions:"/images/placeholders/moving-image/empty_functions.png",emptyInbox:"/images/placeholders/moving-image/empty_inbox.png",error404:"/images/placeholders/moving-image/404.png",error500:"/images/placeholders/moving-image/500.png",noDeletedRecord:"/images/placeholders/moving-image/no_deleted_record.png",noWidgets:"/images/placeholders/moving-image/no_widgets.png"},I=t.default("div",{target:"e1xr360p0"})("display:flex;align-items:center;justify-content:center;position:relative;min-height:100px;"),z=t.default("img",{target:"e1xr360p1"})("max-height:",({type:e})=>e==="error500"||e==="error404"?"245px":"160px",";max-width:",({type:e})=>e==="error500"||e==="error404"?"245px":"160px",";"),P=t.default(i.motion.img,{target:"e1xr360p2"})("position:absolute;max-width:",({type:e})=>e==="error500"||e==="error404"?"185px":"130px",";max-height:",({type:e})=>e==="error500"||e==="error404"?"185px":"130px",";z-index:2;"),O=({type:e})=>{const o=c.useTheme(),n=i.useMotionValue(window.innerWidth/2),r=i.useMotionValue(window.innerHeight/2),d=i.useTransform(n,[0,window.innerWidth],[-2,2]),m=i.useTransform(r,[0,window.innerHeight],[-2,2]);return h.useEffect(()=>{const g=a=>{const p="touches"in a?a.touches[0].clientX:a.clientX,u="touches"in a?a.touches[0].clientY:a.clientY;n.set(p),r.set(u)},l=()=>{i.animate(n,window.innerWidth/2,{type:"spring",stiffness:100,damping:10}),i.animate(r,window.innerHeight/2,{type:"spring",stiffness:100,damping:10})};return window.addEventListener("mousemove",g),window.addEventListener("touchmove",g),window.document.addEventListener("mouseleave",l),()=>{window.removeEventListener("mousemove",g),window.removeEventListener("touchmove",g),window.document.removeEventListener("mouseleave",l)}},[n,r]),s.jsxs(I,{children:[s.jsx(z,{src:o.name==="dark"?k[e]:y[e],alt:"",type:e}),s.jsx(P,{src:o.name==="dark"?v[e]:w[e],alt:"",style:{translateX:d,translateY:m},transition:{type:"spring",stiffness:100,damping:10},type:e})]})},N=t.default(i.motion.div,{target:"elfezeu0"})("align-items:center;width:100%;height:100%;display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(6),";justify-content:center;text-align:center;"),j={initial:{opacity:0},animate:{opacity:1},transition:{duration:.15}},G=t.default("div",{target:"elfezeu1"})("align-items:center;display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(2),";justify-content:center;text-align:center;width:100%;"),L=t.default("div",{target:"elfezeu2"})("color:",({theme:e})=>e.font.color.primary,";font-size:",({theme:e})=>e.font.size.lg,";font-weight:",({theme:e})=>e.font.weight.semiBold,";"),D=t.default("div",{target:"elfezeu3"})("color:",({theme:e})=>e.font.color.tertiary,";font-size:",({theme:e})=>e.font.size.sm,";font-weight:",({theme:e})=>e.font.weight.regular,";line-height:",({theme:e})=>e.text.lineHeight.lg,";max-height:2.8em;overflow:hidden;width:50%;"),H=t.default("div",{target:"ef16b2x0"})("align-items:center;width:100%;height:100%;display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(8),";justify-content:center;text-align:center;"),V=t.default("div",{target:"ef16b2x1"})("align-items:center;display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(4),";justify-content:center;text-align:center;width:100%;"),q=t.default("div",{target:"ef16b2x2"})("color:",({theme:e})=>e.font.color.primary,";font-size:",({theme:e})=>e.font.size.xl,";font-weight:",({theme:e})=>e.font.weight.semiBold,";line-height:",({theme:e})=>e.text.lineHeight.lg,";"),B=t.default("div",{target:"ef16b2x3"})("color:",({theme:e})=>e.font.color.tertiary,";font-size:",({theme:e})=>e.font.size.xs,";font-weight:",({theme:e})=>e.font.weight.regular,";line-height:",({theme:e})=>e.text.lineHeight.md,";max-height:2.4em;overflow:hidden;"),F=t.default("div",{target:"e9ttznj0"})("border:1px solid ",({theme:e})=>e.border.color.medium,";border-radius:",({theme:e,rounded:o})=>o?e.border.radius.md:e.border.radius.sm,";color:",({theme:e})=>e.font.color.secondary,";overflow:hidden;width:",({fullWidth:e})=>e?"100%":"auto",";"),K=t.default(i.motion.div,{target:"evrxf770"})("background-color:",({theme:e})=>e.background.secondary,";padding:",({theme:e})=>e.spacing(4),";",({divider:e,theme:o})=>e?c.css("border-bottom:1px solid ",o.border.color.medium,";"):""),W=t.default("div",{target:"e1xj867z0"})("background-color:",({theme:e})=>e.background.primary,";border-top:",({divider:e=!0,theme:o})=>e?c.css`1px solid ${o.border.color.medium}`:0,";font-size:",({theme:e})=>e.font.size.sm,";padding:",({theme:e})=>e.spacing(2,4),";"),Y=t.default("div",{target:"e19wikz40"})("background-color:",({theme:e})=>e.background.primary,";border-bottom:1px solid ",({theme:e})=>e.border.color.medium,";font-size:",({theme:e})=>e.font.size.sm,";font-weight:",({theme:e})=>e.font.weight.medium,";padding:",({theme:e})=>e.spacing(2,4),";");var U=function(e){return e.Left="left",e.Center="center",e}({}),X=function(e){return e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e}({});const J=t.default("div",{target:"e1t6q5rz0"})("color:",({theme:e,fontColor:o})=>e.font.color[o],";text-align:",({alignment:e})=>e,";width:",({fullWidth:e})=>e?"100%":"auto",";"),$=({children:e,className:o,alignment:n="left",fullWidth:r=!0,fontColor:d="primary"})=>s.jsx(J,{className:o,alignment:n,fullWidth:r,fontColor:d,children:e});exports.AnimatedExpandableContainer=M;exports.AnimatedPlaceholder=O;exports.AnimatedPlaceholderEmptyContainer=N;exports.AnimatedPlaceholderEmptySubTitle=D;exports.AnimatedPlaceholderEmptyTextContainer=G;exports.AnimatedPlaceholderEmptyTitle=L;exports.AnimatedPlaceholderErrorContainer=H;exports.AnimatedPlaceholderErrorSubTitle=B;exports.AnimatedPlaceholderErrorTextContainer=V;exports.AnimatedPlaceholderErrorTitle=q;exports.BACKGROUND=y;exports.Card=F;exports.CardContent=K;exports.CardFooter=W;exports.CardHeader=Y;exports.DARK_BACKGROUND=k;exports.DARK_MOVING_IMAGE=v;exports.EMPTY_PLACEHOLDER_TRANSITION_PROPS=j;exports.MOVING_IMAGE=w;exports.Section=$;exports.SectionAlignment=U;exports.SectionFontColor=X;exports.getCommonStyles=f;exports.getExpandableAnimationConfig=x;exports.getTransitionValues=_;
|
|
@@ -3,7 +3,7 @@ import { useTheme as x, css as y } from "@emotion/react";
|
|
|
3
3
|
import t from "@emotion/styled";
|
|
4
4
|
import { AnimatePresence as T, motion as l, useMotionValue as u, useTransform as b, animate as _ } from "framer-motion";
|
|
5
5
|
import { useRef as S, useState as A, useEffect as C } from "react";
|
|
6
|
-
import { T as z } from "./isValidCountryCode-
|
|
6
|
+
import { T as z } from "./isValidCountryCode-B7MxBtRC-DyiZn2sl.js";
|
|
7
7
|
import "@sniptt/guards";
|
|
8
8
|
import "react-router-dom";
|
|
9
9
|
const k = (e, o, n) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./emotion-react-jsx-runtime.browser.esm-pt_kQSCG.cjs"),g=require("@emotion/react"),ne=require("@emotion/styled"),m=require("./Toggle-8vjP6D_0.cjs"),R=require("react"),b=require("@tabler/icons-react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./emotion-react-jsx-runtime.browser.esm-pt_kQSCG.cjs"),g=require("@emotion/react"),ne=require("@emotion/styled"),m=require("./Toggle-8vjP6D_0.cjs"),R=require("react"),b=require("@tabler/icons-react"),P=require("@linaria/react"),U=require("react-router-dom"),j=require("@sniptt/guards"),re=require("./ThemeContextProvider-DZWArlAl.cjs"),oe=require("./getDisplayValueByUrlType-DwG-FZ1p.cjs"),p=require("./OverflowingTextWithTooltip-C4x0j2AD.cjs"),D=require("./isValidCountryCode-B7MxBtRC-BroSlnrA.cjs"),ie=require("framer-motion"),W=require("./HoverBackground-D630rSrX.cjs"),se=require("./Avatar-CRldFv_0.cjs"),B=require("./Tag-C6YGTe8G.cjs"),le=require("./ColorSample-D9DM-_ee.cjs"),F=e=>e&&e.__esModule?e:{default:e},l=F(ne),ae=F(R),ce=l.default("div",{target:"eoxui2t0"})("align-items:center;display:flex;gap:",({theme:e})=>e.spacing(2),";position:relative;height:",({theme:e})=>e.spacing(5),";padding:",({theme:e})=>e.spacing(1),";"),de=l.default("div",{target:"eoxui2t1"})("color:",({theme:e})=>e.font.color.secondary,";font-size:",({theme:e})=>e.font.size.sm,";font-weight:",({theme:e})=>e.font.weight.medium,";"),ue=l.default("div",{target:"eoxui2t2"})("align-items:center;display:flex;left:",({theme:e})=>e.spacing(-5),";position:absolute;"),ge=l.default("label",{target:"eoxui2t3"})("align-items:center;cursor:pointer;display:flex;justify-content:space-between;width:100%;"),he=({isAdvancedModeEnabled:e,setIsAdvancedModeEnabled:n,label:r="Advanced:"})=>{const o=a=>{n(a)},i=R.useId(),s=g.useTheme();return t.jsxs(ce,{children:[t.jsx(ue,{children:t.jsx(b.IconPoint,{size:12,color:s.color.yellow,fill:s.color.yellow})}),t.jsxs(ge,{htmlFor:i,children:[t.jsx(de,{children:r}),t.jsx(m.Toggle,{id:i,onChange:o,color:s.color.yellow,value:e})]})]})},fe=l.default("a",{target:"e12cg47g0"})("align-items:center;color:",({theme:e})=>e.font.color.light,";display:flex;font-size:",({theme:e})=>e.font.size.sm,";font-weight:",({theme:e})=>e.font.weight.medium,";gap:",({theme:e})=>e.spacing(1),";padding:0 ",({theme:e})=>e.spacing(1),";text-decoration:none;:hover{color:",({theme:e})=>e.font.color.tertiary,";cursor:pointer;}"),H=e=>t.jsx(fe,{className:e.className,href:e.href,onClick:e.onClick,target:e.target,rel:e.rel,children:e.children}),xe=()=>({theme:e})=>e.border.color.strong,pe=()=>({maxWidth:e})=>e??"100%",me=()=>({theme:e})=>e.font.color.primary,ye=g.withTheme(P.styled("a")({name:"StyledClickableLink",class:"s1dd08x",propsAsIs:!1,vars:{"s1dd08x-0":[xe()],"s1dd08x-1":[pe()],"s1dd08x-2":[me()]}})),je=({href:e,children:n,onClick:r,maxWidth:o})=>t.jsx(ye,{maxWidth:o,target:"_blank",onClick:r,href:e,children:n}),V="https://github.com/twentyhq/twenty",be=({version:e})=>{const n=g.useTheme();return t.jsxs(H,{href:V,target:"_blank",rel:"noreferrer",children:[t.jsx(b.IconBrandGithub,{size:n.icon.size.md}),e]})},ke=l.default("div",{target:"e13qyhgc0"})("display:flex;overflow:hidden;white-space:nowrap;a{color:inherit;overflow:hidden;text-overflow:ellipsis;}"),ve=({className:e,href:n,children:r,onClick:o})=>t.jsx("div",{children:t.jsx(ke,{className:e,children:t.jsx(U.Link,{target:"_blank",onClick:o,to:n,children:r})})}),we=()=>({background:e})=>e,Ie=()=>({border:e})=>e,Se=()=>({color:e})=>e,Ce=()=>({backgroundHover:e})=>e,Me=()=>({backgroundActive:e})=>e,ze=P.styled("a")({name:"StyledLink",class:"srl6h1l",propsAsIs:!1,vars:{"srl6h1l-0":[we()],"srl6h1l-1":[Ie()],"srl6h1l-2":[Se()],"srl6h1l-3":[Ce()],"srl6h1l-4":[Me()]}}),E=({label:e,href:n,onClick:r,className:o})=>{const{theme:i}=R.useContext(re.ThemeContext),s=i.background.transparent.lighter,a=i.background.transparent.light,d=i.background.transparent.medium,c=i.border.color.strong,u=i.font.color.primary;if(!j.isNonEmptyString(e))return t.jsx(t.Fragment,{});const h=f=>{f.stopPropagation(),r?.(f)};return t.jsx(ze,{href:n,target:"_blank",rel:"noreferrer",onClick:h,color:u,background:s,backgroundHover:a,backgroundActive:d,border:c,className:o,children:e})};var Te=function(e){return e.Url="url",e.LinkedIn="linkedin",e.Twitter="twitter",e.Facebook="facebook",e}({});const Le=({label:e,href:n,onClick:r,type:o})=>{const i=oe.getDisplayValueByUrlType({type:o,href:n})??e;return t.jsx(E,{href:n,onClick:r,label:i})},_e=l.default(({fullWidth:e,...n})=>t.jsx(U.Link,{...n}),{target:"eqso5ta0"})("text-decoration:none;width:",({fullWidth:e})=>e?"100%":"auto",";"),$e=({children:e,to:n,replace:r=!1,onClick:o,fullWidth:i=!1})=>t.jsx(_e,{to:n,replace:r,onClick:o,fullWidth:i,children:e}),Ae="https://cal.com/team/twenty/talk-to-us",Ne="https://twenty.com/pricing",Re=l.default("button",{target:"e1goopyw0"})("box-sizing:border-box;background:none;font:inherit;outline:inherit;color:inherit;align-items:center;border:1px solid ",({theme:e})=>e.border.color.medium,";border-radius:",({theme:e})=>e.border.radius.sm,";cursor:pointer;display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(1),";justify-content:center;min-height:",({theme:e})=>e.spacing(8),";padding:",({theme:e})=>`${e.spacing(1.5)} ${e.spacing(1)}`,";transition:all ",({theme:e})=>e.animation.duration.instant,"s ease;user-select:none;width:100%;",({theme:e,selected:n,disabled:r})=>r?g.css`
|
|
2
2
|
background: ${e.background.secondary};
|
|
3
3
|
border-color: ${e.border.color.medium};
|
|
4
4
|
color: ${e.font.color.extraLight};
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
&:hover {
|
|
20
20
|
background: ${e.background.transparent.light};
|
|
21
21
|
}
|
|
22
|
-
`),
|
|
22
|
+
`),Be=l.default("div",{target:"e1goopyw1"})("align-items:center;display:flex;flex-shrink:0;height:",({theme:e})=>e.icon.size.md,"px;justify-content:center;width:",({theme:e})=>e.icon.size.md,"px;"),qe=l.default("div",{target:"e1goopyw2"})("font-family:",({theme:e})=>e.font.family,";font-size:",({theme:e})=>e.font.size.xs,";font-weight:",({theme:e})=>e.font.weight.semiBold,";max-width:100%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;",({theme:e,selected:n,disabled:r})=>r?g.css`
|
|
23
23
|
color: ${e.font.color.extraLight};
|
|
24
24
|
`:n?g.css`
|
|
25
25
|
color: ${e.color.blue};
|
|
26
26
|
`:g.css`
|
|
27
27
|
color: ${e.font.color.tertiary};
|
|
28
|
-
`),Oe=({id:e,icon:n,label:r,selected:o=!1,disabled:i=!1,showLabel:s=!0,onClick:a,className:d,testId:c,tooltipContent:u,tooltipDelay:h=p.TooltipDelay.noDelay,tooltipOffset:f=5})=>{const x=g.useTheme();return t.jsxs(t.Fragment,{children:[t.jsxs(Re,{id:e,selected:o,disabled:i,onClick:a,className:d,"data-testid":c,"aria-pressed":o,"aria-disabled":i,"aria-label":r,children:[t.jsx(
|
|
28
|
+
`),Oe=({id:e,icon:n,label:r,selected:o=!1,disabled:i=!1,showLabel:s=!0,onClick:a,className:d,testId:c,tooltipContent:u,tooltipDelay:h=p.TooltipDelay.noDelay,tooltipOffset:f=5})=>{const x=g.useTheme();return t.jsxs(t.Fragment,{children:[t.jsxs(Re,{id:e,selected:o,disabled:i,onClick:a,className:d,"data-testid":c,"aria-pressed":o,"aria-disabled":i,"aria-label":r,children:[t.jsx(Be,{children:t.jsx(n,{size:x.icon.size.md,stroke:x.icon.stroke.sm})}),D.Tr(r)&&s&&t.jsx(qe,{selected:o,disabled:i,children:r})]}),j.isNonEmptyString(u)&&t.jsx(p.AppTooltip,{anchorSelect:`#${e}`,offset:f,content:u,place:p.TooltipPosition.Bottom,positionStrategy:"fixed",delay:h,noArrow:!0})]})},Ge=l.default("div",{target:"e1ge2mj0"})("align-items:center;display:flex;flex-direction:row;gap:",({theme:e})=>e.spacing(1),";justify-content:center;"),Pe=l.default("div",{target:"e1ge2mj1"})("color:",({theme:e})=>e.font.color.light,";vertical-align:middle;white-space:nowrap;"),Ue=l.default("div",{target:"e1ge2mj2"})("align-items:center;background-color:",({theme:e})=>e.background.secondary,";border:1px solid ",({theme:e})=>e.border.color.strong,";border-radius:",({theme:e})=>e.border.radius.sm,";box-shadow:",({theme:e})=>e.boxShadow.underline,";display:flex;flex-direction:column;height:18px;justify-content:center;text-align:center;width:",({theme:e})=>e.spacing(4),";"),K=({hotKeys:e,joinLabel:n="then"})=>t.jsx(Pe,{children:e&&t.jsx(Ge,{children:e.map((r,o)=>t.jsxs(ae.default.Fragment,{children:[t.jsx(Ue,{children:r}),o<e.length-1&&n]},o))})}),v=l.default("div",{target:"e134tjdh0"})("--horizontal-padding:",({theme:e})=>e.spacing(1),";--vertical-padding:",({theme:e})=>e.spacing(2),";align-items:center;border-radius:",({theme:e})=>e.border.radius.sm,";cursor:pointer;display:flex;flex-direction:row;font-size:",({theme:e})=>e.font.size.sm,";gap:",({theme:e})=>e.spacing(2),";height:calc(32px - 2 * var(--vertical-padding));justify-content:space-between;padding:var(--vertical-padding) var(--horizontal-padding);",({theme:e,isKeySelected:n})=>n?`background: ${e.background.transparent.light};`:""," ",({isHoverBackgroundDisabled:e,disabled:n})=>(n||e)??W.HOVER_BACKGROUND,";",({theme:e,accent:n,disabled:r})=>{if(!j.isUndefined(r)&&r!==!1)return g.css`
|
|
29
29
|
color: ${e.font.color.tertiary};
|
|
30
30
|
`;switch(n){case"danger":return g.css`
|
|
31
31
|
color: ${e.font.color.danger};
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
color: ${e.font.color.secondary};
|
|
39
39
|
`}}," ",({focused:e,theme:n})=>e&&g.css`
|
|
40
40
|
background: ${n.background.transparent.light};
|
|
41
|
-
`,";position:relative;user-select:none;width:calc(100% - 2 * var(--horizontal-padding));"),w=l.default("div",{target:"e134tjdh1"})("display:flex;flex-direction:row;font-size:",({theme:e})=>e.font.size.md,";font-weight:",({theme:e})=>e.font.weight.regular,";overflow:hidden;white-space:nowrap;"),C=l.default(w,{target:"e134tjdh2"})("color:",({theme:e})=>e.font.color.light,";"),Ue=l.default("div",{target:"e134tjdh3"})("width:",({theme:e})=>e.spacing(1),";"),y=l.default("div",{target:"e134tjdh4"})("align-items:center;display:flex;flex-direction:row;gap:",({theme:e})=>e.spacing(2),";min-width:0;width:100%;& svg{flex-shrink:0;}"),T=l.default("div",{target:"e134tjdh5"})("align-items:center;display:flex;flex-direction:row;gap:",({theme:e})=>e.spacing(2),";& svg{flex-shrink:0;}"),Y=l.default("div",{target:"e134tjdh6"})("cursor:grab;align-items:center;display:flex;"),L=l.default(v,{target:"e134tjdh7"})(({isIconDisplayedOnHoverOnly:e,theme:n})=>e&&g.css("& .hoverable-buttons{opacity:0;right:",n.spacing(2),";}&:hover{& .hoverable-buttons{opacity:1;}}"),";& .hoverable-buttons{transition:opacity ",({theme:e})=>e.animation.duration.instant,"s ease;}cursor:",({cursor:e,disabled:n})=>{if(!j.isUndefined(n)&&n!==!1)return"default";switch(e){case"drag":return"grab";default:return"pointer"}},";"),_=l.default(b.IconCheck,{target:"e134tjdh8"})("flex-shrink:0;margin-right:",({theme:e})=>e.spacing(1),";"),B=l.default("div",{target:"e134tjdh9"})("color:",({theme:e})=>e.font.color.light,";font-family:inherit;font-size:inherit;font-weight:inherit;padding-left:",({theme:e})=>e.spacing(1),";flex-shrink:1;overflow:hidden;"),O=l.default(B,{target:"e134tjdh10"})("text-align:right;"),We=l.default("div",{target:"etfsebm0"})("flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;"),Fe=l.default("div",{target:"etfsebm1"})("align-items:flex-start;background:",({theme:e})=>e.background.transparent.light,";border-radius:",({theme:e})=>e.border.radius.sm,";display:flex;flex-direction:column;padding:",({theme:e})=>e.spacing(1),";"),He=l.default(w,{target:"etfsebm2"})("margin-left:auto;"),k=({className:e,LeftComponent:n,LeftIcon:r,withIconContainer:o=!1,text:i,contextualText:s,contextualTextPosition:a="left",showGrip:d=!1,disabled:c=!1})=>{const u=g.useTheme();return t.jsxs(y,{className:e,children:[d&&t.jsx(Y,{children:t.jsx(b.IconGripVertical,{size:u.icon.size.md,stroke:u.icon.stroke.sm,color:o?u.font.color.tertiary:c?u.font.color.extraLight:u.font.color.light})}),r&&(o?t.jsx(Fe,{children:t.jsx(r,{size:u.icon.size.md,stroke:u.icon.stroke.sm})}):t.jsx(r,{size:u.icon.size.md,stroke:u.icon.stroke.sm})),n,t.jsxs(w,{children:[j.isString(i)?t.jsx(We,{children:t.jsx(p.OverflowingTextWithTooltip,{text:i})}):i,a==="left"&&t.jsx(t.Fragment,{children:j.isString(s)?j.isNonEmptyString(s)&&t.jsx(B,{children:t.jsx(p.OverflowingTextWithTooltip,{text:`· ${s}`})}):s})]}),a==="right"&&t.jsx(He,{children:t.jsx(O,{children:j.isString(s)?t.jsx(p.OverflowingTextWithTooltip,{text:s}):s})})]})},Ve=l.default(ie.motion.div,{target:"e1ydxzu70"})("display:flex;align-items:center;justify-content:center;"),Ee=({accent:e="default",className:n,withIconContainer:r=!1,iconButtons:o,isIconDisplayedOnHoverOnly:i=!0,LeftIcon:s,LeftComponent:a,RightIcon:d,RightComponent:c,onClick:u,onMouseEnter:h,onMouseLeave:f,testId:x,text:$,contextualTextPosition:A="left",contextualText:I,hasSubMenu:Q=!1,disabled:z=!1,focused:X=!1,hotKeys:G,isSubMenuOpened:Z=!1})=>{const S=g.useTheme(),ee=Array.isArray(o)&&o.length>0,te=N=>{u&&(N.preventDefault(),N.stopPropagation(),u?.(N))};return t.jsxs(L,{"data-testid":x??void 0,onClick:z?void 0:te,disabled:z,className:n,accent:e,isIconDisplayedOnHoverOnly:i,onMouseEnter:h,onMouseLeave:f,focused:X,children:[t.jsx(k,{LeftIcon:s??void 0,LeftComponent:a,withIconContainer:r,text:$,contextualText:I,contextualTextPosition:A,disabled:z}),t.jsxs(T,{children:[o&&t.jsx("div",{className:"hoverable-buttons",children:ee&&t.jsx(m.LightIconButtonGroup,{iconButtons:o,size:"small"})}),G&&t.jsx(K,{hotKeys:G}),d&&t.jsx(d,{size:S.icon.size.md,stroke:S.icon.stroke.sm}),c,Q&&!z&&t.jsx(Ve,{animate:{rotate:Z?90:0},transition:{duration:S.animation.duration.normal},children:t.jsx(b.IconChevronRight,{size:S.icon.size.sm,color:S.font.color.light})})]})]})},Ke=({accent:e="default",className:n,iconButtons:r,isIconDisplayedOnHoverOnly:o=!0,onClick:i,onMouseEnter:s,onMouseLeave:a,testId:d,avatar:c,hasSubMenu:u=!1,text:h,contextualText:f})=>{const x=g.useTheme(),$=Array.isArray(r)&&r.length>0,A=I=>{i&&(I.preventDefault(),I.stopPropagation(),i?.(I))};return t.jsxs(L,{"data-testid":d??void 0,onClick:A,className:n,accent:e,isIconDisplayedOnHoverOnly:o,onMouseEnter:s,onMouseLeave:a,children:[t.jsx(y,{children:t.jsx(k,{LeftIcon:void 0,LeftComponent:U.Tr(c)?t.jsx(se.Avatar,{placeholder:c.placeholder,avatarUrl:c.avatarUrl,placeholderColorSeed:c.placeholderColorSeed,size:c.size,type:c.type}):void 0,text:h,contextualText:f})}),t.jsx("div",{className:"hoverable-buttons",children:$&&t.jsx(m.LightIconButtonGroup,{iconButtons:r,size:"small"})}),u&&t.jsx(b.IconChevronRight,{size:x.icon.size.sm,color:x.font.color.tertiary})]})},Ye=({LeftIcon:e,withIconContainer:n=!1,accent:r="default",iconButtons:o,onClick:i,text:s,isDragDisabled:a=!1,className:d,isIconDisplayedOnHoverOnly:c=!0,showGrip:u=!1})=>{const h=Array.isArray(o)&&o.length>0,f=u?a?"default":"drag":"default";return t.jsxs(L,{onClick:i,accent:r,className:d,isIconDisplayedOnHoverOnly:c,cursor:f,children:[t.jsx(k,{LeftIcon:e,text:s,withIconContainer:n,disabled:a,showGrip:u}),h&&t.jsx(m.LightIconButtonGroup,{className:"hoverable-buttons",iconButtons:o})]})},Je=l.default("div",{target:"e9aoect0"})("align-items:center;display:flex;flex-direction:row;gap:",({theme:e})=>e.spacing(2),";min-width:0;overflow:hidden;"),Qe=({color:e,LeftIcon:n,withIconContainer:r=!1,text:o,selected:i,isKeySelected:s,className:a,onSelectChange:d})=>{const c=()=>{d?.(!i)};return t.jsx(v,{isKeySelected:s,className:a,onClick:c,children:t.jsxs(Je,{children:[t.jsx(m.Checkbox,{checked:i}),e?t.jsx(q.Tag,{color:e,text:o,Icon:n}):t.jsx(k,{LeftIcon:n,text:o,withIconContainer:r})]})})},Xe=l.default("div",{target:"e1308dg30"})("align-items:center;display:flex;flex-direction:row;gap:",({theme:e})=>e.spacing(2),";width:100%;"),Ze=l.default("div",{target:"e1308dg31"})("display:flex;align-items:center;flex:1 0 0;gap:",({theme:e})=>e.spacing(1),";max-width:100%;text-overflow:ellipsis;overflow:hidden;"),et=({avatar:e,text:n,selected:r,contextualText:o,className:i,isKeySelected:s,onSelectChange:a})=>{const d=()=>{a?.(!r)};return t.jsx(v,{className:i,onClick:d,isKeySelected:s,children:t.jsxs(Xe,{children:[t.jsx(m.Checkbox,{checked:r}),t.jsxs(y,{children:[e,t.jsxs(Ze,{children:[t.jsx(w,{children:t.jsx(p.OverflowingTextWithTooltip,{text:n})}),o&&t.jsxs(t.Fragment,{children:[t.jsx(C,{children:"·"}),t.jsx(C,{children:t.jsx(p.OverflowingTextWithTooltip,{text:o})})]})]})]})]})})},tt=({color:e,selected:n,className:r,onClick:o,isKeySelected:i,text:s,Icon:a})=>t.jsx(v,{isKeySelected:i,onClick:o,className:r,children:t.jsxs(y,{children:[t.jsx(m.Checkbox,{size:m.CheckboxSize.Small,shape:m.CheckboxShape.Squared,checked:n}),t.jsx(q.Tag,{color:e,text:s,Icon:a})]})}),nt=({LeftIcon:e,withIconContainer:n=!1,text:r,className:o,onClick:i})=>{const s=g.useTheme();return t.jsxs(v,{onClick:i,className:o,children:[t.jsx(y,{children:t.jsx(k,{LeftIcon:e,text:r,withIconContainer:n})}),t.jsx(b.IconChevronRight,{size:s.icon.size.sm,color:s.font.color.tertiary})]})},M=l.default(v,{target:"esndde70"})(({theme:e,disabled:n,focused:r})=>{if(n===!0)return g.css("background:inherit;&:hover{background:inherit;}color:",e.font.color.tertiary,";cursor:default;");if(r===!0)return g.css("background:",e.background.transparent.light,";")}),rt=({LeftIcon:e,withIconContainer:n=!1,text:r,selected:o,needIconCheck:i=!0,className:s,onClick:a,disabled:d,focused:c,hasSubMenu:u=!1,contextualText:h,contextualTextPosition:f="left"})=>{const x=g.useTheme();return t.jsxs(M,{onClick:a,className:s,disabled:d,focused:c,role:"option","aria-selected":o,"aria-disabled":d,children:[t.jsx(k,{LeftIcon:e,text:r,contextualText:f==="left"?h:null,withIconContainer:n}),t.jsxs(T,{children:[f==="right"&&t.jsx(w,{children:j.isString(h)?t.jsx(O,{children:t.jsx(p.OverflowingTextWithTooltip,{text:h})}):h}),o&&i&&t.jsx(b.IconCheck,{size:x.icon.size.md}),u&&t.jsx(b.IconChevronRight,{size:x.icon.size.sm,color:x.font.color.tertiary})]})]})},ot=l.default("div",{target:"e1uepgjk0"})("display:flex;align-items:center;flex:1 0 0;gap:",({theme:e})=>e.spacing(1),";max-width:100%;text-overflow:ellipsis;overflow:hidden;"),it=({avatar:e,text:n,contextualText:r,selected:o,className:i,onClick:s,disabled:a,focused:d,testId:c})=>{const u=g.useTheme();return t.jsxs(M,{onClick:s,className:i,disabled:a,focused:d,"data-testid":c,role:"option","aria-selected":o,"aria-disabled":a,children:[t.jsxs(y,{children:[e,t.jsxs(ot,{children:[t.jsx(w,{children:t.jsx(p.OverflowingTextWithTooltip,{text:n})}),r&&t.jsxs(t.Fragment,{children:[t.jsx(C,{children:"·"}),t.jsx(C,{children:t.jsx(p.OverflowingTextWithTooltip,{text:r})})]})]})]}),o&&t.jsx(_,{size:u.icon.size.md})]})},st={gray:"Gray",tomato:"Tomato",red:"Red",ruby:"Ruby",crimson:"Crimson",pink:"Pink",plum:"Plum",purple:"Purple",violet:"Violet",iris:"Iris",cyan:"Cyan",turquoise:"Turquoise",sky:"Sky",blue:"Blue",jade:"Jade",green:"Green",grass:"Grass",mint:"Mint",lime:"Lime",bronze:"Bronze",gold:"Gold",brown:"Brown",orange:"Orange",amber:"Amber",yellow:"Yellow"},lt=({color:e,selected:n,className:r,onClick:o,disabled:i,focused:s,variant:a="default",colorLabels:d=st})=>{const c=g.useTheme();return t.jsxs(M,{onClick:o,className:r,disabled:i,focused:s,children:[t.jsxs(y,{children:[t.jsx(le.StyledColorSample,{colorName:e,variant:a}),t.jsx(w,{children:d[e]})]}),n&&t.jsx(_,{size:c.icon.size.md})]})},at=({color:e,selected:n,focused:r,isKeySelected:o,className:i,onClick:s,text:a,variant:d="solid",LeftIcon:c})=>{const u=g.useTheme();return t.jsxs(M,{onClick:s,className:i,focused:r,isKeySelected:o,children:[t.jsx(y,{children:t.jsx(q.Tag,{variant:d,color:e,text:a,Icon:c??void 0})}),n&&t.jsx(_,{size:u.icon.size.md})]})},ct=l.default("li",{target:"e152fctu0"})("--horizontal-padding:",({theme:e})=>e.spacing(1),";--vertical-padding:",({theme:e})=>e.spacing(2),";align-items:center;border-radius:",({theme:e})=>e.border.radius.sm,";cursor:pointer;display:flex;flex-direction:row;font-size:",({theme:e})=>e.font.size.sm,";gap:",({theme:e})=>e.spacing(2),";height:calc(32px - 2 * var(--vertical-padding));justify-content:space-between;padding:var(--vertical-padding) var(--horizontal-padding);background:",({selected:e,theme:n})=>e?n.background.transparent.medium:"",";color:",({theme:e})=>e.font.color.secondary,";",W.HOVER_BACKGROUND,";position:relative;user-select:none;width:calc(100% - 2 * var(--horizontal-padding));"),dt=({LeftIcon:e,withIconContainer:n=!1,text:r,className:o,selected:i,onClick:s})=>{const a=d=>{s&&(d.preventDefault(),d.stopPropagation(),s?.(d))};return t.jsx(ct,{onClick:a,className:o,selected:i,children:t.jsx(y,{children:t.jsx(k,{LeftIcon:e??void 0,text:r,withIconContainer:n})})})},ut=l.default("div",{target:"e1gzux200"})("align-items:center;cursor:pointer;display:flex;justify-content:space-between;width:100%;"),gt=({focused:e,LeftIcon:n,withIconContainer:r=!1,text:o,toggled:i,className:s,onToggleChange:a,toggleSize:d,disabled:c=!1})=>{const u=()=>{c||a?.(!i)};return t.jsx(v,{className:s,focused:e,disabled:c,onClick:u,children:t.jsxs(ut,{children:[t.jsx(k,{LeftIcon:n,text:o,withIconContainer:r,disabled:c}),t.jsx(T,{onClick:h=>h.stopPropagation(),children:t.jsx(m.Toggle,{value:i,onChange:c?void 0:a,toggleSize:d,disabled:c})})]})})},ht=l.default("div",{target:"e1n2xjx60"})("align-items:center;background-color:",({isActive:e,theme:n})=>e?n.background.transparent.light:"none",";border-radius:",({theme:e})=>e.spacing(1),";cursor:pointer;display:flex;height:",({theme:e})=>e.spacing(10),";justify-content:center;transition:background-color ",({theme:e})=>e.animation.duration.fast,`s
|
|
42
|
-
ease;width:`,({theme:e})=>e.spacing(10),";&:hover{background-color:",({theme:e})=>e.background.transparent.light,";}"),J=({Icon:e,isActive:n,onClick:r})=>{const o=g.useTheme();return t.jsx(ht,{isActive:n,onClick:r,children:t.jsx(e,{color:o.color.gray10,size:o.icon.size.lg})})},ft=l.default("div",{target:"edbv6n30"})("display:flex;gap:",({theme:e})=>e.spacing(4),";justify-content:center;padding:",({theme:e})=>e.spacing(3),";z-index:1001;"),xt=({activeItemName:e,items:n})=>t.jsx(ft,{children:n.map(({Icon:r,name:o,onClick:i})=>t.jsx(J,{Icon:r,isActive:e===o,onClick:i},o))}),pt=l.default("div",{target:"ecyksfv0"})("width:14px;height:14px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:",({theme:e})=>e.font.size.xxs,";font-weight:",({theme:e})=>e.font.weight.semiBold,";background:",({theme:e,variant:n})=>n==="primary"?e.color.blue:e.background.transparent.light,";color:",({theme:e,variant:n})=>n==="primary"?"white":e.font.color.secondary,";"),mt=({count:e,variant:n="primary",className:r})=>t.jsx(pt,{variant:n,className:r,children:e});exports.AdvancedSettingsToggle=he;exports.CAL_LINK=Ae;exports.ClickToActionLink=H;exports.ContactLink=je;exports.GITHUB_LINK=V;exports.GithubVersionLink=be;exports.LinkType=Te;exports.MenuItem=Ee;exports.MenuItemAvatar=Ke;exports.MenuItemDraggable=Ye;exports.MenuItemHotKeys=K;exports.MenuItemLeftContent=k;exports.MenuItemMultiSelect=Qe;exports.MenuItemMultiSelectAvatar=et;exports.MenuItemMultiSelectTag=tt;exports.MenuItemNavigate=nt;exports.MenuItemSelect=rt;exports.MenuItemSelectAvatar=it;exports.MenuItemSelectColor=lt;exports.MenuItemSelectTag=at;exports.MenuItemSuggestion=dt;exports.MenuItemToggle=gt;exports.MenuPicker=Oe;exports.NavigationBar=xt;exports.NavigationBarItem=J;exports.NotificationCounter=mt;exports.RawLink=ve;exports.RoundedLink=E;exports.SocialLink=Le;exports.StyledDraggableItem=Y;exports.StyledHoverableMenuItemBase=L;exports.StyledMenuItemBase=v;exports.StyledMenuItemContextualText=
|
|
41
|
+
`,";position:relative;user-select:none;width:calc(100% - 2 * var(--horizontal-padding));"),w=l.default("div",{target:"e134tjdh1"})("display:flex;flex-direction:row;font-size:",({theme:e})=>e.font.size.md,";font-weight:",({theme:e})=>e.font.weight.regular,";overflow:hidden;white-space:nowrap;"),C=l.default(w,{target:"e134tjdh2"})("color:",({theme:e})=>e.font.color.light,";"),De=l.default("div",{target:"e134tjdh3"})("width:",({theme:e})=>e.spacing(1),";"),y=l.default("div",{target:"e134tjdh4"})("align-items:center;display:flex;flex-direction:row;gap:",({theme:e})=>e.spacing(2),";min-width:0;width:100%;& svg{flex-shrink:0;}"),T=l.default("div",{target:"e134tjdh5"})("align-items:center;display:flex;flex-direction:row;gap:",({theme:e})=>e.spacing(2),";& svg{flex-shrink:0;}"),Y=l.default("div",{target:"e134tjdh6"})("cursor:grab;align-items:center;display:flex;"),L=l.default(v,{target:"e134tjdh7"})(({isIconDisplayedOnHoverOnly:e,theme:n})=>e&&g.css("& .hoverable-buttons{opacity:0;right:",n.spacing(2),";}&:hover{& .hoverable-buttons{opacity:1;}}"),";& .hoverable-buttons{transition:opacity ",({theme:e})=>e.animation.duration.instant,"s ease;}cursor:",({cursor:e,disabled:n})=>{if(!j.isUndefined(n)&&n!==!1)return"default";switch(e){case"drag":return"grab";default:return"pointer"}},";"),_=l.default(b.IconCheck,{target:"e134tjdh8"})("flex-shrink:0;margin-right:",({theme:e})=>e.spacing(1),";"),q=l.default("div",{target:"e134tjdh9"})("color:",({theme:e})=>e.font.color.light,";font-family:inherit;font-size:inherit;font-weight:inherit;padding-left:",({theme:e})=>e.spacing(1),";flex-shrink:1;overflow:hidden;"),O=l.default(q,{target:"e134tjdh10"})("text-align:right;"),We=l.default("div",{target:"etfsebm0"})("flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;"),Fe=l.default("div",{target:"etfsebm1"})("align-items:flex-start;background:",({theme:e})=>e.background.transparent.light,";border-radius:",({theme:e})=>e.border.radius.sm,";display:flex;flex-direction:column;padding:",({theme:e})=>e.spacing(1),";"),He=l.default(w,{target:"etfsebm2"})("margin-left:auto;"),k=({className:e,LeftComponent:n,LeftIcon:r,withIconContainer:o=!1,text:i,contextualText:s,contextualTextPosition:a="left",showGrip:d=!1,disabled:c=!1})=>{const u=g.useTheme();return t.jsxs(y,{className:e,children:[d&&t.jsx(Y,{children:t.jsx(b.IconGripVertical,{size:u.icon.size.md,stroke:u.icon.stroke.sm,color:o?u.font.color.tertiary:c?u.font.color.extraLight:u.font.color.light})}),r&&(o?t.jsx(Fe,{children:t.jsx(r,{size:u.icon.size.md,stroke:u.icon.stroke.sm})}):t.jsx(r,{size:u.icon.size.md,stroke:u.icon.stroke.sm})),n,t.jsxs(w,{children:[j.isString(i)?t.jsx(We,{children:t.jsx(p.OverflowingTextWithTooltip,{text:i})}):i,a==="left"&&t.jsx(t.Fragment,{children:j.isString(s)?j.isNonEmptyString(s)&&t.jsx(q,{children:t.jsx(p.OverflowingTextWithTooltip,{text:`· ${s}`})}):s})]}),a==="right"&&t.jsx(He,{children:t.jsx(O,{children:j.isString(s)?t.jsx(p.OverflowingTextWithTooltip,{text:s}):s})})]})},Ve=l.default(ie.motion.div,{target:"e1ydxzu70"})("display:flex;align-items:center;justify-content:center;"),Ee=({accent:e="default",className:n,withIconContainer:r=!1,iconButtons:o,isIconDisplayedOnHoverOnly:i=!0,LeftIcon:s,LeftComponent:a,RightIcon:d,RightComponent:c,onClick:u,onMouseEnter:h,onMouseLeave:f,testId:x,text:$,contextualTextPosition:A="left",contextualText:I,hasSubMenu:Q=!1,disabled:z=!1,focused:X=!1,hotKeys:G,isSubMenuOpened:Z=!1})=>{const S=g.useTheme(),ee=Array.isArray(o)&&o.length>0,te=N=>{u&&(N.preventDefault(),N.stopPropagation(),u?.(N))};return t.jsxs(L,{"data-testid":x??void 0,onClick:z?void 0:te,disabled:z,className:n,accent:e,isIconDisplayedOnHoverOnly:i,onMouseEnter:h,onMouseLeave:f,focused:X,children:[t.jsx(k,{LeftIcon:s??void 0,LeftComponent:a,withIconContainer:r,text:$,contextualText:I,contextualTextPosition:A,disabled:z}),t.jsxs(T,{children:[o&&t.jsx("div",{className:"hoverable-buttons",children:ee&&t.jsx(m.LightIconButtonGroup,{iconButtons:o,size:"small"})}),G&&t.jsx(K,{hotKeys:G}),d&&t.jsx(d,{size:S.icon.size.md,stroke:S.icon.stroke.sm}),c,Q&&!z&&t.jsx(Ve,{animate:{rotate:Z?90:0},transition:{duration:S.animation.duration.normal},children:t.jsx(b.IconChevronRight,{size:S.icon.size.sm,color:S.font.color.light})})]})]})},Ke=({accent:e="default",className:n,iconButtons:r,isIconDisplayedOnHoverOnly:o=!0,onClick:i,onMouseEnter:s,onMouseLeave:a,testId:d,avatar:c,hasSubMenu:u=!1,text:h,contextualText:f})=>{const x=g.useTheme(),$=Array.isArray(r)&&r.length>0,A=I=>{i&&(I.preventDefault(),I.stopPropagation(),i?.(I))};return t.jsxs(L,{"data-testid":d??void 0,onClick:A,className:n,accent:e,isIconDisplayedOnHoverOnly:o,onMouseEnter:s,onMouseLeave:a,children:[t.jsx(y,{children:t.jsx(k,{LeftIcon:void 0,LeftComponent:D.Tr(c)?t.jsx(se.Avatar,{placeholder:c.placeholder,avatarUrl:c.avatarUrl,placeholderColorSeed:c.placeholderColorSeed,size:c.size,type:c.type}):void 0,text:h,contextualText:f})}),t.jsx("div",{className:"hoverable-buttons",children:$&&t.jsx(m.LightIconButtonGroup,{iconButtons:r,size:"small"})}),u&&t.jsx(b.IconChevronRight,{size:x.icon.size.sm,color:x.font.color.tertiary})]})},Ye=({LeftIcon:e,withIconContainer:n=!1,accent:r="default",iconButtons:o,onClick:i,text:s,isDragDisabled:a=!1,className:d,isIconDisplayedOnHoverOnly:c=!0,showGrip:u=!1})=>{const h=Array.isArray(o)&&o.length>0,f=u?a?"default":"drag":"default";return t.jsxs(L,{onClick:i,accent:r,className:d,isIconDisplayedOnHoverOnly:c,cursor:f,children:[t.jsx(k,{LeftIcon:e,text:s,withIconContainer:n,disabled:a,showGrip:u}),h&&t.jsx(m.LightIconButtonGroup,{className:"hoverable-buttons",iconButtons:o})]})},Je=l.default("div",{target:"e9aoect0"})("align-items:center;display:flex;flex-direction:row;gap:",({theme:e})=>e.spacing(2),";min-width:0;overflow:hidden;"),Qe=({color:e,LeftIcon:n,withIconContainer:r=!1,text:o,selected:i,isKeySelected:s,className:a,onSelectChange:d})=>{const c=()=>{d?.(!i)};return t.jsx(v,{isKeySelected:s,className:a,onClick:c,children:t.jsxs(Je,{children:[t.jsx(m.Checkbox,{checked:i}),e?t.jsx(B.Tag,{color:e,text:o,Icon:n}):t.jsx(k,{LeftIcon:n,text:o,withIconContainer:r})]})})},Xe=l.default("div",{target:"e1308dg30"})("align-items:center;display:flex;flex-direction:row;gap:",({theme:e})=>e.spacing(2),";width:100%;"),Ze=l.default("div",{target:"e1308dg31"})("display:flex;align-items:center;flex:1 0 0;gap:",({theme:e})=>e.spacing(1),";max-width:100%;text-overflow:ellipsis;overflow:hidden;"),et=({avatar:e,text:n,selected:r,contextualText:o,className:i,isKeySelected:s,onSelectChange:a})=>{const d=()=>{a?.(!r)};return t.jsx(v,{className:i,onClick:d,isKeySelected:s,children:t.jsxs(Xe,{children:[t.jsx(m.Checkbox,{checked:r}),t.jsxs(y,{children:[e,t.jsxs(Ze,{children:[t.jsx(w,{children:t.jsx(p.OverflowingTextWithTooltip,{text:n})}),o&&t.jsxs(t.Fragment,{children:[t.jsx(C,{children:"·"}),t.jsx(C,{children:t.jsx(p.OverflowingTextWithTooltip,{text:o})})]})]})]})]})})},tt=({color:e,selected:n,className:r,onClick:o,isKeySelected:i,text:s,Icon:a})=>t.jsx(v,{isKeySelected:i,onClick:o,className:r,children:t.jsxs(y,{children:[t.jsx(m.Checkbox,{size:m.CheckboxSize.Small,shape:m.CheckboxShape.Squared,checked:n}),t.jsx(B.Tag,{color:e,text:s,Icon:a})]})}),nt=({LeftIcon:e,withIconContainer:n=!1,text:r,className:o,onClick:i})=>{const s=g.useTheme();return t.jsxs(v,{onClick:i,className:o,children:[t.jsx(y,{children:t.jsx(k,{LeftIcon:e,text:r,withIconContainer:n})}),t.jsx(b.IconChevronRight,{size:s.icon.size.sm,color:s.font.color.tertiary})]})},M=l.default(v,{target:"esndde70"})(({theme:e,disabled:n,focused:r})=>{if(n===!0)return g.css("background:inherit;&:hover{background:inherit;}color:",e.font.color.tertiary,";cursor:default;");if(r===!0)return g.css("background:",e.background.transparent.light,";")}),rt=({LeftIcon:e,withIconContainer:n=!1,text:r,selected:o,needIconCheck:i=!0,className:s,onClick:a,disabled:d,focused:c,hasSubMenu:u=!1,contextualText:h,contextualTextPosition:f="left"})=>{const x=g.useTheme();return t.jsxs(M,{onClick:a,className:s,disabled:d,focused:c,role:"option","aria-selected":o,"aria-disabled":d,children:[t.jsx(k,{LeftIcon:e,text:r,contextualText:f==="left"?h:null,withIconContainer:n}),t.jsxs(T,{children:[f==="right"&&t.jsx(w,{children:j.isString(h)?t.jsx(O,{children:t.jsx(p.OverflowingTextWithTooltip,{text:h})}):h}),o&&i&&t.jsx(b.IconCheck,{size:x.icon.size.md}),u&&t.jsx(b.IconChevronRight,{size:x.icon.size.sm,color:x.font.color.tertiary})]})]})},ot=l.default("div",{target:"e1uepgjk0"})("display:flex;align-items:center;flex:1 0 0;gap:",({theme:e})=>e.spacing(1),";max-width:100%;text-overflow:ellipsis;overflow:hidden;"),it=({avatar:e,text:n,contextualText:r,selected:o,className:i,onClick:s,disabled:a,focused:d,testId:c})=>{const u=g.useTheme();return t.jsxs(M,{onClick:s,className:i,disabled:a,focused:d,"data-testid":c,role:"option","aria-selected":o,"aria-disabled":a,children:[t.jsxs(y,{children:[e,t.jsxs(ot,{children:[t.jsx(w,{children:t.jsx(p.OverflowingTextWithTooltip,{text:n})}),r&&t.jsxs(t.Fragment,{children:[t.jsx(C,{children:"·"}),t.jsx(C,{children:t.jsx(p.OverflowingTextWithTooltip,{text:r})})]})]})]}),o&&t.jsx(_,{size:u.icon.size.md})]})},st={gray:"Gray",tomato:"Tomato",red:"Red",ruby:"Ruby",crimson:"Crimson",pink:"Pink",plum:"Plum",purple:"Purple",violet:"Violet",iris:"Iris",cyan:"Cyan",turquoise:"Turquoise",sky:"Sky",blue:"Blue",jade:"Jade",green:"Green",grass:"Grass",mint:"Mint",lime:"Lime",bronze:"Bronze",gold:"Gold",brown:"Brown",orange:"Orange",amber:"Amber",yellow:"Yellow"},lt=({color:e,selected:n,className:r,onClick:o,disabled:i,focused:s,variant:a="default",colorLabels:d=st})=>{const c=g.useTheme();return t.jsxs(M,{onClick:o,className:r,disabled:i,focused:s,children:[t.jsxs(y,{children:[t.jsx(le.StyledColorSample,{colorName:e,variant:a}),t.jsx(w,{children:d[e]})]}),n&&t.jsx(_,{size:c.icon.size.md})]})},at=({color:e,selected:n,focused:r,isKeySelected:o,className:i,onClick:s,text:a,variant:d="solid",LeftIcon:c})=>{const u=g.useTheme();return t.jsxs(M,{onClick:s,className:i,focused:r,isKeySelected:o,children:[t.jsx(y,{children:t.jsx(B.Tag,{variant:d,color:e,text:a,Icon:c??void 0})}),n&&t.jsx(_,{size:u.icon.size.md})]})},ct=l.default("li",{target:"e152fctu0"})("--horizontal-padding:",({theme:e})=>e.spacing(1),";--vertical-padding:",({theme:e})=>e.spacing(2),";align-items:center;border-radius:",({theme:e})=>e.border.radius.sm,";cursor:pointer;display:flex;flex-direction:row;font-size:",({theme:e})=>e.font.size.sm,";gap:",({theme:e})=>e.spacing(2),";height:calc(32px - 2 * var(--vertical-padding));justify-content:space-between;padding:var(--vertical-padding) var(--horizontal-padding);background:",({selected:e,theme:n})=>e?n.background.transparent.medium:"",";color:",({theme:e})=>e.font.color.secondary,";",W.HOVER_BACKGROUND,";position:relative;user-select:none;width:calc(100% - 2 * var(--horizontal-padding));"),dt=({LeftIcon:e,withIconContainer:n=!1,text:r,className:o,selected:i,onClick:s})=>{const a=d=>{s&&(d.preventDefault(),d.stopPropagation(),s?.(d))};return t.jsx(ct,{onClick:a,className:o,selected:i,children:t.jsx(y,{children:t.jsx(k,{LeftIcon:e??void 0,text:r,withIconContainer:n})})})},ut=l.default("div",{target:"e1gzux200"})("align-items:center;cursor:pointer;display:flex;justify-content:space-between;width:100%;"),gt=({focused:e,LeftIcon:n,withIconContainer:r=!1,text:o,toggled:i,className:s,onToggleChange:a,toggleSize:d,disabled:c=!1})=>{const u=()=>{c||a?.(!i)};return t.jsx(v,{className:s,focused:e,disabled:c,onClick:u,children:t.jsxs(ut,{children:[t.jsx(k,{LeftIcon:n,text:o,withIconContainer:r,disabled:c}),t.jsx(T,{onClick:h=>h.stopPropagation(),children:t.jsx(m.Toggle,{value:i,onChange:c?void 0:a,toggleSize:d,disabled:c})})]})})},ht=l.default("div",{target:"e1n2xjx60"})("align-items:center;background-color:",({isActive:e,theme:n})=>e?n.background.transparent.light:"none",";border-radius:",({theme:e})=>e.spacing(1),";cursor:pointer;display:flex;height:",({theme:e})=>e.spacing(10),";justify-content:center;transition:background-color ",({theme:e})=>e.animation.duration.fast,`s
|
|
42
|
+
ease;width:`,({theme:e})=>e.spacing(10),";&:hover{background-color:",({theme:e})=>e.background.transparent.light,";}"),J=({Icon:e,isActive:n,onClick:r})=>{const o=g.useTheme();return t.jsx(ht,{isActive:n,onClick:r,children:t.jsx(e,{color:o.color.gray10,size:o.icon.size.lg})})},ft=l.default("div",{target:"edbv6n30"})("display:flex;gap:",({theme:e})=>e.spacing(4),";justify-content:center;padding:",({theme:e})=>e.spacing(3),";z-index:1001;"),xt=({activeItemName:e,items:n})=>t.jsx(ft,{children:n.map(({Icon:r,name:o,onClick:i})=>t.jsx(J,{Icon:r,isActive:e===o,onClick:i},o))}),pt=l.default("div",{target:"ecyksfv0"})("width:14px;height:14px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:",({theme:e})=>e.font.size.xxs,";font-weight:",({theme:e})=>e.font.weight.semiBold,";background:",({theme:e,variant:n})=>n==="primary"?e.color.blue:e.background.transparent.light,";color:",({theme:e,variant:n})=>n==="primary"?"white":e.font.color.secondary,";"),mt=({count:e,variant:n="primary",className:r})=>t.jsx(pt,{variant:n,className:r,children:e});exports.AdvancedSettingsToggle=he;exports.CAL_LINK=Ae;exports.ClickToActionLink=H;exports.ContactLink=je;exports.GITHUB_LINK=V;exports.GithubVersionLink=be;exports.LinkType=Te;exports.MenuItem=Ee;exports.MenuItemAvatar=Ke;exports.MenuItemDraggable=Ye;exports.MenuItemHotKeys=K;exports.MenuItemLeftContent=k;exports.MenuItemMultiSelect=Qe;exports.MenuItemMultiSelectAvatar=et;exports.MenuItemMultiSelectTag=tt;exports.MenuItemNavigate=nt;exports.MenuItemSelect=rt;exports.MenuItemSelectAvatar=it;exports.MenuItemSelectColor=lt;exports.MenuItemSelectTag=at;exports.MenuItemSuggestion=dt;exports.MenuItemToggle=gt;exports.MenuPicker=Oe;exports.NavigationBar=xt;exports.NavigationBarItem=J;exports.NotificationCounter=mt;exports.RawLink=ve;exports.RoundedLink=E;exports.SocialLink=Le;exports.StyledDraggableItem=Y;exports.StyledHoverableMenuItemBase=L;exports.StyledMenuItemBase=v;exports.StyledMenuItemContextualText=q;exports.StyledMenuItemIconCheck=_;exports.StyledMenuItemLabel=w;exports.StyledMenuItemLabelLight=C;exports.StyledMenuItemLeftContent=y;exports.StyledMenuItemRightContent=T;exports.StyledMenuItemSelect=M;exports.StyledNoIconFiller=De;exports.StyledRightMenuItemContextualText=O;exports.TWENTY_PRICING_LINK=Ne;exports.UndecoratedLink=$e;
|
|
@@ -8,14 +8,14 @@ import { styled as H } from "@linaria/react";
|
|
|
8
8
|
import { Link as V } from "react-router-dom";
|
|
9
9
|
import { isNonEmptyString as B, isUndefined as E, isString as M } from "@sniptt/guards";
|
|
10
10
|
import { T as de } from "./ThemeContextProvider-DRVSWXAb.js";
|
|
11
|
-
import { g as ge } from "./getDisplayValueByUrlType-
|
|
12
|
-
import { T as he, a as ue, A as fe, O as k } from "./OverflowingTextWithTooltip-
|
|
13
|
-
import { T as W } from "./isValidCountryCode-
|
|
11
|
+
import { g as ge } from "./getDisplayValueByUrlType-DxqXD84p.js";
|
|
12
|
+
import { T as he, a as ue, A as fe, O as k } from "./OverflowingTextWithTooltip-FRJL71ks.js";
|
|
13
|
+
import { T as W } from "./isValidCountryCode-B7MxBtRC-DyiZn2sl.js";
|
|
14
14
|
import { motion as pe } from "framer-motion";
|
|
15
15
|
import { H as K } from "./HoverBackground-bYDC0iDZ.js";
|
|
16
|
-
import { A as me } from "./Avatar-
|
|
17
|
-
import { T as R } from "./Tag-
|
|
18
|
-
import { S as ye } from "./ColorSample-
|
|
16
|
+
import { A as me } from "./Avatar-q9sRncB5.js";
|
|
17
|
+
import { T as R } from "./Tag-C0nqcoLd.js";
|
|
18
|
+
import { S as ye } from "./ColorSample-IEHpxKsX.js";
|
|
19
19
|
const be = /* @__PURE__ */ l("div", {
|
|
20
20
|
target: "eoxui2t0"
|
|
21
21
|
})("align-items:center;display:flex;gap:", ({ theme: e }) => e.spacing(2), ";position:relative;height:", ({ theme: e }) => e.spacing(5), ";padding:", ({ theme: e }) => e.spacing(1), ";"), ke = /* @__PURE__ */ l("div", {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./emotion-react-jsx-runtime.browser.esm-pt_kQSCG.cjs"),j=require("@emotion/styled"),B=require("./isValidCountryCode-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./emotion-react-jsx-runtime.browser.esm-pt_kQSCG.cjs"),j=require("@emotion/styled"),B=require("./isValidCountryCode-B7MxBtRC-BroSlnrA.cjs"),x=require("@sniptt/guards"),i=require("react-router-dom"),f=require("./MainColorsLight-CpgC1-1i.cjs"),E=require("recoil"),Q=e=>e&&e.__esModule?e:{default:e},r=Q(j),w=r.default("div",{target:"efy8rjs0"})("background:",({theme:e,backgroundColor:t})=>t??e.background.primary,";border:1px solid ",({theme:e})=>e.border.color.light,";border-radius:5px;display:flex;flex-direction:row;height:",({height:e})=>e==="fit-content"?"fit-content":`
|
|
2
2
|
${e}px
|
|
3
|
-
`,";max-width:calc(100% - 40px);min-width:",({width:e})=>e?"unset":"300px",";padding:20px;width:",({width:e})=>e?e+"px":"fit-content",";"),h=({width:e,backgroundColor:t,height:
|
|
3
|
+
`,";max-width:calc(100% - 40px);min-width:",({width:e})=>e?"unset":"300px",";padding:20px;width:",({width:e})=>e?e+"px":"fit-content",";"),h=({width:e,backgroundColor:t,height:n,children:A})=>o.jsx(w,{width:e,backgroundColor:t,height:B.Tr(n)?n:"fit-content",children:A}),U=r.default("h1",{target:"eac1j3x0"})("font-size:",({theme:e})=>e.font.size.lg,";font-weight:",({theme:e})=>e.font.weight.semiBold,";margin:",({theme:e})=>e.spacing(2),";"),S=r.default("h2",{target:"eac1j3x1"})("color:",({theme:e})=>e.font.color.secondary,";font-size:",({theme:e})=>e.font.size.md,";font-weight:",({theme:e})=>e.font.weight.semiBold,";margin:",({theme:e})=>e.spacing(2),";width:100px;"),V=r.default("h3",{target:"eac1j3x2"})("color:",({theme:e})=>e.font.color.tertiary,";font-size:",({theme:e})=>e.font.size.md,";font-weight:",({theme:e})=>e.font.weight.semiBold,";margin:",({theme:e})=>e.spacing(2),";width:100px;"),D=r.default("span",{target:"eac1j3x3"})("color:",({theme:e})=>e.font.color.light,";font-size:",({theme:e})=>e.font.size.xs,";font-weight:",({theme:e})=>e.font.weight.semiBold,";margin-bottom:",({theme:e})=>e.spacing(1),";text-align:center;text-transform:uppercase;"),k=r.default("div",{target:"eac1j3x4"})("display:flex;flex-direction:row;"),F=r.default("div",{target:"eac1j3x5"})("display:flex;flex-direction:column;padding:",({theme:e})=>e.spacing(2),";"),M=r.default("div",{target:"eac1j3x6"})("display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(2),";"),T=r.default("div",{target:"eac1j3x7"})("display:flex;flex:1;flex-direction:row;gap:",({theme:e})=>e.spacing(2),";"),b=r.default("div",{target:"eac1j3x8"})("display:flex;",({width:e})=>e&&`min-width: ${e}px;`),I=r.default("div",{target:"eac1j3x9"})("align-items:center;display:flex;flex-direction:column;padding:",({theme:e})=>e.spacing(2),";"),u={name:"",values:[void 0],props:()=>({})},p=e=>x.isString(e)||x.isNumber(e),L=(e,t)=>{const{catalog:{dimensions:n=[],options:A={}}={dimensions:[],options:{}}}=t.parameters||{};if(!n||!Array.isArray(n))return o.jsx(e,{});const[a=u,c=u,m=u,R=u]=n;return o.jsx(k,{children:R.values.map(l=>o.jsxs(F,{children:[o.jsx(U,{children:R.labels?.(l)??(p(l)?l:"")}),m.values.map(d=>o.jsxs(M,{children:[o.jsx(S,{children:m.labels?.(d)??(p(d)?d:"")}),c.values.map(g=>o.jsxs(T,{children:[o.jsx(V,{children:c.labels?.(g)??(p(g)?g:"")}),a.values.map(s=>o.jsxs(I,{id:s,children:[o.jsx(D,{children:a.labels?.(s)??(p(s)?s:"")}),o.jsx(b,{width:A?.elementContainer?.width,style:A?.elementContainer?.style,className:A?.elementContainer?.className,children:o.jsx(e,{args:{...t.args,...a.props(s),...c.props(g),...m.props(d),...R.props(l)}})})]},s))]},g))]},d))]},l))})},q=(e,t)=>{if(e)switch(t){case"default":return f.GRAY_SCALE_LIGHT.gray11;case"danger":return f.MAIN_COLORS_LIGHT.red;case"blue":return f.MAIN_COLORS_LIGHT.blue;default:return}},K=(e,t)=>{const{container:n}=t.parameters,A=t.args.inverted,a=t.args.accent,c=q(A,a);return o.jsx(h,{width:n?.width,height:n?.height,backgroundColor:c,children:o.jsx(e,{})})},C=e=>typeof e!="object"||e===null?!1:Object.keys(e).every(t=>typeof e[t]=="string"),y=(e,t)=>({pathname:e.replace(/:(\w+)/g,n=>t?.[n]??"")}),P=()=>o.jsx(h,{children:o.jsx(i.Outlet,{})}),W=({Story:e,args:t,initialEntries:n,initialIndex:A})=>i.createMemoryRouter(i.createRoutesFromElements(o.jsx(i.Route,{element:o.jsx(P,{}),children:o.jsx(i.Route,{path:t.routePath??"*",element:o.jsx(e,{})})})),{initialEntries:n,initialIndex:A}),_=(e,{args:t})=>o.jsx(i.RouterProvider,{router:W({Story:e,args:t,initialEntries:t.routePath&&typeof t.routePath=="string"&&(t.routeParams===void 0||C(t.routeParams))?[y(t.routePath,t.routeParams)]:[{pathname:"/"}]})}),N=(e,t)=>o.jsx(E.RecoilRoot,{children:o.jsx(e,{})}),Y=e=>o.jsx(i.MemoryRouter,{children:o.jsx(e,{})}),J="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAYABgAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABgAAAAAQAAAGAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAA/8AAEQgAFAAUAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMACwgICggHCwoJCg0MCw0RHBIRDw8RIhkaFBwpJCsqKCQnJy0yQDctMD0wJyc4TDk9Q0VISUgrNk9VTkZUQEdIRf/bAEMBDA0NEQ8RIRISIUUuJy5FRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRf/dAAQAAv/aAAwDAQACEQMRAD8Ava1q728otYY98joSCTgZrnbXWdTtrhrfVZXWLafmcAEkdgR/hVltQku9Q8+OIEBcGOT+ID0PY1ka1KH2u8ToqnPLbmIqG7u6LtbQ7RXBRec4Uck9eKXcPWsKDWVnhWSL5kYcFelSf2m3901POh8jP//QoyIAnTuKpXsY82NsksUyWPU5q/L9z8RVK++/F/uCsVsaEURwgA4HtT9x9TUcf3KfUGh//9k=";exports.AVATAR_URL_MOCK=J;exports.CatalogDecorator=L;exports.ComponentDecorator=K;exports.ComponentStorybookLayout=h;exports.ComponentWithRouterDecorator=_;exports.RecoilRootDecorator=N;exports.RouterDecorator=Y;exports.computeLocation=y;exports.isRouteParams=C;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as o, j as p } from "./emotion-react-jsx-runtime.browser.esm-BUNawPtg.js";
|
|
2
2
|
import n from "@emotion/styled";
|
|
3
|
-
import { T as B } from "./isValidCountryCode-
|
|
3
|
+
import { T as B } from "./isValidCountryCode-B7MxBtRC-DyiZn2sl.js";
|
|
4
4
|
import { isString as C, isNumber as E } from "@sniptt/guards";
|
|
5
5
|
import { createMemoryRouter as Q, RouterProvider as x, createRoutesFromElements as w, Route as R, Outlet as U, MemoryRouter as S } from "react-router-dom";
|
|
6
|
-
import { M as u, G as V } from "./MainColorsLight
|
|
6
|
+
import { M as u, G as V } from "./MainColorsLight--0X05KcO.js";
|
|
7
7
|
import { RecoilRoot as F } from "recoil";
|
|
8
8
|
const j = /* @__PURE__ */ n("div", {
|
|
9
9
|
target: "efy8rjs0"
|