@platned/ui 0.10.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -98
- package/dist/blocks-charts.cjs +459 -0
- package/dist/blocks-charts.cjs.map +1 -0
- package/dist/blocks-charts.d.cts +64 -0
- package/dist/blocks-charts.d.ts +64 -0
- package/dist/blocks-charts.js +440 -0
- package/dist/blocks-charts.js.map +1 -0
- package/dist/blocks.cjs +8007 -0
- package/dist/blocks.cjs.map +1 -0
- package/dist/blocks.d.cts +3082 -0
- package/dist/blocks.d.ts +3082 -0
- package/dist/blocks.js +8223 -0
- package/dist/blocks.js.map +1 -0
- package/dist/chart.cjs +226 -0
- package/dist/chart.cjs.map +1 -0
- package/dist/chart.d.ts +66 -0
- package/dist/chart.js +183 -0
- package/dist/chart.js.map +1 -0
- package/dist/chunk-2L5XAYNK.js +11 -0
- package/dist/chunk-2L5XAYNK.js.map +1 -0
- package/dist/chunk-327NSKZW.js +3176 -0
- package/dist/chunk-327NSKZW.js.map +1 -0
- package/dist/chunk-GJJWRZ4B.js +200 -0
- package/dist/chunk-GJJWRZ4B.js.map +1 -0
- package/dist/chunk-WGCAQEZ4.js +178 -0
- package/dist/chunk-WGCAQEZ4.js.map +1 -0
- package/dist/code-block-BgEiLXpO.d.ts +111 -0
- package/dist/code-block-highlight.cjs +489 -0
- package/dist/code-block-highlight.cjs.map +1 -0
- package/dist/code-block-highlight.d.ts +28 -0
- package/dist/code-block-highlight.js +120 -0
- package/dist/code-block-highlight.js.map +1 -0
- package/dist/data-table-Dec6t8NO.d.ts +729 -0
- package/dist/data-table.cjs +3506 -2219
- package/dist/data-table.cjs.map +1 -1
- package/dist/data-table.d.ts +2 -1
- package/dist/data-table.js +1396 -246
- package/dist/data-table.js.map +1 -1
- package/dist/index.cjs +8932 -11975
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2524 -5312
- package/dist/index.js +4681 -9560
- package/dist/index.js.map +1 -1
- package/dist/map.cjs +432 -0
- package/dist/map.cjs.map +1 -0
- package/dist/map.d.cts +294 -0
- package/dist/map.d.ts +294 -0
- package/dist/map.js +422 -0
- package/dist/map.js.map +1 -0
- package/dist/theme.css +1897 -0
- package/package.json +65 -24
- package/dist/chunk-OVIRTNT4.js +0 -2787
- package/dist/chunk-OVIRTNT4.js.map +0 -1
- package/dist/data-table-JX-vnL0F.d.ts +0 -464
- package/dist/sidebar.cjs +0 -108
- package/dist/sidebar.cjs.map +0 -1
- package/dist/sidebar.d.cts +0 -257
- package/dist/sidebar.d.ts +0 -257
- package/dist/sidebar.js +0 -70
- package/dist/sidebar.js.map +0 -1
- package/dist/styles.css +0 -1
- package/dist/tokens.css +0 -1
- package/tailwind-preset.cjs +0 -446
package/dist/sidebar.d.cts
DELETED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, ComponentType, AnchorHTMLAttributes, RefAttributes, HTMLAttributes } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
|
-
|
|
5
|
-
type NavItemSize = 'sm' | 'md';
|
|
6
|
-
type NavItemVariant = 'card' | 'plain';
|
|
7
|
-
/**
|
|
8
|
-
* The two Figma sidebar variants (Sidebar Navigation, node 3133:255). New in 0.9.6.
|
|
9
|
-
*
|
|
10
|
-
* `comfortable` is the card row: 44px, its own border and surface. `compact` is the plain
|
|
11
|
-
* row: 40px, text on the rail. Both use the 16px Body Base label and a 20px icon.
|
|
12
|
-
*/
|
|
13
|
-
type NavItemDensity = 'comfortable' | 'compact';
|
|
14
|
-
|
|
15
|
-
interface SidebarNavItem {
|
|
16
|
-
/** Stable key. Falls back to `to`, then `href`, then `label`. New in 0.9.6. */
|
|
17
|
-
id?: string;
|
|
18
|
-
/**
|
|
19
|
-
* An in-app destination, rendered through `linkComponent`. May carry a hash
|
|
20
|
-
* (`/docs/floating#tooltip`) to link to a section of a page: that row is current only when
|
|
21
|
-
* the hash matches too, and the page's own plain row steps aside while it is. Optional from
|
|
22
|
-
* 0.9.6, so a row can exist only to open its `children`.
|
|
23
|
-
*/
|
|
24
|
-
to?: string;
|
|
25
|
-
/**
|
|
26
|
-
* An external destination, opened in a new tab as a plain `<a>`. New in 0.9.6. Use `to`
|
|
27
|
-
* for anything inside the app.
|
|
28
|
-
*/
|
|
29
|
-
href?: string;
|
|
30
|
-
label: string;
|
|
31
|
-
/** Optional — a collapsed row without one falls back to a monogram of its label. */
|
|
32
|
-
icon?: ReactNode;
|
|
33
|
-
/** Red dot on the row — something new behind this destination. */
|
|
34
|
-
indicator?: boolean;
|
|
35
|
-
/** Match the path exactly rather than as a prefix. Needed for an index route. */
|
|
36
|
-
end?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* A destination that exists but cannot be opened right now (coming soon). The row is
|
|
39
|
-
* dimmed, announced with `aria-disabled`, out of the tab order, and refuses the press.
|
|
40
|
-
* Something the user has no permission for should not be in the list at all: see
|
|
41
|
-
* `filterNav`.
|
|
42
|
-
*/
|
|
43
|
-
disabled?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Overrides route matching, for a row whose "current" rule is more than a path prefix —
|
|
46
|
-
* one page reached from two places, say. New in 0.9.6.
|
|
47
|
-
*/
|
|
48
|
-
isActive?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Child rows, one level deep. Expanded they open under the row; on the collapsed rail the
|
|
51
|
-
* row opens them as a flyout menu. New in 0.9.6.
|
|
52
|
-
*/
|
|
53
|
-
children?: SidebarNavItem[];
|
|
54
|
-
/** Whether the children start open. Default: open when one of them is the current route. */
|
|
55
|
-
defaultOpen?: boolean;
|
|
56
|
-
}
|
|
57
|
-
interface SidebarNavGroup {
|
|
58
|
-
/** Stable key. Falls back to `title`. New in 0.9.6. */
|
|
59
|
-
id?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Heading above the group. Omit for an ungrouped run of rows.
|
|
62
|
-
*
|
|
63
|
-
* Kept in the accessibility tree when the rail is collapsed rather than dropped: it is the
|
|
64
|
-
* only thing saying what the run of icons below it has in common.
|
|
65
|
-
*/
|
|
66
|
-
title?: string;
|
|
67
|
-
items: SidebarNavItem[];
|
|
68
|
-
/** Give the heading a chevron that folds the group away. Needs a `title`. New in 0.9.6. */
|
|
69
|
-
collapsible?: boolean;
|
|
70
|
-
/** With `collapsible`: whether the group starts open. Default `true`. */
|
|
71
|
-
defaultOpen?: boolean;
|
|
72
|
-
/** Trailing slot in the heading — an "add" icon button, say. New in 0.9.6. */
|
|
73
|
-
action?: ReactNode;
|
|
74
|
-
}
|
|
75
|
-
interface SidebarLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
76
|
-
href: string;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Renders an in-app row's link. It must forward its ref to the anchor — the collapsed rail
|
|
80
|
-
* anchors a tooltip to it and the flyout a menu item — as `next/link` and react-router's
|
|
81
|
-
* `Link` both do.
|
|
82
|
-
*/
|
|
83
|
-
type SidebarLinkComponent = ComponentType<SidebarLinkProps & RefAttributes<HTMLAnchorElement>>;
|
|
84
|
-
interface SidebarRenderState {
|
|
85
|
-
collapsed: boolean;
|
|
86
|
-
density: NavItemDensity;
|
|
87
|
-
}
|
|
88
|
-
interface SidebarProps {
|
|
89
|
-
/** The scrolling nav. One untitled group is a flat list. */
|
|
90
|
-
groups: SidebarNavGroup[];
|
|
91
|
-
/** Rows pinned below the scrolling nav — settings, help, a feedback link. */
|
|
92
|
-
footerNav?: SidebarNavItem[];
|
|
93
|
-
/**
|
|
94
|
-
* Brand lockup. Given a function it receives `collapsed` and `density`, so the caller can
|
|
95
|
-
* swap a full lockup for a mark alone rather than having one squeezed into the rail.
|
|
96
|
-
*/
|
|
97
|
-
brand?: ReactNode | ((state: SidebarRenderState) => ReactNode);
|
|
98
|
-
/** Bottom slot — a `SidebarUserCard`, a version pill, nothing. A function gets the state. */
|
|
99
|
-
footer?: ReactNode | ((state: SidebarRenderState) => ReactNode);
|
|
100
|
-
/**
|
|
101
|
-
* Figma's two sidebar variants. `comfortable` (default): 44px card rows, an 80px rail.
|
|
102
|
-
* `compact`: 40px plain rows, a 72px rail. New in 0.9.6.
|
|
103
|
-
*/
|
|
104
|
-
density?: NavItemDensity;
|
|
105
|
-
/**
|
|
106
|
-
* Whether the rail can collapse at all. `false` locks it open: no toggle button, and
|
|
107
|
-
* `collapsed` is ignored rather than half honoured.
|
|
108
|
-
*/
|
|
109
|
-
collapsible?: boolean;
|
|
110
|
-
/** Controlled collapsed state. Omit for uncontrolled. */
|
|
111
|
-
collapsed?: boolean;
|
|
112
|
-
/** Initial collapsed state when uncontrolled. */
|
|
113
|
-
defaultCollapsed?: boolean;
|
|
114
|
-
onCollapsedChange?: (collapsed: boolean) => void;
|
|
115
|
-
/**
|
|
116
|
-
* Called by the collapse toggle. Kept from before 0.9.6, when `collapsed` was always
|
|
117
|
-
* controlled: passing `collapsed` with neither this nor `onCollapsedChange` still means
|
|
118
|
-
* "no toggle button".
|
|
119
|
-
*/
|
|
120
|
-
onToggle?: () => void;
|
|
121
|
-
/**
|
|
122
|
-
* localStorage key the collapsed state is remembered under, so it survives a reload.
|
|
123
|
-
* Read after mount, so server and client render the same first frame. New in 0.9.6.
|
|
124
|
-
*/
|
|
125
|
-
storageKey?: string;
|
|
126
|
-
/** The current pathname, which decides the current row. New in 0.9.6. */
|
|
127
|
-
currentPath?: string;
|
|
128
|
-
/** The current hash, for rows that link to a section (`#tooltip`). */
|
|
129
|
-
currentHash?: string;
|
|
130
|
-
/** Renders in-app links. Default a plain `<a>`; pass `next/link` or a router link. */
|
|
131
|
-
linkComponent?: SidebarLinkComponent;
|
|
132
|
-
/** Called when a row is pressed — after the mobile drawer has closed itself. */
|
|
133
|
-
onNavigate?: () => void;
|
|
134
|
-
/** Accessible name of the sidebar landmark. Default "Primary". */
|
|
135
|
-
label?: string;
|
|
136
|
-
/** @deprecated Use `density`. `plain` maps to `compact`; `size` is ignored. */
|
|
137
|
-
size?: NavItemSize;
|
|
138
|
-
/** @deprecated Use `density`. `plain` maps to `compact`, `card` to `comfortable`. */
|
|
139
|
-
variant?: NavItemVariant;
|
|
140
|
-
/** Expanded width, as a Tailwind class. Default `w-80` (320px). */
|
|
141
|
-
width?: string;
|
|
142
|
-
/** Collapsed width. Default `w-20` (80px) comfortable, `w-[72px]` compact. */
|
|
143
|
-
collapsedWidth?: string;
|
|
144
|
-
className?: string;
|
|
145
|
-
}
|
|
146
|
-
type SidebarSeparatorProps = HTMLAttributes<HTMLDivElement>;
|
|
147
|
-
/**
|
|
148
|
-
* A rule for the sidebar's `footer` slot or a hand-composed rail. The sidebar itself no
|
|
149
|
-
* longer draws one between groups from 0.9.6 — the Figma frames separate groups by space.
|
|
150
|
-
*
|
|
151
|
-
* Decorative by default. Pass `role="separator"` through where it marks a grouping nothing
|
|
152
|
-
* else names.
|
|
153
|
-
*/
|
|
154
|
-
declare function SidebarSeparator({ className, ...rest }: SidebarSeparatorProps): react.JSX.Element;
|
|
155
|
-
interface SidebarUserCardProps {
|
|
156
|
-
name: string;
|
|
157
|
-
role: string;
|
|
158
|
-
onLogout: () => void;
|
|
159
|
-
collapsed?: boolean;
|
|
160
|
-
/** Extra menu entries above Sign out. */
|
|
161
|
-
menu?: ReactNode;
|
|
162
|
-
className?: string;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* The signed-in user block, for the sidebar's `footer` slot — Figma `UserCard` (node
|
|
166
|
-
* 3123:156). On the main entry from 0.9.6; `@platned/ui/sidebar` still exports it.
|
|
167
|
-
*
|
|
168
|
-
* Its menu is `DropdownMenu`, which portals, so the collapsed rail does not clip it.
|
|
169
|
-
*/
|
|
170
|
-
declare function SidebarUserCard({ name, role, onLogout, collapsed, menu, className, }: SidebarUserCardProps): react.JSX.Element;
|
|
171
|
-
|
|
172
|
-
/** How a column appears in card mode. */
|
|
173
|
-
type ColumnMobileRole = 'title' | 'status' | 'actions' | 'field' | 'hidden';
|
|
174
|
-
|
|
175
|
-
type DataTableColumnAlign = 'start' | 'center' | 'end';
|
|
176
|
-
/**
|
|
177
|
-
* Per-column layout options, carried on TanStack's `meta`. Declared by augmenting TanStack's
|
|
178
|
-
* own `ColumnMeta`, so `meta` on your `ColumnDef` is typed with no extra import:
|
|
179
|
-
*
|
|
180
|
-
* const columns: ColumnDef<Supplier>[] = [
|
|
181
|
-
* { accessorKey: 'name', header: 'Supplier', meta: { width: '280px', grow: true, mobile: 'title' } },
|
|
182
|
-
* ];
|
|
183
|
-
*/
|
|
184
|
-
declare module '@tanstack/react-table' {
|
|
185
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
186
|
-
/**
|
|
187
|
-
* CSS width for the column's `<col>`, e.g. `"320px"` or `"10rem"`. A column is never
|
|
188
|
-
* narrower than its header text. With `grow`, this is the floor instead.
|
|
189
|
-
*/
|
|
190
|
-
width?: string;
|
|
191
|
-
/** Absorbs the table's remaining width, with `width` as its floor. Usually one column. */
|
|
192
|
-
grow?: boolean;
|
|
193
|
-
/** Horizontal alignment of the header and cells. Default `start`. */
|
|
194
|
-
align?: DataTableColumnAlign;
|
|
195
|
-
/**
|
|
196
|
-
* The cell renders its own controls (a button, a toggle, a menu). Presses inside it stop
|
|
197
|
-
* before reaching the row's `onRowClick`, and the cell stops clipping its overflow, so
|
|
198
|
-
* focus rings are not cut off.
|
|
199
|
-
*/
|
|
200
|
-
interactive?: boolean;
|
|
201
|
-
/** Keep the header for screen readers but hide it visually, e.g. an actions column. */
|
|
202
|
-
hideHeader?: boolean;
|
|
203
|
-
/** The column's part in card mode. See `ColumnMobileRole`. Default `field`. */
|
|
204
|
-
mobile?: ColumnMobileRole;
|
|
205
|
-
/** Pin the first (`start`) or last (`end`) visible column while the table scrolls sideways. */
|
|
206
|
-
sticky?: 'start' | 'end';
|
|
207
|
-
/** The column's name where its header cannot be shown as text: menus, card labels. */
|
|
208
|
-
label?: string;
|
|
209
|
-
/** Extra classes on the header cell. An escape hatch; prefer `align`. */
|
|
210
|
-
headerClassName?: string;
|
|
211
|
-
/** Extra classes on each body cell. An escape hatch; prefer `align`. */
|
|
212
|
-
cellClassName?: string;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
interface NavTabItem {
|
|
217
|
-
to: string;
|
|
218
|
-
label: string;
|
|
219
|
-
/** Match this route exactly — needed for an index route like `/account`. */
|
|
220
|
-
end?: boolean;
|
|
221
|
-
}
|
|
222
|
-
interface NavTabsProps {
|
|
223
|
-
items: NavTabItem[];
|
|
224
|
-
className?: string;
|
|
225
|
-
}
|
|
226
|
-
/** Route-driven tab strip, backed by react-router's `NavLink`.
|
|
227
|
-
*
|
|
228
|
-
* Use this when each tab is its own route. For state-driven tabs that do not change
|
|
229
|
-
* the URL, use `Tabs` from the main entry point instead — it has no router dependency.
|
|
230
|
-
*
|
|
231
|
-
* The active underline and label use `brand-emphasis` (#0C2D58), the brand fill colour
|
|
232
|
-
* Figma specifies for a tab rule, rather than the lighter `brand` border token. */
|
|
233
|
-
declare function NavTabs({ items, className }: NavTabsProps): react.JSX.Element;
|
|
234
|
-
|
|
235
|
-
type AppSidebarProps = Omit<SidebarProps, 'currentPath' | 'currentHash' | 'linkComponent'>;
|
|
236
|
-
/**
|
|
237
|
-
* The application nav rail, wired to react-router: the current row comes from `useLocation`
|
|
238
|
-
* and rows link with `Link`.
|
|
239
|
-
*
|
|
240
|
-
* Lives on its own entry point (`@platned/ui/sidebar`) because `react-router-dom` is an
|
|
241
|
-
* optional peer dependency. From 0.9.6 it is a thin wrapper over `Sidebar` on the main entry,
|
|
242
|
-
* which takes the location and the link component as props — use that directly in an app on
|
|
243
|
-
* another router (Next.js).
|
|
244
|
-
*
|
|
245
|
-
* Through 0.4.0 this was not a library component at all. It hardcoded ten product routes,
|
|
246
|
-
* their labels and their icons, an `SCIC` wordmark, and an `isAdmin` flag gating two of the
|
|
247
|
-
* rows — so the only app it could render was the one it was extracted from. Everything
|
|
248
|
-
* app-specific is now a prop or a slot.
|
|
249
|
-
*
|
|
250
|
-
* Width is an explicit prop rather than something `className` overrides: the width is
|
|
251
|
-
* conditional on `collapsed`, so a `className="w-64"` would tailwind-merge away the
|
|
252
|
-
* collapsed width too and break the collapse. Everything else about the shell is fair game
|
|
253
|
-
* for `className` — `rounded-none` to flatten it for a full-bleed layout, for instance.
|
|
254
|
-
*/
|
|
255
|
-
declare function AppSidebar(props: AppSidebarProps): react.JSX.Element;
|
|
256
|
-
|
|
257
|
-
export { AppSidebar, type AppSidebarProps, type NavTabItem, NavTabs, type NavTabsProps, type SidebarNavGroup, type SidebarNavItem, SidebarSeparator, type SidebarSeparatorProps, SidebarUserCard, type SidebarUserCardProps };
|
package/dist/sidebar.d.ts
DELETED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, ComponentType, AnchorHTMLAttributes, RefAttributes, HTMLAttributes } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
|
-
|
|
5
|
-
type NavItemSize = 'sm' | 'md';
|
|
6
|
-
type NavItemVariant = 'card' | 'plain';
|
|
7
|
-
/**
|
|
8
|
-
* The two Figma sidebar variants (Sidebar Navigation, node 3133:255). New in 0.9.6.
|
|
9
|
-
*
|
|
10
|
-
* `comfortable` is the card row: 44px, its own border and surface. `compact` is the plain
|
|
11
|
-
* row: 40px, text on the rail. Both use the 16px Body Base label and a 20px icon.
|
|
12
|
-
*/
|
|
13
|
-
type NavItemDensity = 'comfortable' | 'compact';
|
|
14
|
-
|
|
15
|
-
interface SidebarNavItem {
|
|
16
|
-
/** Stable key. Falls back to `to`, then `href`, then `label`. New in 0.9.6. */
|
|
17
|
-
id?: string;
|
|
18
|
-
/**
|
|
19
|
-
* An in-app destination, rendered through `linkComponent`. May carry a hash
|
|
20
|
-
* (`/docs/floating#tooltip`) to link to a section of a page: that row is current only when
|
|
21
|
-
* the hash matches too, and the page's own plain row steps aside while it is. Optional from
|
|
22
|
-
* 0.9.6, so a row can exist only to open its `children`.
|
|
23
|
-
*/
|
|
24
|
-
to?: string;
|
|
25
|
-
/**
|
|
26
|
-
* An external destination, opened in a new tab as a plain `<a>`. New in 0.9.6. Use `to`
|
|
27
|
-
* for anything inside the app.
|
|
28
|
-
*/
|
|
29
|
-
href?: string;
|
|
30
|
-
label: string;
|
|
31
|
-
/** Optional — a collapsed row without one falls back to a monogram of its label. */
|
|
32
|
-
icon?: ReactNode;
|
|
33
|
-
/** Red dot on the row — something new behind this destination. */
|
|
34
|
-
indicator?: boolean;
|
|
35
|
-
/** Match the path exactly rather than as a prefix. Needed for an index route. */
|
|
36
|
-
end?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* A destination that exists but cannot be opened right now (coming soon). The row is
|
|
39
|
-
* dimmed, announced with `aria-disabled`, out of the tab order, and refuses the press.
|
|
40
|
-
* Something the user has no permission for should not be in the list at all: see
|
|
41
|
-
* `filterNav`.
|
|
42
|
-
*/
|
|
43
|
-
disabled?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Overrides route matching, for a row whose "current" rule is more than a path prefix —
|
|
46
|
-
* one page reached from two places, say. New in 0.9.6.
|
|
47
|
-
*/
|
|
48
|
-
isActive?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Child rows, one level deep. Expanded they open under the row; on the collapsed rail the
|
|
51
|
-
* row opens them as a flyout menu. New in 0.9.6.
|
|
52
|
-
*/
|
|
53
|
-
children?: SidebarNavItem[];
|
|
54
|
-
/** Whether the children start open. Default: open when one of them is the current route. */
|
|
55
|
-
defaultOpen?: boolean;
|
|
56
|
-
}
|
|
57
|
-
interface SidebarNavGroup {
|
|
58
|
-
/** Stable key. Falls back to `title`. New in 0.9.6. */
|
|
59
|
-
id?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Heading above the group. Omit for an ungrouped run of rows.
|
|
62
|
-
*
|
|
63
|
-
* Kept in the accessibility tree when the rail is collapsed rather than dropped: it is the
|
|
64
|
-
* only thing saying what the run of icons below it has in common.
|
|
65
|
-
*/
|
|
66
|
-
title?: string;
|
|
67
|
-
items: SidebarNavItem[];
|
|
68
|
-
/** Give the heading a chevron that folds the group away. Needs a `title`. New in 0.9.6. */
|
|
69
|
-
collapsible?: boolean;
|
|
70
|
-
/** With `collapsible`: whether the group starts open. Default `true`. */
|
|
71
|
-
defaultOpen?: boolean;
|
|
72
|
-
/** Trailing slot in the heading — an "add" icon button, say. New in 0.9.6. */
|
|
73
|
-
action?: ReactNode;
|
|
74
|
-
}
|
|
75
|
-
interface SidebarLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
76
|
-
href: string;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Renders an in-app row's link. It must forward its ref to the anchor — the collapsed rail
|
|
80
|
-
* anchors a tooltip to it and the flyout a menu item — as `next/link` and react-router's
|
|
81
|
-
* `Link` both do.
|
|
82
|
-
*/
|
|
83
|
-
type SidebarLinkComponent = ComponentType<SidebarLinkProps & RefAttributes<HTMLAnchorElement>>;
|
|
84
|
-
interface SidebarRenderState {
|
|
85
|
-
collapsed: boolean;
|
|
86
|
-
density: NavItemDensity;
|
|
87
|
-
}
|
|
88
|
-
interface SidebarProps {
|
|
89
|
-
/** The scrolling nav. One untitled group is a flat list. */
|
|
90
|
-
groups: SidebarNavGroup[];
|
|
91
|
-
/** Rows pinned below the scrolling nav — settings, help, a feedback link. */
|
|
92
|
-
footerNav?: SidebarNavItem[];
|
|
93
|
-
/**
|
|
94
|
-
* Brand lockup. Given a function it receives `collapsed` and `density`, so the caller can
|
|
95
|
-
* swap a full lockup for a mark alone rather than having one squeezed into the rail.
|
|
96
|
-
*/
|
|
97
|
-
brand?: ReactNode | ((state: SidebarRenderState) => ReactNode);
|
|
98
|
-
/** Bottom slot — a `SidebarUserCard`, a version pill, nothing. A function gets the state. */
|
|
99
|
-
footer?: ReactNode | ((state: SidebarRenderState) => ReactNode);
|
|
100
|
-
/**
|
|
101
|
-
* Figma's two sidebar variants. `comfortable` (default): 44px card rows, an 80px rail.
|
|
102
|
-
* `compact`: 40px plain rows, a 72px rail. New in 0.9.6.
|
|
103
|
-
*/
|
|
104
|
-
density?: NavItemDensity;
|
|
105
|
-
/**
|
|
106
|
-
* Whether the rail can collapse at all. `false` locks it open: no toggle button, and
|
|
107
|
-
* `collapsed` is ignored rather than half honoured.
|
|
108
|
-
*/
|
|
109
|
-
collapsible?: boolean;
|
|
110
|
-
/** Controlled collapsed state. Omit for uncontrolled. */
|
|
111
|
-
collapsed?: boolean;
|
|
112
|
-
/** Initial collapsed state when uncontrolled. */
|
|
113
|
-
defaultCollapsed?: boolean;
|
|
114
|
-
onCollapsedChange?: (collapsed: boolean) => void;
|
|
115
|
-
/**
|
|
116
|
-
* Called by the collapse toggle. Kept from before 0.9.6, when `collapsed` was always
|
|
117
|
-
* controlled: passing `collapsed` with neither this nor `onCollapsedChange` still means
|
|
118
|
-
* "no toggle button".
|
|
119
|
-
*/
|
|
120
|
-
onToggle?: () => void;
|
|
121
|
-
/**
|
|
122
|
-
* localStorage key the collapsed state is remembered under, so it survives a reload.
|
|
123
|
-
* Read after mount, so server and client render the same first frame. New in 0.9.6.
|
|
124
|
-
*/
|
|
125
|
-
storageKey?: string;
|
|
126
|
-
/** The current pathname, which decides the current row. New in 0.9.6. */
|
|
127
|
-
currentPath?: string;
|
|
128
|
-
/** The current hash, for rows that link to a section (`#tooltip`). */
|
|
129
|
-
currentHash?: string;
|
|
130
|
-
/** Renders in-app links. Default a plain `<a>`; pass `next/link` or a router link. */
|
|
131
|
-
linkComponent?: SidebarLinkComponent;
|
|
132
|
-
/** Called when a row is pressed — after the mobile drawer has closed itself. */
|
|
133
|
-
onNavigate?: () => void;
|
|
134
|
-
/** Accessible name of the sidebar landmark. Default "Primary". */
|
|
135
|
-
label?: string;
|
|
136
|
-
/** @deprecated Use `density`. `plain` maps to `compact`; `size` is ignored. */
|
|
137
|
-
size?: NavItemSize;
|
|
138
|
-
/** @deprecated Use `density`. `plain` maps to `compact`, `card` to `comfortable`. */
|
|
139
|
-
variant?: NavItemVariant;
|
|
140
|
-
/** Expanded width, as a Tailwind class. Default `w-80` (320px). */
|
|
141
|
-
width?: string;
|
|
142
|
-
/** Collapsed width. Default `w-20` (80px) comfortable, `w-[72px]` compact. */
|
|
143
|
-
collapsedWidth?: string;
|
|
144
|
-
className?: string;
|
|
145
|
-
}
|
|
146
|
-
type SidebarSeparatorProps = HTMLAttributes<HTMLDivElement>;
|
|
147
|
-
/**
|
|
148
|
-
* A rule for the sidebar's `footer` slot or a hand-composed rail. The sidebar itself no
|
|
149
|
-
* longer draws one between groups from 0.9.6 — the Figma frames separate groups by space.
|
|
150
|
-
*
|
|
151
|
-
* Decorative by default. Pass `role="separator"` through where it marks a grouping nothing
|
|
152
|
-
* else names.
|
|
153
|
-
*/
|
|
154
|
-
declare function SidebarSeparator({ className, ...rest }: SidebarSeparatorProps): react.JSX.Element;
|
|
155
|
-
interface SidebarUserCardProps {
|
|
156
|
-
name: string;
|
|
157
|
-
role: string;
|
|
158
|
-
onLogout: () => void;
|
|
159
|
-
collapsed?: boolean;
|
|
160
|
-
/** Extra menu entries above Sign out. */
|
|
161
|
-
menu?: ReactNode;
|
|
162
|
-
className?: string;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* The signed-in user block, for the sidebar's `footer` slot — Figma `UserCard` (node
|
|
166
|
-
* 3123:156). On the main entry from 0.9.6; `@platned/ui/sidebar` still exports it.
|
|
167
|
-
*
|
|
168
|
-
* Its menu is `DropdownMenu`, which portals, so the collapsed rail does not clip it.
|
|
169
|
-
*/
|
|
170
|
-
declare function SidebarUserCard({ name, role, onLogout, collapsed, menu, className, }: SidebarUserCardProps): react.JSX.Element;
|
|
171
|
-
|
|
172
|
-
/** How a column appears in card mode. */
|
|
173
|
-
type ColumnMobileRole = 'title' | 'status' | 'actions' | 'field' | 'hidden';
|
|
174
|
-
|
|
175
|
-
type DataTableColumnAlign = 'start' | 'center' | 'end';
|
|
176
|
-
/**
|
|
177
|
-
* Per-column layout options, carried on TanStack's `meta`. Declared by augmenting TanStack's
|
|
178
|
-
* own `ColumnMeta`, so `meta` on your `ColumnDef` is typed with no extra import:
|
|
179
|
-
*
|
|
180
|
-
* const columns: ColumnDef<Supplier>[] = [
|
|
181
|
-
* { accessorKey: 'name', header: 'Supplier', meta: { width: '280px', grow: true, mobile: 'title' } },
|
|
182
|
-
* ];
|
|
183
|
-
*/
|
|
184
|
-
declare module '@tanstack/react-table' {
|
|
185
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
186
|
-
/**
|
|
187
|
-
* CSS width for the column's `<col>`, e.g. `"320px"` or `"10rem"`. A column is never
|
|
188
|
-
* narrower than its header text. With `grow`, this is the floor instead.
|
|
189
|
-
*/
|
|
190
|
-
width?: string;
|
|
191
|
-
/** Absorbs the table's remaining width, with `width` as its floor. Usually one column. */
|
|
192
|
-
grow?: boolean;
|
|
193
|
-
/** Horizontal alignment of the header and cells. Default `start`. */
|
|
194
|
-
align?: DataTableColumnAlign;
|
|
195
|
-
/**
|
|
196
|
-
* The cell renders its own controls (a button, a toggle, a menu). Presses inside it stop
|
|
197
|
-
* before reaching the row's `onRowClick`, and the cell stops clipping its overflow, so
|
|
198
|
-
* focus rings are not cut off.
|
|
199
|
-
*/
|
|
200
|
-
interactive?: boolean;
|
|
201
|
-
/** Keep the header for screen readers but hide it visually, e.g. an actions column. */
|
|
202
|
-
hideHeader?: boolean;
|
|
203
|
-
/** The column's part in card mode. See `ColumnMobileRole`. Default `field`. */
|
|
204
|
-
mobile?: ColumnMobileRole;
|
|
205
|
-
/** Pin the first (`start`) or last (`end`) visible column while the table scrolls sideways. */
|
|
206
|
-
sticky?: 'start' | 'end';
|
|
207
|
-
/** The column's name where its header cannot be shown as text: menus, card labels. */
|
|
208
|
-
label?: string;
|
|
209
|
-
/** Extra classes on the header cell. An escape hatch; prefer `align`. */
|
|
210
|
-
headerClassName?: string;
|
|
211
|
-
/** Extra classes on each body cell. An escape hatch; prefer `align`. */
|
|
212
|
-
cellClassName?: string;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
interface NavTabItem {
|
|
217
|
-
to: string;
|
|
218
|
-
label: string;
|
|
219
|
-
/** Match this route exactly — needed for an index route like `/account`. */
|
|
220
|
-
end?: boolean;
|
|
221
|
-
}
|
|
222
|
-
interface NavTabsProps {
|
|
223
|
-
items: NavTabItem[];
|
|
224
|
-
className?: string;
|
|
225
|
-
}
|
|
226
|
-
/** Route-driven tab strip, backed by react-router's `NavLink`.
|
|
227
|
-
*
|
|
228
|
-
* Use this when each tab is its own route. For state-driven tabs that do not change
|
|
229
|
-
* the URL, use `Tabs` from the main entry point instead — it has no router dependency.
|
|
230
|
-
*
|
|
231
|
-
* The active underline and label use `brand-emphasis` (#0C2D58), the brand fill colour
|
|
232
|
-
* Figma specifies for a tab rule, rather than the lighter `brand` border token. */
|
|
233
|
-
declare function NavTabs({ items, className }: NavTabsProps): react.JSX.Element;
|
|
234
|
-
|
|
235
|
-
type AppSidebarProps = Omit<SidebarProps, 'currentPath' | 'currentHash' | 'linkComponent'>;
|
|
236
|
-
/**
|
|
237
|
-
* The application nav rail, wired to react-router: the current row comes from `useLocation`
|
|
238
|
-
* and rows link with `Link`.
|
|
239
|
-
*
|
|
240
|
-
* Lives on its own entry point (`@platned/ui/sidebar`) because `react-router-dom` is an
|
|
241
|
-
* optional peer dependency. From 0.9.6 it is a thin wrapper over `Sidebar` on the main entry,
|
|
242
|
-
* which takes the location and the link component as props — use that directly in an app on
|
|
243
|
-
* another router (Next.js).
|
|
244
|
-
*
|
|
245
|
-
* Through 0.4.0 this was not a library component at all. It hardcoded ten product routes,
|
|
246
|
-
* their labels and their icons, an `SCIC` wordmark, and an `isAdmin` flag gating two of the
|
|
247
|
-
* rows — so the only app it could render was the one it was extracted from. Everything
|
|
248
|
-
* app-specific is now a prop or a slot.
|
|
249
|
-
*
|
|
250
|
-
* Width is an explicit prop rather than something `className` overrides: the width is
|
|
251
|
-
* conditional on `collapsed`, so a `className="w-64"` would tailwind-merge away the
|
|
252
|
-
* collapsed width too and break the collapse. Everything else about the shell is fair game
|
|
253
|
-
* for `className` — `rounded-none` to flatten it for a full-bleed layout, for instance.
|
|
254
|
-
*/
|
|
255
|
-
declare function AppSidebar(props: AppSidebarProps): react.JSX.Element;
|
|
256
|
-
|
|
257
|
-
export { AppSidebar, type AppSidebarProps, type NavTabItem, NavTabs, type NavTabsProps, type SidebarNavGroup, type SidebarNavItem, SidebarSeparator, type SidebarSeparatorProps, SidebarUserCard, type SidebarUserCardProps };
|
package/dist/sidebar.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// src/sidebar/index.tsx
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { Link, useLocation } from "react-router-dom";
|
|
4
|
-
import { Sidebar } from "./index.js";
|
|
5
|
-
import { SidebarSeparator, SidebarUserCard } from "./index.js";
|
|
6
|
-
|
|
7
|
-
// src/sidebar/nav-tabs.tsx
|
|
8
|
-
import { NavLink } from "react-router-dom";
|
|
9
|
-
import clsx2 from "clsx";
|
|
10
|
-
|
|
11
|
-
// src/lib/scrollbar.ts
|
|
12
|
-
import clsx from "clsx";
|
|
13
|
-
var SCROLLBAR_CLASSES = clsx(
|
|
14
|
-
// Firefox and the standard property.
|
|
15
|
-
"[scrollbar-color:var(--color-background-default-tertiary)_transparent] [scrollbar-width:thin]",
|
|
16
|
-
// WebKit/Blink.
|
|
17
|
-
"[&::-webkit-scrollbar]:size-2",
|
|
18
|
-
"[&::-webkit-scrollbar-track]:bg-transparent",
|
|
19
|
-
"[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-default-tertiary",
|
|
20
|
-
"[&::-webkit-scrollbar-thumb:hover]:bg-neutral-secondary",
|
|
21
|
-
"[&::-webkit-scrollbar-corner]:bg-transparent"
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
// src/sidebar/nav-tabs.tsx
|
|
25
|
-
import { jsx } from "react/jsx-runtime";
|
|
26
|
-
function NavTabs({ items, className }) {
|
|
27
|
-
return (
|
|
28
|
-
// The links inside are the tab stops.
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
className: clsx2(
|
|
33
|
-
"flex gap-6 overflow-x-auto border-b border-default",
|
|
34
|
-
SCROLLBAR_CLASSES,
|
|
35
|
-
className
|
|
36
|
-
),
|
|
37
|
-
children: items.map((tab) => /* @__PURE__ */ jsx(
|
|
38
|
-
NavLink,
|
|
39
|
-
{
|
|
40
|
-
to: tab.to,
|
|
41
|
-
end: tab.end,
|
|
42
|
-
className: ({ isActive }) => clsx2(
|
|
43
|
-
"shrink-0 whitespace-nowrap border-b-2 pb-3 text-body-sm transition-colors",
|
|
44
|
-
isActive ? "border-brand-emphasis font-semibold text-brand-emphasis" : "border-transparent font-medium text-default-secondary hover:text-default"
|
|
45
|
-
),
|
|
46
|
-
children: tab.label
|
|
47
|
-
},
|
|
48
|
-
tab.to
|
|
49
|
-
))
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// src/sidebar/index.tsx
|
|
56
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
57
|
-
var RouterLink = forwardRef(function RouterLink2({ href, ...rest }, ref) {
|
|
58
|
-
return /* @__PURE__ */ jsx2(Link, { ref, to: href, ...rest });
|
|
59
|
-
});
|
|
60
|
-
function AppSidebar(props) {
|
|
61
|
-
const location = useLocation();
|
|
62
|
-
return /* @__PURE__ */ jsx2(Sidebar, { ...props, currentPath: location.pathname, currentHash: location.hash, linkComponent: RouterLink });
|
|
63
|
-
}
|
|
64
|
-
export {
|
|
65
|
-
AppSidebar,
|
|
66
|
-
NavTabs,
|
|
67
|
-
SidebarSeparator,
|
|
68
|
-
SidebarUserCard
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=sidebar.js.map
|
package/dist/sidebar.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/sidebar/index.tsx","../src/sidebar/nav-tabs.tsx","../src/lib/scrollbar.ts"],"sourcesContent":["import { forwardRef } from 'react';\nimport { Link, useLocation } from 'react-router-dom';\n\nimport { Sidebar } from '../index';\nimport type { SidebarLinkProps, SidebarProps } from '../index';\n\nexport type AppSidebarProps = Omit<SidebarProps, 'currentPath' | 'currentHash' | 'linkComponent'>;\n\n/** `Sidebar`'s link slot, filled with react-router's `Link`. */\nconst RouterLink = forwardRef<HTMLAnchorElement, SidebarLinkProps>(function RouterLink({ href, ...rest }, ref) {\n return <Link ref={ref} to={href} {...rest} />;\n});\n\n/**\n * The application nav rail, wired to react-router: the current row comes from `useLocation`\n * and rows link with `Link`.\n *\n * Lives on its own entry point (`@platned/ui/sidebar`) because `react-router-dom` is an\n * optional peer dependency. From 0.9.6 it is a thin wrapper over `Sidebar` on the main entry,\n * which takes the location and the link component as props — use that directly in an app on\n * another router (Next.js).\n *\n * Through 0.4.0 this was not a library component at all. It hardcoded ten product routes,\n * their labels and their icons, an `SCIC` wordmark, and an `isAdmin` flag gating two of the\n * rows — so the only app it could render was the one it was extracted from. Everything\n * app-specific is now a prop or a slot.\n *\n * Width is an explicit prop rather than something `className` overrides: the width is\n * conditional on `collapsed`, so a `className=\"w-64\"` would tailwind-merge away the\n * collapsed width too and break the collapse. Everything else about the shell is fair game\n * for `className` — `rounded-none` to flatten it for a full-bleed layout, for instance.\n */\nexport function AppSidebar(props: AppSidebarProps) {\n const location = useLocation();\n return (\n <Sidebar {...props} currentPath={location.pathname} currentHash={location.hash} linkComponent={RouterLink} />\n );\n}\n\n// Kept on this entry so imports from before 0.9.6 keep working; they live on the main one now.\nexport { SidebarSeparator, SidebarUserCard } from '../index';\nexport type {\n SidebarNavItem,\n SidebarNavGroup,\n SidebarSeparatorProps,\n SidebarUserCardProps,\n} from '../index';\n\n// ── Route-driven navigation ────────────────────────────────────────────────────\n// Lives on this entry point (not the main one) because it needs react-router-dom.\n\nexport { NavTabs } from './nav-tabs';\nexport type { NavTabsProps, NavTabItem } from './nav-tabs';\n","import { NavLink } from 'react-router-dom';\nimport clsx from 'clsx';\n\nimport { SCROLLBAR_CLASSES } from '../lib/scrollbar';\n\nexport interface NavTabItem {\n to: string;\n label: string;\n /** Match this route exactly — needed for an index route like `/account`. */\n end?: boolean;\n}\n\nexport interface NavTabsProps {\n items: NavTabItem[];\n className?: string;\n}\n\n/** Route-driven tab strip, backed by react-router's `NavLink`.\n *\n * Use this when each tab is its own route. For state-driven tabs that do not change\n * the URL, use `Tabs` from the main entry point instead — it has no router dependency.\n *\n * The active underline and label use `brand-emphasis` (#0C2D58), the brand fill colour\n * Figma specifies for a tab rule, rather than the lighter `brand` border token. */\nexport function NavTabs({ items, className }: NavTabsProps) {\n return (\n // The links inside are the tab stops.\n <div\n className={clsx(\n 'flex gap-6 overflow-x-auto border-b border-default',\n SCROLLBAR_CLASSES,\n className,\n )}\n >\n {items.map((tab) => (\n <NavLink\n key={tab.to}\n to={tab.to}\n end={tab.end}\n className={({ isActive }) =>\n clsx(\n 'shrink-0 whitespace-nowrap border-b-2 pb-3 text-body-sm transition-colors',\n isActive\n ? 'border-brand-emphasis font-semibold text-brand-emphasis'\n : 'border-transparent font-medium text-default-secondary hover:text-default',\n )\n }\n >\n {tab.label}\n </NavLink>\n ))}\n </div>\n );\n}\n","import clsx from 'clsx';\n\n/**\n * Styled native scrollbars, for the components that must own their own overflow and so\n * cannot delegate to `ScrollArea`.\n *\n * Two kinds qualify. A table wrapper, a tab strip or a stepper, where inserting another\n * element would break the layout or the `<table>` element relationship; and a floating panel\n * that is already its own scroll container. Both hold focusable children, so a keyboard user\n * can already reach and scroll them — which is the one thing `ScrollArea` adds beyond these\n * classes, and the one thing they do not need.\n *\n * Prefer `ScrollArea` for a scrolling *region* of content. Reach for this only when a wrapper\n * element is not an option, and say why at the call site.\n *\n * A plain string module rather than an export from `scroll-area.tsx`: `menu-styles.ts` needs\n * it, and importing a component module from a style module would pull the component into the\n * bundle graph for the sake of a class list.\n */\nexport const SCROLLBAR_CLASSES = clsx(\n // Firefox and the standard property.\n '[scrollbar-color:var(--color-background-default-tertiary)_transparent] [scrollbar-width:thin]',\n // WebKit/Blink.\n '[&::-webkit-scrollbar]:size-2',\n '[&::-webkit-scrollbar-track]:bg-transparent',\n '[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-default-tertiary',\n '[&::-webkit-scrollbar-thumb:hover]:bg-neutral-secondary',\n '[&::-webkit-scrollbar-corner]:bg-transparent',\n);\n"],"mappings":";AAAA,SAAS,kBAAkB;AAC3B,SAAS,MAAM,mBAAmB;AAElC,SAAS,eAAe;AAqCxB,SAAS,kBAAkB,uBAAuB;;;ACxClD,SAAS,eAAe;AACxB,OAAOA,WAAU;;;ACDjB,OAAO,UAAU;AAmBV,IAAM,oBAAoB;AAAA;AAAA,EAE/B;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;;;ADOQ;AAXD,SAAS,QAAQ,EAAE,OAAO,UAAU,GAAiB;AAC1D;AAAA;AAAA,IAEE;AAAA,MAAC;AAAA;AAAA,QACC,WAAWC;AAAA,UACT;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QAEC,gBAAM,IAAI,CAAC,QACV;AAAA,UAAC;AAAA;AAAA,YAEC,IAAI,IAAI;AAAA,YACR,KAAK,IAAI;AAAA,YACT,WAAW,CAAC,EAAE,SAAS,MACrBA;AAAA,cACE;AAAA,cACA,WACI,4DACA;AAAA,YACN;AAAA,YAGD,cAAI;AAAA;AAAA,UAZA,IAAI;AAAA,QAaX,CACD;AAAA;AAAA,IACH;AAAA;AAEJ;;;AD3CS,gBAAAC,YAAA;AADT,IAAM,aAAa,WAAgD,SAASC,YAAW,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK;AAC7G,SAAO,gBAAAD,KAAC,QAAK,KAAU,IAAI,MAAO,GAAG,MAAM;AAC7C,CAAC;AAqBM,SAAS,WAAW,OAAwB;AACjD,QAAM,WAAW,YAAY;AAC7B,SACE,gBAAAA,KAAC,WAAS,GAAG,OAAO,aAAa,SAAS,UAAU,aAAa,SAAS,MAAM,eAAe,YAAY;AAE/G;","names":["clsx","clsx","jsx","RouterLink"]}
|