@heliosgraphics/ui 2.0.0-alpha.76 → 2.0.0-alpha.77
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/components/Alert/Alert.meta.ts +1 -1
- package/components/Alert/Alert.tsx +6 -2
- package/components/Alert/Alert.types.ts +3 -1
- package/components/Breadcrumb/Breadcrumb.meta.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.tsx +3 -1
- package/components/Browser/Browser.meta.ts +1 -1
- package/components/Button/Button.meta.ts +1 -1
- package/components/Button/Button.types.ts +4 -1
- package/components/ButtonGroup/ButtonGroup.meta.ts +1 -1
- package/components/Checkbox/Checkbox.meta.ts +1 -1
- package/components/Checkbox/Checkbox.tsx +3 -1
- package/components/Checkbox/Checkbox.types.ts +1 -1
- package/components/Clock/Clock.meta.ts +1 -1
- package/components/Column/Column.meta.ts +1 -1
- package/components/Column/Column.types.ts +1 -1
- package/components/Confirm/Confirm.meta.ts +1 -1
- package/components/Confirm/Confirm.tsx +5 -1
- package/components/Confirm/Confirm.types.ts +3 -1
- package/components/DatePicker/DatePicker.meta.ts +1 -1
- package/components/Debug/Debug.meta.ts +1 -1
- package/components/Debug/Debug.tsx +5 -1
- package/components/Debug/Debug.types.ts +1 -1
- package/components/Details/Details.meta.ts +1 -1
- package/components/Details/Details.tsx +2 -1
- package/components/Dialog/Dialog.meta.ts +1 -1
- package/components/Dialog/Dialog.tsx +4 -1
- package/components/Donut/Donut.meta.ts +1 -1
- package/components/Donut/Donut.tsx +1 -1
- package/components/Donut/Donut.types.ts +1 -1
- package/components/Dot/Dot.meta.ts +1 -1
- package/components/Dot/Dot.types.ts +2 -1
- package/components/Dropdown/Dropdown.meta.ts +1 -1
- package/components/Dropdown/Dropdown.types.ts +2 -1
- package/components/Fieldset/Fieldset.meta.ts +1 -1
- package/components/Flex/Flex.meta.ts +1 -1
- package/components/Flex/Flex.types.ts +2 -1
- package/components/Flex/Flex.utils.ts +1 -1
- package/components/Grid/Grid.meta.ts +1 -1
- package/components/Heading/Heading.meta.ts +1 -1
- package/components/Heading/Heading.types.ts +1 -1
- package/components/Heading/components/H0/H0.meta.ts +1 -1
- package/components/Heading/components/H1/H1.meta.ts +1 -1
- package/components/Heading/components/H2/H2.meta.ts +1 -1
- package/components/Heading/components/H3/H3.meta.ts +1 -1
- package/components/Heading/components/H4/H4.meta.ts +1 -1
- package/components/Heading/components/H5/H5.meta.ts +1 -1
- package/components/Heading/components/H6/H6.meta.ts +1 -1
- package/components/Icon/Icon.meta.ts +1 -1
- package/components/Icon/Icon.types.ts +2 -1
- package/components/Input/Input.meta.ts +1 -1
- package/components/Input/Input.tsx +6 -2
- package/components/Input/Input.types.ts +1 -1
- package/components/Layout/Layout.meta.ts +1 -1
- package/components/Layout/components/LayoutAside/LayoutAside.meta.ts +1 -1
- package/components/Layout/components/LayoutAside/components/LayoutAsideContent/LayoutAsideContent.meta.ts +1 -1
- package/components/Layout/components/LayoutAside/components/LayoutAsideToggle/LayoutAsideToggle.meta.ts +1 -1
- package/components/Layout/components/LayoutMain/LayoutMain.meta.ts +1 -1
- package/components/Layout/components/LayoutMain/components/LayoutMainContent/LayoutMainContent.meta.ts +1 -1
- package/components/Layout/components/LayoutNavigation/LayoutNavigation.meta.ts +1 -1
- package/components/Layout/components/LayoutNavigation/LayoutNavigation.types.ts +1 -1
- package/components/Layout/components/LayoutSubNavigation/LayoutSubNavigation.meta.ts +1 -1
- package/components/Layout/components/LayoutSubNavigation/LayoutSubNavigation.types.ts +1 -1
- package/components/Loading/Loading.meta.ts +1 -1
- package/components/Loading/Loading.types.ts +1 -1
- package/components/Markdown/Markdown.meta.ts +1 -1
- package/components/Masonry/Masonry.meta.ts +1 -1
- package/components/Menu/Menu.meta.ts +1 -1
- package/components/Menu/components/MenuCategory/MenuCategory.meta.ts +1 -1
- package/components/Menu/components/MenuCategory/MenuCategory.tsx +3 -1
- package/components/Menu/components/MenuFilter/MenuFilter.meta.ts +1 -1
- package/components/Menu/components/MenuFilter/MenuFilter.tsx +1 -1
- package/components/Menu/components/MenuItem/MenuItem.meta.ts +1 -1
- package/components/Menu/components/MenuItem/MenuItem.tsx +5 -1
- package/components/Menu/components/MenuItem/MenuItem.types.ts +2 -1
- package/components/Overlay/Overlay.meta.ts +1 -1
- package/components/Pie/Pie.meta.ts +1 -1
- package/components/Pie/Pie.types.ts +1 -1
- package/components/Pill/Pill.meta.ts +1 -1
- package/components/Pill/Pill.tsx +3 -1
- package/components/Pill/Pill.types.ts +3 -1
- package/components/Placeholder/Placeholder.meta.ts +1 -1
- package/components/Placeholder/Placeholder.tsx +2 -1
- package/components/Progress/Progress.meta.ts +1 -1
- package/components/Progress/Progress.types.ts +1 -1
- package/components/Radio/Radio.meta.ts +1 -1
- package/components/Radio/Radio.tsx +2 -1
- package/components/Segments/Segments.meta.ts +1 -1
- package/components/Segments/Segments.tsx +1 -1
- package/components/Segments/components/SegmentButton/SegmentButton.meta.ts +1 -1
- package/components/Segments/components/SegmentButton/SegmentButton.tsx +2 -2
- package/components/Segments/components/SegmentButton/SegmentButton.types.ts +1 -1
- package/components/Select/Select.meta.ts +1 -1
- package/components/Select/Select.tsx +2 -1
- package/components/Separator/Separator.meta.ts +1 -1
- package/components/Separator/Separator.types.ts +1 -1
- package/components/Separator/components/HRMarkup/HRMarkup.meta.ts +1 -1
- package/components/Separator/components/HorizontalSeparator/HorizontalSeparator.meta.ts +1 -1
- package/components/Separator/components/VerticalSeparator/VerticalSeparator.meta.ts +1 -1
- package/components/Setup/Setup.meta.ts +1 -1
- package/components/Shimmer/Shimmer.meta.ts +1 -1
- package/components/Slider/Slider.meta.ts +1 -1
- package/components/Spacer/Spacer.meta.ts +1 -1
- package/components/Table/Table.meta.ts +1 -1
- package/components/Tabs/Tabs.meta.ts +1 -1
- package/components/Tabs/Tabs.tsx +1 -1
- package/components/Text/Text.meta.ts +1 -1
- package/components/Text/Text.types.ts +1 -1
- package/components/Text/components/Div/Div.meta.ts +1 -1
- package/components/Text/components/Micro/Micro.meta.ts +1 -1
- package/components/Text/components/P/P.meta.ts +1 -1
- package/components/Text/components/Small/Small.meta.ts +1 -1
- package/components/Text/components/Tiny/Tiny.meta.ts +1 -1
- package/components/Textarea/Textarea.meta.ts +1 -1
- package/components/Textarea/Textarea.tsx +1 -1
- package/components/Tile/Tile.meta.ts +1 -1
- package/components/Tile/Tile.tsx +4 -2
- package/components/Tile/Tile.types.ts +2 -1
- package/components/Timestamp/Timestamp.meta.ts +1 -1
- package/components/Toggle/Toggle.meta.ts +1 -1
- package/components/Toggle/Toggle.tsx +2 -1
- package/components/Toggle/Toggle.types.ts +1 -1
- package/components/Tooltip/Tooltip.meta.ts +1 -1
- package/components/Tooltip/components/TooltipContent/TooltipContent.meta.ts +1 -1
- package/components/Tooltip/components/TooltipContent/TooltipContent.tsx +1 -1
- package/components/Tooltip/components/TooltipTrigger/TooltipTrigger.meta.ts +1 -1
- package/components/shared/InputLabel/InputLabel.meta.ts +1 -1
- package/components/shared/ResultList/ResultList.meta.ts +1 -1
- package/components/shared/ResultList/ResultList.tsx +4 -1
- package/components/shared/ResultList/ResultList.types.ts +1 -1
- package/constants/colors.ts +1 -1
- package/constants/components.ts +1 -1
- package/constants/emphasis.ts +1 -1
- package/constants/meta.ts +4 -7
- package/constants/scale.ts +1 -1
- package/constants/scope.ts +4 -1
- package/hooks/useTheme.tsx +1 -1
- package/package.json +2 -1
- package/types/scope.ts +11 -15
- package/utils/colors.ts +2 -2
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { Button
|
|
1
|
+
import { Button } from "../Button"
|
|
2
|
+
import { ButtonGroup } from "../ButtonGroup"
|
|
3
|
+
import { Flex } from "../Flex"
|
|
4
|
+
import { Text } from "../Text"
|
|
5
|
+
import { Icon } from "../Icon"
|
|
2
6
|
import { getClasses } from "@heliosgraphics/utils/classnames"
|
|
3
7
|
import { getColorClasses } from "../../utils/colors"
|
|
4
8
|
import { INTENTION_COLOR_MAP } from "../../constants/intentions"
|
|
5
9
|
import styles from "./Alert.module.css"
|
|
6
10
|
import type { AlertProps } from "./Alert.types"
|
|
7
11
|
import type { FC } from "react"
|
|
8
|
-
import type { HeliosColorType } from "
|
|
12
|
+
import type { HeliosColorType } from "../../types/colors"
|
|
9
13
|
|
|
10
14
|
export const Alert: FC<AlertProps> = ({ children, onClose, title, icon, color, appearance = "light", intent }) => {
|
|
11
15
|
const resolvedColor: HeliosColorType = color || (intent ? INTENTION_COLOR_MAP[intent] : "gray")
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { PropsWithChildren } from "react"
|
|
2
|
-
import type { HeliosIconType
|
|
2
|
+
import type { HeliosIconType } from "../../types/icons"
|
|
3
|
+
import type { HeliosColorType, HeliosAppearanceType } from "../../types/colors"
|
|
4
|
+
import type { HeliosIntentionType } from "../../types/intentions"
|
|
3
5
|
|
|
4
6
|
export interface AlertBaseProps {
|
|
5
7
|
appearance?: HeliosAppearanceType
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Fragment, type FC, type ElementType } from "react"
|
|
2
|
-
import { Text
|
|
2
|
+
import { Text } from "../Text"
|
|
3
|
+
import { Flex } from "../Flex"
|
|
4
|
+
import { Icon } from "../Icon"
|
|
3
5
|
import type { BreadcrumbProps } from "./Breadcrumb.types"
|
|
4
6
|
|
|
5
7
|
export const Breadcrumb: FC<BreadcrumbProps> = ({ items }) => {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { AriaRole, MouseEvent, MouseEventHandler, SyntheticEvent } from "react"
|
|
2
|
-
import type { HeliosIntentionType
|
|
2
|
+
import type { HeliosIntentionType } from "../../types/intentions"
|
|
3
|
+
import type { HeliosAppearanceType, HeliosColorType } from "../../types/colors"
|
|
4
|
+
import type { HeliosIconType } from "../../types/icons"
|
|
5
|
+
import type { HeliosSizeType } from "../../types/scale"
|
|
3
6
|
|
|
4
7
|
export interface ButtonProps {
|
|
5
8
|
accept?: string
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
import { useId } from "react"
|
|
4
4
|
import { getClasses } from "@heliosgraphics/utils/classnames"
|
|
5
5
|
import { getColorClasses } from "../../utils/colors"
|
|
6
|
-
import { Flex
|
|
6
|
+
import { Flex } from "../Flex"
|
|
7
|
+
import { Icon } from "../Icon"
|
|
8
|
+
import { Text } from "../Text"
|
|
7
9
|
import styles from "./Checkbox.module.css"
|
|
8
10
|
import type { FC } from "react"
|
|
9
11
|
import type { CheckboxProps } from "./Checkbox.types"
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { Button
|
|
1
|
+
import { Button } from "../Button"
|
|
2
|
+
import { ButtonGroup } from "../ButtonGroup"
|
|
3
|
+
import { Dialog } from "../Dialog"
|
|
4
|
+
import { Flex } from "../Flex"
|
|
5
|
+
import { Text } from "../Text"
|
|
2
6
|
import type { ConfirmProps } from "./Confirm.types"
|
|
3
7
|
import type { FC, ReactNode } from "react"
|
|
4
8
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { ButtonGroupProps
|
|
1
|
+
import type { ButtonGroupProps } from "../ButtonGroup/ButtonGroup.types"
|
|
2
|
+
import type { HeliosIconType } from "../../types/icons"
|
|
3
|
+
import type { HeliosIntentionType } from "../../types/intentions"
|
|
2
4
|
|
|
3
5
|
export interface ConfirmProps {
|
|
4
6
|
cancelText: string
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Button
|
|
3
|
+
import { Button } from "../Button"
|
|
4
|
+
import { ButtonGroup } from "../ButtonGroup"
|
|
5
|
+
import { Text } from "../Text"
|
|
6
|
+
import { Flex } from "../Flex"
|
|
7
|
+
import { Separator } from "../Separator"
|
|
4
8
|
import { DebugProps } from "./Debug.types"
|
|
5
9
|
import styles from "./Debug.module.css"
|
|
6
10
|
import { useState } from "react"
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { useEffect, useRef, type FC, MouseEvent } from "react"
|
|
4
4
|
import styles from "./Dialog.module.css"
|
|
5
|
-
import { Button
|
|
5
|
+
import { Button } from "../Button"
|
|
6
|
+
import { ButtonGroup } from "../ButtonGroup"
|
|
7
|
+
import { Heading } from "../Heading"
|
|
8
|
+
import { Flex } from "../Flex"
|
|
6
9
|
import { getClasses } from "@heliosgraphics/utils/classnames"
|
|
7
10
|
import type { DialogProps } from "./Dialog.types"
|
|
8
11
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ResultItem
|
|
1
|
+
import type { ResultItem } from "../shared/ResultList/ResultList.types"
|
|
2
|
+
import type { HeliosPositionType } from "../../types/positions"
|
|
2
3
|
import type { ReactElement } from "react"
|
|
3
4
|
|
|
4
5
|
export interface DropdownProps {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes, MouseEventHandler, PropsWithChildren, ForwardedRef } from "react"
|
|
2
|
-
import type { HeliosScaleType, HeliosRadiusType
|
|
2
|
+
import type { HeliosScaleType, HeliosRadiusType } from "../../types/scale"
|
|
3
|
+
import type { HeliosEmphasisType } from "../../types/intentions"
|
|
3
4
|
|
|
4
5
|
export type ResponsiveScaleType = HeliosScaleType | [HeliosScaleType, HeliosScaleType, HeliosScaleType]
|
|
5
6
|
export type ResponsiveRadiusType = HeliosRadiusType | [HeliosRadiusType, HeliosRadiusType, HeliosRadiusType]
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import { useId, type FC } from "react"
|
|
4
4
|
import { getClasses } from "@heliosgraphics/utils/classnames"
|
|
5
|
-
import { Button
|
|
5
|
+
import { Button } from "../Button"
|
|
6
|
+
import { ButtonGroup } from "../ButtonGroup"
|
|
7
|
+
import { Loading } from "../Loading"
|
|
8
|
+
import { Text } from "../Text"
|
|
9
|
+
import { Flex } from "../Flex"
|
|
6
10
|
import { InputLabel } from "../shared/InputLabel"
|
|
7
11
|
import { ResultList } from "../shared/ResultList"
|
|
8
12
|
import styles from "./Input.module.css"
|
|
9
13
|
import type { InputProps } from "./Input.types"
|
|
10
|
-
import type { ResultItem } from "
|
|
14
|
+
import type { ResultItem } from "../shared/ResultList"
|
|
11
15
|
|
|
12
16
|
export const Input: FC<InputProps> = ({
|
|
13
17
|
helperText,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HeliosAttributeMeta } from "
|
|
1
|
+
import type { HeliosAttributeMeta } from "../../../../../../types/meta"
|
|
2
2
|
import type { LayoutAsideContentBaseProps } from "./LayoutAsideContent.types"
|
|
3
3
|
|
|
4
4
|
export const meta: HeliosAttributeMeta<LayoutAsideContentBaseProps> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HeliosAttributeMeta } from "
|
|
1
|
+
import type { HeliosAttributeMeta } from "../../../../../../types/meta"
|
|
2
2
|
import type { LayoutAsideToggleProps } from "./LayoutAsideToggle.types"
|
|
3
3
|
|
|
4
4
|
export const meta: HeliosAttributeMeta<LayoutAsideToggleProps> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HeliosAttributeMeta } from "
|
|
1
|
+
import type { HeliosAttributeMeta } from "../../../../../../types/meta"
|
|
2
2
|
import type { LayoutMainContentBaseProps } from "./LayoutMainContent.types"
|
|
3
3
|
|
|
4
4
|
export const meta: HeliosAttributeMeta<LayoutMainContentBaseProps> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HeliosAttributeMeta } from "
|
|
1
|
+
import type { HeliosAttributeMeta } from "../../../../types/meta"
|
|
2
2
|
import type { LayoutNavigationBaseProps } from "./LayoutNavigation.types"
|
|
3
3
|
|
|
4
4
|
export const meta: HeliosAttributeMeta<LayoutNavigationBaseProps> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HeliosAttributeMeta } from "
|
|
1
|
+
import type { HeliosAttributeMeta } from "../../../../types/meta"
|
|
2
2
|
import type { LayoutSubNavigationBaseProps } from "./LayoutSubNavigation.types"
|
|
3
3
|
|
|
4
4
|
export const meta: HeliosAttributeMeta<LayoutSubNavigationBaseProps> = {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import { useEffect, useState, type FC } from "react"
|
|
4
|
-
import { Flex
|
|
4
|
+
import { Flex } from "../../../Flex"
|
|
5
|
+
import { Icon } from "../../../Icon"
|
|
6
|
+
import { Text } from "../../../Text"
|
|
5
7
|
import { getClasses } from "@heliosgraphics/utils"
|
|
6
8
|
import styles from "./MenuCategory.module.css"
|
|
7
9
|
import type { MenuCategoryProps } from "./MenuCategory.types"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import { FC } from "react"
|
|
4
|
-
import { Input } from "
|
|
4
|
+
import { Input } from "../../../Input"
|
|
5
5
|
import { getClasses } from "@heliosgraphics/utils"
|
|
6
6
|
import styles from "./MenuFilter.module.css"
|
|
7
7
|
import type { MenuFilterProps } from "./MenuFilter.types"
|