monobill-mintui 0.4.4 → 0.4.6
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/README.md +207 -175
- package/dist/components/alert/Alert.d.ts +32 -0
- package/dist/components/alert/Alert.d.ts.map +1 -0
- package/dist/components/alert/index.d.ts +3 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/back-button/BackButton.d.ts +18 -0
- package/dist/components/back-button/BackButton.d.ts.map +1 -0
- package/dist/components/back-button/index.d.ts +3 -0
- package/dist/components/back-button/index.d.ts.map +1 -0
- package/dist/components/button/Button.d.ts +46 -1
- package/dist/components/button/Button.d.ts.map +1 -10
- package/dist/components/button/index.d.ts +3 -1
- package/dist/components/button/index.d.ts.map +1 -10
- package/dist/components/card/Card.d.ts +17 -1
- package/dist/components/card/Card.d.ts.map +1 -10
- package/dist/components/card/index.d.ts +3 -1
- package/dist/components/card/index.d.ts.map +1 -10
- package/dist/components/chart/Chart.d.ts +277 -0
- package/dist/components/chart/Chart.d.ts.map +1 -0
- package/dist/components/chart/index.d.ts +3 -0
- package/dist/components/chart/index.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +41 -1
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -10
- package/dist/components/checkbox/index.d.ts +3 -1
- package/dist/components/checkbox/index.d.ts.map +1 -10
- package/dist/components/chip/Chip.d.ts +15 -0
- package/dist/components/chip/Chip.d.ts.map +1 -0
- package/dist/components/chip/index.d.ts +3 -0
- package/dist/components/chip/index.d.ts.map +1 -0
- package/dist/components/choice/Choice.d.ts +27 -1
- package/dist/components/choice/Choice.d.ts.map +1 -10
- package/dist/components/choice/ChoiceOption.d.ts +30 -0
- package/dist/components/choice/ChoiceOption.d.ts.map +1 -0
- package/dist/components/choice/index.d.ts +5 -1
- package/dist/components/choice/index.d.ts.map +1 -10
- package/dist/components/clickable/Clickable.d.ts +14 -0
- package/dist/components/clickable/Clickable.d.ts.map +1 -0
- package/dist/components/clickable/index.d.ts +3 -0
- package/dist/components/clickable/index.d.ts.map +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +130 -0
- package/dist/components/date-picker/DatePicker.d.ts.map +1 -0
- package/dist/components/date-picker/index.d.ts +3 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/dropzone/Dropzone.d.ts +59 -0
- package/dist/components/dropzone/Dropzone.d.ts.map +1 -0
- package/dist/components/dropzone/index.d.ts +3 -0
- package/dist/components/dropzone/index.d.ts.map +1 -0
- package/dist/components/form/Form.d.ts +106 -0
- package/dist/components/form/Form.d.ts.map +1 -0
- package/dist/components/form/index.d.ts +3 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/grid/Grid.d.ts +16 -1
- package/dist/components/grid/Grid.d.ts.map +1 -10
- package/dist/components/grid/index.d.ts +3 -1
- package/dist/components/grid/index.d.ts.map +1 -10
- package/dist/components/icon/Icon.d.ts +15 -1
- package/dist/components/icon/Icon.d.ts.map +1 -10
- package/dist/components/icon/build-icons.d.ts +2 -0
- package/dist/components/icon/build-icons.d.ts.map +1 -0
- package/dist/components/icon/icons/archive.d.ts +3 -0
- package/dist/components/icon/icons/archive.d.ts.map +1 -0
- package/dist/components/icon/icons/arrow-down.d.ts +3 -0
- package/dist/components/icon/icons/arrow-down.d.ts.map +1 -0
- package/dist/components/icon/icons/arrow-left.d.ts +3 -0
- package/dist/components/icon/icons/arrow-left.d.ts.map +1 -0
- package/dist/components/icon/icons/arrow-right.d.ts +3 -0
- package/dist/components/icon/icons/arrow-right.d.ts.map +1 -0
- package/dist/components/icon/icons/arrow-up.d.ts +3 -0
- package/dist/components/icon/icons/arrow-up.d.ts.map +1 -0
- package/dist/components/icon/icons/attach.d.ts +3 -0
- package/dist/components/icon/icons/attach.d.ts.map +1 -0
- package/dist/components/icon/icons/barcode.d.ts +3 -0
- package/dist/components/icon/icons/barcode.d.ts.map +1 -0
- package/dist/components/icon/icons/bookmark.d.ts +3 -0
- package/dist/components/icon/icons/bookmark.d.ts.map +1 -0
- package/dist/components/icon/icons/building.d.ts +3 -0
- package/dist/components/icon/icons/building.d.ts.map +1 -0
- package/dist/components/icon/icons/buildings.d.ts +3 -0
- package/dist/components/icon/icons/buildings.d.ts.map +1 -0
- package/dist/components/icon/icons/calendar-day.d.ts +3 -0
- package/dist/components/icon/icons/calendar-day.d.ts.map +1 -0
- package/dist/components/icon/icons/calendar-empty.d.ts +3 -0
- package/dist/components/icon/icons/calendar-empty.d.ts.map +1 -0
- package/dist/components/icon/icons/calendar-week.d.ts +3 -0
- package/dist/components/icon/icons/calendar-week.d.ts.map +1 -0
- package/dist/components/icon/icons/calendar.d.ts +3 -0
- package/dist/components/icon/icons/calendar.d.ts.map +1 -0
- package/dist/components/icon/icons/caret-down.d.ts +3 -0
- package/dist/components/icon/icons/caret-down.d.ts.map +1 -0
- package/dist/components/icon/icons/caret-left.d.ts +3 -0
- package/dist/components/icon/icons/caret-left.d.ts.map +1 -0
- package/dist/components/icon/icons/caret-right.d.ts +3 -0
- package/dist/components/icon/icons/caret-right.d.ts.map +1 -0
- package/dist/components/icon/icons/caret-up.d.ts +3 -0
- package/dist/components/icon/icons/caret-up.d.ts.map +1 -0
- package/dist/components/icon/icons/chat.d.ts +3 -0
- package/dist/components/icon/icons/chat.d.ts.map +1 -0
- package/dist/components/icon/icons/check.d.ts +3 -0
- package/dist/components/icon/icons/check.d.ts.map +1 -0
- package/dist/components/icon/icons/clock.d.ts +3 -0
- package/dist/components/icon/icons/clock.d.ts.map +1 -0
- package/dist/components/icon/icons/close.d.ts +3 -0
- package/dist/components/icon/icons/close.d.ts.map +1 -0
- package/dist/components/icon/icons/copy.d.ts +3 -0
- package/dist/components/icon/icons/copy.d.ts.map +1 -0
- package/dist/components/icon/icons/credit-card.d.ts +3 -0
- package/dist/components/icon/icons/credit-card.d.ts.map +1 -0
- package/dist/components/icon/icons/delete.d.ts +3 -0
- package/dist/components/icon/icons/delete.d.ts.map +1 -0
- package/dist/components/icon/icons/documentation.d.ts +3 -0
- package/dist/components/icon/icons/documentation.d.ts.map +1 -0
- package/dist/components/icon/icons/dollar-sign.d.ts +3 -0
- package/dist/components/icon/icons/dollar-sign.d.ts.map +1 -0
- package/dist/components/icon/icons/download.d.ts +3 -0
- package/dist/components/icon/icons/download.d.ts.map +1 -0
- package/dist/components/icon/icons/duplicate.d.ts +3 -0
- package/dist/components/icon/icons/duplicate.d.ts.map +1 -0
- package/dist/components/icon/icons/edit.d.ts +3 -0
- package/dist/components/icon/icons/edit.d.ts.map +1 -0
- package/dist/components/icon/icons/ellipsis.d.ts +3 -0
- package/dist/components/icon/icons/ellipsis.d.ts.map +1 -0
- package/dist/components/icon/icons/error.d.ts +3 -0
- package/dist/components/icon/icons/error.d.ts.map +1 -0
- package/dist/components/icon/icons/external-link.d.ts +3 -0
- package/dist/components/icon/icons/external-link.d.ts.map +1 -0
- package/dist/components/icon/icons/file.d.ts +3 -0
- package/dist/components/icon/icons/file.d.ts.map +1 -0
- package/dist/components/icon/icons/filter.d.ts +3 -0
- package/dist/components/icon/icons/filter.d.ts.map +1 -0
- package/dist/components/icon/icons/folder.d.ts +3 -0
- package/dist/components/icon/icons/folder.d.ts.map +1 -0
- package/dist/components/icon/icons/grid.d.ts +3 -0
- package/dist/components/icon/icons/grid.d.ts.map +1 -0
- package/dist/components/icon/icons/help.d.ts +3 -0
- package/dist/components/icon/icons/help.d.ts.map +1 -0
- package/dist/components/icon/icons/home.d.ts +3 -0
- package/dist/components/icon/icons/home.d.ts.map +1 -0
- package/dist/components/icon/icons/image.d.ts +3 -0
- package/dist/components/icon/icons/image.d.ts.map +1 -0
- package/dist/components/icon/icons/index.cjs +4 -0
- package/dist/components/icon/icons/index.d.ts +79 -0
- package/dist/components/icon/icons/index.d.ts.map +1 -0
- package/dist/components/{chunks/icon-a2ABTJf-.js → icon/icons/index.js} +215 -260
- package/dist/components/icon/icons/info.d.ts +3 -0
- package/dist/components/icon/icons/info.d.ts.map +1 -0
- package/dist/components/icon/icons/language.d.ts +3 -0
- package/dist/components/icon/icons/language.d.ts.map +1 -0
- package/dist/components/icon/icons/link.d.ts +3 -0
- package/dist/components/icon/icons/link.d.ts.map +1 -0
- package/dist/components/icon/icons/list.d.ts +3 -0
- package/dist/components/icon/icons/list.d.ts.map +1 -0
- package/dist/components/icon/icons/location.d.ts +3 -0
- package/dist/components/icon/icons/location.d.ts.map +1 -0
- package/dist/components/icon/icons/lock.d.ts +3 -0
- package/dist/components/icon/icons/lock.d.ts.map +1 -0
- package/dist/components/icon/icons/login.d.ts +3 -0
- package/dist/components/icon/icons/login.d.ts.map +1 -0
- package/dist/components/icon/icons/logout.d.ts +3 -0
- package/dist/components/icon/icons/logout.d.ts.map +1 -0
- package/dist/components/icon/icons/mail.d.ts +3 -0
- package/dist/components/icon/icons/mail.d.ts.map +1 -0
- package/dist/components/icon/icons/map.d.ts +3 -0
- package/dist/components/icon/icons/map.d.ts.map +1 -0
- package/dist/components/icon/icons/menu.d.ts +3 -0
- package/dist/components/icon/icons/menu.d.ts.map +1 -0
- package/dist/components/icon/icons/moon.d.ts +3 -0
- package/dist/components/icon/icons/moon.d.ts.map +1 -0
- package/dist/components/icon/icons/notifications.d.ts +3 -0
- package/dist/components/icon/icons/notifications.d.ts.map +1 -0
- package/dist/components/icon/icons/paste.d.ts +3 -0
- package/dist/components/icon/icons/paste.d.ts.map +1 -0
- package/dist/components/icon/icons/pin.d.ts +3 -0
- package/dist/components/icon/icons/pin.d.ts.map +1 -0
- package/dist/components/icon/icons/plus.d.ts +3 -0
- package/dist/components/icon/icons/plus.d.ts.map +1 -0
- package/dist/components/icon/icons/print.d.ts +3 -0
- package/dist/components/icon/icons/print.d.ts.map +1 -0
- package/dist/components/icon/icons/refresh.d.ts +3 -0
- package/dist/components/icon/icons/refresh.d.ts.map +1 -0
- package/dist/components/icon/icons/remove.d.ts +3 -0
- package/dist/components/icon/icons/remove.d.ts.map +1 -0
- package/dist/components/icon/icons/save.d.ts +3 -0
- package/dist/components/icon/icons/save.d.ts.map +1 -0
- package/dist/components/icon/icons/search.d.ts +3 -0
- package/dist/components/icon/icons/search.d.ts.map +1 -0
- package/dist/components/icon/icons/settings.d.ts +3 -0
- package/dist/components/icon/icons/settings.d.ts.map +1 -0
- package/dist/components/icon/icons/share.d.ts +3 -0
- package/dist/components/icon/icons/share.d.ts.map +1 -0
- package/dist/components/icon/icons/sort-arrows.d.ts +3 -0
- package/dist/components/icon/icons/sort-arrows.d.ts.map +1 -0
- package/dist/components/icon/icons/sort.d.ts +3 -0
- package/dist/components/icon/icons/sort.d.ts.map +1 -0
- package/dist/components/icon/icons/star.d.ts +3 -0
- package/dist/components/icon/icons/star.d.ts.map +1 -0
- package/dist/components/icon/icons/success.d.ts +3 -0
- package/dist/components/icon/icons/success.d.ts.map +1 -0
- package/dist/components/icon/icons/sun.d.ts +3 -0
- package/dist/components/icon/icons/sun.d.ts.map +1 -0
- package/dist/components/icon/icons/table.d.ts +3 -0
- package/dist/components/icon/icons/table.d.ts.map +1 -0
- package/dist/components/icon/icons/tag.d.ts +3 -0
- package/dist/components/icon/icons/tag.d.ts.map +1 -0
- package/dist/components/icon/icons/trash.d.ts +3 -0
- package/dist/components/icon/icons/trash.d.ts.map +1 -0
- package/dist/components/icon/icons/unlock.d.ts +3 -0
- package/dist/components/icon/icons/unlock.d.ts.map +1 -0
- package/dist/components/icon/icons/upload.d.ts +3 -0
- package/dist/components/icon/icons/upload.d.ts.map +1 -0
- package/dist/components/icon/icons/user-add.d.ts +3 -0
- package/dist/components/icon/icons/user-add.d.ts.map +1 -0
- package/dist/components/icon/icons/user.d.ts +3 -0
- package/dist/components/icon/icons/user.d.ts.map +1 -0
- package/dist/components/icon/icons/users.d.ts +3 -0
- package/dist/components/icon/icons/users.d.ts.map +1 -0
- package/dist/components/icon/icons/video.d.ts +3 -0
- package/dist/components/icon/icons/video.d.ts.map +1 -0
- package/dist/components/icon/icons/warning.d.ts +3 -0
- package/dist/components/icon/icons/warning.d.ts.map +1 -0
- package/dist/components/icon/index.d.ts +3 -2
- package/dist/components/icon/index.d.ts.map +1 -10
- package/dist/components/icon/registry.d.ts +15 -0
- package/dist/components/icon/registry.d.ts.map +1 -0
- package/dist/components/input/Input.d.ts +56 -0
- package/dist/components/input/Input.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/link/Link.d.ts +16 -1
- package/dist/components/link/Link.d.ts.map +1 -10
- package/dist/components/link/index.d.ts +3 -1
- package/dist/components/link/index.d.ts.map +1 -10
- package/dist/components/modal/Modal.d.ts +32 -1
- package/dist/components/modal/Modal.d.ts.map +1 -10
- package/dist/components/modal/index.d.ts +3 -1
- package/dist/components/modal/index.d.ts.map +1 -10
- package/dist/components/off-canvas/OffCanvas.d.ts +42 -0
- package/dist/components/off-canvas/OffCanvas.d.ts.map +1 -0
- package/dist/components/off-canvas/index.d.ts +3 -0
- package/dist/components/off-canvas/index.d.ts.map +1 -0
- package/dist/components/page/Page.d.ts +29 -1
- package/dist/components/page/Page.d.ts.map +1 -10
- package/dist/components/page/index.d.ts +3 -1
- package/dist/components/page/index.d.ts.map +1 -10
- package/dist/components/popover/Popover.d.ts +48 -1
- package/dist/components/popover/Popover.d.ts.map +1 -10
- package/dist/components/popover/index.d.ts +3 -1
- package/dist/components/popover/index.d.ts.map +1 -10
- package/dist/components/resource-table/ResourceTable.d.ts +159 -0
- package/dist/components/resource-table/ResourceTable.d.ts.map +1 -0
- package/dist/components/resource-table/index.d.ts +3 -0
- package/dist/components/resource-table/index.d.ts.map +1 -0
- package/dist/components/select/Select.d.ts +34 -0
- package/dist/components/select/Select.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/side-navigation/SideNavigation.d.ts +22 -0
- package/dist/components/side-navigation/SideNavigation.d.ts.map +1 -0
- package/dist/components/side-navigation/SideNavigationActionHeader.d.ts +2 -0
- package/dist/components/side-navigation/SideNavigationActionHeader.d.ts.map +1 -0
- package/dist/components/side-navigation/SideNavigationActionLinks.d.ts +9 -0
- package/dist/components/side-navigation/SideNavigationActionLinks.d.ts.map +1 -0
- package/dist/components/side-navigation/SideNavigationActionMenu.d.ts +23 -0
- package/dist/components/side-navigation/SideNavigationActionMenu.d.ts.map +1 -0
- package/dist/components/side-navigation/SideNavigationLink.d.ts +28 -0
- package/dist/components/side-navigation/SideNavigationLink.d.ts.map +1 -0
- package/dist/components/side-navigation/SideNavigationLinks.d.ts +14 -0
- package/dist/components/side-navigation/SideNavigationLinks.d.ts.map +1 -0
- package/dist/components/side-navigation/index.d.ts +8 -0
- package/dist/components/side-navigation/index.d.ts.map +1 -0
- package/dist/components/spinner/Spinner.d.ts +13 -1
- package/dist/components/spinner/Spinner.d.ts.map +1 -10
- package/dist/components/spinner/index.d.ts +3 -1
- package/dist/components/spinner/index.d.ts.map +1 -10
- package/dist/components/stack/Stack.d.ts +20 -1
- package/dist/components/stack/Stack.d.ts.map +1 -10
- package/dist/components/stack/index.d.ts +3 -1
- package/dist/components/stack/index.d.ts.map +1 -10
- package/dist/components/switch/Switch.d.ts +32 -1
- package/dist/components/switch/Switch.d.ts.map +1 -10
- package/dist/components/switch/index.d.ts +3 -1
- package/dist/components/switch/index.d.ts.map +1 -10
- package/dist/components/table/Table.d.ts +15 -0
- package/dist/components/table/Table.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/tabs/Tab.d.ts +19 -0
- package/dist/components/tabs/Tab.d.ts.map +1 -0
- package/dist/components/tabs/TabContent.d.ts +13 -0
- package/dist/components/tabs/TabContent.d.ts.map +1 -0
- package/dist/components/tabs/TabList.d.ts +12 -0
- package/dist/components/tabs/TabList.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +20 -0
- package/dist/components/tabs/Tabs.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +9 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tags/Tags.d.ts +57 -0
- package/dist/components/tags/Tags.d.ts.map +1 -0
- package/dist/components/tags/index.d.ts +3 -0
- package/dist/components/tags/index.d.ts.map +1 -0
- package/dist/components/text/Text.d.ts +25 -1
- package/dist/components/text/Text.d.ts.map +1 -10
- package/dist/components/text/index.d.ts +3 -1
- package/dist/components/text/index.d.ts.map +1 -10
- package/dist/icons/calendar-day.svg +3 -0
- package/dist/icons/calendar-empty.svg +3 -0
- package/dist/icons/calendar-week.svg +3 -0
- package/dist/icons/calendar.svg +1 -1
- package/dist/icons/credit-card.svg +3 -0
- package/dist/icons/dollar-sign.svg +3 -0
- package/dist/icons/edit.svg +1 -1
- package/dist/icons/sort-arrows.svg +3 -0
- package/dist/icons/table.svg +3 -0
- package/dist/index.cjs +209 -1
- package/dist/index.d.ts +69 -35
- package/dist/index.d.ts.map +1 -10
- package/dist/index.js +8697 -16
- package/dist/plus-C2ciGlkq.cjs +1 -0
- package/dist/plus-csC2ambK.js +136 -0
- package/package.json +37 -87
- package/tailwind.preset.cjs +24 -0
- package/tailwind.preset.js +24 -0
- package/dist/components/button/index.cjs +0 -1
- package/dist/components/button/index.js +0 -2
- package/dist/components/card/index.cjs +0 -1
- package/dist/components/card/index.js +0 -2
- package/dist/components/checkbox/index.cjs +0 -1
- package/dist/components/checkbox/index.js +0 -1
- package/dist/components/choice/index.cjs +0 -1
- package/dist/components/choice/index.js +0 -1
- package/dist/components/chunks/Icon-BTlX8dXa.js +0 -1
- package/dist/components/chunks/Icon-xNhleOos.js +0 -77
- package/dist/components/chunks/button-4_r-rdhN.js +0 -1
- package/dist/components/chunks/button-DFs4DmfC.js +0 -575
- package/dist/components/chunks/card-D8FpQZBD.js +0 -1
- package/dist/components/chunks/card-DhRHTSkL.js +0 -58
- package/dist/components/chunks/checkbox-Bakjptcp.js +0 -1
- package/dist/components/chunks/checkbox-D95xYxXV.js +0 -169
- package/dist/components/chunks/choice-BlAkXCQN.js +0 -204
- package/dist/components/chunks/choice-C0EYGPxa.js +0 -1
- package/dist/components/chunks/grid-DVHtippr.js +0 -1
- package/dist/components/chunks/grid-DqlQrFkp.js +0 -62
- package/dist/components/chunks/icon-BZolpoyx.js +0 -1
- package/dist/components/chunks/link-C49HKGxh.js +0 -75
- package/dist/components/chunks/link-S0yBi9n7.js +0 -1
- package/dist/components/chunks/modal-B2sNSV2Q.js +0 -1
- package/dist/components/chunks/modal-BQlup2Mw.js +0 -98
- package/dist/components/chunks/page-BiSPS1-l.js +0 -1
- package/dist/components/chunks/page-DFKYJekL.js +0 -112
- package/dist/components/chunks/popover-BkTNH5gb.js +0 -181
- package/dist/components/chunks/popover-DFCs6KnJ.js +0 -1
- package/dist/components/chunks/spinner-Ch8momJm.js +0 -63
- package/dist/components/chunks/spinner-zGnecx3W.js +0 -111
- package/dist/components/chunks/stack-BvgkqvMX.js +0 -1
- package/dist/components/chunks/stack-DzZy3iH1.js +0 -114
- package/dist/components/chunks/switch-C5FOAA64.js +0 -1
- package/dist/components/chunks/switch-CCyMw1-M.js +0 -138
- package/dist/components/chunks/text-B-qq-sZ2.js +0 -111
- package/dist/components/chunks/text-nTrVku3e.js +0 -1
- package/dist/components/grid/index.cjs +0 -1
- package/dist/components/grid/index.js +0 -2
- package/dist/components/icon/index.cjs +0 -1
- package/dist/components/icon/index.js +0 -3
- package/dist/components/link/index.cjs +0 -1
- package/dist/components/link/index.js +0 -2
- package/dist/components/modal/index.cjs +0 -1
- package/dist/components/modal/index.js +0 -1
- package/dist/components/page/index.cjs +0 -1
- package/dist/components/page/index.js +0 -2
- package/dist/components/popover/index.cjs +0 -1
- package/dist/components/popover/index.js +0 -1
- package/dist/components/spinner/index.cjs +0 -1
- package/dist/components/spinner/index.js +0 -2
- package/dist/components/stack/index.cjs +0 -1
- package/dist/components/stack/index.js +0 -2
- package/dist/components/switch/index.cjs +0 -1
- package/dist/components/switch/index.js +0 -2
- package/dist/components/text/index.cjs +0 -1
- package/dist/components/text/index.js +0 -2
- package/dist/mintui-elements.d.ts +0 -78
- package/dist/mintui-elements.d.ts.map +0 -10
- package/dist/styles.css +0 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# MintUI
|
|
2
2
|
|
|
3
3
|
A modern **framework-agnostic** UI kit built as **pure JavaScript Web Components** (no framework dependencies). Works in Vue, React, Angular, Svelte, or vanilla JavaScript!
|
|
4
4
|
|
|
@@ -8,25 +8,86 @@ A modern **framework-agnostic** UI kit built as **pure JavaScript Web Components
|
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
|
-
Install components individually via NPM. All components are version-locked together to ensure styling consistency.
|
|
12
|
-
|
|
13
11
|
```bash
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
npm install monobill-mintui
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## ⚠️ IMPORTANT: Tailwind Configuration Required
|
|
16
|
+
|
|
17
|
+
**After installing, you MUST configure Tailwind CSS to scan the mintui package files.** Without this, Tailwind classes won't work!
|
|
18
|
+
|
|
19
|
+
### Basic Configuration
|
|
20
|
+
|
|
21
|
+
Add this to your `tailwind.config.js`:
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import mintuiPreset from 'monobill-mintui/tailwind-preset'
|
|
25
|
+
|
|
26
|
+
export default {
|
|
27
|
+
presets: [mintuiPreset], // ⚠️ REQUIRED: Enforces dark mode color (#0A0A0A)
|
|
28
|
+
content: [
|
|
29
|
+
"./src/**/*.{vue,js,ts,jsx,tsx,html}",
|
|
30
|
+
"./node_modules/monobill-mintui/dist/**/*.js", // ⚠️ REQUIRED: Add this line
|
|
31
|
+
],
|
|
32
|
+
// ... rest of your config
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**CommonJS format:**
|
|
37
|
+
|
|
38
|
+
```js
|
|
39
|
+
const mintuiPreset = require('monobill-mintui/tailwind-preset')
|
|
40
|
+
|
|
41
|
+
module.exports = {
|
|
42
|
+
presets: [mintuiPreset], // ⚠️ REQUIRED: Enforces dark mode color (#0A0A0A)
|
|
43
|
+
content: [
|
|
44
|
+
"./src/**/*.{vue,js,ts,jsx,tsx,html}",
|
|
45
|
+
"./node_modules/monobill-mintui/dist/**/*.js", // ⚠️ REQUIRED: Add this line
|
|
46
|
+
],
|
|
47
|
+
// ... rest of your config
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**After updating your Tailwind config, rebuild your CSS** (restart your dev server or rebuild your Tailwind output).
|
|
52
|
+
|
|
53
|
+
### Dark Mode Color
|
|
54
|
+
|
|
55
|
+
The mintui preset enforces the base dark mode color `#0A0A0A` for `gray-900`. This ensures consistent dark mode styling across all apps using mintui. The preset automatically sets this color, so all components will use the correct dark mode background.
|
|
56
|
+
|
|
57
|
+
## Icon Configuration
|
|
58
|
+
|
|
59
|
+
Icons are loaded from SVG files. By default, icons load from the CDN at `https://assets.gomonobill.com/mintui/icons/` for optimal caching and performance.
|
|
60
|
+
|
|
61
|
+
### Configuring Icon Source
|
|
62
|
+
|
|
63
|
+
You can configure where icons are loaded from using a meta tag:
|
|
64
|
+
|
|
65
|
+
**Default (CDN):**
|
|
66
|
+
```html
|
|
67
|
+
<!-- Icons load from CDN by default -->
|
|
68
|
+
<mint-icon name="caret-up"></mint-icon>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Load from Local Server:**
|
|
72
|
+
```html
|
|
73
|
+
<meta name="mint-icon-base-url" content="local">
|
|
74
|
+
```
|
|
17
75
|
|
|
18
|
-
|
|
19
|
-
|
|
76
|
+
**Load from Custom Endpoint:**
|
|
77
|
+
```html
|
|
78
|
+
<meta name="mint-icon-base-url" content="/custom/path/to/icons">
|
|
79
|
+
<!-- or -->
|
|
80
|
+
<meta name="mint-icon-base-url" content="https://your-cdn.com/icons">
|
|
20
81
|
```
|
|
21
82
|
|
|
22
|
-
|
|
83
|
+
**Explicitly Use CDN:**
|
|
84
|
+
```html
|
|
85
|
+
<meta name="mint-icon-base-url" content="cdn">
|
|
86
|
+
```
|
|
23
87
|
|
|
24
|
-
|
|
88
|
+
### Icon Files Setup
|
|
25
89
|
|
|
26
|
-
|
|
27
|
-
- ✅ No version conflicts
|
|
28
|
-
- ✅ Easy updates with `npm update`
|
|
29
|
-
- ✅ Standard NPM versioning workflow
|
|
90
|
+
If using local icons, ensure SVG files are available in your `public/icons/` directory. The icon component expects files named like `/icons/caret-up.svg`, `/icons/caret-down.svg`, etc.
|
|
30
91
|
|
|
31
92
|
## Usage
|
|
32
93
|
|
|
@@ -41,8 +102,7 @@ Components are Web Components (Custom Elements) that work in **any framework**:
|
|
|
41
102
|
<html>
|
|
42
103
|
<head>
|
|
43
104
|
<script type="module">
|
|
44
|
-
import '
|
|
45
|
-
import '@monobill-mintui/switch'
|
|
105
|
+
import 'monobill-mintui'
|
|
46
106
|
</script>
|
|
47
107
|
</head>
|
|
48
108
|
<body>
|
|
@@ -60,20 +120,82 @@ Components are Web Components (Custom Elements) that work in **any framework**:
|
|
|
60
120
|
|
|
61
121
|
#### Vue 3
|
|
62
122
|
|
|
123
|
+
**⚠️ IMPORTANT: Configure Vue to recognize custom elements**
|
|
124
|
+
|
|
125
|
+
You must configure Vue to treat `mint-*` elements as custom elements, not Vue components.
|
|
126
|
+
|
|
127
|
+
**For Vite projects**, add this to your `vite.config.js` or `vite.config.ts`:
|
|
128
|
+
|
|
129
|
+
```js
|
|
130
|
+
import { defineConfig } from 'vite'
|
|
131
|
+
import vue from '@vitejs/plugin-vue'
|
|
132
|
+
|
|
133
|
+
export default defineConfig({
|
|
134
|
+
plugins: [
|
|
135
|
+
vue({
|
|
136
|
+
template: {
|
|
137
|
+
compilerOptions: {
|
|
138
|
+
isCustomElement: (tag) => tag.startsWith('mint-'),
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
}),
|
|
142
|
+
],
|
|
143
|
+
})
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**For Vue CLI projects**, add this to your `vue.config.js`:
|
|
147
|
+
|
|
148
|
+
```js
|
|
149
|
+
module.exports = {
|
|
150
|
+
chainWebpack: (config) => {
|
|
151
|
+
config.module
|
|
152
|
+
.rule('vue')
|
|
153
|
+
.use('vue-loader')
|
|
154
|
+
.tap((options) => {
|
|
155
|
+
options.compilerOptions = {
|
|
156
|
+
...options.compilerOptions,
|
|
157
|
+
isCustomElement: (tag) => tag.startsWith('mint-'),
|
|
158
|
+
}
|
|
159
|
+
return options
|
|
160
|
+
})
|
|
161
|
+
},
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**For Nuxt 3**, add this to your `nuxt.config.ts`:
|
|
166
|
+
|
|
167
|
+
```ts
|
|
168
|
+
export default defineNuxtConfig({
|
|
169
|
+
vue: {
|
|
170
|
+
compilerOptions: {
|
|
171
|
+
isCustomElement: (tag) => tag.startsWith('mint-'),
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
})
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Usage example:**
|
|
178
|
+
|
|
63
179
|
```vue
|
|
64
180
|
<template>
|
|
65
181
|
<mint-button variant="primary" @click="handleClick">
|
|
66
182
|
Click me
|
|
67
183
|
</mint-button>
|
|
68
184
|
<mint-switch :checked="enabled" @change="handleChange" />
|
|
185
|
+
<mint-input label="Name" v-model="name" />
|
|
186
|
+
<mint-select label="Country" v-model="country">
|
|
187
|
+
<option value="us">United States</option>
|
|
188
|
+
<option value="ca">Canada</option>
|
|
189
|
+
</mint-select>
|
|
69
190
|
</template>
|
|
70
191
|
|
|
71
192
|
<script setup>
|
|
72
193
|
import { ref } from 'vue'
|
|
73
|
-
import '
|
|
74
|
-
import '@monobill-mintui/switch'
|
|
194
|
+
import 'monobill-mintui'
|
|
75
195
|
|
|
76
196
|
const enabled = ref(false)
|
|
197
|
+
const name = ref('')
|
|
198
|
+
const country = ref('')
|
|
77
199
|
|
|
78
200
|
const handleClick = () => console.log('Clicked!')
|
|
79
201
|
const handleChange = (e) => {
|
|
@@ -86,8 +208,7 @@ const handleChange = (e) => {
|
|
|
86
208
|
|
|
87
209
|
```jsx
|
|
88
210
|
import { useState } from 'react'
|
|
89
|
-
import '
|
|
90
|
-
import '@monobill-mintui/switch'
|
|
211
|
+
import 'monobill-mintui'
|
|
91
212
|
|
|
92
213
|
function App() {
|
|
93
214
|
const [enabled, setEnabled] = useState(false)
|
|
@@ -101,6 +222,11 @@ function App() {
|
|
|
101
222
|
checked={enabled}
|
|
102
223
|
onChange={(e) => setEnabled(e.detail?.checked ?? e.target.checked)}
|
|
103
224
|
/>
|
|
225
|
+
<mint-input label="Name" />
|
|
226
|
+
<mint-select label="Country">
|
|
227
|
+
<option value="us">United States</option>
|
|
228
|
+
<option value="ca">Canada</option>
|
|
229
|
+
</mint-select>
|
|
104
230
|
</>
|
|
105
231
|
)
|
|
106
232
|
}
|
|
@@ -110,8 +236,7 @@ function App() {
|
|
|
110
236
|
|
|
111
237
|
```typescript
|
|
112
238
|
import { Component } from '@angular/core'
|
|
113
|
-
import '
|
|
114
|
-
import '@monobill-mintui/switch'
|
|
239
|
+
import 'monobill-mintui'
|
|
115
240
|
|
|
116
241
|
@Component({
|
|
117
242
|
selector: 'app-root',
|
|
@@ -132,126 +257,29 @@ export class AppComponent {
|
|
|
132
257
|
}
|
|
133
258
|
```
|
|
134
259
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
npm run build:css
|
|
159
|
-
|
|
160
|
-
# Run development server
|
|
161
|
-
npm run dev
|
|
162
|
-
|
|
163
|
-
# Build for production
|
|
164
|
-
npm run build
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
## Component Structure
|
|
168
|
-
|
|
169
|
-
Each component is a pure JavaScript Web Component:
|
|
170
|
-
|
|
171
|
-
```
|
|
172
|
-
monobill-mintui/
|
|
173
|
-
├── src/
|
|
174
|
-
│ ├── components/
|
|
175
|
-
│ │ └── button/
|
|
176
|
-
│ │ ├── Button.js # Pure JavaScript Web Component
|
|
177
|
-
│ │ ├── index.js # Component export
|
|
178
|
-
│ │ ├── README.md # Component documentation
|
|
179
|
-
│ │ └── package.json # Component metadata
|
|
180
|
-
│ └── index.js # Main entry point (tree-shakeable)
|
|
181
|
-
├── components.json # Component manifest
|
|
182
|
-
├── scripts/
|
|
183
|
-
│ ├── sync-versions.js # Version synchronization script
|
|
184
|
-
│ ├── prepare-publish.js # Publishing preparation script
|
|
185
|
-
│ └── publish-all.js # Publish all components script
|
|
186
|
-
├── package.json
|
|
187
|
-
├── tailwind.config.js # Tailwind config (for development)
|
|
188
|
-
├── vite.config.js
|
|
189
|
-
└── README.md
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
## Version Management
|
|
193
|
-
|
|
194
|
-
### Installing Components
|
|
195
|
-
|
|
196
|
-
All components are version-locked. When you install a component, it uses the latest version:
|
|
197
|
-
|
|
198
|
-
```bash
|
|
199
|
-
npm install @monobill-mintui/button
|
|
200
|
-
# Installs latest version (e.g., 1.0.0)
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
When you install another component, it automatically uses the same version:
|
|
204
|
-
|
|
205
|
-
```bash
|
|
206
|
-
npm install @monobill-mintui/switch
|
|
207
|
-
# Also installs version 1.0.0 (same as button)
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
### Updating Components
|
|
211
|
-
|
|
212
|
-
Update all components to the latest version:
|
|
213
|
-
|
|
214
|
-
```bash
|
|
215
|
-
npm update @monobill-mintui/button @monobill-mintui/switch
|
|
216
|
-
# Or update all at once
|
|
217
|
-
npm update
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
### Pinning Versions
|
|
221
|
-
|
|
222
|
-
Pin to a specific version in your `package.json`:
|
|
223
|
-
|
|
224
|
-
```json
|
|
225
|
-
{
|
|
226
|
-
"dependencies": {
|
|
227
|
-
"@monobill-mintui/button": "1.0.0",
|
|
228
|
-
"@monobill-mintui/switch": "1.0.0"
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
All components will stay at the same version, ensuring consistent styling.
|
|
234
|
-
|
|
235
|
-
## Tree Shaking
|
|
236
|
-
|
|
237
|
-
Since components are installed individually, tree shaking works automatically:
|
|
238
|
-
|
|
239
|
-
```javascript
|
|
240
|
-
// Only the Button component is included in your bundle
|
|
241
|
-
import '@monobill-mintui/button'
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
Each component is a separate package, so unused components are never included in your bundle.
|
|
245
|
-
|
|
246
|
-
## Supported Frameworks
|
|
247
|
-
|
|
248
|
-
These Web Components work in:
|
|
249
|
-
- ✅ **Vanilla JavaScript** - Just import and use
|
|
250
|
-
- ✅ **Vue 2 & 3** - Use as custom elements
|
|
251
|
-
- ✅ **React** - Use as JSX elements
|
|
252
|
-
- ✅ **Angular** - Use in templates
|
|
253
|
-
- ✅ **Svelte** - Use as HTML elements
|
|
254
|
-
- ✅ **Any framework** that supports HTML
|
|
260
|
+
## Available Components
|
|
261
|
+
|
|
262
|
+
- **mint-button** - Button component with multiple variants
|
|
263
|
+
- **mint-switch** - Toggle switch component
|
|
264
|
+
- **mint-input** - Text input, textarea, and various input types
|
|
265
|
+
- **mint-select** - Select dropdown component
|
|
266
|
+
- **mint-checkbox** - Checkbox component
|
|
267
|
+
- **mint-choice** - Radio button group component (parent container with mint-choice-option children)
|
|
268
|
+
- **mint-tags** - Tags input component with add/remove and sorting capabilities
|
|
269
|
+
- **mint-date-picker** - Date picker component
|
|
270
|
+
- **mint-dropzone** - File upload component
|
|
271
|
+
- **mint-form** - Form component with validation
|
|
272
|
+
- **mint-icon** - Icon component
|
|
273
|
+
- **mint-text** - Text component with typography variants
|
|
274
|
+
- **mint-card** - Card component
|
|
275
|
+
- **mint-modal** - Modal dialog component
|
|
276
|
+
- **mint-popover** - Popover component
|
|
277
|
+
- **mint-spinner** - Loading spinner component
|
|
278
|
+
- **mint-stack** - Stack layout component
|
|
279
|
+
- **mint-grid** - Grid layout component
|
|
280
|
+
- **mint-page** - Page container component
|
|
281
|
+
- **mint-link** - Link component
|
|
282
|
+
- **mint-back-button** - Back button component
|
|
255
283
|
|
|
256
284
|
## Requirements
|
|
257
285
|
|
|
@@ -260,58 +288,62 @@ These Web Components work in:
|
|
|
260
288
|
- **No JavaScript dependencies!** Built with native Web Component APIs
|
|
261
289
|
- Modern browser with Web Components support (all modern browsers)
|
|
262
290
|
|
|
263
|
-
### Tailwind Configuration
|
|
291
|
+
### ⚠️ Critical: Tailwind Configuration
|
|
264
292
|
|
|
265
|
-
|
|
293
|
+
**You MUST add the mintui package to your Tailwind content paths AND use the preset**, otherwise the classes won't be included in your CSS and dark mode colors won't be correct:
|
|
266
294
|
|
|
267
295
|
```js
|
|
296
|
+
// tailwind.config.js (ES modules)
|
|
297
|
+
import mintuiPreset from 'monobill-mintui/tailwind-preset'
|
|
298
|
+
|
|
268
299
|
export default {
|
|
300
|
+
presets: [mintuiPreset], // ⚠️ REQUIRED: Enforces dark mode color (#0A0A0A)
|
|
269
301
|
content: [
|
|
270
|
-
"./src/**/*.{vue,js,ts,jsx,tsx}",
|
|
271
|
-
"./node_modules
|
|
302
|
+
"./src/**/*.{vue,js,ts,jsx,tsx,html}",
|
|
303
|
+
"./node_modules/monobill-mintui/dist/**/*.js", // ⚠️ REQUIRED
|
|
272
304
|
],
|
|
273
|
-
// ... rest of config
|
|
305
|
+
// ... rest of your config
|
|
274
306
|
}
|
|
275
307
|
```
|
|
276
308
|
|
|
277
|
-
|
|
309
|
+
```js
|
|
310
|
+
// tailwind.config.js (CommonJS)
|
|
311
|
+
const mintuiPreset = require('monobill-mintui/tailwind-preset')
|
|
278
312
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
-
|
|
313
|
+
module.exports = {
|
|
314
|
+
presets: [mintuiPreset], // ⚠️ REQUIRED: Enforces dark mode color (#0A0A0A)
|
|
315
|
+
content: [
|
|
316
|
+
"./src/**/*.{vue,js,ts,jsx,tsx,html}",
|
|
317
|
+
"./node_modules/monobill-mintui/dist/**/*.js", // ⚠️ REQUIRED
|
|
318
|
+
],
|
|
319
|
+
// ... rest of your config
|
|
320
|
+
}
|
|
321
|
+
```
|
|
284
322
|
|
|
285
|
-
|
|
323
|
+
**After updating your Tailwind config, rebuild your CSS** (restart your dev server or rebuild your Tailwind output).
|
|
286
324
|
|
|
287
|
-
|
|
288
|
-
- Tree-shake unused classes
|
|
289
|
-
- Generate minimal CSS output
|
|
290
|
-
- Optimize for production
|
|
325
|
+
## Troubleshooting
|
|
291
326
|
|
|
292
|
-
|
|
327
|
+
### Tailwind classes not working?
|
|
293
328
|
|
|
294
|
-
|
|
329
|
+
1. **Check your Tailwind config** - Make sure you've added `./node_modules/monobill-mintui/dist/**/*.js` to the `content` array
|
|
330
|
+
2. **Rebuild your CSS** - Restart your dev server or rebuild your Tailwind output
|
|
331
|
+
3. **Check the package name** - Make sure you're using `monobill-mintui` (not `mintui`) in the path
|
|
332
|
+
4. **Verify the path** - The path should point to `dist/**/*.js` inside the node_modules folder
|
|
295
333
|
|
|
296
|
-
|
|
334
|
+
## Development
|
|
297
335
|
|
|
298
336
|
```bash
|
|
299
|
-
#
|
|
300
|
-
npm
|
|
337
|
+
# Install dependencies
|
|
338
|
+
npm install
|
|
301
339
|
|
|
302
|
-
#
|
|
303
|
-
|
|
340
|
+
# Run development server
|
|
341
|
+
npm run dev
|
|
304
342
|
|
|
305
|
-
#
|
|
306
|
-
|
|
307
|
-
npm publish --access public
|
|
343
|
+
# Build for production
|
|
344
|
+
npm run build
|
|
308
345
|
```
|
|
309
346
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
```bash
|
|
313
|
-
npm version patch # Bumps to 0.1.1 and syncs all components
|
|
314
|
-
npm version minor # Bumps to 0.2.0 and syncs all components
|
|
315
|
-
npm version major # Bumps to 1.0.0 and syncs all components
|
|
316
|
-
```
|
|
347
|
+
## License
|
|
317
348
|
|
|
349
|
+
MIT
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import '../text/index';
|
|
2
|
+
import '../icon/index';
|
|
3
|
+
import '../icon/icons/info';
|
|
4
|
+
import '../icon/icons/success';
|
|
5
|
+
import '../icon/icons/warning';
|
|
6
|
+
import '../icon/icons/error';
|
|
7
|
+
import '../icon/icons/close';
|
|
8
|
+
declare class MintAlert extends HTMLElement {
|
|
9
|
+
static get observedAttributes(): string[];
|
|
10
|
+
private _headingElement;
|
|
11
|
+
private _iconElement;
|
|
12
|
+
private _dismissButton;
|
|
13
|
+
private _headerWrapper;
|
|
14
|
+
private _bodyWrapper;
|
|
15
|
+
private _dismissHandler;
|
|
16
|
+
constructor();
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
disconnectedCallback(): void;
|
|
19
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
20
|
+
private getHeading;
|
|
21
|
+
private getTone;
|
|
22
|
+
private isDismissable;
|
|
23
|
+
private getIconName;
|
|
24
|
+
private getIconColorClasses;
|
|
25
|
+
private getHeadingColorClasses;
|
|
26
|
+
private getHeaderBackgroundClasses;
|
|
27
|
+
private getBorderClasses;
|
|
28
|
+
private getAriaLive;
|
|
29
|
+
render(): void;
|
|
30
|
+
}
|
|
31
|
+
export default MintAlert;
|
|
32
|
+
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/Alert.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,CAAA;AACtB,OAAO,eAAe,CAAA;AACtB,OAAO,oBAAoB,CAAA;AAC3B,OAAO,uBAAuB,CAAA;AAC9B,OAAO,uBAAuB,CAAA;AAC9B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,qBAAqB,CAAA;AAK5B,cAAM,SAAU,SAAQ,WAAW;IACjC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,eAAe,CAA2B;IAClD,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,cAAc,CAAiC;IACvD,OAAO,CAAC,cAAc,CAA2B;IACjD,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,eAAe,CAAoC;;IAO3D,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAM5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAM9F,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,0BAA0B;IAgBlC,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,WAAW;IAKnB,MAAM,IAAI,IAAI;CAmHf;AAOD,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/alert/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,CAAA;AAGhB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare class MintBackButton extends HTMLElement {
|
|
2
|
+
static get observedAttributes(): string[];
|
|
3
|
+
private _button;
|
|
4
|
+
constructor();
|
|
5
|
+
connectedCallback(): void;
|
|
6
|
+
disconnectedCallback(): void;
|
|
7
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
8
|
+
getFallbackHref(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Get the target URL for navigation.
|
|
11
|
+
* Returns the referrer if available and from the same origin, otherwise returns the fallback URL.
|
|
12
|
+
*/
|
|
13
|
+
private _getTargetUrl;
|
|
14
|
+
handleClick(event: Event): void;
|
|
15
|
+
render(): void;
|
|
16
|
+
}
|
|
17
|
+
export default MintBackButton;
|
|
18
|
+
//# sourceMappingURL=BackButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackButton.d.ts","sourceRoot":"","sources":["../../../src/components/back-button/BackButton.ts"],"names":[],"mappings":"AAIA,cAAM,cAAe,SAAQ,WAAW;IACtC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,OAAO,CAA2B;;IAO1C,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAI5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAM9F,eAAe,IAAI,MAAM;IAIzB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAqBrB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAgC/B,MAAM,IAAI,IAAI;CAUf;AAOD,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/back-button/index.ts"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAGrB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
import '../spinner/index';
|
|
2
|
+
import '../icon/index';
|
|
3
|
+
type ButtonVariant = 'solid' | 'ghost' | 'link';
|
|
4
|
+
type ButtonTone = 'neutral' | 'action' | 'info' | 'warning' | 'danger';
|
|
5
|
+
type ButtonType = 'button' | 'submit';
|
|
6
|
+
type IconPosition = 'left' | 'right';
|
|
7
|
+
declare class MintButton extends HTMLElement {
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
private _button;
|
|
10
|
+
private _clickHandler;
|
|
11
|
+
private _isHandlingClick;
|
|
12
|
+
private static _activeShadowStyleInjected;
|
|
13
|
+
constructor();
|
|
14
|
+
private _getGeneratedIcon;
|
|
15
|
+
private _getContentWrapperClass;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
19
|
+
getVariant(): ButtonVariant;
|
|
20
|
+
getTone(): ButtonTone;
|
|
21
|
+
isDisabled(): boolean;
|
|
22
|
+
isLoading(): boolean;
|
|
23
|
+
getType(): ButtonType;
|
|
24
|
+
isFullWidth(): boolean;
|
|
25
|
+
isActive(): boolean;
|
|
26
|
+
get active(): boolean;
|
|
27
|
+
set active(value: boolean);
|
|
28
|
+
getIconPosition(): IconPosition;
|
|
29
|
+
getIcon(): string;
|
|
30
|
+
getAlignment(): 'left' | 'center' | 'right';
|
|
31
|
+
isIconOnly(): boolean;
|
|
32
|
+
getActiveStateClasses(): string[];
|
|
33
|
+
getButtonClasses(): string;
|
|
34
|
+
render(): void;
|
|
35
|
+
setupEventListeners(): void;
|
|
36
|
+
removeEventListeners(): void;
|
|
37
|
+
private _handleMouseDown;
|
|
38
|
+
private _handleMouseUp;
|
|
39
|
+
private _handleMouseLeave;
|
|
40
|
+
private _handleTouchStart;
|
|
41
|
+
private _handleTouchEnd;
|
|
42
|
+
private _handleTouchCancel;
|
|
43
|
+
handleClick(event: Event): void;
|
|
44
|
+
}
|
|
45
|
+
export default MintButton;
|
|
46
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "Button.d.ts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"Button.d.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA"
|
|
10
|
-
}
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAA;AACzB,OAAO,eAAe,CAAA;AAEtB,KAAK,aAAa,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;AAC/C,KAAK,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAA;AACtE,KAAK,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAA;AACrC,KAAK,YAAY,GAAG,MAAM,GAAG,OAAO,CAAA;AAMpC,cAAM,UAAW,SAAQ,WAAW;IAClC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,OAAO,CAAiC;IAChD,OAAO,CAAC,aAAa,CAAwC;IAC7D,OAAO,CAAC,gBAAgB,CAAiB;IACzC,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAiB;;IAO1D,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,uBAAuB;IAQ/B,iBAAiB,IAAI,IAAI;IA0BzB,oBAAoB,IAAI,IAAI;IAI5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAM9F,UAAU,IAAI,aAAa;IAI3B,OAAO,IAAI,UAAU;IAIrB,UAAU,IAAI,OAAO;IAMrB,SAAS,IAAI,OAAO;IAMpB,OAAO,IAAI,UAAU;IAgBrB,WAAW,IAAI,OAAO;IAKtB,QAAQ,IAAI,OAAO;IAMnB,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,EAMxB;IAED,eAAe,IAAI,YAAY;IAI/B,OAAO,IAAI,MAAM;IAIjB,YAAY,IAAI,MAAM,GAAG,QAAQ,GAAG,OAAO;IAQ3C,UAAU,IAAI,OAAO;IAiCrB,qBAAqB,IAAI,MAAM,EAAE;IA6JjC,gBAAgB,IAAI,MAAM;IA2d1B,MAAM,IAAI,IAAI;IAiRd,mBAAmB,IAAI,IAAI;IAmB3B,oBAAoB,IAAI,IAAI;IAgB5B,OAAO,CAAC,gBAAgB,CAIvB;IAED,OAAO,CAAC,cAAc,CAOrB;IAED,OAAO,CAAC,iBAAiB,CAOxB;IAED,OAAO,CAAC,iBAAiB,CAIxB;IAED,OAAO,CAAC,eAAe,CAOtB;IAED,OAAO,CAAC,kBAAkB,CAOzB;IAED,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;CA2DhC;AAOD,eAAe,UAAU,CAAA"}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "index.d.ts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"index.d.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA"
|
|
10
|
-
}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,CAAA;AAGjB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import '../text/index';
|
|
2
|
+
declare class MintCard extends HTMLElement {
|
|
3
|
+
static get observedAttributes(): string[];
|
|
4
|
+
private _headingElement;
|
|
5
|
+
constructor();
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
8
|
+
private getHeading;
|
|
9
|
+
/**
|
|
10
|
+
* Check if the element already has padding classes applied
|
|
11
|
+
* Checks for Tailwind padding utility classes (p-, px-, py-, pt-, pb-, pl-, pr-)
|
|
12
|
+
*/
|
|
13
|
+
private hasPaddingClass;
|
|
14
|
+
render(): void;
|
|
15
|
+
}
|
|
16
|
+
export default MintCard;
|
|
17
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "Card.d.ts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"Card.d.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA"
|
|
10
|
-
}
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/card/Card.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,CAAA;AAEtB,cAAM,QAAS,SAAQ,WAAW;IAChC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,eAAe,CAA2B;;IAOlD,iBAAiB,IAAI,IAAI;IAMzB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAM9F,OAAO,CAAC,UAAU;IAIlB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAQvB,MAAM,IAAI,IAAI;CA0Cf;AAOD,eAAe,QAAQ,CAAA"}
|