@pantograph/vue 0.23.31 → 0.23.34
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-Clmxcj8R.js → ActionButton.vue_vue_type_script_setup_true_lang-BMWMRTVO.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-Ds31A1Vr.js → ActionButton.vue_vue_type_script_setup_true_lang-D3P7aetp.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-26vzOoFq.js +121 -0
- package/dist/Alert.vue_vue_type_style_index_0_lang-DuyFnwvt.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-BV-nR8oq.js +1 -0
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-DnRggVhZ.js → Avatar.vue_vue_type_style_index_0_lang-C6nHTHh-.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-Do7OI236.js → Badge.vue_vue_type_script_setup_true_lang-C5oLajS-.js} +4 -4
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-CvgPT4Iz.js → Badge.vue_vue_type_script_setup_true_lang-COSGtWjQ.js} +1 -1
- package/dist/Base/BaseBadge/BaseBadge.d.ts +2 -2
- package/dist/Base/BaseButton/BaseButton.d.ts +3 -2
- package/dist/BaseBadge.model-Bz8P4acF.js +1 -0
- package/dist/{BaseBadge.model-CahZXsyM.js → BaseBadge.model-D4KY5lCI.js} +9 -13
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BHVpWoEr.js → BaseBadge.vue_vue_type_style_index_0_lang-C3_w-MbS.js} +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-CsQ7YU9p.js → BaseBadge.vue_vue_type_style_index_0_lang-C44EG2t2.js} +5 -5
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-PJMYcE23.js → BaseButton.vue_vue_type_style_index_0_lang-Cjv87N0x.js} +35 -32
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D9Ty08ta.js +1 -0
- 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-Cdjymfr0.js +1 -0
- package/dist/{Button.vue_vue_type_script_setup_true_lang-upHEmag1.js → Button.vue_vue_type_script_setup_true_lang-DtjGCgQa.js} +19 -18
- 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-B78EnlfK.js +1 -0
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-DsTy8z8k.js +58 -0
- 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-CKxVodZ0.js +223 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DS34zQaJ.js +1 -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-D_GnKc9L.js +123 -0
- package/dist/Chip.vue_vue_type_style_index_0_lang-aOfSRZac.js +1 -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-Db0C-2GS.js +1 -0
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Deu3foBm.js → ChipGroup.vue_vue_type_style_index_0_lang-Dpnpn9cR.js} +19 -19
- 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-ppz74a19.js → ColorPicker.vue_vue_type_style_index_0_lang-Br4NCPFi.js} +569 -577
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-DrBF8Kn2.js +4 -0
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-CWTdUPeI.js → ColorSwatch-YGnaXc8p.js} +1 -1
- package/dist/{ColorSwatch-D4Ld-A65.js → ColorSwatch-n1uveCMC.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-NQHDzHN3.js → ColorSwatch.vue_vue_type_style_index_0_lang-AsM8pPUL.js} +31 -31
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BShNUMWy.js +1 -0
- 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-DJIB3ADY.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-94m1NgyY.js} +56 -58
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-cM1d4OKt.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-jXNp2t4x.js → ColorTrigger.vue_vue_type_style_index_0_lang-BOVOWUiK.js} +33 -31
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DjDffIL_.js +1 -0
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +18 -17
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-89hNExVI.js → Combobox.vue_vue_type_style_index_0_lang-Cpy_ypH_.js} +243 -241
- package/dist/Combobox.vue_vue_type_style_index_0_lang-DGrRrs1D.js +1 -0
- package/dist/Comment/index.d.ts +1 -41
- package/dist/Comment/index.js +1 -807
- 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/useSort.d.ts +1 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-C7XHp0gl.js +1 -0
- package/dist/DataTable.vue_vue_type_style_index_0_lang-sAmTFA3r.js +971 -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-A7_vR-Pf.js +126 -0
- package/dist/DropZone.vue_vue_type_style_index_0_lang-BculTc3p.js +1 -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-C0ZhSBLF.js +1 -0
- package/dist/{Empty.vue_vue_type_style_index_0_lang-Bh1RXTPu.js → Empty.vue_vue_type_style_index_0_lang-zMv-EcYu.js} +66 -64
- 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-C4AwindI.js → FloatButton.vue_vue_type_script_setup_true_lang-B2TcoWap.js} +16 -15
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BZ5NR8z9.js +1 -0
- package/dist/Form/Form.d.ts +4 -4
- package/dist/Form/FormItem.d.ts +7 -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 +13 -7
- package/dist/GOPicker/GOPicker.model.d.ts +8 -8
- package/dist/GOPicker/index.js +5 -6
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-ogsMlcgp.js → GraphicalObject.vue_vue_type_script_setup_true_lang-C4_sqrIs.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CPZEb8gm.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DoRdIgvj.js} +5 -5
- 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-D0BnFb11.js +1 -0
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-C7e0n3EP.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-tfWl5T4F.js} +15 -15
- 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-C2rIx5h7.js +9 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-bJL9KzOJ.js +3689 -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-CBBFCQSu.js → IconButton.vue_vue_type_script_setup_true_lang-81p8uq2m.js} +7 -6
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-bTGK4lWE.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-BJGZ9jYR.js +125 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-ORTGD1mN.js +1 -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-CP-PLrPU.js +96 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-Dg4d5e9g.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-DnLPqXuY.js → Indicator.vue_vue_type_script_setup_true_lang-CAFGcRvZ.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Vm-zfhr5.js → Indicator.vue_vue_type_script_setup_true_lang-CeiDjELx.js} +4 -4
- package/dist/Input/Input.d.ts +7 -7
- 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-BMkrAZAs.js +160 -0
- package/dist/Input.vue_vue_type_style_index_0_lang-DjQxEODi.js +1 -0
- 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-A-Q2_bYP.js +47 -0
- package/dist/Kbd.vue_vue_type_style_index_0_lang-Dqwmsn2A.js +1 -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--WExHqLB.js +77 -0
- package/dist/Link.vue_vue_type_style_index_0_lang-CqKGfCyP.js +1 -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-CzqHUjTB.js → MenuItem.vue_vue_type_style_index_0_lang-BgYTRNdx.js} +85 -85
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-DS-Q84kP.js +1 -0
- package/dist/Pagination/Pagination.model.d.ts +2 -0
- package/dist/Pagination/index.d.ts +1 -0
- package/dist/Pagination/index.js +1 -0
- package/dist/Pagination/index.umd.cjs +1 -0
- 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-DGVv8NPn.js +1 -0
- package/dist/{Popover.vue_vue_type_style_index_0_lang-V2fpykO-.js → Popover.vue_vue_type_style_index_0_lang-DuESzGoY.js} +15 -14
- 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-CF5qIS-k.js +1 -0
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DQ4ugvkh.js +101 -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-BdQQlmfl.js +224 -0
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DXlHF6fZ.js +1 -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.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-D8AVBwXB.js +1 -0
- package/dist/{Select.vue_vue_type_style_index_0_lang-HJPguJpZ.js → Select.vue_vue_type_style_index_0_lang-DEv7cT5G.js} +262 -261
- 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-Dsx2BTM-.js +32 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-NFPFk990.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-jGdUguew.js → Spinner.vue_vue_type_style_index_0_lang-DGTYJsUV.js} +23 -21
- package/dist/Spinner.vue_vue_type_style_index_0_lang-DhCljq0c.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-BS8jWY0H.js +137 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-CfeCIKAK.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-CePJCNbd.js +199 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-DgucfqoU.js +1 -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-B7_VTAKR.js +1 -0
- package/dist/Textarea.vue_vue_type_style_index_0_lang-DDtsZTRy.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-rv62Bp8m.js → Tree.vue_vue_type_style_index_0_lang-DJ-xiweD.js} +336 -334
- package/dist/{Tree.vue_vue_type_style_index_0_lang-CAizvLst.js → Tree.vue_vue_type_style_index_0_lang-DyCxuJ0z.js} +2 -2
- 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/{getEmojiList-CDYsgSBd.js → getEmojiList-2KQU2mwt.js} +1717 -8
- package/dist/getEmojiList-D8egeGo5.js +1 -0
- package/dist/{index-DWw7aruo.js → index-BmcHqJPl.js} +1 -1
- package/dist/{index-C7THkhcc.js → index-CJP02N8y.js} +4 -4
- package/dist/index-DEgppVnR.js +1 -0
- package/dist/{index-BbGUveIH.js → index-T3jqfug4.js} +450 -502
- package/dist/index.d.ts +2 -0
- package/dist/index.js +169 -196
- package/dist/index.umd.cjs +1 -1
- package/dist/options-Bh1s18jm.js +11 -0
- package/dist/options-CY2uxp5A.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/{uniq-qxEaR7zg.js → uniq-dQ201l-v.js} +1 -1
- package/dist/{uniq-DladXX7X.js → uniq-wfj4w7wM.js} +1 -1
- package/dist/{useInputDataStates-afRCO2my.js → useInputDataStates-BcVhp7Jz.js} +1 -1
- package/dist/{useInputDataStates-Dbevvx51.js → useInputDataStates-Q_q7M0Wx.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 +21 -12
- package/dist/Alert.vue_vue_type_style_index_0_lang-BpQBv4ay.js +0 -120
- package/dist/Alert.vue_vue_type_style_index_0_lang-Du-1ymsa.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-3nTF9xhR.js +0 -1
- package/dist/BaseBadge.model-DecqxaGN.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CpRddMsI.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-C8oIBBub.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CF56RzMa.js +0 -56
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-DL19WEBS.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BQz71n-J.js +0 -223
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-CEfUuSKn.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-BK96m8QS.js +0 -121
- package/dist/Chip.vue_vue_type_style_index_0_lang-Dr18lqpx.js +0 -1
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-CdSZ4qVb.js +0 -1
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-De3MJcnV.js +0 -4
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-SB7Fktwx.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang--cn7f62M.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Cr9_uMP0.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-uYf4F1e7.js +0 -1
- package/dist/Comment/Comment.d.ts +0 -85
- package/dist/Comment/CommentAction.d.ts +0 -23
- package/dist/Comment/CommentActions.d.ts +0 -2
- package/dist/Comment/CommentEditor.d.ts +0 -329
- package/dist/Comment/CommentMention.d.ts +0 -19
- package/dist/Comment/CommentReaction.d.ts +0 -15
- package/dist/Comment/CommentReactions.d.ts +0 -2
- package/dist/Comment/CommentTrigger.d.ts +0 -39
- package/dist/DataTable.vue_vue_type_style_index_0_lang-D3F57DXU.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DSR1u3h5.js +0 -878
- 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-CTg50llg.js +0 -124
- package/dist/DropZone.vue_vue_type_style_index_0_lang-tHuxgPs0.js +0 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-Dz23WZAz.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-DbHNW_MB.js +0 -1
- package/dist/GOPicker.vue_vue_type_style_index_0_lang-D6xPspHu.js +0 -1716
- package/dist/GOPicker.vue_vue_type_style_index_0_lang-D_jTqROA.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DAiMLwZR.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-Caz79tKh.js +0 -9
- package/dist/Icon.vue_vue_type_style_index_0_lang-CoGeYkwL.js +0 -3647
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-2A468LaC.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-B9xnIBX0.js +0 -121
- package/dist/Image.vue_vue_type_style_index_0_lang-DwBL-Y-l.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DontrNJA.js +0 -94
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-Jq243ZwS.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-DmQw8XIX.js +0 -164
- package/dist/Input.vue_vue_type_style_index_0_lang-Dvjqr9Xv.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-D3ztyCgC.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-rCwGhn3F.js +0 -47
- package/dist/Link.vue_vue_type_style_index_0_lang-CLEJ_vcP.js +0 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-FbnTGj-S.js +0 -77
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-BGtNa4LX.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-Bh9JyVRp.js +0 -1
- package/dist/Progress/Progress.d.ts +0 -21
- package/dist/Progress/ProgressCircle.d.ts +0 -2
- package/dist/Progress/ProgressHelperText.d.ts +0 -2
- package/dist/Progress/ProgressLabel.d.ts +0 -2
- package/dist/Progress/ProgressLegend.d.ts +0 -2
- package/dist/Progress/ProgressLine.d.ts +0 -2
- package/dist/Progress/ProgressValidationMessage.d.ts +0 -2
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-C0meJiGT.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-C7Ym1zLA.js +0 -101
- 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-Bg8m0JHq.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-DIbrgKqc.js +0 -162
- package/dist/Select.vue_vue_type_style_index_0_lang-w0rDWnsH.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-BfkLWpzN.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-CAiLOLX0.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-B58PCJ5d.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-CjdbtmcY.js +0 -137
- package/dist/Switch.vue_vue_type_style_index_0_lang-DJTzQ0-k.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-5hau1fhz.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-Decfm1tR.js +0 -191
- package/dist/Textarea.vue_vue_type_style_index_0_lang-D5lL2O22.js +0 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-bwCcI5Vn.js +0 -164
- package/dist/Upload/Upload.d.ts +0 -61
- package/dist/Upload/UploadFileGO.d.ts +0 -2
- package/dist/Upload/UploadList.d.ts +0 -2
- package/dist/Upload/UploadListItem.d.ts +0 -12
- package/dist/Upload/UploadListItemCard.d.ts +0 -2
- package/dist/Upload/UploadListItemImage.d.ts +0 -2
- package/dist/Upload/UploadTrigger.d.ts +0 -25
- package/dist/Upload.vue_vue_type_style_index_0_lang-BJjLSP0j.js +0 -1403
- package/dist/Upload.vue_vue_type_style_index_0_lang-DBCv1sye.js +0 -1
- package/dist/getEmojiList-DX90Kg6S.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
- package/dist/sortBy-D19G_yjw.js +0 -98
- package/dist/sortBy-jNwQkh2Z.js +0 -1
|
@@ -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-BMWMRTVO.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-C2rIx5h7.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-D9Ty08ta.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-bJL9KzOJ.js";
|
|
3
|
+
import { _ as O } from "./BaseButton.vue_vue_type_style_index_0_lang-Cjv87N0x.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-DuyFnwvt.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-81p8uq2m.js";
|
|
6
|
+
import { _ as R } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-DoRdIgvj.js";
|
|
7
|
+
import { _ as j } from "./Link.vue_vue_type_style_index_0_lang--WExHqLB.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-bTGK4lWE.js"),B=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-C4_sqrIs.js"),k=require("./Link.vue_vue_type_style_index_0_lang-CqKGfCyP.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-C6nHTHh-.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-BV-nR8oq.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-DGVv8NPn.js");require("@iconify/vue");const y=require("./Icon.vue_vue_type_style_index_0_lang-C2rIx5h7.js"),N=require("./Indicator.vue_vue_type_script_setup_true_lang-CAFGcRvZ.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-DuESzGoY.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-bJL9KzOJ.js";
|
|
9
|
+
import { _ as Z } from "./Indicator.vue_vue_type_script_setup_true_lang-CeiDjELx.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-BV-nR8oq.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-COSGtWjQ.js");exports.Badge=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
import { B as e, a as t } from "./BaseBadge.model-
|
|
2
|
+
import { o as S } from "./Icon.vue_vue_type_style_index_0_lang-bJL9KzOJ.js";
|
|
3
|
+
import { _ as w } from "./BaseBadge.vue_vue_type_style_index_0_lang-C44EG2t2.js";
|
|
4
|
+
import { g as x } from "./options-Bh1s18jm.js";
|
|
5
|
+
import { B as e, a as t } from "./BaseBadge.model-D4KY5lCI.js";
|
|
6
6
|
import { getCssCoreColor as o } from "@pantograph/tokens";
|
|
7
7
|
const R = /* @__PURE__ */ y({
|
|
8
8
|
...x("Badge", !1),
|
|
@@ -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-C2rIx5h7.js"),f=require("./BaseBadge.vue_vue_type_style_index_0_lang-C3_w-MbS.js"),y=require("./options-CY2uxp5A.js"),s=require("./BaseBadge.model-Bz8P4acF.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,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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require("@pantograph/tokens");const l=["2xsm","xsm","sm","md","tiny","tinier"],s=["rect","pill","minify"],e=["red","orange","amber","yellow","lime","green","teal","cyan","sky","blue","ocean","violet","amethyst","fuchsia","pink","mallard"],t=["primary","gray",...e],a=["primary-subtle","red-subtle","orange-subtle","amber-subtle","yellow-subtle","lime-subtle","green-subtle","teal-subtle","cyan-subtle","sky-subtle","blue-subtle","ocean-subtle","violet-subtle","amethyst-subtle","fuchsia-subtle","pink-subtle","gray-subtle","mallard-subtle"];exports.BadgeColors=t;exports.BadgeColorsSubtle=a;exports.BadgeSizes=l;exports.BadgeTypes=s;exports.PrimitiveColors=e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import "@pantograph/tokens";
|
|
2
|
+
const l = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], t = ["rect", "pill", "minify"], e = [
|
|
3
3
|
"red",
|
|
4
4
|
"orange",
|
|
5
5
|
"amber",
|
|
@@ -16,7 +16,7 @@ const u = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], i = ["rect", "pill", "m
|
|
|
16
16
|
"fuchsia",
|
|
17
17
|
"pink",
|
|
18
18
|
"mallard"
|
|
19
|
-
],
|
|
19
|
+
], a = ["primary", "gray", ...e], b = [
|
|
20
20
|
"primary-subtle",
|
|
21
21
|
"red-subtle",
|
|
22
22
|
"orange-subtle",
|
|
@@ -35,15 +35,11 @@ const u = ["2xsm", "xsm", "sm", "md", "tiny", "tinier"], i = ["rect", "pill", "m
|
|
|
35
35
|
"pink-subtle",
|
|
36
36
|
"gray-subtle",
|
|
37
37
|
"mallard-subtle"
|
|
38
|
-
]
|
|
39
|
-
if (e)
|
|
40
|
-
return e === "gray-subtle" ? s("gray-1") : a.includes(e) ? s(`${e.replace("subtle", "")}0`) : l.includes(e) ? s(`${e}-5`) : e;
|
|
41
|
-
};
|
|
38
|
+
];
|
|
42
39
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
a,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
b as g
|
|
40
|
+
a as B,
|
|
41
|
+
e as P,
|
|
42
|
+
b as a,
|
|
43
|
+
t as b,
|
|
44
|
+
l as c
|
|
49
45
|
};
|