@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
|
@@ -11,10 +11,11 @@ declare function __VLS_template(): {
|
|
|
11
11
|
$: import('vue').ComponentInternalInstance;
|
|
12
12
|
$data: {};
|
|
13
13
|
$props: {
|
|
14
|
-
readonly class?: import('
|
|
15
|
-
readonly text?:
|
|
14
|
+
readonly class?: import('clsx').ClassValue;
|
|
15
|
+
readonly text?: string | number | undefined;
|
|
16
16
|
readonly size?: import('../Base/BaseButton/BaseButton.model', { with: { "resolution-mode": "import" } }).ButtonSize | undefined;
|
|
17
17
|
readonly color?: import('../Base/BaseButton/BaseButton.model', { with: { "resolution-mode": "import" } }).ButtonColor | undefined;
|
|
18
|
+
readonly noRing?: boolean | undefined;
|
|
18
19
|
readonly type?: ButtonType | undefined;
|
|
19
20
|
readonly variant?: ButtonVariant | undefined;
|
|
20
21
|
readonly loading?: boolean | undefined;
|
|
@@ -29,7 +30,7 @@ declare function __VLS_template(): {
|
|
|
29
30
|
readonly preIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
30
31
|
readonly postIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
31
32
|
readonly badgeIconFlipOnDir?: import('../index.ts', { with: { "resolution-mode": "import" } }).FlipOnDir | undefined;
|
|
32
|
-
readonly htmlType?:
|
|
33
|
+
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
33
34
|
readonly block?: boolean | undefined;
|
|
34
35
|
readonly disabled?: boolean | undefined;
|
|
35
36
|
readonly href?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ActionButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../ActionButton.vue_vue_type_script_setup_true_lang-BGrL1xRj.js");exports.ActionButton=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),p=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("ActionButton",!1),__name:"ActionButton",props:{class:{},preIcon:{},postIcon:{},size:{},text:{},icon:{},active:{type:Boolean},badgeText:{},badgeIcon:{},postIconFlipOnDir:{},preIconFlipOnDir:{},badgeIconFlipOnDir:{},block:{type:Boolean},htmlType:{},type:{},variant:{}},setup(r,{expose:s}){const c=r,i=e.useAttrs(),a=e.computed(()=>({...p.omit(i,"variant","loading","color"),...c})),n=e.ref();return s({focus(){var t;(t=n.value)==null||t.focus()},blur(){var t;(t=n.value)==null||t.blur()}}),(t,d)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(a.value,{action:"",ref_key:"buttonRef",ref:n}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),o=>({name:o,fn:e.withCtx(u=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, useAttrs as l, computed as m, ref as u, createBlock as f, openBlock as b, mergeProps as d, createSlots as _, renderList as g, withCtx as v, renderSlot as y, normalizeProps as B, guardReactiveProps as I } from "vue";
|
|
2
|
-
import { o as k } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as O } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { g as x } from "./options-
|
|
2
|
+
import { o as k } from "./Icon.vue_vue_type_style_index_0_lang-BUvEzzua.js";
|
|
3
|
+
import { _ as O } from "./BaseButton.vue_vue_type_style_index_0_lang-favf_C7t.js";
|
|
4
|
+
import { g as x } from "./options-Bh1s18jm.js";
|
|
5
5
|
const P = /* @__PURE__ */ p({
|
|
6
6
|
...x("ActionButton", !1),
|
|
7
7
|
__name: "ActionButton",
|
package/dist/Alert/Alert.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Class } from '../types';
|
|
2
1
|
import { AlertType } from './Alert.model';
|
|
3
2
|
import { LinkProps } from '../Link/Link';
|
|
3
|
+
import { ClassValue } from 'class-variance-authority/types';
|
|
4
4
|
export interface AlertProps {
|
|
5
5
|
type?: AlertType;
|
|
6
6
|
closeable?: boolean;
|
|
7
|
-
class?:
|
|
7
|
+
class?: ClassValue;
|
|
8
8
|
icon?: string;
|
|
9
|
-
iconCls?:
|
|
10
|
-
bodyCls?:
|
|
11
|
-
closeableCls?:
|
|
9
|
+
iconCls?: ClassValue;
|
|
10
|
+
bodyCls?: ClassValue;
|
|
11
|
+
closeableCls?: ClassValue;
|
|
12
12
|
fg?: string;
|
|
13
13
|
br?: string;
|
|
14
14
|
bg?: string;
|
|
15
15
|
title?: string;
|
|
16
|
-
titleCls?:
|
|
16
|
+
titleCls?: ClassValue;
|
|
17
17
|
description?: string;
|
|
18
|
-
descriptionCls?:
|
|
18
|
+
descriptionCls?: ClassValue;
|
|
19
19
|
link?: boolean;
|
|
20
20
|
linkProps?: LinkProps;
|
|
21
21
|
}
|
package/dist/Alert/index.js
CHANGED
package/dist/Alert/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Alert.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Alert.vue_vue_type_style_index_0_lang-BdhEOwG7.js");exports.Alert=e._sfc_main;exports.AlertTypes=e.AlertTypes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { defineComponent as h, useSlots as S, computed as V, createElementBlock as c, openBlock as n, normalizeStyle as z, normalizeClass as s, unref as o, createBlock as A, createCommentVNode as p, createElementVNode as N, createSlots as P, withCtx as w, renderSlot as i, createTextVNode as f, toDisplayString as g, createVNode as y, normalizeProps as E, guardReactiveProps as I } from "vue";
|
|
2
|
+
import { getBemBlock as T, generateVariantClassList as D, normCls as r, getBemElement as a } from "@pantograph/utils";
|
|
3
|
+
import { cva as L } from "class-variance-authority";
|
|
4
|
+
import { g as M } from "./options-Bh1s18jm.js";
|
|
5
|
+
import { _ as O } from "./IconButton.vue_vue_type_script_setup_true_lang-BBnCpnF1.js";
|
|
6
|
+
import { _ as R } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-C949W-Ro.js";
|
|
7
|
+
import { _ as j } from "./Link.vue_vue_type_style_index_0_lang-CsBkek74.js";
|
|
8
|
+
const q = ["info", "success", "danger", "warning", "hint"], W = /* @__PURE__ */ h({
|
|
9
|
+
...M("Alert"),
|
|
10
|
+
__name: "Alert",
|
|
11
|
+
props: {
|
|
12
|
+
type: { default: "hint" },
|
|
13
|
+
closeable: { type: Boolean },
|
|
14
|
+
class: {},
|
|
15
|
+
icon: {},
|
|
16
|
+
iconCls: {},
|
|
17
|
+
bodyCls: {},
|
|
18
|
+
closeableCls: {},
|
|
19
|
+
fg: {},
|
|
20
|
+
br: {},
|
|
21
|
+
bg: {},
|
|
22
|
+
title: {},
|
|
23
|
+
titleCls: {},
|
|
24
|
+
description: {},
|
|
25
|
+
descriptionCls: {},
|
|
26
|
+
link: { type: Boolean },
|
|
27
|
+
linkProps: {}
|
|
28
|
+
},
|
|
29
|
+
emits: ["close"],
|
|
30
|
+
setup(u, { emit: C }) {
|
|
31
|
+
const m = u, k = C, l = T("alert"), B = L(l, {
|
|
32
|
+
variants: {
|
|
33
|
+
type: D(q, l)
|
|
34
|
+
// hasChild: generateVariantClassList('has-child', prefix),
|
|
35
|
+
}
|
|
36
|
+
}), t = S(), v = {
|
|
37
|
+
success: "tabler:circle-check",
|
|
38
|
+
warning: "tabler:alert-triangle",
|
|
39
|
+
danger: "tabler:circle-x",
|
|
40
|
+
hint: "tabler:bulb",
|
|
41
|
+
info: "tabler:info-circle"
|
|
42
|
+
}, d = V(() => m.icon ?? v[m.type]);
|
|
43
|
+
return (e, b) => (n(), c("div", {
|
|
44
|
+
class: s(
|
|
45
|
+
o(r)(
|
|
46
|
+
o(B)({
|
|
47
|
+
type: e.type
|
|
48
|
+
}),
|
|
49
|
+
m.class
|
|
50
|
+
)
|
|
51
|
+
),
|
|
52
|
+
style: z({
|
|
53
|
+
"--ptc-alert-fg": e.fg,
|
|
54
|
+
"--ptc-alert-bg": e.bg,
|
|
55
|
+
"--ptc-alert-br": e.br
|
|
56
|
+
})
|
|
57
|
+
}, [
|
|
58
|
+
t.icon || d.value ? (n(), A(R, {
|
|
59
|
+
key: 0,
|
|
60
|
+
size: "md",
|
|
61
|
+
icon: d.value,
|
|
62
|
+
class: s(o(r)(o(a)(o(l), "icon"), e.iconCls))
|
|
63
|
+
}, P({ _: 2 }, [
|
|
64
|
+
t.icon ? {
|
|
65
|
+
name: "icon",
|
|
66
|
+
fn: w(() => [
|
|
67
|
+
i(e.$slots, "icon")
|
|
68
|
+
]),
|
|
69
|
+
key: "0"
|
|
70
|
+
} : void 0
|
|
71
|
+
]), 1032, ["icon", "class"])) : p("", !0),
|
|
72
|
+
N("div", {
|
|
73
|
+
class: s(o(r)(o(a)(o(l), "body"), e.bodyCls))
|
|
74
|
+
}, [
|
|
75
|
+
i(e.$slots, "default", {}, () => [
|
|
76
|
+
e.title || t.title ? (n(), c("div", {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: s(o(r)(o(a)(o(l), "title"), e.titleCls, "paragraph"))
|
|
79
|
+
}, [
|
|
80
|
+
i(e.$slots, "title", {}, () => [
|
|
81
|
+
f(g(e.title), 1)
|
|
82
|
+
])
|
|
83
|
+
], 2)) : p("", !0),
|
|
84
|
+
e.description || t.description ? (n(), c("div", {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: s(o(r)(o(a)(o(l), "description"), e.descriptionCls, "paragraph"))
|
|
87
|
+
}, [
|
|
88
|
+
i(e.$slots, "description", {}, () => [
|
|
89
|
+
f(g(e.description), 1)
|
|
90
|
+
])
|
|
91
|
+
], 2)) : p("", !0),
|
|
92
|
+
e.link || t.link ? (n(), c("div", {
|
|
93
|
+
key: 2,
|
|
94
|
+
class: s(o(a)(o(l), "action"))
|
|
95
|
+
}, [
|
|
96
|
+
i(e.$slots, "link", {}, () => [
|
|
97
|
+
y(j, E(I(e.linkProps)), null, 16)
|
|
98
|
+
])
|
|
99
|
+
], 2)) : p("", !0)
|
|
100
|
+
])
|
|
101
|
+
], 2),
|
|
102
|
+
m.closeable || t.closeable ? (n(), c("div", {
|
|
103
|
+
key: 1,
|
|
104
|
+
class: s(o(r)(o(a)(o(l), "closeable"), e.closeableCls))
|
|
105
|
+
}, [
|
|
106
|
+
i(e.$slots, "closeable", {}, () => [
|
|
107
|
+
y(O, {
|
|
108
|
+
icon: "tabler:x",
|
|
109
|
+
color: "neutral",
|
|
110
|
+
type: "ghost",
|
|
111
|
+
onClick: b[0] || (b[0] = ($) => k("close", $))
|
|
112
|
+
})
|
|
113
|
+
])
|
|
114
|
+
], 2)) : p("", !0)
|
|
115
|
+
], 6));
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
export {
|
|
119
|
+
q as A,
|
|
120
|
+
W as _
|
|
121
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),n=require("@pantograph/utils"),C=require("class-variance-authority"),g=require("./options-CY2uxp5A.js"),y=require("./IconButton.vue_vue_type_script_setup_true_lang-DynLmo_n.js"),B=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-EviuZ52W.js"),k=require("./Link.vue_vue_type_style_index_0_lang-BfC3SwbG.js"),i=["info","success","danger","warning","hint"],b=e.defineComponent({...g.getComponentOptions("Alert"),__name:"Alert",props:{type:{default:"hint"},closeable:{type:Boolean},class:{},icon:{},iconCls:{},bodyCls:{},closeableCls:{},fg:{},br:{},bg:{},title:{},titleCls:{},description:{},descriptionCls:{},link:{type:Boolean},linkProps:{}},emits:["close"],setup(c,{emit:u}){const r=c,m=u,l=n.getBemBlock("alert"),p=C.cva(l,{variants:{type:n.generateVariantClassList(i,l)}}),o=e.useSlots(),d={success:"tabler:circle-check",warning:"tabler:alert-triangle",danger:"tabler:circle-x",hint:"tabler:bulb",info:"tabler:info-circle"},s=e.computed(()=>r.icon??d[r.type]);return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(p)({type:t.type}),r.class)),style:e.normalizeStyle({"--ptc-alert-fg":t.fg,"--ptc-alert-bg":t.bg,"--ptc-alert-br":t.br})},[o.icon||s.value?(e.openBlock(),e.createBlock(B._sfc_main,{key:0,size:"md",icon:s.value,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(l),"icon"),t.iconCls))},e.createSlots({_:2},[o.icon?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),key:"0"}:void 0]),1032,["icon","class"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(l),"body"),t.bodyCls))},[e.renderSlot(t.$slots,"default",{},()=>[t.title||o.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(l),"title"),t.titleCls,"paragraph"))},[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],2)):e.createCommentVNode("",!0),t.description||o.description?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(l),"description"),t.descriptionCls,"paragraph"))},[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])],2)):e.createCommentVNode("",!0),t.link||o.link?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(l),"action"))},[e.renderSlot(t.$slots,"link",{},()=>[e.createVNode(k._sfc_main,e.normalizeProps(e.guardReactiveProps(t.linkProps)),null,16)])],2)):e.createCommentVNode("",!0)])],2),r.closeable||o.closeable?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(l),"closeable"),t.closeableCls))},[e.renderSlot(t.$slots,"closeable",{},()=>[e.createVNode(y._sfc_main,{icon:"tabler:x",color:"neutral",type:"ghost",onClick:a[0]||(a[0]=f=>m("close",f))})])],2)):e.createCommentVNode("",!0)],6))}});exports.AlertTypes=i;exports._sfc_main=b;
|
package/dist/Avatar/Avatar.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AvatarFallbackProps, AvatarImageProps, AvatarRootProps } from 'reka-ui';
|
|
2
|
-
import { Class } from '../types';
|
|
3
2
|
import { BadgeColor } from '../Base/BaseBadge/BaseBadge.model';
|
|
4
3
|
import { AvatarSize, AvatarStroke, AvatarShape, AvatarOnlineAlignment } from './Avatar.model';
|
|
4
|
+
import { ClassValue } from 'class-variance-authority/types';
|
|
5
5
|
type Avatar = AvatarRootProps & AvatarImageProps & AvatarFallbackProps;
|
|
6
6
|
export interface AvatarProps extends Omit<Avatar, 'asChild' | 'as' | 'src'> {
|
|
7
7
|
src?: string;
|
|
8
|
-
class?:
|
|
8
|
+
class?: ClassValue;
|
|
9
9
|
onlineColor?: BadgeColor;
|
|
10
10
|
size?: AvatarSize;
|
|
11
11
|
stroke?: AvatarStroke;
|
package/dist/Avatar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as t, c as r, b as e, A, a as v, _ as n } from "../Avatar.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as t, c as r, b as e, A, a as v, _ as n } from "../Avatar.vue_vue_type_style_index_0_lang-kaq1iN2X.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Avatar,
|
|
4
4
|
r as AvatarOnlineAlignments,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Avatar.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Avatar.vue_vue_type_style_index_0_lang-YkXWR99l.js");exports.Avatar=e._sfc_main;exports.AvatarOnlineAlignments=e.AvatarOnlineAlignments;exports.AvatarShapes=e.AvatarShapes;exports.AvatarSizes=e.AvatarSizes;exports.AvatarStrokes=e.AvatarStrokes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),p=require("reka-ui"),s=require("@pantograph/utils"),B=require("class-variance-authority"),x=require("./options-CY2uxp5A.js"),b=require("./Popover.vue_vue_type_style_index_0_lang-qJ0psPTx.js");require("@iconify/vue");const y=require("./Icon.vue_vue_type_style_index_0_lang-CPuN4R-k.js"),N=require("./Indicator.vue_vue_type_script_setup_true_lang-BQqMdFAx.js"),[S,V]=p.createContext("AvatarGroup"),G=e.defineComponent({...x.getComponentOptions("AvatarGroup"),__name:"AvatarGroup",props:{class:{},gutter:{type:Boolean},size:{},shape:{},popoverProps:{},maxCount:{},noPopover:{type:Boolean}},setup(g){const a=g,v=e.useSlots(),r=e.computed(()=>a.size),n=e.computed(()=>a.shape),f=s.getBemBlock("avatar"),d=s.getBemElement(f,"group"),C=B.cva(d,{variants:{gutter:s.generateVariantClassList("gutter",d)}});V({size:r,shape:n});const l=e.computed(()=>a.maxCount?Number(a.maxCount):0),c=e.computed(()=>C({gutter:a.gutter})),i=e.computed(()=>{switch(a.size){case"2xsm":case"xsm":case"sm":return"sm";case"lg":case"xlg":return"lg";default:return"md"}}),k=()=>{const o=y.flattenChildren(v.default?v.default():[]),m=()=>e.h(P,{text:`+${o.length-l.value}`});return l.value>=1&&o.length>l.value?[...o.filter((t,u)=>u<l.value),a.noPopover?m():e.h(b._sfc_main,{size:i.value,...a.popoverProps??{}},{default:m,content:()=>e.h("div",{class:s.normCls(c.value,a.class)},{default:()=>o.filter((t,u)=>u>=l.value)})})]:o};return(o,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(s.normCls)(c.value,a.class))},[e.createVNode(k,{maxCount:o.maxCount},null,8,["maxCount"])],2))}}),_=["2xsm","xsm","sm","md","lg","xlg"],A=["gray","white"],h=["circle","square","rect"],z={start:"online-start",end:"online-end"},P=e.defineComponent({...x.getComponentOptions("Avatar"),__name:"Avatar",props:{src:{default:""},class:{},onlineColor:{default:"lime"},size:{default:"md"},stroke:{},shape:{default:"circle"},online:{type:Boolean},alt:{},fallback:{},text:{},icon:{default:"tabler:user"},onlineAlignment:{default:"start"},referrerPolicy:{},crossOrigin:{},delayMs:{}},emits:["loadingStatusChange"],setup(g,{emit:a}){const v=e.useSlots(),r=s.getBemBlock("avatar"),n=g,f=a,d=p.useEmitAsProps(f),C=B.cva(r,{variants:{size:s.generateVariantClassList(_,r),stroke:s.generateVariantClassList(A,r),shape:s.generateVariantClassList(h,r),onlineAlignment:s.generateVariantClassList(z,r)}}),l=S({size:e.computed(()=>n.size),shape:e.computed(()=>n.shape)}),c=e.computed(()=>l.size.value??n.size),i=e.computed(()=>l.shape.value??n.shape),k=e.computed(()=>{const t=c.value&&_.includes(c.value)?c.value:"md",u=n.stroke&&A.includes(n.stroke)?n.stroke:"none",q=i.value&&h.includes(i.value)?i.value:"circle",E=z[n.onlineAlignment]?n.onlineAlignment:"start";return{size:t,stroke:u,shape:q,onlineAlignment:E}}),o=e.computed(()=>{switch(c.value){case"lg":case"xlg":return"tiny";default:return"tinier"}}),m=e.computed(()=>{switch(c.value){case"lg":case"xlg":return"sm";case"xsm":case"2xsm":return"3xsm";case"sm":case"md":default:return"xsm"}});return(t,u)=>(e.openBlock(),e.createBlock(e.unref(p.AvatarRoot),{as:"div",class:e.normalizeClass(e.unref(s.normCls)(e.unref(C)(k.value),n.class))},{default:e.withCtx(()=>[!v.default&&!t.text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.src?(e.openBlock(),e.createBlock(e.unref(p.AvatarImage),e.mergeProps({key:0},e.unref(d),{src:t.src,alt:t.alt,class:e.unref(s.getBemElement)(e.unref(r),"image")}),null,16,["src","alt","class"])):e.createCommentVNode("",!0),e.createVNode(e.unref(p.AvatarFallback),{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(r),"fallback"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"fallback",{},()=>[t.fallback?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(y._sfc_main$3),{key:0,icon:t.icon,size:m.value},null,8,["icon","size"])),e.createTextVNode(" "+e.toDisplayString(t.fallback),1)])]),_:3},8,["class"])],64)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(r),"image"))},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)])],2)),t.online?(e.openBlock(),e.createBlock(N._sfc_main,{key:2,color:t.onlineColor,size:o.value,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(r),"online"))},null,8,["color","size","class"])):e.createCommentVNode("",!0)]),_:3},8,["class"]))}});exports.AvatarOnlineAlignments=z;exports.AvatarShapes=h;exports.AvatarSizes=_;exports.AvatarStrokes=A;exports._sfc_main=P;exports._sfc_main$1=G;exports.injectAvatarGroupContext=S;exports.provideAvatarGroupContext=V;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { getBemBlock as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { g as
|
|
6
|
-
import { _ as
|
|
1
|
+
import { defineComponent as O, useSlots as F, computed as n, createElementBlock as y, openBlock as i, normalizeClass as v, unref as t, createVNode as I, h as x, createBlock as A, withCtx as P, createCommentVNode as _, Fragment as R, mergeProps as T, renderSlot as b, createTextVNode as $, toDisplayString as w } from "vue";
|
|
2
|
+
import { createContext as H, useEmitAsProps as J, AvatarRoot as K, AvatarImage as Q, AvatarFallback as U } from "reka-ui";
|
|
3
|
+
import { getBemBlock as j, getBemElement as f, generateVariantClassList as d, normCls as S } from "@pantograph/utils";
|
|
4
|
+
import { cva as q } from "class-variance-authority";
|
|
5
|
+
import { g as D } from "./options-Bh1s18jm.js";
|
|
6
|
+
import { _ as W } from "./Popover.vue_vue_type_style_index_0_lang-Bdu86hho.js";
|
|
7
7
|
import "@iconify/vue";
|
|
8
|
-
import { m as
|
|
9
|
-
import { _ as
|
|
10
|
-
const [
|
|
11
|
-
...
|
|
8
|
+
import { m as X, k as Y } from "./Icon.vue_vue_type_style_index_0_lang-BUvEzzua.js";
|
|
9
|
+
import { _ as Z } from "./Indicator.vue_vue_type_script_setup_true_lang-AJV4EFOO.js";
|
|
10
|
+
const [ee, te] = H("AvatarGroup"), pe = /* @__PURE__ */ O({
|
|
11
|
+
...D("AvatarGroup"),
|
|
12
12
|
__name: "AvatarGroup",
|
|
13
13
|
props: {
|
|
14
14
|
class: {},
|
|
@@ -19,18 +19,18 @@ const [Z, ee] = T("AvatarGroup"), me = /* @__PURE__ */ E({
|
|
|
19
19
|
maxCount: {},
|
|
20
20
|
noPopover: { type: Boolean }
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const s =
|
|
22
|
+
setup(C) {
|
|
23
|
+
const s = C, g = F(), o = n(() => s.size), a = n(() => s.shape), B = j("avatar"), h = f(B, "group"), k = q(h, {
|
|
24
24
|
variants: {
|
|
25
25
|
gutter: d("gutter", h)
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
te({
|
|
29
29
|
size: o,
|
|
30
30
|
shape: a
|
|
31
31
|
});
|
|
32
32
|
const l = n(() => s.maxCount ? Number(s.maxCount) : 0), c = n(
|
|
33
|
-
() =>
|
|
33
|
+
() => k({
|
|
34
34
|
gutter: s.gutter
|
|
35
35
|
})
|
|
36
36
|
), m = n(() => {
|
|
@@ -45,12 +45,12 @@ const [Z, ee] = T("AvatarGroup"), me = /* @__PURE__ */ E({
|
|
|
45
45
|
default:
|
|
46
46
|
return "md";
|
|
47
47
|
}
|
|
48
|
-
}),
|
|
49
|
-
const r =
|
|
48
|
+
}), z = () => {
|
|
49
|
+
const r = X(g.default ? g.default() : []), p = () => x(se, { text: `+${r.length - l.value}` });
|
|
50
50
|
return l.value >= 1 && r.length > l.value ? [
|
|
51
51
|
...r.filter((e, u) => u < l.value),
|
|
52
52
|
s.noPopover ? p() : x(
|
|
53
|
-
|
|
53
|
+
W,
|
|
54
54
|
{
|
|
55
55
|
size: m.value,
|
|
56
56
|
...s.popoverProps ?? {}
|
|
@@ -59,7 +59,7 @@ const [Z, ee] = T("AvatarGroup"), me = /* @__PURE__ */ E({
|
|
|
59
59
|
default: p,
|
|
60
60
|
content: () => x(
|
|
61
61
|
"div",
|
|
62
|
-
{ class:
|
|
62
|
+
{ class: S(c.value, s.class) },
|
|
63
63
|
{
|
|
64
64
|
default: () => r.filter((e, u) => u >= l.value)
|
|
65
65
|
}
|
|
@@ -69,16 +69,16 @@ const [Z, ee] = T("AvatarGroup"), me = /* @__PURE__ */ E({
|
|
|
69
69
|
] : r;
|
|
70
70
|
};
|
|
71
71
|
return (r, p) => (i(), y("div", {
|
|
72
|
-
class: v(
|
|
72
|
+
class: v(t(S)(c.value, s.class))
|
|
73
73
|
}, [
|
|
74
|
-
|
|
74
|
+
I(z, { maxCount: r.maxCount }, null, 8, ["maxCount"])
|
|
75
75
|
], 2));
|
|
76
76
|
}
|
|
77
|
-
}),
|
|
77
|
+
}), G = ["2xsm", "xsm", "sm", "md", "lg", "xlg"], N = ["gray", "white"], V = ["circle", "square", "rect"], E = {
|
|
78
78
|
start: "online-start",
|
|
79
79
|
end: "online-end"
|
|
80
|
-
},
|
|
81
|
-
...
|
|
80
|
+
}, se = /* @__PURE__ */ O({
|
|
81
|
+
...D("Avatar"),
|
|
82
82
|
__name: "Avatar",
|
|
83
83
|
props: {
|
|
84
84
|
src: { default: "" },
|
|
@@ -98,27 +98,27 @@ const [Z, ee] = T("AvatarGroup"), me = /* @__PURE__ */ E({
|
|
|
98
98
|
delayMs: {}
|
|
99
99
|
},
|
|
100
100
|
emits: ["loadingStatusChange"],
|
|
101
|
-
setup(
|
|
102
|
-
const g =
|
|
101
|
+
setup(C, { emit: s }) {
|
|
102
|
+
const g = F(), o = j("avatar"), a = C, h = J(s), k = q(o, {
|
|
103
103
|
variants: {
|
|
104
|
-
size: d(
|
|
105
|
-
stroke: d(
|
|
106
|
-
shape: d(
|
|
104
|
+
size: d(G, o),
|
|
105
|
+
stroke: d(N, o),
|
|
106
|
+
shape: d(V, o),
|
|
107
107
|
onlineAlignment: d(
|
|
108
|
-
|
|
108
|
+
E,
|
|
109
109
|
o
|
|
110
110
|
)
|
|
111
111
|
}
|
|
112
|
-
}), l =
|
|
112
|
+
}), l = ee({
|
|
113
113
|
size: n(() => a.size),
|
|
114
114
|
shape: n(() => a.shape)
|
|
115
|
-
}), c = n(() => l.size.value ?? a.size), m = n(() => l.shape.value ?? a.shape),
|
|
116
|
-
const e = c.value &&
|
|
115
|
+
}), c = n(() => l.size.value ?? a.size), m = n(() => l.shape.value ?? a.shape), z = n(() => {
|
|
116
|
+
const e = c.value && G.includes(c.value) ? c.value : "md", u = a.stroke && N.includes(a.stroke) ? a.stroke : "none", L = m.value && V.includes(m.value) ? m.value : "circle", M = E[a.onlineAlignment] ? a.onlineAlignment : "start";
|
|
117
117
|
return {
|
|
118
118
|
size: e,
|
|
119
119
|
stroke: u,
|
|
120
|
-
shape:
|
|
121
|
-
onlineAlignment:
|
|
120
|
+
shape: L,
|
|
121
|
+
onlineAlignment: M
|
|
122
122
|
};
|
|
123
123
|
}), r = n(() => {
|
|
124
124
|
switch (c.value) {
|
|
@@ -142,28 +142,28 @@ const [Z, ee] = T("AvatarGroup"), me = /* @__PURE__ */ E({
|
|
|
142
142
|
return "xsm";
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
|
-
return (e, u) => (i(), A(t(
|
|
145
|
+
return (e, u) => (i(), A(t(K), {
|
|
146
146
|
as: "div",
|
|
147
|
-
class: v(
|
|
147
|
+
class: v(t(S)(t(k)(z.value), a.class))
|
|
148
148
|
}, {
|
|
149
|
-
default:
|
|
150
|
-
!g.default && !e.text ? (i(), y(
|
|
151
|
-
e.src ? (i(), A(t(
|
|
149
|
+
default: P(() => [
|
|
150
|
+
!g.default && !e.text ? (i(), y(R, { key: 0 }, [
|
|
151
|
+
e.src ? (i(), A(t(Q), T({ key: 0 }, t(h), {
|
|
152
152
|
src: e.src,
|
|
153
153
|
alt: e.alt,
|
|
154
154
|
class: t(f)(t(o), "image")
|
|
155
155
|
}), null, 16, ["src", "alt", "class"])) : _("", !0),
|
|
156
|
-
|
|
156
|
+
I(t(U), {
|
|
157
157
|
class: v(t(f)(t(o), "fallback"))
|
|
158
158
|
}, {
|
|
159
|
-
default:
|
|
160
|
-
|
|
161
|
-
e.fallback ? _("", !0) : (i(), A(t(
|
|
159
|
+
default: P(() => [
|
|
160
|
+
b(e.$slots, "fallback", {}, () => [
|
|
161
|
+
e.fallback ? _("", !0) : (i(), A(t(Y), {
|
|
162
162
|
key: 0,
|
|
163
163
|
icon: e.icon,
|
|
164
164
|
size: p.value
|
|
165
165
|
}, null, 8, ["icon", "size"])),
|
|
166
|
-
|
|
166
|
+
$(" " + w(e.fallback), 1)
|
|
167
167
|
])
|
|
168
168
|
]),
|
|
169
169
|
_: 3
|
|
@@ -172,11 +172,11 @@ const [Z, ee] = T("AvatarGroup"), me = /* @__PURE__ */ E({
|
|
|
172
172
|
key: 1,
|
|
173
173
|
class: v(t(f)(t(o), "image"))
|
|
174
174
|
}, [
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
b(e.$slots, "default", {}, () => [
|
|
176
|
+
$(w(e.text), 1)
|
|
177
177
|
])
|
|
178
178
|
], 2)),
|
|
179
|
-
e.online ? (i(), A(
|
|
179
|
+
e.online ? (i(), A(Z, {
|
|
180
180
|
key: 2,
|
|
181
181
|
color: e.onlineColor,
|
|
182
182
|
size: r.value,
|
|
@@ -188,12 +188,12 @@ const [Z, ee] = T("AvatarGroup"), me = /* @__PURE__ */ E({
|
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
export {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
191
|
+
G as A,
|
|
192
|
+
se as _,
|
|
193
|
+
N as a,
|
|
194
|
+
V as b,
|
|
195
|
+
E as c,
|
|
196
|
+
pe as d,
|
|
197
|
+
ee as i,
|
|
198
|
+
te as p
|
|
199
199
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AvatarShape, AvatarSize } from '../Avatar/Avatar.model';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
-
import { Class } from '../types';
|
|
4
3
|
import { PopoverProps } from '../Popover';
|
|
4
|
+
import { ClassValue } from 'class-variance-authority/types';
|
|
5
5
|
export type AvatarGroupProps = {
|
|
6
|
-
class?:
|
|
6
|
+
class?: ClassValue;
|
|
7
7
|
gutter?: boolean;
|
|
8
8
|
size?: AvatarSize;
|
|
9
9
|
shape?: AvatarShape;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../Avatar.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../Avatar.vue_vue_type_style_index_0_lang-YkXWR99l.js");exports.AvatarGroup=t._sfc_main$1;exports.injectAvatarGroupContext=t.injectAvatarGroupContext;exports.provideAvatarGroupContext=t.provideAvatarGroupContext;
|
package/dist/Badge/index.js
CHANGED
package/dist/Badge/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Badge.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Badge.vue_vue_type_script_setup_true_lang-BAQIKtam.js");exports.Badge=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),_=require("./Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const o=require("vue"),_=require("./Icon.vue_vue_type_style_index_0_lang-CPuN4R-k.js"),f=require("./BaseBadge.vue_vue_type_style_index_0_lang-Clv4Io8O.js"),y=require("./options-CY2uxp5A.js"),s=require("./BaseBadge.model-DecqxaGN.js"),r=require("@pantograph/tokens"),B=o.defineComponent({...y.getComponentOptions("Badge",!1),__name:"Badge",props:{class:{},text:{},icon:{},flipOnDir:{},size:{},color:{default:"primary"}},setup(c){const e=c,a=o.useAttrs(),t=[...s.BadgeColors,...s.BadgeColorsSubtle],i=[...s.BadgeColors,...s.BadgeColorsSubtle],u=()=>{if(i.includes(e.color)){if(e.color==="gray-subtle")return r.getCssCoreColor("gray-6");if(e.color==="yellow")return r.getCssCoreColor("grayscale-dark-0");if(s.BadgeColorsSubtle.includes(e.color))return r.getCssCoreColor(`${e.color.replace("-subtle","")}-5`);if(s.BadgeColors.includes(e.color))return r.getCssCoreColor("grayscale-light-0")}},g=()=>{if(t.includes(e.color)){if(e.color==="gray-subtle")return r.getCssCoreColor("gray-1");if(s.BadgeColorsSubtle.includes(e.color))return r.getCssCoreColor(`${e.color.replace("-subtle","")}-0`);if(s.BadgeColors.includes(e.color))return r.getCssCoreColor(`${e.color}-5`)}},C=o.computed(()=>e.color&&t.includes(e.color)?{bg:g(),fg:u()}:{bg:r.getCssCoreColor("primary-5"),fg:r.getCssCoreColor("primary-oncolor")}),d=o.computed(()=>({..._.omit(a,"type"),...e,...C.value}));return(l,m)=>(o.openBlock(),o.createBlock(f._sfc_main,o.mergeProps(d.value,{type:"pill"}),o.createSlots({_:2},[o.renderList(Object.keys(l.$slots),n=>({name:n,fn:o.withCtx(p=>[o.renderSlot(l.$slots,n,o.normalizeProps(o.guardReactiveProps(p)))])}))]),1040))}});exports._sfc_main=B;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as y, useAttrs as C, computed as n, createBlock as b, openBlock as _, mergeProps as B, createSlots as $, renderList as k, withCtx as h, renderSlot as v, normalizeProps as O, guardReactiveProps as P } from "vue";
|
|
2
|
-
import { o as S } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as w } from "./BaseBadge.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { g as x } from "./options-
|
|
2
|
+
import { o as S } from "./Icon.vue_vue_type_style_index_0_lang-BUvEzzua.js";
|
|
3
|
+
import { _ as w } from "./BaseBadge.vue_vue_type_style_index_0_lang-CAdrPXmH.js";
|
|
4
|
+
import { g as x } from "./options-Bh1s18jm.js";
|
|
5
5
|
import { B as e, a as t } from "./BaseBadge.model-CahZXsyM.js";
|
|
6
6
|
import { getCssCoreColor as o } from "@pantograph/tokens";
|
|
7
7
|
const R = /* @__PURE__ */ y({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Class } from '../../types';
|
|
2
1
|
import { BadgeColor, BadgeColorSubtle, BadgeSize, BadgeType } from './BaseBadge.model';
|
|
3
2
|
import { FlipOnDir } from '../../ConfigProvider';
|
|
3
|
+
import { ClassValue } from 'class-variance-authority/types';
|
|
4
4
|
export interface BaseBadgeProps {
|
|
5
5
|
size?: BadgeSize;
|
|
6
|
-
class?:
|
|
6
|
+
class?: ClassValue;
|
|
7
7
|
text?: string | number;
|
|
8
8
|
bg?: BadgeColor | BadgeColorSubtle | string;
|
|
9
9
|
fg?: BadgeColor | BadgeColorSubtle | string;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ButtonColor, ButtonSize, ButtonType, ButtonVariant } from './BaseButton.model';
|
|
2
|
-
import { Class } from '../../types';
|
|
3
2
|
import { BadgeSize } from '../BaseBadge/BaseBadge.model';
|
|
4
3
|
import { BaseBadgeSlots } from '../BaseBadge/BaseBadge';
|
|
5
4
|
import { FlipOnDir } from '../../ConfigProvider';
|
|
5
|
+
import { ClassValue } from 'class-variance-authority/types';
|
|
6
6
|
export interface BaseButtonProps {
|
|
7
|
-
class?:
|
|
7
|
+
class?: ClassValue;
|
|
8
8
|
text?: string | number;
|
|
9
9
|
size?: ButtonSize;
|
|
10
10
|
color?: ButtonColor;
|
|
11
|
+
noRing?: boolean;
|
|
11
12
|
type?: ButtonType;
|
|
12
13
|
variant?: ButtonVariant;
|
|
13
14
|
loading?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as k, useSlots as I, computed as p, createBlock as E, openBlock as j, h as v } from "vue";
|
|
2
2
|
import { getBemBlock as w, generateVariantClassList as o, normCls as F } from "@pantograph/utils";
|
|
3
3
|
import { cva as G } from "class-variance-authority";
|
|
4
|
-
import { g as L } from "./options-
|
|
4
|
+
import { g as L } from "./options-Bh1s18jm.js";
|
|
5
5
|
import { b, c as x } from "./BaseBadge.model-CahZXsyM.js";
|
|
6
6
|
import "@iconify/vue";
|
|
7
|
-
import { j as B, k as M } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
8
|
-
import { u as P } from "./index-
|
|
7
|
+
import { j as B, k as M } from "./Icon.vue_vue_type_style_index_0_lang-BUvEzzua.js";
|
|
8
|
+
import { u as P } from "./index-BTuMaS--.js";
|
|
9
9
|
const Q = /* @__PURE__ */ k({
|
|
10
10
|
...L("BaseBadge"),
|
|
11
11
|
__name: "BaseBadge",
|
|
@@ -70,7 +70,7 @@ const Q = /* @__PURE__ */ k({
|
|
|
70
70
|
return v(
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
73
|
-
class: F(
|
|
73
|
+
class: F(S(O), e.class),
|
|
74
74
|
style: {
|
|
75
75
|
"--ptc-badge-fg": e.fg,
|
|
76
76
|
"--ptc-badge-bg": e.bg,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),s=require("@pantograph/utils"),q=require("class-variance-authority"),V=require("./options-
|
|
1
|
+
"use strict";const n=require("vue"),s=require("@pantograph/utils"),q=require("class-variance-authority"),V=require("./options-CY2uxp5A.js"),r=require("./BaseBadge.model-DecqxaGN.js");require("@iconify/vue");const d=require("./Icon.vue_vue_type_style_index_0_lang-CPuN4R-k.js"),D=require("./index-BmcHqJPl.js"),I=n.defineComponent({...V.getComponentOptions("BaseBadge"),__name:"BaseBadge",props:{size:{default:"md"},class:{},text:{},bg:{},fg:{},br:{},type:{default:"pill"},icon:{},flipOnDir:{}},setup(B){const{getFlipOnDir:x}=D.useConfig(),b=x("flipOnDir"),i=s.getBemBlock("badge"),e=B,C=q.cva(i,{variants:{size:s.generateVariantClassList(r.BadgeSizes,i),type:s.generateVariantClassList(r.BadgeTypes,i),text:s.generateVariantClassList("text",i),icon:s.generateVariantClassList("icon",i),br:s.generateVariantClassList("br",i)}}),a=n.useSlots(),c=n.computed(()=>r.BadgeTypes.includes(e.type)?e.type:"pill"),f=n.computed(()=>{let t=r.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}),h=n.computed(()=>{switch(f.value){case"sm":return"xsm";case"xsm":return"2xsm";case"2xsm":return"3xsm";case"md":default:return"sm"}}),z=()=>{var _,v;const t=[];let o,l;const u=e.type==="minify";u||(o=(_=a.icon)==null?void 0:_.call(a,{}),l=(v=a.default)==null?void 0:v.call(a,{}));const m=!u&&!d.isEmptyElement(l),g=!u&&!d.isEmptyElement(o),p=!!(![void 0,!1,null].includes(e.text)||m),y=!!(e.icon||g);(e.type==="rect"&&p?!1:y)&&t.push(n.h(d._sfc_main$3,{icon:e.icon,size:h.value,flipOnDir:b.value},g?{default:()=>o}:void 0)),p&&(m?t.push(l):t.push(e.text));const S={size:f.value,type:c.value,text:p,icon:y,br:!!e.br};return n.h("div",{class:s.normCls(C(S),e.class),style:{"--ptc-badge-fg":e.fg,"--ptc-badge-bg":e.bg,"--ptc-badge-br":e.br}},t)};return(t,o)=>(n.openBlock(),n.createBlock(z))}});exports._sfc_main=I;
|