@nexushub/client 0.4.3 → 0.4.5

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/react.d.cts CHANGED
@@ -346,4 +346,143 @@ declare const AuthProvider: ({ children, config, }: {
346
346
  }) => react_jsx_runtime.JSX.Element;
347
347
  declare const useNexusAuth: () => AuthContextType;
348
348
 
349
- export { AuthProvider, NexusProvider, useNexus, useNexusAnalytics, useNexusAuth, useNexusLiveFeed };
349
+ interface NexusRichTextProps {
350
+ value: string;
351
+ className?: string;
352
+ }
353
+ declare function NexusRichText({ value, className }: NexusRichTextProps): react_jsx_runtime.JSX.Element | null;
354
+ interface NexusLongTextProps {
355
+ value: string;
356
+ className?: string;
357
+ }
358
+ declare function NexusLongText({ value, className }: NexusLongTextProps): react_jsx_runtime.JSX.Element | null;
359
+ interface NexusIconProps {
360
+ name: string;
361
+ className?: string;
362
+ size?: number;
363
+ strokeWidth?: number;
364
+ }
365
+ declare function NexusIcon({ name, className, size, strokeWidth, }: NexusIconProps): react_jsx_runtime.JSX.Element | null;
366
+ interface NexusImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
367
+ value: string | {
368
+ url: string;
369
+ alt?: string;
370
+ } | null;
371
+ }
372
+ declare function NexusImage({ value, className, alt, ...props }: NexusImageProps): react_jsx_runtime.JSX.Element | null;
373
+ interface NexusGalleryProps {
374
+ value: Array<string | {
375
+ url: string;
376
+ alt?: string;
377
+ }> | null;
378
+ className?: string;
379
+ imageClassName?: string;
380
+ }
381
+ declare function NexusGallery({ value, className, imageClassName, }: NexusGalleryProps): react_jsx_runtime.JSX.Element | null;
382
+ interface NexusVideoProps {
383
+ value: string | null;
384
+ className?: string;
385
+ autoplay?: boolean;
386
+ }
387
+ declare function NexusVideo({ value, className, autoplay, }: NexusVideoProps): react_jsx_runtime.JSX.Element | null;
388
+ interface NexusMapProps {
389
+ value: {
390
+ lat: number;
391
+ lng: number;
392
+ address?: string;
393
+ } | null;
394
+ className?: string;
395
+ }
396
+ declare function NexusMap({ value, className }: NexusMapProps): react_jsx_runtime.JSX.Element | null;
397
+ interface NexusColorProps {
398
+ value: string | null;
399
+ className?: string;
400
+ showHexLabel?: boolean;
401
+ }
402
+ /**
403
+ * Renders a color value as a styled swatch with optional HEX/RGB label copy-trigger.
404
+ */
405
+ declare function NexusColor({ value, className, showHexLabel, }: NexusColorProps): react_jsx_runtime.JSX.Element | null;
406
+ interface NexusGradientProps {
407
+ value: string | null;
408
+ children?: React.ReactNode;
409
+ className?: string;
410
+ asTextMask?: boolean;
411
+ }
412
+ /**
413
+ * Renders a container or text utilizing a CSS background-gradient.
414
+ * supporting text-clip masks (e.g. gradient headings).
415
+ */
416
+ declare function NexusGradient({ value, children, className, asTextMask, }: NexusGradientProps): react_jsx_runtime.JSX.Element;
417
+ interface NexusAddressProps {
418
+ value: {
419
+ street?: string;
420
+ city?: string;
421
+ state?: string;
422
+ postalCode?: string;
423
+ country?: string;
424
+ } | null;
425
+ className?: string;
426
+ }
427
+ /**
428
+ * Formats structured location address payloads into an elegant micro-card.
429
+ */
430
+ declare function NexusAddress({ value, className }: NexusAddressProps): react_jsx_runtime.JSX.Element | null;
431
+ interface NexusKeyValueProps {
432
+ value: Record<string, string> | null;
433
+ className?: string;
434
+ }
435
+ /**
436
+ * Renders arbitrary specifications or metadata maps inside an elegant tabular grid.
437
+ */
438
+ declare function NexusKeyValue({ value, className }: NexusKeyValueProps): react_jsx_runtime.JSX.Element | null;
439
+ interface NexusTagsProps {
440
+ value: string[] | null;
441
+ className?: string;
442
+ badgeClassName?: string;
443
+ }
444
+ /**
445
+ * Iterates and renders arrays or tags as styled status badges.
446
+ */
447
+ declare function NexusTags({ value, className, badgeClassName, }: NexusTagsProps): react_jsx_runtime.JSX.Element | null;
448
+ interface NexusProgressProps {
449
+ value: number | null;
450
+ max?: number;
451
+ className?: string;
452
+ color?: string;
453
+ }
454
+ /**
455
+ * Renders progress fields or percent ratings inside a smooth horizontal bar.
456
+ */
457
+ declare function NexusProgress({ value, max, className, color, }: NexusProgressProps): react_jsx_runtime.JSX.Element | null;
458
+ interface NexusBlendContainerProps {
459
+ mode: string | null;
460
+ children: React.ReactNode;
461
+ className?: string;
462
+ }
463
+ /**
464
+ * Wraps dynamic components to apply a specified mix-blend-mode container safely.
465
+ */
466
+ declare function NexusBlendContainer({ mode, children, className, }: NexusBlendContainerProps): react_jsx_runtime.JSX.Element;
467
+ interface NexusCodeProps {
468
+ value: string | null;
469
+ language?: string;
470
+ className?: string;
471
+ showLineNumbers?: boolean;
472
+ }
473
+ /**
474
+ * Renders scrollable JSON, script contents, or code files with an instant Copy button.
475
+ */
476
+ declare function NexusCode({ value, language, className, showLineNumbers, }: NexusCodeProps): react_jsx_runtime.JSX.Element | null;
477
+ interface NexusBooleanProps {
478
+ value: boolean | null;
479
+ className?: string;
480
+ trueLabel?: string;
481
+ falseLabel?: string;
482
+ }
483
+ /**
484
+ * Renders toggles or boolean validations as a styled linter-safe status badge.
485
+ */
486
+ declare function NexusBoolean({ value, className, trueLabel, falseLabel, }: NexusBooleanProps): react_jsx_runtime.JSX.Element | null;
487
+
488
+ export { AuthProvider, NexusAddress, type NexusAddressProps, NexusBlendContainer, type NexusBlendContainerProps, NexusBoolean, type NexusBooleanProps, NexusCode, type NexusCodeProps, NexusColor, type NexusColorProps, NexusGallery, type NexusGalleryProps, NexusGradient, type NexusGradientProps, NexusIcon, type NexusIconProps, NexusImage, type NexusImageProps, NexusKeyValue, type NexusKeyValueProps, NexusLongText, type NexusLongTextProps, NexusMap, type NexusMapProps, NexusProgress, type NexusProgressProps, NexusProvider, NexusRichText, type NexusRichTextProps, NexusTags, type NexusTagsProps, NexusVideo, type NexusVideoProps, useNexus, useNexusAnalytics, useNexusAuth, useNexusLiveFeed };
package/dist/react.d.ts CHANGED
@@ -346,4 +346,143 @@ declare const AuthProvider: ({ children, config, }: {
346
346
  }) => react_jsx_runtime.JSX.Element;
347
347
  declare const useNexusAuth: () => AuthContextType;
348
348
 
349
- export { AuthProvider, NexusProvider, useNexus, useNexusAnalytics, useNexusAuth, useNexusLiveFeed };
349
+ interface NexusRichTextProps {
350
+ value: string;
351
+ className?: string;
352
+ }
353
+ declare function NexusRichText({ value, className }: NexusRichTextProps): react_jsx_runtime.JSX.Element | null;
354
+ interface NexusLongTextProps {
355
+ value: string;
356
+ className?: string;
357
+ }
358
+ declare function NexusLongText({ value, className }: NexusLongTextProps): react_jsx_runtime.JSX.Element | null;
359
+ interface NexusIconProps {
360
+ name: string;
361
+ className?: string;
362
+ size?: number;
363
+ strokeWidth?: number;
364
+ }
365
+ declare function NexusIcon({ name, className, size, strokeWidth, }: NexusIconProps): react_jsx_runtime.JSX.Element | null;
366
+ interface NexusImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
367
+ value: string | {
368
+ url: string;
369
+ alt?: string;
370
+ } | null;
371
+ }
372
+ declare function NexusImage({ value, className, alt, ...props }: NexusImageProps): react_jsx_runtime.JSX.Element | null;
373
+ interface NexusGalleryProps {
374
+ value: Array<string | {
375
+ url: string;
376
+ alt?: string;
377
+ }> | null;
378
+ className?: string;
379
+ imageClassName?: string;
380
+ }
381
+ declare function NexusGallery({ value, className, imageClassName, }: NexusGalleryProps): react_jsx_runtime.JSX.Element | null;
382
+ interface NexusVideoProps {
383
+ value: string | null;
384
+ className?: string;
385
+ autoplay?: boolean;
386
+ }
387
+ declare function NexusVideo({ value, className, autoplay, }: NexusVideoProps): react_jsx_runtime.JSX.Element | null;
388
+ interface NexusMapProps {
389
+ value: {
390
+ lat: number;
391
+ lng: number;
392
+ address?: string;
393
+ } | null;
394
+ className?: string;
395
+ }
396
+ declare function NexusMap({ value, className }: NexusMapProps): react_jsx_runtime.JSX.Element | null;
397
+ interface NexusColorProps {
398
+ value: string | null;
399
+ className?: string;
400
+ showHexLabel?: boolean;
401
+ }
402
+ /**
403
+ * Renders a color value as a styled swatch with optional HEX/RGB label copy-trigger.
404
+ */
405
+ declare function NexusColor({ value, className, showHexLabel, }: NexusColorProps): react_jsx_runtime.JSX.Element | null;
406
+ interface NexusGradientProps {
407
+ value: string | null;
408
+ children?: React.ReactNode;
409
+ className?: string;
410
+ asTextMask?: boolean;
411
+ }
412
+ /**
413
+ * Renders a container or text utilizing a CSS background-gradient.
414
+ * supporting text-clip masks (e.g. gradient headings).
415
+ */
416
+ declare function NexusGradient({ value, children, className, asTextMask, }: NexusGradientProps): react_jsx_runtime.JSX.Element;
417
+ interface NexusAddressProps {
418
+ value: {
419
+ street?: string;
420
+ city?: string;
421
+ state?: string;
422
+ postalCode?: string;
423
+ country?: string;
424
+ } | null;
425
+ className?: string;
426
+ }
427
+ /**
428
+ * Formats structured location address payloads into an elegant micro-card.
429
+ */
430
+ declare function NexusAddress({ value, className }: NexusAddressProps): react_jsx_runtime.JSX.Element | null;
431
+ interface NexusKeyValueProps {
432
+ value: Record<string, string> | null;
433
+ className?: string;
434
+ }
435
+ /**
436
+ * Renders arbitrary specifications or metadata maps inside an elegant tabular grid.
437
+ */
438
+ declare function NexusKeyValue({ value, className }: NexusKeyValueProps): react_jsx_runtime.JSX.Element | null;
439
+ interface NexusTagsProps {
440
+ value: string[] | null;
441
+ className?: string;
442
+ badgeClassName?: string;
443
+ }
444
+ /**
445
+ * Iterates and renders arrays or tags as styled status badges.
446
+ */
447
+ declare function NexusTags({ value, className, badgeClassName, }: NexusTagsProps): react_jsx_runtime.JSX.Element | null;
448
+ interface NexusProgressProps {
449
+ value: number | null;
450
+ max?: number;
451
+ className?: string;
452
+ color?: string;
453
+ }
454
+ /**
455
+ * Renders progress fields or percent ratings inside a smooth horizontal bar.
456
+ */
457
+ declare function NexusProgress({ value, max, className, color, }: NexusProgressProps): react_jsx_runtime.JSX.Element | null;
458
+ interface NexusBlendContainerProps {
459
+ mode: string | null;
460
+ children: React.ReactNode;
461
+ className?: string;
462
+ }
463
+ /**
464
+ * Wraps dynamic components to apply a specified mix-blend-mode container safely.
465
+ */
466
+ declare function NexusBlendContainer({ mode, children, className, }: NexusBlendContainerProps): react_jsx_runtime.JSX.Element;
467
+ interface NexusCodeProps {
468
+ value: string | null;
469
+ language?: string;
470
+ className?: string;
471
+ showLineNumbers?: boolean;
472
+ }
473
+ /**
474
+ * Renders scrollable JSON, script contents, or code files with an instant Copy button.
475
+ */
476
+ declare function NexusCode({ value, language, className, showLineNumbers, }: NexusCodeProps): react_jsx_runtime.JSX.Element | null;
477
+ interface NexusBooleanProps {
478
+ value: boolean | null;
479
+ className?: string;
480
+ trueLabel?: string;
481
+ falseLabel?: string;
482
+ }
483
+ /**
484
+ * Renders toggles or boolean validations as a styled linter-safe status badge.
485
+ */
486
+ declare function NexusBoolean({ value, className, trueLabel, falseLabel, }: NexusBooleanProps): react_jsx_runtime.JSX.Element | null;
487
+
488
+ export { AuthProvider, NexusAddress, type NexusAddressProps, NexusBlendContainer, type NexusBlendContainerProps, NexusBoolean, type NexusBooleanProps, NexusCode, type NexusCodeProps, NexusColor, type NexusColorProps, NexusGallery, type NexusGalleryProps, NexusGradient, type NexusGradientProps, NexusIcon, type NexusIconProps, NexusImage, type NexusImageProps, NexusKeyValue, type NexusKeyValueProps, NexusLongText, type NexusLongTextProps, NexusMap, type NexusMapProps, NexusProgress, type NexusProgressProps, NexusProvider, NexusRichText, type NexusRichTextProps, NexusTags, type NexusTagsProps, NexusVideo, type NexusVideoProps, useNexus, useNexusAnalytics, useNexusAuth, useNexusLiveFeed };