@officesdk/design 0.2.4 → 0.2.6

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.
@@ -386,12 +386,12 @@ interface SliderProps {
386
386
  declare const Slider: React$1.FC<SliderProps>;
387
387
 
388
388
  type InputSize = 'mini' | 'small' | 'medium' | 'large';
389
- type LineType = 'outlined' | 'underlined' | 'borderless';
389
+ type LineType$1 = 'outlined' | 'underlined' | 'borderless';
390
390
  interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix'> {
391
391
  /**
392
392
  * Input line type
393
393
  */
394
- lineType?: LineType;
394
+ lineType?: LineType$1;
395
395
  /**
396
396
  * Input size
397
397
  */
@@ -530,6 +530,7 @@ declare const SearchInput: React$1.ForwardRefExoticComponent<SearchInputProps &
530
530
  */
531
531
  declare const UnderlinedInput: React$1.ForwardRefExoticComponent<Omit<InputProps, "lineType"> & React$1.RefAttributes<HTMLInputElement>>;
532
532
 
533
+ type LineType = 'outlined' | 'underlined' | 'borderless';
533
534
  interface NumberInputProps {
534
535
  /**
535
536
  * Current value
@@ -583,6 +584,31 @@ interface NumberInputProps {
583
584
  * Placeholder text
584
585
  */
585
586
  placeholder?: string;
587
+ /**
588
+ * Whether to show step buttons (increment/decrement)
589
+ * @default true
590
+ */
591
+ showStepButtons?: boolean;
592
+ /**
593
+ * Trigger mode for showing step buttons
594
+ * - 'normal': always show (default)
595
+ * - 'hover': show only on hover
596
+ * @default 'normal'
597
+ */
598
+ showStepButtonsTrigger?: 'hover' | 'normal';
599
+ /**
600
+ * Input line type
601
+ * - 'outlined': with full border (default)
602
+ * - 'underlined': with bottom border only
603
+ * - 'borderless': no border
604
+ * @default 'outlined'
605
+ */
606
+ lineType?: LineType;
607
+ /**
608
+ * Whether to use thousands separator in display
609
+ * @default false
610
+ */
611
+ useThousandsSeparator?: boolean;
586
612
  /**
587
613
  * Callback when value changes
588
614
  * @param fixedValue - The clamped value within min/max range (can be undefined if empty)
@@ -927,6 +953,10 @@ interface TabsProps {
927
953
  * Tab size
928
954
  */
929
955
  size?: 'large';
956
+ /**
957
+ * Tab items alignment (only works for 'line' variant)
958
+ */
959
+ justify?: 'start' | 'center' | 'end';
930
960
  /**
931
961
  * Callback when tab changes
932
962
  */
@@ -1095,7 +1125,7 @@ interface ToolbarButtonProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>
1095
1125
  */
1096
1126
  declare const ToolbarButton: React$1.FC<ToolbarButtonProps>;
1097
1127
 
1098
- type DropdownButtonSize = 'large' | 'medium';
1128
+ type DropdownButtonSize = 'large' | 'medium' | 'small';
1099
1129
  type DropdownButtonVariant = 'framed' | 'frameless';
1100
1130
  interface DropdownButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
1101
1131
  /**
@@ -1148,6 +1178,11 @@ interface DropdownButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButt
1148
1178
  * Custom text style
1149
1179
  */
1150
1180
  textStyle?: React$1.CSSProperties;
1181
+ /**
1182
+ * Custom content to render instead of value/placeholder
1183
+ * When provided, value and placeholder are ignored
1184
+ */
1185
+ children?: React$1.ReactNode;
1151
1186
  }
1152
1187
  /**
1153
1188
  * DropdownButton Component