@activecollab/components 2.0.601 → 2.0.602
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/cjs/presentation/appsAndIntegrations/layout.js +1 -0
- package/dist/cjs/presentation/appsAndIntegrations/layout.js.map +1 -1
- package/dist/esm/presentation/appsAndIntegrations/layout.d.ts +1 -0
- package/dist/esm/presentation/appsAndIntegrations/layout.d.ts.map +1 -1
- package/dist/esm/presentation/appsAndIntegrations/layout.js +1 -0
- package/dist/esm/presentation/appsAndIntegrations/layout.js.map +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ var LOGO = exports.LOGO = {
|
|
|
26
26
|
quickbooks: "".concat(IMG, "/integrations/quickbooks.png"),
|
|
27
27
|
github: "".concat(IMG, "/integrations/github.png"),
|
|
28
28
|
gitlab: "".concat(IMG, "/integrations/gitlab.png"),
|
|
29
|
+
bitbucket: "".concat(IMG, "/integrations/bitbucket.png"),
|
|
29
30
|
repositories: "".concat(IMG, "/integrations/git-logo.png"),
|
|
30
31
|
apiTokens: "".concat(IMG, "/integrations/api_tokens.png"),
|
|
31
32
|
mcp: "".concat(IMG, "/integrations/mcp-server.png"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","names":["_react","_interopRequireDefault","require","_styledComponents","_IconButton","_Icons","_List","_Paper","_Typography","_shared","e","__esModule","default","IMG","exports","LOGO","slack","concat","quickbooks","github","gitlab","repositories","apiTokens","mcp","zapier","webhooks","stripe","paypal","StyledSettingsHeader","styled","div","withConfig","displayName","componentId","SM","MD","SettingsHeader","_ref","title","back","createElement","className","IconButton","variant","ArrowLeftIcon","Title2","Header2","DetailContent","DetailPaper","Paper","IntegrationHeader","FullWidthSeparator","ListSeparator"],"sources":["../../../../src/presentation/appsAndIntegrations/layout.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { IconButton } from \"../../components/IconButton\";\nimport { ArrowLeftIcon } from \"../../components/Icons\";\nimport { ListSeparator } from \"../../components/List\";\nimport { Paper } from \"../../components/Paper\";\nimport { Header2, Title2 } from \"../../components/Typography\";\nimport { MD, SM } from \"../shared\";\n\n/* ------------------------------------------------------------------ */\n/* Brand assets */\n/* The real ActiveCollab PNGs are copied into `public/assets/...` and */\n/* served by Storybook via the `staticDirs` entry in */\n/* `.storybook/main.js`, so the logos match the app 1:1. */\n/* ------------------------------------------------------------------ */\n\nexport const IMG = \"/assets/system/images\";\n\nexport const LOGO = {\n slack: `${IMG}/integrations/slack.png`,\n quickbooks: `${IMG}/integrations/quickbooks.png`,\n github: `${IMG}/integrations/github.png`,\n gitlab: `${IMG}/integrations/gitlab.png`,\n repositories: `${IMG}/integrations/git-logo.png`,\n apiTokens: `${IMG}/integrations/api_tokens.png`,\n mcp: `${IMG}/integrations/mcp-server.png`,\n zapier: `${IMG}/integrations/zapier.png`,\n webhooks: `${IMG}/integrations/webhooks.png`,\n stripe: `${IMG}/integrations/stripe.png`,\n paypal: `${IMG}/integrations/paypal.png`,\n};\n\n/* ------------------------------------------------------------------ */\n/* Page header (mirrors PageHeader.jsx + BackButton.js) */\n/* ------------------------------------------------------------------ */\n\nconst StyledSettingsHeader = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 12px 0;\n width: 100%;\n height: 40px;\n flex-shrink: 0;\n\n .header-left {\n display: flex;\n align-items: center;\n width: 100%;\n max-width: 100%;\n\n @media (min-width: ${SM}) {\n min-width: 0;\n }\n }\n\n .back-button {\n flex-shrink: 0;\n margin-right: 4px;\n\n @media (min-width: ${MD}) {\n margin-right: 8px;\n }\n }\n\n .page-title-desktop {\n display: none;\n margin-right: 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: block;\n }\n }\n\n .page-title-mobile {\n display: block;\n margin-right: 8px;\n font-weight: 300;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: none;\n }\n }\n\n .page-header-spacer {\n display: none;\n height: 100%;\n width: 208px;\n flex-shrink: 0;\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n }\n`;\n\ninterface SettingsHeaderProps {\n title: string;\n /** Show the back arrow (detail pages reached from the index). */\n back?: boolean;\n}\n\nexport const SettingsHeader = ({\n title,\n back,\n}: SettingsHeaderProps): ReactElement => (\n <StyledSettingsHeader>\n <div className=\"header-left\">\n {back ? (\n <IconButton variant=\"text gray\" className=\"back-button\">\n <ArrowLeftIcon />\n </IconButton>\n ) : null}\n <Title2 className=\"page-title-desktop\">{title}</Title2>\n <Header2 className=\"page-title-mobile\">{title}</Header2>\n </div>\n <div className=\"page-header-spacer\" />\n </StyledSettingsHeader>\n);\n\n/* ------------------------------------------------------------------ */\n/* Integration detail page layout */\n/* ------------------------------------------------------------------ */\n\n/** Page body wrapper for a detail page — 850px column like the app Page. */\nexport const DetailContent = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n width: 100%;\n max-width: 850px;\n`;\n\n/** The white card that holds the whole integration screen. */\nexport const DetailPaper = styled(Paper)`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 24px 32px;\n margin-bottom: 32px;\n width: 100%;\n`;\n\n/* --- Integration header (mirrors IntegrationPageHeader.jsx) -------- */\n\nexport const IntegrationHeader = styled.div`\n display: flex;\n justify-content: space-between;\n gap: 16px;\n\n .ih-text {\n display: flex;\n flex-direction: column;\n gap: 16px;\n max-width: 646px;\n }\n\n &.wide .ih-text {\n max-width: 720px;\n }\n\n .ih-desc {\n text-wrap: pretty;\n }\n\n .ih-logo {\n display: flex;\n align-items: flex-end;\n padding: 0 8px;\n flex-shrink: 0;\n }\n\n .ih-logo img {\n width: 64px;\n height: 64px;\n }\n`;\n\nexport const FullWidthSeparator = styled(ListSeparator)`\n margin: 0;\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAAmC,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnC;AACA;AACA;AACA;AACA;AACA;;AAEO,IAAMG,GAAG,GAAAC,OAAA,CAAAD,GAAA,GAAG,uBAAuB;AAEnC,IAAME,IAAI,GAAAD,OAAA,CAAAC,IAAA,GAAG;EAClBC,KAAK,KAAAC,MAAA,CAAKJ,GAAG,4BAAyB;EACtCK,UAAU,KAAAD,MAAA,CAAKJ,GAAG,iCAA8B;EAChDM,MAAM,KAAAF,MAAA,CAAKJ,GAAG,6BAA0B;EACxCO,MAAM,KAAAH,MAAA,CAAKJ,GAAG,6BAA0B;EACxCQ,
|
|
1
|
+
{"version":3,"file":"layout.js","names":["_react","_interopRequireDefault","require","_styledComponents","_IconButton","_Icons","_List","_Paper","_Typography","_shared","e","__esModule","default","IMG","exports","LOGO","slack","concat","quickbooks","github","gitlab","bitbucket","repositories","apiTokens","mcp","zapier","webhooks","stripe","paypal","StyledSettingsHeader","styled","div","withConfig","displayName","componentId","SM","MD","SettingsHeader","_ref","title","back","createElement","className","IconButton","variant","ArrowLeftIcon","Title2","Header2","DetailContent","DetailPaper","Paper","IntegrationHeader","FullWidthSeparator","ListSeparator"],"sources":["../../../../src/presentation/appsAndIntegrations/layout.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { IconButton } from \"../../components/IconButton\";\nimport { ArrowLeftIcon } from \"../../components/Icons\";\nimport { ListSeparator } from \"../../components/List\";\nimport { Paper } from \"../../components/Paper\";\nimport { Header2, Title2 } from \"../../components/Typography\";\nimport { MD, SM } from \"../shared\";\n\n/* ------------------------------------------------------------------ */\n/* Brand assets */\n/* The real ActiveCollab PNGs are copied into `public/assets/...` and */\n/* served by Storybook via the `staticDirs` entry in */\n/* `.storybook/main.js`, so the logos match the app 1:1. */\n/* ------------------------------------------------------------------ */\n\nexport const IMG = \"/assets/system/images\";\n\nexport const LOGO = {\n slack: `${IMG}/integrations/slack.png`,\n quickbooks: `${IMG}/integrations/quickbooks.png`,\n github: `${IMG}/integrations/github.png`,\n gitlab: `${IMG}/integrations/gitlab.png`,\n bitbucket: `${IMG}/integrations/bitbucket.png`,\n repositories: `${IMG}/integrations/git-logo.png`,\n apiTokens: `${IMG}/integrations/api_tokens.png`,\n mcp: `${IMG}/integrations/mcp-server.png`,\n zapier: `${IMG}/integrations/zapier.png`,\n webhooks: `${IMG}/integrations/webhooks.png`,\n stripe: `${IMG}/integrations/stripe.png`,\n paypal: `${IMG}/integrations/paypal.png`,\n};\n\n/* ------------------------------------------------------------------ */\n/* Page header (mirrors PageHeader.jsx + BackButton.js) */\n/* ------------------------------------------------------------------ */\n\nconst StyledSettingsHeader = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 12px 0;\n width: 100%;\n height: 40px;\n flex-shrink: 0;\n\n .header-left {\n display: flex;\n align-items: center;\n width: 100%;\n max-width: 100%;\n\n @media (min-width: ${SM}) {\n min-width: 0;\n }\n }\n\n .back-button {\n flex-shrink: 0;\n margin-right: 4px;\n\n @media (min-width: ${MD}) {\n margin-right: 8px;\n }\n }\n\n .page-title-desktop {\n display: none;\n margin-right: 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: block;\n }\n }\n\n .page-title-mobile {\n display: block;\n margin-right: 8px;\n font-weight: 300;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: none;\n }\n }\n\n .page-header-spacer {\n display: none;\n height: 100%;\n width: 208px;\n flex-shrink: 0;\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n }\n`;\n\ninterface SettingsHeaderProps {\n title: string;\n /** Show the back arrow (detail pages reached from the index). */\n back?: boolean;\n}\n\nexport const SettingsHeader = ({\n title,\n back,\n}: SettingsHeaderProps): ReactElement => (\n <StyledSettingsHeader>\n <div className=\"header-left\">\n {back ? (\n <IconButton variant=\"text gray\" className=\"back-button\">\n <ArrowLeftIcon />\n </IconButton>\n ) : null}\n <Title2 className=\"page-title-desktop\">{title}</Title2>\n <Header2 className=\"page-title-mobile\">{title}</Header2>\n </div>\n <div className=\"page-header-spacer\" />\n </StyledSettingsHeader>\n);\n\n/* ------------------------------------------------------------------ */\n/* Integration detail page layout */\n/* ------------------------------------------------------------------ */\n\n/** Page body wrapper for a detail page — 850px column like the app Page. */\nexport const DetailContent = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n width: 100%;\n max-width: 850px;\n`;\n\n/** The white card that holds the whole integration screen. */\nexport const DetailPaper = styled(Paper)`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 24px 32px;\n margin-bottom: 32px;\n width: 100%;\n`;\n\n/* --- Integration header (mirrors IntegrationPageHeader.jsx) -------- */\n\nexport const IntegrationHeader = styled.div`\n display: flex;\n justify-content: space-between;\n gap: 16px;\n\n .ih-text {\n display: flex;\n flex-direction: column;\n gap: 16px;\n max-width: 646px;\n }\n\n &.wide .ih-text {\n max-width: 720px;\n }\n\n .ih-desc {\n text-wrap: pretty;\n }\n\n .ih-logo {\n display: flex;\n align-items: flex-end;\n padding: 0 8px;\n flex-shrink: 0;\n }\n\n .ih-logo img {\n width: 64px;\n height: 64px;\n }\n`;\n\nexport const FullWidthSeparator = styled(ListSeparator)`\n margin: 0;\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,iBAA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,CAAAqC,iBAAA,GAAGrB,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2SA+B1C;AAEM,IAAMkB,kBAAkB,GAAAtC,OAAA,CAAAsC,kBAAA,GAAG,IAAAtB,yBAAM,EAACuB,mBAAa,CAAC,CAAArB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iBAEtD","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/presentation/appsAndIntegrations/layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAkB5C,eAAO,MAAM,GAAG,0BAA0B,CAAC;AAE3C,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/presentation/appsAndIntegrations/layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAkB5C,eAAO,MAAM,GAAG,0BAA0B,CAAC;AAE3C,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAahB,CAAC;AAwEF,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,cAAc,GAAI,kBAG5B,mBAAmB,KAAG,YAaxB,CAAC;AAMF,4EAA4E;AAC5E,eAAO,MAAM,aAAa,oEAMzB,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,WAAW,wMAQvB,CAAC;AAIF,eAAO,MAAM,iBAAiB,oEA+B7B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;kBAE9B,CAAC"}
|
|
@@ -20,6 +20,7 @@ export const LOGO = {
|
|
|
20
20
|
quickbooks: IMG + "/integrations/quickbooks.png",
|
|
21
21
|
github: IMG + "/integrations/github.png",
|
|
22
22
|
gitlab: IMG + "/integrations/gitlab.png",
|
|
23
|
+
bitbucket: IMG + "/integrations/bitbucket.png",
|
|
23
24
|
repositories: IMG + "/integrations/git-logo.png",
|
|
24
25
|
apiTokens: IMG + "/integrations/api_tokens.png",
|
|
25
26
|
mcp: IMG + "/integrations/mcp-server.png",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","names":["React","styled","IconButton","ArrowLeftIcon","ListSeparator","Paper","Header2","Title2","MD","SM","IMG","LOGO","slack","quickbooks","github","gitlab","repositories","apiTokens","mcp","zapier","webhooks","stripe","paypal","StyledSettingsHeader","div","withConfig","displayName","componentId","SettingsHeader","_ref","title","back","createElement","className","variant","DetailContent","DetailPaper","IntegrationHeader","FullWidthSeparator"],"sources":["../../../../src/presentation/appsAndIntegrations/layout.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { IconButton } from \"../../components/IconButton\";\nimport { ArrowLeftIcon } from \"../../components/Icons\";\nimport { ListSeparator } from \"../../components/List\";\nimport { Paper } from \"../../components/Paper\";\nimport { Header2, Title2 } from \"../../components/Typography\";\nimport { MD, SM } from \"../shared\";\n\n/* ------------------------------------------------------------------ */\n/* Brand assets */\n/* The real ActiveCollab PNGs are copied into `public/assets/...` and */\n/* served by Storybook via the `staticDirs` entry in */\n/* `.storybook/main.js`, so the logos match the app 1:1. */\n/* ------------------------------------------------------------------ */\n\nexport const IMG = \"/assets/system/images\";\n\nexport const LOGO = {\n slack: `${IMG}/integrations/slack.png`,\n quickbooks: `${IMG}/integrations/quickbooks.png`,\n github: `${IMG}/integrations/github.png`,\n gitlab: `${IMG}/integrations/gitlab.png`,\n repositories: `${IMG}/integrations/git-logo.png`,\n apiTokens: `${IMG}/integrations/api_tokens.png`,\n mcp: `${IMG}/integrations/mcp-server.png`,\n zapier: `${IMG}/integrations/zapier.png`,\n webhooks: `${IMG}/integrations/webhooks.png`,\n stripe: `${IMG}/integrations/stripe.png`,\n paypal: `${IMG}/integrations/paypal.png`,\n};\n\n/* ------------------------------------------------------------------ */\n/* Page header (mirrors PageHeader.jsx + BackButton.js) */\n/* ------------------------------------------------------------------ */\n\nconst StyledSettingsHeader = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 12px 0;\n width: 100%;\n height: 40px;\n flex-shrink: 0;\n\n .header-left {\n display: flex;\n align-items: center;\n width: 100%;\n max-width: 100%;\n\n @media (min-width: ${SM}) {\n min-width: 0;\n }\n }\n\n .back-button {\n flex-shrink: 0;\n margin-right: 4px;\n\n @media (min-width: ${MD}) {\n margin-right: 8px;\n }\n }\n\n .page-title-desktop {\n display: none;\n margin-right: 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: block;\n }\n }\n\n .page-title-mobile {\n display: block;\n margin-right: 8px;\n font-weight: 300;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: none;\n }\n }\n\n .page-header-spacer {\n display: none;\n height: 100%;\n width: 208px;\n flex-shrink: 0;\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n }\n`;\n\ninterface SettingsHeaderProps {\n title: string;\n /** Show the back arrow (detail pages reached from the index). */\n back?: boolean;\n}\n\nexport const SettingsHeader = ({\n title,\n back,\n}: SettingsHeaderProps): ReactElement => (\n <StyledSettingsHeader>\n <div className=\"header-left\">\n {back ? (\n <IconButton variant=\"text gray\" className=\"back-button\">\n <ArrowLeftIcon />\n </IconButton>\n ) : null}\n <Title2 className=\"page-title-desktop\">{title}</Title2>\n <Header2 className=\"page-title-mobile\">{title}</Header2>\n </div>\n <div className=\"page-header-spacer\" />\n </StyledSettingsHeader>\n);\n\n/* ------------------------------------------------------------------ */\n/* Integration detail page layout */\n/* ------------------------------------------------------------------ */\n\n/** Page body wrapper for a detail page — 850px column like the app Page. */\nexport const DetailContent = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n width: 100%;\n max-width: 850px;\n`;\n\n/** The white card that holds the whole integration screen. */\nexport const DetailPaper = styled(Paper)`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 24px 32px;\n margin-bottom: 32px;\n width: 100%;\n`;\n\n/* --- Integration header (mirrors IntegrationPageHeader.jsx) -------- */\n\nexport const IntegrationHeader = styled.div`\n display: flex;\n justify-content: space-between;\n gap: 16px;\n\n .ih-text {\n display: flex;\n flex-direction: column;\n gap: 16px;\n max-width: 646px;\n }\n\n &.wide .ih-text {\n max-width: 720px;\n }\n\n .ih-desc {\n text-wrap: pretty;\n }\n\n .ih-logo {\n display: flex;\n align-items: flex-end;\n padding: 0 8px;\n flex-shrink: 0;\n }\n\n .ih-logo img {\n width: 64px;\n height: 64px;\n }\n`;\n\nexport const FullWidthSeparator = styled(ListSeparator)`\n margin: 0;\n`;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAwB,OAAO;AAE3C,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,OAAO,EAAEC,MAAM,QAAQ,6BAA6B;AAC7D,SAASC,EAAE,EAAEC,EAAE,QAAQ,WAAW;;AAElC;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,GAAG,GAAG,uBAAuB;AAE1C,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAKF,GAAG,4BAAyB;EACtCG,UAAU,EAAKH,GAAG,iCAA8B;EAChDI,MAAM,EAAKJ,GAAG,6BAA0B;EACxCK,MAAM,EAAKL,GAAG,6BAA0B;EACxCM,
|
|
1
|
+
{"version":3,"file":"layout.js","names":["React","styled","IconButton","ArrowLeftIcon","ListSeparator","Paper","Header2","Title2","MD","SM","IMG","LOGO","slack","quickbooks","github","gitlab","bitbucket","repositories","apiTokens","mcp","zapier","webhooks","stripe","paypal","StyledSettingsHeader","div","withConfig","displayName","componentId","SettingsHeader","_ref","title","back","createElement","className","variant","DetailContent","DetailPaper","IntegrationHeader","FullWidthSeparator"],"sources":["../../../../src/presentation/appsAndIntegrations/layout.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { IconButton } from \"../../components/IconButton\";\nimport { ArrowLeftIcon } from \"../../components/Icons\";\nimport { ListSeparator } from \"../../components/List\";\nimport { Paper } from \"../../components/Paper\";\nimport { Header2, Title2 } from \"../../components/Typography\";\nimport { MD, SM } from \"../shared\";\n\n/* ------------------------------------------------------------------ */\n/* Brand assets */\n/* The real ActiveCollab PNGs are copied into `public/assets/...` and */\n/* served by Storybook via the `staticDirs` entry in */\n/* `.storybook/main.js`, so the logos match the app 1:1. */\n/* ------------------------------------------------------------------ */\n\nexport const IMG = \"/assets/system/images\";\n\nexport const LOGO = {\n slack: `${IMG}/integrations/slack.png`,\n quickbooks: `${IMG}/integrations/quickbooks.png`,\n github: `${IMG}/integrations/github.png`,\n gitlab: `${IMG}/integrations/gitlab.png`,\n bitbucket: `${IMG}/integrations/bitbucket.png`,\n repositories: `${IMG}/integrations/git-logo.png`,\n apiTokens: `${IMG}/integrations/api_tokens.png`,\n mcp: `${IMG}/integrations/mcp-server.png`,\n zapier: `${IMG}/integrations/zapier.png`,\n webhooks: `${IMG}/integrations/webhooks.png`,\n stripe: `${IMG}/integrations/stripe.png`,\n paypal: `${IMG}/integrations/paypal.png`,\n};\n\n/* ------------------------------------------------------------------ */\n/* Page header (mirrors PageHeader.jsx + BackButton.js) */\n/* ------------------------------------------------------------------ */\n\nconst StyledSettingsHeader = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 12px 0;\n width: 100%;\n height: 40px;\n flex-shrink: 0;\n\n .header-left {\n display: flex;\n align-items: center;\n width: 100%;\n max-width: 100%;\n\n @media (min-width: ${SM}) {\n min-width: 0;\n }\n }\n\n .back-button {\n flex-shrink: 0;\n margin-right: 4px;\n\n @media (min-width: ${MD}) {\n margin-right: 8px;\n }\n }\n\n .page-title-desktop {\n display: none;\n margin-right: 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: block;\n }\n }\n\n .page-title-mobile {\n display: block;\n margin-right: 8px;\n font-weight: 300;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: none;\n }\n }\n\n .page-header-spacer {\n display: none;\n height: 100%;\n width: 208px;\n flex-shrink: 0;\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n }\n`;\n\ninterface SettingsHeaderProps {\n title: string;\n /** Show the back arrow (detail pages reached from the index). */\n back?: boolean;\n}\n\nexport const SettingsHeader = ({\n title,\n back,\n}: SettingsHeaderProps): ReactElement => (\n <StyledSettingsHeader>\n <div className=\"header-left\">\n {back ? (\n <IconButton variant=\"text gray\" className=\"back-button\">\n <ArrowLeftIcon />\n </IconButton>\n ) : null}\n <Title2 className=\"page-title-desktop\">{title}</Title2>\n <Header2 className=\"page-title-mobile\">{title}</Header2>\n </div>\n <div className=\"page-header-spacer\" />\n </StyledSettingsHeader>\n);\n\n/* ------------------------------------------------------------------ */\n/* Integration detail page layout */\n/* ------------------------------------------------------------------ */\n\n/** Page body wrapper for a detail page — 850px column like the app Page. */\nexport const DetailContent = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n width: 100%;\n max-width: 850px;\n`;\n\n/** The white card that holds the whole integration screen. */\nexport const DetailPaper = styled(Paper)`\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 24px 32px;\n margin-bottom: 32px;\n width: 100%;\n`;\n\n/* --- Integration header (mirrors IntegrationPageHeader.jsx) -------- */\n\nexport const IntegrationHeader = styled.div`\n display: flex;\n justify-content: space-between;\n gap: 16px;\n\n .ih-text {\n display: flex;\n flex-direction: column;\n gap: 16px;\n max-width: 646px;\n }\n\n &.wide .ih-text {\n max-width: 720px;\n }\n\n .ih-desc {\n text-wrap: pretty;\n }\n\n .ih-logo {\n display: flex;\n align-items: flex-end;\n padding: 0 8px;\n flex-shrink: 0;\n }\n\n .ih-logo img {\n width: 64px;\n height: 64px;\n }\n`;\n\nexport const FullWidthSeparator = styled(ListSeparator)`\n margin: 0;\n`;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAwB,OAAO;AAE3C,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,OAAO,EAAEC,MAAM,QAAQ,6BAA6B;AAC7D,SAASC,EAAE,EAAEC,EAAE,QAAQ,WAAW;;AAElC;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,GAAG,GAAG,uBAAuB;AAE1C,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAKF,GAAG,4BAAyB;EACtCG,UAAU,EAAKH,GAAG,iCAA8B;EAChDI,MAAM,EAAKJ,GAAG,6BAA0B;EACxCK,MAAM,EAAKL,GAAG,6BAA0B;EACxCM,SAAS,EAAKN,GAAG,gCAA6B;EAC9CO,YAAY,EAAKP,GAAG,+BAA4B;EAChDQ,SAAS,EAAKR,GAAG,iCAA8B;EAC/CS,GAAG,EAAKT,GAAG,iCAA8B;EACzCU,MAAM,EAAKV,GAAG,6BAA0B;EACxCW,QAAQ,EAAKX,GAAG,+BAA4B;EAC5CY,MAAM,EAAKZ,GAAG,6BAA0B;EACxCa,MAAM,EAAKb,GAAG;AAChB,CAAC;;AAED;AACA;AACA;;AAEA,MAAMc,oBAAoB,GAAGvB,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,muBAednB,EAAE,EASFD,EA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