@contentstudio/ui 0.2.26 → 0.2.27-rc.28

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.d.ts CHANGED
@@ -751,6 +751,7 @@ transitionDuration: number;
751
751
  withItemsBorders: boolean;
752
752
  orientation: string;
753
753
  capitalize: boolean;
754
+ scrollable: boolean;
754
755
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
755
756
  "update:modelValue": (value: string) => void;
756
757
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_22<__VLS_TypePropsToOption_22<SegmentedControlProps_2>, {
@@ -764,6 +765,7 @@ transitionDuration: number;
764
765
  withItemsBorders: boolean;
765
766
  orientation: string;
766
767
  capitalize: boolean;
768
+ scrollable: boolean;
767
769
  }>>> & {
768
770
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
769
771
  }, {
@@ -775,6 +777,7 @@ fullWidth: boolean;
775
777
  modelValue: string;
776
778
  transitionDuration: number;
777
779
  capitalize: boolean;
780
+ scrollable: boolean;
778
781
  orientation: "horizontal" | "vertical";
779
782
  withItemsBorders: boolean;
780
783
  }>;
@@ -6384,6 +6387,23 @@ export declare interface SegmentedControlProps {
6384
6387
  * @default 'horizontal'
6385
6388
  */
6386
6389
  orientation?: 'horizontal' | 'vertical';
6390
+ /**
6391
+ * When true and orientation is 'horizontal', the segments wrapper scrolls
6392
+ * horizontally instead of wrapping or squishing. Items keep their intrinsic
6393
+ * width. Has no effect in vertical orientation.
6394
+ * @default false
6395
+ */
6396
+ scrollable?: boolean;
6397
+ /**
6398
+ * Custom background color for the selected/active segment (the pill).
6399
+ * Any CSS color string. Overrides the `color` variant's pill color when set.
6400
+ */
6401
+ selectedColor?: string;
6402
+ /**
6403
+ * Custom background color for the control's track/container.
6404
+ * Any CSS color string. Overrides the variant default when set.
6405
+ */
6406
+ backgroundColor?: string;
6387
6407
  }
6388
6408
 
6389
6409
  declare interface SegmentedControlProps_2 {
@@ -6398,6 +6418,24 @@ declare interface SegmentedControlProps_2 {
6398
6418
  withItemsBorders?: boolean;
6399
6419
  orientation?: 'horizontal' | 'vertical';
6400
6420
  capitalize?: boolean;
6421
+ /**
6422
+ * When true and orientation is 'horizontal', the segments wrapper scrolls
6423
+ * horizontally instead of wrapping or squishing. Items keep their intrinsic
6424
+ * width. Has no effect in vertical orientation.
6425
+ * @default false
6426
+ */
6427
+ scrollable?: boolean;
6428
+ /**
6429
+ * Custom background color for the selected/active segment (the pill).
6430
+ * Any CSS color string. Overrides the `color` variant's pill color when set.
6431
+ * Pair with `color="dark"` if you need white label text on a dark custom color.
6432
+ */
6433
+ selectedColor?: string;
6434
+ /**
6435
+ * Custom background color for the control's track/container.
6436
+ * Any CSS color string. Overrides the variant default when set.
6437
+ */
6438
+ backgroundColor?: string;
6401
6439
  }
6402
6440
 
6403
6441
  export declare interface SelectOption {
@@ -6786,6 +6824,8 @@ export declare interface TextareaProps {
6786
6824
  class?: string;
6787
6825
  /** Custom class for the input */
6788
6826
  inputClass?: string;
6827
+ /** Maximum number of characters allowed */
6828
+ maxLength?: number;
6789
6829
  }
6790
6830
 
6791
6831
  export { TextInput }
@@ -6799,42 +6839,46 @@ export declare interface TextInputProps {
6799
6839
  modelValue?: string;
6800
6840
  /** Input's placeholder */
6801
6841
  placeholder?: string;
6802
- /** Disabled state */
6803
- disabled?: boolean;
6804
6842
  /** Input label */
6805
6843
  label?: string;
6806
- /** Label props */
6807
- labelProps?: SectionProps;
6808
6844
  /** Description text shown below the input */
6809
6845
  description?: string;
6810
- /** Description props */
6811
- descriptionProps?: SectionProps;
6812
6846
  /** Error message */
6813
6847
  error?: string;
6814
- /** Error props */
6815
- errorProps?: SectionProps;
6816
- /** Props passed to root element */
6817
- wrapperProps?: SectionProps;
6818
- /** Props passed to input element */
6819
- inputProps?: SectionProps;
6820
- /** Input size */
6821
- size?: ComponentSize;
6822
- /** Border-radius value */
6823
- radius?: ComponentRadius;
6848
+ /** Display error state */
6849
+ hasError?: boolean;
6850
+ /** Disabled state */
6851
+ disabled?: boolean;
6852
+ /** Readonly state */
6853
+ readonly?: boolean;
6824
6854
  /** Determines whether required asterisk should be rendered */
6825
6855
  required?: boolean;
6826
6856
  /** Show asterisk even if field is not required */
6827
6857
  withAsterisk?: boolean;
6828
- /** Display error state */
6829
- withError?: boolean;
6830
- /** Right section content */
6831
- rightSection?: any;
6832
- /** Props passed to right section */
6833
- rightSectionProps?: SectionProps;
6834
- /** Left section content */
6835
- leftSection?: any;
6836
- /** Props passed to left section */
6837
- leftSectionProps?: SectionProps;
6858
+ /** Show both error and description */
6859
+ showBothErrorAndDescription?: boolean;
6860
+ /** Props passed to input element */
6861
+ inputProps?: Record<string, any>;
6862
+ /** Input size */
6863
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
6864
+ /** Input variant */
6865
+ variant?: 'default' | 'filled' | 'unstyled';
6866
+ /** Border-radius value */
6867
+ radius?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
6868
+ /** Custom class for the component */
6869
+ class?: string;
6870
+ /** Take full width of container */
6871
+ fullWidth?: boolean;
6872
+ /** Input pattern attribute */
6873
+ pattern?: string;
6874
+ /** Input title attribute */
6875
+ title?: string;
6876
+ /** Custom class for the input element */
6877
+ inputClass?: string;
6878
+ /** Custom class for the input container */
6879
+ inputContainerClass?: string;
6880
+ /** Maximum number of characters allowed */
6881
+ maxLength?: number;
6838
6882
  }
6839
6883
 
6840
6884
  export declare const THEME_INJECTION_KEY: InjectionKey<ReturnType<typeof useTheme>>;