node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,125 @@
'use strict';
var jsxRuntime = require('react/jsx-runtime');
var React = require('react');
var designSystem = require('@strapi/design-system');
var icons = require('@strapi/icons');
var reactRouterDom = require('react-router-dom');
var styledComponents = require('styled-components');
var FolderCard$1 = require('../contexts/FolderCard.js');
function _interopNamespaceDefault(e) {
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n.default = e;
return Object.freeze(n);
}
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
const FauxClickWrapper = styledComponents.styled.button`
height: 100%;
left: 0;
position: absolute;
opacity: 0;
top: 0;
width: 100%;
&:hover,
&:focus {
text-decoration: none;
}
`;
const StyledFolder = styledComponents.styled(icons.Folder)`
path {
fill: currentColor;
}
`;
const CardActionDisplay = styledComponents.styled(designSystem.Box)`
display: none;
`;
const Card = styledComponents.styled(designSystem.Box)`
&:hover,
&:focus-within {
${CardActionDisplay} {
display: ${({ $isCardActions })=>$isCardActions ? 'block' : ''};
}
}
`;
const FolderCard = /*#__PURE__*/ React__namespace.forwardRef(({ children, startAction = null, cardActions = null, ariaLabel, onClick, to, ...props }, ref)=>{
const generatedId = React__namespace.useId();
const fodlerCtxValue = React__namespace.useMemo(()=>({
id: generatedId
}), [
generatedId
]);
return /*#__PURE__*/ jsxRuntime.jsx(FolderCard$1.FolderCardContext.Provider, {
value: fodlerCtxValue,
children: /*#__PURE__*/ jsxRuntime.jsxs(Card, {
position: "relative",
tabIndex: 0,
$isCardActions: !!cardActions,
ref: ref,
...props,
children: [
/*#__PURE__*/ jsxRuntime.jsx(FauxClickWrapper, {
to: to || undefined,
as: to ? reactRouterDom.NavLink : 'button',
type: to ? undefined : 'button',
onClick: onClick,
tabIndex: -1,
"aria-label": ariaLabel,
"aria-hidden": true
}),
/*#__PURE__*/ jsxRuntime.jsxs(designSystem.Flex, {
hasRadius: true,
borderStyle: "solid",
borderWidth: "1px",
borderColor: "neutral150",
background: "neutral0",
shadow: "tableShadow",
padding: 3,
gap: 2,
cursor: "pointer",
children: [
startAction,
/*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
hasRadius: true,
background: "secondary100",
color: "secondary500",
paddingBottom: 2,
paddingLeft: 3,
paddingRight: 3,
paddingTop: 2,
children: /*#__PURE__*/ jsxRuntime.jsx(StyledFolder, {
width: "2.4rem",
height: "2.4rem"
})
}),
children,
/*#__PURE__*/ jsxRuntime.jsx(CardActionDisplay, {
children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.CardAction, {
right: 4,
position: "end",
children: cardActions
})
})
]
})
]
})
});
});
exports.FolderCard = FolderCard;
//# sourceMappingURL=FolderCard.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,104 @@
import { jsx, jsxs } from 'react/jsx-runtime';
import * as React from 'react';
import { Box, Flex, CardAction } from '@strapi/design-system';
import { Folder } from '@strapi/icons';
import { NavLink } from 'react-router-dom';
import { styled } from 'styled-components';
import { FolderCardContext } from '../contexts/FolderCard.mjs';
const FauxClickWrapper = styled.button`
height: 100%;
left: 0;
position: absolute;
opacity: 0;
top: 0;
width: 100%;
&:hover,
&:focus {
text-decoration: none;
}
`;
const StyledFolder = styled(Folder)`
path {
fill: currentColor;
}
`;
const CardActionDisplay = styled(Box)`
display: none;
`;
const Card = styled(Box)`
&:hover,
&:focus-within {
${CardActionDisplay} {
display: ${({ $isCardActions })=>$isCardActions ? 'block' : ''};
}
}
`;
const FolderCard = /*#__PURE__*/ React.forwardRef(({ children, startAction = null, cardActions = null, ariaLabel, onClick, to, ...props }, ref)=>{
const generatedId = React.useId();
const fodlerCtxValue = React.useMemo(()=>({
id: generatedId
}), [
generatedId
]);
return /*#__PURE__*/ jsx(FolderCardContext.Provider, {
value: fodlerCtxValue,
children: /*#__PURE__*/ jsxs(Card, {
position: "relative",
tabIndex: 0,
$isCardActions: !!cardActions,
ref: ref,
...props,
children: [
/*#__PURE__*/ jsx(FauxClickWrapper, {
to: to || undefined,
as: to ? NavLink : 'button',
type: to ? undefined : 'button',
onClick: onClick,
tabIndex: -1,
"aria-label": ariaLabel,
"aria-hidden": true
}),
/*#__PURE__*/ jsxs(Flex, {
hasRadius: true,
borderStyle: "solid",
borderWidth: "1px",
borderColor: "neutral150",
background: "neutral0",
shadow: "tableShadow",
padding: 3,
gap: 2,
cursor: "pointer",
children: [
startAction,
/*#__PURE__*/ jsx(Box, {
hasRadius: true,
background: "secondary100",
color: "secondary500",
paddingBottom: 2,
paddingLeft: 3,
paddingRight: 3,
paddingTop: 2,
children: /*#__PURE__*/ jsx(StyledFolder, {
width: "2.4rem",
height: "2.4rem"
})
}),
children,
/*#__PURE__*/ jsx(CardActionDisplay, {
children: /*#__PURE__*/ jsx(CardAction, {
right: 4,
position: "end",
children: cardActions
})
})
]
})
]
})
});
});
export { FolderCard };
//# sourceMappingURL=FolderCard.mjs.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,26 @@
'use strict';
var jsxRuntime = require('react/jsx-runtime');
var designSystem = require('@strapi/design-system');
var styledComponents = require('styled-components');
var FolderCard = require('../contexts/FolderCard.js');
const StyledBox = styledComponents.styled(designSystem.Flex)`
user-select: none;
`;
const FolderCardBody = (props)=>{
const { id } = FolderCard.useFolderCard();
return /*#__PURE__*/ jsxRuntime.jsx(StyledBox, {
...props,
id: `${id}-title`,
"data-testid": `${id}-title`,
alignItems: "flex-start",
direction: "column",
maxWidth: "100%",
overflow: "hidden",
position: "relative"
});
};
exports.FolderCardBody = FolderCardBody;
//# sourceMappingURL=FolderCardBody.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FolderCardBody.js","sources":["../../../../../admin/src/components/FolderCard/FolderCardBody/FolderCardBody.tsx"],"sourcesContent":["import { Flex, FlexProps } from '@strapi/design-system';\nimport { styled } from 'styled-components';\n\nimport { useFolderCard } from '../contexts/FolderCard';\n\nconst StyledBox = styled(Flex)`\n user-select: none;\n`;\n\nexport const FolderCardBody = (props: FlexProps) => {\n const { id } = useFolderCard();\n\n return (\n <StyledBox\n {...props}\n id={`${id}-title`}\n data-testid={`${id}-title`}\n alignItems=\"flex-start\"\n direction=\"column\"\n maxWidth=\"100%\"\n overflow=\"hidden\"\n position=\"relative\"\n />\n );\n};\n"],"names":["StyledBox","styled","Flex","FolderCardBody","props","id","useFolderCard","_jsx","data-testid","alignItems","direction","maxWidth","overflow","position"],"mappings":";;;;;;;AAKA,MAAMA,SAAAA,GAAYC,uBAAOC,CAAAA,iBAAAA,CAAK;;AAE9B,CAAC;AAEM,MAAMC,iBAAiB,CAACC,KAAAA,GAAAA;IAC7B,MAAM,EAAEC,EAAE,EAAE,GAAGC,wBAAAA,EAAAA;AAEf,IAAA,qBACEC,cAACP,CAAAA,SAAAA,EAAAA;AACE,QAAA,GAAGI,KAAK;AACTC,QAAAA,EAAAA,EAAI,CAAC,EAAEA,EAAG,CAAA,MAAM,CAAC;AACjBG,QAAAA,aAAAA,EAAa,CAAC,EAAEH,EAAG,CAAA,MAAM,CAAC;QAC1BI,UAAW,EAAA,YAAA;QACXC,SAAU,EAAA,QAAA;QACVC,QAAS,EAAA,MAAA;QACTC,QAAS,EAAA,QAAA;QACTC,QAAS,EAAA;;AAGf;;;;"}

View File

@@ -0,0 +1,24 @@
import { jsx } from 'react/jsx-runtime';
import { Flex } from '@strapi/design-system';
import { styled } from 'styled-components';
import { useFolderCard } from '../contexts/FolderCard.mjs';
const StyledBox = styled(Flex)`
user-select: none;
`;
const FolderCardBody = (props)=>{
const { id } = useFolderCard();
return /*#__PURE__*/ jsx(StyledBox, {
...props,
id: `${id}-title`,
"data-testid": `${id}-title`,
alignItems: "flex-start",
direction: "column",
maxWidth: "100%",
overflow: "hidden",
position: "relative"
});
};
export { FolderCardBody };
//# sourceMappingURL=FolderCardBody.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FolderCardBody.mjs","sources":["../../../../../admin/src/components/FolderCard/FolderCardBody/FolderCardBody.tsx"],"sourcesContent":["import { Flex, FlexProps } from '@strapi/design-system';\nimport { styled } from 'styled-components';\n\nimport { useFolderCard } from '../contexts/FolderCard';\n\nconst StyledBox = styled(Flex)`\n user-select: none;\n`;\n\nexport const FolderCardBody = (props: FlexProps) => {\n const { id } = useFolderCard();\n\n return (\n <StyledBox\n {...props}\n id={`${id}-title`}\n data-testid={`${id}-title`}\n alignItems=\"flex-start\"\n direction=\"column\"\n maxWidth=\"100%\"\n overflow=\"hidden\"\n position=\"relative\"\n />\n );\n};\n"],"names":["StyledBox","styled","Flex","FolderCardBody","props","id","useFolderCard","_jsx","data-testid","alignItems","direction","maxWidth","overflow","position"],"mappings":";;;;;AAKA,MAAMA,SAAAA,GAAYC,MAAOC,CAAAA,IAAAA,CAAK;;AAE9B,CAAC;AAEM,MAAMC,iBAAiB,CAACC,KAAAA,GAAAA;IAC7B,MAAM,EAAEC,EAAE,EAAE,GAAGC,aAAAA,EAAAA;AAEf,IAAA,qBACEC,GAACP,CAAAA,SAAAA,EAAAA;AACE,QAAA,GAAGI,KAAK;AACTC,QAAAA,EAAAA,EAAI,CAAC,EAAEA,EAAG,CAAA,MAAM,CAAC;AACjBG,QAAAA,aAAAA,EAAa,CAAC,EAAEH,EAAG,CAAA,MAAM,CAAC;QAC1BI,UAAW,EAAA,YAAA;QACXC,SAAU,EAAA,QAAA;QACVC,QAAS,EAAA,MAAA;QACTC,QAAS,EAAA,QAAA;QACTC,QAAS,EAAA;;AAGf;;;;"}

View File

@@ -0,0 +1,40 @@
'use strict';
var jsxRuntime = require('react/jsx-runtime');
var designSystem = require('@strapi/design-system');
var reactRouterDom = require('react-router-dom');
var styledComponents = require('styled-components');
// TODO: find a better naming convention for the file that was an index file before
const BoxOutline = styledComponents.styled(designSystem.Box)`
&:focus {
outline: 2px solid ${({ theme })=>theme.colors.primary600};
outline-offset: -2px;
}
`;
const BoxTextDecoration = styledComponents.styled(BoxOutline)`
text-decoration: none;
`;
const FolderCardBodyAction = ({ to, ...props })=>{
if (to) {
return /*#__PURE__*/ jsxRuntime.jsx(BoxTextDecoration, {
// padding needed to give outline space to appear
// since FolderCardBody needs overflow hidden property
padding: 1,
tag: reactRouterDom.NavLink,
maxWidth: "100%",
to: to,
...props
});
}
return /*#__PURE__*/ jsxRuntime.jsx(BoxOutline, {
padding: 1,
tag: "button",
type: "button",
maxWidth: "100%",
...props
});
};
exports.FolderCardBodyAction = FolderCardBodyAction;
//# sourceMappingURL=FolderCardBodyAction.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FolderCardBodyAction.js","sources":["../../../../../admin/src/components/FolderCard/FolderCardBodyAction/FolderCardBodyAction.tsx"],"sourcesContent":["// TODO: find a better naming convention for the file that was an index file before\nimport { Box, BoxProps } from '@strapi/design-system';\nimport { NavLink, LinkProps } from 'react-router-dom';\nimport { styled } from 'styled-components';\n\nconst BoxOutline = styled(Box)`\n &:focus {\n outline: 2px solid ${({ theme }) => theme.colors.primary600};\n outline-offset: -2px;\n }\n`;\n\nconst BoxTextDecoration = styled(BoxOutline)`\n text-decoration: none;\n`;\n\ninterface FolderCardBodyActionProps extends BoxProps {\n to?: LinkProps['to'];\n}\n\nexport const FolderCardBodyAction = ({ to, ...props }: FolderCardBodyActionProps) => {\n if (to) {\n return (\n <BoxTextDecoration\n // padding needed to give outline space to appear\n // since FolderCardBody needs overflow hidden property\n padding={1}\n tag={NavLink}\n maxWidth=\"100%\"\n to={to}\n {...props}\n />\n );\n }\n\n return <BoxOutline padding={1} tag=\"button\" type=\"button\" maxWidth=\"100%\" {...props} />;\n};\n"],"names":["BoxOutline","styled","Box","theme","colors","primary600","BoxTextDecoration","FolderCardBodyAction","to","props","_jsx","padding","tag","NavLink","maxWidth","type"],"mappings":";;;;;;;AAAA;AAKA,MAAMA,UAAAA,GAAaC,uBAAOC,CAAAA,gBAAAA,CAAI;;uBAEP,EAAE,CAAC,EAAEC,KAAK,EAAE,GAAKA,KAAMC,CAAAA,MAAM,CAACC,UAAU,CAAC;;;AAGhE,CAAC;AAED,MAAMC,iBAAAA,GAAoBL,uBAAOD,CAAAA,UAAAA,CAAW;;AAE5C,CAAC;MAMYO,oBAAuB,GAAA,CAAC,EAAEC,EAAE,EAAE,GAAGC,KAAkC,EAAA,GAAA;AAC9E,IAAA,IAAID,EAAI,EAAA;AACN,QAAA,qBACEE,cAACJ,CAAAA,iBAAAA,EAAAA;;;YAGCK,OAAS,EAAA,CAAA;YACTC,GAAKC,EAAAA,sBAAAA;YACLC,QAAS,EAAA,MAAA;YACTN,EAAIA,EAAAA,EAAAA;AACH,YAAA,GAAGC;;AAGV;AAEA,IAAA,qBAAOC,cAACV,CAAAA,UAAAA,EAAAA;QAAWW,OAAS,EAAA,CAAA;QAAGC,GAAI,EAAA,QAAA;QAASG,IAAK,EAAA,QAAA;QAASD,QAAS,EAAA,MAAA;AAAQ,QAAA,GAAGL;;AAChF;;;;"}

View File

@@ -0,0 +1,38 @@
import { jsx } from 'react/jsx-runtime';
import { Box } from '@strapi/design-system';
import { NavLink } from 'react-router-dom';
import { styled } from 'styled-components';
// TODO: find a better naming convention for the file that was an index file before
const BoxOutline = styled(Box)`
&:focus {
outline: 2px solid ${({ theme })=>theme.colors.primary600};
outline-offset: -2px;
}
`;
const BoxTextDecoration = styled(BoxOutline)`
text-decoration: none;
`;
const FolderCardBodyAction = ({ to, ...props })=>{
if (to) {
return /*#__PURE__*/ jsx(BoxTextDecoration, {
// padding needed to give outline space to appear
// since FolderCardBody needs overflow hidden property
padding: 1,
tag: NavLink,
maxWidth: "100%",
to: to,
...props
});
}
return /*#__PURE__*/ jsx(BoxOutline, {
padding: 1,
tag: "button",
type: "button",
maxWidth: "100%",
...props
});
};
export { FolderCardBodyAction };
//# sourceMappingURL=FolderCardBodyAction.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FolderCardBodyAction.mjs","sources":["../../../../../admin/src/components/FolderCard/FolderCardBodyAction/FolderCardBodyAction.tsx"],"sourcesContent":["// TODO: find a better naming convention for the file that was an index file before\nimport { Box, BoxProps } from '@strapi/design-system';\nimport { NavLink, LinkProps } from 'react-router-dom';\nimport { styled } from 'styled-components';\n\nconst BoxOutline = styled(Box)`\n &:focus {\n outline: 2px solid ${({ theme }) => theme.colors.primary600};\n outline-offset: -2px;\n }\n`;\n\nconst BoxTextDecoration = styled(BoxOutline)`\n text-decoration: none;\n`;\n\ninterface FolderCardBodyActionProps extends BoxProps {\n to?: LinkProps['to'];\n}\n\nexport const FolderCardBodyAction = ({ to, ...props }: FolderCardBodyActionProps) => {\n if (to) {\n return (\n <BoxTextDecoration\n // padding needed to give outline space to appear\n // since FolderCardBody needs overflow hidden property\n padding={1}\n tag={NavLink}\n maxWidth=\"100%\"\n to={to}\n {...props}\n />\n );\n }\n\n return <BoxOutline padding={1} tag=\"button\" type=\"button\" maxWidth=\"100%\" {...props} />;\n};\n"],"names":["BoxOutline","styled","Box","theme","colors","primary600","BoxTextDecoration","FolderCardBodyAction","to","props","_jsx","padding","tag","NavLink","maxWidth","type"],"mappings":";;;;;AAAA;AAKA,MAAMA,UAAAA,GAAaC,MAAOC,CAAAA,GAAAA,CAAI;;uBAEP,EAAE,CAAC,EAAEC,KAAK,EAAE,GAAKA,KAAMC,CAAAA,MAAM,CAACC,UAAU,CAAC;;;AAGhE,CAAC;AAED,MAAMC,iBAAAA,GAAoBL,MAAOD,CAAAA,UAAAA,CAAW;;AAE5C,CAAC;MAMYO,oBAAuB,GAAA,CAAC,EAAEC,EAAE,EAAE,GAAGC,KAAkC,EAAA,GAAA;AAC9E,IAAA,IAAID,EAAI,EAAA;AACN,QAAA,qBACEE,GAACJ,CAAAA,iBAAAA,EAAAA;;;YAGCK,OAAS,EAAA,CAAA;YACTC,GAAKC,EAAAA,OAAAA;YACLC,QAAS,EAAA,MAAA;YACTN,EAAIA,EAAAA,EAAAA;AACH,YAAA,GAAGC;;AAGV;AAEA,IAAA,qBAAOC,GAACV,CAAAA,UAAAA,EAAAA;QAAWW,OAAS,EAAA,CAAA;QAAGC,GAAI,EAAA,QAAA;QAASG,IAAK,EAAA,QAAA;QAASD,QAAS,EAAA,MAAA;AAAQ,QAAA,GAAGL;;AAChF;;;;"}

View File

@@ -0,0 +1,20 @@
'use strict';
var jsxRuntime = require('react/jsx-runtime');
var designSystem = require('@strapi/design-system');
var FolderCard = require('../contexts/FolderCard.js');
const FolderCardCheckbox = (props)=>{
const { id } = FolderCard.useFolderCard();
return /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
position: "relative",
zIndex: 2,
children: /*#__PURE__*/ jsxRuntime.jsx(designSystem.Checkbox, {
"aria-labelledby": `${id}-title`,
...props
})
});
};
exports.FolderCardCheckbox = FolderCardCheckbox;
//# sourceMappingURL=FolderCardCheckbox.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FolderCardCheckbox.js","sources":["../../../../../admin/src/components/FolderCard/FolderCardCheckbox/FolderCardCheckbox.tsx"],"sourcesContent":["import { Checkbox, Box, CheckboxProps } from '@strapi/design-system';\n\nimport { useFolderCard } from '../contexts/FolderCard';\n\nexport const FolderCardCheckbox = (props: CheckboxProps) => {\n const { id } = useFolderCard();\n\n return (\n <Box position=\"relative\" zIndex={2}>\n <Checkbox aria-labelledby={`${id}-title`} {...props} />\n </Box>\n );\n};\n"],"names":["FolderCardCheckbox","props","id","useFolderCard","_jsx","Box","position","zIndex","Checkbox","aria-labelledby"],"mappings":";;;;;;AAIO,MAAMA,qBAAqB,CAACC,KAAAA,GAAAA;IACjC,MAAM,EAAEC,EAAE,EAAE,GAAGC,wBAAAA,EAAAA;AAEf,IAAA,qBACEC,cAACC,CAAAA,gBAAAA,EAAAA;QAAIC,QAAS,EAAA,UAAA;QAAWC,MAAQ,EAAA,CAAA;AAC/B,QAAA,QAAA,gBAAAH,cAACI,CAAAA,qBAAAA,EAAAA;AAASC,YAAAA,iBAAAA,EAAiB,CAAC,EAAEP,EAAG,CAAA,MAAM,CAAC;AAAG,YAAA,GAAGD;;;AAGpD;;;;"}

View File

@@ -0,0 +1,18 @@
import { jsx } from 'react/jsx-runtime';
import { Box, Checkbox } from '@strapi/design-system';
import { useFolderCard } from '../contexts/FolderCard.mjs';
const FolderCardCheckbox = (props)=>{
const { id } = useFolderCard();
return /*#__PURE__*/ jsx(Box, {
position: "relative",
zIndex: 2,
children: /*#__PURE__*/ jsx(Checkbox, {
"aria-labelledby": `${id}-title`,
...props
})
});
};
export { FolderCardCheckbox };
//# sourceMappingURL=FolderCardCheckbox.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FolderCardCheckbox.mjs","sources":["../../../../../admin/src/components/FolderCard/FolderCardCheckbox/FolderCardCheckbox.tsx"],"sourcesContent":["import { Checkbox, Box, CheckboxProps } from '@strapi/design-system';\n\nimport { useFolderCard } from '../contexts/FolderCard';\n\nexport const FolderCardCheckbox = (props: CheckboxProps) => {\n const { id } = useFolderCard();\n\n return (\n <Box position=\"relative\" zIndex={2}>\n <Checkbox aria-labelledby={`${id}-title`} {...props} />\n </Box>\n );\n};\n"],"names":["FolderCardCheckbox","props","id","useFolderCard","_jsx","Box","position","zIndex","Checkbox","aria-labelledby"],"mappings":";;;;AAIO,MAAMA,qBAAqB,CAACC,KAAAA,GAAAA;IACjC,MAAM,EAAEC,EAAE,EAAE,GAAGC,aAAAA,EAAAA;AAEf,IAAA,qBACEC,GAACC,CAAAA,GAAAA,EAAAA;QAAIC,QAAS,EAAA,UAAA;QAAWC,MAAQ,EAAA,CAAA;AAC/B,QAAA,QAAA,gBAAAH,GAACI,CAAAA,QAAAA,EAAAA;AAASC,YAAAA,iBAAAA,EAAiB,CAAC,EAAEP,EAAG,CAAA,MAAM,CAAC;AAAG,YAAA,GAAGD;;;AAGpD;;;;"}

View File

@@ -0,0 +1,12 @@
'use strict';
var React = require('react');
const FolderCardContext = /*#__PURE__*/ React.createContext({});
function useFolderCard() {
return React.useContext(FolderCardContext);
}
exports.FolderCardContext = FolderCardContext;
exports.useFolderCard = useFolderCard;
//# sourceMappingURL=FolderCard.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FolderCard.js","sources":["../../../../../admin/src/components/FolderCard/contexts/FolderCard.tsx"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nexport const FolderCardContext = createContext<{\n id?: string;\n}>({});\n\nexport function useFolderCard() {\n return useContext(FolderCardContext);\n}\n"],"names":["FolderCardContext","createContext","useFolderCard","useContext"],"mappings":";;;;AAEaA,MAAAA,iBAAAA,iBAAoBC,mBAE9B,CAAA,EAAI;AAEA,SAASC,aAAAA,GAAAA;AACd,IAAA,OAAOC,gBAAWH,CAAAA,iBAAAA,CAAAA;AACpB;;;;;"}

View File

@@ -0,0 +1,9 @@
import { createContext, useContext } from 'react';
const FolderCardContext = /*#__PURE__*/ createContext({});
function useFolderCard() {
return useContext(FolderCardContext);
}
export { FolderCardContext, useFolderCard };
//# sourceMappingURL=FolderCard.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FolderCard.mjs","sources":["../../../../../admin/src/components/FolderCard/contexts/FolderCard.tsx"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nexport const FolderCardContext = createContext<{\n id?: string;\n}>({});\n\nexport function useFolderCard() {\n return useContext(FolderCardContext);\n}\n"],"names":["FolderCardContext","createContext","useFolderCard","useContext"],"mappings":";;AAEaA,MAAAA,iBAAAA,iBAAoBC,aAE9B,CAAA,EAAI;AAEA,SAASC,aAAAA,GAAAA;AACd,IAAA,OAAOC,UAAWH,CAAAA,iBAAAA,CAAAA;AACpB;;;;"}