@raydenui/ui 0.6.0 → 0.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/README.md +1 -1
- package/dist/icons.cjs +6021 -0
- package/dist/icons.d.cts +430 -0
- package/dist/icons.d.ts +430 -0
- package/dist/icons.js +5603 -0
- package/dist/index.cjs +4524 -7304
- package/dist/index.d.cts +15 -8
- package/dist/index.d.ts +15 -8
- package/dist/index.js +4523 -7303
- package/dist/preset.cjs +0 -2
- package/dist/preset.js +0 -2
- package/dist/styles.css +1 -1
- package/package.json +15 -3
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/preset.cjs.map +0 -1
- package/dist/preset.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { SVGAttributes, ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
3
|
+
import { IconVariant, IconName, IconRecord } from './icons.cjs';
|
|
3
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
import { ClassValue } from 'clsx';
|
|
5
6
|
import { FieldValues, FieldPath, UseFormReturn, UseFormRegisterReturn } from 'react-hook-form';
|
|
6
7
|
|
|
7
|
-
type IconVariant = "outline" | "solid";
|
|
8
|
-
type IconName = "3d" | "AI-stars" | "AR" | "BTC" | "ETH" | "NFT" | "NFT-add" | "NFT-profile" | "NFT-remove" | "QR-code" | "VR-goggles" | "airplane" | "airpod" | "alarm-clock" | "align-center" | "align-justify" | "align-left" | "align-right" | "arrow-down" | "arrow-down-left" | "arrow-down-right" | "arrow-expand" | "arrow-left" | "arrow-right" | "arrow-shrink" | "arrow-up" | "arrow-up-left" | "arrow-up-right" | "arrow-up-split" | "at" | "backward" | "badge" | "bag" | "ball" | "bank" | "bar-chart-h" | "bar-chart-v" | "battery" | "battery-charging" | "battery-empty" | "bed" | "beizer-curve" | "bell" | "bell-slash" | "bicycle" | "bin" | "bluetooth" | "bold" | "book" | "book-open" | "bookmark" | "bookmark-add" | "bookmarks" | "books" | "bot" | "box" | "box-1" | "branch" | "brush" | "bug" | "building-1" | "building-2" | "building-3" | "building-4" | "building-5" | "building-6" | "bulb" | "bulb-slash" | "bus" | "calendar" | "calendar-add" | "calendar-alt" | "calendar-cross" | "calendar-remove" | "calendar-tick" | "call" | "call-add" | "call-cross" | "call-incoming" | "call-outgoing" | "call-remove" | "call-ringing" | "camera" | "camera-slash" | "candles-h" | "candles-v" | "car" | "card" | "card-add" | "card-cross" | "card-fund" | "card-in" | "card-out" | "card-remove" | "card-tick" | "card-withdraw" | "cart" | "cart-add" | "cart-check" | "cart-cross" | "cart-minus" | "chart" | "chart-down" | "chart-up" | "chat" | "chat-alt" | "chats" | "check" | "check-circle" | "checkbox" | "checkbox-checked" | "chevron-down" | "chevron-h" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-v" | "clipboard" | "clock" | "cloud" | "cloud-1" | "cloud-download" | "cloud-info" | "cloud-lightning" | "cloud-rain" | "cloud-slash" | "cloud-snowy" | "cloud-upload" | "clouds" | "code" | "code-2" | "coin-stack" | "coin-swap" | "coins" | "coins-alt" | "color-picker" | "column" | "compass" | "conical-flask" | "copy" | "corner" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "crop" | "cup" | "cursor" | "data" | "devices" | "dislike" | "division" | "dollar" | "dots-h" | "dots-h-circle" | "dots-v" | "dots-v-circle" | "download" | "elements" | "emoji" | "emoji-add" | "euro" | "expand" | "eye" | "eye-slash" | "face-id" | "feather" | "feather-AI" | "feather-add" | "file" | "file-alt" | "file-cloud" | "file-code" | "file-download" | "file-upload" | "filter" | "filter-alt" | "fingerprint" | "first-aid" | "flag" | "flower" | "folder" | "folder-add" | "folder-cloud" | "folder-cross" | "folder-download" | "folder-lock" | "folder-move" | "folder-shield" | "folder-upload" | "folder-user" | "fork" | "forward" | "game-pad" | "gear-AI" | "gem" | "gift" | "globe" | "globe-alt" | "gps" | "graduating cap" | "grid" | "grid-2" | "hashtag" | "heading" | "headphones" | "headset" | "health-plus" | "heart" | "heart-beat" | "heart-beat-wave" | "history" | "home" | "home-alt" | "image" | "image-add" | "image-check" | "image-circle" | "image-cross" | "image-remove" | "info-circle" | "info-hexagon" | "info-triangle" | "italics" | "key" | "keyboard" | "lamp" | "laptop" | "layer" | "lifebuoy" | "lightning" | "lightning-off" | "like" | "line-height" | "link" | "link-detach" | "list" | "list-add" | "lock" | "lock-open" | "loudspeaker" | "magic-wand" | "mail" | "mail-add" | "mail-check" | "mail-cross" | "mail-remove" | "map" | "map-alt" | "map-marker" | "media" | "merge" | "message" | "message-alt" | "messages" | "microphone" | "microphone-slash" | "minus" | "minus-circle" | "mobile" | "money" | "money-1" | "money-2" | "moon" | "moon-cloud" | "moon-stars" | "mouse" | "move" | "multiply" | "multiply-circle" | "music" | "music-AI" | "music-note" | "naira" | "navigation" | "navigation-alt" | "newspaper" | "next" | "paint-brush" | "paint-bucket" | "palette" | "paper-clip" | "paragraph-spacing" | "pause" | "pc" | "pc-lock" | "pc-speaker" | "pc-user" | "pencil" | "pencil-edit" | "pie-chart" | "pin" | "pin-alt" | "plant" | "plant-2" | "play" | "playlist" | "plus" | "plus-circle" | "pounds" | "power" | "previous" | "printer" | "processor" | "pull-request" | "question-circle" | "quote" | "radio-button" | "radio-selected" | "receipt" | "redo" | "refresh" | "repeat" | "repeat-once" | "road-sign" | "rocket" | "rocket-alt" | "rotate-left" | "rotate-right" | "route" | "row" | "save" | "scan" | "scissor" | "screenshot" | "search" | "send" | "send-AI" | "send-alt" | "server" | "server-alt" | "settings" | "settings-1" | "settings-2" | "share" | "share-alt" | "shield" | "shield-cross" | "shield-tick" | "ship" | "shower" | "shrink" | "shrink-alt" | "shuffle" | "sign-in" | "sign-out" | "signal" | "signal-off" | "sim" | "snooze" | "snowflake" | "sofa" | "speaker" | "star" | "stars" | "stop" | "stopwatch" | "store" | "strikethrough" | "subscript" | "suitcase" | "sun" | "sun-cloud" | "superscript" | "support" | "switch-diagonal" | "switch-horizontal" | "switch-vertical" | "tablet" | "target" | "taxi" | "terminal" | "text" | "thermometer" | "ticket" | "tissue" | "train" | "trophy" | "truck" | "tv" | "underline" | "undo" | "upload" | "user" | "user-add" | "user-circle" | "user-cross" | "user-group" | "user-heart" | "user-remove" | "user-tick" | "users" | "verified" | "video" | "video-slash" | "voice-note" | "volume" | "volume-low" | "volume-mute" | "volume-slash" | "wallet" | "wallet-add" | "wallet-check" | "wallet-cross" | "wallet-fund" | "wallet-remove" | "wallet-withdraw" | "water-drop" | "wifi" | "wristwatch" | "yen" | "zoom-in" | "zoom-out";
|
|
9
|
-
|
|
10
8
|
type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
11
|
-
interface
|
|
12
|
-
/** Icon name from the registry. */
|
|
13
|
-
name: IconName;
|
|
9
|
+
interface BaseIconProps extends Omit<SVGAttributes<SVGSVGElement>, "children"> {
|
|
14
10
|
/** Preset size or pixel value. @default "md" */
|
|
15
11
|
size?: IconSize | number;
|
|
16
12
|
/** SVG color — applied via CSS `color`. @default "currentColor" */
|
|
@@ -18,6 +14,17 @@ interface IconProps extends Omit<SVGAttributes<SVGSVGElement>, "children"> {
|
|
|
18
14
|
/** Outline (stroke) or solid (filled) variant. @default "outline" */
|
|
19
15
|
variant?: IconVariant;
|
|
20
16
|
}
|
|
17
|
+
interface IconByNameProps extends BaseIconProps {
|
|
18
|
+
/** Icon name from the registry (dynamic lookup, not tree-shakeable). */
|
|
19
|
+
name: IconName;
|
|
20
|
+
icon?: never;
|
|
21
|
+
}
|
|
22
|
+
interface IconByDataProps extends BaseIconProps {
|
|
23
|
+
/** Icon data object (tree-shakeable when imported directly). */
|
|
24
|
+
icon: IconRecord;
|
|
25
|
+
name?: never;
|
|
26
|
+
}
|
|
27
|
+
type IconProps = IconByNameProps | IconByDataProps;
|
|
21
28
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
22
29
|
|
|
23
30
|
type ButtonVariant = "primary" | "secondary" | "grey" | "destructive" | "text" | "success" | "warning" | "info";
|
|
@@ -685,7 +692,7 @@ type UseRaydenInputReturn<TName extends string = string> = UseFormRegisterReturn
|
|
|
685
692
|
* }
|
|
686
693
|
* ```
|
|
687
694
|
*/
|
|
688
|
-
declare function useRaydenInput<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ form, name
|
|
695
|
+
declare function useRaydenInput<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ form, name }: UseRaydenInputOptions<TFieldValues, TName>): UseRaydenInputReturn<TName>;
|
|
689
696
|
|
|
690
697
|
interface UseRaydenSelectOptions<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> {
|
|
691
698
|
form: UseFormReturn<TFieldValues>;
|
|
@@ -802,4 +809,4 @@ declare function useRaydenRadio<TFieldValues extends FieldValues = FieldValues,
|
|
|
802
809
|
value: string;
|
|
803
810
|
}): UseRaydenRadioReturn<TName>;
|
|
804
811
|
|
|
805
|
-
export { ActivityContent, type ActivityContentAction, type ActivityContentAttachment, type ActivityContentProps, type ActivityContentStyle, type ActivityContentVariant, ActivityItem, type ActivityItemLink, type ActivityItemProps, Alert, type AlertAction, type AlertProps, type AlertState, type AlertVariant, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarGroupSize, type AvatarProps, type AvatarSize, type AvatarStatus, type AvatarType, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeType, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonAppearance, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Checkbox, type CheckboxProps, Chip, type ChipProps, Divider, type DividerProps, type DividerVariant, type DropZoneState, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmptyStateIllustration, type EmptyStateIllustrationProps, FileUpload, FileUploadDropZone, type FileUploadDropZoneProps, type FileUploadFileData, FileUploadItem, type FileUploadItemProps, type FileUploadItemStatus, type FileUploadProps, Icon,
|
|
812
|
+
export { ActivityContent, type ActivityContentAction, type ActivityContentAttachment, type ActivityContentProps, type ActivityContentStyle, type ActivityContentVariant, ActivityItem, type ActivityItemLink, type ActivityItemProps, Alert, type AlertAction, type AlertProps, type AlertState, type AlertVariant, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarGroupSize, type AvatarProps, type AvatarSize, type AvatarStatus, type AvatarType, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeType, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonAppearance, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Checkbox, type CheckboxProps, Chip, type ChipProps, Divider, type DividerProps, type DividerVariant, type DropZoneState, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmptyStateIllustration, type EmptyStateIllustrationProps, FileUpload, FileUploadDropZone, type FileUploadDropZoneProps, type FileUploadFileData, FileUploadItem, type FileUploadItemProps, type FileUploadItemStatus, type FileUploadProps, Icon, IconName, type IconProps, type IconSize, IconVariant, type IllustrationName, Input, type InputProps, type InputSize, MetricsCard, type MetricsCardCta, type MetricsCardProps, type MetricsCardStatusBadge, type MetricsCardTrend, type MetricsCardTrendBadge, type MetricsCardVariation, Pagination, type PaginationProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressCircle, type ProgressCircleProps, type ProgressCircleSize, Radio, type RadioProps, type ResolvedTheme, Select, SelectOption, type SelectOptionProps, type SelectProps, SidebarMenu, type SidebarMenuContextValue, SidebarMenuItem, type SidebarMenuItemProps, type SidebarMenuProps, SidebarMenuSection, type SidebarMenuSectionProps, SidebarMenuSub, SidebarMenuSubItem, type SidebarMenuSubItemProps, type SidebarMenuSubProps, type SidebarMenuTheme, type SortDirection, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type TabsVariant, type Theme, ThemeProvider, type ThemeProviderProps, Toggle, type ToggleProps, Tooltip, type TooltipAction, type TooltipPosition, type TooltipProps, type TooltipTheme, type UseRaydenCheckboxReturn, type UseRaydenFormControlOptions, type UseRaydenInputOptions, type UseRaydenInputReturn, type UseRaydenRadioReturn, type UseRaydenSelectOptions, type UseRaydenSelectReturn, cn, illustrationNames, useRaydenCheckbox, useRaydenInput, useRaydenRadio, useRaydenSelect, useRaydenToggle, useResolvedTheme, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { SVGAttributes, ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
3
|
+
import { IconVariant, IconName, IconRecord } from './icons.js';
|
|
3
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
import { ClassValue } from 'clsx';
|
|
5
6
|
import { FieldValues, FieldPath, UseFormReturn, UseFormRegisterReturn } from 'react-hook-form';
|
|
6
7
|
|
|
7
|
-
type IconVariant = "outline" | "solid";
|
|
8
|
-
type IconName = "3d" | "AI-stars" | "AR" | "BTC" | "ETH" | "NFT" | "NFT-add" | "NFT-profile" | "NFT-remove" | "QR-code" | "VR-goggles" | "airplane" | "airpod" | "alarm-clock" | "align-center" | "align-justify" | "align-left" | "align-right" | "arrow-down" | "arrow-down-left" | "arrow-down-right" | "arrow-expand" | "arrow-left" | "arrow-right" | "arrow-shrink" | "arrow-up" | "arrow-up-left" | "arrow-up-right" | "arrow-up-split" | "at" | "backward" | "badge" | "bag" | "ball" | "bank" | "bar-chart-h" | "bar-chart-v" | "battery" | "battery-charging" | "battery-empty" | "bed" | "beizer-curve" | "bell" | "bell-slash" | "bicycle" | "bin" | "bluetooth" | "bold" | "book" | "book-open" | "bookmark" | "bookmark-add" | "bookmarks" | "books" | "bot" | "box" | "box-1" | "branch" | "brush" | "bug" | "building-1" | "building-2" | "building-3" | "building-4" | "building-5" | "building-6" | "bulb" | "bulb-slash" | "bus" | "calendar" | "calendar-add" | "calendar-alt" | "calendar-cross" | "calendar-remove" | "calendar-tick" | "call" | "call-add" | "call-cross" | "call-incoming" | "call-outgoing" | "call-remove" | "call-ringing" | "camera" | "camera-slash" | "candles-h" | "candles-v" | "car" | "card" | "card-add" | "card-cross" | "card-fund" | "card-in" | "card-out" | "card-remove" | "card-tick" | "card-withdraw" | "cart" | "cart-add" | "cart-check" | "cart-cross" | "cart-minus" | "chart" | "chart-down" | "chart-up" | "chat" | "chat-alt" | "chats" | "check" | "check-circle" | "checkbox" | "checkbox-checked" | "chevron-down" | "chevron-h" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-v" | "clipboard" | "clock" | "cloud" | "cloud-1" | "cloud-download" | "cloud-info" | "cloud-lightning" | "cloud-rain" | "cloud-slash" | "cloud-snowy" | "cloud-upload" | "clouds" | "code" | "code-2" | "coin-stack" | "coin-swap" | "coins" | "coins-alt" | "color-picker" | "column" | "compass" | "conical-flask" | "copy" | "corner" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "crop" | "cup" | "cursor" | "data" | "devices" | "dislike" | "division" | "dollar" | "dots-h" | "dots-h-circle" | "dots-v" | "dots-v-circle" | "download" | "elements" | "emoji" | "emoji-add" | "euro" | "expand" | "eye" | "eye-slash" | "face-id" | "feather" | "feather-AI" | "feather-add" | "file" | "file-alt" | "file-cloud" | "file-code" | "file-download" | "file-upload" | "filter" | "filter-alt" | "fingerprint" | "first-aid" | "flag" | "flower" | "folder" | "folder-add" | "folder-cloud" | "folder-cross" | "folder-download" | "folder-lock" | "folder-move" | "folder-shield" | "folder-upload" | "folder-user" | "fork" | "forward" | "game-pad" | "gear-AI" | "gem" | "gift" | "globe" | "globe-alt" | "gps" | "graduating cap" | "grid" | "grid-2" | "hashtag" | "heading" | "headphones" | "headset" | "health-plus" | "heart" | "heart-beat" | "heart-beat-wave" | "history" | "home" | "home-alt" | "image" | "image-add" | "image-check" | "image-circle" | "image-cross" | "image-remove" | "info-circle" | "info-hexagon" | "info-triangle" | "italics" | "key" | "keyboard" | "lamp" | "laptop" | "layer" | "lifebuoy" | "lightning" | "lightning-off" | "like" | "line-height" | "link" | "link-detach" | "list" | "list-add" | "lock" | "lock-open" | "loudspeaker" | "magic-wand" | "mail" | "mail-add" | "mail-check" | "mail-cross" | "mail-remove" | "map" | "map-alt" | "map-marker" | "media" | "merge" | "message" | "message-alt" | "messages" | "microphone" | "microphone-slash" | "minus" | "minus-circle" | "mobile" | "money" | "money-1" | "money-2" | "moon" | "moon-cloud" | "moon-stars" | "mouse" | "move" | "multiply" | "multiply-circle" | "music" | "music-AI" | "music-note" | "naira" | "navigation" | "navigation-alt" | "newspaper" | "next" | "paint-brush" | "paint-bucket" | "palette" | "paper-clip" | "paragraph-spacing" | "pause" | "pc" | "pc-lock" | "pc-speaker" | "pc-user" | "pencil" | "pencil-edit" | "pie-chart" | "pin" | "pin-alt" | "plant" | "plant-2" | "play" | "playlist" | "plus" | "plus-circle" | "pounds" | "power" | "previous" | "printer" | "processor" | "pull-request" | "question-circle" | "quote" | "radio-button" | "radio-selected" | "receipt" | "redo" | "refresh" | "repeat" | "repeat-once" | "road-sign" | "rocket" | "rocket-alt" | "rotate-left" | "rotate-right" | "route" | "row" | "save" | "scan" | "scissor" | "screenshot" | "search" | "send" | "send-AI" | "send-alt" | "server" | "server-alt" | "settings" | "settings-1" | "settings-2" | "share" | "share-alt" | "shield" | "shield-cross" | "shield-tick" | "ship" | "shower" | "shrink" | "shrink-alt" | "shuffle" | "sign-in" | "sign-out" | "signal" | "signal-off" | "sim" | "snooze" | "snowflake" | "sofa" | "speaker" | "star" | "stars" | "stop" | "stopwatch" | "store" | "strikethrough" | "subscript" | "suitcase" | "sun" | "sun-cloud" | "superscript" | "support" | "switch-diagonal" | "switch-horizontal" | "switch-vertical" | "tablet" | "target" | "taxi" | "terminal" | "text" | "thermometer" | "ticket" | "tissue" | "train" | "trophy" | "truck" | "tv" | "underline" | "undo" | "upload" | "user" | "user-add" | "user-circle" | "user-cross" | "user-group" | "user-heart" | "user-remove" | "user-tick" | "users" | "verified" | "video" | "video-slash" | "voice-note" | "volume" | "volume-low" | "volume-mute" | "volume-slash" | "wallet" | "wallet-add" | "wallet-check" | "wallet-cross" | "wallet-fund" | "wallet-remove" | "wallet-withdraw" | "water-drop" | "wifi" | "wristwatch" | "yen" | "zoom-in" | "zoom-out";
|
|
9
|
-
|
|
10
8
|
type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
11
|
-
interface
|
|
12
|
-
/** Icon name from the registry. */
|
|
13
|
-
name: IconName;
|
|
9
|
+
interface BaseIconProps extends Omit<SVGAttributes<SVGSVGElement>, "children"> {
|
|
14
10
|
/** Preset size or pixel value. @default "md" */
|
|
15
11
|
size?: IconSize | number;
|
|
16
12
|
/** SVG color — applied via CSS `color`. @default "currentColor" */
|
|
@@ -18,6 +14,17 @@ interface IconProps extends Omit<SVGAttributes<SVGSVGElement>, "children"> {
|
|
|
18
14
|
/** Outline (stroke) or solid (filled) variant. @default "outline" */
|
|
19
15
|
variant?: IconVariant;
|
|
20
16
|
}
|
|
17
|
+
interface IconByNameProps extends BaseIconProps {
|
|
18
|
+
/** Icon name from the registry (dynamic lookup, not tree-shakeable). */
|
|
19
|
+
name: IconName;
|
|
20
|
+
icon?: never;
|
|
21
|
+
}
|
|
22
|
+
interface IconByDataProps extends BaseIconProps {
|
|
23
|
+
/** Icon data object (tree-shakeable when imported directly). */
|
|
24
|
+
icon: IconRecord;
|
|
25
|
+
name?: never;
|
|
26
|
+
}
|
|
27
|
+
type IconProps = IconByNameProps | IconByDataProps;
|
|
21
28
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<SVGSVGElement>>;
|
|
22
29
|
|
|
23
30
|
type ButtonVariant = "primary" | "secondary" | "grey" | "destructive" | "text" | "success" | "warning" | "info";
|
|
@@ -685,7 +692,7 @@ type UseRaydenInputReturn<TName extends string = string> = UseFormRegisterReturn
|
|
|
685
692
|
* }
|
|
686
693
|
* ```
|
|
687
694
|
*/
|
|
688
|
-
declare function useRaydenInput<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ form, name
|
|
695
|
+
declare function useRaydenInput<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ form, name }: UseRaydenInputOptions<TFieldValues, TName>): UseRaydenInputReturn<TName>;
|
|
689
696
|
|
|
690
697
|
interface UseRaydenSelectOptions<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> {
|
|
691
698
|
form: UseFormReturn<TFieldValues>;
|
|
@@ -802,4 +809,4 @@ declare function useRaydenRadio<TFieldValues extends FieldValues = FieldValues,
|
|
|
802
809
|
value: string;
|
|
803
810
|
}): UseRaydenRadioReturn<TName>;
|
|
804
811
|
|
|
805
|
-
export { ActivityContent, type ActivityContentAction, type ActivityContentAttachment, type ActivityContentProps, type ActivityContentStyle, type ActivityContentVariant, ActivityItem, type ActivityItemLink, type ActivityItemProps, Alert, type AlertAction, type AlertProps, type AlertState, type AlertVariant, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarGroupSize, type AvatarProps, type AvatarSize, type AvatarStatus, type AvatarType, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeType, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonAppearance, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Checkbox, type CheckboxProps, Chip, type ChipProps, Divider, type DividerProps, type DividerVariant, type DropZoneState, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmptyStateIllustration, type EmptyStateIllustrationProps, FileUpload, FileUploadDropZone, type FileUploadDropZoneProps, type FileUploadFileData, FileUploadItem, type FileUploadItemProps, type FileUploadItemStatus, type FileUploadProps, Icon,
|
|
812
|
+
export { ActivityContent, type ActivityContentAction, type ActivityContentAttachment, type ActivityContentProps, type ActivityContentStyle, type ActivityContentVariant, ActivityItem, type ActivityItemLink, type ActivityItemProps, Alert, type AlertAction, type AlertProps, type AlertState, type AlertVariant, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarGroupSize, type AvatarProps, type AvatarSize, type AvatarStatus, type AvatarType, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeType, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonAppearance, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Checkbox, type CheckboxProps, Chip, type ChipProps, Divider, type DividerProps, type DividerVariant, type DropZoneState, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmptyStateIllustration, type EmptyStateIllustrationProps, FileUpload, FileUploadDropZone, type FileUploadDropZoneProps, type FileUploadFileData, FileUploadItem, type FileUploadItemProps, type FileUploadItemStatus, type FileUploadProps, Icon, IconName, type IconProps, type IconSize, IconVariant, type IllustrationName, Input, type InputProps, type InputSize, MetricsCard, type MetricsCardCta, type MetricsCardProps, type MetricsCardStatusBadge, type MetricsCardTrend, type MetricsCardTrendBadge, type MetricsCardVariation, Pagination, type PaginationProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressCircle, type ProgressCircleProps, type ProgressCircleSize, Radio, type RadioProps, type ResolvedTheme, Select, SelectOption, type SelectOptionProps, type SelectProps, SidebarMenu, type SidebarMenuContextValue, SidebarMenuItem, type SidebarMenuItemProps, type SidebarMenuProps, SidebarMenuSection, type SidebarMenuSectionProps, SidebarMenuSub, SidebarMenuSubItem, type SidebarMenuSubItemProps, type SidebarMenuSubProps, type SidebarMenuTheme, type SortDirection, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type TabsVariant, type Theme, ThemeProvider, type ThemeProviderProps, Toggle, type ToggleProps, Tooltip, type TooltipAction, type TooltipPosition, type TooltipProps, type TooltipTheme, type UseRaydenCheckboxReturn, type UseRaydenFormControlOptions, type UseRaydenInputOptions, type UseRaydenInputReturn, type UseRaydenRadioReturn, type UseRaydenSelectOptions, type UseRaydenSelectReturn, cn, illustrationNames, useRaydenCheckbox, useRaydenInput, useRaydenRadio, useRaydenSelect, useRaydenToggle, useResolvedTheme, useTheme };
|