@bubo-squared/ui-framework 0.2.32 → 0.2.34

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.cts CHANGED
@@ -132,9 +132,9 @@ declare const Typography: <T extends ElementType = "span">(props: TypographyProp
132
132
 
133
133
  declare const badgeVariants: (props?: ({
134
134
  size?: "sm" | "lg" | "md" | "xl" | null | undefined;
135
- variant?: "error" | "outline" | "secondary" | "disabled" | "primary" | "success" | "active" | "informal" | "warning" | null | undefined;
135
+ variant?: "error" | "outline" | "secondary" | "disabled" | "primary" | "success" | "primaryInverted" | "active" | "informal" | "warning" | null | undefined;
136
136
  } & class_variance_authority_types.ClassProp) | undefined) => string;
137
- type BadgeVariant = "primary" | "secondary" | "outline" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
137
+ type BadgeVariant = "primary" | "primaryInverted" | "secondary" | "outline" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
138
138
  type BadgeSize = "sm" | "md" | "lg" | "xl";
139
139
  interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
140
140
  asChild?: boolean;
@@ -532,6 +532,32 @@ interface SearchInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEle
532
532
  }
533
533
  declare const SearchInput: React$1.ForwardRefExoticComponent<SearchInputProps & React$1.RefAttributes<HTMLInputElement>>;
534
534
 
535
+ type SegmentedSwitchValue = string;
536
+ type SegmentedSwitchOption = {
537
+ label: React$1.ReactNode;
538
+ value: SegmentedSwitchValue;
539
+ /** Accessible label used when `label` is not a plain string (e.g. an icon). */
540
+ "aria-label"?: string;
541
+ };
542
+ interface SegmentedSwitchProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
543
+ /**
544
+ * Only needed when the component is a part of a native form.
545
+ * Provide this to include the value in native form submission / FormData.
546
+ */
547
+ name?: string;
548
+ /**
549
+ * Options rendered as segments.
550
+ */
551
+ options: SegmentedSwitchOption[];
552
+ value: SegmentedSwitchValue;
553
+ onValueChange: (nextValue: SegmentedSwitchValue) => void;
554
+ /** Accessible label for the radiogroup — recommended when the surrounding context doesn't already label the control. */
555
+ "aria-label"?: string;
556
+ disabled?: boolean;
557
+ pill?: boolean;
558
+ }
559
+ declare const SegmentedSwitch: React$1.ForwardRefExoticComponent<SegmentedSwitchProps & React$1.RefAttributes<HTMLDivElement>>;
560
+
535
561
  type SliderDisplay = "flat" | "numeric" | "tooltip";
536
562
  type SliderTooltipPlacement = "top" | "bottom";
537
563
  type SliderBaseProps = {
@@ -760,4 +786,4 @@ declare const Logo: FC<LogoProps>;
760
786
 
761
787
  declare function cn(...inputs: ClassValue[]): string;
762
788
 
763
- export { Accordion, Autocomplete, Avatar, Badge, BadgeDigit, BadgeDot, BadgeStatus, Breadcrumbs, Button, ButtonGroup, Checkbox, Divider, Field, IconButton, IconButtonGroup, LinkButton, Logo, LogoIcon, Menu, MenuGroup, MenuItem, MenuLabel, MenuPortal, MenuSeparator, MenuShortcut, MenuSub, MenuSubContent, MenuSubTrigger, MessageButton, PasswordInput, PhoneInput, Popover, Progress, RadioGroup, SearchInput, Select, Slider, StatusAvatar, Tag, TextArea, TextInput, Toggle, Tooltip, TooltipProvider, Typography, WebsiteInput, cn };
789
+ export { Accordion, Autocomplete, Avatar, Badge, BadgeDigit, BadgeDot, BadgeStatus, Breadcrumbs, Button, ButtonGroup, Checkbox, Divider, Field, IconButton, IconButtonGroup, LinkButton, Logo, LogoIcon, Menu, MenuGroup, MenuItem, MenuLabel, MenuPortal, MenuSeparator, MenuShortcut, MenuSub, MenuSubContent, MenuSubTrigger, MessageButton, PasswordInput, PhoneInput, Popover, Progress, RadioGroup, SearchInput, SegmentedSwitch, Select, Slider, StatusAvatar, Tag, TextArea, TextInput, Toggle, Tooltip, TooltipProvider, Typography, WebsiteInput, cn };
package/dist/index.d.ts CHANGED
@@ -132,9 +132,9 @@ declare const Typography: <T extends ElementType = "span">(props: TypographyProp
132
132
 
133
133
  declare const badgeVariants: (props?: ({
134
134
  size?: "sm" | "lg" | "md" | "xl" | null | undefined;
135
- variant?: "error" | "outline" | "secondary" | "disabled" | "primary" | "success" | "active" | "informal" | "warning" | null | undefined;
135
+ variant?: "error" | "outline" | "secondary" | "disabled" | "primary" | "success" | "primaryInverted" | "active" | "informal" | "warning" | null | undefined;
136
136
  } & class_variance_authority_types.ClassProp) | undefined) => string;
137
- type BadgeVariant = "primary" | "secondary" | "outline" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
137
+ type BadgeVariant = "primary" | "primaryInverted" | "secondary" | "outline" | "informal" | "success" | "warning" | "error" | "disabled" | "active";
138
138
  type BadgeSize = "sm" | "md" | "lg" | "xl";
139
139
  interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
140
140
  asChild?: boolean;
@@ -532,6 +532,32 @@ interface SearchInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEle
532
532
  }
533
533
  declare const SearchInput: React$1.ForwardRefExoticComponent<SearchInputProps & React$1.RefAttributes<HTMLInputElement>>;
534
534
 
535
+ type SegmentedSwitchValue = string;
536
+ type SegmentedSwitchOption = {
537
+ label: React$1.ReactNode;
538
+ value: SegmentedSwitchValue;
539
+ /** Accessible label used when `label` is not a plain string (e.g. an icon). */
540
+ "aria-label"?: string;
541
+ };
542
+ interface SegmentedSwitchProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
543
+ /**
544
+ * Only needed when the component is a part of a native form.
545
+ * Provide this to include the value in native form submission / FormData.
546
+ */
547
+ name?: string;
548
+ /**
549
+ * Options rendered as segments.
550
+ */
551
+ options: SegmentedSwitchOption[];
552
+ value: SegmentedSwitchValue;
553
+ onValueChange: (nextValue: SegmentedSwitchValue) => void;
554
+ /** Accessible label for the radiogroup — recommended when the surrounding context doesn't already label the control. */
555
+ "aria-label"?: string;
556
+ disabled?: boolean;
557
+ pill?: boolean;
558
+ }
559
+ declare const SegmentedSwitch: React$1.ForwardRefExoticComponent<SegmentedSwitchProps & React$1.RefAttributes<HTMLDivElement>>;
560
+
535
561
  type SliderDisplay = "flat" | "numeric" | "tooltip";
536
562
  type SliderTooltipPlacement = "top" | "bottom";
537
563
  type SliderBaseProps = {
@@ -760,4 +786,4 @@ declare const Logo: FC<LogoProps>;
760
786
 
761
787
  declare function cn(...inputs: ClassValue[]): string;
762
788
 
763
- export { Accordion, Autocomplete, Avatar, Badge, BadgeDigit, BadgeDot, BadgeStatus, Breadcrumbs, Button, ButtonGroup, Checkbox, Divider, Field, IconButton, IconButtonGroup, LinkButton, Logo, LogoIcon, Menu, MenuGroup, MenuItem, MenuLabel, MenuPortal, MenuSeparator, MenuShortcut, MenuSub, MenuSubContent, MenuSubTrigger, MessageButton, PasswordInput, PhoneInput, Popover, Progress, RadioGroup, SearchInput, Select, Slider, StatusAvatar, Tag, TextArea, TextInput, Toggle, Tooltip, TooltipProvider, Typography, WebsiteInput, cn };
789
+ export { Accordion, Autocomplete, Avatar, Badge, BadgeDigit, BadgeDot, BadgeStatus, Breadcrumbs, Button, ButtonGroup, Checkbox, Divider, Field, IconButton, IconButtonGroup, LinkButton, Logo, LogoIcon, Menu, MenuGroup, MenuItem, MenuLabel, MenuPortal, MenuSeparator, MenuShortcut, MenuSub, MenuSubContent, MenuSubTrigger, MessageButton, PasswordInput, PhoneInput, Popover, Progress, RadioGroup, SearchInput, SegmentedSwitch, Select, Slider, StatusAvatar, Tag, TextArea, TextInput, Toggle, Tooltip, TooltipProvider, Typography, WebsiteInput, cn };