@helpwave/hightide-native 0.0.5 → 0.0.6
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/package.json +4 -3
- package/src/components/chat/ChatAttachmentCard.tsx +4 -4
- package/src/components/chat/ChatConversationList.tsx +3 -3
- package/src/components/chat/ChatConversationRow.tsx +3 -3
- package/src/components/chat/ChatDateDivider.tsx +3 -3
- package/src/components/chat/ChatMessageBubble.tsx +3 -3
- package/src/components/chat/ChatMessageCard.tsx +3 -3
- package/src/components/chat/ChatMessageComposer.tsx +4 -4
- package/src/components/chat/ChatMessageList.tsx +3 -3
- package/src/components/chat/ChatQuickReplyChip.tsx +3 -3
- package/src/components/chat/ChatSystemLine.tsx +3 -3
- package/src/components/chat/ChatThreadHeader.tsx +3 -3
- package/src/components/menu/Menu.tsx +3 -3
- package/src/components/menu/MenuActionItem.tsx +3 -3
- package/src/components/menu/MenuItem.tsx +3 -3
- package/src/components/menu/MenuNavigationItem.tsx +3 -3
- package/src/components/user-interaction/Button.tsx +3 -3
- package/src/components/user-interaction/Checkbox.tsx +5 -5
- package/src/components/user-interaction/IconButton.tsx +4 -4
- package/src/components/user-interaction/Input.tsx +4 -4
- package/src/components/user-interaction/MultiSelect.tsx +6 -6
- package/src/components/user-interaction/Select.tsx +4 -4
- package/src/components/visualization-and-display/Chip.tsx +3 -3
- package/src/components/visualization-and-display/Icon.tsx +1 -1
- package/src/global-contexts/HightideProvider.tsx +5 -5
- package/src/global-contexts/hightide-config/HightideConfigUtils.ts +3 -3
- package/src/global-contexts/localization/LocalizationProvider.tsx +2 -2
- package/src/global-contexts/theme/ThemeContext.ts +2 -2
- package/src/global-contexts/theme/ThemeProvider.tsx +6 -6
- package/src/theme/resolvers/button.ts +5 -5
- package/src/theme/resolvers/chat.ts +4 -4
- package/src/theme/resolvers/checkbox.ts +3 -3
- package/src/theme/resolvers/chip.ts +5 -5
- package/src/theme/resolvers/coloring.ts +3 -3
- package/src/theme/resolvers/iconButton.ts +5 -5
- package/src/theme/resolvers/input.ts +3 -3
- package/src/theme/resolvers/menu.ts +3 -3
- package/src/theme/resolvers/multiSelect.ts +3 -3
- package/src/theme/resolvers/select.ts +3 -3
- package/src/theme/themes/createTheme.ts +11 -11
- package/src/theme/themes/nativeThemes.ts +1 -1
- package/src/theme/types/components/button.ts +1 -1
- package/src/theme/types/components/chat.ts +2 -2
- package/src/theme/types/components/checkbox.ts +2 -2
- package/src/theme/types/components/chip.ts +1 -1
- package/src/theme/types/components/hightide.ts +10 -10
- package/src/theme/types/components/iconButton.ts +2 -2
- package/src/theme/types/components/input.ts +2 -2
- package/src/theme/types/components/menu.ts +2 -2
- package/src/theme/types/components/multiSelect.ts +3 -3
- package/src/theme/types/components/select.ts +2 -2
- package/src/theme/types/theme.ts +5 -5
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"license": "AGPL-3.0-only",
|
|
13
|
-
"version": "0.0.
|
|
13
|
+
"version": "0.0.6",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"files": [
|
|
16
16
|
"src"
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"lucide-react-native": "0.561.0",
|
|
46
|
-
"@helpwave/hightide-design": "0.0.
|
|
47
|
-
"@helpwave/hightide-utils": "0.0.
|
|
46
|
+
"@helpwave/hightide-design": "0.0.4",
|
|
47
|
+
"@helpwave/hightide-utils": "0.0.4"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@react-native-async-storage/async-storage": ">=2.0.0",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"@types/react": "19.2.3",
|
|
62
62
|
"@types/react-dom": "19.2.3",
|
|
63
63
|
"eslint": "9.31.0",
|
|
64
|
+
"eslint-plugin-import": "2.32.0",
|
|
64
65
|
"eslint-plugin-storybook": "10.4.5",
|
|
65
66
|
"react": "19.2.3",
|
|
66
67
|
"react-dom": "19.2.3",
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
FileText
|
|
15
15
|
} from 'lucide-react-native'
|
|
16
16
|
|
|
17
|
-
import { IconButton } from '
|
|
18
|
-
import { useTheme } from '
|
|
17
|
+
import { IconButton } from '../user-interaction/IconButton'
|
|
18
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
19
19
|
import type {
|
|
20
20
|
ChatAttachmentCardMetadataStyle,
|
|
21
21
|
ChatAttachmentCardNameStyle,
|
|
22
22
|
ChatAttachmentCardState,
|
|
23
23
|
ChatAttachmentCardStyle,
|
|
24
24
|
ChatMessageDirection
|
|
25
|
-
} from '
|
|
26
|
-
import type { StyleOverwrite } from '
|
|
25
|
+
} from '../../theme/types/components/chat'
|
|
26
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
27
27
|
|
|
28
28
|
export type ChatAttachmentCardProps = Omit<ViewProps, 'style'> & {
|
|
29
29
|
name: ReactNode,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
type ViewStyle
|
|
11
11
|
} from 'react-native'
|
|
12
12
|
|
|
13
|
-
import { useTheme } from '
|
|
13
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
14
14
|
import type {
|
|
15
15
|
ChatConversationListFooterStyle,
|
|
16
16
|
ChatConversationListHeaderStyle,
|
|
17
17
|
ChatConversationListStyle
|
|
18
|
-
} from '
|
|
19
|
-
import type { StyleOverwrite } from '
|
|
18
|
+
} from '../../theme/types/components/chat'
|
|
19
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
20
20
|
|
|
21
21
|
export type ChatConversationListProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
22
22
|
header?: ReactNode,
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
CheckCheck
|
|
17
17
|
} from 'lucide-react-native'
|
|
18
18
|
|
|
19
|
-
import { useTheme } from '
|
|
19
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
20
20
|
import type {
|
|
21
21
|
ChatConversationRowPreviewStyle,
|
|
22
22
|
ChatConversationRowState,
|
|
23
23
|
ChatConversationRowStyle,
|
|
24
24
|
ChatConversationRowTimestampStyle,
|
|
25
25
|
ChatConversationRowTitleStyle
|
|
26
|
-
} from '
|
|
27
|
-
import type { StyleOverwrite } from '
|
|
26
|
+
} from '../../theme/types/components/chat'
|
|
27
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
28
28
|
|
|
29
29
|
export type ChatConversationSentIndicator = 'sent' | 'sentAndReceived'
|
|
30
30
|
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
type ViewStyle
|
|
11
11
|
} from 'react-native'
|
|
12
12
|
|
|
13
|
-
import { useTheme } from '
|
|
13
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
14
14
|
import type {
|
|
15
15
|
ChatDateDividerStyle,
|
|
16
16
|
ChatDateDividerTextStyle
|
|
17
|
-
} from '
|
|
18
|
-
import type { StyleOverwrite } from '
|
|
17
|
+
} from '../../theme/types/components/chat'
|
|
18
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
19
19
|
|
|
20
20
|
export type ChatDateDividerProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
21
21
|
children?: ReactNode,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from 'react-native'
|
|
12
12
|
import { CheckCheck } from 'lucide-react-native'
|
|
13
13
|
|
|
14
|
-
import { useTheme } from '
|
|
14
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
15
15
|
import type {
|
|
16
16
|
ChatMessageBubbleContainerStyle,
|
|
17
17
|
ChatMessageBubbleContentStyle,
|
|
@@ -19,8 +19,8 @@ import type {
|
|
|
19
19
|
ChatMessageBubbleStyle,
|
|
20
20
|
ChatMessageBubbleTimestampStyle,
|
|
21
21
|
ChatMessageDirection
|
|
22
|
-
} from '
|
|
23
|
-
import type { StyleOverwrite } from '
|
|
22
|
+
} from '../../theme/types/components/chat'
|
|
23
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
24
24
|
|
|
25
25
|
export type { ChatMessageDirection }
|
|
26
26
|
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
|
|
13
13
|
import type { ColoringType } from '@helpwave/hightide-design/helpers'
|
|
14
14
|
|
|
15
|
-
import { useTheme } from '
|
|
15
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
16
16
|
import type {
|
|
17
17
|
ChatMessageCardState,
|
|
18
18
|
ChatMessageCardStyle,
|
|
19
19
|
ChatMessageCardSubtitleStyle,
|
|
20
20
|
ChatMessageCardTitleStyle,
|
|
21
21
|
ChatMessageDirection
|
|
22
|
-
} from '
|
|
23
|
-
import type { StyleOverwrite } from '
|
|
22
|
+
} from '../../theme/types/components/chat'
|
|
23
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
24
24
|
|
|
25
25
|
export type ChatMessageCardProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
26
26
|
icon?: ReactNode,
|
|
@@ -13,13 +13,13 @@ import { SendHorizontal } from 'lucide-react-native'
|
|
|
13
13
|
|
|
14
14
|
import { useControlledState } from '@helpwave/hightide-utils/hooks'
|
|
15
15
|
|
|
16
|
-
import { IconButton } from '
|
|
17
|
-
import { useTheme } from '
|
|
16
|
+
import { IconButton } from '../user-interaction/IconButton'
|
|
17
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
18
18
|
import type {
|
|
19
19
|
ChatMessageComposerInputStyle,
|
|
20
20
|
ChatMessageComposerStyle
|
|
21
|
-
} from '
|
|
22
|
-
import type { StyleOverwrite } from '
|
|
21
|
+
} from '../../theme/types/components/chat'
|
|
22
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
23
23
|
|
|
24
24
|
export type ChatMessageComposerProps = Omit<ViewProps, 'style'> & {
|
|
25
25
|
value?: string,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
type ViewStyle
|
|
13
13
|
} from 'react-native'
|
|
14
14
|
|
|
15
|
-
import { useTheme } from '
|
|
16
|
-
import type { ChatMessageListStyle } from '
|
|
17
|
-
import type { StyleOverwrite } from '
|
|
15
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
16
|
+
import type { ChatMessageListStyle } from '../../theme/types/components/chat'
|
|
17
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
18
18
|
|
|
19
19
|
export type ChatMessageListProps = {
|
|
20
20
|
autoScroll?: boolean,
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
type ViewStyle
|
|
8
8
|
} from 'react-native'
|
|
9
9
|
|
|
10
|
-
import { useTheme } from '
|
|
10
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
11
11
|
import type {
|
|
12
12
|
ChatQuickReplyChipState,
|
|
13
13
|
ChatQuickReplyChipStyle,
|
|
14
14
|
ChatQuickReplyChipTextStyle
|
|
15
|
-
} from '
|
|
16
|
-
import type { StyleOverwrite } from '
|
|
15
|
+
} from '../../theme/types/components/chat'
|
|
16
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
17
17
|
|
|
18
18
|
export type ChatQuickReplyChipProps = Omit<PressableProps, 'children' | 'style'> & {
|
|
19
19
|
isActive?: boolean,
|
|
@@ -13,13 +13,13 @@ import { CheckCheck } from 'lucide-react-native'
|
|
|
13
13
|
|
|
14
14
|
import type { ColoringType } from '@helpwave/hightide-design/helpers'
|
|
15
15
|
|
|
16
|
-
import { useTheme } from '
|
|
16
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
17
17
|
import type {
|
|
18
18
|
ChatSystemLineState,
|
|
19
19
|
ChatSystemLineStyle,
|
|
20
20
|
ChatSystemLineTextStyle
|
|
21
|
-
} from '
|
|
22
|
-
import type { StyleOverwrite } from '
|
|
21
|
+
} from '../../theme/types/components/chat'
|
|
22
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
23
23
|
|
|
24
24
|
export type ChatSystemLineProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
25
25
|
icon?: ReactNode,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
type ViewStyle
|
|
11
11
|
} from 'react-native'
|
|
12
12
|
|
|
13
|
-
import { useTheme } from '
|
|
13
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
14
14
|
import type {
|
|
15
15
|
ChatThreadHeaderStyle,
|
|
16
16
|
ChatThreadHeaderSubtitleStyle,
|
|
17
17
|
ChatThreadHeaderTitleStyle
|
|
18
|
-
} from '
|
|
19
|
-
import type { StyleOverwrite } from '
|
|
18
|
+
} from '../../theme/types/components/chat'
|
|
19
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
20
20
|
|
|
21
21
|
export type ChatThreadHeaderProps = Omit<ViewProps, 'style'> & {
|
|
22
22
|
avatar?: ReactNode,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
type ViewStyle
|
|
11
11
|
} from 'react-native'
|
|
12
12
|
|
|
13
|
-
import { useTheme } from '
|
|
13
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
14
14
|
import type {
|
|
15
15
|
MenuCardStyle,
|
|
16
16
|
MenuSectionStyle,
|
|
17
17
|
MenuSectionTitleStyle
|
|
18
|
-
} from '
|
|
19
|
-
import type { StyleOverwrite } from '
|
|
18
|
+
} from '../../theme/types/components/menu'
|
|
19
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
20
20
|
|
|
21
21
|
export type MenuProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
22
22
|
title: string,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
type ViewStyle
|
|
13
13
|
} from 'react-native'
|
|
14
14
|
|
|
15
|
-
import { useTheme } from '
|
|
15
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
16
16
|
import type {
|
|
17
17
|
MenuActionItemLabelStyle,
|
|
18
18
|
MenuActionItemState,
|
|
19
19
|
MenuActionItemStyle
|
|
20
|
-
} from '
|
|
21
|
-
import type { StyleOverwrite } from '
|
|
20
|
+
} from '../../theme/types/components/menu'
|
|
21
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
22
22
|
|
|
23
23
|
export type MenuActionItemProps = Omit<PressableProps, 'children' | 'style'> & {
|
|
24
24
|
label: string,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
type ViewStyle
|
|
11
11
|
} from 'react-native'
|
|
12
12
|
|
|
13
|
-
import { useTheme } from '
|
|
13
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
14
14
|
import type {
|
|
15
15
|
MenuItemLabelStyle,
|
|
16
16
|
MenuItemStyle,
|
|
17
17
|
MenuItemValueStyle
|
|
18
|
-
} from '
|
|
19
|
-
import type { StyleOverwrite } from '
|
|
18
|
+
} from '../../theme/types/components/menu'
|
|
19
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
20
20
|
|
|
21
21
|
export type MenuItemProps = Omit<ViewProps, 'style'> & {
|
|
22
22
|
label: string,
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
} from 'react-native'
|
|
14
14
|
import { ChevronRight } from 'lucide-react-native'
|
|
15
15
|
|
|
16
|
-
import { useTheme } from '
|
|
16
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
17
17
|
import type {
|
|
18
18
|
MenuActionItemLabelStyle,
|
|
19
19
|
MenuActionItemState,
|
|
20
20
|
MenuActionItemStyle
|
|
21
|
-
} from '
|
|
22
|
-
import type { StyleOverwrite } from '
|
|
21
|
+
} from '../../theme/types/components/menu'
|
|
22
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
23
23
|
|
|
24
24
|
export type MenuNavigationItemProps = Omit<PressableProps, 'children' | 'style'> & {
|
|
25
25
|
label: string,
|
|
@@ -19,13 +19,13 @@ import type {
|
|
|
19
19
|
ElementSize
|
|
20
20
|
} from '@helpwave/hightide-design/types'
|
|
21
21
|
|
|
22
|
-
import { useTheme } from '
|
|
22
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
23
23
|
import type {
|
|
24
24
|
ButtonState,
|
|
25
25
|
ButtonStyle,
|
|
26
26
|
ButtonTextStyle
|
|
27
|
-
} from '
|
|
28
|
-
import type { StyleOverwrite } from '
|
|
27
|
+
} from '../../theme/types/components/button'
|
|
28
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
29
29
|
|
|
30
30
|
export type ButtonSize = ElementSize
|
|
31
31
|
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
useEventCallbackStabilizer
|
|
19
19
|
} from '@helpwave/hightide-utils/hooks'
|
|
20
20
|
|
|
21
|
-
import { Icon } from '
|
|
22
|
-
import { useTheme } from '
|
|
21
|
+
import { Icon } from '../visualization-and-display/Icon'
|
|
22
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
23
23
|
import type {
|
|
24
24
|
CheckboxSize,
|
|
25
25
|
CheckboxState,
|
|
26
26
|
CheckboxStyle
|
|
27
|
-
} from '
|
|
28
|
-
import type { StyleOverwrite } from '
|
|
27
|
+
} from '../../theme/types/components/checkbox'
|
|
28
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
29
29
|
import type {
|
|
30
30
|
FormFieldDataHandling,
|
|
31
31
|
FormFieldInteractionStates
|
|
32
|
-
} from '
|
|
32
|
+
} from '../../types/formField'
|
|
33
33
|
|
|
34
34
|
export type { CheckboxSize }
|
|
35
35
|
|
|
@@ -16,13 +16,13 @@ import type {
|
|
|
16
16
|
ElementSize
|
|
17
17
|
} from '@helpwave/hightide-design/types'
|
|
18
18
|
|
|
19
|
-
import { Icon } from '
|
|
20
|
-
import { useTheme } from '
|
|
19
|
+
import { Icon } from '../visualization-and-display/Icon'
|
|
20
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
21
21
|
import type {
|
|
22
22
|
IconButtonState,
|
|
23
23
|
IconButtonStyle
|
|
24
|
-
} from '
|
|
25
|
-
import type { StyleOverwrite } from '
|
|
24
|
+
} from '../../theme/types/components/iconButton'
|
|
25
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
26
26
|
|
|
27
27
|
export type IconButtonSize = ElementSize
|
|
28
28
|
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
type UseDelayOptionsResolved
|
|
16
16
|
} from '@helpwave/hightide-utils/hooks'
|
|
17
17
|
|
|
18
|
-
import { useTheme } from '
|
|
18
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
19
19
|
import type {
|
|
20
20
|
InputState,
|
|
21
21
|
InputStyle
|
|
22
|
-
} from '
|
|
23
|
-
import type { StyleOverwrite } from '
|
|
22
|
+
} from '../../theme/types/components/input'
|
|
23
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
24
24
|
import type {
|
|
25
25
|
FormFieldDataHandling,
|
|
26
26
|
FormFieldInteractionStates
|
|
27
|
-
} from '
|
|
27
|
+
} from '../../types/formField'
|
|
28
28
|
|
|
29
29
|
export type EditCompleteOptionsResolved = {
|
|
30
30
|
onBlur: boolean,
|
|
@@ -11,18 +11,18 @@ import {
|
|
|
11
11
|
} from 'react-native'
|
|
12
12
|
import { Check } from 'lucide-react-native'
|
|
13
13
|
|
|
14
|
-
import { Chip } from '
|
|
15
|
-
import { Icon } from '
|
|
16
|
-
import { useTheme } from '
|
|
14
|
+
import { Chip } from '../visualization-and-display/Chip'
|
|
15
|
+
import { Icon } from '../visualization-and-display/Icon'
|
|
16
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
17
17
|
import {
|
|
18
18
|
useMultiSelect,
|
|
19
19
|
type UseMultiSelectOption
|
|
20
|
-
} from '
|
|
21
|
-
import type { MultiSelectState } from '
|
|
20
|
+
} from '../../hooks/useMultiSelect'
|
|
21
|
+
import type { MultiSelectState } from '../../theme/types/components/multiSelect'
|
|
22
22
|
import type {
|
|
23
23
|
FormFieldDataHandling,
|
|
24
24
|
FormFieldInteractionStates
|
|
25
|
-
} from '
|
|
25
|
+
} from '../../types/formField'
|
|
26
26
|
|
|
27
27
|
export type MultiSelectOption = UseMultiSelectOption
|
|
28
28
|
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
type ViewStyle
|
|
11
11
|
} from 'react-native'
|
|
12
12
|
|
|
13
|
-
import { useTheme } from '
|
|
13
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
14
14
|
import {
|
|
15
15
|
useSelect,
|
|
16
16
|
type UseSelectOption
|
|
17
|
-
} from '
|
|
18
|
-
import type { SelectState } from '
|
|
17
|
+
} from '../../hooks/useSelect'
|
|
18
|
+
import type { SelectState } from '../../theme/types/components/select'
|
|
19
19
|
import type {
|
|
20
20
|
FormFieldDataHandling,
|
|
21
21
|
FormFieldInteractionStates
|
|
22
|
-
} from '
|
|
22
|
+
} from '../../types/formField'
|
|
23
23
|
|
|
24
24
|
export type SelectOption<T extends string = string> = UseSelectOption & {
|
|
25
25
|
value?: T,
|
|
@@ -19,13 +19,13 @@ import type {
|
|
|
19
19
|
ElementSize
|
|
20
20
|
} from '@helpwave/hightide-design/types'
|
|
21
21
|
|
|
22
|
-
import { useTheme } from '
|
|
22
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
23
23
|
import type {
|
|
24
24
|
ChipState,
|
|
25
25
|
ChipStyle,
|
|
26
26
|
ChipTextStyle
|
|
27
|
-
} from '
|
|
28
|
-
import type { StyleOverwrite } from '
|
|
27
|
+
} from '../../theme/types/components/chip'
|
|
28
|
+
import type { StyleOverwrite } from '../../theme/types/resolver'
|
|
29
29
|
|
|
30
30
|
export type ChipSize = ElementSize
|
|
31
31
|
|
|
@@ -2,7 +2,7 @@ import type { LucideIcon } from 'lucide-react-native'
|
|
|
2
2
|
|
|
3
3
|
import type { ElementSize } from '@helpwave/hightide-design/types'
|
|
4
4
|
|
|
5
|
-
import { useTheme } from '
|
|
5
|
+
import { useTheme } from '../../global-contexts/theme/ThemeContext'
|
|
6
6
|
|
|
7
7
|
export type IconProps = {
|
|
8
8
|
icon: LucideIcon,
|
|
@@ -7,20 +7,20 @@ import { useLocalization } from '@helpwave/hightide-utils/context/localization'
|
|
|
7
7
|
import { hightideTranslation } from '@helpwave/hightide-utils/i18n'
|
|
8
8
|
import { ArrayUtil } from '@helpwave/hightide-utils/utils'
|
|
9
9
|
|
|
10
|
-
import { HightideContext } from '
|
|
10
|
+
import { HightideContext } from './HightideContext'
|
|
11
11
|
import {
|
|
12
12
|
LocalizationProvider,
|
|
13
13
|
type LocalizationProviderProps
|
|
14
|
-
} from '
|
|
15
|
-
import { useTheme } from '
|
|
14
|
+
} from './localization/LocalizationProvider'
|
|
15
|
+
import { useTheme } from './theme/ThemeContext'
|
|
16
16
|
import {
|
|
17
17
|
ThemeProvider,
|
|
18
18
|
type ThemeProviderProps
|
|
19
|
-
} from '
|
|
19
|
+
} from './theme/ThemeProvider'
|
|
20
20
|
import {
|
|
21
21
|
TranslationProvider,
|
|
22
22
|
type TranslationProviderProps
|
|
23
|
-
} from '
|
|
23
|
+
} from './translation/forward-exports'
|
|
24
24
|
|
|
25
25
|
export type HightideProviderProps = PropsWithChildren & {
|
|
26
26
|
theme?: Omit<ThemeProviderProps, 'children'>,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SupportedThemesConfig } from '@helpwave/hightide-utils/context'
|
|
2
2
|
|
|
3
|
-
import type { SupportedLocalesConfig } from '
|
|
4
|
-
import { themes } from '
|
|
5
|
-
import type { Theme } from '
|
|
3
|
+
import type { SupportedLocalesConfig } from '../localization/forward-exports'
|
|
4
|
+
import { themes } from '../../theme/themes/nativeThemes'
|
|
5
|
+
import type { Theme } from '../../theme/types/theme'
|
|
6
6
|
|
|
7
7
|
export const HightideConfigUtils = {
|
|
8
8
|
defaultSupportedLocales: {
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
type LocalizationProviderProps as LocalizationProviderPropsBase
|
|
6
6
|
} from '@helpwave/hightide-utils/context/localization'
|
|
7
7
|
|
|
8
|
-
import { HightideConfigUtils } from '
|
|
9
|
-
import { useNativeKeyValueStore } from '
|
|
8
|
+
import { HightideConfigUtils } from '../hightide-config/HightideConfigUtils'
|
|
9
|
+
import { useNativeKeyValueStore } from '../../hooks/useNativeKeyValueStore'
|
|
10
10
|
|
|
11
11
|
export type LocalizationProviderProps = PropsWithChildren
|
|
12
12
|
& Omit<LocalizationProviderPropsBase, 'store' | 'fallbackLocale' | 'supportedLocales'>
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
import type {
|
|
7
7
|
ThemeConfigValue,
|
|
8
8
|
ThemeInformation
|
|
9
|
-
} from '
|
|
10
|
-
import type { Theme } from '
|
|
9
|
+
} from './forward-exports'
|
|
10
|
+
import type { Theme } from '../../theme/types/theme'
|
|
11
11
|
|
|
12
12
|
export type { ThemeInformation }
|
|
13
13
|
|
|
@@ -8,19 +8,19 @@ import { Appearance } from 'react-native'
|
|
|
8
8
|
|
|
9
9
|
import type { SupportedThemesConfig } from '@helpwave/hightide-utils/context'
|
|
10
10
|
|
|
11
|
-
import { HightideConfigUtils } from '
|
|
11
|
+
import { HightideConfigUtils } from '../hightide-config/HightideConfigUtils'
|
|
12
12
|
import {
|
|
13
13
|
ThemeContext,
|
|
14
14
|
useTheme,
|
|
15
15
|
type ThemeContextValue
|
|
16
|
-
} from '
|
|
16
|
+
} from './ThemeContext'
|
|
17
17
|
import {
|
|
18
18
|
useCreateThemeConfig,
|
|
19
19
|
type SystemTheme
|
|
20
|
-
} from '
|
|
21
|
-
import { useNativeKeyValueStore } from '
|
|
22
|
-
import type { ThemeMode } from '
|
|
23
|
-
import type { Theme } from '
|
|
20
|
+
} from './forward-exports'
|
|
21
|
+
import { useNativeKeyValueStore } from '../../hooks/useNativeKeyValueStore'
|
|
22
|
+
import type { ThemeMode } from '../../theme/themes/nativeThemes'
|
|
23
|
+
import type { Theme } from '../../theme/types/theme'
|
|
24
24
|
|
|
25
25
|
export type ThemeProviderProps<T> = PropsWithChildren & {
|
|
26
26
|
theme?: ThemeMode | null,
|
|
@@ -15,14 +15,14 @@ import type {
|
|
|
15
15
|
import {
|
|
16
16
|
isOutlineColoringStyle,
|
|
17
17
|
resolveColoringStyles
|
|
18
|
-
} from '
|
|
19
|
-
import type { HightideSemanticColors } from '
|
|
18
|
+
} from './coloring'
|
|
19
|
+
import type { HightideSemanticColors } from '../types/color'
|
|
20
20
|
import type {
|
|
21
21
|
ButtonState,
|
|
22
22
|
ButtonTheme
|
|
23
|
-
} from '
|
|
24
|
-
import type { HightideComponentThemes } from '
|
|
25
|
-
import { createStyleResolver } from '
|
|
23
|
+
} from '../types/components/button'
|
|
24
|
+
import type { HightideComponentThemes } from '../types/components/hightide'
|
|
25
|
+
import { createStyleResolver } from '../types/resolver'
|
|
26
26
|
|
|
27
27
|
const buttonFontSizes: Record<ElementSize, number> = {
|
|
28
28
|
xs: 12,
|
|
@@ -14,7 +14,7 @@ import type {
|
|
|
14
14
|
import type {
|
|
15
15
|
Color,
|
|
16
16
|
HightideSemanticColors
|
|
17
|
-
} from '
|
|
17
|
+
} from '../types/color'
|
|
18
18
|
import type {
|
|
19
19
|
ChatAttachmentCardState,
|
|
20
20
|
ChatConversationRowState,
|
|
@@ -23,12 +23,12 @@ import type {
|
|
|
23
23
|
ChatQuickReplyChipState,
|
|
24
24
|
ChatSystemLineState,
|
|
25
25
|
ChatTheme
|
|
26
|
-
} from '
|
|
27
|
-
import type { HightideComponentThemes } from '
|
|
26
|
+
} from '../types/components/chat'
|
|
27
|
+
import type { HightideComponentThemes } from '../types/components/hightide'
|
|
28
28
|
import {
|
|
29
29
|
createStyleResolver,
|
|
30
30
|
createValueResolver
|
|
31
|
-
} from '
|
|
31
|
+
} from '../types/resolver'
|
|
32
32
|
|
|
33
33
|
export type CreateChatThemeOptions = {
|
|
34
34
|
semantic: HightideSemanticColors,
|
|
@@ -7,16 +7,16 @@ import type {
|
|
|
7
7
|
ElementSize
|
|
8
8
|
} from '@helpwave/hightide-design/types'
|
|
9
9
|
|
|
10
|
-
import type { HightideSemanticColors } from '
|
|
10
|
+
import type { HightideSemanticColors } from '../types/color'
|
|
11
11
|
import type {
|
|
12
12
|
CheckboxSize,
|
|
13
13
|
CheckboxState,
|
|
14
14
|
CheckboxTheme
|
|
15
|
-
} from '
|
|
15
|
+
} from '../types/components/checkbox'
|
|
16
16
|
import {
|
|
17
17
|
createStyleResolver,
|
|
18
18
|
createValueResolver
|
|
19
|
-
} from '
|
|
19
|
+
} from '../types/resolver'
|
|
20
20
|
|
|
21
21
|
const checkboxSizes: Record<CheckboxSize, number> = {
|
|
22
22
|
sm: 20,
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from '@helpwave/hightide-design/tokens'
|
|
10
10
|
import type { HightideDesignTokens as DesignTokensTheme } from '@helpwave/hightide-design/types'
|
|
11
11
|
|
|
12
|
-
import { resolveColoringStyles } from '
|
|
13
|
-
import type { HightideSemanticColors } from '
|
|
12
|
+
import { resolveColoringStyles } from './coloring'
|
|
13
|
+
import type { HightideSemanticColors } from '../types/color'
|
|
14
14
|
import type {
|
|
15
15
|
ChipState,
|
|
16
16
|
ChipTheme
|
|
17
|
-
} from '
|
|
18
|
-
import type { HightideComponentThemes } from '
|
|
19
|
-
import { createStyleResolver } from '
|
|
17
|
+
} from '../types/components/chip'
|
|
18
|
+
import type { HightideComponentThemes } from '../types/components/hightide'
|
|
19
|
+
import { createStyleResolver } from '../types/resolver'
|
|
20
20
|
|
|
21
21
|
export type CreateChipThemeOptions = {
|
|
22
22
|
semantic: HightideSemanticColors,
|
|
@@ -11,9 +11,9 @@ import type {
|
|
|
11
11
|
import type {
|
|
12
12
|
Color,
|
|
13
13
|
HightideSemanticColors
|
|
14
|
-
} from '
|
|
15
|
-
import type { ColoringDefinition } from '
|
|
16
|
-
import type { InteractionState } from '
|
|
14
|
+
} from '../types/color'
|
|
15
|
+
import type { ColoringDefinition } from '../types/components/hightide'
|
|
16
|
+
import type { InteractionState } from '../types/resolver'
|
|
17
17
|
|
|
18
18
|
export type ResolvedColoringStyles = {
|
|
19
19
|
backgroundColor: Color | 'transparent',
|
|
@@ -6,17 +6,17 @@ import type { HightideDesignTokens as DesignTokensTheme } from '@helpwave/highti
|
|
|
6
6
|
import {
|
|
7
7
|
isOutlineColoringStyle,
|
|
8
8
|
resolveColoringStyles
|
|
9
|
-
} from '
|
|
10
|
-
import type { HightideSemanticColors } from '
|
|
11
|
-
import type { HightideComponentThemes } from '
|
|
9
|
+
} from './coloring'
|
|
10
|
+
import type { HightideSemanticColors } from '../types/color'
|
|
11
|
+
import type { HightideComponentThemes } from '../types/components/hightide'
|
|
12
12
|
import type {
|
|
13
13
|
IconButtonState,
|
|
14
14
|
IconButtonTheme
|
|
15
|
-
} from '
|
|
15
|
+
} from '../types/components/iconButton'
|
|
16
16
|
import {
|
|
17
17
|
createStyleResolver,
|
|
18
18
|
createValueResolver
|
|
19
|
-
} from '
|
|
19
|
+
} from '../types/resolver'
|
|
20
20
|
|
|
21
21
|
export type CreateIconButtonThemeOptions = {
|
|
22
22
|
semantic: HightideSemanticColors,
|
|
@@ -6,15 +6,15 @@ import type {
|
|
|
6
6
|
HightideDesignTokens as DesignTokensTheme
|
|
7
7
|
} from '@helpwave/hightide-design/types'
|
|
8
8
|
|
|
9
|
-
import type { HightideSemanticColors } from '
|
|
9
|
+
import type { HightideSemanticColors } from '../types/color'
|
|
10
10
|
import type {
|
|
11
11
|
InputState,
|
|
12
12
|
InputTheme
|
|
13
|
-
} from '
|
|
13
|
+
} from '../types/components/input'
|
|
14
14
|
import {
|
|
15
15
|
createStyleResolver,
|
|
16
16
|
createValueResolver
|
|
17
|
-
} from '
|
|
17
|
+
} from '../types/resolver'
|
|
18
18
|
|
|
19
19
|
export type CreateInputThemeOptions = {
|
|
20
20
|
semantic: HightideSemanticColors,
|
|
@@ -6,15 +6,15 @@ import type {
|
|
|
6
6
|
HightideDesignTokens as DesignTokensTheme
|
|
7
7
|
} from '@helpwave/hightide-design/types'
|
|
8
8
|
|
|
9
|
-
import type { HightideSemanticColors } from '
|
|
9
|
+
import type { HightideSemanticColors } from '../types/color'
|
|
10
10
|
import type {
|
|
11
11
|
MenuActionItemState,
|
|
12
12
|
MenuTheme
|
|
13
|
-
} from '
|
|
13
|
+
} from '../types/components/menu'
|
|
14
14
|
import {
|
|
15
15
|
createStyleResolver,
|
|
16
16
|
createValueResolver
|
|
17
|
-
} from '
|
|
17
|
+
} from '../types/resolver'
|
|
18
18
|
|
|
19
19
|
export type CreateMenuThemeOptions = {
|
|
20
20
|
semantic: HightideSemanticColors,
|
|
@@ -4,16 +4,16 @@ import type {
|
|
|
4
4
|
HightideDesignTokens as DesignTokensTheme
|
|
5
5
|
} from '@helpwave/hightide-design/types'
|
|
6
6
|
|
|
7
|
-
import type { HightideSemanticColors } from '
|
|
7
|
+
import type { HightideSemanticColors } from '../types/color'
|
|
8
8
|
import type {
|
|
9
9
|
MultiSelectOptionState,
|
|
10
10
|
MultiSelectState,
|
|
11
11
|
MultiSelectTheme
|
|
12
|
-
} from '
|
|
12
|
+
} from '../types/components/multiSelect'
|
|
13
13
|
import {
|
|
14
14
|
createStyleResolver,
|
|
15
15
|
createValueResolver
|
|
16
|
-
} from '
|
|
16
|
+
} from '../types/resolver'
|
|
17
17
|
|
|
18
18
|
export type CreateMultiSelectThemeOptions = {
|
|
19
19
|
semantic: HightideSemanticColors,
|
|
@@ -4,16 +4,16 @@ import type {
|
|
|
4
4
|
HightideDesignTokens as DesignTokensTheme
|
|
5
5
|
} from '@helpwave/hightide-design/types'
|
|
6
6
|
|
|
7
|
-
import type { HightideSemanticColors } from '
|
|
7
|
+
import type { HightideSemanticColors } from '../types/color'
|
|
8
8
|
import type {
|
|
9
9
|
SelectOptionState,
|
|
10
10
|
SelectState,
|
|
11
11
|
SelectTheme
|
|
12
|
-
} from '
|
|
12
|
+
} from '../types/components/select'
|
|
13
13
|
import {
|
|
14
14
|
createStyleResolver,
|
|
15
15
|
createValueResolver
|
|
16
|
-
} from '
|
|
16
|
+
} from '../types/resolver'
|
|
17
17
|
|
|
18
18
|
export type CreateSelectThemeOptions = {
|
|
19
19
|
semantic: HightideSemanticColors,
|
|
@@ -3,21 +3,21 @@ import type {
|
|
|
3
3
|
HightideDesignTokens
|
|
4
4
|
} from '@helpwave/hightide-design/types'
|
|
5
5
|
|
|
6
|
-
import { createButtonThemeFromDesign } from '
|
|
7
|
-
import { createChatThemeFromDesign } from '
|
|
8
|
-
import { createCheckboxThemeFromDesign } from '
|
|
9
|
-
import { createChipThemeFromDesign } from '
|
|
10
|
-
import { createIconButtonThemeFromDesign } from '
|
|
11
|
-
import { createInputThemeFromDesign } from '
|
|
12
|
-
import { createMenuThemeFromDesign } from '
|
|
13
|
-
import { createMultiSelectThemeFromDesign } from '
|
|
14
|
-
import { createSelectThemeFromDesign } from '
|
|
6
|
+
import { createButtonThemeFromDesign } from '../resolvers/button'
|
|
7
|
+
import { createChatThemeFromDesign } from '../resolvers/chat'
|
|
8
|
+
import { createCheckboxThemeFromDesign } from '../resolvers/checkbox'
|
|
9
|
+
import { createChipThemeFromDesign } from '../resolvers/chip'
|
|
10
|
+
import { createIconButtonThemeFromDesign } from '../resolvers/iconButton'
|
|
11
|
+
import { createInputThemeFromDesign } from '../resolvers/input'
|
|
12
|
+
import { createMenuThemeFromDesign } from '../resolvers/menu'
|
|
13
|
+
import { createMultiSelectThemeFromDesign } from '../resolvers/multiSelect'
|
|
14
|
+
import { createSelectThemeFromDesign } from '../resolvers/select'
|
|
15
15
|
import type {
|
|
16
16
|
Color,
|
|
17
17
|
ColorPalette,
|
|
18
18
|
HightideColors
|
|
19
|
-
} from '
|
|
20
|
-
import type { Theme } from '
|
|
19
|
+
} from '../types/color'
|
|
20
|
+
import type { Theme } from '../types/theme'
|
|
21
21
|
|
|
22
22
|
const unwrapColorPaletteToken = (token: ColorPaletteToken): Color | ColorPalette => {
|
|
23
23
|
if (token.type === 'singleValue') {
|
|
@@ -5,11 +5,11 @@ import type {
|
|
|
5
5
|
|
|
6
6
|
import type { ColoringType } from '@helpwave/hightide-design/helpers'
|
|
7
7
|
|
|
8
|
-
import type { Color } from '
|
|
8
|
+
import type { Color } from '../color'
|
|
9
9
|
import type {
|
|
10
10
|
InteractionState,
|
|
11
11
|
StyleResolverFunction
|
|
12
|
-
} from '
|
|
12
|
+
} from '../resolver'
|
|
13
13
|
|
|
14
14
|
export type ChatMessageDirection = 'incoming' | 'outgoing'
|
|
15
15
|
|
|
@@ -2,11 +2,11 @@ import type { ViewStyle } from 'react-native'
|
|
|
2
2
|
|
|
3
3
|
import type { ElementSize } from '@helpwave/hightide-design/types'
|
|
4
4
|
|
|
5
|
-
import type { Color } from '
|
|
5
|
+
import type { Color } from '../color'
|
|
6
6
|
import type {
|
|
7
7
|
InteractionState,
|
|
8
8
|
StyleResolverFunction
|
|
9
|
-
} from '
|
|
9
|
+
} from '../resolver'
|
|
10
10
|
|
|
11
11
|
export type CheckboxSize = 'sm' | 'md' | 'lg'
|
|
12
12
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { Color } from '
|
|
2
|
-
import type { ButtonTheme } from '
|
|
3
|
-
import type { ChatTheme } from '
|
|
4
|
-
import type { CheckboxTheme } from '
|
|
5
|
-
import type { ChipTheme } from '
|
|
6
|
-
import type { IconButtonTheme } from '
|
|
7
|
-
import type { InputTheme } from '
|
|
8
|
-
import type { MenuTheme } from '
|
|
9
|
-
import type { MultiSelectTheme } from '
|
|
10
|
-
import type { SelectTheme } from '
|
|
1
|
+
import type { Color } from '../color'
|
|
2
|
+
import type { ButtonTheme } from './button'
|
|
3
|
+
import type { ChatTheme } from './chat'
|
|
4
|
+
import type { CheckboxTheme } from './checkbox'
|
|
5
|
+
import type { ChipTheme } from './chip'
|
|
6
|
+
import type { IconButtonTheme } from './iconButton'
|
|
7
|
+
import type { InputTheme } from './input'
|
|
8
|
+
import type { MenuTheme } from './menu'
|
|
9
|
+
import type { MultiSelectTheme } from './multiSelect'
|
|
10
|
+
import type { SelectTheme } from './select'
|
|
11
11
|
|
|
12
12
|
export type ColoringDefinition = {
|
|
13
13
|
color: Color,
|
|
@@ -6,11 +6,11 @@ import type {
|
|
|
6
6
|
ElementSize
|
|
7
7
|
} from '@helpwave/hightide-design/types'
|
|
8
8
|
|
|
9
|
-
import type { Color } from '
|
|
9
|
+
import type { Color } from '../color'
|
|
10
10
|
import type {
|
|
11
11
|
InteractionState,
|
|
12
12
|
StyleResolverFunction
|
|
13
|
-
} from '
|
|
13
|
+
} from '../resolver'
|
|
14
14
|
|
|
15
15
|
export type IconButtonState = InteractionState & {
|
|
16
16
|
size?: ElementSize,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { TextStyle } from 'react-native'
|
|
2
2
|
|
|
3
|
-
import type { Color } from '
|
|
3
|
+
import type { Color } from '../color'
|
|
4
4
|
import type {
|
|
5
5
|
InteractionState,
|
|
6
6
|
StyleResolverFunction
|
|
7
|
-
} from '
|
|
7
|
+
} from '../resolver'
|
|
8
8
|
|
|
9
9
|
export type InputState = InteractionState & {
|
|
10
10
|
isInvalid?: boolean,
|
|
@@ -3,11 +3,11 @@ import type {
|
|
|
3
3
|
ViewStyle
|
|
4
4
|
} from 'react-native'
|
|
5
5
|
|
|
6
|
-
import type { Color } from '
|
|
6
|
+
import type { Color } from '../color'
|
|
7
7
|
import type {
|
|
8
8
|
InteractionState,
|
|
9
9
|
StyleResolverFunction
|
|
10
|
-
} from '
|
|
10
|
+
} from '../resolver'
|
|
11
11
|
|
|
12
12
|
export type MenuSectionStyle = ViewStyle
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
ViewStyle
|
|
4
4
|
} from 'react-native'
|
|
5
5
|
|
|
6
|
-
import type { Color } from '
|
|
6
|
+
import type { Color } from '../color'
|
|
7
7
|
import type {
|
|
8
8
|
SelectMenuStyle,
|
|
9
9
|
SelectOptionState,
|
|
@@ -11,8 +11,8 @@ import type {
|
|
|
11
11
|
SelectSearchStyle,
|
|
12
12
|
SelectState,
|
|
13
13
|
SelectTriggerTextStyle
|
|
14
|
-
} from '
|
|
15
|
-
import type { StyleResolverFunction } from '
|
|
14
|
+
} from './select'
|
|
15
|
+
import type { StyleResolverFunction } from '../resolver'
|
|
16
16
|
|
|
17
17
|
export type MultiSelectState = SelectState & {
|
|
18
18
|
hasSelections?: boolean,
|
|
@@ -3,11 +3,11 @@ import type {
|
|
|
3
3
|
ViewStyle
|
|
4
4
|
} from 'react-native'
|
|
5
5
|
|
|
6
|
-
import type { Color } from '
|
|
6
|
+
import type { Color } from '../color'
|
|
7
7
|
import type {
|
|
8
8
|
InteractionState,
|
|
9
9
|
StyleResolverFunction
|
|
10
|
-
} from '
|
|
10
|
+
} from '../resolver'
|
|
11
11
|
|
|
12
12
|
export type SelectState = InteractionState & {
|
|
13
13
|
isInvalid?: boolean,
|
package/src/theme/types/theme.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
HightideColors,
|
|
3
3
|
HightideSemanticColors
|
|
4
|
-
} from '
|
|
5
|
-
import type { HightideComponentThemes } from '
|
|
6
|
-
import type { HightideDecoration } from '
|
|
7
|
-
import type { HightideLayout } from '
|
|
8
|
-
import type { HightideTypography } from '
|
|
4
|
+
} from './color'
|
|
5
|
+
import type { HightideComponentThemes } from './components/hightide'
|
|
6
|
+
import type { HightideDecoration } from './decoration'
|
|
7
|
+
import type { HightideLayout } from './layout'
|
|
8
|
+
import type { HightideTypography } from './typography'
|
|
9
9
|
|
|
10
10
|
export type Theme = {
|
|
11
11
|
colors: Record<string, unknown> & HightideColors,
|