@m3ui-vue/m3ui-vue 1.5.1 → 1.6.1
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/API.md +981 -63
- package/dist/{MButton-D_uxtJa-.js → MButton-OQ4wIERQ.js} +8 -9
- package/dist/MButton-OQ4wIERQ.js.map +1 -0
- package/dist/{MDialog-DT4KAPmn.js → MDialog-DYMnaBlt.js} +38 -44
- package/dist/MDialog-DYMnaBlt.js.map +1 -0
- package/dist/{MIcon-Bxh9j135.js → MIcon-DpajuUTJ.js} +2 -3
- package/dist/MIcon-DpajuUTJ.js.map +1 -0
- package/dist/{MIconButton-DoNotQ9v.js → MIconButton-BBggVwBV.js} +5 -6
- package/dist/MIconButton-BBggVwBV.js.map +1 -0
- package/dist/{MListItem-CwYrxpPZ.js → MListItem-D2cNUyzP.js} +217 -180
- package/dist/MListItem-D2cNUyzP.js.map +1 -0
- package/dist/{MLoadingIndicator-DhzECYRI.js → MLoadingIndicator-DWUj0BAB.js} +3 -4
- package/dist/MLoadingIndicator-DWUj0BAB.js.map +1 -0
- package/dist/{MMenuItem-Bih0h4-n.js → MMenuItem-BuxYoASE.js} +140 -170
- package/dist/MMenuItem-BuxYoASE.js.map +1 -0
- package/dist/{MProgressBar-BCoruxA-.js → MProgressBar-BWly1UKN.js} +3 -8
- package/dist/MProgressBar-BWly1UKN.js.map +1 -0
- package/dist/{MSeekBar-DQPF5FTp.js → MSeekBar-C4cn9RIF.js} +4 -5
- package/dist/MSeekBar-C4cn9RIF.js.map +1 -0
- package/dist/{MSegmentedButton-DL9JtJFX.js → MSegmentedButton-BEB4gXLA.js} +3 -4
- package/dist/MSegmentedButton-BEB4gXLA.js.map +1 -0
- package/dist/{MSlider-BvoMZTy9.js → MSlider-BIkA6DiE.js} +22 -23
- package/dist/MSlider-BIkA6DiE.js.map +1 -0
- package/dist/{MSpinner-CgcCQhS9.js → MSpinner-DZkXZJpc.js} +3 -4
- package/dist/MSpinner-DZkXZJpc.js.map +1 -0
- package/dist/{MTextField-BRntFeNR.js → MTextField-CNH-byir.js} +12 -16
- package/dist/MTextField-CNH-byir.js.map +1 -0
- package/dist/{MTooltip-YyF1CO75.js → MTooltip-Dd5g2zhh.js} +10 -12
- package/dist/MTooltip-Dd5g2zhh.js.map +1 -0
- package/dist/THIRD_PARTY_LICENSES.md +2 -2
- package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/{_useEscapeStack-CjndQhqg.js → _popupPosition-nL8SVKPK.js} +21 -4
- package/dist/_popupPosition-nL8SVKPK.js.map +1 -0
- package/dist/{_storageKeys-CYXsUBwK.js → _storageKeys-C4W_4xK4.js} +2 -3
- package/dist/_storageKeys-C4W_4xK4.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/barcode.js +1 -2
- package/dist/barcode.js.map +1 -1
- package/dist/chart.js +2 -4
- package/dist/chart.js.map +1 -1
- package/dist/code-editor.js +22 -23
- package/dist/code-editor.js.map +1 -1
- package/dist/{common-0dgrgaPL.js → common-kIb6A2Qu.js} +8 -37
- package/dist/common-kIb6A2Qu.js.map +1 -0
- package/dist/components/MAbsolute.vue.d.ts +5 -3
- package/dist/components/MAddressField.vue.d.ts +54 -0
- package/dist/components/MAlert.vue.d.ts +8 -6
- package/dist/components/MAppBar.vue.d.ts +9 -7
- package/dist/components/MAppBarWithSearch.vue.d.ts +15 -13
- package/dist/components/MAppLayout.vue.d.ts +13 -11
- package/dist/components/MAspectRatio.vue.d.ts +5 -3
- package/dist/components/MAudioPlayer.vue.d.ts +23 -21
- package/dist/components/MAudioRecorder.vue.d.ts +51 -0
- package/dist/components/MAutocomplete.vue.d.ts +1 -1
- package/dist/components/MAvailabilityCalendar.vue.d.ts +18 -16
- package/dist/components/MBadge.vue.d.ts +6 -4
- package/dist/components/MBar.vue.d.ts +14 -12
- package/dist/components/MBarcode.vue.d.ts +5 -3
- package/dist/components/MBeforeAfter.vue.d.ts +12 -10
- package/dist/components/MBodyMap.vue.d.ts +1 -1
- package/dist/components/MBottomAppBar.vue.d.ts +10 -8
- package/dist/components/MBottomSheet.vue.d.ts +8 -6
- package/dist/components/MBottomSheetScaffold.vue.d.ts +9 -7
- package/dist/components/MBox.vue.d.ts +6 -4
- package/dist/components/MButton.vue.d.ts +7 -5
- package/dist/components/MCameraCapture.vue.d.ts +51 -0
- package/dist/components/MCard.vue.d.ts +12 -10
- package/dist/components/MCenter.vue.d.ts +5 -3
- package/dist/components/MChatBubble.vue.d.ts +6 -4
- package/dist/components/MCheckbox.vue.d.ts +5 -3
- package/dist/components/MChip.vue.d.ts +9 -7
- package/dist/components/MCircleProgressBar.vue.d.ts +6 -4
- package/dist/components/MCodeEditor.vue.d.ts +5 -3
- package/dist/components/MCollapse.vue.d.ts +32 -0
- package/dist/components/MContainer.vue.d.ts +6 -4
- package/dist/components/MContextMenu.vue.d.ts +8 -6
- package/dist/components/MCopyButton.vue.d.ts +1 -1
- package/dist/components/MCountrySelect.vue.d.ts +41 -0
- package/dist/components/MCronField.vue.d.ts +26 -0
- package/dist/components/MDashboardGrid.vue.d.ts +65 -0
- package/dist/components/MDataTable.vue.d.ts +21 -19
- package/dist/components/MDialog.vue.d.ts +21 -19
- package/dist/components/MDiffViewer.vue.d.ts +56 -0
- package/dist/components/MDragHandle.vue.d.ts +1 -1
- package/dist/components/MDrawCanvas.vue.d.ts +5 -3
- package/dist/components/MDrawToolbar.vue.d.ts +7 -5
- package/dist/components/MEmptyState.vue.d.ts +5 -3
- package/dist/components/MExpansionPanel.vue.d.ts +32 -7
- package/dist/components/MExportButton.vue.d.ts +7 -5
- package/dist/components/MFab.vue.d.ts +11 -9
- package/dist/components/MFabMenu.vue.d.ts +3 -3
- package/dist/components/MFilterBuilder.vue.d.ts +22 -0
- package/dist/components/MFixed.vue.d.ts +5 -3
- package/dist/components/MFlex.vue.d.ts +7 -5
- package/dist/components/MFloorPlan.vue.d.ts +3 -3
- package/dist/components/MFloorPlanInspector.vue.d.ts +32 -30
- package/dist/components/MFloorPlanToolbar.vue.d.ts +2 -2
- package/dist/components/MFlow.vue.d.ts +4 -4
- package/dist/components/MFlowControls.vue.d.ts +6 -4
- package/dist/components/MFlowHandle.vue.d.ts +1 -1
- package/dist/components/MFlowNode.vue.d.ts +11 -9
- package/dist/components/MFooter.vue.d.ts +12 -10
- package/dist/components/MFullscreen.vue.d.ts +5 -3
- package/dist/components/MGantt.vue.d.ts +33 -31
- package/dist/components/MGanttControls.vue.d.ts +8 -6
- package/dist/components/MGrid.vue.d.ts +6 -4
- package/dist/components/MIcon.vue.d.ts +5 -0
- package/dist/components/MIconButton.vue.d.ts +1 -1
- package/dist/components/MImageCropper.vue.d.ts +14 -12
- package/dist/components/MInfiniteScroll.vue.d.ts +11 -9
- package/dist/components/MList.vue.d.ts +5 -3
- package/dist/components/MListGroup.vue.d.ts +7 -5
- package/dist/components/MListItem.vue.d.ts +21 -19
- package/dist/components/MListSubheader.vue.d.ts +5 -3
- package/dist/components/MLoadingOverlay.vue.d.ts +10 -8
- package/dist/components/MMap.vue.d.ts +14 -6
- package/dist/components/MMapCluster.vue.d.ts +80 -0
- package/dist/components/MMapControl.vue.d.ts +12 -10
- package/dist/components/MMapDraw.vue.d.ts +79 -0
- package/dist/components/MMapFeatureInfo.vue.d.ts +11 -9
- package/dist/components/MMapIdentify.vue.d.ts +9 -7
- package/dist/components/MMapLayers.vue.d.ts +13 -11
- package/dist/components/MMapMarker.vue.d.ts +7 -5
- package/dist/components/MMapPopup.vue.d.ts +5 -3
- package/dist/components/MMasonry.vue.d.ts +5 -3
- package/dist/components/MMentionField.vue.d.ts +102 -0
- package/dist/components/MMenu.vue.d.ts +12 -10
- package/dist/components/MMenuItem.vue.d.ts +11 -9
- package/dist/components/MMultiAutocomplete.vue.d.ts +1 -1
- package/dist/components/MMultiSelect.vue.d.ts +6 -4
- package/dist/components/MNavigationDrawer.vue.d.ts +14 -12
- package/dist/components/MNavigationRail.vue.d.ts +7 -5
- package/dist/components/MNotificationCenter.vue.d.ts +57 -0
- package/dist/components/MOdontogram.vue.d.ts +1 -1
- package/dist/components/MOrderBook.vue.d.ts +1 -1
- package/dist/components/MOverlay.vue.d.ts +5 -3
- package/dist/components/MPdfViewer.vue.d.ts +4 -4
- package/dist/components/MPhoneInput.vue.d.ts +11 -9
- package/dist/components/MPosKeypad.vue.d.ts +18 -16
- package/dist/components/MProgressBar.vue.d.ts +1 -1
- package/dist/components/MPullToRefresh.vue.d.ts +5 -3
- package/dist/components/MQRCode.vue.d.ts +7 -5
- package/dist/components/MQRScanner.vue.d.ts +52 -0
- package/dist/components/MQuiz.vue.d.ts +1 -1
- package/dist/components/MRadioGroup.vue.d.ts +1 -1
- package/dist/components/MReceipt.vue.d.ts +2 -2
- package/dist/components/MRelative.vue.d.ts +5 -3
- package/dist/components/MResourceTimeline.vue.d.ts +31 -29
- package/dist/components/MResponsive.vue.d.ts +5 -3
- package/dist/components/MResult.vue.d.ts +7 -5
- package/dist/components/MScrollable.vue.d.ts +7 -5
- package/dist/components/MSearchBar.vue.d.ts +13 -11
- package/dist/components/MSearchField.vue.d.ts +7 -5
- package/dist/components/MSection.vue.d.ts +11 -9
- package/dist/components/MSeekBar.vue.d.ts +3 -3
- package/dist/components/MSelect.vue.d.ts +1 -1
- package/dist/components/MShader.vue.d.ts +11 -9
- package/dist/components/MShortNavigationBar.vue.d.ts +1 -1
- package/dist/components/MSideSheet.vue.d.ts +9 -7
- package/dist/components/MSimpleCarousel.vue.d.ts +2 -2
- package/dist/components/MSkeleton.vue.d.ts +2 -2
- package/dist/components/MSlider.vue.d.ts +3 -3
- package/dist/components/MSparkline.vue.d.ts +1 -1
- package/dist/components/MSplitButton.vue.d.ts +7 -5
- package/dist/components/MSplitter.vue.d.ts +9 -7
- package/dist/components/MSpotlightSearch.vue.d.ts +1 -1
- package/dist/components/MStack.vue.d.ts +8 -6
- package/dist/components/MStatCard.vue.d.ts +5 -3
- package/dist/components/MStepper.vue.d.ts +5 -3
- package/dist/components/MSticky.vue.d.ts +5 -3
- package/dist/components/MSubtitle.vue.d.ts +6 -4
- package/dist/components/MSwipeToDismiss.vue.d.ts +11 -9
- package/dist/components/MTable.vue.d.ts +17 -15
- package/dist/components/MText.vue.d.ts +5 -3
- package/dist/components/MTextField.vue.d.ts +6 -4
- package/dist/components/MTimePickerModal.vue.d.ts +1 -1
- package/dist/components/MTimezoneSelect.vue.d.ts +39 -0
- package/dist/components/MTitle.vue.d.ts +6 -4
- package/dist/components/MToggleButton.vue.d.ts +5 -3
- package/dist/components/MToolbar.vue.d.ts +24 -22
- package/dist/components/MTooltip.vue.d.ts +10 -8
- package/dist/components/MTopAppBar.vue.d.ts +22 -20
- package/dist/components/MTour.vue.d.ts +28 -26
- package/dist/components/MTransition.vue.d.ts +5 -3
- package/dist/components/MTree.vue.d.ts +6 -4
- package/dist/components/MTreeTable.vue.d.ts +21 -19
- package/dist/components/MTypewriter.vue.d.ts +6 -4
- package/dist/components/MVideoPlayer.vue.d.ts +1 -1
- package/dist/components/MVirtualTable.vue.d.ts +8 -6
- package/dist/components/_MFilterGroup.vue.d.ts +17 -0
- package/dist/components/_MMapLayerItem.vue.d.ts +8 -6
- package/dist/components/_MPdfPage.vue.d.ts +2 -2
- package/dist/components/_MToolbarFab.vue.d.ts +5 -3
- package/dist/components/_MTreeNode.vue.d.ts +13 -11
- package/dist/composables/_caretPosition.d.ts +6 -0
- package/dist/composables/_useCamera.d.ts +16 -0
- package/dist/composables/_useFollowAnchor.d.ts +15 -0
- package/dist/composables/cron.d.ts +29 -0
- package/dist/composables/dashboardLayout.d.ts +28 -0
- package/dist/composables/filterBuilder.d.ts +55 -0
- package/dist/composables/mapAdapters.d.ts +6 -1
- package/dist/composables/mapSearch.d.ts +1 -0
- package/dist/composables/textDiff.d.ts +24 -0
- package/dist/composables/useLocale.d.ts +108 -0
- package/dist/composables/useMap.d.ts +8 -0
- package/dist/{dist-CrjSW5DN.js → dist-Bj5kEq8G.js} +4 -6
- package/dist/dist-Bj5kEq8G.js.map +1 -0
- package/dist/draw.js +62 -82
- package/dist/draw.js.map +1 -1
- package/dist/{emoji-names-de-BphO5XpV.js → emoji-names-de-Cu3OSpp6.js} +2 -3
- package/dist/emoji-names-de-Cu3OSpp6.js.map +1 -0
- package/dist/{emoji-names-en-9ZvMRvzi.js → emoji-names-en-BNX1pM9h.js} +2 -3
- package/dist/emoji-names-en-BNX1pM9h.js.map +1 -0
- package/dist/{emoji-names-es-DvfWU3Pj.js → emoji-names-es-C_Dafg4D.js} +2 -3
- package/dist/emoji-names-es-C_Dafg4D.js.map +1 -0
- package/dist/{emoji-names-fr-B-jhUlsP.js → emoji-names-fr-D4HTMFuM.js} +2 -3
- package/dist/emoji-names-fr-D4HTMFuM.js.map +1 -0
- package/dist/{emoji-names-ja-l8cMFJo1.js → emoji-names-ja-BCql-Sj6.js} +2 -3
- package/dist/emoji-names-ja-BCql-Sj6.js.map +1 -0
- package/dist/{emoji-names-ko-YP-o9G0c.js → emoji-names-ko-CT8L52nn.js} +2 -3
- package/dist/emoji-names-ko-CT8L52nn.js.map +1 -0
- package/dist/{emoji-names-pt-DGj_Js4M.js → emoji-names-pt-DHiwPiL-.js} +2 -3
- package/dist/emoji-names-pt-DHiwPiL-.js.map +1 -0
- package/dist/{emoji-names-zh-Dzecwtw_.js → emoji-names-zh-L3FXVief.js} +2 -3
- package/dist/emoji-names-zh-L3FXVief.js.map +1 -0
- package/dist/flow.js +351 -374
- package/dist/flow.js.map +1 -1
- package/dist/{flowPaths-CcWOKY4Z.js → flowPaths-BaH7yaUM.js} +3 -8
- package/dist/flowPaths-BaH7yaUM.js.map +1 -0
- package/dist/gantt.js +272 -333
- package/dist/gantt.js.map +1 -1
- package/dist/index.d.ts +25 -0
- package/dist/locales/index.js +750 -2
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +9988 -7215
- package/dist/m3ui.js.map +1 -1
- package/dist/map.d.ts +6 -1
- package/dist/map.js +1600 -713
- package/dist/map.js.map +1 -1
- package/dist/markdown.js +3 -4
- package/dist/markdown.js.map +1 -1
- package/dist/{material-color-utilities-C_iikgRm.js → material-color-utilities-CEFytLsr.js} +15 -32
- package/dist/material-color-utilities-CEFytLsr.js.map +1 -0
- package/dist/media.js +80 -94
- package/dist/media.js.map +1 -1
- package/dist/{motion-DZiXG09o.js → motion-BcejVTeX.js} +2 -3
- package/dist/motion-BcejVTeX.js.map +1 -0
- package/dist/pdf.js +103 -115
- package/dist/pdf.js.map +1 -1
- package/dist/qrcode.js +1 -2
- package/dist/qrcode.js.map +1 -1
- package/dist/rich-text-editor.js +33 -34
- package/dist/rich-text-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/terminal.js +2 -3
- package/dist/terminal.js.map +1 -1
- package/dist/{useLocale-DLcG3qPC.js → useLocale-DaVSTdm0.js} +109 -3
- package/dist/useLocale-DaVSTdm0.js.map +1 -0
- package/dist/{useThemeTokens-DQQcaWbE.js → useThemeTokens-DyAdPQB0.js} +6 -10
- package/dist/useThemeTokens-DyAdPQB0.js.map +1 -0
- package/package.json +32 -32
- package/src/__tests__/MAddressField.test.ts +149 -0
- package/src/__tests__/MAudioRecorder.test.ts +125 -0
- package/src/__tests__/MCameraCapture.test.ts +154 -0
- package/src/__tests__/MCountrySelect.test.ts +67 -0
- package/src/__tests__/MCronField.test.ts +100 -0
- package/src/__tests__/MDashboardGrid.test.ts +122 -0
- package/src/__tests__/MDiffViewer.test.ts +68 -0
- package/src/__tests__/MExpansionPanel.test.ts +107 -0
- package/src/__tests__/MFab.test.ts +10 -1
- package/src/__tests__/MFilterBuilder.test.ts +130 -0
- package/src/__tests__/MMap.test.ts +16 -1
- package/src/__tests__/MMapCluster.test.ts +127 -0
- package/src/__tests__/MMapDraw.test.ts +188 -0
- package/src/__tests__/MMapLayers.test.ts +56 -0
- package/src/__tests__/MMentionField.test.ts +163 -0
- package/src/__tests__/MNotificationCenter.test.ts +94 -0
- package/src/__tests__/_fakeMaplibre.ts +16 -3
- package/src/__tests__/attrsFallthrough.test.ts +4 -0
- package/src/__tests__/cron.test.ts +68 -0
- package/src/__tests__/dashboardLayout.test.ts +45 -0
- package/src/__tests__/filterBuilder.test.ts +91 -0
- package/src/__tests__/followAnchor.test.ts +162 -0
- package/src/__tests__/ssr.test.ts +3 -0
- package/src/__tests__/textDiff.test.ts +37 -0
- package/src/components/MAddressField.vue +301 -0
- package/src/components/MAudioRecorder.vue +334 -0
- package/src/components/MAutocomplete.vue +3 -7
- package/src/components/MCameraCapture.vue +156 -0
- package/src/components/MCollapse.vue +91 -0
- package/src/components/MColorPicker.vue +4 -8
- package/src/components/MCountrySelect.vue +89 -0
- package/src/components/MCronField.vue +251 -0
- package/src/components/MDashboardGrid.vue +382 -0
- package/src/components/MDatePicker.vue +10 -7
- package/src/components/MDateRangePicker.vue +10 -7
- package/src/components/MDiffViewer.vue +234 -0
- package/src/components/MExpansionPanel.vue +56 -48
- package/src/components/MFilterBuilder.vue +47 -0
- package/src/components/MMap.vue +12 -3
- package/src/components/MMapCluster.vue +295 -0
- package/src/components/MMapDraw.vue +601 -0
- package/src/components/MMapMeasure.vue +3 -1
- package/src/components/MMapSearch.vue +1 -9
- package/src/components/MMentionField.vue +373 -0
- package/src/components/MMultiAutocomplete.vue +3 -7
- package/src/components/MMultiSelect.vue +3 -7
- package/src/components/MNotificationCenter.vue +252 -0
- package/src/components/MPhoneInput.vue +3 -10
- package/src/components/MQRScanner.vue +177 -0
- package/src/components/MSelect.vue +3 -7
- package/src/components/MTimePicker.vue +10 -7
- package/src/components/MTimezoneSelect.vue +116 -0
- package/src/components/_MFilterGroup.vue +210 -0
- package/src/composables/_caretPosition.ts +44 -0
- package/src/composables/_useCamera.ts +66 -0
- package/src/composables/_useFollowAnchor.ts +109 -0
- package/src/composables/cron.ts +179 -0
- package/src/composables/dashboardLayout.ts +94 -0
- package/src/composables/filterBuilder.ts +195 -0
- package/src/composables/mapAdapters.ts +29 -15
- package/src/composables/mapSearch.ts +10 -0
- package/src/composables/textDiff.ts +106 -0
- package/src/composables/useLocale.ts +215 -0
- package/src/composables/useMap.ts +17 -0
- package/src/composables/useMapLayers.ts +4 -1
- package/src/index.ts +25 -0
- package/src/locales/de.ts +107 -0
- package/src/locales/es.ts +107 -0
- package/src/locales/fr.ts +107 -0
- package/src/locales/ja.ts +107 -0
- package/src/locales/ko.ts +107 -0
- package/src/locales/pt.ts +107 -0
- package/src/locales/zh.ts +107 -0
- package/src/map.ts +6 -1
- package/dist/MButton-D_uxtJa-.js.map +0 -1
- package/dist/MDialog-DT4KAPmn.js.map +0 -1
- package/dist/MIcon-Bxh9j135.js.map +0 -1
- package/dist/MIconButton-DoNotQ9v.js.map +0 -1
- package/dist/MListItem-CwYrxpPZ.js.map +0 -1
- package/dist/MLoadingIndicator-DhzECYRI.js.map +0 -1
- package/dist/MMenuItem-Bih0h4-n.js.map +0 -1
- package/dist/MProgressBar-BCoruxA-.js.map +0 -1
- package/dist/MSeekBar-DQPF5FTp.js.map +0 -1
- package/dist/MSegmentedButton-DL9JtJFX.js.map +0 -1
- package/dist/MSlider-BvoMZTy9.js.map +0 -1
- package/dist/MSpinner-CgcCQhS9.js.map +0 -1
- package/dist/MTextField-BRntFeNR.js.map +0 -1
- package/dist/MTooltip-YyF1CO75.js.map +0 -1
- package/dist/_storageKeys-CYXsUBwK.js.map +0 -1
- package/dist/_useEscapeStack-CjndQhqg.js.map +0 -1
- package/dist/common-0dgrgaPL.js.map +0 -1
- package/dist/dist-CrjSW5DN.js.map +0 -1
- package/dist/emoji-names-de-BphO5XpV.js.map +0 -1
- package/dist/emoji-names-en-9ZvMRvzi.js.map +0 -1
- package/dist/emoji-names-es-DvfWU3Pj.js.map +0 -1
- package/dist/emoji-names-fr-B-jhUlsP.js.map +0 -1
- package/dist/emoji-names-ja-l8cMFJo1.js.map +0 -1
- package/dist/emoji-names-ko-YP-o9G0c.js.map +0 -1
- package/dist/emoji-names-pt-DGj_Js4M.js.map +0 -1
- package/dist/emoji-names-zh-Dzecwtw_.js.map +0 -1
- package/dist/flowPaths-CcWOKY4Z.js.map +0 -1
- package/dist/material-color-utilities-C_iikgRm.js.map +0 -1
- package/dist/motion-DZiXG09o.js.map +0 -1
- package/dist/useLocale-DLcG3qPC.js.map +0 -1
- package/dist/useThemeTokens-DQQcaWbE.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./MIcon-
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "./MSpinner-DZkXZJpc.js";
|
|
2
|
+
import { t } from "./MIcon-DpajuUTJ.js";
|
|
3
|
+
import { p as n } from "./MIconButton-BBggVwBV.js";
|
|
4
4
|
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, unref as m, withCtx as h, withDirectives as g } from "vue";
|
|
5
|
-
|
|
5
|
+
// src/components/MButton.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var _ = "relative inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:shadow-none disabled:text-on-surface/38 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", v = /* @__PURE__ */ c({
|
|
7
7
|
__name: "MButton",
|
|
8
8
|
props: {
|
|
@@ -125,7 +125,7 @@ var _ = "relative inline-flex items-center justify-center font-medium whitespace
|
|
|
125
125
|
style: u(T.value)
|
|
126
126
|
}, {
|
|
127
127
|
default: h(() => [
|
|
128
|
-
c.iconPos === "leading" ? (d(), s(r, { key: 0 }, [c.loading ? (d(), a(
|
|
128
|
+
c.iconPos === "leading" ? (d(), s(r, { key: 0 }, [c.loading ? (d(), a(e, {
|
|
129
129
|
key: 0,
|
|
130
130
|
size: j.value
|
|
131
131
|
}, null, 8, ["size"])) : c.icon ? (d(), a(t, {
|
|
@@ -139,7 +139,7 @@ var _ = "relative inline-flex items-center justify-center font-medium whitespace
|
|
|
139
139
|
"filled"
|
|
140
140
|
])) : o("", !0)], 64)) : o("", !0),
|
|
141
141
|
f(i.$slots, "default"),
|
|
142
|
-
c.iconPos === "trailing" ? (d(), s(r, { key: 1 }, [c.loading ? (d(), a(
|
|
142
|
+
c.iconPos === "trailing" ? (d(), s(r, { key: 1 }, [c.loading ? (d(), a(e, {
|
|
143
143
|
key: 0,
|
|
144
144
|
size: j.value
|
|
145
145
|
}, null, 8, ["size"])) : c.icon ? (d(), a(t, {
|
|
@@ -160,13 +160,12 @@ var _ = "relative inline-flex items-center justify-center font-medium whitespace
|
|
|
160
160
|
"disabled",
|
|
161
161
|
"class",
|
|
162
162
|
"style"
|
|
163
|
-
])), [[m(
|
|
163
|
+
])), [[m(n), {
|
|
164
164
|
disabled: c.disabled || c.loading,
|
|
165
165
|
color: c.rippleColor
|
|
166
166
|
}]]);
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
//#endregion
|
|
170
169
|
export { v as t };
|
|
171
170
|
|
|
172
|
-
//# sourceMappingURL=MButton-
|
|
171
|
+
//# sourceMappingURL=MButton-OQ4wIERQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MButton-OQ4wIERQ.js","names":["_withDirectives","_openBlock","_createBlock","_resolveDynamicComponent","_normalizeClass","_normalizeStyle","_withCtx","_createElementBlock","_Fragment","MSpinner","MIcon","_renderSlot","_unref","MSpinner_default","vRipple","base","MButton_default","defineComponent","NAMED_COLORS","props","__props","tag","computed","isCustomColor","customStyle","isError","ROLE","style","c","disabledContainerClasses","sizeMap","s","sizeClasses","iconSize","spinnerSize","px","shapeClass","variantClasses","err","withDirectives","openBlock","createBlock","resolveDynamicComponent","normalizeClass","normalizeStyle","withCtx","createElementBlock","Fragment","MIcon_default","createCommentVNode","renderSlot","_ctx","unref"],"sources":["../src/components/MButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The standard M3 button — five variants, five expressive size tiers, and either color.\n *\n * @slot default The button's label.\n */\nimport { computed } from 'vue'\nimport MSpinner from './MSpinner.vue'\nimport MIcon from './MIcon.vue'\nimport { vRipple } from '../directives/vRipple'\n\nconst NAMED_COLORS = ['primary', 'error'] as const\ntype NamedColor = (typeof NAMED_COLORS)[number]\n\nconst props = withDefaults(\n defineProps<{\n /** Visual style of the button */\n variant?: 'filled' | 'tonal' | 'outlined' | 'text' | 'elevated'\n /**\n * Named semantic color ('primary' | 'error') OR any CSS color string\n * ('red', '#e91e63', 'oklch(0.6 0.2 0)', …).\n * When a CSS color is passed, --color-primary is overridden for this button.\n */\n color?: string\n /** HTML button type */\n type?: 'button' | 'submit' | 'reset'\n /** Disables interaction */\n disabled?: boolean\n /** Shows a spinner and disables the button */\n loading?: boolean\n /** Material Symbol icon name shown next to the label */\n icon?: string\n /** Draw the icon filled (Material Symbols' FILL axis), e.g. a starred star or a play icon */\n iconFilled?: boolean\n /** Which side of the label the icon renders on */\n // Which side of the label `icon` renders on. Real M3 buttons support both via\n // `ButtonDefaults.contentPaddingFor(hasStartIcon/hasEndIcon)` — padding ends up identical\n // either way at every tier, so this only changes render order, not spacing.\n iconPos?: 'leading' | 'trailing'\n /**\n * M3's 5-tier expressive button sizing (xs: 32px, sm: 40px, md: 56px, lg: 96px, xl: 136px) — lg/xl are\n * meant for hero-style prominent buttons, not everyday UI\n */\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'\n /**\n * Button shape — rounded (pill, always) or squared (corner radius scales with size: 12px xs/sm, 16px md,\n * 28px lg/xl)\n */\n shape?: 'rounded' | 'squared'\n /** Vue Router destination — renders as RouterLink instead of button */\n to?: string | Record<string, any>\n /** Any CSS color for the press ripple; defaults to the button's content color */\n rippleColor?: string\n /**\n * Label and icon color, over what the variant and `color` give: an M3 role (`on-surface` for a neutral text\n * button, `on-primary-container`…) or any CSS color (`#000` on a white filled button). Disabled buttons keep\n * their own\n */\n contentColor?: string\n }>(),\n {\n variant: 'filled',\n color: 'primary',\n type: 'button',\n disabled: false,\n loading: false,\n iconPos: 'leading',\n size: 'sm',\n shape: 'rounded',\n },\n)\n\nconst tag = computed(() => props.to ? 'RouterLink' : 'button')\n\nconst isCustomColor = computed(\n () => !!props.color && !(NAMED_COLORS as readonly string[]).includes(props.color),\n)\n\nconst customStyle = computed(() => {\n if (!isCustomColor.value) return undefined\n return {\n '--color-primary': props.color,\n '--color-on-primary': '#ffffff',\n '--color-primary-container': props.color + '33',\n '--color-on-primary-container': props.color,\n }\n})\n\nconst isError = computed(() => props.color === 'error')\n\n// Color-role names (`on-surface`, `secondary-container`…) read the theme's token; anything else is a CSS color\nconst ROLE = /^(on-)?(primary|secondary|tertiary|error|surface|surface-variant|inverse-surface|inverse-primary)(-container|-variant)?$/\nconst style = computed(() => {\n const c = props.contentColor\n if (!c || props.disabled || props.loading) return customStyle.value\n return { ...customStyle.value, color: ROLE.test(c) ? `var(--color-${c})` : c }\n})\n\nconst base =\n 'relative inline-flex items-center justify-center font-medium ' +\n 'whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer ' +\n 'disabled:cursor-not-allowed disabled:shadow-none disabled:text-on-surface/38 ' +\n \"before:content-[''] before:pointer-events-none before:absolute before:inset-0 \" +\n 'before:bg-current before:opacity-0 before:transition-opacity before:duration-150 ' +\n 'enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]'\n\n// M3 disabled tokens: container at 10% on-surface opacity (DisabledContainerOpacity, same\n// across Filled/Tonal/Elevated), content/label always at 38% on-surface (handled in `base`\n// above, applies to every variant including text/elevated which have no container). The\n// outlined border uses the SAME color role as its enabled border (OutlineVariant, not\n// on-surface) just dimmed to that 10% too — see `variantClasses`' outlined case below for\n// why the enabled color is also outline-variant, not outline.\nconst disabledContainerClasses = computed(() => {\n switch (props.variant) {\n case 'filled':\n case 'tonal':\n case 'elevated':\n return 'disabled:bg-on-surface/10'\n case 'outlined':\n return isError.value ? 'disabled:border-error/10' : 'disabled:border-outline-variant/10'\n default:\n return ''\n }\n})\n\n/*\n * M3's newer 5-tier \"expressive\" button sizing (Button{XSmall,Small,Medium,Large,\n * XLarge}Tokens.kt + Button.kt's size-variant overloads — @ExperimentalMaterial3ExpressiveApi\n * in Compose, but this `size` prop is deliberately implementing exactly that system, same\n * as MFabMenu/MLoadingIndicator already do for other Expressive-only components). Content\n * padding is IDENTICAL whether or not an icon is present at every tier in the default\n * (non \"precision pointer\") mode — e.g. `IconMediumLeadingPadding = MediumLeadingPadding`\n * verbatim in the real source — so there's deliberately no separate icon-vs-no-icon padding\n * split here, unlike the old version of this file which had one (and got the values wrong\n * in both directions). `gap` between icon and label also varies by tier (IconLabelSpace),\n * not a flat value for every size.\n */\nconst sizeMap = {\n xs: { h: 'h-8', text: 'text-label-large', icon: 20, spinner: 16, gap: 'gap-1', px: 'px-3', pxText: 'px-2', squareRadius: 'rounded-md' },\n sm: { h: 'h-10', text: 'text-label-large', icon: 20, spinner: 16, gap: 'gap-2', px: 'px-4', pxText: 'px-3', squareRadius: 'rounded-md' },\n md: { h: 'h-14', text: 'text-title-medium', icon: 24, spinner: 18, gap: 'gap-2', px: 'px-6', pxText: 'px-3', squareRadius: 'rounded-lg' },\n lg: { h: 'h-24', text: 'text-headline-small', icon: 32, spinner: 26, gap: 'gap-3', px: 'px-12', pxText: 'px-4', squareRadius: 'rounded-xl' },\n xl: { h: 'h-[136px]', text: 'text-headline-large', icon: 40, spinner: 34, gap: 'gap-4', px: 'px-16', pxText: 'px-4', squareRadius: 'rounded-xl' },\n}\n\nconst s = computed(() => sizeMap[props.size] ?? sizeMap.sm)\nconst sizeClasses = computed(() => `${s.value.h} ${s.value.text} ${s.value.gap}`)\nconst iconSize = computed(() => s.value.icon)\nconst spinnerSize = computed(() => s.value.spinner)\n\nconst px = computed(() => props.variant === 'text' ? s.value.pxText : s.value.px)\n\n// Squared shape radius scales with size, matching each tier's own ContainerShapeSquare\n// token (ButtonXSmallTokens/ButtonSmallTokens use CornerMedium=12px, ButtonMediumTokens\n// CornerLarge=16px, ButtonLargeTokens/ButtonXLargeTokens CornerExtraLarge=28px) — the\n// pill (ContainerShapeRound) is CornerFull at every tier, so that half doesn't vary.\nconst shapeClass = computed(() => props.shape === 'squared' ? s.value.squareRadius : 'rounded-full')\n\nconst variantClasses = computed(() => {\n const err = isError.value\n switch (props.variant) {\n case 'filled':\n return err\n ? 'bg-error text-on-error enabled:hover:shadow-elevation-1 enabled:active:shadow-none'\n : 'bg-primary text-on-primary enabled:hover:shadow-elevation-1 enabled:active:shadow-none'\n case 'tonal':\n return err\n ? 'bg-error-container text-on-error-container enabled:hover:shadow-elevation-1 enabled:active:shadow-none'\n : 'bg-secondary-container text-on-secondary-container enabled:hover:shadow-elevation-1 enabled:active:shadow-none'\n case 'elevated':\n return err\n ? 'bg-surface-container-low text-error shadow-elevation-1 enabled:hover:shadow-elevation-2'\n : 'bg-surface-container-low text-primary shadow-elevation-1 enabled:hover:shadow-elevation-2'\n case 'outlined':\n // OutlinedButtonTokens.OutlineColor = ColorSchemeKeyTokens.OutlineVariant, not Outline\n return err\n ? 'border border-error text-error'\n : 'border border-outline-variant text-primary'\n case 'text':\n return err\n ? 'text-error'\n : 'text-primary'\n default:\n return ''\n }\n})\n</script>\n\n<template>\n <component\n :is=\"tag\"\n :to=\"to || undefined\"\n :type=\"to ? undefined : type\"\n :disabled=\"disabled || loading\"\n :class=\"[base, shapeClass, sizeClasses, px, variantClasses, disabledContainerClasses]\"\n :style=\"style\"\n v-ripple=\"{ disabled: disabled || loading, color: rippleColor }\"\n >\n <template v-if=\"iconPos === 'leading'\">\n <MSpinner v-if=\"loading\" :size=\"spinnerSize\" />\n <MIcon v-else-if=\"icon\" :name=\"icon\" :size=\"iconSize\" :filled=\"iconFilled\" />\n </template>\n <slot />\n <template v-if=\"iconPos === 'trailing'\">\n <MSpinner v-if=\"loading\" :size=\"spinnerSize\" />\n <MIcon v-else-if=\"icon\" :name=\"icon\" :size=\"iconSize\" :filled=\"iconFilled\" />\n </template>\n </component>\n</template>\n"],"mappings":";;;;;AAkGA,IAAMe,IACJ,8e;;;;;;;;;;;;;;;;;;;;;;;;EAxFF,IAAMG,IAAe,CAAC,WAAW,OAAO,GAGlCC,IAAQC,GA0DRC,IAAMC,QAAeH,EAAM,KAAK,eAAe,QAAQ,GAEvDI,IAAgBD,QACd,CAAC,CAACH,EAAM,SAAS,CAAED,EAAmC,SAASC,EAAM,KAAK,CAClF,GAEMK,IAAcF,QAAe;GACjC,IAAKC,EAAc,OACnB,OAAO;IACL,mBAAmBJ,EAAM;IACzB,sBAAsB;IACtB,6BAA6BA,EAAM,QAAQ;IAC3C,gCAAgCA,EAAM;GACxC;EACF,CAAC,GAEKM,IAAUH,QAAeH,EAAM,UAAU,OAAO,GAGhDO,IAAO,4HACPC,IAAQL,QAAe;GAC3B,IAAMM,IAAIT,EAAM;GAEhB,OADI,CAACS,KAAKT,EAAM,YAAYA,EAAM,UAAgBK,EAAY,QACvD;IAAE,GAAGA,EAAY;IAAO,OAAOE,EAAK,KAAKE,CAAC,IAAI,eAAeA,EAAE,KAAKA;GAAE;EAC/E,CAAC,GAgBKC,IAA2BP,QAAe;GAC9C,QAAQH,EAAM,SAAd;IACE,KAAK;IACL,KAAK;IACL,KAAK,YACH,OAAO;IACT,KAAK,YACH,OAAOM,EAAQ,QAAQ,6BAA6B;IACtD,SACE,OAAO;GACX;EACF,CAAC,GAcKK,IAAU;GACd,IAAI;IAAE,GAAG;IAAO,MAAM;IAAoB,MAAM;IAAI,SAAS;IAAI,KAAK;IAAS,IAAI;IAAQ,QAAQ;IAAQ,cAAc;GAAa;GACtI,IAAI;IAAE,GAAG;IAAQ,MAAM;IAAoB,MAAM;IAAI,SAAS;IAAI,KAAK;IAAS,IAAI;IAAQ,QAAQ;IAAQ,cAAc;GAAa;GACvI,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J,EAAA;IAAaG,EAAA;IAAIE,EAAA;IAAgBR,EAAA;GAAwB,CAAA;GACnF,OAAKxB,EAAEsB,EAAA,KAAK;;GAGb,SAAArB,QAGW;IAHKc,EAAA,YAAO,aAAvBnB,EAAA,GAAAM,EAGWC,GAAA,EAAA,KAAA,EAAA,GAAA,CAFOY,EAAA,WAAhBnB,EAAA,GAAAC,EAA+CO,GAAA;;KAArB,MAAMyB,EAAA;I,yBACdd,EAAA,QAAlBnB,EAAA,GAAAC,EAA6EQ,GAAA;;KAApD,MAAMU,EAAA;KAAO,MAAMa,EAAA;KAAW,QAAQb,EAAA;;;;;;IAEjET,EAAQwC,EAAA,QAAA,SAAA;IACQ/B,EAAA,YAAO,cAAvBnB,EAAA,GAAAM,EAGWC,GAAA,EAAA,KAAA,EAAA,GAAA,CAFOY,EAAA,WAAhBnB,EAAA,GAAAC,EAA+CO,GAAA;;KAArB,MAAMyB,EAAA;I,yBACdd,EAAA,QAAlBnB,EAAA,GAAAC,EAA6EQ,GAAA;;KAApD,MAAMU,EAAA;KAAO,MAAMa,EAAA;KAAW,QAAQb,EAAA;;;;;;;;;;;;;;E,MAT3C,CAAAR,EAAAE,CAAA,GAAA;GAAA,UAAAM,EAAA,YAAYA,EAAA;GAAO,OAASA,EAAA;EAAW,CAAA,C"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { t as r } from "./
|
|
1
|
+
import { t as e } from "./MIconButton-BBggVwBV.js";
|
|
2
|
+
import { i as t } from "./useLocale-DaVSTdm0.js";
|
|
3
|
+
import { r as n } from "./_popupPosition-nL8SVKPK.js";
|
|
4
|
+
import { t as r } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
5
5
|
import { Fragment as i, Teleport as a, Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, getCurrentInstance as h, mergeProps as g, nextTick as _, normalizeClass as v, onBeforeUnmount as y, onUnmounted as b, openBlock as x, ref as S, renderSlot as C, toDisplayString as w, unref as T, useId as E, watch as D, withCtx as O, withModifiers as k } from "vue";
|
|
6
|
-
|
|
6
|
+
// src/composables/_useScrollLock.ts
|
|
7
7
|
var A = 0, j = "";
|
|
8
8
|
function M() {
|
|
9
9
|
A++ === 0 && (j = document.body.style.overflow, document.body.style.overflow = "hidden");
|
|
@@ -14,12 +14,11 @@ function N() {
|
|
|
14
14
|
function P(e) {
|
|
15
15
|
let t = !1;
|
|
16
16
|
function n(e) {
|
|
17
|
-
typeof document
|
|
17
|
+
typeof document < "u" && e !== t && (t = e, e ? M() : N());
|
|
18
18
|
}
|
|
19
19
|
return e && D(e, (e) => n(!!e), { immediate: !0 }), h() && y(() => n(!1)), { set: n };
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
//#region src/components/MDialog.vue?vue&type=script&setup=true&lang.ts
|
|
21
|
+
// src/components/MDialog.vue?vue&type=script&setup=true&lang.ts
|
|
23
22
|
var F = ["aria-labelledby", "aria-label"], I = {
|
|
24
23
|
key: 0,
|
|
25
24
|
class: "min-h-0 overflow-y-auto rounded-[inherit]"
|
|
@@ -47,7 +46,7 @@ var F = ["aria-labelledby", "aria-label"], I = {
|
|
|
47
46
|
}, K = {
|
|
48
47
|
key: 2,
|
|
49
48
|
class: "flex-1 overflow-y-auto px-6 py-4 text-body-medium text-on-surface-variant"
|
|
50
|
-
}, q = /*#__PURE__*/
|
|
49
|
+
}, q = /*#__PURE__*/ r(/* @__PURE__ */ m({
|
|
51
50
|
inheritAttrs: !1,
|
|
52
51
|
__name: "MDialog",
|
|
53
52
|
props: {
|
|
@@ -74,8 +73,8 @@ var F = ["aria-labelledby", "aria-label"], I = {
|
|
|
74
73
|
}
|
|
75
74
|
},
|
|
76
75
|
emits: ["update:modelValue"],
|
|
77
|
-
setup(
|
|
78
|
-
let h =
|
|
76
|
+
setup(r, { emit: m }) {
|
|
77
|
+
let h = r, y = t(), A = (e) => /^-?[\d.]+[a-z%]*$|^(calc|min|max|clamp|var)\(/i.test(e.trim()), j = s(() => [h.maxWidth, h.maxHeight].filter((e) => !A(e))), M = s(() => ({
|
|
79
78
|
...A(h.maxWidth) ? { maxWidth: h.maxWidth } : {},
|
|
80
79
|
...A(h.maxHeight) ? { maxHeight: h.maxHeight } : {}
|
|
81
80
|
})), N = m;
|
|
@@ -85,89 +84,84 @@ var F = ["aria-labelledby", "aria-label"], I = {
|
|
|
85
84
|
let J = S(), Y = S(), X = S(!1), Z;
|
|
86
85
|
function Q() {
|
|
87
86
|
let e = J.value;
|
|
88
|
-
|
|
89
|
-
X.value = !1;
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
X.value = e.scrollHeight - e.scrollTop - e.clientHeight > 1;
|
|
87
|
+
e ? X.value = e.scrollHeight - e.scrollTop - e.clientHeight > 1 : X.value = !1;
|
|
93
88
|
}
|
|
94
|
-
P(() => h.modelValue),
|
|
89
|
+
P(() => h.modelValue), n(() => h.modelValue, q);
|
|
95
90
|
let $ = `m3-dialog-${E()}`;
|
|
96
91
|
return D(() => h.modelValue, async (e) => {
|
|
97
|
-
typeof window
|
|
92
|
+
typeof window < "u" && (e ? (await _(), Q(), Z = new ResizeObserver(Q), J.value && Z.observe(J.value), Y.value && Z.observe(Y.value)) : (Z?.disconnect(), Z = void 0));
|
|
98
93
|
}, { immediate: !0 }), b(() => {
|
|
99
94
|
Z?.disconnect();
|
|
100
|
-
}), (
|
|
95
|
+
}), (t, n) => (x(), c(a, { to: "body" }, [r.fullscreen ? (x(), c(o, {
|
|
101
96
|
key: 1,
|
|
102
97
|
name: "m3-dialog-fs",
|
|
103
98
|
appear: ""
|
|
104
99
|
}, {
|
|
105
|
-
default: O(() => [
|
|
100
|
+
default: O(() => [r.modelValue ? (x(), u("div", g({ key: 0 }, t.$attrs, {
|
|
106
101
|
class: "dialog-fs m3-dialog-fs-surface fixed inset-0 z-50 flex flex-col",
|
|
107
102
|
role: "dialog",
|
|
108
103
|
"aria-modal": "true",
|
|
109
|
-
"aria-labelledby": !
|
|
110
|
-
"aria-label":
|
|
111
|
-
}), [
|
|
112
|
-
|
|
104
|
+
"aria-labelledby": !r.bare && (t.$slots.title || r.title) ? $ : void 0,
|
|
105
|
+
"aria-label": r.bare ? r.title : void 0
|
|
106
|
+
}), [r.bare ? (x(), u("div", U, [C(t.$slots, "default", {}, void 0, !0)])) : (x(), u("div", W, [
|
|
107
|
+
r.persistent ? l("", !0) : (x(), c(e, {
|
|
113
108
|
key: 0,
|
|
114
109
|
icon: "close",
|
|
115
|
-
label:
|
|
110
|
+
label: r.closeLabel ?? T(y).close,
|
|
116
111
|
onClick: q
|
|
117
112
|
}, null, 8, ["label"])),
|
|
118
113
|
d("h2", {
|
|
119
114
|
id: $,
|
|
120
115
|
class: "flex-1 text-title-large font-medium text-on-surface"
|
|
121
|
-
}, [C(
|
|
122
|
-
|
|
123
|
-
])),
|
|
116
|
+
}, [C(t.$slots, "title", {}, () => [f(w(r.title), 1)], !0)]),
|
|
117
|
+
t.$slots.actions ? (x(), u("div", G, [C(t.$slots, "actions", {}, void 0, !0)])) : l("", !0)
|
|
118
|
+
])), r.bare ? l("", !0) : (x(), u("div", K, [C(t.$slots, "default", {}, void 0, !0)]))], 16, H)) : l("", !0)]),
|
|
124
119
|
_: 3
|
|
125
120
|
})) : (x(), c(o, {
|
|
126
121
|
key: 0,
|
|
127
122
|
name: "m3-dialog",
|
|
128
123
|
appear: ""
|
|
129
124
|
}, {
|
|
130
|
-
default: O(() => [
|
|
125
|
+
default: O(() => [r.modelValue ? (x(), u("div", {
|
|
131
126
|
key: 0,
|
|
132
127
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-scrim/32 p-4",
|
|
133
128
|
onClick: k(q, ["self"])
|
|
134
|
-
}, [d("div", g(
|
|
129
|
+
}, [d("div", g(t.$attrs, {
|
|
135
130
|
class: ["dialog-box m3-dialog-surface flex min-w-[280px] w-full flex-col", j.value],
|
|
136
131
|
style: M.value,
|
|
137
132
|
role: "dialog",
|
|
138
133
|
"aria-modal": "true",
|
|
139
|
-
"aria-labelledby": !
|
|
140
|
-
"aria-label":
|
|
141
|
-
}), [
|
|
134
|
+
"aria-labelledby": !r.bare && (t.$slots.title || r.title) ? $ : void 0,
|
|
135
|
+
"aria-label": r.bare ? r.title : void 0
|
|
136
|
+
}), [r.bare ? (x(), u("div", I, [C(t.$slots, "default", {}, void 0, !0)])) : (x(), u(i, { key: 1 }, [
|
|
142
137
|
d("div", L, [
|
|
143
|
-
|
|
138
|
+
r.closable && !r.persistent ? (x(), u("div", R, [p(e, {
|
|
144
139
|
icon: "close",
|
|
145
|
-
label:
|
|
140
|
+
label: r.closeLabel ?? T(y).close,
|
|
146
141
|
onClick: q
|
|
147
142
|
}, null, 8, ["label"])])) : l("", !0),
|
|
148
|
-
|
|
143
|
+
t.$slots.icon ? (x(), u("div", z, [C(t.$slots, "icon", {}, void 0, !0)])) : l("", !0),
|
|
149
144
|
d("h2", {
|
|
150
145
|
id: $,
|
|
151
|
-
class: v(["text-headline-small text-on-surface", [
|
|
152
|
-
}, [C(
|
|
146
|
+
class: v(["text-headline-small text-on-surface", [t.$slots.icon ? "text-center" : "text-left", r.closable && !r.persistent ? t.$slots.icon ? "px-10" : "pr-10" : ""]])
|
|
147
|
+
}, [C(t.$slots, "title", {}, () => [f(w(r.title), 1)], !0)], 2)
|
|
153
148
|
]),
|
|
154
149
|
d("div", {
|
|
155
150
|
ref_key: "contentEl",
|
|
156
151
|
ref: J,
|
|
157
|
-
class: v(["overflow-y-auto px-6 pt-2 text-body-medium text-on-surface-variant",
|
|
152
|
+
class: v(["overflow-y-auto px-6 pt-2 text-body-medium text-on-surface-variant", t.$slots.actions ? "pb-2" : "pb-6"]),
|
|
158
153
|
onScroll: Q
|
|
159
154
|
}, [d("div", {
|
|
160
155
|
ref_key: "contentInnerEl",
|
|
161
156
|
ref: Y
|
|
162
|
-
}, [C(
|
|
163
|
-
X.value &&
|
|
164
|
-
|
|
157
|
+
}, [C(t.$slots, "default", {}, void 0, !0)], 512)], 34),
|
|
158
|
+
X.value && t.$slots.actions ? (x(), u("div", B)) : l("", !0),
|
|
159
|
+
t.$slots.actions ? (x(), u("div", V, [C(t.$slots, "actions", {}, void 0, !0)])) : l("", !0)
|
|
165
160
|
], 64))], 16, F)])) : l("", !0)]),
|
|
166
161
|
_: 3
|
|
167
162
|
}))]));
|
|
168
163
|
}
|
|
169
164
|
}), [["__scopeId", "data-v-8f788bae"]]);
|
|
170
|
-
//#endregion
|
|
171
165
|
export { P as n, q as t };
|
|
172
166
|
|
|
173
|
-
//# sourceMappingURL=MDialog-
|
|
167
|
+
//# sourceMappingURL=MDialog-DYMnaBlt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MDialog-DYMnaBlt.js","names":["$attrs","$slots","_openBlock","_createBlock","_Teleport","_Transition","_withCtx","_createElementBlock","_withModifiers","_createElementVNode","_mergeProps","_renderSlot","_Fragment","_createVNode","MIconButton","_unref","_normalizeClass","_createTextVNode","_toDisplayString","MIconButton_default","useLocale","useEscapeStack","_plugin_vue_export_helper_default","count","previous","lock","unlock","useScrollLock","held","set","on","active","watch","getCurrentInstance","onBeforeUnmount","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","MDialog_default","defineComponent","__emit","props","__props","locale","isCssValue","v","sizeClasses","computed","sizeStyle","emit","close","contentEl","ref","contentInnerEl","showDivider","resizeObserver","updateDividerVisibility","el","titleId","useId","open","nextTick","onUnmounted","openBlock","createBlock","Teleport","Transition","withCtx","createElementBlock","mergeProps","_ctx","renderSlot","createCommentVNode","unref","createElementVNode","createTextVNode","toDisplayString","withModifiers","Fragment","createVNode","normalizeClass"],"sources":["../src/composables/_useScrollLock.ts","../src/components/MDialog.vue"],"sourcesContent":["import { getCurrentInstance, onBeforeUnmount, watch, type WatchSource } from 'vue'\n\n/*\n * Internal (not exported from index.ts): locks the page's scroll (body overflow hidden) while a modal surface is\n * open, shared by every component that does it. Counted, so overlays stacked on each other (a select's modal or a\n * date picker inside an MDialog) release it only when the last one closes: each component used to write\n * `overflow = ''` on its own, so closing the inner one let the page under the outer one scroll again. Each\n * instance also releases what it holds when it unmounts (a dialog removed while open left the page locked for good)\n * and nothing when it holds nothing (a select unmounting inside an open dialog used to unlock it).\n */\n\nlet count = 0\nlet previous = ''\n\nfunction lock() {\n if (count++ === 0) {\n previous = document.body.style.overflow\n document.body.style.overflow = 'hidden'\n }\n}\n\nfunction unlock() {\n if (count > 0 && --count === 0) document.body.style.overflow = previous\n}\n\n/**\n * Locks the page's scroll while `active` is true (from the start too: a dialog mounted open locks it), and releases\n * it when it turns false or the component unmounts. Without `active`, drive it with the returned `set`.\n */\nexport function useScrollLock(active?: WatchSource<boolean>) {\n let held = false\n function set(on: boolean) {\n if (typeof document === 'undefined' || on === held) return\n held = on\n if (on) lock()\n else unlock()\n }\n if (active) watch(active, (on) => set(!!on), { immediate: true })\n if (getCurrentInstance()) onBeforeUnmount(() => set(false))\n return { set }\n}\n","<script setup lang=\"ts\">\n/**\n * The generic M3 modal shell — Escape, scroll lock, and Teleport are handled internally. Supports a centered\n * card, a full-screen variant, and an optional icon that centers the title per spec.\n *\n * @slot icon M3 AlertDialog's optional icon (Secondary color, 24dp expected). Its presence also centers the\n * title, per spec.\n * @slot title Overrides the title prop with custom markup\n * @slot default Dialog body content — scrolls independently when taller than maxHeight. With `bare`, the whole\n * dialog: it fills the box (no title, padding, close button or actions row)\n * @slot actions Row of action buttons — wraps to a new line instead of overflowing when labels are long\n * @event update:modelValue Emitted when the dialog should open/close — powers v-model\n */\nimport { computed, nextTick, onUnmounted, ref, useId, watch } from 'vue'\nimport MIconButton from './MIconButton.vue'\nimport { useLocale } from '../composables/useLocale'\nimport { useScrollLock } from '../composables/_useScrollLock'\nimport { useEscapeStack } from '../composables/_useEscapeStack'\n\nconst props = withDefaults(\n defineProps<{\n /** Open/closed state (v-model) */\n modelValue: boolean\n /** Dialog title (overridable via the #title slot) */\n title?: string\n /** A Tailwind class (`max-w-sm`) or a CSS value (`420px`, `min(90vw, 40rem)`). */\n maxWidth?: string\n /**\n * Maximum height: a Tailwind class (`max-h-[60vh]`) or a CSS value (`480px`, `calc(100dvh - 4rem)`). When the\n * content is taller, the body scrolls and a divider appears above the actions.\n */\n // A Tailwind class (`max-h-[80vh]`) or a CSS value (`600px`). M3's `AlertDialogDefaults` has\n // no max-height token at all (only `DialogMaxWidth`) — the default here is a library-chosen\n // viewport-relative cap, not a spec value.\n maxHeight?: string\n /** Prevent closing by clicking the scrim, pressing Escape, or the X button */\n persistent?: boolean\n /** Full-screen variant — slides up from the bottom, covers the entire viewport */\n fullscreen?: boolean\n /** Aria label for the close (X) button — falls back to the locale string when omitted */\n closeLabel?: string\n /**\n * Show the header close (X) button — a library addition, not part of the M3 AlertDialog spec, so it can be\n * turned off\n */\n // Whether the header shows a close (\"X\") icon button. M3's `AlertDialog` spec has no such\n // button — it expects only a Cancel/Confirm text button in the actions row — so this is a\n // deliberate library extension on top of the spec, kept opt-out (default `true`, matching\n // this component's existing behavior) rather than added unconditionally.\n closable?: boolean\n /**\n * Just the dialog's box (surface, shape, elevation), scrim, Escape, scroll lock and animation, with the default\n * slot filling it: no title row, padding, close button or actions. For dialogs that draw everything themselves\n * (the date and time pickers). With `fullscreen`, the slot fills the screen and draws its own top bar. `title`\n * then only names it for assistive technology\n */\n bare?: boolean\n }>(),\n {\n // AlertDialogDefaults.DialogMaxWidth = 560dp\n maxWidth: 'max-w-[560px]',\n maxHeight: 'max-h-[90vh]',\n persistent: false,\n fullscreen: false,\n closable: true,\n bare: false,\n },\n)\n\n// The root is a Teleport, which can't take the consumer's class/style/attrs: they go on the dialog's surface\ndefineOptions({ inheritAttrs: false })\n\nconst locale = useLocale()\n\n// maxWidth/maxHeight take either a Tailwind class or a CSS value: a bare length or a CSS function\n// can't be a class, so those go to inline style instead.\nconst isCssValue = (v: string) => /^-?[\\d.]+[a-z%]*$|^(calc|min|max|clamp|var)\\(/i.test(v.trim())\nconst sizeClasses = computed(() => [props.maxWidth, props.maxHeight].filter((v) => !isCssValue(v)))\nconst sizeStyle = computed(() => ({\n ...(isCssValue(props.maxWidth) ? { maxWidth: props.maxWidth } : {}),\n ...(isCssValue(props.maxHeight) ? { maxHeight: props.maxHeight } : {}),\n}))\n\nconst emit = defineEmits<{ 'update:modelValue': [boolean] }>()\n\nfunction close() {\n if (props.persistent) return\n emit('update:modelValue', false)\n}\n\n\n// M3's dialog anatomy lists an optional divider between the (scrollable) content and the\n// actions row — Compose's own AlertDialog.kt has no built-in implementation of it at all, so\n// this shows it only when the content actually has more to scroll to, above the actions row.\nconst contentEl = ref<HTMLElement>()\nconst contentInnerEl = ref<HTMLElement>()\nconst showDivider = ref(false)\nlet resizeObserver: ResizeObserver | undefined\n\nfunction updateDividerVisibility() {\n const el = contentEl.value\n if (!el) { showDivider.value = false; return }\n showDivider.value = el.scrollHeight - el.scrollTop - el.clientHeight > 1\n}\n\nuseScrollLock(() => props.modelValue)\n// Escape closes the dialog on top only, when several are stacked\nuseEscapeStack(() => props.modelValue, close)\n\nconst titleId = `m3-dialog-${useId()}`\n\nwatch(\n () => props.modelValue,\n async (open) => {\n // Server rendering (a dialog open on load runs this immediately): nothing to measure or observe\n if (typeof window === 'undefined') return\n if (open) {\n await nextTick()\n updateDividerVisibility()\n // Observing contentEl alone only catches viewport-driven resizes (e.g. window resize\n // changing the maxHeight cap) — its own box stays put when the *slotted* content\n // changes height, since overflow doesn't affect the scroll container's own size. The\n // inner wrapper around the slot grows/shrinks with the actual content, so that's what\n // needs observing to catch dynamic content (reactive text, async-loaded content, etc).\n resizeObserver = new ResizeObserver(updateDividerVisibility)\n if (contentEl.value) resizeObserver.observe(contentEl.value)\n if (contentInnerEl.value) resizeObserver.observe(contentInnerEl.value)\n } else {\n resizeObserver?.disconnect()\n resizeObserver = undefined\n }\n },\n { immediate: true },\n)\n\nonUnmounted(() => {\n resizeObserver?.disconnect()\n})\n</script>\n\n<template>\n <Teleport to=\"body\">\n <!-- Basic dialog -->\n <!-- appear: a dialog mounted already open (v-if + modelValue in the same tick) animates in too -->\n <Transition v-if=\"!fullscreen\" name=\"m3-dialog\" appear>\n <div\n v-if=\"modelValue\"\n class=\"fixed inset-0 z-50 flex items-center justify-center bg-scrim/32 p-4\"\n @click.self=\"close\"\n >\n <div\n v-bind=\"$attrs\"\n class=\"dialog-box m3-dialog-surface flex min-w-[280px] w-full flex-col\"\n :class=\"sizeClasses\"\n :style=\"sizeStyle\"\n role=\"dialog\"\n aria-modal=\"true\"\n :aria-labelledby=\"!bare && ($slots.title || title) ? titleId : undefined\"\n :aria-label=\"bare ? title : undefined\"\n >\n <!-- Bare: the content is the whole dialog (scrolling if taller than maxHeight), clipped to the box's\n corners (rounded-[inherit]) so content reaching its edges, like a full-bleed image, keeps them -->\n <div v-if=\"bare\" class=\"min-h-0 overflow-y-auto rounded-[inherit]\">\n <slot />\n </div>\n <template v-else>\n <!--\n AlertDialogDefaults.dialogPadding is 24dp on all four sides of the whole content\n column, with per-element bottom paddings (IconPadding/TitlePadding/textPadding)\n providing the gaps BETWEEN elements — not a single wrapping padding, since this\n template uses separate divs per section instead of one padded Column. Each\n section's own top/bottom classes are chosen so the combined gaps still land on\n the right dp value: title-to-body is 16dp (8px here + 8px there), body-to-actions\n is 24dp (8px here + 16px there), and the outermost edges (top of title, bottom of\n whichever section is last) are the full 24dp on their own.\n -->\n <div class=\"relative px-6 pt-6 pb-2\">\n <!--\n Wrapped in a plain div rather than passing `absolute right-4 top-4` straight to\n MIconButton: its root already carries its own `relative` (for the ripple span),\n and Tailwind resolves conflicting position utilities by source order in the\n compiled CSS, not by order in the class attribute — so an external `absolute`\n can silently lose to that internal `relative` instead of overriding it.\n -->\n <div v-if=\"closable && !persistent\" class=\"absolute right-4 top-4\">\n <MIconButton icon=\"close\" :label=\"closeLabel ?? locale.close\" @click=\"close\" />\n </div>\n <!--\n Icon slot: M3 AlertDialog's optional `icon` param (IconColor=Secondary,\n IconSize=24dp expected from the slot content, IconPadding bottom=16dp below it),\n which per spec also centers the title (\"Align the title to the center when an\n icon is present\") — reserving `pr-10` on the title only when the close button is\n also showing, so a centered title doesn't collide with it.\n -->\n <div v-if=\"$slots.icon\" class=\"mb-4 flex justify-center text-secondary\">\n <slot name=\"icon\" />\n </div>\n <h2\n :id=\"titleId\"\n class=\"text-headline-small text-on-surface\"\n :class=\"[\n $slots.icon ? 'text-center' : 'text-left',\n closable && !persistent ? ($slots.icon ? 'px-10' : 'pr-10') : '',\n ]\"\n >\n <slot name=\"title\">{{ title }}</slot>\n </h2>\n </div>\n <div\n ref=\"contentEl\"\n class=\"overflow-y-auto px-6 pt-2 text-body-medium text-on-surface-variant\"\n :class=\"$slots.actions ? 'pb-2' : 'pb-6'\"\n @scroll=\"updateDividerVisibility\"\n >\n <div ref=\"contentInnerEl\">\n <slot />\n </div>\n </div>\n <!-- Divider: M3 dialog anatomy's optional divider, shown only while the content has more to scroll to -->\n <div v-if=\"showDivider && $slots.actions\" class=\"shrink-0 border-t border-outline-variant\" />\n <!-- flex-wrap approximates AlertDialogFlowRow: buttons wrap to a new line instead of overflowing when labels are too long to fit on one -->\n <div v-if=\"$slots.actions\" class=\"flex flex-wrap justify-end gap-2 px-6 pt-4 pb-6\">\n <slot name=\"actions\" />\n </div>\n </template>\n </div>\n </div>\n </Transition>\n\n <!-- Fullscreen dialog -->\n <Transition v-else name=\"m3-dialog-fs\" appear>\n <div\n v-if=\"modelValue\"\n v-bind=\"$attrs\"\n class=\"dialog-fs m3-dialog-fs-surface fixed inset-0 z-50 flex flex-col\"\n role=\"dialog\"\n aria-modal=\"true\"\n :aria-labelledby=\"!bare && ($slots.title || title) ? titleId : undefined\"\n :aria-label=\"bare ? title : undefined\"\n >\n <!-- Bare: the content is the whole screen, top bar included, in whatever colors it draws -->\n <div v-if=\"bare\" class=\"min-h-0 flex-1 overflow-y-auto\">\n <slot />\n </div>\n <div v-else class=\"flex h-14 shrink-0 items-center gap-2 px-2\">\n <MIconButton v-if=\"!persistent\" icon=\"close\" :label=\"closeLabel ?? locale.close\" @click=\"close\" />\n <h2 :id=\"titleId\" class=\"flex-1 text-title-large font-medium text-on-surface\">\n <slot name=\"title\">{{ title }}</slot>\n </h2>\n <div v-if=\"$slots.actions\" class=\"flex items-center gap-2\">\n <slot name=\"actions\" />\n </div>\n </div>\n <div v-if=\"!bare\" class=\"flex-1 overflow-y-auto px-6 py-4 text-body-medium text-on-surface-variant\">\n <slot />\n </div>\n </div>\n </Transition>\n </Teleport>\n</template>\n\n<style scoped>\n.m3-dialog-enter-active,\n.m3-dialog-leave-active {\n transition: opacity 0.15s ease;\n}\n.m3-dialog-enter-from,\n.m3-dialog-leave-to {\n opacity: 0;\n}\n.m3-dialog-enter-active .dialog-box,\n.m3-dialog-leave-active .dialog-box {\n transition: transform 0.15s ease;\n}\n.m3-dialog-enter-from .dialog-box,\n.m3-dialog-leave-to .dialog-box {\n transform: scale(0.95);\n}\n\n.m3-dialog-fs-enter-active,\n.m3-dialog-fs-leave-active {\n transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), opacity 0.15s ease;\n}\n.m3-dialog-fs-enter-from {\n transform: translateY(100%);\n opacity: 0;\n}\n.m3-dialog-fs-leave-to {\n transform: translateY(100%);\n opacity: 0;\n}\n</style>\n\n<style>\n/* The surfaces' look, in the base layer so the consumer's classes on MDialog win (see MShape) */\n@layer base {\n .m3-dialog-surface {\n background-color: var(--color-surface-container-high);\n border-radius: var(--radius-xl);\n box-shadow: var(--shadow-elevation-3);\n }\n .m3-dialog-fs-surface {\n background-color: var(--color-surface);\n }\n}\n</style>\n"],"mappings":";;;;;;AAWA,IAAIuB,IAAQ,GACRC,IAAW;AAEf,SAASC,IAAO;CACd,AAAI,QAAY,MACd,IAAW,SAAS,KAAK,MAAM,UAC/B,SAAS,KAAK,M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,QAAlBC,EAAA,GAAAK,EAEM,OAFNgC,GAEM,CADJ5B,EAAoBoE,EAAA,QAAA,QAAA,CAAA,GAAA,KAAA,GAAA,EAAA,C;KAEtBtE,EASK,MAAA;MARF,IAAI0D;MACL,OAAKnD,EAAA,CAAC,uCAAqC,CACff,EAAAA,OAAO,OAAI,gBAAA,aAAkDkD,EAAA,YAAQ,CAAKA,EAAA,aAAclD,EAAAA,OAAO,OAAI,UAAA,UAAA,E;K,IAK/HU,EAAqCoE,EAAA,QAAA,SAAA,CAAA,SAAA,CAAf9D,EAAAC,EAAAiC,EAAA,KAAK,GAAA,CAAA,C;;IAG/B1C,EASM,OAAA;KARA,SAAA;KAAJ,KAAImD;KACJ,OAAK5C,EAAA,CAAC,sEACEf,EAAAA,OAAO,UAAO,SAAA,MAAA,CAAA;KACrB,UAAQgE;I,IAETxD,EAEM,OAAA;KAFG,SAAA;KAAJ,KAAIqD;I,IACPnD,EAAQoE,EAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,EAAA,C;IAIDhB,EAAA,SAAe9D,EAAAA,OAAO,WAAjCC,EAAA,GAAAK,EAA6F,OAA7FiC,CAA6F,K;IAElFvC,EAAAA,OAAO,WAAlBC,EAAA,GAAAK,EAEM,OAFNkC,GAEM,CADJ9B,EAAuBoE,EAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,EAAA,C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as e, defineComponent as t, normalizeStyle as n, openBlock as r, toDisplayString as i } from "vue";
|
|
2
|
-
|
|
2
|
+
// src/components/MIcon.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var a = [
|
|
4
4
|
"role",
|
|
5
5
|
"aria-label",
|
|
@@ -28,7 +28,6 @@ var a = [
|
|
|
28
28
|
}, i(t.name), 13, a));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
//#endregion
|
|
32
31
|
export { o as t };
|
|
33
32
|
|
|
34
|
-
//# sourceMappingURL=MIcon-
|
|
33
|
+
//# sourceMappingURL=MIcon-DpajuUTJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MIcon-DpajuUTJ.js","names":["_openBlock","_createElementBlock","_normalizeStyle","_toDisplayString","_hoisted_1","MIcon_default","defineComponent","openBlock","createElementBlock","__props","normalizeStyle","toDisplayString"],"sources":["../src/components/MIcon.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Renders a Material Symbols Outlined glyph by name. Color follows the surrounding text color (set it with a\n * Tailwind text-* class). Decorative by default: hidden from assistive technology, which would otherwise read the\n * glyph's ligature text (its name, e.g. \"arrow_drop_down\"). Give it a `label` when the icon says something on its own.\n */\nwithDefaults(defineProps<{\n /** Material Symbol name (e.g. \"settings\", \"favorite\") */\n name: string\n /** Icon size in px */\n size?: number\n /** Filled glyph (the Material Symbols FILL axis), as M3 draws a selected icon */\n filled?: boolean\n /** What the icon means, when nothing next to it says so: makes it an image with this name instead of decoration */\n label?: string\n}>(), { size: 24, filled: false })\n</script>\n\n<template>\n <span\n class=\"material-symbols-outlined leading-none\"\n :role=\"label ? 'img' : undefined\"\n :aria-label=\"label\"\n :aria-hidden=\"label ? undefined : 'true'\"\n :style=\"{ fontSize: `${size}px`, fontVariationSettings: filled ? `'FILL' 1` : undefined }\"\n >{{ name }}</span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;E,kBAmBEA,EAAA,GAAAC,EAMkB,QAAA;GALhB,OAAM;GACL,MAAMQ,EAAA,QAAK,QAAW,KAAA;GACtB,cAAYA,EAAA;GACZ,eAAaA,EAAA,QAAQ,KAAA,IAAS;GAC9B,OAAKP,EAAA;IAAA,UAAA,GAAiBO,EAAA,KAAI;IAAA,uBAA6BA,EAAA,SAAM,aAAgB,KAAA;GAAS,CAAA;EACrF,GAAAN,EAAAM,EAAA,IAAI,GAAA,IAAAL,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as e, t } from "./motion-
|
|
2
|
-
import { t as n } from "./MIcon-
|
|
1
|
+
import { i as e, t } from "./motion-BcejVTeX.js";
|
|
2
|
+
import { t as n } from "./MIcon-DpajuUTJ.js";
|
|
3
3
|
import { computed as r, createBlock as i, createVNode as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, onMounted as l, onUnmounted as u, openBlock as d, ref as f, resolveDynamicComponent as p, unref as m, watch as h, withCtx as g, withDirectives as _ } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/directives/vRipple.ts
|
|
5
5
|
function v(e) {
|
|
6
6
|
return e === !1 ? { disabled: !0 } : typeof e == "string" ? { color: e } : e === !0 || e == null ? {} : e;
|
|
7
7
|
}
|
|
@@ -18,7 +18,7 @@ var b = /* @__PURE__ */ new WeakMap(), x = {
|
|
|
18
18
|
onPointerDown(t) {
|
|
19
19
|
if (n.options.disabled || t.button !== 0) return;
|
|
20
20
|
let { position: r } = getComputedStyle(e);
|
|
21
|
-
|
|
21
|
+
r && r !== "static" || (e.style.position = "relative"), y(e, t, n.options.color);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
b.set(e, n), e.addEventListener("pointerdown", n.onPointerDown);
|
|
@@ -276,7 +276,6 @@ var F = t(.4, 0, .2, 1), I = "relative inline-flex shrink-0 items-center justify
|
|
|
276
276
|
}]]);
|
|
277
277
|
}
|
|
278
278
|
});
|
|
279
|
-
//#endregion
|
|
280
279
|
export { k as a, S as c, T as d, w as f, A as i, D as l, j as n, F as o, x as p, M as r, P as s, L as t, O as u };
|
|
281
280
|
|
|
282
|
-
//# sourceMappingURL=MIconButton-
|
|
281
|
+
//# sourceMappingURL=MIconButton-BBggVwBV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MIconButton-BBggVwBV.js","names":["SUBSTEP","_withDirectives","_openBlock","_createBlock","_resolveDynamicComponent","_normalizeClass","_normalizeStyle","_withCtx","_createVNode","MIcon","_unref","motionSprings","MIcon_default","normalize","value","spawnRipple","rect","host","d","layer","el","event","color","states","vRipple","state","binding","e","position","SAMPLE_MS","SUBSTEP$1","sampleSpring","out","from","pos","vel","velocity","damping","spring","i","left","h","to","epsilon","sampleAt","t","time","samples","samplesDuration","playSamples","anim","keyframe","prefersReducedMotion","FAST_SPATIAL","FAST_EFFECTS","DEFAULT_EFFECTS","DEFAULT_SPATIAL","SUBSTEP","useSpring","current","target","raf","last","frame","dt","now","k","spec","c","settled","v","apply","start","snap","watch","onMounted","onUnmounted","fastOutSlowIn","cubicBezier","base","MIconButton_default","defineComponent","__emit","props","__props","emit","isToggle","computed","ROLES","ROLE","colorStyle","paintStyle","cc","role","main","tag","sizeMap","resolved","rootEl","ref","pressed","targetRadius","r","full","onPointerDown","onPointerUp","onClick","disabledContainerClasses","shapeClass","toggleClasses","on","variantClasses","withDirectives","openBlock","createBlock","resolveDynamicComponent","normalizeClass","normalizeStyle","withCtx","createVNode","unref"],"sources":["../src/directives/vRipple.ts","../src/composables/_springAnimation.ts","../src/composables/_useSpring.ts","../src/components/MIconButton.vue"],"sourcesContent":["import type { Directive } from 'vue'\n\n/** Options for `v-ripple`. */\nexport interface RippleOptions {\n /** No ripple while true (e.g. bound to the element's disabled state). */\n disabled?: boolean\n /** Any CSS color for the ripple; defaults to the element's text color (`currentColor`). */\n color?: string\n}\n\n/** `v-ripple` value: nothing or `true` (on), `false` (off), a CSS color, or an options object. */\nexport type RippleValue = boolean | string | RippleOptions | null | undefined\n\nfunction normalize(value: RippleValue): RippleOptions {\n if (value === false) return { disabled: true }\n if (typeof value === 'string') return { color: value }\n if (value === true || value == null) return {}\n return value\n}\n\n// The ripple sits in its own clipping layer (`border-radius: inherit`), so the host only needs to be\n// positioned, not `overflow: hidden`.\nfunction spawnRipple(host: HTMLElement, event: { clientX: number; clientY: number }, color?: string) {\n const rect = host.getBoundingClientRect()\n const d = Math.max(rect.width, rect.height) * 2\n const layer = document.createElement('span')\n layer.className = 'm3-ripple-layer'\n const el = document.createElement('span')\n el.className = 'm3-ripple'\n el.style.cssText = `width:${d}px;height:${d}px;top:${event.clientY - rect.top - d / 2}px;left:${event.clientX - rect.left - d / 2}px`\n if (color) el.style.background = color\n layer.appendChild(el)\n host.appendChild(layer)\n el.addEventListener('animationend', () => layer.remove(), { once: true })\n}\n\ninterface RippleState {\n options: RippleOptions\n onPointerDown: (e: PointerEvent) => void\n}\n\nconst states = new WeakMap<HTMLElement, RippleState>()\n\n/**\n * The M3 press ripple for any element: `<div v-ripple>`, `v-ripple=\"false\"`, `v-ripple=\"'#e91e63'\"`\n * or `v-ripple=\"{ disabled, color }\"`. A statically positioned element is made `position: relative`.\n * Registered globally as `v-ripple` by `createM3UI()`; import `vRipple` to use it without the plugin.\n */\nexport const vRipple: Directive<HTMLElement, RippleValue> = {\n mounted(el, binding) {\n const state: RippleState = {\n options: normalize(binding.value),\n onPointerDown(e) {\n if (state.options.disabled || e.button !== 0) return\n // Checked on press, not on mount: the element may not be in the document yet when mounted.\n const { position } = getComputedStyle(el)\n if (!position || position === 'static') el.style.position = 'relative'\n spawnRipple(el, e, state.options.color)\n },\n }\n states.set(el, state)\n el.addEventListener('pointerdown', state.onPointerDown)\n },\n updated(el, binding) {\n const state = states.get(el)\n if (state) state.options = normalize(binding.value)\n },\n beforeUnmount(el) {\n const state = states.get(el)\n if (state) el.removeEventListener('pointerdown', state.onPointerDown)\n states.delete(el)\n },\n}\n","import type { SpringSpec } from './motion'\n\n/*\n * Internal (not exported from index.ts): springs played as Web Animations.\n *\n * The library's springs normally step in a rAF loop (see CLAUDE.md). That loop runs on the main thread, and an\n * enter/exit animation starts exactly when the main thread is busiest: mounting the panel's content, re-laying\n * out the page for a scroll lock. On phones that janked visibly (MNavigationDrawer's open, where the old CSS\n * transition hadn't, since the compositor runs those). So enter/exit/settle springs are simulated up front, one\n * sample per 60Hz frame, and played as a linear Web Animation of transform/opacity, which the compositor runs\n * too. Same curve, bounce and release velocity as the loop; only a finger-driven drag writes styles directly.\n *\n * Pattern: write the end state inline, then play the samples over it (an animation beats inline styles), so\n * nothing jumps when it ends; to interrupt, read `sampleAt(samples, anim.currentTime)`, write that inline and\n * cancel.\n */\n\nexport const SAMPLE_MS = 1000 / 60\n// Stiff springs (FastEffects, 3800) diverge at a 16ms Euler step: integrate in 4ms substeps\nconst SUBSTEP = 0.004\n\n/**\n * The spring from `from` to `to`, starting at `velocity` (units/s), one sample per 60Hz frame until it's within\n * `epsilon` of `to` (and slower than `epsilon * 10` per second). The last sample is exactly `to`.\n */\nexport function sampleSpring(from: number, to: number, velocity: number, spring: SpringSpec, epsilon: number): number[] {\n const out = [from]\n let pos = from\n let vel = velocity\n const damping = 2 * spring.dampingRatio * Math.sqrt(spring.stiffness)\n for (let i = 0; i < 600; i++) {\n for (let left = SAMPLE_MS / 1000; left > 1e-9; left -= SUBSTEP) {\n const h = Math.min(SUBSTEP, left)\n vel += (-spring.stiffness * (pos - to) - damping * vel) * h\n pos += vel * h\n }\n out.push(pos)\n if (Math.abs(pos - to) < epsilon && Math.abs(vel) < epsilon * 10) break\n }\n out[out.length - 1] = to\n return out\n}\n\n/** The value `samples` has `time` ms into playback (an Animation's currentTime), linear between frames */\nexport function sampleAt(samples: number[], time: CSSNumberish | null | undefined): number {\n const t = Number(time ?? 0) / SAMPLE_MS\n const i = Math.floor(t)\n if (i >= samples.length - 1) return samples[samples.length - 1]!\n if (i < 0) return samples[0]!\n return samples[i]! + (samples[i + 1]! - samples[i]!) * (t - i)\n}\n\n/** How long `samples` play, in ms */\nexport const samplesDuration = (samples: number[]) => (samples.length - 1) * SAMPLE_MS\n\n/**\n * Plays `samples` on `el` as a linear Web Animation, each mapped to a keyframe. Null when there's nothing to\n * play or no Web Animations API (the inline end state then simply stands).\n */\nexport function playSamples(\n el: Element | null | undefined,\n samples: number[],\n keyframe: (value: number) => Keyframe,\n delay = 0,\n): Animation | null {\n if (!el || typeof (el as HTMLElement).animate !== 'function' || samples.length < 2) return null\n const anim = (el as HTMLElement).animate(samples.map(keyframe), { duration: samplesDuration(samples), delay, easing: 'linear' })\n // cancel() rejects `finished`; nothing has to wait on it\n anim.finished.catch(() => {})\n return anim\n}\n\nexport const prefersReducedMotion = () =>\n typeof window !== 'undefined' && !!window.matchMedia?.('(prefers-reduced-motion: reduce)').matches\n","// A set of numbers (corner radii, sizes...) that springs toward a target, written to the DOM once per\n// frame through `apply`. Same integration as the rest of the library (semi-implicit Euler), in fixed 4ms\n// substeps so a stiff spring stays stable on a dropped frame. `useSpring` is public (index.ts, with the\n// motion tokens); the constants below are the library's internal shorthands for the Standard scheme.\nimport { onMounted, onUnmounted, watch } from 'vue'\nimport { cubicBezier, motionSprings, type SpringSpec } from './motion'\n\nexport type { SpringSpec }\n\n/** MotionSchemeKeyTokens.FastSpatial in the Standard scheme (StandardMotionTokens.SpringFastSpatial*) */\nexport const FAST_SPATIAL: SpringSpec = motionSprings.standard.fastSpatial\n/** MotionSchemeKeyTokens.FastEffects in the Standard scheme */\nexport const FAST_EFFECTS: SpringSpec = motionSprings.standard.fastEffects\n/** MotionSchemeKeyTokens.DefaultEffects in the Standard scheme */\nexport const DEFAULT_EFFECTS: SpringSpec = motionSprings.standard.defaultEffects\n/** MotionSchemeKeyTokens.DefaultSpatial in the Standard scheme */\nexport const DEFAULT_SPATIAL: SpringSpec = motionSprings.standard.defaultSpatial\n\nconst SUBSTEP = 0.004\n\nexport function useSpring(\n target: () => number[],\n apply: (values: readonly number[]) => void,\n spec: SpringSpec = FAST_SPATIAL,\n) {\n let current = [...target()]\n let velocity = current.map(() => 0)\n let raf = 0\n let last = 0\n\n function frame(now: number) {\n let dt = Math.min((now - last) / 1000, 1 / 30)\n last = now\n const t = target()\n if (t.length !== current.length) {\n current = [...t]\n velocity = t.map(() => 0)\n }\n const k = spec.stiffness\n const c = 2 * spec.dampingRatio * Math.sqrt(k)\n while (dt > 0) {\n const h = Math.min(dt, SUBSTEP)\n dt -= h\n for (let i = 0; i < t.length; i++) {\n velocity[i]! += (-k * (current[i]! - t[i]!) - c * velocity[i]!) * h\n current[i]! += velocity[i]! * h\n }\n }\n const settled = t.every((v, i) => Math.abs(v - current[i]!) < 0.05 && Math.abs(velocity[i]!) < 0.05)\n if (settled) {\n current = [...t]\n velocity = t.map(() => 0)\n }\n apply(current)\n raf = settled ? 0 : requestAnimationFrame(frame)\n }\n\n function start() {\n if (raf) return\n last = performance.now()\n raf = requestAnimationFrame(frame)\n }\n\n /** Jumps to the target without animating (e.g. when the layout context changes). */\n function snap() {\n cancelAnimationFrame(raf)\n raf = 0\n current = [...target()]\n velocity = current.map(() => 0)\n apply(current)\n }\n\n watch(() => target().join(','), start)\n onMounted(() => apply(current))\n onUnmounted(() => cancelAnimationFrame(raf))\n\n return { snap }\n}\n\n/** Compose's FastOutSlowInEasing, cubic-bezier(0.4, 0, 0.2, 1) — the easing of a default tween() */\nexport const fastOutSlowIn = cubicBezier(0.4, 0, 0.2, 1)\n","<script setup lang=\"ts\">\n/**\n * A button that shows only an icon — four visual styles, the same 5-tier expressive sizing as MButton. Give it\n * `checked` (v-model:checked) and it becomes M3's icon toggle button.\n *\n * @event update:checked Emitted on click when `checked` is set — powers v-model:checked\n */\nimport { computed, ref } from 'vue'\nimport MIcon from './MIcon.vue'\nimport { vRipple } from '../directives/vRipple'\nimport { DEFAULT_EFFECTS, useSpring } from '../composables/_useSpring'\n\nconst props = withDefaults(\n defineProps<{\n /** Material Symbol icon name */\n icon: string\n /** Accessible label (its aria-label; no visible tooltip: wrap it in MTooltip for one) */\n label?: string\n /** Visual style */\n variant?: 'standard' | 'filled' | 'tonal' | 'outlined'\n /**\n * An M3 role or any CSS color (`#fff` over a photo, `rgb(0 0 0 / 0.3)` for a scrim-like filled button,\n * `currentColor` to follow the surrounding text). Standard and outlined use it for the icon; filled for the\n * container with white (or the role's on-color) on it; tonal for a 20% container with the color on it.\n * Disabled buttons and toggles keep their own colors\n */\n color?: 'primary' | 'secondary' | 'tertiary' | 'error' | (string & {})\n /**\n * Icon color over what the variant and `color` give: an M3 role (`on-surface`…) or any CSS color (`#000` on a\n * white filled button). Disabled buttons and toggles keep their own\n */\n contentColor?: string\n /**\n * Button shape — rounded (pill, always) or squared (corner radius scales with size: 12px xs/sm, 16px md,\n * 28px lg/xl)\n */\n shape?: 'rounded' | 'squared'\n /** M3's 5-tier icon button sizing (xs:32, sm:40, md:56, lg:96, xl:136), or a custom pixel value */\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number\n /** Icon size in px. Default the size tier's (or 55% of a custom pixel `size`) */\n iconSize?: number\n /** Disables interaction */\n disabled?: boolean\n /** Vue Router destination — renders as RouterLink instead of button */\n to?: string | Record<string, any>\n /** Any CSS color for the press ripple; defaults to the button's content color */\n rippleColor?: string\n /**\n * Makes it a toggle button (v-model:checked): selected colors, a filled icon, and a shape that morphs when\n * pressed and when checked. Leave it unset for a plain icon button\n */\n checked?: boolean\n /** Icon shown while checked, when it differs from `icon` (e.g. 'pause' for 'play_arrow') */\n checkedIcon?: string\n /** Draw the icon filled (Material Symbols' FILL axis) without making it a toggle, e.g. media controls */\n iconFilled?: boolean\n }>(),\n {\n variant: 'standard',\n shape: 'rounded',\n size: 'sm',\n disabled: false,\n checked: undefined,\n },\n)\n\nconst emit = defineEmits<{ 'update:checked': [boolean] }>()\n\nconst isToggle = computed(() => props.checked !== undefined)\n\nconst ROLES = ['primary', 'secondary', 'tertiary', 'error']\n// Color-role names (`on-surface`…) read the theme's token; anything else is a CSS color\nconst ROLE = /^(on-)?(primary|secondary|tertiary|error|surface|surface-variant|inverse-surface|inverse-primary)(-container|-variant)?$/\nconst colorStyle = computed(() => {\n const base = paintStyle()\n const cc = props.contentColor\n if (!cc || props.disabled || isToggle.value) return base\n return { ...base, color: ROLE.test(cc) ? `var(--color-${cc})` : cc }\n})\n// `color` as inline styles over the variant's classes, so the default look stays class-only\nfunction paintStyle() {\n const c = props.color\n if (!c || props.disabled || isToggle.value) return undefined\n const role = ROLES.includes(c)\n const main = role ? `var(--color-${c})` : c\n switch (props.variant) {\n case 'filled':\n return { backgroundColor: main, color: role ? `var(--color-on-${c})` : '#fff' }\n case 'tonal':\n return role\n ? { backgroundColor: `var(--color-${c}-container)`, color: `var(--color-on-${c}-container)` }\n : { backgroundColor: `color-mix(in srgb, ${c} 20%, transparent)`, color: c }\n default:\n return { color: main }\n }\n}\nconst tag = computed(() => props.to && !isToggle.value ? 'RouterLink' : 'button')\n\n// Container height/width (icon buttons are always square by default — real\n// `IconButtonDefaults.<tier>ContainerSize()` also has Narrow/Wide width options not\n// implemented here, matching the existing scope of MButton's size tiers) and icon size\n// per M3's 5-tier `{XSmall,Small,Medium,Large,XLarge}IconButtonTokens.kt`. `squareRadius`\n// matches each tier's own `ContainerShapeSquare` (12px xs/sm, 16px md, 28px lg/xl) — same\n// pattern as MButton's size tiers.\n// Toggle radii (px) from the same token files: `square` is ContainerShapeSquare, `pressed`\n// PressedContainerShape, `checkedRound` SelectedContainerShapeRound (a round button squares off when\n// checked); SelectedContainerShapeSquare is CornerFull (a square one turns round), i.e. px / 2.\nconst sizeMap = {\n xs: { px: 32, icon: 20, squareRadius: 'rounded-md', square: 12, pressed: 8, checkedRound: 12 },\n sm: { px: 40, icon: 24, squareRadius: 'rounded-md', square: 12, pressed: 8, checkedRound: 12 },\n md: { px: 56, icon: 24, squareRadius: 'rounded-lg', square: 16, pressed: 12, checkedRound: 16 },\n lg: { px: 96, icon: 32, squareRadius: 'rounded-xl', square: 28, pressed: 16, checkedRound: 28 },\n xl: { px: 136, icon: 40, squareRadius: 'rounded-xl', square: 28, pressed: 16, checkedRound: 28 },\n}\n\nconst resolved = computed(() => {\n if (typeof props.size === 'number') {\n return { px: props.size, icon: Math.round(props.size * 0.55), squareRadius: 'rounded-md', square: 12, pressed: 8, checkedRound: 12 }\n }\n return sizeMap[props.size] ?? sizeMap.sm\n})\n\n// Icon toggle shape morph (IconButton.kt's shapeByInteraction: pressed, else checked, else the resting\n// shape), on the DefaultEffects spring the source picks so it doesn't bounce. Plain icon buttons keep\n// a static shape, like Compose's non-`shapes` overloads.\nconst rootEl = ref<unknown>(null)\nconst pressed = ref(false)\n\nfunction targetRadius() {\n const r = resolved.value\n const full = r.px / 2\n if (pressed.value) return r.pressed\n if (props.checked) return props.shape === 'squared' ? full : r.checkedRound\n return props.shape === 'squared' ? r.square : full\n}\n\nuseSpring(\n () => (isToggle.value ? [targetRadius()] : []),\n (v) => {\n // A RouterLink root (plain button with `to`) is a component instance, not an element\n if (rootEl.value instanceof HTMLElement) rootEl.value.style.borderRadius = v.length ? `${v[0]}px` : ''\n },\n DEFAULT_EFFECTS,\n)\n\nfunction onPointerDown() {\n if (isToggle.value && !props.disabled) pressed.value = true\n}\nfunction onPointerUp() {\n pressed.value = false\n}\n\nfunction onClick() {\n if (isToggle.value && !props.disabled) emit('update:checked', !props.checked)\n}\n\n/*\n * State layer via a `before:` overlay (same technique MButton uses) rather than a direct\n * `hover:bg-*`/`active:bg-*` utility: a solid `bg-primary`/`bg-secondary-container`\n * container can't also swap to a translucent hover background without just replacing the\n * color outright, so hover/press need a separate semi-transparent layer painted on top,\n * tinted with the button's own content color (`before:bg-current`) — matches real M3's\n * per-variant Hovered/PressedColor tokens, which are all just the content color at a fixed\n * opacity (8%/12%), the same universal state-layer pattern across every variant.\n */\nconst base =\n 'relative inline-flex shrink-0 items-center justify-center overflow-hidden transition-colors duration-150 cursor-pointer ' +\n 'disabled:cursor-not-allowed disabled:text-on-surface/38 ' +\n \"before:content-[''] before:pointer-events-none before:absolute before:inset-0 \" +\n 'before:bg-current before:opacity-0 before:transition-opacity before:duration-150 ' +\n 'enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]'\n\n// M3 disabled container opacity is 10% on-surface (DisabledContainerOpacity, Filled/Tonal\n// only — Outlined has no container). Outlined's border needs no separate disabled class:\n// it's `border-current` (see `variantClasses`), so it dims automatically along with the\n// `disabled:text-on-surface/38` in `base` above, exactly like the real `outlinedIconButtonBorder`\n// (which literally reuses `LocalContentColor` at the same disabled opacity as the icon).\nconst disabledContainerClasses = computed(() => {\n if (props.variant === 'outlined' && props.checked) return 'disabled:bg-on-surface/10'\n switch (props.variant) {\n case 'filled':\n case 'tonal':\n return 'disabled:bg-on-surface/10'\n default:\n return ''\n }\n})\n\nconst shapeClass = computed(() => props.shape === 'squared' ? resolved.value.squareRadius : 'rounded-full')\n\n\n// Toggle colors: the Selected*/Unselected* tokens of each variant's *IconButtonTokens. Unchecked\n// filled/tonal differ from the plain button's colors, so the checked state stands out.\nconst toggleClasses = computed(() => {\n const on = props.checked\n switch (props.variant) {\n case 'filled':\n return on ? 'bg-primary text-on-primary' : 'bg-surface-container text-on-surface-variant'\n case 'tonal':\n return on ? 'bg-secondary text-on-secondary' : 'bg-secondary-container text-on-secondary-container'\n case 'outlined':\n // outlinedIconToggleButtonBorder: no border once checked\n return on ? 'bg-inverse-surface text-inverse-on-surface' : 'border border-current text-on-surface-variant'\n default:\n return on ? 'text-primary' : 'text-on-surface-variant'\n }\n})\n\nconst variantClasses = computed(() => {\n if (isToggle.value) return toggleClasses.value\n switch (props.variant) {\n case 'filled':\n // Real IconButton.kt has no elevation tokens at all for any variant — flat, unlike Button\n return 'bg-primary text-on-primary'\n case 'tonal':\n return 'bg-secondary-container text-on-secondary-container'\n case 'outlined':\n // OutlinedIconButtonTokens' default (non-\"vibrant\") border tracks LocalContentColor,\n // i.e. the same on-surface-variant used for the icon itself — not a fixed outline token\n return 'border border-current text-on-surface-variant'\n default:\n return 'text-on-surface-variant'\n }\n})\n</script>\n\n<template>\n <component\n :is=\"tag\"\n ref=\"rootEl\"\n :to=\"tag === 'RouterLink' ? to : undefined\"\n :type=\"tag === 'RouterLink' ? undefined : 'button'\"\n :aria-label=\"label || undefined\"\n :aria-pressed=\"isToggle ? checked : undefined\"\n :disabled=\"disabled\"\n :class=\"[base, shapeClass, variantClasses, disabledContainerClasses]\"\n :style=\"[{ width: `${resolved.px}px`, height: `${resolved.px}px` }, colorStyle]\"\n v-ripple=\"{ disabled, color: rippleColor }\"\n @pointerdown=\"onPointerDown\"\n @pointerup=\"onPointerUp\"\n @pointerleave=\"onPointerUp\"\n @pointercancel=\"onPointerUp\"\n @click=\"onClick\"\n >\n <MIcon :name=\"checked && checkedIcon ? checkedIcon : icon\" :size=\"iconSize ?? resolved.icon\" :filled=\"!!checked || iconFilled\" />\n </component>\n</template>\n"],"mappings":";;;;AAaA,SAASa,EAAU,GAAmC;CAIpD,OAHIC,MAAU,KAAc,EAAE,UAAU,GAAK,IACzC,OAAOA,KAAU,WAAiB,EAAE,OAAOA,EAAM,IACjDA,MAAU,MAAQA,KAAS,OAAa,CAAC,IACtCA;AACT;AAIA,SAASC,EAAY,GAAmB,GAA6C,GAAgB;CACnG,IAAMC,IAAOC,EAAK,sBAAsB,GAClCC,IAAI,KAAK,IAAIF,EAAK,OAAOA,EAAK,MAAM,IAAI,GACxCG,IAAQ,SAAS,cAAc,MAAM;CAC3C,EAAM,YAAY;CAClB,IAAMC,IAAK,SAAS,cAAc,MAAM;CAMxC,AALA,EAAG,YAAY,aACf,EAAG,MAAM,UAAU,SAASF,EAAE,YAAYA,EAAE,SAASG,EAAM,UAAUL,EAAK,MAAME,IAAI,EAAE,UAAUG,EAAM,UAAUL,EAAK,OAAOE,IAAI,EAAE,KAC9HI,MAAO,EAAG,MAAM,aAAaA,IACjCH,EAAM,YAAYC,CAAE,GACpBH,EAAK,YAAYE,CAAK,GACtBC,EAAG,iBAAiB,sBAAsBD,EAAM,OAAO,GAAG,EAAE,MAAM,GAAK,CAAC;AAC1E;AAOA,IAAMI,oBAAS,IAAI,QAAkC,GAOxCC,IAA+C;CAC1D,QAAQ,GAAI,GAAS;EACnB,IAAMC,IAAqB;GACzB,SAASZ,EAAUa,EAAQ,KAAK;GAChC,cAAc,GAAG;IACf,IAAID,EAAM,QAAQ,YAAYE,EAAE,WAAW,GAAG;IAE9C,IAAM,EAAE,gBAAa,iBAAiBP,CAAE;IAExC,AADKQ,KAAYA,MAAa,aAAU,EAAG,MAAM,WAAW,aAC5Db,EAAYK,GAAIO,GAAG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