@aurora-ds/components 0.6.7 → 0.10.0
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/README.md +2 -0
- package/dist/cjs/components/actions/button/Button.d.ts +12 -0
- package/dist/cjs/components/actions/button/Button.props.d.ts +41 -0
- package/dist/cjs/components/actions/button/Button.styles.d.ts +18 -0
- package/dist/cjs/components/actions/button/index.d.ts +2 -0
- package/dist/cjs/components/actions/icon-button/IconButton.d.ts +4 -0
- package/dist/cjs/components/actions/icon-button/IconButton.props.d.ts +37 -0
- package/dist/cjs/components/actions/icon-button/IconButton.styles.d.ts +4 -0
- package/dist/cjs/components/actions/icon-button/index.d.ts +2 -0
- package/dist/cjs/components/data-display/chip/Chip.props.d.ts +10 -0
- package/dist/cjs/components/forms/form/Form.d.ts +3 -0
- package/dist/cjs/components/forms/form/Form.props.d.ts +9 -0
- package/dist/cjs/components/forms/form/Form.styles.d.ts +3 -0
- package/dist/cjs/components/forms/form/index.d.ts +2 -0
- package/dist/cjs/components/forms/input/Input.d.ts +3 -0
- package/dist/cjs/components/forms/input/Input.props.d.ts +32 -0
- package/dist/cjs/components/forms/input/Input.styles.d.ts +15 -0
- package/dist/cjs/components/forms/input/index.d.ts +2 -0
- package/dist/cjs/components/forms/textarea/TextArea.d.ts +3 -0
- package/dist/cjs/components/forms/textarea/TextArea.props.d.ts +27 -0
- package/dist/cjs/components/forms/textarea/TextArea.styles.d.ts +11 -0
- package/dist/cjs/components/forms/textarea/index.d.ts +2 -0
- package/dist/cjs/components/foundation/icon/Icon.d.ts +35 -0
- package/dist/cjs/components/foundation/icon/Icon.props.d.ts +24 -0
- package/dist/cjs/components/foundation/icon/Icon.styles.d.ts +3 -0
- package/dist/cjs/components/foundation/icon/index.d.ts +2 -0
- package/dist/cjs/components/foundation/text/Text.d.ts +21 -0
- package/dist/cjs/components/foundation/text/Text.props.d.ts +38 -0
- package/dist/cjs/components/foundation/text/Text.styles.d.ts +4 -0
- package/dist/cjs/components/foundation/text/index.d.ts +2 -0
- package/dist/cjs/components/index.d.ts +11 -5
- package/dist/cjs/components/inputs/button/Button.props.d.ts +1 -0
- package/dist/cjs/components/inputs/icon-button/IconButton.props.d.ts +1 -0
- package/dist/cjs/components/inputs/input/Input.d.ts +6 -0
- package/dist/cjs/components/inputs/input/Input.props.d.ts +17 -0
- package/dist/cjs/components/inputs/input/Input.styles.d.ts +7 -0
- package/dist/cjs/components/inputs/input/index.d.ts +2 -0
- package/dist/cjs/components/layout/card/Card.props.d.ts +10 -0
- package/dist/cjs/components/layout/grid/Grid.props.d.ts +10 -0
- package/dist/cjs/components/layout/page-construction/page/Page.d.ts +10 -0
- package/dist/cjs/components/layout/page-construction/page/Page.props.d.ts +30 -0
- package/dist/cjs/components/layout/page-construction/page/Page.styles.d.ts +5 -0
- package/dist/cjs/components/layout/page-construction/page/index.d.ts +2 -0
- package/dist/cjs/components/layout/page-construction/page-section/PageSection.d.ts +10 -0
- package/dist/cjs/components/layout/page-construction/page-section/PageSection.props.d.ts +34 -0
- package/dist/cjs/components/layout/page-construction/page-section/PageSection.styles.d.ts +4 -0
- package/dist/cjs/components/layout/page-construction/page-section/index.d.ts +2 -0
- package/dist/cjs/components/layout/stack/Stack.props.d.ts +10 -0
- package/dist/cjs/components/layout/text/Text.d.ts +1 -0
- package/dist/cjs/components/layout/text/Text.props.d.ts +3 -0
- package/dist/cjs/components/navigation/breadcrumb/Breadcrumb.d.ts +12 -0
- package/dist/cjs/components/navigation/breadcrumb/Breadcrumb.props.d.ts +13 -0
- package/dist/cjs/components/navigation/breadcrumb/Breadcrumb.styles.d.ts +6 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.d.ts +8 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.props.d.ts +5 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.styles.d.ts +7 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbEllipsis/index.d.ts +2 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbEllipsis.d.ts +9 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbItem/BreadcrumbItem.d.ts +6 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbItem/BreadcrumbItem.styles.d.ts +6 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbItem/index.d.ts +1 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbItem.d.ts +6 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.d.ts +7 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.props.d.ts +14 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.styles.d.ts +7 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbLink/index.d.ts +2 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbLink.d.ts +6 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbList/BreadcrumbList.d.ts +6 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbList/BreadcrumbList.styles.d.ts +6 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbList/index.d.ts +1 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbList.d.ts +6 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.d.ts +7 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.props.d.ts +10 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.styles.d.ts +7 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbPage/index.d.ts +2 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbPage.d.ts +6 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.d.ts +7 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.props.d.ts +5 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.styles.d.ts +6 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbSeparator/index.d.ts +2 -0
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbSeparator.d.ts +9 -0
- package/dist/cjs/components/navigation/breadcrumb/index.d.ts +10 -0
- package/dist/cjs/components/navigation/drawer-item/DrawerItem.props.d.ts +10 -0
- package/dist/cjs/components/overlay/accordion/Accordion.d.ts +10 -0
- package/dist/cjs/components/overlay/accordion/Accordion.props.d.ts +52 -0
- package/dist/cjs/components/overlay/accordion/Accordion.styles.d.ts +7 -0
- package/dist/cjs/components/overlay/accordion/index.d.ts +2 -0
- package/dist/cjs/index.js +741 -203
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/button.types.d.ts +14 -1
- package/dist/cjs/resources/Icons.d.ts +5 -1
- package/dist/cjs/resources/icons/ChevronRightIcon.d.ts +1 -0
- package/dist/cjs/resources/icons/EyeIcon.d.ts +1 -0
- package/dist/cjs/resources/icons/EyeOffIcon.d.ts +1 -0
- package/dist/cjs/resources/icons/MoreHorizontalIcon.d.ts +1 -0
- package/dist/cjs/utils/ui/components/actions/button/getButtonSizeStyles.utils.d.ts +12 -0
- package/dist/cjs/utils/ui/components/actions/button/getButtonVariantStyles.utils.d.ts +7 -0
- package/dist/cjs/utils/ui/components/actions/icon-button/getIconButtonSizeStyles.utils.d.ts +9 -0
- package/dist/cjs/utils/ui/components/data-display/chip/getChipColorStyles.utils.d.ts +7 -0
- package/dist/cjs/utils/ui/components/data-display/chip/getChipContentSize.utils.d.ts +8 -0
- package/dist/cjs/utils/ui/components/data-display/chip/getChipSizeStyles.utils.d.ts +12 -0
- package/dist/cjs/utils/ui/components/foundation/text/getTextVariantStyles.utils.d.ts +7 -0
- package/dist/cjs/utils/ui/components/foundation/text/getTruncateTextStyles.utils.d.ts +17 -0
- package/dist/cjs/utils/ui/components/foundation/text/parseTextWithBold.utils.d.ts +7 -0
- package/dist/cjs/utils/ui/components/navigation/breadcrumb/buildBreadcrumbChildren.utils.d.ts +5 -0
- package/dist/cjs/utils/ui/components/navigation/breadcrumb/flattenChildren.utils.d.ts +5 -0
- package/dist/cjs/utils/ui/components/navigation/breadcrumb/insertSeparators.utils.d.ts +5 -0
- package/dist/cjs/utils/ui/components/navigation/breadcrumb/isSeparator.utils.d.ts +5 -0
- package/dist/esm/components/actions/button/Button.d.ts +12 -0
- package/dist/esm/components/actions/button/Button.props.d.ts +41 -0
- package/dist/esm/components/actions/button/Button.styles.d.ts +18 -0
- package/dist/esm/components/actions/button/index.d.ts +2 -0
- package/dist/esm/components/actions/icon-button/IconButton.d.ts +4 -0
- package/dist/esm/components/actions/icon-button/IconButton.props.d.ts +37 -0
- package/dist/esm/components/actions/icon-button/IconButton.styles.d.ts +4 -0
- package/dist/esm/components/actions/icon-button/index.d.ts +2 -0
- package/dist/esm/components/data-display/chip/Chip.props.d.ts +10 -0
- package/dist/esm/components/forms/form/Form.d.ts +3 -0
- package/dist/esm/components/forms/form/Form.props.d.ts +9 -0
- package/dist/esm/components/forms/form/Form.styles.d.ts +3 -0
- package/dist/esm/components/forms/form/index.d.ts +2 -0
- package/dist/esm/components/forms/input/Input.d.ts +3 -0
- package/dist/esm/components/forms/input/Input.props.d.ts +32 -0
- package/dist/esm/components/forms/input/Input.styles.d.ts +15 -0
- package/dist/esm/components/forms/input/index.d.ts +2 -0
- package/dist/esm/components/forms/textarea/TextArea.d.ts +3 -0
- package/dist/esm/components/forms/textarea/TextArea.props.d.ts +27 -0
- package/dist/esm/components/forms/textarea/TextArea.styles.d.ts +11 -0
- package/dist/esm/components/forms/textarea/index.d.ts +2 -0
- package/dist/esm/components/foundation/icon/Icon.d.ts +35 -0
- package/dist/esm/components/foundation/icon/Icon.props.d.ts +24 -0
- package/dist/esm/components/foundation/icon/Icon.styles.d.ts +3 -0
- package/dist/esm/components/foundation/icon/index.d.ts +2 -0
- package/dist/esm/components/foundation/text/Text.d.ts +21 -0
- package/dist/esm/components/foundation/text/Text.props.d.ts +38 -0
- package/dist/esm/components/foundation/text/Text.styles.d.ts +4 -0
- package/dist/esm/components/foundation/text/index.d.ts +2 -0
- package/dist/esm/components/index.d.ts +11 -5
- package/dist/esm/components/inputs/button/Button.props.d.ts +1 -0
- package/dist/esm/components/inputs/icon-button/IconButton.props.d.ts +1 -0
- package/dist/esm/components/inputs/input/Input.d.ts +6 -0
- package/dist/esm/components/inputs/input/Input.props.d.ts +17 -0
- package/dist/esm/components/inputs/input/Input.styles.d.ts +7 -0
- package/dist/esm/components/inputs/input/index.d.ts +2 -0
- package/dist/esm/components/layout/card/Card.props.d.ts +10 -0
- package/dist/esm/components/layout/grid/Grid.props.d.ts +10 -0
- package/dist/esm/components/layout/page-construction/page/Page.d.ts +10 -0
- package/dist/esm/components/layout/page-construction/page/Page.props.d.ts +30 -0
- package/dist/esm/components/layout/page-construction/page/Page.styles.d.ts +5 -0
- package/dist/esm/components/layout/page-construction/page/index.d.ts +2 -0
- package/dist/esm/components/layout/page-construction/page-section/PageSection.d.ts +10 -0
- package/dist/esm/components/layout/page-construction/page-section/PageSection.props.d.ts +34 -0
- package/dist/esm/components/layout/page-construction/page-section/PageSection.styles.d.ts +4 -0
- package/dist/esm/components/layout/page-construction/page-section/index.d.ts +2 -0
- package/dist/esm/components/layout/stack/Stack.props.d.ts +10 -0
- package/dist/esm/components/layout/text/Text.d.ts +1 -0
- package/dist/esm/components/layout/text/Text.props.d.ts +3 -0
- package/dist/esm/components/navigation/breadcrumb/Breadcrumb.d.ts +12 -0
- package/dist/esm/components/navigation/breadcrumb/Breadcrumb.props.d.ts +13 -0
- package/dist/esm/components/navigation/breadcrumb/Breadcrumb.styles.d.ts +6 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.d.ts +8 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.props.d.ts +5 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.styles.d.ts +7 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbEllipsis/index.d.ts +2 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbEllipsis.d.ts +9 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbItem/BreadcrumbItem.d.ts +6 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbItem/BreadcrumbItem.styles.d.ts +6 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbItem/index.d.ts +1 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbItem.d.ts +6 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.d.ts +7 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.props.d.ts +14 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.styles.d.ts +7 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbLink/index.d.ts +2 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbLink.d.ts +6 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbList/BreadcrumbList.d.ts +6 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbList/BreadcrumbList.styles.d.ts +6 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbList/index.d.ts +1 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbList.d.ts +6 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.d.ts +7 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.props.d.ts +10 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.styles.d.ts +7 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbPage/index.d.ts +2 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbPage.d.ts +6 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.d.ts +7 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.props.d.ts +5 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.styles.d.ts +6 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator/index.d.ts +2 -0
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator.d.ts +9 -0
- package/dist/esm/components/navigation/breadcrumb/index.d.ts +10 -0
- package/dist/esm/components/navigation/drawer-item/DrawerItem.props.d.ts +10 -0
- package/dist/esm/components/overlay/accordion/Accordion.d.ts +10 -0
- package/dist/esm/components/overlay/accordion/Accordion.props.d.ts +52 -0
- package/dist/esm/components/overlay/accordion/Accordion.styles.d.ts +7 -0
- package/dist/esm/components/overlay/accordion/index.d.ts +2 -0
- package/dist/esm/index.js +733 -205
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/button.types.d.ts +14 -1
- package/dist/esm/resources/Icons.d.ts +5 -1
- package/dist/esm/resources/icons/ChevronRightIcon.d.ts +1 -0
- package/dist/esm/resources/icons/EyeIcon.d.ts +1 -0
- package/dist/esm/resources/icons/EyeOffIcon.d.ts +1 -0
- package/dist/esm/resources/icons/MoreHorizontalIcon.d.ts +1 -0
- package/dist/esm/utils/ui/components/actions/button/getButtonSizeStyles.utils.d.ts +12 -0
- package/dist/esm/utils/ui/components/actions/button/getButtonVariantStyles.utils.d.ts +7 -0
- package/dist/esm/utils/ui/components/actions/icon-button/getIconButtonSizeStyles.utils.d.ts +9 -0
- package/dist/esm/utils/ui/components/data-display/chip/getChipColorStyles.utils.d.ts +7 -0
- package/dist/esm/utils/ui/components/data-display/chip/getChipContentSize.utils.d.ts +8 -0
- package/dist/esm/utils/ui/components/data-display/chip/getChipSizeStyles.utils.d.ts +12 -0
- package/dist/esm/utils/ui/components/foundation/text/getTextVariantStyles.utils.d.ts +7 -0
- package/dist/esm/utils/ui/components/foundation/text/getTruncateTextStyles.utils.d.ts +17 -0
- package/dist/esm/utils/ui/components/foundation/text/parseTextWithBold.utils.d.ts +7 -0
- package/dist/esm/utils/ui/components/navigation/breadcrumb/buildBreadcrumbChildren.utils.d.ts +5 -0
- package/dist/esm/utils/ui/components/navigation/breadcrumb/flattenChildren.utils.d.ts +5 -0
- package/dist/esm/utils/ui/components/navigation/breadcrumb/insertSeparators.utils.d.ts +5 -0
- package/dist/esm/utils/ui/components/navigation/breadcrumb/isSeparator.utils.d.ts +5 -0
- package/dist/index.d.ts +382 -45
- package/package.json +76 -77
|
@@ -25,6 +25,16 @@ export type CardProps = {
|
|
|
25
25
|
backgroundColor?: keyof Theme['colors'];
|
|
26
26
|
/** Border color of the card */
|
|
27
27
|
borderColor?: keyof Theme['colors'];
|
|
28
|
+
/** Accessibility label for screen readers */
|
|
29
|
+
ariaLabel?: string;
|
|
30
|
+
/** ID of element that labels this card */
|
|
31
|
+
ariaLabelledBy?: string;
|
|
32
|
+
/** ID of element that describes this card */
|
|
33
|
+
ariaDescribedBy?: string;
|
|
34
|
+
/** ARIA role */
|
|
35
|
+
role?: string;
|
|
36
|
+
/** Tab index for keyboard navigation */
|
|
37
|
+
tabIndex?: number;
|
|
28
38
|
};
|
|
29
39
|
export type CardStyleParams = {
|
|
30
40
|
direction: CSSProperties['flexDirection'];
|
|
@@ -29,6 +29,16 @@ export type GridProps = {
|
|
|
29
29
|
padding?: keyof Theme['spacing'];
|
|
30
30
|
/** Minimum width for auto-fill/auto-fit columns */
|
|
31
31
|
minChildWidth?: CSSProperties['width'];
|
|
32
|
+
/** Accessibility label for screen readers */
|
|
33
|
+
ariaLabel?: string;
|
|
34
|
+
/** ID of element that labels this grid */
|
|
35
|
+
ariaLabelledBy?: string;
|
|
36
|
+
/** ID of element that describes this grid */
|
|
37
|
+
ariaDescribedBy?: string;
|
|
38
|
+
/** ARIA role */
|
|
39
|
+
role?: string;
|
|
40
|
+
/** Tab index for keyboard navigation */
|
|
41
|
+
tabIndex?: number;
|
|
32
42
|
};
|
|
33
43
|
export type GridStyleParams = {
|
|
34
44
|
columns?: number | string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { PageProps } from '@components/layout/page-construction/page/Page.props.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Page component
|
|
5
|
+
*
|
|
6
|
+
* A layout component that provides consistent page structure with optional footer.
|
|
7
|
+
* Supports customization of dimensions, background, and content constraints.
|
|
8
|
+
*/
|
|
9
|
+
declare const Page: FC<PageProps>;
|
|
10
|
+
export default Page;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type PageProps = {
|
|
3
|
+
/** Page content */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Optional footer component */
|
|
6
|
+
footer?: ReactNode;
|
|
7
|
+
/** Maximum width of the page content (default: 100%) */
|
|
8
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
9
|
+
/** Background color */
|
|
10
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
11
|
+
/** Padding around the page */
|
|
12
|
+
padding?: CSSProperties['padding'];
|
|
13
|
+
/** Custom className for additional styling */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Accessibility label for screen readers */
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
/** ID of element that labels this page */
|
|
18
|
+
ariaLabelledBy?: string;
|
|
19
|
+
/** ID of element that describes this page */
|
|
20
|
+
ariaDescribedBy?: string;
|
|
21
|
+
/** ARIA role */
|
|
22
|
+
role?: string;
|
|
23
|
+
/** Tab index for keyboard navigation */
|
|
24
|
+
tabIndex?: number;
|
|
25
|
+
};
|
|
26
|
+
export type PageStyleParams = {
|
|
27
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
28
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
29
|
+
padding?: CSSProperties['padding'];
|
|
30
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { PageSectionProps } from '@components/layout/page-construction/page-section/PageSection.props.ts';
|
|
3
|
+
/**
|
|
4
|
+
* PageSection component
|
|
5
|
+
*
|
|
6
|
+
* A layout component that provides consistent spacing and alignment for page sections.
|
|
7
|
+
* Supports customization of gap, padding, alignment, min height and max width.
|
|
8
|
+
*/
|
|
9
|
+
declare const PageSection: FC<PageSectionProps>;
|
|
10
|
+
export default PageSection;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Theme } from '@aurora-ds/theme';
|
|
2
|
+
import { CSSProperties, PropsWithChildren } from 'react';
|
|
3
|
+
export type PageSectionProps = PropsWithChildren<{
|
|
4
|
+
/** Gap between child elements */
|
|
5
|
+
gap?: keyof Theme['spacing'];
|
|
6
|
+
/** Horizontal padding around the section */
|
|
7
|
+
paddingHorizontal?: keyof Theme['spacing'];
|
|
8
|
+
/** Vertical padding around the section */
|
|
9
|
+
paddingVertical?: keyof Theme['spacing'];
|
|
10
|
+
/** Alignment of items within the section */
|
|
11
|
+
alignItems?: CSSProperties['alignItems'];
|
|
12
|
+
/** Maximum width of the section */
|
|
13
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
14
|
+
/** Minimum height of the section */
|
|
15
|
+
minHeight?: CSSProperties['minHeight'];
|
|
16
|
+
/** Accessibility label for screen readers */
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
/** ID of element that labels this section */
|
|
19
|
+
ariaLabelledBy?: string;
|
|
20
|
+
/** ID of element that describes this section */
|
|
21
|
+
ariaDescribedBy?: string;
|
|
22
|
+
/** ARIA role */
|
|
23
|
+
role?: string;
|
|
24
|
+
/** Tab index for keyboard navigation */
|
|
25
|
+
tabIndex?: number;
|
|
26
|
+
}>;
|
|
27
|
+
export type PageSectionStyleParams = {
|
|
28
|
+
gap?: keyof Theme['spacing'];
|
|
29
|
+
paddingHorizontal?: keyof Theme['spacing'];
|
|
30
|
+
paddingVertical?: keyof Theme['spacing'];
|
|
31
|
+
alignItems?: CSSProperties['alignItems'];
|
|
32
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
33
|
+
minHeight?: CSSProperties['minHeight'];
|
|
34
|
+
};
|
|
@@ -19,6 +19,16 @@ export type StackProps = {
|
|
|
19
19
|
wrap?: CSSProperties['flexWrap'];
|
|
20
20
|
/** Padding inside the stack */
|
|
21
21
|
padding?: keyof Theme['spacing'];
|
|
22
|
+
/** Accessibility label for screen readers */
|
|
23
|
+
ariaLabel?: string;
|
|
24
|
+
/** ID of element that labels this stack */
|
|
25
|
+
ariaLabelledBy?: string;
|
|
26
|
+
/** ID of element that describes this stack */
|
|
27
|
+
ariaDescribedBy?: string;
|
|
28
|
+
/** ARIA role */
|
|
29
|
+
role?: string;
|
|
30
|
+
/** Tab index for keyboard navigation */
|
|
31
|
+
tabIndex?: number;
|
|
22
32
|
};
|
|
23
33
|
export type StackStyleParams = {
|
|
24
34
|
direction: CSSProperties['flexDirection'];
|
|
@@ -14,6 +14,7 @@ import { TextProps } from '@components/layout/text/Text.props.ts';
|
|
|
14
14
|
* - Theme-aware colors
|
|
15
15
|
* - Text truncation with `maxLines`
|
|
16
16
|
* - Underline support
|
|
17
|
+
* - Preserve whitespace with `preserveWhitespace` prop
|
|
17
18
|
* - Bold text with **double asterisks** syntax
|
|
18
19
|
*/
|
|
19
20
|
declare const Text: FC<TextProps>;
|
|
@@ -14,6 +14,8 @@ export type TextProps = PropsWithChildren<{
|
|
|
14
14
|
maxLines?: number;
|
|
15
15
|
/** Add underline text decoration */
|
|
16
16
|
underline?: boolean;
|
|
17
|
+
/** Preserve whitespace and line breaks */
|
|
18
|
+
preserveWhitespace?: boolean;
|
|
17
19
|
}>;
|
|
18
20
|
export type TextStyleParams = {
|
|
19
21
|
variant?: TextVariants;
|
|
@@ -22,4 +24,5 @@ export type TextStyleParams = {
|
|
|
22
24
|
fontFamily?: string;
|
|
23
25
|
maxLines?: number;
|
|
24
26
|
underline?: boolean;
|
|
27
|
+
preserveWhitespace?: boolean;
|
|
25
28
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BreadcrumbProps } from '@components/navigation/breadcrumb/Breadcrumb.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Breadcrumb component
|
|
4
|
+
* Navigation component for hierarchical page structures
|
|
5
|
+
*
|
|
6
|
+
* @param maxItems - Maximum number of items to display (minimum 2).
|
|
7
|
+
* If exceeded, shows: first item + ellipsis + last (maxItems - 1) items
|
|
8
|
+
* @param children
|
|
9
|
+
* @param props
|
|
10
|
+
*/
|
|
11
|
+
declare const Breadcrumb: import("react").NamedExoticComponent<BreadcrumbProps>;
|
|
12
|
+
export { Breadcrumb };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Breadcrumb component
|
|
4
|
+
*/
|
|
5
|
+
export interface BreadcrumbProps extends ComponentPropsWithoutRef<'nav'> {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of items to display (minimum 2).
|
|
8
|
+
* If exceeded, shows: first item + ellipsis + last (maxItems - 1) items
|
|
9
|
+
* Separators are automatically inserted between items.
|
|
10
|
+
* @example maxItems={3} with 6 items → Home > ... > Item5 > Item6
|
|
11
|
+
*/
|
|
12
|
+
maxItems?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { BreadcrumbEllipsisProps } from '@components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.props.ts';
|
|
3
|
+
/**
|
|
4
|
+
* BreadcrumbEllipsis component
|
|
5
|
+
* Renders an ellipsis item in the breadcrumb (includes the li wrapper)
|
|
6
|
+
*/
|
|
7
|
+
declare const BreadcrumbEllipsis: FC<BreadcrumbEllipsisProps>;
|
|
8
|
+
export { BreadcrumbEllipsis };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BreadcrumbEllipsisProps } from '@components/navigation/breadcrumb/Breadcrumb.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* BreadcrumbEllipsis component
|
|
4
|
+
*/
|
|
5
|
+
declare const BreadcrumbEllipsis: {
|
|
6
|
+
(props: BreadcrumbEllipsisProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export { BreadcrumbEllipsis };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BreadcrumbItemProps } from '@components/navigation/breadcrumb/Breadcrumb.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* BreadcrumbItem component
|
|
4
|
+
*/
|
|
5
|
+
declare const BreadcrumbItem: import("react").ForwardRefExoticComponent<BreadcrumbItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
6
|
+
export { BreadcrumbItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BreadcrumbItem } from '@components/navigation/breadcrumb/BreadcrumbItem/BreadcrumbItem.tsx';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BreadcrumbItemProps } from '@components/navigation/breadcrumb/Breadcrumb.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* BreadcrumbItem component
|
|
4
|
+
*/
|
|
5
|
+
declare const BreadcrumbItem: import("react").ForwardRefExoticComponent<BreadcrumbItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
6
|
+
export { BreadcrumbItem };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BreadcrumbLinkProps } from '@components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* BreadcrumbLink component
|
|
4
|
+
* Renders a clickable breadcrumb item with a link
|
|
5
|
+
*/
|
|
6
|
+
declare const BreadcrumbLink: import("react").NamedExoticComponent<BreadcrumbLinkProps>;
|
|
7
|
+
export { BreadcrumbLink };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the BreadcrumbLink component
|
|
3
|
+
* Renders a clickable breadcrumb item (includes the li wrapper)
|
|
4
|
+
*/
|
|
5
|
+
export interface BreadcrumbLinkProps {
|
|
6
|
+
/**
|
|
7
|
+
* The text content of the link (required)
|
|
8
|
+
*/
|
|
9
|
+
children: string;
|
|
10
|
+
/**
|
|
11
|
+
* Click handler for navigation (compatible with React Router)
|
|
12
|
+
*/
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BreadcrumbLinkProps } from '@components/navigation/breadcrumb/Breadcrumb.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* BreadcrumbLink component
|
|
4
|
+
*/
|
|
5
|
+
declare const BreadcrumbLink: import("react").ForwardRefExoticComponent<BreadcrumbLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
6
|
+
export { BreadcrumbLink };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BreadcrumbListProps } from '@components/navigation/breadcrumb/Breadcrumb.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* BreadcrumbList component
|
|
4
|
+
*/
|
|
5
|
+
declare const BreadcrumbList: import("react").ForwardRefExoticComponent<BreadcrumbListProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
6
|
+
export { BreadcrumbList };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BreadcrumbList } from '@components/navigation/breadcrumb/BreadcrumbList/BreadcrumbList.tsx';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BreadcrumbListProps } from '@components/navigation/breadcrumb/Breadcrumb.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* BreadcrumbList component
|
|
4
|
+
*/
|
|
5
|
+
declare const BreadcrumbList: import("react").ForwardRefExoticComponent<BreadcrumbListProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
6
|
+
export { BreadcrumbList };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BreadcrumbPageProps } from '@components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* BreadcrumbPage component
|
|
4
|
+
* Renders the current page (non-clickable) in the breadcrumb
|
|
5
|
+
*/
|
|
6
|
+
declare const BreadcrumbPage: import("react").NamedExoticComponent<BreadcrumbPageProps>;
|
|
7
|
+
export { BreadcrumbPage };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BreadcrumbPageProps } from '@components/navigation/breadcrumb/Breadcrumb.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* BreadcrumbPage component
|
|
4
|
+
*/
|
|
5
|
+
declare const BreadcrumbPage: import("react").ForwardRefExoticComponent<BreadcrumbPageProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export { BreadcrumbPage };
|
package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { BreadcrumbSeparatorProps } from '@components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.props.ts';
|
|
3
|
+
/**
|
|
4
|
+
* BreadcrumbSeparator component
|
|
5
|
+
*/
|
|
6
|
+
declare const BreadcrumbSeparator: FC<BreadcrumbSeparatorProps>;
|
|
7
|
+
export { BreadcrumbSeparator };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BreadcrumbSeparatorProps } from '@components/navigation/breadcrumb/Breadcrumb.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* BreadcrumbSeparator component
|
|
4
|
+
*/
|
|
5
|
+
declare const BreadcrumbSeparator: {
|
|
6
|
+
({ children, ...props }: BreadcrumbSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export { BreadcrumbSeparator };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Breadcrumb } from '@components/navigation/breadcrumb/Breadcrumb.tsx';
|
|
2
|
+
export type { BreadcrumbProps } from '@components/navigation/breadcrumb/Breadcrumb.props.ts';
|
|
3
|
+
export { BreadcrumbLink } from '@components/navigation/breadcrumb/BreadcrumbLink';
|
|
4
|
+
export { BreadcrumbPage } from '@components/navigation/breadcrumb/BreadcrumbPage';
|
|
5
|
+
export { BreadcrumbSeparator } from '@components/navigation/breadcrumb/BreadcrumbSeparator';
|
|
6
|
+
export { BreadcrumbEllipsis } from '@components/navigation/breadcrumb/BreadcrumbEllipsis';
|
|
7
|
+
export type { BreadcrumbLinkProps } from '@components/navigation/breadcrumb/BreadcrumbLink';
|
|
8
|
+
export type { BreadcrumbPageProps } from '@components/navigation/breadcrumb/BreadcrumbPage';
|
|
9
|
+
export type { BreadcrumbSeparatorProps } from '@components/navigation/breadcrumb/BreadcrumbSeparator';
|
|
10
|
+
export type { BreadcrumbEllipsisProps } from '@components/navigation/breadcrumb/BreadcrumbEllipsis';
|
|
@@ -15,6 +15,16 @@ export type DrawerItemProps = {
|
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
/** Optional chip to display */
|
|
17
17
|
chip?: Omit<ChipProps, 'size' | 'disabled'>;
|
|
18
|
+
/** Accessibility label for screen readers */
|
|
19
|
+
ariaLabel?: string;
|
|
20
|
+
/** ID of element that labels this item */
|
|
21
|
+
ariaLabelledBy?: string;
|
|
22
|
+
/** ID of element that describes this item */
|
|
23
|
+
ariaDescribedBy?: string;
|
|
24
|
+
/** ARIA role */
|
|
25
|
+
role?: string;
|
|
26
|
+
/** Tab index for keyboard navigation */
|
|
27
|
+
tabIndex?: number;
|
|
18
28
|
};
|
|
19
29
|
export type DrawerItemStyleParams = {
|
|
20
30
|
selected?: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AccordionProps } from '@components/overlay/accordion/Accordion.props.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Accordion component
|
|
5
|
+
*
|
|
6
|
+
* A collapsible container that can show/hide content.
|
|
7
|
+
* Supports controlled and uncontrolled modes.
|
|
8
|
+
*/
|
|
9
|
+
declare const Accordion: FC<AccordionProps>;
|
|
10
|
+
export default Accordion;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Theme } from '@aurora-ds/theme';
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
export type AccordionProps = {
|
|
4
|
+
/** Title displayed in the accordion header */
|
|
5
|
+
title: string;
|
|
6
|
+
/** Content to show/hide when accordion is expanded */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** Whether the accordion is expanded */
|
|
9
|
+
expanded?: boolean;
|
|
10
|
+
/** Default expanded state (for uncontrolled mode) */
|
|
11
|
+
defaultExpanded?: boolean;
|
|
12
|
+
/** Callback fired when the accordion expands or collapses */
|
|
13
|
+
onChange?: (expanded: boolean) => void;
|
|
14
|
+
/** Disabled state */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Optional icon to display before title */
|
|
17
|
+
icon?: ReactNode;
|
|
18
|
+
/** Optional background color */
|
|
19
|
+
backgroundColor?: keyof Theme['colors'];
|
|
20
|
+
/** Optional width */
|
|
21
|
+
width?: CSSProperties['width'];
|
|
22
|
+
/** Padding for the accordion header */
|
|
23
|
+
headerPadding?: CSSProperties['padding'];
|
|
24
|
+
/** Padding for the accordion content */
|
|
25
|
+
contentPadding?: CSSProperties['padding'];
|
|
26
|
+
/** Accessibility label for screen readers */
|
|
27
|
+
ariaLabel?: string;
|
|
28
|
+
/** ID of element that labels this accordion */
|
|
29
|
+
ariaLabelledBy?: string;
|
|
30
|
+
/** ID of element that describes this accordion */
|
|
31
|
+
ariaDescribedBy?: string;
|
|
32
|
+
/** ARIA role */
|
|
33
|
+
role?: string;
|
|
34
|
+
/** Tab index for keyboard navigation */
|
|
35
|
+
tabIndex?: number;
|
|
36
|
+
};
|
|
37
|
+
export type AccordionStyleParams = {
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
width?: CSSProperties['width'];
|
|
40
|
+
};
|
|
41
|
+
export type AccordionHeaderStyleParams = {
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
backgroundColor?: keyof Theme['colors'];
|
|
44
|
+
headerPadding?: CSSProperties['padding'];
|
|
45
|
+
};
|
|
46
|
+
export type AccordionContentStyleParams = {
|
|
47
|
+
expanded: boolean;
|
|
48
|
+
contentPadding?: CSSProperties['padding'];
|
|
49
|
+
};
|
|
50
|
+
export type AccordionIconStyleParams = {
|
|
51
|
+
expanded: boolean;
|
|
52
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AccordionContentStyleParams, AccordionHeaderStyleParams, AccordionIconStyleParams, AccordionStyleParams } from '@components/overlay/accordion/Accordion.props.ts';
|
|
2
|
+
export declare const ACCORDION_STYLES: {
|
|
3
|
+
root: (args_0: AccordionStyleParams) => string;
|
|
4
|
+
header: (args_0: AccordionHeaderStyleParams) => string;
|
|
5
|
+
expandIcon: (args_0: AccordionIconStyleParams) => string;
|
|
6
|
+
content: (args_0: AccordionContentStyleParams) => string;
|
|
7
|
+
};
|