@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/AGENTS.md +4 -4
- package/README.md +50 -1
- package/dist/client.cjs +202 -115
- package/dist/client.css +514 -425
- package/dist/client.d.cts +20 -1
- package/dist/client.d.ts +20 -1
- package/dist/client.js +201 -115
- package/dist/index.cjs +202 -115
- package/dist/index.css +514 -425
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +201 -115
- package/package.json +1 -1
- package/src/components/interaction/Command/Command.mdx +1 -0
- package/src/components/interaction/Command/Command.spec.tsx +18 -0
- package/src/components/interaction/Command/Command.tsx +5 -0
- package/src/components/interaction/Dialog/Dialog.spec.tsx +18 -0
- package/src/components/interaction/Drawer/Drawer.spec.tsx +18 -0
- package/src/components/interaction/Drawer/Drawer.tsx +5 -0
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.mdx +64 -0
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.module.css +99 -0
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.spec.tsx +87 -0
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.stories.tsx +110 -0
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.tsx +89 -0
- package/src/components/interaction/form/SegmentedControl/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/stories/Introduction.mdx +4 -3
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 };
|