@oxyhq/bloom 0.1.35 → 0.1.37
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/lib/commonjs/avatar/Avatar.js +5 -3
- package/lib/commonjs/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/avatar/default-avatar.js +23 -0
- package/lib/commonjs/avatar/default-avatar.js.map +1 -0
- package/lib/commonjs/avatar/index.js +3 -2
- package/lib/commonjs/avatar/index.js.map +1 -1
- package/lib/commonjs/dialog/Dialog.js +44 -10
- package/lib/commonjs/dialog/Dialog.js.map +1 -1
- package/lib/commonjs/icons/common.js +13 -1
- package/lib/commonjs/icons/common.js.map +1 -1
- package/lib/commonjs/loading/SpinnerIcon.js +3 -1
- package/lib/commonjs/loading/SpinnerIcon.js.map +1 -1
- package/lib/commonjs/text-field/index.js.map +1 -1
- package/lib/commonjs/theme/set-color-scheme-safe.js +9 -0
- package/lib/commonjs/theme/set-color-scheme-safe.js.map +1 -1
- package/lib/module/avatar/Avatar.js +5 -3
- package/lib/module/avatar/Avatar.js.map +1 -1
- package/lib/module/avatar/default-avatar.js +19 -0
- package/lib/module/avatar/default-avatar.js.map +1 -0
- package/lib/module/avatar/index.js +3 -2
- package/lib/module/avatar/index.js.map +1 -1
- package/lib/module/dialog/Dialog.js +43 -8
- package/lib/module/dialog/Dialog.js.map +1 -1
- package/lib/module/icons/common.js +13 -1
- package/lib/module/icons/common.js.map +1 -1
- package/lib/module/loading/SpinnerIcon.js +3 -1
- package/lib/module/loading/SpinnerIcon.js.map +1 -1
- package/lib/module/text-field/index.js.map +1 -1
- package/lib/module/theme/set-color-scheme-safe.js +10 -1
- package/lib/module/theme/set-color-scheme-safe.js.map +1 -1
- package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/default-avatar.d.ts +5 -0
- package/lib/typescript/commonjs/avatar/default-avatar.d.ts.map +1 -0
- package/lib/typescript/commonjs/avatar/index.d.ts +3 -1
- package/lib/typescript/commonjs/avatar/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/Dialog.d.ts +1 -1
- package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/Accessibility.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Alien.d.ts +1 -1
- package/lib/typescript/commonjs/icons/AndroidLogo.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Apple.d.ts +1 -1
- package/lib/typescript/commonjs/icons/AppleLogo.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Arrow.d.ts +5 -5
- package/lib/typescript/commonjs/icons/ArrowBoxLeft.d.ts +2 -2
- package/lib/typescript/commonjs/icons/ArrowCornerDownRight.d.ts +1 -1
- package/lib/typescript/commonjs/icons/ArrowOutOfBox.d.ts +2 -2
- package/lib/typescript/commonjs/icons/ArrowRotate.d.ts +2 -2
- package/lib/typescript/commonjs/icons/ArrowShareRight.d.ts +1 -1
- package/lib/typescript/commonjs/icons/ArrowTopCircle.d.ts +1 -1
- package/lib/typescript/commonjs/icons/ArrowTriangle.d.ts +1 -1
- package/lib/typescript/commonjs/icons/ArrowsDiagonal.d.ts +4 -4
- package/lib/typescript/commonjs/icons/AspectRatio.d.ts +3 -3
- package/lib/typescript/commonjs/icons/At.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Atom.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Bars.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Beaker.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Bell.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Bell2.d.ts +4 -4
- package/lib/typescript/commonjs/icons/BellPlus.d.ts +1 -1
- package/lib/typescript/commonjs/icons/BellRinging.d.ts +2 -2
- package/lib/typescript/commonjs/icons/BirthdayCake.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Bookmark.d.ts +3 -3
- package/lib/typescript/commonjs/icons/Bot.d.ts +2 -2
- package/lib/typescript/commonjs/icons/BroomSparkle.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Bubble.d.ts +4 -4
- package/lib/typescript/commonjs/icons/BubbleInfo.d.ts +1 -1
- package/lib/typescript/commonjs/icons/BulletList.d.ts +3 -3
- package/lib/typescript/commonjs/icons/CC.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Calendar.d.ts +1 -1
- package/lib/typescript/commonjs/icons/CalendarClock.d.ts +1 -1
- package/lib/typescript/commonjs/icons/CalendarDays.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Camera.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Car.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Celebrate.d.ts +1 -1
- package/lib/typescript/commonjs/icons/ChainLink.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Check.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Chevron.d.ts +6 -6
- package/lib/typescript/commonjs/icons/Circle.d.ts +1 -1
- package/lib/typescript/commonjs/icons/CircleAndSquare.d.ts +1 -1
- package/lib/typescript/commonjs/icons/CircleBanSign.d.ts +1 -1
- package/lib/typescript/commonjs/icons/CircleCheck.d.ts +1 -1
- package/lib/typescript/commonjs/icons/CircleInfo.d.ts +1 -1
- package/lib/typescript/commonjs/icons/CirclePlus.d.ts +1 -1
- package/lib/typescript/commonjs/icons/CircleQuestion.d.ts +1 -1
- package/lib/typescript/commonjs/icons/CircleX.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Clipboard.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Clock.d.ts +1 -1
- package/lib/typescript/commonjs/icons/CodeBrackets.d.ts +2 -2
- package/lib/typescript/commonjs/icons/CodeLines.d.ts +1 -1
- package/lib/typescript/commonjs/icons/ColorPalette.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Contacts.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Crop.d.ts +1 -1
- package/lib/typescript/commonjs/icons/DotGrid.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Download.d.ts +1 -1
- package/lib/typescript/commonjs/icons/EditBig.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Emoji.d.ts +4 -4
- package/lib/typescript/commonjs/icons/Envelope.d.ts +3 -3
- package/lib/typescript/commonjs/icons/EnvelopeOpen.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Explosion.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Eye.d.ts +2 -2
- package/lib/typescript/commonjs/icons/EyeSlash.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Filter.d.ts +1 -1
- package/lib/typescript/commonjs/icons/FilterTimeline.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Flag.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Flame.d.ts +1 -1
- package/lib/typescript/commonjs/icons/FlipImage.d.ts +2 -2
- package/lib/typescript/commonjs/icons/FloppyDisk.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Freeze.d.ts +1 -1
- package/lib/typescript/commonjs/icons/GameController.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Gif.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Gift1.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Globe.d.ts +3 -3
- package/lib/typescript/commonjs/icons/Group.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Growth.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Haptic.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Hashtag.d.ts +3 -3
- package/lib/typescript/commonjs/icons/Heart2.d.ts +4 -4
- package/lib/typescript/commonjs/icons/Home.d.ts +3 -3
- package/lib/typescript/commonjs/icons/HomeOpen.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Image.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Key.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Lab.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Leaf.d.ts +1 -1
- package/lib/typescript/commonjs/icons/ListMagnifyingGlass.d.ts +1 -1
- package/lib/typescript/commonjs/icons/ListPlus.d.ts +1 -1
- package/lib/typescript/commonjs/icons/ListSparkle.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Live.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Loader.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Lock.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Logo.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Macintosh.d.ts +1 -1
- package/lib/typescript/commonjs/icons/MagnifyingGlass.d.ts +4 -4
- package/lib/typescript/commonjs/icons/Menu.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Message.d.ts +3 -3
- package/lib/typescript/commonjs/icons/Moon.d.ts +1 -1
- package/lib/typescript/commonjs/icons/MusicNote.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Mute.d.ts +1 -1
- package/lib/typescript/commonjs/icons/News2.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Newskie.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Newspaper.d.ts +1 -1
- package/lib/typescript/commonjs/icons/PageText.d.ts +1 -1
- package/lib/typescript/commonjs/icons/PageX.d.ts +1 -1
- package/lib/typescript/commonjs/icons/PaintRoller.d.ts +1 -1
- package/lib/typescript/commonjs/icons/PaperPlane.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Pause.d.ts +4 -4
- package/lib/typescript/commonjs/icons/Pencil.d.ts +3 -3
- package/lib/typescript/commonjs/icons/PeopleRemove2.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Person.d.ts +10 -10
- package/lib/typescript/commonjs/icons/Phone.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Pin.d.ts +2 -2
- package/lib/typescript/commonjs/icons/PinLocation.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Pizza.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Play.d.ts +4 -4
- package/lib/typescript/commonjs/icons/Plus.d.ts +2 -2
- package/lib/typescript/commonjs/icons/QrCode.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Quote.d.ts +5 -5
- package/lib/typescript/commonjs/icons/RaisingHand.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Reply.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Repost.d.ts +4 -4
- package/lib/typescript/commonjs/icons/Rose.d.ts +1 -1
- package/lib/typescript/commonjs/icons/SettingsGear2.d.ts +2 -2
- package/lib/typescript/commonjs/icons/SettingsSlider.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Shaka.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Shapes.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Shield.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Sparkle.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Speaker.d.ts +1 -1
- package/lib/typescript/commonjs/icons/SquareArrowTopRight.d.ts +1 -1
- package/lib/typescript/commonjs/icons/SquareBehindSquare4.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Star.d.ts +2 -2
- package/lib/typescript/commonjs/icons/StarterPack.d.ts +1 -1
- package/lib/typescript/commonjs/icons/StreamingLive.d.ts +1 -1
- package/lib/typescript/commonjs/icons/TEMPLATE.d.ts +2 -2
- package/lib/typescript/commonjs/icons/TextSize.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Ticket.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Times.d.ts +1 -1
- package/lib/typescript/commonjs/icons/TitleCase.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Trash.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Tree.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Trending.d.ts +2 -2
- package/lib/typescript/commonjs/icons/UFO.d.ts +1 -1
- package/lib/typescript/commonjs/icons/UserCircle.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Verified.d.ts +1 -1
- package/lib/typescript/commonjs/icons/VerifiedCheck.d.ts +1 -1
- package/lib/typescript/commonjs/icons/VerifierCheck.d.ts +1 -1
- package/lib/typescript/commonjs/icons/VideoClip.d.ts +2 -2
- package/lib/typescript/commonjs/icons/Warning.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Window.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Wrench.d.ts +1 -1
- package/lib/typescript/commonjs/icons/Zap.d.ts +1 -1
- package/lib/typescript/commonjs/icons/common.d.ts +20 -6
- package/lib/typescript/commonjs/icons/common.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/index.d.ts +1 -1
- package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/loading/SpinnerIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/text-field/index.d.ts +2 -2
- package/lib/typescript/commonjs/text-field/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/set-color-scheme-safe.d.ts +6 -0
- package/lib/typescript/commonjs/theme/set-color-scheme-safe.d.ts.map +1 -1
- package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/avatar/default-avatar.d.ts +5 -0
- package/lib/typescript/module/avatar/default-avatar.d.ts.map +1 -0
- package/lib/typescript/module/avatar/index.d.ts +3 -1
- package/lib/typescript/module/avatar/index.d.ts.map +1 -1
- package/lib/typescript/module/dialog/Dialog.d.ts +1 -1
- package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/module/icons/Accessibility.d.ts +1 -1
- package/lib/typescript/module/icons/Alien.d.ts +1 -1
- package/lib/typescript/module/icons/AndroidLogo.d.ts +1 -1
- package/lib/typescript/module/icons/Apple.d.ts +1 -1
- package/lib/typescript/module/icons/AppleLogo.d.ts +1 -1
- package/lib/typescript/module/icons/Arrow.d.ts +5 -5
- package/lib/typescript/module/icons/ArrowBoxLeft.d.ts +2 -2
- package/lib/typescript/module/icons/ArrowCornerDownRight.d.ts +1 -1
- package/lib/typescript/module/icons/ArrowOutOfBox.d.ts +2 -2
- package/lib/typescript/module/icons/ArrowRotate.d.ts +2 -2
- package/lib/typescript/module/icons/ArrowShareRight.d.ts +1 -1
- package/lib/typescript/module/icons/ArrowTopCircle.d.ts +1 -1
- package/lib/typescript/module/icons/ArrowTriangle.d.ts +1 -1
- package/lib/typescript/module/icons/ArrowsDiagonal.d.ts +4 -4
- package/lib/typescript/module/icons/AspectRatio.d.ts +3 -3
- package/lib/typescript/module/icons/At.d.ts +2 -2
- package/lib/typescript/module/icons/Atom.d.ts +1 -1
- package/lib/typescript/module/icons/Bars.d.ts +1 -1
- package/lib/typescript/module/icons/Beaker.d.ts +1 -1
- package/lib/typescript/module/icons/Bell.d.ts +2 -2
- package/lib/typescript/module/icons/Bell2.d.ts +4 -4
- package/lib/typescript/module/icons/BellPlus.d.ts +1 -1
- package/lib/typescript/module/icons/BellRinging.d.ts +2 -2
- package/lib/typescript/module/icons/BirthdayCake.d.ts +1 -1
- package/lib/typescript/module/icons/Bookmark.d.ts +3 -3
- package/lib/typescript/module/icons/Bot.d.ts +2 -2
- package/lib/typescript/module/icons/BroomSparkle.d.ts +1 -1
- package/lib/typescript/module/icons/Bubble.d.ts +4 -4
- package/lib/typescript/module/icons/BubbleInfo.d.ts +1 -1
- package/lib/typescript/module/icons/BulletList.d.ts +3 -3
- package/lib/typescript/module/icons/CC.d.ts +2 -2
- package/lib/typescript/module/icons/Calendar.d.ts +1 -1
- package/lib/typescript/module/icons/CalendarClock.d.ts +1 -1
- package/lib/typescript/module/icons/CalendarDays.d.ts +1 -1
- package/lib/typescript/module/icons/Camera.d.ts +2 -2
- package/lib/typescript/module/icons/Car.d.ts +1 -1
- package/lib/typescript/module/icons/Celebrate.d.ts +1 -1
- package/lib/typescript/module/icons/ChainLink.d.ts +1 -1
- package/lib/typescript/module/icons/Check.d.ts +2 -2
- package/lib/typescript/module/icons/Chevron.d.ts +6 -6
- package/lib/typescript/module/icons/Circle.d.ts +1 -1
- package/lib/typescript/module/icons/CircleAndSquare.d.ts +1 -1
- package/lib/typescript/module/icons/CircleBanSign.d.ts +1 -1
- package/lib/typescript/module/icons/CircleCheck.d.ts +1 -1
- package/lib/typescript/module/icons/CircleInfo.d.ts +1 -1
- package/lib/typescript/module/icons/CirclePlus.d.ts +1 -1
- package/lib/typescript/module/icons/CircleQuestion.d.ts +1 -1
- package/lib/typescript/module/icons/CircleX.d.ts +1 -1
- package/lib/typescript/module/icons/Clipboard.d.ts +1 -1
- package/lib/typescript/module/icons/Clock.d.ts +1 -1
- package/lib/typescript/module/icons/CodeBrackets.d.ts +2 -2
- package/lib/typescript/module/icons/CodeLines.d.ts +1 -1
- package/lib/typescript/module/icons/ColorPalette.d.ts +1 -1
- package/lib/typescript/module/icons/Contacts.d.ts +2 -2
- package/lib/typescript/module/icons/Crop.d.ts +1 -1
- package/lib/typescript/module/icons/DotGrid.d.ts +2 -2
- package/lib/typescript/module/icons/Download.d.ts +1 -1
- package/lib/typescript/module/icons/EditBig.d.ts +2 -2
- package/lib/typescript/module/icons/Emoji.d.ts +4 -4
- package/lib/typescript/module/icons/Envelope.d.ts +3 -3
- package/lib/typescript/module/icons/EnvelopeOpen.d.ts +1 -1
- package/lib/typescript/module/icons/Explosion.d.ts +1 -1
- package/lib/typescript/module/icons/Eye.d.ts +2 -2
- package/lib/typescript/module/icons/EyeSlash.d.ts +1 -1
- package/lib/typescript/module/icons/Filter.d.ts +1 -1
- package/lib/typescript/module/icons/FilterTimeline.d.ts +1 -1
- package/lib/typescript/module/icons/Flag.d.ts +1 -1
- package/lib/typescript/module/icons/Flame.d.ts +1 -1
- package/lib/typescript/module/icons/FlipImage.d.ts +2 -2
- package/lib/typescript/module/icons/FloppyDisk.d.ts +1 -1
- package/lib/typescript/module/icons/Freeze.d.ts +1 -1
- package/lib/typescript/module/icons/GameController.d.ts +1 -1
- package/lib/typescript/module/icons/Gif.d.ts +2 -2
- package/lib/typescript/module/icons/Gift1.d.ts +2 -2
- package/lib/typescript/module/icons/Globe.d.ts +3 -3
- package/lib/typescript/module/icons/Group.d.ts +1 -1
- package/lib/typescript/module/icons/Growth.d.ts +1 -1
- package/lib/typescript/module/icons/Haptic.d.ts +1 -1
- package/lib/typescript/module/icons/Hashtag.d.ts +3 -3
- package/lib/typescript/module/icons/Heart2.d.ts +4 -4
- package/lib/typescript/module/icons/Home.d.ts +3 -3
- package/lib/typescript/module/icons/HomeOpen.d.ts +2 -2
- package/lib/typescript/module/icons/Image.d.ts +2 -2
- package/lib/typescript/module/icons/Key.d.ts +1 -1
- package/lib/typescript/module/icons/Lab.d.ts +1 -1
- package/lib/typescript/module/icons/Leaf.d.ts +1 -1
- package/lib/typescript/module/icons/ListMagnifyingGlass.d.ts +1 -1
- package/lib/typescript/module/icons/ListPlus.d.ts +1 -1
- package/lib/typescript/module/icons/ListSparkle.d.ts +1 -1
- package/lib/typescript/module/icons/Live.d.ts +1 -1
- package/lib/typescript/module/icons/Loader.d.ts +1 -1
- package/lib/typescript/module/icons/Lock.d.ts +2 -2
- package/lib/typescript/module/icons/Logo.d.ts +1 -1
- package/lib/typescript/module/icons/Macintosh.d.ts +1 -1
- package/lib/typescript/module/icons/MagnifyingGlass.d.ts +4 -4
- package/lib/typescript/module/icons/Menu.d.ts +1 -1
- package/lib/typescript/module/icons/Message.d.ts +3 -3
- package/lib/typescript/module/icons/Moon.d.ts +1 -1
- package/lib/typescript/module/icons/MusicNote.d.ts +1 -1
- package/lib/typescript/module/icons/Mute.d.ts +1 -1
- package/lib/typescript/module/icons/News2.d.ts +1 -1
- package/lib/typescript/module/icons/Newskie.d.ts +1 -1
- package/lib/typescript/module/icons/Newspaper.d.ts +1 -1
- package/lib/typescript/module/icons/PageText.d.ts +1 -1
- package/lib/typescript/module/icons/PageX.d.ts +1 -1
- package/lib/typescript/module/icons/PaintRoller.d.ts +1 -1
- package/lib/typescript/module/icons/PaperPlane.d.ts +1 -1
- package/lib/typescript/module/icons/Pause.d.ts +4 -4
- package/lib/typescript/module/icons/Pencil.d.ts +3 -3
- package/lib/typescript/module/icons/PeopleRemove2.d.ts +2 -2
- package/lib/typescript/module/icons/Person.d.ts +10 -10
- package/lib/typescript/module/icons/Phone.d.ts +2 -2
- package/lib/typescript/module/icons/Pin.d.ts +2 -2
- package/lib/typescript/module/icons/PinLocation.d.ts +2 -2
- package/lib/typescript/module/icons/Pizza.d.ts +1 -1
- package/lib/typescript/module/icons/Play.d.ts +4 -4
- package/lib/typescript/module/icons/Plus.d.ts +2 -2
- package/lib/typescript/module/icons/QrCode.d.ts +1 -1
- package/lib/typescript/module/icons/Quote.d.ts +5 -5
- package/lib/typescript/module/icons/RaisingHand.d.ts +2 -2
- package/lib/typescript/module/icons/Reply.d.ts +2 -2
- package/lib/typescript/module/icons/Repost.d.ts +4 -4
- package/lib/typescript/module/icons/Rose.d.ts +1 -1
- package/lib/typescript/module/icons/SettingsGear2.d.ts +2 -2
- package/lib/typescript/module/icons/SettingsSlider.d.ts +1 -1
- package/lib/typescript/module/icons/Shaka.d.ts +1 -1
- package/lib/typescript/module/icons/Shapes.d.ts +1 -1
- package/lib/typescript/module/icons/Shield.d.ts +2 -2
- package/lib/typescript/module/icons/Sparkle.d.ts +1 -1
- package/lib/typescript/module/icons/Speaker.d.ts +1 -1
- package/lib/typescript/module/icons/SquareArrowTopRight.d.ts +1 -1
- package/lib/typescript/module/icons/SquareBehindSquare4.d.ts +1 -1
- package/lib/typescript/module/icons/Star.d.ts +2 -2
- package/lib/typescript/module/icons/StarterPack.d.ts +1 -1
- package/lib/typescript/module/icons/StreamingLive.d.ts +1 -1
- package/lib/typescript/module/icons/TEMPLATE.d.ts +2 -2
- package/lib/typescript/module/icons/TextSize.d.ts +1 -1
- package/lib/typescript/module/icons/Ticket.d.ts +1 -1
- package/lib/typescript/module/icons/Times.d.ts +1 -1
- package/lib/typescript/module/icons/TitleCase.d.ts +1 -1
- package/lib/typescript/module/icons/Trash.d.ts +2 -2
- package/lib/typescript/module/icons/Tree.d.ts +1 -1
- package/lib/typescript/module/icons/Trending.d.ts +2 -2
- package/lib/typescript/module/icons/UFO.d.ts +1 -1
- package/lib/typescript/module/icons/UserCircle.d.ts +2 -2
- package/lib/typescript/module/icons/Verified.d.ts +1 -1
- package/lib/typescript/module/icons/VerifiedCheck.d.ts +1 -1
- package/lib/typescript/module/icons/VerifierCheck.d.ts +1 -1
- package/lib/typescript/module/icons/VideoClip.d.ts +2 -2
- package/lib/typescript/module/icons/Warning.d.ts +1 -1
- package/lib/typescript/module/icons/Window.d.ts +1 -1
- package/lib/typescript/module/icons/Wrench.d.ts +1 -1
- package/lib/typescript/module/icons/Zap.d.ts +1 -1
- package/lib/typescript/module/icons/common.d.ts +20 -6
- package/lib/typescript/module/icons/common.d.ts.map +1 -1
- package/lib/typescript/module/icons/index.d.ts +1 -1
- package/lib/typescript/module/icons/index.d.ts.map +1 -1
- package/lib/typescript/module/loading/SpinnerIcon.d.ts.map +1 -1
- package/lib/typescript/module/text-field/index.d.ts +2 -2
- package/lib/typescript/module/text-field/index.d.ts.map +1 -1
- package/lib/typescript/module/theme/set-color-scheme-safe.d.ts +6 -0
- package/lib/typescript/module/theme/set-color-scheme-safe.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/avatar/Avatar.tsx +5 -3
- package/src/avatar/default-avatar.ts +17 -0
- package/src/avatar/index.ts +3 -2
- package/src/dialog/Dialog.tsx +93 -13
- package/src/icons/common.tsx +17 -4
- package/src/icons/index.ts +1 -1
- package/src/loading/SpinnerIcon.tsx +6 -2
- package/src/text-field/index.tsx +2 -1
- package/src/theme/set-color-scheme-safe.ts +10 -1
package/src/dialog/Dialog.tsx
CHANGED
|
@@ -1,15 +1,79 @@
|
|
|
1
1
|
import React, { useCallback, useImperativeHandle, useMemo, useRef } from 'react';
|
|
2
|
-
import { Pressable, StyleSheet, View } from 'react-native';
|
|
3
|
-
import { BottomSheetModal, BottomSheetView, BottomSheetBackdrop, type BottomSheetBackdropProps } from '@gorhom/bottom-sheet';
|
|
2
|
+
import { Pressable, StyleSheet, View, type StyleProp, type ViewStyle } from 'react-native';
|
|
4
3
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
5
4
|
|
|
6
5
|
import { useTheme } from '../theme/use-theme';
|
|
6
|
+
import { lazyRequire } from '../utils/lazy-require';
|
|
7
7
|
import { Context, useDialogContext } from './context';
|
|
8
8
|
import type { DialogControlProps, DialogInnerProps, DialogOuterProps } from './types';
|
|
9
9
|
|
|
10
10
|
export { useDialogContext, useDialogControl } from './context';
|
|
11
11
|
export type { DialogControlProps, DialogOuterProps, DialogInnerProps } from './types';
|
|
12
12
|
|
|
13
|
+
// ---------------------------------------------------------------------------
|
|
14
|
+
// Local types for @gorhom/bottom-sheet — declared here instead of imported so
|
|
15
|
+
// that Bloom type-checks cleanly in downstream projects that do not install
|
|
16
|
+
// this optional peer dependency. The module is still consumed at runtime via
|
|
17
|
+
// `lazyRequire`, which returns `null` if the package is missing. In that case
|
|
18
|
+
// Dialog.Outer renders nothing with a console warning, so consumers on native
|
|
19
|
+
// MUST install @gorhom/bottom-sheet to use Bloom's Dialog on native.
|
|
20
|
+
// ---------------------------------------------------------------------------
|
|
21
|
+
type BottomSheetBackdropProps = {
|
|
22
|
+
animatedIndex: unknown;
|
|
23
|
+
animatedPosition: unknown;
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
type BottomSheetModalRef = {
|
|
28
|
+
present: () => void;
|
|
29
|
+
dismiss: () => void;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
type BottomSheetModalProps = {
|
|
33
|
+
ref?: React.Ref<BottomSheetModalRef>;
|
|
34
|
+
enablePanDownToClose?: boolean;
|
|
35
|
+
enableDismissOnClose?: boolean;
|
|
36
|
+
enableDynamicSizing?: boolean;
|
|
37
|
+
snapPoints?: (string | number)[];
|
|
38
|
+
backgroundStyle?: StyleProp<ViewStyle>;
|
|
39
|
+
handleComponent?: React.ComponentType | (() => React.ReactNode) | null;
|
|
40
|
+
backdropComponent?: React.ComponentType<BottomSheetBackdropProps>;
|
|
41
|
+
onDismiss?: () => void;
|
|
42
|
+
style?: StyleProp<ViewStyle>;
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
type BottomSheetViewProps = {
|
|
47
|
+
testID?: string;
|
|
48
|
+
style?: StyleProp<ViewStyle>;
|
|
49
|
+
children?: React.ReactNode;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type BottomSheetBackdropComponentProps = BottomSheetBackdropProps & {
|
|
53
|
+
appearsOnIndex?: number;
|
|
54
|
+
disappearsOnIndex?: number;
|
|
55
|
+
pressBehavior?: 'none' | 'close' | 'collapse' | number;
|
|
56
|
+
opacity?: number;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
type BottomSheetModule = {
|
|
60
|
+
BottomSheetModal: React.ComponentType<BottomSheetModalProps>;
|
|
61
|
+
BottomSheetView: React.ComponentType<BottomSheetViewProps>;
|
|
62
|
+
BottomSheetBackdrop: React.ComponentType<BottomSheetBackdropComponentProps>;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const getBottomSheetModule = lazyRequire<BottomSheetModule>('@gorhom/bottom-sheet');
|
|
66
|
+
|
|
67
|
+
let warnedAboutMissingBottomSheet = false;
|
|
68
|
+
function warnMissingBottomSheet(): void {
|
|
69
|
+
if (warnedAboutMissingBottomSheet) return;
|
|
70
|
+
warnedAboutMissingBottomSheet = true;
|
|
71
|
+
console.warn(
|
|
72
|
+
"[bloom] @gorhom/bottom-sheet is not installed. Bloom's native Dialog will not render. " +
|
|
73
|
+
'Install it as a peer dependency to enable Dialog on native, or rely on the web Dialog implementation on web.',
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
13
77
|
export function Outer({
|
|
14
78
|
children,
|
|
15
79
|
control,
|
|
@@ -18,7 +82,7 @@ export function Outer({
|
|
|
18
82
|
preventExpansion,
|
|
19
83
|
}: React.PropsWithChildren<DialogOuterProps>) {
|
|
20
84
|
const theme = useTheme();
|
|
21
|
-
const ref = useRef<
|
|
85
|
+
const ref = useRef<BottomSheetModalRef>(null);
|
|
22
86
|
const closeCallbacks = useRef<(() => void)[]>([]);
|
|
23
87
|
|
|
24
88
|
const callQueuedCallbacks = useCallback(() => {
|
|
@@ -59,21 +123,37 @@ export function Outer({
|
|
|
59
123
|
[close],
|
|
60
124
|
);
|
|
61
125
|
|
|
126
|
+
const bottomSheet = getBottomSheetModule();
|
|
127
|
+
|
|
62
128
|
const renderBackdrop = useCallback(
|
|
63
|
-
(props: BottomSheetBackdropProps) =>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
129
|
+
(props: BottomSheetBackdropProps) => {
|
|
130
|
+
if (!bottomSheet) return null;
|
|
131
|
+
const { BottomSheetBackdrop } = bottomSheet;
|
|
132
|
+
return (
|
|
133
|
+
<BottomSheetBackdrop
|
|
134
|
+
{...props}
|
|
135
|
+
appearsOnIndex={0}
|
|
136
|
+
disappearsOnIndex={-1}
|
|
137
|
+
pressBehavior="close"
|
|
138
|
+
opacity={0.4}
|
|
139
|
+
/>
|
|
140
|
+
);
|
|
141
|
+
},
|
|
142
|
+
[bottomSheet],
|
|
73
143
|
);
|
|
74
144
|
|
|
75
145
|
const renderHandle = useCallback(() => null, []);
|
|
76
146
|
|
|
147
|
+
if (!bottomSheet) {
|
|
148
|
+
// Optional peer `@gorhom/bottom-sheet` is not installed.
|
|
149
|
+
// Dialog.Outer is a no-op in this environment; consumers on native must
|
|
150
|
+
// install the peer to use Bloom's native Dialog implementation.
|
|
151
|
+
warnMissingBottomSheet();
|
|
152
|
+
return null;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const { BottomSheetModal, BottomSheetView } = bottomSheet;
|
|
156
|
+
|
|
77
157
|
return (
|
|
78
158
|
<BottomSheetModal
|
|
79
159
|
ref={ref}
|
package/src/icons/common.tsx
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StyleSheet, type
|
|
2
|
+
import { StyleSheet, type ColorValue, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import { type PathProps, type SvgProps } from 'react-native-svg';
|
|
4
4
|
import { Defs, LinearGradient, Stop } from 'react-native-svg';
|
|
5
5
|
|
|
6
6
|
import { useTheme } from '../theme/use-theme';
|
|
7
7
|
import { gradients } from '../styles/tokens';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Style prop for Bloom icons. Icons render via `<Svg>`, which is a View-like
|
|
11
|
+
* host, so the style must be View-compatible. A `color` field is allowed as a
|
|
12
|
+
* convenience for consumers who set fill via the CSS `color` shorthand (the
|
|
13
|
+
* icon reads this as a fallback fill when no explicit `fill` prop is given).
|
|
14
|
+
*
|
|
15
|
+
* Note: we intentionally avoid `TextStyle` here — React Native 0.84 introduced
|
|
16
|
+
* `cursor: CursorValue` on `ViewStyle` while `expo/types/react-native-web`
|
|
17
|
+
* augments `TextStyle.cursor` to `string`, and the resulting invariance
|
|
18
|
+
* breaks assignment of `StyleProp<TextStyle>` to `<Svg>`'s style slot.
|
|
19
|
+
*/
|
|
20
|
+
export type IconStyle = ViewStyle & { color?: ColorValue };
|
|
21
|
+
|
|
9
22
|
export type Props = {
|
|
10
23
|
fill?: PathProps['fill'];
|
|
11
|
-
style?:
|
|
24
|
+
style?: StyleProp<IconStyle>;
|
|
12
25
|
size?: keyof typeof sizes;
|
|
13
26
|
gradient?: keyof typeof gradients;
|
|
14
27
|
} & Omit<SvgProps, 'style' | 'size'>;
|
|
@@ -28,9 +41,9 @@ export function useCommonSVGProps(props: Props) {
|
|
|
28
41
|
const { colors } = useTheme();
|
|
29
42
|
const reactId = React.useId();
|
|
30
43
|
const { fill, size, gradient, ...rest } = props;
|
|
31
|
-
const style = StyleSheet.flatten(rest.style);
|
|
44
|
+
const style = StyleSheet.flatten<IconStyle>(rest.style);
|
|
32
45
|
const _size = Number(size ? sizes[size] : rest.width || sizes.md);
|
|
33
|
-
let _fill = fill
|
|
46
|
+
let _fill: PathProps['fill'] = fill ?? style?.color ?? colors.primary;
|
|
34
47
|
let gradientDef = null;
|
|
35
48
|
|
|
36
49
|
if (gradient && gradients[gradient]) {
|
package/src/icons/index.ts
CHANGED
|
@@ -150,5 +150,5 @@ export * from './Warning';
|
|
|
150
150
|
export * from './Window';
|
|
151
151
|
export * from './Wrench';
|
|
152
152
|
export * from './Zap';
|
|
153
|
-
export type { Props } from './common';
|
|
153
|
+
export type { IconStyle, Props } from './common';
|
|
154
154
|
export { sizes, useCommonSVGProps } from './common';
|
|
@@ -76,8 +76,12 @@ const AnimatedSpinner: React.FC<AnimatedSpinnerProps> = ({
|
|
|
76
76
|
style,
|
|
77
77
|
]}
|
|
78
78
|
>
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
<Svg
|
|
80
|
+
viewBox="0 0 100 100"
|
|
81
|
+
width={size}
|
|
82
|
+
height={size}
|
|
83
|
+
{...(className ? ({ className } as Record<string, string>) : {})}
|
|
84
|
+
>
|
|
81
85
|
<Rect fill={color} height="10" opacity="0" rx="5" ry="5" transform="rotate(-90 50 50)" width="28" x="67" y="45" />
|
|
82
86
|
<Rect fill={color} height="10" opacity="0.125" rx="5" ry="5" transform="rotate(-45 50 50)" width="28" x="67" y="45" />
|
|
83
87
|
<Rect fill={color} height="10" opacity="0.25" rx="5" ry="5" transform="rotate(0 50 50)" width="28" x="67" y="45" />
|
package/src/text-field/index.tsx
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
platform,
|
|
21
21
|
tokens,
|
|
22
22
|
type TextStyleProp,
|
|
23
|
+
type ViewStyleProp,
|
|
23
24
|
} from '../styles';
|
|
24
25
|
import { type Props as SVGIconProps } from '../icons/common';
|
|
25
26
|
import { Text } from '../typography';
|
|
@@ -46,7 +47,7 @@ const Context = createContext<{
|
|
|
46
47
|
Context.displayName = 'TextFieldContext';
|
|
47
48
|
|
|
48
49
|
export type RootProps = React.PropsWithChildren<
|
|
49
|
-
{ isInvalid?: boolean } &
|
|
50
|
+
{ isInvalid?: boolean } & ViewStyleProp
|
|
50
51
|
>;
|
|
51
52
|
|
|
52
53
|
export function Root({ children, isInvalid = false, style }: RootProps) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Appearance, Platform } from 'react-native';
|
|
2
|
-
import type { ColorSchemeName } from 'react-native';
|
|
3
2
|
import type { ThemeMode } from './types';
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -7,8 +6,18 @@ import type { ThemeMode } from './types';
|
|
|
7
6
|
* On Android (RN 0.83+), Appearance.setColorScheme has a Kotlin non-null
|
|
8
7
|
* annotation on `style`. Passing null for 'system' crashes.
|
|
9
8
|
* Workaround: resolve the system preference and pass 'light'/'dark' instead.
|
|
9
|
+
*
|
|
10
|
+
* On react-native-web, Appearance.setColorScheme is not implemented at all
|
|
11
|
+
* (it's `undefined`), which crashes with "setColorScheme is not a function".
|
|
12
|
+
* Appearance.getColorScheme() still works on web, so reading the system
|
|
13
|
+
* preference is fine — it's only the setter that's missing. The browser /
|
|
14
|
+
* electron controls the color scheme anyway, so we just bail out on web.
|
|
10
15
|
*/
|
|
11
16
|
export function setColorSchemeSafe(mode: ThemeMode) {
|
|
17
|
+
if (Platform.OS === 'web') {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
|
|
12
21
|
const effectiveMode = mode === 'adaptive' ? 'system' : mode;
|
|
13
22
|
if (effectiveMode === 'system') {
|
|
14
23
|
const resolved = Appearance.getColorScheme() ?? 'light';
|