@kingsimba/nc-ui 0.1.2 → 0.1.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/README.md +3 -46
- package/dist/{GeneratedIcons-nvLhDQM5.js → GeneratedIcons-BMopyrwd.js} +84 -42
- package/dist/GeneratedIcons-BMopyrwd.js.map +1 -0
- package/dist/GeneratedIcons-HAHchVYC.cjs +2 -0
- package/dist/GeneratedIcons-HAHchVYC.cjs.map +1 -0
- package/dist/icons.cjs +1 -1
- package/dist/icons.d.ts +10 -0
- package/dist/icons.js +17 -15
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +34 -5
- package/dist/index.js +1637 -3121
- package/dist/index.js.map +1 -1
- package/dist/styles.css +123 -0
- package/package.json +7 -4
- package/dist/GeneratedIcons-ngKoQh-9.cjs +0 -2
- package/dist/GeneratedIcons-ngKoQh-9.cjs.map +0 -1
- package/dist/GeneratedIcons-nvLhDQM5.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -145,12 +145,20 @@ export declare interface AppDialogProps {
|
|
|
145
145
|
export declare type AppI18nResources = Record<string, Record<string, unknown>>;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* AppPanel component - Renders the
|
|
148
|
+
* AppPanel component - Renders the panel that displays running apps.
|
|
149
149
|
* Each running app is rendered via AppContainer, but only the active app is visible.
|
|
150
|
-
*
|
|
151
|
-
* On desktop, the panel sits inline next to the main area.
|
|
150
|
+
* Layout positioning is controlled by the parent via style/className props.
|
|
152
151
|
*/
|
|
153
|
-
export declare function AppPanel(): JSX_2.Element;
|
|
152
|
+
export declare function AppPanel({ autoWidth, className, style }: AppPanelProps): JSX_2.Element;
|
|
153
|
+
|
|
154
|
+
export declare interface AppPanelProps {
|
|
155
|
+
/** When true, panel width is determined by the active app's registered width. When false, parent controls width via style/className. Default: true */
|
|
156
|
+
autoWidth?: boolean;
|
|
157
|
+
/** Additional CSS class names */
|
|
158
|
+
className?: string;
|
|
159
|
+
/** Custom styles (merged with internal styles, takes precedence) */
|
|
160
|
+
style?: default_2.CSSProperties;
|
|
161
|
+
}
|
|
154
162
|
|
|
155
163
|
/**
|
|
156
164
|
* Registry for all available applications.
|
|
@@ -548,7 +556,7 @@ declare interface HyperlinkProps {
|
|
|
548
556
|
size?: 'small' | 'default';
|
|
549
557
|
}
|
|
550
558
|
|
|
551
|
-
export declare function Input({ value, onChange, onEnter, onClear, placeholder, disabled, label, clearable, type, className, size, style, showPasswordToggle, multiline, rows, }: InputProps): JSX_2.Element;
|
|
559
|
+
export declare function Input({ value, onChange, onEnter, onClear, placeholder, disabled, label, clearable, type, className, size, style, showPasswordToggle, multiline, rows, validator, showErrorMessage, }: InputProps): JSX_2.Element;
|
|
552
560
|
|
|
553
561
|
export declare interface InputProps {
|
|
554
562
|
/** Current value of the input */
|
|
@@ -581,6 +589,10 @@ export declare interface InputProps {
|
|
|
581
589
|
multiline?: boolean;
|
|
582
590
|
/** Number of rows for multiline input */
|
|
583
591
|
rows?: number;
|
|
592
|
+
/** Validation function that returns an error message string if invalid, or null/undefined if valid */
|
|
593
|
+
validator?: (value: string) => string | null | undefined;
|
|
594
|
+
/** Whether to display the error message text (still shows red border when false) */
|
|
595
|
+
showErrorMessage?: boolean;
|
|
584
596
|
}
|
|
585
597
|
|
|
586
598
|
/**
|
|
@@ -635,6 +647,23 @@ export declare interface ListGroupProps {
|
|
|
635
647
|
style?: default_2.CSSProperties;
|
|
636
648
|
}
|
|
637
649
|
|
|
650
|
+
export declare function MonthRangePicker({ startMonth, endMonth, onChange, label, className, disabled, }: MonthRangePickerProps): JSX_2.Element;
|
|
651
|
+
|
|
652
|
+
export declare interface MonthRangePickerProps {
|
|
653
|
+
/** Start month value in YY-M, YY-MM, YYYY-M, or YYYY-MM format */
|
|
654
|
+
startMonth?: string;
|
|
655
|
+
/** End month value in YY-M, YY-MM, YYYY-M, or YYYY-MM format */
|
|
656
|
+
endMonth?: string;
|
|
657
|
+
/** Callback when the range changes */
|
|
658
|
+
onChange?: (startMonth: string, endMonth: string) => void;
|
|
659
|
+
/** Label text displayed above the picker */
|
|
660
|
+
label?: string;
|
|
661
|
+
/** Additional CSS class names */
|
|
662
|
+
className?: string;
|
|
663
|
+
/** Whether the picker is disabled */
|
|
664
|
+
disabled?: boolean;
|
|
665
|
+
}
|
|
666
|
+
|
|
638
667
|
export declare function MultiSelect({ values, onChange, options, placeholder, label }: MultiSelectProps): JSX_2.Element;
|
|
639
668
|
|
|
640
669
|
export declare interface MultiSelectProps {
|