@helpwave/hightide-native 0.0.6 → 0.0.8
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 +3 -3
- package/src/components/chat/ChatMessageCard.tsx +1 -1
- package/src/components/chat/ChatSystemLine.tsx +1 -1
- package/src/components/user-interaction/Button.tsx +1 -1
- package/src/components/user-interaction/IconButton.tsx +1 -1
- package/src/components/user-interaction/Switch.tsx +177 -0
- package/src/components/user-interaction/index.ts +1 -0
- package/src/components/visualization-and-display/Avatar.tsx +286 -0
- package/src/components/visualization-and-display/Chip.tsx +1 -1
- package/src/components/visualization-and-display/index.ts +1 -0
- package/src/global-contexts/hightide-config/HightideConfigUtils.ts +3 -3
- package/src/global-contexts/theme/ThemeContext.ts +2 -2
- package/src/global-contexts/theme/ThemeProvider.tsx +3 -3
- package/src/theme/resolvers/avatar.ts +231 -0
- package/src/theme/resolvers/button.ts +1 -1
- package/src/theme/resolvers/chat.ts +2 -2
- package/src/theme/resolvers/checkbox.ts +1 -1
- package/src/theme/resolvers/chip.ts +1 -1
- package/src/theme/resolvers/coloring.ts +1 -1
- package/src/theme/resolvers/iconButton.ts +1 -1
- package/src/theme/resolvers/index.ts +2 -0
- package/src/theme/resolvers/input.ts +1 -1
- package/src/theme/resolvers/menu.ts +1 -1
- package/src/theme/resolvers/multiSelect.ts +1 -1
- package/src/theme/resolvers/select.ts +1 -1
- package/src/theme/resolvers/switch.ts +65 -0
- package/src/theme/themes/{createTheme.ts → createHightideTheme.ts} +8 -4
- package/src/theme/themes/hightideThemes.ts +14 -0
- package/src/theme/themes/index.ts +2 -2
- package/src/theme/types/components/avatar.ts +77 -0
- package/src/theme/types/components/button.ts +1 -1
- package/src/theme/types/components/chat.ts +1 -1
- package/src/theme/types/components/chip.ts +1 -1
- package/src/theme/types/components/hightide.ts +4 -0
- package/src/theme/types/components/iconButton.ts +1 -1
- package/src/theme/types/components/index.ts +2 -0
- package/src/theme/types/components/switch.ts +15 -0
- package/src/theme/types/layout.ts +12 -0
- package/src/theme/types/theme.ts +15 -6
- package/src/theme/themes/nativeThemes.ts +0 -16
package/src/theme/types/theme.ts
CHANGED
|
@@ -8,10 +8,19 @@ import type { HightideLayout } from './layout'
|
|
|
8
8
|
import type { HightideTypography } from './typography'
|
|
9
9
|
|
|
10
10
|
export type Theme = {
|
|
11
|
-
colors: Record<string, unknown
|
|
12
|
-
semantic: Record<string, unknown
|
|
13
|
-
components: Record<string, unknown
|
|
14
|
-
typography: Record<string, unknown
|
|
15
|
-
layout: Record<string, unknown
|
|
16
|
-
decoration: Record<string, unknown
|
|
11
|
+
colors: Record<string, unknown>,
|
|
12
|
+
semantic: Record<string, unknown>,
|
|
13
|
+
components: Record<string, unknown>,
|
|
14
|
+
typography: Record<string, unknown>,
|
|
15
|
+
layout: Record<string, unknown>,
|
|
16
|
+
decoration: Record<string, unknown>,
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type HightideTheme = Theme & {
|
|
20
|
+
colors: HightideColors & Theme['colors'],
|
|
21
|
+
semantic: HightideSemanticColors & Theme['semantic'],
|
|
22
|
+
components: HightideComponentThemes & Theme['components'],
|
|
23
|
+
typography: HightideTypography & Theme['typography'],
|
|
24
|
+
layout: HightideLayout & Theme['layout'],
|
|
25
|
+
decoration: HightideDecoration & Theme['decoration'],
|
|
17
26
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Themes as designThemes } from '@helpwave/hightide-design/tokens'
|
|
2
|
-
|
|
3
|
-
import { createTheme } from './createTheme'
|
|
4
|
-
|
|
5
|
-
export const lightTheme = createTheme(designThemes.light)
|
|
6
|
-
|
|
7
|
-
export const darkTheme = createTheme(designThemes.dark)
|
|
8
|
-
|
|
9
|
-
export const themes = {
|
|
10
|
-
light: lightTheme,
|
|
11
|
-
dark: darkTheme,
|
|
12
|
-
} as const
|
|
13
|
-
|
|
14
|
-
export type HightideThemeModes = 'dark' | 'light'
|
|
15
|
-
|
|
16
|
-
export type ThemeMode = string | HightideThemeModes
|