@hanzo/ui 4.5.3 → 4.5.4
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/mcp/enhanced-server.js +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/registry/api.js +1 -2
- package/dist/registry/index.d.ts +348 -4
- package/package.json +1 -1
- package/tsconfig.json +9 -4
- package/dist/blocks/components/accordian-block.d.ts +0 -4
- package/dist/blocks/components/accordian-block.jsx +0 -25
- package/dist/blocks/components/block-component-props.d.ts +0 -7
- package/dist/blocks/components/block-component-props.js +0 -1
- package/dist/blocks/components/bullet-cards-block.d.ts +0 -4
- package/dist/blocks/components/bullet-cards-block.jsx +0 -25
- package/dist/blocks/components/card-block/index.d.ts +0 -6
- package/dist/blocks/components/card-block/index.jsx +0 -87
- package/dist/blocks/components/card-block/link-out-button.d.ts +0 -6
- package/dist/blocks/components/card-block/link-out-button.jsx +0 -4
- package/dist/blocks/components/card-block/util.d.ts +0 -4
- package/dist/blocks/components/card-block/util.js +0 -6
- package/dist/blocks/components/carte-blanche-block/index.d.ts +0 -4
- package/dist/blocks/components/carte-blanche-block/index.jsx +0 -82
- package/dist/blocks/components/carte-blanche-block/variant-content-left.d.ts +0 -10
- package/dist/blocks/components/carte-blanche-block/variant-content-left.jsx +0 -23
- package/dist/blocks/components/content.d.ts +0 -10
- package/dist/blocks/components/content.jsx +0 -47
- package/dist/blocks/components/cta-block.d.ts +0 -12
- package/dist/blocks/components/cta-block.jsx +0 -69
- package/dist/blocks/components/enh-heading-block.d.ts +0 -7
- package/dist/blocks/components/enh-heading-block.jsx +0 -142
- package/dist/blocks/components/grid-block/grid-block-mutator.d.ts +0 -5
- package/dist/blocks/components/grid-block/grid-block-mutator.js +0 -1
- package/dist/blocks/components/grid-block/index.d.ts +0 -9
- package/dist/blocks/components/grid-block/index.jsx +0 -56
- package/dist/blocks/components/grid-block/mutator-registry.d.ts +0 -3
- package/dist/blocks/components/grid-block/mutator-registry.js +0 -5
- package/dist/blocks/components/grid-block/table-borders.mutator.d.ts +0 -3
- package/dist/blocks/components/grid-block/table-borders.mutator.js +0 -36
- package/dist/blocks/components/group-block.d.ts +0 -7
- package/dist/blocks/components/group-block.jsx +0 -61
- package/dist/blocks/components/heading-block.d.ts +0 -4
- package/dist/blocks/components/heading-block.jsx +0 -99
- package/dist/blocks/components/image-block.d.ts +0 -7
- package/dist/blocks/components/image-block.jsx +0 -69
- package/dist/blocks/components/index.d.ts +0 -14
- package/dist/blocks/components/index.js +0 -13
- package/dist/blocks/components/screenful-block/content.d.ts +0 -8
- package/dist/blocks/components/screenful-block/content.jsx +0 -71
- package/dist/blocks/components/screenful-block/index.d.ts +0 -12
- package/dist/blocks/components/screenful-block/index.jsx +0 -57
- package/dist/blocks/components/screenful-block/poster-background.d.ts +0 -7
- package/dist/blocks/components/screenful-block/poster-background.jsx +0 -14
- package/dist/blocks/components/screenful-block/video-background.d.ts +0 -8
- package/dist/blocks/components/screenful-block/video-background.jsx +0 -20
- package/dist/blocks/components/space-block.d.ts +0 -4
- package/dist/blocks/components/space-block.jsx +0 -42
- package/dist/blocks/components/video-block.d.ts +0 -9
- package/dist/blocks/components/video-block.jsx +0 -83
- package/dist/blocks/def/accordian-block.d.ts +0 -10
- package/dist/blocks/def/accordian-block.js +0 -2
- package/dist/blocks/def/block.d.ts +0 -4
- package/dist/blocks/def/block.js +0 -1
- package/dist/blocks/def/bullet-cards-block.d.ts +0 -17
- package/dist/blocks/def/bullet-cards-block.js +0 -1
- package/dist/blocks/def/card-block.d.ts +0 -17
- package/dist/blocks/def/card-block.js +0 -2
- package/dist/blocks/def/carte-blanche-block.d.ts +0 -12
- package/dist/blocks/def/carte-blanche-block.js +0 -1
- package/dist/blocks/def/cta-block.d.ts +0 -8
- package/dist/blocks/def/cta-block.js +0 -1
- package/dist/blocks/def/element-block.d.ts +0 -7
- package/dist/blocks/def/element-block.js +0 -2
- package/dist/blocks/def/enh-heading-block.d.ts +0 -22
- package/dist/blocks/def/enh-heading-block.js +0 -1
- package/dist/blocks/def/grid-block.d.ts +0 -12
- package/dist/blocks/def/grid-block.js +0 -1
- package/dist/blocks/def/group-block.d.ts +0 -7
- package/dist/blocks/def/group-block.js +0 -1
- package/dist/blocks/def/heading-block.d.ts +0 -11
- package/dist/blocks/def/heading-block.js +0 -1
- package/dist/blocks/def/image-block.d.ts +0 -26
- package/dist/blocks/def/image-block.js +0 -1
- package/dist/blocks/def/index.d.ts +0 -17
- package/dist/blocks/def/index.js +0 -2
- package/dist/blocks/def/screenful-block.d.ts +0 -41
- package/dist/blocks/def/screenful-block.js +0 -1
- package/dist/blocks/def/space-block.d.ts +0 -47
- package/dist/blocks/def/space-block.js +0 -8
- package/dist/blocks/def/video-block.d.ts +0 -5
- package/dist/blocks/def/video-block.js +0 -1
- package/dist/blocks/index.d.ts +0 -2
- package/dist/blocks/index.js +0 -2
- package/dist/primitives/accordion.d.ts +0 -10
- package/dist/primitives/accordion.jsx +0 -21
- package/dist/primitives/action-button.d.ts +0 -9
- package/dist/primitives/action-button.jsx +0 -16
- package/dist/primitives/apply-typography.d.ts +0 -7
- package/dist/primitives/apply-typography.jsx +0 -38
- package/dist/primitives/aspect-ratio.d.ts +0 -3
- package/dist/primitives/aspect-ratio.jsx +0 -4
- package/dist/primitives/avatar.d.ts +0 -6
- package/dist/primitives/avatar.jsx +0 -11
- package/dist/primitives/badge.d.ts +0 -9
- package/dist/primitives/badge.jsx +0 -18
- package/dist/primitives/breadcrumb.d.ts +0 -19
- package/dist/primitives/breadcrumb.jsx +0 -27
- package/dist/primitives/breakpoint-indicator.d.ts +0 -3
- package/dist/primitives/breakpoint-indicator.jsx +0 -14
- package/dist/primitives/button.d.ts +0 -12
- package/dist/primitives/button.jsx +0 -55
- package/dist/primitives/calendar.d.ts +0 -8
- package/dist/primitives/calendar.jsx +0 -40
- package/dist/primitives/card.d.ts +0 -8
- package/dist/primitives/card.jsx +0 -18
- package/dist/primitives/carousel.d.ts +0 -18
- package/dist/primitives/carousel.jsx +0 -106
- package/dist/primitives/checkbox.d.ts +0 -4
- package/dist/primitives/checkbox.jsx +0 -15
- package/dist/primitives/combobox.d.ts +0 -41
- package/dist/primitives/combobox.jsx +0 -77
- package/dist/primitives/command.d.ts +0 -17
- package/dist/primitives/command.jsx +0 -38
- package/dist/primitives/context-menu.d.ts +0 -27
- package/dist/primitives/context-menu.jsx +0 -57
- package/dist/primitives/dialog-video-controller.d.ts +0 -3
- package/dist/primitives/dialog-video-controller.jsx +0 -24
- package/dist/primitives/dialog.d.ts +0 -28
- package/dist/primitives/dialog.jsx +0 -37
- package/dist/primitives/drawer.d.ts +0 -29
- package/dist/primitives/drawer.jsx +0 -34
- package/dist/primitives/form.d.ts +0 -12
- package/dist/primitives/form.jsx +0 -69
- package/dist/primitives/icons/github.d.ts +0 -4
- package/dist/primitives/icons/github.jsx +0 -6
- package/dist/primitives/icons/index.d.ts +0 -4
- package/dist/primitives/icons/index.js +0 -4
- package/dist/primitives/icons/youtube-logo.d.ts +0 -4
- package/dist/primitives/icons/youtube-logo.jsx +0 -39
- package/dist/primitives/index-common.d.ts +0 -47
- package/dist/primitives/index-common.js +0 -46
- package/dist/primitives/index-next.d.ts +0 -2
- package/dist/primitives/index-next.js +0 -2
- package/dist/primitives/input-otp.d.ts +0 -7
- package/dist/primitives/input-otp.jsx +0 -24
- package/dist/primitives/input.d.ts +0 -5
- package/dist/primitives/input.jsx +0 -11
- package/dist/primitives/label.d.ts +0 -5
- package/dist/primitives/label.jsx +0 -11
- package/dist/primitives/list-adaptor.d.ts +0 -9
- package/dist/primitives/list-adaptor.js +0 -1
- package/dist/primitives/list-box.d.ts +0 -10
- package/dist/primitives/list-box.jsx +0 -14
- package/dist/primitives/loading-spinner.d.ts +0 -5
- package/dist/primitives/loading-spinner.jsx +0 -8
- package/dist/primitives/navigation-menu.d.ts +0 -12
- package/dist/primitives/navigation-menu.jsx +0 -38
- package/dist/primitives/next/image.d.ts +0 -11
- package/dist/primitives/next/image.jsx +0 -42
- package/dist/primitives/next/index.d.ts +0 -7
- package/dist/primitives/next/index.js +0 -7
- package/dist/primitives/next/inline-icon.d.ts +0 -13
- package/dist/primitives/next/inline-icon.jsx +0 -15
- package/dist/primitives/next/link-element.d.ts +0 -23
- package/dist/primitives/next/link-element.jsx +0 -56
- package/dist/primitives/next/mdx-link.d.ts +0 -3
- package/dist/primitives/next/mdx-link.jsx +0 -12
- package/dist/primitives/next/media-stack.d.ts +0 -8
- package/dist/primitives/next/media-stack.jsx +0 -28
- package/dist/primitives/next/nav-items.d.ts +0 -10
- package/dist/primitives/next/nav-items.jsx +0 -24
- package/dist/primitives/next/youtube-embed.d.ts +0 -11
- package/dist/primitives/next/youtube-embed.jsx +0 -23
- package/dist/primitives/popover.d.ts +0 -9
- package/dist/primitives/popover.jsx +0 -18
- package/dist/primitives/progress.d.ts +0 -4
- package/dist/primitives/progress.jsx +0 -9
- package/dist/primitives/radio-group.d.ts +0 -7
- package/dist/primitives/radio-group.jsx +0 -18
- package/dist/primitives/scroll-area.d.ts +0 -5
- package/dist/primitives/scroll-area.jsx +0 -19
- package/dist/primitives/select.d.ts +0 -13
- package/dist/primitives/select.jsx +0 -62
- package/dist/primitives/separator.d.ts +0 -4
- package/dist/primitives/separator.jsx +0 -7
- package/dist/primitives/sheet.d.ts +0 -30
- package/dist/primitives/sheet.jsx +0 -56
- package/dist/primitives/skeleton.d.ts +0 -4
- package/dist/primitives/skeleton.jsx +0 -3
- package/dist/primitives/slider.d.ts +0 -9
- package/dist/primitives/slider.jsx +0 -30
- package/dist/primitives/sonner.d.ts +0 -5
- package/dist/primitives/sonner.jsx +0 -16
- package/dist/primitives/step-indicator.d.ts +0 -9
- package/dist/primitives/step-indicator.jsx +0 -23
- package/dist/primitives/switch.d.ts +0 -6
- package/dist/primitives/switch.jsx +0 -14
- package/dist/primitives/table.d.ts +0 -10
- package/dist/primitives/table.jsx +0 -21
- package/dist/primitives/tabs.d.ts +0 -7
- package/dist/primitives/tabs.jsx +0 -18
- package/dist/primitives/text-area.d.ts +0 -5
- package/dist/primitives/text-area.jsx +0 -9
- package/dist/primitives/toggle-group.d.ts +0 -14
- package/dist/primitives/toggle-group.jsx +0 -28
- package/dist/primitives/toggle.d.ts +0 -14
- package/dist/primitives/toggle.jsx +0 -52
- package/dist/primitives/tooltip.d.ts +0 -11
- package/dist/primitives/tooltip.jsx +0 -18
- package/dist/primitives/video-player.d.ts +0 -6
- package/dist/primitives/video-player.jsx +0 -8
- package/dist/style/theme-provider.d.ts +0 -4
- package/dist/style/theme-provider.jsx +0 -11
- package/dist/tailwind/fontFamily.tailwind.d.ts +0 -8
- package/dist/tailwind/fontFamily.tailwind.js +0 -7
- package/dist/tailwind/fontSize.tailwind.d.ts +0 -36
- package/dist/tailwind/fontSize.tailwind.js +0 -13
- package/dist/tailwind/index.d.ts +0 -3
- package/dist/tailwind/index.js +0 -2
- package/dist/tailwind/screens.tailwind.d.ts +0 -9
- package/dist/tailwind/screens.tailwind.js +0 -8
- package/dist/tailwind/tw-font-desc.d.ts +0 -6
- package/dist/tailwind/tw-font-desc.js +0 -6
- package/dist/types/animation-def.d.ts +0 -2
- package/dist/types/animation-def.js +0 -1
- package/dist/types/breakpoints.d.ts +0 -4
- package/dist/types/breakpoints.js +0 -4
- package/dist/types/bullet-item.d.ts +0 -6
- package/dist/types/bullet-item.js +0 -2
- package/dist/types/button-def.d.ts +0 -29
- package/dist/types/button-def.js +0 -2
- package/dist/types/dimensions.d.ts +0 -5
- package/dist/types/dimensions.js +0 -1
- package/dist/types/grid-def.d.ts +0 -36
- package/dist/types/grid-def.js +0 -33
- package/dist/types/image-def.d.ts +0 -27
- package/dist/types/image-def.js +0 -1
- package/dist/types/index.d.ts +0 -13
- package/dist/types/index.js +0 -2
- package/dist/types/link-def.d.ts +0 -44
- package/dist/types/link-def.js +0 -1
- package/dist/types/media-stack-def.d.ts +0 -25
- package/dist/types/media-stack-def.js +0 -1
- package/dist/types/t-shirt-size.d.ts +0 -2
- package/dist/types/t-shirt-size.js +0 -1
- package/dist/types/tshirt-dimensions.d.ts +0 -12
- package/dist/types/tshirt-dimensions.js +0 -1
- package/dist/types/video-def.d.ts +0 -9
- package/dist/types/video-def.js +0 -1
- package/dist/util/format-and-abbreviate-as-currency.d.ts +0 -11
- package/dist/util/format-and-abbreviate-as-currency.js +0 -91
- package/dist/util/format-to-max-char.d.ts +0 -5
- package/dist/util/format-to-max-char.js +0 -57
- package/dist/util/index-client.d.ts +0 -2
- package/dist/util/index-client.js +0 -3
- package/dist/util/index.d.ts +0 -17
- package/dist/util/index.js +0 -41
- package/dist/util/number-abbreviate.d.ts +0 -9
- package/dist/util/number-abbreviate.js +0 -30
- package/dist/util/specifier.d.ts +0 -7
- package/dist/util/specifier.js +0 -31
- package/dist/util/spread-to-transform.d.ts +0 -7
- package/dist/util/spread-to-transform.js +0 -18
- package/dist/util/step-animation.d.ts +0 -5
- package/dist/util/step-animation.js +0 -60
- package/dist/util/two-way-map.d.ts +0 -8
- package/dist/util/two-way-map.js +0 -16
- /package/{mcp → src/mcp}/README.md +0 -0
- /package/{mcp → src/mcp}/enhanced-server.ts +0 -0
- /package/{mcp → src/mcp}/index.ts +0 -0
- /package/{mcp → src/mcp}/package.json +0 -0
- /package/{registry → src/registry}/api.ts +0 -0
- /package/{registry → src/registry}/index.ts +0 -0
- /package/{registry → src/registry}/package.json +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
3
|
-
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
4
|
-
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
-
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
-
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
7
|
-
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
8
|
-
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
|
-
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
10
|
-
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { cn } from '../util';
|
|
3
|
-
const Table = React.forwardRef(({ className, ...props }, ref) => (<div className='relative w-full overflow-auto'>
|
|
4
|
-
<table ref={ref} className={cn('w-full caption-bottom text-sm', className)} {...props}/>
|
|
5
|
-
</div>));
|
|
6
|
-
Table.displayName = 'Table';
|
|
7
|
-
const TableHeader = React.forwardRef(({ className, ...props }, ref) => (<thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props}/>));
|
|
8
|
-
TableHeader.displayName = 'TableHeader';
|
|
9
|
-
const TableBody = React.forwardRef(({ className, ...props }, ref) => (<tbody ref={ref} className={cn('[&_tr:last-child]:border-0', className)} {...props}/>));
|
|
10
|
-
TableBody.displayName = 'TableBody';
|
|
11
|
-
const TableFooter = React.forwardRef(({ className, ...props }, ref) => (<tfoot ref={ref} className={cn('border-t bg-level-1 font-medium [&>tr]:last:border-b-0', className)} {...props}/>));
|
|
12
|
-
TableFooter.displayName = 'TableFooter';
|
|
13
|
-
const TableRow = React.forwardRef(({ className, ...props }, ref) => (<tr ref={ref} className={cn('border-b transition-colors hover:bg-level-1 data-[state=selected]:bg-level-1', className)} {...props}/>));
|
|
14
|
-
TableRow.displayName = 'TableRow';
|
|
15
|
-
const TableHead = React.forwardRef(({ className, ...props }, ref) => (<th ref={ref} className={cn('h-12 px-4 text-left align-middle font-medium text-muted [&:has([role=checkbox])]:pr-0', className)} {...props}/>));
|
|
16
|
-
TableHead.displayName = 'TableHead';
|
|
17
|
-
const TableCell = React.forwardRef(({ className, ...props }, ref) => (<td ref={ref} className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...props}/>));
|
|
18
|
-
TableCell.displayName = 'TableCell';
|
|
19
|
-
const TableCaption = React.forwardRef(({ className, ...props }, ref) => (<caption ref={ref} className={cn('mt-4 text-sm text-muted', className)} {...props}/>));
|
|
20
|
-
TableCaption.displayName = 'TableCaption';
|
|
21
|
-
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
|
-
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
package/dist/primitives/tabs.jsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
4
|
-
import { cn } from '../util';
|
|
5
|
-
const Tabs = TabsPrimitive.Root;
|
|
6
|
-
const TabsList = React.forwardRef(({ className, ...props }, ref) => (<TabsPrimitive.List ref={ref} className={cn('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className)} {...props}/>));
|
|
7
|
-
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
8
|
-
const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => (<TabsPrimitive.Trigger ref={ref} className={cn('inline-flex items-center justify-center whitespace-nowrap rounded-sm ' +
|
|
9
|
-
'px-3 py-1.5 text-sm font-medium ring-offset-background transition-all ' +
|
|
10
|
-
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ' +
|
|
11
|
-
'focus-visible:ring-offset-2 disabled:pointer-events-none ' +
|
|
12
|
-
'disabled:opacity-50 data-[state=active]:bg-background ' +
|
|
13
|
-
'data-[state=active]:text-foreground data-[state=active]:shadow-sm', className)} {...props}/>));
|
|
14
|
-
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
15
|
-
const TabsContent = React.forwardRef(({ className, ...props }, ref) => (<TabsPrimitive.Content ref={ref} className={cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 ' +
|
|
16
|
-
'focus-visible:ring-ring focus-visible:ring-offset-2', className)} {...props}/>));
|
|
17
|
-
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
18
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { cn } from '../util';
|
|
3
|
-
const TextArea = React.forwardRef(({ className, ...props }, ref) => {
|
|
4
|
-
return (<textarea className={cn('flex min-h-[80px] w-full rounded-md border border-muted-3 px-3 py-2 text-sm ' +
|
|
5
|
-
'placeholder:text-muted-2 focus-visible:outline-none focus-visible:ring-2 ' +
|
|
6
|
-
'focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className)} ref={ref} {...props}/>);
|
|
7
|
-
});
|
|
8
|
-
TextArea.displayName = 'TextArea';
|
|
9
|
-
export default TextArea;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
3
|
-
import type { VariantProps } from 'class-variance-authority';
|
|
4
|
-
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
5
|
-
variant?: "default" | "outline" | null | undefined;
|
|
6
|
-
size?: "default" | "sm" | "lg" | "hfull" | null | undefined;
|
|
7
|
-
rounded?: "none" | "md" | "sm" | "lg" | "full" | "xl" | "lsm" | "rsm" | "lmd" | "rmd" | "llg" | "rlg" | "lxl" | "rxl" | null | undefined;
|
|
8
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
10
|
-
variant?: "default" | "outline" | null | undefined;
|
|
11
|
-
size?: "default" | "sm" | "lg" | "hfull" | null | undefined;
|
|
12
|
-
rounded?: "none" | "md" | "sm" | "lg" | "full" | "xl" | "lsm" | "rsm" | "lmd" | "rmd" | "llg" | "rlg" | "lxl" | "rxl" | null | undefined;
|
|
13
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
-
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
4
|
-
import { cn } from '../util';
|
|
5
|
-
import { toggleVariants } from './toggle';
|
|
6
|
-
const ToggleGroupContext = React.createContext({
|
|
7
|
-
size: 'default',
|
|
8
|
-
variant: 'default',
|
|
9
|
-
rounded: 'md'
|
|
10
|
-
});
|
|
11
|
-
const ToggleGroup = React.forwardRef(({ className, variant, size, rounded, children, ...props }, ref) => (<ToggleGroupPrimitive.Root ref={ref} className={cn('flex items-center justify-center gap-1', className)} {...props}>
|
|
12
|
-
<ToggleGroupContext.Provider value={{ variant, size, rounded }}>
|
|
13
|
-
{children}
|
|
14
|
-
</ToggleGroupContext.Provider>
|
|
15
|
-
</ToggleGroupPrimitive.Root>));
|
|
16
|
-
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
17
|
-
const ToggleGroupItem = React.forwardRef(({ className, children, variant, size, rounded, ...props }, ref) => {
|
|
18
|
-
const context = React.useContext(ToggleGroupContext);
|
|
19
|
-
return (<ToggleGroupPrimitive.Item ref={ref} className={cn(toggleVariants({
|
|
20
|
-
variant: context.variant || variant,
|
|
21
|
-
size: context.size || size,
|
|
22
|
-
rounded: context.rounded || rounded,
|
|
23
|
-
}), className)} {...props}>
|
|
24
|
-
{children}
|
|
25
|
-
</ToggleGroupPrimitive.Item>);
|
|
26
|
-
});
|
|
27
|
-
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
28
|
-
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
3
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
-
declare const toggleVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "outline" | null | undefined;
|
|
6
|
-
size?: "default" | "sm" | "lg" | "hfull" | null | undefined;
|
|
7
|
-
rounded?: "none" | "md" | "sm" | "lg" | "full" | "xl" | "lsm" | "rsm" | "lmd" | "rmd" | "llg" | "rlg" | "lxl" | "rxl" | null | undefined;
|
|
8
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
-
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
10
|
-
variant?: "default" | "outline" | null | undefined;
|
|
11
|
-
size?: "default" | "sm" | "lg" | "hfull" | null | undefined;
|
|
12
|
-
rounded?: "none" | "md" | "sm" | "lg" | "full" | "xl" | "lsm" | "rsm" | "lmd" | "rmd" | "llg" | "rlg" | "lxl" | "rxl" | null | undefined;
|
|
13
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
-
export { Toggle, toggleVariants };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
4
|
-
import { cva } from 'class-variance-authority';
|
|
5
|
-
import { cn } from '../util';
|
|
6
|
-
const toggleVariants = cva('inline-flex items-center justify-center text-sm font-medium ' +
|
|
7
|
-
'ring-offset-background ' +
|
|
8
|
-
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ' +
|
|
9
|
-
'focus-visible:ring-offset-2 disabled:pointer-events-none ' +
|
|
10
|
-
'active:bg-level-3 active:text-accent ', {
|
|
11
|
-
variants: {
|
|
12
|
-
variant: {
|
|
13
|
-
default: 'text-muted-1 hover:text-accent ' +
|
|
14
|
-
'data-[state=off]:bg-level-1 hover:data-[state=off]:text-foreground ' +
|
|
15
|
-
'data-[state=on]:text-foreground data-[state=on]:bg-level-3 ' +
|
|
16
|
-
'data-[state=on]:hover:bg-level-3 ',
|
|
17
|
-
outline: 'border border-muted-3 text-muted-1 ' +
|
|
18
|
-
'data-[state=off]:bg-level-1 hover:data-[state=off]:text-foreground ' +
|
|
19
|
-
'data-[state=on]:bg-level-3 data-[state=on]:border-muted data-[state=on]:text-foreground',
|
|
20
|
-
},
|
|
21
|
-
size: {
|
|
22
|
-
default: 'h-10 px-3',
|
|
23
|
-
hfull: 'h-full px-3',
|
|
24
|
-
sm: 'h-9 px-2',
|
|
25
|
-
lg: 'h-11 px-5',
|
|
26
|
-
},
|
|
27
|
-
rounded: {
|
|
28
|
-
full: 'rounded-full',
|
|
29
|
-
sm: 'rounded-sm',
|
|
30
|
-
lsm: 'rounded-l-sm',
|
|
31
|
-
rsm: 'rounded-r-sm',
|
|
32
|
-
md: 'rounded-md',
|
|
33
|
-
lmd: 'rounded-l-md',
|
|
34
|
-
rmd: 'rounded-r-md',
|
|
35
|
-
lg: 'rounded-lg',
|
|
36
|
-
llg: 'rounded-l-lg',
|
|
37
|
-
rlg: 'rounded-r-lg',
|
|
38
|
-
xl: 'rounded-xl',
|
|
39
|
-
lxl: 'rounded-l-xl',
|
|
40
|
-
rxl: 'rounded-r-xl',
|
|
41
|
-
none: 'rounded-none'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
defaultVariants: {
|
|
45
|
-
variant: 'default',
|
|
46
|
-
size: 'default',
|
|
47
|
-
rounded: 'md'
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
const Toggle = React.forwardRef(({ className, variant, size, rounded, ...props }, ref) => (<TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ variant, size, rounded }), className)} {...props}/>));
|
|
51
|
-
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
52
|
-
export { Toggle, toggleVariants };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
-
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
-
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
5
|
-
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const TooltipWrapper: React.FC<{
|
|
8
|
-
text: string;
|
|
9
|
-
tooltipClx?: string;
|
|
10
|
-
} & React.PropsWithChildren>;
|
|
11
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, TooltipWrapper };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
4
|
-
import { cn } from '../util';
|
|
5
|
-
const TooltipProvider = TooltipPrimitive.Provider;
|
|
6
|
-
const Tooltip = TooltipPrimitive.Root;
|
|
7
|
-
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
8
|
-
const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (<TooltipPrimitive.Content ref={ref} sideOffset={sideOffset} className={cn('z-50 overflow-hidden rounded-md border bg-level-1 px-3 py-1.5 text-sm text-muted-foreground shadow-md animate-in fade-in-50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className)} {...props}/>));
|
|
9
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
10
|
-
const TooltipWrapper = ({ children, text, tooltipClx = '' }) => (<Tooltip>
|
|
11
|
-
<TooltipTrigger asChild>
|
|
12
|
-
{children}
|
|
13
|
-
</TooltipTrigger>
|
|
14
|
-
<TooltipContent className={tooltipClx}>
|
|
15
|
-
{text}
|
|
16
|
-
</TooltipContent>
|
|
17
|
-
</Tooltip>);
|
|
18
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, TooltipWrapper };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
const VideoPlayer = React.forwardRef(({ sources, ...rest }, ref) => {
|
|
4
|
-
return (<video ref={ref} {...rest}>
|
|
5
|
-
{sources.map((source, index) => (<source key={index} src={source}/>))}
|
|
6
|
-
</video>);
|
|
7
|
-
});
|
|
8
|
-
export default VideoPlayer;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
4
|
-
import {} from "next-themes/dist/types";
|
|
5
|
-
const ThemeProvider = ({ children, ...props }) => (<NextThemesProvider attribute="class" {...props} value={{
|
|
6
|
-
light: 'hanzo-ui-light-theme',
|
|
7
|
-
dark: 'hanzo-ui-dark-theme'
|
|
8
|
-
}}>
|
|
9
|
-
{children}
|
|
10
|
-
</NextThemesProvider>);
|
|
11
|
-
export default ThemeProvider;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
xxs: (string | {
|
|
3
|
-
lineHeight: string;
|
|
4
|
-
})[];
|
|
5
|
-
xs: (string | {
|
|
6
|
-
lineHeight: string;
|
|
7
|
-
})[];
|
|
8
|
-
sm: (string | {
|
|
9
|
-
lineHeight: string;
|
|
10
|
-
})[];
|
|
11
|
-
base: (string | {
|
|
12
|
-
lineHeight: number;
|
|
13
|
-
})[];
|
|
14
|
-
lg: (string | {
|
|
15
|
-
lineHeight: string;
|
|
16
|
-
})[];
|
|
17
|
-
xl: (string | {
|
|
18
|
-
lineHeight: string;
|
|
19
|
-
})[];
|
|
20
|
-
'2xl': (string | {
|
|
21
|
-
lineHeight: string;
|
|
22
|
-
})[];
|
|
23
|
-
'3xl': (string | {
|
|
24
|
-
lineHeight: string;
|
|
25
|
-
})[];
|
|
26
|
-
'4xl': (string | {
|
|
27
|
-
lineHeight: string;
|
|
28
|
-
})[];
|
|
29
|
-
'5xl': (string | {
|
|
30
|
-
lineHeight: string;
|
|
31
|
-
})[];
|
|
32
|
-
'6xl': (string | {
|
|
33
|
-
lineHeight: string;
|
|
34
|
-
})[];
|
|
35
|
-
};
|
|
36
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
xxs: ['0.65rem', { lineHeight: '0.8rem' }], // very fine print
|
|
3
|
-
xs: ['0.8rem', { lineHeight: '1rem' }], // fine print
|
|
4
|
-
sm: ['0.9rem', { lineHeight: '1.2rem' }], // 'standard' some news article cards (set manually when using typography-sm)
|
|
5
|
-
base: ['1rem', { lineHeight: 1.4 }],
|
|
6
|
-
lg: ['1.125rem', { lineHeight: '1.75rem' }],
|
|
7
|
-
xl: ['1.25rem', { lineHeight: '1.75rem' }],
|
|
8
|
-
'2xl': ['1.5rem', { lineHeight: '2rem' }],
|
|
9
|
-
'3xl': ['1.875rem', { lineHeight: '2.25rem' }],
|
|
10
|
-
'4xl': ['2.25rem', { lineHeight: '2.5rem' }],
|
|
11
|
-
'5xl': ['3rem', { lineHeight: '1' }],
|
|
12
|
-
'6xl': ['3.75rem', { lineHeight: '1' }],
|
|
13
|
-
};
|
package/dist/tailwind/index.d.ts
DELETED
package/dist/tailwind/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type ButtonProps } from '../primitives/button';
|
|
2
|
-
type SubmitServerAction = (data: any, enclosure?: any) => Promise<any>;
|
|
3
|
-
interface ButtonModalProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
onOpenChange: (b: boolean) => void;
|
|
6
|
-
buttonText: string;
|
|
7
|
-
buttonProps: ButtonProps;
|
|
8
|
-
title: string;
|
|
9
|
-
byline?: string;
|
|
10
|
-
action: SubmitServerAction;
|
|
11
|
-
actionEnclosure?: any;
|
|
12
|
-
}
|
|
13
|
-
interface ButtonModalDef {
|
|
14
|
-
Comp: React.ComponentType<ButtonModalProps>;
|
|
15
|
-
title: string;
|
|
16
|
-
props?: any;
|
|
17
|
-
byline?: string;
|
|
18
|
-
action?: SubmitServerAction;
|
|
19
|
-
actionEnclosure?: any;
|
|
20
|
-
}
|
|
21
|
-
interface ButtonDef {
|
|
22
|
-
text: string;
|
|
23
|
-
props: ButtonProps;
|
|
24
|
-
action: {
|
|
25
|
-
type: 'modal';
|
|
26
|
-
def: ButtonModalDef;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export { type ButtonDef, type SubmitServerAction, type ButtonModalProps, type ButtonModalDef, };
|
package/dist/types/button-def.js
DELETED
package/dist/types/dimensions.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/grid-def.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { Breakpoint } from './breakpoints';
|
|
2
|
-
type GridColumnSpec = number | {
|
|
3
|
-
columns: number;
|
|
4
|
-
gap: number;
|
|
5
|
-
};
|
|
6
|
-
interface GridDef {
|
|
7
|
-
/** Must define in ACCENDING order. */
|
|
8
|
-
at: {
|
|
9
|
-
[key in (Breakpoint)]?: GridColumnSpec;
|
|
10
|
-
};
|
|
11
|
-
mobile?: GridColumnSpec;
|
|
12
|
-
}
|
|
13
|
-
declare const COMMON_GRID_1_COL: {
|
|
14
|
-
at: {
|
|
15
|
-
xs: {
|
|
16
|
-
columns: number;
|
|
17
|
-
gap: number;
|
|
18
|
-
};
|
|
19
|
-
md: {
|
|
20
|
-
columns: number;
|
|
21
|
-
gap: number;
|
|
22
|
-
};
|
|
23
|
-
lg: {
|
|
24
|
-
columns: number;
|
|
25
|
-
gap: number;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
mobile: {
|
|
29
|
-
columns: number;
|
|
30
|
-
gap: number;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
declare const COMMON_GRID_2_COL: GridDef;
|
|
34
|
-
declare const COMMON_GRID_3_COL: GridDef;
|
|
35
|
-
declare const COMMON_GRID_4_COL: GridDef;
|
|
36
|
-
export { type GridDef as default, type GridColumnSpec, COMMON_GRID_1_COL, COMMON_GRID_2_COL, COMMON_GRID_3_COL, COMMON_GRID_4_COL };
|
package/dist/types/grid-def.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const COMMON_GRID_1_COL = {
|
|
2
|
-
at: {
|
|
3
|
-
xs: { columns: 1, gap: 2 },
|
|
4
|
-
md: { columns: 1, gap: 3 },
|
|
5
|
-
lg: { columns: 1, gap: 6 }
|
|
6
|
-
},
|
|
7
|
-
mobile: { columns: 1, gap: 2 }
|
|
8
|
-
};
|
|
9
|
-
const COMMON_GRID_2_COL = {
|
|
10
|
-
at: {
|
|
11
|
-
xs: { columns: 1, gap: 2 },
|
|
12
|
-
md: { columns: 2, gap: 3 },
|
|
13
|
-
lg: { columns: 2, gap: 6 }
|
|
14
|
-
},
|
|
15
|
-
mobile: { columns: 1, gap: 2 }
|
|
16
|
-
};
|
|
17
|
-
const COMMON_GRID_3_COL = {
|
|
18
|
-
at: {
|
|
19
|
-
xs: { columns: 1, gap: 2 },
|
|
20
|
-
md: { columns: 3, gap: 3 },
|
|
21
|
-
lg: { columns: 3, gap: 6 }
|
|
22
|
-
},
|
|
23
|
-
mobile: { columns: 1, gap: 2 }
|
|
24
|
-
};
|
|
25
|
-
const COMMON_GRID_4_COL = {
|
|
26
|
-
at: {
|
|
27
|
-
xs: { columns: 1, gap: 2 },
|
|
28
|
-
md: { columns: 2, gap: 3 },
|
|
29
|
-
lg: { columns: 4, gap: 6 }
|
|
30
|
-
},
|
|
31
|
-
mobile: { columns: 1, gap: 2 }
|
|
32
|
-
};
|
|
33
|
-
export { COMMON_GRID_1_COL, COMMON_GRID_2_COL, COMMON_GRID_3_COL, COMMON_GRID_4_COL };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type Dimensions from './dimensions';
|
|
2
|
-
/**
|
|
3
|
-
* Defines a in image to render.
|
|
4
|
-
* ImageDef is part of {@link LinkDef}
|
|
5
|
-
*/
|
|
6
|
-
interface ImageDef {
|
|
7
|
-
/** image url */
|
|
8
|
-
src: string;
|
|
9
|
-
/** defaults to short filename */
|
|
10
|
-
alt?: string;
|
|
11
|
-
/** See next js docs */
|
|
12
|
-
sizes?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Tailwind class for svg files (usually a text-<color>).
|
|
15
|
-
* All affect 'fill' props in the svg file
|
|
16
|
-
* must be set to 'currentColor'.
|
|
17
|
-
*/
|
|
18
|
-
svgFillClass?: string;
|
|
19
|
-
/** rendered dim, unless style prop overrides
|
|
20
|
-
* in which case the file resolution should
|
|
21
|
-
* be supplied so that both Next and the browser
|
|
22
|
-
* can determine the aspect ratio
|
|
23
|
-
*/
|
|
24
|
-
dim: Dimensions;
|
|
25
|
-
rounded?: string;
|
|
26
|
-
}
|
|
27
|
-
export { type ImageDef as default };
|
package/dist/types/image-def.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type { default as AnimationDef } from './animation-def';
|
|
2
|
-
export { type Breakpoint, Breakpoints } from './breakpoints';
|
|
3
|
-
export type { default as BulletItem } from './bullet-item';
|
|
4
|
-
export type { ButtonDef, SubmitServerAction, ButtonModalProps, ButtonModalDef, } from './button-def';
|
|
5
|
-
export type { default as Dimensions } from './dimensions';
|
|
6
|
-
export type { default as GridDef, GridColumnSpec } from './grid-def';
|
|
7
|
-
export { COMMON_GRID_1_COL, COMMON_GRID_2_COL, COMMON_GRID_3_COL, COMMON_GRID_4_COL } from './grid-def';
|
|
8
|
-
export type { default as ImageDef } from './image-def';
|
|
9
|
-
export type { default as LinkDef } from './link-def';
|
|
10
|
-
export type { default as TShirtDimensions } from './tshirt-dimensions';
|
|
11
|
-
export type { default as TShirtSize } from './t-shirt-size';
|
|
12
|
-
export type { default as VideoDef } from './video-def';
|
|
13
|
-
export type { MediaStackDef, MediaTransform } from './media-stack-def';
|
package/dist/types/index.js
DELETED
package/dist/types/link-def.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import type { buttonVariants } from '../primitives/button';
|
|
3
|
-
/**
|
|
4
|
-
* A Conf object for the LinkElement primitive.
|
|
5
|
-
*/
|
|
6
|
-
interface LinkDef extends VariantProps<typeof buttonVariants> {
|
|
7
|
-
/**
|
|
8
|
-
* If the LinkElement is rendered directly and has children,
|
|
9
|
-
* the title, icon, iconAfter fields in the supplied LinkDef
|
|
10
|
-
* will be ignored.
|
|
11
|
-
*/
|
|
12
|
-
title?: string;
|
|
13
|
-
/**
|
|
14
|
-
* If the LinkElement is rendered directly and has children,
|
|
15
|
-
* the title, icon, iconAfter fields in the supplied LinkDef
|
|
16
|
-
* will be ignored.
|
|
17
|
-
*/
|
|
18
|
-
icon?: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* If the LinkElement is rendered directly and has children,
|
|
21
|
-
* the title, icon, iconAfter fields in the supplied LinkDef
|
|
22
|
-
* will be ignored.
|
|
23
|
-
*/
|
|
24
|
-
iconAfter?: boolean;
|
|
25
|
-
href: string;
|
|
26
|
-
/**
|
|
27
|
-
* External links will open in a new tab (via target='_blank') by default,
|
|
28
|
-
* while internal ones will open in the same tab.
|
|
29
|
-
* @field newTab overrides these defaults in both cases.
|
|
30
|
-
* ('external' means the url starts with 'http')
|
|
31
|
-
*/
|
|
32
|
-
newTab?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* rendered as a disabled link, shows default cursor, and eats pointer events.
|
|
35
|
-
*/
|
|
36
|
-
disabled?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
*contents for description link.
|
|
39
|
-
*/
|
|
40
|
-
contents?: string;
|
|
41
|
-
childMenu?: LinkDef[];
|
|
42
|
-
groupName?: string;
|
|
43
|
-
}
|
|
44
|
-
export { type LinkDef as default };
|
package/dist/types/link-def.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|