@kingsimba/nc-ui 0.1.20 → 0.1.22
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.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +20 -8
- package/dist/index.js +1129 -1117
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -235,13 +235,15 @@ export declare const appStateStore: AppStateStore;
|
|
|
235
235
|
* Displays pinned app icons that are always visible, plus any running non-pinned apps.
|
|
236
236
|
* Clicking an icon launches the app or toggles its active state if already running.
|
|
237
237
|
*/
|
|
238
|
-
export declare function AppTaskbar({ pinnedAppIds, className }: AppTaskbarProps): JSX_2.Element;
|
|
238
|
+
export declare function AppTaskbar({ pinnedAppIds, className, showIndicators, }: AppTaskbarProps): JSX_2.Element;
|
|
239
239
|
|
|
240
240
|
export declare interface AppTaskbarProps {
|
|
241
241
|
/** Array of app IDs to pin to the taskbar (always visible) */
|
|
242
242
|
pinnedAppIds: string[];
|
|
243
243
|
/** Optional className for the taskbar container */
|
|
244
244
|
className?: string;
|
|
245
|
+
/** Whether to show the running and active indicator beneath app icons */
|
|
246
|
+
showIndicators?: boolean;
|
|
245
247
|
}
|
|
246
248
|
|
|
247
249
|
/**
|
|
@@ -276,9 +278,15 @@ export declare interface BatteryProps {
|
|
|
276
278
|
|
|
277
279
|
export declare type BatteryStatus = 'charging' | 'discharging' | 'full';
|
|
278
280
|
|
|
279
|
-
export declare function Button({ variant, block, size, className, disabled, textSelectable, loading, onClick, children, ...rest }: ButtonProps): JSX_2.Element;
|
|
281
|
+
export declare function Button({ variant, block, size, appearance, className, disabled, textSelectable, loading, onClick, children, ...rest }: ButtonProps): JSX_2.Element;
|
|
280
282
|
|
|
281
|
-
export declare function ButtonGroup<T extends string>({ value, onChange, options, disabled,
|
|
283
|
+
export declare function ButtonGroup<T extends string>({ value, onChange, options, disabled, size, }: ButtonGroupProps<T>): JSX_2.Element;
|
|
284
|
+
|
|
285
|
+
declare type ButtonGroupOption<T extends string> = {
|
|
286
|
+
key: T;
|
|
287
|
+
label: React.ReactNode;
|
|
288
|
+
disabled?: boolean;
|
|
289
|
+
};
|
|
282
290
|
|
|
283
291
|
export declare interface ButtonGroupProps<T extends string> {
|
|
284
292
|
/** Currently selected value */
|
|
@@ -286,11 +294,9 @@ export declare interface ButtonGroupProps<T extends string> {
|
|
|
286
294
|
/** Callback when selection changes */
|
|
287
295
|
onChange: (value: T) => void;
|
|
288
296
|
/** Available options */
|
|
289
|
-
options: readonly T[];
|
|
297
|
+
options: readonly ButtonGroupOption<T>[];
|
|
290
298
|
/** Disable all buttons */
|
|
291
299
|
disabled?: boolean;
|
|
292
|
-
/** Custom labels for options */
|
|
293
|
-
labels?: Partial<Record<T, string>>;
|
|
294
300
|
/** Size variant */
|
|
295
301
|
size?: ButtonGroupSize;
|
|
296
302
|
}
|
|
@@ -301,6 +307,8 @@ declare type ButtonProps = default_2.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
301
307
|
variant?: ButtonVariant;
|
|
302
308
|
block?: boolean;
|
|
303
309
|
size?: 'default' | 'small' | 'large';
|
|
310
|
+
/** Visual appearance of the button surface */
|
|
311
|
+
appearance?: 'default' | 'transparent';
|
|
304
312
|
textSelectable?: boolean;
|
|
305
313
|
loading?: boolean;
|
|
306
314
|
};
|
|
@@ -345,7 +353,7 @@ declare interface CloseButtonProps {
|
|
|
345
353
|
|
|
346
354
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
347
355
|
|
|
348
|
-
export declare function ComboBox({ value, onChange, placeholder, options, disabled, label, clearable, allowTyping, placement, size, style, className, }: ComboBoxProps): JSX_2.Element;
|
|
356
|
+
export declare function ComboBox({ value, onChange, placeholder, options, disabled, label, clearable, allowTyping, placement, size, appearance, style, className, }: ComboBoxProps): JSX_2.Element;
|
|
349
357
|
|
|
350
358
|
export declare type ComboBoxOption = {
|
|
351
359
|
label: string;
|
|
@@ -374,6 +382,8 @@ export declare interface ComboBoxProps {
|
|
|
374
382
|
placement?: 'top' | 'bottom';
|
|
375
383
|
/** Size variant */
|
|
376
384
|
size?: 'default' | 'small';
|
|
385
|
+
/** Visual appearance of the closed control */
|
|
386
|
+
appearance?: 'default' | 'transparent';
|
|
377
387
|
/** Custom styles */
|
|
378
388
|
style?: default_2.CSSProperties;
|
|
379
389
|
/** Additional CSS class names */
|
|
@@ -584,7 +594,7 @@ declare interface HyperlinkProps {
|
|
|
584
594
|
size?: 'small' | 'default';
|
|
585
595
|
}
|
|
586
596
|
|
|
587
|
-
export declare function Input({ value: controlledValue, defaultValue, onChange, onEnter, onClear, placeholder, disabled, label, clearable, type, className, size, style, showPasswordToggle, multiline, rows, validator, showErrorMessage, }: InputProps): JSX_2.Element;
|
|
597
|
+
export declare function Input({ value: controlledValue, defaultValue, onChange, onEnter, onClear, placeholder, disabled, label, clearable, type, className, size, style, leadingIcon, showPasswordToggle, multiline, rows, validator, showErrorMessage, }: InputProps): JSX_2.Element;
|
|
588
598
|
|
|
589
599
|
export declare interface InputProps {
|
|
590
600
|
/** Current value of the input (controlled mode) */
|
|
@@ -613,6 +623,8 @@ export declare interface InputProps {
|
|
|
613
623
|
size?: 'default' | 'small';
|
|
614
624
|
/** Additional inline styles */
|
|
615
625
|
style?: default_2.CSSProperties;
|
|
626
|
+
/** Custom icon to display on the left side of the input */
|
|
627
|
+
leadingIcon?: default_2.ReactNode;
|
|
616
628
|
/** Whether to show a toggle button for password visibility (only works when type is 'password') */
|
|
617
629
|
showPasswordToggle?: boolean;
|
|
618
630
|
/** Whether to use a textarea for multiline input */
|