@nswds/app 1.6.0 → 1.7.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/dist/index.d.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime'
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types'
3
3
  import * as React$1 from 'react'
4
- import React__default from 'react'
4
+ import React__default, { ReactNode } from 'react'
5
5
  import { VariantProps } from 'class-variance-authority'
6
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'
7
+ import * as TabsPrimitive from '@radix-ui/react-tabs'
8
+ import { ThemeProviderProps } from 'next-themes'
6
9
  import { ClassValue } from 'clsx'
7
10
  import * as _sindresorhus_slugify from '@sindresorhus/slugify'
8
11
 
@@ -98,6 +101,15 @@ declare const Icons: {
98
101
  west: (props: IconProps) => react_jsx_runtime.JSX.Element
99
102
  }
100
103
 
104
+ declare function Logo(props: React.ComponentPropsWithoutRef<'svg'>): react_jsx_runtime.JSX.Element
105
+
106
+ declare function Masthead(): react_jsx_runtime.JSX.Element
107
+
108
+ type Link = {
109
+ href: string
110
+ title: string
111
+ links?: Link[]
112
+ }
101
113
  interface ColorData {
102
114
  oklch: string
103
115
  hex: string
@@ -162,22 +174,6 @@ type NavigationSection = {
162
174
  }[]
163
175
  }
164
176
 
165
- declare const defaultNavigation: NavigationSection[]
166
- interface LayoutProps {
167
- children: React__default.ReactNode
168
- sitename?: string
169
- navigation?: NavigationSection[]
170
- }
171
- declare function Layout({
172
- children,
173
- sitename,
174
- navigation,
175
- }: LayoutProps): react_jsx_runtime.JSX.Element
176
-
177
- declare function Logo(props: React.ComponentPropsWithoutRef<'svg'>): react_jsx_runtime.JSX.Element
178
-
179
- declare function Masthead(): react_jsx_runtime.JSX.Element
180
-
181
177
  declare function Navigation({
182
178
  className,
183
179
  onLinkClick,
@@ -209,6 +205,44 @@ declare function TableOfContents({
209
205
 
210
206
  declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element
211
207
 
208
+ declare function Collapsible({
209
+ ...props
210
+ }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element
211
+
212
+ declare function SidebarNavigation({
213
+ className,
214
+ onLinkClick,
215
+ navigation,
216
+ }: {
217
+ className?: string
218
+ onLinkClick?: React$1.MouseEventHandler<HTMLAnchorElement>
219
+ navigation: NavigationSection[]
220
+ }): react_jsx_runtime.JSX.Element
221
+
222
+ declare function Tabs({
223
+ className,
224
+ ...props
225
+ }: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element
226
+ declare function TabsList({
227
+ className,
228
+ ...props
229
+ }: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element
230
+ declare function TabsTrigger({
231
+ className,
232
+ ...props
233
+ }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element
234
+ declare function TabsContent({
235
+ className,
236
+ ...props
237
+ }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element
238
+
239
+ declare function ThemeProvider({
240
+ children,
241
+ ...props
242
+ }: ThemeProviderProps): react_jsx_runtime.JSX.Element
243
+
244
+ declare function TocProvider({ children }: { children: ReactNode }): react_jsx_runtime.JSX.Element
245
+
212
246
  declare function cn(...inputs: ClassValue[]): string
213
247
  declare function truncate(text: string, maxLength: number): string
214
248
  declare function kebabCase(str: string): string
@@ -234,6 +268,7 @@ declare function getHeadings(slugify?: _sindresorhus_slugify.CountableSlugify):
234
268
 
235
269
  export {
236
270
  Button,
271
+ Collapsible,
237
272
  type ColorData,
238
273
  type ColorsDisplayProps,
239
274
  type ColourOutputProps,
@@ -244,21 +279,27 @@ export {
244
279
  type Format,
245
280
  type HeadingNode,
246
281
  Icons,
247
- Layout,
282
+ type Link,
248
283
  Logo,
249
284
  Masthead,
250
285
  Navigation,
251
286
  type NavigationSection,
252
287
  type Output,
253
288
  PrevNextLinks,
289
+ SidebarNavigation,
254
290
  type SimpleNode,
255
291
  type StructuredColor,
256
292
  TableOfContents,
293
+ Tabs,
294
+ TabsContent,
295
+ TabsList,
296
+ TabsTrigger,
297
+ ThemeProvider,
257
298
  ThemeSwitcher,
299
+ TocProvider,
258
300
  type Variant,
259
301
  camelCase,
260
302
  cn,
261
- defaultNavigation,
262
303
  domToSimple,
263
304
  getHeadings,
264
305
  getNodeText,