monobill-mintui 0.6.612 → 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 -64
- 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 +10695 -10239
- 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
|
@@ -1 +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
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import '../../theme.css'
|
|
2
|
+
import '../../icon.css'
|
|
3
|
+
import '../../bottom-navigation.css'
|
|
4
|
+
import "../chunks/icon-gQAtsERy.js";
|
|
5
|
+
import { t as e } from "../chunks/register-element-BFYmIynH.js";
|
|
6
|
+
import "../chunks/icon-C0OLmjDY.js";
|
|
7
|
+
//#region src/components/bottom-navigation/BottomNavigation.ts
|
|
8
|
+
var t = class extends HTMLElement {
|
|
9
|
+
constructor(...e) {
|
|
10
|
+
super(...e), this._lastScrollY = 0, this._scrollHandler = null;
|
|
11
|
+
}
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
this.classList.add("mint-bottom-navigation"), this.setAttribute("role", "navigation"), this.hasAttribute("aria-label") || this.setAttribute("aria-label", "Primary"), this._lastScrollY = window.scrollY, this.hasAttribute("data-preview") || this._attachScrollListener();
|
|
14
|
+
}
|
|
15
|
+
disconnectedCallback() {
|
|
16
|
+
this._detachScrollListener();
|
|
17
|
+
}
|
|
18
|
+
_attachScrollListener() {
|
|
19
|
+
this._scrollHandler || (this._scrollHandler = () => {
|
|
20
|
+
let e = window.scrollY;
|
|
21
|
+
if (e <= 8) {
|
|
22
|
+
this.classList.remove("is-hidden"), this._lastScrollY = e;
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
let t = e - this._lastScrollY;
|
|
26
|
+
Math.abs(t) < 4 || (t > 0 ? this.classList.add("is-hidden") : this.classList.remove("is-hidden"), this._lastScrollY = e);
|
|
27
|
+
}, window.addEventListener("scroll", this._scrollHandler, { passive: !0 }));
|
|
28
|
+
}
|
|
29
|
+
_detachScrollListener() {
|
|
30
|
+
this._scrollHandler &&= (window.removeEventListener("scroll", this._scrollHandler), null);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
customElements.get("mint-bottom-navigation") || e("mint-bottom-navigation", t);
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/components/bottom-navigation/BottomNavItem.ts
|
|
36
|
+
var n = class extends HTMLElement {
|
|
37
|
+
constructor(...e) {
|
|
38
|
+
super(...e), this._root = null;
|
|
39
|
+
}
|
|
40
|
+
static get observedAttributes() {
|
|
41
|
+
return [
|
|
42
|
+
"icon",
|
|
43
|
+
"label",
|
|
44
|
+
"href",
|
|
45
|
+
"active"
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
connectedCallback() {
|
|
49
|
+
this.classList.add("mint-bottom-nav-item"), this.render();
|
|
50
|
+
}
|
|
51
|
+
attributeChangedCallback(e, t, n) {
|
|
52
|
+
t !== n && this.render();
|
|
53
|
+
}
|
|
54
|
+
_isActive() {
|
|
55
|
+
return this.hasAttribute("active") && this.getAttribute("active") !== "false";
|
|
56
|
+
}
|
|
57
|
+
_getLabel() {
|
|
58
|
+
return this.getAttribute("label") || "";
|
|
59
|
+
}
|
|
60
|
+
_getIcon() {
|
|
61
|
+
return this.getAttribute("icon") || "";
|
|
62
|
+
}
|
|
63
|
+
_getHref() {
|
|
64
|
+
return this.getAttribute("href");
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
let e = this._getHref(), t = this._getLabel(), n = this._getIcon(), r = this._isActive(), i;
|
|
68
|
+
e ? (i = document.createElement("a"), i.href = e) : (i = document.createElement("button"), i.type = "button"), i.className = "mint-bottom-nav-link", i.setAttribute("aria-current", r ? "page" : "false");
|
|
69
|
+
let a = n.split("-").filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
70
|
+
i.setAttribute("aria-label", t || a || "Navigation item");
|
|
71
|
+
let o = document.createElement("span");
|
|
72
|
+
if (o.className = "mint-bottom-nav-icon", n) {
|
|
73
|
+
let e = document.createElement("mint-icon");
|
|
74
|
+
e.setAttribute("name", n), e.className = "mint-bottom-nav-icon-glyph", o.appendChild(e);
|
|
75
|
+
}
|
|
76
|
+
let s = document.createElement("span");
|
|
77
|
+
s.className = "mint-bottom-nav-label", s.textContent = t, i.appendChild(o), i.appendChild(s), this.replaceChildren(i), this._root = i;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
customElements.get("mint-bottom-nav-item") || e("mint-bottom-nav-item", n);
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/components/bottom-navigation/index.ts
|
|
83
|
+
var r = t;
|
|
84
|
+
//#endregion
|
|
85
|
+
export { n as MintBottomNavItem, t as MintBottomNavigation, r as default };
|
|
@@ -1,57 +1 @@
|
|
|
1
|
-
|
|
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
|
-
/** Re-sync when frameworks (Vue, React, etc.) patch light DOM after we moved children into `<button>`. */
|
|
14
|
-
private _hostChildObserver;
|
|
15
|
-
private _hostRenderFromObserverRaf;
|
|
16
|
-
constructor();
|
|
17
|
-
private _getGeneratedIcon;
|
|
18
|
-
private _getContentWrapperClass;
|
|
19
|
-
connectedCallback(): void;
|
|
20
|
-
disconnectedCallback(): void;
|
|
21
|
-
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
22
|
-
getVariant(): ButtonVariant;
|
|
23
|
-
getTone(): ButtonTone;
|
|
24
|
-
isDisabled(): boolean;
|
|
25
|
-
isLoading(): boolean;
|
|
26
|
-
getType(): ButtonType;
|
|
27
|
-
isFullWidth(): boolean;
|
|
28
|
-
isActive(): boolean;
|
|
29
|
-
get active(): boolean;
|
|
30
|
-
set active(value: boolean);
|
|
31
|
-
getIconPosition(): IconPosition;
|
|
32
|
-
getIcon(): string;
|
|
33
|
-
getAlignment(): 'left' | 'center' | 'right';
|
|
34
|
-
isIconOnly(): boolean;
|
|
35
|
-
getActiveStateClasses(): string[];
|
|
36
|
-
private _disconnectHostChildObserver;
|
|
37
|
-
private _connectHostChildObserver;
|
|
38
|
-
/**
|
|
39
|
-
* If the mutation is entirely inside our internal `<button>`, the framework updated label/icon
|
|
40
|
-
* in the structure we already own — ignore. Otherwise re-run `render()` to fold host nodes in.
|
|
41
|
-
*/
|
|
42
|
-
private _onLightDomMutation;
|
|
43
|
-
private _scheduleRenderFromHostObserver;
|
|
44
|
-
private getButtonClasses;
|
|
45
|
-
render(): void;
|
|
46
|
-
setupEventListeners(): void;
|
|
47
|
-
removeEventListeners(): void;
|
|
48
|
-
private _handleMouseDown;
|
|
49
|
-
private _handleMouseUp;
|
|
50
|
-
private _handleMouseLeave;
|
|
51
|
-
private _handleTouchStart;
|
|
52
|
-
private _handleTouchEnd;
|
|
53
|
-
private _handleTouchCancel;
|
|
54
|
-
handleClick(event: Event): void;
|
|
55
|
-
}
|
|
56
|
-
export default MintButton;
|
|
57
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
1
|
+
export { MintButton as default, MintButton } from '../../mintui-elements'
|
|
@@ -1 +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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
const __mintLoadStyle = (key, url) => {
|
|
3
|
+
if (typeof document === 'undefined') return
|
|
4
|
+
const href = new URL(url, import.meta.url).href
|
|
5
|
+
if ([...document.querySelectorAll('link[rel="stylesheet"]')].some(link => link.href === href)) return
|
|
6
|
+
if (document.querySelector('style[data-mint-ui-style="' + key + '"]') || document.querySelector('link[data-mint-ui-style="' + key + '"]')) return
|
|
7
|
+
const link = document.createElement('link')
|
|
8
|
+
link.rel = 'stylesheet'
|
|
9
|
+
link.href = href
|
|
10
|
+
link.dataset.mintUiStyle = key
|
|
11
|
+
document.head.append(link)
|
|
12
|
+
}
|
|
13
|
+
__mintLoadStyle('theme', '../../theme.css')
|
|
14
|
+
__mintLoadStyle('spinner', '../../spinner.css')
|
|
15
|
+
__mintLoadStyle('icon', '../../icon.css')
|
|
16
|
+
__mintLoadStyle('button', '../../button.css')
|
|
17
|
+
import { t as e } from "../chunks/button-B0Yt0MX1.js";
|
|
18
|
+
export { e as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../chunks/button-BlbLHMts.js`);module.exports=e.t;
|
|
@@ -1 +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,17 +1 @@
|
|
|
1
|
-
|
|
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
|
+
export { MintCard as default, MintCard } from '../../mintui-elements'
|
|
@@ -1 +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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
const __mintLoadStyle = (key, url) => {
|
|
3
|
+
if (typeof document === 'undefined') return
|
|
4
|
+
const href = new URL(url, import.meta.url).href
|
|
5
|
+
if ([...document.querySelectorAll('link[rel="stylesheet"]')].some(link => link.href === href)) return
|
|
6
|
+
if (document.querySelector('style[data-mint-ui-style="' + key + '"]') || document.querySelector('link[data-mint-ui-style="' + key + '"]')) return
|
|
7
|
+
const link = document.createElement('link')
|
|
8
|
+
link.rel = 'stylesheet'
|
|
9
|
+
link.href = href
|
|
10
|
+
link.dataset.mintUiStyle = key
|
|
11
|
+
document.head.append(link)
|
|
12
|
+
}
|
|
13
|
+
__mintLoadStyle('theme', '../../theme.css')
|
|
14
|
+
__mintLoadStyle('text', '../../text.css')
|
|
15
|
+
__mintLoadStyle('card', '../../card.css')
|
|
16
|
+
import { t as e } from "../chunks/register-element-BFYmIynH.js";
|
|
17
|
+
//#region src/components/card/Card.js
|
|
18
|
+
var t = class extends HTMLElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
typeof customElements < "u" && !customElements.get("mint-card") && e("mint-card", t);
|
|
24
|
+
//#endregion
|
|
25
|
+
export { t as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../chunks/register-element-tCL_F1YI.js`);var t=class extends HTMLElement{constructor(){super()}};typeof customElements<`u`&&!customElements.get(`mint-card`)&&e.t(`mint-card`,t),module.exports=t;
|
|
@@ -1 +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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '../../theme.css'
|
|
2
|
+
import '../../text.css'
|
|
3
|
+
import '../../card.css'
|
|
4
|
+
import { t as e } from "../chunks/register-element-BFYmIynH.js";
|
|
5
|
+
//#region src/components/card/Card.js
|
|
6
|
+
var t = class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
typeof customElements < "u" && !customElements.get("mint-card") && e("mint-card", t);
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as default };
|
|
@@ -1,291 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface ChartDataPoint {
|
|
3
|
-
x: string | number;
|
|
4
|
-
y: number;
|
|
5
|
-
color?: string;
|
|
6
|
-
}
|
|
7
|
-
interface ChartDataset {
|
|
8
|
-
id?: string;
|
|
9
|
-
name: string;
|
|
10
|
-
data: ChartDataPoint[];
|
|
11
|
-
color?: string;
|
|
12
|
-
formatValue?: ((value: number) => string) | string;
|
|
13
|
-
visible?: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface ChartData {
|
|
16
|
-
labels?: (string | number)[];
|
|
17
|
-
datasets: ChartDataset[];
|
|
18
|
-
formatYAxis?: ((value: number) => string) | string;
|
|
19
|
-
formatXAxis?: ((value: string | number) => string) | string;
|
|
20
|
-
}
|
|
21
|
-
declare class MintChart extends HTMLElement {
|
|
22
|
-
static get observedAttributes(): string[];
|
|
23
|
-
private _chartContainer;
|
|
24
|
-
private _svg;
|
|
25
|
-
private _tooltip;
|
|
26
|
-
private _chartType;
|
|
27
|
-
private _chartData;
|
|
28
|
-
private _width;
|
|
29
|
-
private _height;
|
|
30
|
-
private _padding;
|
|
31
|
-
private _showLegend;
|
|
32
|
-
private _showGrid;
|
|
33
|
-
private _showTooltip;
|
|
34
|
-
private _curveTension;
|
|
35
|
-
private _dataObserver;
|
|
36
|
-
private _darkModeObserver;
|
|
37
|
-
private _tooltipHideTimeout;
|
|
38
|
-
private _lastTooltipContent;
|
|
39
|
-
private _activeXValue;
|
|
40
|
-
private _pinnedXValue;
|
|
41
|
-
private _tooltipAnimationFrame;
|
|
42
|
-
private _cachedTooltipContent;
|
|
43
|
-
private _cachedXPositions;
|
|
44
|
-
private _verticalLine;
|
|
45
|
-
private _plotPoints;
|
|
46
|
-
private _resizeObserver;
|
|
47
|
-
private _windowResizeHandler;
|
|
48
|
-
private _pieChartTimeouts;
|
|
49
|
-
private _pieChartTooltipShown;
|
|
50
|
-
private _pieChartClickOutsideHandler;
|
|
51
|
-
private _pieChartGroup;
|
|
52
|
-
private _chartClickOutsideHandler;
|
|
53
|
-
private _chartTooltipScrollHandler;
|
|
54
|
-
private _cachedBounds;
|
|
55
|
-
private _cachedYRange;
|
|
56
|
-
private _cachedXValues;
|
|
57
|
-
private static readonly MAX_CACHE_SIZE;
|
|
58
|
-
private _renderScheduled;
|
|
59
|
-
private _datasetVisibility;
|
|
60
|
-
private _widthValue;
|
|
61
|
-
private _heightValue;
|
|
62
|
-
private _defaultColors;
|
|
63
|
-
constructor();
|
|
64
|
-
connectedCallback(): void;
|
|
65
|
-
/**
|
|
66
|
-
* Get the actual value from a potentially reactive object
|
|
67
|
-
* Handles Vue 3 refs, reactive, Vue 2, React state, and other reactivity systems
|
|
68
|
-
* Based on the approach used in Form.ts
|
|
69
|
-
*/
|
|
70
|
-
private _getReactiveValue;
|
|
71
|
-
private _setupDataObserver;
|
|
72
|
-
private _setupDarkModeObserver;
|
|
73
|
-
disconnectedCallback(): void;
|
|
74
|
-
private _handleResize;
|
|
75
|
-
private _setupResizeObserver;
|
|
76
|
-
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
77
|
-
get type(): ChartType;
|
|
78
|
-
set type(value: ChartType);
|
|
79
|
-
get data(): ChartData | null;
|
|
80
|
-
set data(value: ChartData | string | null);
|
|
81
|
-
get width(): number | string;
|
|
82
|
-
set width(value: number | string);
|
|
83
|
-
get height(): number | string;
|
|
84
|
-
set height(value: number | string);
|
|
85
|
-
/**
|
|
86
|
-
* Calculate pixel value from width/height (supports percentages)
|
|
87
|
-
*/
|
|
88
|
-
private _calculateDimension;
|
|
89
|
-
/**
|
|
90
|
-
* Schedule a render using requestAnimationFrame to batch multiple updates
|
|
91
|
-
*/
|
|
92
|
-
private _scheduleRender;
|
|
93
|
-
/**
|
|
94
|
-
* Check if a dataset is visible
|
|
95
|
-
*/
|
|
96
|
-
private _isDatasetVisible;
|
|
97
|
-
/**
|
|
98
|
-
* Initialize dataset visibility from dataset properties
|
|
99
|
-
*/
|
|
100
|
-
private _initializeDatasetVisibility;
|
|
101
|
-
private render;
|
|
102
|
-
private _createTooltip;
|
|
103
|
-
private _showTooltipAt;
|
|
104
|
-
private _hideTooltip;
|
|
105
|
-
private _createVerticalLine;
|
|
106
|
-
private _showVerticalLineAtX;
|
|
107
|
-
private _hideVerticalLine;
|
|
108
|
-
private _showPlotPointsForX;
|
|
109
|
-
private _hidePlotPoints;
|
|
110
|
-
private _legendHeight;
|
|
111
|
-
private _rotatedLabelHeight;
|
|
112
|
-
/**
|
|
113
|
-
* Calculate the maximum width of y-axis labels to ensure they're never clipped
|
|
114
|
-
*/
|
|
115
|
-
private _calculateMaxYAxisLabelWidth;
|
|
116
|
-
private _getChartBounds;
|
|
117
|
-
private _getAllDataPoints;
|
|
118
|
-
private _getXValues;
|
|
119
|
-
private _getYRange;
|
|
120
|
-
/**
|
|
121
|
-
* Check if any data points have decimal values
|
|
122
|
-
*/
|
|
123
|
-
private _hasDecimalValues;
|
|
124
|
-
/**
|
|
125
|
-
* Format a value using a format string
|
|
126
|
-
*/
|
|
127
|
-
private _formatValueByString;
|
|
128
|
-
/**
|
|
129
|
-
* Format an x-axis value using formatXAxis from ChartData
|
|
130
|
-
*/
|
|
131
|
-
private _formatXAxisValue;
|
|
132
|
-
private _escapeHtmlForTooltip;
|
|
133
|
-
/** First line of chart tooltip / popover: x label via `formatXAxis`, HTML-escaped. */
|
|
134
|
-
private _tooltipXHeadingHtml;
|
|
135
|
-
/**
|
|
136
|
-
* Format a y-axis value using formatYAxis from ChartData or first dataset's formatValue
|
|
137
|
-
*/
|
|
138
|
-
private _formatYAxisValue;
|
|
139
|
-
/**
|
|
140
|
-
* Format a value using the dataset's formatter or default formatting
|
|
141
|
-
*/
|
|
142
|
-
private _formatValue;
|
|
143
|
-
/**
|
|
144
|
-
* Get all dataset values at a specific x-value
|
|
145
|
-
* Returns an array of { datasetName, value, color, formattedValue } for all datasets that have a point at this x
|
|
146
|
-
*/
|
|
147
|
-
private _getAllDatasetsAtX;
|
|
148
|
-
/**
|
|
149
|
-
* Find the nearest x-value to a given mouse x position (in SVG coordinates)
|
|
150
|
-
*/
|
|
151
|
-
private _findNearestXValue;
|
|
152
|
-
/**
|
|
153
|
-
* Setup scroll handler to hide tooltips on scroll
|
|
154
|
-
*/
|
|
155
|
-
private _setupTooltipScrollHandler;
|
|
156
|
-
/**
|
|
157
|
-
* Setup chart-wide tooltip on mouse move
|
|
158
|
-
*/
|
|
159
|
-
private _setupChartTooltip;
|
|
160
|
-
/**
|
|
161
|
-
* Update tooltip position without rebuilding content
|
|
162
|
-
*/
|
|
163
|
-
private _updateTooltipPosition;
|
|
164
|
-
private _scaleX;
|
|
165
|
-
private _scaleY;
|
|
166
|
-
private _getDatasetColor;
|
|
167
|
-
/**
|
|
168
|
-
* Get appropriate text color (white or black) based on background color brightness
|
|
169
|
-
*/
|
|
170
|
-
private _getContrastColor;
|
|
171
|
-
/**
|
|
172
|
-
* Calculate the height needed for rotated x-axis labels
|
|
173
|
-
* This is called before rendering to help position the legend
|
|
174
|
-
*/
|
|
175
|
-
private _calculateRotatedLabelHeight;
|
|
176
|
-
private _renderGrid;
|
|
177
|
-
/**
|
|
178
|
-
* Monotone cubic in x (D3 curveMonotoneX / Steffen slopes): smooth without overshoot,
|
|
179
|
-
* similar to smoothed line/area UIs (e.g. amCharts smoothed series).
|
|
180
|
-
* Ported from d3-shape monotone.js.
|
|
181
|
-
*/
|
|
182
|
-
private _buildMonotoneXLinePathD;
|
|
183
|
-
private _stripLeadingMoveTo;
|
|
184
|
-
/** Closed area: baseline → top (monotone when curve-tension > 0) → baseline. */
|
|
185
|
-
private _buildAreaFillPathD;
|
|
186
|
-
/** Open stroke path through `points` (line / area top edge). */
|
|
187
|
-
private _buildSmoothLinePathD;
|
|
188
|
-
private _renderLineChart;
|
|
189
|
-
/**
|
|
190
|
-
* Scale x value for bar charts - treats positions as if there's a blank at start and end
|
|
191
|
-
* So for n values, we use n+1 positions, starting at index 1
|
|
192
|
-
*/
|
|
193
|
-
private _scaleXForBarChart;
|
|
194
|
-
private _renderBarChart;
|
|
195
|
-
private _renderAreaChart;
|
|
196
|
-
private _renderPieChart;
|
|
197
|
-
/**
|
|
198
|
-
* Calculate legend height without rendering
|
|
199
|
-
*/
|
|
200
|
-
private _calculateLegendHeight;
|
|
201
|
-
private _renderLegend;
|
|
202
|
-
/**
|
|
203
|
-
* Add a new data point to a dataset
|
|
204
|
-
* @param datasetIndex - Index of the dataset (0-based)
|
|
205
|
-
* @param point - The data point to add { x: string | number, y: number, color?: string }
|
|
206
|
-
*/
|
|
207
|
-
addDataPoint(datasetIndex: number, point: ChartDataPoint): Promise<void>;
|
|
208
|
-
/**
|
|
209
|
-
* Batch add data points to multiple datasets at once (optimized for performance)
|
|
210
|
-
* @param updates - Array of { datasetIndex, point } objects
|
|
211
|
-
*/
|
|
212
|
-
batchAddDataPoints(updates: Array<{
|
|
213
|
-
datasetIndex: number;
|
|
214
|
-
point: ChartDataPoint;
|
|
215
|
-
}>): Promise<void>;
|
|
216
|
-
/**
|
|
217
|
-
* Update the entire dataset data array
|
|
218
|
-
* @param datasetIndex - Index of the dataset (0-based)
|
|
219
|
-
* @param data - Array of data points to replace the existing data
|
|
220
|
-
*/
|
|
221
|
-
updateDatasetData(datasetIndex: number, data: ChartDataPoint[]): Promise<void>;
|
|
222
|
-
/**
|
|
223
|
-
* Add a new dataset to the chart
|
|
224
|
-
* @param dataset - The dataset to add
|
|
225
|
-
*/
|
|
226
|
-
addDataset(dataset: ChartDataset): Promise<void>;
|
|
227
|
-
/**
|
|
228
|
-
* Remove a dataset from the chart
|
|
229
|
-
* @param datasetIndex - Index of the dataset to remove (0-based)
|
|
230
|
-
*/
|
|
231
|
-
removeDataset(datasetIndex: number): Promise<void>;
|
|
232
|
-
/**
|
|
233
|
-
* Update an existing data point in a dataset
|
|
234
|
-
* @param datasetIndex - Index of the dataset (0-based)
|
|
235
|
-
* @param pointIndex - Index of the point to update (0-based)
|
|
236
|
-
* @param point - The updated data point
|
|
237
|
-
*/
|
|
238
|
-
updateDataPoint(datasetIndex: number, pointIndex: number, point: ChartDataPoint): Promise<void>;
|
|
239
|
-
/**
|
|
240
|
-
* Batch update data points in multiple datasets at once (optimized for performance)
|
|
241
|
-
* @param updates - Array of { datasetIndex, pointIndex, point } objects
|
|
242
|
-
*/
|
|
243
|
-
batchUpdateDataPoints(updates: Array<{
|
|
244
|
-
datasetIndex: number;
|
|
245
|
-
pointIndex: number;
|
|
246
|
-
point: ChartDataPoint;
|
|
247
|
-
}>): Promise<void>;
|
|
248
|
-
/**
|
|
249
|
-
* Remove a data point from a dataset
|
|
250
|
-
* @param datasetIndex - Index of the dataset (0-based)
|
|
251
|
-
* @param pointIndex - Index of the point to remove (0-based)
|
|
252
|
-
*/
|
|
253
|
-
removeDataPoint(datasetIndex: number, pointIndex: number): Promise<void>;
|
|
254
|
-
/**
|
|
255
|
-
* Batch remove data points from multiple datasets at once (optimized for performance)
|
|
256
|
-
* @param updates - Array of { datasetIndex, pointIndex } objects
|
|
257
|
-
*/
|
|
258
|
-
batchRemoveDataPoints(updates: Array<{
|
|
259
|
-
datasetIndex: number;
|
|
260
|
-
pointIndex: number;
|
|
261
|
-
}>): Promise<void>;
|
|
262
|
-
/**
|
|
263
|
-
* Show a dataset by ID
|
|
264
|
-
* @param datasetId - The ID of the dataset to show
|
|
265
|
-
*/
|
|
266
|
-
showDataset(datasetId: string): Promise<void>;
|
|
267
|
-
/**
|
|
268
|
-
* Hide a dataset by ID
|
|
269
|
-
* @param datasetId - The ID of the dataset to hide
|
|
270
|
-
*/
|
|
271
|
-
hideDataset(datasetId: string): Promise<void>;
|
|
272
|
-
/**
|
|
273
|
-
* Toggle dataset visibility by ID
|
|
274
|
-
* @param datasetId - The ID of the dataset to toggle
|
|
275
|
-
* @returns The new visibility state (true if visible, false if hidden)
|
|
276
|
-
*/
|
|
277
|
-
toggleDataset(datasetId: string): Promise<boolean>;
|
|
278
|
-
/**
|
|
279
|
-
* Get the visibility state of a dataset by ID
|
|
280
|
-
* @param datasetId - The ID of the dataset
|
|
281
|
-
* @returns true if visible, false if hidden, or undefined if dataset not found
|
|
282
|
-
*/
|
|
283
|
-
isDatasetVisible(datasetId: string): boolean | undefined;
|
|
284
|
-
/**
|
|
285
|
-
* Download the chart as a PNG image
|
|
286
|
-
* @param filename - Optional filename (defaults to 'chart.png')
|
|
287
|
-
*/
|
|
288
|
-
downloadAsPNG(filename?: string): Promise<void>;
|
|
289
|
-
}
|
|
290
|
-
export default MintChart;
|
|
291
|
-
//# sourceMappingURL=Chart.d.ts.map
|
|
1
|
+
export { MintChart as default, MintChart } from '../../mintui-elements'
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Chart.d.ts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"Chart.d.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA"
|
|
10
|
+
}
|