@boostdev/design-system-components 0.1.16 → 0.1.17

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/client.d.cts CHANGED
@@ -391,6 +391,25 @@ interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>
391
391
  }
392
392
  declare function Radio({ label, name, description, error, hint, className, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
393
393
 
394
+ interface SegmentedControlOption {
395
+ value: string;
396
+ label: ReactNode;
397
+ disabled?: boolean;
398
+ }
399
+ interface SegmentedControlProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value' | 'size'> {
400
+ name: string;
401
+ options: SegmentedControlOption[];
402
+ /** Controlled selected value */
403
+ value?: string;
404
+ /** Uncontrolled initial value (defaults to first option) */
405
+ defaultValue?: string;
406
+ onChange?: (value: string) => void;
407
+ disabled?: boolean;
408
+ size?: 'small' | 'medium' | 'large';
409
+ className?: string;
410
+ }
411
+ declare function SegmentedControl({ name, options, value, defaultValue, onChange, disabled, size, className, ...rest }: Readonly<SegmentedControlProps>): react_jsx_runtime.JSX.Element;
412
+
394
413
  interface SelectOption {
395
414
  value: string;
396
415
  label: string;
@@ -475,4 +494,4 @@ interface Props {
475
494
  }
476
495
  declare function IconWrapper({ children, className }: Props): react_jsx_runtime.JSX.Element;
477
496
 
478
- export { Accordion, type AccordionItem, Alert, Avatar, Badge, Breadcrumb, type BreadcrumbItem, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, Collapsible, type CollapsibleProps, Combobox, type ComboboxOption, Command, type CommandItem, type DescriptionItem, DescriptionList, Dialog, Drawer, DropdownMenu, type DropdownMenuItem, FileInput, FormInput, IconWrapper, Link, Loading, NotificationBanner, NumberInput, Pagination, Popover, Progress, ProgressCircle, Radio, Rating, SectionHeader, Select, type SelectOption, Separator, Skeleton, SkipLink, Slider, Switch, type TabItem, Table, type TableColumn, Tabs, Textarea, ToastProvider, Tooltip, Typography, useToast };
497
+ export { Accordion, type AccordionItem, Alert, Avatar, Badge, Breadcrumb, type BreadcrumbItem, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, Collapsible, type CollapsibleProps, Combobox, type ComboboxOption, Command, type CommandItem, type DescriptionItem, DescriptionList, Dialog, Drawer, DropdownMenu, type DropdownMenuItem, FileInput, FormInput, IconWrapper, Link, Loading, NotificationBanner, NumberInput, Pagination, Popover, Progress, ProgressCircle, Radio, Rating, SectionHeader, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, type SelectOption, Separator, Skeleton, SkipLink, Slider, Switch, type TabItem, Table, type TableColumn, Tabs, Textarea, ToastProvider, Tooltip, Typography, useToast };
package/dist/client.d.ts CHANGED
@@ -391,6 +391,25 @@ interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>
391
391
  }
392
392
  declare function Radio({ label, name, description, error, hint, className, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
393
393
 
394
+ interface SegmentedControlOption {
395
+ value: string;
396
+ label: ReactNode;
397
+ disabled?: boolean;
398
+ }
399
+ interface SegmentedControlProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value' | 'size'> {
400
+ name: string;
401
+ options: SegmentedControlOption[];
402
+ /** Controlled selected value */
403
+ value?: string;
404
+ /** Uncontrolled initial value (defaults to first option) */
405
+ defaultValue?: string;
406
+ onChange?: (value: string) => void;
407
+ disabled?: boolean;
408
+ size?: 'small' | 'medium' | 'large';
409
+ className?: string;
410
+ }
411
+ declare function SegmentedControl({ name, options, value, defaultValue, onChange, disabled, size, className, ...rest }: Readonly<SegmentedControlProps>): react_jsx_runtime.JSX.Element;
412
+
394
413
  interface SelectOption {
395
414
  value: string;
396
415
  label: string;
@@ -475,4 +494,4 @@ interface Props {
475
494
  }
476
495
  declare function IconWrapper({ children, className }: Props): react_jsx_runtime.JSX.Element;
477
496
 
478
- export { Accordion, type AccordionItem, Alert, Avatar, Badge, Breadcrumb, type BreadcrumbItem, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, Collapsible, type CollapsibleProps, Combobox, type ComboboxOption, Command, type CommandItem, type DescriptionItem, DescriptionList, Dialog, Drawer, DropdownMenu, type DropdownMenuItem, FileInput, FormInput, IconWrapper, Link, Loading, NotificationBanner, NumberInput, Pagination, Popover, Progress, ProgressCircle, Radio, Rating, SectionHeader, Select, type SelectOption, Separator, Skeleton, SkipLink, Slider, Switch, type TabItem, Table, type TableColumn, Tabs, Textarea, ToastProvider, Tooltip, Typography, useToast };
497
+ export { Accordion, type AccordionItem, Alert, Avatar, Badge, Breadcrumb, type BreadcrumbItem, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, Collapsible, type CollapsibleProps, Combobox, type ComboboxOption, Command, type CommandItem, type DescriptionItem, DescriptionList, Dialog, Drawer, DropdownMenu, type DropdownMenuItem, FileInput, FormInput, IconWrapper, Link, Loading, NotificationBanner, NumberInput, Pagination, Popover, Progress, ProgressCircle, Radio, Rating, SectionHeader, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, type SelectOption, Separator, Skeleton, SkipLink, Slider, Switch, type TabItem, Table, type TableColumn, Tabs, Textarea, ToastProvider, Tooltip, Typography, useToast };