@kingsimba/nc-ui 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -533,12 +533,6 @@ declare interface EditButtonProps {
533
533
  'aria-label'?: string;
534
534
  }
535
535
 
536
- /**
537
- * Get the current locale.
538
- * Returns manual locale if set, otherwise detects from HTML lang.
539
- */
540
- export declare function getLocale(): SupportedLocale;
541
-
542
536
  /**
543
537
  * A reusable hyperlink component styled as text with primary color.
544
538
  * Useful for text-based actions that look like links.
@@ -554,7 +548,7 @@ declare interface HyperlinkProps {
554
548
  size?: 'small' | 'default';
555
549
  }
556
550
 
557
- export declare function Input({ value, onChange, onEnter, onClear, placeholder, disabled, label, clearable, type, className, size, style, showPasswordToggle, }: InputProps): JSX_2.Element;
551
+ export declare function Input({ value, onChange, onEnter, onClear, placeholder, disabled, label, clearable, type, className, size, style, showPasswordToggle, multiline, rows, }: InputProps): JSX_2.Element;
558
552
 
559
553
  export declare interface InputProps {
560
554
  /** Current value of the input */
@@ -583,6 +577,10 @@ export declare interface InputProps {
583
577
  style?: default_2.CSSProperties;
584
578
  /** Whether to show a toggle button for password visibility (only works when type is 'password') */
585
579
  showPasswordToggle?: boolean;
580
+ /** Whether to use a textarea for multiline input */
581
+ multiline?: boolean;
582
+ /** Number of rows for multiline input */
583
+ rows?: number;
586
584
  }
587
585
 
588
586
  /**
@@ -712,6 +710,29 @@ export declare interface NavViewContextValue {
712
710
  clearToolbar: () => void;
713
711
  }
714
712
 
713
+ declare function Notification_2({ notification }: NotificationProps): JSX_2.Element;
714
+ export { Notification_2 as Notification }
715
+
716
+ export declare function NotificationContainer(): JSX_2.Element;
717
+
718
+ export declare const notificationManager: {
719
+ show: (notification: Omit<NotificationType, "id">) => string;
720
+ };
721
+
722
+ declare interface NotificationProps {
723
+ notification: NotificationType;
724
+ }
725
+
726
+ export declare interface NotificationType {
727
+ id: string;
728
+ title?: string;
729
+ message: string;
730
+ type?: 'warning' | 'danger' | 'success' | null;
731
+ dismissible?: boolean;
732
+ lastingTime?: number;
733
+ isRemoving?: boolean;
734
+ }
735
+
715
736
  export declare function NumberInput({ value, onChange, min, max, step, label, disabled, size }: NumberInputProps): JSX_2.Element;
716
737
 
717
738
  export declare interface NumberInputProps {
@@ -838,13 +859,6 @@ export declare const runningAppsStore: RunningAppsStore;
838
859
  */
839
860
  export declare function setAppInUrl(appId: string): void;
840
861
 
841
- /**
842
- * Set the locale for nc-ui components manually.
843
- * Pass `null` to use auto-detection from HTML lang attribute.
844
- * @param locale - One of: 'en', 'zh', 'de', 'th', 'es', or null for auto
845
- */
846
- export declare function setLocale(locale: SupportedLocale | null): void;
847
-
848
862
  export declare function Slider({ value, onChange, min, max, step, label, disabled, showValue, formatValue, width, }: SliderProps): JSX_2.Element;
849
863
 
850
864
  export declare interface SliderProps {
@@ -870,22 +884,7 @@ export declare interface SliderProps {
870
884
  width?: number | string;
871
885
  }
872
886
 
873
- /**
874
- * Simple built-in localization for nc-ui components.
875
- * Supports: en, zh, de, th, es
876
- *
877
- * By default, auto-detects locale from document.documentElement.lang.
878
- * Can be manually overridden with setLocale().
879
- */
880
- export declare type SupportedLocale = 'en' | 'zh' | 'de' | 'th' | 'es';
881
-
882
- /**
883
- * Get a translated string by key.
884
- * Falls back to English if key not found.
885
- */
886
- export declare function t(key: string): string;
887
-
888
- export declare function Tabs({ tabs, active, onChange, className, toolbar, multiline, style }: TabsProps): JSX_2.Element;
887
+ export declare function Tabs({ tabs, active, onChange, className, toolbar, multiline, orientation, style }: TabsProps): JSX_2.Element;
889
888
 
890
889
  export declare interface TabsProps {
891
890
  /** Array of tab labels */
@@ -900,6 +899,8 @@ export declare interface TabsProps {
900
899
  toolbar?: default_2.ReactNode;
901
900
  /** Whether tabs should wrap to multiple lines */
902
901
  multiline?: boolean;
902
+ /** Tab orientation: horizontal (default), verticalLeft, or verticalRight */
903
+ orientation?: 'horizontal' | 'verticalLeft' | 'verticalRight';
903
904
  /** Additional inline styles */
904
905
  style?: default_2.CSSProperties;
905
906
  }