jynko-kit 0.0.0-stage → 1.0.1
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/README.md +110 -2
- package/dist/components/atoms/AAvatar/AAvatar.d.ts +12 -0
- package/dist/components/atoms/AAvatar/AAvatar.d.ts.map +1 -0
- package/dist/components/atoms/AAvatar/AAvatar.styles.d.ts +7 -0
- package/dist/components/atoms/AAvatar/AAvatar.styles.d.ts.map +1 -0
- package/dist/components/atoms/AAvatar/index.d.ts +3 -0
- package/dist/components/atoms/AAvatar/index.d.ts.map +1 -0
- package/dist/components/atoms/AAvatar/types.d.ts +2 -0
- package/dist/components/atoms/AAvatar/types.d.ts.map +1 -0
- package/dist/components/atoms/ABadge/ABadge.d.ts +10 -0
- package/dist/components/atoms/ABadge/ABadge.d.ts.map +1 -0
- package/dist/components/atoms/ABadge/ABadge.styles.d.ts +8 -0
- package/dist/components/atoms/ABadge/ABadge.styles.d.ts.map +1 -0
- package/dist/components/atoms/ABadge/index.d.ts +3 -0
- package/dist/components/atoms/ABadge/index.d.ts.map +1 -0
- package/dist/components/atoms/ABadge/types.d.ts +3 -0
- package/dist/components/atoms/ABadge/types.d.ts.map +1 -0
- package/dist/components/atoms/AButton/AButton.d.ts +10 -0
- package/dist/components/atoms/AButton/AButton.d.ts.map +1 -0
- package/dist/components/atoms/AButton/AButton.styles.d.ts +15 -0
- package/dist/components/atoms/AButton/AButton.styles.d.ts.map +1 -0
- package/dist/components/atoms/AButton/index.d.ts +3 -0
- package/dist/components/atoms/AButton/index.d.ts.map +1 -0
- package/dist/components/atoms/AButton/types.d.ts +2 -0
- package/dist/components/atoms/AButton/types.d.ts.map +1 -0
- package/dist/components/atoms/AIcon/AIcon.d.ts +12 -0
- package/dist/components/atoms/AIcon/AIcon.d.ts.map +1 -0
- package/dist/components/atoms/AIcon/AIcon.styles.d.ts +8 -0
- package/dist/components/atoms/AIcon/AIcon.styles.d.ts.map +1 -0
- package/dist/components/atoms/AIcon/index.d.ts +3 -0
- package/dist/components/atoms/AIcon/index.d.ts.map +1 -0
- package/dist/components/atoms/AIconButton/AIconButton.d.ts +17 -0
- package/dist/components/atoms/AIconButton/AIconButton.d.ts.map +1 -0
- package/dist/components/atoms/AIconButton/AIconButton.styles.d.ts +11 -0
- package/dist/components/atoms/AIconButton/AIconButton.styles.d.ts.map +1 -0
- package/dist/components/atoms/AIconButton/index.d.ts +3 -0
- package/dist/components/atoms/AIconButton/index.d.ts.map +1 -0
- package/dist/components/atoms/AIconLink/AIconLink.d.ts +17 -0
- package/dist/components/atoms/AIconLink/AIconLink.d.ts.map +1 -0
- package/dist/components/atoms/AIconLink/AIconLink.styles.d.ts +11 -0
- package/dist/components/atoms/AIconLink/AIconLink.styles.d.ts.map +1 -0
- package/dist/components/atoms/AIconLink/index.d.ts +3 -0
- package/dist/components/atoms/AIconLink/index.d.ts.map +1 -0
- package/dist/components/atoms/AInput/AInput.d.ts +11 -0
- package/dist/components/atoms/AInput/AInput.d.ts.map +1 -0
- package/dist/components/atoms/AInput/AInput.styles.d.ts +26 -0
- package/dist/components/atoms/AInput/AInput.styles.d.ts.map +1 -0
- package/dist/components/atoms/AInput/index.d.ts +3 -0
- package/dist/components/atoms/AInput/index.d.ts.map +1 -0
- package/dist/components/atoms/ALink/ALink.d.ts +11 -0
- package/dist/components/atoms/ALink/ALink.d.ts.map +1 -0
- package/dist/components/atoms/ALink/ALink.styles.d.ts +8 -0
- package/dist/components/atoms/ALink/ALink.styles.d.ts.map +1 -0
- package/dist/components/atoms/ALink/index.d.ts +3 -0
- package/dist/components/atoms/ALink/index.d.ts.map +1 -0
- package/dist/components/atoms/ALogo/ALogo.d.ts +4 -0
- package/dist/components/atoms/ALogo/ALogo.d.ts.map +1 -0
- package/dist/components/atoms/ALogo/ALogo.styles.d.ts +9 -0
- package/dist/components/atoms/ALogo/ALogo.styles.d.ts.map +1 -0
- package/dist/components/atoms/ALogo/index.d.ts +3 -0
- package/dist/components/atoms/ALogo/index.d.ts.map +1 -0
- package/dist/components/atoms/ALogo/types.d.ts +8 -0
- package/dist/components/atoms/ALogo/types.d.ts.map +1 -0
- package/dist/components/atoms/ASearchInput/ASearchInput.d.ts +16 -0
- package/dist/components/atoms/ASearchInput/ASearchInput.d.ts.map +1 -0
- package/dist/components/atoms/ASearchInput/ASearchInput.styles.d.ts +22 -0
- package/dist/components/atoms/ASearchInput/ASearchInput.styles.d.ts.map +1 -0
- package/dist/components/atoms/ASearchInput/index.d.ts +3 -0
- package/dist/components/atoms/ASearchInput/index.d.ts.map +1 -0
- package/dist/components/atoms/ASection/ASection.d.ts +6 -0
- package/dist/components/atoms/ASection/ASection.d.ts.map +1 -0
- package/dist/components/atoms/ASection/ASection.styles.d.ts +6 -0
- package/dist/components/atoms/ASection/ASection.styles.d.ts.map +1 -0
- package/dist/components/atoms/ASection/index.d.ts +3 -0
- package/dist/components/atoms/ASection/index.d.ts.map +1 -0
- package/dist/components/atoms/ASelect/ASelect.d.ts +19 -0
- package/dist/components/atoms/ASelect/ASelect.d.ts.map +1 -0
- package/dist/components/atoms/ASelect/ASelect.styles.d.ts +38 -0
- package/dist/components/atoms/ASelect/ASelect.styles.d.ts.map +1 -0
- package/dist/components/atoms/ASelect/index.d.ts +3 -0
- package/dist/components/atoms/ASelect/index.d.ts.map +1 -0
- package/dist/components/atoms/ATextarea/ATextarea.d.ts +11 -0
- package/dist/components/atoms/ATextarea/ATextarea.d.ts.map +1 -0
- package/dist/components/atoms/ATextarea/ATextarea.styles.d.ts +20 -0
- package/dist/components/atoms/ATextarea/ATextarea.styles.d.ts.map +1 -0
- package/dist/components/atoms/ATextarea/index.d.ts +3 -0
- package/dist/components/atoms/ATextarea/index.d.ts.map +1 -0
- package/dist/components/atoms/ATypography/ATypography.d.ts +8 -0
- package/dist/components/atoms/ATypography/ATypography.d.ts.map +1 -0
- package/dist/components/atoms/ATypography/ATypography.styles.d.ts +8 -0
- package/dist/components/atoms/ATypography/ATypography.styles.d.ts.map +1 -0
- package/dist/components/atoms/ATypography/index.d.ts +3 -0
- package/dist/components/atoms/ATypography/index.d.ts.map +1 -0
- package/dist/components/atoms/index.d.ts +29 -0
- package/dist/components/atoms/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/molecules/MModal/MModal.d.ts +4 -0
- package/dist/components/molecules/MModal/MModal.d.ts.map +1 -0
- package/dist/components/molecules/MModal/MModal.styles.d.ts +19 -0
- package/dist/components/molecules/MModal/MModal.styles.d.ts.map +1 -0
- package/dist/components/molecules/MModal/index.d.ts +3 -0
- package/dist/components/molecules/MModal/index.d.ts.map +1 -0
- package/dist/components/molecules/MModal/types.d.ts +10 -0
- package/dist/components/molecules/MModal/types.d.ts.map +1 -0
- package/dist/components/molecules/MNavLinks/MNavLinks.d.ts +8 -0
- package/dist/components/molecules/MNavLinks/MNavLinks.d.ts.map +1 -0
- package/dist/components/molecules/MNavLinks/MNavLinks.styles.d.ts +7 -0
- package/dist/components/molecules/MNavLinks/MNavLinks.styles.d.ts.map +1 -0
- package/dist/components/molecules/MNavLinks/index.d.ts +3 -0
- package/dist/components/molecules/MNavLinks/index.d.ts.map +1 -0
- package/dist/components/molecules/MNavLinks/types.d.ts +22 -0
- package/dist/components/molecules/MNavLinks/types.d.ts.map +1 -0
- package/dist/components/molecules/MUserBadge/MUserBadge.d.ts +4 -0
- package/dist/components/molecules/MUserBadge/MUserBadge.d.ts.map +1 -0
- package/dist/components/molecules/MUserBadge/MUserBadge.styles.d.ts +4 -0
- package/dist/components/molecules/MUserBadge/MUserBadge.styles.d.ts.map +1 -0
- package/dist/components/molecules/MUserBadge/index.d.ts +3 -0
- package/dist/components/molecules/MUserBadge/index.d.ts.map +1 -0
- package/dist/components/molecules/MUserBadge/types.d.ts +11 -0
- package/dist/components/molecules/MUserBadge/types.d.ts.map +1 -0
- package/dist/components/molecules/index.d.ts +7 -0
- package/dist/components/molecules/index.d.ts.map +1 -0
- package/dist/components/organisms/OSidebar/OSidebar.d.ts +13 -0
- package/dist/components/organisms/OSidebar/OSidebar.d.ts.map +1 -0
- package/dist/components/organisms/OSidebar/OSidebar.styles.d.ts +22 -0
- package/dist/components/organisms/OSidebar/OSidebar.styles.d.ts.map +1 -0
- package/dist/components/organisms/OSidebar/index.d.ts +3 -0
- package/dist/components/organisms/OSidebar/index.d.ts.map +1 -0
- package/dist/components/organisms/OSidebar/types.d.ts +9 -0
- package/dist/components/organisms/OSidebar/types.d.ts.map +1 -0
- package/dist/components/organisms/OUserCamera/OUserCamera.d.ts +4 -0
- package/dist/components/organisms/OUserCamera/OUserCamera.d.ts.map +1 -0
- package/dist/components/organisms/OUserCamera/OUserCamera.styles.d.ts +20 -0
- package/dist/components/organisms/OUserCamera/OUserCamera.styles.d.ts.map +1 -0
- package/dist/components/organisms/OUserCamera/index.d.ts +3 -0
- package/dist/components/organisms/OUserCamera/index.d.ts.map +1 -0
- package/dist/components/organisms/OUserCamera/types.d.ts +12 -0
- package/dist/components/organisms/OUserCamera/types.d.ts.map +1 -0
- package/dist/components/organisms/index.d.ts +5 -0
- package/dist/components/organisms/index.d.ts.map +1 -0
- package/dist/index.cjs +930 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2081 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/JynkoProvider/JynkoProvider.d.ts +8 -0
- package/dist/providers/JynkoProvider/JynkoProvider.d.ts.map +1 -0
- package/dist/providers/JynkoProvider/index.d.ts +3 -0
- package/dist/providers/JynkoProvider/index.d.ts.map +1 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/shared/hooks/index.d.ts +2 -0
- package/dist/shared/hooks/index.d.ts.map +1 -0
- package/dist/shared/hooks/usePressState.d.ts +19 -0
- package/dist/shared/hooks/usePressState.d.ts.map +1 -0
- package/dist/shared/index.d.ts +6 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/styles/GlobalStyles.d.ts +2 -0
- package/dist/shared/styles/GlobalStyles.d.ts.map +1 -0
- package/dist/shared/styles/componentMetrics.d.ts +11 -0
- package/dist/shared/styles/componentMetrics.d.ts.map +1 -0
- package/dist/shared/styles/index.d.ts +4 -0
- package/dist/shared/styles/index.d.ts.map +1 -0
- package/dist/shared/styles/theme.d.ts +254 -0
- package/dist/shared/styles/theme.d.ts.map +1 -0
- package/dist/shared/types/button.d.ts +3 -0
- package/dist/shared/types/button.d.ts.map +1 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/index.d.ts.map +1 -0
- package/dist/shared/types/link.d.ts +3 -0
- package/dist/shared/types/link.d.ts.map +1 -0
- package/dist/shared/utils/color.d.ts +2 -0
- package/dist/shared/utils/color.d.ts.map +1 -0
- package/dist/shared/utils/index.d.ts +3 -0
- package/dist/shared/utils/index.d.ts.map +1 -0
- package/dist/shared/utils/tokens.d.ts +3 -0
- package/dist/shared/utils/tokens.d.ts.map +1 -0
- package/package.json +116 -4
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,930 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react"),t=require("styled-components"),n=require("react/jsx-runtime"),r=require("react-dom"),i=require("react-router-dom");function a(e,t){return`color-mix(in srgb, ${e} 88%, ${t})`}var o={bg:`#0f172a`,surface:`#1e293b`,background:`#edf7f6`,text:`#0f172a`,muted:`#94a3b8`,primary:`#38bdf8`,primaryHover:`#7dd3fc`,primaryText:`#0f172a`,secondary:`#334155`,secondaryHover:`#475569`,ink:`#000000`,error:`#dc2626`,success:`#16a34a`,warning:`#d97706`},s=`30px`,c={width:`3px`,offset:`2px`,colorMix:`45%`},l={regular:400,semibold:600,bold:700},u={colors:o,opacity:{disabled:.6,disabledButton:.55},radius:{sm:`6px`,md:`10px`,lg:`16px`,full:`9999px`},space:{xs:`0.25rem`,sm:`0.5rem`,md:`0.75rem`,lg:`1rem`,inset:`10px`,components:{button:{sm:`0.25rem`,md:`0.5rem`,lg:`0.75rem`},badge:{sm:`0.25rem`,md:`0.5rem`,lg:`0.75rem`},link:{sm:`0.25rem`,md:`0.5rem`,lg:`0.75rem`},iconButton:{sm:`0.25rem`,md:`0.5rem`,lg:`0.75rem`},iconLink:{sm:`0.25rem`,md:`0.5rem`,lg:`0.75rem`}}},font:{sans:`'Segoe UI', system-ui, -apple-system, sans-serif`,weight:l},typography:{fallback:`1rem`,h1:`2.5rem`,h2:`2rem`,h3:`1.75rem`,h4:`1.5rem`,h5:`1.25rem`,h6:`1.125rem`,small:`0.875rem`,sub:`0.75rem`,sup:`0.75rem`},avatar:{border:`2px solid ${o.ink}`,borderRadius:`50%`,fontWeight:l.semibold,sizes:{sm:{diameter:`32px`,fontSize:`12px`},md:{diameter:`40px`,fontSize:`14px`},lg:{diameter:`48px`,fontSize:`16px`}}},icon:{sizes:{sm:`1rem`,md:`1.25rem`,lg:`1.5rem`}},logo:{size:`36px`,fontSize:`1rem`,fontWeight:l.bold,whiteSpace:`nowrap`},sidebar:{width:{compact:`64px`,extended:`240px`},height:{fallback:`100vh`,dynamic:`100dvh`},border:`2px solid ${o.ink}`,borderRadius:`16px`},camera:{border:`2px solid ${o.ink}`,borderRadius:`12px`,nameBorderRadius:`4px`,nameMaxWidthOffset:`64px`,fallbackFontSize:`clamp(2rem, 8vw, 5rem)`,fallbackFontWeight:l.bold},shadow:{offsetX:`2px`,offsetY:`3px`,button:`2px 3px 0 0 ${o.ink}`,link:`2px 3px 0 0 ${o.ink}`,navLinks:`2px 3px 0 0 ${o.ink}`,section:`3px 5px 0 0 ${o.ink}`,modal:`3px 5px 0 0 ${o.ink}`,sidebar:`3px 5px 0 0 ${o.ink}`},button:{border:`2px solid ${o.ink}`,borderRadius:`8px`,focus:c,padding:`16px`,fontSize:`14px`,textDecoration:`none`,textTransform:`uppercase`},iconButton:{border:`2px solid ${o.ink}`,borderRadius:`8px`,focus:c},iconLink:{border:`2px solid ${o.ink}`,borderRadius:`8px`,focus:c},badge:{border:`2px solid ${o.ink}`,borderRadius:`8px`,fontSize:`14px`,textTransform:`uppercase`},link:{border:`2px solid ${o.ink}`,borderRadius:`8px`,focus:c,padding:`16px`,fontSize:`14px`,textDecoration:`none`,textTransform:`uppercase`},navLinks:{border:`2px solid ${o.ink}`,borderRadius:`8px`,focus:c,padding:`0`,fontSize:`14px`,textDecoration:`none`,textTransform:`uppercase`,itemPadding:`16px`},formControl:{border:`2px solid ${o.ink}`,borderRadius:`8px`,padding:`16px`,height:`3.5rem`,textareaHeight:`3rem`,dropdownBorder:`2px solid ${o.ink}`,optionListMaxHeight:`16rem`,focus:c,trailingActionPadding:`3.25rem`,fontSize:`14px`,optionTextTransform:`none`},userBadge:{focus:c,textDecoration:`none`},section:{border:`2px solid ${o.ink}`,borderRadius:`16px`,padding:s},modal:{padding:s,maxWidth:`720px`,maxHeight:`80vh`,border:`2px solid ${o.ink}`,borderRadius:`16px`,title:{fontSize:`1.25rem`,fontWeight:l.semibold},body:{fontSize:`1rem`}}};function d(e){return e?.colors?e:u}var f=t.styled.span`
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex: 0 0 auto;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
border: ${({theme:e})=>d(e).avatar.border};
|
|
8
|
+
border-radius: ${({theme:e})=>d(e).avatar.borderRadius};
|
|
9
|
+
background: ${({theme:e})=>d(e).colors.secondary};
|
|
10
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
11
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
12
|
+
font-weight: ${({theme:e})=>d(e).avatar.fontWeight};
|
|
13
|
+
width: ${({$size:e,theme:t})=>d(t).avatar.sizes[e].diameter};
|
|
14
|
+
height: ${({$size:e,theme:t})=>d(t).avatar.sizes[e].diameter};
|
|
15
|
+
font-size: ${({$size:e,theme:t})=>d(t).avatar.sizes[e].fontSize};
|
|
16
|
+
|
|
17
|
+
& > img {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
object-fit: cover;
|
|
21
|
+
}
|
|
22
|
+
`;function p({firstName:t,lastName:r,src:i,alt:a,size:o=`md`,...s}){let[c,l]=(0,e.useState)(),u=`${t} ${r}`.trim(),d=a??u,p=`${t.charAt(0)}${r.charAt(0)}`.toUpperCase(),m=!!(i&&c!==i);return(0,n.jsx)(f,{$size:o,role:m?void 0:`img`,"aria-label":m?void 0:d,...s,children:m?(0,n.jsx)(`img`,{src:i,alt:d,onError:()=>{l(i)}}):p})}var m=t.css`
|
|
23
|
+
display: grid;
|
|
24
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
25
|
+
width: 100%;
|
|
26
|
+
`,h=e=>({sm:t.css`
|
|
27
|
+
padding: ${({theme:t})=>d(t).space.components[e].sm};
|
|
28
|
+
`,md:t.css`
|
|
29
|
+
padding: ${({theme:t})=>d(t).space.components[e].md};
|
|
30
|
+
`,lg:t.css`
|
|
31
|
+
padding: ${({theme:t})=>d(t).space.components[e].lg};
|
|
32
|
+
`}),g=t.css`
|
|
33
|
+
padding: ${({theme:e})=>`${d(e).space.md} ${d(e).space.lg}`};
|
|
34
|
+
`,_=e=>t.css`
|
|
35
|
+
&:focus-visible {
|
|
36
|
+
outline: ${({theme:t})=>`${d(t)[e].focus.width} solid color-mix(in srgb, ${d(t).colors.primary} ${d(t)[e].focus.colorMix}, transparent)`};
|
|
37
|
+
outline-offset: ${({theme:t})=>d(t)[e].focus.offset};
|
|
38
|
+
}
|
|
39
|
+
`,v=h(`badge`),y={default:t.css`
|
|
40
|
+
background: ${({theme:e})=>d(e).colors.secondary};
|
|
41
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
42
|
+
`,info:t.css`
|
|
43
|
+
background: ${({theme:e})=>d(e).colors.primary};
|
|
44
|
+
color: ${({theme:e})=>d(e).colors.primaryText};
|
|
45
|
+
`,success:t.css`
|
|
46
|
+
background: ${({theme:e})=>d(e).colors.success};
|
|
47
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
48
|
+
`,warning:t.css`
|
|
49
|
+
background: ${({theme:e})=>d(e).colors.warning};
|
|
50
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
51
|
+
`,error:t.css`
|
|
52
|
+
background: ${({theme:e})=>d(e).colors.error};
|
|
53
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
54
|
+
`},b=t.styled.span`
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
59
|
+
border: ${({theme:e})=>d(e).badge.border};
|
|
60
|
+
border-radius: ${({theme:e})=>d(e).badge.borderRadius};
|
|
61
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
62
|
+
font-size: ${({theme:e})=>d(e).badge.fontSize};
|
|
63
|
+
font-weight: ${({theme:e})=>d(e).font.weight.semibold};
|
|
64
|
+
text-transform: ${({theme:e})=>d(e).badge.textTransform};
|
|
65
|
+
|
|
66
|
+
${({$size:e})=>v[e]}
|
|
67
|
+
${({$variant:e})=>y[e]}
|
|
68
|
+
`;function x({children:e,size:t=`md`,variant:r=`default`,...i}){return(0,n.jsx)(b,{$size:t,$variant:r,...i,children:e})}var S=150;function C({disabled:t,onPointerDown:n,onPointerUp:r,onPointerCancel:i,onLostPointerCapture:a}){let[o,s]=(0,e.useState)(!1),c=(0,e.useRef)(0),l=(0,e.useRef)(null);(0,e.useEffect)(()=>()=>{l.current&&clearTimeout(l.current)},[]);let u=()=>{l.current&&clearTimeout(l.current)},d=()=>{if(!c.current)return;let e=performance.now()-c.current,t=Math.max(0,S-e);u(),l.current=setTimeout(()=>{s(!1),c.current=0,l.current=null},t)};return{pressed:o,pressHandlers:{onPointerDown:e=>{n?.(e),e.defaultPrevented||t||e.button!==0||(e.currentTarget.setPointerCapture(e.pointerId),u(),c.current=performance.now(),s(!0))},onPointerUp:e=>{r?.(e),d()},onPointerCancel:e=>{i?.(e),d()},onLostPointerCapture:e=>{a?.(e),d()}}}}var w=h(`button`),T={primary:t.css`
|
|
69
|
+
background: ${({theme:e})=>d(e).colors.primary};
|
|
70
|
+
color: ${({theme:e})=>d(e).colors.primaryText};
|
|
71
|
+
|
|
72
|
+
&:hover:not(:disabled) {
|
|
73
|
+
background: ${({theme:e})=>a(d(e).colors.primary,d(e).colors.ink)};
|
|
74
|
+
}
|
|
75
|
+
`,secondary:t.css`
|
|
76
|
+
background: ${({theme:e})=>d(e).colors.secondary};
|
|
77
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
78
|
+
|
|
79
|
+
&:hover:not(:disabled) {
|
|
80
|
+
background: ${({theme:e})=>a(d(e).colors.secondary,d(e).colors.ink)};
|
|
81
|
+
}
|
|
82
|
+
`},E=t.css`
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
87
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
88
|
+
font-size: ${({theme:e})=>d(e).button.fontSize};
|
|
89
|
+
font-weight: ${({theme:e})=>d(e).font.weight.semibold};
|
|
90
|
+
text-transform: ${({theme:e})=>d(e).button.textTransform};
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
transition:
|
|
93
|
+
background-color 0.15s ease,
|
|
94
|
+
transform 0.15s ease,
|
|
95
|
+
box-shadow 0.15s ease;
|
|
96
|
+
white-space: nowrap;
|
|
97
|
+
|
|
98
|
+
${_(`button`)}
|
|
99
|
+
|
|
100
|
+
&:disabled {
|
|
101
|
+
opacity: ${({theme:e})=>d(e).opacity.disabledButton};
|
|
102
|
+
cursor: not-allowed;
|
|
103
|
+
}
|
|
104
|
+
`,D=t.css`
|
|
105
|
+
border: ${({theme:e})=>d(e).button.border};
|
|
106
|
+
box-shadow: ${({theme:e})=>d(e).shadow.button};
|
|
107
|
+
|
|
108
|
+
&:active:not(:disabled),
|
|
109
|
+
&[data-pressed='true']:not(:disabled),
|
|
110
|
+
&:disabled {
|
|
111
|
+
transform: ${({theme:e})=>`translate(${d(e).shadow.offsetX}, ${d(e).shadow.offsetY})`};
|
|
112
|
+
box-shadow: none;
|
|
113
|
+
}
|
|
114
|
+
`,O=t.css`
|
|
115
|
+
border-radius: ${({theme:e})=>d(e).button.borderRadius};
|
|
116
|
+
`,k=t.css`
|
|
117
|
+
padding: ${({theme:e})=>d(e).button.padding};
|
|
118
|
+
`,A=t.styled.button`
|
|
119
|
+
${E}
|
|
120
|
+
${D}
|
|
121
|
+
${O}
|
|
122
|
+
${k}
|
|
123
|
+
${({$variant:e})=>T[e]}
|
|
124
|
+
${({$size:e})=>w[e]}
|
|
125
|
+
`;function j({children:e,variant:t=`primary`,size:r=`md`,type:i=`button`,disabled:a,onPointerDown:o,onPointerUp:s,onPointerCancel:c,onLostPointerCapture:l,...u}){let{pressed:d,pressHandlers:f}=C({disabled:a,onPointerDown:o,onPointerUp:s,onPointerCancel:c,onLostPointerCapture:l});return(0,n.jsx)(A,{$size:r,$variant:t,type:i,disabled:a,"data-pressed":d?`true`:void 0,...u,...f,children:e})}var M={default:e=>d(e).colors.text,error:e=>d(e).colors.error,success:e=>d(e).colors.success,warning:e=>d(e).colors.warning},N=t.styled.span`
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
width: ${({$size:e,theme:t})=>d(t).icon.sizes[e]};
|
|
128
|
+
height: ${({$size:e,theme:t})=>d(t).icon.sizes[e]};
|
|
129
|
+
flex: 0 0 auto;
|
|
130
|
+
align-items: center;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
color: ${({$type:e,theme:t})=>M[e](t)};
|
|
133
|
+
|
|
134
|
+
& > svg {
|
|
135
|
+
display: block;
|
|
136
|
+
width: 100%;
|
|
137
|
+
height: 100%;
|
|
138
|
+
}
|
|
139
|
+
`;function P({children:e,size:t=`md`,type:r=`default`,title:i,"aria-label":a,...o}){let s=i??a;return(0,n.jsx)(N,{$size:t,$type:r,"aria-hidden":!s||void 0,"aria-label":s,role:s?`img`:void 0,title:i,...o,children:e})}var F=h(`iconButton`),I={primary:t.css`
|
|
140
|
+
background: ${({theme:e})=>d(e).colors.primary};
|
|
141
|
+
color: ${({theme:e})=>d(e).colors.primaryText};
|
|
142
|
+
|
|
143
|
+
&:hover:not(:disabled) {
|
|
144
|
+
background: ${({theme:e})=>a(d(e).colors.primary,d(e).colors.ink)};
|
|
145
|
+
}
|
|
146
|
+
`,secondary:t.css`
|
|
147
|
+
background: ${({theme:e})=>d(e).colors.secondary};
|
|
148
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
149
|
+
|
|
150
|
+
&:hover:not(:disabled) {
|
|
151
|
+
background: ${({theme:e})=>a(d(e).colors.secondary,d(e).colors.ink)};
|
|
152
|
+
}
|
|
153
|
+
`},L=t.css`
|
|
154
|
+
display: inline-flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
158
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
159
|
+
font-size: ${({theme:e})=>d(e).button.fontSize};
|
|
160
|
+
font-weight: ${({theme:e})=>d(e).font.weight.semibold};
|
|
161
|
+
text-transform: ${({theme:e})=>d(e).button.textTransform};
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
transition:
|
|
164
|
+
background-color 0.15s ease,
|
|
165
|
+
transform 0.15s ease,
|
|
166
|
+
box-shadow 0.15s ease;
|
|
167
|
+
|
|
168
|
+
${_(`iconButton`)}
|
|
169
|
+
|
|
170
|
+
&:disabled {
|
|
171
|
+
opacity: ${({theme:e})=>d(e).opacity.disabledButton};
|
|
172
|
+
cursor: not-allowed;
|
|
173
|
+
}
|
|
174
|
+
`,R=t.css`
|
|
175
|
+
border: ${({theme:e})=>d(e).iconButton.border};
|
|
176
|
+
box-shadow: ${({theme:e})=>d(e).shadow.button};
|
|
177
|
+
|
|
178
|
+
&:active:not(:disabled),
|
|
179
|
+
&[data-pressed='true']:not(:disabled),
|
|
180
|
+
&:disabled {
|
|
181
|
+
transform: ${({theme:e})=>`translate(${d(e).shadow.offsetX}, ${d(e).shadow.offsetY})`};
|
|
182
|
+
box-shadow: none;
|
|
183
|
+
}
|
|
184
|
+
`,z={square:t.css`
|
|
185
|
+
border-radius: ${({theme:e})=>d(e).iconButton.borderRadius};
|
|
186
|
+
`,rounded:t.css`
|
|
187
|
+
border-radius: ${({theme:e})=>d(e).radius.full};
|
|
188
|
+
`},ee=t.css`
|
|
189
|
+
background: transparent;
|
|
190
|
+
border: none;
|
|
191
|
+
box-shadow: none;
|
|
192
|
+
transform: none;
|
|
193
|
+
|
|
194
|
+
&:active:not(:disabled),
|
|
195
|
+
&[data-pressed='true']:not(:disabled) {
|
|
196
|
+
transform: none;
|
|
197
|
+
box-shadow: none;
|
|
198
|
+
}
|
|
199
|
+
`;function B(e,t){return`color-mix(in srgb, ${e} ${t}, transparent)`}var te={primary:t.css`
|
|
200
|
+
color: ${({theme:e})=>d(e).colors.primary};
|
|
201
|
+
|
|
202
|
+
&:hover:not(:disabled) {
|
|
203
|
+
background: ${({theme:e})=>B(d(e).colors.primary,`18%`)};
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&:active:not(:disabled),
|
|
207
|
+
&[data-pressed='true']:not(:disabled) {
|
|
208
|
+
background: ${({theme:e})=>a(B(d(e).colors.primary,`18%`),d(e).colors.ink)};
|
|
209
|
+
}
|
|
210
|
+
`,secondary:t.css`
|
|
211
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
212
|
+
|
|
213
|
+
&:hover:not(:disabled) {
|
|
214
|
+
background: ${({theme:e})=>B(d(e).colors.text,`12%`)};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&:active:not(:disabled),
|
|
218
|
+
&[data-pressed='true']:not(:disabled) {
|
|
219
|
+
background: ${({theme:e})=>a(B(d(e).colors.text,`12%`),d(e).colors.ink)};
|
|
220
|
+
}
|
|
221
|
+
`},V=t.styled.button`
|
|
222
|
+
${L}
|
|
223
|
+
padding: 0;
|
|
224
|
+
flex-shrink: 0;
|
|
225
|
+
|
|
226
|
+
${({$size:e})=>F[e]}
|
|
227
|
+
${({$shape:e})=>z[e]}
|
|
228
|
+
${({$ghost:e,$variant:n})=>e?t.css`
|
|
229
|
+
${ee}
|
|
230
|
+
${te[n]}
|
|
231
|
+
`:t.css`
|
|
232
|
+
${R}
|
|
233
|
+
${I[n]}
|
|
234
|
+
`}
|
|
235
|
+
`;function H({children:e,variant:t=`primary`,size:r=`md`,shape:i=`square`,ghost:a=!1,type:o=`button`,disabled:s,ref:c,onPointerDown:l,onPointerUp:u,onPointerCancel:d,onLostPointerCapture:f,...p}){let{pressed:m,pressHandlers:h}=C({disabled:s,onPointerDown:l,onPointerUp:u,onPointerCancel:d,onLostPointerCapture:f});return(0,n.jsx)(V,{$ghost:a,$shape:i,$size:r,$variant:t,type:o,disabled:s,"data-pressed":m?`true`:void 0,ref:c,...p,...h,children:(0,n.jsx)(P,{size:r,style:{color:`inherit`},children:e})})}var ne=h(`iconLink`),re={primary:t.css`
|
|
236
|
+
background: ${({theme:e})=>d(e).colors.primary};
|
|
237
|
+
color: ${({theme:e})=>d(e).colors.primaryText};
|
|
238
|
+
|
|
239
|
+
&:hover {
|
|
240
|
+
background: ${({theme:e})=>a(d(e).colors.primary,d(e).colors.ink)};
|
|
241
|
+
}
|
|
242
|
+
`,secondary:t.css`
|
|
243
|
+
background: ${({theme:e})=>d(e).colors.secondary};
|
|
244
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
245
|
+
|
|
246
|
+
&:hover {
|
|
247
|
+
background: ${({theme:e})=>a(d(e).colors.secondary,d(e).colors.ink)};
|
|
248
|
+
}
|
|
249
|
+
`},ie={square:t.css`
|
|
250
|
+
border-radius: ${({theme:e})=>d(e).iconLink.borderRadius};
|
|
251
|
+
`,rounded:t.css`
|
|
252
|
+
border-radius: ${({theme:e})=>d(e).radius.full};
|
|
253
|
+
`},ae=t.css`
|
|
254
|
+
background: transparent;
|
|
255
|
+
border: none;
|
|
256
|
+
box-shadow: none;
|
|
257
|
+
transform: none;
|
|
258
|
+
|
|
259
|
+
&:active,
|
|
260
|
+
&[data-pressed='true'] {
|
|
261
|
+
transform: none;
|
|
262
|
+
box-shadow: none;
|
|
263
|
+
}
|
|
264
|
+
`;function U(e,t){return`color-mix(in srgb, ${e} ${t}, transparent)`}var oe={primary:t.css`
|
|
265
|
+
color: ${({theme:e})=>d(e).colors.primary};
|
|
266
|
+
|
|
267
|
+
&:hover {
|
|
268
|
+
background: ${({theme:e})=>U(d(e).colors.primary,`18%`)};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
&:active,
|
|
272
|
+
&[data-pressed='true'] {
|
|
273
|
+
background: ${({theme:e})=>a(U(d(e).colors.primary,`18%`),d(e).colors.ink)};
|
|
274
|
+
}
|
|
275
|
+
`,secondary:t.css`
|
|
276
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
277
|
+
|
|
278
|
+
&:hover {
|
|
279
|
+
background: ${({theme:e})=>U(d(e).colors.text,`12%`)};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&:active,
|
|
283
|
+
&[data-pressed='true'] {
|
|
284
|
+
background: ${({theme:e})=>a(U(d(e).colors.text,`12%`),d(e).colors.ink)};
|
|
285
|
+
}
|
|
286
|
+
`},se=t.styled.a`
|
|
287
|
+
display: inline-flex;
|
|
288
|
+
align-items: center;
|
|
289
|
+
justify-content: center;
|
|
290
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
291
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
292
|
+
font-size: ${({theme:e})=>d(e).button.fontSize};
|
|
293
|
+
font-weight: ${({theme:e})=>d(e).font.weight.semibold};
|
|
294
|
+
text-transform: ${({theme:e})=>d(e).button.textTransform};
|
|
295
|
+
text-decoration: ${({theme:e})=>d(e).button.textDecoration};
|
|
296
|
+
cursor: pointer;
|
|
297
|
+
transition:
|
|
298
|
+
background-color 0.15s ease,
|
|
299
|
+
transform 0.15s ease,
|
|
300
|
+
box-shadow 0.15s ease;
|
|
301
|
+
|
|
302
|
+
${_(`iconLink`)}
|
|
303
|
+
|
|
304
|
+
border: ${({theme:e})=>d(e).iconLink.border};
|
|
305
|
+
box-shadow: ${({theme:e})=>d(e).shadow.button};
|
|
306
|
+
|
|
307
|
+
&:active,
|
|
308
|
+
&[data-pressed='true'] {
|
|
309
|
+
transform: ${({theme:e})=>`translate(${d(e).shadow.offsetX}, ${d(e).shadow.offsetY})`};
|
|
310
|
+
box-shadow: none;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
${({$size:e})=>ne[e]}
|
|
314
|
+
${({$shape:e})=>ie[e]}
|
|
315
|
+
${({$ghost:e,$variant:n})=>e?t.css`
|
|
316
|
+
${ae}
|
|
317
|
+
${oe[n]}
|
|
318
|
+
`:re[n]}
|
|
319
|
+
`;function W({children:e,variant:t=`primary`,size:r=`md`,shape:i=`square`,ghost:a=!1,onPointerDown:o,onPointerUp:s,onPointerCancel:c,onLostPointerCapture:l,...u}){let{pressed:d,pressHandlers:f}=C({onPointerDown:o,onPointerUp:s,onPointerCancel:c,onLostPointerCapture:l});return(0,n.jsx)(se,{$ghost:a,$shape:i,$size:r,$variant:t,"data-pressed":d?`true`:void 0,...u,...f,children:(0,n.jsx)(P,{size:r,style:{color:`inherit`},children:e})})}var G=t.css`
|
|
320
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
321
|
+
font-size: ${({theme:e})=>d(e).typography.small};
|
|
322
|
+
font-weight: ${({theme:e})=>d(e).font.weight.semibold};
|
|
323
|
+
`,K=t.css`
|
|
324
|
+
box-sizing: border-box;
|
|
325
|
+
width: 100%;
|
|
326
|
+
height: ${({theme:e})=>d(e).formControl.height};
|
|
327
|
+
border: ${({theme:e})=>d(e).formControl.border};
|
|
328
|
+
border-radius: ${({theme:e})=>d(e).formControl.borderRadius};
|
|
329
|
+
padding: ${({theme:e,$hasTrailingAction:t})=>t?`${d(e).formControl.padding} ${d(e).formControl.trailingActionPadding} ${d(e).formControl.padding} ${d(e).formControl.padding}`:d(e).formControl.padding};
|
|
330
|
+
background: ${({theme:e})=>d(e).colors.background};
|
|
331
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
332
|
+
font: inherit;
|
|
333
|
+
font-size: ${({theme:e})=>d(e).formControl.fontSize};
|
|
334
|
+
|
|
335
|
+
${_(`formControl`)}
|
|
336
|
+
|
|
337
|
+
&:disabled {
|
|
338
|
+
cursor: not-allowed;
|
|
339
|
+
opacity: ${({theme:e})=>d(e).opacity.disabled};
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
${({$invalid:e,theme:n})=>e&&t.css`
|
|
343
|
+
border-color: ${d(n).colors.error};
|
|
344
|
+
`}
|
|
345
|
+
|
|
346
|
+
${({$invalid:e,$warning:n,theme:r})=>!e&&n&&t.css`
|
|
347
|
+
border-color: ${d(r).colors.warning};
|
|
348
|
+
`}
|
|
349
|
+
`,ce=t.css`
|
|
350
|
+
color: ${({theme:e,$type:t})=>d(e).colors[t]};
|
|
351
|
+
font-size: ${({theme:e})=>d(e).typography.small};
|
|
352
|
+
`,le=t.styled.div`
|
|
353
|
+
${m}
|
|
354
|
+
`,ue=t.styled.label`
|
|
355
|
+
${G}
|
|
356
|
+
`,de=t.styled.div`
|
|
357
|
+
position: relative;
|
|
358
|
+
`,fe=t.styled.input`
|
|
359
|
+
${K}
|
|
360
|
+
|
|
361
|
+
&:focus,
|
|
362
|
+
&:focus-visible {
|
|
363
|
+
${({$invalid:e,$warning:n,theme:r})=>e?t.css`
|
|
364
|
+
border-color: ${d(r).colors.error};
|
|
365
|
+
`:n?t.css`
|
|
366
|
+
border-color: ${d(r).colors.warning};
|
|
367
|
+
`:``}
|
|
368
|
+
/* TODO: This prevents the outline from appearing when navigating with the Tab key */
|
|
369
|
+
outline: none;
|
|
370
|
+
}
|
|
371
|
+
`,pe=(0,t.styled)(H)`
|
|
372
|
+
position: absolute;
|
|
373
|
+
top: 50%;
|
|
374
|
+
right: ${({theme:e})=>d(e).space.md};
|
|
375
|
+
translate: 0 -50%;
|
|
376
|
+
`,q=t.styled.div`
|
|
377
|
+
${ce}
|
|
378
|
+
`;function me({visible:e}){return(0,n.jsxs)(`svg`,{fill:`none`,viewBox:`0 0 24 24`,children:[(0,n.jsx)(`path`,{d:`M2.5 12s3.25-6 9.5-6 9.5 6 9.5 6-3.25 6-9.5 6-9.5-6-9.5-6Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`}),e?(0,n.jsx)(`path`,{d:`m3 3 18 18M10.6 10.6a2 2 0 0 0 2.8 2.8`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.8`}):(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`2.5`,stroke:`currentColor`,strokeWidth:`1.8`})]})}function he({type:t=`text`,id:r,label:i,error:a,warning:o,disabled:s,ref:c,"aria-describedby":l,"aria-invalid":u,...d}){let f=(0,e.useId)(),p=r??f,m=`${p}-error`,h=`${p}-warning`,[g,_]=(0,e.useState)(!1),v=!!a||u===!0||u===`true`,y=[l,a?m:void 0,o?h:void 0].filter(Boolean).join(` `)||void 0;return(0,n.jsxs)(le,{children:[i?(0,n.jsx)(ue,{htmlFor:p,children:i}):null,(0,n.jsxs)(de,{children:[(0,n.jsx)(fe,{...d,$hasTrailingAction:t===`password`,$invalid:v,$warning:!!o,"aria-describedby":y,"aria-invalid":v||void 0,disabled:s,id:p,ref:c,type:t===`password`&&g?`text`:t}),t===`password`?(0,n.jsx)(pe,{"aria-label":g?`Hide password`:`Show password`,"aria-pressed":g,disabled:s,ghost:!0,onClick:()=>{_(e=>!e)},shape:`rounded`,size:`md`,type:`button`,variant:`primary`,children:(0,n.jsx)(P,{size:`md`,style:{color:`inherit`},title:g?`Hide password`:`Show password`,children:(0,n.jsx)(me,{visible:g})})}):null]}),a?(0,n.jsx)(q,{$type:`error`,id:m,role:`alert`,children:a}):null,o?(0,n.jsx)(q,{$type:`warning`,id:h,role:`status`,children:o}):null]})}var ge=h(`link`),_e={primary:t.css`
|
|
379
|
+
background: ${({theme:e})=>d(e).colors.primary};
|
|
380
|
+
color: ${({theme:e})=>d(e).colors.primaryText};
|
|
381
|
+
|
|
382
|
+
&:hover:not(:disabled) {
|
|
383
|
+
background: ${({theme:e})=>a(d(e).colors.primary,d(e).colors.ink)};
|
|
384
|
+
}
|
|
385
|
+
`,secondary:t.css`
|
|
386
|
+
background: ${({theme:e})=>d(e).colors.secondary};
|
|
387
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
388
|
+
|
|
389
|
+
&:hover:not(:disabled) {
|
|
390
|
+
background: ${({theme:e})=>a(d(e).colors.secondary,d(e).colors.ink)};
|
|
391
|
+
}
|
|
392
|
+
`},ve=t.styled.a`
|
|
393
|
+
display: inline-flex;
|
|
394
|
+
align-items: center;
|
|
395
|
+
justify-content: center;
|
|
396
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
397
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
398
|
+
font-size: ${({theme:e})=>d(e).link.fontSize};
|
|
399
|
+
font-weight: ${({theme:e})=>d(e).font.weight.semibold};
|
|
400
|
+
text-transform: ${({theme:e})=>d(e).link.textTransform};
|
|
401
|
+
text-decoration: ${({theme:e})=>d(e).link.textDecoration};
|
|
402
|
+
cursor: pointer;
|
|
403
|
+
transition:
|
|
404
|
+
background-color 0.15s ease,
|
|
405
|
+
transform 0.15s ease,
|
|
406
|
+
box-shadow 0.15s ease;
|
|
407
|
+
|
|
408
|
+
${_(`link`)}
|
|
409
|
+
|
|
410
|
+
border: ${({theme:e})=>d(e).link.border};
|
|
411
|
+
box-shadow: ${({theme:e})=>d(e).shadow.link};
|
|
412
|
+
border-radius: ${({theme:e})=>d(e).link.borderRadius};
|
|
413
|
+
padding: ${({theme:e})=>d(e).link.padding};
|
|
414
|
+
|
|
415
|
+
white-space: nowrap;
|
|
416
|
+
|
|
417
|
+
&:active,
|
|
418
|
+
&[data-pressed='true'] {
|
|
419
|
+
transform: ${({theme:e})=>`translate(${d(e).shadow.offsetX}, ${d(e).shadow.offsetY})`};
|
|
420
|
+
box-shadow: none;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
${({$variant:e})=>_e[e]}
|
|
424
|
+
${({$size:e})=>ge[e]}
|
|
425
|
+
`;function J({children:e,variant:t=`primary`,size:r=`md`,onPointerDown:i,onPointerUp:a,onPointerCancel:o,onLostPointerCapture:s,...c}){let{pressed:l,pressHandlers:u}=C({onPointerDown:i,onPointerUp:a,onPointerCancel:o,onLostPointerCapture:s});return(0,n.jsx)(ve,{$size:r,$variant:t,"data-pressed":l?`true`:void 0,...c,...u,children:e})}var ye=t.styled.div`
|
|
426
|
+
--logo-size: ${({theme:e})=>d(e).logo.size};
|
|
427
|
+
|
|
428
|
+
display: inline-flex;
|
|
429
|
+
align-items: center;
|
|
430
|
+
justify-content: center;
|
|
431
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
432
|
+
min-width: 0;
|
|
433
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
434
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
435
|
+
font-size: ${({theme:e})=>d(e).logo.fontSize};
|
|
436
|
+
font-weight: ${({theme:e})=>d(e).logo.fontWeight};
|
|
437
|
+
white-space: ${({theme:e})=>d(e).logo.whiteSpace};
|
|
438
|
+
|
|
439
|
+
& > span:first-child > svg,
|
|
440
|
+
& > span:first-child img {
|
|
441
|
+
display: block;
|
|
442
|
+
width: var(--logo-size);
|
|
443
|
+
height: var(--logo-size);
|
|
444
|
+
flex: 0 0 var(--logo-size);
|
|
445
|
+
object-fit: contain;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
${({$variant:e,theme:n})=>e===`icon`&&t.css`
|
|
449
|
+
width: ${d(n).logo.size};
|
|
450
|
+
height: ${d(n).logo.size};
|
|
451
|
+
`}
|
|
452
|
+
`,be=t.styled.span`
|
|
453
|
+
overflow: hidden;
|
|
454
|
+
text-overflow: ellipsis;
|
|
455
|
+
`;function xe({logo:e,name:t,variant:r=`full`,...i}){return(0,n.jsxs)(ye,{...i,$variant:r,role:r===`icon`?`img`:void 0,"aria-label":r===`icon`?t:i[`aria-label`],children:[(0,n.jsx)(`span`,{"aria-hidden":`true`,children:e}),r===`full`?(0,n.jsx)(be,{children:t}):null]})}var Se=t.css`
|
|
456
|
+
box-sizing: border-box;
|
|
457
|
+
width: 100%;
|
|
458
|
+
height: ${({theme:e})=>d(e).formControl.height};
|
|
459
|
+
border: ${({theme:e})=>d(e).formControl.border};
|
|
460
|
+
border-radius: ${({theme:e})=>d(e).formControl.borderRadius};
|
|
461
|
+
padding: ${({theme:e})=>d(e).formControl.padding};
|
|
462
|
+
background: ${({theme:e})=>d(e).colors.background};
|
|
463
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
464
|
+
font: inherit;
|
|
465
|
+
font-size: ${({theme:e})=>d(e).formControl.fontSize};
|
|
466
|
+
`,Ce=t.styled.div`
|
|
467
|
+
${m}
|
|
468
|
+
`,we=t.styled.div`
|
|
469
|
+
position: relative;
|
|
470
|
+
`,Te=t.styled.input`
|
|
471
|
+
${Se}
|
|
472
|
+
padding-right: ${({theme:e})=>d(e).formControl.trailingActionPadding};
|
|
473
|
+
|
|
474
|
+
/* TODO: Outline styles should be implemented for each form ui elements */
|
|
475
|
+
|
|
476
|
+
&:disabled {
|
|
477
|
+
cursor: not-allowed;
|
|
478
|
+
opacity: ${({theme:e})=>d(e).opacity.disabled};
|
|
479
|
+
}
|
|
480
|
+
`,Ee=(0,t.styled)(H)`
|
|
481
|
+
position: absolute;
|
|
482
|
+
top: 50%;
|
|
483
|
+
right: ${({theme:e})=>d(e).space.md};
|
|
484
|
+
translate: 0 -50%;
|
|
485
|
+
`,De=t.styled.ul`
|
|
486
|
+
position: absolute;
|
|
487
|
+
z-index: 10;
|
|
488
|
+
top: 100%;
|
|
489
|
+
right: 0;
|
|
490
|
+
left: 0;
|
|
491
|
+
max-height: ${({theme:e})=>d(e).formControl.optionListMaxHeight};
|
|
492
|
+
margin: 0;
|
|
493
|
+
padding: 0;
|
|
494
|
+
overflow: auto;
|
|
495
|
+
border: ${({theme:e})=>d(e).formControl.dropdownBorder};
|
|
496
|
+
border-radius: ${({theme:e})=>d(e).formControl.borderRadius};
|
|
497
|
+
background: ${({theme:e})=>d(e).colors.background};
|
|
498
|
+
list-style: none;
|
|
499
|
+
`,Oe=t.styled.li`
|
|
500
|
+
${g}
|
|
501
|
+
background: ${({theme:e,$active:t})=>t?d(e).colors.secondaryHover:`transparent`};
|
|
502
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
503
|
+
cursor: pointer;
|
|
504
|
+
`;function ke(){return(0,n.jsxs)(`svg`,{fill:`none`,viewBox:`0 0 24 24`,children:[(0,n.jsx)(`circle`,{cx:`10.8`,cy:`10.8`,r:`6.3`,stroke:`currentColor`,strokeWidth:`1.8`}),(0,n.jsx)(`path`,{d:`m15.5 15.5 4 4`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.8`})]})}function Ae({options:t,value:r,defaultValue:i=``,debounceMs:a=300,onSearch:o,onSelect:s,onChange:c,onFocus:l,onBlur:u,id:d,disabled:f,ref:p,...m}){let h=(0,e.useId)(),g=d??h,_=`${g}-options`,v=(0,e.useRef)(null),y=(0,e.useRef)(!1),b=(0,e.useRef)(null),[x,S]=(0,e.useState)(i),[C,w]=(0,e.useState)(!1),[T,E]=(0,e.useState)(-1),D=r??x,O=r!==void 0,k=D.trim().toLocaleLowerCase(),A=k?t.filter(e=>e.label.toLocaleLowerCase().includes(k)||String(e.value).toLocaleLowerCase().includes(k)):[],j=C&&A.length>0;(0,e.useEffect)(()=>{if(!y.current){y.current=!0;return}if(!o)return;let e=setTimeout(()=>{b.current=null,o(D)},a);return b.current=e,()=>{clearTimeout(e),b.current===e&&(b.current=null)}},[a,o,D]);let M=e=>{O||S(e.currentTarget.value),E(-1),c?.(e)},N=e=>{e.relatedTarget instanceof Node&&v.current?.querySelector(`[role="listbox"]`)?.contains(e.relatedTarget)||(w(!1),E(-1),u?.(e))},F=e=>{O||S(e.label),s?.(e),w(!1)},I=e=>{e.key===`ArrowDown`&&A.length>0?(e.preventDefault(),w(!0),E(e=>(e+1)%A.length)):e.key===`ArrowUp`&&A.length>0?(e.preventDefault(),w(!0),E(e=>e<=0?A.length-1:e-1)):e.key===`Enter`&&j&&A[T]?(e.preventDefault(),F(A[T])):e.key===`Escape`&&(w(!1),E(-1)),m.onKeyDown?.(e)};return(0,n.jsx)(Ce,{ref:v,children:(0,n.jsxs)(we,{children:[(0,n.jsx)(Te,{...m,"aria-activedescendant":j&&T>=0?`${_}-option-${String(T)}`:void 0,"aria-autocomplete":`list`,"aria-controls":j?_:void 0,"aria-expanded":j,"aria-haspopup":`listbox`,autoComplete:`off`,disabled:f,id:g,onBlur:N,onChange:M,onFocus:e=>{w(!0),l&&l(e)},onKeyDown:I,ref:p,role:`combobox`,value:D}),(0,n.jsx)(Ee,{"aria-label":`Search`,disabled:f,ghost:!0,onClick:()=>{b.current&&=(clearTimeout(b.current),null),o?.(D)},shape:`rounded`,size:`md`,type:`button`,variant:`primary`,children:(0,n.jsx)(P,{size:`md`,style:{color:`inherit`},title:`Search`,children:(0,n.jsx)(ke,{})})}),j?(0,n.jsx)(De,{id:_,role:`listbox`,children:A.map((e,t)=>(0,n.jsx)(Oe,{"aria-selected":t===T,id:`${_}-option-${String(t)}`,onClick:()=>{F(e)},onMouseDown:e=>{e.preventDefault()},role:`option`,$active:t===T,children:e.label},`${String(e.value)}-${e.label}`))}):null]})})}var je=t.styled.section`
|
|
505
|
+
border: ${({theme:e})=>d(e).section.border};
|
|
506
|
+
border-radius: ${({theme:e})=>d(e).section.borderRadius};
|
|
507
|
+
padding: ${({theme:e})=>d(e).section.padding};
|
|
508
|
+
background-color: ${({theme:e})=>d(e).colors.surface};
|
|
509
|
+
box-shadow: ${({$shadow:e,theme:t})=>e?d(t).shadow.section:`none`};
|
|
510
|
+
`;function Me({children:e,shadow:t=!1,...r}){return(0,n.jsx)(je,{$shadow:t,...r,children:e})}var Ne=t.css`
|
|
511
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
512
|
+
font-size: ${({theme:e})=>d(e).typography.small};
|
|
513
|
+
font-weight: ${({theme:e})=>d(e).font.weight.semibold};
|
|
514
|
+
`,Pe=t.css`
|
|
515
|
+
box-sizing: border-box;
|
|
516
|
+
width: 100%;
|
|
517
|
+
height: ${({theme:e})=>d(e).formControl.height};
|
|
518
|
+
border: ${({theme:e})=>d(e).formControl.border};
|
|
519
|
+
border-radius: ${({theme:e})=>d(e).formControl.borderRadius};
|
|
520
|
+
padding: ${({theme:e,$hasTrailingAction:t})=>t?`${d(e).formControl.padding} ${d(e).formControl.trailingActionPadding} ${d(e).formControl.padding} ${d(e).formControl.padding}`:d(e).formControl.padding};
|
|
521
|
+
background: ${({theme:e})=>d(e).colors.background};
|
|
522
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
523
|
+
font: inherit;
|
|
524
|
+
font-size: ${({theme:e})=>d(e).formControl.fontSize};
|
|
525
|
+
|
|
526
|
+
${_(`formControl`)}
|
|
527
|
+
|
|
528
|
+
&:disabled {
|
|
529
|
+
cursor: not-allowed;
|
|
530
|
+
opacity: ${({theme:e})=>d(e).opacity.disabled};
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
${({$invalid:e,theme:n})=>e&&t.css`
|
|
534
|
+
border-color: ${d(n).colors.error};
|
|
535
|
+
`}
|
|
536
|
+
|
|
537
|
+
${({$invalid:e,$warning:n,theme:r})=>!e&&n&&t.css`
|
|
538
|
+
border-color: ${d(r).colors.warning};
|
|
539
|
+
`}
|
|
540
|
+
`,Fe=t.css`
|
|
541
|
+
color: ${({theme:e,$type:t})=>d(e).colors[t]};
|
|
542
|
+
font-size: ${({theme:e})=>d(e).typography.small};
|
|
543
|
+
`,Ie=t.styled.div`
|
|
544
|
+
${m}
|
|
545
|
+
`,Le=t.styled.div`
|
|
546
|
+
position: relative;
|
|
547
|
+
`,Re=t.styled.label`
|
|
548
|
+
${Ne}
|
|
549
|
+
`,ze=t.styled.div`
|
|
550
|
+
${Pe}
|
|
551
|
+
display: flex;
|
|
552
|
+
align-items: center;
|
|
553
|
+
justify-content: space-between;
|
|
554
|
+
gap: ${({theme:e})=>d(e).space.lg};
|
|
555
|
+
text-align: left;
|
|
556
|
+
cursor: ${({$disabled:e})=>e?`not-allowed`:`pointer`};
|
|
557
|
+
|
|
558
|
+
${({$disabled:e})=>e&&t.css`
|
|
559
|
+
opacity: ${({theme:e})=>d(e).opacity.disabled};
|
|
560
|
+
`}
|
|
561
|
+
`,Be=t.styled.div`
|
|
562
|
+
position: absolute;
|
|
563
|
+
z-index: 10;
|
|
564
|
+
top: 100%;
|
|
565
|
+
right: 0;
|
|
566
|
+
left: 0;
|
|
567
|
+
max-height: ${({theme:e})=>d(e).formControl.optionListMaxHeight};
|
|
568
|
+
overflow: auto;
|
|
569
|
+
border: ${({theme:e})=>d(e).formControl.dropdownBorder};
|
|
570
|
+
border-radius: ${({theme:e})=>d(e).formControl.borderRadius};
|
|
571
|
+
background: ${({theme:e})=>d(e).colors.background};
|
|
572
|
+
`,Ve=t.styled.button`
|
|
573
|
+
display: block;
|
|
574
|
+
width: 100%;
|
|
575
|
+
${g}
|
|
576
|
+
border: 0;
|
|
577
|
+
border-radius: 0;
|
|
578
|
+
background: ${({theme:e,$selected:t})=>t?d(e).colors.secondary:`transparent`};
|
|
579
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
580
|
+
font: inherit;
|
|
581
|
+
text-align: left;
|
|
582
|
+
text-transform: ${({theme:e})=>d(e).formControl.optionTextTransform};
|
|
583
|
+
cursor: pointer;
|
|
584
|
+
|
|
585
|
+
&:hover,
|
|
586
|
+
&:focus-visible {
|
|
587
|
+
background: ${({theme:e})=>d(e).colors.secondaryHover};
|
|
588
|
+
outline: none;
|
|
589
|
+
}
|
|
590
|
+
`,He=t.styled.select`
|
|
591
|
+
position: absolute;
|
|
592
|
+
width: 1px;
|
|
593
|
+
height: 1px;
|
|
594
|
+
padding: 0;
|
|
595
|
+
overflow: hidden;
|
|
596
|
+
clip: rect(0, 0, 0, 0);
|
|
597
|
+
white-space: nowrap;
|
|
598
|
+
border: 0;
|
|
599
|
+
`,Ue=t.styled.span`
|
|
600
|
+
overflow: hidden;
|
|
601
|
+
color: ${({theme:e,$placeholder:t})=>t?d(e).colors.muted:`inherit`};
|
|
602
|
+
text-overflow: ellipsis;
|
|
603
|
+
white-space: nowrap;
|
|
604
|
+
`,Y=t.styled.div`
|
|
605
|
+
${Fe}
|
|
606
|
+
`;function We({options:t,value:r,defaultValue:i,onChange:a,onValueChange:o,onBlur:s,id:c,name:l,label:u,placeholder:d=`Select an option`,error:f,warning:p,disabled:m,required:h,ref:g,"aria-describedby":_,"aria-invalid":v,...y}){let b=(0,e.useId)(),x=c??b,S=`${x}-options`,C=`${x}-error`,w=`${x}-warning`,T=(0,e.useRef)(null),E=(0,e.useRef)(null),D=(0,e.useRef)(null),[O,k]=(0,e.useState)(i),[A,j]=(0,e.useState)(!1),M=r??O,N=t.find(e=>String(e.value)===String(M)),P=!!f||v===!0||v===`true`,F=[_,f?C:void 0,p?w:void 0].filter(Boolean).join(` `)||void 0,I=e=>{a?.(e)};(0,e.useEffect)(()=>{if(!A)return;let e=e=>{e.target instanceof Node&&T.current?.contains(e.target)||j(!1)};return document.addEventListener(`pointerdown`,e),()=>{document.removeEventListener(`pointerdown`,e)}},[A]),(0,e.useEffect)(()=>{A&&(T.current?.querySelector(`[role="option"][aria-selected="true"]`)??T.current?.querySelector(`[role="option"]`))?.focus()},[A]);let L=e=>{r===void 0&&k(e),o?.(e);let t=E.current;t&&(t.value=String(e),t.dispatchEvent(new Event(`change`,{bubbles:!0})))},R=e=>{T.current?.contains(e.relatedTarget)||(j(!1),E.current?.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0})))},z=(e,n)=>{let r;e.key===`ArrowDown`&&(r=(n+1)%t.length),e.key===`ArrowUp`&&(r=(n-1+t.length)%t.length),e.key===`Home`&&(r=0),e.key===`End`&&(r=t.length-1),e.key===`Escape`?(e.preventDefault(),j(!1),D.current?.focus()):r!==void 0&&(e.preventDefault(),T.current?.querySelectorAll(`[role="option"]`)[r]?.focus())};return(0,n.jsxs)(Ie,{ref:T,children:[u?(0,n.jsx)(Re,{htmlFor:x,children:u}):null,(0,n.jsxs)(Le,{children:[(0,n.jsxs)(He,{...y,"aria-hidden":`true`,"aria-invalid":P||void 0,disabled:m,id:`${x}-native`,name:l,onBlur:s,onChange:I,ref:e=>{E.current=e,typeof g==`function`?g(e):g&&(g.current=e)},required:h,tabIndex:-1,value:M===void 0?``:String(M),children:[(0,n.jsx)(`option`,{value:``,children:d}),t.map(e=>(0,n.jsx)(`option`,{value:String(e.value),children:e.label},String(e.value)))]}),(0,n.jsxs)(ze,{onClick:()=>{m||j(e=>!e)},$disabled:!!m,$invalid:P,$warning:!!p,children:[(0,n.jsx)(Ue,{$placeholder:!N,children:N?.label??d}),(0,n.jsx)(H,{"aria-controls":S,"aria-describedby":F,"aria-expanded":A,"aria-haspopup":`listbox`,"aria-invalid":P||void 0,"aria-label":u??d,disabled:m,ghost:!0,id:x,onBlur:R,onClick:e=>{e.stopPropagation(),j(e=>!e)},onKeyDown:e=>{e.key===`Escape`?j(!1):A||e.key!==`ArrowDown`&&e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),j(!0))},ref:D,shape:`rounded`,size:`md`,type:`button`,variant:`primary`,children:(0,n.jsx)(`svg`,{fill:`none`,style:{transform:A?`rotate(180deg)`:`rotate(0)`,transition:`transform 120ms ease`},viewBox:`0 0 24 24`,children:(0,n.jsx)(`path`,{d:`m6 9 6 6 6-6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`})})})]}),A?(0,n.jsx)(Be,{id:S,role:`listbox`,"aria-label":u,children:t.map((e,t)=>{let r=String(e.value)===String(M??``);return(0,n.jsx)(Ve,{"aria-selected":r,onClick:()=>{L(e.value),j(!1),D.current?.focus()},onBlur:R,onKeyDown:e=>{z(e,t)},role:`option`,tabIndex:-1,type:`button`,$selected:r,children:e.label},String(e.value))})}):null]}),f?(0,n.jsx)(Y,{$type:`error`,id:C,role:`alert`,children:f}):null,p?(0,n.jsx)(Y,{$type:`warning`,id:w,role:`status`,children:p}):null]})}var Ge=t.styled.div`
|
|
607
|
+
${m}
|
|
608
|
+
`,Ke=t.styled.label`
|
|
609
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
610
|
+
font-size: ${({theme:e})=>d(e).typography.small};
|
|
611
|
+
font-weight: ${({theme:e})=>d(e).font.weight.semibold};
|
|
612
|
+
`,qe=t.styled.textarea`
|
|
613
|
+
box-sizing: border-box;
|
|
614
|
+
width: 100%;
|
|
615
|
+
height: ${({$height:e,theme:t})=>e==null?d(t).formControl.textareaHeight:typeof e==`number`?`${e.toString()}px`:e};
|
|
616
|
+
min-height: ${({theme:e})=>d(e).formControl.textareaHeight};
|
|
617
|
+
border: ${({theme:e})=>d(e).formControl.border};
|
|
618
|
+
border-radius: ${({theme:e})=>d(e).formControl.borderRadius};
|
|
619
|
+
padding: ${({theme:e})=>d(e).formControl.padding};
|
|
620
|
+
background: ${({theme:e})=>d(e).colors.background};
|
|
621
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
622
|
+
font: inherit;
|
|
623
|
+
font-size: ${({theme:e})=>d(e).formControl.fontSize};
|
|
624
|
+
resize: ${({$resizable:e})=>e?`vertical`:`none`};
|
|
625
|
+
|
|
626
|
+
${_(`formControl`)}
|
|
627
|
+
|
|
628
|
+
&:disabled {
|
|
629
|
+
cursor: not-allowed;
|
|
630
|
+
opacity: ${({theme:e})=>d(e).opacity.disabled};
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
${({$invalid:e,theme:n})=>e&&t.css`
|
|
634
|
+
border-color: ${d(n).colors.error};
|
|
635
|
+
`}
|
|
636
|
+
|
|
637
|
+
${({$invalid:e,$warning:n,theme:r})=>!e&&n&&t.css`
|
|
638
|
+
border-color: ${d(r).colors.warning};
|
|
639
|
+
`}
|
|
640
|
+
|
|
641
|
+
&:focus,
|
|
642
|
+
&:focus-visible {
|
|
643
|
+
${({$invalid:e,$warning:n,theme:r})=>e?t.css`
|
|
644
|
+
border-color: ${d(r).colors.error};
|
|
645
|
+
`:n?t.css`
|
|
646
|
+
border-color: ${d(r).colors.warning};
|
|
647
|
+
`:``}
|
|
648
|
+
outline: none;
|
|
649
|
+
}
|
|
650
|
+
`,X=t.styled.div`
|
|
651
|
+
color: ${({theme:e,$type:t})=>d(e).colors[t]};
|
|
652
|
+
font-size: ${({theme:e})=>d(e).typography.small};
|
|
653
|
+
`;function Je({id:t,label:r,error:i,warning:a,height:o,resizable:s=!1,ref:c,"aria-describedby":l,"aria-invalid":u,...d}){let f=(0,e.useId)(),p=t??f,m=`${p}-error`,h=`${p}-warning`,g=!!i||u===!0||u===`true`,_=[l,i?m:void 0,a?h:void 0].filter(Boolean).join(` `)||void 0;return(0,n.jsxs)(Ge,{children:[r?(0,n.jsx)(Ke,{htmlFor:p,children:r}):null,(0,n.jsx)(qe,{...d,$height:o,$invalid:g,$resizable:s,$warning:!!a,"aria-describedby":_,"aria-invalid":g||void 0,id:p,ref:c}),i?(0,n.jsx)(X,{$type:`error`,id:m,role:`alert`,children:i}):null,a?(0,n.jsx)(X,{$type:`warning`,id:h,role:`status`,children:a}):null]})}var Ye=t.styled.p`
|
|
654
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
655
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
656
|
+
font-size: ${({theme:e,$fontSize:t,$tag:n})=>{if(t!==void 0)return t;let r=d(e).typography;return n&&Object.hasOwn(r,n)?r[n]:r.fallback}};
|
|
657
|
+
`;function Xe({tag:e,as:t,fontSize:r,...i}){let a=e??t??`p`;return(0,n.jsx)(Ye,{$tag:typeof a==`string`?a:void 0,$fontSize:r,as:a,...i})}var Ze=t.css`
|
|
658
|
+
position: fixed;
|
|
659
|
+
inset: 0;
|
|
660
|
+
z-index: 1000;
|
|
661
|
+
display: flex;
|
|
662
|
+
align-items: center;
|
|
663
|
+
justify-content: center;
|
|
664
|
+
padding: ${({theme:e})=>d(e).space.lg};
|
|
665
|
+
`,Qe=t.css`
|
|
666
|
+
position: absolute;
|
|
667
|
+
inset: 0;
|
|
668
|
+
border: none;
|
|
669
|
+
padding: 0;
|
|
670
|
+
cursor: pointer;
|
|
671
|
+
background: color-mix(
|
|
672
|
+
in srgb,
|
|
673
|
+
${({theme:e})=>d(e).colors.bg} 25%,
|
|
674
|
+
transparent
|
|
675
|
+
);
|
|
676
|
+
`,$e=t.css`
|
|
677
|
+
position: relative;
|
|
678
|
+
z-index: 1;
|
|
679
|
+
box-sizing: border-box;
|
|
680
|
+
display: flex;
|
|
681
|
+
flex-direction: column;
|
|
682
|
+
width: 100%;
|
|
683
|
+
max-width: ${({theme:e})=>d(e).modal.maxWidth};
|
|
684
|
+
max-height: ${({theme:e})=>d(e).modal.maxHeight};
|
|
685
|
+
padding: ${({theme:e})=>d(e).modal.padding};
|
|
686
|
+
overflow: hidden;
|
|
687
|
+
background-color: ${({theme:e})=>d(e).colors.surface};
|
|
688
|
+
border: ${({theme:e})=>d(e).modal.border};
|
|
689
|
+
border-radius: ${({theme:e})=>d(e).modal.borderRadius};
|
|
690
|
+
box-shadow: ${({theme:e})=>d(e).shadow.modal};
|
|
691
|
+
`,et=t.css`
|
|
692
|
+
display: flex;
|
|
693
|
+
align-items: center;
|
|
694
|
+
justify-content: space-between;
|
|
695
|
+
gap: ${({theme:e})=>d(e).space.md};
|
|
696
|
+
flex-shrink: 0;
|
|
697
|
+
`,tt=t.css`
|
|
698
|
+
margin: 0;
|
|
699
|
+
min-width: 0;
|
|
700
|
+
flex: 1;
|
|
701
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
702
|
+
font-size: ${({theme:e})=>d(e).modal.title.fontSize};
|
|
703
|
+
font-weight: ${({theme:e})=>d(e).modal.title.fontWeight};
|
|
704
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
705
|
+
`,nt=t.css`
|
|
706
|
+
flex: 1;
|
|
707
|
+
min-height: 0;
|
|
708
|
+
margin-top: ${({theme:e})=>d(e).space.lg};
|
|
709
|
+
overflow-x: hidden;
|
|
710
|
+
overflow-y: auto;
|
|
711
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
712
|
+
font-size: ${({theme:e})=>d(e).modal.body.fontSize};
|
|
713
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
714
|
+
`,rt=t.styled.div`
|
|
715
|
+
${Ze}
|
|
716
|
+
`,it=t.styled.button`
|
|
717
|
+
${Qe}
|
|
718
|
+
`,at=t.styled.div`
|
|
719
|
+
${$e}
|
|
720
|
+
`,ot=t.styled.div`
|
|
721
|
+
${et}
|
|
722
|
+
`,st=t.styled.h2`
|
|
723
|
+
${tt}
|
|
724
|
+
`,ct=t.styled.div`
|
|
725
|
+
${nt}
|
|
726
|
+
`;function lt(){return(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,n.jsx)(`path`,{fill:`currentColor`,d:`M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12l-4.9 4.89a1 1 0 1 0 1.42 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4Z`})})}function ut({open:t,onClose:i,title:a,children:o,closeLabel:s=`Close`}){let c=(0,e.useId)(),l=(0,e.useRef)(null);return(0,e.useEffect)(()=>{if(!t)return;l.current?.focus();let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let n=e=>{e.key===`Escape`&&i()};return document.addEventListener(`keydown`,n),()=>{document.body.style.overflow=e,document.removeEventListener(`keydown`,n)}},[t,i]),!t||typeof document>`u`?null:(0,r.createPortal)((0,n.jsxs)(rt,{children:[(0,n.jsx)(it,{type:`button`,"aria-label":`Close overlay`,onClick:i}),(0,n.jsxs)(at,{ref:l,role:`dialog`,"aria-modal":`true`,"aria-labelledby":c,tabIndex:-1,children:[(0,n.jsxs)(ot,{children:[(0,n.jsx)(st,{id:c,children:a}),(0,n.jsx)(H,{"aria-label":s,ghost:!0,onClick:i,shape:`rounded`,size:`md`,variant:`primary`,children:(0,n.jsx)(lt,{})})]}),o==null?null:(0,n.jsx)(ct,{children:o})]})]}),document.body)}var Z=t.css`
|
|
727
|
+
display: inline-flex;
|
|
728
|
+
align-items: center;
|
|
729
|
+
justify-content: center;
|
|
730
|
+
border: 0;
|
|
731
|
+
padding: ${({theme:e})=>d(e).navLinks.itemPadding};
|
|
732
|
+
box-shadow: ${({theme:e})=>d(e).shadow.link};
|
|
733
|
+
background: ${({theme:e})=>d(e).colors.primary};
|
|
734
|
+
color: ${({theme:e})=>d(e).colors.primaryText};
|
|
735
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
736
|
+
font-size: ${({theme:e})=>d(e).navLinks.fontSize};
|
|
737
|
+
font-weight: ${({theme:e})=>d(e).font.weight.semibold};
|
|
738
|
+
text-decoration: ${({theme:e})=>d(e).navLinks.textDecoration};
|
|
739
|
+
text-transform: ${({theme:e})=>d(e).navLinks.textTransform};
|
|
740
|
+
cursor: pointer;
|
|
741
|
+
position: relative;
|
|
742
|
+
z-index: 1;
|
|
743
|
+
transition:
|
|
744
|
+
background-color 0.15s ease,
|
|
745
|
+
box-shadow 0.15s ease,
|
|
746
|
+
color 0.15s ease,
|
|
747
|
+
transform 0.15s ease;
|
|
748
|
+
|
|
749
|
+
&:hover:not(:disabled) {
|
|
750
|
+
background: ${({theme:e})=>a(d(e).colors.primary,d(e).colors.ink)};
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
&:first-child {
|
|
754
|
+
border-top-left-radius: ${({theme:e})=>d(e).navLinks.borderRadius};
|
|
755
|
+
border-bottom-left-radius: ${({theme:e})=>d(e).navLinks.borderRadius};
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
&:last-child {
|
|
759
|
+
border-top-right-radius: ${({theme:e})=>d(e).navLinks.borderRadius};
|
|
760
|
+
border-bottom-right-radius: ${({theme:e})=>d(e).navLinks.borderRadius};
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
${_(`navLinks`)}
|
|
764
|
+
|
|
765
|
+
&:disabled {
|
|
766
|
+
opacity: ${({theme:e})=>d(e).opacity.disabledButton};
|
|
767
|
+
cursor: not-allowed;
|
|
768
|
+
}
|
|
769
|
+
`,dt=t.styled.nav`
|
|
770
|
+
display: inline-flex;
|
|
771
|
+
align-items: center;
|
|
772
|
+
border-radius: ${({theme:e})=>d(e).navLinks.borderRadius};
|
|
773
|
+
padding: 0;
|
|
774
|
+
box-shadow: ${({theme:e})=>d(e).shadow.navLinks};
|
|
775
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
776
|
+
font-size: ${({theme:e})=>d(e).navLinks.fontSize};
|
|
777
|
+
text-transform: ${({theme:e})=>d(e).navLinks.textTransform};
|
|
778
|
+
|
|
779
|
+
& > a {
|
|
780
|
+
${Z}
|
|
781
|
+
|
|
782
|
+
border: ${({theme:e})=>d(e).navLinks.border};
|
|
783
|
+
|
|
784
|
+
&:active,
|
|
785
|
+
&[aria-current='page'] {
|
|
786
|
+
z-index: 0;
|
|
787
|
+
box-shadow: none;
|
|
788
|
+
transform: translate(
|
|
789
|
+
calc(0px + ${({theme:e})=>d(e).shadow.offsetX}),
|
|
790
|
+
${({theme:e})=>d(e).shadow.offsetY}
|
|
791
|
+
);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
`,ft=t.styled.button`
|
|
795
|
+
${Z}
|
|
796
|
+
`;function pt({links:e,...t}){return(0,n.jsx)(dt,{...t,children:e.map(e=>`href`in e&&e.href!==void 0?(0,n.jsx)(i.NavLink,{to:e.href,className:e.className,style:e.style,end:e.end,caseSensitive:e.caseSensitive,children:e.label},e.id):(0,n.jsx)(ft,{type:`button`,disabled:e.disabled,onClick:e.onClick,children:e.label},e.id))})}var mt=t.styled.a`
|
|
797
|
+
display: inline-flex;
|
|
798
|
+
align-items: center;
|
|
799
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
800
|
+
color: inherit;
|
|
801
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
802
|
+
text-decoration: ${({theme:e})=>d(e).userBadge.textDecoration};
|
|
803
|
+
|
|
804
|
+
${_(`userBadge`)}
|
|
805
|
+
`;function ht({to:e,firstName:t,lastName:r,avatarSrc:a,size:o=`md`,showName:s=!0,...c}){let l=`${t} ${r}`.trim();return(0,n.jsxs)(mt,{as:i.Link,to:e,...c,children:[(0,n.jsx)(p,{firstName:t,lastName:r,src:a,alt:s?``:l,size:o,"aria-hidden":s?!0:void 0}),s?(0,n.jsx)(`span`,{children:l}):null]})}var gt=t.styled.aside`
|
|
806
|
+
box-sizing: border-box;
|
|
807
|
+
display: flex;
|
|
808
|
+
flex: 0 0
|
|
809
|
+
${({$extended:e,theme:t})=>e?d(t).sidebar.width.extended:d(t).sidebar.width.compact};
|
|
810
|
+
flex-direction: column;
|
|
811
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
812
|
+
width: ${({$extended:e,theme:t})=>e?d(t).sidebar.width.extended:d(t).sidebar.width.compact};
|
|
813
|
+
height: ${({theme:e})=>d(e).sidebar.height.fallback};
|
|
814
|
+
height: ${({theme:e})=>d(e).sidebar.height.dynamic};
|
|
815
|
+
min-height: 0;
|
|
816
|
+
overflow: hidden;
|
|
817
|
+
padding: ${({theme:e})=>d(e).space.inset};
|
|
818
|
+
border: ${({theme:e})=>d(e).sidebar.border};
|
|
819
|
+
border-radius: ${({theme:e})=>d(e).sidebar.borderRadius};
|
|
820
|
+
background: ${({theme:e})=>d(e).colors.surface};
|
|
821
|
+
box-shadow: ${({theme:e})=>d(e).shadow.sidebar};
|
|
822
|
+
transition:
|
|
823
|
+
width 0.2s ease,
|
|
824
|
+
flex-basis 0.2s ease;
|
|
825
|
+
`,_t=t.styled.div`
|
|
826
|
+
display: flex;
|
|
827
|
+
flex-direction: column;
|
|
828
|
+
align-items: center;
|
|
829
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
830
|
+
align-items: ${({$extended:e})=>e?`flex-end`:`center`};
|
|
831
|
+
`,vt=t.styled.nav`
|
|
832
|
+
display: flex;
|
|
833
|
+
min-height: 0;
|
|
834
|
+
flex: 1;
|
|
835
|
+
flex-direction: column;
|
|
836
|
+
align-items: stretch;
|
|
837
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
838
|
+
margin-inline: ${({theme:e})=>`-${d(e).space.xs}`};
|
|
839
|
+
padding-inline: ${({theme:e})=>d(e).space.xs};
|
|
840
|
+
overflow-y: auto;
|
|
841
|
+
overflow-x: hidden;
|
|
842
|
+
`,yt=t.styled.div`
|
|
843
|
+
display: flex;
|
|
844
|
+
width: 100%;
|
|
845
|
+
min-width: 0;
|
|
846
|
+
|
|
847
|
+
& > a {
|
|
848
|
+
box-sizing: border-box;
|
|
849
|
+
width: 100%;
|
|
850
|
+
min-width: 0;
|
|
851
|
+
justify-content: ${({$extended:e})=>e?`flex-start`:`center`};
|
|
852
|
+
}
|
|
853
|
+
`,bt=t.styled.div`
|
|
854
|
+
display: flex;
|
|
855
|
+
flex-direction: column;
|
|
856
|
+
gap: ${({theme:e})=>d(e).space.sm};
|
|
857
|
+
`;function Q({extended:e}){return(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,children:e?(0,n.jsx)(`path`,{d:`m15 18-6-6 6-6`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}):(0,n.jsx)(`path`,{d:`m9 18 6-6-6-6`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function xt({links:t,logout:r,extended:i,defaultExtended:a=!1,onExtendedChange:o,navigationLabel:s=`Primary navigation`,"aria-label":c=`Application sidebar`,...l}){let[u,d]=(0,e.useState)(a),f=i??u,[p,m]=(0,e.useState)(f);function h(){let e=!f;e||m(!0),i===void 0&&d(e),o?.(e)}function g(e){e.target===e.currentTarget&&e.propertyName===`width`&&m(f)}function _(e){return(0,n.jsx)(yt,{$extended:p,children:p?(0,n.jsxs)(J,{href:e.href,children:[(0,n.jsx)(P,{size:`md`,style:{color:`inherit`},children:e.icon}),e.label]}):(0,n.jsx)(W,{href:e.href,"aria-label":e.label,title:e.label,children:e.icon})},e.id)}return(0,n.jsxs)(gt,{...l,$extended:f,"aria-label":c,"data-extended":f,onTransitionEnd:g,children:[(0,n.jsx)(_t,{$extended:f,children:(0,n.jsx)(H,{"aria-label":f?`Collapse sidebar`:`Expand sidebar`,"aria-expanded":f,onClick:h,size:`sm`,ghost:!0,children:(0,n.jsx)(Q,{extended:f})})}),(0,n.jsx)(vt,{"aria-label":s,children:t.map(e=>_(e))}),(0,n.jsx)(bt,{children:_(r)})]})}var St=t.styled.div`
|
|
858
|
+
position: relative;
|
|
859
|
+
display: block;
|
|
860
|
+
width: 100%;
|
|
861
|
+
min-width: 0;
|
|
862
|
+
aspect-ratio: ${({$aspectRatio:e})=>e};
|
|
863
|
+
box-sizing: border-box;
|
|
864
|
+
overflow: hidden;
|
|
865
|
+
padding: ${({theme:e})=>d(e).space.inset};
|
|
866
|
+
border: ${({theme:e})=>d(e).camera.border};
|
|
867
|
+
border-radius: ${({theme:e})=>d(e).camera.borderRadius};
|
|
868
|
+
background: ${({theme:e})=>d(e).colors.surface};
|
|
869
|
+
color: ${({theme:e})=>d(e).colors.text};
|
|
870
|
+
`,Ct=t.styled.video`
|
|
871
|
+
position: absolute;
|
|
872
|
+
inset: 0;
|
|
873
|
+
width: 100%;
|
|
874
|
+
height: 100%;
|
|
875
|
+
object-fit: cover;
|
|
876
|
+
`,wt=t.styled.div`
|
|
877
|
+
position: absolute;
|
|
878
|
+
inset: 0;
|
|
879
|
+
display: flex;
|
|
880
|
+
align-items: center;
|
|
881
|
+
justify-content: center;
|
|
882
|
+
background: ${({theme:e})=>d(e).colors.secondary};
|
|
883
|
+
color: ${({theme:e})=>d(e).colors.primary};
|
|
884
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
885
|
+
font-size: ${({theme:e})=>d(e).camera.fallbackFontSize};
|
|
886
|
+
font-weight: ${({theme:e})=>d(e).camera.fallbackFontWeight};
|
|
887
|
+
`,$=t.styled.div`
|
|
888
|
+
position: absolute;
|
|
889
|
+
z-index: 1;
|
|
890
|
+
${({$placement:e})=>e===`top-right`?t.css`
|
|
891
|
+
top: ${({theme:e})=>d(e).space.inset};
|
|
892
|
+
right: ${({theme:e})=>d(e).space.inset};
|
|
893
|
+
`:t.css`
|
|
894
|
+
right: ${({theme:e})=>d(e).space.inset};
|
|
895
|
+
bottom: ${({theme:e})=>d(e).space.inset};
|
|
896
|
+
`}
|
|
897
|
+
`,Tt=t.styled.span`
|
|
898
|
+
position: absolute;
|
|
899
|
+
z-index: 1;
|
|
900
|
+
bottom: ${({theme:e})=>d(e).space.inset};
|
|
901
|
+
left: ${({theme:e})=>d(e).space.inset};
|
|
902
|
+
max-width: ${({theme:e})=>`calc(100% - ${d(e).camera.nameMaxWidthOffset})`};
|
|
903
|
+
overflow: hidden;
|
|
904
|
+
padding: ${({theme:e})=>`${d(e).space.xs} ${d(e).space.sm}`};
|
|
905
|
+
border-radius: ${({theme:e})=>d(e).camera.nameBorderRadius};
|
|
906
|
+
background: ${({theme:e})=>`color-mix(in srgb, ${d(e).colors.ink} 65%, transparent)`};
|
|
907
|
+
color: ${({theme:e})=>d(e).colors.muted};
|
|
908
|
+
font-family: ${({theme:e})=>d(e).font.sans};
|
|
909
|
+
font-size: ${({theme:e})=>d(e).typography.small};
|
|
910
|
+
text-overflow: ellipsis;
|
|
911
|
+
white-space: nowrap;
|
|
912
|
+
`;function Et({disabled:e}){return(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M4 7.5h11.5A1.5 1.5 0 0 1 17 9v1.5l4-2.5v8l-4-2.5V15a1.5 1.5 0 0 1-1.5 1.5H5.5A1.5 1.5 0 0 1 4 15V7.5Z`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),e?(0,n.jsx)(`path`,{d:`m3 3 18 18`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`}):null]})}function Dt({disabled:e}){return(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3Zm0 0v5m-4 0h8m-11-8a7 7 0 0 0 14 0`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),e?(0,n.jsx)(`path`,{d:`m3 3 18 18`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`}):null]})}function Ot({firstName:t,lastName:r,stream:i,cameraEnabled:a,audioEnabled:o,onCameraToggle:s,onAudioToggle:c,aspectRatio:l=16/9,...u}){let d=(0,e.useRef)(null),f=`${t} ${r}`.trim(),p=`${t.charAt(0)}${r.charAt(0)}`.toUpperCase(),m=a&&!!i;return(0,e.useEffect)(()=>{let e=d.current;if(e)return e.srcObject=m?i??null:null,()=>{e.srcObject=null}},[m,i]),(0,n.jsxs)(St,{...u,$aspectRatio:Number.isFinite(l)&&l>0?l:16/9,role:`group`,"aria-label":`${f} camera`,children:[m?(0,n.jsx)(Ct,{ref:d,autoPlay:!0,muted:!0,playsInline:!0}):(0,n.jsx)(wt,{"aria-hidden":`true`,children:p}),(0,n.jsx)($,{$placement:`top-right`,children:(0,n.jsx)(H,{"aria-label":`Turn camera ${a?`off`:`on`}`,"aria-pressed":a,variant:`primary`,size:`md`,shape:`rounded`,ghost:!0,onClick:s,children:(0,n.jsx)(Et,{disabled:!a})})}),(0,n.jsx)($,{$placement:`bottom-right`,children:(0,n.jsx)(H,{"aria-label":`Turn audio ${o?`off`:`on`}`,"aria-pressed":o,variant:`primary`,size:`md`,shape:`rounded`,ghost:!0,onClick:c,children:(0,n.jsx)(Dt,{disabled:!o})})}),(0,n.jsx)(Tt,{children:f})]})}var kt=t.createGlobalStyle`
|
|
913
|
+
:root {
|
|
914
|
+
--jynko-shadow-solid: ${({theme:e})=>d(e).shadow.button};
|
|
915
|
+
--jynko-modal-padding: ${({theme:e})=>d(e).modal.padding};
|
|
916
|
+
--jynko-modal-max-width: ${({theme:e})=>d(e).modal.maxWidth};
|
|
917
|
+
--jynko-modal-max-height: ${({theme:e})=>d(e).modal.maxHeight};
|
|
918
|
+
--jynko-modal-border-radius: ${({theme:e})=>d(e).modal.borderRadius};
|
|
919
|
+
--jynko-modal-box-shadow: ${({theme:e})=>d(e).shadow.modal};
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
button {
|
|
923
|
+
border: ${({theme:e})=>d(e).button.border};
|
|
924
|
+
border-radius: ${({theme:e})=>d(e).button.borderRadius};
|
|
925
|
+
padding: ${({theme:e})=>d(e).button.padding};
|
|
926
|
+
font-size: ${({theme:e})=>d(e).button.fontSize};
|
|
927
|
+
text-transform: ${({theme:e})=>d(e).button.textTransform};
|
|
928
|
+
}
|
|
929
|
+
`;function At({children:e,theme:r=u}){return(0,n.jsxs)(t.ThemeProvider,{theme:r,children:[(0,n.jsx)(kt,{}),e]})}exports.AAvatar=p,exports.ABadge=x,exports.AButton=j,exports.AIcon=P,exports.AIconButton=H,exports.AIconLink=W,exports.AInput=he,exports.ALink=J,exports.ALogo=xe,exports.ASearchInput=Ae,exports.ASection=Me,exports.ASelect=We,exports.ATextarea=Je,exports.ATypography=Xe,exports.JynkoProvider=At,exports.MModal=ut,exports.MNavLinks=pt,exports.MUserBadge=ht,exports.OSidebar=xt,exports.OUserCamera=Ot,exports.theme=u;
|
|
930
|
+
//# sourceMappingURL=index.cjs.map
|