@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
|
@@ -1,19 +1,9 @@
|
|
|
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";
|
|
4
|
-
import {
|
|
5
|
-
import { getContext, setContext } from "svelte";
|
|
5
|
+
import { getContext, untrack } from "svelte";
|
|
6
6
|
import { createField, createField as useField, createForm, createForm as useForm } from "@tanstack/svelte-form";
|
|
7
|
-
//#region src/components/form/context.ts
|
|
8
|
-
const FORM_KEY = Symbol("bysages-form");
|
|
9
|
-
function provideForm(engine) {
|
|
10
|
-
setContext(FORM_KEY, engine);
|
|
11
|
-
return engine;
|
|
12
|
-
}
|
|
13
|
-
function useForm$1() {
|
|
14
|
-
return getContext(FORM_KEY) ?? null;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
7
|
//#region src/components/form/Form.svelte
|
|
18
8
|
var rest_excludes$1 = /* @__PURE__ */ new Set([
|
|
19
9
|
"$$slots",
|
|
@@ -27,7 +17,7 @@ function Form$1($$anchor, $$props) {
|
|
|
27
17
|
$.push($$props, true);
|
|
28
18
|
injectComponentStyle("form");
|
|
29
19
|
let rest = $.rest_props($$props, rest_excludes$1);
|
|
30
|
-
provideForm($$props.form);
|
|
20
|
+
provideForm(untrack(() => $$props.form));
|
|
31
21
|
var form_1 = root$1();
|
|
32
22
|
var event_handler = (event) => {
|
|
33
23
|
event.preventDefault();
|
|
@@ -47,6 +37,12 @@ function Form$1($$anchor, $$props) {
|
|
|
47
37
|
$.pop();
|
|
48
38
|
}
|
|
49
39
|
//#endregion
|
|
40
|
+
//#region src/components/form/context.ts
|
|
41
|
+
const FORM_KEY = Symbol("bysages-form");
|
|
42
|
+
function useForm$1() {
|
|
43
|
+
return getContext(FORM_KEY) ?? null;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
50
46
|
//#region src/components/form/FormField.svelte
|
|
51
47
|
var rest_excludes = /* @__PURE__ */ new Set([
|
|
52
48
|
"$$slots",
|
|
@@ -77,85 +73,68 @@ function FormField$1($$anchor, $$props) {
|
|
|
77
73
|
var node = $.child(div);
|
|
78
74
|
{
|
|
79
75
|
let $0 = $.derived(() => invalid() || $.get(errors).length > 0);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
get
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
$.template_effect(() => $.set_text(text, $$props.label));
|
|
103
|
-
$.append($$anchor, text);
|
|
104
|
-
},
|
|
105
|
-
$$slots: { default: true }
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
$.append($$anchor, fragment_1);
|
|
109
|
-
};
|
|
110
|
-
$.if(node_1, ($$render) => {
|
|
111
|
-
if ($$props.label) $$render(consequent);
|
|
76
|
+
ArkField.Root(node, {
|
|
77
|
+
get invalid() {
|
|
78
|
+
return $.get($0);
|
|
79
|
+
},
|
|
80
|
+
get required() {
|
|
81
|
+
return required();
|
|
82
|
+
},
|
|
83
|
+
get disabled() {
|
|
84
|
+
return disabled();
|
|
85
|
+
},
|
|
86
|
+
children: ($$anchor, $$slotProps) => {
|
|
87
|
+
var fragment = root();
|
|
88
|
+
var node_1 = $.first_child(fragment);
|
|
89
|
+
var consequent = ($$anchor) => {
|
|
90
|
+
ArkField.Label($$anchor, {
|
|
91
|
+
children: ($$anchor, $$slotProps) => {
|
|
92
|
+
$.next();
|
|
93
|
+
var text = $.text();
|
|
94
|
+
$.template_effect(() => $.set_text(text, $$props.label));
|
|
95
|
+
$.append($$anchor, text);
|
|
96
|
+
},
|
|
97
|
+
$$slots: { default: true }
|
|
112
98
|
});
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
});
|
|
130
|
-
$.append($$anchor, fragment_3);
|
|
131
|
-
};
|
|
132
|
-
$.if(node_4, ($$render) => {
|
|
133
|
-
if ($$props.hint && $.get(errors).length === 0) $$render(consequent_1);
|
|
99
|
+
};
|
|
100
|
+
$.if(node_1, ($$render) => {
|
|
101
|
+
if ($$props.label) $$render(consequent);
|
|
102
|
+
});
|
|
103
|
+
var node_2 = $.sibling(node_1, 2);
|
|
104
|
+
$.snippet(node_2, () => $$props.children ?? $.noop, field);
|
|
105
|
+
var node_3 = $.sibling(node_2, 2);
|
|
106
|
+
var consequent_1 = ($$anchor) => {
|
|
107
|
+
ArkField.HelperText($$anchor, {
|
|
108
|
+
children: ($$anchor, $$slotProps) => {
|
|
109
|
+
$.next();
|
|
110
|
+
var text_1 = $.text();
|
|
111
|
+
$.template_effect(() => $.set_text(text_1, $$props.hint));
|
|
112
|
+
$.append($$anchor, text_1);
|
|
113
|
+
},
|
|
114
|
+
$$slots: { default: true }
|
|
134
115
|
});
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
});
|
|
150
|
-
$.append($$anchor, fragment_5);
|
|
151
|
-
};
|
|
152
|
-
$.if(node_6, ($$render) => {
|
|
153
|
-
if ($.get(errors).length > 0) $$render(consequent_2);
|
|
116
|
+
};
|
|
117
|
+
$.if(node_3, ($$render) => {
|
|
118
|
+
if ($$props.hint && $.get(errors).length === 0) $$render(consequent_1);
|
|
119
|
+
});
|
|
120
|
+
var node_4 = $.sibling(node_3, 2);
|
|
121
|
+
var consequent_2 = ($$anchor) => {
|
|
122
|
+
ArkField.ErrorText($$anchor, {
|
|
123
|
+
children: ($$anchor, $$slotProps) => {
|
|
124
|
+
$.next();
|
|
125
|
+
var text_2 = $.text();
|
|
126
|
+
$.template_effect(() => $.set_text(text_2, $.get(errors)[0]));
|
|
127
|
+
$.append($$anchor, text_2);
|
|
128
|
+
},
|
|
129
|
+
$$slots: { default: true }
|
|
154
130
|
});
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
131
|
+
};
|
|
132
|
+
$.if(node_4, ($$render) => {
|
|
133
|
+
if ($.get(errors).length > 0) $$render(consequent_2);
|
|
134
|
+
});
|
|
135
|
+
$.append($$anchor, fragment);
|
|
136
|
+
},
|
|
137
|
+
$$slots: { default: true }
|
|
159
138
|
});
|
|
160
139
|
}
|
|
161
140
|
$.reset(div);
|
|
@@ -163,7 +142,8 @@ function FormField$1($$anchor, $$props) {
|
|
|
163
142
|
};
|
|
164
143
|
injectComponentStyle("form");
|
|
165
144
|
let required = $.prop($$props, "required", 3, false), invalid = $.prop($$props, "invalid", 3, false), disabled = $.prop($$props, "disabled", 3, false), rest = $.rest_props($$props, rest_excludes);
|
|
166
|
-
const
|
|
145
|
+
const injectedForm = untrack(() => useForm$1());
|
|
146
|
+
const engine = $.derived(() => $$props.form ?? injectedForm);
|
|
167
147
|
function errorText(error) {
|
|
168
148
|
if (error == null) return "";
|
|
169
149
|
if (typeof error === "string") return error;
|
|
@@ -171,15 +151,15 @@ function FormField$1($$anchor, $$props) {
|
|
|
171
151
|
return String(error);
|
|
172
152
|
}
|
|
173
153
|
var fragment_7 = $.comment();
|
|
174
|
-
var
|
|
154
|
+
var node_5 = $.first_child(fragment_7);
|
|
175
155
|
var consequent_3 = ($$anchor) => {
|
|
176
156
|
var fragment_8 = $.comment();
|
|
177
|
-
var
|
|
157
|
+
var node_6 = $.first_child(fragment_8);
|
|
178
158
|
{
|
|
179
159
|
const children = ($$anchor, field = $.noop) => {
|
|
180
160
|
assemble($$anchor, field);
|
|
181
161
|
};
|
|
182
|
-
$.component(
|
|
162
|
+
$.component(node_6, () => $.get(engine).Field, ($$anchor, engine_Field) => {
|
|
183
163
|
engine_Field($$anchor, $.spread_props(() => rest, {
|
|
184
164
|
get name() {
|
|
185
165
|
return $$props.name;
|
|
@@ -194,8 +174,8 @@ function FormField$1($$anchor, $$props) {
|
|
|
194
174
|
var alternate = ($$anchor) => {
|
|
195
175
|
assemble($$anchor, () => void 0);
|
|
196
176
|
};
|
|
197
|
-
$.if(
|
|
198
|
-
if (engine) $$render(consequent_3);
|
|
177
|
+
$.if(node_5, ($$render) => {
|
|
178
|
+
if ($.get(engine)) $$render(consequent_3);
|
|
199
179
|
else $$render(alternate, -1);
|
|
200
180
|
});
|
|
201
181
|
$.append($$anchor, fragment_7);
|
|
@@ -205,8 +185,8 @@ function FormField$1($$anchor, $$props) {
|
|
|
205
185
|
//#region src/components/form/index.ts
|
|
206
186
|
/** The engine owns the values and the validation; these two are the
|
|
207
187
|
* assembly — one grid, one error routing. */
|
|
208
|
-
const Form = Form$1;
|
|
209
|
-
const FormField = FormField$1;
|
|
188
|
+
const Form = withSelfRoot(Form$1);
|
|
189
|
+
const FormField = withSelfRoot(FormField$1);
|
|
210
190
|
injectComponentStyle("field");
|
|
211
191
|
//#endregion
|
|
212
192
|
export { useField as a, createForm as i, FormField as n, useForm as o, createField as r, Form 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";
|
|
@@ -49,6 +50,6 @@ function Grid$1($$anchor, $$props) {
|
|
|
49
50
|
//#region src/components/grid/index.ts
|
|
50
51
|
/** An alignment lattice: tracks of equal measure, sized by column count
|
|
51
52
|
* — or, with `minChildWidth`, as many tracks as the container fits. */
|
|
52
|
-
const Grid = Grid$1;
|
|
53
|
+
const Grid = withSelfRoot(Grid$1);
|
|
53
54
|
//#endregion
|
|
54
55
|
export { Grid 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";
|
|
@@ -19,8 +20,10 @@ function Icon$1($$anchor, $$props) {
|
|
|
19
20
|
$.push($$props, true);
|
|
20
21
|
injectComponentStyle("icon");
|
|
21
22
|
let size = $.prop($$props, "size", 3, "inherit"), rest = $.rest_props($$props, rest_excludes);
|
|
22
|
-
const resolved = $$props.glyph ?? ($$props.name && $$props.children == null ? getIcon($$props.name) : void 0);
|
|
23
|
-
|
|
23
|
+
const resolved = $.derived(() => $$props.glyph ?? ($$props.name && $$props.children == null ? getIcon($$props.name) : void 0));
|
|
24
|
+
$.user_effect(() => {
|
|
25
|
+
if ($$props.name && $$props.children == null && $$props.glyph == null && !$.get(resolved)) console.error(`[icons] unknown icon name "${$$props.name}" — not in the core default registry; pass it explicitly as glyph`);
|
|
26
|
+
});
|
|
24
27
|
var span = root_1();
|
|
25
28
|
$.attribute_effect(span, () => ({
|
|
26
29
|
...rest,
|
|
@@ -40,14 +43,14 @@ function Icon$1($$anchor, $$props) {
|
|
|
40
43
|
};
|
|
41
44
|
var consequent_1 = ($$anchor) => {
|
|
42
45
|
var svg = root();
|
|
43
|
-
$.html(svg, () => resolved.body, true);
|
|
46
|
+
$.html(svg, () => $.get(resolved).body, true);
|
|
44
47
|
$.reset(svg);
|
|
45
|
-
$.template_effect(() => $.set_attribute(svg, "viewBox", `0 0 ${resolved.width ?? 24 ?? ""} ${resolved.height ?? 24 ?? ""}`));
|
|
48
|
+
$.template_effect(() => $.set_attribute(svg, "viewBox", `0 0 ${$.get(resolved).width ?? 24 ?? ""} ${$.get(resolved).height ?? 24 ?? ""}`));
|
|
46
49
|
$.append($$anchor, svg);
|
|
47
50
|
};
|
|
48
51
|
$.if(node, ($$render) => {
|
|
49
52
|
if ($$props.children) $$render(consequent);
|
|
50
|
-
else if (resolved) $$render(consequent_1, 1);
|
|
53
|
+
else if ($.get(resolved)) $$render(consequent_1, 1);
|
|
51
54
|
});
|
|
52
55
|
$.reset(span);
|
|
53
56
|
$.append($$anchor, span);
|
|
@@ -57,7 +60,7 @@ function Icon$1($$anchor, $$props) {
|
|
|
57
60
|
//#region src/components/icon/index.ts
|
|
58
61
|
/** The inkwell: a standard box that keeps any inline svg at its optical
|
|
59
62
|
* measure and in the text's own ink — the icon carries no pigment and
|
|
60
|
-
* no size of its own. Bring the
|
|
61
|
-
const Icon = Icon$1;
|
|
63
|
+
* no size of its own. Bring the icon; it ships no set. */
|
|
64
|
+
const Icon = withSelfRoot(Icon$1);
|
|
62
65
|
//#endregion
|
|
63
66
|
export { Icon as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getIcon } from "@bysages/core/icons";
|
|
2
|
+
//#region src/internal/icon.ts
|
|
3
|
+
/** Render a curated core icon as an SVG string, for enhancements that write
|
|
4
|
+
* innerHTML rather than mount elements. */
|
|
5
|
+
function iconHtml(name, attrs = {}) {
|
|
6
|
+
const icon = getIcon(name);
|
|
7
|
+
if (!icon) throw new Error(`Unknown icon "${name}" in the curated core registry`);
|
|
8
|
+
const attributes = {
|
|
9
|
+
width: String(icon.width),
|
|
10
|
+
height: String(icon.height),
|
|
11
|
+
viewBox: `0 0 ${icon.width} ${icon.height}`,
|
|
12
|
+
"aria-hidden": "true",
|
|
13
|
+
...attrs
|
|
14
|
+
};
|
|
15
|
+
return `<svg${Object.entries(attributes).map(([key, value]) => ` ${key}="${value}"`).join("")}>${icon.body}</svg>`;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { iconHtml as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/internal/id.ts
|
|
2
|
+
/** Generates an SSR-stable machine base id while honoring an explicit id. */
|
|
3
|
+
function useElementId(scope, generatedId, explicitId) {
|
|
4
|
+
return typeof explicitId === "string" && explicitId ? explicitId : `bs-${scope}-${generatedId}`;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { useElementId as t };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Clwbj4MY.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import "svelte/internal/disclose-version";
|
|
3
5
|
import * as $ from "svelte/internal/client";
|
|
@@ -9,22 +11,25 @@ var rest_excludes = /* @__PURE__ */ new Set([
|
|
|
9
11
|
"src",
|
|
10
12
|
"alt",
|
|
11
13
|
"fit",
|
|
14
|
+
"width",
|
|
15
|
+
"height",
|
|
12
16
|
"loading",
|
|
13
17
|
"fallback"
|
|
14
18
|
]);
|
|
15
|
-
var root = $.
|
|
16
|
-
var root_1 = $.from_html(`<
|
|
17
|
-
var root_2 = $.from_html(`<figure><img data-scope="image" data-part="img" decoding="async"/> <!></figure>`);
|
|
19
|
+
var root = $.from_html(`<div data-scope="image" data-part="fallback"><!></div>`);
|
|
20
|
+
var root_1 = $.from_html(`<figure><img data-scope="image" data-part="img" decoding="async"/> <!></figure>`);
|
|
18
21
|
function Image$1($$anchor, $$props) {
|
|
19
22
|
$.push($$props, true);
|
|
20
23
|
injectComponentStyle("image");
|
|
21
24
|
let alt = $.prop($$props, "alt", 3, ""), fit = $.prop($$props, "fit", 3, "cover"), loading = $.prop($$props, "loading", 3, "lazy"), rest = $.rest_props($$props, rest_excludes);
|
|
22
25
|
let state = $.state("loading");
|
|
26
|
+
let image = $.state(void 0);
|
|
23
27
|
$.user_effect(() => {
|
|
24
28
|
$$props.src;
|
|
25
29
|
$.set(state, "loading");
|
|
30
|
+
if ($.get(image)?.complete) $.set(state, $.get(image).naturalWidth > 0 ? "loaded" : "error", true);
|
|
26
31
|
});
|
|
27
|
-
var figure =
|
|
32
|
+
var figure = root_1();
|
|
28
33
|
$.attribute_effect(figure, () => ({
|
|
29
34
|
...rest,
|
|
30
35
|
"data-scope": "image",
|
|
@@ -33,9 +38,10 @@ function Image$1($$anchor, $$props) {
|
|
|
33
38
|
"data-fit": fit()
|
|
34
39
|
}));
|
|
35
40
|
var img = $.child(figure);
|
|
41
|
+
$.bind_this(img, ($$value) => $.set(image, $$value), () => $.get(image));
|
|
36
42
|
var node = $.sibling(img, 2);
|
|
37
43
|
var consequent_1 = ($$anchor) => {
|
|
38
|
-
var div =
|
|
44
|
+
var div = root();
|
|
39
45
|
var node_1 = $.child(div);
|
|
40
46
|
var consequent = ($$anchor) => {
|
|
41
47
|
var fragment = $.comment();
|
|
@@ -44,8 +50,7 @@ function Image$1($$anchor, $$props) {
|
|
|
44
50
|
$.append($$anchor, fragment);
|
|
45
51
|
};
|
|
46
52
|
var alternate = ($$anchor) => {
|
|
47
|
-
|
|
48
|
-
$.append($$anchor, svg);
|
|
53
|
+
InternalIcon($$anchor, { name: "image" });
|
|
49
54
|
};
|
|
50
55
|
$.if(node_1, ($$render) => {
|
|
51
56
|
if ($$props.fallback) $$render(consequent);
|
|
@@ -61,6 +66,8 @@ function Image$1($$anchor, $$props) {
|
|
|
61
66
|
$.template_effect(() => {
|
|
62
67
|
$.set_attribute(img, "src", $$props.src);
|
|
63
68
|
$.set_attribute(img, "alt", alt());
|
|
69
|
+
$.set_attribute(img, "width", $$props.width);
|
|
70
|
+
$.set_attribute(img, "height", $$props.height);
|
|
64
71
|
$.set_attribute(img, "loading", loading());
|
|
65
72
|
});
|
|
66
73
|
$.event("load", img, () => $.set(state, "loaded"));
|
|
@@ -73,9 +80,9 @@ function Image$1($$anchor, $$props) {
|
|
|
73
80
|
//#region src/components/image/index.ts
|
|
74
81
|
/** A framed picture: while the source loads, the frame keeps the
|
|
75
82
|
* skeleton's breath; the picture dissolves in when it lands; a broken
|
|
76
|
-
* source leaves the fallback snippet — or the placeholder
|
|
83
|
+
* source leaves the fallback snippet — or the placeholder icon when
|
|
77
84
|
* the caller has nothing local to say. The frame's size is the
|
|
78
85
|
* consumer's to give. */
|
|
79
|
-
const Image = Image$1;
|
|
86
|
+
const Image = withSelfRoot(Image$1);
|
|
80
87
|
//#endregion
|
|
81
88
|
export { Image as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as ListboxRoot, t as Listbox$2 } from "./Listbox-BcF6Uk8j.mjs";
|
|
2
2
|
import { CollectionItem, Listbox, ListboxRootProps } from "@ark-ui/svelte/listbox";
|
|
3
3
|
//#region src/components/listbox/props.d.ts
|
|
4
4
|
type ListboxRootProps$1 = ListboxRootProps<CollectionItem> & {
|
|
@@ -7,7 +7,7 @@ type ListboxRootProps$1 = ListboxRootProps<CollectionItem> & {
|
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/components/listbox/index.d.ts
|
|
10
|
-
declare const Listbox$1: Omit<typeof Listbox, "Root"> & {
|
|
10
|
+
declare const Listbox$1: typeof Listbox$2 & Omit<typeof Listbox, "Root"> & {
|
|
11
11
|
Root: typeof ListboxRoot;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
@@ -15,6 +15,8 @@ interface DataViewProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
15
15
|
//#region src/components/data-view/index.d.ts
|
|
16
16
|
/** One vessel, two layouts: a ledger or a lattice, paged with the
|
|
17
17
|
* pagination family's own parts. */
|
|
18
|
-
declare const DataView: import("svelte").Component<DataViewProps, {}, ""
|
|
18
|
+
declare const DataView: import("svelte").Component<DataViewProps, {}, ""> & {
|
|
19
|
+
Root: import("svelte").Component<DataViewProps, {}, "">;
|
|
20
|
+
};
|
|
19
21
|
//#endregion
|
|
20
22
|
export { DataViewProps as n, DataView as t };
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
//#region src/components/media-player/props.d.ts
|
|
2
|
+
interface MediaSourceOption {
|
|
3
|
+
src: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
}
|
|
6
|
+
interface MediaTextTrackOption {
|
|
7
|
+
src: string;
|
|
8
|
+
kind?: "subtitles" | "captions" | "descriptions" | "chapters" | "metadata";
|
|
9
|
+
label?: string;
|
|
10
|
+
srcLang?: string;
|
|
11
|
+
default?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface MediaPlayerProps {
|
|
14
|
+
label?: string;
|
|
15
|
+
src?: string;
|
|
16
|
+
sources?: MediaSourceOption[];
|
|
17
|
+
tracks?: MediaTextTrackOption[];
|
|
18
|
+
autoplay?: boolean;
|
|
19
|
+
loop?: boolean;
|
|
20
|
+
muted?: boolean;
|
|
21
|
+
preload?: "none" | "metadata" | "auto";
|
|
22
|
+
volume?: number;
|
|
23
|
+
playbackRate?: number;
|
|
24
|
+
playbackRates?: number[];
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
poster?: string;
|
|
27
|
+
playsInline?: boolean;
|
|
28
|
+
class?: string;
|
|
29
|
+
style?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
onplay?: (event: Event) => void;
|
|
32
|
+
onpause?: (event: Event) => void;
|
|
33
|
+
onended?: (event: Event) => void;
|
|
34
|
+
ontimeupdate?: (event: Event) => void;
|
|
35
|
+
onvolumechange?: (event: Event) => void;
|
|
36
|
+
onratechange?: (event: Event) => void;
|
|
37
|
+
onerror?: (event: Event) => void;
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/media-player/index.d.ts
|
|
42
|
+
/** Audio and video share one instrument: the same state, the same keys,
|
|
43
|
+
* and the same control rhythm, while each face keeps its native element's
|
|
44
|
+
* own semantics. The parts — Root, Stage, Media, Controls, PlayButton,
|
|
45
|
+
* Timeline, Time, MuteButton, Volume, Rate, Captions, PipButton,
|
|
46
|
+
* FullscreenButton. */
|
|
47
|
+
declare const Audio: import("svelte").Component<MediaPlayerProps, {}, ""> & {
|
|
48
|
+
Root: import("svelte").Component<MediaPlayerProps & {
|
|
49
|
+
children?: import("svelte").Snippet;
|
|
50
|
+
}, {}, "">;
|
|
51
|
+
Stage: import("svelte").Component<{
|
|
52
|
+
children?: import("svelte").Snippet;
|
|
53
|
+
}, {}, "">;
|
|
54
|
+
Media: import("svelte").Component<{
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
children?: import("svelte").Snippet;
|
|
57
|
+
}, {}, "">;
|
|
58
|
+
Controls: import("svelte").Component<{
|
|
59
|
+
children?: import("svelte").Snippet;
|
|
60
|
+
}, {}, "">;
|
|
61
|
+
PlayButton: import("svelte").Component<{
|
|
62
|
+
[key: string]: unknown;
|
|
63
|
+
label?: string;
|
|
64
|
+
}, {}, "">;
|
|
65
|
+
Timeline: import("svelte").Component<{
|
|
66
|
+
[key: string]: unknown;
|
|
67
|
+
label?: string;
|
|
68
|
+
}, {}, "">;
|
|
69
|
+
Time: import("svelte").Component<{
|
|
70
|
+
[key: string]: unknown;
|
|
71
|
+
}, {}, "">;
|
|
72
|
+
MuteButton: import("svelte").Component<{
|
|
73
|
+
[key: string]: unknown;
|
|
74
|
+
label?: string;
|
|
75
|
+
}, {}, "">;
|
|
76
|
+
Volume: import("svelte").Component<{
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
label?: string;
|
|
79
|
+
}, {}, "">;
|
|
80
|
+
Rate: import("svelte").Component<{
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
label?: string;
|
|
83
|
+
}, {}, "">;
|
|
84
|
+
};
|
|
85
|
+
declare const Video: import("svelte").Component<MediaPlayerProps, {}, ""> & {
|
|
86
|
+
Root: import("svelte").Component<MediaPlayerProps & {
|
|
87
|
+
children?: import("svelte").Snippet;
|
|
88
|
+
}, {}, "">;
|
|
89
|
+
Stage: import("svelte").Component<{
|
|
90
|
+
children?: import("svelte").Snippet;
|
|
91
|
+
}, {}, "">;
|
|
92
|
+
Media: import("svelte").Component<{
|
|
93
|
+
[key: string]: unknown;
|
|
94
|
+
children?: import("svelte").Snippet;
|
|
95
|
+
}, {}, "">;
|
|
96
|
+
Controls: import("svelte").Component<{
|
|
97
|
+
children?: import("svelte").Snippet;
|
|
98
|
+
}, {}, "">;
|
|
99
|
+
PlayButton: import("svelte").Component<{
|
|
100
|
+
[key: string]: unknown;
|
|
101
|
+
label?: string;
|
|
102
|
+
}, {}, "">;
|
|
103
|
+
Timeline: import("svelte").Component<{
|
|
104
|
+
[key: string]: unknown;
|
|
105
|
+
label?: string;
|
|
106
|
+
}, {}, "">;
|
|
107
|
+
Time: import("svelte").Component<{
|
|
108
|
+
[key: string]: unknown;
|
|
109
|
+
}, {}, "">;
|
|
110
|
+
MuteButton: import("svelte").Component<{
|
|
111
|
+
[key: string]: unknown;
|
|
112
|
+
label?: string;
|
|
113
|
+
}, {}, "">;
|
|
114
|
+
Volume: import("svelte").Component<{
|
|
115
|
+
[key: string]: unknown;
|
|
116
|
+
label?: string;
|
|
117
|
+
}, {}, "">;
|
|
118
|
+
Rate: import("svelte").Component<{
|
|
119
|
+
[key: string]: unknown;
|
|
120
|
+
label?: string;
|
|
121
|
+
}, {}, "">;
|
|
122
|
+
Captions: import("svelte").Component<{
|
|
123
|
+
[key: string]: unknown;
|
|
124
|
+
label?: string;
|
|
125
|
+
}, {}, "">;
|
|
126
|
+
PipButton: import("svelte").Component<{
|
|
127
|
+
[key: string]: unknown;
|
|
128
|
+
label?: string;
|
|
129
|
+
}, {}, "">;
|
|
130
|
+
FullscreenButton: import("svelte").Component<{
|
|
131
|
+
[key: string]: unknown;
|
|
132
|
+
label?: string;
|
|
133
|
+
}, {}, "">;
|
|
134
|
+
};
|
|
135
|
+
//#endregion
|
|
136
|
+
export { MediaTextTrackOption as a, MediaSourceOption as i, Video as n, MediaPlayerProps as r, Audio as t };
|
|
@@ -19,6 +19,8 @@ interface DynamicInputProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
19
19
|
/** A column of entry rows: one Input per line, each with a quiet remove
|
|
20
20
|
* seal, and an add row at the tail — the bound array stays the only
|
|
21
21
|
* truth. */
|
|
22
|
-
declare const DynamicInput: import("svelte").Component<DynamicInputProps, {}, "value"
|
|
22
|
+
declare const DynamicInput: import("svelte").Component<DynamicInputProps, {}, "value"> & {
|
|
23
|
+
Root: import("svelte").Component<DynamicInputProps, {}, "value">;
|
|
24
|
+
};
|
|
23
25
|
//#endregion
|
|
24
26
|
export { DynamicInputProps as n, DynamicInput as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { n as ImagePreview, t as ImageViewer$1 } from "./ImageViewer-DEMg26LY.mjs";
|
|
2
|
+
import { Dialog } from "./components/dialog/index.mjs";
|
|
3
|
+
import { Snippet } from "svelte";
|
|
4
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
5
|
+
//#region src/components/image-viewer/props.d.ts
|
|
6
|
+
interface ImageViewerProps extends HTMLAttributes<HTMLElement> {
|
|
7
|
+
src: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
/** The large image handed to the lightbox. */
|
|
10
|
+
width?: number | string;
|
|
11
|
+
/** The large image handed to the lightbox. */
|
|
12
|
+
height?: number | string;
|
|
13
|
+
/** The wrapped content that opens the lightbox. */
|
|
14
|
+
children?: Snippet;
|
|
15
|
+
/** Whether the lightbox is up. Bind it (`bind:open`) to control the
|
|
16
|
+
* viewer; left alone it keeps the state to itself. */
|
|
17
|
+
open?: boolean;
|
|
18
|
+
zoomable?: boolean;
|
|
19
|
+
/** The viewer's open state turned. */
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
}
|
|
22
|
+
interface ImageViewerPreviewProps extends Omit<HTMLAttributes<HTMLElement>, "children"> {
|
|
23
|
+
/** Visible beside the affordance over custom content. */
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Custom doorway content; omit it for the default curated icon. */
|
|
26
|
+
children?: Snippet;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/image-viewer/index.d.ts
|
|
30
|
+
declare const ImageViewer: typeof ImageViewer$1 & Omit<typeof Dialog, "Root"> & {
|
|
31
|
+
Root: (typeof Dialog)["Root"];
|
|
32
|
+
Preview: typeof ImagePreview;
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { ImageViewerPreviewProps as n, ImageViewerProps as r, ImageViewer as t };
|
|
@@ -16,6 +16,8 @@ interface AutoCompleteProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
16
16
|
/** Free text with suggestions: the reader types anything, the list
|
|
17
17
|
* narrows to help, and both a pick and a custom value end up in the
|
|
18
18
|
* same `value`. A preset of the combobox machinery. */
|
|
19
|
-
declare const AutoComplete: import("svelte").Component<AutoCompleteProps, {}, "value"
|
|
19
|
+
declare const AutoComplete: import("svelte").Component<AutoCompleteProps, {}, "value"> & {
|
|
20
|
+
Root: import("svelte").Component<AutoCompleteProps, {}, "value">;
|
|
21
|
+
};
|
|
20
22
|
//#endregion
|
|
21
23
|
export { AutoCompleteProps as n, AutoComplete as t };
|
|
@@ -13,6 +13,8 @@ interface VirtualListProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/components/virtual-list/index.d.ts
|
|
15
15
|
/** A ledger that only mounts the rows on stage. */
|
|
16
|
-
declare const VirtualList: import("svelte").Component<VirtualListProps, {}, ""
|
|
16
|
+
declare const VirtualList: import("svelte").Component<VirtualListProps, {}, ""> & {
|
|
17
|
+
Root: import("svelte").Component<VirtualListProps, {}, "">;
|
|
18
|
+
};
|
|
17
19
|
//#endregion
|
|
18
20
|
export { VirtualListProps as n, VirtualList as t };
|
|
@@ -15,6 +15,8 @@ interface CommentProps extends HTMLAttributes<HTMLElement> {
|
|
|
15
15
|
/** A voice on the record: the portrait hangs left (the avatar snippet),
|
|
16
16
|
* the body carries the byline from `author` and `datetime`, the ink is
|
|
17
17
|
* the children snippet, and the actions snippet is the row of answers. */
|
|
18
|
-
declare const Comment: import("svelte").Component<CommentProps, {}, ""
|
|
18
|
+
declare const Comment: import("svelte").Component<CommentProps, {}, ""> & {
|
|
19
|
+
Root: import("svelte").Component<CommentProps, {}, "">;
|
|
20
|
+
};
|
|
19
21
|
//#endregion
|
|
20
22
|
export { CommentProps as n, Comment as t };
|