@react-spectrum/s2 0.3.0 → 0.3.2-nightly.5022
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/ActionButton.cjs +1 -1
- package/dist/ActionButton.cjs.map +1 -1
- package/dist/ActionButton.css.map +1 -1
- package/dist/ActionButton.mjs +3 -3
- package/dist/ActionButton.mjs.map +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.cjs.map +1 -1
- package/dist/Avatar.css.map +1 -1
- package/dist/Avatar.mjs +1 -1
- package/dist/Avatar.mjs.map +1 -1
- package/dist/Breadcrumbs.cjs +3 -0
- package/dist/Breadcrumbs.cjs.map +1 -1
- package/dist/Breadcrumbs.css.map +1 -1
- package/dist/Breadcrumbs.mjs +3 -0
- package/dist/Breadcrumbs.mjs.map +1 -1
- package/dist/Dialog.cjs +5 -1
- package/dist/Dialog.cjs.map +1 -1
- package/dist/Dialog.css.map +1 -1
- package/dist/Dialog.mjs +7 -3
- package/dist/Dialog.mjs.map +1 -1
- package/dist/Meter.cjs +1 -1
- package/dist/Meter.cjs.map +1 -1
- package/dist/Meter.css.map +1 -1
- package/dist/Meter.mjs +1 -1
- package/dist/Meter.mjs.map +1 -1
- package/dist/Tabs.cjs.map +1 -1
- package/dist/Tabs.css.map +1 -1
- package/dist/Tabs.mjs.map +1 -1
- package/dist/TagGroup.cjs +1 -1
- package/dist/TagGroup.cjs.map +1 -1
- package/dist/TagGroup.css.map +1 -1
- package/dist/TagGroup.mjs +1 -1
- package/dist/TagGroup.mjs.map +1 -1
- package/dist/types.d.ts +9 -4
- package/dist/types.d.ts.map +1 -1
- package/icons/3D.d.ts +1 -13
- package/icons/3DAsset.d.ts +1 -13
- package/icons/3DMaterial.d.ts +1 -13
- package/icons/Accessibility.d.ts +1 -13
- package/icons/Add.d.ts +1 -13
- package/icons/AddCircle.d.ts +1 -13
- package/icons/AddContent.d.ts +1 -13
- package/icons/AlertDiamond.d.ts +1 -13
- package/icons/AlertTriangle.d.ts +1 -13
- package/icons/AlignBottom.d.ts +1 -13
- package/icons/AlignCenter.d.ts +1 -13
- package/icons/AlignLeft.d.ts +1 -13
- package/icons/AlignMiddle.d.ts +1 -13
- package/icons/AlignRight.d.ts +1 -13
- package/icons/AlignTop.d.ts +1 -13
- package/icons/Animation.d.ts +1 -13
- package/icons/AnimationNo.d.ts +1 -13
- package/icons/Apps.d.ts +1 -13
- package/icons/AppsAll.d.ts +1 -13
- package/icons/Archive.d.ts +1 -13
- package/icons/ArrowHeadTool.d.ts +1 -13
- package/icons/Artboard.d.ts +1 -13
- package/icons/AspectRatio.d.ts +1 -13
- package/icons/Asset.d.ts +1 -13
- package/icons/Attach.d.ts +1 -13
- package/icons/AudioWave.d.ts +1 -13
- package/icons/AutoSelectSubject.d.ts +1 -13
- package/icons/Background.d.ts +1 -13
- package/icons/BadgeVerified.d.ts +1 -13
- package/icons/Bell.d.ts +1 -13
- package/icons/BellRotated.d.ts +1 -13
- package/icons/BetaApp.d.ts +1 -13
- package/icons/Binoculars.d.ts +1 -13
- package/icons/Blur.d.ts +1 -13
- package/icons/Brand.d.ts +1 -13
- package/icons/Briefcase.d.ts +1 -13
- package/icons/BrightnessContrast.d.ts +1 -13
- package/icons/Brush.d.ts +1 -13
- package/icons/Bug.d.ts +1 -13
- package/icons/Buildings.d.ts +1 -13
- package/icons/CCLibrary.d.ts +1 -13
- package/icons/Calendar.d.ts +1 -13
- package/icons/CalendarAdd.d.ts +1 -13
- package/icons/CalendarDay.d.ts +1 -13
- package/icons/CalendarEdit.d.ts +1 -13
- package/icons/CalendarWeek.d.ts +1 -13
- package/icons/Camera.d.ts +1 -13
- package/icons/CameraProperties.d.ts +1 -13
- package/icons/Cancel.d.ts +1 -13
- package/icons/CheckBox.d.ts +1 -13
- package/icons/CheckmarkCircle.d.ts +1 -13
- package/icons/Circle.d.ts +1 -13
- package/icons/Clock.d.ts +1 -13
- package/icons/ClockPending.d.ts +1 -13
- package/icons/CloseCaptions.d.ts +1 -13
- package/icons/Cloud.d.ts +1 -13
- package/icons/CloudStateDefault.d.ts +1 -13
- package/icons/CloudStateDisconnected.d.ts +1 -13
- package/icons/CloudStateError.d.ts +1 -13
- package/icons/CloudStateErrorRed.d.ts +1 -13
- package/icons/CloudStateInProgress.d.ts +1 -13
- package/icons/CloudStatePaused.d.ts +1 -13
- package/icons/CloudStatePending.d.ts +1 -13
- package/icons/CloudStateSlowConnection.d.ts +1 -13
- package/icons/Collection.d.ts +1 -13
- package/icons/Color.d.ts +1 -13
- package/icons/ColorFill.d.ts +1 -13
- package/icons/ColorHarmony.d.ts +1 -13
- package/icons/Comment.d.ts +1 -13
- package/icons/CommentShow.d.ts +1 -13
- package/icons/CommentText.d.ts +1 -13
- package/icons/Community.d.ts +1 -13
- package/icons/ContextualTaskBar.d.ts +1 -13
- package/icons/Contrast.d.ts +1 -13
- package/icons/Copy.d.ts +1 -13
- package/icons/CornerRadius.d.ts +1 -13
- package/icons/CornerRadiusBottomLeft.d.ts +1 -13
- package/icons/CornerRadiusBottomRight.d.ts +1 -13
- package/icons/CornerRadiusEach.d.ts +1 -13
- package/icons/CornerRadiusTopLeft.d.ts +1 -13
- package/icons/CornerRadiusTopRight.d.ts +1 -13
- package/icons/Crop.d.ts +1 -13
- package/icons/CropRotate.d.ts +1 -13
- package/icons/Cut.d.ts +1 -13
- package/icons/Delete.d.ts +1 -13
- package/icons/DeviceAll.d.ts +1 -13
- package/icons/DeviceDesktop.d.ts +1 -13
- package/icons/DeviceDesktopMobile.d.ts +1 -13
- package/icons/DeviceLaptop.d.ts +1 -13
- package/icons/DeviceMobile.d.ts +1 -13
- package/icons/DeviceMultiscreen.d.ts +1 -13
- package/icons/DevicePhone.d.ts +1 -13
- package/icons/DeviceTablet.d.ts +1 -13
- package/icons/DirectSelect.d.ts +1 -13
- package/icons/Discover.d.ts +1 -13
- package/icons/DistributeBottomEdge.d.ts +1 -13
- package/icons/DistributeHorizontalCenter.d.ts +1 -13
- package/icons/DistributeLeftEdge.d.ts +1 -13
- package/icons/DistributeRightEdge.d.ts +1 -13
- package/icons/DistributeSpaceHorizontally.d.ts +1 -13
- package/icons/DistributeSpaceVertically.d.ts +1 -13
- package/icons/DistributeTopEdge.d.ts +1 -13
- package/icons/DistributeVerticalCenter.d.ts +1 -13
- package/icons/Download.d.ts +1 -13
- package/icons/Draw.d.ts +1 -13
- package/icons/Duplicate.d.ts +1 -13
- package/icons/Edit.d.ts +1 -13
- package/icons/EditNo.d.ts +1 -13
- package/icons/Education.d.ts +1 -13
- package/icons/Effects.d.ts +1 -13
- package/icons/Email.d.ts +1 -13
- package/icons/Emoji.d.ts +1 -13
- package/icons/Erase.d.ts +1 -13
- package/icons/ExportTo.d.ts +1 -13
- package/icons/Exposure.d.ts +1 -13
- package/icons/Eyedropper.d.ts +1 -13
- package/icons/File.d.ts +1 -13
- package/icons/FileAdd.d.ts +1 -13
- package/icons/FileConvert.d.ts +1 -13
- package/icons/FileText.d.ts +1 -13
- package/icons/FileUser.d.ts +1 -13
- package/icons/Files.d.ts +1 -13
- package/icons/Filmstrip.d.ts +1 -13
- package/icons/Filter.d.ts +1 -13
- package/icons/Filters.d.ts +1 -13
- package/icons/FindAndReplace.d.ts +1 -13
- package/icons/Flag.d.ts +1 -13
- package/icons/FlipHorizontal.d.ts +1 -13
- package/icons/FlipVertical.d.ts +1 -13
- package/icons/Folder.d.ts +1 -13
- package/icons/FolderAdd.d.ts +1 -13
- package/icons/FolderBreadcrumb.d.ts +1 -13
- package/icons/FolderClock.d.ts +1 -13
- package/icons/FolderOpen.d.ts +1 -13
- package/icons/FontPicker.d.ts +1 -13
- package/icons/FullScreen.d.ts +1 -13
- package/icons/FullScreenExit.d.ts +1 -13
- package/icons/Gift.d.ts +1 -13
- package/icons/GlobeGrid.d.ts +1 -13
- package/icons/GridTypeDots.d.ts +1 -13
- package/icons/GridTypeLines.d.ts +1 -13
- package/icons/GridsAndRulers.d.ts +1 -13
- package/icons/Group.d.ts +1 -13
- package/icons/GroupNo.d.ts +1 -13
- package/icons/Hand.d.ts +1 -13
- package/icons/Heart.d.ts +1 -13
- package/icons/HelpCircle.d.ts +1 -13
- package/icons/History.d.ts +1 -13
- package/icons/Home.d.ts +1 -13
- package/icons/Icon.d.ts +1 -13
- package/icons/Image.d.ts +1 -13
- package/icons/ImageAdd.d.ts +1 -13
- package/icons/ImageBackgroundRemove.d.ts +1 -13
- package/icons/Images.d.ts +1 -13
- package/icons/InfoCircle.d.ts +1 -13
- package/icons/Interaction.d.ts +1 -13
- package/icons/Invert.d.ts +1 -13
- package/icons/Invite.d.ts +1 -13
- package/icons/Keyboard.d.ts +1 -13
- package/icons/LassoSelect.d.ts +1 -13
- package/icons/Layers.d.ts +1 -13
- package/icons/Layout.d.ts +1 -13
- package/icons/Leave.d.ts +1 -13
- package/icons/Lightbulb.d.ts +1 -13
- package/icons/Lighten.d.ts +1 -13
- package/icons/Line.d.ts +1 -13
- package/icons/LineHeight.d.ts +1 -13
- package/icons/Link.d.ts +1 -13
- package/icons/LinkVertical.d.ts +1 -13
- package/icons/ListBulleted.d.ts +1 -13
- package/icons/ListMultiSelect.d.ts +1 -13
- package/icons/ListNumbered.d.ts +1 -13
- package/icons/Location.d.ts +1 -13
- package/icons/Lock.d.ts +1 -13
- package/icons/LockOpen.d.ts +1 -13
- package/icons/Logo.d.ts +1 -13
- package/icons/MagicWand.d.ts +1 -13
- package/icons/Market.d.ts +1 -13
- package/icons/Mask.d.ts +1 -13
- package/icons/MaskDisable.d.ts +1 -13
- package/icons/Maximize.d.ts +1 -13
- package/icons/Mention.d.ts +1 -13
- package/icons/MenuHamburger.d.ts +1 -13
- package/icons/Microphone.d.ts +1 -13
- package/icons/MicrophoneOff.d.ts +1 -13
- package/icons/Minimize.d.ts +1 -13
- package/icons/More.d.ts +1 -13
- package/icons/Move.d.ts +1 -13
- package/icons/MovieCamera.d.ts +1 -13
- package/icons/MusicNote.d.ts +1 -13
- package/icons/New.d.ts +1 -13
- package/icons/Nudge.d.ts +1 -13
- package/icons/OpenIn.d.ts +1 -13
- package/icons/Order.d.ts +1 -13
- package/icons/OrderBottom.d.ts +1 -13
- package/icons/OrderOneDown.d.ts +1 -13
- package/icons/OrderOneUp.d.ts +1 -13
- package/icons/OrderTop.d.ts +1 -13
- package/icons/OrientationLandscape.d.ts +1 -13
- package/icons/OrientationPortrait.d.ts +1 -13
- package/icons/Paste.d.ts +1 -13
- package/icons/Path.d.ts +1 -13
- package/icons/Pattern.d.ts +1 -13
- package/icons/Pause.d.ts +1 -13
- package/icons/PenBrush.d.ts +1 -13
- package/icons/People.d.ts +1 -13
- package/icons/Percentage.d.ts +1 -13
- package/icons/Play.d.ts +1 -13
- package/icons/Plugin.d.ts +1 -13
- package/icons/PluginGear.d.ts +1 -13
- package/icons/Polygon3.d.ts +1 -13
- package/icons/Polygon4.d.ts +1 -13
- package/icons/Polygon5.d.ts +1 -13
- package/icons/Polygon6.d.ts +1 -13
- package/icons/Preview.d.ts +1 -13
- package/icons/Print.d.ts +1 -13
- package/icons/Project.d.ts +1 -13
- package/icons/ProjectAddInto.d.ts +1 -13
- package/icons/ProjectCreate.d.ts +1 -13
- package/icons/Promote.d.ts +1 -13
- package/icons/Prompt.d.ts +1 -13
- package/icons/Properties.d.ts +1 -13
- package/icons/Prototyping.d.ts +1 -13
- package/icons/Publish.d.ts +1 -13
- package/icons/PublishNo.d.ts +1 -13
- package/icons/RadioButton.d.ts +1 -13
- package/icons/RectangleHoriz.d.ts +1 -13
- package/icons/Redo.d.ts +1 -13
- package/icons/Refresh.d.ts +1 -13
- package/icons/RemoveCircle.d.ts +1 -13
- package/icons/Rename.d.ts +1 -13
- package/icons/Replace.d.ts +1 -13
- package/icons/ReportAbuse.d.ts +1 -13
- package/icons/Resize.d.ts +1 -13
- package/icons/Revert.d.ts +1 -13
- package/icons/ReviewLink.d.ts +1 -13
- package/icons/Ribbon.d.ts +1 -13
- package/icons/RocketQuickActions.d.ts +1 -13
- package/icons/RotateCCW.d.ts +1 -13
- package/icons/RotateCW.d.ts +1 -13
- package/icons/RotateOrientation.d.ts +1 -13
- package/icons/S2_Icon_MediaOffline_N.d.ts +1 -13
- package/icons/Saturation.d.ts +1 -13
- package/icons/Search.d.ts +1 -13
- package/icons/Select.d.ts +1 -13
- package/icons/SelectAllItems.d.ts +1 -13
- package/icons/SelectAndMove.d.ts +1 -13
- package/icons/SelectNo.d.ts +1 -13
- package/icons/SelectRectangle.d.ts +1 -13
- package/icons/Send.d.ts +1 -13
- package/icons/Settings.d.ts +1 -13
- package/icons/Shapes.d.ts +1 -13
- package/icons/Share.d.ts +1 -13
- package/icons/ShareAndroid.d.ts +1 -13
- package/icons/ShoppingCart.d.ts +1 -13
- package/icons/Shuffle.d.ts +1 -13
- package/icons/Similar.d.ts +1 -13
- package/icons/Slideshow.d.ts +1 -13
- package/icons/SocialNetwork.d.ts +1 -13
- package/icons/Sort.d.ts +1 -13
- package/icons/SortDown.d.ts +1 -13
- package/icons/SortUp.d.ts +1 -13
- package/icons/StampClone.d.ts +1 -13
- package/icons/Star.d.ts +1 -13
- package/icons/StarFilled.d.ts +1 -13
- package/icons/StepBackward.d.ts +1 -13
- package/icons/StepForward.d.ts +1 -13
- package/icons/StickyNote.d.ts +1 -13
- package/icons/StrokeDotted.d.ts +1 -13
- package/icons/StrokeSolid.d.ts +1 -13
- package/icons/StrokeWidth.d.ts +1 -13
- package/icons/Switch.d.ts +1 -13
- package/icons/SwitchVertical.d.ts +1 -13
- package/icons/Tag.d.ts +1 -13
- package/icons/Target.d.ts +1 -13
- package/icons/Temperature.d.ts +1 -13
- package/icons/Template.d.ts +1 -13
- package/icons/Text.d.ts +1 -13
- package/icons/TextAdd.d.ts +1 -13
- package/icons/TextAlignCenter.d.ts +1 -13
- package/icons/TextAlignJustify.d.ts +1 -13
- package/icons/TextAlignJustifyLastCenter.d.ts +1 -13
- package/icons/TextAlignJustifyLastLeft.d.ts +1 -13
- package/icons/TextAlignJustifyLastRight.d.ts +1 -13
- package/icons/TextAlignLeft.d.ts +1 -13
- package/icons/TextAlignRight.d.ts +1 -13
- package/icons/TextBold.d.ts +1 -13
- package/icons/TextItalic.d.ts +1 -13
- package/icons/TextNumbers.d.ts +1 -13
- package/icons/TextParagraph.d.ts +1 -13
- package/icons/TextSize.d.ts +1 -13
- package/icons/TextStrikeThrough.d.ts +1 -13
- package/icons/TextSubscript.d.ts +1 -13
- package/icons/TextSuperscript.d.ts +1 -13
- package/icons/TextUnderline.d.ts +1 -13
- package/icons/TextVariableFontSettings.d.ts +1 -13
- package/icons/ThumbDown.d.ts +1 -13
- package/icons/ThumbUp.d.ts +1 -13
- package/icons/Toggle.d.ts +1 -13
- package/icons/TouchOneFingerSwipeLeftRight.d.ts +1 -13
- package/icons/Transcript.d.ts +1 -13
- package/icons/TransformDistort.d.ts +1 -13
- package/icons/TransformGeneric.d.ts +1 -13
- package/icons/TransformPerspective.d.ts +1 -13
- package/icons/TransformSkew.d.ts +1 -13
- package/icons/TransformWarp.d.ts +1 -13
- package/icons/Translate.d.ts +1 -13
- package/icons/Tutorials.d.ts +1 -13
- package/icons/UnLink.d.ts +1 -13
- package/icons/Undo.d.ts +1 -13
- package/icons/UnlinkHoriz.d.ts +1 -13
- package/icons/UnlinkVertical.d.ts +1 -13
- package/icons/Upload.d.ts +1 -13
- package/icons/UploadToCloud.d.ts +1 -13
- package/icons/User.d.ts +1 -13
- package/icons/UserAdd.d.ts +1 -13
- package/icons/UserAvatar.d.ts +1 -13
- package/icons/UserEdit.d.ts +1 -13
- package/icons/UserFollowing.d.ts +1 -13
- package/icons/UserGroup.d.ts +1 -13
- package/icons/UserLock.d.ts +1 -13
- package/icons/UsersLock.d.ts +1 -13
- package/icons/VectorDraw.d.ts +1 -13
- package/icons/Video.d.ts +1 -13
- package/icons/ViewGrid.d.ts +1 -13
- package/icons/ViewList.d.ts +1 -13
- package/icons/Visibility.d.ts +1 -13
- package/icons/VisibilityOff.d.ts +1 -13
- package/icons/VolumeOff.d.ts +1 -13
- package/icons/VolumeOne.d.ts +1 -13
- package/icons/VolumeTwo.d.ts +1 -13
- package/icons/WebNavBar.d.ts +1 -13
- package/icons/WebPage.d.ts +1 -13
- package/icons/ZoomIn.d.ts +1 -13
- package/icons/ZoomOut.d.ts +1 -13
- package/illustrations/gradient/generic1/Apps.d.ts +1 -13
- package/illustrations/gradient/generic1/Artboard.d.ts +1 -13
- package/illustrations/gradient/generic1/Bell.d.ts +1 -13
- package/illustrations/gradient/generic1/Bolt.d.ts +1 -13
- package/illustrations/gradient/generic1/Brand.d.ts +1 -13
- package/illustrations/gradient/generic1/Briefcase.d.ts +1 -13
- package/illustrations/gradient/generic1/Browser.d.ts +1 -13
- package/illustrations/gradient/generic1/BuildTable.d.ts +1 -13
- package/illustrations/gradient/generic1/Buildings.d.ts +1 -13
- package/illustrations/gradient/generic1/Calendar.d.ts +1 -13
- package/illustrations/gradient/generic1/Camera.d.ts +1 -13
- package/illustrations/gradient/generic1/Chatbubble.d.ts +1 -13
- package/illustrations/gradient/generic1/Checkmark.d.ts +1 -13
- package/illustrations/gradient/generic1/Clipboard.d.ts +1 -13
- package/illustrations/gradient/generic1/Clock.d.ts +1 -13
- package/illustrations/gradient/generic1/Cloud.d.ts +1 -13
- package/illustrations/gradient/generic1/CloudUpload.d.ts +1 -13
- package/illustrations/gradient/generic1/CodeBrackets.d.ts +1 -13
- package/illustrations/gradient/generic1/Confetti.d.ts +1 -13
- package/illustrations/gradient/generic1/Conversationbubbles.d.ts +1 -13
- package/illustrations/gradient/generic1/Cursor.d.ts +1 -13
- package/illustrations/gradient/generic1/Desktop.d.ts +1 -13
- package/illustrations/gradient/generic1/Document.d.ts +1 -13
- package/illustrations/gradient/generic1/DropToUpload.d.ts +1 -13
- package/illustrations/gradient/generic1/EmptyStateExport.d.ts +1 -13
- package/illustrations/gradient/generic1/Error.d.ts +1 -13
- package/illustrations/gradient/generic1/FileImage.d.ts +1 -13
- package/illustrations/gradient/generic1/FileText.d.ts +1 -13
- package/illustrations/gradient/generic1/FileVideo.d.ts +1 -13
- package/illustrations/gradient/generic1/FileZip.d.ts +1 -13
- package/illustrations/gradient/generic1/Filmstrip.d.ts +1 -13
- package/illustrations/gradient/generic1/Filter.d.ts +1 -13
- package/illustrations/gradient/generic1/Fireworks.d.ts +1 -13
- package/illustrations/gradient/generic1/FolderClose.d.ts +1 -13
- package/illustrations/gradient/generic1/FolderOpen.d.ts +1 -13
- package/illustrations/gradient/generic1/GearSetting.d.ts +1 -13
- package/illustrations/gradient/generic1/GraphBarChart.d.ts +1 -13
- package/illustrations/gradient/generic1/Handshake.d.ts +1 -13
- package/illustrations/gradient/generic1/Heart.d.ts +1 -13
- package/illustrations/gradient/generic1/Image.d.ts +1 -13
- package/illustrations/gradient/generic1/ImageStack.d.ts +1 -13
- package/illustrations/gradient/generic1/Information.d.ts +1 -13
- package/illustrations/gradient/generic1/Laptop.d.ts +1 -13
- package/illustrations/gradient/generic1/Layers.d.ts +1 -13
- package/illustrations/gradient/generic1/Libraries.d.ts +1 -13
- package/illustrations/gradient/generic1/Lightbulb.d.ts +1 -13
- package/illustrations/gradient/generic1/LightbulbRays.d.ts +1 -13
- package/illustrations/gradient/generic1/Link.d.ts +1 -13
- package/illustrations/gradient/generic1/Location.d.ts +1 -13
- package/illustrations/gradient/generic1/LockClose.d.ts +1 -13
- package/illustrations/gradient/generic1/LockOpen.d.ts +1 -13
- package/illustrations/gradient/generic1/Logo.d.ts +1 -13
- package/illustrations/gradient/generic1/MailClose.d.ts +1 -13
- package/illustrations/gradient/generic1/MegaphonePromote.d.ts +1 -13
- package/illustrations/gradient/generic1/MegaphonePromoteExpressive.d.ts +1 -13
- package/illustrations/gradient/generic1/Paperairplane.d.ts +1 -13
- package/illustrations/gradient/generic1/Paperclip.d.ts +1 -13
- package/illustrations/gradient/generic1/Phone.d.ts +1 -13
- package/illustrations/gradient/generic1/PieChart.d.ts +1 -13
- package/illustrations/gradient/generic1/Pin.d.ts +1 -13
- package/illustrations/gradient/generic1/Play.d.ts +1 -13
- package/illustrations/gradient/generic1/Plugin.d.ts +1 -13
- package/illustrations/gradient/generic1/Rocket.d.ts +1 -13
- package/illustrations/gradient/generic1/Search.d.ts +1 -13
- package/illustrations/gradient/generic1/Server.d.ts +1 -13
- package/illustrations/gradient/generic1/Sparkles.d.ts +1 -13
- package/illustrations/gradient/generic1/Star.d.ts +1 -13
- package/illustrations/gradient/generic1/Tablet.d.ts +1 -13
- package/illustrations/gradient/generic1/Tag.d.ts +1 -13
- package/illustrations/gradient/generic1/Trash.d.ts +1 -13
- package/illustrations/gradient/generic1/Trophy.d.ts +1 -13
- package/illustrations/gradient/generic1/Update.d.ts +1 -13
- package/illustrations/gradient/generic1/User.d.ts +1 -13
- package/illustrations/gradient/generic1/UserGroup.d.ts +1 -13
- package/illustrations/gradient/generic1/Video.d.ts +1 -13
- package/illustrations/gradient/generic2/Apps.d.ts +1 -13
- package/illustrations/gradient/generic2/Artboard.d.ts +1 -13
- package/illustrations/gradient/generic2/Bell.d.ts +1 -13
- package/illustrations/gradient/generic2/Bolt.d.ts +1 -13
- package/illustrations/gradient/generic2/Brand.d.ts +1 -13
- package/illustrations/gradient/generic2/Briefcase.d.ts +1 -13
- package/illustrations/gradient/generic2/Browser.d.ts +1 -13
- package/illustrations/gradient/generic2/BuildTable.d.ts +1 -13
- package/illustrations/gradient/generic2/Buildings.d.ts +1 -13
- package/illustrations/gradient/generic2/Calendar.d.ts +1 -13
- package/illustrations/gradient/generic2/Camera.d.ts +1 -13
- package/illustrations/gradient/generic2/Chatbubble.d.ts +1 -13
- package/illustrations/gradient/generic2/Checkmark.d.ts +1 -13
- package/illustrations/gradient/generic2/Clipboard.d.ts +1 -13
- package/illustrations/gradient/generic2/Clock.d.ts +1 -13
- package/illustrations/gradient/generic2/Cloud.d.ts +1 -13
- package/illustrations/gradient/generic2/CloudUpload.d.ts +1 -13
- package/illustrations/gradient/generic2/CodeBrackets.d.ts +1 -13
- package/illustrations/gradient/generic2/Confetti.d.ts +1 -13
- package/illustrations/gradient/generic2/Conversationbubbles.d.ts +1 -13
- package/illustrations/gradient/generic2/Cursor.d.ts +1 -13
- package/illustrations/gradient/generic2/Desktop.d.ts +1 -13
- package/illustrations/gradient/generic2/Document.d.ts +1 -13
- package/illustrations/gradient/generic2/DropToUpload.d.ts +1 -13
- package/illustrations/gradient/generic2/EmptyStateExport.d.ts +1 -13
- package/illustrations/gradient/generic2/Error.d.ts +1 -13
- package/illustrations/gradient/generic2/FileImage.d.ts +1 -13
- package/illustrations/gradient/generic2/FileText.d.ts +1 -13
- package/illustrations/gradient/generic2/FileVideo.d.ts +1 -13
- package/illustrations/gradient/generic2/FileZip.d.ts +1 -13
- package/illustrations/gradient/generic2/Filmstrip.d.ts +1 -13
- package/illustrations/gradient/generic2/Filter.d.ts +1 -13
- package/illustrations/gradient/generic2/Fireworks.d.ts +1 -13
- package/illustrations/gradient/generic2/FolderClose.d.ts +1 -13
- package/illustrations/gradient/generic2/FolderOpen.d.ts +1 -13
- package/illustrations/gradient/generic2/GearSetting.d.ts +1 -13
- package/illustrations/gradient/generic2/GraphBarChart.d.ts +1 -13
- package/illustrations/gradient/generic2/Handshake.d.ts +1 -13
- package/illustrations/gradient/generic2/Heart.d.ts +1 -13
- package/illustrations/gradient/generic2/Image.d.ts +1 -13
- package/illustrations/gradient/generic2/ImageStack.d.ts +1 -13
- package/illustrations/gradient/generic2/Information.d.ts +1 -13
- package/illustrations/gradient/generic2/Laptop.d.ts +1 -13
- package/illustrations/gradient/generic2/Layers.d.ts +1 -13
- package/illustrations/gradient/generic2/Libraries.d.ts +1 -13
- package/illustrations/gradient/generic2/Lightbulb.d.ts +1 -13
- package/illustrations/gradient/generic2/LightbulbRays.d.ts +1 -13
- package/illustrations/gradient/generic2/Link.d.ts +1 -13
- package/illustrations/gradient/generic2/Location.d.ts +1 -13
- package/illustrations/gradient/generic2/LockClose.d.ts +1 -13
- package/illustrations/gradient/generic2/LockOpen.d.ts +1 -13
- package/illustrations/gradient/generic2/Logo.d.ts +1 -13
- package/illustrations/gradient/generic2/MailClose.d.ts +1 -13
- package/illustrations/gradient/generic2/MegaphonePromote.d.ts +1 -13
- package/illustrations/gradient/generic2/MegaphonePromoteExpressive.d.ts +1 -13
- package/illustrations/gradient/generic2/Paperairplane.d.ts +1 -13
- package/illustrations/gradient/generic2/Paperclip.d.ts +1 -13
- package/illustrations/gradient/generic2/Phone.d.ts +1 -13
- package/illustrations/gradient/generic2/PieChart.d.ts +1 -13
- package/illustrations/gradient/generic2/Pin.d.ts +1 -13
- package/illustrations/gradient/generic2/Play.d.ts +1 -13
- package/illustrations/gradient/generic2/Plugin.d.ts +1 -13
- package/illustrations/gradient/generic2/Rocket.d.ts +1 -13
- package/illustrations/gradient/generic2/Search.d.ts +1 -13
- package/illustrations/gradient/generic2/Server.d.ts +1 -13
- package/illustrations/gradient/generic2/Sparkles.d.ts +1 -13
- package/illustrations/gradient/generic2/Star.d.ts +1 -13
- package/illustrations/gradient/generic2/Tablet.d.ts +1 -13
- package/illustrations/gradient/generic2/Tag.d.ts +1 -13
- package/illustrations/gradient/generic2/Trash.d.ts +1 -13
- package/illustrations/gradient/generic2/Trophy.d.ts +1 -13
- package/illustrations/gradient/generic2/Update.d.ts +1 -13
- package/illustrations/gradient/generic2/User.d.ts +1 -13
- package/illustrations/gradient/generic2/UserGroup.d.ts +1 -13
- package/illustrations/gradient/generic2/Video.d.ts +1 -13
- package/illustrations/linear/AlertNotice.d.ts +1 -13
- package/illustrations/linear/Apps.d.ts +1 -13
- package/illustrations/linear/ArrowDown.d.ts +1 -13
- package/illustrations/linear/ArrowLeft.d.ts +1 -13
- package/illustrations/linear/ArrowRight.d.ts +1 -13
- package/illustrations/linear/ArrowUp.d.ts +1 -13
- package/illustrations/linear/Artboard.d.ts +1 -13
- package/illustrations/linear/Bell.d.ts +1 -13
- package/illustrations/linear/Bolt.d.ts +1 -13
- package/illustrations/linear/Brand.d.ts +1 -13
- package/illustrations/linear/Briefcase.d.ts +1 -13
- package/illustrations/linear/Browser.d.ts +1 -13
- package/illustrations/linear/BrowserError.d.ts +1 -13
- package/illustrations/linear/BrowserNotCompatible.d.ts +1 -13
- package/illustrations/linear/BuildTable.d.ts +1 -13
- package/illustrations/linear/Buildings.d.ts +1 -13
- package/illustrations/linear/Calendar.d.ts +1 -13
- package/illustrations/linear/Camera.d.ts +1 -13
- package/illustrations/linear/Chatbubble.d.ts +1 -13
- package/illustrations/linear/Check.d.ts +1 -13
- package/illustrations/linear/Clipboard.d.ts +1 -13
- package/illustrations/linear/Clock.d.ts +1 -13
- package/illustrations/linear/Close.d.ts +1 -13
- package/illustrations/linear/Cloud.d.ts +1 -13
- package/illustrations/linear/CloudStateDisconnected.d.ts +1 -13
- package/illustrations/linear/CloudStateError.d.ts +1 -13
- package/illustrations/linear/CloudUpload.d.ts +1 -13
- package/illustrations/linear/CodeBrackets.d.ts +1 -13
- package/illustrations/linear/ConfettiCelebration.d.ts +1 -13
- package/illustrations/linear/Conversationbubbles.d.ts +1 -13
- package/illustrations/linear/Cursor.d.ts +1 -13
- package/illustrations/linear/Desktop.d.ts +1 -13
- package/illustrations/linear/Document.d.ts +1 -13
- package/illustrations/linear/DropToUpload.d.ts +1 -13
- package/illustrations/linear/EmptyStateExport.d.ts +1 -13
- package/illustrations/linear/Error.d.ts +1 -13
- package/illustrations/linear/FileAlert.d.ts +1 -13
- package/illustrations/linear/FileImage.d.ts +1 -13
- package/illustrations/linear/FileText.d.ts +1 -13
- package/illustrations/linear/FileVideo.d.ts +1 -13
- package/illustrations/linear/FileZip.d.ts +1 -13
- package/illustrations/linear/Filmstrip.d.ts +1 -13
- package/illustrations/linear/Filter.d.ts +1 -13
- package/illustrations/linear/Fireworks.d.ts +1 -13
- package/illustrations/linear/FolderClose.d.ts +1 -13
- package/illustrations/linear/FolderOpen.d.ts +1 -13
- package/illustrations/linear/GearSetting.d.ts +1 -13
- package/illustrations/linear/GraphBarChart.d.ts +1 -13
- package/illustrations/linear/Handshake.d.ts +1 -13
- package/illustrations/linear/Heart.d.ts +1 -13
- package/illustrations/linear/Image.d.ts +1 -13
- package/illustrations/linear/ImageStack.d.ts +1 -13
- package/illustrations/linear/Information.d.ts +1 -13
- package/illustrations/linear/Laptop.d.ts +1 -13
- package/illustrations/linear/Layers.d.ts +1 -13
- package/illustrations/linear/Libraries.d.ts +1 -13
- package/illustrations/linear/Lightbulb.d.ts +1 -13
- package/illustrations/linear/LightbulbRays.d.ts +1 -13
- package/illustrations/linear/Link.d.ts +1 -13
- package/illustrations/linear/Location.d.ts +1 -13
- package/illustrations/linear/LockClose.d.ts +1 -13
- package/illustrations/linear/LockOpen.d.ts +1 -13
- package/illustrations/linear/Logo.d.ts +1 -13
- package/illustrations/linear/MailClose.d.ts +1 -13
- package/illustrations/linear/MegaphonePromote.d.ts +1 -13
- package/illustrations/linear/MegaphonePromoteExpressive.d.ts +1 -13
- package/illustrations/linear/Paperairplane.d.ts +1 -13
- package/illustrations/linear/Paperclip.d.ts +1 -13
- package/illustrations/linear/Phone.d.ts +1 -13
- package/illustrations/linear/PieChart.d.ts +1 -13
- package/illustrations/linear/Pin.d.ts +1 -13
- package/illustrations/linear/Play.d.ts +1 -13
- package/illustrations/linear/Plugin.d.ts +1 -13
- package/illustrations/linear/Rocket.d.ts +1 -13
- package/illustrations/linear/Search.d.ts +1 -13
- package/illustrations/linear/Server.d.ts +1 -13
- package/illustrations/linear/Sparkles.d.ts +1 -13
- package/illustrations/linear/Star.d.ts +1 -13
- package/illustrations/linear/Tablet.d.ts +1 -13
- package/illustrations/linear/Tag.d.ts +1 -13
- package/illustrations/linear/Trash.d.ts +1 -13
- package/illustrations/linear/Trophy.d.ts +1 -13
- package/illustrations/linear/Update.d.ts +1 -13
- package/illustrations/linear/User.d.ts +1 -13
- package/illustrations/linear/UserGroup.d.ts +1 -13
- package/illustrations/linear/Video.d.ts +1 -13
- package/illustrations/linear/Warning.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_alertNotice_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_alertNotice_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_alertNotice_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_apps_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_apps_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_apps_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowDown_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowDown_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowDown_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowLeft_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowLeft_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowLeft_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowRight_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowRight_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowRight_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowUp_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowUp_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_arrowUp_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_artboard_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_artboard_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_artboard_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_bell_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_bell_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_bell_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_bolt_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_bolt_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_bolt_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_brand_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_brand_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_brand_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_briefcase_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_briefcase_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_briefcase_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_browserError_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_browserError_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_browserError_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_browserNotCompatible_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_browserNotCompatible_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_browserNotCompatible_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_browser_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_browser_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_browser_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_buildTable_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_buildTable_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_buildTable_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_buildings_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_buildings_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_buildings_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_calendar_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_calendar_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_calendar_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_camera_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_camera_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_camera_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_chatbubble_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_chatbubble_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_chatbubble_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_check_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_check_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_check_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_clipboard_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_clipboard_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_clipboard_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_clock_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_clock_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_clock_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_close_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_close_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_close_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloudStateDisconnected_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloudStateDisconnected_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloudStateDisconnected_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloudStateError_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloudStateError_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloudStateError_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloudUpload_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloudUpload_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloudUpload_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloud_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloud_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cloud_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_codeBrackets_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_codeBrackets_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_codeBrackets_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_confettiCelebration_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_confettiCelebration_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_confettiCelebration_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_conversationbubbles_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_conversationbubbles_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_conversationbubbles_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cursor_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cursor_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_cursor_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_desktop_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_desktop_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_desktop_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_document_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_document_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_document_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_dropToUpload_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_dropToUpload_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_dropToUpload_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_emptyStateExport_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_emptyStateExport_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_emptyStateExport_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_error_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_error_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_error_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileAlert_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileAlert_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileAlert_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileImage_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileImage_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileImage_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileText_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileText_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileText_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileVideo_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileVideo_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileVideo_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileZip_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileZip_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fileZip_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_filmstrip_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_filmstrip_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_filmstrip_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_filter_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_filter_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_filter_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fireworks_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fireworks_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_fireworks_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_folderClose_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_folderClose_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_folderClose_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_folderOpen_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_folderOpen_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_folderOpen_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_gearSetting_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_gearSetting_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_gearSetting_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_graphBarChart_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_graphBarChart_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_graphBarChart_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_handshake_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_handshake_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_handshake_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_heart_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_heart_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_heart_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_imageStack_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_imageStack_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_imageStack_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_image_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_image_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_image_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_information_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_information_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_information_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_laptop_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_laptop_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_laptop_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_layers_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_layers_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_layers_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_libraries_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_libraries_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_libraries_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lightbulbRays_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lightbulbRays_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lightbulbRays_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lightbulb_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lightbulb_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lightbulb_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_link_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_link_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_link_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_location_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_location_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_location_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lockClose_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lockClose_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lockClose_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lockOpen_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lockOpen_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_lockOpen_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_logo_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_logo_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_logo_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_mailClose_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_mailClose_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_mailClose_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_megaphonePromote_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_megaphonePromote_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_megaphonePromote_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_megaphonePromote_Expressive_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_megaphonePromote_Expressive_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_megaphonePromote_Expressive_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_paperairplane_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_paperairplane_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_paperairplane_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_paperclip_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_paperclip_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_paperclip_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_phone_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_phone_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_phone_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_pieChart_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_pieChart_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_pieChart_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_pin_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_pin_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_pin_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_play_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_play_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_play_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_plugin_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_plugin_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_plugin_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_rocket_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_rocket_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_rocket_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_search_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_search_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_search_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_server_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_server_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_server_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_sparkles_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_sparkles_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_sparkles_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_star_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_star_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_star_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_tablet_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_tablet_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_tablet_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_tag_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_tag_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_tag_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_trash_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_trash_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_trash_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_trophy_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_trophy_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_trophy_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_update_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_update_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_update_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_userGroup_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_userGroup_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_userGroup_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_user_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_user_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_user_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_video_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_video_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_video_96.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_warning_160.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_warning_48.d.ts +1 -13
- package/illustrations/linear/internal/S2_lin_warning_96.d.ts +1 -13
- package/package.json +14 -14
- package/src/ActionButton.tsx +2 -2
- package/src/Avatar.tsx +1 -1
- package/src/Breadcrumbs.tsx +3 -1
- package/src/Dialog.tsx +105 -104
- package/src/Meter.tsx +5 -3
- package/src/Tabs.tsx +4 -1
- package/src/TagGroup.tsx +1 -1
package/dist/ActionButton.cjs
CHANGED
|
@@ -264,7 +264,7 @@ function $6e265ff388155b91$var$ActionButton(props, ref) {
|
|
|
264
264
|
}
|
|
265
265
|
]
|
|
266
266
|
],
|
|
267
|
-
children: typeof props.children === 'string' ? /*#__PURE__*/ (0, $9ZEgK$reactjsxruntime.jsx)((0, $
|
|
267
|
+
children: typeof props.children === 'string' ? /*#__PURE__*/ (0, $9ZEgK$reactjsxruntime.jsx)((0, $6367bc87eb7d24ad$exports.Text), {
|
|
268
268
|
children: props.children
|
|
269
269
|
}) : props.children
|
|
270
270
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAwCM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2HN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ights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {baseColor, fontRelative, style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {ButtonProps, ButtonRenderProps, ContextValue, OverlayTriggerStateContext, Provider, Button as RACButton} from 'react-aria-components';\nimport {centerBaseline} from './CenterBaseline';\nimport {createContext, forwardRef, ReactNode, useContext} from 'react';\nimport {FocusableRef, FocusableRefValue} from '@react-types/shared';\nimport {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with { type: 'macro' };\nimport {IconContext} from './Icon';\nimport {pressScale} from './pressScale';\nimport {Text, TextContext} from './Content';\nimport {useFocusableRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface ActionButtonStyleProps {\n /**\n * The size of the ActionButton.\n *\n * @default 'M'\n */\n size?: 'XS' | 'S' | 'M' | 'L' | 'XL',\n /** The static color style to apply. Useful when the ActionButton appears over a color background. */\n staticColor?: 'black' | 'white',\n /** Whether the button should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */\n isQuiet?: boolean\n}\n\ninterface ToggleButtonStyleProps {\n /** Whether the ActionButton should be selected (controlled). */\n isSelected?: boolean,\n /** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */\n isEmphasized?: boolean\n}\n\nexport interface ActionButtonProps extends Omit<ButtonProps, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, ActionButtonStyleProps {\n /** The content to display in the ActionButton. */\n children?: ReactNode\n}\n\n// These styles handle both ActionButton and ToggleButton\nexport const btnStyles = style<ButtonRenderProps & ActionButtonStyleProps & ToggleButtonStyleProps>({\n ...focusRing(),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n columnGap: 'text-to-visual',\n font: 'control',\n fontWeight: 'medium',\n userSelect: 'none',\n height: 'control',\n minWidth: 'control',\n transition: 'default',\n forcedColorAdjust: 'none',\n backgroundColor: {\n default: {\n ...baseColor('gray-100'),\n default: {\n default: 'gray-100',\n isQuiet: 'transparent'\n }\n },\n isSelected: {\n default: 'neutral',\n isEmphasized: 'accent',\n isDisabled: {\n default: 'gray-100',\n isQuiet: 'transparent'\n }\n },\n staticColor: {\n white: {\n ...baseColor('transparent-white-100'),\n default: {\n default: 'transparent-white-100',\n isQuiet: 'transparent'\n },\n isSelected: {\n default: baseColor('transparent-white-800'),\n isDisabled: {\n default: 'transparent-white-100',\n isQuiet: 'transparent'\n }\n }\n },\n black: {\n ...baseColor('transparent-black-100'),\n default: {\n default: 'transparent-black-100',\n isQuiet: 'transparent'\n },\n isSelected: {\n default: baseColor('transparent-black-800'),\n isDisabled: {\n default: 'transparent-black-100',\n isQuiet: 'transparent'\n }\n }\n }\n },\n forcedColors: {\n default: 'ButtonFace',\n isSelected: {\n default: 'Highlight',\n isDisabled: 'ButtonFace'\n }\n }\n },\n color: {\n default: 'neutral',\n isSelected: {\n default: 'gray-25',\n isEmphasized: 'white'\n },\n isDisabled: 'disabled',\n staticColor: {\n white: {\n default: baseColor('transparent-white-800'),\n isSelected: 'black',\n isDisabled: 'transparent-white-400'\n },\n black: {\n default: baseColor('transparent-black-800'),\n isSelected: 'white',\n isDisabled: 'transparent-black-400'\n }\n },\n forcedColors: {\n default: 'ButtonText',\n isSelected: 'HighlightText',\n isDisabled: {\n default: 'GrayText'\n }\n }\n },\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n },\n outlineColor: {\n default: 'focus-ring',\n staticColor: {\n white: 'white',\n black: 'black'\n },\n forcedColors: 'Highlight'\n },\n borderStyle: 'none',\n paddingX: {\n default: 'edge-to-text',\n ':has([slot=icon]:only-child)': 0\n },\n paddingY: 0,\n borderRadius: 'control',\n '--iconMargin': {\n type: 'marginTop',\n value: {\n default: fontRelative(-2),\n ':has([slot=icon]:only-child)': 0\n }\n },\n disableTapHighlight: true\n}, getAllowedOverrides());\n\nexport const ActionButtonContext = createContext<ContextValue<ActionButtonProps, FocusableRefValue<HTMLButtonElement>>>(null);\n\nfunction ActionButton(props: ActionButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, ActionButtonContext);\n let domRef = useFocusableRef(ref);\n let overlayTriggerState = useContext(OverlayTriggerStateContext);\n\n return (\n <RACButton\n {...props}\n ref={domRef}\n style={pressScale(domRef, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + btnStyles({\n ...renderProps,\n // Retain hover styles when an overlay is open.\n isHovered: renderProps.isHovered || overlayTriggerState?.isOpen || false,\n staticColor: props.staticColor,\n size: props.size || 'M',\n isQuiet: props.isQuiet\n }, props.styles)}>\n <Provider\n values={[\n [TextContext, {styles: style({paddingY: '--labelPadding', order: 1, truncate: true})}],\n [IconContext, {\n render: centerBaseline({slot: 'icon', styles: style({order: 0})}),\n styles: style({size: fontRelative(20), marginStart: '--iconMargin', flexShrink: 0})\n }]\n ]}>\n {typeof props.children === 'string' ? <Text>{props.children}</Text> : props.children}\n </Provider>\n </RACButton>\n );\n}\n\n/**\n * ActionButtons allow users to perform an action.\n * They’re used for similar, task-based options within a workflow, and are ideal for interfaces where buttons aren’t meant to draw a lot of attention.\n */\nlet _ActionButton = forwardRef(ActionButton);\nexport {_ActionButton as ActionButton};\n"],"names":[],"version":3,"file":"ActionButton.cjs.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"ACkDyB;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAA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"3059048d79d64c86\";\n@import \"9bc41819d7d08688\";\n","/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {baseColor, fontRelative, style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {ButtonProps, ButtonRenderProps, ContextValue, OverlayTriggerStateContext, Provider, Button as RACButton
|
|
1
|
+
{"mappings":"ACkDyB;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAiJQ;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAEyB;;;;EACtC;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AApJK;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;;AAAA;EAAA;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;;;AAAA;EAAA;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;;;AAiJQ","sources":["2931924df01dc677","packages/@react-spectrum/s2/src/ActionButton.tsx"],"sourcesContent":["@import \"3cf237010a171787\";\n@import \"c38bef69f8745925\";\n@import \"3059048d79d64c86\";\n@import \"9bc41819d7d08688\";\n","/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {baseColor, fontRelative, style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {ButtonProps, ButtonRenderProps, ContextValue, OverlayTriggerStateContext, Provider, Button as RACButton} from 'react-aria-components';\nimport {centerBaseline} from './CenterBaseline';\nimport {createContext, forwardRef, ReactNode, useContext} from 'react';\nimport {FocusableRef, FocusableRefValue} from '@react-types/shared';\nimport {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with { type: 'macro' };\nimport {IconContext} from './Icon';\nimport {pressScale} from './pressScale';\nimport {Text, TextContext} from './Content';\nimport {useFocusableRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface ActionButtonStyleProps {\n /**\n * The size of the ActionButton.\n *\n * @default 'M'\n */\n size?: 'XS' | 'S' | 'M' | 'L' | 'XL',\n /** The static color style to apply. Useful when the ActionButton appears over a color background. */\n staticColor?: 'black' | 'white',\n /** Whether the button should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */\n isQuiet?: boolean\n}\n\ninterface ToggleButtonStyleProps {\n /** Whether the ActionButton should be selected (controlled). */\n isSelected?: boolean,\n /** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */\n isEmphasized?: boolean\n}\n\nexport interface ActionButtonProps extends Omit<ButtonProps, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, ActionButtonStyleProps {\n /** The content to display in the ActionButton. */\n children?: ReactNode\n}\n\n// These styles handle both ActionButton and ToggleButton\nexport const btnStyles = style<ButtonRenderProps & ActionButtonStyleProps & ToggleButtonStyleProps>({\n ...focusRing(),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n columnGap: 'text-to-visual',\n font: 'control',\n fontWeight: 'medium',\n userSelect: 'none',\n height: 'control',\n minWidth: 'control',\n transition: 'default',\n forcedColorAdjust: 'none',\n backgroundColor: {\n default: {\n ...baseColor('gray-100'),\n default: {\n default: 'gray-100',\n isQuiet: 'transparent'\n }\n },\n isSelected: {\n default: 'neutral',\n isEmphasized: 'accent',\n isDisabled: {\n default: 'gray-100',\n isQuiet: 'transparent'\n }\n },\n staticColor: {\n white: {\n ...baseColor('transparent-white-100'),\n default: {\n default: 'transparent-white-100',\n isQuiet: 'transparent'\n },\n isSelected: {\n default: baseColor('transparent-white-800'),\n isDisabled: {\n default: 'transparent-white-100',\n isQuiet: 'transparent'\n }\n }\n },\n black: {\n ...baseColor('transparent-black-100'),\n default: {\n default: 'transparent-black-100',\n isQuiet: 'transparent'\n },\n isSelected: {\n default: baseColor('transparent-black-800'),\n isDisabled: {\n default: 'transparent-black-100',\n isQuiet: 'transparent'\n }\n }\n }\n },\n forcedColors: {\n default: 'ButtonFace',\n isSelected: {\n default: 'Highlight',\n isDisabled: 'ButtonFace'\n }\n }\n },\n color: {\n default: 'neutral',\n isSelected: {\n default: 'gray-25',\n isEmphasized: 'white'\n },\n isDisabled: 'disabled',\n staticColor: {\n white: {\n default: baseColor('transparent-white-800'),\n isSelected: 'black',\n isDisabled: 'transparent-white-400'\n },\n black: {\n default: baseColor('transparent-black-800'),\n isSelected: 'white',\n isDisabled: 'transparent-black-400'\n }\n },\n forcedColors: {\n default: 'ButtonText',\n isSelected: 'HighlightText',\n isDisabled: {\n default: 'GrayText'\n }\n }\n },\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n },\n outlineColor: {\n default: 'focus-ring',\n staticColor: {\n white: 'white',\n black: 'black'\n },\n forcedColors: 'Highlight'\n },\n borderStyle: 'none',\n paddingX: {\n default: 'edge-to-text',\n ':has([slot=icon]:only-child)': 0\n },\n paddingY: 0,\n borderRadius: 'control',\n '--iconMargin': {\n type: 'marginTop',\n value: {\n default: fontRelative(-2),\n ':has([slot=icon]:only-child)': 0\n }\n },\n disableTapHighlight: true\n}, getAllowedOverrides());\n\nexport const ActionButtonContext = createContext<ContextValue<ActionButtonProps, FocusableRefValue<HTMLButtonElement>>>(null);\n\nfunction ActionButton(props: ActionButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, ActionButtonContext);\n let domRef = useFocusableRef(ref);\n let overlayTriggerState = useContext(OverlayTriggerStateContext);\n\n return (\n <RACButton\n {...props}\n ref={domRef}\n style={pressScale(domRef, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + btnStyles({\n ...renderProps,\n // Retain hover styles when an overlay is open.\n isHovered: renderProps.isHovered || overlayTriggerState?.isOpen || false,\n staticColor: props.staticColor,\n size: props.size || 'M',\n isQuiet: props.isQuiet\n }, props.styles)}>\n <Provider\n values={[\n [TextContext, {styles: style({paddingY: '--labelPadding', order: 1, truncate: true})}],\n [IconContext, {\n render: centerBaseline({slot: 'icon', styles: style({order: 0})}),\n styles: style({size: fontRelative(20), marginStart: '--iconMargin', flexShrink: 0})\n }]\n ]}>\n {typeof props.children === 'string' ? <Text>{props.children}</Text> : props.children}\n </Provider>\n </RACButton>\n );\n}\n\n/**\n * ActionButtons allow users to perform an action.\n * They’re used for similar, task-based options within a workflow, and are ideal for interfaces where buttons aren’t meant to draw a lot of attention.\n */\nlet _ActionButton = forwardRef(ActionButton);\nexport {_ActionButton as ActionButton};\n"],"names":[],"version":3,"file":"ActionButton.css.map"}
|
package/dist/ActionButton.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import "./ActionButton.css";
|
|
|
2
2
|
import {centerBaseline as $1f4b04be3f24aae3$export$9d7e2342a7e53afa} from "./CenterBaseline.mjs";
|
|
3
3
|
import {IconContext as $ac8c32e6775ddd1f$export$a49f528ae1a4d0ed} from "../icons/Icon.mjs";
|
|
4
4
|
import {pressScale as $10ea7662e51a285b$export$56e8cba416805d8d} from "./pressScale.mjs";
|
|
5
|
-
import {TextContext as $8e847109a6ab556d$export$9afb8bc826b033ea} from "./Content.mjs";
|
|
5
|
+
import {Text as $8e847109a6ab556d$export$5f1af8db9871e1d6, TextContext as $8e847109a6ab556d$export$9afb8bc826b033ea} from "./Content.mjs";
|
|
6
6
|
import {useSpectrumContextProps as $5ce63c423902f47d$export$764f6146fadd77f7} from "./useSpectrumContextProps.mjs";
|
|
7
7
|
import {jsx as $hl1Zj$jsx} from "react/jsx-runtime";
|
|
8
|
-
import {OverlayTriggerStateContext as $hl1Zj$OverlayTriggerStateContext, Button as $hl1Zj$Button, Provider as $hl1Zj$Provider
|
|
8
|
+
import {OverlayTriggerStateContext as $hl1Zj$OverlayTriggerStateContext, Button as $hl1Zj$Button, Provider as $hl1Zj$Provider} from "react-aria-components";
|
|
9
9
|
import {createContext as $hl1Zj$createContext, useContext as $hl1Zj$useContext, forwardRef as $hl1Zj$forwardRef} from "react";
|
|
10
10
|
import {useFocusableRef as $hl1Zj$useFocusableRef} from "@react-spectrum/utils";
|
|
11
11
|
|
|
@@ -256,7 +256,7 @@ function $da878a05ab4a403e$var$ActionButton(props, ref) {
|
|
|
256
256
|
}
|
|
257
257
|
]
|
|
258
258
|
],
|
|
259
|
-
children: typeof props.children === 'string' ? /*#__PURE__*/ (0, $hl1Zj$jsx)((0, $
|
|
259
|
+
children: typeof props.children === 'string' ? /*#__PURE__*/ (0, $hl1Zj$jsx)((0, $8e847109a6ab556d$export$5f1af8db9871e1d6), {
|
|
260
260
|
children: props.children
|
|
261
261
|
}) : props.children
|
|
262
262
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAwCM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2HN,MAAM,0DAAsB,CAAA,GAAA,oBAAY,EAAyE;AAExH,SAAS,mCAAa,KAAwB,EAAE,GAAoC;IAClF,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,SAAS,CAAA,GAAA,sBAAc,EAAE;IAC7B,IAAI,sBAAsB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,iCAAyB;IAE9D,qBACE,gBAAC,CAAA,GAAA,aAAQ;QACN,GAAG,KAAK;QACT,KAAK;QACL,OAAO,CAAA,GAAA,yCAAS,EAAE,QAAQ,MAAM,YAAY;QAC5C,WAA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,CAAA,GAAA,yCAAS,EAAE,QAAQ,MAAM,YAAY;QAC5C,WAAW,CAAA,cAAe,AAAC,CAAA,MAAM,gBAAgB,IAAI,EAAC,IAAK,0CAAU;gBACnE,GAAG,WAAW;gBACd,+CAA+C;gBAC/C,WAAW,YAAY,SAAS,IAAI,qBAAqB,UAAU;gBACnE,aAAa,MAAM,WAAW;gBAC9B,MAAM,MAAM,IAAI,IAAI;gBACpB,SAAS,MAAM,OAAO;YACxB,GAAG,MAAM,MAAM;kBACf,cAAA,gBAAC,CAAA,GAAA,eAAO;YACN,QAAQ;gBACN;oBAAC,CAAA,GAAA,yCAAU;oBAAG;wBAAC,MAAM;oBAA+D;iBAAE;gBACtF;oBAAC,CAAA,GAAA,yCAAU;oBAAG;wBACZ,QAAQ,CAAA,GAAA,yCAAa,EAAE;4BAAC,MAAM;4BAAQ,MAAM;wBAAmB;wBAC/D,MAAM;oBACR;iBAAE;aACH;sBACA,OAAO,MAAM,QAAQ,KAAK,yBAAW,gBAAC,CAAA,GAAA,yCAAG;0BAAG,MAAM,QAAQ;iBAAW,MAAM,QAAQ;;;AAI5F;AAEA;;;CAGC,GACD,IAAI,0DAAgB,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/s2/src/ActionButton.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {baseColor, fontRelative, style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {ButtonProps, ButtonRenderProps, ContextValue, OverlayTriggerStateContext, Provider, Button as RACButton} from 'react-aria-components';\nimport {centerBaseline} from './CenterBaseline';\nimport {createContext, forwardRef, ReactNode, useContext} from 'react';\nimport {FocusableRef, FocusableRefValue} from '@react-types/shared';\nimport {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with { type: 'macro' };\nimport {IconContext} from './Icon';\nimport {pressScale} from './pressScale';\nimport {Text, TextContext} from './Content';\nimport {useFocusableRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface ActionButtonStyleProps {\n /**\n * The size of the ActionButton.\n *\n * @default 'M'\n */\n size?: 'XS' | 'S' | 'M' | 'L' | 'XL',\n /** The static color style to apply. Useful when the ActionButton appears over a color background. */\n staticColor?: 'black' | 'white',\n /** Whether the button should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */\n isQuiet?: boolean\n}\n\ninterface ToggleButtonStyleProps {\n /** Whether the ActionButton should be selected (controlled). */\n isSelected?: boolean,\n /** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */\n isEmphasized?: boolean\n}\n\nexport interface ActionButtonProps extends Omit<ButtonProps, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, ActionButtonStyleProps {\n /** The content to display in the ActionButton. */\n children?: ReactNode\n}\n\n// These styles handle both ActionButton and ToggleButton\nexport const btnStyles = style<ButtonRenderProps & ActionButtonStyleProps & ToggleButtonStyleProps>({\n ...focusRing(),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n columnGap: 'text-to-visual',\n font: 'control',\n fontWeight: 'medium',\n userSelect: 'none',\n height: 'control',\n minWidth: 'control',\n transition: 'default',\n forcedColorAdjust: 'none',\n backgroundColor: {\n default: {\n ...baseColor('gray-100'),\n default: {\n default: 'gray-100',\n isQuiet: 'transparent'\n }\n },\n isSelected: {\n default: 'neutral',\n isEmphasized: 'accent',\n isDisabled: {\n default: 'gray-100',\n isQuiet: 'transparent'\n }\n },\n staticColor: {\n white: {\n ...baseColor('transparent-white-100'),\n default: {\n default: 'transparent-white-100',\n isQuiet: 'transparent'\n },\n isSelected: {\n default: baseColor('transparent-white-800'),\n isDisabled: {\n default: 'transparent-white-100',\n isQuiet: 'transparent'\n }\n }\n },\n black: {\n ...baseColor('transparent-black-100'),\n default: {\n default: 'transparent-black-100',\n isQuiet: 'transparent'\n },\n isSelected: {\n default: baseColor('transparent-black-800'),\n isDisabled: {\n default: 'transparent-black-100',\n isQuiet: 'transparent'\n }\n }\n }\n },\n forcedColors: {\n default: 'ButtonFace',\n isSelected: {\n default: 'Highlight',\n isDisabled: 'ButtonFace'\n }\n }\n },\n color: {\n default: 'neutral',\n isSelected: {\n default: 'gray-25',\n isEmphasized: 'white'\n },\n isDisabled: 'disabled',\n staticColor: {\n white: {\n default: baseColor('transparent-white-800'),\n isSelected: 'black',\n isDisabled: 'transparent-white-400'\n },\n black: {\n default: baseColor('transparent-black-800'),\n isSelected: 'white',\n isDisabled: 'transparent-black-400'\n }\n },\n forcedColors: {\n default: 'ButtonText',\n isSelected: 'HighlightText',\n isDisabled: {\n default: 'GrayText'\n }\n }\n },\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n },\n outlineColor: {\n default: 'focus-ring',\n staticColor: {\n white: 'white',\n black: 'black'\n },\n forcedColors: 'Highlight'\n },\n borderStyle: 'none',\n paddingX: {\n default: 'edge-to-text',\n ':has([slot=icon]:only-child)': 0\n },\n paddingY: 0,\n borderRadius: 'control',\n '--iconMargin': {\n type: 'marginTop',\n value: {\n default: fontRelative(-2),\n ':has([slot=icon]:only-child)': 0\n }\n },\n disableTapHighlight: true\n}, getAllowedOverrides());\n\nexport const ActionButtonContext = createContext<ContextValue<ActionButtonProps, FocusableRefValue<HTMLButtonElement>>>(null);\n\nfunction ActionButton(props: ActionButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, ActionButtonContext);\n let domRef = useFocusableRef(ref);\n let overlayTriggerState = useContext(OverlayTriggerStateContext);\n\n return (\n <RACButton\n {...props}\n ref={domRef}\n style={pressScale(domRef, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + btnStyles({\n ...renderProps,\n // Retain hover styles when an overlay is open.\n isHovered: renderProps.isHovered || overlayTriggerState?.isOpen || false,\n staticColor: props.staticColor,\n size: props.size || 'M',\n isQuiet: props.isQuiet\n }, props.styles)}>\n <Provider\n values={[\n [TextContext, {styles: style({paddingY: '--labelPadding', order: 1, truncate: true})}],\n [IconContext, {\n render: centerBaseline({slot: 'icon', styles: style({order: 0})}),\n styles: style({size: fontRelative(20), marginStart: '--iconMargin', flexShrink: 0})\n }]\n ]}>\n {typeof props.children === 'string' ? <Text>{props.children}</Text> : props.children}\n </Provider>\n </RACButton>\n );\n}\n\n/**\n * ActionButtons allow users to perform an action.\n * They’re used for similar, task-based options within a workflow, and are ideal for interfaces where buttons aren’t meant to draw a lot of attention.\n */\nlet _ActionButton = forwardRef(ActionButton);\nexport {_ActionButton as ActionButton};\n"],"names":[],"version":3,"file":"ActionButton.mjs.map"}
|
package/dist/Avatar.cjs
CHANGED
|
@@ -59,7 +59,7 @@ const $38071d9ce246d4cf$export$a20dad690e1279e2 = /*#__PURE__*/ (0, $1YWJ0$react
|
|
|
59
59
|
function $38071d9ce246d4cf$var$Avatar(props, ref) {
|
|
60
60
|
[props, ref] = (0, $ac757a4c2bd72aee$exports.useSpectrumContextProps)(props, ref, $38071d9ce246d4cf$export$a20dad690e1279e2);
|
|
61
61
|
let domRef = (0, $1YWJ0$reactspectrumutils.useDOMRef)(ref);
|
|
62
|
-
let { alt: alt = '', src: src, UNSAFE_style: UNSAFE_style, UNSAFE_className: UNSAFE_className = '', size: size, isOverBackground: isOverBackground, ...otherProps } = props;
|
|
62
|
+
let { alt: alt = '', src: src, UNSAFE_style: UNSAFE_style, UNSAFE_className: UNSAFE_className = '', size: size = 24, isOverBackground: isOverBackground, ...otherProps } = props;
|
|
63
63
|
const domProps = (0, $1YWJ0$reactariautils.filterD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;QAC3F,KAAK;;AAEX;AAEA;;CAEC,GACD,IAAI,0DAAU,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/s2/src/Avatar.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ContextValue} from 'react-aria-components';\nimport {createContext, forwardRef} from 'react';\nimport {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {getAllowedOverrides, StylesPropWithoutWidth, UnsafeStyles} from './style-utils' with {type: 'macro'};\nimport {style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface AvatarProps extends UnsafeStyles, DOMProps {\n /** Text description of the avatar. */\n alt?: string,\n /** The image URL for the avatar. */\n src?: string,\n /** Spectrum-defined styles, returned by the `style()` macro. */\n styles?: StylesPropWithoutWidth,\n /**\n * The size of the avatar.\n * @default 24\n */\n size?: 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56 | 64 | 80 | 96 | 112 | (number & {}),\n /** Whether the avatar is over a color background. */\n isOverBackground?: boolean\n}\n\nconst imageStyles = style({\n borderRadius: 'full',\n size: 20,\n flexShrink: 0,\n flexGrow: 0,\n disableTapHighlight: true,\n outlineStyle: {\n default: 'none',\n isOverBackground: 'solid'\n },\n outlineColor: '--s2-container-bg',\n outlineWidth: {\n default: 1,\n isLarge: 2\n }\n}, getAllowedOverrides({width: false}));\n\nexport const AvatarContext = createContext<ContextValue<AvatarProps, DOMRefValue<HTMLImageElement>>>(null);\n\nfunction Avatar(props: AvatarProps, ref: DOMRef<HTMLImageElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, AvatarContext);\n let domRef = useDOMRef(ref);\n let {\n alt = '',\n src,\n UNSAFE_style,\n UNSAFE_className = '',\n size = 24,\n isOverBackground,\n ...otherProps\n } = props;\n const domProps = filterDOMProps(otherProps);\n\n let remSize = size / 16 + 'rem';\n let isLarge = size >= 64;\n return (\n <img\n {...domProps}\n ref={domRef}\n alt={alt}\n style={{\n ...UNSAFE_style,\n width: remSize,\n height: remSize\n }}\n className={(UNSAFE_className ?? '') + imageStyles({isOverBackground, isLarge}, props.styles)}\n src={src} />\n );\n}\n\n/**\n * An avatar is a thumbnail representation of an entity, such as a user or an organization.\n */\nlet _Avatar = forwardRef(Avatar);\nexport {_Avatar as Avatar};\n"],"names":[],"version":3,"file":"Avatar.cjs.map"}
|
package/dist/Avatar.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAqCoB;;;;AAAA;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AAAA;;AAAA;EAAA;IAAA;;;;IAAA","sources":["packages/@react-spectrum/s2/src/Avatar.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ContextValue} from 'react-aria-components';\nimport {createContext, forwardRef} from 'react';\nimport {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {getAllowedOverrides, StylesPropWithoutWidth, UnsafeStyles} from './style-utils' with {type: 'macro'};\nimport {style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface AvatarProps extends UnsafeStyles, DOMProps {\n /** Text description of the avatar. */\n alt?: string,\n /** The image URL for the avatar. */\n src?: string,\n /** Spectrum-defined styles, returned by the `style()` macro. */\n styles?: StylesPropWithoutWidth,\n /**\n * The size of the avatar.\n * @default 24\n */\n size?: 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56 | 64 | 80 | 96 | 112 | (number & {}),\n /** Whether the avatar is over a color background. */\n isOverBackground?: boolean\n}\n\nconst imageStyles = style({\n borderRadius: 'full',\n size: 20,\n flexShrink: 0,\n flexGrow: 0,\n disableTapHighlight: true,\n outlineStyle: {\n default: 'none',\n isOverBackground: 'solid'\n },\n outlineColor: '--s2-container-bg',\n outlineWidth: {\n default: 1,\n isLarge: 2\n }\n}, getAllowedOverrides({width: false}));\n\nexport const AvatarContext = createContext<ContextValue<AvatarProps, DOMRefValue<HTMLImageElement>>>(null);\n\nfunction Avatar(props: AvatarProps, ref: DOMRef<HTMLImageElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, AvatarContext);\n let domRef = useDOMRef(ref);\n let {\n alt = '',\n src,\n UNSAFE_style,\n UNSAFE_className = '',\n size,\n isOverBackground,\n ...otherProps\n } = props;\n const domProps = filterDOMProps(otherProps);\n\n let remSize = size / 16 + 'rem';\n let isLarge = size >= 64;\n return (\n <img\n {...domProps}\n ref={domRef}\n alt={alt}\n style={{\n ...UNSAFE_style,\n width: remSize,\n height: remSize\n }}\n className={(UNSAFE_className ?? '') + imageStyles({isOverBackground, isLarge}, props.styles)}\n src={src} />\n );\n}\n\n/**\n * An avatar is a thumbnail representation of an entity, such as a user or an organization.\n */\nlet _Avatar = forwardRef(Avatar);\nexport {_Avatar as Avatar};\n"],"names":[],"version":3,"file":"Avatar.css.map"}
|
|
1
|
+
{"mappings":"AAqCoB;;;;AAAA;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AAAA;;AAAA;EAAA;IAAA;;;;IAAA","sources":["packages/@react-spectrum/s2/src/Avatar.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ContextValue} from 'react-aria-components';\nimport {createContext, forwardRef} from 'react';\nimport {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {getAllowedOverrides, StylesPropWithoutWidth, UnsafeStyles} from './style-utils' with {type: 'macro'};\nimport {style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface AvatarProps extends UnsafeStyles, DOMProps {\n /** Text description of the avatar. */\n alt?: string,\n /** The image URL for the avatar. */\n src?: string,\n /** Spectrum-defined styles, returned by the `style()` macro. */\n styles?: StylesPropWithoutWidth,\n /**\n * The size of the avatar.\n * @default 24\n */\n size?: 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56 | 64 | 80 | 96 | 112 | (number & {}),\n /** Whether the avatar is over a color background. */\n isOverBackground?: boolean\n}\n\nconst imageStyles = style({\n borderRadius: 'full',\n size: 20,\n flexShrink: 0,\n flexGrow: 0,\n disableTapHighlight: true,\n outlineStyle: {\n default: 'none',\n isOverBackground: 'solid'\n },\n outlineColor: '--s2-container-bg',\n outlineWidth: {\n default: 1,\n isLarge: 2\n }\n}, getAllowedOverrides({width: false}));\n\nexport const AvatarContext = createContext<ContextValue<AvatarProps, DOMRefValue<HTMLImageElement>>>(null);\n\nfunction Avatar(props: AvatarProps, ref: DOMRef<HTMLImageElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, AvatarContext);\n let domRef = useDOMRef(ref);\n let {\n alt = '',\n src,\n UNSAFE_style,\n UNSAFE_className = '',\n size = 24,\n isOverBackground,\n ...otherProps\n } = props;\n const domProps = filterDOMProps(otherProps);\n\n let remSize = size / 16 + 'rem';\n let isLarge = size >= 64;\n return (\n <img\n {...domProps}\n ref={domRef}\n alt={alt}\n style={{\n ...UNSAFE_style,\n width: remSize,\n height: remSize\n }}\n className={(UNSAFE_className ?? '') + imageStyles({isOverBackground, isLarge}, props.styles)}\n src={src} />\n );\n}\n\n/**\n * An avatar is a thumbnail representation of an entity, such as a user or an organization.\n */\nlet _Avatar = forwardRef(Avatar);\nexport {_Avatar as Avatar};\n"],"names":[],"version":3,"file":"Avatar.css.map"}
|
package/dist/Avatar.mjs
CHANGED
|
@@ -52,7 +52,7 @@ const $3ffa2cd930156220$export$a20dad690e1279e2 = /*#__PURE__*/ (0, $lGIgj$creat
|
|
|
52
52
|
function $3ffa2cd930156220$var$Avatar(props, ref) {
|
|
53
53
|
[props, ref] = (0, $5ce63c423902f47d$export$764f6146fadd77f7)(props, ref, $3ffa2cd930156220$export$a20dad690e1279e2);
|
|
54
54
|
let domRef = (0, $lGIgj$useDOMRef)(ref);
|
|
55
|
-
let { alt: alt = '', src: src, UNSAFE_style: UNSAFE_style, UNSAFE_className: UNSAFE_className = '', size: size, isOverBackground: isOverBackground, ...otherProps } = props;
|
|
55
|
+
let { alt: alt = '', src: src, UNSAFE_style: UNSAFE_style, UNSAFE_className: UNSAFE_className = '', size: size = 24, isOverBackground: isOverBackground, ...otherProps } = props;
|
|
56
56
|
const domProps = (0, $lGIgj$filterDOMProps)(otherProps);
|
|
57
57
|
let remSize = size / 16 + 'rem';
|
|
58
58
|
let isLarge = size >= 64;
|
package/dist/Avatar.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AA2BD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBC,MAAM,0DAAgB,CAAA,GAAA,oBAAY,EAA4D;AAErG,SAAS,6BAAO,KAAkB,EAAE,GAA6B;IAC/D,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,OACF,MAAM,SACN,GAAG,gBACH,YAAY,oBACZ,mBAAmB,UACnB,
|
|
1
|
+
{"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AA2BD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBC,MAAM,0DAAgB,CAAA,GAAA,oBAAY,EAA4D;AAErG,SAAS,6BAAO,KAAkB,EAAE,GAA6B;IAC/D,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,OACF,MAAM,SACN,GAAG,gBACH,YAAY,oBACZ,mBAAmB,UACnB,OAAO,sBACP,gBAAgB,EAChB,GAAG,YACJ,GAAG;IACJ,MAAM,WAAW,CAAA,GAAA,qBAAa,EAAE;IAEhC,IAAI,UAAU,OAAO,KAAK;IAC1B,IAAI,UAAU,QAAQ;IACtB,qBACE,gBAAC;QACE,GAAG,QAAQ;QACZ,KAAK;QACL,KAAK;QACL,OAAO;YACL,GAAG,YAAY;YACf,OAAO;YACP,QAAQ;QACV;QACA,WAAW,AAAC,CAAA,oBAAoB,EAAC,IAAK,kCAAY;8BAAC;qBAAkB;QAAO,GAAG,MAAM,MAAM;QAC3F,KAAK;;AAEX;AAEA;;CAEC,GACD,IAAI,0DAAU,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/s2/src/Avatar.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ContextValue} from 'react-aria-components';\nimport {createContext, forwardRef} from 'react';\nimport {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {getAllowedOverrides, StylesPropWithoutWidth, UnsafeStyles} from './style-utils' with {type: 'macro'};\nimport {style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface AvatarProps extends UnsafeStyles, DOMProps {\n /** Text description of the avatar. */\n alt?: string,\n /** The image URL for the avatar. */\n src?: string,\n /** Spectrum-defined styles, returned by the `style()` macro. */\n styles?: StylesPropWithoutWidth,\n /**\n * The size of the avatar.\n * @default 24\n */\n size?: 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56 | 64 | 80 | 96 | 112 | (number & {}),\n /** Whether the avatar is over a color background. */\n isOverBackground?: boolean\n}\n\nconst imageStyles = style({\n borderRadius: 'full',\n size: 20,\n flexShrink: 0,\n flexGrow: 0,\n disableTapHighlight: true,\n outlineStyle: {\n default: 'none',\n isOverBackground: 'solid'\n },\n outlineColor: '--s2-container-bg',\n outlineWidth: {\n default: 1,\n isLarge: 2\n }\n}, getAllowedOverrides({width: false}));\n\nexport const AvatarContext = createContext<ContextValue<AvatarProps, DOMRefValue<HTMLImageElement>>>(null);\n\nfunction Avatar(props: AvatarProps, ref: DOMRef<HTMLImageElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, AvatarContext);\n let domRef = useDOMRef(ref);\n let {\n alt = '',\n src,\n UNSAFE_style,\n UNSAFE_className = '',\n size = 24,\n isOverBackground,\n ...otherProps\n } = props;\n const domProps = filterDOMProps(otherProps);\n\n let remSize = size / 16 + 'rem';\n let isLarge = size >= 64;\n return (\n <img\n {...domProps}\n ref={domRef}\n alt={alt}\n style={{\n ...UNSAFE_style,\n width: remSize,\n height: remSize\n }}\n className={(UNSAFE_className ?? '') + imageStyles({isOverBackground, isLarge}, props.styles)}\n src={src} />\n );\n}\n\n/**\n * An avatar is a thumbnail representation of an entity, such as a user or an organization.\n */\nlet _Avatar = forwardRef(Avatar);\nexport {_Avatar as Avatar};\n"],"names":[],"version":3,"file":"Avatar.mjs.map"}
|
package/dist/Breadcrumbs.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require("./Breadcrumbs.css");
|
|
2
2
|
var $1df9f1c9262ce5df$exports = require("./Chevron.cjs");
|
|
3
|
+
var $ac757a4c2bd72aee$exports = require("./useSpectrumContextProps.cjs");
|
|
3
4
|
var $PCemd$reactjsxruntime = require("react/jsx-runtime");
|
|
4
5
|
var $PCemd$reactariacomponents = require("react-aria-components");
|
|
5
6
|
var $PCemd$reactaria = require("react-aria");
|
|
@@ -30,6 +31,7 @@ $parcel$export(module.exports, "Breadcrumb", () => $4130f4e17f7081aa$export$dabc
|
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
|
|
34
|
+
|
|
33
35
|
const $4130f4e17f7081aa$export$65596d3621b0a4a0 = /*#__PURE__*/ (0, $PCemd$react.createContext)(null);
|
|
34
36
|
const $4130f4e17f7081aa$var$wrapper = function anonymous(props, overrides) {
|
|
35
37
|
let rules = " .";
|
|
@@ -91,6 +93,7 @@ const $4130f4e17f7081aa$var$wrapper = function anonymous(props, overrides) {
|
|
|
91
93
|
return rules;
|
|
92
94
|
};
|
|
93
95
|
function $4130f4e17f7081aa$var$Breadcrumbs(props, ref) {
|
|
96
|
+
[props, ref] = (0, $ac757a4c2bd72aee$exports.useSpectrumContextProps)(props, ref, $4130f4e17f7081aa$export$65596d3621b0a4a0);
|
|
94
97
|
let { UNSAFE_className: UNSAFE_className = '', UNSAFE_style: UNSAFE_style, styles: styles, size: size = 'M', children: children, ...otherProps } = props;
|
|
95
98
|
let domRef = (0, $PCemd$reactspectrumutils.useDOMRef)(ref);
|
|
96
99
|
return /*#__PURE__*/ (0, $PCemd$reactjsxruntime.jsx)((0, $PCemd$reactariacomponents.Breadcrumbs), {
|
package/dist/Breadcrumbs.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAmCM,MAAM,0DAAqB,CAAA,GAAA,0BAAY,EAAsE;AAEpH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BN,SAAS,kCAA8B,KAA0B,EAAE,GAA6B;IAC9F,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,iDAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,oBACF,mBAAmB,kBACnB,YAAY,UACZ,MAAM,QACN,OAAO,eACP,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,qBACE,gCAAC,CAAA,GAAA,sCAAa;QACX,GAAG,UAAU;QACd,KAAK;QACL,OAAO;QACP,WAAW,mBAAmB,8BAAQ;kBACpC;QACF,GAAG;kBACH,cAAA,gCAAC,0CAAmB,QAAQ;YAAC,OAAO;sBACjC;;;AAIT;AAEA,qGAAqG,GACrG,IAAI,2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aAAC,SAAS,kBAAE,cAAc,aAAE,SAAS,cAAE,UAAU,aAAE,SAAS,EAAC,GAAK,iCAAW;2CAAC;gDAAW;2CAAgB;4CAAW;sCAAY;2CAAM;2CAAW;4BAAS;kCACrK;;kCAEH,gCAAC,CAAA,GAAA,iCAAU;wBACT,MAAK;wBACL,WAAW,oCAAc;uCAAC;wBAAS;;;;;AAMnD","sources":["packages/@react-spectrum/s2/src/Breadcrumbs.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Breadcrumb as AriaBreadcrumb, BreadcrumbsProps as AriaBreadcrumbsProps, ContextValue, HeadingContext, Link, Provider, Breadcrumbs as RACBreadcrumbs, useSlottedContext} from 'react-aria-components';\nimport {AriaBreadcrumbItemProps, useLocale} from 'react-aria';\nimport ChevronIcon from '../ui-icons/Chevron';\nimport {createContext, forwardRef, ReactNode, useRef} from 'react';\nimport {DOMRef, DOMRefValue, LinkDOMProps} from '@react-types/shared';\nimport {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {forwardRefType} from './types';\nimport {size, style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\ninterface BreadcrumbsStyleProps {\n /**\n * Size of the Breadcrumbs including spacing and layout.\n *\n * @default 'M'\n */\n size?: 'M' | 'L',\n /** Whether the breadcrumbs are disabled. */\n isDisabled?: boolean\n /**\n * Whether to place the last Breadcrumb item onto a new line.\n */\n // TODO: isMultiline?: boolean\n /** Whether to always show the root item if the items are collapsed. */\n // TODO: showRoot?: boolean,\n}\n\nexport interface BreadcrumbsProps<T> extends Omit<AriaBreadcrumbsProps<T>, 'children' | 'items' | 'style' | 'className'>, BreadcrumbsStyleProps, StyleProps {\n /** The children of the Breadcrumbs. */\n children?: ReactNode\n}\n\nexport const BreadcrumbsContext = createContext<ContextValue<BreadcrumbsProps<any>, DOMRefValue<HTMLOListElement>>>(null);\n\nconst wrapper = style<BreadcrumbsStyleProps>({\n display: 'flex',\n justifyContent: 'start',\n listStyleType: 'none',\n flexWrap: 'nowrap',\n flexGrow: 1,\n flexShrink: 0,\n flexBasis: 0,\n gap: {\n size: {\n M: size(6), // breadcrumbs-text-to-separator-medium\n L: size(9) // breadcrumbs-text-to-separator-large\n }\n },\n padding: 0,\n transition: 'default',\n marginTop: 0,\n marginBottom: 0,\n marginStart: {\n size: {\n M: size(6),\n L: size(9)\n }\n }\n}, getAllowedOverrides());\n\nfunction Breadcrumbs<T extends object>(props: BreadcrumbsProps<T>, ref: DOMRef<HTMLOListElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, BreadcrumbsContext);\n let {\n UNSAFE_className = '',\n UNSAFE_style,\n styles,\n size = 'M',\n children,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n return (\n <RACBreadcrumbs\n {...otherProps}\n ref={domRef}\n style={UNSAFE_style}\n className={UNSAFE_className + wrapper({\n size\n }, styles)}>\n <BreadcrumbsContext.Provider value={props}>\n {children}\n </BreadcrumbsContext.Provider>\n </RACBreadcrumbs>\n );\n}\n\n/** Breadcrumbs show hierarchy and navigational context for a user’s location within an application. */\nlet _Breadcrumbs = /*#__PURE__*/ (forwardRef as forwardRefType)(Breadcrumbs);\nexport {_Breadcrumbs as Breadcrumbs};\n\nconst breadcrumbStyles = style({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'start',\n height: 'control',\n transition: 'default',\n position: 'relative',\n color: {\n default: 'neutral',\n isDisabled: 'disabled',\n forcedColors: {\n default: 'ButtonText',\n isDisabled: 'GrayText'\n }\n },\n borderStyle: 'none'\n});\n\nconst chevronStyles = style({\n scale: {\n direction: {\n rtl: -1\n }\n },\n marginStart: 'text-to-visual',\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n }\n});\n\nconst linkStyles = style({\n ...focusRing(),\n borderRadius: 'sm',\n color: {\n default: 'neutral-subdued',\n isDisabled: 'disabled',\n isCurrent: 'neutral',\n forcedColors: {\n default: 'LinkText',\n isDisabled: 'GrayText'\n }\n },\n transition: 'default',\n font: 'control',\n fontWeight: {\n default: 'normal',\n isCurrent: 'bold'\n },\n textDecoration: {\n default: 'none',\n isHovered: 'underline',\n isFocusVisible: 'underline',\n isDisabled: 'none'\n },\n cursor: {\n default: 'pointer',\n isDisabled: 'default'\n },\n outlineColor: {\n default: 'focus-ring',\n forcedColors: 'Highlight'\n },\n disableTapHighlight: true\n});\n\nconst currentStyles = style<{size: string}>({\n color: {\n default: 'neutral',\n forcedColors: 'ButtonText'\n },\n transition: 'default',\n font: 'control',\n fontWeight: 'bold'\n});\n\n// TODO: support user heading size customization, for now just set it to large\nconst heading = style({\n margin: 0,\n font: 'heading-lg',\n fontWeight: 'extra-bold'\n});\n\nexport interface BreadcrumbProps extends Omit<AriaBreadcrumbItemProps, 'children' | 'style' | 'className' | 'autoFocus'>, LinkDOMProps {\n /** The children of the breadcrumb item. */\n children?: ReactNode\n}\n\nexport function Breadcrumb({children, ...props}: BreadcrumbProps) {\n let {href, target, rel, download, ping, referrerPolicy, ...other} = props;\n let {size = 'M', isDisabled} = useSlottedContext(BreadcrumbsContext)!;\n let ref = useRef(null);\n let {direction} = useLocale();\n return (\n <AriaBreadcrumb\n {...other}\n ref={ref}\n className={({isCurrent}) => breadcrumbStyles({size, isCurrent})}>\n {({isCurrent}) => (\n isCurrent ?\n <span\n className={currentStyles({size})}>\n <Provider\n values={[\n [HeadingContext, {className: heading}]\n ]}>\n {children}\n </Provider>\n </span>\n : (\n <>\n <Link\n style={({isFocusVisible}) => ({clipPath: isFocusVisible ? 'none' : 'margin-box'})}\n href={href}\n target={target}\n rel={rel}\n download={download}\n ping={ping}\n referrerPolicy={referrerPolicy}\n isDisabled={isDisabled || isCurrent}\n className={({isFocused, isFocusVisible, isHovered, isDisabled, isPressed}) => linkStyles({isFocused, isFocusVisible, isHovered, isDisabled, size, isCurrent, isPressed})}>\n {children}\n </Link>\n <ChevronIcon\n size=\"M\"\n className={chevronStyles({direction})} />\n </>\n )\n )}\n </AriaBreadcrumb>\n );\n}\n"],"names":[],"version":3,"file":"Breadcrumbs.cjs.map"}
|
package/dist/Breadcrumbs.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":"AC+CgB;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAwDS;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAkBH;;;;EAAA;;;;EAAA;;;;EAaH;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;;EAAA;;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAmCG;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;;EAWN;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;;EAAA;;;;EAAA;;;;;AArIA;EAqIA;;;;EAAA;;;;;AArIA;;AAAA;EAAA;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAwDS;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAkBH;;;;IAgDA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAWN;;;;;;AA7ES;EAAA;IAAA;;;;IAAA;;;;IA+BN;;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAmCG","sources":["e5b0469905a8f425","packages/@react-spectrum/s2/src/Breadcrumbs.tsx"],"sourcesContent":["@import \"323be75c1b18eb57\";\n@import \"b1e7908a376b8feb\";\n@import \"481fa992da5066cd\";\n@import \"e3fe68e954d88455\";\n@import \"41a6421b0de89093\";\n@import \"0289bb74e0f5d839\";\n","/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Breadcrumb as AriaBreadcrumb, BreadcrumbsProps as AriaBreadcrumbsProps, ContextValue, HeadingContext, Link, Provider, Breadcrumbs as RACBreadcrumbs, useSlottedContext} from 'react-aria-components';\nimport {AriaBreadcrumbItemProps, useLocale} from 'react-aria';\nimport ChevronIcon from '../ui-icons/Chevron';\nimport {createContext, forwardRef, ReactNode, useRef} from 'react';\nimport {DOMRef, DOMRefValue, LinkDOMProps} from '@react-types/shared';\nimport {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {forwardRefType} from './types';\nimport {size, style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\ninterface BreadcrumbsStyleProps {\n /**\n * Size of the Breadcrumbs including spacing and layout.\n *\n * @default 'M'\n */\n size?: 'M' | 'L',\n /** Whether the breadcrumbs are disabled. */\n isDisabled?: boolean\n /**\n * Whether to place the last Breadcrumb item onto a new line.\n */\n // TODO: isMultiline?: boolean\n /** Whether to always show the root item if the items are collapsed. */\n // TODO: showRoot?: boolean,\n}\n\nexport interface BreadcrumbsProps<T> extends Omit<AriaBreadcrumbsProps<T>, 'children' | 'items' | 'style' | 'className'>, BreadcrumbsStyleProps, StyleProps {\n /** The children of the Breadcrumbs. */\n children?: ReactNode\n}\n\nexport const BreadcrumbsContext = createContext<ContextValue<BreadcrumbsProps<any>, DOMRefValue<HTMLOListElement>>>(null);\n\nconst wrapper = style<BreadcrumbsStyleProps>({\n display: 'flex',\n justifyContent: 'start',\n listStyleType: 'none',\n flexWrap: 'nowrap',\n flexGrow: 1,\n flexShrink: 0,\n flexBasis: 0,\n gap: {\n size: {\n M: size(6), // breadcrumbs-text-to-separator-medium\n L: size(9) // breadcrumbs-text-to-separator-large\n }\n },\n padding: 0,\n transition: 'default',\n marginTop: 0,\n marginBottom: 0,\n marginStart: {\n size: {\n M: size(6),\n L: size(9)\n }\n }\n}, getAllowedOverrides());\n\nfunction Breadcrumbs<T extends object>(props: BreadcrumbsProps<T>, ref: DOMRef<HTMLOListElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, BreadcrumbsContext);\n let {\n UNSAFE_className = '',\n UNSAFE_style,\n styles,\n size = 'M',\n children,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n return (\n <RACBreadcrumbs\n {...otherProps}\n ref={domRef}\n style={UNSAFE_style}\n className={UNSAFE_className + wrapper({\n size\n }, styles)}>\n <BreadcrumbsContext.Provider value={props}>\n {children}\n </BreadcrumbsContext.Provider>\n </RACBreadcrumbs>\n );\n}\n\n/** Breadcrumbs show hierarchy and navigational context for a user’s location within an application. */\nlet _Breadcrumbs = /*#__PURE__*/ (forwardRef as forwardRefType)(Breadcrumbs);\nexport {_Breadcrumbs as Breadcrumbs};\n\nconst breadcrumbStyles = style({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'start',\n height: 'control',\n transition: 'default',\n position: 'relative',\n color: {\n default: 'neutral',\n isDisabled: 'disabled',\n forcedColors: {\n default: 'ButtonText',\n isDisabled: 'GrayText'\n }\n },\n borderStyle: 'none'\n});\n\nconst chevronStyles = style({\n scale: {\n direction: {\n rtl: -1\n }\n },\n marginStart: 'text-to-visual',\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n }\n});\n\nconst linkStyles = style({\n ...focusRing(),\n borderRadius: 'sm',\n color: {\n default: 'neutral-subdued',\n isDisabled: 'disabled',\n isCurrent: 'neutral',\n forcedColors: {\n default: 'LinkText',\n isDisabled: 'GrayText'\n }\n },\n transition: 'default',\n font: 'control',\n fontWeight: {\n default: 'normal',\n isCurrent: 'bold'\n },\n textDecoration: {\n default: 'none',\n isHovered: 'underline',\n isFocusVisible: 'underline',\n isDisabled: 'none'\n },\n cursor: {\n default: 'pointer',\n isDisabled: 'default'\n },\n outlineColor: {\n default: 'focus-ring',\n forcedColors: 'Highlight'\n },\n disableTapHighlight: true\n});\n\nconst currentStyles = style<{size: string}>({\n color: {\n default: 'neutral',\n forcedColors: 'ButtonText'\n },\n transition: 'default',\n font: 'control',\n fontWeight: 'bold'\n});\n\n// TODO: support user heading size customization, for now just set it to large\nconst heading = style({\n margin: 0,\n font: 'heading-lg',\n fontWeight: 'extra-bold'\n});\n\nexport interface BreadcrumbProps extends Omit<AriaBreadcrumbItemProps, 'children' | 'style' | 'className' | 'autoFocus'>, LinkDOMProps {\n /** The children of the breadcrumb item. */\n children?: ReactNode\n}\n\nexport function Breadcrumb({children, ...props}: BreadcrumbProps) {\n let {href, target, rel, download, ping, referrerPolicy, ...other} = props;\n let {size = 'M', isDisabled} = useSlottedContext(BreadcrumbsContext)!;\n let ref = useRef(null);\n let {direction} = useLocale();\n return (\n <AriaBreadcrumb\n {...other}\n ref={ref}\n className={({isCurrent}) => breadcrumbStyles({size, isCurrent})}>\n {({isCurrent}) => (\n isCurrent ?\n <span\n className={currentStyles({size})}>\n <Provider\n values={[\n [HeadingContext, {className: heading}]\n ]}>\n {children}\n </Provider>\n </span>\n : (\n <>\n <Link\n style={({isFocusVisible}) => ({clipPath: isFocusVisible ? 'none' : 'margin-box'})}\n href={href}\n target={target}\n rel={rel}\n download={download}\n ping={ping}\n referrerPolicy={referrerPolicy}\n isDisabled={isDisabled || isCurrent}\n className={({isFocused, isFocusVisible, isHovered, isDisabled, isPressed}) => linkStyles({isFocused, isFocusVisible, isHovered, isDisabled, size, isCurrent, isPressed})}>\n {children}\n </Link>\n <ChevronIcon\n size=\"M\"\n className={chevronStyles({direction})} />\n </>\n )\n )}\n </AriaBreadcrumb>\n );\n}\n"],"names":[],"version":3,"file":"Breadcrumbs.css.map"}
|
package/dist/Breadcrumbs.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./Breadcrumbs.css";
|
|
2
2
|
import $4b69f02ec06b9226$export$2e2bcd8739ae039 from "./Chevron.mjs";
|
|
3
|
+
import {useSpectrumContextProps as $5ce63c423902f47d$export$764f6146fadd77f7} from "./useSpectrumContextProps.mjs";
|
|
3
4
|
import {jsx as $a1dfd$jsx, jsxs as $a1dfd$jsxs, Fragment as $a1dfd$Fragment} from "react/jsx-runtime";
|
|
4
5
|
import {Breadcrumbs as $a1dfd$Breadcrumbs, useSlottedContext as $a1dfd$useSlottedContext, Breadcrumb as $a1dfd$Breadcrumb, Provider as $a1dfd$Provider, HeadingContext as $a1dfd$HeadingContext, Link as $a1dfd$Link} from "react-aria-components";
|
|
5
6
|
import {useLocale as $a1dfd$useLocale} from "react-aria";
|
|
@@ -22,6 +23,7 @@ import {useDOMRef as $a1dfd$useDOMRef} from "@react-spectrum/utils";
|
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
26
|
+
|
|
25
27
|
const $f329dd4f2aa58cd0$export$65596d3621b0a4a0 = /*#__PURE__*/ (0, $a1dfd$createContext)(null);
|
|
26
28
|
const $f329dd4f2aa58cd0$var$wrapper = function anonymous(props, overrides) {
|
|
27
29
|
let rules = " .";
|
|
@@ -83,6 +85,7 @@ const $f329dd4f2aa58cd0$var$wrapper = function anonymous(props, overrides) {
|
|
|
83
85
|
return rules;
|
|
84
86
|
};
|
|
85
87
|
function $f329dd4f2aa58cd0$var$Breadcrumbs(props, ref) {
|
|
88
|
+
[props, ref] = (0, $5ce63c423902f47d$export$764f6146fadd77f7)(props, ref, $f329dd4f2aa58cd0$export$65596d3621b0a4a0);
|
|
86
89
|
let { UNSAFE_className: UNSAFE_className = '', UNSAFE_style: UNSAFE_style, styles: styles, size: size = 'M', children: children, ...otherProps } = props;
|
|
87
90
|
let domRef = (0, $a1dfd$useDOMRef)(ref);
|
|
88
91
|
return /*#__PURE__*/ (0, $a1dfd$jsx)((0, $a1dfd$Breadcrumbs), {
|
package/dist/Breadcrumbs.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAmCM,MAAM,0DAAqB,CAAA,GAAA,oBAAY,EAAsE;AAEpH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BN,SAAS,kCAA8B,KAA0B,EAAE,GAA6B;IAC9F,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,oBACF,mBAAmB,kBACnB,YAAY,UACZ,MAAM,QACN,OAAO,eACP,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,qBACE,gBAAC,CAAA,GAAA,kBAAa;QACX,GAAG,UAAU;QACd,KAAK;QACL,OAAO;QACP,WAAW,mBAAmB,8BAAQ;kBACpC;QACF,GAAG;kBACH,cAAA,gBAAC,0CAAmB,QAAQ;YAAC,O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AgB;wBAChB,YAAY,cAAc;wBAC1B,WAAW,CAAC,aAAC,SAAS,kBAAE,cAAc,aAAE,SAAS,cAAE,UAAU,aAAE,SAAS,EAAC,GAAK,iCAAW;2CAAC;gDAAW;2CAAgB;4CAAW;sCAAY;2CAAM;2CAAW;4BAAS;kCACrK;;kCAEH,gBAAC,CAAA,GAAA,wCAAU;wBACT,MAAK;wBACL,WAAW,oCAAc;uCAAC;wBAAS;;;;;AAMnD","sources":["packages/@react-spectrum/s2/src/Breadcrumbs.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Breadcrumb as AriaBreadcrumb, BreadcrumbsProps as AriaBreadcrumbsProps, ContextValue, HeadingContext, Link, Provider, Breadcrumbs as RACBreadcrumbs, useSlottedContext} from 'react-aria-components';\nimport {AriaBreadcrumbItemProps, useLocale} from 'react-aria';\nimport ChevronIcon from '../ui-icons/Chevron';\nimport {createContext, forwardRef, ReactNode, useRef} from 'react';\nimport {DOMRef, DOMRefValue, LinkDOMProps} from '@react-types/shared';\nimport {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {forwardRefType} from './types';\nimport {size, style} from '../style/spectrum-theme' with { type: 'macro' };\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\ninterface BreadcrumbsStyleProps {\n /**\n * Size of the Breadcrumbs including spacing and layout.\n *\n * @default 'M'\n */\n size?: 'M' | 'L',\n /** Whether the breadcrumbs are disabled. */\n isDisabled?: boolean\n /**\n * Whether to place the last Breadcrumb item onto a new line.\n */\n // TODO: isMultiline?: boolean\n /** Whether to always show the root item if the items are collapsed. */\n // TODO: showRoot?: boolean,\n}\n\nexport interface BreadcrumbsProps<T> extends Omit<AriaBreadcrumbsProps<T>, 'children' | 'items' | 'style' | 'className'>, BreadcrumbsStyleProps, StyleProps {\n /** The children of the Breadcrumbs. */\n children?: ReactNode\n}\n\nexport const BreadcrumbsContext = createContext<ContextValue<BreadcrumbsProps<any>, DOMRefValue<HTMLOListElement>>>(null);\n\nconst wrapper = style<BreadcrumbsStyleProps>({\n display: 'flex',\n justifyContent: 'start',\n listStyleType: 'none',\n flexWrap: 'nowrap',\n flexGrow: 1,\n flexShrink: 0,\n flexBasis: 0,\n gap: {\n size: {\n M: size(6), // breadcrumbs-text-to-separator-medium\n L: size(9) // breadcrumbs-text-to-separator-large\n }\n },\n padding: 0,\n transition: 'default',\n marginTop: 0,\n marginBottom: 0,\n marginStart: {\n size: {\n M: size(6),\n L: size(9)\n }\n }\n}, getAllowedOverrides());\n\nfunction Breadcrumbs<T extends object>(props: BreadcrumbsProps<T>, ref: DOMRef<HTMLOListElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, BreadcrumbsContext);\n let {\n UNSAFE_className = '',\n UNSAFE_style,\n styles,\n size = 'M',\n children,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n return (\n <RACBreadcrumbs\n {...otherProps}\n ref={domRef}\n style={UNSAFE_style}\n className={UNSAFE_className + wrapper({\n size\n }, styles)}>\n <BreadcrumbsContext.Provider value={props}>\n {children}\n </BreadcrumbsContext.Provider>\n </RACBreadcrumbs>\n );\n}\n\n/** Breadcrumbs show hierarchy and navigational context for a user’s location within an application. */\nlet _Breadcrumbs = /*#__PURE__*/ (forwardRef as forwardRefType)(Breadcrumbs);\nexport {_Breadcrumbs as Breadcrumbs};\n\nconst breadcrumbStyles = style({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'start',\n height: 'control',\n transition: 'default',\n position: 'relative',\n color: {\n default: 'neutral',\n isDisabled: 'disabled',\n forcedColors: {\n default: 'ButtonText',\n isDisabled: 'GrayText'\n }\n },\n borderStyle: 'none'\n});\n\nconst chevronStyles = style({\n scale: {\n direction: {\n rtl: -1\n }\n },\n marginStart: 'text-to-visual',\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n }\n});\n\nconst linkStyles = style({\n ...focusRing(),\n borderRadius: 'sm',\n color: {\n default: 'neutral-subdued',\n isDisabled: 'disabled',\n isCurrent: 'neutral',\n forcedColors: {\n default: 'LinkText',\n isDisabled: 'GrayText'\n }\n },\n transition: 'default',\n font: 'control',\n fontWeight: {\n default: 'normal',\n isCurrent: 'bold'\n },\n textDecoration: {\n default: 'none',\n isHovered: 'underline',\n isFocusVisible: 'underline',\n isDisabled: 'none'\n },\n cursor: {\n default: 'pointer',\n isDisabled: 'default'\n },\n outlineColor: {\n default: 'focus-ring',\n forcedColors: 'Highlight'\n },\n disableTapHighlight: true\n});\n\nconst currentStyles = style<{size: string}>({\n color: {\n default: 'neutral',\n forcedColors: 'ButtonText'\n },\n transition: 'default',\n font: 'control',\n fontWeight: 'bold'\n});\n\n// TODO: support user heading size customization, for now just set it to large\nconst heading = style({\n margin: 0,\n font: 'heading-lg',\n fontWeight: 'extra-bold'\n});\n\nexport interface BreadcrumbProps extends Omit<AriaBreadcrumbItemProps, 'children' | 'style' | 'className' | 'autoFocus'>, LinkDOMProps {\n /** The children of the breadcrumb item. */\n children?: ReactNode\n}\n\nexport function Breadcrumb({children, ...props}: BreadcrumbProps) {\n let {href, target, rel, download, ping, referrerPolicy, ...other} = props;\n let {size = 'M', isDisabled} = useSlottedContext(BreadcrumbsContext)!;\n let ref = useRef(null);\n let {direction} = useLocale();\n return (\n <AriaBreadcrumb\n {...other}\n ref={ref}\n className={({isCurrent}) => breadcrumbStyles({size, isCurrent})}>\n {({isCurrent}) => (\n isCurrent ?\n <span\n className={currentStyles({size})}>\n <Provider\n values={[\n [HeadingContext, {className: heading}]\n ]}>\n {children}\n </Provider>\n </span>\n : (\n <>\n <Link\n style={({isFocusVisible}) => ({clipPath: isFocusVisible ? 'none' : 'margin-box'})}\n href={href}\n target={target}\n rel={rel}\n download={download}\n ping={ping}\n referrerPolicy={referrerPolicy}\n isDisabled={isDisabled || isCurrent}\n className={({isFocused, isFocusVisible, isHovered, isDisabled, isPressed}) => linkStyles({isFocused, isFocusVisible, isHovered, isDisabled, size, isCurrent, isPressed})}>\n {children}\n </Link>\n <ChevronIcon\n size=\"M\"\n className={chevronStyles({direction})} />\n </>\n )\n )}\n </AriaBreadcrumb>\n );\n}\n"],"names":[],"version":3,"file":"Breadcrumbs.mjs.map"}
|
package/dist/Dialog.cjs
CHANGED
|
@@ -147,7 +147,11 @@ function $0f4636c7093b9233$var$DialogInner(props1) {
|
|
|
147
147
|
ref: props1.dialogRef,
|
|
148
148
|
style: props1.UNSAFE_style,
|
|
149
149
|
className: (props1.UNSAFE_className || '') + $0f4636c7093b9233$export$6af31f836f9aa6f2,
|
|
150
|
-
children: (0, $WjfVF$reactariacomponents.composeRenderProps)(props1.children, (children, { close: close })
|
|
150
|
+
children: (0, $WjfVF$reactariacomponents.composeRenderProps)(props1.children, (children, { close: close })=>// Render the children multiple times inside the wrappers we need to implement the layout.
|
|
151
|
+
// Each instance hides certain children so that they are all rendered in the correct locations.
|
|
152
|
+
// Reset OverlayTriggerStateContext so the buttons inside the dialog don't retain their hover state.
|
|
153
|
+
/*#__PURE__*/ (0, $WjfVF$reactjsxruntime.jsxs)((0, $WjfVF$reactariacomponents.OverlayTriggerStateContext).Provider, {
|
|
154
|
+
value: null,
|
|
151
155
|
children: [
|
|
152
156
|
/*#__PURE__*/ (0, $WjfVF$reactjsxruntime.jsx)((0, $WjfVF$reactariacomponents.Provider), {
|
|
153
157
|
values: [
|
package/dist/Dialog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;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;oCAAI;iCAAE;gCAC9B;oCAAC,CAAA,GAAA,wCAAa;oCAAG;wCAAC,UAAU;oCAAI;iCAAE;gCAClC;oCAAC,CAAA,GAAA,uCAAY;oCAAG;wCAAC,UAAU;oCAAI;iCAAE;gCACjC;oCAAC,CAAA,GAAA,wCAAa;oCAAG;wCAAC,UAAU;oCAAI;iCAAE;gCAClC;oCAAC,CAAA,GAAA,uCAAY;oCAAG;wCAAC,QAAQ;oCAAM;iCAAE;gCACjC;oCAAC,CAAA,GAAA,4CAAiB;oCAAG;wCAAC,UAAU,yBAAyB;wCAAU,QAAQ;wCAAa,OAAO;oCAAK;iCAAE;6BACvG;sCACA;;;;;;AAOjB","sources":["packages/@react-spectrum/s2/src/Dialog.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {PopoverProps as AriaPopoverProps, composeRenderProps, Provider, Dialog as RACDialog, DialogProps as RACDialogProps} from 'react-aria-components';\nimport {ButtonGroupContext} from './ButtonGroup';\nimport {CloseButton} from './CloseButton';\nimport {ContentContext, FooterContext, HeaderContext, HeadingContext, ImageContext} from './Content';\nimport {createContext, forwardRef, RefObject, useContext} from 'react';\nimport {DOMRef} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Modal} from './Modal';\nimport {Popover} from './Popover';\nimport {style} from '../style/spectrum-theme' with {type: 'macro'};\nimport {StyleProps} from './style-utils';\nimport {useDOMRef, useMediaQuery} from '@react-spectrum/utils';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\n// TODO: what style overrides should be allowed?\nexport interface DialogProps extends Omit<RACDialogProps, 'className' | 'style'>, StyleProps {\n /**\n * Whether the Dialog is dismissable.\n */\n isDismissable?: boolean,\n /**\n * The size of the Dialog.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L'\n}\n\nconst image = style({\n width: 'full',\n height: '[140px]',\n objectFit: 'cover'\n});\n\nconst heading = style({\n flexGrow: 1,\n marginY: 0,\n font: 'heading'\n});\n\nconst header = style({\n font: 'body-lg'\n});\n\nconst content = style({\n flexGrow: 1,\n overflowY: {\n default: 'auto',\n // Make the whole dialog scroll rather than only the content when the height it small.\n '@media (height < 400)': 'visible',\n type: {\n popover: 'visible'\n }\n },\n font: 'body',\n // TODO: adjust margin on mobile?\n marginX: {\n default: 32\n }\n});\n\nconst footer = style({\n flexGrow: 1,\n font: 'body'\n});\n\nconst buttonGroup = style({\n marginStart: 'auto',\n maxWidth: 'full'\n});\n\ninterface DialogContextValue extends Pick<AriaPopoverProps, 'placement' | 'shouldFlip' | 'containerPadding' | 'offset' | 'crossOffset'> {\n /**\n * The type of Dialog that should be rendered.\n */\n type?: 'modal' | 'popover' | 'fullscreen' | 'fullscreenTakeover', // TODO: add tray back in\n /**\n * Whether a modal type Dialog should be dismissable.\n */\n isDismissable?: boolean,\n /**\n * Whether a popover type Dialog's arrow should be hidden.\n */\n hideArrow?: boolean,\n /**\n * Whether pressing the escape key to close the dialog should be disabled.\n */\n isKeyboardDismissDisabled?: boolean\n}\n\nexport const DialogContext = createContext<DialogContextValue>({\n type: 'modal',\n isDismissable: false,\n hideArrow: false,\n shouldFlip: true,\n isKeyboardDismissDisabled: false\n});\n\nfunction Dialog(props: DialogProps, ref: DOMRef) {\n let ctx = useContext(DialogContext);\n let isDismissable = ctx.isDismissable || props.isDismissable;\n let isKeyboardDismissDisabled = ctx.isKeyboardDismissDisabled;\n let domRef = useDOMRef(ref);\n\n switch (ctx.type) {\n case 'modal':\n case 'fullscreen':\n case 'fullscreenTakeover': {\n let size = ctx.type === 'modal' ? props.size : ctx.type;\n return (\n <Modal size={size} isDismissable={isDismissable} isKeyboardDismissDisabled={isKeyboardDismissDisabled}>\n <DialogInner {...props} {...ctx} dialogRef={domRef} isDismissable={isDismissable} />\n </Modal>\n );\n }\n case 'popover':\n // get hideArrow from dialog instead?\n return (\n <Popover size={props.size || 'M'} hideArrow={ctx.hideArrow} placement={ctx.placement} shouldFlip={ctx.shouldFlip} containerPadding={ctx.containerPadding} offset={ctx.offset} crossOffset={ctx.crossOffset}>\n <DialogInner {...props} {...ctx} dialogRef={domRef} isDismissable={isDismissable} />\n </Popover>\n );\n\n // TODO: popover/tray\n // how do we want to do popover, v3 dialogtrigger rendered it, not the dialog\n // in addition, how do we want to handle the margins that dialog currently imposes, just change them to 0 for popover?\n // in order for the dialog to contain scrolling behavior, we'd need to follow what i did for menu otherwise the internal padding\n // of the popover will squish the scrollable content area and the scroll bar will appear to be inside instead of part of the popover\n }\n}\n\n/**\n * Dialogs are windows containing contextual information, tasks, or workflows that appear over the user interface.\n * Depending on the kind of Dialog, further interactions may be blocked until the Dialog is acknowledged.\n */\nlet _Dialog = forwardRef(Dialog);\nexport {_Dialog as Dialog};\n\nexport const dialogInner = style({\n display: 'flex',\n flexDirection: 'column',\n flexGrow: 1,\n maxHeight: '[inherit]',\n boxSizing: 'border-box',\n outlineStyle: 'none',\n fontFamily: 'sans',\n borderRadius: '[inherit]',\n overflow: 'auto'\n});\n\nfunction DialogInner(props: DialogProps & DialogContextValue & {dialogRef: RefObject<HTMLElement | null>}) {\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2');\n // The button group in fullscreen dialogs usually goes at the top, but\n // when the window is small, it moves to the bottom. We could do this in\n // pure CSS with display: none, but then the ref would go to two places.\n // With JS we can actually unmount on of them to ensure there is only one at a time.\n // Hopefully apps don't SSR render a dialog that's already open, because this means\n // we don't evaluate the media query until JS loads.\n let isSmall = useMediaQuery('(max-width: 640px)');\n let buttonGroupPlacement = 'bottom';\n if (props.type === 'fullscreen' || props.type === 'fullscreenTakeover') {\n buttonGroupPlacement = isSmall ? 'bottom' : 'top';\n }\n\n if (props.isDismissable) {\n buttonGroupPlacement = 'none';\n }\n\n // TODO: manage focus when the button group placement changes and focus was on one of the buttons?\n\n return (\n <RACDialog\n {...props}\n ref={props.dialogRef}\n style={props.UNSAFE_style}\n className={(props.UNSAFE_className || '') + dialogInner}>\n {composeRenderProps(props.children, (children, {close}) =>\n // Render the children multiple times inside the wrappers we need to implement the layout.\n // Each instance hides certain children so that they are all rendered in the correct locations.\n (<>\n {/* Hero image */}\n <Provider\n values={[\n [ImageContext, {className: image}],\n [HeadingContext, {isHidden: true}],\n [HeaderContext, {isHidden: true}],\n [ContentContext, {isHidden: true}],\n [FooterContext, {isHidden: true}],\n [ButtonGroupContext, {isHidden: true}]\n ]}>\n {children}\n </Provider>\n {/* Top header: heading, header, dismiss button, and button group (in fullscreen dialogs). */}\n <div\n className={style({\n // Wrapper that creates the margin for the dismiss button.\n display: 'flex',\n alignItems: 'start',\n columnGap: 12,\n marginStart: {\n default: 32\n },\n marginEnd: {\n default: 32,\n isDismissable: 12\n },\n marginTop: {\n default: 12 // margin to dismiss button\n }\n })({isDismissable: props.isDismissable, type: props.type})}>\n <div\n className={style({\n // Wrapper for heading, header, and button group.\n // This swaps orientation from horizontal to vertical at small screen sizes.\n display: 'flex',\n flexGrow: 1,\n marginTop: {\n default: 20, // 32 - 12 (handled above)\n ':empty': 0\n },\n marginBottom: {\n default: 16,\n ':empty': 0\n },\n columnGap: 24,\n rowGap: 8,\n flexDirection: {\n default: 'column',\n sm: 'row'\n },\n alignItems: {\n default: 'start',\n sm: 'center'\n }\n })}>\n <Provider\n values={[\n [ImageContext, {hidden: true}],\n [HeadingContext, {styles: heading}],\n [HeaderContext, {styles: header}],\n [ContentContext, {isHidden: true}],\n [FooterContext, {isHidden: true}],\n [ButtonGroupContext, {isHidden: buttonGroupPlacement !== 'top'}]\n ]}>\n {children}\n </Provider>\n </div>\n {props.isDismissable &&\n <CloseButton aria-label={stringFormatter.format('dialog.dismiss')} onPress={close} styles={style({marginBottom: 12})} />\n }\n </div>\n {/* Main content */}\n <Provider\n values={[\n [ImageContext, {hidden: true}],\n [HeadingContext, {isHidden: true}],\n [HeaderContext, {isHidden: true}],\n [ContentContext, {styles: content({type: props.type})}],\n [FooterContext, {isHidden: true}],\n [ButtonGroupContext, {isHidden: true}]\n ]}>\n {children}\n </Provider>\n {/* Footer and button group */}\n <div\n className={style({\n display: 'flex',\n paddingX: {\n default: 32\n },\n paddingBottom: {\n default: 32\n },\n paddingTop: {\n default: 32,\n ':empty': 0\n },\n gap: 24,\n alignItems: 'center',\n flexWrap: 'wrap'\n })}>\n <Provider\n values={[\n [ImageContext, {hidden: true}],\n [HeadingContext, {isHidden: true}],\n [HeaderContext, {isHidden: true}],\n [ContentContext, {isHidden: true}],\n [FooterContext, {styles: footer}],\n [ButtonGroupContext, {isHidden: buttonGroupPlacement !== 'bottom', styles: buttonGroup, align: 'end'}]\n ]}>\n {children}\n </Provider>\n </div>\n </>)\n )}\n </RACDialog>\n );\n}\n"],"names":[],"version":3,"file":"Dialog.cjs.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;AA+BD,MAAM;AAMN,MAAM;AAMN,MAAM;AAIN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBN,MAAM;AAKN,MAAM;AAwBC,MAAM,0DAAgB,CAAA,GAAA,0BAAY,EAAsB;IAC7D,MAAM;IACN,eAAe;IACf,WAAW;IACX,YAAY;IACZ,2BAA2B;AAC7B;AAEA,SAAS,6BAAO,KAAkB,EAAE,GAAW;IAC7C,IAAI,MAAM,CAAA,GAAA,uBAAS,EAAE;IACrB,IAAI,gBAAgB,IAAI,aAAa,IAAI,MAAM,aAAa;IAC5D,IAAI,4BAA4B,IAAI,yBAAyB;IAC7D,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEv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U,yBAAyB;wCAAU,QAAQ;wCAAa,OAAO;oCAAK;iCAAE;6BACvG;sCACA;;;;;;AAOf","sources":["packages/@react-spectrum/s2/src/Dialog.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {PopoverProps as AriaPopoverProps, composeRenderProps, OverlayTriggerStateContext, Provider, Dialog as RACDialog, DialogProps as RACDialogProps} from 'react-aria-components';\nimport {ButtonGroupContext} from './ButtonGroup';\nimport {CloseButton} from './CloseButton';\nimport {ContentContext, FooterContext, HeaderContext, HeadingContext, ImageContext} from './Content';\nimport {createContext, forwardRef, RefObject, useContext} from 'react';\nimport {DOMRef} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Modal} from './Modal';\nimport {Popover} from './Popover';\nimport {style} from '../style/spectrum-theme' with {type: 'macro'};\nimport {StyleProps} from './style-utils';\nimport {useDOMRef, useMediaQuery} from '@react-spectrum/utils';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\n// TODO: what style overrides should be allowed?\nexport interface DialogProps extends Omit<RACDialogProps, 'className' | 'style'>, StyleProps {\n /**\n * Whether the Dialog is dismissable.\n */\n isDismissable?: boolean,\n /**\n * The size of the Dialog.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L'\n}\n\nconst image = style({\n width: 'full',\n height: '[140px]',\n objectFit: 'cover'\n});\n\nconst heading = style({\n flexGrow: 1,\n marginY: 0,\n font: 'heading'\n});\n\nconst header = style({\n font: 'body-lg'\n});\n\nconst content = style({\n flexGrow: 1,\n overflowY: {\n default: 'auto',\n // Make the whole dialog scroll rather than only the content when the height it small.\n '@media (height < 400)': 'visible',\n type: {\n popover: 'visible'\n }\n },\n font: 'body',\n // TODO: adjust margin on mobile?\n marginX: {\n default: 32\n }\n});\n\nconst footer = style({\n flexGrow: 1,\n font: 'body'\n});\n\nconst buttonGroup = style({\n marginStart: 'auto',\n maxWidth: 'full'\n});\n\ninterface DialogContextValue extends Pick<AriaPopoverProps, 'placement' | 'shouldFlip' | 'containerPadding' | 'offset' | 'crossOffset'> {\n /**\n * The type of Dialog that should be rendered.\n */\n type?: 'modal' | 'popover' | 'fullscreen' | 'fullscreenTakeover', // TODO: add tray back in\n /**\n * Whether a modal type Dialog should be dismissable.\n */\n isDismissable?: boolean,\n /**\n * Whether a popover type Dialog's arrow should be hidden.\n */\n hideArrow?: boolean,\n /**\n * Whether pressing the escape key to close the dialog should be disabled.\n */\n isKeyboardDismissDisabled?: boolean\n}\n\nexport const DialogContext = createContext<DialogContextValue>({\n type: 'modal',\n isDismissable: false,\n hideArrow: false,\n shouldFlip: true,\n isKeyboardDismissDisabled: false\n});\n\nfunction Dialog(props: DialogProps, ref: DOMRef) {\n let ctx = useContext(DialogContext);\n let isDismissable = ctx.isDismissable || props.isDismissable;\n let isKeyboardDismissDisabled = ctx.isKeyboardDismissDisabled;\n let domRef = useDOMRef(ref);\n\n switch (ctx.type) {\n case 'modal':\n case 'fullscreen':\n case 'fullscreenTakeover': {\n let size = ctx.type === 'modal' ? props.size : ctx.type;\n return (\n <Modal size={size} isDismissable={isDismissable} isKeyboardDismissDisabled={isKeyboardDismissDisabled}>\n <DialogInner {...props} {...ctx} dialogRef={domRef} isDismissable={isDismissable} />\n </Modal>\n );\n }\n case 'popover':\n // get hideArrow from dialog instead?\n return (\n <Popover size={props.size || 'M'} hideArrow={ctx.hideArrow} placement={ctx.placement} shouldFlip={ctx.shouldFlip} containerPadding={ctx.containerPadding} offset={ctx.offset} crossOffset={ctx.crossOffset}>\n <DialogInner {...props} {...ctx} dialogRef={domRef} isDismissable={isDismissable} />\n </Popover>\n );\n\n // TODO: popover/tray\n // how do we want to do popover, v3 dialogtrigger rendered it, not the dialog\n // in addition, how do we want to handle the margins that dialog currently imposes, just change them to 0 for popover?\n // in order for the dialog to contain scrolling behavior, we'd need to follow what i did for menu otherwise the internal padding\n // of the popover will squish the scrollable content area and the scroll bar will appear to be inside instead of part of the popover\n }\n}\n\n/**\n * Dialogs are windows containing contextual information, tasks, or workflows that appear over the user interface.\n * Depending on the kind of Dialog, further interactions may be blocked until the Dialog is acknowledged.\n */\nlet _Dialog = forwardRef(Dialog);\nexport {_Dialog as Dialog};\n\nexport const dialogInner = style({\n display: 'flex',\n flexDirection: 'column',\n flexGrow: 1,\n maxHeight: '[inherit]',\n boxSizing: 'border-box',\n outlineStyle: 'none',\n fontFamily: 'sans',\n borderRadius: '[inherit]',\n overflow: 'auto'\n});\n\nfunction DialogInner(props: DialogProps & DialogContextValue & {dialogRef: RefObject<HTMLElement | null>}) {\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2');\n // The button group in fullscreen dialogs usually goes at the top, but\n // when the window is small, it moves to the bottom. We could do this in\n // pure CSS with display: none, but then the ref would go to two places.\n // With JS we can actually unmount on of them to ensure there is only one at a time.\n // Hopefully apps don't SSR render a dialog that's already open, because this means\n // we don't evaluate the media query until JS loads.\n let isSmall = useMediaQuery('(max-width: 640px)');\n let buttonGroupPlacement = 'bottom';\n if (props.type === 'fullscreen' || props.type === 'fullscreenTakeover') {\n buttonGroupPlacement = isSmall ? 'bottom' : 'top';\n }\n\n if (props.isDismissable) {\n buttonGroupPlacement = 'none';\n }\n\n // TODO: manage focus when the button group placement changes and focus was on one of the buttons?\n\n return (\n <RACDialog\n {...props}\n ref={props.dialogRef}\n style={props.UNSAFE_style}\n className={(props.UNSAFE_className || '') + dialogInner}>\n {composeRenderProps(props.children, (children, {close}) => (\n // Render the children multiple times inside the wrappers we need to implement the layout.\n // Each instance hides certain children so that they are all rendered in the correct locations.\n // Reset OverlayTriggerStateContext so the buttons inside the dialog don't retain their hover state.\n <OverlayTriggerStateContext.Provider value={null}>\n {/* Hero image */}\n <Provider\n values={[\n [ImageContext, {className: image}],\n [HeadingContext, {isHidden: true}],\n [HeaderContext, {isHidden: true}],\n [ContentContext, {isHidden: true}],\n [FooterContext, {isHidden: true}],\n [ButtonGroupContext, {isHidden: true}]\n ]}>\n {children}\n </Provider>\n {/* Top header: heading, header, dismiss button, and button group (in fullscreen dialogs). */}\n <div\n className={style({\n // Wrapper that creates the margin for the dismiss button.\n display: 'flex',\n alignItems: 'start',\n columnGap: 12,\n marginStart: {\n default: 32\n },\n marginEnd: {\n default: 32,\n isDismissable: 12\n },\n marginTop: {\n default: 12 // margin to dismiss button\n }\n })({isDismissable: props.isDismissable, type: props.type})}>\n <div\n className={style({\n // Wrapper for heading, header, and button group.\n // This swaps orientation from horizontal to vertical at small screen sizes.\n display: 'flex',\n flexGrow: 1,\n marginTop: {\n default: 20, // 32 - 12 (handled above)\n ':empty': 0\n },\n marginBottom: {\n default: 16,\n ':empty': 0\n },\n columnGap: 24,\n rowGap: 8,\n flexDirection: {\n default: 'column',\n sm: 'row'\n },\n alignItems: {\n default: 'start',\n sm: 'center'\n }\n })}>\n <Provider\n values={[\n [ImageContext, {hidden: true}],\n [HeadingContext, {styles: heading}],\n [HeaderContext, {styles: header}],\n [ContentContext, {isHidden: true}],\n [FooterContext, {isHidden: true}],\n [ButtonGroupContext, {isHidden: buttonGroupPlacement !== 'top'}]\n ]}>\n {children}\n </Provider>\n </div>\n {props.isDismissable &&\n <CloseButton aria-label={stringFormatter.format('dialog.dismiss')} onPress={close} styles={style({marginBottom: 12})} />\n }\n </div>\n {/* Main content */}\n <Provider\n values={[\n [ImageContext, {hidden: true}],\n [HeadingContext, {isHidden: true}],\n [HeaderContext, {isHidden: true}],\n [ContentContext, {styles: content({type: props.type})}],\n [FooterContext, {isHidden: true}],\n [ButtonGroupContext, {isHidden: true}]\n ]}>\n {children}\n </Provider>\n {/* Footer and button group */}\n <div\n className={style({\n display: 'flex',\n paddingX: {\n default: 32\n },\n paddingBottom: {\n default: 32\n },\n paddingTop: {\n default: 32,\n ':empty': 0\n },\n gap: 24,\n alignItems: 'center',\n flexWrap: 'wrap'\n })}>\n <Provider\n values={[\n [ImageContext, {hidden: true}],\n [HeadingContext, {isHidden: true}],\n [HeaderContext, {isHidden: true}],\n [ContentContext, {isHidden: true}],\n [FooterContext, {styles: footer}],\n [ButtonGroupContext, {isHidden: buttonGroupPlacement !== 'bottom', styles: buttonGroup, align: 'end'}]\n ]}>\n {children}\n </Provider>\n </div>\n </OverlayTriggerStateContext.Provider>\n ))}\n </RACDialog>\n );\n}\n"],"names":[],"version":3,"file":"Dialog.cjs.map"}
|