@contentstudio/ui 0.1.6 → 0.1.8

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
@@ -19,6 +19,7 @@ import { Placement } from '@floating-ui/vue';
19
19
  import { default as Progress } from './Progress.vue';
20
20
  import { default as Radio } from './components/Radio/Radio.vue';
21
21
  import { Ref } from 'vue';
22
+ import { default as SegmentedControl } from './components/SegmentedControl/SegmentedControl.vue';
22
23
  import { default as Select } from './components/Select/Select.vue';
23
24
  import { default as TextInput } from './TextInput.vue';
24
25
 
@@ -516,6 +517,65 @@ export declare type RadioVariant = 'filled' | 'outlined';
516
517
 
517
518
  declare type SectionProps = Record<string, any>;
518
519
 
520
+ export { SegmentedControl }
521
+
522
+ export declare interface SegmentedControlOption {
523
+ value: string;
524
+ label: string | number;
525
+ disabled?: boolean;
526
+ }
527
+
528
+ export declare interface SegmentedControlProps {
529
+ /**
530
+ * Model value for v-model binding
531
+ */
532
+ modelValue?: string;
533
+ /**
534
+ * Array of options to display
535
+ */
536
+ data: (string | SegmentedControlOption)[];
537
+ /**
538
+ * Size of the control
539
+ * @default 'md'
540
+ */
541
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
542
+ /**
543
+ * Border radius
544
+ * @default 'md'
545
+ */
546
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
547
+ /**
548
+ * Color variant
549
+ * @default 'primary'
550
+ */
551
+ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
552
+ /**
553
+ * Whether the control is disabled
554
+ * @default false
555
+ */
556
+ disabled?: boolean;
557
+ /**
558
+ * Whether the control should take full width
559
+ * @default false
560
+ */
561
+ fullWidth?: boolean;
562
+ /**
563
+ * Transition duration in milliseconds
564
+ * @default 200
565
+ */
566
+ transitionDuration?: number;
567
+ /**
568
+ * Whether to show borders between items
569
+ * @default true
570
+ */
571
+ withItemsBorders?: boolean;
572
+ /**
573
+ * Orientation of the control
574
+ * @default 'horizontal'
575
+ */
576
+ orientation?: 'horizontal' | 'vertical';
577
+ }
578
+
519
579
  export { Select }
520
580
 
521
581
  export declare interface SelectOption {