@kingsimba/nc-ui 0.1.20 → 0.1.21
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 +17 -7
- package/dist/index.js +1020 -1012
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -276,9 +276,15 @@ export declare interface BatteryProps {
|
|
|
276
276
|
|
|
277
277
|
export declare type BatteryStatus = 'charging' | 'discharging' | 'full';
|
|
278
278
|
|
|
279
|
-
export declare function Button({ variant, block, size, className, disabled, textSelectable, loading, onClick, children, ...rest }: ButtonProps): JSX_2.Element;
|
|
279
|
+
export declare function Button({ variant, block, size, appearance, className, disabled, textSelectable, loading, onClick, children, ...rest }: ButtonProps): JSX_2.Element;
|
|
280
280
|
|
|
281
|
-
export declare function ButtonGroup<T extends string>({ value, onChange, options, disabled,
|
|
281
|
+
export declare function ButtonGroup<T extends string>({ value, onChange, options, disabled, size, }: ButtonGroupProps<T>): JSX_2.Element;
|
|
282
|
+
|
|
283
|
+
declare type ButtonGroupOption<T extends string> = {
|
|
284
|
+
key: T;
|
|
285
|
+
label: React.ReactNode;
|
|
286
|
+
disabled?: boolean;
|
|
287
|
+
};
|
|
282
288
|
|
|
283
289
|
export declare interface ButtonGroupProps<T extends string> {
|
|
284
290
|
/** Currently selected value */
|
|
@@ -286,11 +292,9 @@ export declare interface ButtonGroupProps<T extends string> {
|
|
|
286
292
|
/** Callback when selection changes */
|
|
287
293
|
onChange: (value: T) => void;
|
|
288
294
|
/** Available options */
|
|
289
|
-
options: readonly T[];
|
|
295
|
+
options: readonly ButtonGroupOption<T>[];
|
|
290
296
|
/** Disable all buttons */
|
|
291
297
|
disabled?: boolean;
|
|
292
|
-
/** Custom labels for options */
|
|
293
|
-
labels?: Partial<Record<T, string>>;
|
|
294
298
|
/** Size variant */
|
|
295
299
|
size?: ButtonGroupSize;
|
|
296
300
|
}
|
|
@@ -301,6 +305,8 @@ declare type ButtonProps = default_2.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
301
305
|
variant?: ButtonVariant;
|
|
302
306
|
block?: boolean;
|
|
303
307
|
size?: 'default' | 'small' | 'large';
|
|
308
|
+
/** Visual appearance of the button surface */
|
|
309
|
+
appearance?: 'default' | 'transparent';
|
|
304
310
|
textSelectable?: boolean;
|
|
305
311
|
loading?: boolean;
|
|
306
312
|
};
|
|
@@ -345,7 +351,7 @@ declare interface CloseButtonProps {
|
|
|
345
351
|
|
|
346
352
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
347
353
|
|
|
348
|
-
export declare function ComboBox({ value, onChange, placeholder, options, disabled, label, clearable, allowTyping, placement, size, style, className, }: ComboBoxProps): JSX_2.Element;
|
|
354
|
+
export declare function ComboBox({ value, onChange, placeholder, options, disabled, label, clearable, allowTyping, placement, size, appearance, style, className, }: ComboBoxProps): JSX_2.Element;
|
|
349
355
|
|
|
350
356
|
export declare type ComboBoxOption = {
|
|
351
357
|
label: string;
|
|
@@ -374,6 +380,8 @@ export declare interface ComboBoxProps {
|
|
|
374
380
|
placement?: 'top' | 'bottom';
|
|
375
381
|
/** Size variant */
|
|
376
382
|
size?: 'default' | 'small';
|
|
383
|
+
/** Visual appearance of the closed control */
|
|
384
|
+
appearance?: 'default' | 'transparent';
|
|
377
385
|
/** Custom styles */
|
|
378
386
|
style?: default_2.CSSProperties;
|
|
379
387
|
/** Additional CSS class names */
|
|
@@ -584,7 +592,7 @@ declare interface HyperlinkProps {
|
|
|
584
592
|
size?: 'small' | 'default';
|
|
585
593
|
}
|
|
586
594
|
|
|
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;
|
|
595
|
+
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
596
|
|
|
589
597
|
export declare interface InputProps {
|
|
590
598
|
/** Current value of the input (controlled mode) */
|
|
@@ -613,6 +621,8 @@ export declare interface InputProps {
|
|
|
613
621
|
size?: 'default' | 'small';
|
|
614
622
|
/** Additional inline styles */
|
|
615
623
|
style?: default_2.CSSProperties;
|
|
624
|
+
/** Custom icon to display on the left side of the input */
|
|
625
|
+
leadingIcon?: default_2.ReactNode;
|
|
616
626
|
/** Whether to show a toggle button for password visibility (only works when type is 'password') */
|
|
617
627
|
showPasswordToggle?: boolean;
|
|
618
628
|
/** Whether to use a textarea for multiline input */
|