@vini-ds/agent 0.0.0-stage → 0.1.0-alpha.11
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/SETUP.md +263 -0
- package/SKILL.md +43 -0
- package/context/components.json +16694 -0
- package/context/current.json +904 -0
- package/context/examples.json +341 -0
- package/context/patterns.json +485 -0
- package/context/tokens.json +28758 -0
- package/mcp.mjs +340 -0
- package/package.json +25 -4
- package/supervisor.mjs +125 -0
- package/updates.mjs +361 -0
- package/version.mjs +34 -0
- package/README.md +0 -3
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "form-transaction",
|
|
4
|
+
"title": "Form transaction",
|
|
5
|
+
"description": "A two-field form with local validation, simulated outcomes, retry and reset.",
|
|
6
|
+
"patternIds": [
|
|
7
|
+
"form-transaction"
|
|
8
|
+
],
|
|
9
|
+
"limitations": [
|
|
10
|
+
"React DOM reference only; no native mobile, TV or terminal support is implied.",
|
|
11
|
+
"Outcomes are simulated in the page; the example does not submit, persist or transmit information.",
|
|
12
|
+
"Cancellation invalidates the local attempt and does not establish server-side rollback.",
|
|
13
|
+
"Primary Button contrast debt remains open; this example uses secondary actions.",
|
|
14
|
+
"Current Figma alignment and full accessibility conformance are not claimed.",
|
|
15
|
+
"Copy the supplied JSX and CSS together; FormTransactionExample is example source, not a runtime package export. Use the existing root provider, matching packages and public styles.",
|
|
16
|
+
"Change product copy and field values within the selected form contract. Keep label/error associations, action containment, validation timing, retained values and focus recovery intact.",
|
|
17
|
+
"Check client validation, pending and repeat submission, simulated field rejection, temporary failure and success, retry, reset and late-result handling. The product must replace the simulation with its own adapter and outcomes.",
|
|
18
|
+
"This transaction example is not an authentication flow; it does not create a session or supply identity-provider, registration or account-recovery behavior."
|
|
19
|
+
],
|
|
20
|
+
"sourceCorrespondence": "Adapted from the web Form transaction reference: the named form and action group, bound fields, recovery states and retained values are preserved with neutral demonstration content.",
|
|
21
|
+
"componentIds": [
|
|
22
|
+
"field",
|
|
23
|
+
"form-field",
|
|
24
|
+
"input",
|
|
25
|
+
"button"
|
|
26
|
+
],
|
|
27
|
+
"files": [
|
|
28
|
+
{
|
|
29
|
+
"name": "FormTransactionExample.jsx",
|
|
30
|
+
"language": "jsx",
|
|
31
|
+
"source": "import * as React from 'react';\nimport { Button, FieldGroup, FormField, Input } from '@vini-ds/ui';\nimport './examples.css';\n\n// Local simulation: no information is transmitted or stored outside this page.\n// Use duplicate@example.test for a field error; use \"offline\" as the name for\n// a temporary failure. Change the name to retry successfully.\nexport default function FormTransactionExample() {\n const prefix = React.useId();\n const emailId = `${prefix}-email`;\n const nameId = `${prefix}-name`;\n const emailRef = React.useRef(null);\n const nameRef = React.useRef(null);\n const timerRef = React.useRef(null);\n const sequenceRef = React.useRef(0);\n const pendingRef = React.useRef(false);\n const [values, setValues] = React.useState({ email: '', name: '' });\n const [errors, setErrors] = React.useState({});\n const [state, setState] = React.useState('pristine');\n const [focusTarget, setFocusTarget] = React.useState(null);\n\n React.useEffect(() => {\n if (focusTarget === 'email') emailRef.current?.focus();\n if (focusTarget === 'name') nameRef.current?.focus();\n setFocusTarget(null);\n }, [focusTarget, errors]);\n\n const abortLocalAttempt = React.useCallback(() => {\n sequenceRef.current += 1;\n pendingRef.current = false;\n if (timerRef.current !== null) window.clearTimeout(timerRef.current);\n timerRef.current = null;\n }, []);\n\n React.useEffect(() => () => abortLocalAttempt(), [abortLocalAttempt]);\n\n function edit(field, value) {\n setValues(previous => ({ ...previous, [field]: value }));\n setErrors(previous => ({ ...previous, [field]: undefined }));\n setState('editing');\n }\n\n function submit(event) {\n event.preventDefault();\n if (pendingRef.current || state === 'submit-success' || errors.serverEmail) return;\n const next = {};\n if (!values.email.trim()) next.email = 'Enter an email address.';\n else if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(values.email.trim())) next.email = 'Enter a valid email address.';\n if (!values.name.trim()) next.name = 'Enter a name.';\n if (Object.keys(next).length) {\n setErrors(next);\n setState('client-invalid');\n setFocusTarget(next.email ? 'email' : 'name');\n return;\n }\n setErrors({});\n setState('submitting');\n pendingRef.current = true;\n const sequence = ++sequenceRef.current;\n timerRef.current = window.setTimeout(() => {\n if (sequenceRef.current !== sequence) return;\n timerRef.current = null;\n pendingRef.current = false;\n if (values.email.trim().toLowerCase() === 'duplicate@example.test') {\n setErrors({ serverEmail: 'This email is already in use in this demonstration.' });\n setState('server-invalid');\n setFocusTarget('email');\n } else if (values.name.trim().toLowerCase() === 'offline') {\n setState('submit-failure');\n } else {\n setState('submit-success');\n }\n }, 700);\n }\n\n function reset(event) {\n event.preventDefault();\n // This cancels the local attempt only; it does not imply server rollback.\n abortLocalAttempt();\n setValues({ email: '', name: '' });\n setErrors({});\n setFocusTarget(null);\n setState('pristine');\n }\n\n const pending = state === 'submitting';\n const emailError = errors.email || errors.serverEmail;\n return (\n <form className=\"vini-example-form\" noValidate aria-label=\"Contact details form\" onSubmit={submit} onReset={reset}>\n <FieldGroup>\n <h2>Contact details</h2>\n <p>Demonstration only: no data is sent. To see a field error, use duplicate@example.test; to see a temporary failure, enter offline as the name.</p>\n {state === 'client-invalid' && <div role=\"alert\">Check the highlighted fields and try again.</div>}\n {state === 'server-invalid' && <div role=\"alert\">Review the email address and try again.</div>}\n {state === 'submit-failure' && <div role=\"alert\">The demonstration could not complete. Your entries are available to edit and retry.</div>}\n {state === 'submit-success' && <div role=\"status\" aria-live=\"polite\">Demonstration complete. Your entries remain available.</div>}\n <FormField orientation=\"vertical\" label=\"Email address\" required controlId={emailId} error={emailError}\n renderControl={bind => bind(<Input ref={emailRef} name=\"email\" type=\"email\" autoComplete=\"email\" size=\"500\" variant=\"default\" status={emailError ? 'error' : 'none'} value={values.email} disabled={pending}\n onChange={event => { setErrors(previous => ({ ...previous, email: undefined, serverEmail: undefined })); setValues(previous => ({ ...previous, email: event.target.value })); setState('editing'); }} />)} />\n <FormField orientation=\"vertical\" label=\"Name\" required controlId={nameId} error={errors.name}\n renderControl={bind => bind(<Input ref={nameRef} name=\"name\" type=\"text\" autoComplete=\"name\" size=\"500\" variant=\"default\" status={errors.name ? 'error' : 'none'} value={values.name} disabled={pending}\n onChange={event => edit('name', event.target.value)} />)} />\n <div role=\"group\" aria-label=\"Form actions\" className=\"vini-example-actions\">\n <Button type=\"submit\" color=\"main\" variant=\"secondary\" size=\"500\" state={pending ? 'progress' : 'normal'} disabled={state === 'submit-success' || Boolean(errors.serverEmail)} aria-label={pending ? 'Submitting contact details' : undefined}>Submit</Button>\n <Button type=\"reset\" color=\"main\" variant=\"secondary\" size=\"500\" disabled={pending}>Reset form</Button>\n </div>\n </FieldGroup>\n </form>\n );\n}\n"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "examples.css",
|
|
35
|
+
"language": "css",
|
|
36
|
+
"source": "/* Example-owned page layout; component appearance remains with VINi. */\n.vini-example-form { inline-size: min(100%, calc(var(--vini-base-sizing-1000) * 6)); }\n.vini-example-form h2, .vini-example-form p { margin: 0; }\n.vini-example-actions { display: flex; flex-wrap: wrap; gap: var(--vini-base-spacing-300); }\n.vini-example-topbar { display: flex; align-items: center; min-block-size: var(--vini-base-sizing-800); padding-inline: var(--vini-base-spacing-500); }\n.vini-example-result { padding-inline: var(--vini-base-spacing-500); overflow-wrap: anywhere; }\n.vini-example-compact-header { flex-direction: row; align-items: center; gap: var(--vini-base-spacing-300); }\n.vini-example-compact-header > ul { flex: 1; min-inline-size: 0; }\n.vini-example-compact-close { flex: none; }\n"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "sidebar-default",
|
|
42
|
+
"title": "Sidebar",
|
|
43
|
+
"description": "An expanded sidebar with team selection, navigation and account actions.",
|
|
44
|
+
"patternIds": [],
|
|
45
|
+
"limitations": [
|
|
46
|
+
"React DOM reference only; the host selects compact presentation and owns routes, data, permissions and actions.",
|
|
47
|
+
"This is a reduced composition adapted from the reference example; it is not the complete reference inventory or a Figma parity claim.",
|
|
48
|
+
"Account and team selections are demonstrations only and do not call an external service.",
|
|
49
|
+
"Copy the supplied JSX and CSS together and render SidebarExample with the listed compact prop; this demonstration function is not a runtime package export.",
|
|
50
|
+
"Use the existing root provider and published styles. Change labels, items, surrounding layout and allowed actions through public APIs; keep Sidebar internal states and focus behavior intact.",
|
|
51
|
+
"This reduced Sidebar demonstration does not implement the complete Application shell pattern or supply its route, breadcrumb, permission and command lifecycle.",
|
|
52
|
+
"Check expanded and collapsed navigation, compact open/dismiss and focus return, local team/account actions, keyboard use and narrow width after adaptation."
|
|
53
|
+
],
|
|
54
|
+
"sourceCorrespondence": "A reduced public adaptation of the default Sidebar reference; render SidebarExample with compact false.",
|
|
55
|
+
"componentIds": [
|
|
56
|
+
"sidebar",
|
|
57
|
+
"collapsible",
|
|
58
|
+
"dropdown-menu",
|
|
59
|
+
"avatar",
|
|
60
|
+
"text"
|
|
61
|
+
],
|
|
62
|
+
"files": [
|
|
63
|
+
{
|
|
64
|
+
"name": "SidebarExample.jsx",
|
|
65
|
+
"language": "jsx",
|
|
66
|
+
"source": "import * as React from 'react';\nimport {\n Avatar, AvatarFallback,\n Collapsible, CollapsibleContent, CollapsibleTrigger,\n DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger,\n Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel,\n SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuItem,\n SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider,\n SidebarRail, SidebarTrigger, Text, useSidebar\n} from '@vini-ds/ui';\nimport './examples.css';\n\nfunction Navigation({ team, setTeam, expanded, setExpanded, active, setActive, setResult, resultId }) {\n const { isMobile, state, setOpenMobile } = useSidebar();\n const collapsed = !isMobile && state === 'collapsed';\n const selectPage = event => {\n if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n event.preventDefault();\n setActive(true);\n setResult('Selected: Overview');\n setOpenMobile(false);\n };\n return <>\n <SidebarHeader className={isMobile ? 'vini-example-compact-header' : undefined}>\n <SidebarMenu><SidebarMenuItem><DropdownMenu>\n <DropdownMenuTrigger render={<SidebarMenuButton size=\"lg\" aria-label={`Switch team: ${team}`} tooltip=\"Switch team\" />}>\n <span data-sidebar-icon=\"\" aria-hidden=\"true\" className=\"material-symbols-rounded\">groups</span>\n <span hidden={collapsed}>{team}</span>\n </DropdownMenuTrigger>\n <DropdownMenuContent side={isMobile ? 'bottom' : 'right'} align=\"start\">\n {['Team One', 'Team Two'].map(item => <DropdownMenuItem key={item} onClick={() => { setTeam(item); setResult(`Team: ${item}`); }}>{item}</DropdownMenuItem>)}\n </DropdownMenuContent>\n </DropdownMenu></SidebarMenuItem></SidebarMenu>\n {isMobile && <SidebarTrigger className=\"vini-example-compact-close\" aria-label=\"Close navigation\" />}\n </SidebarHeader>\n <SidebarContent><nav aria-label=\"Example navigation\"><SidebarGroup>\n <SidebarGroupLabel>Sections</SidebarGroupLabel><SidebarMenu>\n <Collapsible open={expanded} onOpenChange={setExpanded} render={<SidebarMenuItem />}>\n <CollapsibleTrigger render={<SidebarMenuButton aria-label=\"Workspace\" tooltip=\"Workspace\" />}>\n <span data-sidebar-icon=\"\" aria-hidden=\"true\" className=\"material-symbols-rounded\">dashboard</span><span>Workspace</span>\n </CollapsibleTrigger>\n <CollapsibleContent><SidebarMenuSub><SidebarMenuSubItem>\n <SidebarMenuSubButton isActive={active} render={<a href={`#${resultId}`} aria-current={active ? 'page' : undefined} />} onClick={selectPage}>Overview</SidebarMenuSubButton>\n </SidebarMenuSubItem></SidebarMenuSub></CollapsibleContent>\n </Collapsible>\n </SidebarMenu>\n </SidebarGroup></nav></SidebarContent>\n <SidebarFooter><SidebarMenu><SidebarMenuItem><DropdownMenu>\n <DropdownMenuTrigger render={<SidebarMenuButton size=\"lg\" aria-label=\"Open account menu\" tooltip=\"Account\" />}>\n <Avatar aria-hidden=\"true\"><AvatarFallback>U</AvatarFallback></Avatar>\n <span hidden={collapsed}>Example user</span>\n </DropdownMenuTrigger>\n <DropdownMenuContent side={isMobile ? 'bottom' : 'right'} align=\"end\">\n <DropdownMenuItem onClick={() => setResult('Selected: Account')}>Account</DropdownMenuItem>\n <DropdownMenuItem onClick={() => setResult('Selected: Sign out')}>Sign out</DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu></SidebarMenuItem></SidebarMenu></SidebarFooter>\n <SidebarRail />\n </>;\n}\n\n// The host chooses compact presentation; this example does not prescribe a breakpoint.\nexport default function SidebarExample({ compact = false }) {\n const [team, setTeam] = React.useState('Team One');\n const [expanded, setExpanded] = React.useState(true);\n const [active, setActive] = React.useState(false);\n const [result, setResult] = React.useState('');\n const resultId = React.useId();\n return <SidebarProvider mobile={compact} toggleLabel=\"Toggle navigation\" mobileTitle=\"Example navigation\" mobileDescription=\"Team, sections and account actions.\">\n <Sidebar collapsible=\"icon\" side=\"left\"><Navigation team={team} setTeam={setTeam} expanded={expanded} setExpanded={setExpanded} active={active} setActive={setActive} setResult={setResult} resultId={resultId} /></Sidebar>\n <SidebarInset>\n <header className=\"vini-example-topbar\"><SidebarTrigger /></header>\n <Text as=\"p\" id={resultId} role=\"status\" className=\"vini-example-result\">{result}</Text>\n </SidebarInset>\n </SidebarProvider>;\n}\n"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "examples.css",
|
|
70
|
+
"language": "css",
|
|
71
|
+
"source": "/* Example-owned page layout; component appearance remains with VINi. */\n.vini-example-form { inline-size: min(100%, calc(var(--vini-base-sizing-1000) * 6)); }\n.vini-example-form h2, .vini-example-form p { margin: 0; }\n.vini-example-actions { display: flex; flex-wrap: wrap; gap: var(--vini-base-spacing-300); }\n.vini-example-topbar { display: flex; align-items: center; min-block-size: var(--vini-base-sizing-800); padding-inline: var(--vini-base-spacing-500); }\n.vini-example-result { padding-inline: var(--vini-base-spacing-500); overflow-wrap: anywhere; }\n.vini-example-compact-header { flex-direction: row; align-items: center; gap: var(--vini-base-spacing-300); }\n.vini-example-compact-header > ul { flex: 1; min-inline-size: 0; }\n.vini-example-compact-close { flex: none; }\n"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "sidebar-compact",
|
|
77
|
+
"title": "Compact sidebar",
|
|
78
|
+
"description": "The same sidebar composition presented as a dismissible compact navigation.",
|
|
79
|
+
"patternIds": [],
|
|
80
|
+
"limitations": [
|
|
81
|
+
"React DOM reference only; the host selects compact presentation and owns routes, data, permissions and actions.",
|
|
82
|
+
"This is a reduced composition adapted from the reference example; it is not the complete reference inventory or a Figma parity claim.",
|
|
83
|
+
"Account and team selections are demonstrations only and do not call an external service.",
|
|
84
|
+
"Copy the supplied JSX and CSS together and render SidebarExample with the listed compact prop; this demonstration function is not a runtime package export.",
|
|
85
|
+
"Use the existing root provider and published styles. Change labels, items, surrounding layout and allowed actions through public APIs; keep Sidebar internal states and focus behavior intact.",
|
|
86
|
+
"This reduced Sidebar demonstration does not implement the complete Application shell pattern or supply its route, breadcrumb, permission and command lifecycle.",
|
|
87
|
+
"Check expanded and collapsed navigation, compact open/dismiss and focus return, local team/account actions, keyboard use and narrow width after adaptation."
|
|
88
|
+
],
|
|
89
|
+
"sourceCorrespondence": "A reduced public adaptation of the compact Sidebar reference; render SidebarExample with compact true.",
|
|
90
|
+
"componentIds": [
|
|
91
|
+
"sidebar",
|
|
92
|
+
"collapsible",
|
|
93
|
+
"dropdown-menu",
|
|
94
|
+
"avatar",
|
|
95
|
+
"text"
|
|
96
|
+
],
|
|
97
|
+
"files": [
|
|
98
|
+
{
|
|
99
|
+
"name": "SidebarExample.jsx",
|
|
100
|
+
"language": "jsx",
|
|
101
|
+
"source": "import * as React from 'react';\nimport {\n Avatar, AvatarFallback,\n Collapsible, CollapsibleContent, CollapsibleTrigger,\n DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger,\n Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel,\n SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuItem,\n SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider,\n SidebarRail, SidebarTrigger, Text, useSidebar\n} from '@vini-ds/ui';\nimport './examples.css';\n\nfunction Navigation({ team, setTeam, expanded, setExpanded, active, setActive, setResult, resultId }) {\n const { isMobile, state, setOpenMobile } = useSidebar();\n const collapsed = !isMobile && state === 'collapsed';\n const selectPage = event => {\n if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n event.preventDefault();\n setActive(true);\n setResult('Selected: Overview');\n setOpenMobile(false);\n };\n return <>\n <SidebarHeader className={isMobile ? 'vini-example-compact-header' : undefined}>\n <SidebarMenu><SidebarMenuItem><DropdownMenu>\n <DropdownMenuTrigger render={<SidebarMenuButton size=\"lg\" aria-label={`Switch team: ${team}`} tooltip=\"Switch team\" />}>\n <span data-sidebar-icon=\"\" aria-hidden=\"true\" className=\"material-symbols-rounded\">groups</span>\n <span hidden={collapsed}>{team}</span>\n </DropdownMenuTrigger>\n <DropdownMenuContent side={isMobile ? 'bottom' : 'right'} align=\"start\">\n {['Team One', 'Team Two'].map(item => <DropdownMenuItem key={item} onClick={() => { setTeam(item); setResult(`Team: ${item}`); }}>{item}</DropdownMenuItem>)}\n </DropdownMenuContent>\n </DropdownMenu></SidebarMenuItem></SidebarMenu>\n {isMobile && <SidebarTrigger className=\"vini-example-compact-close\" aria-label=\"Close navigation\" />}\n </SidebarHeader>\n <SidebarContent><nav aria-label=\"Example navigation\"><SidebarGroup>\n <SidebarGroupLabel>Sections</SidebarGroupLabel><SidebarMenu>\n <Collapsible open={expanded} onOpenChange={setExpanded} render={<SidebarMenuItem />}>\n <CollapsibleTrigger render={<SidebarMenuButton aria-label=\"Workspace\" tooltip=\"Workspace\" />}>\n <span data-sidebar-icon=\"\" aria-hidden=\"true\" className=\"material-symbols-rounded\">dashboard</span><span>Workspace</span>\n </CollapsibleTrigger>\n <CollapsibleContent><SidebarMenuSub><SidebarMenuSubItem>\n <SidebarMenuSubButton isActive={active} render={<a href={`#${resultId}`} aria-current={active ? 'page' : undefined} />} onClick={selectPage}>Overview</SidebarMenuSubButton>\n </SidebarMenuSubItem></SidebarMenuSub></CollapsibleContent>\n </Collapsible>\n </SidebarMenu>\n </SidebarGroup></nav></SidebarContent>\n <SidebarFooter><SidebarMenu><SidebarMenuItem><DropdownMenu>\n <DropdownMenuTrigger render={<SidebarMenuButton size=\"lg\" aria-label=\"Open account menu\" tooltip=\"Account\" />}>\n <Avatar aria-hidden=\"true\"><AvatarFallback>U</AvatarFallback></Avatar>\n <span hidden={collapsed}>Example user</span>\n </DropdownMenuTrigger>\n <DropdownMenuContent side={isMobile ? 'bottom' : 'right'} align=\"end\">\n <DropdownMenuItem onClick={() => setResult('Selected: Account')}>Account</DropdownMenuItem>\n <DropdownMenuItem onClick={() => setResult('Selected: Sign out')}>Sign out</DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu></SidebarMenuItem></SidebarMenu></SidebarFooter>\n <SidebarRail />\n </>;\n}\n\n// The host chooses compact presentation; this example does not prescribe a breakpoint.\nexport default function SidebarExample({ compact = false }) {\n const [team, setTeam] = React.useState('Team One');\n const [expanded, setExpanded] = React.useState(true);\n const [active, setActive] = React.useState(false);\n const [result, setResult] = React.useState('');\n const resultId = React.useId();\n return <SidebarProvider mobile={compact} toggleLabel=\"Toggle navigation\" mobileTitle=\"Example navigation\" mobileDescription=\"Team, sections and account actions.\">\n <Sidebar collapsible=\"icon\" side=\"left\"><Navigation team={team} setTeam={setTeam} expanded={expanded} setExpanded={setExpanded} active={active} setActive={setActive} setResult={setResult} resultId={resultId} /></Sidebar>\n <SidebarInset>\n <header className=\"vini-example-topbar\"><SidebarTrigger /></header>\n <Text as=\"p\" id={resultId} role=\"status\" className=\"vini-example-result\">{result}</Text>\n </SidebarInset>\n </SidebarProvider>;\n}\n"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "examples.css",
|
|
105
|
+
"language": "css",
|
|
106
|
+
"source": "/* Example-owned page layout; component appearance remains with VINi. */\n.vini-example-form { inline-size: min(100%, calc(var(--vini-base-sizing-1000) * 6)); }\n.vini-example-form h2, .vini-example-form p { margin: 0; }\n.vini-example-actions { display: flex; flex-wrap: wrap; gap: var(--vini-base-spacing-300); }\n.vini-example-topbar { display: flex; align-items: center; min-block-size: var(--vini-base-sizing-800); padding-inline: var(--vini-base-spacing-500); }\n.vini-example-result { padding-inline: var(--vini-base-spacing-500); overflow-wrap: anywhere; }\n.vini-example-compact-header { flex-direction: row; align-items: center; gap: var(--vini-base-spacing-300); }\n.vini-example-compact-header > ul { flex: 1; min-inline-size: 0; }\n.vini-example-compact-close { flex: none; }\n"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "application-shell",
|
|
112
|
+
"title": "Application shell",
|
|
113
|
+
"description": "Basic navigation shell with a shared active-route model and breadcrumb; source adaptation.",
|
|
114
|
+
"patternIds": [],
|
|
115
|
+
"limitations": [
|
|
116
|
+
"Copied React DOM example source, not a runtime package export or a product acceptance claim. Use matching VINi packages, their four stylesheets/fonts and the existing ThemeBrandProvider; checked locally with React/React DOM 18.2.0.",
|
|
117
|
+
"Keep component appearance and interaction states in their public APIs. Adapt product data, copy and surrounding layout; do not override internal hover, focus, selected or disabled styles.",
|
|
118
|
+
"This source selection requires the package API stated below. A successful projection is not an installed-product check, complete accessibility conformance, Figma parity or native platform support. Known Button primary contrast debt remains separate.",
|
|
119
|
+
"Render the default ApplicationShellExample with compact boolean chosen by the host. Copy ApplicationShellExample.jsx and its CSS Module together. Required API includes SidebarInsetHeader, Sidebar collapsible icon/offcanvas and the public Breadcrumb slots.",
|
|
120
|
+
"Demonstration routes, labels and section contents live in the copied example. The application must supply its actual route/permission model and navigation outcomes; the source is not a router or permission service.",
|
|
121
|
+
"Preserve anchor semantics, active/aria-current, route/breadcrumb/heading agreement, skip link, expanded groups and compact Sheet state/focus return. Check wide collapse, compact open/close/Escape, route activation, modified clicks, keyboard and narrow layout.",
|
|
122
|
+
"This source is adapted from the canonical Application shell reference, but no application-shell machine pattern is included by this public selection; conformance to any separate strict contract is not implied."
|
|
123
|
+
],
|
|
124
|
+
"sourceCorrespondence": "Public JSX/CSS Module adaptation of the selected WebReference; type annotations and local import paths are adapted without adding product behavior.",
|
|
125
|
+
"componentIds": [
|
|
126
|
+
"sidebar",
|
|
127
|
+
"breadcrumb",
|
|
128
|
+
"grid"
|
|
129
|
+
],
|
|
130
|
+
"files": [
|
|
131
|
+
{
|
|
132
|
+
"name": "ApplicationShellExample.jsx",
|
|
133
|
+
"language": "jsx",
|
|
134
|
+
"source": "// Public web application-shell source example. The host chooses compact mode.\n// Routes and workspace content are demonstration fixtures with no backend.\nimport React from \"react\";\nimport { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from \"@vini-ds/ui\";\nimport { Grid } from \"@vini-ds/ui\";\nimport { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarInsetHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarTrigger, useSidebar } from \"@vini-ds/ui\";\nimport styles from \"./ApplicationShellExample.module.css\";\nconst routes = [\n {\n id: \"overview\",\n label: \"Обзор\",\n description: \"Сводка рабочего пространства и ближайшие события.\",\n icon: \"dashboard\"\n },\n {\n id: \"meetings\",\n label: \"Встречи\",\n description: \"Запланированные комнаты, записи и материалы встреч.\",\n icon: \"video_chat\"\n },\n {\n id: \"contacts\",\n label: \"Контакты\",\n description: \"Люди, команды и корпоративный справочник.\",\n icon: \"group\"\n },\n {\n id: \"settings\",\n label: \"Настройки\",\n description: \"Параметры рабочего пространства и уведомлений.\",\n icon: \"settings\"\n },\n {\n id: \"design\",\n label: \"Дизайн\",\n parent: \"Проекты\",\n icon: \"folder\"\n },\n {\n id: \"research\",\n label: \"Исследования\",\n parent: \"Проекты\",\n icon: \"folder\"\n },\n {\n id: \"components\",\n label: \"Компоненты\",\n parent: \"Библиотека\",\n icon: \"widgets\"\n },\n {\n id: \"patterns\",\n label: \"Паттерны\",\n parent: \"Библиотека\",\n icon: \"widgets\"\n }\n];\nconst nestedGroups = [\n { id: \"projects\", label: \"Проекты\", icon: \"folder\", routes: [\"design\", \"research\"] },\n { id: \"library\", label: \"Библиотека\", icon: \"widgets\", routes: [\"components\", \"patterns\"] }\n];\nfunction shouldNavigateInCurrentTab(event) {\n return (!event.defaultPrevented && event.button === 0 &&\n !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey);\n}\nfunction MaterialSymbol({ name }) {\n return (<span aria-hidden=\"true\" className=\"material-symbols-rounded\" data-sidebar-icon=\"\">\n {name}\n </span>);\n}\nfunction ShellNavigation({ activeRoute, onRouteChange }) {\n const { isMobile, state, setOpen, setOpenMobile } = useSidebar();\n const collapsed = !isMobile && state === \"collapsed\";\n const [expanded, setExpanded] = React.useState(() => ({\n projects: true,\n library: nestedGroups[1].routes.some((routeId) => routeId === activeRoute)\n }));\n function activateRoute(route) {\n onRouteChange(route);\n if (isMobile)\n setOpenMobile(false);\n }\n return (<>\n <SidebarHeader>\n <SidebarMenu><SidebarMenuItem>\n <SidebarMenuButton aria-label=\"VINi Workspace\" tooltip=\"VINi Workspace\" render={<a href=\"#overview\" onClick={(event) => {\n if (!shouldNavigateInCurrentTab(event))\n return;\n event.preventDefault();\n activateRoute(\"overview\");\n }}/>}>\n <MaterialSymbol name=\"hub\"/>\n <span>VINi Workspace</span>\n </SidebarMenuButton>\n </SidebarMenuItem></SidebarMenu>\n </SidebarHeader>\n <SidebarContent>\n <nav aria-label=\"Основная навигация\">\n <SidebarGroup>\n <SidebarGroupLabel>Рабочее пространство</SidebarGroupLabel>\n <SidebarGroupContent>\n <SidebarMenu>\n {routes.slice(0, 3).map((route) => (<SidebarMenuItem key={route.id}>\n <SidebarMenuButton isActive={activeRoute === route.id} render={<a href={`#${route.id}`} aria-label={route.label} aria-current={activeRoute === route.id ? \"page\" : undefined} onClick={(event) => {\n if (!shouldNavigateInCurrentTab(event))\n return;\n event.preventDefault();\n activateRoute(route.id);\n }}/>} tooltip={route.label}>\n <MaterialSymbol name={route.icon}/>\n <span>{route.label}</span>\n </SidebarMenuButton>\n </SidebarMenuItem>))}\n </SidebarMenu>\n </SidebarGroupContent>\n </SidebarGroup>\n <SidebarGroup>\n <SidebarGroupLabel>Материалы</SidebarGroupLabel>\n <SidebarGroupContent>\n <SidebarMenu>\n {nestedGroups.map((group) => (<SidebarMenuItem key={group.id}>\n <SidebarMenuButton aria-label={group.label} tooltip={group.label} isActive={group.routes.some((routeId) => routeId === activeRoute)} aria-expanded={!collapsed && Boolean(expanded[group.id])} onClick={() => {\n if (collapsed)\n setOpen(true);\n setExpanded((previous) => ({ ...previous, [group.id]: collapsed || !previous[group.id] }));\n }}>\n <MaterialSymbol name={group.icon}/>\n <span>{group.label}</span>\n {!collapsed && <span aria-hidden=\"true\" className={`material-symbols-rounded ${styles.disclosure}`}>{expanded[group.id] ? \"keyboard_arrow_down\" : \"chevron_right\"}</span>}\n </SidebarMenuButton>\n {!collapsed && expanded[group.id] && (<SidebarMenuSub>\n {group.routes.map((routeId) => {\n const nestedRoute = routes.find((item) => item.id === routeId);\n return (<SidebarMenuSubItem key={nestedRoute.id}>\n <SidebarMenuSubButton isActive={activeRoute === nestedRoute.id} render={<a href={`#${nestedRoute.id}`} aria-current={activeRoute === nestedRoute.id ? \"page\" : undefined}/>} onClick={(event) => {\n if (!shouldNavigateInCurrentTab(event))\n return;\n event.preventDefault();\n activateRoute(nestedRoute.id);\n }}>\n {nestedRoute.label}\n </SidebarMenuSubButton>\n </SidebarMenuSubItem>);\n })}\n </SidebarMenuSub>)}\n </SidebarMenuItem>))}\n </SidebarMenu>\n </SidebarGroupContent>\n </SidebarGroup>\n </nav>\n </SidebarContent>\n <SidebarFooter>\n <SidebarMenu>\n <SidebarMenuItem>\n <SidebarMenuButton isActive={activeRoute === \"settings\"} render={<a href=\"#settings\" aria-label=\"Настройки\" aria-current={activeRoute === \"settings\" ? \"page\" : undefined} onClick={(event) => {\n if (!shouldNavigateInCurrentTab(event))\n return;\n event.preventDefault();\n activateRoute(\"settings\");\n }}/>} tooltip=\"Настройки\">\n <MaterialSymbol name=\"settings\"/>\n <span>Настройки</span>\n </SidebarMenuButton>\n </SidebarMenuItem>\n </SidebarMenu>\n </SidebarFooter>\n </>);\n}\nfunction RouteBreadcrumb({ route, onRouteChange, compact }) {\n return (<Breadcrumb aria-label=\"Навигационная цепочка\">\n <BreadcrumbList>\n {!compact && <>\n <BreadcrumbItem>\n <BreadcrumbLink render={<a href=\"#overview\" onClick={(event) => {\n if (!shouldNavigateInCurrentTab(event))\n return;\n event.preventDefault();\n onRouteChange(\"overview\");\n }}/>}>\n VINi Workspace\n </BreadcrumbLink>\n </BreadcrumbItem>\n <BreadcrumbSeparator />\n {\"parent\" in route && <><BreadcrumbItem>{route.parent}</BreadcrumbItem><BreadcrumbSeparator /></>}\n </>}\n <BreadcrumbItem>\n <BreadcrumbPage>{route.label}</BreadcrumbPage>\n </BreadcrumbItem>\n </BreadcrumbList>\n </Breadcrumb>);\n}\nexport default function ApplicationShellExample({ compact }) {\n const [activeRoute, setActiveRoute] = React.useState(\"overview\");\n const [status, setStatus] = React.useState(\"Текущий раздел: Обзор.\");\n const route = routes.find((entry) => entry.id === activeRoute) ?? routes[0];\n const changeRoute = React.useCallback((nextRoute) => {\n const next = routes.find((entry) => entry.id === nextRoute) ?? routes[0];\n setActiveRoute(next.id);\n setStatus(`Открыт раздел: ${next.label}.`);\n }, []);\n return (<SidebarProvider mobile={compact} keyboardShortcut=\"b\" toggleLabel=\"Переключить навигацию\" mobileTitle=\"Навигация VINi Workspace\" mobileDescription=\"Основные разделы рабочего пространства.\" className={styles.shell}>\n <a className={styles.skipLink} href=\"#application-shell-content\">\n Перейти к содержимому\n </a>\n <Sidebar collapsible={compact ? \"offcanvas\" : \"icon\"}>\n <ShellNavigation activeRoute={activeRoute} onRouteChange={changeRoute}/>\n <SidebarRail />\n </Sidebar>\n <SidebarInset id=\"application-shell-content\" className={styles.inset} tabIndex={-1} aria-labelledby=\"application-shell-heading\">\n <SidebarInsetHeader>\n <SidebarTrigger />\n <RouteBreadcrumb route={route} onRouteChange={changeRoute} compact={compact}/>\n </SidebarInsetHeader>\n <section className={styles.content} aria-labelledby=\"application-shell-heading\">\n <h1 id=\"application-shell-heading\" className={styles.visuallyHidden}>{route.label}</h1>\n <Grid minItemSize=\"calc(var(--vini-base-sizing-600) * 4)\" gap=\"500\" aria-hidden=\"true\">\n <div className={styles.gridTile}/>\n <div className={styles.gridTile}/>\n <div className={styles.gridTile}/>\n </Grid>\n <div className={styles.gridMain} aria-hidden=\"true\"/>\n <p className={styles.visuallyHidden} role=\"status\" aria-live=\"polite\">\n {status}\n </p>\n </section>\n </SidebarInset>\n </SidebarProvider>);\n}\n"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "ApplicationShellExample.module.css",
|
|
138
|
+
"language": "css",
|
|
139
|
+
"source": ".shell {\n min-block-size: 100dvh;\n}\n\n.inset {\n display: flex;\n flex-direction: column;\n}\n\n.content {\n display: grid;\n flex: 1;\n grid-template-rows: auto minmax(0, 1fr);\n gap: var(--vini-base-spacing-500);\n padding: var(--vini-base-spacing-600);\n}\n\n.gridTile,\n.gridMain {\n border-radius: var(--vini-base-border-radius-500);\n background: var(--vini-theme-main-space);\n}\n\n.gridTile {\n aspect-ratio: 16 / 9;\n}\n\n.gridMain {\n min-block-size: calc(var(--vini-base-sizing-600) * 5);\n}\n\n.disclosure {\n margin-inline-start: auto;\n}\n\n.visuallyHidden {\n position: absolute;\n inline-size: var(--vini-base-spacing-px);\n block-size: var(--vini-base-spacing-px);\n margin: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n.skipLink {\n position: fixed;\n inset-block-start: var(--vini-base-spacing-300);\n inset-inline-start: var(--vini-base-spacing-300);\n z-index: 200;\n padding: var(--vini-base-spacing-300) var(--vini-base-spacing-400);\n border-radius: var(--vini-base-border-radius-300);\n background: var(--vini-theme-main-surface);\n color: var(--vini-theme-main-foreground-primary);\n font-family: var(--vini-fonttheme-family-default);\n transform: translateY(-200%);\n}\n\n.skipLink:focus {\n outline: var(--vini-base-border-width-600) solid var(--vini-theme-main-focus);\n outline-offset: var(--vini-base-spacing-100);\n transform: translateY(0);\n}\n"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"id": "dashboard-inset",
|
|
145
|
+
"title": "Inset dashboard",
|
|
146
|
+
"description": "Inset navigation and scrollable dashboard contents with metric cards, chart and framed materials table.",
|
|
147
|
+
"patternIds": [],
|
|
148
|
+
"limitations": [
|
|
149
|
+
"Copied React DOM example source, not a runtime package export or a product acceptance claim. Use matching VINi packages, their four stylesheets/fonts and the existing ThemeBrandProvider; checked locally with React/React DOM 18.2.0.",
|
|
150
|
+
"Keep component appearance and interaction states in their public APIs. Adapt product data, copy and surrounding layout; do not override internal hover, focus, selected or disabled styles.",
|
|
151
|
+
"This source selection requires the package API stated below. A successful projection is not an installed-product check, complete accessibility conformance, Figma parity or native platform support. Known Button primary contrast debt remains separate.",
|
|
152
|
+
"Render default DashboardShellExample with compact chosen by the host and panel false for inset or true for separate panels. Copy all five listed files, including chart JSX/CSS and DashboardAreaChart.licenses.jsx, together.",
|
|
153
|
+
"Requires SidebarInsetHeader, Sidebar variant inset/panel and Button variant text in the selected package, not merely the corresponding export names.",
|
|
154
|
+
"The copied chart imports Recharts directly: add the checked direct dependency recharts 3.10.1 and preserve DashboardAreaChart.licenses.jsx notices. A transitive dependency of VINi is not a substitute for this consumer dependency.",
|
|
155
|
+
"The example contains fictional metric cards, a 90/30/7-day chart with two stacked series, and a materials table. These are local compositions, not VINi Metric, Chart, Widget or DataTable runtime exports.",
|
|
156
|
+
"Dashboard route selection is memory-only; material view/page use local browser history. Materials, sorting, selection and add-row actions use memory-only fixtures and fixture-name identity. The application supplies stable IDs, real data/router/persistence and explicit selection semantics.",
|
|
157
|
+
"Keep selection of shown rows separate from hidden selections; preserve sort aria-sort, status Tabs, page boundaries, empty state and keyboard-reachable actions. Verify range changes, table sort/select/add/page/view/back, content scrolling, compact navigation and focus after adaptation.",
|
|
158
|
+
"The rounded Table frame belongs to the outer composition. Preserve the Table scroll region, row/cell semantics and focus visibility.",
|
|
159
|
+
"This dashboard lacks the canonical Application shell Breadcrumb composition and is not an implementation of its complete strict pattern. Product loading/error behavior, chart data alternatives and real outcomes must be defined and checked in the connected application."
|
|
160
|
+
],
|
|
161
|
+
"sourceCorrespondence": "Public adaptation of the selected DashboardReference and its chart/table closure; render DashboardShellExample with panel false.",
|
|
162
|
+
"componentIds": [
|
|
163
|
+
"sidebar",
|
|
164
|
+
"button",
|
|
165
|
+
"checkbox",
|
|
166
|
+
"badge",
|
|
167
|
+
"card",
|
|
168
|
+
"grid",
|
|
169
|
+
"heading",
|
|
170
|
+
"pagination",
|
|
171
|
+
"table",
|
|
172
|
+
"tabs",
|
|
173
|
+
"text",
|
|
174
|
+
"select"
|
|
175
|
+
],
|
|
176
|
+
"files": [
|
|
177
|
+
{
|
|
178
|
+
"name": "DashboardShellExample.jsx",
|
|
179
|
+
"language": "jsx",
|
|
180
|
+
"source": "// Public dashboard composition with local demonstration data and interactions.\n// The host chooses compact mode; panel=true selects the panel composition.\n// Supply real routes and data when integrating this example into an application.\nimport React from \"react\";\nimport { Button } from \"@vini-ds/ui\";\nimport { Checkbox } from \"@vini-ds/ui\";\nimport { Badge } from \"@vini-ds/ui\";\nimport { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle } from \"@vini-ds/ui\";\nimport { Grid } from \"@vini-ds/ui\";\nimport { Heading } from \"@vini-ds/ui\";\nimport { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext } from \"@vini-ds/ui\";\nimport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from \"@vini-ds/ui\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@vini-ds/ui\";\nimport { Text } from \"@vini-ds/ui\";\nimport { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarInsetHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvider, SidebarTrigger, useSidebar } from \"@vini-ds/ui\";\nimport styles from \"./DashboardShellExample.module.css\";\nimport { DashboardAreaChart } from \"./DashboardAreaChart.jsx\";\nconst routes = [\n { id: \"overview\", label: \"Обзор\", icon: \"dashboard\", group: \"main\" },\n { id: \"projects\", label: \"Проекты\", icon: \"folder\", group: \"main\" },\n { id: \"meetings\", label: \"Встречи\", icon: \"video_chat\", group: \"main\" },\n { id: \"team\", label: \"Команда\", icon: \"group\", group: \"main\" },\n { id: \"documents\", label: \"Документы\", icon: \"description\", group: \"materials\" },\n { id: \"reports\", label: \"Отчёты\", icon: \"summarize\", group: \"materials\" },\n { id: \"settings\", label: \"Настройки\", icon: \"settings\", group: \"footer\" }\n];\nconst metrics = [\n { label: \"Проекты\", value: \"12\", change: \"+20%\", icon: \"trending_up\", summary: \"На 2 проекта больше\", detail: \"За последний месяц\" },\n { label: \"Задачи\", value: \"36\", change: \"+12,5%\", icon: \"trending_up\", summary: \"На 4 задачи больше\", detail: \"За последний месяц\" },\n { label: \"Встречи\", value: \"8\", change: \"−20%\", icon: \"trending_down\", summary: \"На 2 встречи меньше\", detail: \"За последнюю неделю\" },\n { label: \"Участники\", value: \"24\", change: \"+9,1%\", icon: \"trending_up\", summary: \"На 2 участника больше\", detail: \"За последний месяц\" }\n];\nconst items = [\n { name: \"Обновление интерфейса\", type: \"Проект\", status: \"В работе\" },\n { name: \"Исследование сценариев\", type: \"Исследование\", status: \"Запланировано\" },\n { name: \"Итоги встречи\", type: \"Документ\", status: \"Готово\" },\n { name: \"План на квартал\", type: \"Документ\", status: \"В работе\" },\n { name: \"Библиотека компонентов\", type: \"Проект\", status: \"В работе\" },\n { name: \"Отчёт команды\", type: \"Документ\", status: \"Готово\" },\n { name: \"Прототип навигации\", type: \"Проект\", status: \"Запланировано\" },\n { name: \"Заметки исследования\", type: \"Исследование\", status: \"Готово\" }\n];\nconst materialColumns = [\n { key: \"name\", label: \"Название\" },\n { key: \"type\", label: \"Тип\" },\n { key: \"status\", label: \"Статус\" }\n];\nconst materialCollator = new Intl.Collator(\"ru-RU\", { sensitivity: \"base\", numeric: true });\nconst views = [\"Все\", \"В работе\", \"Готово\"];\nconst pageSize = 4;\nfunction readMaterialsLocation() {\n const params = new URLSearchParams(typeof window === \"undefined\" ? \"\" : window.location.search);\n const view = views.find(value => value === params.get(\"materials-view\")) ?? \"Все\";\n const number = Number(params.get(\"materials-page\"));\n return { view, page: Number.isSafeInteger(number) && number > 0 ? number : 1 };\n}\nfunction MaterialsTable() {\n const [location, setLocation] = React.useState(readMaterialsLocation);\n const [data, setData] = React.useState(items);\n const [added, setAdded] = React.useState(0);\n const [sort, setSort] = React.useState(null);\n const [selected, setSelected] = React.useState([]);\n React.useEffect(() => {\n const restore = () => setLocation(readMaterialsLocation());\n window.addEventListener(\"popstate\", restore);\n return () => window.removeEventListener(\"popstate\", restore);\n }, []);\n const filtered = data.filter(item => location.view === \"Все\" || item.status === location.view);\n if (sort)\n filtered.sort((a, b) => materialCollator.compare(a[sort.column], b[sort.column]) * (sort.direction === \"ascending\" ? 1 : -1));\n const pageCount = Math.max(1, Math.ceil(filtered.length / pageSize));\n const page = Math.min(location.page, pageCount);\n const rows = filtered.slice((page - 1) * pageSize, page * pageSize);\n const selectedVisible = rows.filter(row => selected.includes(row.name)).length;\n const allVisible = rows.length > 0 && selectedVisible === rows.length;\n const hrefFor = (nextPage, view = location.view) => {\n const url = new URL(typeof window === \"undefined\" ? \"http://localhost/\" : window.location.href);\n url.searchParams.set(\"materials-view\", view);\n url.searchParams.set(\"materials-page\", String(nextPage));\n return `${url.pathname}${url.search}${url.hash}`;\n };\n const setPage = (nextPage, view = location.view) => {\n window.history.pushState(window.history.state, \"\", hrefFor(nextPage, view));\n setLocation({ view, page: nextPage });\n };\n const navigatePage = (event, nextPage) => {\n if (!navigateHere(event))\n return;\n event.preventDefault();\n setPage(nextPage);\n };\n const toggleSort = (column) => setSort(previous => ({\n column,\n direction: previous?.column === column && previous.direction === \"ascending\" ? \"descending\" : \"ascending\"\n }));\n return <Tabs className={styles.materials} value={location.view} onValueChange={value => {\n const next = views.find(view => view === value);\n if (next && next !== location.view)\n setPage(1, next);\n }}>\n <div className={styles.materialToolbar}>\n <TabsList aria-label=\"Материалы по статусу\">\n {views.map(view => <TabsTrigger key={view} value={view}>{view}</TabsTrigger>)}\n </TabsList>\n <Button variant=\"outline\" size=\"500\" startIcon=\"add\" onClick={() => {\n const next = added + 1;\n setAdded(next);\n setData(previous => [{ name: `Новый материал ${next}`, type: \"Документ\", status: \"В работе\" }, ...previous]);\n setPage(1, \"Все\");\n }}>Добавить материал</Button>\n </div>\n {views.map(view => <TabsContent key={view} value={view}>\n {view === location.view ? <div className={styles.materials}>\n <div className={styles.materialTableFrame}>\n <Table containerLabel=\"Последние материалы\" aria-label=\"Последние материалы\">\n <TableHeader><TableRow>\n <TableHead scope=\"col\"><Checkbox aria-label=\"Выбрать все показанные материалы\" checked={allVisible} indeterminate={selectedVisible > 0 && !allVisible} disabled={rows.length === 0} onCheckedChange={checked => setSelected(previous => checked\n ? [...new Set([...previous, ...rows.map(row => row.name)])]\n : previous.filter(name => !rows.some(row => row.name === name)))}/></TableHead>\n {materialColumns.map(column => <TableHead key={column.key} scope=\"col\" aria-sort={sort?.column === column.key ? sort.direction : undefined}>\n <Button variant=\"text\" size=\"400\" endIcon={sort?.column === column.key ? (sort.direction === \"ascending\" ? \"arrow_upward\" : \"arrow_downward\") : \"swap_vert\"} onClick={() => toggleSort(column.key)}>{column.label}</Button>\n </TableHead>)}\n </TableRow></TableHeader>\n <TableBody>{rows.length ? rows.map(item => <TableRow key={item.name} data-state={selected.includes(item.name) ? \"selected\" : undefined}>\n <TableCell><Checkbox aria-label={`Выбрать ${item.name}`} checked={selected.includes(item.name)} onCheckedChange={checked => setSelected(previous => checked ? [...previous, item.name] : previous.filter(name => name !== item.name))}/></TableCell>\n <TableHead scope=\"row\">{item.name}</TableHead><TableCell>{item.type}</TableCell><TableCell>{item.status}</TableCell>\n </TableRow>) : <TableRow><TableCell colSpan={4}><Text as=\"p\">Материалов пока нет.</Text></TableCell></TableRow>}</TableBody>\n </Table>\n </div>\n <div className={styles.materialFooter}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" role=\"status\" aria-live=\"polite\">\n Материалов: {filtered.length}. Выбрано: {selected.length}. Страница {page} из {pageCount}.\n </Text>\n <Pagination aria-label=\"Страницы материалов\"><PaginationContent>\n <PaginationItem><PaginationPrevious text=\"\" href={hrefFor(Math.max(1, page - 1))} aria-disabled={page === 1} onClick={event => navigatePage(event, page - 1)}/></PaginationItem>\n {Array.from({ length: pageCount }, (_, i) => i + 1).map(number => <PaginationItem key={number}><PaginationLink href={hrefFor(number)} isActive={page === number} aria-label={`Страница ${number}`} onClick={event => navigatePage(event, number)}>{number}</PaginationLink></PaginationItem>)}\n <PaginationItem><PaginationNext text=\"\" href={hrefFor(Math.min(pageCount, page + 1))} aria-disabled={page === pageCount} onClick={event => navigatePage(event, page + 1)}/></PaginationItem>\n </PaginationContent></Pagination>\n </div>\n </div> : null}\n </TabsContent>)}\n </Tabs>;\n}\nfunction Symbol({ name }) {\n return <span aria-hidden=\"true\" data-sidebar-icon=\"\" className=\"material-symbols-rounded\">{name}</span>;\n}\nfunction navigateHere(event) {\n return !event.defaultPrevented && event.button === 0 &&\n !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey;\n}\nfunction Navigation({ active, onNavigate, panel = false }) {\n const { isMobile, state, setOpenMobile } = useSidebar();\n const navigate = (event, id) => {\n if (!navigateHere(event))\n return;\n event.preventDefault();\n onNavigate(id);\n if (isMobile)\n setOpenMobile(false);\n };\n const menu = (group) => (<SidebarMenu>\n {routes.filter((route) => route.group === group).map((route) => (<SidebarMenuItem key={route.id}>\n <SidebarMenuButton isActive={active === route.id} tooltip={route.label} render={<a href={`#${route.id}`} aria-current={active === route.id ? \"page\" : undefined} onClick={(event) => navigate(event, route.id)}/>}>\n <Symbol name={route.icon}/><span>{route.label}</span>\n </SidebarMenuButton>\n </SidebarMenuItem>))}\n </SidebarMenu>);\n return <>\n <SidebarHeader className={panel ? styles.panelHeader : undefined}>\n {(!panel || state === \"expanded\" || isMobile) && <SidebarMenu className={panel ? styles.panelBrand : undefined}><SidebarMenuItem>\n <SidebarMenuButton render={<a href=\"#overview\" onClick={(event) => navigate(event, \"overview\")}/>}>\n <Symbol name=\"hub\"/><span>VINi Workspace</span>\n </SidebarMenuButton>\n </SidebarMenuItem></SidebarMenu>}\n {panel && <SidebarTrigger />}\n </SidebarHeader>\n <SidebarContent>\n <nav aria-label=\"Основная навигация\">\n <SidebarGroup><SidebarGroupContent>{menu(\"main\")}</SidebarGroupContent></SidebarGroup>\n <SidebarGroup><SidebarGroupLabel>Материалы</SidebarGroupLabel><SidebarGroupContent>{menu(\"materials\")}</SidebarGroupContent></SidebarGroup>\n </nav>\n </SidebarContent>\n <SidebarFooter>{menu(\"footer\")}</SidebarFooter>\n </>;\n}\nexport default function DashboardShellExample({ compact, panel = false }) {\n const [active, setActive] = React.useState(\"overview\");\n const route = routes.find((item) => item.id === active) ?? routes[0];\n return <SidebarProvider mobile={compact} toggleLabel=\"Переключить навигацию\" mobileTitle=\"Навигация VINi Workspace\" mobileDescription=\"Разделы рабочего пространства.\" className={styles.shell}>\n <a className={styles.skipLink} href=\"#dashboard-shell-content\">Перейти к содержимому</a>\n <Sidebar variant={panel ? \"panel\" : \"inset\"} collapsible={panel ? \"icon\" : \"offcanvas\"}><Navigation active={active} onNavigate={setActive} panel={panel}/></Sidebar>\n <SidebarInset id=\"dashboard-shell-content\" className={styles.workspace} tabIndex={-1} aria-labelledby=\"dashboard-shell-heading\">\n <SidebarInsetHeader>{(!panel || compact) && <SidebarTrigger />}<Heading id=\"dashboard-shell-heading\" level={1} token=\"desktop/headline/regular/800\">{route.label}</Heading></SidebarInsetHeader>\n <div className={styles.content}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" className={styles.demo}>Демонстрационные данные</Text>\n {active === \"overview\" ? <>\n <Grid minItemSize=\"calc(var(--vini-base-sizing-600) * 11)\" gap=\"500\">\n {[metrics.slice(0, 2), metrics.slice(2)].map((pair) => (<Grid key={pair[0].label} minItemSize=\"calc(var(--vini-base-sizing-600) * 5)\" gap=\"500\">\n {pair.map((metric) => <Card key={metric.label}>\n <CardHeader>\n <CardDescription>{metric.label}</CardDescription>\n <CardTitle><Text token=\"desktop/headline/medium/1200\">{metric.value}</Text></CardTitle>\n <CardAction><Badge variant=\"outline\"><span aria-hidden=\"true\" data-icon=\"inline-start\" className=\"material-symbols-rounded\">{metric.icon}</span>{metric.change}</Badge></CardAction>\n </CardHeader>\n <CardContent><div className={styles.metricDetails}>\n <Text as=\"p\" token=\"desktop/body/medium/500\">{metric.summary}</Text>\n <CardDescription>{metric.detail}</CardDescription>\n </div></CardContent>\n </Card>)}\n </Grid>))}\n </Grid>\n <DashboardAreaChart />\n <Card>\n <CardHeader><CardTitle role=\"heading\" aria-level={2}>Последние материалы</CardTitle><CardDescription>Пример списка документов и проектов</CardDescription></CardHeader>\n <CardContent><MaterialsTable /></CardContent>\n </Card>\n </> : <Card><CardHeader><CardTitle role=\"heading\" aria-level={2}>{route.label}</CardTitle><CardDescription>Пример раздела рабочего пространства</CardDescription></CardHeader><CardContent><Text as=\"p\">Содержимое этого раздела определяет приложение.</Text></CardContent></Card>}\n </div>\n <span className={styles.visuallyHidden} role=\"status\" aria-live=\"polite\">Открыт раздел: {route.label}.</span>\n </SidebarInset>\n </SidebarProvider>;\n}\n"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "DashboardShellExample.module.css",
|
|
184
|
+
"language": "css",
|
|
185
|
+
"source": ".shell {\n block-size: 100dvh;\n overflow: hidden;\n}\n\n.workspace {\n display: flex;\n min-block-size: 0;\n flex-direction: column;\n overflow: hidden;\n}\n\n.panelHeader {\n flex-direction: row;\n align-items: center;\n}\n\n.panelBrand {\n flex: 1;\n min-inline-size: 0;\n}\n\n.content {\n display: grid;\n min-block-size: 0;\n min-inline-size: 0;\n flex: 1;\n align-content: start;\n grid-auto-rows: max-content;\n gap: var(--vini-base-spacing-500);\n overflow: auto;\n overscroll-behavior-y: contain;\n padding: var(--vini-base-spacing-600);\n}\n\n.demo {\n margin: 0;\n color: var(--vini-theme-main-foreground-secondary);\n}\n\n.metricDetails {\n display: grid;\n gap: var(--vini-base-spacing-200);\n}\n\n.materials {\n display: grid;\n gap: var(--vini-base-spacing-400);\n min-inline-size: 0;\n}\n\n.materialTableFrame {\n min-inline-size: 0;\n overflow: hidden;\n border: var(--vini-base-border-width-500) solid var(--vini-theme-main-border);\n border-radius: var(--vini-base-border-radius-300);\n}\n\n.materialToolbar,\n.materialFooter {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: var(--vini-base-spacing-300);\n}\n\n.visuallyHidden {\n position: absolute;\n inline-size: var(--vini-base-spacing-px);\n block-size: var(--vini-base-spacing-px);\n margin: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n.skipLink {\n position: fixed;\n inset-block-start: var(--vini-base-spacing-300);\n inset-inline-start: var(--vini-base-spacing-300);\n z-index: 200;\n padding: var(--vini-base-spacing-300) var(--vini-base-spacing-400);\n border-radius: var(--vini-base-border-radius-300);\n background: var(--vini-theme-main-surface);\n color: var(--vini-theme-main-foreground-primary);\n font-family: var(--vini-fonttheme-family-default);\n transform: translateY(-200%);\n}\n\n.skipLink:focus {\n outline: var(--vini-base-border-width-600) solid var(--vini-theme-main-focus);\n outline-offset: var(--vini-base-spacing-100);\n transform: translateY(0);\n}\n"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "DashboardAreaChart.jsx",
|
|
189
|
+
"language": "jsx",
|
|
190
|
+
"source": "// Public chart example. Requires the consumer direct dependency recharts@3.10.1.\n// Keep the accompanying dependency notices when distributing this example.\nimport \"./DashboardAreaChart.licenses.jsx\";\nimport React from \"react\";\nimport { Area, AreaChart, CartesianGrid, ResponsiveContainer, Tooltip, XAxis } from \"recharts\";\nimport { Card, CardAction, CardContent, CardDescription, CardTitle } from \"@vini-ds/ui\";\nimport { Select } from \"@vini-ds/ui\";\nimport styles from \"./DashboardAreaChart.module.css\";\nconst periods = [\n { value: \"90\", label: \"Последние 3 месяца\" },\n { value: \"30\", label: \"Последние 30 дней\" },\n { value: \"7\", label: \"Последние 7 дней\" }\n];\n// Fixed fixture data keeps this reference stable; applications supply their own data.\nconst samples = Array.from({ length: 90 }, (_, index) => ({\n date: new Date(Date.UTC(2026, 7, 12 + index)).toISOString().slice(0, 10),\n desktop: Math.round(75 + 40 * Math.abs(Math.sin(index * 0.29)) + (index % 9) * 3),\n mobile: Math.round(35 + 30 * Math.abs(Math.cos(index * 0.23)) + (index % 7) * 2)\n}));\nconst dateLabel = (value) => new Intl.DateTimeFormat(\"ru-RU\", { day: \"numeric\", month: \"short\", timeZone: \"UTC\" }).format(new Date(`${value}T00:00:00Z`));\nexport function DashboardAreaChart() {\n const [period, setPeriod] = React.useState(\"90\");\n const chartId = React.useId().replace(/:/g, \"\");\n const data = samples.slice(-Number(period));\n return <Card>\n <div className={styles.header}>\n <div className={styles.headerText}>\n <CardTitle role=\"heading\" aria-level={2}>Посещения</CardTitle>\n <CardDescription>Посещения с компьютера и телефона</CardDescription>\n </div>\n <div>\n <CardAction><Select aria-label=\"Период графика\" value={period} options={periods} onValueChange={value => {\n if (value === \"90\" || value === \"30\" || value === \"7\")\n setPeriod(value);\n }}/></CardAction>\n </div>\n </div>\n <CardContent>\n <div role=\"region\" className={styles.plot} aria-label={`Посещения за ${period === \"90\" ? \"последние 3 месяца\" : period === \"30\" ? \"последние 30 дней\" : \"последние 7 дней\"}`}>\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <AreaChart accessibilityLayer data={data}>\n <defs>\n <linearGradient id={`${chartId}-desktop`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0%\" stopColor=\"var(--vini-theme-acc-fill)\" stopOpacity={0.55}/><stop offset=\"100%\" stopColor=\"var(--vini-theme-acc-fill)\" stopOpacity={0.05}/></linearGradient>\n <linearGradient id={`${chartId}-mobile`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0%\" stopColor=\"var(--vini-theme-main-foreground-secondary)\" stopOpacity={0.35}/><stop offset=\"100%\" stopColor=\"var(--vini-theme-main-foreground-secondary)\" stopOpacity={0.03}/></linearGradient>\n </defs>\n <CartesianGrid vertical={false} stroke=\"var(--vini-theme-main-border)\"/>\n <XAxis dataKey=\"date\" tickFormatter={dateLabel} tickLine={false} axisLine={false}/>\n <Tooltip cursor={false} content={({ active, payload, label }) => active && payload?.length ? <div className={styles.tooltip}>\n <div>{dateLabel(String(label))}</div>\n {payload.map((item, index) => <div key={index} className={styles.tooltipRow}><span className={styles.seriesLabel}><span aria-hidden=\"true\" className={item.dataKey === \"desktop\" ? styles.desktopMarker : styles.mobileMarker}/>{item.dataKey === \"desktop\" ? \"Компьютер\" : \"Телефон\"}</span><strong>{item.value}</strong></div>)}\n </div> : null}/>\n <Area dataKey=\"mobile\" type=\"natural\" stackId=\"visits\" stroke=\"var(--vini-theme-main-foreground-secondary)\" fill={`url(#${chartId}-mobile)`}/>\n <Area dataKey=\"desktop\" type=\"natural\" stackId=\"visits\" stroke=\"var(--vini-theme-acc-fill)\" fill={`url(#${chartId}-desktop)`}/>\n </AreaChart>\n </ResponsiveContainer>\n </div>\n <div className={styles.legend} aria-label=\"Серии графика\">\n <span className={styles.seriesLabel}><span aria-hidden=\"true\" className={styles.desktopMarker}/>Компьютер</span>\n <span className={styles.seriesLabel}><span aria-hidden=\"true\" className={styles.mobileMarker}/>Телефон</span>\n </div>\n </CardContent>\n </Card>;\n}\n"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "DashboardAreaChart.module.css",
|
|
194
|
+
"language": "css",
|
|
195
|
+
"source": ".header {\n display: flex;\n align-items: center;\n gap: var(--vini-base-spacing-300);\n padding-block-end: var(--card-spacing);\n padding-inline: var(--card-spacing);\n border-block-end: var(--vini-base-border-width-500) solid var(--vini-theme-main-border);\n}\n\n.headerText {\n display: grid;\n gap: var(--vini-base-spacing-200);\n flex: 1;\n min-inline-size: 0;\n}\n\n.plot {\n block-size: calc(var(--vini-base-sizing-1000) * 4);\n min-inline-size: 0;\n color: var(--vini-theme-main-foreground-secondary);\n}\n\n.plot :global(.recharts-text) {\n fill: var(--vini-theme-main-foreground-secondary);\n}\n\n.tooltip {\n min-inline-size: calc(var(--vini-base-sizing-1000) * 3);\n padding: var(--vini-base-spacing-300);\n border: var(--vini-base-border-width-500) solid var(--vini-theme-main-border);\n border-radius: var(--vini-base-border-radius-300);\n background: var(--vini-theme-main-base);\n color: var(--vini-theme-main-foreground-primary);\n}\n\n.tooltipRow {\n display: flex;\n justify-content: space-between;\n gap: var(--vini-base-spacing-500);\n}\n\n.legend {\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n gap: var(--vini-base-spacing-500);\n padding-block-start: var(--vini-base-spacing-300);\n color: var(--vini-theme-main-foreground-secondary);\n}\n\n.seriesLabel {\n display: inline-flex;\n align-items: center;\n gap: var(--vini-base-spacing-200);\n}\n\n.desktopMarker,\n.mobileMarker {\n flex: none;\n inline-size: var(--vini-base-spacing-300);\n block-size: var(--vini-base-spacing-300);\n border-radius: 50%;\n}\n\n.desktopMarker {\n background: var(--vini-theme-acc-fill);\n}\n\n.mobileMarker {\n background: var(--vini-theme-main-foreground-secondary);\n}\n"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "DashboardAreaChart.licenses.jsx",
|
|
199
|
+
"language": "jsx",
|
|
200
|
+
"source": "/*!\nRecharts dependency notices (installed runtime closure).\n\n@reduxjs/toolkit@2.14.0\n=======================\nLICENSE\nMIT License\n\nCopyright (c) 2018 Mark Erikson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n@standard-schema/spec@1.1.0\n===========================\nLICENSE\nMIT License\n\nCopyright (c) 2024 Colin McDonnell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n@standard-schema/utils@0.3.0\n============================\nLICENSE\nMIT License\n\nCopyright (c) 2024 Fabian Hiller\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n@types/d3-array@3.2.2\n=====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-color@3.1.3\n=====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-ease@3.0.2\n====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-interpolate@3.0.4\n===========================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-path@3.1.1\n====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-scale@4.0.9\n=====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-shape@3.2.0\n=====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-time@3.0.4\n====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-timer@3.0.2\n=====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/use-sync-external-store@0.0.6\n====================================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\nclsx@2.1.1\n==========\nlicense\nMIT License\n\nCopyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nd3-array@3.2.5\n==============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-color@3.1.1\n==============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-ease@3.0.2\n=============\nLICENSE\nCopyright 2010-2026 Mike Bostock\nCopyright 2001 Robert Penner\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the author nor the names of contributors may be used to\n endorse or promote products derived from this software without specific prior\n written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nd3-format@3.1.3\n===============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-interpolate@3.0.2\n====================\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-path@3.1.1\n=============\nLICENSE\nCopyright 2015-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-scale@4.0.3\n==============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-shape@3.2.1\n==============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-time-format@4.1.1\n====================\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-time@3.1.1\n=============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-timer@3.0.2\n==============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\ndecimal.js-light@2.5.1\n======================\nLICENCE.md\nThe MIT Expat Licence.\r\n\r\nCopyright (c) 2020 Michael Mclaughlin\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of this software and associated documentation files (the\r\n'Software'), to deal in the Software without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Software, and to\r\npermit persons to whom the Software is furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be\r\nincluded in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\r\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\r\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\r\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nes-toolkit@1.53.2\n=================\nLICENSE\nMIT License\n\nCopyright (c) 2024 Viva Republica, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nNOTICE\nes-toolkit\n\nParts of the test suite and compatibility layer in es-toolkit/compat are\nderived from Lodash (https://github.com/lodash/lodash).\n\nLodash copyright notice and MIT permission notice:\n\nCopyright OpenJS Foundation and other contributors <https://openjsf.org/>\n\nBased on Underscore.js, copyright Jeremy Ashkenas,\nDocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>\n\nThis software consists of voluntary contributions made by many\nindividuals. For exact contribution history, see the revision history\navailable at https://github.com/lodash/lodash\n\nThe following license applies to all parts of this software except as\ndocumented below:\n\n====\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\neventemitter3@5.0.4\n===================\nLICENSE\nThe MIT License (MIT)\n\nCopyright (c) 2014 Arnout Kazemier\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nimmer@11.2.9\n============\nLICENSE\nMIT License\n\nCopyright (c) 2017 Michel Weststrate\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\ninternmap@2.0.3\n===============\nLICENSE\nCopyright 2021 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nreact-redux@9.3.1\n=================\nLICENSE.md\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Dan Abramov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nrecharts@3.10.1\n===============\nLICENSE\nThe MIT License (MIT)\n\nCopyright (c) 2015-present recharts\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nredux-thunk@3.1.0\n=================\nLICENSE.md\nThe MIT License (MIT)\r\n\r\nCopyright (c) 2015-present Dan Abramov\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\n\nredux@5.0.1\n===========\nLICENSE.md\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Dan Abramov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nreselect@5.2.0\n==============\nLICENSE\nThe MIT License (MIT)\n\nCopyright (c) 2015-2018 Reselect Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\ntiny-invariant@1.3.3\n====================\nLICENSE\nMIT License\n\nCopyright (c) 2019 Alexander Reardon\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nuse-sync-external-store@1.6.0\n=============================\nLICENSE\nMIT License\n\nCopyright (c) Meta Platforms, Inc. and affiliates.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nvictory-vendor@37.4.1\n=====================\nLICENSE.txt\nThe MIT License (MIT)\n\nCopyright (c) 2015-2026 Nearform.\n\nCopyright (c) 2016-2020 Alexey Svetliakov <https://github.com/asvetliakov>,\nsnerks <https://github.com/snerks>, Krzysztof Cebula <https://github.com\nHavret>, Vitaliy Polyanskiy <https://github.com/alreadyExisted>, James Lismore\n<https://github.com/jlismore>, Stack Builders <https://github.com\nstackbuilders>, Esteban Ibarra <https://github.com/ibarrae>, Dominic Lee\n<https://github.com/dominictwlee>, Dave Vedder <https://github.com\nveddermatic>, Alec Flett <https://github.com/alecf> and potentially other\nDefinitelyTyped contributors.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\n================================================================================\nThird-party software\n================================================================================\n\n`victory-vendor` bundles transpiled copies of the following libraries in\n`lib-vendor/` (used by the CommonJS build). Their licenses are reproduced\nbelow. The original license file for each library is also available at\n`lib-vendor/<library>/LICENSE`.\n\n--------------------------------------------------------------------------------\nd3-array (ISC), d3-color (ISC), d3-format (ISC), d3-interpolate (ISC),\nd3-path (ISC), d3-scale (ISC), d3-shape (ISC), d3-time (ISC),\nd3-time-format (ISC), d3-timer (ISC), internmap (ISC)\n--------------------------------------------------------------------------------\n\nCopyright 2010-2022 Mike Bostock\nCopyright 2010-2021 Mike Bostock\nCopyright 2015-2021 Mike Bostock\nCopyright 2021 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\n--------------------------------------------------------------------------------\nd3-ease (BSD-3-Clause)\n--------------------------------------------------------------------------------\n\nCopyright 2010-2021 Mike Bostock\nCopyright 2001 Robert Penner\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the author nor the names of contributors may be used to\n endorse or promote products derived from this software without specific prior\n written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n--------------------------------------------------------------------------------\nd3-voronoi (BSD-3-Clause)\n--------------------------------------------------------------------------------\n\nCopyright 2010-2016 Mike Bostock\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the author nor the names of contributors may be used to\n endorse or promote products derived from this software without specific prior\n written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nCopyright (C) 2010-2013 Raymond Hill\nhttps://github.com/gorhill/Javascript-Voronoi\n\nLicensed under The MIT License\nhttp://en.wikipedia.org/wiki/MIT_License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "dashboard-panel",
|
|
206
|
+
"title": "Panel dashboard",
|
|
207
|
+
"description": "Separate navigation and work panels with the same demonstration dashboard contents.",
|
|
208
|
+
"patternIds": [],
|
|
209
|
+
"limitations": [
|
|
210
|
+
"Copied React DOM example source, not a runtime package export or a product acceptance claim. Use matching VINi packages, their four stylesheets/fonts and the existing ThemeBrandProvider; checked locally with React/React DOM 18.2.0.",
|
|
211
|
+
"Keep component appearance and interaction states in their public APIs. Adapt product data, copy and surrounding layout; do not override internal hover, focus, selected or disabled styles.",
|
|
212
|
+
"This source selection requires the package API stated below. A successful projection is not an installed-product check, complete accessibility conformance, Figma parity or native platform support. Known Button primary contrast debt remains separate.",
|
|
213
|
+
"Render default DashboardShellExample with compact chosen by the host and panel false for inset or true for separate panels. Copy all five listed files, including chart JSX/CSS and DashboardAreaChart.licenses.jsx, together.",
|
|
214
|
+
"Requires SidebarInsetHeader, Sidebar variant inset/panel and Button variant text in the selected package, not merely the corresponding export names.",
|
|
215
|
+
"The copied chart imports Recharts directly: add the checked direct dependency recharts 3.10.1 and preserve DashboardAreaChart.licenses.jsx notices. A transitive dependency of VINi is not a substitute for this consumer dependency.",
|
|
216
|
+
"The example contains fictional metric cards, a 90/30/7-day chart with two stacked series, and a materials table. These are local compositions, not VINi Metric, Chart, Widget or DataTable runtime exports.",
|
|
217
|
+
"Dashboard route selection is memory-only; material view/page use local browser history. Materials, sorting, selection and add-row actions use memory-only fixtures and fixture-name identity. The application supplies stable IDs, real data/router/persistence and explicit selection semantics.",
|
|
218
|
+
"Keep selection of shown rows separate from hidden selections; preserve sort aria-sort, status Tabs, page boundaries, empty state and keyboard-reachable actions. Verify range changes, table sort/select/add/page/view/back, content scrolling, compact navigation and focus after adaptation.",
|
|
219
|
+
"The rounded Table frame belongs to the outer composition. Preserve the Table scroll region, row/cell semantics and focus visibility.",
|
|
220
|
+
"This dashboard lacks the canonical Application shell Breadcrumb composition and is not an implementation of its complete strict pattern. Product loading/error behavior, chart data alternatives and real outcomes must be defined and checked in the connected application."
|
|
221
|
+
],
|
|
222
|
+
"sourceCorrespondence": "Public adaptation of the selected PanelReference using the same dashboard closure; render DashboardShellExample with panel true.",
|
|
223
|
+
"componentIds": [
|
|
224
|
+
"sidebar",
|
|
225
|
+
"button",
|
|
226
|
+
"checkbox",
|
|
227
|
+
"badge",
|
|
228
|
+
"card",
|
|
229
|
+
"grid",
|
|
230
|
+
"heading",
|
|
231
|
+
"pagination",
|
|
232
|
+
"table",
|
|
233
|
+
"tabs",
|
|
234
|
+
"text",
|
|
235
|
+
"select"
|
|
236
|
+
],
|
|
237
|
+
"files": [
|
|
238
|
+
{
|
|
239
|
+
"name": "DashboardShellExample.jsx",
|
|
240
|
+
"language": "jsx",
|
|
241
|
+
"source": "// Public dashboard composition with local demonstration data and interactions.\n// The host chooses compact mode; panel=true selects the panel composition.\n// Supply real routes and data when integrating this example into an application.\nimport React from \"react\";\nimport { Button } from \"@vini-ds/ui\";\nimport { Checkbox } from \"@vini-ds/ui\";\nimport { Badge } from \"@vini-ds/ui\";\nimport { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle } from \"@vini-ds/ui\";\nimport { Grid } from \"@vini-ds/ui\";\nimport { Heading } from \"@vini-ds/ui\";\nimport { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext } from \"@vini-ds/ui\";\nimport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from \"@vini-ds/ui\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@vini-ds/ui\";\nimport { Text } from \"@vini-ds/ui\";\nimport { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarInsetHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvider, SidebarTrigger, useSidebar } from \"@vini-ds/ui\";\nimport styles from \"./DashboardShellExample.module.css\";\nimport { DashboardAreaChart } from \"./DashboardAreaChart.jsx\";\nconst routes = [\n { id: \"overview\", label: \"Обзор\", icon: \"dashboard\", group: \"main\" },\n { id: \"projects\", label: \"Проекты\", icon: \"folder\", group: \"main\" },\n { id: \"meetings\", label: \"Встречи\", icon: \"video_chat\", group: \"main\" },\n { id: \"team\", label: \"Команда\", icon: \"group\", group: \"main\" },\n { id: \"documents\", label: \"Документы\", icon: \"description\", group: \"materials\" },\n { id: \"reports\", label: \"Отчёты\", icon: \"summarize\", group: \"materials\" },\n { id: \"settings\", label: \"Настройки\", icon: \"settings\", group: \"footer\" }\n];\nconst metrics = [\n { label: \"Проекты\", value: \"12\", change: \"+20%\", icon: \"trending_up\", summary: \"На 2 проекта больше\", detail: \"За последний месяц\" },\n { label: \"Задачи\", value: \"36\", change: \"+12,5%\", icon: \"trending_up\", summary: \"На 4 задачи больше\", detail: \"За последний месяц\" },\n { label: \"Встречи\", value: \"8\", change: \"−20%\", icon: \"trending_down\", summary: \"На 2 встречи меньше\", detail: \"За последнюю неделю\" },\n { label: \"Участники\", value: \"24\", change: \"+9,1%\", icon: \"trending_up\", summary: \"На 2 участника больше\", detail: \"За последний месяц\" }\n];\nconst items = [\n { name: \"Обновление интерфейса\", type: \"Проект\", status: \"В работе\" },\n { name: \"Исследование сценариев\", type: \"Исследование\", status: \"Запланировано\" },\n { name: \"Итоги встречи\", type: \"Документ\", status: \"Готово\" },\n { name: \"План на квартал\", type: \"Документ\", status: \"В работе\" },\n { name: \"Библиотека компонентов\", type: \"Проект\", status: \"В работе\" },\n { name: \"Отчёт команды\", type: \"Документ\", status: \"Готово\" },\n { name: \"Прототип навигации\", type: \"Проект\", status: \"Запланировано\" },\n { name: \"Заметки исследования\", type: \"Исследование\", status: \"Готово\" }\n];\nconst materialColumns = [\n { key: \"name\", label: \"Название\" },\n { key: \"type\", label: \"Тип\" },\n { key: \"status\", label: \"Статус\" }\n];\nconst materialCollator = new Intl.Collator(\"ru-RU\", { sensitivity: \"base\", numeric: true });\nconst views = [\"Все\", \"В работе\", \"Готово\"];\nconst pageSize = 4;\nfunction readMaterialsLocation() {\n const params = new URLSearchParams(typeof window === \"undefined\" ? \"\" : window.location.search);\n const view = views.find(value => value === params.get(\"materials-view\")) ?? \"Все\";\n const number = Number(params.get(\"materials-page\"));\n return { view, page: Number.isSafeInteger(number) && number > 0 ? number : 1 };\n}\nfunction MaterialsTable() {\n const [location, setLocation] = React.useState(readMaterialsLocation);\n const [data, setData] = React.useState(items);\n const [added, setAdded] = React.useState(0);\n const [sort, setSort] = React.useState(null);\n const [selected, setSelected] = React.useState([]);\n React.useEffect(() => {\n const restore = () => setLocation(readMaterialsLocation());\n window.addEventListener(\"popstate\", restore);\n return () => window.removeEventListener(\"popstate\", restore);\n }, []);\n const filtered = data.filter(item => location.view === \"Все\" || item.status === location.view);\n if (sort)\n filtered.sort((a, b) => materialCollator.compare(a[sort.column], b[sort.column]) * (sort.direction === \"ascending\" ? 1 : -1));\n const pageCount = Math.max(1, Math.ceil(filtered.length / pageSize));\n const page = Math.min(location.page, pageCount);\n const rows = filtered.slice((page - 1) * pageSize, page * pageSize);\n const selectedVisible = rows.filter(row => selected.includes(row.name)).length;\n const allVisible = rows.length > 0 && selectedVisible === rows.length;\n const hrefFor = (nextPage, view = location.view) => {\n const url = new URL(typeof window === \"undefined\" ? \"http://localhost/\" : window.location.href);\n url.searchParams.set(\"materials-view\", view);\n url.searchParams.set(\"materials-page\", String(nextPage));\n return `${url.pathname}${url.search}${url.hash}`;\n };\n const setPage = (nextPage, view = location.view) => {\n window.history.pushState(window.history.state, \"\", hrefFor(nextPage, view));\n setLocation({ view, page: nextPage });\n };\n const navigatePage = (event, nextPage) => {\n if (!navigateHere(event))\n return;\n event.preventDefault();\n setPage(nextPage);\n };\n const toggleSort = (column) => setSort(previous => ({\n column,\n direction: previous?.column === column && previous.direction === \"ascending\" ? \"descending\" : \"ascending\"\n }));\n return <Tabs className={styles.materials} value={location.view} onValueChange={value => {\n const next = views.find(view => view === value);\n if (next && next !== location.view)\n setPage(1, next);\n }}>\n <div className={styles.materialToolbar}>\n <TabsList aria-label=\"Материалы по статусу\">\n {views.map(view => <TabsTrigger key={view} value={view}>{view}</TabsTrigger>)}\n </TabsList>\n <Button variant=\"outline\" size=\"500\" startIcon=\"add\" onClick={() => {\n const next = added + 1;\n setAdded(next);\n setData(previous => [{ name: `Новый материал ${next}`, type: \"Документ\", status: \"В работе\" }, ...previous]);\n setPage(1, \"Все\");\n }}>Добавить материал</Button>\n </div>\n {views.map(view => <TabsContent key={view} value={view}>\n {view === location.view ? <div className={styles.materials}>\n <div className={styles.materialTableFrame}>\n <Table containerLabel=\"Последние материалы\" aria-label=\"Последние материалы\">\n <TableHeader><TableRow>\n <TableHead scope=\"col\"><Checkbox aria-label=\"Выбрать все показанные материалы\" checked={allVisible} indeterminate={selectedVisible > 0 && !allVisible} disabled={rows.length === 0} onCheckedChange={checked => setSelected(previous => checked\n ? [...new Set([...previous, ...rows.map(row => row.name)])]\n : previous.filter(name => !rows.some(row => row.name === name)))}/></TableHead>\n {materialColumns.map(column => <TableHead key={column.key} scope=\"col\" aria-sort={sort?.column === column.key ? sort.direction : undefined}>\n <Button variant=\"text\" size=\"400\" endIcon={sort?.column === column.key ? (sort.direction === \"ascending\" ? \"arrow_upward\" : \"arrow_downward\") : \"swap_vert\"} onClick={() => toggleSort(column.key)}>{column.label}</Button>\n </TableHead>)}\n </TableRow></TableHeader>\n <TableBody>{rows.length ? rows.map(item => <TableRow key={item.name} data-state={selected.includes(item.name) ? \"selected\" : undefined}>\n <TableCell><Checkbox aria-label={`Выбрать ${item.name}`} checked={selected.includes(item.name)} onCheckedChange={checked => setSelected(previous => checked ? [...previous, item.name] : previous.filter(name => name !== item.name))}/></TableCell>\n <TableHead scope=\"row\">{item.name}</TableHead><TableCell>{item.type}</TableCell><TableCell>{item.status}</TableCell>\n </TableRow>) : <TableRow><TableCell colSpan={4}><Text as=\"p\">Материалов пока нет.</Text></TableCell></TableRow>}</TableBody>\n </Table>\n </div>\n <div className={styles.materialFooter}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" role=\"status\" aria-live=\"polite\">\n Материалов: {filtered.length}. Выбрано: {selected.length}. Страница {page} из {pageCount}.\n </Text>\n <Pagination aria-label=\"Страницы материалов\"><PaginationContent>\n <PaginationItem><PaginationPrevious text=\"\" href={hrefFor(Math.max(1, page - 1))} aria-disabled={page === 1} onClick={event => navigatePage(event, page - 1)}/></PaginationItem>\n {Array.from({ length: pageCount }, (_, i) => i + 1).map(number => <PaginationItem key={number}><PaginationLink href={hrefFor(number)} isActive={page === number} aria-label={`Страница ${number}`} onClick={event => navigatePage(event, number)}>{number}</PaginationLink></PaginationItem>)}\n <PaginationItem><PaginationNext text=\"\" href={hrefFor(Math.min(pageCount, page + 1))} aria-disabled={page === pageCount} onClick={event => navigatePage(event, page + 1)}/></PaginationItem>\n </PaginationContent></Pagination>\n </div>\n </div> : null}\n </TabsContent>)}\n </Tabs>;\n}\nfunction Symbol({ name }) {\n return <span aria-hidden=\"true\" data-sidebar-icon=\"\" className=\"material-symbols-rounded\">{name}</span>;\n}\nfunction navigateHere(event) {\n return !event.defaultPrevented && event.button === 0 &&\n !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey;\n}\nfunction Navigation({ active, onNavigate, panel = false }) {\n const { isMobile, state, setOpenMobile } = useSidebar();\n const navigate = (event, id) => {\n if (!navigateHere(event))\n return;\n event.preventDefault();\n onNavigate(id);\n if (isMobile)\n setOpenMobile(false);\n };\n const menu = (group) => (<SidebarMenu>\n {routes.filter((route) => route.group === group).map((route) => (<SidebarMenuItem key={route.id}>\n <SidebarMenuButton isActive={active === route.id} tooltip={route.label} render={<a href={`#${route.id}`} aria-current={active === route.id ? \"page\" : undefined} onClick={(event) => navigate(event, route.id)}/>}>\n <Symbol name={route.icon}/><span>{route.label}</span>\n </SidebarMenuButton>\n </SidebarMenuItem>))}\n </SidebarMenu>);\n return <>\n <SidebarHeader className={panel ? styles.panelHeader : undefined}>\n {(!panel || state === \"expanded\" || isMobile) && <SidebarMenu className={panel ? styles.panelBrand : undefined}><SidebarMenuItem>\n <SidebarMenuButton render={<a href=\"#overview\" onClick={(event) => navigate(event, \"overview\")}/>}>\n <Symbol name=\"hub\"/><span>VINi Workspace</span>\n </SidebarMenuButton>\n </SidebarMenuItem></SidebarMenu>}\n {panel && <SidebarTrigger />}\n </SidebarHeader>\n <SidebarContent>\n <nav aria-label=\"Основная навигация\">\n <SidebarGroup><SidebarGroupContent>{menu(\"main\")}</SidebarGroupContent></SidebarGroup>\n <SidebarGroup><SidebarGroupLabel>Материалы</SidebarGroupLabel><SidebarGroupContent>{menu(\"materials\")}</SidebarGroupContent></SidebarGroup>\n </nav>\n </SidebarContent>\n <SidebarFooter>{menu(\"footer\")}</SidebarFooter>\n </>;\n}\nexport default function DashboardShellExample({ compact, panel = false }) {\n const [active, setActive] = React.useState(\"overview\");\n const route = routes.find((item) => item.id === active) ?? routes[0];\n return <SidebarProvider mobile={compact} toggleLabel=\"Переключить навигацию\" mobileTitle=\"Навигация VINi Workspace\" mobileDescription=\"Разделы рабочего пространства.\" className={styles.shell}>\n <a className={styles.skipLink} href=\"#dashboard-shell-content\">Перейти к содержимому</a>\n <Sidebar variant={panel ? \"panel\" : \"inset\"} collapsible={panel ? \"icon\" : \"offcanvas\"}><Navigation active={active} onNavigate={setActive} panel={panel}/></Sidebar>\n <SidebarInset id=\"dashboard-shell-content\" className={styles.workspace} tabIndex={-1} aria-labelledby=\"dashboard-shell-heading\">\n <SidebarInsetHeader>{(!panel || compact) && <SidebarTrigger />}<Heading id=\"dashboard-shell-heading\" level={1} token=\"desktop/headline/regular/800\">{route.label}</Heading></SidebarInsetHeader>\n <div className={styles.content}>\n <Text as=\"p\" token=\"desktop/caption/regular/400\" className={styles.demo}>Демонстрационные данные</Text>\n {active === \"overview\" ? <>\n <Grid minItemSize=\"calc(var(--vini-base-sizing-600) * 11)\" gap=\"500\">\n {[metrics.slice(0, 2), metrics.slice(2)].map((pair) => (<Grid key={pair[0].label} minItemSize=\"calc(var(--vini-base-sizing-600) * 5)\" gap=\"500\">\n {pair.map((metric) => <Card key={metric.label}>\n <CardHeader>\n <CardDescription>{metric.label}</CardDescription>\n <CardTitle><Text token=\"desktop/headline/medium/1200\">{metric.value}</Text></CardTitle>\n <CardAction><Badge variant=\"outline\"><span aria-hidden=\"true\" data-icon=\"inline-start\" className=\"material-symbols-rounded\">{metric.icon}</span>{metric.change}</Badge></CardAction>\n </CardHeader>\n <CardContent><div className={styles.metricDetails}>\n <Text as=\"p\" token=\"desktop/body/medium/500\">{metric.summary}</Text>\n <CardDescription>{metric.detail}</CardDescription>\n </div></CardContent>\n </Card>)}\n </Grid>))}\n </Grid>\n <DashboardAreaChart />\n <Card>\n <CardHeader><CardTitle role=\"heading\" aria-level={2}>Последние материалы</CardTitle><CardDescription>Пример списка документов и проектов</CardDescription></CardHeader>\n <CardContent><MaterialsTable /></CardContent>\n </Card>\n </> : <Card><CardHeader><CardTitle role=\"heading\" aria-level={2}>{route.label}</CardTitle><CardDescription>Пример раздела рабочего пространства</CardDescription></CardHeader><CardContent><Text as=\"p\">Содержимое этого раздела определяет приложение.</Text></CardContent></Card>}\n </div>\n <span className={styles.visuallyHidden} role=\"status\" aria-live=\"polite\">Открыт раздел: {route.label}.</span>\n </SidebarInset>\n </SidebarProvider>;\n}\n"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "DashboardShellExample.module.css",
|
|
245
|
+
"language": "css",
|
|
246
|
+
"source": ".shell {\n block-size: 100dvh;\n overflow: hidden;\n}\n\n.workspace {\n display: flex;\n min-block-size: 0;\n flex-direction: column;\n overflow: hidden;\n}\n\n.panelHeader {\n flex-direction: row;\n align-items: center;\n}\n\n.panelBrand {\n flex: 1;\n min-inline-size: 0;\n}\n\n.content {\n display: grid;\n min-block-size: 0;\n min-inline-size: 0;\n flex: 1;\n align-content: start;\n grid-auto-rows: max-content;\n gap: var(--vini-base-spacing-500);\n overflow: auto;\n overscroll-behavior-y: contain;\n padding: var(--vini-base-spacing-600);\n}\n\n.demo {\n margin: 0;\n color: var(--vini-theme-main-foreground-secondary);\n}\n\n.metricDetails {\n display: grid;\n gap: var(--vini-base-spacing-200);\n}\n\n.materials {\n display: grid;\n gap: var(--vini-base-spacing-400);\n min-inline-size: 0;\n}\n\n.materialTableFrame {\n min-inline-size: 0;\n overflow: hidden;\n border: var(--vini-base-border-width-500) solid var(--vini-theme-main-border);\n border-radius: var(--vini-base-border-radius-300);\n}\n\n.materialToolbar,\n.materialFooter {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: var(--vini-base-spacing-300);\n}\n\n.visuallyHidden {\n position: absolute;\n inline-size: var(--vini-base-spacing-px);\n block-size: var(--vini-base-spacing-px);\n margin: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n.skipLink {\n position: fixed;\n inset-block-start: var(--vini-base-spacing-300);\n inset-inline-start: var(--vini-base-spacing-300);\n z-index: 200;\n padding: var(--vini-base-spacing-300) var(--vini-base-spacing-400);\n border-radius: var(--vini-base-border-radius-300);\n background: var(--vini-theme-main-surface);\n color: var(--vini-theme-main-foreground-primary);\n font-family: var(--vini-fonttheme-family-default);\n transform: translateY(-200%);\n}\n\n.skipLink:focus {\n outline: var(--vini-base-border-width-600) solid var(--vini-theme-main-focus);\n outline-offset: var(--vini-base-spacing-100);\n transform: translateY(0);\n}\n"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "DashboardAreaChart.jsx",
|
|
250
|
+
"language": "jsx",
|
|
251
|
+
"source": "// Public chart example. Requires the consumer direct dependency recharts@3.10.1.\n// Keep the accompanying dependency notices when distributing this example.\nimport \"./DashboardAreaChart.licenses.jsx\";\nimport React from \"react\";\nimport { Area, AreaChart, CartesianGrid, ResponsiveContainer, Tooltip, XAxis } from \"recharts\";\nimport { Card, CardAction, CardContent, CardDescription, CardTitle } from \"@vini-ds/ui\";\nimport { Select } from \"@vini-ds/ui\";\nimport styles from \"./DashboardAreaChart.module.css\";\nconst periods = [\n { value: \"90\", label: \"Последние 3 месяца\" },\n { value: \"30\", label: \"Последние 30 дней\" },\n { value: \"7\", label: \"Последние 7 дней\" }\n];\n// Fixed fixture data keeps this reference stable; applications supply their own data.\nconst samples = Array.from({ length: 90 }, (_, index) => ({\n date: new Date(Date.UTC(2026, 7, 12 + index)).toISOString().slice(0, 10),\n desktop: Math.round(75 + 40 * Math.abs(Math.sin(index * 0.29)) + (index % 9) * 3),\n mobile: Math.round(35 + 30 * Math.abs(Math.cos(index * 0.23)) + (index % 7) * 2)\n}));\nconst dateLabel = (value) => new Intl.DateTimeFormat(\"ru-RU\", { day: \"numeric\", month: \"short\", timeZone: \"UTC\" }).format(new Date(`${value}T00:00:00Z`));\nexport function DashboardAreaChart() {\n const [period, setPeriod] = React.useState(\"90\");\n const chartId = React.useId().replace(/:/g, \"\");\n const data = samples.slice(-Number(period));\n return <Card>\n <div className={styles.header}>\n <div className={styles.headerText}>\n <CardTitle role=\"heading\" aria-level={2}>Посещения</CardTitle>\n <CardDescription>Посещения с компьютера и телефона</CardDescription>\n </div>\n <div>\n <CardAction><Select aria-label=\"Период графика\" value={period} options={periods} onValueChange={value => {\n if (value === \"90\" || value === \"30\" || value === \"7\")\n setPeriod(value);\n }}/></CardAction>\n </div>\n </div>\n <CardContent>\n <div role=\"region\" className={styles.plot} aria-label={`Посещения за ${period === \"90\" ? \"последние 3 месяца\" : period === \"30\" ? \"последние 30 дней\" : \"последние 7 дней\"}`}>\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <AreaChart accessibilityLayer data={data}>\n <defs>\n <linearGradient id={`${chartId}-desktop`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0%\" stopColor=\"var(--vini-theme-acc-fill)\" stopOpacity={0.55}/><stop offset=\"100%\" stopColor=\"var(--vini-theme-acc-fill)\" stopOpacity={0.05}/></linearGradient>\n <linearGradient id={`${chartId}-mobile`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0%\" stopColor=\"var(--vini-theme-main-foreground-secondary)\" stopOpacity={0.35}/><stop offset=\"100%\" stopColor=\"var(--vini-theme-main-foreground-secondary)\" stopOpacity={0.03}/></linearGradient>\n </defs>\n <CartesianGrid vertical={false} stroke=\"var(--vini-theme-main-border)\"/>\n <XAxis dataKey=\"date\" tickFormatter={dateLabel} tickLine={false} axisLine={false}/>\n <Tooltip cursor={false} content={({ active, payload, label }) => active && payload?.length ? <div className={styles.tooltip}>\n <div>{dateLabel(String(label))}</div>\n {payload.map((item, index) => <div key={index} className={styles.tooltipRow}><span className={styles.seriesLabel}><span aria-hidden=\"true\" className={item.dataKey === \"desktop\" ? styles.desktopMarker : styles.mobileMarker}/>{item.dataKey === \"desktop\" ? \"Компьютер\" : \"Телефон\"}</span><strong>{item.value}</strong></div>)}\n </div> : null}/>\n <Area dataKey=\"mobile\" type=\"natural\" stackId=\"visits\" stroke=\"var(--vini-theme-main-foreground-secondary)\" fill={`url(#${chartId}-mobile)`}/>\n <Area dataKey=\"desktop\" type=\"natural\" stackId=\"visits\" stroke=\"var(--vini-theme-acc-fill)\" fill={`url(#${chartId}-desktop)`}/>\n </AreaChart>\n </ResponsiveContainer>\n </div>\n <div className={styles.legend} aria-label=\"Серии графика\">\n <span className={styles.seriesLabel}><span aria-hidden=\"true\" className={styles.desktopMarker}/>Компьютер</span>\n <span className={styles.seriesLabel}><span aria-hidden=\"true\" className={styles.mobileMarker}/>Телефон</span>\n </div>\n </CardContent>\n </Card>;\n}\n"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "DashboardAreaChart.module.css",
|
|
255
|
+
"language": "css",
|
|
256
|
+
"source": ".header {\n display: flex;\n align-items: center;\n gap: var(--vini-base-spacing-300);\n padding-block-end: var(--card-spacing);\n padding-inline: var(--card-spacing);\n border-block-end: var(--vini-base-border-width-500) solid var(--vini-theme-main-border);\n}\n\n.headerText {\n display: grid;\n gap: var(--vini-base-spacing-200);\n flex: 1;\n min-inline-size: 0;\n}\n\n.plot {\n block-size: calc(var(--vini-base-sizing-1000) * 4);\n min-inline-size: 0;\n color: var(--vini-theme-main-foreground-secondary);\n}\n\n.plot :global(.recharts-text) {\n fill: var(--vini-theme-main-foreground-secondary);\n}\n\n.tooltip {\n min-inline-size: calc(var(--vini-base-sizing-1000) * 3);\n padding: var(--vini-base-spacing-300);\n border: var(--vini-base-border-width-500) solid var(--vini-theme-main-border);\n border-radius: var(--vini-base-border-radius-300);\n background: var(--vini-theme-main-base);\n color: var(--vini-theme-main-foreground-primary);\n}\n\n.tooltipRow {\n display: flex;\n justify-content: space-between;\n gap: var(--vini-base-spacing-500);\n}\n\n.legend {\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n gap: var(--vini-base-spacing-500);\n padding-block-start: var(--vini-base-spacing-300);\n color: var(--vini-theme-main-foreground-secondary);\n}\n\n.seriesLabel {\n display: inline-flex;\n align-items: center;\n gap: var(--vini-base-spacing-200);\n}\n\n.desktopMarker,\n.mobileMarker {\n flex: none;\n inline-size: var(--vini-base-spacing-300);\n block-size: var(--vini-base-spacing-300);\n border-radius: 50%;\n}\n\n.desktopMarker {\n background: var(--vini-theme-acc-fill);\n}\n\n.mobileMarker {\n background: var(--vini-theme-main-foreground-secondary);\n}\n"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "DashboardAreaChart.licenses.jsx",
|
|
260
|
+
"language": "jsx",
|
|
261
|
+
"source": "/*!\nRecharts dependency notices (installed runtime closure).\n\n@reduxjs/toolkit@2.14.0\n=======================\nLICENSE\nMIT License\n\nCopyright (c) 2018 Mark Erikson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n@standard-schema/spec@1.1.0\n===========================\nLICENSE\nMIT License\n\nCopyright (c) 2024 Colin McDonnell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n@standard-schema/utils@0.3.0\n============================\nLICENSE\nMIT License\n\nCopyright (c) 2024 Fabian Hiller\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n@types/d3-array@3.2.2\n=====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-color@3.1.3\n=====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-ease@3.0.2\n====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-interpolate@3.0.4\n===========================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-path@3.1.1\n====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-scale@4.0.9\n=====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-shape@3.2.0\n=====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-time@3.0.4\n====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/d3-timer@3.0.2\n=====================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\n@types/use-sync-external-store@0.0.6\n====================================\nLICENSE\nMIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n\nclsx@2.1.1\n==========\nlicense\nMIT License\n\nCopyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nd3-array@3.2.5\n==============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-color@3.1.1\n==============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-ease@3.0.2\n=============\nLICENSE\nCopyright 2010-2026 Mike Bostock\nCopyright 2001 Robert Penner\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the author nor the names of contributors may be used to\n endorse or promote products derived from this software without specific prior\n written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nd3-format@3.1.3\n===============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-interpolate@3.0.2\n====================\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-path@3.1.1\n=============\nLICENSE\nCopyright 2015-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-scale@4.0.3\n==============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-shape@3.2.1\n==============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-time-format@4.1.1\n====================\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-time@3.1.1\n=============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nd3-timer@3.0.2\n==============\nLICENSE\nCopyright 2010-2026 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\ndecimal.js-light@2.5.1\n======================\nLICENCE.md\nThe MIT Expat Licence.\r\n\r\nCopyright (c) 2020 Michael Mclaughlin\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of this software and associated documentation files (the\r\n'Software'), to deal in the Software without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Software, and to\r\npermit persons to whom the Software is furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be\r\nincluded in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\r\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\r\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\r\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nes-toolkit@1.53.2\n=================\nLICENSE\nMIT License\n\nCopyright (c) 2024 Viva Republica, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nNOTICE\nes-toolkit\n\nParts of the test suite and compatibility layer in es-toolkit/compat are\nderived from Lodash (https://github.com/lodash/lodash).\n\nLodash copyright notice and MIT permission notice:\n\nCopyright OpenJS Foundation and other contributors <https://openjsf.org/>\n\nBased on Underscore.js, copyright Jeremy Ashkenas,\nDocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>\n\nThis software consists of voluntary contributions made by many\nindividuals. For exact contribution history, see the revision history\navailable at https://github.com/lodash/lodash\n\nThe following license applies to all parts of this software except as\ndocumented below:\n\n====\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\neventemitter3@5.0.4\n===================\nLICENSE\nThe MIT License (MIT)\n\nCopyright (c) 2014 Arnout Kazemier\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nimmer@11.2.9\n============\nLICENSE\nMIT License\n\nCopyright (c) 2017 Michel Weststrate\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\ninternmap@2.0.3\n===============\nLICENSE\nCopyright 2021 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\nreact-redux@9.3.1\n=================\nLICENSE.md\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Dan Abramov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nrecharts@3.10.1\n===============\nLICENSE\nThe MIT License (MIT)\n\nCopyright (c) 2015-present recharts\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nredux-thunk@3.1.0\n=================\nLICENSE.md\nThe MIT License (MIT)\r\n\r\nCopyright (c) 2015-present Dan Abramov\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\n\nredux@5.0.1\n===========\nLICENSE.md\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Dan Abramov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nreselect@5.2.0\n==============\nLICENSE\nThe MIT License (MIT)\n\nCopyright (c) 2015-2018 Reselect Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\ntiny-invariant@1.3.3\n====================\nLICENSE\nMIT License\n\nCopyright (c) 2019 Alexander Reardon\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nuse-sync-external-store@1.6.0\n=============================\nLICENSE\nMIT License\n\nCopyright (c) Meta Platforms, Inc. and affiliates.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nvictory-vendor@37.4.1\n=====================\nLICENSE.txt\nThe MIT License (MIT)\n\nCopyright (c) 2015-2026 Nearform.\n\nCopyright (c) 2016-2020 Alexey Svetliakov <https://github.com/asvetliakov>,\nsnerks <https://github.com/snerks>, Krzysztof Cebula <https://github.com\nHavret>, Vitaliy Polyanskiy <https://github.com/alreadyExisted>, James Lismore\n<https://github.com/jlismore>, Stack Builders <https://github.com\nstackbuilders>, Esteban Ibarra <https://github.com/ibarrae>, Dominic Lee\n<https://github.com/dominictwlee>, Dave Vedder <https://github.com\nveddermatic>, Alec Flett <https://github.com/alecf> and potentially other\nDefinitelyTyped contributors.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\n================================================================================\nThird-party software\n================================================================================\n\n`victory-vendor` bundles transpiled copies of the following libraries in\n`lib-vendor/` (used by the CommonJS build). Their licenses are reproduced\nbelow. The original license file for each library is also available at\n`lib-vendor/<library>/LICENSE`.\n\n--------------------------------------------------------------------------------\nd3-array (ISC), d3-color (ISC), d3-format (ISC), d3-interpolate (ISC),\nd3-path (ISC), d3-scale (ISC), d3-shape (ISC), d3-time (ISC),\nd3-time-format (ISC), d3-timer (ISC), internmap (ISC)\n--------------------------------------------------------------------------------\n\nCopyright 2010-2022 Mike Bostock\nCopyright 2010-2021 Mike Bostock\nCopyright 2015-2021 Mike Bostock\nCopyright 2021 Mike Bostock\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n\n--------------------------------------------------------------------------------\nd3-ease (BSD-3-Clause)\n--------------------------------------------------------------------------------\n\nCopyright 2010-2021 Mike Bostock\nCopyright 2001 Robert Penner\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the author nor the names of contributors may be used to\n endorse or promote products derived from this software without specific prior\n written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n--------------------------------------------------------------------------------\nd3-voronoi (BSD-3-Clause)\n--------------------------------------------------------------------------------\n\nCopyright 2010-2016 Mike Bostock\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the author nor the names of contributors may be used to\n endorse or promote products derived from this software without specific prior\n written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nCopyright (C) 2010-2013 Raymond Hill\nhttps://github.com/gorhill/Javascript-Voronoi\n\nLicensed under The MIT License\nhttp://en.wikipedia.org/wiki/MIT_License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n"
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"id": "login-card",
|
|
267
|
+
"title": "Login in a card",
|
|
268
|
+
"description": "Email/password form in a Card with optional provider callbacks and host-supplied links.",
|
|
269
|
+
"patternIds": [],
|
|
270
|
+
"limitations": [
|
|
271
|
+
"Copied React DOM example source, not a runtime package export or a product acceptance claim. Use matching VINi packages, their four stylesheets/fonts and the existing ThemeBrandProvider; checked locally with React/React DOM 18.2.0.",
|
|
272
|
+
"Keep component appearance and interaction states in their public APIs. Adapt product data, copy and surrounding layout; do not override internal hover, focus, selected or disabled styles.",
|
|
273
|
+
"This source selection requires the package API stated below. A successful projection is not an installed-product check, complete accessibility conformance, Figma parity or native platform support. Known Button primary contrast debt remains separate.",
|
|
274
|
+
"Render default AuthenticationExample with story CardLogin or SplitLogin and required links {forgotPassword, signUp, terms, privacy}. Copy AuthenticationExample.jsx and its CSS Module together. The host supplies actual URLs; no Atlas links are embedded.",
|
|
275
|
+
"Optional onSubmit receives the form event after preventDefault; fields are named email/password. Optional onProvider receives google, apple, sso or yandex. linkTarget is optional and host-owned. Missing callbacks do not authenticate or send credentials.",
|
|
276
|
+
"This is a form composition with required/email validation and Input password visibility, not a registered authentication pattern, session service or identity-provider integration. The host owns loading, repeat-submit prevention, errors, retry, session handling and the actual successful destination.",
|
|
277
|
+
"Preserve FieldLabel/htmlFor/Input id associations and native form/link/button semantics. Check empty/invalid/valid input, keyboard submission, password reveal/hide, the chosen provider callbacks and recovery/registration/legal links.",
|
|
278
|
+
"CardLogin presents Google/Apple buttons; SplitLogin presents SSO/Yandex and a decorative image placeholder hidden on narrow layouts. The application selects providers, copy and image treatment. Preserve the included icon attribution; marks remain owned by their respective owners.",
|
|
279
|
+
"Do not enter real credentials into a disconnected demo. Verify callback behavior and narrow layout separately from any real authentication integration."
|
|
280
|
+
],
|
|
281
|
+
"sourceCorrespondence": "Public JSX/CSS Module adaptation of CardLogin; render AuthenticationExample with story CardLogin. No authentication service is provided.",
|
|
282
|
+
"componentIds": [
|
|
283
|
+
"button",
|
|
284
|
+
"card",
|
|
285
|
+
"field",
|
|
286
|
+
"heading",
|
|
287
|
+
"input",
|
|
288
|
+
"text"
|
|
289
|
+
],
|
|
290
|
+
"files": [
|
|
291
|
+
{
|
|
292
|
+
"name": "AuthenticationExample.jsx",
|
|
293
|
+
"language": "jsx",
|
|
294
|
+
"source": "// Public source example: a form composition, not an authentication service.\n// The host supplies links and optional submit/provider callbacks. With no callbacks,\n// submission is prevented and credentials are not transmitted. Do not use real credentials.\n// Render with story=\"CardLogin\" or story=\"SplitLogin\" and a links object containing\n// forgotPassword, signUp, terms and privacy URLs chosen by the host.\nimport React, { useId } from 'react';\nimport { Button, Card, CardContent, CardDescription, CardHeader, Field, FieldGroup, FieldLabel, FieldSeparator, Heading, Input, Text } from '@vini-ds/ui';\nimport styles from './AuthenticationExample.module.css';\n/** @typedef {{ forgotPassword: string, signUp: string, terms: string, privacy: string }} AuthenticationLinks */\n/** @typedef {'google' | 'apple' | 'sso' | 'yandex'} AuthenticationProvider */\n/**\n * @typedef {object} AuthenticationExampleProps\n * @property {'CardLogin' | 'SplitLogin'} story\n * @property {AuthenticationLinks} links\n * @property {string} [linkTarget]\n * @property {(event: import('react').FormEvent<HTMLFormElement>) => void} [onSubmit]\n * @property {(provider: AuthenticationProvider) => void} [onProvider]\n */\n// Google and Apple icons: https://github.com/simple-icons/simple-icons (CC0 1.0).\n// The names and marks remain the property of their respective owners.\nconst googleIcon = <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z\"/></svg>;\nconst appleIcon = <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701\"/></svg>;\n/** @param {Omit<AuthenticationExampleProps, 'story'> & { split?: boolean }} props */\nfunction LoginForm({ split = false, links, linkTarget, onSubmit, onProvider }) {\n const id = useId();\n const submit = (event) => {\n event.preventDefault();\n onSubmit?.(event);\n };\n const fields = <form className={styles.form} onSubmit={submit}>\n <FieldGroup>\n <Field><FieldLabel htmlFor={`${id}-email`}>Электронная почта</FieldLabel><Input id={`${id}-email`} name=\"email\" type=\"email\" autoComplete=\"email\" placeholder=\"name@example.com\" required/></Field>\n <Field><div className={styles.fieldHeading}><FieldLabel htmlFor={`${id}-password`}>Пароль</FieldLabel><Text token=\"desktop/control/regular/500\"><a className={styles.link} href={links.forgotPassword} target={linkTarget}>Забыли пароль?</a></Text></div><Input id={`${id}-password`} name=\"password\" type=\"password\" autoComplete=\"current-password\" required showPasswordLabel=\"Показать пароль\" hidePasswordLabel=\"Скрыть пароль\"/></Field>\n </FieldGroup>\n <Button type=\"submit\" color=\"accent\" size=\"500\">Войти</Button>\n <FieldSeparator>Или продолжить с</FieldSeparator>\n {split ? <div className={styles.providers}>\n <Button type=\"button\" variant=\"outline\" size=\"500\" startIcon=\"key\" aria-label=\"Войти через SSO\" onClick={() => onProvider?.('sso')}>SSO</Button>\n <Button type=\"button\" variant=\"outline\" size=\"500\" startIcon={<span aria-hidden=\"true\">Я</span>} aria-label=\"Войти через Яндекс\" onClick={() => onProvider?.('yandex')}>Яндекс</Button>\n </div> : <div className={styles.socialProviders}>\n <Button type=\"button\" variant=\"outline\" size=\"500\" startIcon={googleIcon} onClick={() => onProvider?.('google')}>Войти через Google</Button>\n <Button type=\"button\" variant=\"outline\" size=\"500\" startIcon={appleIcon} onClick={() => onProvider?.('apple')}>Войти через Apple</Button>\n </div>}\n <Text as=\"p\" token=\"desktop/body/regular/500\" className={styles.signup}>Нет аккаунта? <a className={styles.link} href={links.signUp} target={linkTarget}>Зарегистрироваться</a></Text>\n </form>;\n return split ? <div className={styles.splitForm}><div className={styles.intro}><Heading level={3} token=\"desktop/headline/medium/1000\">Вход в аккаунт</Heading><Text as=\"p\">Введите электронную почту для входа</Text></div>{fields}</div>\n : <Card className={styles.card} style={/** @type {import('react').CSSProperties} */ ({ '--card-spacing': 'var(--vini-base-spacing-900)' })}><CardHeader className={styles.centeredHeader}><Heading level={3} token=\"desktop/headline/medium/1000\">Вход в аккаунт</Heading><CardDescription>Введите электронную почту для входа</CardDescription></CardHeader><CardContent>{fields}</CardContent></Card>;\n}\n/** @param {Pick<AuthenticationExampleProps, 'links' | 'linkTarget'>} props */\nfunction LegalNote({ links, linkTarget }) {\n return <Text as=\"p\" token=\"desktop/body/regular/400\" className={styles.legal}>\n Примеры ссылок: <a className={styles.link} href={links.terms} target={linkTarget}>условия использования</a> и <a className={styles.link} href={links.privacy} target={linkTarget}>политика конфиденциальности</a>.\n </Text>;\n}\n/** @param {AuthenticationExampleProps} props */\nexport default function AuthenticationExample({ story, ...props }) {\n return story === 'CardLogin'\n ? <div className={`${styles.preview} ${styles.centered}`}><div className={styles.centeredContent}><Text token=\"desktop/subheader/medium/600\" className={styles.brand}><span className=\"material-symbols-rounded\" aria-hidden=\"true\">hub</span> VINi Workspace</Text><LoginForm {...props}/><LegalNote {...props}/></div></div>\n : <div className={`${styles.preview} ${styles.centered}`}><div className={styles.splitContent}><div className={styles.split}><div className={styles.splitPanel}><LoginForm {...props} split/></div><div className={styles.image} aria-hidden=\"true\"><span className=\"material-symbols-rounded\">image</span></div></div><LegalNote {...props}/></div></div>;\n}\n"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "AuthenticationExample.module.css",
|
|
298
|
+
"language": "css",
|
|
299
|
+
"source": ".preview { container-type: inline-size; overflow: hidden; min-height: calc(var(--vini-base-sizing-1000) * 10); background: var(--vini-theme-main-space); }\n.centered { display: grid; place-items: center; padding: var(--vini-base-spacing-700); }\n.centeredContent { display: grid; justify-items: center; gap: var(--vini-base-spacing-600); width: min(100%, calc(var(--vini-base-sizing-1000) * 7)); }\n.centeredHeader { text-align: center; }\n.card { width: min(100%, calc(var(--vini-base-sizing-1000) * 7)); }\n.form { display: grid; gap: var(--vini-base-spacing-500); }\n.socialProviders { display: grid; gap: var(--vini-base-spacing-400); }\n.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--vini-base-spacing-300); }\n.fieldHeading { display: flex; align-items: center; justify-content: space-between; gap: var(--vini-base-spacing-300); }\n.link { color: var(--vini-theme-main-foreground-secondary); text-decoration: underline; text-underline-offset: var(--vini-base-spacing-100); }\n.link:hover { color: var(--vini-theme-main-foreground-primary); }\n.link:focus-visible { outline: var(--vini-base-border-width-600) solid var(--vini-theme-main-focus); outline-offset: var(--vini-base-spacing-100); }\n.signup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--vini-base-spacing-100); margin: 0; color: var(--vini-theme-main-foreground-secondary); }\n.legal { margin: 0; color: var(--vini-theme-main-foreground-secondary); text-align: center; }\n.splitContent { display: grid; gap: var(--vini-base-spacing-600); width: min(100%, calc(var(--vini-base-sizing-1000) * 14)); container-type: inline-size; }\n.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: var(--vini-base-spacing-px) solid var(--vini-theme-main-border); border-radius: var(--vini-base-border-radius-500); }\n.splitPanel { display: grid; align-items: center; padding: var(--vini-base-spacing-900); background: var(--vini-theme-main-base); }\n.brand { display: flex; align-items: center; gap: var(--vini-base-spacing-300); }\n.splitForm { display: grid; gap: var(--vini-base-spacing-900); align-content: center; width: min(100%, calc(var(--vini-base-sizing-1000) * 6)); margin-inline: auto; }\n.intro { text-align: center; }\n.intro p { margin: var(--vini-base-spacing-200) 0 0; color: var(--vini-theme-main-foreground-secondary); }\n.image { display: grid; place-items: center; background: var(--vini-theme-main-surface); color: var(--vini-theme-main-foreground-secondary); }\n.image span { font-size: var(--vini-base-sizing-600); }\n@container (max-width: 36rem) { .image { display: none; } .splitPanel { grid-column: 1 / -1; } }\n"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": "login-split",
|
|
305
|
+
"title": "Login beside an image",
|
|
306
|
+
"description": "Email/password form beside a decorative image region, with optional provider callbacks.",
|
|
307
|
+
"patternIds": [],
|
|
308
|
+
"limitations": [
|
|
309
|
+
"Copied React DOM example source, not a runtime package export or a product acceptance claim. Use matching VINi packages, their four stylesheets/fonts and the existing ThemeBrandProvider; checked locally with React/React DOM 18.2.0.",
|
|
310
|
+
"Keep component appearance and interaction states in their public APIs. Adapt product data, copy and surrounding layout; do not override internal hover, focus, selected or disabled styles.",
|
|
311
|
+
"This source selection requires the package API stated below. A successful projection is not an installed-product check, complete accessibility conformance, Figma parity or native platform support. Known Button primary contrast debt remains separate.",
|
|
312
|
+
"Render default AuthenticationExample with story CardLogin or SplitLogin and required links {forgotPassword, signUp, terms, privacy}. Copy AuthenticationExample.jsx and its CSS Module together. The host supplies actual URLs; no Atlas links are embedded.",
|
|
313
|
+
"Optional onSubmit receives the form event after preventDefault; fields are named email/password. Optional onProvider receives google, apple, sso or yandex. linkTarget is optional and host-owned. Missing callbacks do not authenticate or send credentials.",
|
|
314
|
+
"This is a form composition with required/email validation and Input password visibility, not a registered authentication pattern, session service or identity-provider integration. The host owns loading, repeat-submit prevention, errors, retry, session handling and the actual successful destination.",
|
|
315
|
+
"Preserve FieldLabel/htmlFor/Input id associations and native form/link/button semantics. Check empty/invalid/valid input, keyboard submission, password reveal/hide, the chosen provider callbacks and recovery/registration/legal links.",
|
|
316
|
+
"CardLogin presents Google/Apple buttons; SplitLogin presents SSO/Yandex and a decorative image placeholder hidden on narrow layouts. The application selects providers, copy and image treatment. Preserve the included icon attribution; marks remain owned by their respective owners.",
|
|
317
|
+
"Do not enter real credentials into a disconnected demo. Verify callback behavior and narrow layout separately from any real authentication integration."
|
|
318
|
+
],
|
|
319
|
+
"sourceCorrespondence": "Public JSX/CSS Module adaptation of SplitLogin; render AuthenticationExample with story SplitLogin. No authentication service is provided.",
|
|
320
|
+
"componentIds": [
|
|
321
|
+
"button",
|
|
322
|
+
"card",
|
|
323
|
+
"field",
|
|
324
|
+
"heading",
|
|
325
|
+
"input",
|
|
326
|
+
"text"
|
|
327
|
+
],
|
|
328
|
+
"files": [
|
|
329
|
+
{
|
|
330
|
+
"name": "AuthenticationExample.jsx",
|
|
331
|
+
"language": "jsx",
|
|
332
|
+
"source": "// Public source example: a form composition, not an authentication service.\n// The host supplies links and optional submit/provider callbacks. With no callbacks,\n// submission is prevented and credentials are not transmitted. Do not use real credentials.\n// Render with story=\"CardLogin\" or story=\"SplitLogin\" and a links object containing\n// forgotPassword, signUp, terms and privacy URLs chosen by the host.\nimport React, { useId } from 'react';\nimport { Button, Card, CardContent, CardDescription, CardHeader, Field, FieldGroup, FieldLabel, FieldSeparator, Heading, Input, Text } from '@vini-ds/ui';\nimport styles from './AuthenticationExample.module.css';\n/** @typedef {{ forgotPassword: string, signUp: string, terms: string, privacy: string }} AuthenticationLinks */\n/** @typedef {'google' | 'apple' | 'sso' | 'yandex'} AuthenticationProvider */\n/**\n * @typedef {object} AuthenticationExampleProps\n * @property {'CardLogin' | 'SplitLogin'} story\n * @property {AuthenticationLinks} links\n * @property {string} [linkTarget]\n * @property {(event: import('react').FormEvent<HTMLFormElement>) => void} [onSubmit]\n * @property {(provider: AuthenticationProvider) => void} [onProvider]\n */\n// Google and Apple icons: https://github.com/simple-icons/simple-icons (CC0 1.0).\n// The names and marks remain the property of their respective owners.\nconst googleIcon = <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z\"/></svg>;\nconst appleIcon = <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701\"/></svg>;\n/** @param {Omit<AuthenticationExampleProps, 'story'> & { split?: boolean }} props */\nfunction LoginForm({ split = false, links, linkTarget, onSubmit, onProvider }) {\n const id = useId();\n const submit = (event) => {\n event.preventDefault();\n onSubmit?.(event);\n };\n const fields = <form className={styles.form} onSubmit={submit}>\n <FieldGroup>\n <Field><FieldLabel htmlFor={`${id}-email`}>Электронная почта</FieldLabel><Input id={`${id}-email`} name=\"email\" type=\"email\" autoComplete=\"email\" placeholder=\"name@example.com\" required/></Field>\n <Field><div className={styles.fieldHeading}><FieldLabel htmlFor={`${id}-password`}>Пароль</FieldLabel><Text token=\"desktop/control/regular/500\"><a className={styles.link} href={links.forgotPassword} target={linkTarget}>Забыли пароль?</a></Text></div><Input id={`${id}-password`} name=\"password\" type=\"password\" autoComplete=\"current-password\" required showPasswordLabel=\"Показать пароль\" hidePasswordLabel=\"Скрыть пароль\"/></Field>\n </FieldGroup>\n <Button type=\"submit\" color=\"accent\" size=\"500\">Войти</Button>\n <FieldSeparator>Или продолжить с</FieldSeparator>\n {split ? <div className={styles.providers}>\n <Button type=\"button\" variant=\"outline\" size=\"500\" startIcon=\"key\" aria-label=\"Войти через SSO\" onClick={() => onProvider?.('sso')}>SSO</Button>\n <Button type=\"button\" variant=\"outline\" size=\"500\" startIcon={<span aria-hidden=\"true\">Я</span>} aria-label=\"Войти через Яндекс\" onClick={() => onProvider?.('yandex')}>Яндекс</Button>\n </div> : <div className={styles.socialProviders}>\n <Button type=\"button\" variant=\"outline\" size=\"500\" startIcon={googleIcon} onClick={() => onProvider?.('google')}>Войти через Google</Button>\n <Button type=\"button\" variant=\"outline\" size=\"500\" startIcon={appleIcon} onClick={() => onProvider?.('apple')}>Войти через Apple</Button>\n </div>}\n <Text as=\"p\" token=\"desktop/body/regular/500\" className={styles.signup}>Нет аккаунта? <a className={styles.link} href={links.signUp} target={linkTarget}>Зарегистрироваться</a></Text>\n </form>;\n return split ? <div className={styles.splitForm}><div className={styles.intro}><Heading level={3} token=\"desktop/headline/medium/1000\">Вход в аккаунт</Heading><Text as=\"p\">Введите электронную почту для входа</Text></div>{fields}</div>\n : <Card className={styles.card} style={/** @type {import('react').CSSProperties} */ ({ '--card-spacing': 'var(--vini-base-spacing-900)' })}><CardHeader className={styles.centeredHeader}><Heading level={3} token=\"desktop/headline/medium/1000\">Вход в аккаунт</Heading><CardDescription>Введите электронную почту для входа</CardDescription></CardHeader><CardContent>{fields}</CardContent></Card>;\n}\n/** @param {Pick<AuthenticationExampleProps, 'links' | 'linkTarget'>} props */\nfunction LegalNote({ links, linkTarget }) {\n return <Text as=\"p\" token=\"desktop/body/regular/400\" className={styles.legal}>\n Примеры ссылок: <a className={styles.link} href={links.terms} target={linkTarget}>условия использования</a> и <a className={styles.link} href={links.privacy} target={linkTarget}>политика конфиденциальности</a>.\n </Text>;\n}\n/** @param {AuthenticationExampleProps} props */\nexport default function AuthenticationExample({ story, ...props }) {\n return story === 'CardLogin'\n ? <div className={`${styles.preview} ${styles.centered}`}><div className={styles.centeredContent}><Text token=\"desktop/subheader/medium/600\" className={styles.brand}><span className=\"material-symbols-rounded\" aria-hidden=\"true\">hub</span> VINi Workspace</Text><LoginForm {...props}/><LegalNote {...props}/></div></div>\n : <div className={`${styles.preview} ${styles.centered}`}><div className={styles.splitContent}><div className={styles.split}><div className={styles.splitPanel}><LoginForm {...props} split/></div><div className={styles.image} aria-hidden=\"true\"><span className=\"material-symbols-rounded\">image</span></div></div><LegalNote {...props}/></div></div>;\n}\n"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "AuthenticationExample.module.css",
|
|
336
|
+
"language": "css",
|
|
337
|
+
"source": ".preview { container-type: inline-size; overflow: hidden; min-height: calc(var(--vini-base-sizing-1000) * 10); background: var(--vini-theme-main-space); }\n.centered { display: grid; place-items: center; padding: var(--vini-base-spacing-700); }\n.centeredContent { display: grid; justify-items: center; gap: var(--vini-base-spacing-600); width: min(100%, calc(var(--vini-base-sizing-1000) * 7)); }\n.centeredHeader { text-align: center; }\n.card { width: min(100%, calc(var(--vini-base-sizing-1000) * 7)); }\n.form { display: grid; gap: var(--vini-base-spacing-500); }\n.socialProviders { display: grid; gap: var(--vini-base-spacing-400); }\n.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--vini-base-spacing-300); }\n.fieldHeading { display: flex; align-items: center; justify-content: space-between; gap: var(--vini-base-spacing-300); }\n.link { color: var(--vini-theme-main-foreground-secondary); text-decoration: underline; text-underline-offset: var(--vini-base-spacing-100); }\n.link:hover { color: var(--vini-theme-main-foreground-primary); }\n.link:focus-visible { outline: var(--vini-base-border-width-600) solid var(--vini-theme-main-focus); outline-offset: var(--vini-base-spacing-100); }\n.signup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--vini-base-spacing-100); margin: 0; color: var(--vini-theme-main-foreground-secondary); }\n.legal { margin: 0; color: var(--vini-theme-main-foreground-secondary); text-align: center; }\n.splitContent { display: grid; gap: var(--vini-base-spacing-600); width: min(100%, calc(var(--vini-base-sizing-1000) * 14)); container-type: inline-size; }\n.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: var(--vini-base-spacing-px) solid var(--vini-theme-main-border); border-radius: var(--vini-base-border-radius-500); }\n.splitPanel { display: grid; align-items: center; padding: var(--vini-base-spacing-900); background: var(--vini-theme-main-base); }\n.brand { display: flex; align-items: center; gap: var(--vini-base-spacing-300); }\n.splitForm { display: grid; gap: var(--vini-base-spacing-900); align-content: center; width: min(100%, calc(var(--vini-base-sizing-1000) * 6)); margin-inline: auto; }\n.intro { text-align: center; }\n.intro p { margin: var(--vini-base-spacing-200) 0 0; color: var(--vini-theme-main-foreground-secondary); }\n.image { display: grid; place-items: center; background: var(--vini-theme-main-surface); color: var(--vini-theme-main-foreground-secondary); }\n.image span { font-size: var(--vini-base-sizing-600); }\n@container (max-width: 36rem) { .image { display: none; } .splitPanel { grid-column: 1 / -1; } }\n"
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
]
|