@aurora-ds/components 0.6.8 → 0.14.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 +16 -3
- 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/avatar/Avatar.d.ts +9 -0
- package/dist/cjs/components/data-display/avatar/Avatar.props.d.ts +25 -0
- package/dist/cjs/components/data-display/avatar/Avatar.styles.d.ts +10 -0
- package/dist/cjs/components/data-display/avatar/AvatarGroup.d.ts +9 -0
- package/dist/cjs/components/data-display/avatar/avatar-group/AvatarGroup.d.ts +9 -0
- package/dist/cjs/components/data-display/avatar/avatar-group/AvatarGroup.props.d.ts +10 -0
- package/dist/cjs/components/data-display/avatar/avatar-group/AvatarGroup.styles.d.ts +14 -0
- package/dist/cjs/components/data-display/avatar/index.d.ts +4 -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 +15 -5
- 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/separator/Separator.d.ts +9 -0
- package/dist/cjs/components/layout/separator/Separator.props.d.ts +17 -0
- package/dist/cjs/components/layout/separator/Separator.styles.d.ts +7 -0
- package/dist/cjs/components/layout/separator/index.d.ts +2 -0
- package/dist/cjs/components/layout/stack/Stack.props.d.ts +10 -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/navigation/tabs/Tabs.d.ts +7 -0
- package/dist/cjs/components/navigation/tabs/Tabs.props.d.ts +12 -0
- package/dist/cjs/components/navigation/tabs/Tabs.styles.d.ts +7 -0
- package/dist/cjs/components/navigation/tabs/index.d.ts +4 -0
- package/dist/cjs/components/navigation/tabs/tab-item/TabItem.d.ts +7 -0
- package/dist/cjs/components/navigation/tabs/tab-item/TabItem.props.d.ts +10 -0
- package/dist/cjs/components/navigation/tabs/tab-item/TabItem.styles.d.ts +6 -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/components/overlay/menu/Menu.d.ts +4 -0
- package/dist/cjs/components/overlay/menu/Menu.props.d.ts +8 -0
- package/dist/cjs/components/overlay/menu/Menu.styles.d.ts +4 -0
- package/dist/cjs/components/overlay/menu/index.d.ts +2 -0
- package/dist/cjs/constants/globalConstants.d.ts +1 -0
- package/dist/cjs/hooks/index.d.ts +5 -0
- package/dist/cjs/hooks/useAnchorPosition.d.ts +17 -0
- package/dist/cjs/hooks/useAnchorPosition.types.d.ts +5 -0
- package/dist/cjs/hooks/useClickOutside.d.ts +8 -0
- package/dist/cjs/hooks/useTransitionRender.d.ts +7 -0
- package/dist/cjs/hooks/useTransitionRender.types.d.ts +4 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1063 -191
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/avatar.types.d.ts +2 -0
- package/dist/cjs/interfaces/button.types.d.ts +14 -1
- package/dist/cjs/interfaces/index.d.ts +1 -0
- 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/avatar/getAvatarSizes.utils.d.ts +11 -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/avatar/Avatar.d.ts +9 -0
- package/dist/esm/components/data-display/avatar/Avatar.props.d.ts +25 -0
- package/dist/esm/components/data-display/avatar/Avatar.styles.d.ts +10 -0
- package/dist/esm/components/data-display/avatar/AvatarGroup.d.ts +9 -0
- package/dist/esm/components/data-display/avatar/avatar-group/AvatarGroup.d.ts +9 -0
- package/dist/esm/components/data-display/avatar/avatar-group/AvatarGroup.props.d.ts +10 -0
- package/dist/esm/components/data-display/avatar/avatar-group/AvatarGroup.styles.d.ts +14 -0
- package/dist/esm/components/data-display/avatar/index.d.ts +4 -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 +15 -5
- 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/separator/Separator.d.ts +9 -0
- package/dist/esm/components/layout/separator/Separator.props.d.ts +17 -0
- package/dist/esm/components/layout/separator/Separator.styles.d.ts +7 -0
- package/dist/esm/components/layout/separator/index.d.ts +2 -0
- package/dist/esm/components/layout/stack/Stack.props.d.ts +10 -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/navigation/tabs/Tabs.d.ts +7 -0
- package/dist/esm/components/navigation/tabs/Tabs.props.d.ts +12 -0
- package/dist/esm/components/navigation/tabs/Tabs.styles.d.ts +7 -0
- package/dist/esm/components/navigation/tabs/index.d.ts +4 -0
- package/dist/esm/components/navigation/tabs/tab-item/TabItem.d.ts +7 -0
- package/dist/esm/components/navigation/tabs/tab-item/TabItem.props.d.ts +10 -0
- package/dist/esm/components/navigation/tabs/tab-item/TabItem.styles.d.ts +6 -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/components/overlay/menu/Menu.d.ts +4 -0
- package/dist/esm/components/overlay/menu/Menu.props.d.ts +8 -0
- package/dist/esm/components/overlay/menu/Menu.styles.d.ts +4 -0
- package/dist/esm/components/overlay/menu/index.d.ts +2 -0
- package/dist/esm/constants/globalConstants.d.ts +1 -0
- package/dist/esm/hooks/index.d.ts +5 -0
- package/dist/esm/hooks/useAnchorPosition.d.ts +17 -0
- package/dist/esm/hooks/useAnchorPosition.types.d.ts +5 -0
- package/dist/esm/hooks/useClickOutside.d.ts +8 -0
- package/dist/esm/hooks/useTransitionRender.d.ts +7 -0
- package/dist/esm/hooks/useTransitionRender.types.d.ts +4 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1041 -188
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/avatar.types.d.ts +2 -0
- package/dist/esm/interfaces/button.types.d.ts +14 -1
- package/dist/esm/interfaces/index.d.ts +1 -0
- 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/avatar/getAvatarSizes.utils.d.ts +11 -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 +519 -44
- package/package.json +76 -77
package/README.md
CHANGED
|
@@ -47,13 +47,26 @@ function App() {
|
|
|
47
47
|
| Component | Description |
|
|
48
48
|
|-----------|-------------|
|
|
49
49
|
| **Accordion** | Collapsible container to show/hide content |
|
|
50
|
+
| **Avatar** | User avatar display component with image or initials |
|
|
51
|
+
| **AvatarGroup** | Group of avatars with overlapping display |
|
|
52
|
+
| **Breadcrumb** | Navigation component for hierarchical page structures |
|
|
50
53
|
| **Button** | Button with variants (contained, outlined, text), icons, and states |
|
|
51
|
-
| **IconButton** | Icon-only button component |
|
|
52
|
-
| **Text** | Typography component with semantic HTML tags (h1-h6, p, span, label) |
|
|
53
|
-
| **Stack** | Flexbox container for horizontal/vertical layouts |
|
|
54
54
|
| **Card** | Container with background, border radius, and shadow |
|
|
55
55
|
| **Chip** | Compact element for tags, labels, or status indicators |
|
|
56
|
+
| **DrawerItem** | Item in a drawer navigation |
|
|
57
|
+
| **Form** | Form container component |
|
|
58
|
+
| **Grid** | Grid layout component |
|
|
56
59
|
| **Icon** | Icon wrapper component |
|
|
60
|
+
| **IconButton** | Icon-only button component |
|
|
61
|
+
| **Input** | Input field component with controlled value and change handler |
|
|
62
|
+
| **Menu** | Dropdown menu component positioned absolutely |
|
|
63
|
+
| **Page** | Page layout component |
|
|
64
|
+
| **PageSection** | Section within a page |
|
|
65
|
+
| **Separator** | Visual separator component |
|
|
66
|
+
| **Stack** | Flexbox container for horizontal/vertical layouts |
|
|
67
|
+
| **Tabs** | Tab navigation component with multiple sections, used with `TabItem` |
|
|
68
|
+
| **Text** | Typography component with semantic HTML tags (h1-h6, p, span, label) |
|
|
69
|
+
| **TextArea** | Multi-line text input component |
|
|
57
70
|
|
|
58
71
|
## License
|
|
59
72
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ButtonProps } from '@components/actions/button/Button.props.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Button component
|
|
5
|
+
*
|
|
6
|
+
* **Variants:**
|
|
7
|
+
* - `contained`: Solid background button (default)
|
|
8
|
+
* - `outlined`: Border only button
|
|
9
|
+
* - `text`: Text only button without background
|
|
10
|
+
*/
|
|
11
|
+
declare const Button: FC<ButtonProps>;
|
|
12
|
+
export default Button;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Theme } from '@aurora-ds/theme';
|
|
2
|
+
import { ReactNode, MouseEvent } from 'react';
|
|
3
|
+
import { ButtonVariants, IconButtonSizes } from '@interfaces/button.types.ts';
|
|
4
|
+
export type ButtonProps = {
|
|
5
|
+
/** Button text label */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Optional icon to display before label */
|
|
8
|
+
startIcon?: ReactNode;
|
|
9
|
+
/** Optional icon to display after label */
|
|
10
|
+
endIcon?: ReactNode;
|
|
11
|
+
/** Click handler */
|
|
12
|
+
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
+
/** Visual variant of the button */
|
|
14
|
+
variant?: ButtonVariants;
|
|
15
|
+
/** Button type attribute */
|
|
16
|
+
type?: 'button' | 'submit';
|
|
17
|
+
/** Active/pressed state */
|
|
18
|
+
active?: boolean;
|
|
19
|
+
/** Disabled state */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Custom text color (overrides variant color) */
|
|
22
|
+
textColor?: keyof Theme['colors'];
|
|
23
|
+
/** Size of the button */
|
|
24
|
+
size?: IconButtonSizes;
|
|
25
|
+
/** Accessibility label for screen readers */
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
/** ID of element that labels this button */
|
|
28
|
+
ariaLabelledBy?: string;
|
|
29
|
+
/** ID of element that describes this button */
|
|
30
|
+
ariaDescribedBy?: string;
|
|
31
|
+
/** ARIA role */
|
|
32
|
+
role?: string;
|
|
33
|
+
/** Tab index for keyboard navigation */
|
|
34
|
+
tabIndex?: number;
|
|
35
|
+
};
|
|
36
|
+
export type ButtonStyleParams = {
|
|
37
|
+
variant?: ButtonVariants;
|
|
38
|
+
active?: boolean;
|
|
39
|
+
textColor?: keyof Theme['colors'];
|
|
40
|
+
size?: IconButtonSizes;
|
|
41
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonStyleParams } from '@components/actions/button/Button.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Button styles using createStyles from @aurora-ds/theme
|
|
4
|
+
*
|
|
5
|
+
* Override via className with createStyles:
|
|
6
|
+
* ```tsx
|
|
7
|
+
* const myStyles = createStyles((theme) => ({
|
|
8
|
+
* custom: {
|
|
9
|
+
* backgroundColor: theme.colors.accent,
|
|
10
|
+
* ':hover': { backgroundColor: theme.colors.accentHover }
|
|
11
|
+
* }
|
|
12
|
+
* }))
|
|
13
|
+
* <Button className={myStyles.custom} label="Custom" />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const BUTTON_STYLES: {
|
|
17
|
+
root: (args_0: ButtonStyleParams) => string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Theme } from '@aurora-ds/theme';
|
|
2
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
3
|
+
import { IconButtonSizes, IconButtonVariants } from '@/interfaces';
|
|
4
|
+
export type IconButtonProps = {
|
|
5
|
+
/** IconButton icon */
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
/** Click handler */
|
|
8
|
+
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
/** Visual variant of the button */
|
|
10
|
+
variant?: IconButtonVariants;
|
|
11
|
+
/** Button type attribute */
|
|
12
|
+
type?: 'button' | 'submit';
|
|
13
|
+
/** Active/pressed state */
|
|
14
|
+
active?: boolean;
|
|
15
|
+
/** Disabled state */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Custom text/icon color (overrides variant color) */
|
|
18
|
+
textColor?: keyof Theme['colors'];
|
|
19
|
+
/** Size of the icon button */
|
|
20
|
+
size?: IconButtonSizes;
|
|
21
|
+
/** Accessibility label for screen readers */
|
|
22
|
+
ariaLabel?: string;
|
|
23
|
+
/** ID of element that labels this button */
|
|
24
|
+
ariaLabelledBy?: string;
|
|
25
|
+
/** ID of element that describes this button */
|
|
26
|
+
ariaDescribedBy?: string;
|
|
27
|
+
/** ARIA role */
|
|
28
|
+
role?: string;
|
|
29
|
+
/** Tab index for keyboard navigation */
|
|
30
|
+
tabIndex?: number;
|
|
31
|
+
};
|
|
32
|
+
export type IconButtonStyleParams = {
|
|
33
|
+
variant?: IconButtonVariants;
|
|
34
|
+
active?: boolean;
|
|
35
|
+
size?: IconButtonSizes;
|
|
36
|
+
textColor?: keyof Theme['colors'];
|
|
37
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AvatarProps } from '@components/data-display/avatar/Avatar.props.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Avatar component
|
|
5
|
+
*
|
|
6
|
+
* Displays a user's avatar with optional image or fallback text.
|
|
7
|
+
*/
|
|
8
|
+
declare const Avatar: FC<AvatarProps>;
|
|
9
|
+
export default Avatar;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { AvatarSize } from '@interfaces/avatar.types.ts';
|
|
3
|
+
export type AvatarProps = {
|
|
4
|
+
/** Image source URL */
|
|
5
|
+
image?: string;
|
|
6
|
+
/** Fallback text to display when no image */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Click handler */
|
|
9
|
+
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
/** Size of the avatar */
|
|
11
|
+
size?: AvatarSize;
|
|
12
|
+
/** Text color for the label */
|
|
13
|
+
color?: string;
|
|
14
|
+
/** Border color */
|
|
15
|
+
borderColor?: string;
|
|
16
|
+
/** Background color */
|
|
17
|
+
backgroundColor?: string;
|
|
18
|
+
};
|
|
19
|
+
export type AvatarStyleParams = {
|
|
20
|
+
hasImage?: boolean;
|
|
21
|
+
size?: AvatarSize;
|
|
22
|
+
color?: string;
|
|
23
|
+
borderColor?: string;
|
|
24
|
+
backgroundColor?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AvatarStyleParams } from '@components/data-display/avatar/Avatar.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Avatar styles using createStyles from @aurora-ds/theme
|
|
4
|
+
*/
|
|
5
|
+
export declare const AVATAR_STYLES: {
|
|
6
|
+
root: (args_0: AvatarStyleParams & {
|
|
7
|
+
clickable?: boolean;
|
|
8
|
+
}) => string;
|
|
9
|
+
image: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AvatarGroupProps } from '@components/data-display/avatar/Avatar.props.ts';
|
|
3
|
+
/**
|
|
4
|
+
* AvatarGroup component
|
|
5
|
+
*
|
|
6
|
+
* Groups multiple avatars with optional compact overlapping and limit.
|
|
7
|
+
*/
|
|
8
|
+
declare const AvatarGroup: FC<AvatarGroupProps>;
|
|
9
|
+
export default AvatarGroup;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AvatarGroupProps } from '@/components';
|
|
3
|
+
/**
|
|
4
|
+
* AvatarGroup component
|
|
5
|
+
*
|
|
6
|
+
* Groups multiple avatars with overlapping display and optional limit.
|
|
7
|
+
*/
|
|
8
|
+
declare const AvatarGroup: FC<AvatarGroupProps>;
|
|
9
|
+
export default AvatarGroup;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AvatarSize } from '@/interfaces';
|
|
3
|
+
export type AvatarGroupProps = {
|
|
4
|
+
/** Avatar children */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Maximum number of avatars to display */
|
|
7
|
+
limit?: number;
|
|
8
|
+
/** Size of the avatars in the group */
|
|
9
|
+
size?: AvatarSize;
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AvatarSize } from '@/interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* AvatarGroup styles using createStyles from @aurora-ds/theme
|
|
4
|
+
*/
|
|
5
|
+
export declare const AVATAR_GROUP_STYLES: {
|
|
6
|
+
root: string;
|
|
7
|
+
child: (args_0: {
|
|
8
|
+
size?: AvatarSize;
|
|
9
|
+
}) => string;
|
|
10
|
+
firstChild: string;
|
|
11
|
+
more: (args_0: {
|
|
12
|
+
size?: AvatarSize;
|
|
13
|
+
}) => string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as Avatar } from '@components/data-display/avatar/Avatar.tsx';
|
|
2
|
+
export { default as AvatarGroup } from '@components/data-display/avatar/avatar-group/AvatarGroup.tsx';
|
|
3
|
+
export type { AvatarProps } from '@components/data-display/avatar/Avatar.props.ts';
|
|
4
|
+
export type { AvatarGroupProps } from '@components/data-display/avatar/avatar-group/AvatarGroup.props.ts';
|
|
@@ -18,6 +18,16 @@ export type ChipProps = {
|
|
|
18
18
|
radius?: keyof Theme['radius'];
|
|
19
19
|
/** Disabled state */
|
|
20
20
|
disabled?: boolean;
|
|
21
|
+
/** Accessibility label for screen readers */
|
|
22
|
+
ariaLabel?: string;
|
|
23
|
+
/** ID of element that labels this chip */
|
|
24
|
+
ariaLabelledBy?: string;
|
|
25
|
+
/** ID of element that describes this chip */
|
|
26
|
+
ariaDescribedBy?: string;
|
|
27
|
+
/** ARIA role */
|
|
28
|
+
role?: string;
|
|
29
|
+
/** Tab index for keyboard navigation */
|
|
30
|
+
tabIndex?: number;
|
|
21
31
|
};
|
|
22
32
|
export type ChipStyleParams = {
|
|
23
33
|
variant: ChipVariant;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormEvent, ReactNode } from 'react';
|
|
2
|
+
export type FormProps = {
|
|
3
|
+
/** Form content (inputs, buttons, etc.) */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Callback fired when the form is submitted (preventDefault is called automatically) */
|
|
6
|
+
onSubmit?: (e: FormEvent) => void;
|
|
7
|
+
/** Accessibility label for the form */
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type InputProps = {
|
|
3
|
+
/** The value of the input */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Callback fired when the value changes */
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
/** Label displayed above the input */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Whether the field is mandatory (displays an asterisk next to the label) */
|
|
10
|
+
mandatory?: boolean;
|
|
11
|
+
/** Placeholder text */
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
/** Whether the input is disabled */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Input type */
|
|
16
|
+
type?: 'text' | 'password' | 'email' | 'number';
|
|
17
|
+
/** Accessibility label */
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
/** Icon to display before the input */
|
|
20
|
+
startIcon?: ReactNode;
|
|
21
|
+
/** Icon to display after the input */
|
|
22
|
+
endIcon?: ReactNode;
|
|
23
|
+
/** Custom width for the input */
|
|
24
|
+
width?: CSSProperties['width'];
|
|
25
|
+
};
|
|
26
|
+
export type InputStyleParams = {
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
hasStartIcon?: boolean;
|
|
29
|
+
hasEndIcon?: boolean;
|
|
30
|
+
hasPasswordToggle?: boolean;
|
|
31
|
+
width?: CSSProperties['width'];
|
|
32
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InputStyleParams } from '@components/forms/input/Input.props.ts';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Input styles using createStyles from @aurora-ds/theme
|
|
5
|
+
*/
|
|
6
|
+
export declare const INPUT_STYLES: {
|
|
7
|
+
container: (args_0: {
|
|
8
|
+
width?: CSSProperties["width"];
|
|
9
|
+
}) => string;
|
|
10
|
+
startIcon: string;
|
|
11
|
+
endIcon: string;
|
|
12
|
+
endIconShifted: string;
|
|
13
|
+
passwordToggle: string;
|
|
14
|
+
root: (args_0: InputStyleParams) => string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TextAreaProps } from '@components/forms/textarea/TextArea.props.ts';
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export type TextAreaProps = {
|
|
3
|
+
/** The value of the textarea */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Callback fired when the value changes */
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
/** Label displayed above the textarea */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Whether the field is mandatory (displays an asterisk next to the label) */
|
|
10
|
+
mandatory?: boolean;
|
|
11
|
+
/** Placeholder text */
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
/** Whether the textarea is disabled */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Accessibility label */
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
/** Custom width for the textarea */
|
|
18
|
+
width?: CSSProperties['width'];
|
|
19
|
+
/** Minimum number of visible text lines (auto-expands with content) */
|
|
20
|
+
minRows?: number;
|
|
21
|
+
/** Maximum number of visible text lines (adds scroll when exceeded) */
|
|
22
|
+
maxRows?: number;
|
|
23
|
+
};
|
|
24
|
+
export type TextAreaStyleParams = {
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
width?: CSSProperties['width'];
|
|
27
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextAreaStyleParams } from '@components/forms/textarea/TextArea.props.ts';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* TextArea styles using createStyles from @aurora-ds/theme
|
|
5
|
+
*/
|
|
6
|
+
export declare const TEXTAREA_STYLES: {
|
|
7
|
+
container: (args_0: {
|
|
8
|
+
width?: CSSProperties["width"];
|
|
9
|
+
}) => string;
|
|
10
|
+
root: (args_0: TextAreaStyleParams) => string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IconProps } from '@components/foundation/icon/Icon.props.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Icon component - Wrapper for SVG icons with theme-aware styling
|
|
5
|
+
*
|
|
6
|
+
* **Features:**
|
|
7
|
+
* - Theme-aware sizing via font sizes
|
|
8
|
+
* - Color and fill support from theme
|
|
9
|
+
* - Optional background with padding and border radius
|
|
10
|
+
* - Transition animation on color changes
|
|
11
|
+
*
|
|
12
|
+
* **Usage:**
|
|
13
|
+
* ```tsx
|
|
14
|
+
* import { SomeIcon } from 'some-icon-library'
|
|
15
|
+
*
|
|
16
|
+
* <Icon size="md" color="primary">
|
|
17
|
+
* <SomeIcon />
|
|
18
|
+
* </Icon>
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* **With background:**
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <Icon
|
|
24
|
+
* size="lg"
|
|
25
|
+
* color="onPrimary"
|
|
26
|
+
* backgroundColor="primary"
|
|
27
|
+
* padding="sm"
|
|
28
|
+
* borderRadius="full"
|
|
29
|
+
* >
|
|
30
|
+
* <SomeIcon />
|
|
31
|
+
* </Icon>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare const Icon: FC<IconProps>;
|
|
35
|
+
export default Icon;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Theme } from '@aurora-ds/theme';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export type IconProps = PropsWithChildren<{
|
|
4
|
+
/** Icon size based on theme font sizes */
|
|
5
|
+
size?: keyof Theme['fontSize'];
|
|
6
|
+
/** Icon stroke/line color from theme */
|
|
7
|
+
color?: keyof Theme['colors'];
|
|
8
|
+
/** Background color from theme */
|
|
9
|
+
backgroundColor?: keyof Theme['colors'];
|
|
10
|
+
/** Padding from theme spacing */
|
|
11
|
+
padding?: keyof Theme['spacing'];
|
|
12
|
+
/** Border radius from theme */
|
|
13
|
+
borderRadius?: keyof Theme['radius'];
|
|
14
|
+
/** Accessibility label for screen readers */
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
/** ID of element that labels this icon */
|
|
17
|
+
ariaLabelledBy?: string;
|
|
18
|
+
/** ID of element that describes this icon */
|
|
19
|
+
ariaDescribedBy?: string;
|
|
20
|
+
/** ARIA role */
|
|
21
|
+
role?: string;
|
|
22
|
+
/** Tab index for keyboard navigation */
|
|
23
|
+
tabIndex?: number;
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const ICON_STYLES: {
|
|
2
|
+
root: (size?: keyof import("@aurora-ds/theme").BaseFontSize | undefined, color?: keyof import("@aurora-ds/theme").BaseColors | undefined, backgroundColor?: keyof import("@aurora-ds/theme").BaseColors | undefined, padding?: keyof import("@aurora-ds/theme").BaseSpacing | undefined, borderRadius?: keyof import("@aurora-ds/theme").BaseRadius | undefined) => string;
|
|
3
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TextProps } from '@components/foundation/text/Text.props.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Text component - Renders semantic HTML elements based on variant
|
|
5
|
+
*
|
|
6
|
+
* **Variants:**
|
|
7
|
+
* - `h1-h6`: Heading elements with appropriate styling
|
|
8
|
+
* - `p`: Paragraph element with relaxed line height
|
|
9
|
+
* - `span`: Inline text element (default)
|
|
10
|
+
* - `label`: Label element with medium font weight
|
|
11
|
+
*
|
|
12
|
+
* **Features:**
|
|
13
|
+
* - Automatic HTML tag selection based on variant
|
|
14
|
+
* - Theme-aware colors
|
|
15
|
+
* - Text truncation with `maxLines`
|
|
16
|
+
* - Underline support
|
|
17
|
+
* - Preserve whitespace with `preserveWhitespace` prop
|
|
18
|
+
* - Bold text with **double asterisks** syntax
|
|
19
|
+
*/
|
|
20
|
+
declare const Text: FC<TextProps>;
|
|
21
|
+
export default Text;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Theme } from '@aurora-ds/theme';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { TextVariants } from '@interfaces/text.types.ts';
|
|
4
|
+
export type TextProps = PropsWithChildren<{
|
|
5
|
+
/** Text variant that determines the HTML tag and default styling */
|
|
6
|
+
variant?: TextVariants;
|
|
7
|
+
/** Text color from theme */
|
|
8
|
+
color?: keyof Theme['colors'];
|
|
9
|
+
/** Font size from theme (overrides variant fontSize if provided) */
|
|
10
|
+
fontSize?: keyof Theme['fontSize'];
|
|
11
|
+
/** Font family override (CSS value) */
|
|
12
|
+
fontFamily?: string;
|
|
13
|
+
/** Maximum number of lines before truncation with ellipsis */
|
|
14
|
+
maxLines?: number;
|
|
15
|
+
/** Add underline text decoration */
|
|
16
|
+
underline?: boolean;
|
|
17
|
+
/** Preserve whitespace and line breaks */
|
|
18
|
+
preserveWhitespace?: boolean;
|
|
19
|
+
/** Accessibility label for screen readers */
|
|
20
|
+
ariaLabel?: string;
|
|
21
|
+
/** ID of element that labels this text */
|
|
22
|
+
ariaLabelledBy?: string;
|
|
23
|
+
/** ID of element that describes this text */
|
|
24
|
+
ariaDescribedBy?: string;
|
|
25
|
+
/** ARIA role */
|
|
26
|
+
role?: string;
|
|
27
|
+
/** Tab index for keyboard navigation */
|
|
28
|
+
tabIndex?: number;
|
|
29
|
+
}>;
|
|
30
|
+
export type TextStyleParams = {
|
|
31
|
+
variant?: TextVariants;
|
|
32
|
+
color?: keyof Theme['colors'];
|
|
33
|
+
fontSize?: keyof Theme['fontSize'];
|
|
34
|
+
fontFamily?: string;
|
|
35
|
+
maxLines?: number;
|
|
36
|
+
underline?: boolean;
|
|
37
|
+
preserveWhitespace?: boolean;
|
|
38
|
+
};
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
export * from '@components/
|
|
1
|
+
export * from '@components/foundation/icon';
|
|
2
|
+
export * from '@components/foundation/text';
|
|
2
3
|
export * from '@components/data-display/chip';
|
|
3
|
-
export * from '@components/
|
|
4
|
-
export * from '@components/
|
|
5
|
-
export * from '@components/
|
|
4
|
+
export * from '@components/data-display/avatar';
|
|
5
|
+
export * from '@components/actions/button';
|
|
6
|
+
export * from '@components/actions/icon-button';
|
|
7
|
+
export * from '@components/forms/form';
|
|
8
|
+
export * from '@components/forms/input';
|
|
9
|
+
export * from '@components/forms/textarea';
|
|
6
10
|
export * from '@components/layout/stack';
|
|
7
11
|
export * from '@components/layout/card';
|
|
8
12
|
export * from '@components/layout/grid';
|
|
9
|
-
export * from '@components/layout/
|
|
13
|
+
export * from '@components/layout/separator';
|
|
14
|
+
export * from '@components/layout/page-construction/page-section';
|
|
15
|
+
export * from '@components/layout/page-construction/page';
|
|
16
|
+
export * from '@components/overlay/accordion';
|
|
17
|
+
export * from '@components/overlay/menu';
|
|
10
18
|
export * from '@components/navigation/drawer-item';
|
|
19
|
+
export * from '@components/navigation/breadcrumb';
|
|
20
|
+
export * from '@components/navigation/tabs';
|
|
11
21
|
export type { ButtonVariants, ButtonVariantStyle } from '@interfaces/button.types';
|
|
12
22
|
export type { TextVariants, TextVariantStyle } from '@interfaces/text.types';
|
|
13
23
|
export type { ChipVariant, ChipColor, ChipSize } from '@interfaces/chip.types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type InputProps = {
|
|
2
|
+
/** The value of the input */
|
|
3
|
+
value: string;
|
|
4
|
+
/** Callback fired when the value changes */
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
/** Placeholder text */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/** Whether the input is disabled */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Input type */
|
|
11
|
+
type?: 'text' | 'password' | 'email' | 'number';
|
|
12
|
+
/** Accessibility label */
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
};
|
|
15
|
+
export type InputStyleParams = {
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
};
|