welcome-ui 7.4.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.mjs +14 -15
- package/dist/Alert.mjs +36 -37
- package/dist/AspectRatio.mjs +6 -6
- package/dist/Avatar.mjs +3 -3
- package/dist/Badge.mjs +13 -14
- package/dist/Breadcrumb.mjs +10 -10
- package/dist/Button.mjs +7 -7
- package/dist/ButtonGroup.mjs +9 -11
- package/dist/Card.mjs +10 -16
- package/dist/Checkbox.mjs +1 -1
- package/dist/ClearButton.mjs +4 -4
- package/dist/CloseButton.mjs +2 -2
- package/dist/{CustomInput-BqaOGHm4.mjs → CustomInput-D_13Gd_3.mjs} +511 -514
- package/dist/DatePicker.mjs +54 -50
- package/dist/DateTimePicker.mjs +16 -18
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +44 -45
- package/dist/DropdownMenu.mjs +204 -208
- package/dist/Field.mjs +35 -37
- package/dist/FieldGroup.mjs +10 -11
- package/dist/FileDrop.mjs +98 -99
- package/dist/FileUpload.mjs +10 -10
- package/dist/Hint.mjs +7 -8
- package/dist/Icon.mjs +17 -18
- package/dist/IconsFont.mjs +298 -298
- package/dist/InputText.mjs +39 -42
- package/dist/Label.mjs +26 -27
- package/dist/Link.mjs +9 -11
- package/dist/Loader.mjs +4 -4
- package/dist/Logo.mjs +9 -11
- package/dist/Modal.mjs +46 -47
- package/dist/Pagination.mjs +50 -50
- package/dist/Picker.mjs +12 -12
- package/dist/Popover.mjs +4 -4
- package/dist/Radio.mjs +36 -38
- package/dist/RadioGroup.mjs +13 -15
- package/dist/RadioTab.mjs +25 -26
- package/dist/Search.mjs +89 -91
- package/dist/Select.mjs +33 -39
- package/dist/Slider.mjs +11 -11
- package/dist/System.mjs +16 -48
- package/dist/Table.mjs +7 -7
- package/dist/Text.mjs +20 -22
- package/dist/Textarea.mjs +16 -17
- package/dist/TimePicker.mjs +22 -22
- package/dist/Toast.mjs +14 -14
- package/dist/Toggle.mjs +3 -3
- package/dist/Tooltip.mjs +52 -53
- package/dist/UniversalLink.mjs +5 -5
- package/dist/VariantIcon.mjs +14 -16
- package/dist/{index-BSdL4wPb.mjs → index-BDeIsk2X.mjs} +6 -6
- package/dist/theme.mjs +180 -180
- package/dist/types/components/Accordion/styles.d.ts +13 -5
- package/dist/types/components/Alert/styles.d.ts +16 -4
- package/dist/types/components/AspectRatio/styles.d.ts +1 -1
- package/dist/types/components/Avatar/styles.d.ts +14 -2
- package/dist/types/components/Badge/styles.d.ts +2 -2
- package/dist/types/components/Breadcrumb/Item.styles.d.ts +2 -2
- package/dist/types/components/Breadcrumb/styles.d.ts +4 -4
- package/dist/types/components/Button/index.d.ts +5 -1
- package/dist/types/components/Button/styles.d.ts +5 -1
- package/dist/types/components/ButtonGroup/styles.d.ts +1 -1
- package/dist/types/components/Card/Cover.styles.d.ts +7 -1
- package/dist/types/components/Card/index.d.ts +1 -1
- package/dist/types/components/Card/styles.d.ts +2 -2
- package/dist/types/components/Checkbox/styles.d.ts +5 -1
- package/dist/types/components/ClearButton/index.d.ts +8 -1
- package/dist/types/components/ClearButton/styles.d.ts +7 -1
- package/dist/types/components/CloseButton/styles.d.ts +7 -1
- package/dist/types/components/DatePicker/index.d.ts +2 -2
- package/dist/types/components/DateTimePicker/styles.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/datePickerStyles.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/styles.d.ts +7 -7
- package/dist/types/components/Drawer/AssetDrawer/styles.d.ts +2 -2
- package/dist/types/components/Drawer/styles.d.ts +13 -7
- package/dist/types/components/DropdownMenu/Arrow.styled.d.ts +3 -3
- package/dist/types/components/DropdownMenu/Item.styled.d.ts +1 -1
- package/dist/types/components/DropdownMenu/Separator.styled.d.ts +1 -1
- package/dist/types/components/DropdownMenu/styles.d.ts +1 -1
- package/dist/types/components/Field/index.d.ts +5 -4
- package/dist/types/components/Field/styles.d.ts +6 -6
- package/dist/types/components/FieldGroup/index.d.ts +1 -1
- package/dist/types/components/FieldGroup/styles.d.ts +1 -1
- package/dist/types/components/FileDrop/index.d.ts +1 -1
- package/dist/types/components/FileDrop/styles.d.ts +4 -4
- package/dist/types/components/FileUpload/styles.d.ts +1 -1
- package/dist/types/components/Hint/index.d.ts +3 -2
- package/dist/types/components/Hint/styles.d.ts +2 -2
- package/dist/types/components/Icon/index.d.ts +3 -4
- package/dist/types/components/Icon/styles.d.ts +3 -4
- package/dist/types/components/Icons/Actions/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Activity/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Add/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Address/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Airplay/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Alert/content.json.d.ts +7 -0
- package/dist/types/components/Icons/AlertOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Analytics/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Anniversary/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Archive/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ArrowDown/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ArrowLeft/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ArrowLineDown/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ArrowLineLeft/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ArrowLineRight/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ArrowLineUp/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ArrowRight/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ArrowUp/content.json.d.ts +7 -0
- package/dist/types/components/Icons/AspectRatioFill/content.json.d.ts +7 -0
- package/dist/types/components/Icons/AspectRatioFit/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Attachment/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Avatar/content.json.d.ts +7 -0
- package/dist/types/components/Icons/AvatarAccessory/content.json.d.ts +7 -0
- package/dist/types/components/Icons/AvatarBody/content.json.d.ts +7 -0
- package/dist/types/components/Icons/AvatarBottom/content.json.d.ts +7 -0
- package/dist/types/components/Icons/AvatarCostume/content.json.d.ts +7 -0
- package/dist/types/components/Icons/AvatarHead/content.json.d.ts +7 -0
- package/dist/types/components/Icons/AvatarTop/content.json.d.ts +7 -0
- package/dist/types/components/Icons/BarChart/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Basketball/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Behance/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Birthday/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Bold/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Book/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Book2/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Bookmark/content.json.d.ts +7 -0
- package/dist/types/components/Icons/BookmarkOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Bulb/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Bulk/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Buoy/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Burn/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Caddy/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Calcul/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Camera/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CameraOff/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CameraOn/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CandidateStatus/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CardView/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Cast/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CastConnected/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CastUnavailable/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Celebrate/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Certified/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Check/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Clipboard/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Clock/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Code/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CodeBlock/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Coffee/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Collapse/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Comment/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CommentOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CommonArea/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Compass/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Computer/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Connection/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Contract/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ControlBackward/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ControlForward/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ControlPause/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ControlStop/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Copy/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CoverLetter/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Create/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CreditCard/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CrescentMoon/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CrescentMoonOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Cross/content.json.d.ts +7 -0
- package/dist/types/components/Icons/CrossTarget/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Crown/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Csv/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Date/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Department/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Details/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Diamond/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Dish/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Doc/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Docx/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Down/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Download/content.json.d.ts +7 -0
- package/dist/types/components/Icons/DragAndDrop/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Dribbble/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Earth/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Edit/content.json.d.ts +7 -0
- package/dist/types/components/Icons/EducationLevel/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Email/content.json.d.ts +7 -0
- package/dist/types/components/Icons/EmailOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Eot/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Equal/content.json.d.ts +7 -0
- package/dist/types/components/Icons/EuroCurrency/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Expand/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ExpandText/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Extend/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ExternalLink/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Facebook/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Factory/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Female/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Filters/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Fingerprint/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Flag/content.json.d.ts +7 -0
- package/dist/types/components/Icons/FlagCs/content.json.d.ts +8 -0
- package/dist/types/components/Icons/FlagEn/content.json.d.ts +8 -0
- package/dist/types/components/Icons/FlagEs/content.json.d.ts +8 -0
- package/dist/types/components/Icons/FlagFr/content.json.d.ts +8 -0
- package/dist/types/components/Icons/FlagOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/FlagPointed/content.json.d.ts +7 -0
- package/dist/types/components/Icons/FlagSk/content.json.d.ts +8 -0
- package/dist/types/components/Icons/FlagUs/content.json.d.ts +8 -0
- package/dist/types/components/Icons/Folder/content.json.d.ts +7 -0
- package/dist/types/components/Icons/FullscreenOff/content.json.d.ts +7 -0
- package/dist/types/components/Icons/FullscreenOn/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Gear/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Gif/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Github/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Google/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Handshake/content.json.d.ts +7 -0
- package/dist/types/components/Icons/HardHat/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Hashtag/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Heading/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Heading1/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Heading2/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Heading3/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Heading4/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Heading5/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Heading6/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Headset/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Heart/content.json.d.ts +7 -0
- package/dist/types/components/Icons/HeartOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/HeartShiny/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Hide/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Home/content.json.d.ts +7 -0
- package/dist/types/components/Icons/House/content.json.d.ts +7 -0
- package/dist/types/components/Icons/InProgressCandidate/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Information/content.json.d.ts +7 -0
- package/dist/types/components/Icons/InformationOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Instagram/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Italic/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Jpeg/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Jpg/content.json.d.ts +7 -0
- package/dist/types/components/Icons/JusticeHammer/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Kanban/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Key/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Language/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Leaf/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Left/content.json.d.ts +7 -0
- package/dist/types/components/Icons/LineChart/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Link/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Linkedin/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Location/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Lock/content.json.d.ts +7 -0
- package/dist/types/components/Icons/LockRounded/content.json.d.ts +7 -0
- package/dist/types/components/Icons/LogOut/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Male/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Map/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Masonry/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Masonry2/content.json.d.ts +7 -0
- package/dist/types/components/Icons/MeetingRoom/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Megaphone/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Mention/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Menu/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Mic/content.json.d.ts +7 -0
- package/dist/types/components/Icons/MicrophoneOff/content.json.d.ts +7 -0
- package/dist/types/components/Icons/MicrophoneOn/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Microship/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Mobile/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Money/content.json.d.ts +7 -0
- package/dist/types/components/Icons/More/content.json.d.ts +7 -0
- package/dist/types/components/Icons/MoreAndroid/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Mountain/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Move/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Music/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Negative/content.json.d.ts +7 -0
- package/dist/types/components/Icons/NegativeOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/NegativeStraight/content.json.d.ts +7 -0
- package/dist/types/components/Icons/NewCandidate/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Notification/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Npm/content.json.d.ts +7 -0
- package/dist/types/components/Icons/OfferStatus/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Office/content.json.d.ts +7 -0
- package/dist/types/components/Icons/OrderedList/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Origine/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Paperplane/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Pdf/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Pencil/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Phone/content.json.d.ts +7 -0
- package/dist/types/components/Icons/PhoneOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Pictures/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Piechart/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Pin/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Pinterest/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Pizza/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Play/content.json.d.ts +7 -0
- package/dist/types/components/Icons/PlayOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Playlist/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Png/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Podcast/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Positive/content.json.d.ts +7 -0
- package/dist/types/components/Icons/PositiveOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/PositiveStraight/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Ppt/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Print/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Promote/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Puzzle/content.json.d.ts +7 -0
- package/dist/types/components/Icons/PuzzleOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Question/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Questions/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Quote/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Refresh/content.json.d.ts +7 -0
- package/dist/types/components/Icons/RefuseCandidate/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Remote/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Remove/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Reset/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Resume/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Review/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ReviewOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Right/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Salary/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Save/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ScreenshareOff/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ScreenshareOn/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Search/content.json.d.ts +7 -0
- package/dist/types/components/Icons/SearchPeople/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Settings/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Share1/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Share2/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Shield/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Show/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Slack/content.json.d.ts +7 -0
- package/dist/types/components/Icons/SoundOff/content.json.d.ts +7 -0
- package/dist/types/components/Icons/SoundOn/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Source/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Spanner/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Sparkles/content.json.d.ts +7 -0
- package/dist/types/components/Icons/SquareAlert/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Stackoverflow/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Stackserver/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Star/content.json.d.ts +7 -0
- package/dist/types/components/Icons/StarOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Strikethrough/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Subtitle/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Success/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Suitcase/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Sun/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Svg/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Symbol/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Table/content.json.d.ts +7 -0
- package/dist/types/components/Icons/TableColumnAddAfter/content.json.d.ts +7 -0
- package/dist/types/components/Icons/TableColumnAddBefore/content.json.d.ts +7 -0
- package/dist/types/components/Icons/TableColumnRemove/content.json.d.ts +7 -0
- package/dist/types/components/Icons/TableDelete/content.json.d.ts +7 -0
- package/dist/types/components/Icons/TableDivide/content.json.d.ts +7 -0
- package/dist/types/components/Icons/TableMergeCells/content.json.d.ts +7 -0
- package/dist/types/components/Icons/TableRowAddAbove/content.json.d.ts +7 -0
- package/dist/types/components/Icons/TableRowAddBelow/content.json.d.ts +7 -0
- package/dist/types/components/Icons/TableRowRemove/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Tablet/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Tag/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Target/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Teepee/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ThumbDown/content.json.d.ts +7 -0
- package/dist/types/components/Icons/ThumbUp/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Thunderclock/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Tiktok/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Trash/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Tree/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Trophy/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Ttf/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Twitch/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Twitter/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Txt/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Type/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Unavailable/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Underline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/UnorderedList/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Up/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Update/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Upload/content.json.d.ts +7 -0
- package/dist/types/components/Icons/User/content.json.d.ts +7 -0
- package/dist/types/components/Icons/UserOutline/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Video/content.json.d.ts +7 -0
- package/dist/types/components/Icons/VideoCamera/content.json.d.ts +7 -0
- package/dist/types/components/Icons/VideoCamera2/content.json.d.ts +7 -0
- package/dist/types/components/Icons/WatchLater/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Woff/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Woff2/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Write/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Wttj/content.json.d.ts +7 -0
- package/dist/types/components/Icons/X/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Xing/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Xls/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Xlsx/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Youtube/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Zapier/content.json.d.ts +7 -0
- package/dist/types/components/Icons/Zip/content.json.d.ts +7 -0
- package/dist/types/components/IconsFont/index.d.ts +2 -1
- package/dist/types/components/IconsFont/styles.d.ts +1 -1
- package/dist/types/components/IconsFont/unicode.json.d.ts +303 -0
- package/dist/types/components/InputText/styles.d.ts +1 -2
- package/dist/types/components/Label/index.d.ts +3 -2
- package/dist/types/components/Label/styles.d.ts +4 -4
- package/dist/types/components/Link/styles.d.ts +7 -1
- package/dist/types/components/Loader/styles.d.ts +7 -2
- package/dist/types/components/Logo/Solutions.d.ts +1 -1
- package/dist/types/components/Logo/Symbol.d.ts +1 -1
- package/dist/types/components/Logo/Wui.d.ts +1 -1
- package/dist/types/components/Logo/styles.d.ts +1 -1
- package/dist/types/components/Modal/Assets/Backdrop.d.ts +8 -1
- package/dist/types/components/Modal/Assets/index.d.ts +15 -6
- package/dist/types/components/Modal/Assets/styles.d.ts +16 -7
- package/dist/types/components/Modal/index.d.ts +15 -6
- package/dist/types/components/Modal/styles.d.ts +18 -8
- package/dist/types/components/Pagination/styles.d.ts +7 -7
- package/dist/types/components/Picker/styles.d.ts +5 -1
- package/dist/types/components/Popover/Popover.d.ts +3 -2
- package/dist/types/components/Popover/PopoverHover.d.ts +3 -2
- package/dist/types/components/Popover/styles.d.ts +25 -9
- package/dist/types/components/Radio/styles.d.ts +15 -5
- package/dist/types/components/RadioGroup/styles.d.ts +2 -2
- package/dist/types/components/RadioTab/styles.d.ts +9 -5
- package/dist/types/components/Search/index.d.ts +1 -1
- package/dist/types/components/Search/styles.d.ts +9 -9
- package/dist/types/components/Select/index.d.ts +6 -2
- package/dist/types/components/Select/styles.d.ts +24 -15
- package/dist/types/components/Shape/styles.d.ts +5 -1
- package/dist/types/components/Slider/styles.d.ts +30 -8
- package/dist/types/components/Swiper/index.d.ts +2 -2
- package/dist/types/components/Swiper/styles.d.ts +19 -14
- package/dist/types/components/System/index.d.ts +1 -19
- package/dist/types/components/Table/index.d.ts +7 -6
- package/dist/types/components/Table/styles.d.ts +9 -9
- package/dist/types/components/Tabs/styles.d.ts +13 -5
- package/dist/types/components/Tag/index.d.ts +2 -1
- package/dist/types/components/Tag/styles.d.ts +4 -4
- package/dist/types/components/Text/styles.d.ts +1 -1
- package/dist/types/components/Textarea/styles.d.ts +1 -1
- package/dist/types/components/TimePicker/styles.d.ts +1 -1
- package/dist/types/components/Toast/styles.d.ts +29 -9
- package/dist/types/components/Toggle/styles.d.ts +9 -5
- package/dist/types/components/Tooltip/styles.d.ts +2 -2
- package/dist/types/components/UniversalLink/styles.d.ts +1 -1
- package/dist/types/components/VariantIcon/styles.d.ts +2 -2
- package/dist/types/components/WelcomeLoader/loader.json.d.ts +3 -0
- package/dist/types/components/WuiProvider/index.d.ts +2 -2
- package/dist/types/components/WuiProvider/styles.d.ts +4 -4
- package/dist/types/utils/overflow-ellipsis.d.ts +1 -1
- package/package.json +8 -6
package/dist/DropdownMenu.mjs
CHANGED
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import C, { useCallback as
|
|
3
|
-
import Y, { th as U, css as
|
|
2
|
+
import C, { useCallback as $e, useRef as le, createContext as ge, useState as we, useEffect as Me, createRef as Ve, useMemo as Re } from "react";
|
|
3
|
+
import Y, { th as U, css as Be, useTheme as Ke } from "@xstyled/styled-components";
|
|
4
4
|
import { forwardRef as J } from "./System.mjs";
|
|
5
|
-
import { h as ce, j as
|
|
6
|
-
import { e as
|
|
7
|
-
import { c as D, _ as O, i as K, a7 as
|
|
8
|
-
import { u as
|
|
9
|
-
import { m as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
var Ht = "div";
|
|
5
|
+
import { h as ce, j as ze, C as Se, a as xe, u as je } from "./P2CTZE2T-YPes1GXe.mjs";
|
|
6
|
+
import { e as We, f as Ze, c as Ue, d as qe, g as Ge, h as Ye } from "./BYC7LY2E-CVjUW1dr.mjs";
|
|
7
|
+
import { c as D, _ as O, i as K, a7 as Je, u as ae, b as V, a9 as Z, V as Qe, d as y, e as re, g as v, z as Ee, w as Ce, f as k, h as F, Z as Xe, $ as et, I as ye, R as tt, n as nt, m as rt, ab as ot, v as Pe, A as ut, B as G, C as W, D as $, a3 as at, H as st, x as Oe, E as Ae, t as se, Y as it, ac as lt, l as ct, ad as Ie, s as dt, ae as ft, af as pt } from "./LVA2YJMS-qFC9J-lt.mjs";
|
|
8
|
+
import { u as mt, b as bt } from "./QYJ6MIDR-BLLqyXdd.mjs";
|
|
9
|
+
import { m as vt, o as ht, p as gt, t as wt, s as be, d as ve, c as Mt, a as St, b as xt, u as R } from "./YV4JVR4I-BGfUf3Nu.mjs";
|
|
10
|
+
import { c as Et, u as Ct, a as yt } from "./ITI7HKP4-BONrZ9Pq.mjs";
|
|
11
|
+
import { i as Pt } from "./VGCJ63VH-B39w1tBw.mjs";
|
|
12
|
+
import { c as Ot, R as At } from "./JC64G2H7-Dey-8h60.mjs";
|
|
13
|
+
import { a as It } from "./VEVQD5MH-ZMnHV8ZJ.mjs";
|
|
14
|
+
var Tt = "div";
|
|
16
15
|
function Te(n) {
|
|
17
16
|
const t = n.relatedTarget;
|
|
18
17
|
return (t == null ? void 0 : t.nodeType) === Node.ELEMENT_NODE ? t : null;
|
|
19
18
|
}
|
|
20
|
-
function
|
|
19
|
+
function _t(n) {
|
|
21
20
|
const t = Te(n);
|
|
22
|
-
return t ?
|
|
21
|
+
return t ? Xe(n.currentTarget, t) : !1;
|
|
23
22
|
}
|
|
24
23
|
var ie = Symbol("composite-hover");
|
|
25
|
-
function
|
|
24
|
+
function Ht(n) {
|
|
26
25
|
let t = Te(n);
|
|
27
26
|
if (!t) return !1;
|
|
28
27
|
do {
|
|
29
|
-
if (
|
|
28
|
+
if (et(t, ie) && t[ie]) return !0;
|
|
30
29
|
t = t.parentElement;
|
|
31
30
|
} while (t);
|
|
32
31
|
return !1;
|
|
33
32
|
}
|
|
34
|
-
var
|
|
33
|
+
var _e = D(
|
|
35
34
|
function(t) {
|
|
36
35
|
var r = t, {
|
|
37
36
|
store: e,
|
|
@@ -47,34 +46,34 @@ var He = D(
|
|
|
47
46
|
e,
|
|
48
47
|
process.env.NODE_ENV !== "production" && "CompositeHover must be wrapped in a Composite component."
|
|
49
48
|
);
|
|
50
|
-
const l =
|
|
49
|
+
const l = Je(), c = a.onMouseMove, i = ae(u), w = V((f) => {
|
|
51
50
|
if (c == null || c(f), !f.defaultPrevented && l() && i(f)) {
|
|
52
51
|
if (!Z(f.currentTarget)) {
|
|
53
52
|
const M = e == null ? void 0 : e.getState().baseElement;
|
|
54
|
-
M && !
|
|
53
|
+
M && !Qe(M) && M.focus();
|
|
55
54
|
}
|
|
56
55
|
e == null || e.setActiveId(f.currentTarget.id);
|
|
57
56
|
}
|
|
58
|
-
}), m = a.onMouseLeave, d = ae(s),
|
|
57
|
+
}), m = a.onMouseLeave, d = ae(s), x = V((f) => {
|
|
59
58
|
var M;
|
|
60
|
-
m == null || m(f), !f.defaultPrevented && l() && (
|
|
61
|
-
}), p =
|
|
59
|
+
m == null || m(f), !f.defaultPrevented && l() && (_t(f) || Ht(f) || i(f) && d(f) && (e == null || e.setActiveId(null), (M = e == null ? void 0 : e.getState().baseElement) == null || M.focus()));
|
|
60
|
+
}), p = $e((f) => {
|
|
62
61
|
f && (f[ie] = !0);
|
|
63
62
|
}, []);
|
|
64
63
|
return a = y(v({}, a), {
|
|
65
64
|
ref: re(p, a.ref),
|
|
66
65
|
onMouseMove: w,
|
|
67
|
-
onMouseLeave:
|
|
68
|
-
}),
|
|
66
|
+
onMouseLeave: x
|
|
67
|
+
}), Ee(a);
|
|
69
68
|
}
|
|
70
69
|
);
|
|
71
|
-
|
|
70
|
+
Ce(
|
|
72
71
|
k(function(t) {
|
|
73
|
-
const r =
|
|
74
|
-
return F(
|
|
72
|
+
const r = _e(t);
|
|
73
|
+
return F(Tt, r);
|
|
75
74
|
})
|
|
76
75
|
);
|
|
77
|
-
var
|
|
76
|
+
var Dt = "hr", He = D(
|
|
78
77
|
function(t) {
|
|
79
78
|
var r = t, { orientation: e = "horizontal" } = r, u = O(r, ["orientation"]);
|
|
80
79
|
return u = v({
|
|
@@ -84,10 +83,10 @@ var Ft = "hr", De = D(
|
|
|
84
83
|
}
|
|
85
84
|
);
|
|
86
85
|
k(function(t) {
|
|
87
|
-
const r =
|
|
88
|
-
return F(
|
|
86
|
+
const r = He(t);
|
|
87
|
+
return F(Dt, r);
|
|
89
88
|
});
|
|
90
|
-
var
|
|
89
|
+
var kt = "hr", De = D(function(t) {
|
|
91
90
|
var r = t, { store: e } = r, u = O(r, ["store"]);
|
|
92
91
|
const s = ce();
|
|
93
92
|
e = e || s, K(
|
|
@@ -97,26 +96,26 @@ var Nt = "hr", ke = D(function(t) {
|
|
|
97
96
|
const a = e.useState(
|
|
98
97
|
(o) => o.orientation === "horizontal" ? "vertical" : "horizontal"
|
|
99
98
|
);
|
|
100
|
-
return u =
|
|
99
|
+
return u = He(y(v({}, u), { orientation: a })), u;
|
|
101
100
|
});
|
|
102
101
|
k(function(t) {
|
|
103
|
-
const r =
|
|
104
|
-
return F(
|
|
102
|
+
const r = De(t);
|
|
103
|
+
return F(kt, r);
|
|
105
104
|
});
|
|
106
|
-
var
|
|
105
|
+
var Ft = "div", N = "";
|
|
107
106
|
function ue() {
|
|
108
107
|
N = "";
|
|
109
108
|
}
|
|
110
|
-
function
|
|
109
|
+
function Nt(n) {
|
|
111
110
|
const t = n.target;
|
|
112
|
-
return t &&
|
|
111
|
+
return t && nt(t) ? !1 : n.key === " " && N.length ? !0 : n.key.length === 1 && !n.ctrlKey && !n.altKey && !n.metaKey && /^[\p{Letter}\p{Number}]$/u.test(n.key);
|
|
113
112
|
}
|
|
114
|
-
function
|
|
115
|
-
if (
|
|
113
|
+
function Lt(n, t) {
|
|
114
|
+
if (rt(n)) return !0;
|
|
116
115
|
const r = n.target;
|
|
117
116
|
return r ? t.some((u) => u.element === r) : !1;
|
|
118
117
|
}
|
|
119
|
-
function
|
|
118
|
+
function $t(n) {
|
|
120
119
|
return n.filter((t) => !t.disabled);
|
|
121
120
|
}
|
|
122
121
|
function ne(n, t) {
|
|
@@ -126,12 +125,12 @@ function ne(n, t) {
|
|
|
126
125
|
// component that can be used with those as well, we also consider the value
|
|
127
126
|
// property as a fallback for the typeahead text content.
|
|
128
127
|
"value" in n && n.value;
|
|
129
|
-
return e ?
|
|
128
|
+
return e ? ot(e).trim().toLowerCase().startsWith(t.toLowerCase()) : !1;
|
|
130
129
|
}
|
|
131
|
-
function
|
|
130
|
+
function Vt(n, t, r) {
|
|
132
131
|
if (!r) return n;
|
|
133
132
|
const e = n.find((u) => u.id === r);
|
|
134
|
-
return !e || !ne(e, t) || N !== t && ne(e, N) ? n : (N = t,
|
|
133
|
+
return !e || !ne(e, t) || N !== t && ne(e, N) ? n : (N = t, ze(
|
|
135
134
|
n.filter((u) => ne(u, N)),
|
|
136
135
|
r
|
|
137
136
|
).filter((u) => u.id !== r));
|
|
@@ -145,62 +144,62 @@ var de = D(function(t) {
|
|
|
145
144
|
);
|
|
146
145
|
const o = s.onKeyDownCapture, l = le(0), c = V((i) => {
|
|
147
146
|
if (o == null || o(i), i.defaultPrevented || !u || !e) return;
|
|
148
|
-
if (!
|
|
147
|
+
if (!Nt(i))
|
|
149
148
|
return ue();
|
|
150
|
-
const { renderedItems: w, items: m, activeId: d, id:
|
|
151
|
-
let p =
|
|
149
|
+
const { renderedItems: w, items: m, activeId: d, id: x } = e.getState();
|
|
150
|
+
let p = $t(
|
|
152
151
|
m.length > w.length ? m : w
|
|
153
152
|
);
|
|
154
|
-
const f =
|
|
153
|
+
const f = ye(i.currentTarget), M = `[data-offscreen-id="${x}"]`, b = f.querySelectorAll(M);
|
|
155
154
|
for (const S of b) {
|
|
156
|
-
const
|
|
157
|
-
p.push({ id: S.id, element: S, disabled:
|
|
155
|
+
const _ = S.ariaDisabled === "true" || "disabled" in S && !!S.disabled;
|
|
156
|
+
p.push({ id: S.id, element: S, disabled: _ });
|
|
158
157
|
}
|
|
159
|
-
if (b.length && (p =
|
|
158
|
+
if (b.length && (p = tt(p, (S) => S.element)), !Lt(i, p)) return ue();
|
|
160
159
|
i.preventDefault(), window.clearTimeout(l.current), l.current = window.setTimeout(() => {
|
|
161
160
|
N = "";
|
|
162
161
|
}, 500);
|
|
163
162
|
const A = i.key.toLowerCase();
|
|
164
|
-
N += A, p =
|
|
163
|
+
N += A, p = Vt(p, A, d);
|
|
165
164
|
const P = p.find((S) => ne(S, N));
|
|
166
165
|
P ? e.move(P.id) : ue();
|
|
167
166
|
});
|
|
168
167
|
return s = y(v({}, s), {
|
|
169
168
|
onKeyDownCapture: c
|
|
170
|
-
}),
|
|
169
|
+
}), Ee(s);
|
|
171
170
|
});
|
|
172
171
|
k(function(t) {
|
|
173
172
|
const r = de(t);
|
|
174
|
-
return F(
|
|
173
|
+
return F(Ft, r);
|
|
175
174
|
});
|
|
176
|
-
var
|
|
175
|
+
var ke = Pe(
|
|
177
176
|
[xe],
|
|
178
|
-
[
|
|
179
|
-
),
|
|
177
|
+
[Se]
|
|
178
|
+
), Rt = ke.useContext, Bt = ke.useScopedContext;
|
|
180
179
|
ge(
|
|
181
180
|
void 0
|
|
182
181
|
);
|
|
183
|
-
var Q =
|
|
184
|
-
[xe,
|
|
185
|
-
[
|
|
186
|
-
), fe = Q.useContext,
|
|
182
|
+
var Q = Pe(
|
|
183
|
+
[xe, Ze],
|
|
184
|
+
[Se, We]
|
|
185
|
+
), fe = Q.useContext, Kt = Q.useScopedContext, oe = Q.useProviderContext, zt = Q.ContextProvider, jt = Q.ScopedContextProvider;
|
|
187
186
|
ge(
|
|
188
187
|
void 0
|
|
189
188
|
);
|
|
190
|
-
function
|
|
189
|
+
function Wt(n = {}) {
|
|
191
190
|
var t = n, {
|
|
192
191
|
combobox: r,
|
|
193
192
|
parent: e,
|
|
194
193
|
menubar: u
|
|
195
|
-
} = t, s =
|
|
194
|
+
} = t, s = ut(t, [
|
|
196
195
|
"combobox",
|
|
197
196
|
"parent",
|
|
198
197
|
"menubar"
|
|
199
198
|
]);
|
|
200
|
-
const a = !!u && !e, o =
|
|
199
|
+
const a = !!u && !e, o = vt(
|
|
201
200
|
s.store,
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
gt(e, ["values"]),
|
|
202
|
+
ht(r, [
|
|
204
203
|
"arrowElement",
|
|
205
204
|
"anchorElement",
|
|
206
205
|
"contentElement",
|
|
@@ -208,15 +207,15 @@ function Ut(n = {}) {
|
|
|
208
207
|
"disclosureElement"
|
|
209
208
|
])
|
|
210
209
|
);
|
|
211
|
-
|
|
212
|
-
const l = o.getState(), c =
|
|
210
|
+
wt(s, o);
|
|
211
|
+
const l = o.getState(), c = Et(G($({}, s), {
|
|
213
212
|
store: o,
|
|
214
213
|
orientation: W(
|
|
215
214
|
s.orientation,
|
|
216
215
|
l.orientation,
|
|
217
216
|
"vertical"
|
|
218
217
|
)
|
|
219
|
-
})), i =
|
|
218
|
+
})), i = Ue(G($({}, s), {
|
|
220
219
|
store: o,
|
|
221
220
|
placement: W(
|
|
222
221
|
s.placement,
|
|
@@ -229,7 +228,7 @@ function Ut(n = {}) {
|
|
|
229
228
|
a ? 0 : 150
|
|
230
229
|
),
|
|
231
230
|
hideTimeout: W(s.hideTimeout, l.hideTimeout, 0)
|
|
232
|
-
})), w = G(
|
|
231
|
+
})), w = G($($({}, c.getState()), i.getState()), {
|
|
233
232
|
initialFocus: W(l.initialFocus, "container"),
|
|
234
233
|
values: W(
|
|
235
234
|
s.values,
|
|
@@ -237,7 +236,7 @@ function Ut(n = {}) {
|
|
|
237
236
|
s.defaultValues,
|
|
238
237
|
{}
|
|
239
238
|
)
|
|
240
|
-
}), m =
|
|
239
|
+
}), m = Mt(w, c, i, o);
|
|
241
240
|
return be(
|
|
242
241
|
m,
|
|
243
242
|
() => ve(m, ["mounted"], (d) => {
|
|
@@ -251,7 +250,7 @@ function Ut(n = {}) {
|
|
|
251
250
|
d.orientation === "vertical" ? "right-start" : "bottom-start"
|
|
252
251
|
);
|
|
253
252
|
})
|
|
254
|
-
), G(
|
|
253
|
+
), G($($($({}, c), i), m), {
|
|
255
254
|
combobox: r,
|
|
256
255
|
parent: e,
|
|
257
256
|
menubar: u,
|
|
@@ -260,20 +259,20 @@ function Ut(n = {}) {
|
|
|
260
259
|
},
|
|
261
260
|
setInitialFocus: (d) => m.setState("initialFocus", d),
|
|
262
261
|
setValues: (d) => m.setState("values", d),
|
|
263
|
-
setValue: (d,
|
|
262
|
+
setValue: (d, x) => {
|
|
264
263
|
d !== "__proto__" && d !== "constructor" && (Array.isArray(d) || m.setState("values", (p) => {
|
|
265
|
-
const f = p[d], M =
|
|
266
|
-
return M === f ? p : G(
|
|
264
|
+
const f = p[d], M = at(x, f);
|
|
265
|
+
return M === f ? p : G($({}, p), {
|
|
267
266
|
[d]: M !== void 0 && M
|
|
268
267
|
});
|
|
269
268
|
}));
|
|
270
269
|
}
|
|
271
270
|
});
|
|
272
271
|
}
|
|
273
|
-
function
|
|
274
|
-
return
|
|
275
|
-
|
|
276
|
-
|
|
272
|
+
function Zt(n, t, r) {
|
|
273
|
+
return st(t, [r.combobox, r.parent, r.menubar]), xt(n, r, "values", "setValues"), Object.assign(
|
|
274
|
+
qe(
|
|
275
|
+
Ct(n, t, r),
|
|
277
276
|
t,
|
|
278
277
|
r
|
|
279
278
|
),
|
|
@@ -284,18 +283,18 @@ function qt(n, t, r) {
|
|
|
284
283
|
}
|
|
285
284
|
);
|
|
286
285
|
}
|
|
287
|
-
function
|
|
288
|
-
const t = fe(), r =
|
|
286
|
+
function Ut(n = {}) {
|
|
287
|
+
const t = fe(), r = Rt(), e = It();
|
|
289
288
|
n = y(v({}, n), {
|
|
290
289
|
parent: n.parent !== void 0 ? n.parent : t,
|
|
291
290
|
menubar: n.menubar !== void 0 ? n.menubar : r,
|
|
292
291
|
combobox: n.combobox !== void 0 ? n.combobox : e
|
|
293
292
|
});
|
|
294
|
-
const [u, s] =
|
|
295
|
-
return
|
|
293
|
+
const [u, s] = St(Wt, n);
|
|
294
|
+
return Zt(u, s, n);
|
|
296
295
|
}
|
|
297
|
-
var
|
|
298
|
-
function
|
|
296
|
+
var qt = "div";
|
|
297
|
+
function Gt(n) {
|
|
299
298
|
var t = n, { store: r } = t, e = O(t, ["store"]);
|
|
300
299
|
const [u, s] = we(void 0), a = e["aria-label"], o = R(r, "disclosureElement"), l = R(r, "contentElement");
|
|
301
300
|
return Me(() => {
|
|
@@ -306,7 +305,7 @@ function Jt(n) {
|
|
|
306
305
|
a || i.hasAttribute("aria-label") ? s(void 0) : c.id && s(c.id);
|
|
307
306
|
}, [a, o, l]), u;
|
|
308
307
|
}
|
|
309
|
-
var
|
|
308
|
+
var Fe = D(
|
|
310
309
|
function(t) {
|
|
311
310
|
var r = t, { store: e, alwaysVisible: u, composite: s } = r, a = O(r, ["store", "alwaysVisible", "composite"]);
|
|
312
311
|
const o = oe();
|
|
@@ -314,27 +313,27 @@ var Ne = D(
|
|
|
314
313
|
e,
|
|
315
314
|
process.env.NODE_ENV !== "production" && "MenuList must receive a `store` prop or be wrapped in a MenuProvider component."
|
|
316
315
|
);
|
|
317
|
-
const l = e.parent, c = e.menubar, i = !!l, w =
|
|
316
|
+
const l = e.parent, c = e.menubar, i = !!l, w = Oe(a.id), m = a.onKeyDown, d = e.useState(
|
|
318
317
|
(g) => g.placement.split("-")[0]
|
|
319
|
-
),
|
|
318
|
+
), x = e.useState(
|
|
320
319
|
(g) => g.orientation === "both" ? void 0 : g.orientation
|
|
321
|
-
), p =
|
|
320
|
+
), p = x !== "vertical", f = R(
|
|
322
321
|
c,
|
|
323
322
|
(g) => !!g && g.orientation !== "vertical"
|
|
324
323
|
), M = V((g) => {
|
|
325
324
|
if (m == null || m(g), !g.defaultPrevented) {
|
|
326
325
|
if (i || c && !p) {
|
|
327
|
-
const
|
|
326
|
+
const I = {
|
|
328
327
|
ArrowRight: () => d === "left" && !p,
|
|
329
328
|
ArrowLeft: () => d === "right" && !p,
|
|
330
329
|
ArrowUp: () => d === "bottom" && p,
|
|
331
330
|
ArrowDown: () => d === "top" && p
|
|
332
331
|
}[g.key];
|
|
333
|
-
if (
|
|
332
|
+
if (I != null && I())
|
|
334
333
|
return g.stopPropagation(), g.preventDefault(), e == null ? void 0 : e.hide();
|
|
335
334
|
}
|
|
336
335
|
if (c) {
|
|
337
|
-
const
|
|
336
|
+
const I = {
|
|
338
337
|
ArrowRight: () => {
|
|
339
338
|
if (f)
|
|
340
339
|
return c.next();
|
|
@@ -351,17 +350,17 @@ var Ne = D(
|
|
|
351
350
|
if (!f)
|
|
352
351
|
return c.previous();
|
|
353
352
|
}
|
|
354
|
-
}[g.key],
|
|
355
|
-
|
|
353
|
+
}[g.key], L = I == null ? void 0 : I();
|
|
354
|
+
L !== void 0 && (g.stopPropagation(), g.preventDefault(), c.move(L));
|
|
356
355
|
}
|
|
357
356
|
}
|
|
358
357
|
});
|
|
359
|
-
a =
|
|
358
|
+
a = Ae(
|
|
360
359
|
a,
|
|
361
|
-
(g) => /* @__PURE__ */ se.jsx(
|
|
360
|
+
(g) => /* @__PURE__ */ se.jsx(jt, { value: e, children: g }),
|
|
362
361
|
[e]
|
|
363
362
|
);
|
|
364
|
-
const b =
|
|
363
|
+
const b = Gt(v({ store: e }, a)), A = e.useState("mounted"), P = Pt(A, a.hidden, u), S = P ? y(v({}, a.style), { display: "none" }) : a.style;
|
|
365
364
|
a = y(v({
|
|
366
365
|
id: w,
|
|
367
366
|
"aria-labelledby": b,
|
|
@@ -371,18 +370,18 @@ var Ne = D(
|
|
|
371
370
|
style: S,
|
|
372
371
|
onKeyDown: M
|
|
373
372
|
});
|
|
374
|
-
const
|
|
375
|
-
return s = s ?? !
|
|
373
|
+
const _ = !!e.combobox;
|
|
374
|
+
return s = s ?? !_, s && (a = v({
|
|
376
375
|
role: "menu",
|
|
377
|
-
"aria-orientation":
|
|
378
|
-
}, a)), a =
|
|
376
|
+
"aria-orientation": x
|
|
377
|
+
}, a)), a = yt(v({ store: e, composite: s }, a)), a = de(v({ store: e, typeahead: !_ }, a)), a;
|
|
379
378
|
}
|
|
380
379
|
);
|
|
381
380
|
k(function(t) {
|
|
382
|
-
const r =
|
|
383
|
-
return F(
|
|
381
|
+
const r = Fe(t);
|
|
382
|
+
return F(qt, r);
|
|
384
383
|
});
|
|
385
|
-
var
|
|
384
|
+
var Yt = "div", Jt = D(function(t) {
|
|
386
385
|
var r = t, {
|
|
387
386
|
store: e,
|
|
388
387
|
modal: u = !1,
|
|
@@ -405,29 +404,29 @@ var Qt = "div", Xt = D(function(t) {
|
|
|
405
404
|
e,
|
|
406
405
|
process.env.NODE_ENV !== "production" && "Menu must receive a `store` prop or be wrapped in a MenuProvider component."
|
|
407
406
|
);
|
|
408
|
-
const m = le(null), d = e.parent,
|
|
407
|
+
const m = le(null), d = e.parent, x = e.menubar, p = !!d, f = !!x && !p;
|
|
409
408
|
i = y(v({}, i), {
|
|
410
409
|
ref: re(m, i.ref)
|
|
411
410
|
});
|
|
412
|
-
const M =
|
|
411
|
+
const M = Fe(v({
|
|
413
412
|
store: e,
|
|
414
413
|
alwaysVisible: c
|
|
415
414
|
}, i)), { "aria-labelledby": b } = M;
|
|
416
415
|
i = O(M, ["aria-labelledby"]);
|
|
417
|
-
const [P, S] = we(),
|
|
416
|
+
const [P, S] = we(), _ = e.useState("autoFocusOnShow"), g = e.useState("initialFocus"), z = e.useState("baseElement"), I = e.useState("renderedItems");
|
|
418
417
|
Me(() => {
|
|
419
418
|
let H = !1;
|
|
420
|
-
return S((
|
|
419
|
+
return S((E) => {
|
|
421
420
|
var ee, pe, me;
|
|
422
|
-
if (H || !
|
|
423
|
-
if ((ee =
|
|
424
|
-
const te =
|
|
421
|
+
if (H || !_) return;
|
|
422
|
+
if ((ee = E == null ? void 0 : E.current) != null && ee.isConnected) return E;
|
|
423
|
+
const te = Ve();
|
|
425
424
|
switch (g) {
|
|
426
425
|
case "first":
|
|
427
|
-
te.current = ((pe =
|
|
426
|
+
te.current = ((pe = I.find((q) => !q.disabled && q.element)) == null ? void 0 : pe.element) || null;
|
|
428
427
|
break;
|
|
429
428
|
case "last":
|
|
430
|
-
te.current = ((me = [...
|
|
429
|
+
te.current = ((me = [...I].reverse().find((q) => !q.disabled && q.element)) == null ? void 0 : me.element) || null;
|
|
431
430
|
break;
|
|
432
431
|
default:
|
|
433
432
|
te.current = z;
|
|
@@ -436,59 +435,59 @@ var Qt = "div", Xt = D(function(t) {
|
|
|
436
435
|
}), () => {
|
|
437
436
|
H = !0;
|
|
438
437
|
};
|
|
439
|
-
}, [e,
|
|
440
|
-
const
|
|
438
|
+
}, [e, _, g, I, z]);
|
|
439
|
+
const L = p ? !1 : u, h = !!o, T = !!P || !!i.initialFocus || !!L, j = R(
|
|
441
440
|
e.combobox || e,
|
|
442
441
|
"contentElement"
|
|
443
442
|
), B = R(
|
|
444
443
|
(d == null ? void 0 : d.combobox) || d,
|
|
445
444
|
"contentElement"
|
|
446
|
-
), X =
|
|
445
|
+
), X = Re(() => {
|
|
447
446
|
if (!B || !j) return;
|
|
448
|
-
const H = j.getAttribute("role"),
|
|
449
|
-
if (!((
|
|
447
|
+
const H = j.getAttribute("role"), E = B.getAttribute("role");
|
|
448
|
+
if (!((E === "menu" || E === "menubar") && H === "menu"))
|
|
450
449
|
return B;
|
|
451
450
|
}, [j, B]);
|
|
452
451
|
return X !== void 0 && (i = v({
|
|
453
452
|
preserveTabOrderAnchor: X
|
|
454
|
-
}, i)), i =
|
|
453
|
+
}, i)), i = Ge(y(v({
|
|
455
454
|
store: e,
|
|
456
455
|
alwaysVisible: c,
|
|
457
456
|
initialFocus: P,
|
|
458
|
-
autoFocusOnShow: h ?
|
|
457
|
+
autoFocusOnShow: h ? T && o : _ || !!L
|
|
459
458
|
}, i), {
|
|
460
459
|
hideOnEscape(H) {
|
|
461
|
-
return
|
|
460
|
+
return it(a, H) ? !1 : (e == null || e.hideAll(), !0);
|
|
462
461
|
},
|
|
463
462
|
hideOnHoverOutside(H) {
|
|
464
|
-
const
|
|
465
|
-
return (typeof l == "function" ? l(H) : l ?? (p ? !0 : f ?
|
|
466
|
-
Z(
|
|
463
|
+
const E = e == null ? void 0 : e.getState().disclosureElement;
|
|
464
|
+
return (typeof l == "function" ? l(H) : l ?? (p ? !0 : f ? E ? !Z(E) : !0 : !1)) ? H.defaultPrevented || !p || !E || (lt(E, "mouseout", H), !Z(E)) ? !0 : (requestAnimationFrame(() => {
|
|
465
|
+
Z(E) || e == null || e.hide();
|
|
467
466
|
}), !1) : !1;
|
|
468
467
|
},
|
|
469
|
-
modal:
|
|
468
|
+
modal: L,
|
|
470
469
|
portal: s,
|
|
471
470
|
backdrop: p ? !1 : i.backdrop
|
|
472
471
|
})), i = v({
|
|
473
472
|
"aria-labelledby": b
|
|
474
473
|
}, i), i;
|
|
475
|
-
}),
|
|
474
|
+
}), Qt = Ot(
|
|
476
475
|
k(function(t) {
|
|
477
|
-
const r =
|
|
478
|
-
return F(
|
|
476
|
+
const r = Jt(t);
|
|
477
|
+
return F(Yt, r);
|
|
479
478
|
}),
|
|
480
479
|
oe
|
|
481
|
-
),
|
|
480
|
+
), Xt = "div", en = D(
|
|
482
481
|
function(t) {
|
|
483
482
|
var r = t, { store: e } = r, u = O(r, ["store"]);
|
|
484
483
|
const s = fe();
|
|
485
|
-
return e = e || s,
|
|
484
|
+
return e = e || s, mt(v({ store: e }, u));
|
|
486
485
|
}
|
|
487
|
-
),
|
|
488
|
-
const r =
|
|
489
|
-
return F(
|
|
490
|
-
}),
|
|
491
|
-
function
|
|
486
|
+
), tn = k(function(t) {
|
|
487
|
+
const r = en(t);
|
|
488
|
+
return F(Xt, r);
|
|
489
|
+
}), nn = "button";
|
|
490
|
+
function rn(n, t) {
|
|
492
491
|
return {
|
|
493
492
|
ArrowDown: t === "bottom" || t === "top" ? "first" : !1,
|
|
494
493
|
ArrowUp: t === "bottom" || t === "top" ? "last" : !1,
|
|
@@ -499,7 +498,7 @@ function un(n, t) {
|
|
|
499
498
|
function he(n, t) {
|
|
500
499
|
return !!(n != null && n.some((r) => !r.element || r.element === t ? !1 : r.element.getAttribute("aria-expanded") === "true"));
|
|
501
500
|
}
|
|
502
|
-
var
|
|
501
|
+
var on = D(
|
|
503
502
|
function(t) {
|
|
504
503
|
var r = t, {
|
|
505
504
|
store: e,
|
|
@@ -517,46 +516,46 @@ var an = D(
|
|
|
517
516
|
e,
|
|
518
517
|
process.env.NODE_ENV !== "production" && "MenuButton must receive a `store` prop or be wrapped in a MenuProvider component."
|
|
519
518
|
);
|
|
520
|
-
const c = le(null), i = e.parent, w = e.menubar, m = !!i, d = !!w && !m,
|
|
519
|
+
const c = le(null), i = e.parent, w = e.menubar, m = !!i, d = !!w && !m, x = ct(o), p = () => {
|
|
521
520
|
const h = c.current;
|
|
522
521
|
h && (e == null || e.setDisclosureElement(h), e == null || e.setAnchorElement(h), e == null || e.show());
|
|
523
522
|
}, f = o.onFocus, M = V((h) => {
|
|
524
|
-
if (f == null || f(h),
|
|
525
|
-
const { items:
|
|
526
|
-
he(
|
|
523
|
+
if (f == null || f(h), x || h.defaultPrevented || (e == null || e.setAutoFocusOnShow(!1), e == null || e.setActiveId(null), !w) || !d) return;
|
|
524
|
+
const { items: T } = w.getState();
|
|
525
|
+
he(T, h.currentTarget) && p();
|
|
527
526
|
}), b = R(
|
|
528
527
|
e,
|
|
529
528
|
(h) => h.placement.split("-")[0]
|
|
530
529
|
), A = o.onKeyDown, P = V((h) => {
|
|
531
|
-
if (A == null || A(h),
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
}), S = o.onClick,
|
|
530
|
+
if (A == null || A(h), x || h.defaultPrevented) return;
|
|
531
|
+
const T = rn(h, b);
|
|
532
|
+
T && (h.preventDefault(), p(), e == null || e.setAutoFocusOnShow(!0), e == null || e.setInitialFocus(T));
|
|
533
|
+
}), S = o.onClick, _ = V((h) => {
|
|
535
534
|
if (S == null || S(h), h.defaultPrevented || !e) return;
|
|
536
|
-
const
|
|
537
|
-
(!j ||
|
|
535
|
+
const T = !h.detail, { open: j } = e.getState();
|
|
536
|
+
(!j || T) && ((!m || T) && e.setAutoFocusOnShow(!0), e.setInitialFocus(T ? "first" : "container")), m && p();
|
|
538
537
|
});
|
|
539
|
-
o =
|
|
538
|
+
o = Ae(
|
|
540
539
|
o,
|
|
541
|
-
(h) => /* @__PURE__ */ se.jsx(
|
|
540
|
+
(h) => /* @__PURE__ */ se.jsx(zt, { value: e, children: h }),
|
|
542
541
|
[e]
|
|
543
542
|
), m && (o = y(v({}, o), {
|
|
544
|
-
render: /* @__PURE__ */ se.jsx(
|
|
543
|
+
render: /* @__PURE__ */ se.jsx(At.div, { render: o.render })
|
|
545
544
|
}));
|
|
546
|
-
const g =
|
|
545
|
+
const g = Oe(o.id), z = R(
|
|
547
546
|
(i == null ? void 0 : i.combobox) || i,
|
|
548
547
|
"contentElement"
|
|
549
|
-
),
|
|
548
|
+
), I = m || d ? Ie(z, "menuitem") : void 0, L = e.useState("contentElement");
|
|
550
549
|
return o = y(v({
|
|
551
550
|
id: g,
|
|
552
|
-
role:
|
|
553
|
-
"aria-haspopup":
|
|
551
|
+
role: I,
|
|
552
|
+
"aria-haspopup": dt(L, "menu")
|
|
554
553
|
}, o), {
|
|
555
554
|
ref: re(c, o.ref),
|
|
556
555
|
onFocus: M,
|
|
557
556
|
onKeyDown: P,
|
|
558
|
-
onClick:
|
|
559
|
-
}), o =
|
|
557
|
+
onClick: _
|
|
558
|
+
}), o = Ye(y(v({
|
|
560
559
|
store: e,
|
|
561
560
|
focusable: u,
|
|
562
561
|
accessibleWhenDisabled: s
|
|
@@ -573,7 +572,7 @@ var an = D(
|
|
|
573
572
|
const B = d ? w : i;
|
|
574
573
|
return B && B.setActiveId(h.currentTarget.id), !0;
|
|
575
574
|
}
|
|
576
|
-
})), o =
|
|
575
|
+
})), o = bt(v({
|
|
577
576
|
store: e,
|
|
578
577
|
toggleOnClick: !m,
|
|
579
578
|
focusable: u,
|
|
@@ -583,11 +582,11 @@ var an = D(
|
|
|
583
582
|
typeahead: d
|
|
584
583
|
}, o)), o;
|
|
585
584
|
}
|
|
586
|
-
),
|
|
587
|
-
const r =
|
|
588
|
-
return F(
|
|
589
|
-
}),
|
|
590
|
-
function
|
|
585
|
+
), un = k(function(t) {
|
|
586
|
+
const r = on(t);
|
|
587
|
+
return F(nn, r);
|
|
588
|
+
}), an = "div";
|
|
589
|
+
function sn(n, t, r) {
|
|
591
590
|
var e;
|
|
592
591
|
if (!n) return !1;
|
|
593
592
|
if (Z(n)) return !0;
|
|
@@ -596,10 +595,10 @@ function cn(n, t, r) {
|
|
|
596
595
|
return l.element === r ? !1 : ((c = l.element) == null ? void 0 : c.getAttribute("aria-expanded")) === "true";
|
|
597
596
|
}), s = (e = u == null ? void 0 : u.element) == null ? void 0 : e.getAttribute("aria-controls");
|
|
598
597
|
if (!s) return !1;
|
|
599
|
-
const o =
|
|
598
|
+
const o = ye(n).getElementById(s);
|
|
600
599
|
return o ? Z(o) ? !0 : !!o.querySelector("[role=menuitem][aria-expanded=true]") : !1;
|
|
601
600
|
}
|
|
602
|
-
var
|
|
601
|
+
var ln = D(
|
|
603
602
|
function(t) {
|
|
604
603
|
var r = t, {
|
|
605
604
|
store: e,
|
|
@@ -614,13 +613,13 @@ var dn = D(
|
|
|
614
613
|
"focusOnHover",
|
|
615
614
|
"blurOnHoverEnd"
|
|
616
615
|
]);
|
|
617
|
-
const c =
|
|
616
|
+
const c = Kt(!0), i = Bt();
|
|
618
617
|
e = e || c || i, K(
|
|
619
618
|
e,
|
|
620
619
|
process.env.NODE_ENV !== "production" && "MenuItem must be wrapped in a MenuList, Menu or Menubar component"
|
|
621
620
|
);
|
|
622
|
-
const w = l.onClick, m = ae(u), d = "hideAll" in e ? e.hideAll : void 0,
|
|
623
|
-
w == null || w(b), !(b.defaultPrevented ||
|
|
621
|
+
const w = l.onClick, m = ae(u), d = "hideAll" in e ? e.hideAll : void 0, x = !!d, p = V((b) => {
|
|
622
|
+
w == null || w(b), !(b.defaultPrevented || ft(b) || pt(b) || !d || b.currentTarget.getAttribute("aria-haspopup") === "menu") && m(b) && d();
|
|
624
623
|
}), f = R(
|
|
625
624
|
e,
|
|
626
625
|
(b) => "contentElement" in b ? b.contentElement : null
|
|
@@ -629,39 +628,39 @@ var dn = D(
|
|
|
629
628
|
role: M
|
|
630
629
|
}, l), {
|
|
631
630
|
onClick: p
|
|
632
|
-
}), l =
|
|
631
|
+
}), l = je(v({
|
|
633
632
|
store: e,
|
|
634
633
|
preventScrollOnKeyDown: s
|
|
635
|
-
}, l)), l =
|
|
634
|
+
}, l)), l = _e(y(v({
|
|
636
635
|
store: e
|
|
637
636
|
}, l), {
|
|
638
637
|
focusOnHover(b) {
|
|
639
638
|
const A = () => typeof a == "function" ? a(b) : a ?? !0;
|
|
640
639
|
if (!e || !A()) return !1;
|
|
641
640
|
const { baseElement: P, items: S } = e.getState();
|
|
642
|
-
return
|
|
641
|
+
return x ? (b.currentTarget.hasAttribute("aria-expanded") && b.currentTarget.focus(), !0) : sn(P, S, b.currentTarget) ? (b.currentTarget.focus(), !0) : !1;
|
|
643
642
|
},
|
|
644
643
|
blurOnHoverEnd(b) {
|
|
645
|
-
return typeof o == "function" ? o(b) : o ??
|
|
644
|
+
return typeof o == "function" ? o(b) : o ?? x;
|
|
646
645
|
}
|
|
647
646
|
})), l;
|
|
648
647
|
}
|
|
649
|
-
),
|
|
648
|
+
), cn = Ce(
|
|
650
649
|
k(function(t) {
|
|
651
|
-
const r =
|
|
652
|
-
return F(
|
|
650
|
+
const r = ln(t);
|
|
651
|
+
return F(an, r);
|
|
653
652
|
})
|
|
654
|
-
),
|
|
653
|
+
), dn = "hr", fn = D(
|
|
655
654
|
function(t) {
|
|
656
655
|
var r = t, { store: e } = r, u = O(r, ["store"]);
|
|
657
656
|
const s = fe();
|
|
658
|
-
return e = e || s, u =
|
|
657
|
+
return e = e || s, u = De(v({ store: e }, u)), u;
|
|
659
658
|
}
|
|
660
|
-
),
|
|
661
|
-
const r =
|
|
662
|
-
return F(
|
|
659
|
+
), pn = k(function(t) {
|
|
660
|
+
const r = fn(t);
|
|
661
|
+
return F(dn, r);
|
|
663
662
|
});
|
|
664
|
-
const
|
|
663
|
+
const mn = Y.divBox`
|
|
665
664
|
display: flex;
|
|
666
665
|
z-index: 2;
|
|
667
666
|
color: ${U("defaultCards.backgroundColor")};
|
|
@@ -670,21 +669,21 @@ const vn = Y.divBox`
|
|
|
670
669
|
#stroke {
|
|
671
670
|
color: ${U("defaultCards.borderColor")};
|
|
672
671
|
}
|
|
673
|
-
`,
|
|
674
|
-
({ $transform: n }) =>
|
|
672
|
+
`, bn = Y.svgBox(
|
|
673
|
+
({ $transform: n }) => Be`
|
|
675
674
|
transform: ${n};
|
|
676
675
|
`
|
|
677
|
-
),
|
|
676
|
+
), vn = {
|
|
678
677
|
top: "rotateZ(180deg)",
|
|
679
678
|
right: "rotateZ(-90deg)",
|
|
680
679
|
bottom: "rotateZ(360deg)",
|
|
681
680
|
left: "rotateZ(90deg)"
|
|
682
|
-
},
|
|
681
|
+
}, Ne = J(({ store: n }, t) => {
|
|
683
682
|
const r = n == null ? void 0 : n.useState("currentPlacement"), [e] = r.split("-");
|
|
684
|
-
return /* @__PURE__ */ C.createElement(
|
|
685
|
-
|
|
683
|
+
return /* @__PURE__ */ C.createElement(tn, { ref: t, render: /* @__PURE__ */ C.createElement(mn, null) }, /* @__PURE__ */ C.createElement(
|
|
684
|
+
bn,
|
|
686
685
|
{
|
|
687
|
-
$transform:
|
|
686
|
+
$transform: vn[e],
|
|
688
687
|
h: 30,
|
|
689
688
|
viewBox: "0 0 30 30",
|
|
690
689
|
w: 30,
|
|
@@ -694,8 +693,8 @@ const vn = Y.divBox`
|
|
|
694
693
|
/* @__PURE__ */ C.createElement("path", { d: "M8 30L15 23L22 30H8Z", fill: "currentColor", fillRule: "nonzero" })
|
|
695
694
|
));
|
|
696
695
|
});
|
|
697
|
-
|
|
698
|
-
const
|
|
696
|
+
Ne.displayName = "Arrow";
|
|
697
|
+
const hn = Y.buttonBox`
|
|
699
698
|
${U("dropdownMenu.item")};
|
|
700
699
|
display: flex;
|
|
701
700
|
align-items: center;
|
|
@@ -710,38 +709,35 @@ const wn = Y.button`
|
|
|
710
709
|
&:focus {
|
|
711
710
|
outline: none !important; /* important for firefox */
|
|
712
711
|
}
|
|
713
|
-
|
|
714
|
-
${Se};
|
|
715
|
-
`, Le = J(({ as: n, ...t }, r) => /* @__PURE__ */ C.createElement(fn, { ref: r, type: "button", ...t, render: /* @__PURE__ */ C.createElement(wn, { as: n }) }));
|
|
712
|
+
`, Le = J(({ as: n, ...t }, r) => /* @__PURE__ */ C.createElement(cn, { ref: r, type: "button", ...t, render: /* @__PURE__ */ C.createElement(hn, { as: n }) }));
|
|
716
713
|
Le.displayName = "Item";
|
|
717
|
-
const
|
|
714
|
+
const gn = Y.hr`
|
|
718
715
|
${U("dropdownMenu.separator")};
|
|
719
716
|
border: 0;
|
|
720
717
|
height: 1px;
|
|
721
718
|
margin: 0;
|
|
722
|
-
`,
|
|
719
|
+
`, wn = J((n, t) => /* @__PURE__ */ C.createElement(pn, { ref: t, render: /* @__PURE__ */ C.createElement(gn, null), ...n })), Mn = Y.divBox`
|
|
723
720
|
${U("cards.default")};
|
|
724
721
|
${U("dropdownMenu.inner")};
|
|
725
722
|
z-index: 1;
|
|
726
723
|
opacity: 0;
|
|
727
724
|
transition: opacity 150ms ease-in-out;
|
|
728
|
-
${Se};
|
|
729
725
|
|
|
730
726
|
&[data-enter] {
|
|
731
727
|
opacity: 1;
|
|
732
728
|
}
|
|
733
|
-
`,
|
|
729
|
+
`, Sn = J(
|
|
734
730
|
({ children: n, dataTestId: t, gutter: r = "xs", innerProps: e = {}, store: u, ...s }, a) => {
|
|
735
|
-
const o =
|
|
731
|
+
const o = Ke(), l = u.useState("arrowElement");
|
|
736
732
|
let c = r;
|
|
737
733
|
return typeof c == "string" && (c = parseInt(o.toPx(parseFloat(o.space[r])), 10) || 0), l && (c = 0), /* @__PURE__ */ C.createElement(
|
|
738
|
-
|
|
734
|
+
Qt,
|
|
739
735
|
{
|
|
740
736
|
"aria-label": "dropdown-menu",
|
|
741
737
|
"data-testid": t,
|
|
742
738
|
gutter: c,
|
|
743
739
|
ref: a,
|
|
744
|
-
render: /* @__PURE__ */ C.createElement(
|
|
740
|
+
render: /* @__PURE__ */ C.createElement(Mn, { ...e }),
|
|
745
741
|
store: u,
|
|
746
742
|
tabIndex: 0,
|
|
747
743
|
...s
|
|
@@ -750,27 +746,27 @@ const Mn = Y.hr`
|
|
|
750
746
|
);
|
|
751
747
|
}
|
|
752
748
|
);
|
|
753
|
-
function
|
|
754
|
-
return
|
|
749
|
+
function Fn(n = {}) {
|
|
750
|
+
return Ut({
|
|
755
751
|
animated: !0,
|
|
756
752
|
...n
|
|
757
753
|
});
|
|
758
754
|
}
|
|
759
|
-
const
|
|
760
|
-
|
|
755
|
+
const xn = J(({ as: n, store: t, ...r }, e) => /* @__PURE__ */ C.createElement(
|
|
756
|
+
un,
|
|
761
757
|
{
|
|
762
758
|
ref: e,
|
|
763
759
|
render: n ? (u) => /* @__PURE__ */ C.createElement(n, { ...u }) : void 0,
|
|
764
760
|
store: t,
|
|
765
761
|
...r
|
|
766
762
|
}
|
|
767
|
-
)),
|
|
768
|
-
Trigger:
|
|
763
|
+
)), Nn = Object.assign(Sn, {
|
|
764
|
+
Trigger: xn,
|
|
769
765
|
Item: Le,
|
|
770
|
-
Separator:
|
|
771
|
-
Arrow:
|
|
766
|
+
Separator: wn,
|
|
767
|
+
Arrow: Ne
|
|
772
768
|
});
|
|
773
769
|
export {
|
|
774
|
-
|
|
775
|
-
|
|
770
|
+
Nn as DropdownMenu,
|
|
771
|
+
Fn as useDropdownMenu
|
|
776
772
|
};
|