@pantograph/vue 0.23.32 → 0.23.35
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 +4 -3
- 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-YPrkYEHL.js → ActionButton.vue_vue_type_script_setup_true_lang-BGrL1xRj.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-CDY-S7kB.js → ActionButton.vue_vue_type_script_setup_true_lang-jhaE9j9X.js} +3 -3
- package/dist/Alert/Alert.d.ts +7 -7
- 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-89bXo9jG.js +121 -0
- package/dist/Alert.vue_vue_type_style_index_0_lang-BdhEOwG7.js +1 -0
- package/dist/Avatar/Avatar.d.ts +2 -2
- 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-YkXWR99l.js +1 -0
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-Cu0myQ2q.js → Avatar.vue_vue_type_style_index_0_lang-kaq1iN2X.js} +55 -55
- package/dist/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -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-Cn39UXpc.js → Badge.vue_vue_type_script_setup_true_lang-BAQIKtam.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-xUkbs4Ce.js → Badge.vue_vue_type_script_setup_true_lang-C6x4r-P7.js} +3 -3
- package/dist/Base/BaseBadge/BaseBadge.d.ts +2 -2
- package/dist/Base/BaseButton/BaseButton.d.ts +3 -2
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BFkYFuq2.js → BaseBadge.vue_vue_type_style_index_0_lang-CAdrPXmH.js} +4 -4
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-uB5-HVX9.js → BaseBadge.vue_vue_type_style_index_0_lang-Clv4Io8O.js} +1 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-Cc9byFK5.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-BPityrBM.js → BaseButton.vue_vue_type_style_index_0_lang-favf_C7t.js} +35 -32
- package/dist/Button/Button.d.ts +7 -6
- 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-DzN5OhXV.js → Button.vue_vue_type_script_setup_true_lang-DTZUw0pf.js} +19 -18
- package/dist/Button.vue_vue_type_script_setup_true_lang-dyN0fBVx.js +1 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs +1 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BflgAkUi.js +58 -0
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-DL19WEBS.js → ButtonGroup.vue_vue_type_script_setup_true_lang-DwaBBOgk.js} +1 -1
- package/dist/Checkbox/Checkbox.d.ts +6 -6
- 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-D_UcZD7p.js +1 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-Dzren1pf.js +223 -0
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +6 -6
- 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-BLjUJgbj.js +1 -0
- package/dist/Chip.vue_vue_type_style_index_0_lang-BPdU3Pgk.js +123 -0
- package/dist/ChipGroup/ChipGroup.d.ts +2 -2
- 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-BHE3G-1b.js → ChipGroup.vue_vue_type_style_index_0_lang-D4A14AxB.js} +19 -19
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-vXOtvFCA.js +1 -0
- package/dist/ColorPicker/ColorPicker.d.ts +2 -2
- 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-hkEm8s8Y.js → ColorPicker.vue_vue_type_style_index_0_lang-CAzVW3da.js} +748 -755
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-CYPF-q6f.js +4 -0
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-BvLJgm8t.js → ColorSwatch-BRe9OLTq.js} +1 -1
- package/dist/{ColorSwatch-BFwCCGkk.js → ColorSwatch-LVdDBugO.js} +1 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BnpzS5m2.js +1 -0
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-sxIVsDtk.js → ColorSwatch.vue_vue_type_style_index_0_lang-htOyCGxU.js} +31 -31
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +2 -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-BH3ul93i.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cv2D2XJ5.js} +58 -59
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DFUXE61f.js +1 -0
- 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-DYsDt2q7.js → ColorTrigger.vue_vue_type_style_index_0_lang-CNeFfFIE.js} +33 -31
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-nVzcYP7q.js +1 -0
- package/dist/Combobox/index.d.ts +1 -1
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +21 -19
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-acRV8Hk_.js → Combobox.vue_vue_type_style_index_0_lang-Cj3maBpd.js} +231 -229
- package/dist/Combobox.vue_vue_type_style_index_0_lang-Dtf_JcyR.js +1 -0
- package/dist/Comment/Comment.d.ts +19 -14
- package/dist/Comment/CommentAction.d.ts +1 -1
- package/dist/Comment/CommentEditor.d.ts +29 -27
- package/dist/Comment/CommentTrigger.d.ts +2 -2
- package/dist/Comment/index.js +1772 -341
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/ConfigProvider/index.d.ts +2 -2
- package/dist/ConfigProvider/index.js +2 -2
- package/dist/ConfigProvider/index.umd.cjs +1 -1
- package/dist/DataTable/DataTable.d.ts +2 -2
- package/dist/DataTable/DataTable.model.d.ts +2 -2
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/types.d.ts +7 -7
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-DeFWy19J.js → DataTable.vue_vue_type_style_index_0_lang-CW2i09wf.js} +170 -170
- package/dist/DataTable.vue_vue_type_style_index_0_lang-rouccC9l.js +1 -0
- package/dist/Divider/Divider.d.ts +2 -2
- package/dist/Divider/index.js +1 -1
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js +1 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-CfBklijs.js +36 -0
- package/dist/DropZone/DropZone.d.ts +5 -5
- 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-4zdO8B11.js +1 -0
- package/dist/DropZone.vue_vue_type_style_index_0_lang-CF9qXlg0.js +126 -0
- package/dist/Empty/Empty.d.ts +8 -8
- 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-7tbvqB1R.js → Empty.vue_vue_type_style_index_0_lang-BAbEBeZo.js} +66 -64
- package/dist/Empty.vue_vue_type_style_index_0_lang-CLG9v3ny.js +1 -0
- package/dist/FloatButton/FloatButton.d.ts +5 -4
- 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-BVJZNZm4.js +1 -0
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CyPn7BP9.js → FloatButton.vue_vue_type_script_setup_true_lang-PYw1Yz9o.js} +16 -15
- package/dist/Form/Form.d.ts +4 -4
- package/dist/Form/FormItem.d.ts +6 -6
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormValidation/FormValidation.d.ts +2 -2
- package/dist/GOPicker/GOPicker.d.ts +6 -6
- package/dist/GOPicker/GOPicker.model.d.ts +8 -8
- 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-Bb05nUVP.js +1 -0
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-BVoqsUSP.js → GOPicker.vue_vue_type_style_index_0_lang-DVZ2wSgV.js} +134 -138
- 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-wa2gzF3h.js → GraphicalObject.vue_vue_type_script_setup_true_lang-C949W-Ro.js} +4 -4
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-C8xqfzNN.js → GraphicalObject.vue_vue_type_script_setup_true_lang-EviuZ52W.js} +1 -1
- package/dist/GraphicalObjectGroup/GraphicalObjectGroup.d.ts +2 -2
- 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-DNZCFMGG.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CYUJM_Vv.js} +15 -15
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DAXoXPPu.js +1 -0
- package/dist/Icon/Icon.d.ts +2 -2
- 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-B5G5kKKT.js → Icon.vue_vue_type_style_index_0_lang-BUvEzzua.js} +1284 -1286
- package/dist/Icon.vue_vue_type_style_index_0_lang-CPuN4R-k.js +9 -0
- package/dist/IconButton/IconButton.d.ts +7 -6
- 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-C2rb5OIv.js → IconButton.vue_vue_type_script_setup_true_lang-BBnCpnF1.js} +7 -6
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DynLmo_n.js +1 -0
- package/dist/Image/Image.d.ts +4 -4
- 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-B43Rg3w7.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-UVOAmZXt.js +125 -0
- package/dist/IndentLevel/IndentLevel.d.ts +2 -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-59akXJBr.js +96 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CELNQ3jz.js +1 -0
- 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-CLTWioGg.js → Indicator.vue_vue_type_script_setup_true_lang-AJV4EFOO.js} +3 -3
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-CElSyzf2.js → Indicator.vue_vue_type_script_setup_true_lang-BQqMdFAx.js} +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_style_index_0_lang-xmespk2m.js → Input.vue_vue_type_style_index_0_lang-D4aCRGW6.js} +4 -4
- package/dist/{Input.vue_vue_type_style_index_0_lang-lTJ9hmcg.js → Input.vue_vue_type_style_index_0_lang-DEQgofJ1.js} +1 -1
- package/dist/Kbd/Kbd.d.ts +3 -3
- 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-CUGyyeHh.js +1 -0
- package/dist/Kbd.vue_vue_type_style_index_0_lang-DpjuML9o.js +47 -0
- package/dist/Label/Label.d.ts +9 -9
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/Link.d.ts +3 -3
- 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-BfC3SwbG.js +1 -0
- package/dist/Link.vue_vue_type_style_index_0_lang-CsBkek74.js +77 -0
- package/dist/Menu/Menu.d.ts +3 -3
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItemContent.d.ts +9 -9
- 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-CbDniwiC.js → MenuItem.vue_vue_type_style_index_0_lang-DNlGDoyp.js} +85 -85
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-fYybuhKO.js +1 -0
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -5
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/Popover/Popover.d.ts +4 -3
- 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-Dk4VAxwA.js → Popover.vue_vue_type_style_index_0_lang-Bdu86hho.js} +15 -14
- package/dist/Popover.vue_vue_type_style_index_0_lang-qJ0psPTx.js +1 -0
- package/dist/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/RadioGroup/RadioGroupItem.d.ts +4 -4
- 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-BVfQx8wD.js +101 -0
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CQ_nySHu.js +1 -0
- package/dist/ScrollContainer/Mask.d.ts +2 -2
- package/dist/ScrollContainer/ScrollContainer.d.ts +29 -130
- 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-BLFtmUwR.js +1 -0
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DGUSuq_n.js +224 -0
- package/dist/Segmented/index.d.ts +1 -2
- package/dist/Segmented/index.js +1 -6
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/Select/types.d.ts +19 -18
- package/dist/{Select.vue_vue_type_style_index_0_lang-B34UEEAj.js → Select.vue_vue_type_style_index_0_lang-D-dLDaBy.js} +264 -263
- package/dist/Select.vue_vue_type_style_index_0_lang-Dk38gPKw.js +1 -0
- package/dist/Shortcut/Shortcut.d.ts +2 -2
- 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-BXy0S1__.js +32 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-maaUKoPJ.js +1 -0
- package/dist/Skeleton/Skeleton.d.ts +3 -3
- package/dist/Skeleton/index.js +1 -1
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-2rpO7HY2.js +58 -0
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-vYeWc1nI.js +1 -0
- package/dist/Spinner/Spinner.d.ts +2 -2
- 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-CAgX6rYO.js → Spinner.vue_vue_type_style_index_0_lang-BacaASPe.js} +23 -21
- package/dist/Spinner.vue_vue_type_style_index_0_lang-D9QAUh3y.js +1 -0
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/Switch.d.ts +4 -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--RYeL-jW.js +137 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-gKEdPPxG.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-D0RuVLmr.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-DfOi9-Nh.js +199 -0
- package/dist/Table/TBody.d.ts +2 -2
- package/dist/Table/THead.d.ts +2 -2
- package/dist/Table/Table.d.ts +2 -2
- package/dist/Table/Td.d.ts +2 -2
- package/dist/Table/Th.d.ts +2 -2
- package/dist/Table/Tr.d.ts +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/Tabs.model.d.ts +2 -0
- package/dist/Tabs/index.d.ts +1 -0
- package/dist/Tabs/index.js +1 -0
- package/dist/Tabs/index.umd.cjs +1 -0
- package/dist/Textarea/Textarea.d.ts +46 -23
- 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-0wTOqfhB.js +1 -0
- package/dist/Textarea.vue_vue_type_style_index_0_lang-CPto-5VY.js +164 -0
- package/dist/Tree/Tree.model.d.ts +3 -3
- package/dist/Tree/TreeNode.d.ts +2 -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-BALb4dHG.js → Tree.vue_vue_type_style_index_0_lang-D-mTy1Es.js} +336 -334
- package/dist/{Tree.vue_vue_type_style_index_0_lang-D-ZM2mYK.js → Tree.vue_vue_type_style_index_0_lang-ZoSOcaY2.js} +2 -2
- package/dist/Upload/UploadTrigger.d.ts +12 -0
- package/dist/Upload/index.d.ts +1 -4
- package/dist/Upload/index.js +1 -14
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/Upload/types.d.ts +12 -2
- package/dist/{index-C7THkhcc.js → index-BTuMaS--.js} +1 -1
- package/dist/{index-DWw7aruo.js → index-BmcHqJPl.js} +1 -1
- package/dist/index-DEgppVnR.js +1 -0
- package/dist/{index-BbGUveIH.js → index-T3jqfug4.js} +450 -502
- package/dist/index.d.ts +1 -0
- package/dist/index.js +130 -147
- package/dist/index.umd.cjs +1 -1
- package/dist/options-Bh1s18jm.js +11 -0
- package/dist/options-CY2uxp5A.js +1 -0
- package/dist/{sortBy-Cw_YX22p.js → sortBy-BoHPhPoZ.js} +2 -2
- package/dist/{sortBy-UQMixpNq.js → sortBy-NRZqvtuE.js} +1 -1
- package/dist/style/index.css +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/{uniq-CDvn5hSU.js → uniq-DA_VCwGV.js} +1 -1
- package/dist/{uniq-Cc6HQWip.js → uniq-iuU6YkEW.js} +1 -1
- package/dist/{useInputDataStates-BqxUx2nG.js → useInputDataStates-CJoP9BXy.js} +1 -1
- package/dist/{useInputDataStates-B9FItrY8.js → useInputDataStates-CXaVG_o2.js} +1 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.umd.cjs +1 -1
- package/dist/utils/options.d.ts +1 -1
- package/package.json +16 -13
- package/dist/Alert.vue_vue_type_style_index_0_lang-BKNHgs7z.js +0 -1
- package/dist/Alert.vue_vue_type_style_index_0_lang-utLLIbpv.js +0 -120
- package/dist/Avatar.vue_vue_type_style_index_0_lang-G90FXPBR.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-Bzr3TLbe.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-_7yxLkPD.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CF56RzMa.js +0 -56
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BSsP-Szx.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-CIEUNDOh.js +0 -223
- package/dist/Chip.vue_vue_type_style_index_0_lang-BevhC8XN.js +0 -121
- package/dist/Chip.vue_vue_type_style_index_0_lang-CSXDmtPl.js +0 -1
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-DYYDoMlH.js +0 -1
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-BFK_myw9.js +0 -4
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DN81zMHX.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DcEvU-D9.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DGgpwSzC.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-BMiNF3DO.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DHyx61rt.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-B6fQsp1Y.js +0 -34
- package/dist/Divider.vue_vue_type_style_index_0_lang-DoEWjJx6.js +0 -1
- package/dist/DropZone.vue_vue_type_style_index_0_lang-Ddc_87XC.js +0 -1
- package/dist/DropZone.vue_vue_type_style_index_0_lang-xtdiUX0n.js +0 -124
- package/dist/Empty.vue_vue_type_style_index_0_lang-DtRaCeHm.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BAsjSEup.js +0 -1
- package/dist/GOPicker.vue_vue_type_style_index_0_lang-DSRAMWIl.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-Ds6xYzA-.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-UTawvSSk.js +0 -9
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CJJt93Jx.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-CTyk96Kv.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-Ccy469Gw.js +0 -121
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-B7inh8GW.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DwNLmANl.js +0 -94
- package/dist/Kbd.vue_vue_type_style_index_0_lang-9AEhO33W.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-DnQHHSjf.js +0 -47
- package/dist/Link.vue_vue_type_style_index_0_lang-037gFMMU.js +0 -77
- package/dist/Link.vue_vue_type_style_index_0_lang-CrSclTt_.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-CZ_1Uprs.js +0 -1
- package/dist/Pagination/Pagination.d.ts +0 -59
- package/dist/Pagination.vue_vue_type_style_index_0_lang-BtclbfAa.js +0 -221
- package/dist/Pagination.vue_vue_type_style_index_0_lang-DTCTZSTa.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-DA6_4Z_q.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Bbs0ouQg.js +0 -101
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CuQsvlwM.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BAxwM8rQ.js +0 -189
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BIoD2_5T.js +0 -1
- package/dist/Segmented/Segmented.d.ts +0 -57
- package/dist/Segmented.vue_vue_type_style_index_0_lang-BrNeOty8.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-NSpJMsMu.js +0 -161
- package/dist/Select.vue_vue_type_style_index_0_lang-CiDQsRzV.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-Ar0DIocH.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-DaEXMuLd.js +0 -32
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-CWNX_-Jl.js +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-Xi8CteLp.js +0 -58
- package/dist/Spinner.vue_vue_type_style_index_0_lang-CZP1YaOb.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-CnyL4HP7.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-D7SXKifF.js +0 -137
- package/dist/THead.vue_vue_type_style_index_0_lang-4qfibbiA.js +0 -191
- package/dist/THead.vue_vue_type_style_index_0_lang-BhGY_St8.js +0 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-C4kStxln.js +0 -164
- package/dist/Textarea.vue_vue_type_style_index_0_lang-Dp2UcWz4.js +0 -1
- package/dist/Upload.vue_vue_type_style_index_0_lang-C8T8U6MX.js +0 -1403
- package/dist/Upload.vue_vue_type_style_index_0_lang-D3wWY8lo.js +0 -1
- package/dist/index-zMkg_RCw.js +0 -1
- package/dist/options-CWrQ7gsa.js +0 -1
- package/dist/options-D4et5euX.js +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./Icon.vue_vue_type_style_index_0_lang-CPuN4R-k.js"),P=require("./Spinner.vue_vue_type_style_index_0_lang-D9QAUh3y.js"),w=require("./Badge.vue_vue_type_script_setup_true_lang-BAQIKtam.js"),R=require("reka-ui"),r=require("./ButtonGroup.vue_vue_type_script_setup_true_lang-DwaBBOgk.js"),o=require("@pantograph/utils"),N=require("class-variance-authority"),A=require("./options-CY2uxp5A.js"),E=require("./index-BmcHqJPl.js"),G=require("./useInputDataStates-CXaVG_o2.js"),_="2xsm",j=e.defineComponent({...A.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(b,{expose:k,emit:C}){const n=b,{getFlipOnDir:l}=E.useConfig(),z=l("flipOnDir"),D=l("preIconFlipOnDir"),h=l("postIconFlipOnDir"),S=l("badgeIconFlipOnDir"),a=o.getBemBlock("button"),V=N.cva(a,{variants:{size:o.generateVariantClassList(r.ButtonSizes,a),type:o.generateVariantClassList(r.ButtonTypes,a),color:o.generateVariantClassList(r.ButtonColors,a),variant:o.generateVariantClassList(r.ButtonVariants,a),action:o.generateVariantClassList("action",a),active:o.generateVariantClassList("active",a),text:o.generateVariantClassList("text",a),preIcon:o.generateVariantClassList("preIcon",a),postIcon:o.generateVariantClassList("postIcon",a),loading:o.generateVariantClassList("loading",a),block:o.generateVariantClassList("block",a),noRing:o.generateVariantClassList("no-ring",a)}}),I=r.injectButtonGroupContext({size:e.computed(()=>n.size),variant:e.computed(()=>n.variant)}),c=e.computed(()=>n.variant??I.variant.value??"simple"),s=e.computed(()=>["icon","float"].includes(c.value)||(i.icon||n.icon)&&!(n.text||i.default||n.preIcon||i.preIcon||n.postIcon||i.postIcon)),x=e.computed(()=>n.action&&n.active&&!s&&(n.badgeText||i.badgeText||n.badgeIcon||i.badgeIcon)),i=e.useSlots(),{getDisabled:f,getSize:g}=G.useFormInput({getSize:()=>n.size??I.size.value}),O=e.computed(()=>{let t=r.ButtonTypes.includes(n.type)?n.type:"fill";const u=g.value,F=u&&r.ButtonSizes.includes(u)?u:"md";let p=n.color&&r.ButtonColors.includes(n.color)?n.color:"primary",d=c.value&&r.ButtonVariants.includes(c.value)?c.value:"simple";return n.action?((d==="float"||s.value)&&(d="icon"),t==="fill"&&(t="outline"),p=void 0):d==="float"&&(t==="ghost"&&(t="fill"),["primary","neutral"].includes(p)||(p="primary")),{size:F,type:t,color:p,variant:d,action:!!n.action,active:!!n.active,loading:!!n.loading,block:!!n.block,noRing:!!n.noRing,text:!s.value&&!!(n.text||i.default),preIcon:!s.value&&!!(n.preIcon||i.preIcon),postIcon:!s.value&&!!(n.postIcon||i.postIcon)}}),m=e.computed(()=>{switch(g.value){case"lg":return"sm";case"sm":return"2xsm";default:return"xsm"}}),L=e.computed(()=>{switch(g.value){case"sm":return"3xsm";case"lg":return"xsm";case"md":default:return"2xsm"}}),y=e.computed(()=>n.href?"a":"button"),T=e.computed(()=>{const t={disabled:f.value};return n.href&&(t.href=n.href,t.target=n.target),n.htmlType&&(t.type=n.htmlType),t}),v=e.ref();k({focus(){var t;(t=v.value)==null||t.focus()},blur(){var t;(t=v.value)==null||t.blur()}});const q=C,$=t=>{if(n.loading||n.disabled){t.preventDefault(),t.stopPropagation();return}q("click",t)};return(t,u)=>(e.openBlock(),e.createBlock(e.unref(R.Primitive),e.mergeProps({as:y.value,key:String(y.value),class:e.unref(o.normCls)(e.unref(V)(O.value),n.class),ref_key:"buttonRef",ref:v},T.value,{onClick:$}),{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(a),"loading")),size:m.value},null,8,["class","size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(t.preIcon||i.preIcon)&&!s.value?(e.openBlock(),e.createBlock(B._sfc_main$3,{key:0,flipOnDir:e.unref(D),icon:t.preIcon,size:m.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"preIcon")]),_:3},8,["flipOnDir","icon","size"])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createBlock(B._sfc_main$3,{key:1,icon:t.icon,size:L.value,flipOnDir:e.unref(z)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["icon","size","flipOnDir"])):e.renderSlot(t.$slots,"default",{key:2},()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),x.value?e.renderSlot(t.$slots,"badge",e.normalizeProps(e.mergeProps({key:3},{color:e.unref(f)?"gray":"primary",size:_})),()=>[e.createVNode(w._sfc_main,{text:t.badgeText,icon:t.badgeIcon,flipOnDir:e.unref(S),color:e.unref(f)?"gray":"primary",size:_},e.createSlots({_:2},[i.badgeText?{name:"default",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"badgeText")]),key:"0"}:void 0,i.badgeIcon?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"badgeIcon")]),key:"1"}:void 0]),1032,["text","icon","flipOnDir","color"])]):e.createCommentVNode("",!0),(t.postIcon||i.postIcon)&&!s.value?(e.openBlock(),e.createBlock(B._sfc_main$3,{key:4,flipOnDir:e.unref(h),icon:t.postIcon,size:m.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"postIcon")]),_:3},8,["flipOnDir","icon","size"])):e.createCommentVNode("",!0)],64))]),_:3},16,["as","class"]))}});exports._sfc_main=j;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineComponent as K, computed as
|
|
2
|
-
import { k } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as ne } from "./Spinner.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as ae } from "./Badge.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as K, computed as s, useSlots as M, ref as Q, createBlock as u, openBlock as c, unref as i, mergeProps as h, withCtx as p, createElementBlock as U, Fragment as W, createCommentVNode as z, renderSlot as r, createTextVNode as X, toDisplayString as Y, normalizeProps as Z, createVNode as ee, createSlots as oe, normalizeClass as te } from "vue";
|
|
2
|
+
import { k } from "./Icon.vue_vue_type_style_index_0_lang-BUvEzzua.js";
|
|
3
|
+
import { _ as ne } from "./Spinner.vue_vue_type_style_index_0_lang-BacaASPe.js";
|
|
4
|
+
import { _ as ae } from "./Badge.vue_vue_type_script_setup_true_lang-C6x4r-P7.js";
|
|
5
5
|
import { Primitive as ie } from "reka-ui";
|
|
6
|
-
import { B as x, a as C, b as S, c as T, i as se } from "./ButtonGroup.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { getBemBlock as le, generateVariantClassList as a,
|
|
8
|
-
import { cva as
|
|
9
|
-
import { g as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
const $ = "2xsm",
|
|
13
|
-
...
|
|
6
|
+
import { B as x, a as C, b as S, c as T, i as se } from "./ButtonGroup.vue_vue_type_script_setup_true_lang-BflgAkUi.js";
|
|
7
|
+
import { getBemBlock as le, generateVariantClassList as a, normCls as re, getBemElement as ce } from "@pantograph/utils";
|
|
8
|
+
import { cva as pe } from "class-variance-authority";
|
|
9
|
+
import { g as ue } from "./options-Bh1s18jm.js";
|
|
10
|
+
import { u as fe } from "./index-BTuMaS--.js";
|
|
11
|
+
import { u as me } from "./useInputDataStates-CJoP9BXy.js";
|
|
12
|
+
const $ = "2xsm", he = /* @__PURE__ */ K({
|
|
13
|
+
...ue("BaseButton"),
|
|
14
14
|
__name: "BaseButton",
|
|
15
15
|
props: {
|
|
16
16
|
class: {},
|
|
17
17
|
text: {},
|
|
18
18
|
size: {},
|
|
19
19
|
color: { default: "primary" },
|
|
20
|
+
noRing: { type: Boolean },
|
|
20
21
|
type: { default: "fill" },
|
|
21
22
|
variant: {},
|
|
22
23
|
loading: { type: Boolean },
|
|
@@ -39,7 +40,7 @@ const $ = "2xsm", Oe = /* @__PURE__ */ K({
|
|
|
39
40
|
},
|
|
40
41
|
emits: ["click"],
|
|
41
42
|
setup(F, { expose: P, emit: _ }) {
|
|
42
|
-
const o = F, { getFlipOnDir: f } =
|
|
43
|
+
const o = F, { getFlipOnDir: f } = fe(), R = f("flipOnDir"), V = f("preIconFlipOnDir"), w = f("postIconFlipOnDir"), N = f("badgeIconFlipOnDir"), t = le("button"), E = pe(t, {
|
|
43
44
|
variants: {
|
|
44
45
|
size: a(T, t),
|
|
45
46
|
type: a(S, t),
|
|
@@ -51,16 +52,17 @@ const $ = "2xsm", Oe = /* @__PURE__ */ K({
|
|
|
51
52
|
preIcon: a("preIcon", t),
|
|
52
53
|
postIcon: a("postIcon", t),
|
|
53
54
|
loading: a("loading", t),
|
|
54
|
-
block: a("block", t)
|
|
55
|
+
block: a("block", t),
|
|
56
|
+
noRing: a("no-ring", t)
|
|
55
57
|
}
|
|
56
58
|
}), D = se({
|
|
57
|
-
size:
|
|
58
|
-
variant:
|
|
59
|
-
}), m =
|
|
59
|
+
size: s(() => o.size),
|
|
60
|
+
variant: s(() => o.variant)
|
|
61
|
+
}), m = s(() => o.variant ?? D.variant.value ?? "simple"), l = s(
|
|
60
62
|
() => ["icon", "float"].includes(m.value) || (n.icon || o.icon) && !(o.text || n.default || o.preIcon || n.preIcon || o.postIcon || n.postIcon)
|
|
61
|
-
), j =
|
|
63
|
+
), j = s(
|
|
62
64
|
() => o.action && o.active && !l && (o.badgeText || n.badgeText || o.badgeIcon || n.badgeIcon)
|
|
63
|
-
), n = M(), { getDisabled: I, getSize: y } =
|
|
65
|
+
), n = M(), { getDisabled: I, getSize: y } = me({ getSize: () => o.size ?? D.size.value }), A = s(() => {
|
|
64
66
|
let e = S.includes(o.type) ? o.type : "fill";
|
|
65
67
|
const d = y.value, J = d && T.includes(d) ? d : "md";
|
|
66
68
|
let g = o.color && C.includes(o.color) ? o.color : "primary", v = m.value && x.includes(m.value) ? m.value : "simple";
|
|
@@ -73,11 +75,12 @@ const $ = "2xsm", Oe = /* @__PURE__ */ K({
|
|
|
73
75
|
active: !!o.active,
|
|
74
76
|
loading: !!o.loading,
|
|
75
77
|
block: !!o.block,
|
|
78
|
+
noRing: !!o.noRing,
|
|
76
79
|
text: !l.value && !!(o.text || n.default),
|
|
77
80
|
preIcon: !l.value && !!(o.preIcon || n.preIcon),
|
|
78
81
|
postIcon: !l.value && !!(o.postIcon || n.postIcon)
|
|
79
82
|
};
|
|
80
|
-
}), b =
|
|
83
|
+
}), b = s(() => {
|
|
81
84
|
switch (y.value) {
|
|
82
85
|
case "lg":
|
|
83
86
|
return "sm";
|
|
@@ -86,7 +89,7 @@ const $ = "2xsm", Oe = /* @__PURE__ */ K({
|
|
|
86
89
|
default:
|
|
87
90
|
return "xsm";
|
|
88
91
|
}
|
|
89
|
-
}), G =
|
|
92
|
+
}), G = s(() => {
|
|
90
93
|
switch (y.value) {
|
|
91
94
|
case "sm":
|
|
92
95
|
return "3xsm";
|
|
@@ -96,7 +99,7 @@ const $ = "2xsm", Oe = /* @__PURE__ */ K({
|
|
|
96
99
|
default:
|
|
97
100
|
return "2xsm";
|
|
98
101
|
}
|
|
99
|
-
}), O =
|
|
102
|
+
}), O = s(() => o.href ? "a" : "button"), L = s(() => {
|
|
100
103
|
const e = {
|
|
101
104
|
disabled: I.value
|
|
102
105
|
};
|
|
@@ -119,22 +122,22 @@ const $ = "2xsm", Oe = /* @__PURE__ */ K({
|
|
|
119
122
|
}
|
|
120
123
|
q("click", e);
|
|
121
124
|
};
|
|
122
|
-
return (e, d) => (c(), u(
|
|
125
|
+
return (e, d) => (c(), u(i(ie), h({
|
|
123
126
|
as: O.value,
|
|
124
127
|
key: String(O.value),
|
|
125
|
-
class:
|
|
128
|
+
class: i(re)(i(E)(A.value), o.class),
|
|
126
129
|
ref_key: "buttonRef",
|
|
127
130
|
ref: B
|
|
128
131
|
}, L.value, { onClick: H }), {
|
|
129
132
|
default: p(() => [
|
|
130
133
|
e.loading ? (c(), u(ne, {
|
|
131
134
|
key: 1,
|
|
132
|
-
class: te(
|
|
135
|
+
class: te(i(ce)(i(t), "loading")),
|
|
133
136
|
size: b.value
|
|
134
137
|
}, null, 8, ["class", "size"])) : (c(), U(W, { key: 0 }, [
|
|
135
138
|
(e.preIcon || n.preIcon) && !l.value ? (c(), u(k, {
|
|
136
139
|
key: 0,
|
|
137
|
-
flipOnDir:
|
|
140
|
+
flipOnDir: i(V),
|
|
138
141
|
icon: e.preIcon,
|
|
139
142
|
size: b.value
|
|
140
143
|
}, {
|
|
@@ -147,7 +150,7 @@ const $ = "2xsm", Oe = /* @__PURE__ */ K({
|
|
|
147
150
|
key: 1,
|
|
148
151
|
icon: e.icon,
|
|
149
152
|
size: G.value,
|
|
150
|
-
flipOnDir:
|
|
153
|
+
flipOnDir: i(R)
|
|
151
154
|
}, {
|
|
152
155
|
default: p(() => [
|
|
153
156
|
r(e.$slots, "icon")
|
|
@@ -156,12 +159,12 @@ const $ = "2xsm", Oe = /* @__PURE__ */ K({
|
|
|
156
159
|
}, 8, ["icon", "size", "flipOnDir"])) : r(e.$slots, "default", { key: 2 }, () => [
|
|
157
160
|
X(Y(e.text), 1)
|
|
158
161
|
]),
|
|
159
|
-
j.value ? r(e.$slots, "badge", Z(h({ key: 3 }, { color:
|
|
162
|
+
j.value ? r(e.$slots, "badge", Z(h({ key: 3 }, { color: i(I) ? "gray" : "primary", size: $ })), () => [
|
|
160
163
|
ee(ae, {
|
|
161
164
|
text: e.badgeText,
|
|
162
165
|
icon: e.badgeIcon,
|
|
163
|
-
flipOnDir:
|
|
164
|
-
color:
|
|
166
|
+
flipOnDir: i(N),
|
|
167
|
+
color: i(I) ? "gray" : "primary",
|
|
165
168
|
size: $
|
|
166
169
|
}, oe({ _: 2 }, [
|
|
167
170
|
n.badgeText ? {
|
|
@@ -182,7 +185,7 @@ const $ = "2xsm", Oe = /* @__PURE__ */ K({
|
|
|
182
185
|
]) : z("", !0),
|
|
183
186
|
(e.postIcon || n.postIcon) && !l.value ? (c(), u(k, {
|
|
184
187
|
key: 4,
|
|
185
|
-
flipOnDir:
|
|
188
|
+
flipOnDir: i(w),
|
|
186
189
|
icon: e.postIcon,
|
|
187
190
|
size: b.value
|
|
188
191
|
}, {
|
|
@@ -198,5 +201,5 @@ const $ = "2xsm", Oe = /* @__PURE__ */ K({
|
|
|
198
201
|
}
|
|
199
202
|
});
|
|
200
203
|
export {
|
|
201
|
-
|
|
204
|
+
he as _
|
|
202
205
|
};
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseButtonSlots, BaseButtonProps } from '../Base/BaseButton/BaseButton';
|
|
2
|
-
export type ButtonProps = Partial<Pick<BaseButtonProps, 'class' | 'type' | 'color' | 'loading' | 'preIcon' | 'postIcon' | 'size' | 'text' | 'block' | 'htmlType' | 'postIconFlipOnDir' | 'preIconFlipOnDir'>>;
|
|
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
5
|
slots: Readonly<ButtonSlots> & ButtonSlots;
|
|
@@ -8,10 +8,11 @@ declare function __VLS_template(): {
|
|
|
8
8
|
$: import('vue').ComponentInternalInstance;
|
|
9
9
|
$data: {};
|
|
10
10
|
$props: {
|
|
11
|
-
readonly class?: import('
|
|
12
|
-
readonly text?:
|
|
11
|
+
readonly class?: import('clsx').ClassValue;
|
|
12
|
+
readonly text?: string | number | undefined;
|
|
13
13
|
readonly size?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
14
14
|
readonly color?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
15
|
+
readonly noRing?: boolean | undefined;
|
|
15
16
|
readonly type?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonType | undefined;
|
|
16
17
|
readonly variant?: import('../index.ts', { with: { "resolution-mode": "import" } }).ButtonVariant | undefined;
|
|
17
18
|
readonly loading?: boolean | undefined;
|
|
@@ -26,7 +27,7 @@ declare function __VLS_template(): {
|
|
|
26
27
|
readonly preIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
27
28
|
readonly postIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
28
29
|
readonly badgeIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
29
|
-
readonly htmlType?:
|
|
30
|
+
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
30
31
|
readonly block?: boolean | undefined;
|
|
31
32
|
readonly disabled?: boolean | undefined;
|
|
32
33
|
readonly href?: string | undefined;
|
|
@@ -94,10 +95,10 @@ declare function __VLS_template(): {
|
|
|
94
95
|
attrs: Partial<{}>;
|
|
95
96
|
};
|
|
96
97
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
97
|
-
declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "text" | "class" | "type" | "size" | "color" | "loading" | "preIcon" | "postIcon" | "preIconFlipOnDir" | "postIconFlipOnDir" | "htmlType" | "block">>, {
|
|
98
|
+
declare const __VLS_component: import('vue').DefineComponent<Partial<Pick<BaseButtonProps, "text" | "class" | "type" | "size" | "color" | "noRing" | "loading" | "preIcon" | "postIcon" | "preIconFlipOnDir" | "postIconFlipOnDir" | "htmlType" | "block">>, {
|
|
98
99
|
focus(): void;
|
|
99
100
|
blur(): void;
|
|
100
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "text" | "class" | "type" | "size" | "color" | "loading" | "preIcon" | "postIcon" | "preIconFlipOnDir" | "postIconFlipOnDir" | "htmlType" | "block">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
101
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Pick<BaseButtonProps, "text" | "class" | "type" | "size" | "color" | "noRing" | "loading" | "preIcon" | "postIcon" | "preIconFlipOnDir" | "postIconFlipOnDir" | "htmlType" | "block">>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
101
102
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
102
103
|
export default _default;
|
|
103
104
|
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-dyN0fBVx.js");exports.Button=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as x } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { g as O } from "./options-
|
|
5
|
-
const z = /* @__PURE__ */
|
|
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
|
+
import { o as x } from "./Icon.vue_vue_type_style_index_0_lang-BUvEzzua.js";
|
|
3
|
+
import { _ as I } from "./BaseButton.vue_vue_type_style_index_0_lang-favf_C7t.js";
|
|
4
|
+
import { g as O } from "./options-Bh1s18jm.js";
|
|
5
|
+
const z = /* @__PURE__ */ c({
|
|
6
6
|
...O("Button", !1),
|
|
7
7
|
__name: "Button",
|
|
8
8
|
props: {
|
|
9
9
|
class: {},
|
|
10
10
|
type: {},
|
|
11
|
+
noRing: { type: Boolean },
|
|
11
12
|
color: {},
|
|
12
13
|
loading: { type: Boolean },
|
|
13
14
|
preIcon: {},
|
|
@@ -19,29 +20,29 @@ const z = /* @__PURE__ */ i({
|
|
|
19
20
|
postIconFlipOnDir: {},
|
|
20
21
|
preIconFlipOnDir: {}
|
|
21
22
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const s =
|
|
23
|
+
setup(n, { expose: r }) {
|
|
24
|
+
const s = n, a = l(), p = m(() => ({
|
|
24
25
|
...x(a, "variant", "icon", "action", "active", "badgeText"),
|
|
25
26
|
...s
|
|
26
|
-
})),
|
|
27
|
-
return
|
|
27
|
+
})), e = u();
|
|
28
|
+
return r({
|
|
28
29
|
focus() {
|
|
29
|
-
var
|
|
30
|
-
(
|
|
30
|
+
var o;
|
|
31
|
+
(o = e.value) == null || o.focus();
|
|
31
32
|
},
|
|
32
33
|
blur() {
|
|
33
|
-
var
|
|
34
|
-
(
|
|
34
|
+
var o;
|
|
35
|
+
(o = e.value) == null || o.blur();
|
|
35
36
|
}
|
|
36
|
-
}), (
|
|
37
|
+
}), (o, R) => (_(), f(I, b(p.value, {
|
|
37
38
|
variant: "simple",
|
|
38
39
|
ref_key: "buttonRef",
|
|
39
|
-
ref:
|
|
40
|
+
ref: e
|
|
40
41
|
}), d({ _: 2 }, [
|
|
41
|
-
g(Object.keys(
|
|
42
|
+
g(Object.keys(o.$slots), (t) => ({
|
|
42
43
|
name: t,
|
|
43
|
-
fn: v((
|
|
44
|
-
y(
|
|
44
|
+
fn: v((i) => [
|
|
45
|
+
y(o.$slots, t, B(k(i)))
|
|
45
46
|
])
|
|
46
47
|
}))
|
|
47
48
|
]), 1040));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),u=require("./Icon.vue_vue_type_style_index_0_lang-CPuN4R-k.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-Cc9byFK5.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,9 +1,9 @@
|
|
|
1
1
|
import { ButtonSize, ButtonVariant } from '../Base/BaseButton/BaseButton.model';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { ClassValue } from 'class-variance-authority/types';
|
|
4
4
|
declare const ButtonGroupGaps: readonly ["sm", "md", "lg", "none"];
|
|
5
5
|
export type ButtonGroupProps = {
|
|
6
|
-
class?:
|
|
6
|
+
class?: ClassValue;
|
|
7
7
|
size?: ButtonSize;
|
|
8
8
|
variant?: ButtonVariant;
|
|
9
9
|
gap?: (typeof ButtonGroupGaps)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../ButtonGroup.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../ButtonGroup.vue_vue_type_script_setup_true_lang-DwaBBOgk.js");exports.ButtonGroup=t._sfc_main;exports.default=t._sfc_main;exports.injectButtonGroupContext=t.injectButtonGroupContext;exports.provideButtonGroupContext=t.provideButtonGroupContext;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as l, computed as n, createElementBlock as u, openBlock as m, normalizeClass as c, unref as e, renderSlot as B } from "vue";
|
|
2
|
+
import { getBemBlock as f, getBemElement as g, generateVariantClassList as a, normCls as d } from "@pantograph/utils";
|
|
3
|
+
import { g as C } from "./options-Bh1s18jm.js";
|
|
4
|
+
import { cva as v } from "class-variance-authority";
|
|
5
|
+
import { createContext as G } from "reka-ui";
|
|
6
|
+
import { P as z } from "./BaseBadge.model-CahZXsyM.js";
|
|
7
|
+
const j = ["simple", "icon", "float"], w = ["fill", "outline", "ghost"], L = [
|
|
8
|
+
"primary",
|
|
9
|
+
"danger",
|
|
10
|
+
"success",
|
|
11
|
+
"warning",
|
|
12
|
+
"neutral",
|
|
13
|
+
...z,
|
|
14
|
+
"gray"
|
|
15
|
+
], x = ["sm", "md", "lg"], _ = [...x, "none"], [O, y] = G("ButtonGroup"), T = /* @__PURE__ */ l({
|
|
16
|
+
...C("ButtonGroup"),
|
|
17
|
+
__name: "ButtonGroup",
|
|
18
|
+
props: {
|
|
19
|
+
class: {},
|
|
20
|
+
size: { default: "md" },
|
|
21
|
+
variant: { default: "simple" },
|
|
22
|
+
gap: {},
|
|
23
|
+
split: { type: Boolean, default: !0 }
|
|
24
|
+
},
|
|
25
|
+
setup(r) {
|
|
26
|
+
const t = r, i = f("button"), o = g(i, "group"), p = v(o, {
|
|
27
|
+
variants: {
|
|
28
|
+
gap: a(_, o),
|
|
29
|
+
split: a("split", o)
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return y({
|
|
33
|
+
size: n(() => t.size),
|
|
34
|
+
variant: n(() => t.variant)
|
|
35
|
+
}), (s, k) => (m(), u("div", {
|
|
36
|
+
class: c(
|
|
37
|
+
e(d)(
|
|
38
|
+
e(p)({
|
|
39
|
+
gap: t.gap ?? t.size,
|
|
40
|
+
split: s.split
|
|
41
|
+
}),
|
|
42
|
+
t.class
|
|
43
|
+
)
|
|
44
|
+
)
|
|
45
|
+
}, [
|
|
46
|
+
B(s.$slots, "default")
|
|
47
|
+
], 2));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
j as B,
|
|
52
|
+
T as _,
|
|
53
|
+
L as a,
|
|
54
|
+
w as b,
|
|
55
|
+
x as c,
|
|
56
|
+
O as i,
|
|
57
|
+
y as p
|
|
58
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),o=require("@pantograph/utils"),
|
|
1
|
+
"use strict";const t=require("vue"),o=require("@pantograph/utils"),l=require("./options-CY2uxp5A.js"),c=require("class-variance-authority"),B=require("reka-ui"),m=require("./BaseBadge.model-DecqxaGN.js"),d=["simple","icon","float"],g=["fill","outline","ghost"],C=["primary","danger","success","warning","neutral",...m.PrimitiveColors,"gray"],r=["sm","md","lg"],f=[...r,"none"],[v,a]=B.createContext("ButtonGroup"),G=t.defineComponent({...l.getComponentOptions("ButtonGroup"),__name:"ButtonGroup",props:{class:{},size:{default:"md"},variant:{default:"simple"},gap:{},split:{type:Boolean,default:!0}},setup(i){const e=i,u=o.getBemBlock("button"),n=o.getBemElement(u,"group"),p=c.cva(n,{variants:{gap:o.generateVariantClassList(f,n),split:o.generateVariantClassList("split",n)}});return a({size:t.computed(()=>e.size),variant:t.computed(()=>e.variant)}),(s,z)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(o.normCls)(t.unref(p)({gap:e.gap??e.size,split:s.split}),e.class))},[t.renderSlot(s.$slots,"default")],2))}});exports.ButtonColors=C;exports.ButtonSizes=r;exports.ButtonTypes=g;exports.ButtonVariants=d;exports._sfc_main=G;exports.injectButtonGroupContext=v;exports.provideButtonGroupContext=a;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { CheckboxRootEmits, CheckboxRootProps } from 'reka-ui';
|
|
2
2
|
import { CheckboxSize } from './Checkbox.model';
|
|
3
|
-
import {
|
|
3
|
+
import { ClassValue } from 'class-variance-authority/types';
|
|
4
4
|
export interface CheckboxProps extends Omit<CheckboxRootProps, 'as' | 'asChild' | 'value'> {
|
|
5
5
|
/** deprecated */
|
|
6
6
|
checked?: CheckboxRootProps['modelValue'];
|
|
7
7
|
size?: CheckboxSize;
|
|
8
|
-
class?:
|
|
9
|
-
rootCls?:
|
|
10
|
-
indicatorCls?:
|
|
11
|
-
indeterminateCls?:
|
|
12
|
-
labelCls?:
|
|
8
|
+
class?: ClassValue;
|
|
9
|
+
rootCls?: ClassValue;
|
|
10
|
+
indicatorCls?: ClassValue;
|
|
11
|
+
indeterminateCls?: ClassValue;
|
|
12
|
+
labelCls?: ClassValue;
|
|
13
13
|
label?: string;
|
|
14
14
|
value?: string;
|
|
15
15
|
id?: string;
|
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-Dzren1pf.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Checkbox,
|
|
4
4
|
s as CheckboxSizes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Checkbox.vue_vue_type_style_index_0_lang-D_UcZD7p.js");exports.Checkbox=e._sfc_main;exports.CheckboxSizes=e.CheckboxSizes;exports.default=e._sfc_main;exports.useColoredPantographCheckbox=e.useColoredPantographCheckbox;exports.useColoredPantographCheckboxGroup=e.useColoredPantographCheckboxGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),b=require("reka-ui"),u=require("@pantograph/tokens"),n=require("@pantograph/utils"),I=require("class-variance-authority"),y=require("./options-CY2uxp5A.js"),k=require("./Icon.vue_vue_type_style_index_0_lang-CPuN4R-k.js"),V=require("./useInputDataStates-CXaVG_o2.js"),z=["2xsm","xsm"],j=a=>({"--ptc-checkbox-bg":u.getCssCoreColor(`${a}-5`),"--ptc-checkbox-bg-hover":u.getCssCoreColor(`${a}-4`),"--ptc-checkbox-bg-focus":u.getCssCoreColor(`${a}-6`),"--ptc-checkbox-br-focus":u.getCssCoreColor(`${a}-6`),"--ptc-checkbox-bg-active":u.getCssCoreColor(`${a}-7`)}),N=a=>({"--ptc-group-checkbox-bg":u.getCssCoreColor(`${a}-5`),"--ptc-group-checkbox-bg-hover":u.getCssCoreColor(`${a}-4`),"--ptc-group-checkbox-bg-focus":u.getCssCoreColor(`${a}-6`),"--ptc-group-checkbox-br-focus":u.getCssCoreColor(`${a}-6`),"--ptc-group-checkbox-bg-active":u.getCssCoreColor(`${a}-7`)}),[_,$]=b.createContext("CheckboxGroup"),U=e.defineComponent({...y.getComponentOptions("CheckboxGroup"),__name:"CheckboxGroup",props:{asChild:{type:Boolean,default:!0},as:{},modelValue:{},size:{},disabled:{type:Boolean},name:{},options:{}},emits:["update:modelValue","change"],setup(a,{emit:h}){const r=h,o=a,s=l=>({value:typeof l=="object"?l==null?void 0:l.value:l,disabled:typeof l=="object"?l==null?void 0:l.disabled:void 0,label:typeof l=="object"?(l==null?void 0:l.label)??(l==null?void 0:l.value):l}),c=e.ref(o.modelValue??[]);e.watch(()=>o.modelValue,()=>{c.value=o.modelValue??[]});const g=e.computed({get(){return o.modelValue?o.modelValue:c.value},set(l){o.modelValue||(c.value=l),r("update:modelValue",l),r("change",l)}}),d=e.computed(()=>o.size),i=e.computed(()=>o.disabled?!0:void 0);return $({model:g,size:d,disabled:i}),(l,f)=>(e.openBlock(),e.createBlock(e.unref(b.Primitive),{as:l.as,asChild:l.asChild},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{},()=>{var p;return[(p=l.options)!=null&&p.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.options,(C,x)=>(e.openBlock(),e.createBlock(S,e.mergeProps({key:C.value??C,ref_for:!0},s(C)),null,16))),128)):e.createCommentVNode("",!0)]})]),_:3},8,["as","asChild"]))}}),O=["for"],S=e.defineComponent({...y.getComponentOptions("Checkbox"),__name:"Checkbox",props:{checked:{type:[Boolean,String,null],default:void 0},size:{default:"xsm"},class:{},rootCls:{},indicatorCls:{},indeterminateCls:{},labelCls:{},label:{},value:{},id:{},valueAsLabel:{type:Boolean,default:!0},defaultValue:{type:[Boolean,String]},modelValue:{type:[Boolean,String,null],default:void 0},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:checked","change","blur","focus"],setup(a,{emit:h}){const r=n.getBemBlock("checkbox"),o=a,s=_({}),c=h,g=e.useSlots(),d=e.computed(()=>o.modelValue??o.checked),i=e.ref(d.value??!1);e.watch(()=>[o.modelValue,o.checked],()=>{i.value=d.value??!1});const l=e.computed({get(){var t;return(t=s.model)!=null&&t.value?o.value!==void 0&&s.model.value.includes(o.value):d.value!==void 0?d.value:i.value},set(t){var m;if((m=s.model)!=null&&m.value){if(o.value!==void 0){const v=s.model.value.indexOf(o.value);t&&v===-1?s.model.value=[...s.model.value,o.value]:!t&&v!==-1&&(s.model.value=s.model.value.filter(D=>D!==o.value))}}else d.value===void 0&&(i.value=t),c("update:checked",t),c("update:modelValue",t),c("change",t)}}),{getDisabled:f}=V.useFormInput({getDisabled:()=>{var t;return((t=s.disabled)==null?void 0:t.value)??o.disabled}}),p=e.computed(()=>o.id??n.usePCId(r)),C=b.useEmitAsProps(c),x=e.computed(()=>({disabled:f.value,...L.value,...k.omit(o,"size","class","label","disabled","modelValue","checked","id","rootCls","indicatorCls","indeterminateCls","labelCls"),...k.omit(C,"onUpdate:modelValue","onUpdate:checked")})),P=I.cva(r,{variants:{size:n.generateVariantClassList(z,r)}}),q=e.computed(()=>o.label||g.default||o.value&&o.valueAsLabel),E=e.computed(()=>{if(o.label)return o.label;if(o.value&&o.valueAsLabel)return o.value}),B=e.computed(()=>{var t;return((t=s.size)==null?void 0:t.value)??o.size}),G=e.computed(()=>{switch(B.value){case"xsm":return"2xsm";case"2xsm":default:return"3xsm"}}),{rootBindings:w,inputBindings:L}=V.UseInputDataStates({getDisabled:()=>f.value,emit:c}),A=()=>l.value=!l.value;return(t,m)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"root"),t.rootCls)},e.unref(w)),[e.createVNode(e.unref(b.CheckboxRoot),e.mergeProps({onKeyup:e.withKeys(A,["enter"])},x.value,{modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=v=>l.value=v),id:p.value,class:e.unref(n.normCls)(e.unref(P)({size:B.value}),o.class)}),{default:e.withCtx(()=>[e.createVNode(e.unref(b.CheckboxIndicator),{class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"indicator"),t.indicatorCls)),asChild:""},{default:e.withCtx(()=>[d.value!="indeterminate"?(e.openBlock(),e.createBlock(k._sfc_main$3,{key:0,icon:"tabler:check",size:G.value},null,8,["size"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"indeterminate"),t.indeterminateCls))},null,2))]),_:1},8,["class"])]),_:1},16,["modelValue","id","class"]),q.value?(e.openBlock(),e.createElementBlock("label",{key:0,for:p.value,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"label"),t.labelCls))},[e.renderSlot(t.$slots,"default",{checked:d.value,disabled:e.unref(f),required:t.required},()=>[e.createTextVNode(e.toDisplayString(E.value),1)])],10,O)):e.createCommentVNode("",!0)],16))}});exports.CheckboxSizes=z;exports._sfc_main=S;exports._sfc_main$1=U;exports.injectCheckboxGroupContext=_;exports.provideCheckboxGroupContext=$;exports.useColoredPantographCheckbox=j;exports.useColoredPantographCheckboxGroup=N;
|