@pantograph/vue 0.25.5 → 0.25.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/ActionButton.d.ts +174 -11
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-uwPzOpXQ.js → ActionButton.vue_vue_type_script_setup_true_lang-BOiXNbKw.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-DgRldvF-.js → ActionButton.vue_vue_type_script_setup_true_lang-DBykKGHQ.js} +1 -1
- package/dist/Alert/Alert.d.ts +4 -3
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-CsM-N2Dn.js → Alert.vue_vue_type_style_index_0_lang-B1JrRGlL.js} +21 -19
- package/dist/Alert.vue_vue_type_style_index_0_lang-iIyhPLmR.js +1 -0
- package/dist/Avatar/Avatar.d.ts +4 -4
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-BU_5Uc1h.js → Avatar.vue_vue_type_style_index_0_lang-560JMJs8.js} +3 -3
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-BmD6RFO6.js → Avatar.vue_vue_type_style_index_0_lang-B2n3kzDz.js} +1 -1
- package/dist/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/Badge.d.ts +2 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-BNoY52kq.js → Badge.vue_vue_type_script_setup_true_lang-Btr5ZeJl.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-D4qWXPmE.js → Badge.vue_vue_type_script_setup_true_lang-Kd8vLJ1r.js} +1 -1
- package/dist/Base/BaseBadge/BaseBadge.d.ts +3 -2
- package/dist/Base/BaseButton/BaseButton.d.ts +45 -7
- package/dist/Base/BaseInput/BaseInput.d.ts +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-iBj3bp4f.js → BaseBadge.vue_vue_type_style_index_0_lang-no7MMMcb.js} +21 -21
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-tjWWO1Eb.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-C_rzn0QQ.js → BaseButton.vue_vue_type_style_index_0_lang-DyR-qPkq.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-C90xeF5w.js → BaseButton.vue_vue_type_style_index_0_lang-gx7pLyR8.js} +5 -5
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-D1-OgRQO.js → BaseInput.vue_vue_type_style_index_0_lang-BOCVi3J8.js} +1 -1
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-Bh5c8r40.js → BaseInput.vue_vue_type_style_index_0_lang-CZMdvNIt.js} +1 -1
- package/dist/Button/Button.d.ts +179 -16
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DayZ7O-B.js → Button.vue_vue_type_script_setup_true_lang-CKt4CFcG.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BEUgRSHQ.js → Button.vue_vue_type_script_setup_true_lang-iY6wC5I7.js} +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/Checkbox/Checkbox.d.ts +3 -3
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-DIUFXgde.js → Checkbox.vue_vue_type_style_index_0_lang-Q8nvY8Va.js} +2 -2
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-B7TCf8DD.js → Checkbox.vue_vue_type_style_index_0_lang-srZfoj7r.js} +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -2
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +3 -2
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-B4vliBhP.js → Chip.vue_vue_type_style_index_0_lang-BjBptRQ-.js} +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-C-YVGRd5.js → Chip.vue_vue_type_style_index_0_lang-DZpyBQK1.js} +2 -2
- package/dist/ChipGroup/ChipGroup.d.ts +1 -1
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Cb48sFjZ.js → ChipGroup.vue_vue_type_style_index_0_lang-CeTQpuIw.js} +2 -2
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Dz90pq2v.js → ChipGroup.vue_vue_type_style_index_0_lang-D3YTcBs3.js} +1 -1
- package/dist/ColorPicker/ColorPicker.d.ts +3 -1
- package/dist/ColorPicker/ColorPickerSpace.d.ts +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Bbua4gDp.js → ColorPicker.vue_vue_type_style_index_0_lang-Bn5JW2Gt.js} +2 -2
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Cs_uP8_-.js → ColorPicker.vue_vue_type_style_index_0_lang-DL_ZJmhv.js} +27 -18
- package/dist/ColorSwatch/ColorSwatch.d.ts +3 -2
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-BVj268xm.js → ColorSwatch-BMQgaieC.js} +1 -1
- package/dist/{ColorSwatch-BTd2qIvs.js → ColorSwatch-BmsX5hTJ.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-D9jCB_qS.js → ColorSwatch.vue_vue_type_style_index_0_lang-C4Kg1zF7.js} +2 -2
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DotrlbV2.js → ColorSwatch.vue_vue_type_style_index_0_lang-DcE8KBJ4.js} +1 -1
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +3 -2
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-uGNt1Zw7.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-DcQU4Avw.js} +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CMUC9JP1.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-baZQlRfW.js} +7 -6
- package/dist/ColorTrigger/ColorTrigger.d.ts +3 -2
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BphrM3jX.js → ColorTrigger.vue_vue_type_style_index_0_lang-9NjMxcKG.js} +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-CjRJLrjc.js → ColorTrigger.vue_vue_type_style_index_0_lang-D7z5WQlE.js} +3 -3
- package/dist/Combobox/Combobox.d.ts +16 -15
- package/dist/Combobox/ComboboxLabel.d.ts +3 -2
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +2 -2
- package/dist/Combobox.vue_vue_type_style_index_0_lang-B--dMsNn.js +1 -0
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-BIpRzCHA.js → Combobox.vue_vue_type_style_index_0_lang-CzVJFdEg.js} +443 -381
- package/dist/Comment/Comment.d.ts +1 -1
- package/dist/Comment/CommentActions.d.ts +384 -1
- package/dist/Comment/CommentEditor.d.ts +867 -81
- package/dist/Comment/CommentMention.d.ts +2 -1
- package/dist/Comment/CommentReactions.d.ts +193 -1
- package/dist/Comment/CommentTrigger.d.ts +3 -2
- package/dist/Comment/index.js +14 -14
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/{ConfigProvider.vue_vue_type_script_setup_true_lang-DSKgXw-g.js → ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js} +10 -10
- package/dist/DataTable/DataTable.d.ts +106 -12
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/useSelection.d.ts +1 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DNX8ray0.js +1 -0
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-BIEqP-0I.js → DataTable.vue_vue_type_style_index_0_lang-a06ynWLy.js} +36 -30
- package/dist/Divider/Divider.d.ts +3 -2
- package/dist/DropZone/DropZone.d.ts +4 -3
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-B9y7TlwK.js → DropZone.vue_vue_type_style_index_0_lang-B2XNdFr7.js} +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-EJIu65Kx.js → DropZone.vue_vue_type_style_index_0_lang-Dq0K__t6.js} +2 -2
- package/dist/Empty/Empty.d.ts +3 -2
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-BUUZkqKK.js → Empty.vue_vue_type_style_index_0_lang-BkLWzc14.js} +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-CzxHjKoM.js → Empty.vue_vue_type_style_index_0_lang-C1kPtilP.js} +1 -1
- package/dist/FloatButton/FloatButton.d.ts +178 -15
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BkkyOUA7.js → FloatButton.vue_vue_type_script_setup_true_lang-CxSElBbb.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-09oykls8.js → FloatButton.vue_vue_type_script_setup_true_lang-sIUaExTM.js} +1 -1
- package/dist/Form/Form.d.ts +18 -18
- package/dist/Form/FormItem.d.ts +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormValidation/FormValidation.d.ts +7 -6
- package/dist/GOPicker/GOItemSkeleton.d.ts +1 -1
- package/dist/GOPicker/GOPicker.d.ts +45 -44
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-kynTp-m5.js → GOPicker.vue_vue_type_style_index_0_lang-CR7s37Os.js} +17 -15
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-BE8x9dGA.js → GOPicker.vue_vue_type_style_index_0_lang-rSEkCO3H.js} +1 -1
- package/dist/GraphicalObject/GraphicalObject.d.ts +2 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BZWcWAd8.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CpstWkLR.js} +2 -2
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-X3qLlz8e.js → GraphicalObject.vue_vue_type_script_setup_true_lang-WjnCG0pe.js} +1 -1
- package/dist/GraphicalObjectGroup/GraphicalObjectGroup.d.ts +1 -1
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-eUYKt1g8.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-BXpVeN5_.js} +2 -2
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-HhLovMZS.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-i6Leg2rQ.js} +1 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/{Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js → Icon.vue_vue_type_style_index_0_lang-DkeXz23k.js} +175 -172
- package/dist/{Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js → Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js} +3 -3
- package/dist/IconButton/IconButton.d.ts +179 -16
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DGXtxJVO.js → IconButton.vue_vue_type_script_setup_true_lang-Bz66rcDQ.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-B2mwpDQo.js → IconButton.vue_vue_type_script_setup_true_lang-CudH1Czj.js} +1 -1
- package/dist/Image/Image.d.ts +3 -2
- package/dist/Image/index.js +1 -1
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-Dxp0n_0A.js → Image.vue_vue_type_style_index_0_lang-D7buZGTj.js} +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-_1Vqh4mv.js → Image.vue_vue_type_style_index_0_lang-D8BJOCro.js} +2 -2
- package/dist/IndentLevel/IndentLevel.d.ts +3 -2
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-DPL6yVwu.js → IndentLevel.vue_vue_type_style_index_0_lang-DkVpxqkS.js} +3 -3
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BNXXU--A.js → IndentLevel.vue_vue_type_style_index_0_lang-iaGGd8NQ.js} +1 -1
- package/dist/Indicator/Indicator.d.ts +2 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BAJid2ch.js → Indicator.vue_vue_type_script_setup_true_lang-BTt9LTh1.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BZQujvXX.js → Indicator.vue_vue_type_script_setup_true_lang-C6C6qnFI.js} +1 -1
- package/dist/Input/Input.d.ts +9 -6
- package/dist/Input/index.js +2 -2
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-BhpGixbX.js → Input.vue_vue_type_script_setup_true_lang-Dtkw6-JD.js} +10 -10
- package/dist/{Input.vue_vue_type_script_setup_true_lang-P-pBp4sf.js → Input.vue_vue_type_script_setup_true_lang-Dws8FarS.js} +1 -1
- package/dist/InputNumber/InputNumber.d.ts +16 -13
- package/dist/InputNumber/index.js +2 -2
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-DcGG4i1C.js → InputNumber.vue_vue_type_script_setup_true_lang-Cr4YLP4W.js} +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-yrowDfWL.js → InputNumber.vue_vue_type_script_setup_true_lang-mEje-O-q.js} +27 -27
- package/dist/Kbd/Kbd.d.ts +3 -2
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-q3jBcYir.js → Kbd.vue_vue_type_style_index_0_lang-BFlrS9Oh.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-XS49-yX4.js → Kbd.vue_vue_type_style_index_0_lang-VXCAjXze.js} +1 -1
- package/dist/Label/Label.d.ts +3 -2
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/Link.d.ts +3 -2
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-BRLBWpij.js +1 -0
- package/dist/{Link.vue_vue_type_style_index_0_lang-DAQr5LuP.js → Link.vue_vue_type_style_index_0_lang-DgvyW7Rs.js} +14 -13
- package/dist/Menu/Menu.d.ts +1 -1
- package/dist/Menu/MenuItemWrapper.d.ts +2 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-DRgLTDF9.js → MenuItem.vue_vue_type_style_index_0_lang-AhI5J805.js} +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-Tx1mw3fx.js → MenuItem.vue_vue_type_style_index_0_lang-BSbQKPOJ.js} +13 -13
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-BJSH2nV1.js → Pagination.vue_vue_type_style_index_0_lang-6HV2JmdQ.js} +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-DdoGJbhR.js → Pagination.vue_vue_type_style_index_0_lang-FoV1-lO_.js} +7 -6
- package/dist/Popover/Popover.d.ts +122 -20
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-BgRvygIi.js → Popover.vue_vue_type_style_index_0_lang-BolWR0Oq.js} +2 -2
- package/dist/{Popover.vue_vue_type_style_index_0_lang-D7HUX-0i.js → Popover.vue_vue_type_style_index_0_lang-COPtUT1x.js} +1 -1
- package/dist/Progress/Progress.d.ts +6 -5
- package/dist/Progress/index.js +1 -1
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/{Progress.vue_vue_type_style_index_0_lang-ByAwM9mc.js → Progress.vue_vue_type_style_index_0_lang-BXhIqXDx.js} +24 -24
- package/dist/{Progress.vue_vue_type_style_index_0_lang-BECdYJmY.js → Progress.vue_vue_type_style_index_0_lang-DNe_dcRZ.js} +1 -1
- package/dist/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/RadioGroup/RadioGroupItem.d.ts +3 -3
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-D8f-sgna.js → RadioGroup.vue_vue_type_script_setup_true_lang-D-9WHezS.js} +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-Daq1nx9-.js → RadioGroup.vue_vue_type_script_setup_true_lang-NO2KpdR5.js} +1 -1
- package/dist/ScrollContainer/Mask.d.ts +1 -1
- package/dist/ScrollContainer/ScrollContainer.d.ts +184 -15
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-DqKhWsL2.js → ScrollContainer.vue_vue_type_style_index_0_lang-DKfgCbWJ.js} +1 -1
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-Cp0bQf0N.js → ScrollContainer.vue_vue_type_style_index_0_lang-Dl1jP8xY.js} +2 -2
- package/dist/Segmented/Segmented.d.ts +4 -3
- package/dist/Segmented/index.js +1 -1
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-3JqUJ0d7.js → Segmented.vue_vue_type_style_index_0_lang-BKyJdc6h.js} +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-B1uEmVPJ.js → Segmented.vue_vue_type_style_index_0_lang-uZeKLoid.js} +2 -2
- package/dist/Select/Select.d.ts +8 -7
- package/dist/Select/SelectLabel.d.ts +3 -2
- package/dist/Select/SelectTrigger.d.ts +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-DzWX4QRp.js +770 -0
- package/dist/Select.vue_vue_type_style_index_0_lang-i_BSOFzK.js +1 -0
- package/dist/Shortcut/Shortcut.d.ts +1 -1
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-QKWaOeSf.js → Shortcut.vue_vue_type_style_index_0_lang-2KAzQkhD.js} +2 -2
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-C7MfNmHi.js → Shortcut.vue_vue_type_style_index_0_lang-e8lB0y-L.js} +1 -1
- package/dist/Skeleton/Skeleton.d.ts +2 -2
- package/dist/Spinner/Spinner.d.ts +4 -3
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-y2U5MnVr.js → Spinner.vue_vue_type_style_index_0_lang-CKYCbCZQ.js} +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-ypYtsXl_.js → Spinner.vue_vue_type_style_index_0_lang-NYJmdFpB.js} +1 -1
- package/dist/SubMenu/SubMenu.d.ts +4 -2
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/Switch.d.ts +5 -4
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-Dqy63Xsy.js → Switch.vue_vue_type_style_index_0_lang-B6Pt3aij.js} +2 -2
- package/dist/{Switch.vue_vue_type_style_index_0_lang-G67verEB.js → Switch.vue_vue_type_style_index_0_lang-BIe63Ak0.js} +1 -1
- package/dist/{THead.vue_vue_type_style_index_0_lang-Bbxgbizj.js → THead.vue_vue_type_style_index_0_lang-CCUQ2E3U.js} +1 -1
- package/dist/{THead.vue_vue_type_style_index_0_lang-Dg4UjN2s.js → THead.vue_vue_type_style_index_0_lang-DuCJdfy4.js} +1 -1
- package/dist/Table/TBody.d.ts +3 -2
- package/dist/Table/THead.d.ts +3 -2
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Table/Td.d.ts +3 -2
- package/dist/Table/Th.d.ts +3 -2
- package/dist/Table/Tr.d.ts +3 -2
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +462 -14
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-Crls15aj.js → Textarea.vue_vue_type_style_index_0_lang-BqUWj9j2.js} +1 -1
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-95EkbeEZ.js → Textarea.vue_vue_type_style_index_0_lang-CgC3wstw.js} +7 -7
- package/dist/Tooltip/Tooltip.d.ts +2 -1
- package/dist/Tree/Tree.d.ts +3 -2
- package/dist/Tree/TreeNode.d.ts +3 -2
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-DitveB9N.js → Tree.vue_vue_type_style_index_0_lang-BiU1prIp.js} +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-CauWPkMW.js → Tree.vue_vue_type_style_index_0_lang-wxS0iVAQ.js} +6 -6
- package/dist/Upload/Upload.d.ts +5 -4
- package/dist/Upload/UploadListItem.d.ts +1 -1
- package/dist/Upload/UploadTrigger.d.ts +5 -2
- package/dist/Upload/index.js +1 -1
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/{Upload.vue_vue_type_style_index_0_lang-B9HYX_QI.js → Upload.vue_vue_type_style_index_0_lang-B_fYzNVt.js} +6 -6
- package/dist/{Upload.vue_vue_type_style_index_0_lang-DhqA32eL.js → Upload.vue_vue_type_style_index_0_lang-BiBzroEH.js} +1 -1
- package/dist/index.js +175 -174
- package/dist/index.umd.cjs +1 -1
- package/dist/{useInputDataStates-COzmxWTw.js → useInputDataStates-BNwXgt9l.js} +1 -1
- package/dist/{useInputDataStates-BWZ4Q3rt.js → useInputDataStates-CM2GJM3c.js} +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +10 -9
- package/dist/utils/index.umd.cjs +1 -1
- package/dist/utils/isEmpty.d.ts +1 -0
- package/dist/utils/useInputDataStates.d.ts +2 -2
- package/package.json +25 -33
- package/dist/Alert.vue_vue_type_style_index_0_lang-BWViURUx.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-MiT5JEP1.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-DUhoDHJs.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-itDia0W9.js +0 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-zFv3zzLA.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-CarDXTu5.js +0 -712
- package/dist/Select.vue_vue_type_style_index_0_lang-ikZ5_KwB.js +0 -1
|
@@ -42,6 +42,7 @@ export interface BaseButtonSlots {
|
|
|
42
42
|
postIcon?: (data?: object) => never;
|
|
43
43
|
}
|
|
44
44
|
declare function __VLS_template(): {
|
|
45
|
+
attrs: Partial<{}>;
|
|
45
46
|
slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
|
|
46
47
|
refs: {
|
|
47
48
|
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -50,14 +51,14 @@ declare function __VLS_template(): {
|
|
|
50
51
|
default: boolean;
|
|
51
52
|
};
|
|
52
53
|
as: {
|
|
53
|
-
type: import('vue').PropType<import('reka-ui'
|
|
54
|
+
type: import('vue').PropType<import('reka-ui').AsTag | import('vue').Component>;
|
|
54
55
|
default: string;
|
|
55
56
|
};
|
|
56
57
|
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
57
58
|
[key: string]: any;
|
|
58
59
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
59
60
|
asChild: boolean;
|
|
60
|
-
as: import('reka-ui'
|
|
61
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
61
62
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
62
63
|
P: {};
|
|
63
64
|
B: {};
|
|
@@ -71,17 +72,17 @@ declare function __VLS_template(): {
|
|
|
71
72
|
default: boolean;
|
|
72
73
|
};
|
|
73
74
|
as: {
|
|
74
|
-
type: import('vue').PropType<import('reka-ui'
|
|
75
|
+
type: import('vue').PropType<import('reka-ui').AsTag | import('vue').Component>;
|
|
75
76
|
default: string;
|
|
76
77
|
};
|
|
77
78
|
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
78
79
|
[key: string]: any;
|
|
79
80
|
}>, {}, {}, {}, {
|
|
80
81
|
asChild: boolean;
|
|
81
|
-
as: import('reka-ui'
|
|
82
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
82
83
|
}> | null;
|
|
83
84
|
};
|
|
84
|
-
|
|
85
|
+
rootEl: any;
|
|
85
86
|
};
|
|
86
87
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
87
88
|
declare const __VLS_component: import('vue').DefineComponent<BaseButtonProps, {
|
|
@@ -92,10 +93,47 @@ declare const __VLS_component: import('vue').DefineComponent<BaseButtonProps, {
|
|
|
92
93
|
}, string, import('vue').PublicProps, Readonly<BaseButtonProps> & Readonly<{
|
|
93
94
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
94
95
|
}>, {
|
|
95
|
-
type: ButtonType;
|
|
96
96
|
color: ButtonColor;
|
|
97
|
+
type: ButtonType;
|
|
97
98
|
htmlType: "reset" | "submit" | "button";
|
|
98
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
99
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
100
|
+
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
101
|
+
asChild: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
as: {
|
|
106
|
+
type: import('vue').PropType<import('reka-ui').AsTag | import('vue').Component>;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
112
|
+
asChild: boolean;
|
|
113
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
114
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
115
|
+
P: {};
|
|
116
|
+
B: {};
|
|
117
|
+
D: {};
|
|
118
|
+
C: {};
|
|
119
|
+
M: {};
|
|
120
|
+
Defaults: {};
|
|
121
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
122
|
+
asChild: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
as: {
|
|
127
|
+
type: import('vue').PropType<import('reka-ui').AsTag | import('vue').Component>;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
131
|
+
[key: string]: any;
|
|
132
|
+
}>, {}, {}, {}, {
|
|
133
|
+
asChild: boolean;
|
|
134
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
135
|
+
}> | null;
|
|
136
|
+
}, any>;
|
|
99
137
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
100
138
|
export default _default;
|
|
101
139
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -52,7 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Ba
|
|
|
52
52
|
disabled: boolean;
|
|
53
53
|
clearIcon: string;
|
|
54
54
|
bordered: boolean;
|
|
55
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
55
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Readonly<BaseInputSlots> & BaseInputSlots>;
|
|
56
56
|
export default _default;
|
|
57
57
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
58
|
new (): {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getBemBlock as
|
|
3
|
-
import { cva as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { k as B, l as P, e as T } from "./Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js";
|
|
7
|
-
import { u as V } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-DSKgXw-g.js";
|
|
1
|
+
import { defineComponent as O, useSlots as I, computed as p, createBlock as E, openBlock as L, h as x } from "vue";
|
|
2
|
+
import { getBemBlock as w, generateVariantClassList as o, normCls as F } from "@pantograph/utils";
|
|
3
|
+
import { cva as G } from "class-variance-authority";
|
|
4
|
+
import { k as b, l as M, e as P } from "./Icon.vue_vue_type_style_index_0_lang-DkeXz23k.js";
|
|
5
|
+
import { g as T } from "./options-Bh1s18jm.js";
|
|
8
6
|
import "es-toolkit";
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { c as v, b as B } from "./BaseBadge.model-D4ZfMIfM.js";
|
|
8
|
+
import { u as V } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js";
|
|
9
|
+
const R = /* @__PURE__ */ O({
|
|
10
|
+
...T("BaseBadge"),
|
|
11
11
|
__name: "BaseBadge",
|
|
12
12
|
props: {
|
|
13
13
|
size: { default: "md" },
|
|
@@ -21,16 +21,16 @@ const R = /* @__PURE__ */ k({
|
|
|
21
21
|
flipOnDir: {}
|
|
22
22
|
},
|
|
23
23
|
setup(_) {
|
|
24
|
-
const { getFlipOnDir:
|
|
24
|
+
const { getFlipOnDir: h } = V(), z = h("flipOnDir"), i = w("badge"), e = _, S = G(i, {
|
|
25
25
|
variants: {
|
|
26
|
-
size: o(
|
|
26
|
+
size: o(B, i),
|
|
27
27
|
type: o(v, i),
|
|
28
28
|
text: o("text", i),
|
|
29
29
|
icon: o("icon", i),
|
|
30
30
|
br: o("br", i)
|
|
31
31
|
}
|
|
32
32
|
}), s = I(), n = p(() => v.includes(e.type) ? e.type : "pill"), m = p(() => {
|
|
33
|
-
let t =
|
|
33
|
+
let t = B.includes(e.size) ? e.size : "md";
|
|
34
34
|
return t === "sm" && n.value !== "rect" ? n.value === "minify" ? t = "tiny" : n.value === "pill" && (t = "md") : n.value === "minify" && !["tiny", "tinier"].includes(t) ? t = "tiny" : n.value !== "minify" && ["tiny", "tinier"].includes(t) && (t = "md"), t;
|
|
35
35
|
}), C = p(() => {
|
|
36
36
|
switch (m.value) {
|
|
@@ -44,33 +44,33 @@ const R = /* @__PURE__ */ k({
|
|
|
44
44
|
default:
|
|
45
45
|
return "sm";
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), k = () => {
|
|
48
48
|
var g, y;
|
|
49
49
|
const t = [];
|
|
50
50
|
let c, a;
|
|
51
51
|
const r = e.type === "minify";
|
|
52
52
|
r || (c = (g = s.icon) == null ? void 0 : g.call(s, {}), a = (y = s.default) == null ? void 0 : y.call(s, {}));
|
|
53
|
-
const f = !r && !
|
|
53
|
+
const f = !r && !b(a), u = !r && !b(c), l = !!(e.text === 0 || !M(e.text) || f), d = !!(e.icon || u);
|
|
54
54
|
(e.type === "rect" && l ? !1 : d) && t.push(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{ icon: e.icon, size: C.value, flipOnDir:
|
|
55
|
+
x(
|
|
56
|
+
P,
|
|
57
|
+
{ icon: e.icon, size: C.value, flipOnDir: z.value },
|
|
58
58
|
u ? {
|
|
59
59
|
default: () => c
|
|
60
60
|
} : void 0
|
|
61
61
|
)
|
|
62
62
|
), l && (f ? t.push(a) : t.push(e.text));
|
|
63
|
-
const
|
|
63
|
+
const D = {
|
|
64
64
|
size: m.value,
|
|
65
65
|
type: n.value,
|
|
66
66
|
text: l,
|
|
67
67
|
icon: d,
|
|
68
68
|
br: !!e.br
|
|
69
69
|
};
|
|
70
|
-
return
|
|
70
|
+
return x(
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
73
|
-
class:
|
|
73
|
+
class: F(S(D), e.class),
|
|
74
74
|
style: {
|
|
75
75
|
"--ptc-badge-fg": e.fg,
|
|
76
76
|
"--ptc-badge-bg": e.bg,
|
|
@@ -80,7 +80,7 @@ const R = /* @__PURE__ */ k({
|
|
|
80
80
|
t
|
|
81
81
|
);
|
|
82
82
|
};
|
|
83
|
-
return (t, c) => (
|
|
83
|
+
return (t, c) => (L(), E(k));
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("vue"),n=require("@pantograph/utils"),q=require("class-variance-authority"),o=require("./Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js"),L=require("./options-CY2uxp5A.js");require("es-toolkit");const l=require("./BaseBadge.model-DecqxaGN.js"),V=require("./ConfigProvider.vue_vue_type_script_setup_true_lang-BAXkTMEt.js"),D=s.defineComponent({...L.getComponentOptions("BaseBadge"),__name:"BaseBadge",props:{size:{default:"md"},class:{},text:{},bg:{},fg:{},br:{},type:{default:"pill"},icon:{},flipOnDir:{}},setup(B){const{getFlipOnDir:x}=V.useConfig(),b=x("flipOnDir"),i=n.getBemBlock("badge"),e=B,h=q.cva(i,{variants:{size:n.generateVariantClassList(l.BadgeSizes,i),type:n.generateVariantClassList(l.BadgeTypes,i),text:n.generateVariantClassList("text",i),icon:n.generateVariantClassList("icon",i),br:n.generateVariantClassList("br",i)}}),a=s.useSlots(),c=s.computed(()=>l.BadgeTypes.includes(e.type)?e.type:"pill"),f=s.computed(()=>{let t=l.BadgeSizes.includes(e.size)?e.size:"md";return t==="sm"&&c.value!=="rect"?c.value==="minify"?t="tiny":c.value==="pill"&&(t="md"):c.value==="minify"&&!["tiny","tinier"].includes(t)?t="tiny":c.value!=="minify"&&["tiny","tinier"].includes(t)&&(t="md"),t}),C=s.computed(()=>{switch(f.value){case"sm":return"xsm";case"xsm":return"2xsm";case"2xsm":return"3xsm";case"md":default:return"sm"}}),z=()=>{var y,v;const t=[];let r,u;const p=e.type==="minify";p||(r=(y=a.icon)==null?void 0:y.call(a,{}),u=(v=a.default)==null?void 0:v.call(a,{}));const m=!p&&!o.isEmptyElement(u),g=!p&&!o.isEmptyElement(r),d=!!(e.text===0||!o.isEmptyLikeLodash(e.text)||m),_=!!(e.icon||g);(e.type==="rect"&&d?!1:_)&&t.push(s.h(o._sfc_main$2,{icon:e.icon,size:C.value,flipOnDir:b.value},g?{default:()=>r}:void 0)),d&&(m?t.push(u):t.push(e.text));const S={size:f.value,type:c.value,text:d,icon:_,br:!!e.br};return s.h("div",{class:n.normCls(h(S),e.class),style:{"--ptc-badge-fg":e.fg,"--ptc-badge-bg":e.bg,"--ptc-badge-br":e.br}},t)};return(t,r)=>(s.openBlock(),s.createBlock(z))}});exports._sfc_main=D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),f=require("./Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),f=require("./Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js"),w=require("./Spinner.vue_vue_type_style_index_0_lang-CKYCbCZQ.js"),R=require("./Badge.vue_vue_type_script_setup_true_lang-Btr5ZeJl.js"),E=require("reka-ui"),s=require("./ButtonGroup.vue_vue_type_script_setup_true_lang-DwaBBOgk.js"),a=require("@pantograph/utils"),N=require("class-variance-authority"),G=require("./options-CY2uxp5A.js"),A=require("./ConfigProvider.vue_vue_type_script_setup_true_lang-BAXkTMEt.js"),j=require("./useInputDataStates-CM2GJM3c.js"),k="2xsm",U=e.defineComponent({...G.getComponentOptions("BaseButton"),__name:"BaseButton",props:{class:{},text:{},size:{},color:{default:"primary"},noRing:{type:Boolean},type:{default:"fill"},variant:{},loading:{type:Boolean},action:{type:Boolean},active:{type:Boolean},badgeText:{},badgeIcon:{},icon:{},preIcon:{},postIcon:{},flipOnDir:{},preIconFlipOnDir:{},postIconFlipOnDir:{},badgeIconFlipOnDir:{},htmlType:{default:"button"},block:{type:Boolean},disabled:{type:Boolean},href:{},target:{}},emits:["click"],setup(C,{expose:z,emit:x}){const t=C,{getFlipOnDir:p}=A.useConfig(),h=p("flipOnDir"),D=p("preIconFlipOnDir"),S=p("postIconFlipOnDir"),V=p("badgeIconFlipOnDir"),i=a.getBemBlock("button"),O=N.cva(i,{variants:{size:a.generateVariantClassList(s.ButtonSizes,i),type:a.generateVariantClassList(s.ButtonTypes,i),color:a.generateVariantClassList(s.ButtonColors,i),variant:a.generateVariantClassList(s.ButtonVariants,i),action:a.generateVariantClassList("action",i),active:a.generateVariantClassList("active",i),text:a.generateVariantClassList("text",i),preIcon:a.generateVariantClassList("preIcon",i),postIcon:a.generateVariantClassList("postIcon",i),loading:a.generateVariantClassList("loading",i),block:a.generateVariantClassList("block",i),noRing:a.generateVariantClassList("no-ring",i)}}),B=s.injectButtonGroupContext({size:e.computed(()=>t.size),variant:e.computed(()=>t.variant)}),d=e.computed(()=>t.variant??B.variant.value??"simple"),r=e.computed(()=>["icon","float"].includes(d.value)||(o.icon||t.icon)&&!(t.text||o.default||t.preIcon||o.preIcon||t.postIcon||o.postIcon)),o=e.useSlots(),{getDisabled:v,getSize:m}=j.useFormInput({getSize:()=>t.size??B.size.value}),T=e.computed(()=>{let n=s.ButtonTypes.includes(t.type)?t.type:"fill";const l=m.value,g=l&&s.ButtonSizes.includes(l)?l:"md";let c=t.color&&s.ButtonColors.includes(t.color)?t.color:"primary",u=d.value&&s.ButtonVariants.includes(d.value)?d.value:"simple";return t.action?((u==="float"||r.value)&&(u="icon"),n==="fill"&&(n="outline"),c=void 0):u==="float"&&(n==="ghost"&&(n="fill"),["primary","neutral"].includes(c)||(c="primary")),{size:g,type:n,color:c,variant:u,action:!!t.action,active:!!t.active,loading:!!t.loading,block:!!t.block,noRing:!!t.noRing,text:!r.value&&!!(t.text||o.default),preIcon:!r.value&&!!(t.preIcon||o.preIcon),postIcon:!r.value&&!!(t.postIcon||o.postIcon)}}),_=e.computed(()=>{switch(m.value){case"lg":return"sm";case"sm":return"2xsm";default:return"xsm"}}),L=e.computed(()=>{switch(m.value){case"sm":return"3xsm";case"lg":return"xsm";case"md":default:return"2xsm"}}),y=e.computed(()=>t.href?"a":"button"),q=e.computed(()=>{const n={disabled:v.value};return t.href&&(n.href=t.href,n.target=t.target),t.htmlType&&(n.type=t.htmlType),n}),I=e.ref();z({focus(){var n;(n=I.value)==null||n.focus()},blur(){var n;(n=I.value)==null||n.blur()}});const F=x,P=n=>{if(t.loading||t.disabled){n.preventDefault(),n.stopPropagation();return}F("click",n)};e.computed(()=>t.action&&t.active&&!r.value&&(t.badgeText||o.badgeText||t.badgeIcon||o.badgeIcon||o.badge));const $=()=>{var n,l,g;if(t.action&&t.active&&!r.value){const c=(n=o.badge)==null?void 0:n.call(o,{color:v.value?"gray":"primary",size:k});if(!f.isEmptyElement(c))return c;const u=(l=o.badgeText)==null?void 0:l.call(o,{}),b=(g=o.badgeIcon)==null?void 0:g.call(o,{});if(t.badgeText||u||t.badgeIcon||b)return e.h(R._sfc_main,{text:t.badgeText,icon:t.badgeIcon,flipOnDir:V.value,color:v.value?"gray":"primary",size:k},{default:u?o.badgeText:void 0,icon:b?o.badgeIcon:void 0})}return null};return(n,l)=>(e.openBlock(),e.createBlock(e.unref(E.Primitive),e.mergeProps({as:y.value,key:String(y.value),class:e.unref(a.normCls)(e.unref(O)(T.value),t.class),ref_key:"buttonRef",ref:I},q.value,{onClick:P}),{default:e.withCtx(()=>[n.loading?(e.openBlock(),e.createBlock(w._sfc_main,{key:1,class:e.normalizeClass(e.unref(a.getBemElement)(e.unref(i),"loading")),size:_.value},null,8,["class","size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(n.preIcon||o.preIcon)&&!r.value?(e.openBlock(),e.createBlock(f._sfc_main$2,{key:0,flipOnDir:e.unref(D),icon:n.preIcon,size:_.value},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"preIcon")]),_:3},8,["flipOnDir","icon","size"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(f._sfc_main$2,{key:1,icon:n.icon,size:L.value,flipOnDir:e.unref(h)},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"icon")]),_:3},8,["icon","size","flipOnDir"])):e.renderSlot(n.$slots,"default",{key:2},()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),e.createVNode($),(n.postIcon||o.postIcon)&&!r.value?(e.openBlock(),e.createBlock(f._sfc_main$2,{key:3,flipOnDir:e.unref(S),icon:n.postIcon,size:_.value},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"postIcon")]),_:3},8,["flipOnDir","icon","size"])):e.createCommentVNode("",!0)],64))]),_:3},16,["as","class"]))}});exports._sfc_main=U;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as K, computed as i, useSlots as M, ref as Q, createBlock as f, openBlock as u, unref as r, mergeProps as U, withCtx as v, createElementBlock as W, Fragment as X, createCommentVNode as h, renderSlot as I, createVNode as Y, createTextVNode as Z, toDisplayString as ee, normalizeClass as oe, h as te } from "vue";
|
|
2
|
-
import { e as k, k as ne } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as ae } from "./Spinner.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as ie } from "./Badge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { e as k, k as ne } from "./Icon.vue_vue_type_style_index_0_lang-DkeXz23k.js";
|
|
3
|
+
import { _ as ae } from "./Spinner.vue_vue_type_style_index_0_lang-NYJmdFpB.js";
|
|
4
|
+
import { _ as ie } from "./Badge.vue_vue_type_script_setup_true_lang-Kd8vLJ1r.js";
|
|
5
5
|
import { Primitive as le } from "reka-ui";
|
|
6
6
|
import { B as S, b as T, a as C, c as _, i as re } from "./ButtonGroup.vue_vue_type_script_setup_true_lang-DPtJY6ad.js";
|
|
7
7
|
import { getBemBlock as se, generateVariantClassList as a, normCls as ce, getBemElement as pe } from "@pantograph/utils";
|
|
8
8
|
import { cva as ue } from "class-variance-authority";
|
|
9
9
|
import { g as fe } from "./options-Bh1s18jm.js";
|
|
10
|
-
import { u as de } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as me } from "./useInputDataStates-
|
|
10
|
+
import { u as de } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js";
|
|
11
|
+
import { u as me } from "./useInputDataStates-BNwXgt9l.js";
|
|
12
12
|
const F = "2xsm", he = /* @__PURE__ */ K({
|
|
13
13
|
...fe("BaseButton"),
|
|
14
14
|
__name: "BaseButton",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("@pantograph/utils"),C=require("class-variance-authority"),f=require("./Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),t=require("@pantograph/utils"),C=require("class-variance-authority"),f=require("./Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js"),v=require("./Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js"),B=require("./options-CY2uxp5A.js");require("es-toolkit");const p=["sm","md","lg"],g=["error","warning","success"],r=t.getBemBlock("input"),z=a=>({input:a,focus:l=>{var o;return(o=a.value)==null?void 0:o.focus(l)},blur:()=>{var l;return(l=a.value)==null?void 0:l.blur()},select:()=>{var l;return(l=a.value)==null?void 0:l.select()},setSelectionRange:(l,o,i)=>{var s;return(s=a.value)==null?void 0:s.setSelectionRange(l,o,i)}}),S=e.defineComponent({...B.getComponentOptions("BaseInput"),__name:"BaseInput",props:{disabled:{type:Boolean,default:void 0},leading:{},trailing:{},clearIcon:{default:"tabler:circle-x"},trailingCls:{},clearIconCls:{},dividerCls:{},leadingCls:{},class:{},allowClear:{type:Boolean},bordered:{type:Boolean,default:!0},simple:{type:Boolean},size:{},status:{},hasValue:{type:Boolean},steps:{type:Boolean}},emits:["clear"],setup(a,{emit:c}){const n=a,u=e.useSlots(),d=C.cva(r,{variants:{size:t.generateVariantClassList(p,r),status:t.generateVariantClassList(g,r),bordered:t.generateVariantClassList("bordered",r),simple:t.generateVariantClassList("simple",r),steps:t.generateVariantClassList("steps",r)}}),l=c,o=e.computed(()=>{switch(n.size){case"sm":return"2xsm";default:return"xsm"}}),i=e.computed(()=>{switch(n.size){case"sm":return"2xsm";case"md":return"xsm";default:return"sm"}});return(s,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(t.normCls)(e.unref(d)({size:n.size,status:n.status==="success"&&!s.hasValue?void 0:n.status,bordered:s.bordered,simple:s.simple,steps:s.steps}),n.class))},[u.leading||n.leading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t.normCls)(e.unref(t.getBemElement)(e.unref(r),"leading"),s.leadingCls))},[e.renderSlot(s.$slots,"leading",{iconSize:i.value},()=>[e.createTextVNode(e.toDisplayString(s.leading),1)])],2)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default"),u.trailing||n.trailing||s.allowClear?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(t.normCls)(e.unref(t.getBemElement)(e.unref(r),"trailing"),s.trailingCls))},[!n.disabled&&s.allowClear&&s.hasValue?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f._sfc_main$2,{icon:s.clearIcon,size:o.value,onClick:m[0]||(m[0]=e.withModifiers(y=>l("clear"),["stop"])),class:e.normalizeClass(e.unref(t.normCls)(e.unref(t.getBemElement)(e.unref(r),"clear_icon"),s.clearIconCls))},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"clearIcon")]),_:3},8,["icon","size","class"]),u.trailing||n.trailing?(e.openBlock(),e.createBlock(v._sfc_main,{key:0,type:"vertical",class:e.normalizeClass(e.unref(t.normCls)(e.unref(t.getBemElement)(e.unref(r),"divider"),s.dividerCls))},null,8,["class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"trailing",{iconSize:i.value},()=>[e.createTextVNode(e.toDisplayString(s.trailing),1)])],2)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"extra",{iconSize:i.value})],2))}});exports.InputSizes=p;exports.InputStatuses=g;exports._sfc_main=S;exports.inputPrefix=r;exports.useInputExposes=z;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as I, useSlots as k, computed as S, createElementBlock as g, openBlock as n, normalizeClass as c, unref as s, createCommentVNode as v, renderSlot as u, createTextVNode as y, toDisplayString as b, Fragment as w, createVNode as $, createBlock as V, withModifiers as h, withCtx as E } from "vue";
|
|
2
2
|
import { getBemBlock as N, generateVariantClassList as d, normCls as m, getBemElement as C } from "@pantograph/utils";
|
|
3
3
|
import { cva as D } from "class-variance-authority";
|
|
4
|
-
import { e as F } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { e as F } from "./Icon.vue_vue_type_style_index_0_lang-DkeXz23k.js";
|
|
5
5
|
import { _ as L } from "./Divider.vue_vue_type_style_index_0_lang-CfBklijs.js";
|
|
6
6
|
import { g as M } from "./options-Bh1s18jm.js";
|
|
7
7
|
import "es-toolkit";
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton'
|
|
|
2
2
|
export type ButtonProps = Partial<Pick<BaseButtonProps, 'class' | 'type' | 'noRing' | 'color' | 'loading' | 'preIcon' | 'postIcon' | 'size' | 'text' | 'block' | 'htmlType' | 'postIconFlipOnDir' | 'preIconFlipOnDir'>>;
|
|
3
3
|
type ButtonSlots = Omit<BaseButtonSlots, 'icon' | 'badge'>;
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
5
6
|
slots: Readonly<ButtonSlots> & ButtonSlots;
|
|
6
7
|
refs: {
|
|
7
8
|
buttonRef: ({
|
|
@@ -10,11 +11,11 @@ declare function __VLS_template(): {
|
|
|
10
11
|
$props: {
|
|
11
12
|
readonly class?: import('clsx').ClassValue;
|
|
12
13
|
readonly text?: string | number | undefined;
|
|
13
|
-
readonly size?: import('
|
|
14
|
-
readonly color?: import('
|
|
14
|
+
readonly size?: import('..').ButtonSize | undefined;
|
|
15
|
+
readonly color?: import('..').ButtonColor | undefined;
|
|
15
16
|
readonly noRing?: boolean | undefined;
|
|
16
|
-
readonly type?: import('
|
|
17
|
-
readonly variant?: import('
|
|
17
|
+
readonly type?: import('..').ButtonType | undefined;
|
|
18
|
+
readonly variant?: import('..').ButtonVariant | undefined;
|
|
18
19
|
readonly loading?: boolean | undefined;
|
|
19
20
|
readonly action?: boolean | undefined;
|
|
20
21
|
readonly active?: boolean | undefined;
|
|
@@ -23,10 +24,10 @@ declare function __VLS_template(): {
|
|
|
23
24
|
readonly icon?: string | undefined;
|
|
24
25
|
readonly preIcon?: string | undefined;
|
|
25
26
|
readonly postIcon?: string | undefined;
|
|
26
|
-
readonly flipOnDir?: import('
|
|
27
|
-
readonly preIconFlipOnDir?: import('
|
|
28
|
-
readonly postIconFlipOnDir?: import('
|
|
29
|
-
readonly badgeIconFlipOnDir?: import('
|
|
27
|
+
readonly flipOnDir?: import('..').FlipOnDir | undefined;
|
|
28
|
+
readonly preIconFlipOnDir?: import('..').FlipOnDir | undefined;
|
|
29
|
+
readonly postIconFlipOnDir?: import('..').FlipOnDir | undefined;
|
|
30
|
+
readonly badgeIconFlipOnDir?: import('..').FlipOnDir | undefined;
|
|
30
31
|
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
31
32
|
readonly block?: boolean | undefined;
|
|
32
33
|
readonly disabled?: boolean | undefined;
|
|
@@ -39,6 +40,43 @@ declare function __VLS_template(): {
|
|
|
39
40
|
};
|
|
40
41
|
$refs: {
|
|
41
42
|
[x: string]: unknown;
|
|
43
|
+
} & {
|
|
44
|
+
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
asChild: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
as: {
|
|
50
|
+
type: import('vue').PropType<import('reka-ui').AsTag | import('vue').Component>;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
56
|
+
asChild: boolean;
|
|
57
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
58
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
59
|
+
P: {};
|
|
60
|
+
B: {};
|
|
61
|
+
D: {};
|
|
62
|
+
C: {};
|
|
63
|
+
M: {};
|
|
64
|
+
Defaults: {};
|
|
65
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
66
|
+
asChild: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
as: {
|
|
71
|
+
type: import('vue').PropType<import('reka-ui').AsTag | import('vue').Component>;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
}>, {}, {}, {}, {
|
|
77
|
+
asChild: boolean;
|
|
78
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
79
|
+
}> | null;
|
|
42
80
|
};
|
|
43
81
|
$slots: Readonly<{
|
|
44
82
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
@@ -56,8 +94,8 @@ declare function __VLS_template(): {
|
|
|
56
94
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
95
|
click: (...args: any[]) => void;
|
|
58
96
|
}, string, {
|
|
59
|
-
|
|
60
|
-
|
|
97
|
+
color: import('..').ButtonColor;
|
|
98
|
+
type: import('..').ButtonType;
|
|
61
99
|
htmlType: "reset" | "submit" | "button";
|
|
62
100
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
63
101
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -80,25 +118,150 @@ declare function __VLS_template(): {
|
|
|
80
118
|
$nextTick: typeof import('vue').nextTick;
|
|
81
119
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
82
120
|
} & Readonly<{
|
|
83
|
-
|
|
84
|
-
|
|
121
|
+
color: import('..').ButtonColor;
|
|
122
|
+
type: import('..').ButtonType;
|
|
85
123
|
htmlType: "reset" | "submit" | "button";
|
|
86
124
|
}> & Omit<Readonly<BaseButtonProps> & Readonly<{
|
|
87
125
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
88
|
-
}>, "blur" | "focus" | ("
|
|
126
|
+
}>, "blur" | "focus" | ("color" | "type" | "htmlType")> & import('vue').ShallowUnwrapRef<{
|
|
89
127
|
focus(): void;
|
|
90
128
|
blur(): void;
|
|
91
129
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
92
130
|
$slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
|
|
93
131
|
}) | null;
|
|
94
132
|
};
|
|
95
|
-
|
|
133
|
+
rootEl: any;
|
|
96
134
|
};
|
|
97
135
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
98
|
-
declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "
|
|
136
|
+
declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "size" | "color" | "class" | "type" | "text" | "noRing" | "loading" | "preIcon" | "postIcon" | "preIconFlipOnDir" | "postIconFlipOnDir" | "htmlType" | "block">>, {
|
|
99
137
|
focus(): void;
|
|
100
138
|
blur(): void;
|
|
101
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "
|
|
139
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "size" | "color" | "class" | "type" | "text" | "noRing" | "loading" | "preIcon" | "postIcon" | "preIconFlipOnDir" | "postIconFlipOnDir" | "htmlType" | "block">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
140
|
+
buttonRef: ({
|
|
141
|
+
$: import('vue').ComponentInternalInstance;
|
|
142
|
+
$data: {};
|
|
143
|
+
$props: {
|
|
144
|
+
readonly class?: import('clsx').ClassValue;
|
|
145
|
+
readonly text?: string | number | undefined;
|
|
146
|
+
readonly size?: import('..').ButtonSize | undefined;
|
|
147
|
+
readonly color?: import('..').ButtonColor | undefined;
|
|
148
|
+
readonly noRing?: boolean | undefined;
|
|
149
|
+
readonly type?: import('..').ButtonType | undefined;
|
|
150
|
+
readonly variant?: import('..').ButtonVariant | undefined;
|
|
151
|
+
readonly loading?: boolean | undefined;
|
|
152
|
+
readonly action?: boolean | undefined;
|
|
153
|
+
readonly active?: boolean | undefined;
|
|
154
|
+
readonly badgeText?: string | undefined;
|
|
155
|
+
readonly badgeIcon?: string | undefined;
|
|
156
|
+
readonly icon?: string | undefined;
|
|
157
|
+
readonly preIcon?: string | undefined;
|
|
158
|
+
readonly postIcon?: string | undefined;
|
|
159
|
+
readonly flipOnDir?: import('..').FlipOnDir | undefined;
|
|
160
|
+
readonly preIconFlipOnDir?: import('..').FlipOnDir | undefined;
|
|
161
|
+
readonly postIconFlipOnDir?: import('..').FlipOnDir | undefined;
|
|
162
|
+
readonly badgeIconFlipOnDir?: import('..').FlipOnDir | undefined;
|
|
163
|
+
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
164
|
+
readonly block?: boolean | undefined;
|
|
165
|
+
readonly disabled?: boolean | undefined;
|
|
166
|
+
readonly href?: string | undefined;
|
|
167
|
+
readonly target?: string | undefined;
|
|
168
|
+
readonly onClick?: ((...args: any[]) => any) | undefined;
|
|
169
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
170
|
+
$attrs: {
|
|
171
|
+
[x: string]: unknown;
|
|
172
|
+
};
|
|
173
|
+
$refs: {
|
|
174
|
+
[x: string]: unknown;
|
|
175
|
+
} & {
|
|
176
|
+
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
177
|
+
asChild: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
as: {
|
|
182
|
+
type: import('vue').PropType<import('reka-ui').AsTag | import('vue').Component>;
|
|
183
|
+
default: string;
|
|
184
|
+
};
|
|
185
|
+
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
186
|
+
[key: string]: any;
|
|
187
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
188
|
+
asChild: boolean;
|
|
189
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
190
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
191
|
+
P: {};
|
|
192
|
+
B: {};
|
|
193
|
+
D: {};
|
|
194
|
+
C: {};
|
|
195
|
+
M: {};
|
|
196
|
+
Defaults: {};
|
|
197
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
198
|
+
asChild: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: boolean;
|
|
201
|
+
};
|
|
202
|
+
as: {
|
|
203
|
+
type: import('vue').PropType<import('reka-ui').AsTag | import('vue').Component>;
|
|
204
|
+
default: string;
|
|
205
|
+
};
|
|
206
|
+
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
207
|
+
[key: string]: any;
|
|
208
|
+
}>, {}, {}, {}, {
|
|
209
|
+
asChild: boolean;
|
|
210
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
211
|
+
}> | null;
|
|
212
|
+
};
|
|
213
|
+
$slots: Readonly<{
|
|
214
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
217
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
218
|
+
$host: Element | null;
|
|
219
|
+
$emit: (event: "click", ...args: any[]) => void;
|
|
220
|
+
$el: any;
|
|
221
|
+
$options: import('vue').ComponentOptionsBase<Readonly<BaseButtonProps> & Readonly<{
|
|
222
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
223
|
+
}>, {
|
|
224
|
+
focus(): void;
|
|
225
|
+
blur(): void;
|
|
226
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
227
|
+
click: (...args: any[]) => void;
|
|
228
|
+
}, string, {
|
|
229
|
+
color: import('..').ButtonColor;
|
|
230
|
+
type: import('..').ButtonType;
|
|
231
|
+
htmlType: "reset" | "submit" | "button";
|
|
232
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
233
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
234
|
+
created?: (() => void) | (() => void)[];
|
|
235
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
236
|
+
mounted?: (() => void) | (() => void)[];
|
|
237
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
238
|
+
updated?: (() => void) | (() => void)[];
|
|
239
|
+
activated?: (() => void) | (() => void)[];
|
|
240
|
+
deactivated?: (() => void) | (() => void)[];
|
|
241
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
242
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
243
|
+
destroyed?: (() => void) | (() => void)[];
|
|
244
|
+
unmounted?: (() => void) | (() => void)[];
|
|
245
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
246
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
247
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
248
|
+
};
|
|
249
|
+
$forceUpdate: () => void;
|
|
250
|
+
$nextTick: typeof import('vue').nextTick;
|
|
251
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
252
|
+
} & Readonly<{
|
|
253
|
+
color: import('..').ButtonColor;
|
|
254
|
+
type: import('..').ButtonType;
|
|
255
|
+
htmlType: "reset" | "submit" | "button";
|
|
256
|
+
}> & Omit<Readonly<BaseButtonProps> & Readonly<{
|
|
257
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
258
|
+
}>, "blur" | "focus" | ("color" | "type" | "htmlType")> & import('vue').ShallowUnwrapRef<{
|
|
259
|
+
focus(): void;
|
|
260
|
+
blur(): void;
|
|
261
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
262
|
+
$slots: Readonly<BaseButtonSlots> & BaseButtonSlots;
|
|
263
|
+
}) | null;
|
|
264
|
+
}, any>;
|
|
102
265
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
103
266
|
export default _default;
|
|
104
267
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/Button/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Button.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Button.vue_vue_type_script_setup_true_lang-CKt4CFcG.js");exports.Button=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),u=require("es-toolkit"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),u=require("es-toolkit"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-DyR-qPkq.js"),_=require("./options-CY2uxp5A.js"),f=e.defineComponent({..._.getComponentOptions("Button",!1),__name:"Button",props:{class:{},type:{},noRing:{type:Boolean},color:{},loading:{type:Boolean},preIcon:{},postIcon:{},size:{},text:{},block:{type:Boolean},htmlType:{},postIconFlipOnDir:{},preIconFlipOnDir:{}},setup(s,{expose:r}){const c=s,i=e.useAttrs(),a=e.computed(()=>({...u.omit(i,["variant","icon","action","active","badgeText"]),...c})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(a.value,{variant:"simple",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(p=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(p)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, useAttrs as l, computed as m, ref as u, createBlock as f, openBlock as _, mergeProps as b, createSlots as d, renderList as g, withCtx as v, renderSlot as y, normalizeProps as B, guardReactiveProps as k } from "vue";
|
|
2
2
|
import { omit as x } from "es-toolkit";
|
|
3
|
-
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-gx7pLyR8.js";
|
|
4
4
|
import { g as O } from "./options-Bh1s18jm.js";
|
|
5
5
|
const z = /* @__PURE__ */ c({
|
|
6
6
|
...O("Button", !1),
|
|
@@ -29,10 +29,10 @@ export declare const injectButtonGroupContext: <T extends {
|
|
|
29
29
|
variant: ComputedRef<ButtonVariant | undefined>;
|
|
30
30
|
};
|
|
31
31
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
32
|
-
split: boolean;
|
|
33
32
|
size: ButtonSize;
|
|
33
|
+
split: boolean;
|
|
34
34
|
variant: ButtonVariant;
|
|
35
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
36
36
|
default?(_: {}): any;
|
|
37
37
|
}>;
|
|
38
38
|
export default _default;
|
|
@@ -26,23 +26,23 @@ export type CheckboxEmits = CheckboxRootEmits & {
|
|
|
26
26
|
focus: [event: InputEvent];
|
|
27
27
|
};
|
|
28
28
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
"update:modelValue": (value: boolean | "indeterminate") => any;
|
|
29
30
|
blur: (event: InputEvent) => any;
|
|
30
31
|
change: (value: boolean) => any;
|
|
31
32
|
focus: (event: InputEvent) => any;
|
|
32
|
-
"update:modelValue": (value: boolean | "indeterminate") => any;
|
|
33
33
|
"update:checked": (value: boolean | "indeterminate") => any;
|
|
34
34
|
}, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
35
|
+
"onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
35
36
|
onBlur?: ((event: InputEvent) => any) | undefined;
|
|
36
37
|
onChange?: ((value: boolean) => any) | undefined;
|
|
37
38
|
onFocus?: ((event: InputEvent) => any) | undefined;
|
|
38
|
-
"onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
39
39
|
"onUpdate:checked"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
40
40
|
}>, {
|
|
41
41
|
size: CheckboxSize;
|
|
42
42
|
modelValue: boolean | "indeterminate" | null;
|
|
43
43
|
checked: boolean | "indeterminate" | null;
|
|
44
44
|
valueAsLabel: boolean;
|
|
45
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Readonly<CheckboxSlots> & CheckboxSlots>;
|
|
46
46
|
export default _default;
|
|
47
47
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
48
|
new (): {
|
package/dist/Checkbox/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, C as s, _ as r, u as C, a as h } from "../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as e, C as s, _ as r, u as C, a as h } from "../Checkbox.vue_vue_type_style_index_0_lang-Q8nvY8Va.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Checkbox,
|
|
4
4
|
s as CheckboxSizes,
|