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
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { t as e } from "./register-element-BFYmIynH.js";
|
|
2
|
+
//#region src/components/popover/Popover.js
|
|
3
|
+
var t = new Set([
|
|
4
|
+
"up",
|
|
5
|
+
"down",
|
|
6
|
+
"left",
|
|
7
|
+
"right"
|
|
8
|
+
]), n = class extends HTMLElement {
|
|
9
|
+
static get observedAttributes() {
|
|
10
|
+
return [
|
|
11
|
+
"direction",
|
|
12
|
+
"open",
|
|
13
|
+
"trigger-id",
|
|
14
|
+
"trigger-toggle",
|
|
15
|
+
"trigger-align",
|
|
16
|
+
"padding",
|
|
17
|
+
"hover",
|
|
18
|
+
"distance"
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
constructor() {
|
|
22
|
+
super(), this._trigger = null, this._triggerLookupTimer = null, this._clickHandler = null, this._hoverEnterHandler = null, this._hoverLeaveHandler = null, this._outsideHandler = null, this._escapeHandler = null, this._positionHandler = null, this._scrollHandler = null, this._resizeObserver = null, this._hoverCloseTimer = null, this._closeAnimationTimer = null, this._blobAnimation = null;
|
|
23
|
+
}
|
|
24
|
+
connectedCallback() {
|
|
25
|
+
this.render(), this._setupTrigger();
|
|
26
|
+
}
|
|
27
|
+
disconnectedCallback() {
|
|
28
|
+
this._removeTrigger(), this._removeOpenListeners(), clearTimeout(this._hoverCloseTimer), clearTimeout(this._closeAnimationTimer), this._blobAnimation?.cancel();
|
|
29
|
+
}
|
|
30
|
+
attributeChangedCallback(e, t, n) {
|
|
31
|
+
t === n || !this.isConnected || ((e === "trigger-id" || e === "trigger-toggle" || e === "hover") && this._setupTrigger(), this.render());
|
|
32
|
+
}
|
|
33
|
+
getDirection() {
|
|
34
|
+
let e = this.getAttribute("direction") || "down";
|
|
35
|
+
return t.has(e) ? e : "down";
|
|
36
|
+
}
|
|
37
|
+
getTriggerId() {
|
|
38
|
+
return this.getAttribute("trigger-id") || "";
|
|
39
|
+
}
|
|
40
|
+
isOpen() {
|
|
41
|
+
return this.hasAttribute("open") && this.getAttribute("open") !== "false";
|
|
42
|
+
}
|
|
43
|
+
isHoverEnabled() {
|
|
44
|
+
return this.hasAttribute("hover") && this.getAttribute("hover") !== "false";
|
|
45
|
+
}
|
|
46
|
+
isTriggerToggleEnabled() {
|
|
47
|
+
return this.getAttribute("trigger-toggle") !== "false";
|
|
48
|
+
}
|
|
49
|
+
open() {
|
|
50
|
+
this.setAttribute("open", "true");
|
|
51
|
+
}
|
|
52
|
+
close() {
|
|
53
|
+
this.removeAttribute("open");
|
|
54
|
+
}
|
|
55
|
+
_removeTrigger() {
|
|
56
|
+
clearTimeout(this._triggerLookupTimer), this._triggerLookupTimer = null, this._trigger && (this._clickHandler && this._trigger.removeEventListener("click", this._clickHandler), this._hoverEnterHandler && this._trigger.removeEventListener("mouseenter", this._hoverEnterHandler), this._hoverLeaveHandler && this._trigger.removeEventListener("mouseleave", this._hoverLeaveHandler), this._hoverEnterHandler && this.removeEventListener("mouseenter", this._hoverEnterHandler), this._hoverLeaveHandler && this.removeEventListener("mouseleave", this._hoverLeaveHandler), this._trigger.removeAttribute("aria-haspopup"), this._trigger.removeAttribute("aria-expanded"), this._trigger = null, this._clickHandler = this._hoverEnterHandler = this._hoverLeaveHandler = null);
|
|
57
|
+
}
|
|
58
|
+
_setupTrigger() {
|
|
59
|
+
this._removeTrigger();
|
|
60
|
+
let e = this.getTriggerId();
|
|
61
|
+
if (e) {
|
|
62
|
+
if (this._trigger = document.getElementById(e), !this._trigger) {
|
|
63
|
+
this._triggerLookupTimer = setTimeout(() => {
|
|
64
|
+
this.isConnected && this.getTriggerId() === e && !this._trigger && this._setupTrigger();
|
|
65
|
+
}, 40);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
this._trigger.setAttribute("aria-haspopup", "true"), this._trigger.setAttribute("aria-expanded", String(this.isOpen())), this.isTriggerToggleEnabled() && (this._clickHandler = (e) => {
|
|
69
|
+
this._trigger?.tagName === "A" && e.preventDefault(), this.isOpen() ? this.close() : this.open();
|
|
70
|
+
}, this._trigger.addEventListener("click", this._clickHandler)), this.isHoverEnabled() && (this._hoverEnterHandler = () => {
|
|
71
|
+
clearTimeout(this._hoverCloseTimer), this.open();
|
|
72
|
+
}, this._hoverLeaveHandler = () => this._scheduleHoverClose(), this._trigger.addEventListener("mouseenter", this._hoverEnterHandler), this._trigger.addEventListener("mouseleave", this._hoverLeaveHandler), this.addEventListener("mouseenter", this._hoverEnterHandler), this.addEventListener("mouseleave", this._hoverLeaveHandler));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
_scheduleHoverClose() {
|
|
76
|
+
clearTimeout(this._hoverCloseTimer), this._hoverCloseTimer = setTimeout(() => {
|
|
77
|
+
!this._trigger?.matches(":hover") && !this.matches(":hover") && this.close();
|
|
78
|
+
}, 140);
|
|
79
|
+
}
|
|
80
|
+
_removeOpenListeners() {
|
|
81
|
+
this._outsideHandler && document.removeEventListener("click", this._outsideHandler), this._escapeHandler && document.removeEventListener("keydown", this._escapeHandler), this._positionHandler && window.removeEventListener("resize", this._positionHandler), this._scrollHandler && window.removeEventListener("scroll", this._scrollHandler, !0), this._resizeObserver?.disconnect(), this._resizeObserver = null, this._outsideHandler = this._escapeHandler = this._positionHandler = this._scrollHandler = null;
|
|
82
|
+
}
|
|
83
|
+
_setOpenListeners() {
|
|
84
|
+
if (!this._outsideHandler) {
|
|
85
|
+
if (this._outsideHandler = (e) => {
|
|
86
|
+
let t = e.composedPath();
|
|
87
|
+
t.includes(this) || t.includes(this._trigger) || (e.target instanceof Element ? e.target : null)?.closest("[data-keep-popover-open]") || this.close();
|
|
88
|
+
}, this._escapeHandler = (e) => {
|
|
89
|
+
e.key === "Escape" && (this.close(), this._trigger?.focus?.());
|
|
90
|
+
}, this._positionHandler = () => {
|
|
91
|
+
this.isOpen() && this._position();
|
|
92
|
+
}, this._scrollHandler = () => {
|
|
93
|
+
this.isOpen() && this._position({
|
|
94
|
+
allowViewportFlip: !1,
|
|
95
|
+
clampToViewport: !1
|
|
96
|
+
});
|
|
97
|
+
}, typeof ResizeObserver < "u" && this._trigger) {
|
|
98
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
99
|
+
this.isOpen() && this._position();
|
|
100
|
+
}), this._resizeObserver.observe(this);
|
|
101
|
+
let e = this._trigger, t = 0;
|
|
102
|
+
for (; e && e !== document.documentElement && t < 8;) this._resizeObserver.observe(e), e = e.parentElement, t += 1;
|
|
103
|
+
}
|
|
104
|
+
setTimeout(() => {
|
|
105
|
+
this.isOpen() && this._outsideHandler && document.addEventListener("click", this._outsideHandler);
|
|
106
|
+
}, 0), document.addEventListener("keydown", this._escapeHandler), window.addEventListener("resize", this._positionHandler), window.addEventListener("scroll", this._scrollHandler, !0);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
_position({ allowViewportFlip: e = !0, clampToViewport: t = !0 } = {}) {
|
|
110
|
+
let n = document.getElementById(this.getTriggerId());
|
|
111
|
+
n && n !== this._trigger && this._setupTrigger();
|
|
112
|
+
let r = n || this._trigger;
|
|
113
|
+
if (!r) return;
|
|
114
|
+
let i = r.getBoundingClientRect(), a = {
|
|
115
|
+
width: this.offsetWidth,
|
|
116
|
+
height: this.offsetHeight
|
|
117
|
+
}, o = this._distancePx(), s = e ? this.getDirection() : this.dataset.direction || this.getDirection(), c = 0, l = 0, u = this.getAttribute("trigger-align") || "center";
|
|
118
|
+
if (s === "down" || s === "up") {
|
|
119
|
+
let t = i.bottom + o, n = i.top - a.height - o;
|
|
120
|
+
e && s === "down" && t + a.height > innerHeight - 12 && n >= 12 ? s = "up" : e && s === "up" && n < 12 && t + a.height <= innerHeight - 12 && (s = "down"), c = s === "down" ? t : n, l = u === "start" ? i.left : u === "end" ? i.right - a.width : i.left + (i.width - a.width) / 2;
|
|
121
|
+
} else {
|
|
122
|
+
let t = i.right + o, n = i.left - a.width - o;
|
|
123
|
+
e && s === "right" && t + a.width > innerWidth - 12 && n >= 12 ? s = "left" : e && s === "left" && n < 12 && t + a.width <= innerWidth - 12 && (s = "right"), l = s === "right" ? t : n, c = u === "start" ? i.top : u === "end" ? i.bottom - a.height : i.top + (i.height - a.height) / 2;
|
|
124
|
+
}
|
|
125
|
+
let d = t ? Math.max(12, Math.min(c, innerHeight - a.height - 12)) : c, f = t ? Math.max(12, Math.min(l, innerWidth - a.width - 12)) : l;
|
|
126
|
+
this.style.top = `${d}px`, this.style.left = `${f}px`, this.dataset.direction = s, this.style.setProperty("--mint-popover-origin-x", `${i.left + i.width / 2 - f}px`), this.style.setProperty("--mint-popover-origin-y", `${i.top + i.height / 2 - d}px`);
|
|
127
|
+
}
|
|
128
|
+
_distancePx() {
|
|
129
|
+
let e = (this.getAttribute("distance") || "8px").trim(), t = Number.parseFloat(e);
|
|
130
|
+
return Number.isFinite(t) ? e.endsWith("rem") ? t * (parseFloat(getComputedStyle(document.documentElement).fontSize) || 16) : Math.max(0, t) : 8;
|
|
131
|
+
}
|
|
132
|
+
_animateBlob(e) {
|
|
133
|
+
if (this._blobAnimation?.cancel(), this._blobAnimation = null, typeof this.animate != "function") return 0;
|
|
134
|
+
let t = getComputedStyle(this).borderRadius || ".75rem";
|
|
135
|
+
if (matchMedia("(prefers-reduced-motion: reduce)").matches) return 0;
|
|
136
|
+
let n = e ? 380 : 280, r = [
|
|
137
|
+
{
|
|
138
|
+
transform: "scale(.035, .035)",
|
|
139
|
+
borderRadius: "50%",
|
|
140
|
+
opacity: .94,
|
|
141
|
+
offset: 0
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
transform: "scale(.3, .42)",
|
|
145
|
+
borderRadius: "50%",
|
|
146
|
+
opacity: 1,
|
|
147
|
+
offset: .58
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
transform: "scale(1.035, .96)",
|
|
151
|
+
borderRadius: "1rem",
|
|
152
|
+
offset: .9
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
transform: "scale(1)",
|
|
156
|
+
borderRadius: t,
|
|
157
|
+
offset: 1
|
|
158
|
+
}
|
|
159
|
+
], i = e ? r : [...r].reverse().map(({ offset: e, ...t }) => ({
|
|
160
|
+
...t,
|
|
161
|
+
offset: 1 - e
|
|
162
|
+
}));
|
|
163
|
+
return this._blobAnimation = this.animate(i, {
|
|
164
|
+
duration: n,
|
|
165
|
+
easing: e ? "cubic-bezier(.2, .8, .2, 1)" : "cubic-bezier(.4, 0, .8, .2)",
|
|
166
|
+
fill: "both"
|
|
167
|
+
}), n;
|
|
168
|
+
}
|
|
169
|
+
render() {
|
|
170
|
+
let e = this.isOpen(), t = this.hasAttribute("data-open") || this.dataset.state === "closing", n = this.hasAttribute("data-open");
|
|
171
|
+
if (this.toggleAttribute("data-open", e), this.setAttribute("aria-hidden", String(!e)), this._trigger && this._trigger.setAttribute("aria-expanded", String(e)), e) {
|
|
172
|
+
clearTimeout(this._closeAnimationTimer);
|
|
173
|
+
let e = !n || this.dataset.state === "closing";
|
|
174
|
+
e && (this._blobAnimation?.cancel(), this._blobAnimation = null), this.dataset.state = "open", this._setOpenListeners(), this._position(), e && this._animateBlob(!0), requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
175
|
+
this.isOpen() && this._position();
|
|
176
|
+
}));
|
|
177
|
+
} else if (this._removeOpenListeners(), t) {
|
|
178
|
+
this.dataset.state = "closing";
|
|
179
|
+
let e = this._animateBlob(!1);
|
|
180
|
+
e ? this._closeAnimationTimer = setTimeout(() => {
|
|
181
|
+
this.dataset.state === "closing" && (this._blobAnimation?.cancel(), this._blobAnimation = null, this.dataset.state = "closed");
|
|
182
|
+
}, e) : this.dataset.state = "closed";
|
|
183
|
+
} else this.dataset.state = "closed";
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
typeof customElements < "u" && !customElements.get("mint-popover") && e("mint-popover", n);
|
|
187
|
+
//#endregion
|
|
188
|
+
export { n as t };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//#region src/components/theme-runtime.ts
|
|
2
|
+
var e = !1, t = !1, n = null, r = null;
|
|
3
|
+
function i() {
|
|
4
|
+
if (e || typeof window > "u" || typeof document > "u" || !window.matchMedia) return;
|
|
5
|
+
e = !0;
|
|
6
|
+
let i = document.documentElement;
|
|
7
|
+
if (t = !i.dataset.mintTheme && !i.classList.contains("dark") && !i.classList.contains("light"), !t) return;
|
|
8
|
+
n = window.matchMedia("(prefers-color-scheme: dark)");
|
|
9
|
+
let a = () => {
|
|
10
|
+
if (!t) return;
|
|
11
|
+
let e = n?.matches ?? !1;
|
|
12
|
+
r = e, i.classList.toggle("dark", e), requestAnimationFrame(() => {
|
|
13
|
+
r = null;
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
a();
|
|
17
|
+
let o = () => a();
|
|
18
|
+
n.addEventListener ? n.addEventListener("change", o) : n.addListener(o), new MutationObserver((e) => {
|
|
19
|
+
if (!t) return;
|
|
20
|
+
let a = e.some((e) => e.attributeName === "class");
|
|
21
|
+
if (e.some((e) => e.attributeName === "data-mint-theme") && i.dataset.mintTheme) {
|
|
22
|
+
t = !1;
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
a && i.classList.contains("dark") !== (n?.matches ?? !1) ? t = !1 : a && r !== null && (r = null);
|
|
26
|
+
}).observe(i, {
|
|
27
|
+
attributes: !0,
|
|
28
|
+
attributeFilter: ["class", "data-mint-theme"]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/register-element.ts
|
|
33
|
+
function a(e, t) {
|
|
34
|
+
if (i(), customElements.get(e)) return;
|
|
35
|
+
let n = t.observedAttributes ?? [], r = t.prototype;
|
|
36
|
+
for (let e of n) {
|
|
37
|
+
let t = e.replace(/-([a-z])/g, (e, t) => t.toUpperCase());
|
|
38
|
+
t in r || Object.defineProperty(r, t, {
|
|
39
|
+
configurable: !0,
|
|
40
|
+
enumerable: !0,
|
|
41
|
+
get() {
|
|
42
|
+
let t = this.getAttribute(e);
|
|
43
|
+
return t === "true" ? !0 : t === "false" ? !1 : t;
|
|
44
|
+
},
|
|
45
|
+
set(t) {
|
|
46
|
+
t == null || t === !1 ? this.removeAttribute(e) : this.setAttribute(e, String(t));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
customElements.define(e, t);
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { a as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=!1,t=!1,n=null,r=null;function i(){if(e||typeof window>`u`||typeof document>`u`||!window.matchMedia)return;e=!0;let i=document.documentElement;if(t=!i.dataset.mintTheme&&!i.classList.contains(`dark`)&&!i.classList.contains(`light`),!t)return;n=window.matchMedia(`(prefers-color-scheme: dark)`);let a=()=>{if(!t)return;let e=n?.matches??!1;r=e,i.classList.toggle(`dark`,e),requestAnimationFrame(()=>{r=null})};a();let o=()=>a();n.addEventListener?n.addEventListener(`change`,o):n.addListener(o),new MutationObserver(e=>{if(!t)return;let a=e.some(e=>e.attributeName===`class`);if(e.some(e=>e.attributeName===`data-mint-theme`)&&i.dataset.mintTheme){t=!1;return}a&&i.classList.contains(`dark`)!==(n?.matches??!1)?t=!1:a&&r!==null&&(r=null)}).observe(i,{attributes:!0,attributeFilter:[`class`,`data-mint-theme`]})}function a(e,t){if(i(),customElements.get(e))return;let n=t.observedAttributes??[],r=t.prototype;for(let e of n){let t=e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());t in r||Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get(){let t=this.getAttribute(e);return t===`true`?!0:t===`false`?!1:t},set(t){t==null||t===!1?this.removeAttribute(e):this.setAttribute(e,String(t))}})}customElements.define(e,t)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./icon-dG8sLTBn.js`).a({name:`search`,viewBox:`0 0 24 24`,path:`M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z`,strokeLinecap:`round`,strokeLinejoin:`round`});
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { t as e } from "./register-element-BFYmIynH.js";
|
|
2
|
+
//#region src/components/spinner/Spinner.js
|
|
3
|
+
var t = class extends HTMLElement {
|
|
4
|
+
static get observedAttributes() {
|
|
5
|
+
return [
|
|
6
|
+
"size",
|
|
7
|
+
"data-button-variant",
|
|
8
|
+
"data-button-tone"
|
|
9
|
+
];
|
|
10
|
+
}
|
|
11
|
+
constructor() {
|
|
12
|
+
super(), this._darkModeObserver = null;
|
|
13
|
+
}
|
|
14
|
+
connectedCallback() {
|
|
15
|
+
this.render(), this._observeDarkMode();
|
|
16
|
+
}
|
|
17
|
+
attributeChangedCallback(e, t, n) {
|
|
18
|
+
t !== n && this.render();
|
|
19
|
+
}
|
|
20
|
+
disconnectedCallback() {
|
|
21
|
+
this._darkModeObserver &&= (this._darkModeObserver.disconnect(), null);
|
|
22
|
+
}
|
|
23
|
+
_observeDarkMode() {
|
|
24
|
+
this._darkModeObserver || (this._darkModeObserver = new MutationObserver(() => {
|
|
25
|
+
this.render();
|
|
26
|
+
}), this._darkModeObserver.observe(document.documentElement, {
|
|
27
|
+
attributes: !0,
|
|
28
|
+
attributeFilter: ["class", "data-mint-theme"]
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
getSize() {
|
|
32
|
+
return (this.getAttribute("size") || "default") === "large" ? "large" : "default";
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
let e = this.getSize(), t = this.getAttribute("size") || "default", n = this.style.width && this.style.height, r = this.getAttribute("data-button-variant"), i = document.documentElement?.classList.contains("dark") || document.documentElement?.dataset.mintTheme === "dark", a;
|
|
36
|
+
if (n) {
|
|
37
|
+
let e = this.getAttribute("data-button-tone") || "neutral";
|
|
38
|
+
a = r === "solid" ? e === "neutral" ? i ? "var(--mint-color-on-primary)" : "var(--mint-color-text)" : "var(--mint-color-on-primary)" : i ? "var(--mint-color-on-primary)" : "var(--mint-color-text)";
|
|
39
|
+
} else a = "var(--mint-color-text)";
|
|
40
|
+
let o = t === "large" ? "2" : "4";
|
|
41
|
+
this.innerHTML = `
|
|
42
|
+
<svg
|
|
43
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
+
fill="none"
|
|
45
|
+
viewBox="0 0 24 24"
|
|
46
|
+
class="mint-spinner-rotate mint-spinner-size-${e}"
|
|
47
|
+
style="${this.style.width && this.style.height ? `width: ${this.style.width}; height: ${this.style.height};` : ""} --mint-spinner-rotate-duration: 0.8s; --mint-spinner-dash-duration: 1.2s;"
|
|
48
|
+
>
|
|
49
|
+
<style>
|
|
50
|
+
@keyframes mint-spinner-rotate {
|
|
51
|
+
to { transform: rotate(360deg); }
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes mint-spinner-dash-array {
|
|
55
|
+
0% { stroke-dasharray: 0 62.83; }
|
|
56
|
+
25% { stroke-dasharray: 15.7 47.13; }
|
|
57
|
+
50% { stroke-dasharray: 31.4 31.4; }
|
|
58
|
+
75% { stroke-dasharray: 15.7 47.13; }
|
|
59
|
+
100% { stroke-dasharray: 0 62.83; }
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@keyframes mint-spinner-dash-offset {
|
|
63
|
+
0% { stroke-dashoffset: 0; }
|
|
64
|
+
100% { stroke-dashoffset: -62.83; }
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.mint-spinner-rotate {
|
|
68
|
+
transform-origin: 50% 50%;
|
|
69
|
+
transform-box: fill-box;
|
|
70
|
+
animation: mint-spinner-rotate var(--mint-spinner-rotate-duration, 0.8s) linear infinite;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mint-spinner-progress {
|
|
74
|
+
animation:
|
|
75
|
+
mint-spinner-dash-array var(--mint-spinner-dash-duration, 1.2s) ease-in-out infinite,
|
|
76
|
+
mint-spinner-dash-offset var(--mint-spinner-dash-duration, 1.2s) linear infinite;
|
|
77
|
+
}
|
|
78
|
+
</style>
|
|
79
|
+
|
|
80
|
+
<circle
|
|
81
|
+
cx="12"
|
|
82
|
+
cy="12"
|
|
83
|
+
r="10"
|
|
84
|
+
stroke="${a}"
|
|
85
|
+
stroke-width="${o}"
|
|
86
|
+
opacity="0.25"
|
|
87
|
+
class="mint-spinner-track"
|
|
88
|
+
></circle>
|
|
89
|
+
<circle
|
|
90
|
+
cx="12"
|
|
91
|
+
cy="12"
|
|
92
|
+
r="10"
|
|
93
|
+
stroke="${a}"
|
|
94
|
+
stroke-width="${o}"
|
|
95
|
+
stroke-linecap="round"
|
|
96
|
+
fill="none"
|
|
97
|
+
opacity="0.75"
|
|
98
|
+
stroke-dasharray="0 62.83"
|
|
99
|
+
stroke-dashoffset="0"
|
|
100
|
+
class="mint-spinner-progress"
|
|
101
|
+
/>
|
|
102
|
+
</svg>
|
|
103
|
+
`.trim();
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
typeof customElements < "u" && !customElements.get("mint-spinner") && e("mint-spinner", t);
|
|
107
|
+
//#endregion
|
|
108
|
+
export { t };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const e=require(`./register-element-tCL_F1YI.js`);var t=class extends HTMLElement{static get observedAttributes(){return[`size`,`data-button-variant`,`data-button-tone`]}constructor(){super(),this._darkModeObserver=null}connectedCallback(){this.render(),this._observeDarkMode()}attributeChangedCallback(e,t,n){t!==n&&this.render()}disconnectedCallback(){this._darkModeObserver&&=(this._darkModeObserver.disconnect(),null)}_observeDarkMode(){this._darkModeObserver||(this._darkModeObserver=new MutationObserver(()=>{this.render()}),this._darkModeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`data-mint-theme`]}))}getSize(){return(this.getAttribute(`size`)||`default`)===`large`?`large`:`default`}render(){let e=this.getSize(),t=this.getAttribute(`size`)||`default`,n=this.style.width&&this.style.height,r=this.getAttribute(`data-button-variant`),i=document.documentElement?.classList.contains(`dark`)||document.documentElement?.dataset.mintTheme===`dark`,a;if(n){let e=this.getAttribute(`data-button-tone`)||`neutral`;a=r===`solid`?e===`neutral`?i?`var(--mint-color-on-primary)`:`var(--mint-color-text)`:`var(--mint-color-on-primary)`:i?`var(--mint-color-on-primary)`:`var(--mint-color-text)`}else a=`var(--mint-color-text)`;let o=t===`large`?`2`:`4`;this.innerHTML=`
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
fill="none"
|
|
5
|
+
viewBox="0 0 24 24"
|
|
6
|
+
class="mint-spinner-rotate mint-spinner-size-${e}"
|
|
7
|
+
style="${this.style.width&&this.style.height?`width: ${this.style.width}; height: ${this.style.height};`:``} --mint-spinner-rotate-duration: 0.8s; --mint-spinner-dash-duration: 1.2s;"
|
|
8
|
+
>
|
|
9
|
+
<style>
|
|
10
|
+
@keyframes mint-spinner-rotate {
|
|
11
|
+
to { transform: rotate(360deg); }
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@keyframes mint-spinner-dash-array {
|
|
15
|
+
0% { stroke-dasharray: 0 62.83; }
|
|
16
|
+
25% { stroke-dasharray: 15.7 47.13; }
|
|
17
|
+
50% { stroke-dasharray: 31.4 31.4; }
|
|
18
|
+
75% { stroke-dasharray: 15.7 47.13; }
|
|
19
|
+
100% { stroke-dasharray: 0 62.83; }
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@keyframes mint-spinner-dash-offset {
|
|
23
|
+
0% { stroke-dashoffset: 0; }
|
|
24
|
+
100% { stroke-dashoffset: -62.83; }
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mint-spinner-rotate {
|
|
28
|
+
transform-origin: 50% 50%;
|
|
29
|
+
transform-box: fill-box;
|
|
30
|
+
animation: mint-spinner-rotate var(--mint-spinner-rotate-duration, 0.8s) linear infinite;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.mint-spinner-progress {
|
|
34
|
+
animation:
|
|
35
|
+
mint-spinner-dash-array var(--mint-spinner-dash-duration, 1.2s) ease-in-out infinite,
|
|
36
|
+
mint-spinner-dash-offset var(--mint-spinner-dash-duration, 1.2s) linear infinite;
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
39
|
+
|
|
40
|
+
<circle
|
|
41
|
+
cx="12"
|
|
42
|
+
cy="12"
|
|
43
|
+
r="10"
|
|
44
|
+
stroke="${a}"
|
|
45
|
+
stroke-width="${o}"
|
|
46
|
+
opacity="0.25"
|
|
47
|
+
class="mint-spinner-track"
|
|
48
|
+
></circle>
|
|
49
|
+
<circle
|
|
50
|
+
cx="12"
|
|
51
|
+
cy="12"
|
|
52
|
+
r="10"
|
|
53
|
+
stroke="${a}"
|
|
54
|
+
stroke-width="${o}"
|
|
55
|
+
stroke-linecap="round"
|
|
56
|
+
fill="none"
|
|
57
|
+
opacity="0.75"
|
|
58
|
+
stroke-dasharray="0 62.83"
|
|
59
|
+
stroke-dashoffset="0"
|
|
60
|
+
class="mint-spinner-progress"
|
|
61
|
+
/>
|
|
62
|
+
</svg>
|
|
63
|
+
`.trim()}};typeof customElements<`u`&&!customElements.get(`mint-spinner`)&&e.t(`mint-spinner`,t),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./register-element-tCL_F1YI.js`);var t=class extends HTMLElement{static get observedAttributes(){return[`direction`,`text-align`,`gap`,`align-content`]}connectedCallback(){this.classList.add(`mint-stack`),this.render()}attributeChangedCallback(e,t,n){t!==n&&this.render()}getDirection(){return this.getAttribute(`direction`)===`horizontal`?`horizontal`:`vertical`}getGap(){let e=Number.parseFloat(this.getAttribute(`gap`)||`3`);return Number.isFinite(e)?Math.min(12,Math.max(1,Math.round(e))):3}getTextAlign(){let e=this.getAttribute(`text-align`)||``;return[`left`,`center`,`right`,`justify`].includes(e)?e:``}getAlignContent(){let e=(this.getAttribute(`align-content`)||``).trim().toLowerCase();return e===`left`||e===`start`?`left`:e===`right`||e===`end`?`right`:e===`center`||e===`middle`?`center`:``}render(){let e=this.getDirection(),t=this.getAlignContent(),n=this.getTextAlign();this.classList.add(`mint-stack`),this.style.setProperty(`--mint-stack-direction`,e===`horizontal`?`row`:`column`),this.style.setProperty(`--mint-stack-gap`,`${this.getGap()*.25}rem`),this.style.setProperty(`--mint-stack-align-items`,e===`vertical`&&t?{left:`flex-start`,right:`flex-end`,center:`center`}[t]:`stretch`),this.style.setProperty(`--mint-stack-justify-content`,e===`horizontal`&&t?{left:`flex-start`,right:`flex-end`,center:`center`}[t]:`flex-start`),this.style.setProperty(`--mint-stack-text-align`,n||`initial`)}};typeof customElements<`u`&&!customElements.get(`mint-stack`)&&e.t(`mint-stack`,t),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { t as e } from "./register-element-BFYmIynH.js";
|
|
2
|
+
//#region src/components/stack/Stack.js
|
|
3
|
+
var t = class extends HTMLElement {
|
|
4
|
+
static get observedAttributes() {
|
|
5
|
+
return [
|
|
6
|
+
"direction",
|
|
7
|
+
"text-align",
|
|
8
|
+
"gap",
|
|
9
|
+
"align-content"
|
|
10
|
+
];
|
|
11
|
+
}
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
this.classList.add("mint-stack"), this.render();
|
|
14
|
+
}
|
|
15
|
+
attributeChangedCallback(e, t, n) {
|
|
16
|
+
t !== n && this.render();
|
|
17
|
+
}
|
|
18
|
+
getDirection() {
|
|
19
|
+
return this.getAttribute("direction") === "horizontal" ? "horizontal" : "vertical";
|
|
20
|
+
}
|
|
21
|
+
getGap() {
|
|
22
|
+
let e = Number.parseFloat(this.getAttribute("gap") || "3");
|
|
23
|
+
return Number.isFinite(e) ? Math.min(12, Math.max(1, Math.round(e))) : 3;
|
|
24
|
+
}
|
|
25
|
+
getTextAlign() {
|
|
26
|
+
let e = this.getAttribute("text-align") || "";
|
|
27
|
+
return [
|
|
28
|
+
"left",
|
|
29
|
+
"center",
|
|
30
|
+
"right",
|
|
31
|
+
"justify"
|
|
32
|
+
].includes(e) ? e : "";
|
|
33
|
+
}
|
|
34
|
+
getAlignContent() {
|
|
35
|
+
let e = (this.getAttribute("align-content") || "").trim().toLowerCase();
|
|
36
|
+
return e === "left" || e === "start" ? "left" : e === "right" || e === "end" ? "right" : e === "center" || e === "middle" ? "center" : "";
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
let e = this.getDirection(), t = this.getAlignContent(), n = this.getTextAlign();
|
|
40
|
+
this.classList.add("mint-stack"), this.style.setProperty("--mint-stack-direction", e === "horizontal" ? "row" : "column"), this.style.setProperty("--mint-stack-gap", `${this.getGap() * .25}rem`), this.style.setProperty("--mint-stack-align-items", e === "vertical" && t ? {
|
|
41
|
+
left: "flex-start",
|
|
42
|
+
right: "flex-end",
|
|
43
|
+
center: "center"
|
|
44
|
+
}[t] : "stretch"), this.style.setProperty("--mint-stack-justify-content", e === "horizontal" && t ? {
|
|
45
|
+
left: "flex-start",
|
|
46
|
+
right: "flex-end",
|
|
47
|
+
center: "center"
|
|
48
|
+
}[t] : "flex-start"), this.style.setProperty("--mint-stack-text-align", n || "initial");
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
typeof customElements < "u" && !customElements.get("mint-stack") && e("mint-stack", t);
|
|
52
|
+
//#endregion
|
|
53
|
+
export { t };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { t as e } from "./register-element-BFYmIynH.js";
|
|
2
|
+
//#region src/components/table/Table.ts
|
|
3
|
+
var t = class extends HTMLElement {
|
|
4
|
+
constructor(...e) {
|
|
5
|
+
super(...e), this._observer = null;
|
|
6
|
+
}
|
|
7
|
+
connectedCallback() {
|
|
8
|
+
this.classList.add("mint-table-host"), this._observeChanges(), this._applyStyles(), requestAnimationFrame(() => {
|
|
9
|
+
this._applyStyles(), setTimeout(() => this._applyStyles(), 0);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
disconnectedCallback() {
|
|
13
|
+
this._observer?.disconnect(), this._observer = null;
|
|
14
|
+
}
|
|
15
|
+
_observeChanges() {
|
|
16
|
+
this._observer = new MutationObserver(() => this._applyStyles()), this._observer.observe(this, {
|
|
17
|
+
childList: !0,
|
|
18
|
+
subtree: !0,
|
|
19
|
+
attributes: !1
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
_applyStyles() {
|
|
23
|
+
this._observer?.disconnect();
|
|
24
|
+
let e = Array.from(this.querySelectorAll("table"));
|
|
25
|
+
if (e.length === 0) {
|
|
26
|
+
this._observer && this._observeChanges();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
e.forEach((e) => {
|
|
30
|
+
let t = !!e.closest("[id^=\"mint-rt-vscroll-\"]") || !!e.closest("mint-resource-table[data-mint-rt-fixed-header]");
|
|
31
|
+
e.classList.add("mint-table-native"), e.classList.toggle("mint-table-pinned-layout", t);
|
|
32
|
+
});
|
|
33
|
+
let t = e.find((e) => e.querySelector("thead")) ?? e[0], n = e.find((e) => e.querySelector("tbody")) ?? e[0], r = t.querySelector("thead");
|
|
34
|
+
r && r.querySelectorAll("th").forEach((e) => {
|
|
35
|
+
let t = e.querySelector("mint-icon"), n = t?.getAttribute("name") || "", r = e.hasAttribute("data-mint-rt-sortable") || t !== null && n !== "ellipsis";
|
|
36
|
+
e.classList.toggle("mint-table-sortable", r);
|
|
37
|
+
let i = e.closest("table"), a = i?.closest("mint-resource-table"), o = !!i?.closest("[id^=\"mint-rt-vscroll-\"]") || !!a?.hasAttribute("data-mint-rt-fixed-header");
|
|
38
|
+
e.classList.toggle("mint-table-pinned-header", o);
|
|
39
|
+
});
|
|
40
|
+
let i = n.querySelector("tbody");
|
|
41
|
+
if (i) {
|
|
42
|
+
let e = Array.from(i.querySelectorAll("tr")), t = !!n.closest("[id^=\"mint-rt-vscroll-\"]") || !!n.closest("mint-resource-table")?.hasAttribute("data-mint-rt-fixed-header"), r = e.findIndex((e) => e.getAttribute("data-mint-rt-spacer") === "bottom");
|
|
43
|
+
e.forEach((n, i) => {
|
|
44
|
+
let a = n.hasAttribute("data-mint-rt-spacer"), o = n.hasAttribute("data-row-clickable");
|
|
45
|
+
n.classList.toggle("mint-table-spacer", a), n.classList.toggle("mint-table-clickable", o && !a), n.classList.toggle("mint-table-row-bordered", !a && !t && i !== e.length - 1), Array.from(n.querySelectorAll("td")).forEach((o) => {
|
|
46
|
+
let s = n.hasAttribute("data-mint-rt-last-row"), c = r === -1 && i === e.length - 1;
|
|
47
|
+
o.classList.toggle("mint-table-cell-bordered", t && !a && !s && !c), this._restoreCell(o);
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
n.querySelectorAll("tfoot td").forEach((e) => this._restoreCell(e)), this._observer && this._observeChanges();
|
|
52
|
+
}
|
|
53
|
+
_restoreCell(e) {
|
|
54
|
+
if (e.dataset.mtProcessed !== "true") return;
|
|
55
|
+
let t = {};
|
|
56
|
+
Array.from(e.attributes).forEach((e) => {
|
|
57
|
+
e.name.startsWith("data-") && e.name !== "data-original" && e.name !== "data-mt-processed" && (t[e.name] = e.value);
|
|
58
|
+
});
|
|
59
|
+
let n = e.getAttribute("data-original") || "";
|
|
60
|
+
e.dataset.mtProcessed = "", e.innerHTML = n, Object.entries(t).forEach(([t, n]) => e.setAttribute(t, n));
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
customElements.get("mint-table") || e("mint-table", t);
|
|
64
|
+
//#endregion
|
|
65
|
+
export { t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./register-element-tCL_F1YI.js`);var t=class extends HTMLElement{constructor(...e){super(...e),this._observer=null}connectedCallback(){this.classList.add(`mint-table-host`),this._observeChanges(),this._applyStyles(),requestAnimationFrame(()=>{this._applyStyles(),setTimeout(()=>this._applyStyles(),0)})}disconnectedCallback(){this._observer?.disconnect(),this._observer=null}_observeChanges(){this._observer=new MutationObserver(()=>this._applyStyles()),this._observer.observe(this,{childList:!0,subtree:!0,attributes:!1})}_applyStyles(){this._observer?.disconnect();let e=Array.from(this.querySelectorAll(`table`));if(e.length===0){this._observer&&this._observeChanges();return}e.forEach(e=>{let t=!!e.closest(`[id^="mint-rt-vscroll-"]`)||!!e.closest(`mint-resource-table[data-mint-rt-fixed-header]`);e.classList.add(`mint-table-native`),e.classList.toggle(`mint-table-pinned-layout`,t)});let t=e.find(e=>e.querySelector(`thead`))??e[0],n=e.find(e=>e.querySelector(`tbody`))??e[0],r=t.querySelector(`thead`);r&&r.querySelectorAll(`th`).forEach(e=>{let t=e.querySelector(`mint-icon`),n=t?.getAttribute(`name`)||``,r=e.hasAttribute(`data-mint-rt-sortable`)||t!==null&&n!==`ellipsis`;e.classList.toggle(`mint-table-sortable`,r);let i=e.closest(`table`),a=i?.closest(`mint-resource-table`),o=!!i?.closest(`[id^="mint-rt-vscroll-"]`)||!!a?.hasAttribute(`data-mint-rt-fixed-header`);e.classList.toggle(`mint-table-pinned-header`,o)});let i=n.querySelector(`tbody`);if(i){let e=Array.from(i.querySelectorAll(`tr`)),t=!!n.closest(`[id^="mint-rt-vscroll-"]`)||!!n.closest(`mint-resource-table`)?.hasAttribute(`data-mint-rt-fixed-header`),r=e.findIndex(e=>e.getAttribute(`data-mint-rt-spacer`)===`bottom`);e.forEach((n,i)=>{let a=n.hasAttribute(`data-mint-rt-spacer`),o=n.hasAttribute(`data-row-clickable`);n.classList.toggle(`mint-table-spacer`,a),n.classList.toggle(`mint-table-clickable`,o&&!a),n.classList.toggle(`mint-table-row-bordered`,!a&&!t&&i!==e.length-1),Array.from(n.querySelectorAll(`td`)).forEach(o=>{let s=n.hasAttribute(`data-mint-rt-last-row`),c=r===-1&&i===e.length-1;o.classList.toggle(`mint-table-cell-bordered`,t&&!a&&!s&&!c),this._restoreCell(o)})})}n.querySelectorAll(`tfoot td`).forEach(e=>this._restoreCell(e)),this._observer&&this._observeChanges()}_restoreCell(e){if(e.dataset.mtProcessed!==`true`)return;let t={};Array.from(e.attributes).forEach(e=>{e.name.startsWith(`data-`)&&e.name!==`data-original`&&e.name!==`data-mt-processed`&&(t[e.name]=e.value)});let n=e.getAttribute(`data-original`)||``;e.dataset.mtProcessed=``,e.innerHTML=n,Object.entries(t).forEach(([t,n])=>e.setAttribute(t,n))}};customElements.get(`mint-table`)||e.t(`mint-table`,t),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { t as e } from "./register-element-BFYmIynH.js";
|
|
2
|
+
//#region src/components/text/Text.js
|
|
3
|
+
var t = class extends HTMLElement {
|
|
4
|
+
static get observedAttributes() {
|
|
5
|
+
return [
|
|
6
|
+
"variant",
|
|
7
|
+
"size",
|
|
8
|
+
"bold",
|
|
9
|
+
"underline",
|
|
10
|
+
"strike",
|
|
11
|
+
"italic",
|
|
12
|
+
"display",
|
|
13
|
+
"inline"
|
|
14
|
+
];
|
|
15
|
+
}
|
|
16
|
+
constructor() {
|
|
17
|
+
super(), this._darkModeObserver = null;
|
|
18
|
+
}
|
|
19
|
+
connectedCallback() {
|
|
20
|
+
this.render();
|
|
21
|
+
}
|
|
22
|
+
attributeChangedCallback(e, t, n) {
|
|
23
|
+
t !== n && this.render();
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() {
|
|
26
|
+
this._darkModeObserver &&= (this._darkModeObserver.disconnect(), null);
|
|
27
|
+
}
|
|
28
|
+
_observeDarkMode() {
|
|
29
|
+
if (!this._darkModeObserver) {
|
|
30
|
+
if (this._darkModeObserver = new MutationObserver(() => {
|
|
31
|
+
this.render();
|
|
32
|
+
}), !document.documentElement) return;
|
|
33
|
+
this._darkModeObserver.observe(document.documentElement, {
|
|
34
|
+
attributes: !0,
|
|
35
|
+
attributeFilter: ["class", "data-mint-theme"]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
getVariant() {
|
|
40
|
+
return this.getAttribute("variant") || "default";
|
|
41
|
+
}
|
|
42
|
+
getSize() {
|
|
43
|
+
return this.getAttribute("size") || "regular";
|
|
44
|
+
}
|
|
45
|
+
isBold() {
|
|
46
|
+
return this.hasAttribute("bold");
|
|
47
|
+
}
|
|
48
|
+
isUnderline() {
|
|
49
|
+
return this.hasAttribute("underline");
|
|
50
|
+
}
|
|
51
|
+
isStrike() {
|
|
52
|
+
return this.hasAttribute("strike");
|
|
53
|
+
}
|
|
54
|
+
isItalic() {
|
|
55
|
+
return this.hasAttribute("italic");
|
|
56
|
+
}
|
|
57
|
+
getDisplay() {
|
|
58
|
+
return this.hasAttribute("display") ? this.getAttribute("display") : this.getSize() === "regular" ? "inline-block" : "block";
|
|
59
|
+
}
|
|
60
|
+
getTextClasses() {
|
|
61
|
+
return this.className;
|
|
62
|
+
}
|
|
63
|
+
render() {}
|
|
64
|
+
};
|
|
65
|
+
typeof customElements < "u" && !customElements.get("mint-text") && e("mint-text", t);
|
|
66
|
+
//#endregion
|
|
67
|
+
export { t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./register-element-tCL_F1YI.js`);var t=class extends HTMLElement{static get observedAttributes(){return[`variant`,`size`,`bold`,`underline`,`strike`,`italic`,`display`,`inline`]}constructor(){super(),this._darkModeObserver=null}connectedCallback(){this.render()}attributeChangedCallback(e,t,n){t!==n&&this.render()}disconnectedCallback(){this._darkModeObserver&&=(this._darkModeObserver.disconnect(),null)}_observeDarkMode(){if(!this._darkModeObserver){if(this._darkModeObserver=new MutationObserver(()=>{this.render()}),!document.documentElement)return;this._darkModeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`data-mint-theme`]})}}getVariant(){return this.getAttribute(`variant`)||`default`}getSize(){return this.getAttribute(`size`)||`regular`}isBold(){return this.hasAttribute(`bold`)}isUnderline(){return this.hasAttribute(`underline`)}isStrike(){return this.hasAttribute(`strike`)}isItalic(){return this.hasAttribute(`italic`)}getDisplay(){return this.hasAttribute(`display`)?this.getAttribute(`display`):this.getSize()===`regular`?`inline-block`:`block`}getTextClasses(){return this.className}render(){}};typeof customElements<`u`&&!customElements.get(`mint-text`)&&e.t(`mint-text`,t),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
private _clickHandler;
|
|
3
|
-
private _keydownHandler;
|
|
4
|
-
connectedCallback(): void;
|
|
5
|
-
disconnectedCallback(): void;
|
|
6
|
-
private _render;
|
|
7
|
-
private _setupEventListeners;
|
|
8
|
-
private _cleanupEventListeners;
|
|
9
|
-
private _handleClick;
|
|
10
|
-
static get observedAttributes(): string[];
|
|
11
|
-
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
12
|
-
}
|
|
13
|
-
export default MintClickable;
|
|
14
|
-
//# sourceMappingURL=Clickable.d.ts.map
|
|
1
|
+
export { MintClickable as default, MintClickable } from '../../mintui-elements'
|