@oxy.so/bloom 6.1.0 → 6.3.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 +1 -1
- package/docs/adoption-matrix.mdx +4 -3
- package/docs/chat-composer.mdx +5 -1
- package/docs/cover-header.mdx +56 -0
- package/docs/message-media.mdx +1 -1
- package/lib/commonjs/ai-profile-card/AiProfileCard.js +186 -263
- package/lib/commonjs/ai-profile-card/AiProfileCard.js.map +1 -1
- package/lib/commonjs/chat-composer/SuggestionList.js +3 -1
- package/lib/commonjs/chat-composer/SuggestionList.js.map +1 -1
- package/lib/commonjs/chat-composer/SuggestionList.web.js +3 -1
- package/lib/commonjs/chat-composer/SuggestionList.web.js.map +1 -1
- package/lib/commonjs/chat-composer/create-suggestion-list.js +64 -10
- package/lib/commonjs/chat-composer/create-suggestion-list.js.map +1 -1
- package/lib/commonjs/chat-composer/messages.js +7 -0
- package/lib/commonjs/chat-composer/messages.js.map +1 -1
- package/lib/commonjs/cover-header/CoverHeader.js +83 -0
- package/lib/commonjs/cover-header/CoverHeader.js.map +1 -0
- package/lib/commonjs/cover-header/CoverImage.js +72 -0
- package/lib/commonjs/cover-header/CoverImage.js.map +1 -0
- package/lib/commonjs/cover-header/index.js +13 -0
- package/lib/commonjs/cover-header/index.js.map +1 -0
- package/lib/commonjs/cover-header/types.js +6 -0
- package/lib/commonjs/cover-header/types.js.map +1 -0
- package/lib/commonjs/index.js +951 -939
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +951 -939
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +7 -0
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +7 -0
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +7 -0
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +7 -0
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +7 -0
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +7 -0
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +7 -0
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +7 -0
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +7 -0
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +7 -0
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +7 -0
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +7 -0
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +7 -0
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +7 -0
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/message-bubble/MessageBubble.js +17 -11
- package/lib/commonjs/message-bubble/MessageBubble.js.map +1 -1
- package/lib/commonjs/message-media/StickerMessage.js +1 -1
- package/lib/commonjs/settings-modal/SettingsModal.js +19 -9
- package/lib/commonjs/settings-modal/SettingsModal.js.map +1 -1
- package/lib/module/ai-profile-card/AiProfileCard.js +185 -262
- package/lib/module/ai-profile-card/AiProfileCard.js.map +1 -1
- package/lib/module/chat-composer/SuggestionList.js +3 -1
- package/lib/module/chat-composer/SuggestionList.js.map +1 -1
- package/lib/module/chat-composer/SuggestionList.web.js +3 -1
- package/lib/module/chat-composer/SuggestionList.web.js.map +1 -1
- package/lib/module/chat-composer/create-suggestion-list.js +64 -10
- package/lib/module/chat-composer/create-suggestion-list.js.map +1 -1
- package/lib/module/chat-composer/messages.js +7 -0
- package/lib/module/chat-composer/messages.js.map +1 -1
- package/lib/module/cover-header/CoverHeader.js +78 -0
- package/lib/module/cover-header/CoverHeader.js.map +1 -0
- package/lib/module/cover-header/CoverImage.js +68 -0
- package/lib/module/cover-header/CoverImage.js.map +1 -0
- package/lib/module/cover-header/index.js +4 -0
- package/lib/module/cover-header/index.js.map +1 -0
- package/lib/module/cover-header/types.js +4 -0
- package/lib/module/cover-header/types.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +1 -0
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/locale/translations/ar.js +7 -0
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +7 -0
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +7 -0
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +7 -0
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +7 -0
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +7 -0
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +7 -0
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +7 -0
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +7 -0
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +7 -0
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +7 -0
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +7 -0
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +7 -0
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +7 -0
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/message-bubble/MessageBubble.js +17 -11
- package/lib/module/message-bubble/MessageBubble.js.map +1 -1
- package/lib/module/message-media/StickerMessage.js +1 -1
- package/lib/module/settings-modal/SettingsModal.js +19 -9
- package/lib/module/settings-modal/SettingsModal.js.map +1 -1
- package/lib/typescript/commonjs/ai-profile-card/AiProfileCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/SuggestionList.d.ts +1 -1
- package/lib/typescript/commonjs/chat-composer/SuggestionList.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/SuggestionList.web.d.ts +1 -1
- package/lib/typescript/commonjs/chat-composer/SuggestionList.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/create-suggestion-list.d.ts +4 -2
- package/lib/typescript/commonjs/chat-composer/create-suggestion-list.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/messages.d.ts +6 -0
- package/lib/typescript/commonjs/chat-composer/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/types.d.ts +17 -0
- package/lib/typescript/commonjs/chat-composer/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/cover-header/CoverHeader.d.ts +21 -0
- package/lib/typescript/commonjs/cover-header/CoverHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/cover-header/CoverImage.d.ts +11 -0
- package/lib/typescript/commonjs/cover-header/CoverImage.d.ts.map +1 -0
- package/lib/typescript/commonjs/cover-header/index.d.ts +3 -0
- package/lib/typescript/commonjs/cover-header/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/cover-header/types.d.ts +33 -0
- package/lib/typescript/commonjs/cover-header/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +1 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +1 -0
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/message-bubble/MessageBubble.d.ts.map +1 -1
- package/lib/typescript/commonjs/message-bubble/types.d.ts +13 -6
- package/lib/typescript/commonjs/message-bubble/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/message-media/StickerMessage.d.ts +1 -1
- package/lib/typescript/commonjs/settings-modal/SettingsModal.d.ts.map +1 -1
- package/lib/typescript/module/ai-profile-card/AiProfileCard.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/SuggestionList.d.ts +1 -1
- package/lib/typescript/module/chat-composer/SuggestionList.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/SuggestionList.web.d.ts +1 -1
- package/lib/typescript/module/chat-composer/SuggestionList.web.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/create-suggestion-list.d.ts +4 -2
- package/lib/typescript/module/chat-composer/create-suggestion-list.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/messages.d.ts +6 -0
- package/lib/typescript/module/chat-composer/messages.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/types.d.ts +17 -0
- package/lib/typescript/module/chat-composer/types.d.ts.map +1 -1
- package/lib/typescript/module/cover-header/CoverHeader.d.ts +21 -0
- package/lib/typescript/module/cover-header/CoverHeader.d.ts.map +1 -0
- package/lib/typescript/module/cover-header/CoverImage.d.ts +11 -0
- package/lib/typescript/module/cover-header/CoverImage.d.ts.map +1 -0
- package/lib/typescript/module/cover-header/index.d.ts +3 -0
- package/lib/typescript/module/cover-header/index.d.ts.map +1 -0
- package/lib/typescript/module/cover-header/types.d.ts +33 -0
- package/lib/typescript/module/cover-header/types.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +1 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +1 -0
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/message-bubble/MessageBubble.d.ts.map +1 -1
- package/lib/typescript/module/message-bubble/types.d.ts +13 -6
- package/lib/typescript/module/message-bubble/types.d.ts.map +1 -1
- package/lib/typescript/module/message-media/StickerMessage.d.ts +1 -1
- package/lib/typescript/module/settings-modal/SettingsModal.d.ts.map +1 -1
- package/package.json +18 -1
- package/src/ai-profile-card/AiProfileCard.tsx +159 -241
- package/src/chat-composer/SuggestionList.tsx +2 -1
- package/src/chat-composer/SuggestionList.web.tsx +2 -1
- package/src/chat-composer/create-suggestion-list.tsx +54 -8
- package/src/chat-composer/messages.ts +9 -0
- package/src/chat-composer/types.ts +17 -0
- package/src/cover-header/CoverHeader.tsx +75 -0
- package/src/cover-header/CoverImage.tsx +60 -0
- package/src/cover-header/index.ts +3 -0
- package/src/cover-header/types.ts +30 -0
- package/src/index.ts +1 -0
- package/src/index.web.ts +1 -0
- package/src/locale/translations/ar.ts +3 -0
- package/src/locale/translations/bn.ts +3 -0
- package/src/locale/translations/ca.ts +3 -0
- package/src/locale/translations/de.ts +3 -0
- package/src/locale/translations/es.ts +3 -0
- package/src/locale/translations/fr.ts +3 -0
- package/src/locale/translations/hi.ts +3 -0
- package/src/locale/translations/id.ts +3 -0
- package/src/locale/translations/it.ts +3 -0
- package/src/locale/translations/ja.ts +3 -0
- package/src/locale/translations/pt.ts +3 -0
- package/src/locale/translations/ru.ts +3 -0
- package/src/locale/translations/tr.ts +3 -0
- package/src/locale/translations/zh.ts +3 -0
- package/src/message-bubble/MessageBubble.tsx +17 -11
- package/src/message-bubble/types.ts +13 -6
- package/src/message-media/StickerMessage.tsx +1 -1
- package/src/settings-modal/SettingsModal.tsx +19 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/message-bubble/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,sDAAsD;AACtD,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,CAAC;AAEvD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAErE
|
|
1
|
+
{"version":3,"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MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;IAClC,2CAA2C;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yDAAyD;IACzD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtC,yFAAyF;IACzF,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -6,7 +6,7 @@ import type { StickerMessageProps } from './types';
|
|
|
6
6
|
*
|
|
7
7
|
* IT DRAWS NO SURFACE AT ALL — no background, no radius, no padding — because a
|
|
8
8
|
* sticker with a bubble behind it is a picture of a sticker. The shell renders it
|
|
9
|
-
* with `
|
|
9
|
+
* with `mediaFit="bare"`, which is `message-bubble`'s no-chrome mode; a bubble
|
|
10
10
|
* around one would also put a scrim behind the transparent parts and turn a
|
|
11
11
|
* cut-out into a square.
|
|
12
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsModal.d.ts","sourceRoot":"","sources":["../../../../src/settings-modal/SettingsModal.tsx"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,kBAAkB,EAAqC,MAAM,SAAS,CAAC;AAuFrF,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,IAAI,EAAE,cAAc,EACpB,OAAO,EACP,aAAa,EACb,MAAM,EACN,KAAK,EACL,IAAI,EAAE,cAAc,EACpB,WAAW,EACX,YAAY,EACZ,WAA0B,EAC1B,MAAM,EACN,MAAM,GACP,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"SettingsModal.d.ts","sourceRoot":"","sources":["../../../../src/settings-modal/SettingsModal.tsx"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,kBAAkB,EAAqC,MAAM,SAAS,CAAC;AAuFrF,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,IAAI,EAAE,cAAc,EACpB,OAAO,EACP,aAAa,EACb,MAAM,EACN,KAAK,EACL,IAAI,EAAE,cAAc,EACpB,WAAW,EACX,YAAY,EACZ,WAA0B,EAC1B,MAAM,EACN,MAAM,GACP,EAAE,kBAAkB,kDA0WpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/bloom",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"packageManager": "bun@1.3.14",
|
|
5
5
|
"description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
@@ -713,6 +713,20 @@
|
|
|
713
713
|
"default": "./lib/commonjs/page-header/index.js"
|
|
714
714
|
}
|
|
715
715
|
},
|
|
716
|
+
"./cover-header": {
|
|
717
|
+
"react-native": {
|
|
718
|
+
"types": "./lib/typescript/module/cover-header/index.d.ts",
|
|
719
|
+
"default": "./src/cover-header/index.ts"
|
|
720
|
+
},
|
|
721
|
+
"import": {
|
|
722
|
+
"types": "./lib/typescript/module/cover-header/index.d.ts",
|
|
723
|
+
"default": "./lib/module/cover-header/index.js"
|
|
724
|
+
},
|
|
725
|
+
"require": {
|
|
726
|
+
"types": "./lib/typescript/commonjs/cover-header/index.d.ts",
|
|
727
|
+
"default": "./lib/commonjs/cover-header/index.js"
|
|
728
|
+
}
|
|
729
|
+
},
|
|
716
730
|
"./notification-center": {
|
|
717
731
|
"react-native": {
|
|
718
732
|
"types": "./lib/typescript/module/notification-center/index.d.ts",
|
|
@@ -3689,6 +3703,9 @@
|
|
|
3689
3703
|
"page-header": [
|
|
3690
3704
|
"./lib/typescript/module/page-header/index.d.ts"
|
|
3691
3705
|
],
|
|
3706
|
+
"cover-header": [
|
|
3707
|
+
"./lib/typescript/module/cover-header/index.d.ts"
|
|
3708
|
+
],
|
|
3692
3709
|
"notification-center": [
|
|
3693
3710
|
"./lib/typescript/module/notification-center/index.d.ts"
|
|
3694
3711
|
],
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import React, { memo,
|
|
2
|
-
import {
|
|
3
|
-
Image,
|
|
4
|
-
ScrollView,
|
|
5
|
-
StyleSheet,
|
|
6
|
-
View,
|
|
7
|
-
useWindowDimensions,
|
|
8
|
-
type ImageLoadEventData,
|
|
9
|
-
type ImageSourcePropType,
|
|
10
|
-
type LayoutChangeEvent,
|
|
11
|
-
type NativeSyntheticEvent,
|
|
12
|
-
} from 'react-native';
|
|
1
|
+
import React, { memo, useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import { ScrollView, StyleSheet, View, useWindowDimensions } from 'react-native';
|
|
13
3
|
|
|
14
4
|
import { Avatar } from '../avatar';
|
|
15
5
|
import { Badge } from '../badge';
|
|
@@ -19,6 +9,7 @@ import { TABULAR } from '../chart-cards/primitives/ChartHeader';
|
|
|
19
9
|
import { groupThousands } from '../chart-cards/primitives/format';
|
|
20
10
|
import { useCountUp } from '../chart-cards/use-count-up';
|
|
21
11
|
import { Chip } from '../chip';
|
|
12
|
+
import { CoverHeader } from '../cover-header';
|
|
22
13
|
import { useControllableState } from '../hooks/use-controllable-state';
|
|
23
14
|
import { useMessages } from '../locale/messages';
|
|
24
15
|
import { SegmentedControl, SegmentedControlItem, SegmentedControlItemText } from '../segmented-control';
|
|
@@ -37,7 +28,7 @@ import { formatCurrency } from '../locale/format-number';
|
|
|
37
28
|
* card radius 24, 1px borderLight, no
|
|
38
29
|
* fill, clips its children
|
|
39
30
|
* cover absolute over the top 165px, top corners 23, background-tertiary
|
|
40
|
-
* under the photo, `object-position: 50% 45%`
|
|
31
|
+
* under the photo, `object-position: 50% 45%` — a `CoverHeader`
|
|
41
32
|
* content column 15 apart, padding 124 top / 16 sides / 16 bottom
|
|
42
33
|
* avatar 80 disc, background-tertiary, initials 30 / 42.5 medium
|
|
43
34
|
* text-secondary — overlapping the cover's bottom edge by 41
|
|
@@ -59,56 +50,8 @@ import { formatCurrency } from '../locale/format-number';
|
|
|
59
50
|
|
|
60
51
|
const COVER_HEIGHT = 165;
|
|
61
52
|
const AVATAR_SIZE = 80;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
function CoverImage({
|
|
65
|
-
source,
|
|
66
|
-
position,
|
|
67
|
-
testID,
|
|
68
|
-
}: {
|
|
69
|
-
source: string | ImageSourcePropType;
|
|
70
|
-
position: { x: number; y: number };
|
|
71
|
-
testID?: string;
|
|
72
|
-
}) {
|
|
73
|
-
const [box, setBox] = useState<{ width: number; height: number } | null>(null);
|
|
74
|
-
const [natural, setNatural] = useState<{ width: number; height: number } | null>(null);
|
|
75
|
-
const resolved: ImageSourcePropType = typeof source === 'string' ? { uri: source } : source;
|
|
76
|
-
|
|
77
|
-
const onLayout = useCallback((event: LayoutChangeEvent) => {
|
|
78
|
-
const { width, height } = event.nativeEvent.layout;
|
|
79
|
-
setBox((prev) => (prev && prev.width === width && prev.height === height ? prev : { width, height }));
|
|
80
|
-
}, []);
|
|
81
|
-
const onLoad = useCallback((event: NativeSyntheticEvent<ImageLoadEventData>) => {
|
|
82
|
-
const s = event.nativeEvent?.source;
|
|
83
|
-
if (s && s.width > 0 && s.height > 0) setNatural({ width: s.width, height: s.height });
|
|
84
|
-
}, []);
|
|
85
|
-
|
|
86
|
-
const frame = useMemo(() => {
|
|
87
|
-
if (!box || !natural) return null;
|
|
88
|
-
const scale = Math.max(box.width / natural.width, box.height / natural.height);
|
|
89
|
-
const width = natural.width * scale;
|
|
90
|
-
const height = natural.height * scale;
|
|
91
|
-
return { width, height, left: (box.width - width) * position.x, top: (box.height - height) * position.y };
|
|
92
|
-
}, [box, natural, position.x, position.y]);
|
|
93
|
-
|
|
94
|
-
return (
|
|
95
|
-
<View style={StyleSheet.absoluteFill} onLayout={onLayout} testID={testID ? `${testID}-frame` : undefined}>
|
|
96
|
-
<Image
|
|
97
|
-
testID={testID}
|
|
98
|
-
source={resolved}
|
|
99
|
-
onLoad={onLoad}
|
|
100
|
-
accessibilityIgnoresInvertColors
|
|
101
|
-
aria-hidden
|
|
102
|
-
resizeMode="cover"
|
|
103
|
-
style={
|
|
104
|
-
frame
|
|
105
|
-
? { position: 'absolute', left: frame.left, top: frame.top, width: frame.width, height: frame.height }
|
|
106
|
-
: StyleSheet.absoluteFill
|
|
107
|
-
}
|
|
108
|
-
/>
|
|
109
|
-
</View>
|
|
110
|
-
);
|
|
111
|
-
}
|
|
53
|
+
/** Where the content starts: the avatar overlaps the cover's bottom edge by 41. */
|
|
54
|
+
const CONTENT_TOP = 124;
|
|
112
55
|
|
|
113
56
|
/**
|
|
114
57
|
* The count-up headline, in its own component: the roll re-renders every frame
|
|
@@ -223,12 +166,14 @@ function AiProfileCardComponent({
|
|
|
223
166
|
);
|
|
224
167
|
|
|
225
168
|
return (
|
|
226
|
-
<
|
|
169
|
+
<CoverHeader
|
|
227
170
|
testID={testID}
|
|
171
|
+
coverSource={coverSource}
|
|
172
|
+
coverPosition={coverPosition}
|
|
173
|
+
coverHeight={COVER_HEIGHT}
|
|
174
|
+
overlap={COVER_HEIGHT - CONTENT_TOP}
|
|
228
175
|
style={[
|
|
229
176
|
{
|
|
230
|
-
position: 'relative',
|
|
231
|
-
width: '100%',
|
|
232
177
|
minWidth: 0,
|
|
233
178
|
overflow: 'hidden',
|
|
234
179
|
borderRadius: 24,
|
|
@@ -236,195 +181,168 @@ function AiProfileCardComponent({
|
|
|
236
181
|
borderColor: colors.border,
|
|
237
182
|
},
|
|
238
183
|
style,
|
|
239
|
-
]}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
position: 'relative',
|
|
266
|
-
width: '100%',
|
|
267
|
-
flexDirection: 'column',
|
|
268
|
-
gap: 15,
|
|
269
|
-
paddingTop: 124,
|
|
270
|
-
paddingBottom: 16,
|
|
271
|
-
paddingLeft: 16,
|
|
272
|
-
paddingRight: 16,
|
|
273
|
-
}}>
|
|
274
|
-
<Avatar
|
|
275
|
-
testID={testID ? `${testID}-avatar` : undefined}
|
|
276
|
-
size={AVATAR_SIZE}
|
|
277
|
-
source={avatarSource ?? undefined}
|
|
278
|
-
initials={letters}
|
|
279
|
-
color="neutral"
|
|
280
|
-
alt={avatarSource ? name : undefined}
|
|
281
|
-
placeholderColor={colors.tertiary}
|
|
282
|
-
placeholderIcon={
|
|
283
|
-
<Text
|
|
284
|
-
allowFontScaling={false}
|
|
285
|
-
numberOfLines={1}
|
|
286
|
-
style={[styles.initials, { color: colors.textSecondary }]}>
|
|
287
|
-
{letters}
|
|
288
|
-
</Text>
|
|
289
|
-
}
|
|
290
|
-
/>
|
|
291
|
-
|
|
292
|
-
<View style={{ position: 'relative', width: '100%', flexDirection: 'row', alignItems: 'flex-start', gap: 15 }}>
|
|
293
|
-
<View style={{ minWidth: 0, flex: 1, flexDirection: 'column', gap: 4 }}>
|
|
294
|
-
<Text variant="title-2-medium" numberOfLines={1} style={{ color: colors.text }}>
|
|
295
|
-
{name}
|
|
296
|
-
</Text>
|
|
297
|
-
{handle != null || badge != null ? (
|
|
298
|
-
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 6 }}>
|
|
299
|
-
{handle != null ? (
|
|
300
|
-
<Text variant="headline-medium" numberOfLines={1} style={{ color: colors.textSecondary }}>
|
|
301
|
-
{handle}
|
|
302
|
-
</Text>
|
|
303
|
-
) : null}
|
|
304
|
-
{badge != null ? (
|
|
305
|
-
<Badge
|
|
306
|
-
testID={testID ? `${testID}-badge` : undefined}
|
|
307
|
-
content={badge}
|
|
308
|
-
style={{ backgroundColor: colors.tertiary }}
|
|
309
|
-
textStyle={{ color: colors.textSecondary }}
|
|
310
|
-
/>
|
|
311
|
-
) : null}
|
|
312
|
-
</View>
|
|
313
|
-
) : null}
|
|
314
|
-
</View>
|
|
315
|
-
{actions ? (
|
|
316
|
-
<View
|
|
317
|
-
testID={testID ? `${testID}-actions` : undefined}
|
|
318
|
-
style={{
|
|
319
|
-
position: 'absolute',
|
|
320
|
-
top: -34,
|
|
321
|
-
right: 4,
|
|
322
|
-
flexDirection: 'row',
|
|
323
|
-
alignItems: 'center',
|
|
324
|
-
justifyContent: 'flex-end',
|
|
325
|
-
gap: 10,
|
|
326
|
-
}}>
|
|
327
|
-
{actions}
|
|
328
|
-
</View>
|
|
329
|
-
) : null}
|
|
330
|
-
</View>
|
|
184
|
+
]}
|
|
185
|
+
coverStyle={{ borderTopLeftRadius: 23, borderTopRightRadius: 23 }}
|
|
186
|
+
contentStyle={{
|
|
187
|
+
flexDirection: 'column',
|
|
188
|
+
gap: 15,
|
|
189
|
+
paddingBottom: 16,
|
|
190
|
+
paddingLeft: 16,
|
|
191
|
+
paddingRight: 16,
|
|
192
|
+
}}>
|
|
193
|
+
<Avatar
|
|
194
|
+
testID={testID ? `${testID}-avatar` : undefined}
|
|
195
|
+
size={AVATAR_SIZE}
|
|
196
|
+
source={avatarSource ?? undefined}
|
|
197
|
+
initials={letters}
|
|
198
|
+
color="neutral"
|
|
199
|
+
alt={avatarSource ? name : undefined}
|
|
200
|
+
placeholderColor={colors.tertiary}
|
|
201
|
+
placeholderIcon={
|
|
202
|
+
<Text
|
|
203
|
+
allowFontScaling={false}
|
|
204
|
+
numberOfLines={1}
|
|
205
|
+
style={[styles.initials, { color: colors.textSecondary }]}>
|
|
206
|
+
{letters}
|
|
207
|
+
</Text>
|
|
208
|
+
}
|
|
209
|
+
/>
|
|
331
210
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
{delta}
|
|
352
|
-
</Chip>
|
|
211
|
+
<View style={{ position: 'relative', width: '100%', flexDirection: 'row', alignItems: 'flex-start', gap: 15 }}>
|
|
212
|
+
<View style={{ minWidth: 0, flex: 1, flexDirection: 'column', gap: 4 }}>
|
|
213
|
+
<Text variant="title-2-medium" numberOfLines={1} style={{ color: colors.text }}>
|
|
214
|
+
{name}
|
|
215
|
+
</Text>
|
|
216
|
+
{handle != null || badge != null ? (
|
|
217
|
+
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 6 }}>
|
|
218
|
+
{handle != null ? (
|
|
219
|
+
<Text variant="headline-medium" numberOfLines={1} style={{ color: colors.textSecondary }}>
|
|
220
|
+
{handle}
|
|
221
|
+
</Text>
|
|
222
|
+
) : null}
|
|
223
|
+
{badge != null ? (
|
|
224
|
+
<Badge
|
|
225
|
+
testID={testID ? `${testID}-badge` : undefined}
|
|
226
|
+
content={badge}
|
|
227
|
+
style={{ backgroundColor: colors.tertiary }}
|
|
228
|
+
textStyle={{ color: colors.textSecondary }}
|
|
229
|
+
/>
|
|
353
230
|
) : null}
|
|
354
|
-
</View>
|
|
355
|
-
</View>
|
|
356
|
-
|
|
357
|
-
{stats && stats.length > 0 ? (
|
|
358
|
-
<View testID={testID ? `${testID}-stats` : undefined} style={{ flexDirection: 'column', gap: 8 }}>
|
|
359
|
-
{(wide ? [stats.map((_, i) => i)] : pairs(stats.length)).map((row) => (
|
|
360
|
-
<View key={row[0]} style={{ flexDirection: 'row', alignItems: 'stretch', gap: 8 }}>
|
|
361
|
-
{row.map((i) => {
|
|
362
|
-
const stat = stats[i]!;
|
|
363
|
-
return (
|
|
364
|
-
<View
|
|
365
|
-
key={`${i}-${stat.label}`}
|
|
366
|
-
testID={testID ? `${testID}-stat-${i}` : undefined}
|
|
367
|
-
style={[styles.tile, { backgroundColor: colors.secondary }]}>
|
|
368
|
-
<Text variant="body-medium" numberOfLines={1} style={{ width: '100%', color: colors.text }}>
|
|
369
|
-
{stat.value}
|
|
370
|
-
</Text>
|
|
371
|
-
<Text
|
|
372
|
-
variant="body-2-medium"
|
|
373
|
-
numberOfLines={1}
|
|
374
|
-
style={{ width: '100%', color: colors.textSecondary }}>
|
|
375
|
-
{stat.label}
|
|
376
|
-
</Text>
|
|
377
|
-
</View>
|
|
378
|
-
);
|
|
379
|
-
})}
|
|
380
|
-
{/* An odd tile keeps its half of the two-column grid. */}
|
|
381
|
-
{!wide && row.length === 1 ? <View style={styles.tileSpacer} /> : null}
|
|
382
|
-
</View>
|
|
383
|
-
))}
|
|
384
231
|
</View>
|
|
385
232
|
) : null}
|
|
386
|
-
|
|
233
|
+
</View>
|
|
234
|
+
{actions ? (
|
|
387
235
|
<View
|
|
236
|
+
testID={testID ? `${testID}-actions` : undefined}
|
|
388
237
|
style={{
|
|
389
|
-
|
|
238
|
+
position: 'absolute',
|
|
239
|
+
top: -34,
|
|
240
|
+
right: 4,
|
|
390
241
|
flexDirection: 'row',
|
|
391
242
|
alignItems: 'center',
|
|
392
|
-
justifyContent: '
|
|
393
|
-
|
|
394
|
-
paddingLeft: 2,
|
|
243
|
+
justifyContent: 'flex-end',
|
|
244
|
+
gap: 10,
|
|
395
245
|
}}>
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
246
|
+
{actions}
|
|
247
|
+
</View>
|
|
248
|
+
) : null}
|
|
249
|
+
</View>
|
|
250
|
+
|
|
251
|
+
<View style={{ width: '100%', flexDirection: 'column', gap: 8 }}>
|
|
252
|
+
<View style={{ flexDirection: 'column', gap: 2 }}>
|
|
253
|
+
<Text variant="body-medium" numberOfLines={1} style={{ color: colors.textSecondary }}>
|
|
254
|
+
{contributionsLabel}
|
|
255
|
+
</Text>
|
|
256
|
+
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
|
|
257
|
+
<RollingHeadline
|
|
258
|
+
value={contributions}
|
|
259
|
+
duration={countUpDuration}
|
|
260
|
+
format={format}
|
|
261
|
+
color={colors.text}
|
|
262
|
+
testID={testID ? `${testID}-headline` : undefined}
|
|
263
|
+
/>
|
|
264
|
+
{delta != null ? (
|
|
265
|
+
<Chip
|
|
266
|
+
size="md"
|
|
267
|
+
testID={testID ? `${testID}-delta` : undefined}
|
|
268
|
+
style={{ alignSelf: 'center', backgroundColor: colors.chip.background }}
|
|
269
|
+
textStyle={{ color: colors.chip.foreground }}>
|
|
270
|
+
{delta}
|
|
271
|
+
</Chip>
|
|
415
272
|
) : null}
|
|
416
273
|
</View>
|
|
274
|
+
</View>
|
|
417
275
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
276
|
+
{stats && stats.length > 0 ? (
|
|
277
|
+
<View testID={testID ? `${testID}-stats` : undefined} style={{ flexDirection: 'column', gap: 8 }}>
|
|
278
|
+
{(wide ? [stats.map((_, i) => i)] : pairs(stats.length)).map((row) => (
|
|
279
|
+
<View key={row[0]} style={{ flexDirection: 'row', alignItems: 'stretch', gap: 8 }}>
|
|
280
|
+
{row.map((i) => {
|
|
281
|
+
const stat = stats[i]!;
|
|
282
|
+
return (
|
|
283
|
+
<View
|
|
284
|
+
key={`${i}-${stat.label}`}
|
|
285
|
+
testID={testID ? `${testID}-stat-${i}` : undefined}
|
|
286
|
+
style={[styles.tile, { backgroundColor: colors.secondary }]}>
|
|
287
|
+
<Text variant="body-medium" numberOfLines={1} style={{ width: '100%', color: colors.text }}>
|
|
288
|
+
{stat.value}
|
|
289
|
+
</Text>
|
|
290
|
+
<Text
|
|
291
|
+
variant="body-2-medium"
|
|
292
|
+
numberOfLines={1}
|
|
293
|
+
style={{ width: '100%', color: colors.textSecondary }}>
|
|
294
|
+
{stat.label}
|
|
295
|
+
</Text>
|
|
296
|
+
</View>
|
|
297
|
+
);
|
|
298
|
+
})}
|
|
299
|
+
{/* An odd tile keeps its half of the two-column grid. */}
|
|
300
|
+
{!wide && row.length === 1 ? <View style={styles.tileSpacer} /> : null}
|
|
301
|
+
</View>
|
|
302
|
+
))}
|
|
303
|
+
</View>
|
|
304
|
+
) : null}
|
|
305
|
+
|
|
306
|
+
<View
|
|
307
|
+
style={{
|
|
308
|
+
width: '100%',
|
|
309
|
+
flexDirection: 'row',
|
|
310
|
+
alignItems: 'center',
|
|
311
|
+
justifyContent: 'space-between',
|
|
312
|
+
paddingTop: 6,
|
|
313
|
+
paddingLeft: 2,
|
|
314
|
+
}}>
|
|
315
|
+
<Text variant="body-2-medium" style={{ color: colors.textSecondary }}>
|
|
316
|
+
{activityLabel}
|
|
317
|
+
</Text>
|
|
318
|
+
{periods.length > 0 ? (
|
|
319
|
+
<SegmentedControl
|
|
320
|
+
label={messages.periodGroup(activityLabel)}
|
|
321
|
+
type="radio"
|
|
322
|
+
variant="plain"
|
|
323
|
+
value={selectedPeriod}
|
|
324
|
+
onValueChange={setPeriod}>
|
|
325
|
+
{periods.map((p) => (
|
|
326
|
+
<SegmentedControlItem
|
|
327
|
+
key={p.id}
|
|
328
|
+
value={p.id}
|
|
329
|
+
testID={testID ? `${testID}-period-${p.id}` : undefined}>
|
|
330
|
+
<SegmentedControlItemText>{p.label}</SegmentedControlItemText>
|
|
331
|
+
</SegmentedControlItem>
|
|
332
|
+
))}
|
|
333
|
+
</SegmentedControl>
|
|
334
|
+
) : null}
|
|
425
335
|
</View>
|
|
336
|
+
|
|
337
|
+
{wide ? (
|
|
338
|
+
grid
|
|
339
|
+
) : (
|
|
340
|
+
<ScrollView horizontal showsHorizontalScrollIndicator={false} style={{ flexGrow: 0 }}>
|
|
341
|
+
{grid}
|
|
342
|
+
</ScrollView>
|
|
343
|
+
)}
|
|
426
344
|
</View>
|
|
427
|
-
</
|
|
345
|
+
</CoverHeader>
|
|
428
346
|
);
|
|
429
347
|
}
|
|
430
348
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Surface } from '../surface';
|
|
2
|
+
import { Loading } from '../loading';
|
|
2
3
|
import { createSuggestionList } from './create-suggestion-list';
|
|
3
4
|
|
|
4
|
-
export const SuggestionList = createSuggestionList({ Surface });
|
|
5
|
+
export const SuggestionList = createSuggestionList({ Surface, Loading });
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Surface } from '../surface/index.web';
|
|
2
|
+
import { Loading } from '../loading/index.web';
|
|
2
3
|
import { createSuggestionList } from './create-suggestion-list';
|
|
3
4
|
|
|
4
|
-
export const SuggestionList = createSuggestionList({ Surface });
|
|
5
|
+
export const SuggestionList = createSuggestionList({ Surface, Loading });
|