@aurora-ds/components 0.25.1 → 1.0.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 +32 -187
- package/dist/cjs/index.js +2406 -3494
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2384 -3461
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +648 -1902
- package/package.json +92 -77
- package/dist/cjs/components/actions/button/Button.d.ts +0 -20
- package/dist/cjs/components/actions/button/Button.props.d.ts +0 -60
- package/dist/cjs/components/actions/button/Button.styles.d.ts +0 -18
- package/dist/cjs/components/actions/button/index.d.ts +0 -2
- package/dist/cjs/components/actions/button/utils/getButtonSizeStyles.utils.d.ts +0 -12
- package/dist/cjs/components/actions/button/utils/getButtonVariantStyles.utils.d.ts +0 -7
- package/dist/cjs/components/actions/button-toggle/ButtonToggle/ButtonToggle.d.ts +0 -15
- package/dist/cjs/components/actions/button-toggle/ButtonToggle/ButtonToggle.props.d.ts +0 -48
- package/dist/cjs/components/actions/button-toggle/ButtonToggle/ButtonToggle.styles.d.ts +0 -4
- package/dist/cjs/components/actions/button-toggle/ButtonToggle/index.d.ts +0 -2
- package/dist/cjs/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.d.ts +0 -14
- package/dist/cjs/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.props.d.ts +0 -29
- package/dist/cjs/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.styles.d.ts +0 -3
- package/dist/cjs/components/actions/button-toggle/ButtonToggleGroup/index.d.ts +0 -2
- package/dist/cjs/components/actions/button-toggle/index.d.ts +0 -2
- package/dist/cjs/components/actions/icon-button/IconButton.d.ts +0 -17
- package/dist/cjs/components/actions/icon-button/IconButton.props.d.ts +0 -55
- package/dist/cjs/components/actions/icon-button/IconButton.styles.d.ts +0 -4
- package/dist/cjs/components/actions/icon-button/index.d.ts +0 -2
- package/dist/cjs/components/actions/icon-button/utils/getIconButtonSizeStyles.utils.d.ts +0 -9
- package/dist/cjs/components/data-display/avatar/Avatar.d.ts +0 -24
- package/dist/cjs/components/data-display/avatar/Avatar.props.d.ts +0 -39
- package/dist/cjs/components/data-display/avatar/Avatar.styles.d.ts +0 -10
- package/dist/cjs/components/data-display/avatar/AvatarGroup.d.ts +0 -9
- package/dist/cjs/components/data-display/avatar/avatar-group/AvatarGroup.d.ts +0 -9
- package/dist/cjs/components/data-display/avatar/avatar-group/AvatarGroup.props.d.ts +0 -10
- package/dist/cjs/components/data-display/avatar/avatar-group/AvatarGroup.styles.d.ts +0 -14
- package/dist/cjs/components/data-display/avatar/index.d.ts +0 -4
- package/dist/cjs/components/data-display/avatar/utils/getAvatarSizes.utils.d.ts +0 -11
- package/dist/cjs/components/data-display/chip/Chip.d.ts +0 -16
- package/dist/cjs/components/data-display/chip/Chip.props.d.ts +0 -40
- package/dist/cjs/components/data-display/chip/Chip.styles.d.ts +0 -4
- package/dist/cjs/components/data-display/chip/index.d.ts +0 -2
- package/dist/cjs/components/data-display/chip/utils/getChipColorStyles.utils.d.ts +0 -12
- package/dist/cjs/components/data-display/chip/utils/getChipContentSize.utils.d.ts +0 -6
- package/dist/cjs/components/data-display/chip/utils/getChipSizeStyles.utils.d.ts +0 -10
- package/dist/cjs/components/data-display/icon/Icon.d.ts +0 -35
- package/dist/cjs/components/data-display/icon/Icon.props.d.ts +0 -14
- package/dist/cjs/components/data-display/icon/Icon.styles.d.ts +0 -3
- package/dist/cjs/components/data-display/icon/index.d.ts +0 -2
- package/dist/cjs/components/data-display/skeleton/Skeleton.d.ts +0 -4
- package/dist/cjs/components/data-display/skeleton/Skeleton.props.d.ts +0 -7
- package/dist/cjs/components/data-display/skeleton/Skeleton.styles.d.ts +0 -3
- package/dist/cjs/components/data-display/skeleton/index.d.ts +0 -2
- package/dist/cjs/components/data-display/status/Status.d.ts +0 -16
- package/dist/cjs/components/data-display/status/Status.props.d.ts +0 -40
- package/dist/cjs/components/data-display/status/Status.styles.d.ts +0 -4
- package/dist/cjs/components/data-display/status/index.d.ts +0 -2
- package/dist/cjs/components/data-display/status/utils/getStatusColorStyles.utils.d.ts +0 -7
- package/dist/cjs/components/data-display/status/utils/getStatusContentSize.utils.d.ts +0 -8
- package/dist/cjs/components/data-display/status/utils/getStatusSizeStyles.utils.d.ts +0 -12
- package/dist/cjs/components/forms/date-picker/DatePicker.d.ts +0 -3
- package/dist/cjs/components/forms/date-picker/DatePicker.props.d.ts +0 -29
- package/dist/cjs/components/forms/date-picker/DatePicker.styles.d.ts +0 -9
- package/dist/cjs/components/forms/date-picker/calendar/Calendar.d.ts +0 -3
- package/dist/cjs/components/forms/date-picker/calendar/Calendar.props.d.ts +0 -13
- package/dist/cjs/components/forms/date-picker/calendar/Calendar.styles.d.ts +0 -3
- package/dist/cjs/components/forms/date-picker/calendar/calendar-grid/CalendarGrid.d.ts +0 -3
- package/dist/cjs/components/forms/date-picker/calendar/calendar-grid/CalendarGrid.props.d.ts +0 -20
- package/dist/cjs/components/forms/date-picker/calendar/calendar-grid/CalendarGrid.styles.d.ts +0 -13
- package/dist/cjs/components/forms/date-picker/calendar/calendar-header/CalendarHeader.d.ts +0 -3
- package/dist/cjs/components/forms/date-picker/calendar/calendar-header/CalendarHeader.props.d.ts +0 -15
- package/dist/cjs/components/forms/date-picker/calendar/calendar-header/CalendarHeader.styles.d.ts +0 -6
- package/dist/cjs/components/forms/date-picker/calendar/index.d.ts +0 -2
- package/dist/cjs/components/forms/date-picker/index.d.ts +0 -2
- package/dist/cjs/components/forms/date-picker/utils/datePicker.utils.d.ts +0 -13
- package/dist/cjs/components/forms/file-picker/FilePicker.d.ts +0 -24
- package/dist/cjs/components/forms/file-picker/FilePicker.props.d.ts +0 -99
- package/dist/cjs/components/forms/file-picker/FilePicker.styles.d.ts +0 -19
- package/dist/cjs/components/forms/file-picker/index.d.ts +0 -2
- package/dist/cjs/components/forms/form/Form.d.ts +0 -3
- package/dist/cjs/components/forms/form/Form.props.d.ts +0 -9
- package/dist/cjs/components/forms/form/Form.styles.d.ts +0 -3
- package/dist/cjs/components/forms/form/index.d.ts +0 -2
- package/dist/cjs/components/forms/image-picker/ImagePicker.d.ts +0 -18
- package/dist/cjs/components/forms/image-picker/ImagePicker.props.d.ts +0 -76
- package/dist/cjs/components/forms/image-picker/index.d.ts +0 -2
- package/dist/cjs/components/forms/input/Input.d.ts +0 -3
- package/dist/cjs/components/forms/input/Input.props.d.ts +0 -46
- package/dist/cjs/components/forms/input/Input.styles.d.ts +0 -15
- package/dist/cjs/components/forms/input/index.d.ts +0 -2
- package/dist/cjs/components/forms/select/Select.d.ts +0 -25
- package/dist/cjs/components/forms/select/Select.props.d.ts +0 -54
- package/dist/cjs/components/forms/select/Select.styles.d.ts +0 -10
- package/dist/cjs/components/forms/select/SelectItem/SelectItem.d.ts +0 -7
- package/dist/cjs/components/forms/select/SelectItem/SelectItem.props.d.ts +0 -19
- package/dist/cjs/components/forms/select/SelectItem/SelectItem.styles.d.ts +0 -7
- package/dist/cjs/components/forms/select/SelectItem/index.d.ts +0 -2
- package/dist/cjs/components/forms/select/index.d.ts +0 -2
- package/dist/cjs/components/forms/textarea/TextArea.d.ts +0 -3
- package/dist/cjs/components/forms/textarea/TextArea.props.d.ts +0 -39
- package/dist/cjs/components/forms/textarea/TextArea.styles.d.ts +0 -11
- package/dist/cjs/components/forms/textarea/index.d.ts +0 -2
- package/dist/cjs/components/foundation/icon/Icon.d.ts +0 -42
- package/dist/cjs/components/foundation/icon/Icon.props.d.ts +0 -26
- package/dist/cjs/components/foundation/icon/Icon.styles.d.ts +0 -3
- package/dist/cjs/components/foundation/icon/index.d.ts +0 -2
- package/dist/cjs/components/foundation/text/Text.d.ts +0 -21
- package/dist/cjs/components/foundation/text/Text.props.d.ts +0 -40
- package/dist/cjs/components/foundation/text/Text.styles.d.ts +0 -4
- package/dist/cjs/components/foundation/text/index.d.ts +0 -2
- package/dist/cjs/components/foundation/text/utils/getTextVariantStyles.utils.d.ts +0 -7
- package/dist/cjs/components/foundation/text/utils/getTruncateTextStyles.utils.d.ts +0 -21
- package/dist/cjs/components/foundation/text/utils/parseTextWithBold.utils.d.ts +0 -7
- package/dist/cjs/components/index.d.ts +0 -35
- package/dist/cjs/components/inputs/button/Button.d.ts +0 -12
- package/dist/cjs/components/inputs/button/Button.props.d.ts +0 -28
- package/dist/cjs/components/inputs/button/Button.styles.d.ts +0 -18
- package/dist/cjs/components/inputs/button/index.d.ts +0 -2
- package/dist/cjs/components/inputs/icon-button/IconButton.d.ts +0 -4
- package/dist/cjs/components/inputs/icon-button/IconButton.props.d.ts +0 -27
- package/dist/cjs/components/inputs/icon-button/IconButton.styles.d.ts +0 -4
- package/dist/cjs/components/inputs/icon-button/index.d.ts +0 -2
- package/dist/cjs/components/inputs/input/Input.d.ts +0 -6
- package/dist/cjs/components/inputs/input/Input.props.d.ts +0 -17
- package/dist/cjs/components/inputs/input/Input.styles.d.ts +0 -7
- package/dist/cjs/components/inputs/input/index.d.ts +0 -2
- package/dist/cjs/components/layout/accordion/Accordion.d.ts +0 -10
- package/dist/cjs/components/layout/accordion/Accordion.props.d.ts +0 -36
- package/dist/cjs/components/layout/accordion/Accordion.styles.d.ts +0 -7
- package/dist/cjs/components/layout/accordion/index.d.ts +0 -2
- package/dist/cjs/components/layout/box/Box.d.ts +0 -23
- package/dist/cjs/components/layout/box/Box.props.d.ts +0 -139
- package/dist/cjs/components/layout/box/Box.styles.d.ts +0 -7
- package/dist/cjs/components/layout/box/index.d.ts +0 -2
- package/dist/cjs/components/layout/card/Card.d.ts +0 -14
- package/dist/cjs/components/layout/card/Card.props.d.ts +0 -68
- package/dist/cjs/components/layout/card/Card.styles.d.ts +0 -7
- package/dist/cjs/components/layout/card/index.d.ts +0 -2
- package/dist/cjs/components/layout/grid/Grid.d.ts +0 -15
- package/dist/cjs/components/layout/grid/Grid.props.d.ts +0 -57
- package/dist/cjs/components/layout/grid/Grid.styles.d.ts +0 -7
- package/dist/cjs/components/layout/grid/index.d.ts +0 -2
- package/dist/cjs/components/layout/page-construction/page/Page.d.ts +0 -10
- package/dist/cjs/components/layout/page-construction/page/Page.props.d.ts +0 -30
- package/dist/cjs/components/layout/page-construction/page/Page.styles.d.ts +0 -5
- package/dist/cjs/components/layout/page-construction/page/index.d.ts +0 -2
- package/dist/cjs/components/layout/page-construction/page-section/PageSection.d.ts +0 -10
- package/dist/cjs/components/layout/page-construction/page-section/PageSection.props.d.ts +0 -34
- package/dist/cjs/components/layout/page-construction/page-section/PageSection.styles.d.ts +0 -4
- package/dist/cjs/components/layout/page-construction/page-section/index.d.ts +0 -2
- package/dist/cjs/components/layout/separator/Separator.d.ts +0 -9
- package/dist/cjs/components/layout/separator/Separator.props.d.ts +0 -17
- package/dist/cjs/components/layout/separator/Separator.styles.d.ts +0 -7
- package/dist/cjs/components/layout/separator/index.d.ts +0 -2
- package/dist/cjs/components/layout/stack/Stack.d.ts +0 -13
- package/dist/cjs/components/layout/stack/Stack.props.d.ts +0 -42
- package/dist/cjs/components/layout/stack/Stack.styles.d.ts +0 -7
- package/dist/cjs/components/layout/stack/index.d.ts +0 -2
- package/dist/cjs/components/layout/text/Text.d.ts +0 -21
- package/dist/cjs/components/layout/text/Text.props.d.ts +0 -28
- package/dist/cjs/components/layout/text/Text.styles.d.ts +0 -4
- package/dist/cjs/components/layout/text/index.d.ts +0 -2
- package/dist/cjs/components/navigation/breadcrumb/Breadcrumb.d.ts +0 -12
- package/dist/cjs/components/navigation/breadcrumb/Breadcrumb.props.d.ts +0 -13
- package/dist/cjs/components/navigation/breadcrumb/Breadcrumb.styles.d.ts +0 -6
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.d.ts +0 -8
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.props.d.ts +0 -5
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.styles.d.ts +0 -7
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbEllipsis/index.d.ts +0 -2
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbEllipsis.d.ts +0 -9
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbItem/BreadcrumbItem.d.ts +0 -6
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbItem/BreadcrumbItem.styles.d.ts +0 -6
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbItem/index.d.ts +0 -1
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbItem.d.ts +0 -6
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.d.ts +0 -7
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.props.d.ts +0 -14
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.styles.d.ts +0 -7
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbLink/index.d.ts +0 -2
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbLink.d.ts +0 -6
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbList/BreadcrumbList.d.ts +0 -6
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbList/BreadcrumbList.styles.d.ts +0 -6
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbList/index.d.ts +0 -1
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbList.d.ts +0 -6
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.d.ts +0 -7
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.props.d.ts +0 -10
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.styles.d.ts +0 -7
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbPage/index.d.ts +0 -2
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbPage.d.ts +0 -6
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.d.ts +0 -7
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.props.d.ts +0 -5
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.styles.d.ts +0 -6
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbSeparator/index.d.ts +0 -2
- package/dist/cjs/components/navigation/breadcrumb/BreadcrumbSeparator.d.ts +0 -9
- package/dist/cjs/components/navigation/breadcrumb/index.d.ts +0 -10
- package/dist/cjs/components/navigation/breadcrumb/utils/buildBreadcrumbChildren.utils.d.ts +0 -5
- package/dist/cjs/components/navigation/breadcrumb/utils/flattenChildren.utils.d.ts +0 -5
- package/dist/cjs/components/navigation/breadcrumb/utils/insertSeparators.utils.d.ts +0 -5
- package/dist/cjs/components/navigation/breadcrumb/utils/isSeparator.utils.d.ts +0 -5
- package/dist/cjs/components/navigation/drawer-item/DrawerItem.d.ts +0 -10
- package/dist/cjs/components/navigation/drawer-item/DrawerItem.props.d.ts +0 -31
- package/dist/cjs/components/navigation/drawer-item/DrawerItem.styles.d.ts +0 -7
- package/dist/cjs/components/navigation/drawer-item/index.d.ts +0 -2
- package/dist/cjs/components/navigation/pagination/Pagination.d.ts +0 -6
- package/dist/cjs/components/navigation/pagination/Pagination.props.d.ts +0 -24
- package/dist/cjs/components/navigation/pagination/Pagination.styles.d.ts +0 -7
- package/dist/cjs/components/navigation/pagination/index.d.ts +0 -2
- package/dist/cjs/components/navigation/tabs/Tabs.d.ts +0 -7
- package/dist/cjs/components/navigation/tabs/Tabs.props.d.ts +0 -12
- package/dist/cjs/components/navigation/tabs/Tabs.styles.d.ts +0 -7
- package/dist/cjs/components/navigation/tabs/index.d.ts +0 -4
- package/dist/cjs/components/navigation/tabs/tab-item/TabItem.d.ts +0 -7
- package/dist/cjs/components/navigation/tabs/tab-item/TabItem.props.d.ts +0 -15
- package/dist/cjs/components/navigation/tabs/tab-item/TabItem.styles.d.ts +0 -6
- package/dist/cjs/components/overlay/accordion/Accordion.d.ts +0 -10
- package/dist/cjs/components/overlay/accordion/Accordion.props.d.ts +0 -52
- package/dist/cjs/components/overlay/accordion/Accordion.styles.d.ts +0 -7
- package/dist/cjs/components/overlay/accordion/index.d.ts +0 -2
- package/dist/cjs/components/overlay/alert/Alert.d.ts +0 -37
- package/dist/cjs/components/overlay/alert/Alert.props.d.ts +0 -56
- package/dist/cjs/components/overlay/alert/Alert.styles.d.ts +0 -4
- package/dist/cjs/components/overlay/alert/index.d.ts +0 -2
- package/dist/cjs/components/overlay/alert/utils/getAlertIcon.utils.d.ts +0 -8
- package/dist/cjs/components/overlay/alert/utils/getAlertPositionStyles.utils.d.ts +0 -8
- package/dist/cjs/components/overlay/alert/utils/getAlertVariantColors.utils.d.ts +0 -14
- package/dist/cjs/components/overlay/menu/Menu.d.ts +0 -4
- package/dist/cjs/components/overlay/menu/Menu.props.d.ts +0 -14
- package/dist/cjs/components/overlay/menu/Menu.styles.d.ts +0 -13
- package/dist/cjs/components/overlay/menu/MenuGroup/MenuGroup.d.ts +0 -4
- package/dist/cjs/components/overlay/menu/MenuGroup/MenuGroup.props.d.ts +0 -4
- package/dist/cjs/components/overlay/menu/MenuGroup/MenuGroup.styles.d.ts +0 -3
- package/dist/cjs/components/overlay/menu/MenuGroup/index.d.ts +0 -2
- package/dist/cjs/components/overlay/menu/MenuItem/MenuItem.d.ts +0 -4
- package/dist/cjs/components/overlay/menu/MenuItem/MenuItem.props.d.ts +0 -14
- package/dist/cjs/components/overlay/menu/MenuItem/MenuItem.styles.d.ts +0 -4
- package/dist/cjs/components/overlay/menu/MenuItem/index.d.ts +0 -2
- package/dist/cjs/components/overlay/menu/index.d.ts +0 -6
- package/dist/cjs/components/overlay/modal/Modal.d.ts +0 -28
- package/dist/cjs/components/overlay/modal/Modal.props.d.ts +0 -10
- package/dist/cjs/components/overlay/modal/Modal.styles.d.ts +0 -4
- package/dist/cjs/components/overlay/modal/index.d.ts +0 -2
- package/dist/cjs/constants/animations.d.ts +0 -1
- package/dist/cjs/constants/globalConstants.d.ts +0 -5
- package/dist/cjs/hooks/index.d.ts +0 -7
- package/dist/cjs/hooks/useAlert.d.ts +0 -23
- package/dist/cjs/hooks/useAlert.types.d.ts +0 -56
- package/dist/cjs/hooks/useAnchorPosition.d.ts +0 -17
- package/dist/cjs/hooks/useAnchorPosition.types.d.ts +0 -5
- package/dist/cjs/hooks/useClickOutside.d.ts +0 -8
- package/dist/cjs/hooks/useTransitionRender.d.ts +0 -7
- package/dist/cjs/hooks/useTransitionRender.types.d.ts +0 -4
- package/dist/cjs/index.d.ts +0 -6
- package/dist/cjs/interfaces/alert.types.d.ts +0 -8
- package/dist/cjs/interfaces/avatar.types.d.ts +0 -2
- package/dist/cjs/interfaces/button.types.d.ts +0 -36
- package/dist/cjs/interfaces/card.types.d.ts +0 -3
- package/dist/cjs/interfaces/chip.types.d.ts +0 -6
- package/dist/cjs/interfaces/index.d.ts +0 -7
- package/dist/cjs/interfaces/select.types.d.ts +0 -5
- package/dist/cjs/interfaces/stack.types.d.ts +0 -7
- package/dist/cjs/interfaces/status.types.d.ts +0 -6
- package/dist/cjs/interfaces/text.types.d.ts +0 -7
- package/dist/cjs/interfaces/theme.contracts.d.ts +0 -243
- package/dist/cjs/resources/Icons.d.ts +0 -15
- package/dist/cjs/resources/icons/AlertCircleIcon.d.ts +0 -2
- package/dist/cjs/resources/icons/AlertTriangleIcon.d.ts +0 -2
- package/dist/cjs/resources/icons/CalendarIcon.d.ts +0 -1
- package/dist/cjs/resources/icons/CheckCircleIcon.d.ts +0 -2
- package/dist/cjs/resources/icons/ChevronDownIcon.d.ts +0 -1
- package/dist/cjs/resources/icons/ChevronLeftIcon.d.ts +0 -1
- package/dist/cjs/resources/icons/ChevronRightIcon.d.ts +0 -1
- package/dist/cjs/resources/icons/CloseIcon.d.ts +0 -2
- package/dist/cjs/resources/icons/EyeIcon.d.ts +0 -1
- package/dist/cjs/resources/icons/EyeOffIcon.d.ts +0 -1
- package/dist/cjs/resources/icons/InfoIcon.d.ts +0 -1
- package/dist/cjs/resources/icons/MoreHorizontalIcon.d.ts +0 -1
- package/dist/cjs/resources/icons/PlusIcon.d.ts +0 -2
- package/dist/cjs/resources/icons/TrashIcon.d.ts +0 -2
- package/dist/cjs/resources/icons/UploadIcon.d.ts +0 -2
- package/dist/cjs/theme/defaultTheme.d.ts +0 -29
- package/dist/cjs/theme/theme.module.d.ts +0 -32
- package/dist/cjs/theme/theme.types.d.ts +0 -17
- package/dist/cjs/theme/types/themeBreakpoints.types.d.ts +0 -5
- package/dist/cjs/theme/types/themeColor.types.d.ts +0 -5
- package/dist/cjs/theme/types/themeFontSize.types.d.ts +0 -5
- package/dist/cjs/theme/types/themeFontWeight.types.d.ts +0 -5
- package/dist/cjs/theme/types/themeLineHeight.types.d.ts +0 -5
- package/dist/cjs/theme/types/themeOpacity.types.d.ts +0 -5
- package/dist/cjs/theme/types/themeRadius.types.d.ts +0 -5
- package/dist/cjs/theme/types/themeShadows.types.d.ts +0 -5
- package/dist/cjs/theme/types/themeSpacing.types.d.ts +0 -5
- package/dist/cjs/theme/types/themeTransition.types.d.ts +0 -5
- package/dist/cjs/theme/types/themeZIndex.types.d.ts +0 -5
- package/dist/cjs/theme/values/themeBreakpoints.d.ts +0 -5
- package/dist/cjs/theme/values/themeColors.d.ts +0 -6
- package/dist/cjs/theme/values/themeFontSize.d.ts +0 -5
- package/dist/cjs/theme/values/themeFontWeight.d.ts +0 -5
- package/dist/cjs/theme/values/themeLineHeight.d.ts +0 -5
- package/dist/cjs/theme/values/themeOpacity.d.ts +0 -5
- package/dist/cjs/theme/values/themeRadius.d.ts +0 -5
- package/dist/cjs/theme/values/themeShadows.d.ts +0 -5
- package/dist/cjs/theme/values/themeSpacing.d.ts +0 -5
- package/dist/cjs/theme/values/themeTransition.d.ts +0 -5
- package/dist/cjs/theme/values/themeZIndex.d.ts +0 -5
- package/dist/cjs/utils/ui/components/actions/button/getButtonSizeStyles.utils.d.ts +0 -12
- package/dist/cjs/utils/ui/components/actions/button/getButtonVariantStyles.utils.d.ts +0 -7
- package/dist/cjs/utils/ui/components/actions/icon-button/getIconButtonSizeStyles.utils.d.ts +0 -9
- package/dist/cjs/utils/ui/components/button/getButtonVariantStyles.utils.d.ts +0 -7
- package/dist/cjs/utils/ui/components/chip/getChipColorStyles.utils.d.ts +0 -7
- package/dist/cjs/utils/ui/components/chip/getChipContentSize.utils.d.ts +0 -8
- package/dist/cjs/utils/ui/components/chip/getChipSizeStyles.utils.d.ts +0 -12
- package/dist/cjs/utils/ui/components/data-display/avatar/getAvatarSizes.utils.d.ts +0 -11
- package/dist/cjs/utils/ui/components/data-display/chip/getChipColorStyles.utils.d.ts +0 -7
- package/dist/cjs/utils/ui/components/data-display/chip/getChipContentSize.utils.d.ts +0 -8
- package/dist/cjs/utils/ui/components/data-display/chip/getChipSizeStyles.utils.d.ts +0 -12
- package/dist/cjs/utils/ui/components/data-display/status/getStatusColorStyles.utils.d.ts +0 -7
- package/dist/cjs/utils/ui/components/data-display/status/getStatusContentSize.utils.d.ts +0 -8
- package/dist/cjs/utils/ui/components/data-display/status/getStatusSizeStyles.utils.d.ts +0 -12
- package/dist/cjs/utils/ui/components/date-picker/datePicker.utils.d.ts +0 -13
- package/dist/cjs/utils/ui/components/foundation/text/getTextVariantStyles.utils.d.ts +0 -7
- package/dist/cjs/utils/ui/components/foundation/text/getTruncateTextStyles.utils.d.ts +0 -21
- package/dist/cjs/utils/ui/components/foundation/text/parseTextWithBold.utils.d.ts +0 -7
- package/dist/cjs/utils/ui/components/icon-button/getIconButtonSizeStyles.utils.d.ts +0 -9
- package/dist/cjs/utils/ui/components/navigation/breadcrumb/buildBreadcrumbChildren.utils.d.ts +0 -5
- package/dist/cjs/utils/ui/components/navigation/breadcrumb/flattenChildren.utils.d.ts +0 -5
- package/dist/cjs/utils/ui/components/navigation/breadcrumb/insertSeparators.utils.d.ts +0 -5
- package/dist/cjs/utils/ui/components/navigation/breadcrumb/isSeparator.utils.d.ts +0 -5
- package/dist/cjs/utils/ui/components/overlay/alert/getAlertIcon.utils.d.ts +0 -8
- package/dist/cjs/utils/ui/components/overlay/alert/getAlertPositionStyles.utils.d.ts +0 -8
- package/dist/cjs/utils/ui/components/overlay/alert/getAlertVariantColors.utils.d.ts +0 -14
- package/dist/cjs/utils/ui/components/text/getTextVariantStyles.utils.d.ts +0 -7
- package/dist/cjs/utils/ui/components/text/getTruncateTextStyles.utils.d.ts +0 -17
- package/dist/cjs/utils/ui/components/text/parseTextWithBold.utils.d.ts +0 -7
- package/dist/esm/components/actions/button/Button.d.ts +0 -20
- package/dist/esm/components/actions/button/Button.props.d.ts +0 -60
- package/dist/esm/components/actions/button/Button.styles.d.ts +0 -18
- package/dist/esm/components/actions/button/index.d.ts +0 -2
- package/dist/esm/components/actions/button/utils/getButtonSizeStyles.utils.d.ts +0 -12
- package/dist/esm/components/actions/button/utils/getButtonVariantStyles.utils.d.ts +0 -7
- package/dist/esm/components/actions/button-toggle/ButtonToggle/ButtonToggle.d.ts +0 -15
- package/dist/esm/components/actions/button-toggle/ButtonToggle/ButtonToggle.props.d.ts +0 -48
- package/dist/esm/components/actions/button-toggle/ButtonToggle/ButtonToggle.styles.d.ts +0 -4
- package/dist/esm/components/actions/button-toggle/ButtonToggle/index.d.ts +0 -2
- package/dist/esm/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.d.ts +0 -14
- package/dist/esm/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.props.d.ts +0 -29
- package/dist/esm/components/actions/button-toggle/ButtonToggleGroup/ButtonToggleGroup.styles.d.ts +0 -3
- package/dist/esm/components/actions/button-toggle/ButtonToggleGroup/index.d.ts +0 -2
- package/dist/esm/components/actions/button-toggle/index.d.ts +0 -2
- package/dist/esm/components/actions/icon-button/IconButton.d.ts +0 -17
- package/dist/esm/components/actions/icon-button/IconButton.props.d.ts +0 -55
- package/dist/esm/components/actions/icon-button/IconButton.styles.d.ts +0 -4
- package/dist/esm/components/actions/icon-button/index.d.ts +0 -2
- package/dist/esm/components/actions/icon-button/utils/getIconButtonSizeStyles.utils.d.ts +0 -9
- package/dist/esm/components/data-display/avatar/Avatar.d.ts +0 -24
- package/dist/esm/components/data-display/avatar/Avatar.props.d.ts +0 -39
- package/dist/esm/components/data-display/avatar/Avatar.styles.d.ts +0 -10
- package/dist/esm/components/data-display/avatar/AvatarGroup.d.ts +0 -9
- package/dist/esm/components/data-display/avatar/avatar-group/AvatarGroup.d.ts +0 -9
- package/dist/esm/components/data-display/avatar/avatar-group/AvatarGroup.props.d.ts +0 -10
- package/dist/esm/components/data-display/avatar/avatar-group/AvatarGroup.styles.d.ts +0 -14
- package/dist/esm/components/data-display/avatar/index.d.ts +0 -4
- package/dist/esm/components/data-display/avatar/utils/getAvatarSizes.utils.d.ts +0 -11
- package/dist/esm/components/data-display/chip/Chip.d.ts +0 -16
- package/dist/esm/components/data-display/chip/Chip.props.d.ts +0 -40
- package/dist/esm/components/data-display/chip/Chip.styles.d.ts +0 -4
- package/dist/esm/components/data-display/chip/index.d.ts +0 -2
- package/dist/esm/components/data-display/chip/utils/getChipColorStyles.utils.d.ts +0 -12
- package/dist/esm/components/data-display/chip/utils/getChipContentSize.utils.d.ts +0 -6
- package/dist/esm/components/data-display/chip/utils/getChipSizeStyles.utils.d.ts +0 -10
- package/dist/esm/components/data-display/icon/Icon.d.ts +0 -35
- package/dist/esm/components/data-display/icon/Icon.props.d.ts +0 -14
- package/dist/esm/components/data-display/icon/Icon.styles.d.ts +0 -3
- package/dist/esm/components/data-display/icon/index.d.ts +0 -2
- package/dist/esm/components/data-display/skeleton/Skeleton.d.ts +0 -4
- package/dist/esm/components/data-display/skeleton/Skeleton.props.d.ts +0 -7
- package/dist/esm/components/data-display/skeleton/Skeleton.styles.d.ts +0 -3
- package/dist/esm/components/data-display/skeleton/index.d.ts +0 -2
- package/dist/esm/components/data-display/status/Status.d.ts +0 -16
- package/dist/esm/components/data-display/status/Status.props.d.ts +0 -40
- package/dist/esm/components/data-display/status/Status.styles.d.ts +0 -4
- package/dist/esm/components/data-display/status/index.d.ts +0 -2
- package/dist/esm/components/data-display/status/utils/getStatusColorStyles.utils.d.ts +0 -7
- package/dist/esm/components/data-display/status/utils/getStatusContentSize.utils.d.ts +0 -8
- package/dist/esm/components/data-display/status/utils/getStatusSizeStyles.utils.d.ts +0 -12
- package/dist/esm/components/forms/date-picker/DatePicker.d.ts +0 -3
- package/dist/esm/components/forms/date-picker/DatePicker.props.d.ts +0 -29
- package/dist/esm/components/forms/date-picker/DatePicker.styles.d.ts +0 -9
- package/dist/esm/components/forms/date-picker/calendar/Calendar.d.ts +0 -3
- package/dist/esm/components/forms/date-picker/calendar/Calendar.props.d.ts +0 -13
- package/dist/esm/components/forms/date-picker/calendar/Calendar.styles.d.ts +0 -3
- package/dist/esm/components/forms/date-picker/calendar/calendar-grid/CalendarGrid.d.ts +0 -3
- package/dist/esm/components/forms/date-picker/calendar/calendar-grid/CalendarGrid.props.d.ts +0 -20
- package/dist/esm/components/forms/date-picker/calendar/calendar-grid/CalendarGrid.styles.d.ts +0 -13
- package/dist/esm/components/forms/date-picker/calendar/calendar-header/CalendarHeader.d.ts +0 -3
- package/dist/esm/components/forms/date-picker/calendar/calendar-header/CalendarHeader.props.d.ts +0 -15
- package/dist/esm/components/forms/date-picker/calendar/calendar-header/CalendarHeader.styles.d.ts +0 -6
- package/dist/esm/components/forms/date-picker/calendar/index.d.ts +0 -2
- package/dist/esm/components/forms/date-picker/index.d.ts +0 -2
- package/dist/esm/components/forms/date-picker/utils/datePicker.utils.d.ts +0 -13
- package/dist/esm/components/forms/file-picker/FilePicker.d.ts +0 -24
- package/dist/esm/components/forms/file-picker/FilePicker.props.d.ts +0 -99
- package/dist/esm/components/forms/file-picker/FilePicker.styles.d.ts +0 -19
- package/dist/esm/components/forms/file-picker/index.d.ts +0 -2
- package/dist/esm/components/forms/form/Form.d.ts +0 -3
- package/dist/esm/components/forms/form/Form.props.d.ts +0 -9
- package/dist/esm/components/forms/form/Form.styles.d.ts +0 -3
- package/dist/esm/components/forms/form/index.d.ts +0 -2
- package/dist/esm/components/forms/image-picker/ImagePicker.d.ts +0 -18
- package/dist/esm/components/forms/image-picker/ImagePicker.props.d.ts +0 -76
- package/dist/esm/components/forms/image-picker/index.d.ts +0 -2
- package/dist/esm/components/forms/input/Input.d.ts +0 -3
- package/dist/esm/components/forms/input/Input.props.d.ts +0 -46
- package/dist/esm/components/forms/input/Input.styles.d.ts +0 -15
- package/dist/esm/components/forms/input/index.d.ts +0 -2
- package/dist/esm/components/forms/select/Select.d.ts +0 -25
- package/dist/esm/components/forms/select/Select.props.d.ts +0 -54
- package/dist/esm/components/forms/select/Select.styles.d.ts +0 -10
- package/dist/esm/components/forms/select/SelectItem/SelectItem.d.ts +0 -7
- package/dist/esm/components/forms/select/SelectItem/SelectItem.props.d.ts +0 -19
- package/dist/esm/components/forms/select/SelectItem/SelectItem.styles.d.ts +0 -7
- package/dist/esm/components/forms/select/SelectItem/index.d.ts +0 -2
- package/dist/esm/components/forms/select/index.d.ts +0 -2
- package/dist/esm/components/forms/textarea/TextArea.d.ts +0 -3
- package/dist/esm/components/forms/textarea/TextArea.props.d.ts +0 -39
- package/dist/esm/components/forms/textarea/TextArea.styles.d.ts +0 -11
- package/dist/esm/components/forms/textarea/index.d.ts +0 -2
- package/dist/esm/components/foundation/icon/Icon.d.ts +0 -42
- package/dist/esm/components/foundation/icon/Icon.props.d.ts +0 -26
- package/dist/esm/components/foundation/icon/Icon.styles.d.ts +0 -3
- package/dist/esm/components/foundation/icon/index.d.ts +0 -2
- package/dist/esm/components/foundation/text/Text.d.ts +0 -21
- package/dist/esm/components/foundation/text/Text.props.d.ts +0 -40
- package/dist/esm/components/foundation/text/Text.styles.d.ts +0 -4
- package/dist/esm/components/foundation/text/index.d.ts +0 -2
- package/dist/esm/components/foundation/text/utils/getTextVariantStyles.utils.d.ts +0 -7
- package/dist/esm/components/foundation/text/utils/getTruncateTextStyles.utils.d.ts +0 -21
- package/dist/esm/components/foundation/text/utils/parseTextWithBold.utils.d.ts +0 -7
- package/dist/esm/components/index.d.ts +0 -35
- package/dist/esm/components/inputs/button/Button.d.ts +0 -12
- package/dist/esm/components/inputs/button/Button.props.d.ts +0 -28
- package/dist/esm/components/inputs/button/Button.styles.d.ts +0 -18
- package/dist/esm/components/inputs/button/index.d.ts +0 -2
- package/dist/esm/components/inputs/icon-button/IconButton.d.ts +0 -4
- package/dist/esm/components/inputs/icon-button/IconButton.props.d.ts +0 -27
- package/dist/esm/components/inputs/icon-button/IconButton.styles.d.ts +0 -4
- package/dist/esm/components/inputs/icon-button/index.d.ts +0 -2
- package/dist/esm/components/inputs/input/Input.d.ts +0 -6
- package/dist/esm/components/inputs/input/Input.props.d.ts +0 -17
- package/dist/esm/components/inputs/input/Input.styles.d.ts +0 -7
- package/dist/esm/components/inputs/input/index.d.ts +0 -2
- package/dist/esm/components/layout/accordion/Accordion.d.ts +0 -10
- package/dist/esm/components/layout/accordion/Accordion.props.d.ts +0 -36
- package/dist/esm/components/layout/accordion/Accordion.styles.d.ts +0 -7
- package/dist/esm/components/layout/accordion/index.d.ts +0 -2
- package/dist/esm/components/layout/box/Box.d.ts +0 -23
- package/dist/esm/components/layout/box/Box.props.d.ts +0 -139
- package/dist/esm/components/layout/box/Box.styles.d.ts +0 -7
- package/dist/esm/components/layout/box/index.d.ts +0 -2
- package/dist/esm/components/layout/card/Card.d.ts +0 -14
- package/dist/esm/components/layout/card/Card.props.d.ts +0 -68
- package/dist/esm/components/layout/card/Card.styles.d.ts +0 -7
- package/dist/esm/components/layout/card/index.d.ts +0 -2
- package/dist/esm/components/layout/grid/Grid.d.ts +0 -15
- package/dist/esm/components/layout/grid/Grid.props.d.ts +0 -57
- package/dist/esm/components/layout/grid/Grid.styles.d.ts +0 -7
- package/dist/esm/components/layout/grid/index.d.ts +0 -2
- package/dist/esm/components/layout/page-construction/page/Page.d.ts +0 -10
- package/dist/esm/components/layout/page-construction/page/Page.props.d.ts +0 -30
- package/dist/esm/components/layout/page-construction/page/Page.styles.d.ts +0 -5
- package/dist/esm/components/layout/page-construction/page/index.d.ts +0 -2
- package/dist/esm/components/layout/page-construction/page-section/PageSection.d.ts +0 -10
- package/dist/esm/components/layout/page-construction/page-section/PageSection.props.d.ts +0 -34
- package/dist/esm/components/layout/page-construction/page-section/PageSection.styles.d.ts +0 -4
- package/dist/esm/components/layout/page-construction/page-section/index.d.ts +0 -2
- package/dist/esm/components/layout/separator/Separator.d.ts +0 -9
- package/dist/esm/components/layout/separator/Separator.props.d.ts +0 -17
- package/dist/esm/components/layout/separator/Separator.styles.d.ts +0 -7
- package/dist/esm/components/layout/separator/index.d.ts +0 -2
- package/dist/esm/components/layout/stack/Stack.d.ts +0 -13
- package/dist/esm/components/layout/stack/Stack.props.d.ts +0 -42
- package/dist/esm/components/layout/stack/Stack.styles.d.ts +0 -7
- package/dist/esm/components/layout/stack/index.d.ts +0 -2
- package/dist/esm/components/layout/text/Text.d.ts +0 -21
- package/dist/esm/components/layout/text/Text.props.d.ts +0 -28
- package/dist/esm/components/layout/text/Text.styles.d.ts +0 -4
- package/dist/esm/components/layout/text/index.d.ts +0 -2
- package/dist/esm/components/navigation/breadcrumb/Breadcrumb.d.ts +0 -12
- package/dist/esm/components/navigation/breadcrumb/Breadcrumb.props.d.ts +0 -13
- package/dist/esm/components/navigation/breadcrumb/Breadcrumb.styles.d.ts +0 -6
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.d.ts +0 -8
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.props.d.ts +0 -5
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.styles.d.ts +0 -7
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbEllipsis/index.d.ts +0 -2
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbEllipsis.d.ts +0 -9
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbItem/BreadcrumbItem.d.ts +0 -6
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbItem/BreadcrumbItem.styles.d.ts +0 -6
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbItem/index.d.ts +0 -1
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbItem.d.ts +0 -6
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.d.ts +0 -7
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.props.d.ts +0 -14
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbLink/BreadcrumbLink.styles.d.ts +0 -7
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbLink/index.d.ts +0 -2
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbLink.d.ts +0 -6
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbList/BreadcrumbList.d.ts +0 -6
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbList/BreadcrumbList.styles.d.ts +0 -6
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbList/index.d.ts +0 -1
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbList.d.ts +0 -6
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.d.ts +0 -7
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.props.d.ts +0 -10
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbPage/BreadcrumbPage.styles.d.ts +0 -7
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbPage/index.d.ts +0 -2
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbPage.d.ts +0 -6
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.d.ts +0 -7
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.props.d.ts +0 -5
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.styles.d.ts +0 -6
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator/index.d.ts +0 -2
- package/dist/esm/components/navigation/breadcrumb/BreadcrumbSeparator.d.ts +0 -9
- package/dist/esm/components/navigation/breadcrumb/index.d.ts +0 -10
- package/dist/esm/components/navigation/breadcrumb/utils/buildBreadcrumbChildren.utils.d.ts +0 -5
- package/dist/esm/components/navigation/breadcrumb/utils/flattenChildren.utils.d.ts +0 -5
- package/dist/esm/components/navigation/breadcrumb/utils/insertSeparators.utils.d.ts +0 -5
- package/dist/esm/components/navigation/breadcrumb/utils/isSeparator.utils.d.ts +0 -5
- package/dist/esm/components/navigation/drawer-item/DrawerItem.d.ts +0 -10
- package/dist/esm/components/navigation/drawer-item/DrawerItem.props.d.ts +0 -31
- package/dist/esm/components/navigation/drawer-item/DrawerItem.styles.d.ts +0 -7
- package/dist/esm/components/navigation/drawer-item/index.d.ts +0 -2
- package/dist/esm/components/navigation/pagination/Pagination.d.ts +0 -6
- package/dist/esm/components/navigation/pagination/Pagination.props.d.ts +0 -24
- package/dist/esm/components/navigation/pagination/Pagination.styles.d.ts +0 -7
- package/dist/esm/components/navigation/pagination/index.d.ts +0 -2
- package/dist/esm/components/navigation/tabs/Tabs.d.ts +0 -7
- package/dist/esm/components/navigation/tabs/Tabs.props.d.ts +0 -12
- package/dist/esm/components/navigation/tabs/Tabs.styles.d.ts +0 -7
- package/dist/esm/components/navigation/tabs/index.d.ts +0 -4
- package/dist/esm/components/navigation/tabs/tab-item/TabItem.d.ts +0 -7
- package/dist/esm/components/navigation/tabs/tab-item/TabItem.props.d.ts +0 -15
- package/dist/esm/components/navigation/tabs/tab-item/TabItem.styles.d.ts +0 -6
- package/dist/esm/components/overlay/accordion/Accordion.d.ts +0 -10
- package/dist/esm/components/overlay/accordion/Accordion.props.d.ts +0 -52
- package/dist/esm/components/overlay/accordion/Accordion.styles.d.ts +0 -7
- package/dist/esm/components/overlay/accordion/index.d.ts +0 -2
- package/dist/esm/components/overlay/alert/Alert.d.ts +0 -37
- package/dist/esm/components/overlay/alert/Alert.props.d.ts +0 -56
- package/dist/esm/components/overlay/alert/Alert.styles.d.ts +0 -4
- package/dist/esm/components/overlay/alert/index.d.ts +0 -2
- package/dist/esm/components/overlay/alert/utils/getAlertIcon.utils.d.ts +0 -8
- package/dist/esm/components/overlay/alert/utils/getAlertPositionStyles.utils.d.ts +0 -8
- package/dist/esm/components/overlay/alert/utils/getAlertVariantColors.utils.d.ts +0 -14
- package/dist/esm/components/overlay/menu/Menu.d.ts +0 -4
- package/dist/esm/components/overlay/menu/Menu.props.d.ts +0 -14
- package/dist/esm/components/overlay/menu/Menu.styles.d.ts +0 -13
- package/dist/esm/components/overlay/menu/MenuGroup/MenuGroup.d.ts +0 -4
- package/dist/esm/components/overlay/menu/MenuGroup/MenuGroup.props.d.ts +0 -4
- package/dist/esm/components/overlay/menu/MenuGroup/MenuGroup.styles.d.ts +0 -3
- package/dist/esm/components/overlay/menu/MenuGroup/index.d.ts +0 -2
- package/dist/esm/components/overlay/menu/MenuItem/MenuItem.d.ts +0 -4
- package/dist/esm/components/overlay/menu/MenuItem/MenuItem.props.d.ts +0 -14
- package/dist/esm/components/overlay/menu/MenuItem/MenuItem.styles.d.ts +0 -4
- package/dist/esm/components/overlay/menu/MenuItem/index.d.ts +0 -2
- package/dist/esm/components/overlay/menu/index.d.ts +0 -6
- package/dist/esm/components/overlay/modal/Modal.d.ts +0 -28
- package/dist/esm/components/overlay/modal/Modal.props.d.ts +0 -10
- package/dist/esm/components/overlay/modal/Modal.styles.d.ts +0 -4
- package/dist/esm/components/overlay/modal/index.d.ts +0 -2
- package/dist/esm/constants/animations.d.ts +0 -1
- package/dist/esm/constants/globalConstants.d.ts +0 -5
- package/dist/esm/hooks/index.d.ts +0 -7
- package/dist/esm/hooks/useAlert.d.ts +0 -23
- package/dist/esm/hooks/useAlert.types.d.ts +0 -56
- package/dist/esm/hooks/useAnchorPosition.d.ts +0 -17
- package/dist/esm/hooks/useAnchorPosition.types.d.ts +0 -5
- package/dist/esm/hooks/useClickOutside.d.ts +0 -8
- package/dist/esm/hooks/useTransitionRender.d.ts +0 -7
- package/dist/esm/hooks/useTransitionRender.types.d.ts +0 -4
- package/dist/esm/index.d.ts +0 -6
- package/dist/esm/interfaces/alert.types.d.ts +0 -8
- package/dist/esm/interfaces/avatar.types.d.ts +0 -2
- package/dist/esm/interfaces/button.types.d.ts +0 -36
- package/dist/esm/interfaces/card.types.d.ts +0 -3
- package/dist/esm/interfaces/chip.types.d.ts +0 -6
- package/dist/esm/interfaces/index.d.ts +0 -7
- package/dist/esm/interfaces/select.types.d.ts +0 -5
- package/dist/esm/interfaces/stack.types.d.ts +0 -7
- package/dist/esm/interfaces/status.types.d.ts +0 -6
- package/dist/esm/interfaces/text.types.d.ts +0 -7
- package/dist/esm/interfaces/theme.contracts.d.ts +0 -243
- package/dist/esm/resources/Icons.d.ts +0 -15
- package/dist/esm/resources/icons/AlertCircleIcon.d.ts +0 -2
- package/dist/esm/resources/icons/AlertTriangleIcon.d.ts +0 -2
- package/dist/esm/resources/icons/CalendarIcon.d.ts +0 -1
- package/dist/esm/resources/icons/CheckCircleIcon.d.ts +0 -2
- package/dist/esm/resources/icons/ChevronDownIcon.d.ts +0 -1
- package/dist/esm/resources/icons/ChevronLeftIcon.d.ts +0 -1
- package/dist/esm/resources/icons/ChevronRightIcon.d.ts +0 -1
- package/dist/esm/resources/icons/CloseIcon.d.ts +0 -2
- package/dist/esm/resources/icons/EyeIcon.d.ts +0 -1
- package/dist/esm/resources/icons/EyeOffIcon.d.ts +0 -1
- package/dist/esm/resources/icons/InfoIcon.d.ts +0 -1
- package/dist/esm/resources/icons/MoreHorizontalIcon.d.ts +0 -1
- package/dist/esm/resources/icons/PlusIcon.d.ts +0 -2
- package/dist/esm/resources/icons/TrashIcon.d.ts +0 -2
- package/dist/esm/resources/icons/UploadIcon.d.ts +0 -2
- package/dist/esm/theme/defaultTheme.d.ts +0 -29
- package/dist/esm/theme/theme.module.d.ts +0 -32
- package/dist/esm/theme/theme.types.d.ts +0 -17
- package/dist/esm/theme/types/themeBreakpoints.types.d.ts +0 -5
- package/dist/esm/theme/types/themeColor.types.d.ts +0 -5
- package/dist/esm/theme/types/themeFontSize.types.d.ts +0 -5
- package/dist/esm/theme/types/themeFontWeight.types.d.ts +0 -5
- package/dist/esm/theme/types/themeLineHeight.types.d.ts +0 -5
- package/dist/esm/theme/types/themeOpacity.types.d.ts +0 -5
- package/dist/esm/theme/types/themeRadius.types.d.ts +0 -5
- package/dist/esm/theme/types/themeShadows.types.d.ts +0 -5
- package/dist/esm/theme/types/themeSpacing.types.d.ts +0 -5
- package/dist/esm/theme/types/themeTransition.types.d.ts +0 -5
- package/dist/esm/theme/types/themeZIndex.types.d.ts +0 -5
- package/dist/esm/theme/values/themeBreakpoints.d.ts +0 -5
- package/dist/esm/theme/values/themeColors.d.ts +0 -6
- package/dist/esm/theme/values/themeFontSize.d.ts +0 -5
- package/dist/esm/theme/values/themeFontWeight.d.ts +0 -5
- package/dist/esm/theme/values/themeLineHeight.d.ts +0 -5
- package/dist/esm/theme/values/themeOpacity.d.ts +0 -5
- package/dist/esm/theme/values/themeRadius.d.ts +0 -5
- package/dist/esm/theme/values/themeShadows.d.ts +0 -5
- package/dist/esm/theme/values/themeSpacing.d.ts +0 -5
- package/dist/esm/theme/values/themeTransition.d.ts +0 -5
- package/dist/esm/theme/values/themeZIndex.d.ts +0 -5
- package/dist/esm/utils/ui/components/actions/button/getButtonSizeStyles.utils.d.ts +0 -12
- package/dist/esm/utils/ui/components/actions/button/getButtonVariantStyles.utils.d.ts +0 -7
- package/dist/esm/utils/ui/components/actions/icon-button/getIconButtonSizeStyles.utils.d.ts +0 -9
- package/dist/esm/utils/ui/components/button/getButtonVariantStyles.utils.d.ts +0 -7
- package/dist/esm/utils/ui/components/chip/getChipColorStyles.utils.d.ts +0 -7
- package/dist/esm/utils/ui/components/chip/getChipContentSize.utils.d.ts +0 -8
- package/dist/esm/utils/ui/components/chip/getChipSizeStyles.utils.d.ts +0 -12
- package/dist/esm/utils/ui/components/data-display/avatar/getAvatarSizes.utils.d.ts +0 -11
- package/dist/esm/utils/ui/components/data-display/chip/getChipColorStyles.utils.d.ts +0 -7
- package/dist/esm/utils/ui/components/data-display/chip/getChipContentSize.utils.d.ts +0 -8
- package/dist/esm/utils/ui/components/data-display/chip/getChipSizeStyles.utils.d.ts +0 -12
- package/dist/esm/utils/ui/components/data-display/status/getStatusColorStyles.utils.d.ts +0 -7
- package/dist/esm/utils/ui/components/data-display/status/getStatusContentSize.utils.d.ts +0 -8
- package/dist/esm/utils/ui/components/data-display/status/getStatusSizeStyles.utils.d.ts +0 -12
- package/dist/esm/utils/ui/components/date-picker/datePicker.utils.d.ts +0 -13
- package/dist/esm/utils/ui/components/foundation/text/getTextVariantStyles.utils.d.ts +0 -7
- package/dist/esm/utils/ui/components/foundation/text/getTruncateTextStyles.utils.d.ts +0 -21
- package/dist/esm/utils/ui/components/foundation/text/parseTextWithBold.utils.d.ts +0 -7
- package/dist/esm/utils/ui/components/icon-button/getIconButtonSizeStyles.utils.d.ts +0 -9
- package/dist/esm/utils/ui/components/navigation/breadcrumb/buildBreadcrumbChildren.utils.d.ts +0 -5
- package/dist/esm/utils/ui/components/navigation/breadcrumb/flattenChildren.utils.d.ts +0 -5
- package/dist/esm/utils/ui/components/navigation/breadcrumb/insertSeparators.utils.d.ts +0 -5
- package/dist/esm/utils/ui/components/navigation/breadcrumb/isSeparator.utils.d.ts +0 -5
- package/dist/esm/utils/ui/components/overlay/alert/getAlertIcon.utils.d.ts +0 -8
- package/dist/esm/utils/ui/components/overlay/alert/getAlertPositionStyles.utils.d.ts +0 -8
- package/dist/esm/utils/ui/components/overlay/alert/getAlertVariantColors.utils.d.ts +0 -14
- package/dist/esm/utils/ui/components/text/getTextVariantStyles.utils.d.ts +0 -7
- package/dist/esm/utils/ui/components/text/getTruncateTextStyles.utils.d.ts +0 -17
- package/dist/esm/utils/ui/components/text/parseTextWithBold.utils.d.ts +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,184 +1,114 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PropsWithChildren, FC, ReactNode, MouseEvent, KeyboardEvent, CSSProperties, FormEvent, FocusEvent, ComponentType, SVGProps, DragEvent, ComponentPropsWithoutRef, ReactElement, RefObject } from 'react';
|
|
1
|
+
import { ComponentType, SVGProps, HTMLAttributes, Ref, FC, ReactNode, ButtonHTMLAttributes, CSSProperties, FormEvent, InputHTMLAttributes } from 'react';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Alert position types
|
|
10
|
-
*/
|
|
11
|
-
type AlertPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
12
|
-
|
|
13
|
-
type ButtonVariants = 'contained' | 'outlined' | 'text' | 'destructive' | 'link';
|
|
14
|
-
type IconButtonVariants = Exclude<ButtonVariants, 'link'>;
|
|
15
|
-
type IconButtonSizes = 'small' | 'medium' | 'large';
|
|
16
|
-
type ButtonVariantStyle = {
|
|
17
|
-
default: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
color: string;
|
|
20
|
-
border: string;
|
|
21
|
-
textDecoration?: string;
|
|
22
|
-
textDecorationColor?: string;
|
|
23
|
-
textUnderlineOffset?: string;
|
|
24
|
-
};
|
|
25
|
-
hover: {
|
|
26
|
-
backgroundColor: string;
|
|
27
|
-
textDecoration?: string;
|
|
28
|
-
textDecorationColor?: string;
|
|
29
|
-
textUnderlineOffset?: string;
|
|
30
|
-
};
|
|
31
|
-
pressed: {
|
|
32
|
-
backgroundColor: string;
|
|
33
|
-
textDecoration?: string;
|
|
34
|
-
textDecorationColor?: string;
|
|
35
|
-
color?: string;
|
|
36
|
-
textUnderlineOffset?: string;
|
|
37
|
-
};
|
|
38
|
-
disabled: {
|
|
39
|
-
color: string;
|
|
40
|
-
cursor: string;
|
|
41
|
-
backgroundColor: string;
|
|
42
|
-
borderColor?: string;
|
|
43
|
-
textDecoration?: string;
|
|
44
|
-
textUnderlineOffset?: string;
|
|
45
|
-
};
|
|
46
|
-
textColor: keyof ThemeContract['colors'];
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
type TextVariants = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label';
|
|
50
|
-
type TextVariantStyle = {
|
|
51
|
-
tag: TextVariants;
|
|
52
|
-
fontSize: string;
|
|
53
|
-
fontWeight: number;
|
|
54
|
-
lineHeight: number;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/** Status variant options */
|
|
58
|
-
type StatusVariant = 'filled' | 'outlined';
|
|
59
|
-
/** Status color options */
|
|
60
|
-
type StatusColor = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info' | 'highlight' | 'accent' | 'new' | 'rose' | 'yellow';
|
|
61
|
-
/** Status size options */
|
|
62
|
-
type StatusSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
63
|
-
|
|
64
|
-
/** Avatar size variants */
|
|
65
|
-
type AvatarSize = 'small' | 'medium' | 'large';
|
|
66
|
-
|
|
67
|
-
type SelectOption = {
|
|
68
|
-
label: string;
|
|
69
|
-
value: string | number;
|
|
70
|
-
disabled?: boolean;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Theme Contracts for aurora-ds-components
|
|
75
|
-
*
|
|
76
|
-
* These interfaces define the MINIMUM required theme structure.
|
|
77
|
-
* All projects using this library MUST provide these tokens.
|
|
78
|
-
*
|
|
79
|
-
* You can extend these contracts with your own custom tokens:
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```typescript
|
|
83
|
-
* import type { ThemeColorContract } from 'aurora-ds-components'
|
|
84
|
-
*
|
|
85
|
-
* // Extend with custom tokens
|
|
86
|
-
* export interface ThemeColorTypes extends ThemeColorContract {
|
|
87
|
-
* // Required tokens already included via extends
|
|
88
|
-
*
|
|
89
|
-
* // Add your custom tokens
|
|
90
|
-
* highlight: string
|
|
91
|
-
* accent: string
|
|
92
|
-
* }
|
|
93
|
-
* ```
|
|
94
|
-
*/
|
|
95
|
-
/**
|
|
96
|
-
* Minimum color tokens required by aurora-ds-components
|
|
97
|
-
* Projects can extend this interface with additional tokens
|
|
98
|
-
*/
|
|
99
|
-
interface ThemeColorContract {
|
|
100
|
-
background: string;
|
|
101
|
-
surface: string;
|
|
102
|
-
surfaceHover: string;
|
|
103
|
-
surfaceActive: string;
|
|
104
|
-
text: string;
|
|
3
|
+
declare const lightPalette: {
|
|
4
|
+
surfaceBackground: string;
|
|
5
|
+
surfacePaper: string;
|
|
6
|
+
surfaceElevated: string;
|
|
7
|
+
textPrimary: string;
|
|
105
8
|
textSecondary: string;
|
|
106
9
|
textTertiary: string;
|
|
107
|
-
|
|
10
|
+
textDisabled: string;
|
|
11
|
+
textInverse: string;
|
|
12
|
+
primaryMain: string;
|
|
108
13
|
primaryHover: string;
|
|
109
14
|
primaryActive: string;
|
|
110
15
|
primarySubtle: string;
|
|
16
|
+
primarySubtleHover: string;
|
|
17
|
+
primarySubtleActive: string;
|
|
111
18
|
primaryDisabled: string;
|
|
112
|
-
|
|
113
|
-
|
|
19
|
+
primaryOn: string;
|
|
20
|
+
secondaryMain: string;
|
|
114
21
|
secondaryHover: string;
|
|
115
22
|
secondaryActive: string;
|
|
116
23
|
secondarySubtle: string;
|
|
24
|
+
secondarySubtleHover: string;
|
|
25
|
+
secondarySubtleActive: string;
|
|
117
26
|
secondaryDisabled: string;
|
|
118
|
-
|
|
119
|
-
|
|
27
|
+
secondaryOn: string;
|
|
28
|
+
borderSubtle: string;
|
|
29
|
+
borderMain: string;
|
|
30
|
+
borderStrong: string;
|
|
31
|
+
disabledMain: string;
|
|
120
32
|
disabledText: string;
|
|
121
|
-
|
|
122
|
-
|
|
33
|
+
successMain: string;
|
|
34
|
+
successHover: string;
|
|
35
|
+
successActive: string;
|
|
123
36
|
successSubtle: string;
|
|
124
|
-
|
|
37
|
+
successSubtleHover: string;
|
|
38
|
+
successSubtleActive: string;
|
|
39
|
+
successOn: string;
|
|
40
|
+
warningMain: string;
|
|
41
|
+
warningHover: string;
|
|
42
|
+
warningActive: string;
|
|
125
43
|
warningSubtle: string;
|
|
126
|
-
|
|
44
|
+
warningSubtleHover: string;
|
|
45
|
+
warningSubtleActive: string;
|
|
46
|
+
warningOn: string;
|
|
47
|
+
errorMain: string;
|
|
127
48
|
errorHover: string;
|
|
49
|
+
errorActive: string;
|
|
128
50
|
errorSubtle: string;
|
|
129
|
-
|
|
130
|
-
|
|
51
|
+
errorSubtleHover: string;
|
|
52
|
+
errorSubtleActive: string;
|
|
53
|
+
errorOn: string;
|
|
54
|
+
infoMain: string;
|
|
55
|
+
infoHover: string;
|
|
56
|
+
infoActive: string;
|
|
131
57
|
infoSubtle: string;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
58
|
+
infoSubtleHover: string;
|
|
59
|
+
infoSubtleActive: string;
|
|
60
|
+
infoOn: string;
|
|
61
|
+
orangeMain: string;
|
|
62
|
+
orangeHover: string;
|
|
63
|
+
orangeActive: string;
|
|
64
|
+
orangeSubtle: string;
|
|
65
|
+
orangeSubtleHover: string;
|
|
66
|
+
orangeSubtleActive: string;
|
|
67
|
+
orangeOn: string;
|
|
68
|
+
pinkMain: string;
|
|
69
|
+
pinkHover: string;
|
|
70
|
+
pinkActive: string;
|
|
71
|
+
pinkSubtle: string;
|
|
72
|
+
pinkSubtleHover: string;
|
|
73
|
+
pinkSubtleActive: string;
|
|
74
|
+
pinkOn: string;
|
|
75
|
+
violetMain: string;
|
|
76
|
+
violetHover: string;
|
|
77
|
+
violetActive: string;
|
|
78
|
+
violetSubtle: string;
|
|
79
|
+
violetSubtleHover: string;
|
|
80
|
+
violetSubtleActive: string;
|
|
81
|
+
violetOn: string;
|
|
82
|
+
defaultMain: string;
|
|
83
|
+
defaultHover: string;
|
|
84
|
+
defaultActive: string;
|
|
137
85
|
defaultSubtle: string;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
yellowSubtle: string;
|
|
144
|
-
link: string;
|
|
86
|
+
defaultSubtleHover: string;
|
|
87
|
+
defaultSubtleActive: string;
|
|
88
|
+
skeletonPrimary: string;
|
|
89
|
+
skeletonSecondary: string;
|
|
90
|
+
linkMain: string;
|
|
145
91
|
linkHover: string;
|
|
146
92
|
linkActive: string;
|
|
147
93
|
linkDisabled: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
* Minimum spacing tokens required by aurora-ds-components
|
|
151
|
-
*/
|
|
152
|
-
interface ThemeSpacingContract {
|
|
153
|
-
none: string;
|
|
154
|
-
'2xs': string;
|
|
155
|
-
xs: string;
|
|
156
|
-
sm: string;
|
|
157
|
-
md: string;
|
|
158
|
-
lg: string;
|
|
159
|
-
xl: string;
|
|
160
|
-
'2xl': string;
|
|
161
|
-
'3xl': string;
|
|
162
|
-
'4xl': string;
|
|
163
|
-
'5xl': string;
|
|
164
|
-
}
|
|
94
|
+
};
|
|
95
|
+
|
|
165
96
|
/**
|
|
166
|
-
*
|
|
97
|
+
* Default breakpoint tokens
|
|
167
98
|
*/
|
|
168
|
-
|
|
169
|
-
none: string;
|
|
99
|
+
declare const themeBreakpoints: {
|
|
170
100
|
xs: string;
|
|
171
101
|
sm: string;
|
|
172
102
|
md: string;
|
|
173
103
|
lg: string;
|
|
174
104
|
xl: string;
|
|
175
105
|
'2xl': string;
|
|
176
|
-
|
|
177
|
-
|
|
106
|
+
};
|
|
107
|
+
|
|
178
108
|
/**
|
|
179
|
-
*
|
|
109
|
+
* Default font size tokens
|
|
180
110
|
*/
|
|
181
|
-
|
|
111
|
+
declare const themeFontSize: {
|
|
182
112
|
'2xs': string;
|
|
183
113
|
xs: string;
|
|
184
114
|
sm: string;
|
|
@@ -189,31 +119,34 @@ interface ThemeFontSizeContract {
|
|
|
189
119
|
'3xl': string;
|
|
190
120
|
'4xl': string;
|
|
191
121
|
'5xl': string;
|
|
192
|
-
}
|
|
122
|
+
};
|
|
123
|
+
|
|
193
124
|
/**
|
|
194
|
-
*
|
|
125
|
+
* Default font weight tokens
|
|
195
126
|
*/
|
|
196
|
-
|
|
127
|
+
declare const themeFontWeight: {
|
|
197
128
|
light: number;
|
|
198
129
|
regular: number;
|
|
199
130
|
medium: number;
|
|
200
131
|
semibold: number;
|
|
201
132
|
bold: number;
|
|
202
|
-
}
|
|
133
|
+
};
|
|
134
|
+
|
|
203
135
|
/**
|
|
204
|
-
*
|
|
136
|
+
* Default line height tokens
|
|
205
137
|
*/
|
|
206
|
-
|
|
138
|
+
declare const themeLineHeight: {
|
|
207
139
|
none: number;
|
|
208
140
|
tight: number;
|
|
209
141
|
normal: number;
|
|
210
142
|
relaxed: number;
|
|
211
143
|
loose: number;
|
|
212
|
-
}
|
|
144
|
+
};
|
|
145
|
+
|
|
213
146
|
/**
|
|
214
|
-
*
|
|
147
|
+
* Default opacity tokens
|
|
215
148
|
*/
|
|
216
|
-
|
|
149
|
+
declare const themeOpacity: {
|
|
217
150
|
none: number;
|
|
218
151
|
lowest: number;
|
|
219
152
|
low: number;
|
|
@@ -221,11 +154,12 @@ interface ThemeOpacityContract {
|
|
|
221
154
|
high: number;
|
|
222
155
|
higher: number;
|
|
223
156
|
full: number;
|
|
224
|
-
}
|
|
157
|
+
};
|
|
158
|
+
|
|
225
159
|
/**
|
|
226
|
-
*
|
|
160
|
+
* Default border radius tokens
|
|
227
161
|
*/
|
|
228
|
-
|
|
162
|
+
declare const themeRadius: {
|
|
229
163
|
none: string;
|
|
230
164
|
xs: string;
|
|
231
165
|
sm: string;
|
|
@@ -233,32 +167,56 @@ interface ThemeShadowsContract {
|
|
|
233
167
|
lg: string;
|
|
234
168
|
xl: string;
|
|
235
169
|
'2xl': string;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
170
|
+
full: string;
|
|
171
|
+
};
|
|
172
|
+
|
|
239
173
|
/**
|
|
240
|
-
*
|
|
174
|
+
* Default shadow tokens
|
|
241
175
|
*/
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
176
|
+
declare const themeShadows: {
|
|
177
|
+
none: string;
|
|
178
|
+
xs: string;
|
|
179
|
+
sm: string;
|
|
180
|
+
md: string;
|
|
181
|
+
lg: string;
|
|
182
|
+
xl: string;
|
|
183
|
+
'2xl': string;
|
|
184
|
+
inner: string;
|
|
185
|
+
focus: string;
|
|
186
|
+
dropSm: string;
|
|
187
|
+
};
|
|
188
|
+
|
|
247
189
|
/**
|
|
248
|
-
*
|
|
190
|
+
* Default spacing tokens
|
|
249
191
|
*/
|
|
250
|
-
|
|
192
|
+
declare const themeSpacing: {
|
|
193
|
+
none: string;
|
|
194
|
+
'2xs': string;
|
|
251
195
|
xs: string;
|
|
196
|
+
'xs+': string;
|
|
252
197
|
sm: string;
|
|
253
198
|
md: string;
|
|
254
199
|
lg: string;
|
|
255
200
|
xl: string;
|
|
256
201
|
'2xl': string;
|
|
257
|
-
|
|
202
|
+
'3xl': string;
|
|
203
|
+
'4xl': string;
|
|
204
|
+
'5xl': string;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Default transition tokens
|
|
209
|
+
*/
|
|
210
|
+
declare const themeTransition: {
|
|
211
|
+
fast: string;
|
|
212
|
+
normal: string;
|
|
213
|
+
slow: string;
|
|
214
|
+
};
|
|
215
|
+
|
|
258
216
|
/**
|
|
259
|
-
*
|
|
217
|
+
* Default z-index tokens
|
|
260
218
|
*/
|
|
261
|
-
|
|
219
|
+
declare const themeZIndex: {
|
|
262
220
|
behind: number;
|
|
263
221
|
base: number;
|
|
264
222
|
dropdown: number;
|
|
@@ -268,1817 +226,605 @@ interface ThemeZIndexContract {
|
|
|
268
226
|
popover: number;
|
|
269
227
|
tooltip: number;
|
|
270
228
|
toast: number;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
type Palette = typeof lightPalette;
|
|
232
|
+
type Theme = {
|
|
233
|
+
colors: Palette;
|
|
234
|
+
spacing: typeof themeSpacing;
|
|
235
|
+
radius: typeof themeRadius;
|
|
236
|
+
shadows: typeof themeShadows;
|
|
237
|
+
fontSize: typeof themeFontSize;
|
|
238
|
+
fontWeight: typeof themeFontWeight;
|
|
239
|
+
lineHeight: typeof themeLineHeight;
|
|
240
|
+
zIndex: typeof themeZIndex;
|
|
241
|
+
transition: typeof themeTransition;
|
|
242
|
+
opacity: typeof themeOpacity;
|
|
243
|
+
breakpoints: typeof themeBreakpoints;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
declare module '@aurora-ds/theme' {
|
|
247
|
+
interface ThemeRegistry {
|
|
248
|
+
theme: Theme;
|
|
249
|
+
}
|
|
271
250
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
251
|
+
|
|
252
|
+
/** SVG icon component used by badge icon slots. */
|
|
253
|
+
type BadgeIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
254
|
+
/** Visual style of the badge surface. */
|
|
255
|
+
type BadgeVariant = 'filled' | 'outlined' | 'subtle' | 'subtleOutlined';
|
|
256
|
+
/** Semantic color intent of the badge. */
|
|
257
|
+
type BadgeColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'orange' | 'pink' | 'violet';
|
|
258
|
+
/** Size token controlling height, padding and font size. */
|
|
259
|
+
type BadgeSize = 'sm' | 'md' | 'lg';
|
|
260
|
+
|
|
261
|
+
type BadgeProps = HTMLAttributes<HTMLSpanElement> & {
|
|
262
|
+
ref?: Ref<HTMLSpanElement>;
|
|
263
|
+
/** Visual style of the badge surface. @default 'subtle' */
|
|
264
|
+
variant?: BadgeVariant;
|
|
265
|
+
/** Semantic color intent. @default 'default' */
|
|
266
|
+
color?: BadgeColor;
|
|
267
|
+
/** Size token controlling height, padding and font size. @default 'md' */
|
|
268
|
+
size?: BadgeSize;
|
|
269
|
+
/** Border radius token from the theme. Defaults to a pill shape. */
|
|
270
|
+
borderRadius?: keyof Theme['radius'];
|
|
271
|
+
/** SVG icon component rendered before the label (inherits the badge color). */
|
|
272
|
+
startIcon?: BadgeIcon;
|
|
273
|
+
/** SVG icon component rendered after the label (inherits the badge color). */
|
|
274
|
+
endIcon?: BadgeIcon;
|
|
275
|
+
/** @deprecated Use `startIcon` instead. */
|
|
276
|
+
icon?: BadgeIcon;
|
|
277
|
+
/** Render as a small colored dot indicator — children and icons are ignored. @default false */
|
|
278
|
+
dot?: boolean;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Compact label used to convey status, category or count information.
|
|
283
|
+
*
|
|
284
|
+
* @example <Badge color='success'>Active</Badge>
|
|
285
|
+
* @example <Badge variant='outlined' color='error'>Critical</Badge>
|
|
286
|
+
* @example <Badge variant='filled' color='primary' size='sm' startIcon={StarIcon}>Featured</Badge>
|
|
287
|
+
* @example <Badge dot color='warning' />
|
|
288
|
+
*/
|
|
289
|
+
declare const Badge: FC<BadgeProps>;
|
|
290
|
+
|
|
291
|
+
type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
292
|
+
interface TooltipProps {
|
|
293
|
+
/** Content that triggers the tooltip on hover/focus. */
|
|
294
|
+
children: ReactNode;
|
|
295
|
+
/** Text displayed inside the tooltip bubble. */
|
|
296
|
+
label: string;
|
|
297
|
+
/** Placement of the tooltip relative to the trigger element. @default 'right' */
|
|
298
|
+
placement?: TooltipPlacement;
|
|
299
|
+
/** When true, the tooltip will never show. @default false */
|
|
300
|
+
disabled?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* When true, the wrapper renders as `inline-flex` with `auto` width instead of
|
|
303
|
+
* full-width flex — use this when the trigger is an inline element (e.g. an icon).
|
|
304
|
+
* @default false
|
|
305
|
+
*/
|
|
306
|
+
inline?: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* When true, renders a directional arrow on the bubble pointing toward the trigger.
|
|
309
|
+
* @default false
|
|
310
|
+
*/
|
|
311
|
+
withArrow?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Maximum width of the tooltip bubble in pixels.
|
|
314
|
+
* @default 200
|
|
315
|
+
*/
|
|
316
|
+
width?: number;
|
|
317
|
+
/**
|
|
318
|
+
* When true (default), the tooltip is hidden as soon as the trigger is clicked.
|
|
319
|
+
* Set to `false` on purely informational triggers (e.g. InfoBubble) so the tooltip
|
|
320
|
+
* stays visible after a tap/click.
|
|
321
|
+
* @default true
|
|
322
|
+
*/
|
|
323
|
+
hideOnClick?: boolean;
|
|
324
|
+
/**
|
|
325
|
+
* When true (default), the tooltip is completely disabled on touch/mobile devices
|
|
326
|
+
* (`pointer: coarse`). Set to `false` for components like InfoBubble that should
|
|
327
|
+
* still be tappable on mobile.
|
|
328
|
+
* @default true
|
|
329
|
+
*/
|
|
330
|
+
disableOnMobile?: boolean;
|
|
315
331
|
}
|
|
316
332
|
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
ariaLabelledBy?: string;
|
|
334
|
-
/** ID of element that describes this icon */
|
|
335
|
-
ariaDescribedBy?: string;
|
|
336
|
-
/** ARIA role */
|
|
337
|
-
role?: string;
|
|
338
|
-
/** Tab index for keyboard navigation */
|
|
339
|
-
tabIndex?: number;
|
|
340
|
-
}>;
|
|
333
|
+
interface InfoBubbleProps {
|
|
334
|
+
/** Text displayed inside the tooltip bubble. */
|
|
335
|
+
label: string;
|
|
336
|
+
/** Placement of the tooltip relative to the info icon. @default 'top' */
|
|
337
|
+
placement?: TooltipPlacement;
|
|
338
|
+
/**
|
|
339
|
+
* Maximum width of the tooltip bubble in pixels.
|
|
340
|
+
* @default 200
|
|
341
|
+
*/
|
|
342
|
+
width?: number;
|
|
343
|
+
/**
|
|
344
|
+
* When true, renders a directional arrow on the bubble.
|
|
345
|
+
* @default true
|
|
346
|
+
*/
|
|
347
|
+
withArrow?: boolean;
|
|
348
|
+
}
|
|
341
349
|
|
|
342
350
|
/**
|
|
343
|
-
*
|
|
351
|
+
* InfoBubble
|
|
344
352
|
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
* - Optional background with padding and border radius
|
|
349
|
-
* - Transition animation on color changes
|
|
353
|
+
* An info icon with an attached tooltip. Unlike the regular `Tooltip`, the
|
|
354
|
+
* tooltip is **not** disabled on mobile — users can tap the icon to read the
|
|
355
|
+
* information on touch devices.
|
|
350
356
|
*
|
|
351
|
-
*
|
|
357
|
+
* @example
|
|
352
358
|
* ```tsx
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
* // Stroke color only
|
|
356
|
-
* <Icon size="md" color="primary">
|
|
357
|
-
* <SomeIcon />
|
|
358
|
-
* </Icon>
|
|
359
|
-
*
|
|
360
|
-
* // With fill color
|
|
361
|
-
* <Icon size="md" color="primary" fill="secondary">
|
|
362
|
-
* <SomeIcon />
|
|
363
|
-
* </Icon>
|
|
359
|
+
* <InfoBubble label="This field is required for compliance." />
|
|
364
360
|
* ```
|
|
365
361
|
*
|
|
366
|
-
*
|
|
362
|
+
* @example
|
|
367
363
|
* ```tsx
|
|
368
|
-
* <
|
|
369
|
-
* size="lg"
|
|
370
|
-
* color="onPrimary"
|
|
371
|
-
* fill="onPrimary"
|
|
372
|
-
* backgroundColor="primary"
|
|
373
|
-
* padding="sm"
|
|
374
|
-
* borderRadius="full"
|
|
375
|
-
* >
|
|
376
|
-
* <SomeIcon />
|
|
377
|
-
* </Icon>
|
|
364
|
+
* <InfoBubble label="Detailed explanation" placement="right" withArrow={false} />
|
|
378
365
|
* ```
|
|
379
366
|
*/
|
|
367
|
+
declare const InfoBubble: FC<InfoBubbleProps>;
|
|
368
|
+
|
|
369
|
+
/** SVG icon component used by button slots and loading state. */
|
|
370
|
+
type ButtonIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
371
|
+
/** Visual style of the button surface. */
|
|
372
|
+
type ButtonVariant = 'contained' | 'outlined' | 'text';
|
|
373
|
+
/** Semantic color intent of the button. */
|
|
374
|
+
type ButtonColor = 'primary' | 'secondary' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
375
|
+
/** Size token controlling height, padding and label scale. */
|
|
376
|
+
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
377
|
+
|
|
378
|
+
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
379
|
+
ref?: Ref<HTMLButtonElement>;
|
|
380
|
+
/** Visual style. @default 'contained' */
|
|
381
|
+
variant?: ButtonVariant;
|
|
382
|
+
/** Semantic color. @default 'primary' */
|
|
383
|
+
color?: ButtonColor;
|
|
384
|
+
/** Size token controlling height, padding and font size. @default 'md' */
|
|
385
|
+
size?: ButtonSize;
|
|
386
|
+
/** Explicit width for the button. Accepts numbers (px) or any CSS width value. */
|
|
387
|
+
width?: number | string;
|
|
388
|
+
/** Flex grow factor applied to the button container. */
|
|
389
|
+
flexGrow?: number;
|
|
390
|
+
/** Flex shrink factor applied to the button container. */
|
|
391
|
+
flexShrink?: number;
|
|
392
|
+
/** Show a spinner and disable interaction. */
|
|
393
|
+
isLoading?: boolean;
|
|
394
|
+
/** Native button type. @default 'button' */
|
|
395
|
+
type?: 'button' | 'submit' | 'reset';
|
|
396
|
+
/** SVG icon component rendered before the label (inherits the button color). */
|
|
397
|
+
startIcon?: ButtonIcon;
|
|
398
|
+
/** SVG icon component rendered after the label (inherits the button color). */
|
|
399
|
+
endIcon?: ButtonIcon;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Theme-aware button built on `createVariants`.
|
|
404
|
+
*
|
|
405
|
+
* @example <Button onClick={save}>Save</Button>
|
|
406
|
+
* @example <Button variant='outlined' color='error' startIcon={IconRegistry.CloseIcon}>Delete</Button>
|
|
407
|
+
* @example <Button color='success' isLoading width='100%'>Submitting…</Button>
|
|
408
|
+
*/
|
|
409
|
+
declare const Button: FC<ButtonProps>;
|
|
410
|
+
|
|
411
|
+
type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'aria-label'> & {
|
|
412
|
+
/** Ref forwarded to the underlying button element. */
|
|
413
|
+
ref?: Ref<HTMLButtonElement>;
|
|
414
|
+
/** SVG icon component to render inside the button. */
|
|
415
|
+
icon: ButtonIcon;
|
|
416
|
+
/** Accessible label — required since there is no visible text. */
|
|
417
|
+
ariaLabel: string;
|
|
418
|
+
/** Visual style. @default 'contained' */
|
|
419
|
+
variant?: ButtonVariant;
|
|
420
|
+
/** Semantic color. @default 'primary' */
|
|
421
|
+
color?: ButtonColor;
|
|
422
|
+
/** Size token controlling width, height and padding. @default 'md' */
|
|
423
|
+
size?: ButtonSize;
|
|
424
|
+
/** Show a spinner and disable interaction. */
|
|
425
|
+
isLoading?: boolean;
|
|
426
|
+
/** Native button type. @default 'button' */
|
|
427
|
+
type?: 'button' | 'submit' | 'reset';
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Square icon-only button.
|
|
432
|
+
* `ariaLabel` is mandatory since there is no visible text.
|
|
433
|
+
*
|
|
434
|
+
* @example <IconButton icon={CloseIcon} ariaLabel={t('common.close')} />
|
|
435
|
+
* @example <IconButton icon={DeleteIcon} ariaLabel={t('actions.delete')} variant='outlined' color='error' />
|
|
436
|
+
* @example <IconButton icon={SaveIcon} ariaLabel={t('actions.save')} isLoading />
|
|
437
|
+
*/
|
|
438
|
+
declare const IconButton: FC<IconButtonProps>;
|
|
439
|
+
|
|
440
|
+
type IconProps = HTMLAttributes<HTMLDivElement> & {
|
|
441
|
+
ref?: Ref<HTMLDivElement>;
|
|
442
|
+
/** SVG component to render — import with `?react` (e.g. `import MyIcon from './my-icon.svg?react'`). */
|
|
443
|
+
icon: ComponentType<SVGProps<SVGSVGElement>>;
|
|
444
|
+
/** Size token mapped to `theme.fontSize`. Controls both width and height. @default 'md' */
|
|
445
|
+
size?: keyof Theme['fontSize'];
|
|
446
|
+
/** Sets CSS `stroke` + `color` on the SVG — use for standard line icons. */
|
|
447
|
+
strokeColor?: keyof Theme['colors'];
|
|
448
|
+
/** Sets CSS `fill` only on `fill="currentColor"` paths — leaves `fill="none"` untouched. */
|
|
449
|
+
fill?: keyof Theme['colors'];
|
|
450
|
+
/** Wrapper background color. */
|
|
451
|
+
backgroundColor?: keyof Theme['colors'];
|
|
452
|
+
/** Wrapper padding token. */
|
|
453
|
+
padding?: keyof Theme['spacing'];
|
|
454
|
+
/** Wrapper border-radius token. @default 'none' */
|
|
455
|
+
borderRadius?: keyof Theme['radius'];
|
|
456
|
+
};
|
|
457
|
+
type IconStyleParams = {
|
|
458
|
+
size?: keyof Theme['fontSize'];
|
|
459
|
+
strokeColor?: keyof Theme['colors'];
|
|
460
|
+
fill?: keyof Theme['colors'];
|
|
461
|
+
backgroundColor?: keyof Theme['colors'];
|
|
462
|
+
padding?: keyof Theme['spacing'];
|
|
463
|
+
borderRadius?: keyof Theme['radius'];
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Renders an SVG icon inside a theme-aware wrapper.
|
|
468
|
+
*
|
|
469
|
+
* @example <Icon icon={MenuIcon} size='md' strokeColor='primaryMain' />
|
|
470
|
+
* @example <Icon icon={CloseIcon} strokeColor='textInverse' backgroundColor='primaryMain' padding='sm' borderRadius='full' />
|
|
471
|
+
*/
|
|
380
472
|
declare const Icon: FC<IconProps>;
|
|
381
473
|
|
|
382
|
-
type
|
|
383
|
-
|
|
474
|
+
type TextVariants = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label' | 'strong';
|
|
475
|
+
type TextVariantStyle = {
|
|
476
|
+
/** HTML tag to render. */
|
|
477
|
+
tag: string;
|
|
478
|
+
/** CSS font-size value. */
|
|
479
|
+
fontSize: string;
|
|
480
|
+
/** CSS font-weight value. */
|
|
481
|
+
fontWeight: number;
|
|
482
|
+
/** CSS line-height value. */
|
|
483
|
+
lineHeight: number;
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
type TextProps = HTMLAttributes<HTMLElement> & {
|
|
487
|
+
ref?: Ref<HTMLElement>;
|
|
488
|
+
/** Semantic variant — determines the rendered HTML tag and baseline styles. @default 'span' */
|
|
384
489
|
variant?: TextVariants;
|
|
385
|
-
/**
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
|
|
389
|
-
/** Font
|
|
490
|
+
/** Override the rendered HTML tag while keeping variant styles (e.g. `variant="h1" as="h2"`). */
|
|
491
|
+
as?: string;
|
|
492
|
+
/** Theme color token — e.g. `'textPrimary'`, `'errorMain'`, `'linkHover'`. @default 'inherit' */
|
|
493
|
+
color?: keyof Theme['colors'];
|
|
494
|
+
/** Font size token — overrides the variant default. */
|
|
495
|
+
fontSize?: keyof Theme['fontSize'];
|
|
496
|
+
/** Font weight token — overrides the variant default. */
|
|
497
|
+
fontWeight?: keyof Theme['fontWeight'];
|
|
498
|
+
/** Line height token — overrides the variant default. */
|
|
499
|
+
lineHeight?: keyof Theme['lineHeight'];
|
|
500
|
+
/** CSS font-family value — use sparingly; prefer theme tokens. */
|
|
390
501
|
fontFamily?: string;
|
|
391
|
-
/** Maximum
|
|
502
|
+
/** Maximum lines before ellipsis truncation. Uses `nowrap` for 1, `-webkit-line-clamp` for n > 1. */
|
|
392
503
|
maxLines?: number;
|
|
393
|
-
/**
|
|
504
|
+
/** Truncate to one line with ellipsis. Shorthand for `maxLines={1}` — takes precedence. */
|
|
505
|
+
truncate?: boolean;
|
|
506
|
+
/** Underline text decoration. */
|
|
394
507
|
underline?: boolean;
|
|
395
|
-
/**
|
|
508
|
+
/** Line-through text decoration. */
|
|
509
|
+
strikethrough?: boolean;
|
|
510
|
+
/** Italic font style. */
|
|
511
|
+
italic?: boolean;
|
|
512
|
+
/** Prevent text wrapping (`white-space: nowrap`). Ignored when `truncate` or `maxLines` is set. */
|
|
513
|
+
noWrap?: boolean;
|
|
514
|
+
/** Preserve whitespace and line breaks (`white-space: pre-wrap`). */
|
|
396
515
|
preserveWhitespace?: boolean;
|
|
397
|
-
/**
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
516
|
+
/** Associates a `<label>` with an input — only meaningful when `variant` or `as` is `"label"`. */
|
|
517
|
+
htmlFor?: string;
|
|
518
|
+
/** Explicit CSS width applied as a style property (not an HTML attribute). */
|
|
519
|
+
width?: CSSProperties['width'];
|
|
520
|
+
/** CSS `text-transform` value. */
|
|
521
|
+
textTransform?: CSSProperties['textTransform'];
|
|
522
|
+
/** CSS `letter-spacing` value. */
|
|
523
|
+
letterSpacing?: CSSProperties['letterSpacing'];
|
|
524
|
+
/** CSS `text-align` value. */
|
|
525
|
+
textAlign?: CSSProperties['textAlign'];
|
|
526
|
+
};
|
|
527
|
+
type TextStyleParams = {
|
|
528
|
+
variant?: TextVariants;
|
|
529
|
+
color?: keyof Theme['colors'];
|
|
530
|
+
fontSize?: keyof Theme['fontSize'];
|
|
531
|
+
fontWeight?: keyof Theme['fontWeight'];
|
|
532
|
+
lineHeight?: keyof Theme['lineHeight'];
|
|
533
|
+
fontFamily?: string;
|
|
534
|
+
underline?: boolean;
|
|
535
|
+
strikethrough?: boolean;
|
|
536
|
+
italic?: boolean;
|
|
537
|
+
noWrap?: boolean;
|
|
538
|
+
preserveWhitespace?: boolean;
|
|
539
|
+
width?: CSSProperties['width'];
|
|
540
|
+
textTransform?: CSSProperties['textTransform'];
|
|
541
|
+
letterSpacing?: CSSProperties['letterSpacing'];
|
|
542
|
+
textAlign?: CSSProperties['textAlign'];
|
|
543
|
+
};
|
|
410
544
|
|
|
411
545
|
/**
|
|
412
|
-
*
|
|
546
|
+
* Renders a semantic HTML text element with theme-aware styling.
|
|
413
547
|
*
|
|
414
|
-
*
|
|
415
|
-
*
|
|
416
|
-
*
|
|
417
|
-
*
|
|
418
|
-
*
|
|
419
|
-
*
|
|
420
|
-
* **Features:**
|
|
421
|
-
* - Automatic HTML tag selection based on variant
|
|
422
|
-
* - Theme-aware colors
|
|
423
|
-
* - Text truncation with `maxLines`
|
|
424
|
-
* - Underline support
|
|
425
|
-
* - Preserve whitespace with `preserveWhitespace` prop
|
|
426
|
-
* - Bold text with **double asterisks** syntax
|
|
548
|
+
* @example <Text variant='h1' color='text.primary'>Title</Text>
|
|
549
|
+
* @example <Text variant='p' maxLines={2}>Long content…</Text>
|
|
550
|
+
* @example <Text variant='h1' as='h2'>h1 styles, h2 semantics</Text>
|
|
551
|
+
* @example <Text variant='label' htmlFor='email'>Email</Text>
|
|
552
|
+
* @example <Text>Hello **world**!</Text> // → Hello <strong>world</strong>!
|
|
427
553
|
*/
|
|
428
554
|
declare const Text: FC<TextProps>;
|
|
429
555
|
|
|
430
|
-
type
|
|
431
|
-
/**
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
|
|
439
|
-
/** Status size */
|
|
440
|
-
size?: StatusSize;
|
|
441
|
-
/** Gap between icon and text (theme spacing key) */
|
|
442
|
-
gap?: keyof ThemeContract['spacing'];
|
|
443
|
-
/** Border radius from theme */
|
|
444
|
-
radius?: keyof ThemeContract['radius'];
|
|
445
|
-
/** Disabled state */
|
|
446
|
-
disabled?: boolean;
|
|
447
|
-
/** Accessibility label for screen readers */
|
|
448
|
-
ariaLabel?: string;
|
|
449
|
-
/** ID of element that labels this status */
|
|
450
|
-
ariaLabelledBy?: string;
|
|
451
|
-
/** ID of element that describes this status */
|
|
452
|
-
ariaDescribedBy?: string;
|
|
453
|
-
/** ARIA role */
|
|
454
|
-
role?: string;
|
|
455
|
-
/** Tab index for keyboard navigation */
|
|
456
|
-
tabIndex?: number;
|
|
556
|
+
type FormProps = {
|
|
557
|
+
/** Form content — typically form field components. */
|
|
558
|
+
children: ReactNode;
|
|
559
|
+
/** Called when the form is submitted. Receives the native submit event. */
|
|
560
|
+
onSubmit: (event: FormEvent<HTMLFormElement>) => void;
|
|
561
|
+
/** Accessible name for the form. */
|
|
562
|
+
'aria-label'?: string;
|
|
563
|
+
/** Id of an element that labels the form. */
|
|
564
|
+
'aria-labelledby'?: string;
|
|
457
565
|
};
|
|
458
566
|
|
|
459
567
|
/**
|
|
460
|
-
*
|
|
461
|
-
*
|
|
462
|
-
* A compact element for displaying status, tags, or information.
|
|
568
|
+
* Thin wrapper around `<form>`. Prevents the default browser submit and
|
|
569
|
+
* delegates to the `onSubmit` callback.
|
|
463
570
|
*
|
|
464
|
-
*
|
|
465
|
-
*
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
* - `default`, `primary`, `success`, `warning`, `error`, `info`, `highlight`, `accent`, `new`, `rose`, `yellow`
|
|
571
|
+
* @example
|
|
572
|
+
* <Form onSubmit={handleSubmit}>
|
|
573
|
+
* <TextField label="Email" />
|
|
574
|
+
* <Button type="submit">Send</Button>
|
|
575
|
+
* </Form>
|
|
470
576
|
*/
|
|
471
|
-
declare const
|
|
577
|
+
declare const Form: FC<FormProps>;
|
|
472
578
|
|
|
473
|
-
type
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
*/
|
|
579
|
+
type SwitchSize = 'sm' | 'md' | 'lg';
|
|
580
|
+
type SwitchColor = 'primary' | 'success' | 'error' | 'warning' | 'info' | 'neutral';
|
|
581
|
+
|
|
582
|
+
type SwitchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> & {
|
|
583
|
+
ref?: Ref<HTMLInputElement>;
|
|
584
|
+
/** Visible label rendered next to the switch. */
|
|
480
585
|
label?: string;
|
|
481
|
-
/**
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
onClick?: (e: MouseEvent<HTMLDivElement> | KeyboardEvent<HTMLDivElement>) => void;
|
|
486
|
-
/** Size of the avatar */
|
|
487
|
-
size?: AvatarSize;
|
|
488
|
-
/** Text color for the label */
|
|
489
|
-
color?: string;
|
|
490
|
-
/** Border color */
|
|
491
|
-
borderColor?: string;
|
|
492
|
-
/** Background color */
|
|
493
|
-
backgroundColor?: string;
|
|
494
|
-
/**
|
|
495
|
-
* Accessibility label for screen readers.
|
|
496
|
-
* Defaults to `label` prop when not provided.
|
|
497
|
-
*/
|
|
498
|
-
ariaLabel?: string;
|
|
499
|
-
/** Tab index for keyboard navigation (auto-set when onClick is provided) */
|
|
500
|
-
tabIndex?: number;
|
|
586
|
+
/** Size variant. @default 'md' */
|
|
587
|
+
size?: SwitchSize;
|
|
588
|
+
/** Semantic color applied to the checked track. @default 'primary' */
|
|
589
|
+
color?: SwitchColor;
|
|
501
590
|
};
|
|
502
591
|
|
|
503
592
|
/**
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
* Displays a user's avatar with an optional image or fallback initials.
|
|
593
|
+
* Accessible toggle switch built on `<input type="checkbox" role="switch">`.
|
|
507
594
|
*
|
|
508
|
-
*
|
|
509
|
-
* - When `onClick` is provided, the avatar becomes a focusable button
|
|
510
|
-
* with keyboard support (Enter/Space activates the click)
|
|
511
|
-
* - Provide `label` or `ariaLabel` for screen readers
|
|
512
|
-
* - For decorative avatars, both can be omitted
|
|
513
|
-
*
|
|
514
|
-
* @example
|
|
515
|
-
* ```tsx
|
|
516
|
-
* // Static avatar with image
|
|
517
|
-
* <Avatar image="/user.jpg" label="Jane Doe" />
|
|
595
|
+
* Supports controlled (`checked` + `onChange`) and uncontrolled (`defaultChecked`) modes.
|
|
518
596
|
*
|
|
519
|
-
*
|
|
520
|
-
* <
|
|
521
|
-
* ```
|
|
597
|
+
* @example <Switch label='Enable notifications' defaultChecked />
|
|
598
|
+
* @example <Switch checked={isEnabled} onChange={(e) => setEnabled(e.target.checked)} color='success' size='lg' />
|
|
522
599
|
*/
|
|
523
|
-
declare const
|
|
600
|
+
declare const Switch: FC<SwitchProps>;
|
|
601
|
+
|
|
602
|
+
/** Size variant of the TextField. */
|
|
603
|
+
type TextFieldSize = 'sm' | 'md' | 'lg';
|
|
604
|
+
/** Semantic status of the TextField, affecting border and helper text color. */
|
|
605
|
+
type TextFieldStatus = 'default' | 'error' | 'success' | 'warning';
|
|
606
|
+
|
|
607
|
+
type TextFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
|
|
608
|
+
ref?: Ref<HTMLInputElement>;
|
|
609
|
+
/** Visible label rendered above the field. */
|
|
610
|
+
label?: string;
|
|
611
|
+
/** Helper text or validation message rendered below the field. */
|
|
612
|
+
helperText?: string;
|
|
613
|
+
/** Size variant controlling height, padding and font size. @default 'md' */
|
|
614
|
+
size?: TextFieldSize;
|
|
615
|
+
/** Semantic status affecting border and helper text color. @default 'default' */
|
|
616
|
+
status?: TextFieldStatus;
|
|
617
|
+
/** SVG icon component rendered on the left inside the field. */
|
|
618
|
+
startIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
619
|
+
/**
|
|
620
|
+
* Element rendered on the right inside the field (e.g. a clear button, unit label).
|
|
621
|
+
* When `type` is `'password'`, the visibility toggle is always appended after this.
|
|
622
|
+
*/
|
|
623
|
+
endAction?: ReactNode;
|
|
624
|
+
};
|
|
524
625
|
|
|
525
626
|
/**
|
|
526
|
-
*
|
|
627
|
+
* Full-featured text input with label, helper text, icons and end actions.
|
|
527
628
|
*
|
|
528
|
-
*
|
|
629
|
+
* Supports all native input types. When `type` is `'password'`, a visibility
|
|
630
|
+
* toggle is automatically injected as an end action.
|
|
631
|
+
*
|
|
632
|
+
* @example <TextField label="Email" placeholder="you@example.com" />
|
|
633
|
+
* @example <TextField label="Password" type="password" helperText="Min. 8 characters." />
|
|
634
|
+
* @example <TextField label="Name" status="error" helperText="This field is required." />
|
|
635
|
+
* @example <TextField label="Search" startIcon={SearchIcon} endAction={<ClearButton />} />
|
|
529
636
|
*/
|
|
530
|
-
declare const
|
|
637
|
+
declare const TextField: FC<TextFieldProps>;
|
|
531
638
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
639
|
+
/** An option in the Select dropdown. */
|
|
640
|
+
type SelectOption = {
|
|
641
|
+
/** The value submitted or returned in onChange. */
|
|
642
|
+
value: string;
|
|
643
|
+
/** Display label shown in the trigger and menu. */
|
|
644
|
+
label: string;
|
|
645
|
+
/** Optional icon rendered before the label in the menu item. */
|
|
646
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
647
|
+
/** Whether the option cannot be selected. */
|
|
648
|
+
disabled?: boolean;
|
|
649
|
+
/**
|
|
650
|
+
* Optional group key. Options sharing the same group key are visually grouped together.
|
|
651
|
+
* A MenuGroup with the group key as label is automatically created.
|
|
652
|
+
*/
|
|
653
|
+
group?: string;
|
|
539
654
|
};
|
|
540
655
|
|
|
541
|
-
type
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
656
|
+
type SelectProps = {
|
|
657
|
+
ref?: Ref<HTMLButtonElement>;
|
|
658
|
+
/** Currently selected value (controlled mode). */
|
|
659
|
+
value?: string;
|
|
660
|
+
/** Default value for uncontrolled mode. */
|
|
661
|
+
defaultValue?: string;
|
|
662
|
+
/** Called with the new value when the selection changes. */
|
|
663
|
+
onChange?: (value: string) => void;
|
|
664
|
+
/** List of options. */
|
|
665
|
+
options?: SelectOption[];
|
|
666
|
+
/** Label rendered above the trigger. */
|
|
667
|
+
label?: string;
|
|
668
|
+
/** Helper text or validation message rendered below the trigger. */
|
|
669
|
+
helperText?: string;
|
|
670
|
+
/** Placeholder shown when no option is selected. */
|
|
671
|
+
placeholder?: string;
|
|
672
|
+
/** Size variant. @default 'md' */
|
|
673
|
+
size?: TextFieldSize;
|
|
674
|
+
/** Semantic status affecting border and helper text color. @default 'default' */
|
|
675
|
+
status?: TextFieldStatus;
|
|
676
|
+
/** Whether the select is disabled. */
|
|
677
|
+
disabled?: boolean;
|
|
678
|
+
/** Whether the field is required. */
|
|
679
|
+
required?: boolean;
|
|
680
|
+
/** Fixed width for the select. Defaults to 100% of its container. */
|
|
681
|
+
width?: string | number;
|
|
682
|
+
/** HTML id for the trigger button. */
|
|
683
|
+
id?: string;
|
|
545
684
|
};
|
|
546
685
|
|
|
547
|
-
declare const
|
|
686
|
+
declare const Select: FC<SelectProps>;
|
|
548
687
|
|
|
549
|
-
type
|
|
550
|
-
/**
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
|
|
556
|
-
/** Click handler */
|
|
557
|
-
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
558
|
-
/** Visual variant of the button */
|
|
559
|
-
variant?: ButtonVariants;
|
|
560
|
-
/** Button type attribute */
|
|
561
|
-
type?: 'button' | 'submit';
|
|
562
|
-
/** Active/pressed state */
|
|
563
|
-
active?: boolean;
|
|
564
|
-
/** Disabled state */
|
|
565
|
-
disabled?: boolean;
|
|
566
|
-
/** Custom text color (overrides variant color) */
|
|
567
|
-
textColor?: keyof ThemeContract['colors'];
|
|
568
|
-
/** Custom backgroundColor (overrides variant backgroundColor) */
|
|
569
|
-
backgroundColor?: keyof ThemeContract['colors'];
|
|
570
|
-
/** Custom hover backgroundColor (overrides variant hover backgroundColor) */
|
|
571
|
-
hoverBackgroundColor?: keyof ThemeContract['colors'];
|
|
572
|
-
/** Custom active backgroundColor (overrides variant active backgroundColor) */
|
|
573
|
-
activeBackgroundColor?: keyof ThemeContract['colors'];
|
|
574
|
-
/** Size of the button */
|
|
575
|
-
size?: IconButtonSizes;
|
|
576
|
-
/** Accessibility label for screen readers */
|
|
577
|
-
ariaLabel?: string;
|
|
578
|
-
/** ID of element that labels this button */
|
|
579
|
-
ariaLabelledBy?: string;
|
|
580
|
-
/** ID of element that describes this button */
|
|
581
|
-
ariaDescribedBy?: string;
|
|
582
|
-
/** ARIA role */
|
|
583
|
-
role?: string;
|
|
584
|
-
/** Tab index for keyboard navigation */
|
|
585
|
-
tabIndex?: number;
|
|
586
|
-
/** Whether the button is in a pressed/active state (for toggle buttons) */
|
|
587
|
-
ariaPressed?: boolean;
|
|
588
|
-
/** Whether the button is in a loading/busy state */
|
|
589
|
-
ariaBusy?: boolean;
|
|
590
|
-
/** Whether the button controls an expandable section */
|
|
591
|
-
ariaExpanded?: boolean;
|
|
592
|
-
/** Whether the button has a popup (menu, dialog, etc.) */
|
|
593
|
-
ariaHasPopup?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
594
|
-
/** ID of the element controlled by this button */
|
|
595
|
-
ariaControls?: string;
|
|
688
|
+
type AlertProps = {
|
|
689
|
+
/** Visual style of the alert. @default 'default' */
|
|
690
|
+
variant?: AlertVariant;
|
|
691
|
+
/** Alert sub-components: Alert.Title and/or Alert.Body. */
|
|
692
|
+
children?: ReactNode;
|
|
693
|
+
/** Explicit width for the Alert. */
|
|
694
|
+
width?: CSSProperties['width'];
|
|
596
695
|
};
|
|
597
696
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
* - `contained`: Solid background button (default)
|
|
603
|
-
* - `outlined`: Border only button
|
|
604
|
-
* - `text`: Text only button without background
|
|
605
|
-
* - `destructive`: Danger/delete action button
|
|
606
|
-
*
|
|
607
|
-
* **Accessibility:**
|
|
608
|
-
* - Use `ariaLabel` when the button has no visible text or the label is unclear
|
|
609
|
-
* - Use `ariaPressed` for toggle buttons to indicate their state
|
|
610
|
-
* - Use `ariaBusy` when the button triggers an async action
|
|
611
|
-
* - Use `ariaExpanded` when the button controls a collapsible section
|
|
612
|
-
* - Use `ariaControls` to reference the controlled element
|
|
613
|
-
*/
|
|
614
|
-
declare const Button: FC<ButtonProps>;
|
|
697
|
+
type AlertTitleProps = {
|
|
698
|
+
/** Title text displayed next to the variant icon. */
|
|
699
|
+
children: ReactNode;
|
|
700
|
+
};
|
|
615
701
|
|
|
616
|
-
type
|
|
617
|
-
/**
|
|
618
|
-
|
|
619
|
-
/** Click handler */
|
|
620
|
-
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
621
|
-
/** Visual variant of the button */
|
|
622
|
-
variant?: IconButtonVariants;
|
|
623
|
-
/** Button type attribute */
|
|
624
|
-
type?: 'button' | 'submit';
|
|
625
|
-
/** Active/pressed state */
|
|
626
|
-
active?: boolean;
|
|
627
|
-
/** Disabled state */
|
|
628
|
-
disabled?: boolean;
|
|
629
|
-
/** Custom text/icon color (overrides variant color) */
|
|
630
|
-
textColor?: keyof ThemeContract['colors'];
|
|
631
|
-
/** Custom backgroundColor (overrides variant backgroundColor) */
|
|
632
|
-
backgroundColor?: keyof ThemeContract['colors'];
|
|
633
|
-
/** Custom hover backgroundColor (overrides variant hover backgroundColor) */
|
|
634
|
-
hoverBackgroundColor?: keyof ThemeContract['colors'];
|
|
635
|
-
/** Custom active backgroundColor (overrides variant active backgroundColor) */
|
|
636
|
-
activeBackgroundColor?: keyof ThemeContract['colors'];
|
|
637
|
-
/** Size of the icon button */
|
|
638
|
-
size?: IconButtonSizes;
|
|
639
|
-
/** Accessibility label for screen readers (strongly recommended for icon-only buttons) */
|
|
640
|
-
ariaLabel?: string;
|
|
641
|
-
/** ID of element that labels this button */
|
|
642
|
-
ariaLabelledBy?: string;
|
|
643
|
-
/** ID of element that describes this button */
|
|
644
|
-
ariaDescribedBy?: string;
|
|
645
|
-
/** ARIA role */
|
|
646
|
-
role?: string;
|
|
647
|
-
/** Tab index for keyboard navigation */
|
|
648
|
-
tabIndex?: number;
|
|
649
|
-
/** Whether the button is in a pressed/active state (for toggle buttons) */
|
|
650
|
-
ariaPressed?: boolean;
|
|
651
|
-
/** Whether the button is in a loading/busy state */
|
|
652
|
-
ariaBusy?: boolean;
|
|
653
|
-
/** Whether the button controls an expandable section */
|
|
654
|
-
ariaExpanded?: boolean;
|
|
655
|
-
/** Whether the button has a popup (menu, dialog, etc.) */
|
|
656
|
-
ariaHasPopup?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
657
|
-
/** ID of the element controlled by this button */
|
|
658
|
-
ariaControls?: string;
|
|
702
|
+
type AlertBodyProps = {
|
|
703
|
+
/** Alert message content. */
|
|
704
|
+
children: ReactNode;
|
|
659
705
|
};
|
|
660
706
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
* **⚠️ Accessibility:** Always provide an `ariaLabel` for icon-only buttons
|
|
667
|
-
* so screen readers can describe the action.
|
|
668
|
-
*
|
|
669
|
-
* @example
|
|
670
|
-
* ```tsx
|
|
671
|
-
* <IconButton icon={<CloseIcon />} ariaLabel="Close dialog" onClick={onClose} />
|
|
672
|
-
* ```
|
|
673
|
-
*/
|
|
674
|
-
declare const IconButton: FC<IconButtonProps>;
|
|
707
|
+
type AlertVariant = 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
708
|
+
type AlertComponent = FC<AlertProps> & {
|
|
709
|
+
Title: FC<AlertTitleProps>;
|
|
710
|
+
Body: FC<AlertBodyProps>;
|
|
711
|
+
};
|
|
675
712
|
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
/**
|
|
713
|
+
declare const Alert: AlertComponent;
|
|
714
|
+
|
|
715
|
+
type DialogProps = {
|
|
716
|
+
/** Whether the dialog is visible. */
|
|
717
|
+
open: boolean;
|
|
718
|
+
/** Called when the dialog should close (Escape key or close button). */
|
|
719
|
+
onClose: () => void;
|
|
720
|
+
/** Whether clicking the backdrop closes the dialog. @default false */
|
|
721
|
+
closeOnBackdropClick?: boolean;
|
|
722
|
+
/** Maximum width of the dialog panel. Accepts numbers (px) or any CSS width value. @default '80vw' */
|
|
723
|
+
maxWidth?: number | string;
|
|
724
|
+
/** Maximum height of the dialog panel before the body scrolls. @default '80vh' */
|
|
725
|
+
maxHeight?: string;
|
|
726
|
+
/** Minimum width of the dialog panel. Accepts numbers (px) or any CSS width value. */
|
|
727
|
+
minWidth?: number | string;
|
|
728
|
+
/** Minimum height of the dialog panel. Accepts numbers (px) or any CSS height value. */
|
|
729
|
+
minHeight?: number | string;
|
|
730
|
+
/** Whether the dialog takes the full viewport height on mobile (bottom-sheet variant). @default false */
|
|
731
|
+
fullscreen?: boolean;
|
|
732
|
+
/** Accessible label — use when Dialog.Header is not present. */
|
|
733
|
+
'aria-label'?: string;
|
|
734
|
+
/** Dialog content. Typically Dialog.Header + Dialog.Body. */
|
|
680
735
|
children: ReactNode;
|
|
681
|
-
/** Click handler */
|
|
682
|
-
onClick?: (e: MouseEvent<HTMLButtonElement>, value: string) => void;
|
|
683
|
-
/** Active/pressed state */
|
|
684
|
-
active?: boolean;
|
|
685
|
-
/** Disabled state */
|
|
686
|
-
disabled?: boolean;
|
|
687
|
-
/** Custom text/icon color when active (default: primary) */
|
|
688
|
-
activeTextColor?: keyof ThemeContract['colors'];
|
|
689
|
-
/** Custom text/icon color when inactive (default: textSecondary) */
|
|
690
|
-
inactiveTextColor?: keyof ThemeContract['colors'];
|
|
691
|
-
/** Custom text/icon color (overrides activeTextColor and inactiveTextColor) */
|
|
692
|
-
textColor?: keyof ThemeContract['colors'];
|
|
693
|
-
/** Custom backgroundColor (overrides variant backgroundColor) */
|
|
694
|
-
backgroundColor?: keyof ThemeContract['colors'];
|
|
695
|
-
/** Custom hover backgroundColor (overrides variant hover backgroundColor) */
|
|
696
|
-
hoverBackgroundColor?: keyof ThemeContract['colors'];
|
|
697
|
-
/** Custom active backgroundColor (overrides variant active backgroundColor) */
|
|
698
|
-
activeBackgroundColor?: keyof ThemeContract['colors'];
|
|
699
|
-
/** Size of the button */
|
|
700
|
-
size?: IconButtonSizes;
|
|
701
|
-
/** Accessibility label for screen readers */
|
|
702
|
-
ariaLabel?: string;
|
|
703
|
-
/** ID of element that labels this button */
|
|
704
|
-
ariaLabelledBy?: string;
|
|
705
|
-
/** ID of element that describes this button */
|
|
706
|
-
ariaDescribedBy?: string;
|
|
707
|
-
/** ARIA role */
|
|
708
|
-
role?: string;
|
|
709
|
-
/** Tab index for keyboard navigation */
|
|
710
|
-
tabIndex?: number;
|
|
711
736
|
};
|
|
712
737
|
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
*
|
|
720
|
-
* **Colors:**
|
|
721
|
-
* - Active: primary (default) - customizable via activeTextColor
|
|
722
|
-
* - Inactive: textSecondary (default) - customizable via inactiveTextColor
|
|
723
|
-
*/
|
|
724
|
-
declare const ButtonToggle: FC<ButtonToggleProps>;
|
|
738
|
+
type DialogHeaderProps = {
|
|
739
|
+
/** Dialog title displayed in the header. */
|
|
740
|
+
title: string;
|
|
741
|
+
/** Called when the close button is clicked. */
|
|
742
|
+
onClose: () => void;
|
|
743
|
+
};
|
|
725
744
|
|
|
726
|
-
type
|
|
727
|
-
/**
|
|
728
|
-
value?: string | null;
|
|
729
|
-
/** Change handler for value selection */
|
|
730
|
-
onChange?: (value: string | null) => void;
|
|
731
|
-
/** Children ButtonToggle components */
|
|
745
|
+
type DialogBodyProps = {
|
|
746
|
+
/** Body content of the dialog. */
|
|
732
747
|
children: ReactNode;
|
|
733
|
-
/** If true, only one button can be active at a time */
|
|
734
|
-
exclusive?: boolean;
|
|
735
|
-
/** If true, at least one button must always be active (clicking the active button won't deselect it) */
|
|
736
|
-
required?: boolean;
|
|
737
|
-
/** Size of all buttons in the group */
|
|
738
|
-
size?: IconButtonSizes;
|
|
739
|
-
/** Custom text/icon color when active (default: primary) - applied to all children */
|
|
740
|
-
activeTextColor?: keyof ThemeContract['colors'];
|
|
741
|
-
/** Custom text/icon color when inactive (default: textSecondary) - applied to all children */
|
|
742
|
-
inactiveTextColor?: keyof ThemeContract['colors'];
|
|
743
|
-
/** Accessibility label for the group */
|
|
744
|
-
ariaLabel?: string;
|
|
745
|
-
/** ARIA role for the group */
|
|
746
|
-
role?: string;
|
|
747
748
|
};
|
|
748
749
|
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
* Manages exclusive selection (only one button can be active at a time).
|
|
754
|
-
*
|
|
755
|
-
* **Default Colors:**
|
|
756
|
-
* - Active buttons: primary
|
|
757
|
-
* - Inactive buttons: textSecondary
|
|
758
|
-
*/
|
|
759
|
-
declare const ButtonToggleGroup: FC<ButtonToggleGroupProps>;
|
|
750
|
+
type DialogComponent = FC<DialogProps> & {
|
|
751
|
+
Header: FC<DialogHeaderProps>;
|
|
752
|
+
Body: FC<DialogBodyProps>;
|
|
753
|
+
};
|
|
760
754
|
|
|
761
|
-
|
|
762
|
-
|
|
755
|
+
declare const Dialog: DialogComponent;
|
|
756
|
+
|
|
757
|
+
type MenuProps = {
|
|
758
|
+
/** Whether the menu is visible. */
|
|
759
|
+
open: boolean;
|
|
760
|
+
/** Called when the menu should close (click outside or Escape key). */
|
|
761
|
+
onClose: () => void;
|
|
762
|
+
/** Reference element used to position the menu. */
|
|
763
|
+
anchorEl?: HTMLElement | null;
|
|
764
|
+
/** Minimum width override. Defaults to the anchor element's width. */
|
|
765
|
+
minWidth?: number | string;
|
|
766
|
+
/** Maximum height before scrolling. @default '20rem' */
|
|
767
|
+
maxHeight?: string;
|
|
768
|
+
/** ARIA id for the listbox panel. */
|
|
769
|
+
id?: string;
|
|
770
|
+
/** Menu content — MenuGroup and/or MenuItem. */
|
|
763
771
|
children: ReactNode;
|
|
764
|
-
/** Callback fired when the form is submitted (preventDefault is called automatically) */
|
|
765
|
-
onSubmit?: (e: FormEvent) => void;
|
|
766
|
-
/** Accessibility label for the form */
|
|
767
|
-
ariaLabel?: string;
|
|
768
772
|
};
|
|
769
773
|
|
|
770
|
-
declare const _default$3: react.NamedExoticComponent<FormProps>;
|
|
771
|
-
|
|
772
|
-
type InputProps = {
|
|
773
|
-
/** The value of the input */
|
|
774
|
-
value: string;
|
|
775
|
-
/** Callback fired when the value changes */
|
|
776
|
-
onChange: (value: string) => void;
|
|
777
|
-
/** Callback fired when the input receives focus */
|
|
778
|
-
onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
779
|
-
/** Callback fired when the input loses focus */
|
|
780
|
-
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
781
|
-
/** Callback fired when the input is clicked */
|
|
782
|
-
onClick?: (event: MouseEvent<HTMLInputElement>) => void;
|
|
783
|
-
/** Label displayed above the input */
|
|
784
|
-
label?: string;
|
|
785
|
-
/** Whether the field is mandatory (displays an asterisk next to the label) */
|
|
786
|
-
mandatory?: boolean;
|
|
787
|
-
/** Placeholder text */
|
|
788
|
-
placeholder?: string;
|
|
789
|
-
/** Whether the input is disabled */
|
|
790
|
-
disabled?: boolean;
|
|
791
|
-
/** Input type */
|
|
792
|
-
type?: 'text' | 'password' | 'email' | 'number';
|
|
793
|
-
/** Accessibility label (defaults to `label` if not provided) */
|
|
794
|
-
ariaLabel?: string;
|
|
795
|
-
/** Icon to display before the input */
|
|
796
|
-
startIcon?: ReactNode;
|
|
797
|
-
/** Icon to display after the input */
|
|
798
|
-
endIcon?: ReactNode;
|
|
799
|
-
/** Custom width for the input */
|
|
800
|
-
width?: CSSProperties['width'];
|
|
801
|
-
/**
|
|
802
|
-
* Error message to display below the input.
|
|
803
|
-
* When provided, `aria-invalid="true"` and `aria-errormessage` are set automatically.
|
|
804
|
-
*/
|
|
805
|
-
error?: string;
|
|
806
|
-
/** Unique HTML id for the input element (required when using `error`) */
|
|
807
|
-
id?: string;
|
|
808
|
-
};
|
|
809
|
-
|
|
810
|
-
declare const _default$2: react.MemoExoticComponent<react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>>;
|
|
811
|
-
|
|
812
|
-
type TextAreaProps = {
|
|
813
|
-
/** The value of the textarea */
|
|
814
|
-
value: string;
|
|
815
|
-
/** Callback fired when the value changes */
|
|
816
|
-
onChange: (value: string) => void;
|
|
817
|
-
/** Callback fired when the textarea receives focus */
|
|
818
|
-
onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
819
|
-
/** Callback fired when the textarea loses focus */
|
|
820
|
-
onBlur?: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
821
|
-
/** Label displayed above the textarea */
|
|
822
|
-
label?: string;
|
|
823
|
-
/** Whether the field is mandatory (displays an asterisk next to the label) */
|
|
824
|
-
mandatory?: boolean;
|
|
825
|
-
/** Placeholder text */
|
|
826
|
-
placeholder?: string;
|
|
827
|
-
/** Whether the textarea is disabled */
|
|
828
|
-
disabled?: boolean;
|
|
829
|
-
/** Accessibility label (defaults to `label` if not provided) */
|
|
830
|
-
ariaLabel?: string;
|
|
831
|
-
/** Custom width for the textarea */
|
|
832
|
-
width?: CSSProperties['width'];
|
|
833
|
-
/** Minimum number of visible text lines (auto-expands with content) */
|
|
834
|
-
minRows?: number;
|
|
835
|
-
/** Maximum number of visible text lines (adds scroll when exceeded) */
|
|
836
|
-
maxRows?: number;
|
|
837
|
-
/**
|
|
838
|
-
* Error message to display below the textarea.
|
|
839
|
-
* When provided, `aria-invalid="true"` and `aria-errormessage` are set automatically.
|
|
840
|
-
*/
|
|
841
|
-
error?: string;
|
|
842
|
-
/** Unique HTML id for the textarea element (required when using `error`) */
|
|
843
|
-
id?: string;
|
|
844
|
-
};
|
|
845
|
-
|
|
846
|
-
declare const _default$1: react.MemoExoticComponent<react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>>;
|
|
847
|
-
|
|
848
|
-
type SelectProps = {
|
|
849
|
-
/**
|
|
850
|
-
* The options to display in the select dropdown
|
|
851
|
-
*/
|
|
852
|
-
options: SelectOption[];
|
|
853
|
-
/**
|
|
854
|
-
* The currently selected value (null to show placeholder)
|
|
855
|
-
*/
|
|
856
|
-
value: string | number | null;
|
|
857
|
-
/**
|
|
858
|
-
* Callback when selection changes
|
|
859
|
-
*/
|
|
860
|
-
onChange: (value: string | number | null) => void;
|
|
861
|
-
/**
|
|
862
|
-
* Label displayed above the select
|
|
863
|
-
*/
|
|
864
|
-
label?: string;
|
|
865
|
-
/**
|
|
866
|
-
* Whether the field is mandatory (displays an asterisk next to the label)
|
|
867
|
-
*/
|
|
868
|
-
mandatory?: boolean;
|
|
869
|
-
/**
|
|
870
|
-
* Placeholder text when no option is selected
|
|
871
|
-
*/
|
|
872
|
-
placeholder?: string;
|
|
873
|
-
/**
|
|
874
|
-
* Whether the select is disabled
|
|
875
|
-
*/
|
|
876
|
-
disabled?: boolean;
|
|
877
|
-
/**
|
|
878
|
-
* Width of the select
|
|
879
|
-
*/
|
|
880
|
-
width?: string | number;
|
|
881
|
-
/**
|
|
882
|
-
* Error message to display below the select.
|
|
883
|
-
* When provided, `aria-invalid="true"` and `aria-errormessage` are set automatically.
|
|
884
|
-
*/
|
|
885
|
-
error?: string;
|
|
886
|
-
/**
|
|
887
|
-
* Unique HTML id for the select trigger (required when using `error`)
|
|
888
|
-
*/
|
|
889
|
-
id?: string;
|
|
890
|
-
/**
|
|
891
|
-
* Accessibility label for screen readers (defaults to `label`)
|
|
892
|
-
*/
|
|
893
|
-
ariaLabel?: string;
|
|
894
|
-
};
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* Select component that uses Menu for dropdown
|
|
898
|
-
*
|
|
899
|
-
* **Accessibility:**
|
|
900
|
-
* - Uses `role="combobox"` with `aria-expanded` and `aria-haspopup="listbox"`
|
|
901
|
-
* - Keyboard support: Enter/Space opens, Escape closes
|
|
902
|
-
* - When `error` is provided, `aria-invalid="true"` and `aria-errormessage` are set
|
|
903
|
-
* - `mandatory` adds `aria-required="true"`
|
|
904
|
-
*
|
|
905
|
-
* @example
|
|
906
|
-
* ```tsx
|
|
907
|
-
* <Select
|
|
908
|
-
* options={[{ value: 'fr', label: 'France' }]}
|
|
909
|
-
* value={country}
|
|
910
|
-
* onChange={setCountry}
|
|
911
|
-
* label="Country"
|
|
912
|
-
* mandatory
|
|
913
|
-
* error={countryError}
|
|
914
|
-
* />
|
|
915
|
-
* ```
|
|
916
|
-
*/
|
|
917
|
-
declare const Select: FC<SelectProps>;
|
|
918
|
-
|
|
919
|
-
type DateFormat = 'dd/MM/yyyy' | 'MM/dd/yyyy' | 'yyyy-MM-dd';
|
|
920
|
-
type DatePickerProps = {
|
|
921
|
-
/** The selected date */
|
|
922
|
-
value?: Date | null;
|
|
923
|
-
/** Callback fired when the date changes */
|
|
924
|
-
onChange: (date: Date | null) => void;
|
|
925
|
-
/** Label displayed above the date picker */
|
|
926
|
-
label?: string;
|
|
927
|
-
/** Whether the field is mandatory (displays an asterisk next to the label) */
|
|
928
|
-
mandatory?: boolean;
|
|
929
|
-
/** Placeholder text */
|
|
930
|
-
placeholder?: string;
|
|
931
|
-
/** Whether the date picker is disabled */
|
|
932
|
-
disabled?: boolean;
|
|
933
|
-
/** Custom width for the date picker */
|
|
934
|
-
width?: string | number;
|
|
935
|
-
/** Minimum selectable date */
|
|
936
|
-
minDate?: Date | null;
|
|
937
|
-
/** Maximum selectable date */
|
|
938
|
-
maxDate?: Date | null;
|
|
939
|
-
/** Date format for display and input (default: 'dd/MM/yyyy') */
|
|
940
|
-
dateFormat?: DateFormat;
|
|
941
|
-
/** Locale for month/year display (default: 'fr-FR') */
|
|
942
|
-
locale?: string;
|
|
943
|
-
};
|
|
944
|
-
|
|
945
|
-
declare const _default: react.NamedExoticComponent<DatePickerProps>;
|
|
946
|
-
|
|
947
|
-
/**
|
|
948
|
-
* SVG icon component type (compatible with Aurora-DS Icon)
|
|
949
|
-
*/
|
|
950
|
-
type SvgIconComponent = ComponentType<SVGProps<SVGSVGElement>>;
|
|
951
|
-
type FilePickerProps = {
|
|
952
|
-
/**
|
|
953
|
-
* Label for the input
|
|
954
|
-
*/
|
|
955
|
-
label?: string;
|
|
956
|
-
/**
|
|
957
|
-
* Accepted file types (MIME types)
|
|
958
|
-
* @example 'image/jpeg,image/png,image/webp'
|
|
959
|
-
* @example 'application/pdf'
|
|
960
|
-
* @example '.jpg,.png,.pdf'
|
|
961
|
-
*/
|
|
962
|
-
accept?: string;
|
|
963
|
-
/**
|
|
964
|
-
* Preview content to display when a file is selected
|
|
965
|
-
* Can be a URL string for images or a ReactNode for custom preview
|
|
966
|
-
*/
|
|
967
|
-
preview?: string | ReactNode | null;
|
|
968
|
-
/**
|
|
969
|
-
* Whether the preview is an image URL
|
|
970
|
-
* @default true when preview is a string
|
|
971
|
-
*/
|
|
972
|
-
previewIsImage?: boolean;
|
|
973
|
-
/**
|
|
974
|
-
* Alt text for image preview
|
|
975
|
-
*/
|
|
976
|
-
previewAlt?: string;
|
|
977
|
-
/**
|
|
978
|
-
* Error message to display
|
|
979
|
-
*/
|
|
980
|
-
error?: string | null;
|
|
981
|
-
/**
|
|
982
|
-
* Callback when a file is selected
|
|
983
|
-
*/
|
|
984
|
-
onSelect: (file: File | null) => void;
|
|
985
|
-
/**
|
|
986
|
-
* Callback when the file is cleared
|
|
987
|
-
*/
|
|
988
|
-
onClear: () => void;
|
|
989
|
-
/**
|
|
990
|
-
* Whether the input is disabled
|
|
991
|
-
*/
|
|
992
|
-
disabled?: boolean;
|
|
993
|
-
/**
|
|
994
|
-
* Placeholder text shown in the dropzone
|
|
995
|
-
*/
|
|
996
|
-
placeholder?: string;
|
|
997
|
-
/**
|
|
998
|
-
* Hint text shown below the placeholder (e.g., accepted formats)
|
|
999
|
-
*/
|
|
1000
|
-
hint?: string;
|
|
1001
|
-
/**
|
|
1002
|
-
* Icon component to display in the dropzone
|
|
1003
|
-
* Should be an SVG component (e.g., from @resources/Icons)
|
|
1004
|
-
*/
|
|
1005
|
-
icon?: SvgIconComponent;
|
|
1006
|
-
/**
|
|
1007
|
-
* Icon component to display on the clear button
|
|
1008
|
-
* Should be an SVG component (e.g., from @resources/Icons)
|
|
1009
|
-
*/
|
|
1010
|
-
clearIcon?: SvgIconComponent;
|
|
1011
|
-
/**
|
|
1012
|
-
* Aria label for the clear button
|
|
1013
|
-
*/
|
|
1014
|
-
clearAriaLabel?: string;
|
|
1015
|
-
/**
|
|
1016
|
-
* Width of the FilePicker container
|
|
1017
|
-
* @example '400px'
|
|
1018
|
-
* @example '100%'
|
|
1019
|
-
*/
|
|
1020
|
-
width?: CSSProperties['width'];
|
|
1021
|
-
/**
|
|
1022
|
-
* Height of the dropzone (when no preview)
|
|
1023
|
-
* @example '200px'
|
|
1024
|
-
* @default '120px'
|
|
1025
|
-
*/
|
|
1026
|
-
dropzoneHeight?: CSSProperties['height'];
|
|
1027
|
-
/**
|
|
1028
|
-
* Max height of the preview image
|
|
1029
|
-
* @example '300px'
|
|
1030
|
-
* @default '200px'
|
|
1031
|
-
*/
|
|
1032
|
-
previewMaxHeight?: CSSProperties['maxHeight'];
|
|
1033
|
-
/**
|
|
1034
|
-
* Max width of the preview image
|
|
1035
|
-
* @example '400px'
|
|
1036
|
-
* @default '100%'
|
|
1037
|
-
*/
|
|
1038
|
-
previewMaxWidth?: CSSProperties['maxWidth'];
|
|
1039
|
-
/**
|
|
1040
|
-
* Object fit for the preview image
|
|
1041
|
-
* @default 'cover'
|
|
1042
|
-
*/
|
|
1043
|
-
previewObjectFit?: CSSProperties['objectFit'];
|
|
1044
|
-
};
|
|
1045
|
-
|
|
1046
|
-
/**
|
|
1047
|
-
* Generic file picker component with drag-and-drop style interface.
|
|
1048
|
-
* Supports custom preview, icons, and styling for use in external libraries.
|
|
1049
|
-
*
|
|
1050
|
-
* @example
|
|
1051
|
-
* ```tsx
|
|
1052
|
-
* // Basic usage with image
|
|
1053
|
-
* <FilePicker
|
|
1054
|
-
* label="Upload Image"
|
|
1055
|
-
* accept="image/*"
|
|
1056
|
-
* preview={imagePreview}
|
|
1057
|
-
* placeholder="Click to upload"
|
|
1058
|
-
* hint="JPEG, PNG or WebP"
|
|
1059
|
-
* icon={PlusIcon}
|
|
1060
|
-
* clearIcon={TrashIcon}
|
|
1061
|
-
* onSelect={handleSelect}
|
|
1062
|
-
* onClear={handleClear}
|
|
1063
|
-
* />
|
|
1064
|
-
* ```
|
|
1065
|
-
*/
|
|
1066
|
-
declare const FilePicker: FC<FilePickerProps>;
|
|
1067
|
-
|
|
1068
|
-
type ImagePickerProps = {
|
|
1069
|
-
/**
|
|
1070
|
-
* Label for the input
|
|
1071
|
-
*/
|
|
1072
|
-
label?: string;
|
|
1073
|
-
/**
|
|
1074
|
-
* Preview URL of the selected image
|
|
1075
|
-
*/
|
|
1076
|
-
preview: string | null;
|
|
1077
|
-
/**
|
|
1078
|
-
* Error message to display
|
|
1079
|
-
*/
|
|
1080
|
-
error?: string | null;
|
|
1081
|
-
/**
|
|
1082
|
-
* Callback when a file is selected
|
|
1083
|
-
*/
|
|
1084
|
-
onSelect: (file: File | null) => void;
|
|
1085
|
-
/**
|
|
1086
|
-
* Callback when the image is cleared
|
|
1087
|
-
*/
|
|
1088
|
-
onClear: () => void;
|
|
1089
|
-
/**
|
|
1090
|
-
* Whether the input is disabled
|
|
1091
|
-
*/
|
|
1092
|
-
disabled?: boolean;
|
|
1093
|
-
/**
|
|
1094
|
-
* Placeholder text shown in the dropzone
|
|
1095
|
-
* @default 'Click to upload an image'
|
|
1096
|
-
*/
|
|
1097
|
-
placeholder?: string;
|
|
1098
|
-
/**
|
|
1099
|
-
* Hint text shown below the placeholder
|
|
1100
|
-
* @default 'JPEG, PNG or WebP'
|
|
1101
|
-
*/
|
|
1102
|
-
hint?: string;
|
|
1103
|
-
/**
|
|
1104
|
-
* Alt text for image preview
|
|
1105
|
-
* @default 'Image preview'
|
|
1106
|
-
*/
|
|
1107
|
-
previewAlt?: string;
|
|
1108
|
-
/**
|
|
1109
|
-
* Aria label for the clear button
|
|
1110
|
-
* @default 'Remove image'
|
|
1111
|
-
*/
|
|
1112
|
-
clearAriaLabel?: string;
|
|
1113
|
-
/**
|
|
1114
|
-
* Width of the ImagePicker container
|
|
1115
|
-
* @example '400px'
|
|
1116
|
-
* @example '100%'
|
|
1117
|
-
*/
|
|
1118
|
-
width?: CSSProperties['width'];
|
|
1119
|
-
/**
|
|
1120
|
-
* Height of the dropzone (when no preview)
|
|
1121
|
-
* @example '200px'
|
|
1122
|
-
* @default '120px'
|
|
1123
|
-
*/
|
|
1124
|
-
dropzoneHeight?: CSSProperties['height'];
|
|
1125
|
-
/**
|
|
1126
|
-
* Max height of the preview image
|
|
1127
|
-
* @example '300px'
|
|
1128
|
-
* @default '200px'
|
|
1129
|
-
*/
|
|
1130
|
-
previewMaxHeight?: CSSProperties['maxHeight'];
|
|
1131
|
-
/**
|
|
1132
|
-
* Max width of the preview image
|
|
1133
|
-
* @example '400px'
|
|
1134
|
-
* @default '100%'
|
|
1135
|
-
*/
|
|
1136
|
-
previewMaxWidth?: CSSProperties['maxWidth'];
|
|
1137
|
-
/**
|
|
1138
|
-
* Object fit for the preview image
|
|
1139
|
-
* @default 'cover'
|
|
1140
|
-
*/
|
|
1141
|
-
previewObjectFit?: CSSProperties['objectFit'];
|
|
1142
|
-
};
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* Image picker component built on top of the generic FilePicker.
|
|
1146
|
-
* Pre-configured for image uploads with JPEG, PNG, and WebP support.
|
|
1147
|
-
*
|
|
1148
|
-
* @example
|
|
1149
|
-
* ```tsx
|
|
1150
|
-
* <ImagePicker
|
|
1151
|
-
* label="Profile Picture"
|
|
1152
|
-
* preview={imageUrl}
|
|
1153
|
-
* onSelect={handleImageSelect}
|
|
1154
|
-
* onClear={handleImageClear}
|
|
1155
|
-
* />
|
|
1156
|
-
* ```
|
|
1157
|
-
*/
|
|
1158
|
-
declare const ImagePicker: FC<ImagePickerProps>;
|
|
1159
|
-
|
|
1160
|
-
type BoxProps = {
|
|
1161
|
-
/** Box children elements */
|
|
1162
|
-
children?: ReactNode;
|
|
1163
|
-
/** Width of the box */
|
|
1164
|
-
width?: CSSProperties['width'];
|
|
1165
|
-
/** Height of the box */
|
|
1166
|
-
height?: CSSProperties['height'];
|
|
1167
|
-
/** Minimum width */
|
|
1168
|
-
minWidth?: CSSProperties['minWidth'];
|
|
1169
|
-
/** Minimum height */
|
|
1170
|
-
minHeight?: CSSProperties['minHeight'];
|
|
1171
|
-
/** Maximum width */
|
|
1172
|
-
maxWidth?: CSSProperties['maxWidth'];
|
|
1173
|
-
/** Maximum height */
|
|
1174
|
-
maxHeight?: CSSProperties['maxHeight'];
|
|
1175
|
-
/** Padding inside the box (theme spacing key) */
|
|
1176
|
-
padding?: keyof ThemeContract['spacing'];
|
|
1177
|
-
/** Margin around the box (theme spacing key) */
|
|
1178
|
-
margin?: keyof ThemeContract['spacing'];
|
|
1179
|
-
/** Background color of the box */
|
|
1180
|
-
backgroundColor?: keyof ThemeContract['colors'];
|
|
1181
|
-
/** Border radius of the box */
|
|
1182
|
-
radius?: keyof ThemeContract['radius'];
|
|
1183
|
-
/** Display type */
|
|
1184
|
-
display?: CSSProperties['display'];
|
|
1185
|
-
/** Position type */
|
|
1186
|
-
position?: CSSProperties['position'];
|
|
1187
|
-
/** Top position */
|
|
1188
|
-
top?: CSSProperties['top'];
|
|
1189
|
-
/** Right position */
|
|
1190
|
-
right?: CSSProperties['right'];
|
|
1191
|
-
/** Bottom position */
|
|
1192
|
-
bottom?: CSSProperties['bottom'];
|
|
1193
|
-
/** Left position */
|
|
1194
|
-
left?: CSSProperties['left'];
|
|
1195
|
-
/** Overflow behavior */
|
|
1196
|
-
overflow?: CSSProperties['overflow'];
|
|
1197
|
-
/** Overflow X behavior */
|
|
1198
|
-
overflowX?: CSSProperties['overflowX'];
|
|
1199
|
-
/** Overflow Y behavior */
|
|
1200
|
-
overflowY?: CSSProperties['overflowY'];
|
|
1201
|
-
/** Border color */
|
|
1202
|
-
borderColor?: keyof ThemeContract['colors'];
|
|
1203
|
-
/** Border width */
|
|
1204
|
-
borderWidth?: string;
|
|
1205
|
-
/** Flex direction (when display is flex) */
|
|
1206
|
-
flexDirection?: CSSProperties['flexDirection'];
|
|
1207
|
-
/** Align items (when display is flex) */
|
|
1208
|
-
alignItems?: CSSProperties['alignItems'];
|
|
1209
|
-
/** Justify content (when display is flex) */
|
|
1210
|
-
justifyContent?: CSSProperties['justifyContent'];
|
|
1211
|
-
/** Gap between children (theme spacing key) */
|
|
1212
|
-
gap?: keyof ThemeContract['spacing'];
|
|
1213
|
-
/** Flex wrap */
|
|
1214
|
-
flexWrap?: CSSProperties['flexWrap'];
|
|
1215
|
-
/** Flex grow */
|
|
1216
|
-
flexGrow?: CSSProperties['flexGrow'];
|
|
1217
|
-
/** Flex shrink */
|
|
1218
|
-
flexShrink?: CSSProperties['flexShrink'];
|
|
1219
|
-
/** Flex basis */
|
|
1220
|
-
flexBasis?: CSSProperties['flexBasis'];
|
|
1221
|
-
/** Z-index */
|
|
1222
|
-
zIndex?: CSSProperties['zIndex'];
|
|
1223
|
-
/** Opacity */
|
|
1224
|
-
opacity?: CSSProperties['opacity'];
|
|
1225
|
-
/** Cursor */
|
|
1226
|
-
cursor?: CSSProperties['cursor'];
|
|
1227
|
-
/** Box shadow */
|
|
1228
|
-
shadow?: keyof ThemeContract['shadows'];
|
|
1229
|
-
/** Accessibility label for screen readers */
|
|
1230
|
-
ariaLabel?: string;
|
|
1231
|
-
/** ID of element that labels this box */
|
|
1232
|
-
ariaLabelledBy?: string;
|
|
1233
|
-
/** ID of element that describes this box */
|
|
1234
|
-
ariaDescribedBy?: string;
|
|
1235
|
-
/** ARIA role */
|
|
1236
|
-
role?: string;
|
|
1237
|
-
/** Tab index for keyboard navigation */
|
|
1238
|
-
tabIndex?: number;
|
|
1239
|
-
/** HTML id attribute */
|
|
1240
|
-
id?: string;
|
|
1241
|
-
/** onClick handler */
|
|
1242
|
-
onClick?: () => void;
|
|
1243
|
-
/** onMouseEnter handler */
|
|
1244
|
-
onMouseEnter?: () => void;
|
|
1245
|
-
/** onMouseLeave handler */
|
|
1246
|
-
onMouseLeave?: () => void;
|
|
1247
|
-
/** Drag over event handler */
|
|
1248
|
-
onDragOver?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1249
|
-
/** Drag leave event handler */
|
|
1250
|
-
onDragLeave?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1251
|
-
/** Drop event handler */
|
|
1252
|
-
onDrop?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1253
|
-
/** Drag start event handler */
|
|
1254
|
-
onDragStart?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1255
|
-
/** Drag end event handler */
|
|
1256
|
-
onDragEnd?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1257
|
-
/** Drag enter event handler */
|
|
1258
|
-
onDragEnter?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1259
|
-
/** Whether the element is draggable */
|
|
1260
|
-
draggable?: boolean;
|
|
1261
|
-
};
|
|
1262
|
-
|
|
1263
|
-
/**
|
|
1264
|
-
* Box component
|
|
1265
|
-
*
|
|
1266
|
-
* A versatile container component that acts as a flexible div with extensive styling props.
|
|
1267
|
-
* Perfect for layout composition, spacing control, and creating custom containers.
|
|
1268
|
-
*
|
|
1269
|
-
* **Common use cases:**
|
|
1270
|
-
* - Layout containers with specific dimensions
|
|
1271
|
-
* - Spacing and positioning elements
|
|
1272
|
-
* - Creating flexible layouts with flexbox
|
|
1273
|
-
* - Wrapping content with background colors or borders
|
|
1274
|
-
*
|
|
1275
|
-
* @example
|
|
1276
|
-
* ```tsx
|
|
1277
|
-
* <Box width="300px" height="200px" padding="md" backgroundColor="surface">
|
|
1278
|
-
* Content here
|
|
1279
|
-
* </Box>
|
|
1280
|
-
* ```
|
|
1281
|
-
*/
|
|
1282
|
-
declare const Box: FC<BoxProps>;
|
|
1283
|
-
|
|
1284
|
-
type StackProps = {
|
|
1285
|
-
/** Stack children elements */
|
|
1286
|
-
children: ReactNode;
|
|
1287
|
-
/** Flex direction of the stack */
|
|
1288
|
-
direction?: CSSProperties['flexDirection'];
|
|
1289
|
-
/** Gap between children (theme spacing or CSS value) */
|
|
1290
|
-
gap?: keyof ThemeContract['spacing'];
|
|
1291
|
-
/** Width of the stack container */
|
|
1292
|
-
width?: CSSProperties['width'];
|
|
1293
|
-
/** Height of the stack container */
|
|
1294
|
-
height?: CSSProperties['height'];
|
|
1295
|
-
/** Alignment of items on the cross axis */
|
|
1296
|
-
align?: CSSProperties['alignItems'];
|
|
1297
|
-
/** Justification of items on the main axis */
|
|
1298
|
-
justify?: CSSProperties['justifyContent'];
|
|
1299
|
-
/** Whether items should wrap */
|
|
1300
|
-
wrap?: CSSProperties['flexWrap'];
|
|
1301
|
-
/** Padding inside the stack */
|
|
1302
|
-
padding?: keyof ThemeContract['spacing'];
|
|
1303
|
-
/** Accessibility label for screen readers */
|
|
1304
|
-
ariaLabel?: string;
|
|
1305
|
-
/** ID of element that labels this stack */
|
|
1306
|
-
ariaLabelledBy?: string;
|
|
1307
|
-
/** ID of element that describes this stack */
|
|
1308
|
-
ariaDescribedBy?: string;
|
|
1309
|
-
/** ARIA role */
|
|
1310
|
-
role?: string;
|
|
1311
|
-
/** Tab index for keyboard navigation */
|
|
1312
|
-
tabIndex?: number;
|
|
1313
|
-
};
|
|
1314
|
-
|
|
1315
|
-
/**
|
|
1316
|
-
* Stack component
|
|
1317
|
-
*
|
|
1318
|
-
* A flexbox container for laying out children in a row or column.
|
|
1319
|
-
*
|
|
1320
|
-
* **Direction:**
|
|
1321
|
-
* - `row`: Horizontal layout (default)
|
|
1322
|
-
* - `column`: Vertical layout
|
|
1323
|
-
*/
|
|
1324
|
-
declare const Stack: FC<StackProps>;
|
|
1325
|
-
|
|
1326
|
-
type CardProps = {
|
|
1327
|
-
/** Card children elements */
|
|
1328
|
-
children: ReactNode;
|
|
1329
|
-
/** Flex direction of the card content */
|
|
1330
|
-
direction?: CSSProperties['flexDirection'];
|
|
1331
|
-
/** Padding inside the card (theme spacing key) */
|
|
1332
|
-
padding?: keyof ThemeContract['spacing'];
|
|
1333
|
-
/** Width of the card */
|
|
1334
|
-
width?: CSSProperties['width'];
|
|
1335
|
-
/** Height of the card */
|
|
1336
|
-
height?: CSSProperties['height'];
|
|
1337
|
-
/** Maximum height of the card */
|
|
1338
|
-
maxHeight?: CSSProperties['maxHeight'];
|
|
1339
|
-
/** Gap between children (theme spacing key) */
|
|
1340
|
-
gap?: keyof ThemeContract['spacing'];
|
|
1341
|
-
/** Border radius of the card */
|
|
1342
|
-
radius?: keyof ThemeContract['radius'];
|
|
1343
|
-
/** Shadow depth of the card */
|
|
1344
|
-
shadow?: keyof ThemeContract['shadows'];
|
|
1345
|
-
/** Alignment of items on the cross axis */
|
|
1346
|
-
align?: CSSProperties['alignItems'];
|
|
1347
|
-
/** Justification of items on the main axis */
|
|
1348
|
-
justify?: CSSProperties['justifyContent'];
|
|
1349
|
-
/** Background color of the card */
|
|
1350
|
-
backgroundColor?: keyof ThemeContract['colors'];
|
|
1351
|
-
/** Border color of the card */
|
|
1352
|
-
borderColor?: keyof ThemeContract['colors'];
|
|
1353
|
-
/** Accessibility label for screen readers */
|
|
1354
|
-
ariaLabel?: string;
|
|
1355
|
-
/** ID of element that labels this card */
|
|
1356
|
-
ariaLabelledBy?: string;
|
|
1357
|
-
/** ID of element that describes this card */
|
|
1358
|
-
ariaDescribedBy?: string;
|
|
1359
|
-
/** ARIA role */
|
|
1360
|
-
role?: string;
|
|
1361
|
-
/** Tab index for keyboard navigation */
|
|
1362
|
-
tabIndex?: number;
|
|
1363
|
-
/** Drag over event handler */
|
|
1364
|
-
onDragOver?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1365
|
-
/** Drag leave event handler */
|
|
1366
|
-
onDragLeave?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1367
|
-
/** Drop event handler */
|
|
1368
|
-
onDrop?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1369
|
-
/** Drag start event handler */
|
|
1370
|
-
onDragStart?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1371
|
-
/** Drag end event handler */
|
|
1372
|
-
onDragEnd?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1373
|
-
/** Drag enter event handler */
|
|
1374
|
-
onDragEnter?: (event: DragEvent<HTMLDivElement>) => void;
|
|
1375
|
-
/** Whether the element is draggable */
|
|
1376
|
-
draggable?: boolean;
|
|
1377
|
-
};
|
|
1378
|
-
|
|
1379
|
-
/**
|
|
1380
|
-
* Card component
|
|
1381
|
-
*
|
|
1382
|
-
* A container component with a background, border radius, and optional shadow.
|
|
1383
|
-
* Uses a Stack layout internally for organizing children.
|
|
1384
|
-
*
|
|
1385
|
-
* **Direction:**
|
|
1386
|
-
* - `column`: Vertical layout (default)
|
|
1387
|
-
* - `row`: Horizontal layout
|
|
1388
|
-
*/
|
|
1389
|
-
declare const Card: FC<CardProps>;
|
|
1390
|
-
|
|
1391
|
-
type GridProps = {
|
|
1392
|
-
/** Grid children elements */
|
|
1393
|
-
children: ReactNode;
|
|
1394
|
-
/** Number of columns. Acts as max columns when minChildWidth is set for responsive behavior. */
|
|
1395
|
-
columns?: number;
|
|
1396
|
-
/** Number of rows. */
|
|
1397
|
-
rows?: number;
|
|
1398
|
-
/** Gap between columns (theme spacing key) */
|
|
1399
|
-
columnGap?: keyof ThemeContract['spacing'];
|
|
1400
|
-
/** Gap between rows (theme spacing key) */
|
|
1401
|
-
rowGap?: keyof ThemeContract['spacing'];
|
|
1402
|
-
/** Width of the grid container */
|
|
1403
|
-
width?: CSSProperties['width'];
|
|
1404
|
-
/** Height of the grid container */
|
|
1405
|
-
height?: CSSProperties['height'];
|
|
1406
|
-
/** Minimum height of the grid container */
|
|
1407
|
-
minHeight?: CSSProperties['minHeight'];
|
|
1408
|
-
/** Alignment of items within their grid area (cross axis) */
|
|
1409
|
-
alignItems?: CSSProperties['alignItems'];
|
|
1410
|
-
/** Justification of items within their grid area (main axis) */
|
|
1411
|
-
justifyItems?: CSSProperties['justifyItems'];
|
|
1412
|
-
/** Alignment of the entire grid within its container (cross axis) */
|
|
1413
|
-
alignContent?: CSSProperties['alignContent'];
|
|
1414
|
-
/** Justification of the entire grid within its container (main axis) */
|
|
1415
|
-
justifyContent?: CSSProperties['justifyContent'];
|
|
1416
|
-
/** Padding inside the grid */
|
|
1417
|
-
padding?: keyof ThemeContract['spacing'];
|
|
1418
|
-
/** Minimum width for each grid child. Enables responsive auto-fill behavior. */
|
|
1419
|
-
minChildWidth?: CSSProperties['width'];
|
|
1420
|
-
/** Accessibility label for screen readers */
|
|
1421
|
-
ariaLabel?: string;
|
|
1422
|
-
/** ID of element that labels this grid */
|
|
1423
|
-
ariaLabelledBy?: string;
|
|
1424
|
-
/** ID of element that describes this grid */
|
|
1425
|
-
ariaDescribedBy?: string;
|
|
1426
|
-
/** ARIA role */
|
|
1427
|
-
role?: string;
|
|
1428
|
-
/** Tab index for keyboard navigation */
|
|
1429
|
-
tabIndex?: number;
|
|
1430
|
-
};
|
|
1431
|
-
|
|
1432
|
-
/**
|
|
1433
|
-
* Grid component
|
|
1434
|
-
*
|
|
1435
|
-
* A CSS Grid container for laying out children in a two-dimensional grid.
|
|
1436
|
-
*
|
|
1437
|
-
* **Usage:**
|
|
1438
|
-
* - Use `columns` to define the number of columns or a custom grid-template-columns value
|
|
1439
|
-
* - Use `rows` to define the number of rows or a custom grid-template-rows value
|
|
1440
|
-
* - Use `minChildWidth` for responsive auto-fill grids
|
|
1441
|
-
* - Combine `columns` + `minChildWidth` for responsive grid with max columns limit
|
|
1442
|
-
*/
|
|
1443
|
-
declare const Grid: FC<GridProps>;
|
|
1444
|
-
|
|
1445
|
-
type SeparatorProps = {
|
|
1446
|
-
/** Direction of the separator */
|
|
1447
|
-
direction?: 'horizontal' | 'vertical';
|
|
1448
|
-
/** Custom width (overrides default) */
|
|
1449
|
-
width?: string | number;
|
|
1450
|
-
/** Custom height (overrides default) */
|
|
1451
|
-
height?: string | number;
|
|
1452
|
-
/** Custom color (overrides default) */
|
|
1453
|
-
color?: keyof ThemeContract['colors'];
|
|
1454
|
-
};
|
|
1455
|
-
|
|
1456
|
-
/**
|
|
1457
|
-
* Separator component
|
|
1458
|
-
*
|
|
1459
|
-
* A simple separator line for horizontal or vertical division.
|
|
1460
|
-
*/
|
|
1461
|
-
declare const Separator: FC<SeparatorProps>;
|
|
1462
|
-
|
|
1463
|
-
type PageSectionProps = PropsWithChildren<{
|
|
1464
|
-
/** Gap between child elements */
|
|
1465
|
-
gap?: keyof ThemeContract['spacing'];
|
|
1466
|
-
/** Horizontal padding around the section */
|
|
1467
|
-
paddingHorizontal?: keyof ThemeContract['spacing'];
|
|
1468
|
-
/** Vertical padding around the section */
|
|
1469
|
-
paddingVertical?: keyof ThemeContract['spacing'];
|
|
1470
|
-
/** Alignment of items within the section */
|
|
1471
|
-
alignItems?: CSSProperties['alignItems'];
|
|
1472
|
-
/** Maximum width of the section */
|
|
1473
|
-
maxWidth?: CSSProperties['maxWidth'];
|
|
1474
|
-
/** Minimum height of the section */
|
|
1475
|
-
minHeight?: CSSProperties['minHeight'];
|
|
1476
|
-
/** Accessibility label for screen readers */
|
|
1477
|
-
ariaLabel?: string;
|
|
1478
|
-
/** ID of element that labels this section */
|
|
1479
|
-
ariaLabelledBy?: string;
|
|
1480
|
-
/** ID of element that describes this section */
|
|
1481
|
-
ariaDescribedBy?: string;
|
|
1482
|
-
/** ARIA role */
|
|
1483
|
-
role?: string;
|
|
1484
|
-
/** Tab index for keyboard navigation */
|
|
1485
|
-
tabIndex?: number;
|
|
1486
|
-
}>;
|
|
1487
|
-
|
|
1488
|
-
/**
|
|
1489
|
-
* PageSection component
|
|
1490
|
-
*
|
|
1491
|
-
* A layout component that provides consistent spacing and alignment for page sections.
|
|
1492
|
-
* Supports customization of gap, padding, alignment, min height and max width.
|
|
1493
|
-
*/
|
|
1494
|
-
declare const PageSection: FC<PageSectionProps>;
|
|
1495
|
-
|
|
1496
|
-
type PageProps = {
|
|
1497
|
-
/** Page content */
|
|
1498
|
-
children: ReactNode;
|
|
1499
|
-
/** Optional footer component */
|
|
1500
|
-
footer?: ReactNode;
|
|
1501
|
-
/** Maximum width of the page content (default: 100%) */
|
|
1502
|
-
maxWidth?: CSSProperties['maxWidth'];
|
|
1503
|
-
/** Background color */
|
|
1504
|
-
backgroundColor?: CSSProperties['backgroundColor'];
|
|
1505
|
-
/** Padding around the page */
|
|
1506
|
-
padding?: CSSProperties['padding'];
|
|
1507
|
-
/** Custom className for additional styling */
|
|
1508
|
-
className?: string;
|
|
1509
|
-
/** Accessibility label for screen readers */
|
|
1510
|
-
ariaLabel?: string;
|
|
1511
|
-
/** ID of element that labels this page */
|
|
1512
|
-
ariaLabelledBy?: string;
|
|
1513
|
-
/** ID of element that describes this page */
|
|
1514
|
-
ariaDescribedBy?: string;
|
|
1515
|
-
/** ARIA role */
|
|
1516
|
-
role?: string;
|
|
1517
|
-
/** Tab index for keyboard navigation */
|
|
1518
|
-
tabIndex?: number;
|
|
1519
|
-
};
|
|
1520
|
-
|
|
1521
|
-
/**
|
|
1522
|
-
* Page component
|
|
1523
|
-
*
|
|
1524
|
-
* A layout component that provides consistent page structure with optional footer.
|
|
1525
|
-
* Supports customization of dimensions, background, and content constraints.
|
|
1526
|
-
*/
|
|
1527
|
-
declare const Page: FC<PageProps>;
|
|
1528
|
-
|
|
1529
|
-
type AccordionProps = {
|
|
1530
|
-
/** Title displayed in the accordion header */
|
|
1531
|
-
title: string;
|
|
1532
|
-
/** Content to show/hide when accordion is expanded */
|
|
1533
|
-
children: ReactNode;
|
|
1534
|
-
/** Whether the accordion is expanded */
|
|
1535
|
-
expanded?: boolean;
|
|
1536
|
-
/** Default expanded state (for uncontrolled mode) */
|
|
1537
|
-
defaultExpanded?: boolean;
|
|
1538
|
-
/** Callback fired when the accordion expands or collapses */
|
|
1539
|
-
onChange?: (expanded: boolean) => void;
|
|
1540
|
-
/** Disabled state */
|
|
1541
|
-
disabled?: boolean;
|
|
1542
|
-
/** Optional icon to display before title */
|
|
1543
|
-
icon?: ReactNode;
|
|
1544
|
-
/** Optional background color */
|
|
1545
|
-
backgroundColor?: keyof ThemeContract['colors'];
|
|
1546
|
-
/** Optional width */
|
|
1547
|
-
width?: CSSProperties['width'];
|
|
1548
|
-
/** Padding for the accordion header */
|
|
1549
|
-
headerPadding?: CSSProperties['padding'];
|
|
1550
|
-
/** Padding for the accordion content */
|
|
1551
|
-
contentPadding?: CSSProperties['padding'];
|
|
1552
|
-
/** Accessibility label for screen readers */
|
|
1553
|
-
ariaLabel?: string;
|
|
1554
|
-
/** ID of element that labels this accordion */
|
|
1555
|
-
ariaLabelledBy?: string;
|
|
1556
|
-
/** ID of element that describes this accordion */
|
|
1557
|
-
ariaDescribedBy?: string;
|
|
1558
|
-
/** ARIA role */
|
|
1559
|
-
role?: string;
|
|
1560
|
-
/** Tab index for keyboard navigation */
|
|
1561
|
-
tabIndex?: number;
|
|
1562
|
-
};
|
|
1563
|
-
|
|
1564
|
-
/**
|
|
1565
|
-
* Accordion component
|
|
1566
|
-
*
|
|
1567
|
-
* A collapsible container that can show/hide content.
|
|
1568
|
-
* Supports controlled and uncontrolled modes.
|
|
1569
|
-
*/
|
|
1570
|
-
declare const Accordion: FC<AccordionProps>;
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* Alert component props
|
|
1574
|
-
*/
|
|
1575
|
-
interface AlertProps {
|
|
1576
|
-
/**
|
|
1577
|
-
* Text content of the alert
|
|
1578
|
-
*/
|
|
1579
|
-
text: string;
|
|
1580
|
-
/**
|
|
1581
|
-
* Variant of the alert determining its color and icon
|
|
1582
|
-
* @default 'default'
|
|
1583
|
-
*/
|
|
1584
|
-
variant?: AlertVariant;
|
|
1585
|
-
/**
|
|
1586
|
-
* Position of the alert on screen
|
|
1587
|
-
* @default 'top-right'
|
|
1588
|
-
*/
|
|
1589
|
-
position?: AlertPosition;
|
|
1590
|
-
/**
|
|
1591
|
-
* Whether the alert is visible
|
|
1592
|
-
* @default false
|
|
1593
|
-
*/
|
|
1594
|
-
isVisible?: boolean;
|
|
1595
|
-
/**
|
|
1596
|
-
* Vertical offset for stacking alerts (in pixels)
|
|
1597
|
-
* @default 0
|
|
1598
|
-
*/
|
|
1599
|
-
offsetY?: number;
|
|
1600
|
-
/**
|
|
1601
|
-
* Maximum width of the alert in pixels
|
|
1602
|
-
* @default 300
|
|
1603
|
-
*/
|
|
1604
|
-
maxWidth?: number;
|
|
1605
|
-
/**
|
|
1606
|
-
* Unique identifier for the alert
|
|
1607
|
-
* @internal
|
|
1608
|
-
*/
|
|
1609
|
-
alertId?: string;
|
|
1610
|
-
/**
|
|
1611
|
-
* Callback when alert height changes
|
|
1612
|
-
* @internal
|
|
1613
|
-
*/
|
|
1614
|
-
onHeightChange?: (alertId: string, height: number) => void;
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
/**
|
|
1618
|
-
* Alert component - Display notifications with different variants
|
|
1619
|
-
*
|
|
1620
|
-
* **Variants:**
|
|
1621
|
-
* - `default`: Standard alert with neutral styling
|
|
1622
|
-
* - `info`: Informational alert with blue styling
|
|
1623
|
-
* - `warning`: Warning alert with yellow/orange styling
|
|
1624
|
-
* - `error`: Error alert with red styling
|
|
1625
|
-
* - `success`: Success alert with green styling
|
|
1626
|
-
*
|
|
1627
|
-
* **Features:**
|
|
1628
|
-
* - Auto-dismisses after 3 seconds
|
|
1629
|
-
* - Positioned at screen corners
|
|
1630
|
-
* - Supports stacking with offsetY
|
|
1631
|
-
* - Icon based on variant
|
|
1632
|
-
* - Smooth animations
|
|
1633
|
-
* - Dynamic height calculation for proper stacking
|
|
1634
|
-
*
|
|
1635
|
-
* **Accessibility:**
|
|
1636
|
-
* - Uses `role="alert"` for screen reader announcements
|
|
1637
|
-
* - Error alerts use `aria-live="assertive"` for urgent announcements
|
|
1638
|
-
* - Other variants use `aria-live="polite"` to avoid interrupting users
|
|
1639
|
-
*
|
|
1640
|
-
* @example
|
|
1641
|
-
* ```tsx
|
|
1642
|
-
* <Alert
|
|
1643
|
-
* text="Operation completed successfully"
|
|
1644
|
-
* variant="success"
|
|
1645
|
-
* position="top-right"
|
|
1646
|
-
* isVisible={true}
|
|
1647
|
-
* />
|
|
1648
|
-
* ```
|
|
1649
|
-
*/
|
|
1650
|
-
declare const Alert: FC<AlertProps>;
|
|
1651
|
-
|
|
1652
|
-
type AnchorPosition = {
|
|
1653
|
-
top: number;
|
|
1654
|
-
left: number;
|
|
1655
|
-
} | null;
|
|
1656
|
-
type AnchorOrigin = 'left' | 'right';
|
|
1657
|
-
|
|
1658
|
-
type MenuProps = {
|
|
1659
|
-
anchor: HTMLElement | null;
|
|
1660
|
-
onClose: () => void;
|
|
1661
|
-
children: ReactNode;
|
|
1662
|
-
anchorOrigin?: AnchorOrigin;
|
|
1663
|
-
width?: CSSProperties['width'];
|
|
1664
|
-
/**
|
|
1665
|
-
* Désactive l'animation/transition d'apparition du menu
|
|
1666
|
-
* @default false
|
|
1667
|
-
*/
|
|
1668
|
-
disableAnimation?: boolean;
|
|
1669
|
-
};
|
|
1670
|
-
|
|
1671
|
-
declare const Menu: FC<MenuProps>;
|
|
1672
|
-
|
|
1673
774
|
type MenuGroupProps = {
|
|
775
|
+
/** Optional label shown above the group items. */
|
|
776
|
+
label?: string;
|
|
777
|
+
/** Render a visual horizontal separator above this group. */
|
|
778
|
+
divider?: boolean;
|
|
779
|
+
/** MenuItem children. */
|
|
1674
780
|
children: ReactNode;
|
|
1675
781
|
};
|
|
1676
782
|
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
783
|
+
type MenuItemProps = HTMLAttributes<HTMLLIElement> & {
|
|
784
|
+
ref?: Ref<HTMLLIElement>;
|
|
785
|
+
/** Display text of the item. */
|
|
1680
786
|
label: string;
|
|
1681
|
-
icon
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
iconColor?: keyof ThemeContract['colors'];
|
|
1685
|
-
/** If true, the menu item is highlighted as active */
|
|
1686
|
-
active?: boolean;
|
|
1687
|
-
};
|
|
1688
|
-
|
|
1689
|
-
declare const MenuItem: FC<MenuItemProps>;
|
|
1690
|
-
|
|
1691
|
-
type ModalProps = {
|
|
1692
|
-
isOpen: boolean;
|
|
1693
|
-
onClose: () => void;
|
|
1694
|
-
label: string;
|
|
1695
|
-
children: ReactNode;
|
|
1696
|
-
isForm?: boolean;
|
|
1697
|
-
action?: ButtonProps;
|
|
1698
|
-
};
|
|
1699
|
-
|
|
1700
|
-
/**
|
|
1701
|
-
* Modal component
|
|
1702
|
-
*
|
|
1703
|
-
* An overlay dialog for focused interactions.
|
|
1704
|
-
*
|
|
1705
|
-
* **Accessibility:**
|
|
1706
|
-
* - Uses `role="dialog"` and `aria-modal="true"` for screen readers
|
|
1707
|
-
* - `aria-labelledby` links to the modal title
|
|
1708
|
-
* - Focus is trapped inside the modal while it is open
|
|
1709
|
-
* - Focus returns to the triggering element when closed
|
|
1710
|
-
* - Escape key closes the modal
|
|
1711
|
-
*
|
|
1712
|
-
* @example
|
|
1713
|
-
* ```tsx
|
|
1714
|
-
* <Modal
|
|
1715
|
-
* isOpen={isOpen}
|
|
1716
|
-
* onClose={() => setIsOpen(false)}
|
|
1717
|
-
* label="Confirm deletion"
|
|
1718
|
-
* action={{ label: 'Delete', onClick: handleDelete }}
|
|
1719
|
-
* >
|
|
1720
|
-
* <Text>Are you sure you want to delete this item?</Text>
|
|
1721
|
-
* </Modal>
|
|
1722
|
-
* ```
|
|
1723
|
-
*/
|
|
1724
|
-
declare const Modal: FC<ModalProps>;
|
|
1725
|
-
|
|
1726
|
-
type DrawerItemProps = {
|
|
1727
|
-
/** DrawerItem text label */
|
|
1728
|
-
label: string;
|
|
1729
|
-
/** Optional icon to display before label */
|
|
1730
|
-
startIcon?: ReactNode;
|
|
1731
|
-
/** Optional icon to display after label */
|
|
1732
|
-
endIcon?: ReactNode;
|
|
1733
|
-
/** Click handler */
|
|
1734
|
-
onClick?: () => void;
|
|
1735
|
-
/** Selected state */
|
|
787
|
+
/** Optional SVG icon rendered before the label. */
|
|
788
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
789
|
+
/** Whether this item is currently selected. */
|
|
1736
790
|
selected?: boolean;
|
|
1737
|
-
/**
|
|
791
|
+
/** Whether this item has keyboard focus (highlighted via arrow navigation). */
|
|
792
|
+
focused?: boolean;
|
|
793
|
+
/** Whether the item is non-interactive. */
|
|
1738
794
|
disabled?: boolean;
|
|
1739
|
-
/** Optional chip to display */
|
|
1740
|
-
chip?: Omit<StatusProps, 'size' | 'disabled'>;
|
|
1741
|
-
/** Accessibility label for screen readers */
|
|
1742
|
-
ariaLabel?: string;
|
|
1743
|
-
/** ID of element that labels this item */
|
|
1744
|
-
ariaLabelledBy?: string;
|
|
1745
|
-
/** ID of element that describes this item */
|
|
1746
|
-
ariaDescribedBy?: string;
|
|
1747
|
-
/** ARIA role */
|
|
1748
|
-
role?: string;
|
|
1749
|
-
/** Tab index for keyboard navigation */
|
|
1750
|
-
tabIndex?: number;
|
|
1751
795
|
};
|
|
1752
796
|
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
* A navigation item for use in drawers/sidebars.
|
|
1757
|
-
* Similar to a text button with selected state support.
|
|
1758
|
-
*/
|
|
1759
|
-
declare const DrawerItem: FC<DrawerItemProps>;
|
|
1760
|
-
|
|
1761
|
-
/**
|
|
1762
|
-
* Props for the Breadcrumb component
|
|
1763
|
-
*/
|
|
1764
|
-
interface BreadcrumbProps extends ComponentPropsWithoutRef<'nav'> {
|
|
1765
|
-
/**
|
|
1766
|
-
* Maximum number of items to display (minimum 2).
|
|
1767
|
-
* If exceeded, shows: first item + ellipsis + last (maxItems - 1) items
|
|
1768
|
-
* Separators are automatically inserted between items.
|
|
1769
|
-
* @example maxItems={3} with 6 items → Home > ... > Item5 > Item6
|
|
1770
|
-
*/
|
|
1771
|
-
maxItems?: number;
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
/**
|
|
1775
|
-
* Breadcrumb component
|
|
1776
|
-
* Navigation component for hierarchical page structures
|
|
1777
|
-
*
|
|
1778
|
-
* @param maxItems - Maximum number of items to display (minimum 2).
|
|
1779
|
-
* If exceeded, shows: first item + ellipsis + last (maxItems - 1) items
|
|
1780
|
-
* @param children
|
|
1781
|
-
* @param props
|
|
1782
|
-
*/
|
|
1783
|
-
declare const Breadcrumb: react.NamedExoticComponent<BreadcrumbProps>;
|
|
1784
|
-
|
|
1785
|
-
/**
|
|
1786
|
-
* Props for the BreadcrumbLink component
|
|
1787
|
-
* Renders a clickable breadcrumb item (includes the li wrapper)
|
|
1788
|
-
*/
|
|
1789
|
-
interface BreadcrumbLinkProps {
|
|
1790
|
-
/**
|
|
1791
|
-
* The text content of the link (required)
|
|
1792
|
-
*/
|
|
1793
|
-
children: string;
|
|
1794
|
-
/**
|
|
1795
|
-
* Click handler for navigation (compatible with React Router)
|
|
1796
|
-
*/
|
|
1797
|
-
onClick?: () => void;
|
|
1798
|
-
}
|
|
1799
|
-
|
|
1800
|
-
/**
|
|
1801
|
-
* BreadcrumbLink component
|
|
1802
|
-
* Renders a clickable breadcrumb item with a link
|
|
1803
|
-
*/
|
|
1804
|
-
declare const BreadcrumbLink: react.NamedExoticComponent<BreadcrumbLinkProps>;
|
|
1805
|
-
|
|
1806
|
-
/**
|
|
1807
|
-
* Props for the BreadcrumbPage component
|
|
1808
|
-
* Renders the current page in the breadcrumb (includes the li wrapper)
|
|
1809
|
-
*/
|
|
1810
|
-
interface BreadcrumbPageProps {
|
|
1811
|
-
/**
|
|
1812
|
-
* The text content of the page (required)
|
|
1813
|
-
*/
|
|
1814
|
-
children: string;
|
|
1815
|
-
}
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* BreadcrumbPage component
|
|
1819
|
-
* Renders the current page (non-clickable) in the breadcrumb
|
|
1820
|
-
*/
|
|
1821
|
-
declare const BreadcrumbPage: react.NamedExoticComponent<BreadcrumbPageProps>;
|
|
1822
|
-
|
|
1823
|
-
/**
|
|
1824
|
-
* Props for the BreadcrumbSeparator component
|
|
1825
|
-
*/
|
|
1826
|
-
interface BreadcrumbSeparatorProps {
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
/**
|
|
1830
|
-
* BreadcrumbSeparator component
|
|
1831
|
-
*/
|
|
1832
|
-
declare const BreadcrumbSeparator: FC<BreadcrumbSeparatorProps>;
|
|
1833
|
-
|
|
1834
|
-
/**
|
|
1835
|
-
* Props for the BreadcrumbEllipsis component
|
|
1836
|
-
*/
|
|
1837
|
-
interface BreadcrumbEllipsisProps {
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
/**
|
|
1841
|
-
* BreadcrumbEllipsis component
|
|
1842
|
-
* Renders an ellipsis item in the breadcrumb (includes the li wrapper)
|
|
1843
|
-
*/
|
|
1844
|
-
declare const BreadcrumbEllipsis: FC<BreadcrumbEllipsisProps>;
|
|
1845
|
-
|
|
1846
|
-
type TabsProps = {
|
|
1847
|
-
/** Children TabItem components */
|
|
1848
|
-
children: ReactNode;
|
|
1849
|
-
/** Currently active tab value or index */
|
|
1850
|
-
activeTab?: string | number;
|
|
1851
|
-
/** Width of the tabs container, default 100% */
|
|
1852
|
-
width?: string;
|
|
1853
|
-
};
|
|
1854
|
-
|
|
1855
|
-
/**
|
|
1856
|
-
* Tabs component for navigation between multiple sections
|
|
1857
|
-
*/
|
|
1858
|
-
declare const Tabs: FC<TabsProps>;
|
|
1859
|
-
|
|
1860
|
-
type TabItemProps = {
|
|
1861
|
-
/** Label of the tab */
|
|
1862
|
-
label?: string;
|
|
1863
|
-
/** Start icon of the tab */
|
|
1864
|
-
startIcon?: ReactElement;
|
|
1865
|
-
/** End icon of the tab */
|
|
1866
|
-
endIcon?: ReactElement;
|
|
1867
|
-
/** Optional value associated with the tab */
|
|
1868
|
-
value?: string | number;
|
|
1869
|
-
/** Whether the tab is active */
|
|
1870
|
-
isActive?: boolean;
|
|
1871
|
-
/** Click handler */
|
|
1872
|
-
onClick?: () => void;
|
|
1873
|
-
};
|
|
1874
|
-
|
|
1875
|
-
/**
|
|
1876
|
-
* TabItem component for use inside Tabs
|
|
1877
|
-
*/
|
|
1878
|
-
declare const TabItem: FC<TabItemProps>;
|
|
1879
|
-
|
|
1880
|
-
/**
|
|
1881
|
-
* Props for the Pagination component
|
|
1882
|
-
*/
|
|
1883
|
-
type PaginationProps = {
|
|
1884
|
-
/** Current page number (1-indexed) */
|
|
1885
|
-
currentPage: number;
|
|
1886
|
-
/** Total number of pages */
|
|
1887
|
-
totalPages: number;
|
|
1888
|
-
/** Callback when page changes */
|
|
1889
|
-
onPageChange: (page: number) => void;
|
|
1890
|
-
/** Callback when clicking the previous button */
|
|
1891
|
-
onPrevious?: (page: number) => void;
|
|
1892
|
-
/** Callback when clicking the next button */
|
|
1893
|
-
onNext?: (page: number) => void;
|
|
1894
|
-
/** Maximum number of page buttons to display */
|
|
1895
|
-
maxVisiblePages?: number;
|
|
1896
|
-
/** Accessibility label for the pagination */
|
|
1897
|
-
ariaLabel?: string;
|
|
1898
|
-
};
|
|
1899
|
-
|
|
1900
|
-
/**
|
|
1901
|
-
* Pagination component for navigating between pages
|
|
1902
|
-
*/
|
|
1903
|
-
declare const Pagination: FC<PaginationProps>;
|
|
1904
|
-
|
|
1905
|
-
/**
|
|
1906
|
-
* Options for showing an alert
|
|
1907
|
-
*/
|
|
1908
|
-
interface ShowAlertOptions {
|
|
1909
|
-
/**
|
|
1910
|
-
* Text content of the alert
|
|
1911
|
-
*/
|
|
1912
|
-
text: string;
|
|
1913
|
-
/**
|
|
1914
|
-
* Variant of the alert
|
|
1915
|
-
* @default 'default'
|
|
1916
|
-
*/
|
|
1917
|
-
variant?: AlertVariant;
|
|
1918
|
-
/**
|
|
1919
|
-
* Position of the alert on screen
|
|
1920
|
-
* @default 'top-right'
|
|
1921
|
-
*/
|
|
1922
|
-
position?: AlertPosition;
|
|
1923
|
-
/**
|
|
1924
|
-
* Duration before auto-dismiss in milliseconds
|
|
1925
|
-
* @default 3000
|
|
1926
|
-
*/
|
|
1927
|
-
duration?: number;
|
|
1928
|
-
/**
|
|
1929
|
-
* Maximum width of the alert in pixels
|
|
1930
|
-
* @default 300
|
|
1931
|
-
*/
|
|
1932
|
-
maxWidth?: number;
|
|
1933
|
-
}
|
|
1934
|
-
/**
|
|
1935
|
-
* Alert context value
|
|
1936
|
-
*/
|
|
1937
|
-
interface AlertContextValue {
|
|
1938
|
-
/**
|
|
1939
|
-
* Show an alert
|
|
1940
|
-
*/
|
|
1941
|
-
showAlert: (options: ShowAlertOptions) => void;
|
|
1942
|
-
}
|
|
1943
|
-
/**
|
|
1944
|
-
* Alert provider props
|
|
1945
|
-
*/
|
|
1946
|
-
interface AlertProviderProps {
|
|
1947
|
-
children: React.ReactNode;
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
/**
|
|
1951
|
-
* Alert Provider Component
|
|
1952
|
-
* Manages alert queue and renders alerts in a portal
|
|
1953
|
-
*/
|
|
1954
|
-
declare const AlertProvider: FC<AlertProviderProps>;
|
|
1955
|
-
/**
|
|
1956
|
-
* Hook to access alert functionality
|
|
1957
|
-
*
|
|
1958
|
-
* @example
|
|
1959
|
-
* ```tsx
|
|
1960
|
-
* const { showAlert } = useAlert()
|
|
1961
|
-
*
|
|
1962
|
-
* showAlert({
|
|
1963
|
-
* text: 'Operation completed',
|
|
1964
|
-
* variant: 'success',
|
|
1965
|
-
* position: 'top-right'
|
|
1966
|
-
* })
|
|
1967
|
-
* ```
|
|
1968
|
-
*/
|
|
1969
|
-
declare const useAlert: () => AlertContextValue;
|
|
1970
|
-
|
|
1971
|
-
type UseAnchorPositionParams = {
|
|
1972
|
-
anchor: HTMLElement | null;
|
|
1973
|
-
menuRef: RefObject<HTMLDivElement | null>;
|
|
1974
|
-
anchorOrigin?: AnchorOrigin;
|
|
1975
|
-
isVisible: boolean;
|
|
797
|
+
type MenuComponent = FC<MenuProps> & {
|
|
798
|
+
Item: FC<MenuItemProps>;
|
|
799
|
+
Group: FC<MenuGroupProps>;
|
|
1976
800
|
};
|
|
1977
|
-
/**
|
|
1978
|
-
* Hook pour calculer la position d'un élément par rapport à son ancre
|
|
1979
|
-
* @param anchor - Élément HTML servant d'ancre
|
|
1980
|
-
* @param menuRef - Référence vers l'élément à positionner
|
|
1981
|
-
* @param anchorOrigin - Origine de l'ancrage ('left' ou 'right')
|
|
1982
|
-
* @param isVisible - Si l'élément est visible (pour recalculer la position)
|
|
1983
|
-
*/
|
|
1984
|
-
declare const useAnchorPosition: ({ anchor, menuRef, anchorOrigin, isVisible }: UseAnchorPositionParams) => AnchorPosition;
|
|
1985
801
|
|
|
1986
|
-
|
|
1987
|
-
* Gestion d'un click en dehors d'un ou plusieurs éléments
|
|
1988
|
-
* @param refs Tableau de références à écouter
|
|
1989
|
-
* @param onClickOutside Callback si clic à l'extérieur
|
|
1990
|
-
* @param shouldTrigger Activation du comportement
|
|
1991
|
-
*/
|
|
1992
|
-
declare const useClickOutside: (refs: RefObject<HTMLElement | null>[], onClickOutside: () => void, shouldTrigger?: boolean) => void;
|
|
1993
|
-
|
|
1994
|
-
type UseTransitionRenderReturnType = {
|
|
1995
|
-
isVisible: boolean;
|
|
1996
|
-
isFadingIn: boolean;
|
|
1997
|
-
};
|
|
802
|
+
declare const Menu: MenuComponent;
|
|
1998
803
|
|
|
1999
804
|
/**
|
|
2000
|
-
*
|
|
2001
|
-
* @param isOpen - État d'ouverture
|
|
2002
|
-
* @param duration - Durée de la transition en ms
|
|
2003
|
-
*/
|
|
2004
|
-
declare const useTransitionRender: (isOpen: boolean, duration?: number) => UseTransitionRenderReturnType;
|
|
2005
|
-
|
|
2006
|
-
/**
|
|
2007
|
-
* Default theme type for aurora-ds-components
|
|
2008
|
-
*/
|
|
2009
|
-
type Theme = {
|
|
2010
|
-
colors: ThemeColorContract;
|
|
2011
|
-
spacing: ThemeSpacingContract;
|
|
2012
|
-
radius: ThemeRadiusContract;
|
|
2013
|
-
shadows: ThemeShadowsContract;
|
|
2014
|
-
fontSize: ThemeFontSizeContract;
|
|
2015
|
-
fontWeight: ThemeFontWeightContract;
|
|
2016
|
-
lineHeight: ThemeLineHeightContract;
|
|
2017
|
-
zIndex: ThemeZIndexContract;
|
|
2018
|
-
transition: ThemeTransitionContract;
|
|
2019
|
-
opacity: ThemeOpacityContract;
|
|
2020
|
-
breakpoints: ThemeBreakpointsContract;
|
|
2021
|
-
};
|
|
2022
|
-
|
|
2023
|
-
/**
|
|
2024
|
-
* Default module augmentation for @aurora-ds/components
|
|
2025
|
-
*
|
|
2026
|
-
* This provides the base theme structure for the library.
|
|
2027
|
-
* Projects can override this to add custom tokens:
|
|
2028
|
-
*
|
|
2029
|
-
* @example
|
|
2030
|
-
* ```typescript
|
|
2031
|
-
* // In your project: src/theme/theme.module.ts
|
|
2032
|
-
* import type { Theme } from '@aurora-ds/components'
|
|
805
|
+
* Tooltip
|
|
2033
806
|
*
|
|
2034
|
-
*
|
|
2035
|
-
*
|
|
2036
|
-
*
|
|
2037
|
-
* link: string
|
|
2038
|
-
* linkHover: string
|
|
2039
|
-
* }
|
|
2040
|
-
* }
|
|
807
|
+
* A hover/focus-triggered tooltip rendered in a portal to avoid clipping
|
|
808
|
+
* by parent `overflow: hidden` containers. Computes its fixed position from
|
|
809
|
+
* the trigger element's bounding rect and clamps it to the viewport on all sides.
|
|
2041
810
|
*
|
|
2042
|
-
*
|
|
2043
|
-
* interface ThemeRegistry {
|
|
2044
|
-
* theme: MyTheme // Override with your extended theme
|
|
2045
|
-
* }
|
|
2046
|
-
* }
|
|
2047
|
-
* ```
|
|
2048
|
-
*/
|
|
2049
|
-
declare module '@aurora-ds/theme' {
|
|
2050
|
-
interface ThemeRegistry {
|
|
2051
|
-
theme: Theme;
|
|
2052
|
-
}
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
/**
|
|
2056
|
-
* Default theme for aurora-ds-components
|
|
811
|
+
* **Placements:** `top` | `bottom` | `left` | `right` (default)
|
|
2057
812
|
*
|
|
2058
|
-
*
|
|
2059
|
-
*
|
|
813
|
+
* By default the tooltip is disabled on touch/mobile devices (`pointer: coarse`).
|
|
814
|
+
* Set `disableOnMobile={false}` to keep it active on mobile (e.g. InfoBubble).
|
|
2060
815
|
*
|
|
2061
816
|
* @example
|
|
2062
817
|
* ```tsx
|
|
2063
|
-
*
|
|
2064
|
-
*
|
|
2065
|
-
*
|
|
2066
|
-
* // Use default theme
|
|
2067
|
-
* <ThemeProvider theme={defaultTheme}>
|
|
2068
|
-
* <App />
|
|
2069
|
-
* </ThemeProvider>
|
|
2070
|
-
*
|
|
2071
|
-
* // Or extend/override it
|
|
2072
|
-
* const myTheme = {
|
|
2073
|
-
* ...defaultTheme,
|
|
2074
|
-
* colors: {
|
|
2075
|
-
* ...defaultTheme.colors,
|
|
2076
|
-
* primary: '#FF0000', // Override primary color
|
|
2077
|
-
* }
|
|
2078
|
-
* }
|
|
818
|
+
* <Tooltip label="Save document" placement="top">
|
|
819
|
+
* <Button>Save</Button>
|
|
820
|
+
* </Tooltip>
|
|
2079
821
|
* ```
|
|
2080
822
|
*/
|
|
2081
|
-
declare const
|
|
823
|
+
declare const Tooltip: FC<TooltipProps>;
|
|
824
|
+
|
|
825
|
+
declare const lightTheme: Theme;
|
|
826
|
+
|
|
827
|
+
declare const darkTheme: Theme;
|
|
2082
828
|
|
|
2083
|
-
export {
|
|
2084
|
-
export type {
|
|
829
|
+
export { Alert, Badge, Button, Dialog, Form, Icon, IconButton, InfoBubble, Menu, Select, Switch, Text, TextField, Tooltip, darkTheme, lightTheme };
|
|
830
|
+
export type { AlertBodyProps, AlertProps, AlertTitleProps, AlertVariant, BadgeColor, BadgeIcon, BadgeProps, BadgeSize, BadgeVariant, ButtonColor, ButtonIcon, ButtonProps, ButtonSize, ButtonVariant, DialogBodyProps, DialogHeaderProps, DialogProps, FormProps, IconButtonProps, IconProps, IconStyleParams, InfoBubbleProps, MenuGroupProps, MenuItemProps, MenuProps, Palette, SelectOption, SelectProps, SwitchColor, SwitchProps, SwitchSize, TextFieldProps, TextFieldSize, TextFieldStatus, TextProps, TextStyleParams, TextVariantStyle, TextVariants, Theme, TooltipPlacement, TooltipProps };
|