monobill-mintui 0.6.611 → 0.6.613
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 +76 -302
- package/bin/component-dependencies.json +131 -0
- package/bin/mint-ui.js +446 -0
- package/dist/alert.css +3 -0
- package/dist/back-button.css +3 -0
- package/dist/bottom-navigation.css +3 -0
- package/dist/button.css +3 -0
- package/dist/card.css +3 -0
- package/dist/chart.css +3 -0
- package/dist/checkbox.css +3 -0
- package/dist/chip.css +3 -0
- package/dist/choice.css +3 -0
- package/dist/clickable.css +3 -0
- package/dist/collapsible.css +3 -0
- package/dist/components/alert/Alert.d.ts +1 -32
- package/dist/components/alert/Alert.d.ts.map +10 -1
- package/dist/components/alert/browser.js +167 -0
- package/dist/components/alert/index.cjs +1 -0
- package/dist/components/alert/index.d.ts +1 -3
- package/dist/components/alert/index.d.ts.map +10 -1
- package/dist/components/alert/index.js +155 -0
- package/dist/components/back-button/BackButton.d.ts +1 -18
- package/dist/components/back-button/BackButton.d.ts.map +10 -1
- package/dist/components/back-button/browser.js +241 -0
- package/dist/components/back-button/index.cjs +1 -0
- package/dist/components/back-button/index.d.ts +1 -3
- package/dist/components/back-button/index.d.ts.map +10 -1
- package/dist/components/back-button/index.js +229 -0
- package/dist/components/bottom-navigation/BottomNavigation.d.ts +1 -10
- package/dist/components/bottom-navigation/BottomNavigation.d.ts.map +10 -1
- package/dist/components/bottom-navigation/browser.js +97 -0
- package/dist/components/bottom-navigation/index.cjs +1 -0
- package/dist/components/bottom-navigation/index.d.ts +2 -5
- package/dist/components/bottom-navigation/index.d.ts.map +10 -1
- package/dist/components/bottom-navigation/index.js +85 -0
- package/dist/components/button/Button.d.ts +1 -57
- package/dist/components/button/Button.d.ts.map +10 -1
- package/dist/components/button/browser.js +18 -0
- package/dist/components/button/index.cjs +1 -0
- package/dist/components/button/index.d.ts +1 -3
- package/dist/components/button/index.d.ts.map +10 -1
- package/dist/components/button/index.js +6 -0
- package/dist/components/card/Card.d.ts +1 -17
- package/dist/components/card/Card.d.ts.map +10 -1
- package/dist/components/card/browser.js +25 -0
- package/dist/components/card/index.cjs +1 -0
- package/dist/components/card/index.d.ts +1 -3
- package/dist/components/card/index.d.ts.map +10 -1
- package/dist/components/card/index.js +13 -0
- package/dist/components/chart/Chart.d.ts +1 -291
- package/dist/components/chart/Chart.d.ts.map +10 -1
- package/dist/components/chart/browser.js +1331 -0
- package/dist/components/chart/index.cjs +37 -0
- package/dist/components/chart/index.d.ts +1 -3
- package/dist/components/chart/index.d.ts.map +10 -1
- package/dist/components/chart/index.js +1319 -0
- package/dist/components/checkbox/Checkbox.d.ts +1 -41
- package/dist/components/checkbox/Checkbox.d.ts.map +10 -1
- package/dist/components/checkbox/browser.js +162 -0
- package/dist/components/checkbox/index.cjs +1 -0
- package/dist/components/checkbox/index.d.ts +1 -3
- package/dist/components/checkbox/index.d.ts.map +10 -1
- package/dist/components/checkbox/index.js +150 -0
- package/dist/components/chip/Chip.d.ts +1 -16
- package/dist/components/chip/Chip.d.ts.map +10 -1
- package/dist/components/chip/browser.js +17 -0
- package/dist/components/chip/index.cjs +1 -0
- package/dist/components/chip/index.d.ts +1 -3
- package/dist/components/chip/index.d.ts.map +10 -1
- package/dist/components/chip/index.js +5 -0
- package/dist/components/choice/Choice.d.ts +1 -27
- package/dist/components/choice/Choice.d.ts.map +10 -1
- package/dist/components/choice/browser.js +272 -0
- package/dist/components/choice/index.cjs +1 -0
- package/dist/components/choice/index.d.ts +1 -5
- package/dist/components/choice/index.d.ts.map +10 -1
- package/dist/components/choice/index.js +260 -0
- package/dist/components/chunks/button-B0Yt0MX1.js +380 -0
- package/dist/components/chunks/button-BlbLHMts.js +1 -0
- package/dist/components/chunks/caret-down-BN9cl4o4.js +1 -0
- package/dist/components/chunks/caret-down-Ch6IfR7r.js +9 -0
- package/dist/components/chunks/caret-right-CDUwqoen.js +1 -0
- package/dist/components/chunks/caret-right-CVOgr4nk.js +9 -0
- package/dist/components/chunks/caret-up-3XCuTXSE.js +1 -0
- package/dist/components/chunks/caret-up-D_6oa7o1.js +9 -0
- package/dist/components/chunks/chip-B04bJM4r.js +1 -0
- package/dist/components/chunks/chip-B9whjEvW.js +54 -0
- package/dist/components/chunks/close-5tYlQdkk.js +1 -0
- package/dist/components/chunks/close-Dg6U0IjZ.js +10 -0
- package/dist/components/chunks/icon-C0OLmjDY.js +1 -0
- package/dist/components/chunks/icon-CyzR9aVl.js +1 -0
- package/dist/components/chunks/icon-dG8sLTBn.js +27 -0
- package/dist/components/chunks/icon-gQAtsERy.js +1324 -0
- package/dist/components/chunks/input-8bbXzpa5.js +334 -0
- package/dist/components/chunks/input-BoiREc6Y.js +1 -0
- package/dist/components/chunks/link-BxhPnVaz.js +1 -0
- package/dist/components/chunks/link-DKgtBYK6.js +38 -0
- package/dist/components/chunks/modal-B8gNdwEl.js +153 -0
- package/dist/components/chunks/modal-WYWvk2lZ.js +1 -0
- package/dist/components/chunks/popover-BeaGf_JC.js +1 -0
- package/dist/components/chunks/popover-gviDCspV.js +188 -0
- package/dist/components/chunks/register-element-BFYmIynH.js +53 -0
- package/dist/components/chunks/register-element-tCL_F1YI.js +1 -0
- package/dist/components/chunks/search-ANUKQi0r.js +9 -0
- package/dist/components/chunks/search-B3egXuw4.js +1 -0
- package/dist/components/chunks/spinner-BsaFHuS6.js +108 -0
- package/dist/components/chunks/spinner-DbTohC6i.js +63 -0
- package/dist/components/chunks/stack-D1uh4L79.js +1 -0
- package/dist/components/chunks/stack-DyQfjPDh.js +53 -0
- package/dist/components/chunks/table-BgboosRK.js +65 -0
- package/dist/components/chunks/table-DDUNUwGd.js +1 -0
- package/dist/components/chunks/text-BHkEs8U5.js +67 -0
- package/dist/components/chunks/text-BmHZbBMo.js +1 -0
- package/dist/components/clickable/Clickable.d.ts +1 -14
- package/dist/components/clickable/Clickable.d.ts.map +10 -1
- package/dist/components/clickable/browser.js +78 -0
- package/dist/components/clickable/index.cjs +1 -0
- package/dist/components/clickable/index.d.ts +1 -3
- package/dist/components/clickable/index.d.ts.map +10 -1
- package/dist/components/clickable/index.js +66 -0
- package/dist/components/collapsible/Collapsible.d.ts +1 -28
- package/dist/components/collapsible/Collapsible.d.ts.map +10 -1
- package/dist/components/collapsible/browser.js +170 -0
- package/dist/components/collapsible/index.cjs +1 -0
- package/dist/components/collapsible/index.d.ts +1 -3
- package/dist/components/collapsible/index.d.ts.map +10 -1
- package/dist/components/collapsible/index.js +158 -0
- package/dist/components/confirm-action/ConfirmAction.d.ts +1 -27
- package/dist/components/confirm-action/ConfirmAction.d.ts.map +10 -1
- package/dist/components/confirm-action/browser.js +130 -0
- package/dist/components/confirm-action/index.cjs +1 -0
- package/dist/components/confirm-action/index.d.ts +2 -3
- package/dist/components/confirm-action/index.d.ts.map +10 -1
- package/dist/components/confirm-action/index.js +118 -0
- package/dist/components/date-picker/DatePicker.d.ts +1 -130
- package/dist/components/date-picker/DatePicker.d.ts.map +10 -1
- package/dist/components/date-picker/browser.js +1288 -0
- package/dist/components/date-picker/index.cjs +1 -0
- package/dist/components/date-picker/index.d.ts +1 -3
- package/dist/components/date-picker/index.d.ts.map +10 -1
- package/dist/components/date-picker/index.js +1276 -0
- package/dist/components/dropzone/Dropzone.d.ts +1 -59
- package/dist/components/dropzone/Dropzone.d.ts.map +10 -1
- package/dist/components/dropzone/browser.js +355 -0
- package/dist/components/dropzone/index.cjs +1 -0
- package/dist/components/dropzone/index.d.ts +1 -3
- package/dist/components/dropzone/index.d.ts.map +10 -1
- package/dist/components/dropzone/index.js +343 -0
- package/dist/components/form/Form.d.ts +1 -133
- package/dist/components/form/Form.d.ts.map +10 -1
- package/dist/components/form/browser.js +1002 -0
- package/dist/components/form/index.cjs +1 -0
- package/dist/components/form/index.d.ts +1 -3
- package/dist/components/form/index.d.ts.map +10 -1
- package/dist/components/form/index.js +990 -0
- package/dist/components/grid/Grid.d.ts +1 -16
- package/dist/components/grid/Grid.d.ts.map +10 -1
- package/dist/components/grid/browser.js +24 -0
- package/dist/components/grid/index.cjs +1 -0
- package/dist/components/grid/index.d.ts +1 -3
- package/dist/components/grid/index.d.ts.map +10 -1
- package/dist/components/grid/index.js +12 -0
- package/dist/components/icon/Icon.d.ts +1 -16
- package/dist/components/icon/Icon.d.ts.map +10 -1
- package/dist/components/icon/browser.js +16 -0
- package/dist/components/icon/index.cjs +1 -0
- package/dist/components/icon/index.d.ts +2 -3
- package/dist/components/icon/index.d.ts.map +10 -1
- package/dist/components/icon/index.js +4 -0
- package/dist/components/input/Input.d.ts +1 -68
- package/dist/components/input/Input.d.ts.map +10 -1
- package/dist/components/input/browser.js +17 -0
- package/dist/components/input/index.cjs +1 -0
- package/dist/components/input/index.d.ts +1 -3
- package/dist/components/input/index.d.ts.map +10 -1
- package/dist/components/input/index.js +5 -0
- package/dist/components/link/Link.d.ts +1 -16
- package/dist/components/link/Link.d.ts.map +10 -1
- package/dist/components/link/browser.js +16 -0
- package/dist/components/link/index.cjs +1 -0
- package/dist/components/link/index.d.ts +1 -3
- package/dist/components/link/index.d.ts.map +10 -1
- package/dist/components/link/index.js +4 -0
- package/dist/components/modal/Modal.d.ts +1 -38
- package/dist/components/modal/Modal.d.ts.map +10 -1
- package/dist/components/modal/browser.js +21 -0
- package/dist/components/modal/index.cjs +1 -0
- package/dist/components/modal/index.d.ts +1 -3
- package/dist/components/modal/index.d.ts.map +10 -1
- package/dist/components/modal/index.js +9 -0
- package/dist/components/navigation/Navigation.d.ts +1 -0
- package/dist/components/navigation/Navigation.d.ts.map +10 -0
- package/dist/components/navigation/browser.js +198 -0
- package/dist/components/navigation/index.cjs +1 -0
- package/dist/components/navigation/index.d.ts +1 -0
- package/dist/components/navigation/index.d.ts.map +10 -0
- package/dist/components/navigation/index.js +186 -0
- package/dist/components/off-canvas/OffCanvas.d.ts +1 -46
- package/dist/components/off-canvas/OffCanvas.d.ts.map +10 -1
- package/dist/components/off-canvas/browser.js +192 -0
- package/dist/components/off-canvas/index.cjs +1 -0
- package/dist/components/off-canvas/index.d.ts +1 -3
- package/dist/components/off-canvas/index.d.ts.map +10 -1
- package/dist/components/off-canvas/index.js +180 -0
- package/dist/components/page/Page.d.ts +1 -37
- package/dist/components/page/Page.d.ts.map +10 -1
- package/dist/components/page/browser.js +74 -0
- package/dist/components/page/index.cjs +16 -0
- package/dist/components/page/index.d.ts +1 -3
- package/dist/components/page/index.d.ts.map +10 -1
- package/dist/components/page/index.js +62 -0
- package/dist/components/popover/Popover.d.ts +1 -62
- package/dist/components/popover/Popover.d.ts.map +10 -1
- package/dist/components/popover/browser.js +17 -0
- package/dist/components/popover/index.cjs +1 -0
- package/dist/components/popover/index.d.ts +1 -3
- package/dist/components/popover/index.d.ts.map +10 -1
- package/dist/components/popover/index.js +5 -0
- package/dist/components/resource-table/ResourceTable.d.ts +1 -327
- package/dist/components/resource-table/ResourceTable.d.ts.map +10 -1
- package/dist/components/resource-table/browser.js +1457 -0
- package/dist/components/resource-table/index.cjs +2 -0
- package/dist/components/resource-table/index.d.ts +1 -4
- package/dist/components/resource-table/index.d.ts.map +10 -1
- package/dist/components/resource-table/index.js +1445 -0
- package/dist/components/search/Search.d.ts +1 -151
- package/dist/components/search/Search.d.ts.map +10 -1
- package/dist/components/search/browser.js +681 -0
- package/dist/components/search/index.cjs +1 -0
- package/dist/components/search/index.d.ts +1 -3
- package/dist/components/search/index.d.ts.map +10 -1
- package/dist/components/search/index.js +669 -0
- package/dist/components/select/Select.d.ts +1 -37
- package/dist/components/select/Select.d.ts.map +10 -1
- package/dist/components/select/browser.js +285 -0
- package/dist/components/select/index.cjs +1 -0
- package/dist/components/select/index.d.ts +1 -3
- package/dist/components/select/index.d.ts.map +10 -1
- package/dist/components/select/index.js +273 -0
- package/dist/components/side-navigation/SideNavigation.d.ts +1 -52
- package/dist/components/side-navigation/SideNavigation.d.ts.map +10 -1
- package/dist/components/side-navigation/browser.js +466 -0
- package/dist/components/side-navigation/index.cjs +1 -0
- package/dist/components/side-navigation/index.d.ts +5 -8
- package/dist/components/side-navigation/index.d.ts.map +10 -1
- package/dist/components/side-navigation/index.js +454 -0
- package/dist/components/sortable/Sortable.d.ts +1 -62
- package/dist/components/sortable/Sortable.d.ts.map +10 -1
- package/dist/components/sortable/browser.js +340 -0
- package/dist/components/sortable/index.cjs +1 -0
- package/dist/components/sortable/index.d.ts +1 -3
- package/dist/components/sortable/index.d.ts.map +10 -1
- package/dist/components/sortable/index.js +328 -0
- package/dist/components/spinner/Spinner.d.ts +1 -13
- package/dist/components/spinner/Spinner.d.ts.map +10 -1
- package/dist/components/spinner/browser.js +16 -0
- package/dist/components/spinner/index.cjs +1 -0
- package/dist/components/spinner/index.d.ts +1 -3
- package/dist/components/spinner/index.d.ts.map +10 -1
- package/dist/components/spinner/index.js +4 -0
- package/dist/components/stack/Stack.d.ts +1 -23
- package/dist/components/stack/Stack.d.ts.map +10 -1
- package/dist/components/stack/browser.js +16 -0
- package/dist/components/stack/index.cjs +1 -0
- package/dist/components/stack/index.d.ts +1 -3
- package/dist/components/stack/index.d.ts.map +10 -1
- package/dist/components/stack/index.js +4 -0
- package/dist/components/switch/Switch.d.ts +1 -33
- package/dist/components/switch/Switch.d.ts.map +10 -1
- package/dist/components/switch/browser.js +203 -0
- package/dist/components/switch/index.cjs +1 -0
- package/dist/components/switch/index.d.ts +1 -3
- package/dist/components/switch/index.d.ts.map +10 -1
- package/dist/components/switch/index.js +191 -0
- package/dist/components/table/Table.d.ts +1 -11
- package/dist/components/table/Table.d.ts.map +10 -1
- package/dist/components/table/browser.js +16 -0
- package/dist/components/table/index.cjs +1 -0
- package/dist/components/table/index.d.ts +1 -3
- package/dist/components/table/index.d.ts.map +10 -1
- package/dist/components/table/index.js +4 -0
- package/dist/components/tabs/Tabs.d.ts +1 -20
- package/dist/components/tabs/Tabs.d.ts.map +10 -1
- package/dist/components/tabs/browser.js +251 -0
- package/dist/components/tabs/index.cjs +1 -0
- package/dist/components/tabs/index.d.ts +4 -9
- package/dist/components/tabs/index.d.ts.map +10 -1
- package/dist/components/tabs/index.js +239 -0
- package/dist/components/tags/Tags.d.ts +1 -82
- package/dist/components/tags/Tags.d.ts.map +10 -1
- package/dist/components/tags/browser.js +416 -0
- package/dist/components/tags/index.cjs +1 -0
- package/dist/components/tags/index.d.ts +1 -3
- package/dist/components/tags/index.d.ts.map +10 -1
- package/dist/components/tags/index.js +404 -0
- package/dist/components/text/Text.d.ts +1 -25
- package/dist/components/text/Text.d.ts.map +10 -1
- package/dist/components/text/browser.js +16 -0
- package/dist/components/text/index.cjs +1 -0
- package/dist/components/text/index.d.ts +1 -3
- package/dist/components/text/index.d.ts.map +10 -1
- package/dist/components/text/index.js +4 -0
- package/dist/components/time-picker/TimePicker.d.ts +1 -61
- package/dist/components/time-picker/TimePicker.d.ts.map +10 -1
- package/dist/components/time-picker/browser.js +366 -0
- package/dist/components/time-picker/index.cjs +1 -0
- package/dist/components/time-picker/index.d.ts +1 -3
- package/dist/components/time-picker/index.d.ts.map +10 -1
- package/dist/components/time-picker/index.js +354 -0
- package/dist/components/toast/Toast.d.ts +1 -21
- package/dist/components/toast/Toast.d.ts.map +10 -1
- package/dist/components/toast/browser.js +147 -0
- package/dist/components/toast/index.cjs +3 -0
- package/dist/components/toast/index.d.ts +3 -3
- package/dist/components/toast/index.d.ts.map +10 -1
- package/dist/components/toast/index.js +135 -0
- package/dist/confirm-action.css +3 -0
- package/dist/date-picker.css +3 -0
- package/dist/dropzone.css +3 -0
- package/dist/form.css +3 -0
- package/dist/grid.css +3 -0
- package/dist/icon.css +3 -0
- package/dist/icons/ai.svg +5 -6
- package/dist/icons/bank.svg +1 -1
- package/dist/icons/barcode.svg +1 -1
- package/dist/icons/basket.svg +1 -1
- package/dist/icons/building.svg +1 -1
- package/dist/icons/buildings.svg +1 -1
- package/dist/icons/calendar.svg +1 -1
- package/dist/icons/cash.svg +3 -0
- package/dist/icons/check.svg +1 -1
- package/dist/icons/close.svg +1 -1
- package/dist/icons/coupon.svg +3 -0
- package/dist/icons/delivery-location.svg +3 -0
- package/dist/icons/desktop.svg +3 -0
- package/dist/icons/dollar-sign.svg +1 -1
- package/dist/icons/edit.svg +1 -1
- package/dist/icons/gift.svg +3 -0
- package/dist/icons/grip-lines.svg +2 -2
- package/dist/icons/heart.svg +3 -0
- package/dist/icons/installments.svg +3 -0
- package/dist/icons/inventory.svg +3 -0
- package/dist/icons/invoice.svg +3 -0
- package/dist/icons/loyalty-points.svg +3 -0
- package/dist/icons/membership.svg +3 -0
- package/dist/icons/mobile.svg +3 -0
- package/dist/icons/order-tracking.svg +7 -0
- package/dist/icons/out-of-stock.svg +3 -0
- package/dist/icons/package.svg +3 -0
- package/dist/icons/percent-discount.svg +3 -0
- package/dist/icons/pickup.svg +3 -0
- package/dist/icons/plus.svg +1 -1
- package/dist/icons/price-label.svg +3 -0
- package/dist/icons/product-review.svg +3 -0
- package/dist/icons/receipt.svg +3 -0
- package/dist/icons/refund.svg +3 -0
- package/dist/icons/remove.svg +1 -1
- package/dist/icons/return.svg +3 -0
- package/dist/icons/sale-burst.svg +3 -0
- package/dist/icons/secure-checkout.svg +3 -0
- package/dist/icons/shopping-bag.svg +3 -0
- package/dist/icons/shopping-cart.svg +3 -0
- package/dist/icons/storefront.svg +3 -0
- package/dist/icons/support.svg +3 -0
- package/dist/icons/tablet.svg +3 -0
- package/dist/icons/wallet.svg +3 -0
- package/dist/icons/warehouse.svg +3 -0
- package/dist/index.cjs +83 -79
- package/dist/index.css +253 -0
- package/dist/index.d.ts +94 -91
- package/dist/index.d.ts.map +10 -1
- package/dist/index.js +10700 -10236
- package/dist/input.css +3 -0
- package/dist/link.css +3 -0
- package/dist/mintui-elements.d.ts +156 -0
- package/dist/mintui-elements.d.ts.map +10 -0
- package/dist/modal.css +3 -0
- package/dist/navigation.css +3 -0
- package/dist/off-canvas.css +3 -0
- package/dist/page.css +3 -0
- package/dist/popover.css +3 -0
- package/dist/resource-table.css +3 -0
- package/dist/search.css +3 -0
- package/dist/select.css +3 -0
- package/dist/side-navigation.css +3 -0
- package/dist/sortable.css +3 -0
- package/dist/spinner.css +3 -0
- package/dist/stack.css +3 -0
- package/dist/switch.css +3 -0
- package/dist/table.css +3 -0
- package/dist/tabs.css +3 -0
- package/dist/tags.css +3 -0
- package/dist/text.css +3 -0
- package/dist/theme.css +101 -0
- package/dist/time-picker.css +3 -0
- package/dist/toast.css +3 -0
- package/package.json +379 -30
- package/dist/components/bottom-navigation/BottomNavItem.d.ts +0 -14
- package/dist/components/bottom-navigation/BottomNavItem.d.ts.map +0 -1
- package/dist/components/choice/ChoiceOption.d.ts +0 -30
- package/dist/components/choice/ChoiceOption.d.ts.map +0 -1
- package/dist/components/confirm-action/ConfirmActionApi.d.ts +0 -17
- package/dist/components/confirm-action/ConfirmActionApi.d.ts.map +0 -1
- package/dist/components/icon/build-icons.d.ts +0 -2
- package/dist/components/icon/build-icons.d.ts.map +0 -1
- package/dist/components/icon/icons/ai.d.ts +0 -3
- package/dist/components/icon/icons/ai.d.ts.map +0 -1
- package/dist/components/icon/icons/archive.d.ts +0 -3
- package/dist/components/icon/icons/archive.d.ts.map +0 -1
- package/dist/components/icon/icons/arrow-down.d.ts +0 -3
- package/dist/components/icon/icons/arrow-down.d.ts.map +0 -1
- package/dist/components/icon/icons/arrow-left.d.ts +0 -3
- package/dist/components/icon/icons/arrow-left.d.ts.map +0 -1
- package/dist/components/icon/icons/arrow-right.d.ts +0 -3
- package/dist/components/icon/icons/arrow-right.d.ts.map +0 -1
- package/dist/components/icon/icons/arrow-up.d.ts +0 -3
- package/dist/components/icon/icons/arrow-up.d.ts.map +0 -1
- package/dist/components/icon/icons/attach.d.ts +0 -3
- package/dist/components/icon/icons/attach.d.ts.map +0 -1
- package/dist/components/icon/icons/bank.d.ts +0 -3
- package/dist/components/icon/icons/bank.d.ts.map +0 -1
- package/dist/components/icon/icons/barcode.d.ts +0 -3
- package/dist/components/icon/icons/barcode.d.ts.map +0 -1
- package/dist/components/icon/icons/basket.d.ts +0 -3
- package/dist/components/icon/icons/basket.d.ts.map +0 -1
- package/dist/components/icon/icons/bookmark.d.ts +0 -3
- package/dist/components/icon/icons/bookmark.d.ts.map +0 -1
- package/dist/components/icon/icons/building.d.ts +0 -3
- package/dist/components/icon/icons/building.d.ts.map +0 -1
- package/dist/components/icon/icons/buildings.d.ts +0 -3
- package/dist/components/icon/icons/buildings.d.ts.map +0 -1
- package/dist/components/icon/icons/bullhorn.d.ts +0 -3
- package/dist/components/icon/icons/bullhorn.d.ts.map +0 -1
- package/dist/components/icon/icons/calendar-day.d.ts +0 -3
- package/dist/components/icon/icons/calendar-day.d.ts.map +0 -1
- package/dist/components/icon/icons/calendar-empty.d.ts +0 -3
- package/dist/components/icon/icons/calendar-empty.d.ts.map +0 -1
- package/dist/components/icon/icons/calendar-week.d.ts +0 -3
- package/dist/components/icon/icons/calendar-week.d.ts.map +0 -1
- package/dist/components/icon/icons/calendar.d.ts +0 -3
- package/dist/components/icon/icons/calendar.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-down.d.ts +0 -3
- package/dist/components/icon/icons/caret-down.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-left.d.ts +0 -3
- package/dist/components/icon/icons/caret-left.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-right.d.ts +0 -3
- package/dist/components/icon/icons/caret-right.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-up.d.ts +0 -3
- package/dist/components/icon/icons/caret-up.d.ts.map +0 -1
- package/dist/components/icon/icons/chart-bar.d.ts +0 -3
- package/dist/components/icon/icons/chart-bar.d.ts.map +0 -1
- package/dist/components/icon/icons/chart-line.d.ts +0 -3
- package/dist/components/icon/icons/chart-line.d.ts.map +0 -1
- package/dist/components/icon/icons/chat.d.ts +0 -3
- package/dist/components/icon/icons/chat.d.ts.map +0 -1
- package/dist/components/icon/icons/check.d.ts +0 -3
- package/dist/components/icon/icons/check.d.ts.map +0 -1
- package/dist/components/icon/icons/clock.d.ts +0 -3
- package/dist/components/icon/icons/clock.d.ts.map +0 -1
- package/dist/components/icon/icons/close.d.ts +0 -3
- package/dist/components/icon/icons/close.d.ts.map +0 -1
- package/dist/components/icon/icons/copy.d.ts +0 -3
- package/dist/components/icon/icons/copy.d.ts.map +0 -1
- package/dist/components/icon/icons/credit-card.d.ts +0 -3
- package/dist/components/icon/icons/credit-card.d.ts.map +0 -1
- package/dist/components/icon/icons/delete.d.ts +0 -3
- package/dist/components/icon/icons/delete.d.ts.map +0 -1
- package/dist/components/icon/icons/desktop-screen.d.ts +0 -3
- package/dist/components/icon/icons/desktop-screen.d.ts.map +0 -1
- package/dist/components/icon/icons/documentation.d.ts +0 -3
- package/dist/components/icon/icons/documentation.d.ts.map +0 -1
- package/dist/components/icon/icons/dollar-sign.d.ts +0 -3
- package/dist/components/icon/icons/dollar-sign.d.ts.map +0 -1
- package/dist/components/icon/icons/download.d.ts +0 -3
- package/dist/components/icon/icons/download.d.ts.map +0 -1
- package/dist/components/icon/icons/duplicate.d.ts +0 -3
- package/dist/components/icon/icons/duplicate.d.ts.map +0 -1
- package/dist/components/icon/icons/edit.d.ts +0 -3
- package/dist/components/icon/icons/edit.d.ts.map +0 -1
- package/dist/components/icon/icons/ellipsis.d.ts +0 -3
- package/dist/components/icon/icons/ellipsis.d.ts.map +0 -1
- package/dist/components/icon/icons/error.d.ts +0 -3
- package/dist/components/icon/icons/error.d.ts.map +0 -1
- package/dist/components/icon/icons/external-link.d.ts +0 -3
- package/dist/components/icon/icons/external-link.d.ts.map +0 -1
- package/dist/components/icon/icons/eye.d.ts +0 -3
- package/dist/components/icon/icons/eye.d.ts.map +0 -1
- package/dist/components/icon/icons/file.d.ts +0 -3
- package/dist/components/icon/icons/file.d.ts.map +0 -1
- package/dist/components/icon/icons/filter.d.ts +0 -3
- package/dist/components/icon/icons/filter.d.ts.map +0 -1
- package/dist/components/icon/icons/folder.d.ts +0 -3
- package/dist/components/icon/icons/folder.d.ts.map +0 -1
- package/dist/components/icon/icons/gavel.d.ts +0 -3
- package/dist/components/icon/icons/gavel.d.ts.map +0 -1
- package/dist/components/icon/icons/globe.d.ts +0 -3
- package/dist/components/icon/icons/globe.d.ts.map +0 -1
- package/dist/components/icon/icons/grid.d.ts +0 -3
- package/dist/components/icon/icons/grid.d.ts.map +0 -1
- package/dist/components/icon/icons/grip-lines.d.ts +0 -3
- package/dist/components/icon/icons/grip-lines.d.ts.map +0 -1
- package/dist/components/icon/icons/help.d.ts +0 -3
- package/dist/components/icon/icons/help.d.ts.map +0 -1
- package/dist/components/icon/icons/home.d.ts +0 -3
- package/dist/components/icon/icons/home.d.ts.map +0 -1
- package/dist/components/icon/icons/image.d.ts +0 -3
- package/dist/components/icon/icons/image.d.ts.map +0 -1
- package/dist/components/icon/icons/index.cjs +0 -34
- package/dist/components/icon/icons/index.d.ts +0 -92
- package/dist/components/icon/icons/index.d.ts.map +0 -1
- package/dist/components/icon/icons/index.js +0 -752
- package/dist/components/icon/icons/info.d.ts +0 -3
- package/dist/components/icon/icons/info.d.ts.map +0 -1
- package/dist/components/icon/icons/language.d.ts +0 -3
- package/dist/components/icon/icons/language.d.ts.map +0 -1
- package/dist/components/icon/icons/line-chart.d.ts +0 -3
- package/dist/components/icon/icons/line-chart.d.ts.map +0 -1
- package/dist/components/icon/icons/link.d.ts +0 -3
- package/dist/components/icon/icons/link.d.ts.map +0 -1
- package/dist/components/icon/icons/list.d.ts +0 -3
- package/dist/components/icon/icons/list.d.ts.map +0 -1
- package/dist/components/icon/icons/location.d.ts +0 -3
- package/dist/components/icon/icons/location.d.ts.map +0 -1
- package/dist/components/icon/icons/lock.d.ts +0 -3
- package/dist/components/icon/icons/lock.d.ts.map +0 -1
- package/dist/components/icon/icons/login.d.ts +0 -3
- package/dist/components/icon/icons/login.d.ts.map +0 -1
- package/dist/components/icon/icons/logout.d.ts +0 -3
- package/dist/components/icon/icons/logout.d.ts.map +0 -1
- package/dist/components/icon/icons/mail.d.ts +0 -3
- package/dist/components/icon/icons/mail.d.ts.map +0 -1
- package/dist/components/icon/icons/map.d.ts +0 -3
- package/dist/components/icon/icons/map.d.ts.map +0 -1
- package/dist/components/icon/icons/menu.d.ts +0 -3
- package/dist/components/icon/icons/menu.d.ts.map +0 -1
- package/dist/components/icon/icons/moon.d.ts +0 -3
- package/dist/components/icon/icons/moon.d.ts.map +0 -1
- package/dist/components/icon/icons/notifications.d.ts +0 -3
- package/dist/components/icon/icons/notifications.d.ts.map +0 -1
- package/dist/components/icon/icons/paste.d.ts +0 -3
- package/dist/components/icon/icons/paste.d.ts.map +0 -1
- package/dist/components/icon/icons/pin.d.ts +0 -3
- package/dist/components/icon/icons/pin.d.ts.map +0 -1
- package/dist/components/icon/icons/plus.d.ts +0 -3
- package/dist/components/icon/icons/plus.d.ts.map +0 -1
- package/dist/components/icon/icons/print.d.ts +0 -3
- package/dist/components/icon/icons/print.d.ts.map +0 -1
- package/dist/components/icon/icons/refresh.d.ts +0 -3
- package/dist/components/icon/icons/refresh.d.ts.map +0 -1
- package/dist/components/icon/icons/remove.d.ts +0 -3
- package/dist/components/icon/icons/remove.d.ts.map +0 -1
- package/dist/components/icon/icons/save.d.ts +0 -3
- package/dist/components/icon/icons/save.d.ts.map +0 -1
- package/dist/components/icon/icons/search.d.ts +0 -3
- package/dist/components/icon/icons/search.d.ts.map +0 -1
- package/dist/components/icon/icons/settings.d.ts +0 -3
- package/dist/components/icon/icons/settings.d.ts.map +0 -1
- package/dist/components/icon/icons/share.d.ts +0 -3
- package/dist/components/icon/icons/share.d.ts.map +0 -1
- package/dist/components/icon/icons/sort-arrows.d.ts +0 -3
- package/dist/components/icon/icons/sort-arrows.d.ts.map +0 -1
- package/dist/components/icon/icons/sort.d.ts +0 -3
- package/dist/components/icon/icons/sort.d.ts.map +0 -1
- package/dist/components/icon/icons/star.d.ts +0 -3
- package/dist/components/icon/icons/star.d.ts.map +0 -1
- package/dist/components/icon/icons/success.d.ts +0 -3
- package/dist/components/icon/icons/success.d.ts.map +0 -1
- package/dist/components/icon/icons/sun.d.ts +0 -3
- package/dist/components/icon/icons/sun.d.ts.map +0 -1
- package/dist/components/icon/icons/table.d.ts +0 -3
- package/dist/components/icon/icons/table.d.ts.map +0 -1
- package/dist/components/icon/icons/tag.d.ts +0 -3
- package/dist/components/icon/icons/tag.d.ts.map +0 -1
- package/dist/components/icon/icons/trash.d.ts +0 -3
- package/dist/components/icon/icons/trash.d.ts.map +0 -1
- package/dist/components/icon/icons/truck.d.ts +0 -3
- package/dist/components/icon/icons/truck.d.ts.map +0 -1
- package/dist/components/icon/icons/unlock.d.ts +0 -3
- package/dist/components/icon/icons/unlock.d.ts.map +0 -1
- package/dist/components/icon/icons/upload.d.ts +0 -3
- package/dist/components/icon/icons/upload.d.ts.map +0 -1
- package/dist/components/icon/icons/user-add.d.ts +0 -3
- package/dist/components/icon/icons/user-add.d.ts.map +0 -1
- package/dist/components/icon/icons/user.d.ts +0 -3
- package/dist/components/icon/icons/user.d.ts.map +0 -1
- package/dist/components/icon/icons/users.d.ts +0 -3
- package/dist/components/icon/icons/users.d.ts.map +0 -1
- package/dist/components/icon/icons/video.d.ts +0 -3
- package/dist/components/icon/icons/video.d.ts.map +0 -1
- package/dist/components/icon/icons/warning.d.ts +0 -3
- package/dist/components/icon/icons/warning.d.ts.map +0 -1
- package/dist/components/icon/registry.d.ts +0 -15
- package/dist/components/icon/registry.d.ts.map +0 -1
- package/dist/components/resource-table/ResourceTableContextMenu.d.ts +0 -40
- package/dist/components/resource-table/ResourceTableContextMenu.d.ts.map +0 -1
- package/dist/components/side-navigation/SideNavigationActionHeader.d.ts +0 -2
- package/dist/components/side-navigation/SideNavigationActionHeader.d.ts.map +0 -1
- package/dist/components/side-navigation/SideNavigationActionLinks.d.ts +0 -9
- package/dist/components/side-navigation/SideNavigationActionLinks.d.ts.map +0 -1
- package/dist/components/side-navigation/SideNavigationActionMenu.d.ts +0 -26
- package/dist/components/side-navigation/SideNavigationActionMenu.d.ts.map +0 -1
- package/dist/components/side-navigation/SideNavigationLink.d.ts +0 -38
- package/dist/components/side-navigation/SideNavigationLink.d.ts.map +0 -1
- package/dist/components/side-navigation/SideNavigationLinks.d.ts +0 -38
- package/dist/components/side-navigation/SideNavigationLinks.d.ts.map +0 -1
- package/dist/components/tabs/Tab.d.ts +0 -19
- package/dist/components/tabs/Tab.d.ts.map +0 -1
- package/dist/components/tabs/TabContent.d.ts +0 -13
- package/dist/components/tabs/TabContent.d.ts.map +0 -1
- package/dist/components/tabs/TabList.d.ts +0 -12
- package/dist/components/tabs/TabList.d.ts.map +0 -1
- package/dist/components/toast/ToastApi.d.ts +0 -21
- package/dist/components/toast/ToastApi.d.ts.map +0 -1
- package/dist/components/top-navigation/TopNavigation.d.ts +0 -65
- package/dist/components/top-navigation/TopNavigation.d.ts.map +0 -1
- package/dist/components/top-navigation/index.d.ts +0 -4
- package/dist/components/top-navigation/index.d.ts.map +0 -1
- package/dist/icons/truck.svg +0 -13
- package/dist/search-CM-OgatF.js +0 -179
- package/dist/search-C_vLUsm7.cjs +0 -1
- package/dist/styles.css +0 -3
- package/tailwind.preset.cjs +0 -75
- package/tailwind.preset.js +0 -97
package/README.md
CHANGED
|
@@ -1,349 +1,123 @@
|
|
|
1
1
|
# MintUI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MintUI is a considered collection of native HTML custom elements. Import the components you need and use them in plain HTML, Vue, React, Angular, or another framework that supports custom elements.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Component styles use Tailwind CSS utilities while developing. `npm run build` compiles the styles for all 38 components into separate CSS files and creates an aggregate stylesheet. Importing a component's JavaScript entry registers its JavaScript dependencies and automatically loads the separate CSS files for that component and its dependencies. Consuming projects do not need Tailwind or a framework.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Install
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npm install monobill-mintui
|
|
9
|
+
```sh
|
|
10
|
+
npm install mint-ui
|
|
13
11
|
```
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
**After installing, you MUST configure Tailwind CSS to scan the mintui package files.** Without this, Tailwind classes won't work!
|
|
13
|
+
### Install components with the CLI
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
The `mint-ui` command installs one component at a time, detects the current project, and wires the component into its entry point. In an interactive terminal, use the arrow keys to confirm or change the detected setup. Choose **Other (manual import)** when you want to manage imports yourself.
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
The CLI supports Vue, Angular, React, Svelte, and plain HTML projects. It detects the project type and lets you confirm or change the detected setup with the arrow keys. It then configures the project so you can use the element directly. For plain HTML it adds the required styles and module script to `index.html`.
|
|
22
18
|
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
}
|
|
19
|
+
```sh
|
|
20
|
+
npx mint-ui install button
|
|
21
|
+
npx mint-ui update
|
|
22
|
+
npx mint-ui list
|
|
34
23
|
```
|
|
35
24
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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.
|
|
25
|
+
- `npx mint-ui install button` installs and configures only the Button component. Repeat with another component name to add it to the project.
|
|
26
|
+
- `npx mint-ui update` updates MintUI and reconfigures the components recorded in `mintui.json`.
|
|
27
|
+
- `npx mint-ui list` prints the available component names.
|
|
60
28
|
|
|
61
|
-
|
|
29
|
+
If MintUI is already installed in the project, run `mint-ui install button` and `mint-ui update` directly (or use the equivalent package-manager exec command).
|
|
62
30
|
|
|
63
|
-
|
|
31
|
+
After installation, use the custom element directly:
|
|
64
32
|
|
|
65
|
-
**Default (CDN):**
|
|
66
33
|
```html
|
|
67
|
-
|
|
68
|
-
<mint-icon name="caret-up"></mint-icon>
|
|
34
|
+
<mint-button>Test</mint-button>
|
|
69
35
|
```
|
|
70
36
|
|
|
71
|
-
|
|
72
|
-
```html
|
|
73
|
-
<meta name="mint-icon-base-url" content="local">
|
|
74
|
-
```
|
|
75
|
-
|
|
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">
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**Explicitly Use CDN:**
|
|
84
|
-
```html
|
|
85
|
-
<meta name="mint-icon-base-url" content="cdn">
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Icon Files Setup
|
|
89
|
-
|
|
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.
|
|
91
|
-
|
|
92
|
-
## Usage
|
|
93
|
-
|
|
94
|
-
### Framework-Agnostic Web Components
|
|
95
|
-
|
|
96
|
-
Components are Web Components (Custom Elements) that work in **any framework**:
|
|
37
|
+
The CLI uses the project's npm, pnpm, Yarn, or Bun lockfile to choose its package manager.
|
|
97
38
|
|
|
98
|
-
|
|
39
|
+
## Plain HTML
|
|
99
40
|
|
|
100
41
|
```html
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
<script type="module">
|
|
105
|
-
import 'monobill-mintui'
|
|
106
|
-
</script>
|
|
107
|
-
</head>
|
|
108
|
-
<body>
|
|
109
|
-
<mint-button variant="primary">Click me</mint-button>
|
|
110
|
-
<mint-switch id="mySwitch"></mint-switch>
|
|
111
|
-
|
|
112
|
-
<script>
|
|
113
|
-
document.getElementById('mySwitch').addEventListener('change', (e) => {
|
|
114
|
-
console.log('Toggled:', e.detail.checked)
|
|
115
|
-
})
|
|
116
|
-
</script>
|
|
117
|
-
</body>
|
|
118
|
-
</html>
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
#### Vue 3
|
|
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`:
|
|
42
|
+
<script type="module">
|
|
43
|
+
import './node_modules/mint-ui/dist/components/button/browser.js'
|
|
44
|
+
</script>
|
|
128
45
|
|
|
129
|
-
|
|
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
|
-
})
|
|
46
|
+
<mint-button variant="solid" tone="action">Get started</mint-button>
|
|
144
47
|
```
|
|
145
48
|
|
|
146
|
-
|
|
49
|
+
Import individual components for smaller application bundles:
|
|
147
50
|
|
|
148
51
|
```js
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
}
|
|
52
|
+
import 'mint-ui/button'
|
|
53
|
+
import 'mint-ui/switch'
|
|
163
54
|
```
|
|
164
55
|
|
|
165
|
-
|
|
56
|
+
Package subpath imports such as `import 'mint-ui/button'` automatically import the component's compiled CSS and dependencies in bundlers. For native browser modules, use the `browser.js` entry shown above; it loads the same separate CSS files at runtime. `mint-ui/styles.css` remains available when an application prefers importing the entire compiled stylesheet once.
|
|
166
57
|
|
|
167
|
-
|
|
168
|
-
export default defineNuxtConfig({
|
|
169
|
-
vue: {
|
|
170
|
-
compilerOptions: {
|
|
171
|
-
isCustomElement: (tag) => tag.startsWith('mint-'),
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
})
|
|
175
|
-
```
|
|
58
|
+
## Frameworks
|
|
176
59
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
```vue
|
|
180
|
-
<template>
|
|
181
|
-
<mint-button variant="primary" @click="handleClick">
|
|
182
|
-
Click me
|
|
183
|
-
</mint-button>
|
|
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>
|
|
190
|
-
</template>
|
|
191
|
-
|
|
192
|
-
<script setup>
|
|
193
|
-
import { ref } from 'vue'
|
|
194
|
-
import 'monobill-mintui'
|
|
195
|
-
|
|
196
|
-
const enabled = ref(false)
|
|
197
|
-
const name = ref('')
|
|
198
|
-
const country = ref('')
|
|
199
|
-
|
|
200
|
-
const handleClick = () => console.log('Clicked!')
|
|
201
|
-
const handleChange = (e) => {
|
|
202
|
-
enabled.value = e.detail?.checked ?? e.target.checked
|
|
203
|
-
}
|
|
204
|
-
</script>
|
|
205
|
-
```
|
|
60
|
+
Register the custom elements once in the application's entry point, then use their HTML tags in your templates. Events are standard DOM events. Boolean controls expose properties such as `checked` and also emit `change` events.
|
|
206
61
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
import { useState } from 'react'
|
|
211
|
-
import 'monobill-mintui'
|
|
212
|
-
|
|
213
|
-
function App() {
|
|
214
|
-
const [enabled, setEnabled] = useState(false)
|
|
215
|
-
|
|
216
|
-
return (
|
|
217
|
-
<>
|
|
218
|
-
<mint-button variant="primary" onClick={() => console.log('Clicked!')}>
|
|
219
|
-
Click me
|
|
220
|
-
</mint-button>
|
|
221
|
-
<mint-switch
|
|
222
|
-
checked={enabled}
|
|
223
|
-
onChange={(e) => setEnabled(e.detail?.checked ?? e.target.checked)}
|
|
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>
|
|
230
|
-
</>
|
|
231
|
-
)
|
|
232
|
-
}
|
|
62
|
+
```js
|
|
63
|
+
import 'mint-ui/button'
|
|
64
|
+
import 'mint-ui/checkbox'
|
|
233
65
|
```
|
|
234
66
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
67
|
+
```html
|
|
68
|
+
<mint-checkbox label="Send me product updates"></mint-checkbox>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Components
|
|
72
|
+
|
|
73
|
+
| Component | Custom element | Documentation |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| Button | `<mint-button>` | [Button](docs/components/button.md) |
|
|
76
|
+
| Switch | `<mint-switch>` | [Switch](docs/components/switch.md) |
|
|
77
|
+
| Checkbox | `<mint-checkbox>` | [Checkbox](docs/components/checkbox.md) |
|
|
78
|
+
| Choice | `<mint-choice>` | [Choice](docs/components/choice.md) |
|
|
79
|
+
| Spinner | `<mint-spinner>` | [Spinner](docs/components/spinner.md) |
|
|
80
|
+
| Icon | `<mint-icon>` | [Icon](docs/components/icon.md) |
|
|
81
|
+
| Text | `<mint-text>` | [Text](docs/components/text.md) |
|
|
82
|
+
| Stack | `<mint-stack>` | [Stack](docs/components/stack.md) |
|
|
83
|
+
| Card | `<mint-card>` | [Card](docs/components/card.md) |
|
|
84
|
+
| Link | `<mint-link>` | [Link](docs/components/link.md) |
|
|
85
|
+
| Page | `<mint-page>` | [Page](docs/components/page.md) |
|
|
86
|
+
| Grid | `<mint-grid>` | [Grid](docs/components/grid.md) |
|
|
87
|
+
| Modal | `<mint-modal>` | [Modal](docs/components/modal.md) |
|
|
88
|
+
| Popover | `<mint-popover>` | [Popover](docs/components/popover.md) |
|
|
89
|
+
| Back Button | `<mint-back-button>` | [Back Button](docs/components/back-button.md) |
|
|
90
|
+
|
|
91
|
+
## Styling
|
|
92
|
+
|
|
93
|
+
Component styles are split into separate files. Import only the CSS modules for the components your app uses; Vite and other CSS-aware bundlers combine them into one application CSS file. For example, use `mint-ui/button.css` with `mint-ui/button`. Theme the default palette with CSS custom properties:
|
|
94
|
+
|
|
95
|
+
```css
|
|
96
|
+
@import "mint-ui/theme.css";
|
|
97
|
+
|
|
98
|
+
:root {
|
|
99
|
+
--mint-color-primary: #315943;
|
|
100
|
+
--mint-color-surface: #ffffff;
|
|
101
|
+
--mint-color-text: #28372d;
|
|
102
|
+
--mint-color-border: #dfe6e0;
|
|
257
103
|
}
|
|
258
104
|
```
|
|
259
105
|
|
|
260
|
-
|
|
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
|
|
283
|
-
|
|
284
|
-
## Requirements
|
|
285
|
-
|
|
286
|
-
- **Tailwind CSS** - Required. Components use Tailwind utility classes.
|
|
287
|
-
- **No framework required!** Components are pure JavaScript Web Components
|
|
288
|
-
- **No JavaScript dependencies!** Built with native Web Component APIs
|
|
289
|
-
- Modern browser with Web Components support (all modern browsers)
|
|
290
|
-
|
|
291
|
-
### ⚠️ Critical: Tailwind Configuration
|
|
292
|
-
|
|
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:
|
|
106
|
+
The `theme.css` file provides the light palette by default and switches to its dark palette when the root element has `data-mint-theme="dark"` (or the legacy `dark` class). Update a token at any time with CSS or JavaScript; components respond immediately:
|
|
294
107
|
|
|
295
108
|
```js
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
export default {
|
|
300
|
-
presets: [mintuiPreset], // ⚠️ REQUIRED: Enforces dark mode color (#0A0A0A)
|
|
301
|
-
content: [
|
|
302
|
-
"./src/**/*.{vue,js,ts,jsx,tsx,html}",
|
|
303
|
-
"./node_modules/monobill-mintui/dist/**/*.js", // ⚠️ REQUIRED
|
|
304
|
-
],
|
|
305
|
-
// ... rest of your config
|
|
306
|
-
}
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
```js
|
|
310
|
-
// tailwind.config.js (CommonJS)
|
|
311
|
-
const mintuiPreset = require('monobill-mintui/tailwind-preset')
|
|
312
|
-
|
|
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
|
-
}
|
|
109
|
+
document.documentElement.style.setProperty('--mint-color-primary', '#6a4c93')
|
|
110
|
+
document.documentElement.dataset.mintTheme = 'dark'
|
|
321
111
|
```
|
|
322
112
|
|
|
323
|
-
|
|
113
|
+
Available tokens include `--mint-color-primary`, `--mint-color-info`, `--mint-color-warning`, `--mint-color-danger`, `--mint-color-success`, `--mint-color-text`, `--mint-color-text-secondary`, `--mint-color-text-muted`, `--mint-color-surface`, `--mint-color-surface-raised`, `--mint-color-surface-muted`, `--mint-color-border`, and `--mint-color-focus`. Component styles include light-mode fallbacks, so `theme.css` is only needed when you want the shared palette, runtime theming, or dark mode.
|
|
324
114
|
|
|
325
|
-
##
|
|
115
|
+
## Develop
|
|
326
116
|
|
|
327
|
-
|
|
328
|
-
|
|
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
|
|
333
|
-
|
|
334
|
-
## Development
|
|
335
|
-
|
|
336
|
-
```bash
|
|
337
|
-
# Install dependencies
|
|
117
|
+
```sh
|
|
338
118
|
npm install
|
|
339
|
-
|
|
340
|
-
# Run development server
|
|
341
119
|
npm run dev
|
|
342
|
-
|
|
343
|
-
# Build for production
|
|
344
120
|
npm run build
|
|
345
121
|
```
|
|
346
122
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
MIT
|
|
123
|
+
Component source styles use Tailwind during development. The build compiles and packages all component and aggregate CSS; the documentation site imports that built output, and consuming projects do not need Tailwind.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"alert": [
|
|
3
|
+
"text",
|
|
4
|
+
"icon"
|
|
5
|
+
],
|
|
6
|
+
"back-button": [
|
|
7
|
+
"button",
|
|
8
|
+
"spinner",
|
|
9
|
+
"icon"
|
|
10
|
+
],
|
|
11
|
+
"bottom-navigation": [
|
|
12
|
+
"icon"
|
|
13
|
+
],
|
|
14
|
+
"button": [
|
|
15
|
+
"spinner",
|
|
16
|
+
"icon"
|
|
17
|
+
],
|
|
18
|
+
"card": [
|
|
19
|
+
"text"
|
|
20
|
+
],
|
|
21
|
+
"chart": [],
|
|
22
|
+
"checkbox": [
|
|
23
|
+
"icon"
|
|
24
|
+
],
|
|
25
|
+
"chip": [
|
|
26
|
+
"icon"
|
|
27
|
+
],
|
|
28
|
+
"choice": [],
|
|
29
|
+
"clickable": [],
|
|
30
|
+
"collapsible": [],
|
|
31
|
+
"confirm-action": [
|
|
32
|
+
"modal",
|
|
33
|
+
"button",
|
|
34
|
+
"spinner",
|
|
35
|
+
"icon",
|
|
36
|
+
"text",
|
|
37
|
+
"stack"
|
|
38
|
+
],
|
|
39
|
+
"date-picker": [
|
|
40
|
+
"input",
|
|
41
|
+
"icon",
|
|
42
|
+
"popover",
|
|
43
|
+
"stack"
|
|
44
|
+
],
|
|
45
|
+
"dropzone": [
|
|
46
|
+
"icon"
|
|
47
|
+
],
|
|
48
|
+
"form": [],
|
|
49
|
+
"grid": [],
|
|
50
|
+
"icon": [],
|
|
51
|
+
"input": [
|
|
52
|
+
"icon"
|
|
53
|
+
],
|
|
54
|
+
"link": [],
|
|
55
|
+
"modal": [
|
|
56
|
+
"button",
|
|
57
|
+
"spinner",
|
|
58
|
+
"icon",
|
|
59
|
+
"text",
|
|
60
|
+
"stack"
|
|
61
|
+
],
|
|
62
|
+
"navigation": [
|
|
63
|
+
"button",
|
|
64
|
+
"spinner",
|
|
65
|
+
"icon",
|
|
66
|
+
"link",
|
|
67
|
+
"popover",
|
|
68
|
+
"stack"
|
|
69
|
+
],
|
|
70
|
+
"off-canvas": [
|
|
71
|
+
"button",
|
|
72
|
+
"spinner",
|
|
73
|
+
"icon",
|
|
74
|
+
"text",
|
|
75
|
+
"stack"
|
|
76
|
+
],
|
|
77
|
+
"page": [],
|
|
78
|
+
"popover": [
|
|
79
|
+
"stack"
|
|
80
|
+
],
|
|
81
|
+
"resource-table": [
|
|
82
|
+
"table",
|
|
83
|
+
"input",
|
|
84
|
+
"icon",
|
|
85
|
+
"button",
|
|
86
|
+
"spinner",
|
|
87
|
+
"popover",
|
|
88
|
+
"stack"
|
|
89
|
+
],
|
|
90
|
+
"search": [
|
|
91
|
+
"icon",
|
|
92
|
+
"chip",
|
|
93
|
+
"input",
|
|
94
|
+
"button",
|
|
95
|
+
"spinner"
|
|
96
|
+
],
|
|
97
|
+
"select": [
|
|
98
|
+
"icon"
|
|
99
|
+
],
|
|
100
|
+
"side-navigation": [
|
|
101
|
+
"icon",
|
|
102
|
+
"text",
|
|
103
|
+
"popover",
|
|
104
|
+
"stack"
|
|
105
|
+
],
|
|
106
|
+
"sortable": [],
|
|
107
|
+
"spinner": [],
|
|
108
|
+
"stack": [],
|
|
109
|
+
"switch": [
|
|
110
|
+
"icon"
|
|
111
|
+
],
|
|
112
|
+
"table": [],
|
|
113
|
+
"tabs": [],
|
|
114
|
+
"tags": [
|
|
115
|
+
"chip",
|
|
116
|
+
"icon",
|
|
117
|
+
"button",
|
|
118
|
+
"spinner",
|
|
119
|
+
"popover",
|
|
120
|
+
"stack"
|
|
121
|
+
],
|
|
122
|
+
"text": [],
|
|
123
|
+
"time-picker": [
|
|
124
|
+
"input",
|
|
125
|
+
"icon",
|
|
126
|
+
"popover",
|
|
127
|
+
"stack",
|
|
128
|
+
"text"
|
|
129
|
+
],
|
|
130
|
+
"toast": []
|
|
131
|
+
}
|