najm-kit 2.1.3 → 2.1.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/index.d.ts +29 -5
- package/dist/index.mjs +99 -16
- package/dist/json.mjs +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -181,7 +181,7 @@ interface NajmComponentStyleConfig {
|
|
|
181
181
|
slots?: Record<string, NajmSlotStyle>;
|
|
182
182
|
variants?: Record<string, NajmVariantStyle>;
|
|
183
183
|
}
|
|
184
|
-
type NajmComponentName = "button" | "badge" | "card" | "table" | "tabs" | "dialog" | "alert" | "sidebar" | "pageHeader" | "input" | "select" | "sheet" | "popover" | "tooltip" | "progress" | "avatar";
|
|
184
|
+
type NajmComponentName = "button" | "badge" | "card" | "table" | "tabs" | "dialog" | "alert" | "sidebar" | "pageHeader" | "input" | "select" | "dropdown" | "sheet" | "popover" | "tooltip" | "progress" | "avatar";
|
|
185
185
|
type NajmComponentThemeConfig = Partial<Record<NajmComponentName, NajmComponentStyleConfig>>;
|
|
186
186
|
interface NajmTypographyConfig {
|
|
187
187
|
fontSans?: string;
|
|
@@ -509,6 +509,7 @@ type DialogActionMode = "auto" | "dialog" | "content";
|
|
|
509
509
|
type DialogVariant = "default" | "window";
|
|
510
510
|
interface ButtonConfig {
|
|
511
511
|
text: string;
|
|
512
|
+
className?: string;
|
|
512
513
|
variant?: "default" | "destructive" | "secondary" | "outline" | "tertiary" | "ghost";
|
|
513
514
|
icon?: NIconSource;
|
|
514
515
|
loadingText?: string;
|
|
@@ -640,6 +641,29 @@ declare function createDialogStore(): zustand.UseBoundStore<zustand.StoreApi<Dia
|
|
|
640
641
|
type DialogStore = ReturnType<typeof createDialogStore>;
|
|
641
642
|
declare function useDialogStore(): DialogStore;
|
|
642
643
|
|
|
644
|
+
interface NDialogHeaderProps {
|
|
645
|
+
label?: string;
|
|
646
|
+
children?: string;
|
|
647
|
+
className?: string;
|
|
648
|
+
titleClassName?: string;
|
|
649
|
+
}
|
|
650
|
+
interface NDialogDescriptionProps {
|
|
651
|
+
label?: string;
|
|
652
|
+
children?: string;
|
|
653
|
+
className?: string;
|
|
654
|
+
}
|
|
655
|
+
interface NDialogActionProps extends Omit<Partial<ButtonConfig>, "text"> {
|
|
656
|
+
label?: string;
|
|
657
|
+
children?: string;
|
|
658
|
+
}
|
|
659
|
+
/** Declarative title slot for direct NDialog usage. Rendered by NDialog, not by itself. */
|
|
660
|
+
declare function NDialogHeader(_props: NDialogHeaderProps): any;
|
|
661
|
+
/** Declarative description slot for direct NDialog usage. Rendered by NDialog, not by itself. */
|
|
662
|
+
declare function NDialogDescription(_props: NDialogDescriptionProps): any;
|
|
663
|
+
/** Declarative primary-action slot for direct NDialog usage. */
|
|
664
|
+
declare function NDialogPrimaryButton(_props: NDialogActionProps): any;
|
|
665
|
+
/** Declarative secondary-action slot for direct NDialog usage. */
|
|
666
|
+
declare function NDialogSecondaryButton(_props: NDialogActionProps): any;
|
|
643
667
|
declare const dialogVariants: (props?: {
|
|
644
668
|
variant?: "default" | "window";
|
|
645
669
|
size?: "sm" | "md" | "lg" | "xl" | "full" | "xxl";
|
|
@@ -779,8 +803,8 @@ declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typ
|
|
|
779
803
|
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
780
804
|
inset?: boolean;
|
|
781
805
|
}): react_jsx_runtime.JSX.Element;
|
|
782
|
-
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
783
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
806
|
+
declare function DropdownMenuSubContent({ className, style, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
807
|
+
declare function DropdownMenuContent({ className, sideOffset, style, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
784
808
|
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
785
809
|
inset?: boolean;
|
|
786
810
|
variant?: "default" | "destructive";
|
|
@@ -804,7 +828,7 @@ declare function SelectValue({ ...props }: React$1.ComponentProps<typeof SelectP
|
|
|
804
828
|
declare function SelectTrigger({ className, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
805
829
|
declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
806
830
|
declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
807
|
-
declare function SelectContent({ className, children, position, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
831
|
+
declare function SelectContent({ className, children, position, style, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
808
832
|
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
|
|
809
833
|
declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
810
834
|
declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
@@ -3417,4 +3441,4 @@ interface InspectorSheetProps {
|
|
|
3417
3441
|
}
|
|
3418
3442
|
declare function NInspectorSheet({ open, onClose, title, children }: InspectorSheetProps): react_jsx_runtime.JSX.Element;
|
|
3419
3443
|
|
|
3420
|
-
export { Alert, type AlertLook, type AlertOrientation, type AlertProps, type AlertSize, type AlertTone, type AlertVariant, NCard as AsyncCard, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarProps$1 as AvatarProps, type AvatarShape$1 as AvatarShape, type AvatarSize, AvatarStatus, type AvatarStatusType, Badge, type BadgeColor, type BadgeIcon, type BadgeLook, type BadgeProps, type BadgeShape, type BadgeSize, type BadgeVariant, BaseInput, type BuildDefaultFileColumnsOptions, Button, type ButtonConfig, type ButtonIcon, type ButtonLoaderPosition, type ButtonProps, type ButtonRounded, type ButtonSize, type ButtonVariant, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroupInput, type CheckboxGroupInputProps, CheckboxInput, type CheckboxInputProps, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorArrayInput, type ColorArrayInputProps, type ColorFormat, ColorPickerInput, type ColorPickerInputProps, Combobox, ComboboxInput, type ComboboxInputProps, type ComboboxOption, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ContextMenuItem, DateInput, type DateInputProps, type DeleteDialogOptions, Dialog, type DialogActionMode, type DialogApi, DialogClose, type DialogConfig, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogHeight, DialogOverlay, type DialogPadding, DialogPortal, type DialogRenderContext, type DialogRenderer, type DialogSize, type DialogStore, DialogTitle, DialogTrigger, type DialogVariant, type DialogWidth, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicArray, type DynamicArrayProps, EmojiInput, type EmojiInputProps, type FileBrowserMode, FileImportButton, FileInput, type FileInputProps, type FileNode, Form, FormControl, FormDescription, FormField, FormInput, type FormInputBackground, type FormInputProps, FormItem, FormLabel, FormMessage, type FormProps, type FormSlotClassNames, type FormVariant, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, ImageInput, type ImageInputProps, Indicator, type IndicatorHorizontal, type IndicatorOverlay, type IndicatorPosition, type IndicatorProps, type IndicatorResponsivePosition, type IndicatorSize, type IndicatorVertical, Input, type InputIcon, Label, LangInput, type LangInputProps, type LinkComponentType, MultiSelectInput, type MultiSelectInputProps, NAJM_COMPONENT_NAMES, NAlert, type NAppCommandItem, NAppShell, type NAppShellAction, type NAppShellClassNames, type NAppShellProps, type NAppShellUser, NCard as NAsyncCard, type CardClassNames as NAsyncCardClassNames, type CardProps as NAsyncCardProps, NAvatar, type NAvatarClassNames, type NAvatarProps, type AvatarShape as NAvatarShape, NBadge, type NBadgeLook, type NBadgeProps, type NBulkAction, type NBulkActionButton, type NBulkActionSelect, NBulkActionsBar, type NBulkActionsBarProps, NButton, type NButtonProps, NCard, NCardAction, type CardClassNames as NCardClassNames, NCardFooter, type CardProps as NCardProps, NCommandPalette, type NCommandPaletteProps, NConfirmDialog, type NConfirmDialogProps, NContextMenu, type NContextMenuItem, type NContextMenuProps, NDataCardShell, type NDataCardShellActions, type NDataCardShellProps, NDeleteDialog, NDeleteDialogContent, type NDeleteDialogContentProps, type NDeleteDialogProps, NDetailCard, type NDetailCardClassNames, type NDetailCardProps, NDetailItem, type NDetailItemProps, NDetailList, type NDetailListItem, type NDetailListProps, NDialog, type NDialogDirectProps, type NDialogProps, type NEditorTab, NEditorTabs, type NEditorTabsProps, NEmptyState, type NEmptyStateProps, NErrorBoundary, NErrorState, type NErrorStateProps, NFileBrowser, type NFileBrowserCardProps, type NFileBrowserProps, type NFileBrowserRenderThumbProps, NFileTypeIcon, type NFileTypeIconProps, NFilterBar, NFolderIcon, type NFolderIconProps, NForm, NFormSectionHeader, type NFormSectionHeaderProps, NIcon, type NIconProps, type NIconSource, NIndicator, NInspectorSheet, NLoadingState, type NLoadingStateProps, NMultiDialog, type NMultiDialogProps, NNavbar, NPageHeader, NPageHeaderActions, NPageHeaderFilters, type NPageHeaderProps, NPageHeaderTop, NPageLayout, type NPageLayoutProps, NPortalScopeProvider, NProgress, type NProgressProps, NRowActions, NSection, NSectionHeader, type NSectionHeaderActionsProps, type NSectionHeaderContentProps, type NSectionHeaderProps, type NSectionHeaderSubtitleProps, type NSectionHeaderTitleProps, NSectionInfo, type NSectionInfoProps, type NSectionProps, NSectionWithInfo, type NSectionWithInfoItem, type NSectionWithInfoProps, NSheet, type NSheetProps, NSidebar, NSidebarContent, type NSidebarContentProps, NSidebarFooter, type NSidebarFooterProps, NSidebarHeader, type NSidebarHeaderProps, NSidebarItem, NSidebarLogo, type NSidebarLogoProps, NSidebarMobile, type NSidebarMobileProps, NSidebarSection, type NSidebarSectionProps, NSkeleton, NSkeletonCalendar, NSkeletonChart, NSkeletonDonut, NSkeletonEventList, NSkeletonWidget, NSkeletonWidgets, NSlider, type NSliderProps, NSmartPasteDialog, type NSmartPasteDialogProps, NSpinner, type NSpinnerProps, NStatCard, type NStatCardClassNames, type NStatCardProps, NStatCardSkeleton, type NStatCardVariant, Swap as NSwap, type NSwapProps, NTable, NTableCardRoot, type NTableCardRootProps, NTableCards, type NTableClassNames, NTableContent, NTableHeader, NTableLoadingSkeleton, type NTableMenu, type NTableMenuProp, NTablePagination, type NTableProps, NTableRowSkeleton, NTableSkeleton, type NTableState, NTabs, type NTabsClassNames, type NTabsColor, type NTabsItem, type NTabsProps, type NTabsStyles, NUploader, type NUploaderItem, type NUploaderItemStatus, type NUploaderProps, NViewBody, NViewToggle, type NajmAccent, type NajmAppearance, type NajmBorderSide, type NajmComponentName, type NajmComponentRadius, type NajmComponentStyleConfig, type NajmComponentThemeConfig, type NajmDensity, type NajmDesignConfig, NajmDesignProvider, type NajmDesignProviderProps, type NajmLayoutConfig, type NajmMode, type NajmPreset, type NajmRadiusScale, NajmScroll, type NajmScrollProps, type NajmSlotStyle, type NajmThemeConfig, NajmThemeProvider, type NajmThemeProviderProps, type NajmThemeTokens, type NajmTypographyConfig, type NajmVariantStyle, NativeSelect, type NativeSelectOption, type NativeSelectProps, type NavItem, type NavItemGroup, NumberInput, type NumberInputProps, PasswordInput, type PasswordInputProps, PhoneInput, type PhoneInputProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PrefixProvider, Progress, type ProgressColor, type ProgressLabelPosition, type ProgressProps, type ProgressSize, type PushDialogOptions, RADIUS_VALUE_MAP, RadioGroup, RadioGroupInput, type RadioGroupInputProps, RadioGroupItem, type RenderSlot, RepeatingFields, type RepeatingFieldsProps, ScrollArea, type ScrollAreaProps, SearchField, SearchField as SearchInput, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectContent, SelectGroup, SelectInput, type SelectInputProps, SelectItem, type SelectItemType$1 as SelectItemDataType, type SelectItemType, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, type SidebarItemProps, type SidebarProps, type SidebarWidths, SimpleTooltip, type SimpleTooltipProps, NSkeleton as Skeleton, Slider, SliderInput, type SliderInputProps, type SliderOrientation, type SliderProps, type SliderSize, type SliderVariant, type SmartPastePreview, type SpinnerVariant, StarRatingInput, type StarRatingInputProps, StatusPill, type StatusPillProps, type StatusPillTone, type StepConfig, StepIndicator, type StepMeta, StepsHeader, StepsProgress, type StorageMenuAction, type StorageSortOption, type StorageTarget, Swap, type SwapEffect, SwapIndeterminate, SwapOff, SwapOn, type SwapProps, type SwapSize, type SwapState, Switch, type SwitchColor, SwitchInput, type SwitchInputProps, type SwitchSize, TAB_COLORS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableHeaderColor, TableRow, type TableState, type TableStore, TableStoreContext, Tabs, TabsContent, TabsList, type TabsListProps, type TabsOrientation, type TabsProps, TabsTrigger, type TabsTriggerProps, type TabsVariant, TextAreaInput, type TextAreaInputProps, TextInput, type TextInputProps, Textarea, TimeInput, type TimeInputProps, Toaster, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseContextMenuResult, type UseNFormOptions, type UseStorageContextMenuOptions, type UseStorageContextMenuResult, type UserMenuAction, VariantProvider, type WizardClassNames, WizardForm, type WizardFormProps, alertVariants, avatarVariants, badgeColorVariants, badgeVariants, buildDefaultFileColumns, buttonVariants, cn, composePreset, createDialogStore, createTableStore, defineNajmDesignConfig, defineNajmThemeConfig, detectFormat, dialogVariants, formatColor, formatFileBytes, formatFileRelative, getIconColorProps, getNextEditorTabValue, indicatorVariants, inputBorderClasses, parseColor, parseNajmDesignConfig, parseNajmThemeConfig, resolvePreset, resolveRadiusValue, resolveSlot, resolveVariantAlias, sidebarBorderClasses, sliderVariants, stringifyNajmDesignConfig, stringifyNajmThemeConfig, surfaceBorderClasses, swapVariants, toPickerHex, toggleVariants, tooltipContentVariants, truncateByCharacters, useClickOutside, useContextMenu, useDebouncedValue, useDelayedLoading, useDialog, useDialogStore, useDynamicPageSize, useFormField, useFormSubmission, useInfiniteScroll, useKeyboard, useLocalStorageState, useNForm, useNPortalScope, useNajmAppearance, useNajmComponentStyle, useNajmDesign, usePrefix, useSelection, useStepNavigation, useStorageContextMenu, useStoreSync, useTable, useTableKeyboard, useTableStore, useVariant, useVariantPreset };
|
|
3444
|
+
export { Alert, type AlertLook, type AlertOrientation, type AlertProps, type AlertSize, type AlertTone, type AlertVariant, NCard as AsyncCard, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarProps$1 as AvatarProps, type AvatarShape$1 as AvatarShape, type AvatarSize, AvatarStatus, type AvatarStatusType, Badge, type BadgeColor, type BadgeIcon, type BadgeLook, type BadgeProps, type BadgeShape, type BadgeSize, type BadgeVariant, BaseInput, type BuildDefaultFileColumnsOptions, Button, type ButtonConfig, type ButtonIcon, type ButtonLoaderPosition, type ButtonProps, type ButtonRounded, type ButtonSize, type ButtonVariant, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroupInput, type CheckboxGroupInputProps, CheckboxInput, type CheckboxInputProps, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorArrayInput, type ColorArrayInputProps, type ColorFormat, ColorPickerInput, type ColorPickerInputProps, Combobox, ComboboxInput, type ComboboxInputProps, type ComboboxOption, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ContextMenuItem, DateInput, type DateInputProps, type DeleteDialogOptions, Dialog, type DialogActionMode, type DialogApi, DialogClose, type DialogConfig, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogHeight, DialogOverlay, type DialogPadding, DialogPortal, type DialogRenderContext, type DialogRenderer, type DialogSize, type DialogStore, DialogTitle, DialogTrigger, type DialogVariant, type DialogWidth, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicArray, type DynamicArrayProps, EmojiInput, type EmojiInputProps, type FileBrowserMode, FileImportButton, FileInput, type FileInputProps, type FileNode, Form, FormControl, FormDescription, FormField, FormInput, type FormInputBackground, type FormInputProps, FormItem, FormLabel, FormMessage, type FormProps, type FormSlotClassNames, type FormVariant, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, ImageInput, type ImageInputProps, Indicator, type IndicatorHorizontal, type IndicatorOverlay, type IndicatorPosition, type IndicatorProps, type IndicatorResponsivePosition, type IndicatorSize, type IndicatorVertical, Input, type InputIcon, Label, LangInput, type LangInputProps, type LinkComponentType, MultiSelectInput, type MultiSelectInputProps, NAJM_COMPONENT_NAMES, NAlert, type NAppCommandItem, NAppShell, type NAppShellAction, type NAppShellClassNames, type NAppShellProps, type NAppShellUser, NCard as NAsyncCard, type CardClassNames as NAsyncCardClassNames, type CardProps as NAsyncCardProps, NAvatar, type NAvatarClassNames, type NAvatarProps, type AvatarShape as NAvatarShape, NBadge, type NBadgeLook, type NBadgeProps, type NBulkAction, type NBulkActionButton, type NBulkActionSelect, NBulkActionsBar, type NBulkActionsBarProps, NButton, type NButtonProps, NCard, NCardAction, type CardClassNames as NCardClassNames, NCardFooter, type CardProps as NCardProps, NCommandPalette, type NCommandPaletteProps, NConfirmDialog, type NConfirmDialogProps, NContextMenu, type NContextMenuItem, type NContextMenuProps, NDataCardShell, type NDataCardShellActions, type NDataCardShellProps, NDeleteDialog, NDeleteDialogContent, type NDeleteDialogContentProps, type NDeleteDialogProps, NDetailCard, type NDetailCardClassNames, type NDetailCardProps, NDetailItem, type NDetailItemProps, NDetailList, type NDetailListItem, type NDetailListProps, NDialog, type NDialogActionProps, NDialogDescription, type NDialogDescriptionProps, type NDialogDirectProps, NDialogHeader, type NDialogHeaderProps, NDialogPrimaryButton, type NDialogProps, NDialogSecondaryButton, type NEditorTab, NEditorTabs, type NEditorTabsProps, NEmptyState, type NEmptyStateProps, NErrorBoundary, NErrorState, type NErrorStateProps, NFileBrowser, type NFileBrowserCardProps, type NFileBrowserProps, type NFileBrowserRenderThumbProps, NFileTypeIcon, type NFileTypeIconProps, NFilterBar, NFolderIcon, type NFolderIconProps, NForm, NFormSectionHeader, type NFormSectionHeaderProps, NIcon, type NIconProps, type NIconSource, NIndicator, NInspectorSheet, NLoadingState, type NLoadingStateProps, NMultiDialog, type NMultiDialogProps, NNavbar, NPageHeader, NPageHeaderActions, NPageHeaderFilters, type NPageHeaderProps, NPageHeaderTop, NPageLayout, type NPageLayoutProps, NPortalScopeProvider, NProgress, type NProgressProps, NRowActions, NSection, NSectionHeader, type NSectionHeaderActionsProps, type NSectionHeaderContentProps, type NSectionHeaderProps, type NSectionHeaderSubtitleProps, type NSectionHeaderTitleProps, NSectionInfo, type NSectionInfoProps, type NSectionProps, NSectionWithInfo, type NSectionWithInfoItem, type NSectionWithInfoProps, NSheet, type NSheetProps, NSidebar, NSidebarContent, type NSidebarContentProps, NSidebarFooter, type NSidebarFooterProps, NSidebarHeader, type NSidebarHeaderProps, NSidebarItem, NSidebarLogo, type NSidebarLogoProps, NSidebarMobile, type NSidebarMobileProps, NSidebarSection, type NSidebarSectionProps, NSkeleton, NSkeletonCalendar, NSkeletonChart, NSkeletonDonut, NSkeletonEventList, NSkeletonWidget, NSkeletonWidgets, NSlider, type NSliderProps, NSmartPasteDialog, type NSmartPasteDialogProps, NSpinner, type NSpinnerProps, NStatCard, type NStatCardClassNames, type NStatCardProps, NStatCardSkeleton, type NStatCardVariant, Swap as NSwap, type NSwapProps, NTable, NTableCardRoot, type NTableCardRootProps, NTableCards, type NTableClassNames, NTableContent, NTableHeader, NTableLoadingSkeleton, type NTableMenu, type NTableMenuProp, NTablePagination, type NTableProps, NTableRowSkeleton, NTableSkeleton, type NTableState, NTabs, type NTabsClassNames, type NTabsColor, type NTabsItem, type NTabsProps, type NTabsStyles, NUploader, type NUploaderItem, type NUploaderItemStatus, type NUploaderProps, NViewBody, NViewToggle, type NajmAccent, type NajmAppearance, type NajmBorderSide, type NajmComponentName, type NajmComponentRadius, type NajmComponentStyleConfig, type NajmComponentThemeConfig, type NajmDensity, type NajmDesignConfig, NajmDesignProvider, type NajmDesignProviderProps, type NajmLayoutConfig, type NajmMode, type NajmPreset, type NajmRadiusScale, NajmScroll, type NajmScrollProps, type NajmSlotStyle, type NajmThemeConfig, NajmThemeProvider, type NajmThemeProviderProps, type NajmThemeTokens, type NajmTypographyConfig, type NajmVariantStyle, NativeSelect, type NativeSelectOption, type NativeSelectProps, type NavItem, type NavItemGroup, NumberInput, type NumberInputProps, PasswordInput, type PasswordInputProps, PhoneInput, type PhoneInputProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PrefixProvider, Progress, type ProgressColor, type ProgressLabelPosition, type ProgressProps, type ProgressSize, type PushDialogOptions, RADIUS_VALUE_MAP, RadioGroup, RadioGroupInput, type RadioGroupInputProps, RadioGroupItem, type RenderSlot, RepeatingFields, type RepeatingFieldsProps, ScrollArea, type ScrollAreaProps, SearchField, SearchField as SearchInput, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectContent, SelectGroup, SelectInput, type SelectInputProps, SelectItem, type SelectItemType$1 as SelectItemDataType, type SelectItemType, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, type SidebarItemProps, type SidebarProps, type SidebarWidths, SimpleTooltip, type SimpleTooltipProps, NSkeleton as Skeleton, Slider, SliderInput, type SliderInputProps, type SliderOrientation, type SliderProps, type SliderSize, type SliderVariant, type SmartPastePreview, type SpinnerVariant, StarRatingInput, type StarRatingInputProps, StatusPill, type StatusPillProps, type StatusPillTone, type StepConfig, StepIndicator, type StepMeta, StepsHeader, StepsProgress, type StorageMenuAction, type StorageSortOption, type StorageTarget, Swap, type SwapEffect, SwapIndeterminate, SwapOff, SwapOn, type SwapProps, type SwapSize, type SwapState, Switch, type SwitchColor, SwitchInput, type SwitchInputProps, type SwitchSize, TAB_COLORS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableHeaderColor, TableRow, type TableState, type TableStore, TableStoreContext, Tabs, TabsContent, TabsList, type TabsListProps, type TabsOrientation, type TabsProps, TabsTrigger, type TabsTriggerProps, type TabsVariant, TextAreaInput, type TextAreaInputProps, TextInput, type TextInputProps, Textarea, TimeInput, type TimeInputProps, Toaster, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseContextMenuResult, type UseNFormOptions, type UseStorageContextMenuOptions, type UseStorageContextMenuResult, type UserMenuAction, VariantProvider, type WizardClassNames, WizardForm, type WizardFormProps, alertVariants, avatarVariants, badgeColorVariants, badgeVariants, buildDefaultFileColumns, buttonVariants, cn, composePreset, createDialogStore, createTableStore, defineNajmDesignConfig, defineNajmThemeConfig, detectFormat, dialogVariants, formatColor, formatFileBytes, formatFileRelative, getIconColorProps, getNextEditorTabValue, indicatorVariants, inputBorderClasses, parseColor, parseNajmDesignConfig, parseNajmThemeConfig, resolvePreset, resolveRadiusValue, resolveSlot, resolveVariantAlias, sidebarBorderClasses, sliderVariants, stringifyNajmDesignConfig, stringifyNajmThemeConfig, surfaceBorderClasses, swapVariants, toPickerHex, toggleVariants, tooltipContentVariants, truncateByCharacters, useClickOutside, useContextMenu, useDebouncedValue, useDelayedLoading, useDialog, useDialogStore, useDynamicPageSize, useFormField, useFormSubmission, useInfiniteScroll, useKeyboard, useLocalStorageState, useNForm, useNPortalScope, useNajmAppearance, useNajmComponentStyle, useNajmDesign, usePrefix, useSelection, useStepNavigation, useStorageContextMenu, useStoreSync, useTable, useTableKeyboard, useTableStore, useVariant, useVariantPreset };
|
package/dist/index.mjs
CHANGED
|
@@ -571,6 +571,7 @@ var NAJM_COMPONENT_NAMES = [
|
|
|
571
571
|
"pageHeader",
|
|
572
572
|
"input",
|
|
573
573
|
"select",
|
|
574
|
+
"dropdown",
|
|
574
575
|
"sheet",
|
|
575
576
|
"popover",
|
|
576
577
|
"tooltip",
|
|
@@ -2247,6 +2248,45 @@ var defaultStore = createDialogStore();
|
|
|
2247
2248
|
function useDialogStore() {
|
|
2248
2249
|
return defaultStore;
|
|
2249
2250
|
}
|
|
2251
|
+
function NDialogHeader(_props) {
|
|
2252
|
+
return null;
|
|
2253
|
+
}
|
|
2254
|
+
function NDialogDescription(_props) {
|
|
2255
|
+
return null;
|
|
2256
|
+
}
|
|
2257
|
+
function NDialogPrimaryButton(_props) {
|
|
2258
|
+
return null;
|
|
2259
|
+
}
|
|
2260
|
+
function NDialogSecondaryButton(_props) {
|
|
2261
|
+
return null;
|
|
2262
|
+
}
|
|
2263
|
+
function parseDirectDialogSlots(children) {
|
|
2264
|
+
const body = [];
|
|
2265
|
+
const parsed = {};
|
|
2266
|
+
React__default.Children.forEach(children, (child) => {
|
|
2267
|
+
if (!React__default.isValidElement(child)) {
|
|
2268
|
+
body.push(child);
|
|
2269
|
+
return;
|
|
2270
|
+
}
|
|
2271
|
+
if (child.type === NDialogHeader) {
|
|
2272
|
+
parsed.header = child.props;
|
|
2273
|
+
return;
|
|
2274
|
+
}
|
|
2275
|
+
if (child.type === NDialogDescription) {
|
|
2276
|
+
parsed.description = child.props;
|
|
2277
|
+
return;
|
|
2278
|
+
}
|
|
2279
|
+
if (child.type === NDialogPrimaryButton || child.type === NDialogSecondaryButton) {
|
|
2280
|
+
const { children: text, label, ...config } = child.props;
|
|
2281
|
+
const button = { ...config, text: label ?? text ?? (child.type === NDialogPrimaryButton ? "Confirm" : "Cancel") };
|
|
2282
|
+
if (child.type === NDialogPrimaryButton) parsed.primaryButton = button;
|
|
2283
|
+
else parsed.secondaryButton = button;
|
|
2284
|
+
return;
|
|
2285
|
+
}
|
|
2286
|
+
body.push(child);
|
|
2287
|
+
});
|
|
2288
|
+
return { ...parsed, body };
|
|
2289
|
+
}
|
|
2250
2290
|
var dialogVariants = cva(
|
|
2251
2291
|
"flex flex-col w-full max-w-[95vw] h-full max-h-screen",
|
|
2252
2292
|
{
|
|
@@ -2488,7 +2528,7 @@ function DialogItem({ dialog, index, store }) {
|
|
|
2488
2528
|
loading: secondaryButton.loading,
|
|
2489
2529
|
loadingText: secondaryButton.loadingText,
|
|
2490
2530
|
form: secondaryButton.form,
|
|
2491
|
-
className: "w-auto",
|
|
2531
|
+
className: cn("w-auto", secondaryButton.className),
|
|
2492
2532
|
children: secondaryButton.text
|
|
2493
2533
|
}
|
|
2494
2534
|
),
|
|
@@ -2504,7 +2544,7 @@ function DialogItem({ dialog, index, store }) {
|
|
|
2504
2544
|
loading: primaryButton.loading,
|
|
2505
2545
|
loadingText: primaryButton.loadingText,
|
|
2506
2546
|
form: primaryButton.form,
|
|
2507
|
-
className: "w-auto",
|
|
2547
|
+
className: cn("w-auto", primaryButton.className),
|
|
2508
2548
|
children: primaryButton.text
|
|
2509
2549
|
}
|
|
2510
2550
|
)
|
|
@@ -2551,6 +2591,12 @@ function NDirectDialog({
|
|
|
2551
2591
|
closeOnPrimary = true,
|
|
2552
2592
|
closeOnSecondary = true
|
|
2553
2593
|
}) {
|
|
2594
|
+
const slots = parseDirectDialogSlots(children);
|
|
2595
|
+
const resolvedTitle = title ?? slots.header?.label ?? slots.header?.children;
|
|
2596
|
+
const resolvedDescription = description ?? slots.description?.label ?? slots.description?.children;
|
|
2597
|
+
const resolvedHeaderClassName = cn(slots.header?.className, headerClassName);
|
|
2598
|
+
const resolvedTitleClassName = cn(slots.header?.titleClassName, titleClassName);
|
|
2599
|
+
const resolvedDescriptionClassName = cn(slots.description?.className, descriptionClassName);
|
|
2554
2600
|
const [internalOpen, setInternalOpen] = React__default.useState(defaultOpen);
|
|
2555
2601
|
const [primaryLoading, setPrimaryLoading] = React__default.useState(false);
|
|
2556
2602
|
const isControlled = open !== void 0;
|
|
@@ -2561,14 +2607,14 @@ function NDirectDialog({
|
|
|
2561
2607
|
}
|
|
2562
2608
|
onOpenChange?.(nextOpen);
|
|
2563
2609
|
};
|
|
2564
|
-
const resolvedPrimaryButton = buildButtonConfig2(primaryButton, {
|
|
2610
|
+
const resolvedPrimaryButton = buildButtonConfig2(primaryButton ?? slots.primaryButton, {
|
|
2565
2611
|
text: "Confirm",
|
|
2566
2612
|
variant: "default",
|
|
2567
2613
|
loading: false,
|
|
2568
2614
|
disabled: false,
|
|
2569
2615
|
loadingText: "Processing..."
|
|
2570
2616
|
});
|
|
2571
|
-
const resolvedSecondaryButton = buildButtonConfig2(secondaryButton, {
|
|
2617
|
+
const resolvedSecondaryButton = buildButtonConfig2(secondaryButton ?? slots.secondaryButton, {
|
|
2572
2618
|
text: "Cancel",
|
|
2573
2619
|
variant: "outline",
|
|
2574
2620
|
loading: false,
|
|
@@ -2617,16 +2663,16 @@ function NDirectDialog({
|
|
|
2617
2663
|
DialogChrome,
|
|
2618
2664
|
{
|
|
2619
2665
|
pageHeader,
|
|
2620
|
-
title,
|
|
2621
|
-
description,
|
|
2666
|
+
title: resolvedTitle,
|
|
2667
|
+
description: resolvedDescription,
|
|
2622
2668
|
padding,
|
|
2623
2669
|
variant,
|
|
2624
|
-
headerClassName,
|
|
2625
|
-
titleClassName,
|
|
2626
|
-
descriptionClassName,
|
|
2670
|
+
headerClassName: resolvedHeaderClassName,
|
|
2671
|
+
titleClassName: resolvedTitleClassName,
|
|
2672
|
+
descriptionClassName: resolvedDescriptionClassName,
|
|
2627
2673
|
closeButtonClassName,
|
|
2628
2674
|
contentRef: setContentElement,
|
|
2629
|
-
children
|
|
2675
|
+
children: slots.body
|
|
2630
2676
|
}
|
|
2631
2677
|
),
|
|
2632
2678
|
/* @__PURE__ */ jsx(DialogFooter, { className: cn(!renderDialogButtons && "sr-only"), children: renderDialogButtons && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -2642,7 +2688,7 @@ function NDirectDialog({
|
|
|
2642
2688
|
loading: resolvedSecondaryButton.loading,
|
|
2643
2689
|
loadingText: resolvedSecondaryButton.loadingText,
|
|
2644
2690
|
form: resolvedSecondaryButton.form,
|
|
2645
|
-
className: "w-auto",
|
|
2691
|
+
className: cn("w-auto", resolvedSecondaryButton.className),
|
|
2646
2692
|
children: resolvedSecondaryButton.text
|
|
2647
2693
|
}
|
|
2648
2694
|
),
|
|
@@ -2658,7 +2704,7 @@ function NDirectDialog({
|
|
|
2658
2704
|
loading: isPrimaryLoading,
|
|
2659
2705
|
loadingText: resolvedPrimaryButton.loadingText,
|
|
2660
2706
|
form: resolvedPrimaryButton.form,
|
|
2661
|
-
className: "w-auto",
|
|
2707
|
+
className: cn("w-auto", resolvedPrimaryButton.className),
|
|
2662
2708
|
children: resolvedPrimaryButton.text
|
|
2663
2709
|
}
|
|
2664
2710
|
)
|
|
@@ -3005,6 +3051,23 @@ function useNajmPortalLayerStyles() {
|
|
|
3005
3051
|
document.head.appendChild(style);
|
|
3006
3052
|
}, []);
|
|
3007
3053
|
}
|
|
3054
|
+
function useDropdownSurfaceRecipe(slotName) {
|
|
3055
|
+
const recipe = useNajmComponentStyle("dropdown");
|
|
3056
|
+
const slot = recipe?.slots?.[slotName];
|
|
3057
|
+
const borderWidth = slot?.borderWidth ?? recipe?.borderWidth;
|
|
3058
|
+
const radius = resolveRadiusValue(slot?.radius ?? recipe?.radius);
|
|
3059
|
+
return {
|
|
3060
|
+
className: slot?.className,
|
|
3061
|
+
style: {
|
|
3062
|
+
...radius ? { borderRadius: radius } : {},
|
|
3063
|
+
...borderWidth !== void 0 ? {
|
|
3064
|
+
borderWidth,
|
|
3065
|
+
borderStyle: borderWidth === "0" ? "none" : "solid",
|
|
3066
|
+
borderColor: "var(--border)"
|
|
3067
|
+
} : {}
|
|
3068
|
+
}
|
|
3069
|
+
};
|
|
3070
|
+
}
|
|
3008
3071
|
function DropdownMenu({ ...props }) {
|
|
3009
3072
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
3010
3073
|
}
|
|
@@ -3038,7 +3101,8 @@ function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
|
|
|
3038
3101
|
}
|
|
3039
3102
|
);
|
|
3040
3103
|
}
|
|
3041
|
-
function DropdownMenuSubContent({ className, ...props }) {
|
|
3104
|
+
function DropdownMenuSubContent({ className, style, ...props }) {
|
|
3105
|
+
const surface = useDropdownSurfaceRecipe("subContent");
|
|
3042
3106
|
useNajmPortalLayerStyles();
|
|
3043
3107
|
return /* @__PURE__ */ jsx(
|
|
3044
3108
|
DropdownMenuPrimitive.SubContent,
|
|
@@ -3046,14 +3110,17 @@ function DropdownMenuSubContent({ className, ...props }) {
|
|
|
3046
3110
|
"data-slot": "dropdown-menu-sub-content",
|
|
3047
3111
|
className: cn(
|
|
3048
3112
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=top]:slide-in-from-bottom-2 data-[side=right]:slide-in-from-left-2 z-[10000] min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
3113
|
+
surface.className,
|
|
3049
3114
|
className
|
|
3050
3115
|
),
|
|
3116
|
+
style: { ...surface.style, ...style },
|
|
3051
3117
|
...props
|
|
3052
3118
|
}
|
|
3053
3119
|
);
|
|
3054
3120
|
}
|
|
3055
|
-
function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
3121
|
+
function DropdownMenuContent({ className, sideOffset = 4, style, ...props }) {
|
|
3056
3122
|
const container = React.useContext(NajmThemeContainerCtx);
|
|
3123
|
+
const surface = useDropdownSurfaceRecipe("content");
|
|
3057
3124
|
useNajmPortalLayerStyles();
|
|
3058
3125
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsx(
|
|
3059
3126
|
DropdownMenuPrimitive.Content,
|
|
@@ -3062,8 +3129,10 @@ function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
|
3062
3129
|
sideOffset,
|
|
3063
3130
|
className: cn(
|
|
3064
3131
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 z-[10000] min-w-[8rem] overflow-hidden rounded-md border border-border p-1 shadow-md",
|
|
3132
|
+
surface.className,
|
|
3065
3133
|
className
|
|
3066
3134
|
),
|
|
3135
|
+
style: { ...surface.style, ...style },
|
|
3067
3136
|
...props
|
|
3068
3137
|
}
|
|
3069
3138
|
) });
|
|
@@ -3179,8 +3248,20 @@ function SelectScrollUpButton({ className, ...props }) {
|
|
|
3179
3248
|
function SelectScrollDownButton({ className, ...props }) {
|
|
3180
3249
|
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, { "data-slot": "select-scroll-down-button", className: cn("flex cursor-default items-center justify-center py-1", className), ...props, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" }) });
|
|
3181
3250
|
}
|
|
3182
|
-
function SelectContent({ className, children, position = "popper", ...props }) {
|
|
3251
|
+
function SelectContent({ className, children, position = "popper", style, ...props }) {
|
|
3183
3252
|
const container = React.useContext(NajmThemeContainerCtx);
|
|
3253
|
+
const recipe = useNajmComponentStyle("select");
|
|
3254
|
+
const contentSlot = recipe?.slots?.content;
|
|
3255
|
+
const borderWidth = contentSlot?.borderWidth ?? recipe?.borderWidth;
|
|
3256
|
+
const radius = resolveRadiusValue(contentSlot?.radius ?? recipe?.radius);
|
|
3257
|
+
const recipeStyle = {
|
|
3258
|
+
...radius ? { borderRadius: radius } : {},
|
|
3259
|
+
...borderWidth !== void 0 ? {
|
|
3260
|
+
borderWidth,
|
|
3261
|
+
borderStyle: borderWidth === "0" ? "none" : "solid",
|
|
3262
|
+
borderColor: "var(--border)"
|
|
3263
|
+
} : {}
|
|
3264
|
+
};
|
|
3184
3265
|
useNajmPortalLayerStyles();
|
|
3185
3266
|
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsxs(
|
|
3186
3267
|
SelectPrimitive.Content,
|
|
@@ -3189,8 +3270,10 @@ function SelectContent({ className, children, position = "popper", ...props }) {
|
|
|
3189
3270
|
className: cn(
|
|
3190
3271
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 relative z-[10000] max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-hidden rounded-md shadow-md",
|
|
3191
3272
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1 w-[var(--radix-select-trigger-width)]",
|
|
3273
|
+
contentSlot?.className,
|
|
3192
3274
|
className
|
|
3193
3275
|
),
|
|
3276
|
+
style: { ...recipeStyle, ...style },
|
|
3194
3277
|
position,
|
|
3195
3278
|
...props,
|
|
3196
3279
|
children: [
|
|
@@ -11304,4 +11387,4 @@ function NInspectorSheet({ open, onClose, title, children }) {
|
|
|
11304
11387
|
] }) });
|
|
11305
11388
|
}
|
|
11306
11389
|
|
|
11307
|
-
export { Alert, NCard as AsyncCard, Avatar, AvatarFallback, AvatarGroup, AvatarImage, AvatarStatus, Badge, BaseInput, Button, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroupInput, CheckboxInput, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ColorArrayInput, ColorPickerInput, Combobox, ComboboxInput, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DateInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicArray_default as DynamicArray, EmojiInput, FileImportButton, FileInput, Form, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, IconButton, ImageInput, Indicator, Input, Label, LangInput, MultiSelectInput, NAJM_COMPONENT_NAMES, NAlert, NAppShell, NCard as NAsyncCard, NAvatar, NBadge, NBulkActionsBar, NButton, NCard, NCardAction, NCardFooter, NCommandPalette, NConfirmDialog, NContextMenu, NDataCardShell, NDeleteDialog, NDeleteDialogContent, NDetailCard, NDetailItem, NDetailList, NDialog, NEditorTabs, NEmptyState, NErrorBoundary, NErrorState, NFileBrowser, NFileTypeIcon, NFilterBar, NFolderIcon, NForm, NFormSectionHeader, NIcon, NIndicator, NInspectorSheet, NLoadingState, NMultiDialog, NNavbar, NPageHeader, NPageHeaderActions, NPageHeaderFilters, NPageHeaderTop, NPageLayout, NPortalScopeProvider, NProgress, NRowActions, NSection, NSectionHeader, NSectionInfo, NSectionWithInfo, NSheet, NSidebar, NSidebarContent, NSidebarFooter, NSidebarHeader, NSidebarItem, NSidebarLogo, NSidebarMobile, NSidebarSection, NSkeleton, NSkeletonCalendar, NSkeletonChart, NSkeletonDonut, NSkeletonEventList, NSkeletonWidget, NSkeletonWidgets, NSlider, NSmartPasteDialog, NSpinner, NStatCard, NStatCardSkeleton, Swap as NSwap, NTable, NTableCardRoot, NTableCards, NTableContent, NTableHeader, NTableJson, NTableLoadingSkeleton, NTablePagination, NTableRowSkeleton, NTableSkeleton, NTabs, NUploader, NViewBody, NViewToggle, NajmDesignProvider, NajmScroll, NajmThemeProvider, NativeSelect, NumberInput, PasswordInput, PhoneInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PrefixProvider, Progress, RADIUS_VALUE_MAP, RadioGroup2 as RadioGroup, RadioGroupInput, RadioGroupItem, RepeatingFields, ScrollArea, SearchField, SearchField as SearchInput, SegmentedControl, Select, SelectContent, SelectGroup, SelectInput, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SimpleTooltip, NSkeleton as Skeleton, Slider, SliderInput, StarRatingInput, StatusPill, StepIndicator, StepsHeader, StepsProgress, Swap, SwapIndeterminate, SwapOff, SwapOn, Switch, SwitchInput, TAB_COLORS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableStoreContext, Tabs, TabsContent, TabsList, TabsTrigger, TextAreaInput, TextInput, Textarea, TimeInput, Toaster, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, VariantProvider, WizardForm, alertVariants, avatarVariants, badgeColorVariants, badgeVariants, buildDefaultFileColumns, buttonVariants, cn, composePreset, createDialogStore, createTableStore, defineNajmDesignConfig, defineNajmThemeConfig, detectFormat, dialogVariants, formatColor, formatFileBytes, formatFileRelative, getIconColorProps, getNextEditorTabValue, indicatorVariants, inputBorderClasses, parseColor, parseNajmDesignConfig, parseNajmThemeConfig, resolvePreset, resolveRadiusValue, resolveSlot, resolveVariantAlias, sidebarBorderClasses, sliderVariants, stringifyNajmDesignConfig, stringifyNajmThemeConfig, surfaceBorderClasses, swapVariants, toPickerHex, toggleVariants, tooltipContentVariants, truncateByCharacters, useClickOutside, useContextMenu, useDebouncedValue, useDelayedLoading, useDialog, useDialogStore, useDynamicPageSize, useFormField, useFormSubmission, useInfiniteScroll, useKeyboard, useLocalStorageState, useNForm, useNPortalScope, useNajmAppearance, useNajmComponentStyle, useNajmDesign, usePrefix, useSelection, useStepNavigation, useStorageContextMenu, useStoreSync, useTable, useTableKeyboard, useTableStore, useVariant, useVariantPreset };
|
|
11390
|
+
export { Alert, NCard as AsyncCard, Avatar, AvatarFallback, AvatarGroup, AvatarImage, AvatarStatus, Badge, BaseInput, Button, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroupInput, CheckboxInput, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ColorArrayInput, ColorPickerInput, Combobox, ComboboxInput, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DateInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicArray_default as DynamicArray, EmojiInput, FileImportButton, FileInput, Form, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, IconButton, ImageInput, Indicator, Input, Label, LangInput, MultiSelectInput, NAJM_COMPONENT_NAMES, NAlert, NAppShell, NCard as NAsyncCard, NAvatar, NBadge, NBulkActionsBar, NButton, NCard, NCardAction, NCardFooter, NCommandPalette, NConfirmDialog, NContextMenu, NDataCardShell, NDeleteDialog, NDeleteDialogContent, NDetailCard, NDetailItem, NDetailList, NDialog, NDialogDescription, NDialogHeader, NDialogPrimaryButton, NDialogSecondaryButton, NEditorTabs, NEmptyState, NErrorBoundary, NErrorState, NFileBrowser, NFileTypeIcon, NFilterBar, NFolderIcon, NForm, NFormSectionHeader, NIcon, NIndicator, NInspectorSheet, NLoadingState, NMultiDialog, NNavbar, NPageHeader, NPageHeaderActions, NPageHeaderFilters, NPageHeaderTop, NPageLayout, NPortalScopeProvider, NProgress, NRowActions, NSection, NSectionHeader, NSectionInfo, NSectionWithInfo, NSheet, NSidebar, NSidebarContent, NSidebarFooter, NSidebarHeader, NSidebarItem, NSidebarLogo, NSidebarMobile, NSidebarSection, NSkeleton, NSkeletonCalendar, NSkeletonChart, NSkeletonDonut, NSkeletonEventList, NSkeletonWidget, NSkeletonWidgets, NSlider, NSmartPasteDialog, NSpinner, NStatCard, NStatCardSkeleton, Swap as NSwap, NTable, NTableCardRoot, NTableCards, NTableContent, NTableHeader, NTableJson, NTableLoadingSkeleton, NTablePagination, NTableRowSkeleton, NTableSkeleton, NTabs, NUploader, NViewBody, NViewToggle, NajmDesignProvider, NajmScroll, NajmThemeProvider, NativeSelect, NumberInput, PasswordInput, PhoneInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PrefixProvider, Progress, RADIUS_VALUE_MAP, RadioGroup2 as RadioGroup, RadioGroupInput, RadioGroupItem, RepeatingFields, ScrollArea, SearchField, SearchField as SearchInput, SegmentedControl, Select, SelectContent, SelectGroup, SelectInput, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SimpleTooltip, NSkeleton as Skeleton, Slider, SliderInput, StarRatingInput, StatusPill, StepIndicator, StepsHeader, StepsProgress, Swap, SwapIndeterminate, SwapOff, SwapOn, Switch, SwitchInput, TAB_COLORS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableStoreContext, Tabs, TabsContent, TabsList, TabsTrigger, TextAreaInput, TextInput, Textarea, TimeInput, Toaster, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, VariantProvider, WizardForm, alertVariants, avatarVariants, badgeColorVariants, badgeVariants, buildDefaultFileColumns, buttonVariants, cn, composePreset, createDialogStore, createTableStore, defineNajmDesignConfig, defineNajmThemeConfig, detectFormat, dialogVariants, formatColor, formatFileBytes, formatFileRelative, getIconColorProps, getNextEditorTabValue, indicatorVariants, inputBorderClasses, parseColor, parseNajmDesignConfig, parseNajmThemeConfig, resolvePreset, resolveRadiusValue, resolveSlot, resolveVariantAlias, sidebarBorderClasses, sliderVariants, stringifyNajmDesignConfig, stringifyNajmThemeConfig, surfaceBorderClasses, swapVariants, toPickerHex, toggleVariants, tooltipContentVariants, truncateByCharacters, useClickOutside, useContextMenu, useDebouncedValue, useDelayedLoading, useDialog, useDialogStore, useDynamicPageSize, useFormField, useFormSubmission, useInfiniteScroll, useKeyboard, useLocalStorageState, useNForm, useNPortalScope, useNajmAppearance, useNajmComponentStyle, useNajmDesign, usePrefix, useSelection, useStepNavigation, useStorageContextMenu, useStoreSync, useTable, useTableKeyboard, useTableStore, useVariant, useVariantPreset };
|
package/dist/json.mjs
CHANGED