@bysages/svelte 0.3.0 → 0.4.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-ChCzhYPl.mjs +147 -0
- package/dist/{AiLoader-0jlig3fe.mjs → AiLoader-BEiPYOfW.mjs} +11 -6
- package/dist/AngleSlider-_DsaxreA.mjs +167 -0
- package/dist/{avatar-LR0CZ1Iz.mjs → Avatar-RTIHq1px.mjs} +7 -9
- package/dist/Carousel-BbMJNLY3.mjs +171 -0
- package/dist/Checkbox-BlbCL1T1.mjs +126 -0
- package/dist/ChevronIcon-BrLZJ0NH.mjs +10 -0
- package/dist/Clipboard-BUeJPGSX.mjs +116 -0
- package/dist/Collapsible-DJ8B-4w0.mjs +121 -0
- package/dist/ColorPicker-BHj_4m8H.mjs +248 -0
- package/dist/Combobox-CI0zJOm_.mjs +259 -0
- package/dist/DateInput-CYNt1ltj.mjs +154 -0
- package/dist/DatePicker-B8AQBgUp.mjs +346 -0
- package/dist/Dialog-DOxZ3eye.mjs +178 -0
- package/dist/Drawer-qpsQNpLj.mjs +178 -0
- package/dist/Editable-Die4QZWo.mjs +176 -0
- package/dist/Field-CO2VK0f_.mjs +143 -0
- package/dist/Fieldset-DMp5m8vW.mjs +118 -0
- package/dist/FileUpload-DZE4CRxe.mjs +232 -0
- package/dist/FloatingPanel-B5-5flGu.mjs +253 -0
- package/dist/HoverCard-CzkvDJbI.mjs +154 -0
- package/dist/ImageCropper-CC9AyFBi.mjs +155 -0
- package/dist/ImageViewer-DEMg26LY.mjs +294 -0
- package/dist/InternalIcon-Clwbj4MY.mjs +19 -0
- package/dist/JsonTreeViewTree-DPRObG7r.mjs +160 -0
- package/dist/Listbox-BcF6Uk8j.mjs +189 -0
- package/dist/Marquee-DWGGrLlz.mjs +123 -0
- package/dist/Menu-bJv3fB0Z.mjs +200 -0
- package/dist/{menubar-Crrkg2tZ.mjs → Menubar-D-UDLqtm.mjs} +3 -12
- package/dist/NavigationMenu-CgC0GMdq.mjs +158 -0
- package/dist/NumberInput-OX9IP5KS.mjs +174 -0
- package/dist/Pagination-D6vDzhVj.mjs +180 -0
- package/dist/PasswordInput-CKUqwouu.mjs +167 -0
- package/dist/PinInput-Ey0sJSwB.mjs +142 -0
- package/dist/Popover-Ct9y-0D-.mjs +231 -0
- package/dist/Progress-nBx2pMFh.mjs +115 -0
- package/dist/QrCode-C3gAYPIv.mjs +100 -0
- package/dist/RadioGroup-Czoicfnb.mjs +161 -0
- package/dist/RatingGroup-Bkliw7CU.mjs +157 -0
- package/dist/ScrollArea-BtAH_cdM.mjs +115 -0
- package/dist/SegmentGroup-BnHGitgF.mjs +158 -0
- package/dist/Select-CnNtViJ4.mjs +263 -0
- package/dist/SignaturePad-DBM5JNGh.mjs +170 -0
- package/dist/Slider-B-_5UxAX.mjs +166 -0
- package/dist/{Spinner-sd__23WT.mjs → Spinner-DGAzGJ_8.mjs} +6 -3
- package/dist/Splitter-lP3ibWns.mjs +146 -0
- package/dist/StepsItem-DT1XQX0x.mjs +174 -0
- package/dist/Swap-De-Zlnr6.mjs +130 -0
- package/dist/Switch-CJ-yBZVQ.mjs +133 -0
- package/dist/Tabs-V6R7R-F8.mjs +146 -0
- package/dist/TagsInput-CPbGeQZd.mjs +231 -0
- package/dist/Timer-CQJIx4Y0.mjs +141 -0
- package/dist/Toast-UTFPPLb1.mjs +129 -0
- package/dist/TocContent-DYks7TeI.mjs +207 -0
- package/dist/Toggle-fuL8Qi6H.mjs +101 -0
- package/dist/ToggleGroup-BB8BqcLo.mjs +142 -0
- package/dist/Tooltip-D-uRFl6m.mjs +194 -0
- package/dist/TreeViewNodeCheckbox-DbJ2jfGV.mjs +292 -0
- package/dist/{affix-BtL4lBPi.mjs → affix-Cog56FQH.mjs} +4 -3
- package/dist/{ai-action-DKsvxilp.mjs → ai-action-DziA_BN_.mjs} +3 -2
- package/dist/{ai-attachments-Y0Tf6UFL.mjs → ai-attachments-BalNjKhf.mjs} +28 -25
- package/dist/{ai-message-DBs1fdFm.mjs → ai-message-aIyT-RXH.mjs} +2 -1
- package/dist/{ai-prompt-input-BmyKyadu.mjs → ai-prompt-input-jB3RQ9Q8.mjs} +95 -75
- package/dist/{ai-reasoning-C4YsB2hQ.mjs → ai-reasoning-CQx7rye9.mjs} +3 -2
- package/dist/{ai-response-D5IkRFMN.mjs → ai-response-D_eFsV6G.mjs} +21 -9
- package/dist/{ai-source-CvglcFw1.mjs → ai-source-B9ZfhWOl.mjs} +3 -2
- package/dist/{ai-suggestion-zGAQ1kkf.mjs → ai-suggestion-CrZ5Ol4-.mjs} +3 -2
- package/dist/{ai-tool-DY_iNbMk.mjs → ai-tool-0vdpM2Aq.mjs} +3 -2
- package/dist/{alert-Xp8I8IY9.mjs → alert-D9oBDEBE.mjs} +15 -12
- package/dist/{aspect-ratio-COOgu44A.mjs → aspect-ratio-Ca2csfG1.mjs} +2 -1
- package/dist/{autocomplete-D7ZZ7Xpb.mjs → autocomplete-CS7ZVq_o.mjs} +18 -10
- package/dist/{avatar-group-BgIxNuVj.mjs → avatar-group-BnyaymLu.mjs} +2 -1
- package/dist/{back-top-rbP0aP47.mjs → back-top-DNwTF40O.mjs} +7 -7
- package/dist/{badge-DKa-8Pv0.mjs → badge-BFZgNgbw.mjs} +2 -1
- package/dist/{banner-LEPWtGlY.mjs → banner-Ko97JhS3.mjs} +12 -5
- package/dist/{block-ui-CpiV9qza.mjs → block-ui-DTG19xuY.mjs} +3 -2
- package/dist/{breadcrumb-C01pAq93.mjs → breadcrumb-CtBjVdxv.mjs} +6 -3
- package/dist/{browser-gmPTH6mJ.mjs → browser-Dlqvffp6.mjs} +1 -0
- package/dist/{button-BCcX7lHq.mjs → button-CghWQD3J.mjs} +2 -1
- package/dist/{button-group-CVLqPMlR.mjs → button-group-BV7Ces1o.mjs} +2 -1
- package/dist/{calendar-0tSnHuLj.mjs → calendar-BXWvgkjq.mjs} +99 -101
- package/dist/{cascade-select-B-4Z6oWe.mjs → cascade-select-CKStvgjR.mjs} +55 -30
- package/dist/checkbox-group-Bu27PIve.mjs +143 -0
- package/dist/{chip-mjLlbQ2t.mjs → chip-CZAgD6LS.mjs} +2 -1
- package/dist/{command-fZuTfbz4.mjs → command-CJ6jk-9b.mjs} +17 -10
- package/dist/{comment-C91xgrtK.mjs → comment-DM1fOXro.mjs} +2 -1
- package/dist/components/accordion/index.d.mts +4 -1
- package/dist/components/accordion/index.mjs +6 -3
- package/dist/components/affix/index.d.mts +1 -1
- package/dist/components/affix/index.mjs +1 -1
- package/dist/components/ai/index.d.mts +3 -3
- package/dist/components/ai/index.mjs +10 -9
- package/dist/components/ai-action/index.d.mts +3 -1
- package/dist/components/ai-action/index.mjs +1 -1
- package/dist/components/ai-attachments/index.d.mts +1 -1
- package/dist/components/ai-attachments/index.mjs +1 -1
- package/dist/components/ai-message/index.d.mts +3 -1
- package/dist/components/ai-message/index.mjs +1 -1
- package/dist/components/ai-prompt-input/index.d.mts +4 -2
- package/dist/components/ai-prompt-input/index.mjs +1 -1
- package/dist/components/ai-reasoning/index.d.mts +3 -1
- package/dist/components/ai-reasoning/index.mjs +1 -1
- package/dist/components/ai-response/index.d.mts +3 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-source/index.d.mts +6 -2
- package/dist/components/ai-source/index.mjs +1 -1
- package/dist/components/ai-suggestion/index.d.mts +3 -1
- package/dist/components/ai-suggestion/index.mjs +1 -1
- package/dist/components/ai-tool/index.d.mts +3 -1
- package/dist/components/ai-tool/index.mjs +1 -1
- package/dist/components/alert/index.mjs +1 -1
- package/dist/components/angle-slider/index.d.mts +2 -2
- package/dist/components/angle-slider/index.mjs +4 -3
- package/dist/components/aspect-ratio/index.d.mts +1 -1
- package/dist/components/aspect-ratio/index.mjs +1 -1
- package/dist/components/autocomplete/index.d.mts +1 -1
- package/dist/components/autocomplete/index.mjs +1 -1
- package/dist/components/avatar/index.d.mts +12 -2
- package/dist/components/avatar/index.mjs +14 -1
- package/dist/components/avatar-group/index.d.mts +1 -1
- package/dist/components/avatar-group/index.mjs +1 -1
- package/dist/components/back-top/index.d.mts +1 -1
- package/dist/components/back-top/index.mjs +1 -1
- package/dist/components/badge/index.d.mts +1 -1
- package/dist/components/badge/index.mjs +1 -1
- package/dist/components/banner/index.mjs +1 -1
- package/dist/components/block-ui/index.d.mts +1 -1
- package/dist/components/block-ui/index.mjs +1 -1
- package/dist/components/breadcrumb/index.mjs +1 -1
- package/dist/components/browser/index.d.mts +1 -0
- package/dist/components/browser/index.mjs +1 -1
- package/dist/components/button/index.d.mts +1 -1
- package/dist/components/button/index.mjs +1 -1
- package/dist/components/button-group/index.d.mts +1 -1
- package/dist/components/button-group/index.mjs +1 -1
- package/dist/components/calendar/index.d.mts +1 -1
- package/dist/components/calendar/index.mjs +1 -1
- package/dist/components/carousel/index.d.mts +4 -1
- package/dist/components/carousel/index.mjs +6 -3
- package/dist/components/cascade-select/index.d.mts +1 -1
- package/dist/components/cascade-select/index.mjs +1 -1
- package/dist/components/checkbox/index.d.mts +2 -2
- package/dist/components/checkbox/index.mjs +4 -3
- package/dist/components/checkbox-group/index.d.mts +1 -1
- package/dist/components/checkbox-group/index.mjs +1 -1
- package/dist/components/chip/index.d.mts +1 -1
- package/dist/components/chip/index.mjs +1 -1
- package/dist/components/client-only/index.d.mts +7 -2
- package/dist/components/client-only/index.mjs +8 -1
- package/dist/components/clipboard/index.d.mts +1 -1
- package/dist/components/clipboard/index.mjs +4 -3
- package/dist/components/collapsible/index.d.mts +4 -1
- package/dist/components/collapsible/index.mjs +6 -3
- package/dist/components/color-picker/index.d.mts +2 -2
- package/dist/components/color-picker/index.mjs +4 -3
- package/dist/components/combobox/index.d.mts +2 -2
- package/dist/components/combobox/index.mjs +4 -3
- package/dist/components/command/index.d.mts +1 -1
- package/dist/components/command/index.mjs +1 -1
- package/dist/components/comment/index.d.mts +1 -1
- package/dist/components/comment/index.mjs +1 -1
- package/dist/components/config-provider/index.d.mts +1 -1
- package/dist/components/config-provider/index.mjs +2 -1
- package/dist/components/container/index.d.mts +1 -1
- package/dist/components/container/index.mjs +1 -1
- package/dist/components/data-view/index.d.mts +1 -1
- package/dist/components/data-view/index.mjs +1 -1
- package/dist/components/date-input/index.d.mts +2 -2
- package/dist/components/date-input/index.mjs +4 -3
- package/dist/components/date-picker/index.d.mts +2 -2
- package/dist/components/date-picker/index.mjs +4 -3
- package/dist/components/deferred-content/index.d.mts +1 -1
- package/dist/components/deferred-content/index.mjs +1 -1
- package/dist/components/descriptions/index.d.mts +1 -1
- package/dist/components/descriptions/index.mjs +1 -1
- package/dist/components/dialog/index.d.mts +4 -1
- package/dist/components/dialog/index.mjs +6 -3
- package/dist/components/download-trigger/index.d.mts +13 -2
- package/dist/components/download-trigger/index.mjs +8 -1
- package/dist/components/drawer/index.d.mts +4 -1
- package/dist/components/drawer/index.mjs +6 -3
- package/dist/components/dynamic-input/index.d.mts +1 -1
- package/dist/components/dynamic-input/index.mjs +1 -1
- package/dist/components/editable/index.d.mts +2 -2
- package/dist/components/editable/index.mjs +4 -3
- package/dist/components/ellipsis/index.d.mts +1 -1
- package/dist/components/ellipsis/index.mjs +1 -1
- package/dist/components/field/index.d.mts +4 -1
- package/dist/components/field/index.mjs +6 -3
- package/dist/components/fieldset/index.d.mts +4 -1
- package/dist/components/fieldset/index.mjs +6 -3
- package/dist/components/file-upload/index.d.mts +3 -2
- package/dist/components/file-upload/index.mjs +6 -4
- package/dist/components/float-button/index.mjs +1 -1
- package/dist/components/floating-panel/index.d.mts +4 -1
- package/dist/components/floating-panel/index.mjs +6 -3
- package/dist/components/focus-trap/index.d.mts +7 -2
- package/dist/components/focus-trap/index.mjs +8 -1
- package/dist/components/form/index.d.mts +1 -1
- package/dist/components/form/index.mjs +1 -1
- package/dist/components/frame/index.d.mts +3 -1
- package/dist/components/frame/index.mjs +2 -1
- package/dist/components/grid/index.d.mts +1 -1
- package/dist/components/grid/index.mjs +1 -1
- package/dist/components/highlight/index.d.mts +3 -1
- package/dist/components/highlight/index.mjs +2 -1
- package/dist/components/hover-card/index.d.mts +4 -1
- package/dist/components/hover-card/index.mjs +6 -3
- package/dist/components/icon/index.d.mts +1 -1
- package/dist/components/icon/index.mjs +1 -1
- package/dist/components/image/index.d.mts +1 -1
- package/dist/components/image/index.mjs +1 -1
- package/dist/components/image-cropper/index.d.mts +4 -1
- package/dist/components/image-cropper/index.mjs +6 -3
- package/dist/components/image-viewer/index.d.mts +2 -2
- package/dist/components/image-viewer/index.mjs +12 -1
- package/dist/components/input/index.d.mts +1 -1
- package/dist/components/input/index.mjs +2 -1
- package/dist/components/json-tree-view/index.d.mts +6 -2
- package/dist/components/json-tree-view/index.mjs +8 -4
- package/dist/components/kbd/index.d.mts +1 -1
- package/dist/components/kbd/index.mjs +1 -1
- package/dist/components/layout/index.mjs +1 -1
- package/dist/components/link/index.d.mts +1 -1
- package/dist/components/link/index.mjs +1 -1
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/listbox/index.d.mts +1 -1
- package/dist/components/listbox/index.mjs +4 -3
- package/dist/components/marquee/index.d.mts +4 -1
- package/dist/components/marquee/index.mjs +6 -3
- package/dist/components/masonry/index.d.mts +1 -1
- package/dist/components/masonry/index.mjs +1 -1
- package/dist/components/media-player/index.d.mts +3 -0
- package/dist/components/media-player/index.mjs +3 -0
- package/dist/components/mentions/index.d.mts +1 -1
- package/dist/components/mentions/index.mjs +1 -1
- package/dist/components/menu/index.d.mts +2 -2
- package/dist/components/menu/index.mjs +4 -3
- package/dist/components/menubar/index.d.mts +1 -1
- package/dist/components/menubar/index.mjs +13 -1
- package/dist/components/navigation-menu/index.d.mts +6 -2
- package/dist/components/navigation-menu/index.mjs +8 -4
- package/dist/components/number-input/index.d.mts +2 -2
- package/dist/components/number-input/index.mjs +4 -3
- package/dist/components/order-list/index.d.mts +1 -1
- package/dist/components/order-list/index.mjs +1 -1
- package/dist/components/pagination/index.d.mts +2 -2
- package/dist/components/pagination/index.mjs +4 -3
- package/dist/components/password-input/index.d.mts +2 -2
- package/dist/components/password-input/index.mjs +4 -3
- package/dist/components/pin-input/index.d.mts +2 -2
- package/dist/components/pin-input/index.mjs +4 -3
- package/dist/components/popconfirm/index.d.mts +1 -1
- package/dist/components/popconfirm/index.mjs +1 -1
- package/dist/components/popover/index.d.mts +4 -1
- package/dist/components/popover/index.mjs +6 -3
- package/dist/components/presence/index.d.mts +8 -2
- package/dist/components/presence/index.mjs +9 -1
- package/dist/components/progress/index.d.mts +2 -2
- package/dist/components/progress/index.mjs +4 -3
- package/dist/components/progress-group/index.d.mts +1 -1
- package/dist/components/progress-group/index.mjs +1 -1
- package/dist/components/qr-code/index.d.mts +4 -1
- package/dist/components/qr-code/index.mjs +6 -3
- package/dist/components/radio-group/index.d.mts +2 -2
- package/dist/components/radio-group/index.mjs +4 -3
- package/dist/components/rating-group/index.d.mts +2 -2
- package/dist/components/rating-group/index.mjs +5 -4
- package/dist/components/result/index.d.mts +3 -0
- package/dist/components/result/index.mjs +1 -1
- package/dist/components/scroll-area/index.d.mts +4 -1
- package/dist/components/scroll-area/index.mjs +6 -3
- package/dist/components/segment-group/index.d.mts +2 -2
- package/dist/components/segment-group/index.mjs +4 -3
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/separator/index.d.mts +1 -1
- package/dist/components/separator/index.mjs +1 -1
- package/dist/components/signature-pad/index.d.mts +4 -1
- package/dist/components/signature-pad/index.mjs +6 -3
- package/dist/components/skeleton/index.d.mts +1 -1
- package/dist/components/skeleton/index.mjs +1 -1
- package/dist/components/slider/index.d.mts +2 -2
- package/dist/components/slider/index.mjs +4 -3
- package/dist/components/spinner/index.d.mts +1 -1
- package/dist/components/spinner/index.mjs +3 -2
- package/dist/components/split-button/index.d.mts +1 -1
- package/dist/components/split-button/index.mjs +1 -1
- package/dist/components/splitter/index.d.mts +4 -1
- package/dist/components/splitter/index.mjs +6 -3
- package/dist/components/spotlight/index.d.mts +1 -1
- package/dist/components/spotlight/index.mjs +1 -1
- package/dist/components/stack/index.d.mts +1 -1
- package/dist/components/stack/index.mjs +1 -1
- package/dist/components/steps/index.d.mts +3 -2
- package/dist/components/steps/index.mjs +6 -4
- package/dist/components/swap/index.d.mts +8 -5
- package/dist/components/swap/index.mjs +10 -5
- package/dist/components/switch/index.d.mts +2 -2
- package/dist/components/switch/index.mjs +4 -3
- package/dist/components/table/index.d.mts +1 -1
- package/dist/components/table/index.mjs +1 -1
- package/dist/components/tabs/index.d.mts +2 -2
- package/dist/components/tabs/index.mjs +4 -3
- package/dist/components/tags-input/index.d.mts +2 -2
- package/dist/components/tags-input/index.mjs +4 -3
- package/dist/components/terminal/index.d.mts +1 -1
- package/dist/components/terminal/index.mjs +1 -1
- package/dist/components/textarea/index.d.mts +1 -1
- package/dist/components/textarea/index.mjs +1 -1
- package/dist/components/timer/index.d.mts +4 -1
- package/dist/components/timer/index.mjs +6 -3
- package/dist/components/toast/index.d.mts +7 -2
- package/dist/components/toast/index.mjs +7 -4
- package/dist/components/toc/index.d.mts +7 -2
- package/dist/components/toc/index.mjs +9 -4
- package/dist/components/toggle/index.d.mts +4 -1
- package/dist/components/toggle/index.mjs +6 -3
- package/dist/components/toggle-group/index.d.mts +2 -2
- package/dist/components/toggle-group/index.mjs +4 -3
- package/dist/components/toolbar/index.d.mts +1 -1
- package/dist/components/toolbar/index.mjs +1 -1
- package/dist/components/tooltip/index.d.mts +4 -1
- package/dist/components/tooltip/index.mjs +6 -3
- package/dist/components/tour/index.d.mts +10 -8
- package/dist/components/tour/index.mjs +12 -8
- package/dist/components/transfer/index.d.mts +1 -1
- package/dist/components/transfer/index.mjs +1 -1
- package/dist/components/tree-select/index.d.mts +1 -1
- package/dist/components/tree-select/index.mjs +1 -1
- package/dist/components/tree-view/index.d.mts +1 -1
- package/dist/components/tree-view/index.mjs +7 -4
- package/dist/components/typography/index.d.mts +1 -1
- package/dist/components/typography/index.mjs +1 -1
- package/dist/components/user/index.d.mts +1 -1
- package/dist/components/user/index.mjs +1 -1
- package/dist/components/virtual-list/index.d.mts +1 -1
- package/dist/components/virtual-list/index.mjs +1 -1
- package/dist/components/watermark/index.d.mts +1 -1
- package/dist/components/watermark/index.mjs +1 -1
- package/dist/{config-provider-DW5wVzFr.mjs → config-provider-Ca8wCLcK.mjs} +8 -15
- package/dist/{container-Cmiu_3W5.mjs → container-ZF0UMlIJ.mjs} +2 -1
- package/dist/context-Da-QMQRq.mjs +14 -0
- package/dist/{data-view-B3TY3rYl.mjs → data-view-B3cJiuVC.mjs} +34 -21
- package/dist/{deferred-content-CO9YsKMQ.mjs → deferred-content-BYDuJ6NQ.mjs} +2 -1
- package/dist/{descriptions-DgkA_9B-.mjs → descriptions-BeZtDMzt.mjs} +90 -43
- package/dist/{dynamic-input-B3IBAoLs.mjs → dynamic-input-Bt1CeSq4.mjs} +15 -10
- package/dist/{ellipsis-CLaZ9Grh.mjs → ellipsis-CPs9IHbU.mjs} +2 -1
- package/dist/family-CzLaku1F.mjs +12 -0
- package/dist/{float-button-CZAda2SI.mjs → float-button-B6J8RQMu.mjs} +18 -8
- package/dist/{form-BTL9S1gn.mjs → form-CCjPDJmO.mjs} +77 -97
- package/dist/{grid-DNgTWYSL.mjs → grid-ClJBYO96.mjs} +2 -1
- package/dist/{icon-D7AeDq0M.mjs → icon-DmeRO0e6.mjs} +10 -7
- package/dist/icon-lWVQxDG6.mjs +18 -0
- package/dist/id-Alz497yI.mjs +7 -0
- package/dist/{image-1Lgj8xhS.mjs → image-BngY6J6J.mjs} +16 -9
- package/dist/{index-KxuOZGfm.d.mts → index-0aDSXVgl.d.mts} +2 -2
- package/dist/{index-KoqiUxmN.d.mts → index-3TmqYBnT.d.mts} +3 -1
- package/dist/index-9GiGGnGa.d.mts +136 -0
- package/dist/{index-ZUvVz2Fd.d.mts → index-BFKqgbq-.d.mts} +3 -1
- package/dist/index-BH-LkvzT.d.mts +35 -0
- package/dist/{index-CY4EuxyF.d.mts → index-BIHw8Gzt.d.mts} +3 -1
- package/dist/{index-DGOBhwXN.d.mts → index-BKZC0MtK.d.mts} +3 -1
- package/dist/{index-zZy5ZnA5.d.mts → index-BhTdJwBA.d.mts} +3 -1
- package/dist/{index-0k-VxNRm.d.mts → index-BhXsxcRN.d.mts} +5 -1
- package/dist/{index-BIIMyeLK.d.mts → index-BiwW7REL.d.mts} +3 -1
- package/dist/{index-k0ac5WNj.d.mts → index-ByxBpSC4.d.mts} +3 -1
- package/dist/{index-DAesWvpj.d.mts → index-C-sa4baY.d.mts} +9 -3
- package/dist/{index-D_cE3qK2.d.mts → index-C-wU4kAX.d.mts} +3 -1
- package/dist/{index-D88v0BF1.d.mts → index-C0b8N_Aa.d.mts} +3 -1
- package/dist/{index-D9UBDdoA.d.mts → index-C5hCBtt4.d.mts} +3 -1
- package/dist/{index-CaVBzPln.d.mts → index-C6UrUbj8.d.mts} +3 -1
- package/dist/{index-D6PrX-hf.d.mts → index-CBB8fpMT.d.mts} +4 -2
- package/dist/{index-C84DUNp9.d.mts → index-CC_yY588.d.mts} +3 -1
- package/dist/{index-Dy335EhR.d.mts → index-CI4acsws.d.mts} +2 -2
- package/dist/{index-DOcn6bMd.d.mts → index-CKaCfx0p.d.mts} +3 -1
- package/dist/{index-D1U7Svy2.d.mts → index-CMVb7mmq.d.mts} +6 -2
- package/dist/{index-BTndXl0q.d.mts → index-COWyuYkn.d.mts} +3 -1
- package/dist/{index-BFL_M4PT.d.mts → index-CV5LaGMy.d.mts} +3 -1
- package/dist/{index-BwFSueFx.d.mts → index-CWzdSZ-F.d.mts} +3 -1
- package/dist/{index-wDHiUpr6.d.mts → index-CXbdZAgD.d.mts} +7 -3
- package/dist/{index-DBbjFiDd.d.mts → index-CYtinraa.d.mts} +3 -1
- package/dist/{index-CeIQyZkc.d.mts → index-CZ0P3C6E.d.mts} +1 -0
- package/dist/{index-BEfqqxjl.d.mts → index-Cbc4doAM.d.mts} +7 -0
- package/dist/{index-BolxaoaW.d.mts → index-Cbd88ftD.d.mts} +3 -1
- package/dist/{index-BmFfkztS.d.mts → index-ChqP3kbL.d.mts} +3 -1
- package/dist/{index-CLoTtvcO.d.mts → index-CuonhYXR.d.mts} +3 -1
- package/dist/{index-CwM-SPPz.d.mts → index-CvDp7tiS.d.mts} +3 -1
- package/dist/{index-YCVah82j.d.mts → index-CyVykdGO.d.mts} +3 -1
- package/dist/{index-D0lEVqZc.d.mts → index-D2B6EH5P.d.mts} +3 -1
- package/dist/{index--K4P_QKU.d.mts → index-D61_Lx9o.d.mts} +3 -1
- package/dist/{index-Bj2IsU9D.d.mts → index-DAnDXxRZ.d.mts} +3 -1
- package/dist/{index-CKFfSEBR.d.mts → index-DC6AI8rV.d.mts} +3 -1
- package/dist/{index-OElK7gw7.d.mts → index-DCpx_Rui.d.mts} +3 -1
- package/dist/{index-_kQsvJKo.d.mts → index-DEWaAoNb.d.mts} +8 -7
- package/dist/{index-DfTAYXUT.d.mts → index-DGsu3J-2.d.mts} +3 -1
- package/dist/{index-oI4U-72X.d.mts → index-DQAelfXy.d.mts} +3 -1
- package/dist/{index-Cd4UxWsz.d.mts → index-DWlpILHb.d.mts} +3 -1
- package/dist/{index-Dr-T8jsb.d.mts → index-DXXhfdQC.d.mts} +3 -1
- package/dist/{index-DKDpZraB.d.mts → index-D_fO4kp1.d.mts} +11 -2
- package/dist/{index-CtbGSRNw.d.mts → index-DiTKkiJ-.d.mts} +29 -10
- package/dist/{index-C8WNp4wI.d.mts → index-DpxOnkTQ.d.mts} +3 -1
- package/dist/{index-B1iBag3L.d.mts → index-DpzuwMB7.d.mts} +3 -1
- package/dist/{index-DjaHpB21.d.mts → index-Dq4bm9bV.d.mts} +3 -1
- package/dist/{index-nfkt_cP_.d.mts → index-DwVr4QfC.d.mts} +3 -1
- package/dist/{index-CAb_-2Bn.d.mts → index-Dxktk3O7.d.mts} +3 -1
- package/dist/{index-8JoOZcM6.d.mts → index-DzohdB6p.d.mts} +3 -1
- package/dist/{index-CM6inLqu.d.mts → index-IR-e1YzH.d.mts} +4 -2
- package/dist/{index-CkFXH_oG.d.mts → index-LXovbafa.d.mts} +3 -1
- package/dist/{index-D6eYSdmD.d.mts → index-W2Op578F.d.mts} +5 -3
- package/dist/{index-mshFOd-j.d.mts → index-e1MA6eIk.d.mts} +3 -1
- package/dist/{index-DTAcdUAd.d.mts → index-eQIdP9QO.d.mts} +8 -2
- package/dist/{index-XHTt8I1B.d.mts → index-evrdvWRI.d.mts} +3 -1
- package/dist/{index-CjNUtqX_.d.mts → index-oF_zauHL.d.mts} +3 -1
- package/dist/{index-B2JKtCzc.d.mts → index-znAFQEmQ.d.mts} +9 -5
- package/dist/index.d.mts +66 -63
- package/dist/index.mjs +76 -72
- package/dist/{kbd-LXHpi4GM.mjs → kbd-C2kft-a5.mjs} +2 -1
- package/dist/{layout-WRo4P9-_.mjs → layout-CvseQjaj.mjs} +7 -4
- package/dist/{link-CuNiatc7.mjs → link-xMyEhImB.mjs} +2 -1
- package/dist/{list-B23lA_sc.mjs → list-BgEM9H3z.mjs} +2 -1
- package/dist/{masonry-B4-v4kJ0.mjs → masonry-lGCtykYE.mjs} +2 -1
- package/dist/media-player-D1cymqXf.mjs +808 -0
- package/dist/mentions-L0Z29LV8.mjs +256 -0
- package/dist/messages-DNzA55pH.mjs +17 -0
- package/dist/{order-list-q7VlsbmU.mjs → order-list-CoE45N5_.mjs} +17 -7
- package/dist/{popconfirm-NK5BPbrN.mjs → popconfirm-C6VCMgtZ.mjs} +52 -25
- package/dist/{progress-group-BQMAQWXh.mjs → progress-group-OR53RKfW.mjs} +3 -2
- package/dist/{props-U567RIQo.d.mts → props-DL-XfEtS.d.mts} +1 -1
- package/dist/{result-4Oee2ndu.mjs → result-1kEBWRai.mjs} +1 -0
- package/dist/{select-rkY0qJKI.mjs → select-DQQ0bSN9.mjs} +16 -7
- package/dist/{separator-4JWXConE.mjs → separator-doDccxti.mjs} +2 -1
- package/dist/{skeleton-DOfOrlmL.mjs → skeleton-CKLyMSAV.mjs} +2 -1
- package/dist/{split-button-CGjPB9DQ.mjs → split-button-D_OqAXW0.mjs} +25 -18
- package/dist/{spotlight-DMC5E1eS.mjs → spotlight-COA_C9G5.mjs} +2 -1
- package/dist/{stack-DCKrejZp.mjs → stack-qBPmVt5S.mjs} +5 -4
- package/dist/{table-BnNK4_su.mjs → table-geA12h-I.mjs} +266 -213
- package/dist/{terminal-B3b4KzoN.mjs → terminal-C0XnhwEh.mjs} +7 -4
- package/dist/{textarea-DzDc678j.mjs → textarea-BUzu42K0.mjs} +2 -1
- package/dist/{toolbar-SNwuRrJr.mjs → toolbar-CiXQAM_F.mjs} +2 -1
- package/dist/{transfer-0IAuhFCe.mjs → transfer-B0EAGhLK.mjs} +29 -22
- package/dist/{tree-select-BSf4a_En.mjs → tree-select-BEK7cdxE.mjs} +100 -96
- package/dist/{typography-Cygr9XaD.mjs → typography-Bl6MxaeI.mjs} +1 -0
- package/dist/use-media-controls-BYYG0DgO.mjs +149 -0
- package/dist/use-tour-BLNlDu27.mjs +180 -0
- package/dist/{user-BjJSjDYV.mjs → user-CAqrd4B7.mjs} +2 -1
- package/dist/{virtual-list-psKQ_NVr.mjs → virtual-list-BLb78vlm.mjs} +13 -6
- package/dist/{watermark-C2d3-EAM.mjs → watermark-Bv3kvHIB.mjs} +3 -2
- package/package.json +3 -3
- package/dist/AngleSliderRoot-CUe5sgWU.mjs +0 -37
- package/dist/CheckboxRoot-BP4ynFLq.mjs +0 -37
- package/dist/ChevronIcon-CVJJYda-.mjs +0 -11
- package/dist/ClipboardRoot-UmyQFn27.mjs +0 -37
- package/dist/ColorPickerRoot-DLgI9s3u.mjs +0 -37
- package/dist/ComboboxRoot-BsVcmUOj.mjs +0 -37
- package/dist/DateInputRoot-nROaFmB7.mjs +0 -37
- package/dist/DatePickerRoot-CkeHEAcG.mjs +0 -37
- package/dist/EditableRoot-CLmP5sIH.mjs +0 -37
- package/dist/FileUploadRoot-IVcTAZp-.mjs +0 -37
- package/dist/ListboxRoot-DhFAnZ_c.mjs +0 -37
- package/dist/MenuRoot-C4zG0iw2.mjs +0 -80
- package/dist/NumberInputRoot-BQz2HHGb.mjs +0 -37
- package/dist/PaginationRoot-DnXcEZCa.mjs +0 -37
- package/dist/PasswordInputRoot-4yR0Aig4.mjs +0 -37
- package/dist/PinInputRoot-B8fTxTlv.mjs +0 -37
- package/dist/ProgressRoot-DwhwW31T.mjs +0 -37
- package/dist/RadioGroupRoot-BD_mxWjX.mjs +0 -37
- package/dist/RatingGroupRoot-iUWUAKtV.mjs +0 -37
- package/dist/SegmentGroupRoot-798Amg4S.mjs +0 -37
- package/dist/SelectRoot-l-rb18FH.mjs +0 -37
- package/dist/SliderRoot-BBIlf6Uw.mjs +0 -37
- package/dist/StepsRoot-Dg_3-lRb.mjs +0 -37
- package/dist/SwitchRoot-C7rPmjEA.mjs +0 -37
- package/dist/TabsRoot-DXd41HqW.mjs +0 -41
- package/dist/TagsInputRoot-COSQdHRz.mjs +0 -37
- package/dist/ToggleGroupRoot-D0ob9z4u.mjs +0 -37
- package/dist/TreeViewRoot-ConQj9TX.mjs +0 -37
- package/dist/checkbox-group-ARW_z7gp.mjs +0 -130
- package/dist/image-viewer-Dv3_Iyu8.mjs +0 -186
- package/dist/index-CV1LSzq5.d.mts +0 -25
- package/dist/index-CiHanb4T.d.mts +0 -22
- package/dist/mentions-DjhgNRmY.mjs +0 -204
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
+
import { Field } from "./components/field/index.mjs";
|
|
3
|
+
import { t as useMentions } from "./use-mentions-DeF_38di.mjs";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
5
|
+
import "svelte/internal/disclose-version";
|
|
6
|
+
import * as $ from "svelte/internal/client";
|
|
7
|
+
import { Popover } from "@ark-ui/svelte/popover";
|
|
8
|
+
import { Portal } from "@ark-ui/svelte/portal";
|
|
9
|
+
//#region src/components/mentions/MentionsVessel.svelte
|
|
10
|
+
var root$1 = $.from_html(`<div data-scope="mentions" data-part="option" role="option"> </div>`);
|
|
11
|
+
var root_1 = $.from_html(`<div></div>`);
|
|
12
|
+
var root_2 = $.from_html(`<!> <!>`, 1);
|
|
13
|
+
function MentionsVessel$1($$anchor, $$props) {
|
|
14
|
+
$.push($$props, true);
|
|
15
|
+
injectComponentStyle("mentions");
|
|
16
|
+
let open = $.prop($$props, "open", 3, false), matches = $.prop($$props, "matches", 19, () => []), active = $.prop($$props, "active", 3, 0), anchor = $.prop($$props, "anchor", 3, null), size = $.prop($$props, "size", 3, "md");
|
|
17
|
+
var fragment = $.comment();
|
|
18
|
+
var node = $.first_child(fragment);
|
|
19
|
+
{
|
|
20
|
+
let $0 = $.derived(() => $$props.children ? { placement: "bottom-start" } : {
|
|
21
|
+
placement: "bottom-start",
|
|
22
|
+
getAnchorRect: () => anchor()?.getBoundingClientRect() ?? null
|
|
23
|
+
});
|
|
24
|
+
$.component(node, () => Popover.Root, ($$anchor, ArkPopover_Root) => {
|
|
25
|
+
ArkPopover_Root($$anchor, {
|
|
26
|
+
get open() {
|
|
27
|
+
return open();
|
|
28
|
+
},
|
|
29
|
+
get positioning() {
|
|
30
|
+
return $.get($0);
|
|
31
|
+
},
|
|
32
|
+
onOpenChange: (details) => $$props.onOpenChange?.(details.open),
|
|
33
|
+
children: ($$anchor, $$slotProps) => {
|
|
34
|
+
var fragment_1 = root_2();
|
|
35
|
+
var node_1 = $.first_child(fragment_1);
|
|
36
|
+
var consequent = ($$anchor) => {
|
|
37
|
+
var fragment_2 = $.comment();
|
|
38
|
+
var node_2 = $.first_child(fragment_2);
|
|
39
|
+
{
|
|
40
|
+
const asChild = ($$anchor, anchorProps = $.noop) => {
|
|
41
|
+
var fragment_3 = $.comment();
|
|
42
|
+
var node_3 = $.first_child(fragment_3);
|
|
43
|
+
$.snippet(node_3, () => $$props.children, anchorProps);
|
|
44
|
+
$.append($$anchor, fragment_3);
|
|
45
|
+
};
|
|
46
|
+
$.component(node_2, () => Popover.Anchor, ($$anchor, ArkPopover_Anchor) => {
|
|
47
|
+
ArkPopover_Anchor($$anchor, {
|
|
48
|
+
asChild,
|
|
49
|
+
$$slots: { asChild: true }
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
$.append($$anchor, fragment_2);
|
|
54
|
+
};
|
|
55
|
+
$.if(node_1, ($$render) => {
|
|
56
|
+
if ($$props.children) $$render(consequent);
|
|
57
|
+
});
|
|
58
|
+
var node_4 = $.sibling(node_1, 2);
|
|
59
|
+
Portal(node_4, {
|
|
60
|
+
children: ($$anchor, $$slotProps) => {
|
|
61
|
+
var fragment_4 = $.comment();
|
|
62
|
+
var node_5 = $.first_child(fragment_4);
|
|
63
|
+
$.component(node_5, () => Popover.Positioner, ($$anchor, ArkPopover_Positioner) => {
|
|
64
|
+
ArkPopover_Positioner($$anchor, {
|
|
65
|
+
children: ($$anchor, $$slotProps) => {
|
|
66
|
+
var fragment_5 = $.comment();
|
|
67
|
+
var node_6 = $.first_child(fragment_5);
|
|
68
|
+
{
|
|
69
|
+
const asChild = ($$anchor, contentProps = $.noop) => {
|
|
70
|
+
var div = root_1();
|
|
71
|
+
$.attribute_effect(div, ($0) => ({
|
|
72
|
+
...$0,
|
|
73
|
+
"data-scope": "mentions",
|
|
74
|
+
"data-part": "popup",
|
|
75
|
+
"data-size": size(),
|
|
76
|
+
role: "listbox"
|
|
77
|
+
}), [() => contentProps()()]);
|
|
78
|
+
$.each(div, 23, matches, (entry) => entry.value, ($$anchor, entry, index) => {
|
|
79
|
+
var div_1 = root$1();
|
|
80
|
+
$.set_attribute(div_1, "tabindex", -1);
|
|
81
|
+
var text = $.only_child(div_1, true);
|
|
82
|
+
$.template_effect(() => {
|
|
83
|
+
$.set_attribute(div_1, "aria-selected", $.get(index) === active());
|
|
84
|
+
$.set_attribute(div_1, "data-active", $.get(index) === active() ? "" : void 0);
|
|
85
|
+
$.set_text(text, $.get(entry).label);
|
|
86
|
+
});
|
|
87
|
+
$.event("mouseenter", div_1, () => $$props.onActiveChange?.($.get(index)));
|
|
88
|
+
$.delegated("mousedown", div_1, (event) => event.preventDefault());
|
|
89
|
+
$.delegated("click", div_1, () => $$props.onInsert?.($.get(entry)));
|
|
90
|
+
$.delegated("keydown", div_1, (event) => {
|
|
91
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
$$props.onInsert?.($.get(entry));
|
|
94
|
+
});
|
|
95
|
+
$.append($$anchor, div_1);
|
|
96
|
+
});
|
|
97
|
+
$.reset(div);
|
|
98
|
+
$.append($$anchor, div);
|
|
99
|
+
};
|
|
100
|
+
$.component(node_6, () => Popover.Content, ($$anchor, ArkPopover_Content) => {
|
|
101
|
+
ArkPopover_Content($$anchor, {
|
|
102
|
+
asChild,
|
|
103
|
+
$$slots: { asChild: true }
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
$.append($$anchor, fragment_5);
|
|
108
|
+
},
|
|
109
|
+
$$slots: { default: true }
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
$.append($$anchor, fragment_4);
|
|
113
|
+
},
|
|
114
|
+
$$slots: { default: true }
|
|
115
|
+
});
|
|
116
|
+
$.append($$anchor, fragment_1);
|
|
117
|
+
},
|
|
118
|
+
$$slots: { default: true }
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
$.append($$anchor, fragment);
|
|
123
|
+
$.pop();
|
|
124
|
+
}
|
|
125
|
+
$.delegate([
|
|
126
|
+
"mousedown",
|
|
127
|
+
"click",
|
|
128
|
+
"keydown"
|
|
129
|
+
]);
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/components/mentions/Mentions.svelte
|
|
132
|
+
var rest_excludes = /* @__PURE__ */ new Set([
|
|
133
|
+
"$$slots",
|
|
134
|
+
"$$events",
|
|
135
|
+
"$$legacy",
|
|
136
|
+
"items",
|
|
137
|
+
"value",
|
|
138
|
+
"trigger",
|
|
139
|
+
"placeholder",
|
|
140
|
+
"autoresize",
|
|
141
|
+
"invalid",
|
|
142
|
+
"size",
|
|
143
|
+
"onValueChange"
|
|
144
|
+
]);
|
|
145
|
+
var root = $.from_html(`<div><!></div>`);
|
|
146
|
+
function Mentions$1($$anchor, $$props) {
|
|
147
|
+
$.push($$props, true);
|
|
148
|
+
injectComponentStyle("mentions");
|
|
149
|
+
let items = $.prop($$props, "items", 19, () => []), value = $.prop($$props, "value", 15, ""), trigger = $.prop($$props, "trigger", 3, "@"), autoresize = $.prop($$props, "autoresize", 3, false), invalid = $.prop($$props, "invalid", 3, false), size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes);
|
|
150
|
+
let textareaEl = $.state(null);
|
|
151
|
+
const mentions = useMentions(() => ({
|
|
152
|
+
items: items(),
|
|
153
|
+
trigger: trigger()
|
|
154
|
+
}), () => $.get(textareaEl), {
|
|
155
|
+
getText: () => $.get(textareaEl)?.value ?? value(),
|
|
156
|
+
setText: (next) => {
|
|
157
|
+
value(next);
|
|
158
|
+
$$props.onValueChange?.(next);
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
function onInput(event) {
|
|
162
|
+
$$props.onValueChange?.(event.currentTarget.value);
|
|
163
|
+
mentions.onInput();
|
|
164
|
+
}
|
|
165
|
+
var div = root();
|
|
166
|
+
$.attribute_effect(div, () => ({
|
|
167
|
+
...rest,
|
|
168
|
+
"data-scope": "mentions",
|
|
169
|
+
"data-part": "root",
|
|
170
|
+
"data-size": size()
|
|
171
|
+
}));
|
|
172
|
+
var node = $.child(div);
|
|
173
|
+
{
|
|
174
|
+
const children = ($$anchor, anchorProps = $.noop) => {
|
|
175
|
+
var fragment = $.comment();
|
|
176
|
+
var node_1 = $.first_child(fragment);
|
|
177
|
+
{
|
|
178
|
+
let $0 = $.derived(() => anchorProps()());
|
|
179
|
+
let $1 = $.derived(() => invalid() ? "true" : void 0);
|
|
180
|
+
$.component(node_1, () => Field.Textarea, ($$anchor, Field_Textarea) => {
|
|
181
|
+
Field_Textarea($$anchor, $.spread_props(() => $.get($0), {
|
|
182
|
+
get autoresize() {
|
|
183
|
+
return autoresize();
|
|
184
|
+
},
|
|
185
|
+
rows: 3,
|
|
186
|
+
get placeholder() {
|
|
187
|
+
return $$props.placeholder;
|
|
188
|
+
},
|
|
189
|
+
get "aria-invalid"() {
|
|
190
|
+
return $.get($1);
|
|
191
|
+
},
|
|
192
|
+
"data-scope": "mentions",
|
|
193
|
+
"data-part": "textarea",
|
|
194
|
+
oninput: onInput,
|
|
195
|
+
get onkeydown() {
|
|
196
|
+
return mentions.onKeydown;
|
|
197
|
+
},
|
|
198
|
+
get ref() {
|
|
199
|
+
return $.get(textareaEl);
|
|
200
|
+
},
|
|
201
|
+
set ref($$value) {
|
|
202
|
+
$.set(textareaEl, $$value, true);
|
|
203
|
+
},
|
|
204
|
+
get value() {
|
|
205
|
+
return value();
|
|
206
|
+
},
|
|
207
|
+
set value($$value) {
|
|
208
|
+
value($$value);
|
|
209
|
+
}
|
|
210
|
+
}));
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
$.append($$anchor, fragment);
|
|
214
|
+
};
|
|
215
|
+
MentionsVessel$1(node, {
|
|
216
|
+
get open() {
|
|
217
|
+
return mentions.open;
|
|
218
|
+
},
|
|
219
|
+
get matches() {
|
|
220
|
+
return mentions.matches;
|
|
221
|
+
},
|
|
222
|
+
get active() {
|
|
223
|
+
return mentions.active;
|
|
224
|
+
},
|
|
225
|
+
get size() {
|
|
226
|
+
return size();
|
|
227
|
+
},
|
|
228
|
+
get onInsert() {
|
|
229
|
+
return mentions.insert;
|
|
230
|
+
},
|
|
231
|
+
onActiveChange: (index) => mentions.active = index,
|
|
232
|
+
onOpenChange: (open) => {
|
|
233
|
+
if (!open) mentions.close();
|
|
234
|
+
},
|
|
235
|
+
children,
|
|
236
|
+
$$slots: { default: true }
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
$.reset(div);
|
|
240
|
+
$.append($$anchor, div);
|
|
241
|
+
$.pop();
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/components/mentions/index.ts
|
|
245
|
+
/** @-mentions: a plain textarea that, when the text before the caret
|
|
246
|
+
* ends with the trigger character followed by a token, offers the
|
|
247
|
+
* matching candidates in a small anchored vessel; choosing one replaces
|
|
248
|
+
* the token with `trigger + label` and hands the whole text back
|
|
249
|
+
* through `bind:value`. Arrows move, Enter inserts, Escape dismisses. */
|
|
250
|
+
const Mentions = withSelfRoot(Mentions$1);
|
|
251
|
+
/** The vessel: the candidates themselves as a floating card. Composers
|
|
252
|
+
* that keep their own field anatomy wire it up with `useMentions`
|
|
253
|
+
* directly. */
|
|
254
|
+
const MentionsVessel = withSelfRoot(MentionsVessel$1);
|
|
255
|
+
//#endregion
|
|
256
|
+
export { MentionsVessel as n, Mentions as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as useConfig } from "./context-Da-QMQRq.mjs";
|
|
2
|
+
import { resolveComponentMessages } from "@bysages/core";
|
|
3
|
+
//#region src/components/config-provider/messages.ts
|
|
4
|
+
/** Resolve the nearest provider's locale and overrides into one complete
|
|
5
|
+
* message table; calling the selector keeps each read live with provider
|
|
6
|
+
* props. */
|
|
7
|
+
function useComponentMessages() {
|
|
8
|
+
const config = useConfig();
|
|
9
|
+
return () => resolveComponentMessages(config.locale ?? "en", config.messages);
|
|
10
|
+
}
|
|
11
|
+
/** Substitute `{name}` leaves with caller values; unknown leaves stay
|
|
12
|
+
* visible so a typo cannot turn an accessible name silent. */
|
|
13
|
+
function formatMessage(template, values) {
|
|
14
|
+
return template.replace(/\{(\w+)\}/g, (match, key) => key in values ? String(values[key]) : match);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useComponentMessages as n, formatMessage as t };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
+
import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import "svelte/internal/disclose-version";
|
|
3
5
|
import * as $ from "svelte/internal/client";
|
|
@@ -10,12 +12,13 @@ var rest_excludes = /* @__PURE__ */ new Set([
|
|
|
10
12
|
"options",
|
|
11
13
|
"label"
|
|
12
14
|
]);
|
|
13
|
-
var root = $.from_html(`<li
|
|
15
|
+
var root = $.from_html(`<li draggable="" aria-roledescription="Sortable item" data-scope="order-list" data-part="item"><span data-scope="order-list" data-part="grip" aria-hidden="true">⋮⋮</span> <span data-scope="order-list" data-part="label"> </span> <span data-scope="order-list" data-part="controls"><button type="button" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m18 15-6-6-6 6"></path><path d="M5 4h14"></path></svg></button> <button type="button" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m18 15-6-6-6 6"></path></svg></button> <button type="button" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button> <button type="button" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"></path><path d="M5 20h14"></path></svg></button></span></li>`);
|
|
14
16
|
var root_1 = $.from_html(`<div><ol data-scope="order-list" data-part="list"></ol></div>`);
|
|
15
17
|
function OrderList$1($$anchor, $$props) {
|
|
16
18
|
$.push($$props, true);
|
|
17
19
|
injectComponentStyle("order-list");
|
|
18
20
|
let value = $.prop($$props, "value", 31, () => $.proxy([])), rest = $.rest_props($$props, rest_excludes);
|
|
21
|
+
const messages = useComponentMessages();
|
|
19
22
|
let dragging = $.state(null);
|
|
20
23
|
let dropLine = $.state(null);
|
|
21
24
|
const rows = $.derived(() => value().map((entry) => $$props.options.find((option) => option.value === entry)).filter((option) => option != null));
|
|
@@ -51,9 +54,6 @@ function OrderList$1($$anchor, $$props) {
|
|
|
51
54
|
};
|
|
52
55
|
$.attribute_effect(div, () => ({
|
|
53
56
|
...rest,
|
|
54
|
-
role: "listbox",
|
|
55
|
-
"aria-label": $$props.label,
|
|
56
|
-
"aria-multiselectable": false,
|
|
57
57
|
"data-scope": "order-list",
|
|
58
58
|
"data-part": "root",
|
|
59
59
|
ondragleave: event_handler
|
|
@@ -70,15 +70,24 @@ function OrderList$1($$anchor, $$props) {
|
|
|
70
70
|
var button_3 = $.sibling(button_2, 2);
|
|
71
71
|
$.reset(span_1);
|
|
72
72
|
$.reset(li);
|
|
73
|
-
$.template_effect(() => {
|
|
73
|
+
$.template_effect(($0, $1, $2, $3) => {
|
|
74
74
|
$.set_attribute(li, "data-dragging", $.get(dragging) === $.get(option).value ? "" : void 0);
|
|
75
75
|
$.set_attribute(li, "data-drop-line", $.get(dropLine) && $.get(dropLine).index === $.get(index) ? $.get(dropLine).before ? "top" : "bottom" : void 0);
|
|
76
76
|
$.set_text(text, $.get(option).label);
|
|
77
|
+
$.set_attribute(button, "aria-label", $0);
|
|
77
78
|
button.disabled = $.get(index) === 0;
|
|
79
|
+
$.set_attribute(button_1, "aria-label", $1);
|
|
78
80
|
button_1.disabled = $.get(index) === 0;
|
|
81
|
+
$.set_attribute(button_2, "aria-label", $2);
|
|
79
82
|
button_2.disabled = $.get(index) === $.get(rows).length - 1;
|
|
83
|
+
$.set_attribute(button_3, "aria-label", $3);
|
|
80
84
|
button_3.disabled = $.get(index) === $.get(rows).length - 1;
|
|
81
|
-
}
|
|
85
|
+
}, [
|
|
86
|
+
() => messages().orderList.toTop,
|
|
87
|
+
() => messages().orderList.moveUp,
|
|
88
|
+
() => messages().orderList.moveDown,
|
|
89
|
+
() => messages().orderList.toBottom
|
|
90
|
+
]);
|
|
82
91
|
$.event("dragstart", li, (event) => {
|
|
83
92
|
$.set(dragging, $.get(option).value, true);
|
|
84
93
|
event.dataTransfer?.setData("text/plain", $.get(option).value);
|
|
@@ -107,6 +116,7 @@ function OrderList$1($$anchor, $$props) {
|
|
|
107
116
|
});
|
|
108
117
|
$.reset(ol);
|
|
109
118
|
$.reset(div);
|
|
119
|
+
$.template_effect(() => $.set_attribute(ol, "aria-label", $$props.label));
|
|
110
120
|
$.append($$anchor, div);
|
|
111
121
|
$.pop();
|
|
112
122
|
}
|
|
@@ -115,6 +125,6 @@ $.delegate(["click"]);
|
|
|
115
125
|
//#region src/components/order-list/index.ts
|
|
116
126
|
/** A ledger the reader may rewrite: rows move by grip or by the side
|
|
117
127
|
* arrows; the value is the order. */
|
|
118
|
-
const OrderList = OrderList$1;
|
|
128
|
+
const OrderList = withSelfRoot(OrderList$1);
|
|
119
129
|
//#endregion
|
|
120
130
|
export { OrderList as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
+
import { t as Button } from "./button-CghWQD3J.mjs";
|
|
2
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
3
4
|
import "svelte/internal/disclose-version";
|
|
4
5
|
import * as $ from "svelte/internal/client";
|
|
@@ -79,30 +80,56 @@ function Popconfirm$1($$anchor, $$props) {
|
|
|
79
80
|
var text = $.only_child(p, true);
|
|
80
81
|
var div = $.sibling(p, 2);
|
|
81
82
|
var node_6 = $.child(div);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
83
|
+
{
|
|
84
|
+
const asChild = ($$anchor, closeProps = $.noop) => {
|
|
85
|
+
{
|
|
86
|
+
let $0 = $.derived(() => closeProps()());
|
|
87
|
+
Button($$anchor, $.spread_props(() => $.get($0), {
|
|
88
|
+
variant: "ghost",
|
|
89
|
+
size: "sm",
|
|
90
|
+
onclick: () => settle(false),
|
|
91
|
+
children: ($$anchor, $$slotProps) => {
|
|
92
|
+
$.next();
|
|
93
|
+
var text_1 = $.text();
|
|
94
|
+
$.template_effect(() => $.set_text(text_1, cancelText()));
|
|
95
|
+
$.append($$anchor, text_1);
|
|
96
|
+
},
|
|
97
|
+
$$slots: { default: true }
|
|
98
|
+
}));
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
$.component(node_6, () => Popover.CloseTrigger, ($$anchor, ArkPopover_CloseTrigger) => {
|
|
102
|
+
ArkPopover_CloseTrigger($$anchor, {
|
|
103
|
+
asChild,
|
|
104
|
+
$$slots: { asChild: true }
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}
|
|
94
108
|
var node_7 = $.sibling(node_6, 2);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
109
|
+
{
|
|
110
|
+
const asChild = ($$anchor, closeProps = $.noop) => {
|
|
111
|
+
{
|
|
112
|
+
let $0 = $.derived(() => closeProps()());
|
|
113
|
+
Button($$anchor, $.spread_props(() => $.get($0), {
|
|
114
|
+
size: "sm",
|
|
115
|
+
onclick: () => settle(true),
|
|
116
|
+
children: ($$anchor, $$slotProps) => {
|
|
117
|
+
$.next();
|
|
118
|
+
var text_2 = $.text();
|
|
119
|
+
$.template_effect(() => $.set_text(text_2, confirmText()));
|
|
120
|
+
$.append($$anchor, text_2);
|
|
121
|
+
},
|
|
122
|
+
$$slots: { default: true }
|
|
123
|
+
}));
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
$.component(node_7, () => Popover.CloseTrigger, ($$anchor, ArkPopover_CloseTrigger_1) => {
|
|
127
|
+
ArkPopover_CloseTrigger_1($$anchor, {
|
|
128
|
+
asChild,
|
|
129
|
+
$$slots: { asChild: true }
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
}
|
|
106
133
|
$.reset(div);
|
|
107
134
|
$.template_effect(() => $.set_text(text, $$props.message));
|
|
108
135
|
$.append($$anchor, fragment_4);
|
|
@@ -131,6 +158,6 @@ function Popconfirm$1($$anchor, $$props) {
|
|
|
131
158
|
//#region src/components/popconfirm/index.ts
|
|
132
159
|
/** A question at the point of no return: the trigger opens a small
|
|
133
160
|
* anchored vessel carrying the message and two answers. */
|
|
134
|
-
const Popconfirm = Popconfirm$1;
|
|
161
|
+
const Popconfirm = withSelfRoot(Popconfirm$1);
|
|
135
162
|
//#endregion
|
|
136
163
|
export { Popconfirm as t };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import "svelte/internal/disclose-version";
|
|
3
4
|
import * as $ from "svelte/internal/client";
|
|
@@ -37,7 +38,7 @@ function ProgressGroup$1($$anchor, $$props) {
|
|
|
37
38
|
$.set_attribute(div_2, "aria-valuenow", $.get(segment).value);
|
|
38
39
|
$.set_attribute(div_2, "aria-valuemax", $.get(total));
|
|
39
40
|
$.set_attribute(div_2, "aria-label", $0);
|
|
40
|
-
styles = $.set_style(div_2, "", styles, { "
|
|
41
|
+
styles = $.set_style(div_2, "", styles, { "--bs-progress-group-share": $1 });
|
|
41
42
|
}, [() => nameOf($.get(segment), index), () => share($.get(segment).value)]);
|
|
42
43
|
$.append($$anchor, div_2);
|
|
43
44
|
});
|
|
@@ -76,6 +77,6 @@ function ProgressGroup$1($$anchor, $$props) {
|
|
|
76
77
|
* the legend reads them back beneath (swatch, label, value) unless the
|
|
77
78
|
* caller declines it. The whole is the sum of the parts unless the
|
|
78
79
|
* caller brings a larger one — the remainder then shows as groove. */
|
|
79
|
-
const ProgressGroup = ProgressGroup$1;
|
|
80
|
+
const ProgressGroup = withSelfRoot(ProgressGroup$1);
|
|
80
81
|
//#endregion
|
|
81
82
|
export { ProgressGroup as t };
|
|
@@ -150,6 +150,7 @@ function Title($$anchor, $$props) {
|
|
|
150
150
|
/** A verdict drawn after the deed — Result, Result.Icon, Result.Title,
|
|
151
151
|
* Result.Description, Result.Extra. */
|
|
152
152
|
const Result = Object.assign(Result$1, {
|
|
153
|
+
Root: Result$1,
|
|
153
154
|
Icon: ResultIcon,
|
|
154
155
|
Title,
|
|
155
156
|
Description,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { n as withSelfRoot, t as defineFamily } from "./family-CzLaku1F.mjs";
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Clwbj4MY.mjs";
|
|
3
|
+
import { n as SelectRoot, t as Select$2 } from "./Select-CnNtViJ4.mjs";
|
|
2
4
|
import { injectComponentStyle } from "@bysages/core";
|
|
3
5
|
import "svelte/internal/disclose-version";
|
|
4
6
|
import * as $ from "svelte/internal/client";
|
|
@@ -14,11 +16,13 @@ var rest_excludes = /* @__PURE__ */ new Set([
|
|
|
14
16
|
"size",
|
|
15
17
|
"invalid",
|
|
16
18
|
"placeholder",
|
|
17
|
-
"disabled"
|
|
19
|
+
"disabled",
|
|
20
|
+
"aria-label",
|
|
21
|
+
"aria-labelledby"
|
|
18
22
|
]);
|
|
19
23
|
var root = $.from_html(`<option disabled=""> </option>`);
|
|
20
24
|
var root_1 = $.from_html(`<option> </option>`);
|
|
21
|
-
var root_2 = $.from_html(`<span><select><!><!></select> <
|
|
25
|
+
var root_2 = $.from_html(`<span><select><!><!></select> <span data-scope="select" data-part="native-icon"><!></span></span>`);
|
|
22
26
|
function NativeSelect$1($$anchor, $$props) {
|
|
23
27
|
$.push($$props, true);
|
|
24
28
|
injectComponentStyle("select");
|
|
@@ -41,6 +45,8 @@ function NativeSelect$1($$anchor, $$props) {
|
|
|
41
45
|
var select = $.child(span);
|
|
42
46
|
$.attribute_effect(select, () => ({
|
|
43
47
|
...$.get(fieldProps),
|
|
48
|
+
"aria-label": $$props["aria-label"],
|
|
49
|
+
"aria-labelledby": $$props["aria-labelledby"],
|
|
44
50
|
"data-scope": "select",
|
|
45
51
|
"data-part": "native",
|
|
46
52
|
disabled: $.get(isDisabled) || void 0
|
|
@@ -72,7 +78,10 @@ function NativeSelect$1($$anchor, $$props) {
|
|
|
72
78
|
$.append($$anchor, option_2);
|
|
73
79
|
});
|
|
74
80
|
$.reset(select);
|
|
75
|
-
$.
|
|
81
|
+
var span_1 = $.sibling(select, 2);
|
|
82
|
+
var node_2 = $.child(span_1);
|
|
83
|
+
InternalIcon(node_2, { name: "chevron-down" });
|
|
84
|
+
$.reset(span_1);
|
|
76
85
|
$.reset(span);
|
|
77
86
|
$.bind_select_value(select, value);
|
|
78
87
|
$.append($$anchor, span);
|
|
@@ -85,11 +94,11 @@ function NativeSelect$1($$anchor, $$props) {
|
|
|
85
94
|
* row taking the flat ink fill. The API is Ark's own — Root, Label, Control,
|
|
86
95
|
* Trigger, ValueText, Indicator, ClearTrigger, HiddenSelect, Positioner,
|
|
87
96
|
* Content, List, Item, ItemText, ItemIndicator, ItemGroup, ItemGroupLabel. */
|
|
88
|
-
const Select$1 = {
|
|
97
|
+
const Select$1 = defineFamily(Select$2, {
|
|
89
98
|
...Select,
|
|
90
99
|
Root: SelectRoot
|
|
91
|
-
};
|
|
100
|
+
});
|
|
92
101
|
/** The platform's own list wearing the control recipe. */
|
|
93
|
-
const NativeSelect = NativeSelect$1;
|
|
102
|
+
const NativeSelect = withSelfRoot(NativeSelect$1);
|
|
94
103
|
//#endregion
|
|
95
104
|
export { Select$1 as n, NativeSelect as t };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import "svelte/internal/disclose-version";
|
|
3
4
|
import * as $ from "svelte/internal/client";
|
|
@@ -31,6 +32,6 @@ function Separator$1($$anchor, $$props) {
|
|
|
31
32
|
/** The paper-ink hairline as a component: a named rule between sections.
|
|
32
33
|
* Decorative separators drop the separator role, since the page reads
|
|
33
34
|
* fine without them. */
|
|
34
|
-
const Separator = Separator$1;
|
|
35
|
+
const Separator = withSelfRoot(Separator$1);
|
|
35
36
|
//#endregion
|
|
36
37
|
export { Separator as t };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import "svelte/internal/disclose-version";
|
|
3
4
|
import * as $ from "svelte/internal/client";
|
|
@@ -25,6 +26,6 @@ function Skeleton$1($$anchor, $$props) {
|
|
|
25
26
|
//#region src/components/skeleton/index.ts
|
|
26
27
|
/** A waiting sheet of unset paper. Size it from the outside; the breath
|
|
27
28
|
* is the component's own. */
|
|
28
|
-
const Skeleton = Skeleton$1;
|
|
29
|
+
const Skeleton = withSelfRoot(Skeleton$1);
|
|
29
30
|
//#endregion
|
|
30
31
|
export { Skeleton as t };
|