@officesdk/design 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.
@@ -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 };
@@ -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 };