@aurora-ds/components 0.22.6 → 0.23.1
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/cjs/components/actions/button-toggle/ButtonToggle/ButtonToggle.d.ts +15 -0
- package/dist/cjs/components/actions/button-toggle/ButtonToggle/ButtonToggle.props.d.ts +48 -0
- package/dist/cjs/components/actions/button-toggle/ButtonToggle/ButtonToggle.styles.d.ts +4 -0
- package/dist/cjs/components/actions/button-toggle/ButtonToggle/index.d.ts +2 -0
- package/dist/cjs/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.d.ts +14 -0
- package/dist/cjs/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.props.d.ts +29 -0
- package/dist/cjs/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.styles.d.ts +3 -0
- package/dist/cjs/components/actions/button-toggle/ButtonToggleGroup/index.d.ts +2 -0
- package/dist/cjs/components/actions/button-toggle/index.d.ts +2 -0
- package/dist/cjs/components/forms/select/Select.props.d.ts +1 -0
- package/dist/cjs/components/forms/select/Select.styles.d.ts +1 -1
- package/dist/cjs/components/index.d.ts +1 -0
- package/dist/cjs/components/overlay/menu/MenuItem/MenuItem.props.d.ts +5 -0
- package/dist/cjs/components/overlay/menu/MenuItem/MenuItem.styles.d.ts +2 -1
- package/dist/cjs/index.js +175 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/actions/button-toggle/ButtonToggle/ButtonToggle.d.ts +15 -0
- package/dist/esm/components/actions/button-toggle/ButtonToggle/ButtonToggle.props.d.ts +48 -0
- package/dist/esm/components/actions/button-toggle/ButtonToggle/ButtonToggle.styles.d.ts +4 -0
- package/dist/esm/components/actions/button-toggle/ButtonToggle/index.d.ts +2 -0
- package/dist/esm/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.d.ts +14 -0
- package/dist/esm/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.props.d.ts +29 -0
- package/dist/esm/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.styles.d.ts +3 -0
- package/dist/esm/components/actions/button-toggle/ButtonToggleGroup/index.d.ts +2 -0
- package/dist/esm/components/actions/button-toggle/index.d.ts +2 -0
- package/dist/esm/components/forms/select/Select.props.d.ts +1 -0
- package/dist/esm/components/forms/select/Select.styles.d.ts +1 -1
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/overlay/menu/MenuItem/MenuItem.props.d.ts +5 -0
- package/dist/esm/components/overlay/menu/MenuItem/MenuItem.styles.d.ts +2 -1
- package/dist/esm/index.js +174 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +89 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -602,6 +602,91 @@ type IconButtonProps = {
|
|
|
602
602
|
|
|
603
603
|
declare const IconButton: FC<IconButtonProps>;
|
|
604
604
|
|
|
605
|
+
type ButtonToggleProps = {
|
|
606
|
+
/** Value to identify this toggle button */
|
|
607
|
+
value: string;
|
|
608
|
+
/** Button content (icon or text) */
|
|
609
|
+
children: ReactNode;
|
|
610
|
+
/** Click handler */
|
|
611
|
+
onClick?: (e: MouseEvent<HTMLButtonElement>, value: string) => void;
|
|
612
|
+
/** Active/pressed state */
|
|
613
|
+
active?: boolean;
|
|
614
|
+
/** Disabled state */
|
|
615
|
+
disabled?: boolean;
|
|
616
|
+
/** Custom text/icon color when active (default: primary) */
|
|
617
|
+
activeTextColor?: keyof ThemeContract['colors'];
|
|
618
|
+
/** Custom text/icon color when inactive (default: textSecondary) */
|
|
619
|
+
inactiveTextColor?: keyof ThemeContract['colors'];
|
|
620
|
+
/** Custom text/icon color (overrides activeTextColor and inactiveTextColor) */
|
|
621
|
+
textColor?: keyof ThemeContract['colors'];
|
|
622
|
+
/** Custom backgroundColor (overrides variant backgroundColor) */
|
|
623
|
+
backgroundColor?: keyof ThemeContract['colors'];
|
|
624
|
+
/** Custom hover backgroundColor (overrides variant hover backgroundColor) */
|
|
625
|
+
hoverBackgroundColor?: keyof ThemeContract['colors'];
|
|
626
|
+
/** Custom active backgroundColor (overrides variant active backgroundColor) */
|
|
627
|
+
activeBackgroundColor?: keyof ThemeContract['colors'];
|
|
628
|
+
/** Size of the button */
|
|
629
|
+
size?: IconButtonSizes;
|
|
630
|
+
/** Accessibility label for screen readers */
|
|
631
|
+
ariaLabel?: string;
|
|
632
|
+
/** ID of element that labels this button */
|
|
633
|
+
ariaLabelledBy?: string;
|
|
634
|
+
/** ID of element that describes this button */
|
|
635
|
+
ariaDescribedBy?: string;
|
|
636
|
+
/** ARIA role */
|
|
637
|
+
role?: string;
|
|
638
|
+
/** Tab index for keyboard navigation */
|
|
639
|
+
tabIndex?: number;
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* ButtonToggle component
|
|
644
|
+
*
|
|
645
|
+
* A toggle button similar to IconButton but with active state.
|
|
646
|
+
* Uses only the 'text' variant style.
|
|
647
|
+
* Designed to be used within ButtonToggleGroup.
|
|
648
|
+
*
|
|
649
|
+
* **Colors:**
|
|
650
|
+
* - Active: primary (default) - customizable via activeTextColor
|
|
651
|
+
* - Inactive: textSecondary (default) - customizable via inactiveTextColor
|
|
652
|
+
*/
|
|
653
|
+
declare const ButtonToggle: FC<ButtonToggleProps>;
|
|
654
|
+
|
|
655
|
+
type ButtonToggleGroupProps = {
|
|
656
|
+
/** Current selected value */
|
|
657
|
+
value?: string | null;
|
|
658
|
+
/** Change handler for value selection */
|
|
659
|
+
onChange?: (value: string | null) => void;
|
|
660
|
+
/** Children ButtonToggle components */
|
|
661
|
+
children: ReactNode;
|
|
662
|
+
/** If true, only one button can be active at a time */
|
|
663
|
+
exclusive?: boolean;
|
|
664
|
+
/** If true, at least one button must always be active (clicking the active button won't deselect it) */
|
|
665
|
+
required?: boolean;
|
|
666
|
+
/** Size of all buttons in the group */
|
|
667
|
+
size?: IconButtonSizes;
|
|
668
|
+
/** Custom text/icon color when active (default: primary) - applied to all children */
|
|
669
|
+
activeTextColor?: keyof ThemeContract['colors'];
|
|
670
|
+
/** Custom text/icon color when inactive (default: textSecondary) - applied to all children */
|
|
671
|
+
inactiveTextColor?: keyof ThemeContract['colors'];
|
|
672
|
+
/** Accessibility label for the group */
|
|
673
|
+
ariaLabel?: string;
|
|
674
|
+
/** ARIA role for the group */
|
|
675
|
+
role?: string;
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* ButtonToggleGroup component
|
|
680
|
+
*
|
|
681
|
+
* Groups multiple ButtonToggle components together in a row without gaps.
|
|
682
|
+
* Manages exclusive selection (only one button can be active at a time).
|
|
683
|
+
*
|
|
684
|
+
* **Default Colors:**
|
|
685
|
+
* - Active buttons: primary
|
|
686
|
+
* - Inactive buttons: textSecondary
|
|
687
|
+
*/
|
|
688
|
+
declare const ButtonToggleGroup: FC<ButtonToggleGroupProps>;
|
|
689
|
+
|
|
605
690
|
type FormProps = {
|
|
606
691
|
/** Form content (inputs, buttons, etc.) */
|
|
607
692
|
children: ReactNode;
|
|
@@ -1248,6 +1333,8 @@ type MenuItemProps = {
|
|
|
1248
1333
|
onClick: () => void;
|
|
1249
1334
|
textColor?: keyof ThemeContract['colors'];
|
|
1250
1335
|
iconColor?: keyof ThemeContract['colors'];
|
|
1336
|
+
/** If true, the menu item is highlighted as active */
|
|
1337
|
+
active?: boolean;
|
|
1251
1338
|
};
|
|
1252
1339
|
|
|
1253
1340
|
declare const MenuItem: FC<MenuItemProps>;
|
|
@@ -1620,5 +1707,5 @@ declare module '@aurora-ds/theme' {
|
|
|
1620
1707
|
*/
|
|
1621
1708
|
declare const defaultTheme: Theme;
|
|
1622
1709
|
|
|
1623
|
-
export { Accordion, Alert, AlertProvider, Avatar, AvatarGroup, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, Button, Card, _default as DatePicker, DrawerItem, _default$3 as Form, Grid, Icon, IconButton, _default$2 as Input, Menu, MenuGroup, MenuItem, Modal, Page, PageSection, Pagination, Select, Separator, Skeleton, Stack, Status, TabItem, Tabs, Text, _default$1 as TextArea, defaultTheme, useAlert, useAnchorPosition, useClickOutside, useTransitionRender };
|
|
1624
|
-
export type { AccordionProps, AlertContextValue, AlertPosition, AlertProps, AlertProviderProps, AlertVariant, AnchorOrigin, AnchorPosition, AvatarGroupProps, AvatarProps, BoxProps, BreadcrumbEllipsisProps, BreadcrumbLinkProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, ButtonProps, ButtonVariantStyle, ButtonVariants, CardProps, DateFormat, DatePickerProps, DrawerItemProps, FormProps, GridProps, IconButtonProps, IconProps, InputProps, MenuGroupProps, MenuItemProps, MenuProps, ModalProps, PageProps, PageSectionProps, PaginationProps, SelectOption, SelectProps, SeparatorProps, ShowAlertOptions, SkeletonProps, StackProps, StatusColor, StatusProps, StatusSize, StatusVariant, TabItemProps, TabsProps, TextAreaProps, TextProps, TextVariantStyle, TextVariants, Theme, ThemeBreakpointsContract, ThemeColorContract, ThemeContract, ThemeFontSizeContract, ThemeFontWeightContract, ThemeLineHeightContract, ThemeOpacityContract, ThemeRadiusContract, ThemeShadowsContract, ThemeSpacingContract, ThemeTransitionContract, ThemeZIndexContract, UseTransitionRenderReturnType };
|
|
1710
|
+
export { Accordion, Alert, AlertProvider, Avatar, AvatarGroup, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonToggle, ButtonToggleGroup, Card, _default as DatePicker, DrawerItem, _default$3 as Form, Grid, Icon, IconButton, _default$2 as Input, Menu, MenuGroup, MenuItem, Modal, Page, PageSection, Pagination, Select, Separator, Skeleton, Stack, Status, TabItem, Tabs, Text, _default$1 as TextArea, defaultTheme, useAlert, useAnchorPosition, useClickOutside, useTransitionRender };
|
|
1711
|
+
export type { AccordionProps, AlertContextValue, AlertPosition, AlertProps, AlertProviderProps, AlertVariant, AnchorOrigin, AnchorPosition, AvatarGroupProps, AvatarProps, BoxProps, BreadcrumbEllipsisProps, BreadcrumbLinkProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, ButtonProps, ButtonToggleGroupProps, ButtonToggleProps, ButtonVariantStyle, ButtonVariants, CardProps, DateFormat, DatePickerProps, DrawerItemProps, FormProps, GridProps, IconButtonProps, IconProps, InputProps, MenuGroupProps, MenuItemProps, MenuProps, ModalProps, PageProps, PageSectionProps, PaginationProps, SelectOption, SelectProps, SeparatorProps, ShowAlertOptions, SkeletonProps, StackProps, StatusColor, StatusProps, StatusSize, StatusVariant, TabItemProps, TabsProps, TextAreaProps, TextProps, TextVariantStyle, TextVariants, Theme, ThemeBreakpointsContract, ThemeColorContract, ThemeContract, ThemeFontSizeContract, ThemeFontWeightContract, ThemeLineHeightContract, ThemeOpacityContract, ThemeRadiusContract, ThemeShadowsContract, ThemeSpacingContract, ThemeTransitionContract, ThemeZIndexContract, UseTransitionRenderReturnType };
|