@fanvue/ui 3.7.2 → 3.9.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/dist/cjs/components/Alert/Alert.cjs +28 -5
- package/dist/cjs/components/Alert/Alert.cjs.map +1 -1
- package/dist/cjs/components/Badge/Badge.cjs +17 -5
- package/dist/cjs/components/Badge/Badge.cjs.map +1 -1
- package/dist/cjs/components/Breadcrumb/Breadcrumb.cjs +46 -23
- package/dist/cjs/components/Breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/cjs/components/Dialog/Dialog.cjs +21 -8
- package/dist/cjs/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/cjs/components/FanFollowerCount/FanFollowerCount.cjs +64 -0
- package/dist/cjs/components/FanFollowerCount/FanFollowerCount.cjs.map +1 -0
- package/dist/cjs/components/IconButton/IconButton.cjs +1 -1
- package/dist/cjs/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/cjs/components/Icons/GifIcon.cjs +101 -0
- package/dist/cjs/components/Icons/GifIcon.cjs.map +1 -0
- package/dist/cjs/components/Icons/VerifiedIcon.cjs +82 -0
- package/dist/cjs/components/Icons/VerifiedIcon.cjs.map +1 -0
- package/dist/cjs/components/Link/Link.cjs +85 -0
- package/dist/cjs/components/Link/Link.cjs.map +1 -0
- package/dist/cjs/components/Pagination/Pagination.cjs +7 -7
- package/dist/cjs/components/Pagination/Pagination.cjs.map +1 -1
- package/dist/cjs/components/Pill/Pill.cjs +3 -1
- package/dist/cjs/components/Pill/Pill.cjs.map +1 -1
- package/dist/cjs/components/ProfileOnlineStatus/ProfileOnlineStatus.cjs +44 -0
- package/dist/cjs/components/ProfileOnlineStatus/ProfileOnlineStatus.cjs.map +1 -0
- package/dist/cjs/components/ProfileStatus/ProfileStatus.cjs +51 -0
- package/dist/cjs/components/ProfileStatus/ProfileStatus.cjs.map +1 -0
- package/dist/cjs/components/Radio/Radio.cjs +65 -34
- package/dist/cjs/components/Radio/Radio.cjs.map +1 -1
- package/dist/cjs/components/RatingSummary/RatingSummary.cjs +103 -0
- package/dist/cjs/components/RatingSummary/RatingSummary.cjs.map +1 -0
- package/dist/cjs/components/ReviewCard/ReviewCard.cjs +51 -0
- package/dist/cjs/components/ReviewCard/ReviewCard.cjs.map +1 -0
- package/dist/cjs/components/Select/Select.cjs +4 -4
- package/dist/cjs/components/Select/Select.cjs.map +1 -1
- package/dist/cjs/components/TextField/TextField.cjs +4 -4
- package/dist/cjs/components/TextField/TextField.cjs.map +1 -1
- package/dist/cjs/components/Toast/Toast.cjs +18 -32
- package/dist/cjs/components/Toast/Toast.cjs.map +1 -1
- package/dist/cjs/components/UserDisplayName/UserDisplayName.cjs +67 -0
- package/dist/cjs/components/UserDisplayName/UserDisplayName.cjs.map +1 -0
- package/dist/cjs/components/UserHandle/UserHandle.cjs +46 -0
- package/dist/cjs/components/UserHandle/UserHandle.cjs.map +1 -0
- package/dist/cjs/components/UserItem/UserItem.cjs +74 -0
- package/dist/cjs/components/UserItem/UserItem.cjs.map +1 -0
- package/dist/cjs/index.cjs +24 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/utils/getInitials.cjs +10 -0
- package/dist/cjs/utils/getInitials.cjs.map +1 -0
- package/dist/components/Alert/Alert.mjs +28 -5
- package/dist/components/Alert/Alert.mjs.map +1 -1
- package/dist/components/Badge/Badge.mjs +17 -5
- package/dist/components/Badge/Badge.mjs.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.mjs +46 -23
- package/dist/components/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.mjs +1 -1
- package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
- package/dist/components/Dialog/Dialog.mjs +21 -8
- package/dist/components/Dialog/Dialog.mjs.map +1 -1
- package/dist/components/FanFollowerCount/FanFollowerCount.mjs +47 -0
- package/dist/components/FanFollowerCount/FanFollowerCount.mjs.map +1 -0
- package/dist/components/IconButton/IconButton.mjs +1 -1
- package/dist/components/IconButton/IconButton.mjs.map +1 -1
- package/dist/components/Icons/GifIcon.mjs +84 -0
- package/dist/components/Icons/GifIcon.mjs.map +1 -0
- package/dist/components/Icons/VerifiedIcon.mjs +65 -0
- package/dist/components/Icons/VerifiedIcon.mjs.map +1 -0
- package/dist/components/Link/Link.mjs +68 -0
- package/dist/components/Link/Link.mjs.map +1 -0
- package/dist/components/Pagination/Pagination.mjs +7 -7
- package/dist/components/Pagination/Pagination.mjs.map +1 -1
- package/dist/components/Pill/Pill.mjs +3 -1
- package/dist/components/Pill/Pill.mjs.map +1 -1
- package/dist/components/ProfileOnlineStatus/ProfileOnlineStatus.mjs +27 -0
- package/dist/components/ProfileOnlineStatus/ProfileOnlineStatus.mjs.map +1 -0
- package/dist/components/ProfileStatus/ProfileStatus.mjs +34 -0
- package/dist/components/ProfileStatus/ProfileStatus.mjs.map +1 -0
- package/dist/components/Radio/Radio.mjs +66 -35
- package/dist/components/Radio/Radio.mjs.map +1 -1
- package/dist/components/RatingSummary/RatingSummary.mjs +86 -0
- package/dist/components/RatingSummary/RatingSummary.mjs.map +1 -0
- package/dist/components/ReviewCard/ReviewCard.mjs +34 -0
- package/dist/components/ReviewCard/ReviewCard.mjs.map +1 -0
- package/dist/components/Select/Select.mjs +4 -4
- package/dist/components/Select/Select.mjs.map +1 -1
- package/dist/components/TextField/TextField.mjs +4 -4
- package/dist/components/TextField/TextField.mjs.map +1 -1
- package/dist/components/Toast/Toast.mjs +18 -32
- package/dist/components/Toast/Toast.mjs.map +1 -1
- package/dist/components/UserDisplayName/UserDisplayName.mjs +50 -0
- package/dist/components/UserDisplayName/UserDisplayName.mjs.map +1 -0
- package/dist/components/UserHandle/UserHandle.mjs +29 -0
- package/dist/components/UserHandle/UserHandle.mjs.map +1 -0
- package/dist/components/UserItem/UserItem.mjs +57 -0
- package/dist/components/UserItem/UserItem.mjs.map +1 -0
- package/dist/index.d.ts +404 -15
- package/dist/index.mjs +24 -0
- package/dist/index.mjs.map +1 -1
- package/dist/utils/getInitials.mjs +10 -0
- package/dist/utils/getInitials.mjs.map +1 -0
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -29,6 +29,7 @@ import { Divider } from "./components/Divider/Divider.mjs";
|
|
|
29
29
|
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger } from "./components/Drawer/Drawer.mjs";
|
|
30
30
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuHeader, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger } from "./components/DropdownMenu/DropdownMenu.mjs";
|
|
31
31
|
import { EmptyState } from "./components/EmptyState/EmptyState.mjs";
|
|
32
|
+
import { FanFollowerCount } from "./components/FanFollowerCount/FanFollowerCount.mjs";
|
|
32
33
|
import { IconButton } from "./components/IconButton/IconButton.mjs";
|
|
33
34
|
import { AddIcon } from "./components/Icons/AddIcon.mjs";
|
|
34
35
|
import { AffiliatesIcon } from "./components/Icons/AffiliatesIcon.mjs";
|
|
@@ -98,6 +99,7 @@ import { ForwardIcon } from "./components/Icons/ForwardIcon.mjs";
|
|
|
98
99
|
import { GalleryIcon } from "./components/Icons/GalleryIcon.mjs";
|
|
99
100
|
import { GameIcon } from "./components/Icons/GameIcon.mjs";
|
|
100
101
|
import { GenderIcon } from "./components/Icons/GenderIcon.mjs";
|
|
102
|
+
import { GifIcon } from "./components/Icons/GifIcon.mjs";
|
|
101
103
|
import { GiftIcon } from "./components/Icons/GiftIcon.mjs";
|
|
102
104
|
import { GoogleIcon } from "./components/Icons/GoogleIcon.mjs";
|
|
103
105
|
import { HealthIcon } from "./components/Icons/HealthIcon.mjs";
|
|
@@ -182,6 +184,7 @@ import { UserIcon } from "./components/Icons/UserIcon.mjs";
|
|
|
182
184
|
import { UserMenuIcon } from "./components/Icons/UserMenuIcon.mjs";
|
|
183
185
|
import { UsersIcon } from "./components/Icons/UsersIcon.mjs";
|
|
184
186
|
import { VaultIcon } from "./components/Icons/VaultIcon.mjs";
|
|
187
|
+
import { VerifiedIcon } from "./components/Icons/VerifiedIcon.mjs";
|
|
185
188
|
import { VideoIcon } from "./components/Icons/VideoIcon.mjs";
|
|
186
189
|
import { VipBadgeIcon } from "./components/Icons/VipBadgeIcon.mjs";
|
|
187
190
|
import { WalletIcon } from "./components/Icons/WalletIcon.mjs";
|
|
@@ -193,6 +196,7 @@ import { WifiOnIcon } from "./components/Icons/WifiOnIcon.mjs";
|
|
|
193
196
|
import { WrenchIcon } from "./components/Icons/WrenchIcon.mjs";
|
|
194
197
|
import { InfoBox, InfoBoxContent, InfoBoxTrigger } from "./components/InfoBox/InfoBox.mjs";
|
|
195
198
|
import { InlineEdit } from "./components/InlineEdit/InlineEdit.mjs";
|
|
199
|
+
import { Link } from "./components/Link/Link.mjs";
|
|
196
200
|
import { Loader } from "./components/Loader/Loader.mjs";
|
|
197
201
|
import { Logo } from "./components/Logo/Logo.mjs";
|
|
198
202
|
import { MobileStepper } from "./components/MobileStepper/MobileStepper.mjs";
|
|
@@ -200,9 +204,13 @@ import { OnlineBlinkingIcon } from "./components/OnlineBlinkingIcon/OnlineBlinki
|
|
|
200
204
|
import { Pagination } from "./components/Pagination/Pagination.mjs";
|
|
201
205
|
import { PasswordField } from "./components/PasswordField/PasswordField.mjs";
|
|
202
206
|
import { Pill } from "./components/Pill/Pill.mjs";
|
|
207
|
+
import { ProfileOnlineStatus } from "./components/ProfileOnlineStatus/ProfileOnlineStatus.mjs";
|
|
208
|
+
import { ProfileStatus } from "./components/ProfileStatus/ProfileStatus.mjs";
|
|
203
209
|
import { ProgressBar } from "./components/ProgressBar/ProgressBar.mjs";
|
|
204
210
|
import { Radio } from "./components/Radio/Radio.mjs";
|
|
205
211
|
import { RadioGroup } from "./components/RadioGroup/RadioGroup.mjs";
|
|
212
|
+
import { RatingSummary } from "./components/RatingSummary/RatingSummary.mjs";
|
|
213
|
+
import { ReviewCard } from "./components/ReviewCard/ReviewCard.mjs";
|
|
206
214
|
import { SearchField } from "./components/SearchField/SearchField.mjs";
|
|
207
215
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator } from "./components/Select/Select.mjs";
|
|
208
216
|
import { Skeleton } from "./components/Skeleton/Skeleton.mjs";
|
|
@@ -223,7 +231,11 @@ import { TextArea } from "./components/TextArea/TextArea.mjs";
|
|
|
223
231
|
import { TextField } from "./components/TextField/TextField.mjs";
|
|
224
232
|
import { Toast, ToastProvider, ToastViewport } from "./components/Toast/Toast.mjs";
|
|
225
233
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/Tooltip/Tooltip.mjs";
|
|
234
|
+
import { UserDisplayName } from "./components/UserDisplayName/UserDisplayName.mjs";
|
|
235
|
+
import { UserHandle } from "./components/UserHandle/UserHandle.mjs";
|
|
236
|
+
import { UserItem } from "./components/UserItem/UserItem.mjs";
|
|
226
237
|
import { cn } from "./utils/cn.mjs";
|
|
238
|
+
import { getInitials } from "./utils/getInitials.mjs";
|
|
227
239
|
import { useSuppressClickAfterDrag } from "./utils/useSuppressClickAfterDrag.mjs";
|
|
228
240
|
export {
|
|
229
241
|
AI2Icon,
|
|
@@ -353,6 +365,7 @@ export {
|
|
|
353
365
|
EyeOffIcon,
|
|
354
366
|
EyeSlashIcon,
|
|
355
367
|
FacebookIcon,
|
|
368
|
+
FanFollowerCount,
|
|
356
369
|
FlagIcon,
|
|
357
370
|
FlameIcon,
|
|
358
371
|
FlashIcon,
|
|
@@ -361,6 +374,7 @@ export {
|
|
|
361
374
|
GalleryIcon,
|
|
362
375
|
GameIcon,
|
|
363
376
|
GenderIcon,
|
|
377
|
+
GifIcon,
|
|
364
378
|
GiftIcon,
|
|
365
379
|
GoogleIcon,
|
|
366
380
|
HealthIcon,
|
|
@@ -379,6 +393,7 @@ export {
|
|
|
379
393
|
InfoIcon,
|
|
380
394
|
InlineEdit,
|
|
381
395
|
LanguageIcon,
|
|
396
|
+
Link,
|
|
382
397
|
LinkIcon,
|
|
383
398
|
Loader,
|
|
384
399
|
LocationIcon,
|
|
@@ -415,14 +430,18 @@ export {
|
|
|
415
430
|
PlayIcon,
|
|
416
431
|
PlusIcon,
|
|
417
432
|
PrivacyIcon,
|
|
433
|
+
ProfileOnlineStatus,
|
|
434
|
+
ProfileStatus,
|
|
418
435
|
ProgressBar,
|
|
419
436
|
QueueIcon,
|
|
420
437
|
Radio,
|
|
421
438
|
RadioGroup,
|
|
439
|
+
RatingSummary,
|
|
422
440
|
RepeatIcon,
|
|
423
441
|
Reply2Icon,
|
|
424
442
|
ReplyIcon,
|
|
425
443
|
ReverseIcon,
|
|
444
|
+
ReviewCard,
|
|
426
445
|
SearchField,
|
|
427
446
|
SearchIcon,
|
|
428
447
|
Select,
|
|
@@ -507,10 +526,14 @@ export {
|
|
|
507
526
|
UserAIIcon,
|
|
508
527
|
UserAddIcon,
|
|
509
528
|
UserCircleIcon,
|
|
529
|
+
UserDisplayName,
|
|
530
|
+
UserHandle,
|
|
510
531
|
UserIcon,
|
|
532
|
+
UserItem,
|
|
511
533
|
UserMenuIcon,
|
|
512
534
|
UsersIcon,
|
|
513
535
|
VaultIcon,
|
|
536
|
+
VerifiedIcon,
|
|
514
537
|
VideoIcon,
|
|
515
538
|
VipBadgeIcon,
|
|
516
539
|
WalletIcon,
|
|
@@ -521,6 +544,7 @@ export {
|
|
|
521
544
|
WifiOnIcon,
|
|
522
545
|
WrenchIcon,
|
|
523
546
|
cn,
|
|
547
|
+
getInitials,
|
|
524
548
|
useAudioRecorder,
|
|
525
549
|
useSuppressClickAfterDrag
|
|
526
550
|
};
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const cleanSpaces = (str) => str.trim().replace(/\s+/g, " ");
|
|
3
|
+
const getInitials = (str) => {
|
|
4
|
+
if (!str) return "";
|
|
5
|
+
return cleanSpaces(str).split(" ").map((word) => word.length ? ([...word][0] ?? "").toUpperCase() : "").slice(0, 2).join("");
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
getInitials
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=getInitials.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInitials.mjs","sources":["../../src/utils/getInitials.ts"],"sourcesContent":["/** Trim leading/trailing whitespace and collapse internal runs of whitespace to a single space. */\nconst cleanSpaces = (str: string): string => str.trim().replace(/\\s+/g, \" \");\n\n/**\n * Returns the first letters of the first one or two words in a given string, capitalized.\n * @example\n * getInitials(\"Ciao Bello\"); // \"CB\"\n * getInitials(\"JavaScript\"); // \"J\"\n * getInitials(undefined); // \"\"\n */\nexport const getInitials = (str?: string | null): string => {\n if (!str) return \"\";\n return cleanSpaces(str)\n .split(\" \")\n .map((word) => (word.length ? ([...word][0] ?? \"\").toUpperCase() : \"\"))\n .slice(0, 2)\n .join(\"\");\n};\n"],"names":[],"mappings":";AACA,MAAM,cAAc,CAAC,QAAwB,IAAI,OAAO,QAAQ,QAAQ,GAAG;AASpE,MAAM,cAAc,CAAC,QAAgC;AAC1D,MAAI,CAAC,IAAK,QAAO;AACjB,SAAO,YAAY,GAAG,EACnB,MAAM,GAAG,EACT,IAAI,CAAC,SAAU,KAAK,UAAU,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,YAAA,IAAgB,EAAG,EACrE,MAAM,GAAG,CAAC,EACV,KAAK,EAAE;AACZ;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fanvue/ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "React component library built with Tailwind CSS for Fanvue ecosystem",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"size-limit": [
|
|
181
181
|
{
|
|
182
182
|
"path": "dist/index.mjs",
|
|
183
|
-
"limit": "
|
|
183
|
+
"limit": "220 KB",
|
|
184
184
|
"ignore": [
|
|
185
185
|
"@radix-ui/*",
|
|
186
186
|
"clsx",
|