@officesdk/design 0.1.1 → 0.1.3
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/components/{index.d.ts → cjs/index.d.ts} +74 -2
- package/dist/components/{index.js → cjs/index.js} +257 -177
- package/dist/components/cjs/index.js.map +1 -0
- package/dist/components/{index.d.mts → esm/index.d.ts} +74 -2
- package/dist/components/{index.mjs → esm/index.js} +198 -119
- package/dist/components/esm/index.js.map +1 -0
- package/dist/icons/cjs/index.js.map +1 -0
- package/dist/icons/{index.mjs → esm/index.js} +2 -2
- package/dist/icons/esm/index.js.map +1 -0
- package/dist/theme/cjs/index.js.map +1 -0
- package/dist/theme/{index.mjs → esm/index.js} +2 -2
- package/dist/theme/esm/index.js.map +1 -0
- package/dist/utils/cjs/index.js.map +1 -0
- package/dist/utils/{index.mjs → esm/index.js} +2 -2
- package/dist/utils/esm/index.js.map +1 -0
- package/package.json +20 -20
- package/dist/components/index.js.map +0 -1
- package/dist/components/index.mjs.map +0 -1
- package/dist/icons/index.js.map +0 -1
- package/dist/icons/index.mjs.map +0 -1
- package/dist/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/index.mjs.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs.map +0 -1
- /package/dist/icons/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/icons/{index.js → cjs/index.js} +0 -0
- /package/dist/icons/{index.d.mts → esm/index.d.ts} +0 -0
- /package/dist/theme/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/theme/{index.js → cjs/index.js} +0 -0
- /package/dist/theme/{index.d.mts → esm/index.d.ts} +0 -0
- /package/dist/utils/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/utils/{index.js → cjs/index.js} +0 -0
- /package/dist/utils/{index.d.mts → esm/index.d.mts} +0 -0
|
@@ -412,6 +412,78 @@ interface SearchInputProps extends Omit<InputProps, 'size' | 'prefixNode'> {
|
|
|
412
412
|
*/
|
|
413
413
|
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
414
414
|
|
|
415
|
+
interface NumberInputProps {
|
|
416
|
+
/**
|
|
417
|
+
* Current value
|
|
418
|
+
*/
|
|
419
|
+
value?: number;
|
|
420
|
+
/**
|
|
421
|
+
* Default value
|
|
422
|
+
*/
|
|
423
|
+
defaultValue?: number;
|
|
424
|
+
/**
|
|
425
|
+
* Minimum value
|
|
426
|
+
*/
|
|
427
|
+
min?: number;
|
|
428
|
+
/**
|
|
429
|
+
* Maximum value
|
|
430
|
+
*/
|
|
431
|
+
max?: number;
|
|
432
|
+
/**
|
|
433
|
+
* Step increment/decrement
|
|
434
|
+
*/
|
|
435
|
+
step?: number;
|
|
436
|
+
/**
|
|
437
|
+
* Size variant
|
|
438
|
+
*/
|
|
439
|
+
size?: 'small' | 'large';
|
|
440
|
+
/**
|
|
441
|
+
* Whether the input is disabled
|
|
442
|
+
*/
|
|
443
|
+
disabled?: boolean;
|
|
444
|
+
/**
|
|
445
|
+
* Whether to show alert state (red border)
|
|
446
|
+
*/
|
|
447
|
+
alert?: boolean;
|
|
448
|
+
/**
|
|
449
|
+
* Number of decimal places
|
|
450
|
+
*/
|
|
451
|
+
precision?: number;
|
|
452
|
+
/**
|
|
453
|
+
* Format the display value
|
|
454
|
+
*/
|
|
455
|
+
formatter?: (value: number) => string;
|
|
456
|
+
/**
|
|
457
|
+
* Parse the input value
|
|
458
|
+
*/
|
|
459
|
+
parser?: (displayValue: string) => number;
|
|
460
|
+
/**
|
|
461
|
+
* Unit text to display after the input
|
|
462
|
+
*/
|
|
463
|
+
unit?: string;
|
|
464
|
+
/**
|
|
465
|
+
* Callback when value changes
|
|
466
|
+
*/
|
|
467
|
+
onChange?: (value: number | null) => void;
|
|
468
|
+
/**
|
|
469
|
+
* Custom className
|
|
470
|
+
*/
|
|
471
|
+
className?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Custom style
|
|
474
|
+
*/
|
|
475
|
+
style?: React.CSSProperties;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* NumberInput Component
|
|
479
|
+
*
|
|
480
|
+
* A numeric input with increment/decrement buttons
|
|
481
|
+
*
|
|
482
|
+
* @example
|
|
483
|
+
* <NumberInput value={35} onChange={(val) => console.log(val)} />
|
|
484
|
+
*/
|
|
485
|
+
declare const NumberInput: React.FC<NumberInputProps>;
|
|
486
|
+
|
|
415
487
|
interface IconProps {
|
|
416
488
|
/**
|
|
417
489
|
* Icon name from registry (requires IconProvider)
|
|
@@ -682,7 +754,7 @@ interface TabsProps {
|
|
|
682
754
|
*/
|
|
683
755
|
declare const Tabs: React.FC<TabsProps>;
|
|
684
756
|
|
|
685
|
-
interface TooltipProps extends TooltipProps$1 {
|
|
757
|
+
interface TooltipProps extends Partial<TooltipProps$1> {
|
|
686
758
|
/**
|
|
687
759
|
* Tooltip content
|
|
688
760
|
*/
|
|
@@ -921,4 +993,4 @@ declare const createUIConfig: (config: UIConfig) => UIConfig;
|
|
|
921
993
|
*/
|
|
922
994
|
declare const mergeUIConfig: (baseConfig: UIConfig, ...configs: Partial<UIConfig>[]) => UIConfig;
|
|
923
995
|
|
|
924
|
-
export { type A11yConfig, type AnimationConfig, Button, type ButtonProps, Checkbox, type CheckboxProps, type I18nConfig, Icon, type IconComponent, type IconProps, IconProvider, type IconProviderProps, type IconRegistry, Input, type InputProps, Radio, type RadioProps, SearchInput, type SearchInputProps, Slider, type SliderProps, SpinButton, type SpinButtonProps, Switch, type SwitchProps, type TabItem, Tabs, type TabsProps, Toast, type ToastConfig, ToastContainer, type ToastContainerProps, type ToastPosition, type ToastProps, Tooltip, type TooltipProps, type UIConfig, UIConfigProvider, type UIConfigProviderProps, type ZIndexConfig, createUIConfig, mergeUIConfig, useIconRegistry, useToast, useUIConfig };
|
|
996
|
+
export { type A11yConfig, type AnimationConfig, Button, type ButtonProps, Checkbox, type CheckboxProps, type I18nConfig, Icon, type IconComponent, type IconProps, IconProvider, type IconProviderProps, type IconRegistry, Input, type InputProps, NumberInput, type NumberInputProps, Radio, type RadioProps, SearchInput, type SearchInputProps, Slider, type SliderProps, SpinButton, type SpinButtonProps, Switch, type SwitchProps, type TabItem, Tabs, type TabsProps, Toast, type ToastConfig, ToastContainer, type ToastContainerProps, type ToastPosition, type ToastProps, Tooltip, type TooltipProps, type UIConfig, UIConfigProvider, type UIConfigProviderProps, type ZIndexConfig, createUIConfig, mergeUIConfig, useIconRegistry, useToast, useUIConfig };
|