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,380 @@
|
|
|
1
|
+
import "./icon-gQAtsERy.js";
|
|
2
|
+
import { t as e } from "./register-element-BFYmIynH.js";
|
|
3
|
+
import "./icon-C0OLmjDY.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import "./spinner-BsaFHuS6.js";
|
|
6
|
+
//#region src/components/button/Button.ts
|
|
7
|
+
var t = class extends HTMLElement {
|
|
8
|
+
static get observedAttributes() {
|
|
9
|
+
return [
|
|
10
|
+
"variant",
|
|
11
|
+
"tone",
|
|
12
|
+
"disabled",
|
|
13
|
+
"loading",
|
|
14
|
+
"button-type",
|
|
15
|
+
"type",
|
|
16
|
+
"full-width",
|
|
17
|
+
"icon-position",
|
|
18
|
+
"icon",
|
|
19
|
+
"active",
|
|
20
|
+
"align",
|
|
21
|
+
"aria-label"
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
constructor() {
|
|
25
|
+
super(), this._button = null, this._clickHandler = null, this._isHandlingClick = !1, this._hostChildObserver = null, this._hostRenderFromObserverRaf = null, this._handleMouseDown = () => {
|
|
26
|
+
this._button && !this.isDisabled() && !this.isLoading() && this._button.classList.add("mint-button-active");
|
|
27
|
+
}, this._handleMouseUp = () => {
|
|
28
|
+
this._button && (this.isActive() || this._button.classList.remove("mint-button-active"));
|
|
29
|
+
}, this._handleMouseLeave = () => {
|
|
30
|
+
this._button && (this.isActive() || this._button.classList.remove("mint-button-active"));
|
|
31
|
+
}, this._handleTouchStart = () => {
|
|
32
|
+
this._button && !this.isDisabled() && !this.isLoading() && this._button.classList.add("mint-button-active");
|
|
33
|
+
}, this._handleTouchEnd = () => {
|
|
34
|
+
this._button && (this.isActive() || this._button.classList.remove("mint-button-active"));
|
|
35
|
+
}, this._handleTouchCancel = () => {
|
|
36
|
+
this._button && (this.isActive() || this._button.classList.remove("mint-button-active"));
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
_getGeneratedIcon() {
|
|
40
|
+
return this._button ? this._button.querySelector(":scope > [data-generated-icon=\"true\"]") : null;
|
|
41
|
+
}
|
|
42
|
+
_getContentWrapperClass(e) {
|
|
43
|
+
return "mint-button-content";
|
|
44
|
+
}
|
|
45
|
+
connectedCallback() {
|
|
46
|
+
this.render(), this._button && this.setupEventListeners();
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
this._disconnectHostChildObserver(), this._hostRenderFromObserverRaf !== null && (cancelAnimationFrame(this._hostRenderFromObserverRaf), this._hostRenderFromObserverRaf = null), this.removeEventListeners();
|
|
50
|
+
}
|
|
51
|
+
attributeChangedCallback(e, t, n) {
|
|
52
|
+
t !== n && this.render();
|
|
53
|
+
}
|
|
54
|
+
getVariant() {
|
|
55
|
+
let e = this.getAttribute("variant");
|
|
56
|
+
return e === "ghost" || e === "outline" ? e : "solid";
|
|
57
|
+
}
|
|
58
|
+
getTone() {
|
|
59
|
+
return this.getAttribute("tone") || "neutral";
|
|
60
|
+
}
|
|
61
|
+
isDisabled() {
|
|
62
|
+
return this.getAttribute("disabled") === "true";
|
|
63
|
+
}
|
|
64
|
+
isLoading() {
|
|
65
|
+
return this.getAttribute("loading") === "true";
|
|
66
|
+
}
|
|
67
|
+
getType() {
|
|
68
|
+
let e = this.getAttribute("type"), t = this.getAttribute("button-type");
|
|
69
|
+
return (e || t || "default") === "submit" ? "submit" : "button";
|
|
70
|
+
}
|
|
71
|
+
isFullWidth() {
|
|
72
|
+
return this.getAttribute("full-width") === "true";
|
|
73
|
+
}
|
|
74
|
+
isActive() {
|
|
75
|
+
return this.getAttribute("active") === "true";
|
|
76
|
+
}
|
|
77
|
+
get active() {
|
|
78
|
+
return this.isActive();
|
|
79
|
+
}
|
|
80
|
+
set active(e) {
|
|
81
|
+
e ? this.setAttribute("active", "true") : this.removeAttribute("active");
|
|
82
|
+
}
|
|
83
|
+
getIconPosition() {
|
|
84
|
+
return this.getAttribute("icon-position") || "left";
|
|
85
|
+
}
|
|
86
|
+
getIcon() {
|
|
87
|
+
return this.getAttribute("icon") || "";
|
|
88
|
+
}
|
|
89
|
+
getAlignment() {
|
|
90
|
+
let e = this.getAttribute("align");
|
|
91
|
+
return e === "left" || e === "center" || e === "right" ? e : "center";
|
|
92
|
+
}
|
|
93
|
+
isIconOnly() {
|
|
94
|
+
if (!(this.getIcon() || this._getGeneratedIcon() || this._button?.querySelector("mint-icon"))) return !1;
|
|
95
|
+
let e = this._button?.querySelector(".mint-button-content");
|
|
96
|
+
if (e && e.textContent?.trim()) return !1;
|
|
97
|
+
if (this._button) for (let e = this._button.firstChild; e; e = e.nextSibling) {
|
|
98
|
+
if (e.nodeType === Node.TEXT_NODE && e.textContent?.trim()) return !1;
|
|
99
|
+
if (e.nodeType === Node.ELEMENT_NODE) {
|
|
100
|
+
let t = e;
|
|
101
|
+
if (t.tagName !== "MINT-ICON" && t.tagName !== "MINT-SPINNER" && !t.querySelector("mint-spinner") && !t.hasAttribute("slot") && t.className !== "mint-button-icon" && !(t.classList.contains("mint-button-spinner-wrap") && t.querySelector("mint-spinner")) && t.textContent?.trim()) return !1;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return !0;
|
|
105
|
+
}
|
|
106
|
+
getActiveStateClasses() {
|
|
107
|
+
let e = `${this.getVariant()}-${this.getTone()}`;
|
|
108
|
+
return {
|
|
109
|
+
"solid-action": [
|
|
110
|
+
"!bg-neutral-900",
|
|
111
|
+
"dark:!bg-neutral-700",
|
|
112
|
+
"hover:!bg-neutral-900",
|
|
113
|
+
"dark:hover:!bg-neutral-700",
|
|
114
|
+
"!border-t-neutral-900",
|
|
115
|
+
"!border-l-neutral-900",
|
|
116
|
+
"!border-r-neutral-600",
|
|
117
|
+
"!border-b-neutral-600",
|
|
118
|
+
"dark:!border-t-neutral-700",
|
|
119
|
+
"dark:!border-l-neutral-700",
|
|
120
|
+
"dark:!border-r-neutral-500",
|
|
121
|
+
"dark:!border-b-neutral-500"
|
|
122
|
+
],
|
|
123
|
+
"solid-neutral": [
|
|
124
|
+
"!bg-gray-100",
|
|
125
|
+
"dark:!bg-mint-hover",
|
|
126
|
+
"hover:!bg-gray-100",
|
|
127
|
+
"dark:hover:!bg-mint-hover",
|
|
128
|
+
"!border-t-gray-400",
|
|
129
|
+
"!border-l-gray-400",
|
|
130
|
+
"!border-r-gray-200",
|
|
131
|
+
"!border-b-gray-200",
|
|
132
|
+
"dark:!border-t-gray-950",
|
|
133
|
+
"dark:!border-l-gray-950",
|
|
134
|
+
"dark:!border-r-mint-divider",
|
|
135
|
+
"dark:!border-b-mint-divider"
|
|
136
|
+
],
|
|
137
|
+
"solid-info": [
|
|
138
|
+
"!bg-blue-900",
|
|
139
|
+
"dark:!bg-blue-700",
|
|
140
|
+
"hover:!bg-blue-900",
|
|
141
|
+
"dark:hover:!bg-blue-700",
|
|
142
|
+
"!border-t-blue-900",
|
|
143
|
+
"!border-l-blue-900",
|
|
144
|
+
"!border-r-blue-600",
|
|
145
|
+
"!border-b-blue-600",
|
|
146
|
+
"dark:!border-t-blue-700",
|
|
147
|
+
"dark:!border-l-blue-700",
|
|
148
|
+
"dark:!border-r-blue-500",
|
|
149
|
+
"dark:!border-b-blue-500"
|
|
150
|
+
],
|
|
151
|
+
"solid-warning": [
|
|
152
|
+
"!bg-amber-900",
|
|
153
|
+
"dark:!bg-amber-700",
|
|
154
|
+
"hover:!bg-amber-900",
|
|
155
|
+
"dark:hover:!bg-amber-700",
|
|
156
|
+
"!border-t-amber-900",
|
|
157
|
+
"!border-l-amber-900",
|
|
158
|
+
"!border-r-amber-600",
|
|
159
|
+
"!border-b-amber-600",
|
|
160
|
+
"dark:!border-t-amber-700",
|
|
161
|
+
"dark:!border-l-amber-700",
|
|
162
|
+
"dark:!border-r-amber-500",
|
|
163
|
+
"dark:!border-b-amber-500"
|
|
164
|
+
],
|
|
165
|
+
"solid-danger": [
|
|
166
|
+
"!bg-red-900",
|
|
167
|
+
"dark:!bg-red-700",
|
|
168
|
+
"hover:!bg-red-900",
|
|
169
|
+
"dark:hover:!bg-red-700",
|
|
170
|
+
"!border-t-red-900",
|
|
171
|
+
"!border-l-red-900",
|
|
172
|
+
"!border-r-red-600",
|
|
173
|
+
"!border-b-red-600",
|
|
174
|
+
"dark:!border-t-red-700",
|
|
175
|
+
"dark:!border-l-red-700",
|
|
176
|
+
"dark:!border-r-red-500",
|
|
177
|
+
"dark:!border-b-red-500"
|
|
178
|
+
],
|
|
179
|
+
"ghost-action": [
|
|
180
|
+
"!bg-gray-100",
|
|
181
|
+
"!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]",
|
|
182
|
+
"dark:!bg-mint-hover",
|
|
183
|
+
"hover:!bg-gray-100",
|
|
184
|
+
"dark:hover:!bg-mint-hover",
|
|
185
|
+
"hover:!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]"
|
|
186
|
+
],
|
|
187
|
+
"ghost-neutral": [
|
|
188
|
+
"!bg-gray-50",
|
|
189
|
+
"!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]",
|
|
190
|
+
"dark:!bg-mint-hover",
|
|
191
|
+
"!text-gray-900",
|
|
192
|
+
"dark:!text-white",
|
|
193
|
+
"hover:!bg-gray-50",
|
|
194
|
+
"dark:hover:!bg-mint-hover",
|
|
195
|
+
"hover:!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]",
|
|
196
|
+
"hover:!text-gray-900",
|
|
197
|
+
"dark:hover:!text-white"
|
|
198
|
+
],
|
|
199
|
+
"ghost-info": [
|
|
200
|
+
"!bg-gray-100",
|
|
201
|
+
"!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]",
|
|
202
|
+
"dark:!bg-mint-hover",
|
|
203
|
+
"hover:!bg-gray-100",
|
|
204
|
+
"dark:hover:!bg-mint-hover",
|
|
205
|
+
"hover:!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]"
|
|
206
|
+
],
|
|
207
|
+
"ghost-warning": [
|
|
208
|
+
"!bg-gray-100",
|
|
209
|
+
"!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]",
|
|
210
|
+
"dark:!bg-mint-hover",
|
|
211
|
+
"hover:!bg-gray-100",
|
|
212
|
+
"dark:hover:!bg-mint-hover",
|
|
213
|
+
"hover:!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]"
|
|
214
|
+
],
|
|
215
|
+
"ghost-danger": [
|
|
216
|
+
"!bg-gray-100",
|
|
217
|
+
"!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]",
|
|
218
|
+
"dark:!bg-mint-hover",
|
|
219
|
+
"hover:!bg-gray-100",
|
|
220
|
+
"dark:hover:!bg-mint-hover",
|
|
221
|
+
"hover:!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]"
|
|
222
|
+
]
|
|
223
|
+
}[e] || [];
|
|
224
|
+
}
|
|
225
|
+
_disconnectHostChildObserver() {
|
|
226
|
+
this._hostChildObserver?.disconnect();
|
|
227
|
+
}
|
|
228
|
+
_connectHostChildObserver() {
|
|
229
|
+
this.isConnected && (this._hostChildObserver ||= new MutationObserver((e) => {
|
|
230
|
+
this._onLightDomMutation(e);
|
|
231
|
+
}), this._hostChildObserver.disconnect(), this._hostChildObserver.observe(this, {
|
|
232
|
+
childList: !0,
|
|
233
|
+
subtree: !0,
|
|
234
|
+
characterData: !0
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
_onLightDomMutation(e) {
|
|
238
|
+
if (this.isConnected) {
|
|
239
|
+
if (this._button && !this._button.isConnected) {
|
|
240
|
+
this._button = null, this._scheduleRenderFromHostObserver();
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
for (let t of e) {
|
|
244
|
+
let e = t.target;
|
|
245
|
+
if (!(this._button && (e === this._button || this._button.contains(e)))) {
|
|
246
|
+
this._scheduleRenderFromHostObserver();
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
_scheduleRenderFromHostObserver() {
|
|
253
|
+
this._hostRenderFromObserverRaf === null && (this._hostRenderFromObserverRaf = requestAnimationFrame(() => {
|
|
254
|
+
this._hostRenderFromObserverRaf = null, this.isConnected && this.render();
|
|
255
|
+
}));
|
|
256
|
+
}
|
|
257
|
+
getButtonClasses() {
|
|
258
|
+
let e = [
|
|
259
|
+
"mint-button-core",
|
|
260
|
+
`mint-button-${this.getVariant()}`,
|
|
261
|
+
`mint-button-tone-${this.getTone()}`
|
|
262
|
+
];
|
|
263
|
+
return this.isIconOnly() && e.push("mint-button-icon-only"), this.isFullWidth() && e.push("mint-button-full-width"), e.join(" ");
|
|
264
|
+
}
|
|
265
|
+
render() {
|
|
266
|
+
this._disconnectHostChildObserver(), this._button && !this._button.isConnected && (this._button = null);
|
|
267
|
+
try {
|
|
268
|
+
let e = this.isLoading(), t = this.isDisabled() || e, n = this.getType();
|
|
269
|
+
if (!this._button) {
|
|
270
|
+
let e = this.firstElementChild;
|
|
271
|
+
if (e instanceof HTMLButtonElement) this._button = e;
|
|
272
|
+
else {
|
|
273
|
+
for (this._button = document.createElement("button"); this.firstChild;) this._button.appendChild(this.firstChild);
|
|
274
|
+
this.appendChild(this._button);
|
|
275
|
+
}
|
|
276
|
+
this.setupEventListeners();
|
|
277
|
+
}
|
|
278
|
+
this._button.type = n, this._button.disabled = t, this._button.setAttribute("aria-busy", String(e));
|
|
279
|
+
let r = this._button.querySelector("mint-spinner");
|
|
280
|
+
if (e) if (r) r.setAttribute("data-button-variant", this.getVariant()), r.setAttribute("data-button-tone", this.getTone()), "render" in r && typeof r.render == "function" && r.render();
|
|
281
|
+
else {
|
|
282
|
+
let e = document.createElement("span");
|
|
283
|
+
e.className = "mint-button-spinner-wrap";
|
|
284
|
+
let t = document.createElement("mint-spinner");
|
|
285
|
+
t.setAttribute("size", "default"), t.setAttribute("data-button-variant", this.getVariant()), t.setAttribute("data-button-tone", this.getTone()), t.style.width = "0.875rem", t.style.height = "0.875rem", e.appendChild(t), this._button.insertBefore(e, this._button.firstChild);
|
|
286
|
+
}
|
|
287
|
+
else r && r.parentElement?.remove();
|
|
288
|
+
for (; this.firstChild && this.firstChild !== this._button;) this._button.appendChild(this.firstChild);
|
|
289
|
+
let i = this.getIcon(), a = this._getGeneratedIcon();
|
|
290
|
+
i ? (a || (a = document.createElement("mint-icon"), a.setAttribute("data-generated-icon", "true"), a.className = "mint-button-icon"), a.setAttribute("name", i)) : a && a.tagName === "MINT-ICON" && (a.remove(), a = null);
|
|
291
|
+
let o = this.getIconPosition(), s = this._button.querySelector(".mint-button-content");
|
|
292
|
+
if (s) {
|
|
293
|
+
s.className = this._getContentWrapperClass(s);
|
|
294
|
+
let e = a && a.tagName === "MINT-ICON";
|
|
295
|
+
if (a && !a.parentElement) {
|
|
296
|
+
let t = this._button.querySelector("mint-spinner")?.parentElement;
|
|
297
|
+
e || o === "left" ? t ? t.insertAdjacentElement("afterend", a) : this._button.insertBefore(a, s) : s.insertAdjacentElement("afterend", a);
|
|
298
|
+
} else if (a && (e || o === "left") && a.nextSibling !== s) {
|
|
299
|
+
a.remove();
|
|
300
|
+
let e = this._button.querySelector("mint-spinner")?.parentElement;
|
|
301
|
+
e ? e.insertAdjacentElement("afterend", a) : this._button.insertBefore(a, s);
|
|
302
|
+
} else a && !e && o === "right" && a.previousSibling !== s && (a.remove(), s.insertAdjacentElement("afterend", a));
|
|
303
|
+
} else {
|
|
304
|
+
let e = [];
|
|
305
|
+
for (let t = this._button.firstChild; t; t = t.nextSibling) {
|
|
306
|
+
if (t.nodeType !== Node.ELEMENT_NODE) {
|
|
307
|
+
e.push(t);
|
|
308
|
+
continue;
|
|
309
|
+
}
|
|
310
|
+
let n = t;
|
|
311
|
+
n.tagName !== "MINT-SPINNER" && !n.querySelector("mint-spinner") && t !== a && !n.hasAttribute("slot") && !(n.classList.contains("mint-button-spinner-wrap") && n.querySelector("mint-spinner")) && e.push(t);
|
|
312
|
+
}
|
|
313
|
+
if (e.length > 0) {
|
|
314
|
+
s = document.createElement("span"), s.className = this._getContentWrapperClass(s), e.forEach((e) => {
|
|
315
|
+
s.appendChild(e);
|
|
316
|
+
}), s.className = this._getContentWrapperClass(s);
|
|
317
|
+
let t = this._button.querySelector("mint-spinner")?.parentElement;
|
|
318
|
+
a && o === "left" ? t ? (t.insertAdjacentElement("afterend", a), a.insertAdjacentElement("afterend", s)) : (this._button.insertBefore(a, this._button.firstChild), a.insertAdjacentElement("afterend", s)) : a && o === "right" ? t ? (t.insertAdjacentElement("afterend", s), s.insertAdjacentElement("afterend", a)) : (this._button.insertBefore(s, this._button.firstChild), s.insertAdjacentElement("afterend", a)) : t ? t.insertAdjacentElement("afterend", s) : this._button.insertBefore(s, this._button.firstChild);
|
|
319
|
+
} else if (a && a.tagName === "MINT-ICON" && !a.parentElement) {
|
|
320
|
+
let e = this._button.querySelector("mint-spinner")?.parentElement;
|
|
321
|
+
e ? e.insertAdjacentElement("afterend", a) : this._button.insertBefore(a, this._button.firstChild);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
let c = this.isIconOnly();
|
|
325
|
+
if (a && (a.classList.contains("mint-button-icon") || a.classList.add("mint-button-icon"), e ? a.style.display = "none" : a.style.display = "", a.setAttribute("data-position", o), a.toggleAttribute("data-icon-only", c), c && (a.tagName === "MINT-ICON" ? (a.style.width = "1em", a.style.height = "1em", a.style.maxWidth = "1em", a.style.maxHeight = "1em", a.style.flexShrink = "0") : (a.style.maxWidth = "1em", a.style.maxHeight = "1em", a.style.flexShrink = "0", a.tagName === "svg" && (a.style.width = "1em", a.style.height = "1em")))), e) {
|
|
326
|
+
let e = this._button.querySelector("mint-spinner")?.parentElement;
|
|
327
|
+
e && (c ? e.setAttribute("data-icon-only", "true") : e.removeAttribute("data-icon-only"));
|
|
328
|
+
}
|
|
329
|
+
let l = this.getButtonClasses();
|
|
330
|
+
this._button.className = l;
|
|
331
|
+
let u = this.getAttribute("aria-label")?.trim();
|
|
332
|
+
if (u) this._button.setAttribute("aria-label", u);
|
|
333
|
+
else if (this.isIconOnly()) {
|
|
334
|
+
let e = this.getIcon().split("-").filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
335
|
+
this._button.setAttribute("aria-label", e || "Action");
|
|
336
|
+
} else this._button.removeAttribute("aria-label");
|
|
337
|
+
this.hasAttribute("active") ? this._button.setAttribute("aria-pressed", String(this.isActive())) : this._button.removeAttribute("aria-pressed"), this.setAttribute("data-variant", this.getVariant()), this.setAttribute("data-tone", this.getTone()), this._button.setAttribute("data-variant", this.getVariant()), this._button.setAttribute("data-align", this.getAlignment()), this._button.toggleAttribute("data-icon-only", c), e ? this._button.setAttribute("data-loading", "true") : this._button.removeAttribute("data-loading"), this.isActive() ? this._button.classList.add("mint-button-active") : this._button.classList.remove("mint-button-active");
|
|
338
|
+
} finally {
|
|
339
|
+
queueMicrotask(() => {
|
|
340
|
+
this.isConnected && this._connectHostChildObserver();
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
setupEventListeners() {
|
|
345
|
+
this._button && !this._clickHandler && (this._clickHandler = this.handleClick.bind(this), this._clickHandler && this._button.addEventListener("click", this._clickHandler, !0), this._button.addEventListener("mousedown", this._handleMouseDown), this._button.addEventListener("mouseup", this._handleMouseUp), this._button.addEventListener("mouseleave", this._handleMouseLeave), this._button.addEventListener("touchstart", this._handleTouchStart), this._button.addEventListener("touchend", this._handleTouchEnd), this._button.addEventListener("touchcancel", this._handleTouchCancel));
|
|
346
|
+
}
|
|
347
|
+
removeEventListeners() {
|
|
348
|
+
this._button && (this._clickHandler &&= (this._button.removeEventListener("click", this._clickHandler, !0), null), this._button.removeEventListener("mousedown", this._handleMouseDown), this._button.removeEventListener("mouseup", this._handleMouseUp), this._button.removeEventListener("mouseleave", this._handleMouseLeave), this._button.removeEventListener("touchstart", this._handleTouchStart), this._button.removeEventListener("touchend", this._handleTouchEnd), this._button.removeEventListener("touchcancel", this._handleTouchCancel));
|
|
349
|
+
}
|
|
350
|
+
handleClick(e) {
|
|
351
|
+
if (this.isDisabled() || this.isLoading()) {
|
|
352
|
+
e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation();
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
if (this.getType() === "submit") {
|
|
356
|
+
this.dispatchEvent(new CustomEvent("click", {
|
|
357
|
+
detail: { originalEvent: e },
|
|
358
|
+
bubbles: !0,
|
|
359
|
+
cancelable: !0,
|
|
360
|
+
composed: !0
|
|
361
|
+
}));
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
if (e.stopPropagation(), e.stopImmediatePropagation(), this._isHandlingClick) {
|
|
365
|
+
e.preventDefault();
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
this._isHandlingClick = !0, e.preventDefault(), this.dispatchEvent(new CustomEvent("click", {
|
|
369
|
+
detail: { originalEvent: e },
|
|
370
|
+
bubbles: !0,
|
|
371
|
+
cancelable: !0,
|
|
372
|
+
composed: !0
|
|
373
|
+
})), requestAnimationFrame(() => {
|
|
374
|
+
this._isHandlingClick = !1;
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
customElements.get("mint-button") || e("mint-button", t);
|
|
379
|
+
//#endregion
|
|
380
|
+
export { t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./icon-dG8sLTBn.js`);const e=require(`./register-element-tCL_F1YI.js`);require(`./icon-CyzR9aVl.js`),/* empty css */require(`./spinner-DbTohC6i.js`);var t=class extends HTMLElement{static get observedAttributes(){return[`variant`,`tone`,`disabled`,`loading`,`button-type`,`type`,`full-width`,`icon-position`,`icon`,`active`,`align`,`aria-label`]}constructor(){super(),this._button=null,this._clickHandler=null,this._isHandlingClick=!1,this._hostChildObserver=null,this._hostRenderFromObserverRaf=null,this._handleMouseDown=()=>{this._button&&!this.isDisabled()&&!this.isLoading()&&this._button.classList.add(`mint-button-active`)},this._handleMouseUp=()=>{this._button&&(this.isActive()||this._button.classList.remove(`mint-button-active`))},this._handleMouseLeave=()=>{this._button&&(this.isActive()||this._button.classList.remove(`mint-button-active`))},this._handleTouchStart=()=>{this._button&&!this.isDisabled()&&!this.isLoading()&&this._button.classList.add(`mint-button-active`)},this._handleTouchEnd=()=>{this._button&&(this.isActive()||this._button.classList.remove(`mint-button-active`))},this._handleTouchCancel=()=>{this._button&&(this.isActive()||this._button.classList.remove(`mint-button-active`))}}_getGeneratedIcon(){return this._button?this._button.querySelector(`:scope > [data-generated-icon="true"]`):null}_getContentWrapperClass(e){return`mint-button-content`}connectedCallback(){this.render(),this._button&&this.setupEventListeners()}disconnectedCallback(){this._disconnectHostChildObserver(),this._hostRenderFromObserverRaf!==null&&(cancelAnimationFrame(this._hostRenderFromObserverRaf),this._hostRenderFromObserverRaf=null),this.removeEventListeners()}attributeChangedCallback(e,t,n){t!==n&&this.render()}getVariant(){let e=this.getAttribute(`variant`);return e===`ghost`||e===`outline`?e:`solid`}getTone(){return this.getAttribute(`tone`)||`neutral`}isDisabled(){return this.getAttribute(`disabled`)===`true`}isLoading(){return this.getAttribute(`loading`)===`true`}getType(){let e=this.getAttribute(`type`),t=this.getAttribute(`button-type`);return(e||t||`default`)===`submit`?`submit`:`button`}isFullWidth(){return this.getAttribute(`full-width`)===`true`}isActive(){return this.getAttribute(`active`)===`true`}get active(){return this.isActive()}set active(e){e?this.setAttribute(`active`,`true`):this.removeAttribute(`active`)}getIconPosition(){return this.getAttribute(`icon-position`)||`left`}getIcon(){return this.getAttribute(`icon`)||``}getAlignment(){let e=this.getAttribute(`align`);return e===`left`||e===`center`||e===`right`?e:`center`}isIconOnly(){if(!(this.getIcon()||this._getGeneratedIcon()||this._button?.querySelector(`mint-icon`)))return!1;let e=this._button?.querySelector(`.mint-button-content`);if(e&&e.textContent?.trim())return!1;if(this._button)for(let e=this._button.firstChild;e;e=e.nextSibling){if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return!1;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName!==`MINT-ICON`&&t.tagName!==`MINT-SPINNER`&&!t.querySelector(`mint-spinner`)&&!t.hasAttribute(`slot`)&&t.className!==`mint-button-icon`&&!(t.classList.contains(`mint-button-spinner-wrap`)&&t.querySelector(`mint-spinner`))&&t.textContent?.trim())return!1}}return!0}getActiveStateClasses(){let e=`${this.getVariant()}-${this.getTone()}`;return{"solid-action":[`!bg-neutral-900`,`dark:!bg-neutral-700`,`hover:!bg-neutral-900`,`dark:hover:!bg-neutral-700`,`!border-t-neutral-900`,`!border-l-neutral-900`,`!border-r-neutral-600`,`!border-b-neutral-600`,`dark:!border-t-neutral-700`,`dark:!border-l-neutral-700`,`dark:!border-r-neutral-500`,`dark:!border-b-neutral-500`],"solid-neutral":[`!bg-gray-100`,`dark:!bg-mint-hover`,`hover:!bg-gray-100`,`dark:hover:!bg-mint-hover`,`!border-t-gray-400`,`!border-l-gray-400`,`!border-r-gray-200`,`!border-b-gray-200`,`dark:!border-t-gray-950`,`dark:!border-l-gray-950`,`dark:!border-r-mint-divider`,`dark:!border-b-mint-divider`],"solid-info":[`!bg-blue-900`,`dark:!bg-blue-700`,`hover:!bg-blue-900`,`dark:hover:!bg-blue-700`,`!border-t-blue-900`,`!border-l-blue-900`,`!border-r-blue-600`,`!border-b-blue-600`,`dark:!border-t-blue-700`,`dark:!border-l-blue-700`,`dark:!border-r-blue-500`,`dark:!border-b-blue-500`],"solid-warning":[`!bg-amber-900`,`dark:!bg-amber-700`,`hover:!bg-amber-900`,`dark:hover:!bg-amber-700`,`!border-t-amber-900`,`!border-l-amber-900`,`!border-r-amber-600`,`!border-b-amber-600`,`dark:!border-t-amber-700`,`dark:!border-l-amber-700`,`dark:!border-r-amber-500`,`dark:!border-b-amber-500`],"solid-danger":[`!bg-red-900`,`dark:!bg-red-700`,`hover:!bg-red-900`,`dark:hover:!bg-red-700`,`!border-t-red-900`,`!border-l-red-900`,`!border-r-red-600`,`!border-b-red-600`,`dark:!border-t-red-700`,`dark:!border-l-red-700`,`dark:!border-r-red-500`,`dark:!border-b-red-500`],"ghost-action":[`!bg-gray-100`,`!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]`,`dark:!bg-mint-hover`,`hover:!bg-gray-100`,`dark:hover:!bg-mint-hover`,`hover:!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]`],"ghost-neutral":[`!bg-gray-50`,`!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]`,`dark:!bg-mint-hover`,`!text-gray-900`,`dark:!text-white`,`hover:!bg-gray-50`,`dark:hover:!bg-mint-hover`,`hover:!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]`,`hover:!text-gray-900`,`dark:hover:!text-white`],"ghost-info":[`!bg-gray-100`,`!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]`,`dark:!bg-mint-hover`,`hover:!bg-gray-100`,`dark:hover:!bg-mint-hover`,`hover:!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]`],"ghost-warning":[`!bg-gray-100`,`!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]`,`dark:!bg-mint-hover`,`hover:!bg-gray-100`,`dark:hover:!bg-mint-hover`,`hover:!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]`],"ghost-danger":[`!bg-gray-100`,`!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]`,`dark:!bg-mint-hover`,`hover:!bg-gray-100`,`dark:hover:!bg-mint-hover`,`hover:!shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]`]}[e]||[]}_disconnectHostChildObserver(){this._hostChildObserver?.disconnect()}_connectHostChildObserver(){this.isConnected&&(this._hostChildObserver||=new MutationObserver(e=>{this._onLightDomMutation(e)}),this._hostChildObserver.disconnect(),this._hostChildObserver.observe(this,{childList:!0,subtree:!0,characterData:!0}))}_onLightDomMutation(e){if(this.isConnected){if(this._button&&!this._button.isConnected){this._button=null,this._scheduleRenderFromHostObserver();return}for(let t of e){let e=t.target;if(!(this._button&&(e===this._button||this._button.contains(e)))){this._scheduleRenderFromHostObserver();return}}}}_scheduleRenderFromHostObserver(){this._hostRenderFromObserverRaf===null&&(this._hostRenderFromObserverRaf=requestAnimationFrame(()=>{this._hostRenderFromObserverRaf=null,this.isConnected&&this.render()}))}getButtonClasses(){let e=[`mint-button-core`,`mint-button-${this.getVariant()}`,`mint-button-tone-${this.getTone()}`];return this.isIconOnly()&&e.push(`mint-button-icon-only`),this.isFullWidth()&&e.push(`mint-button-full-width`),e.join(` `)}render(){this._disconnectHostChildObserver(),this._button&&!this._button.isConnected&&(this._button=null);try{let e=this.isLoading(),t=this.isDisabled()||e,n=this.getType();if(!this._button){let e=this.firstElementChild;if(e instanceof HTMLButtonElement)this._button=e;else{for(this._button=document.createElement(`button`);this.firstChild;)this._button.appendChild(this.firstChild);this.appendChild(this._button)}this.setupEventListeners()}this._button.type=n,this._button.disabled=t,this._button.setAttribute(`aria-busy`,String(e));let r=this._button.querySelector(`mint-spinner`);if(e)if(r)r.setAttribute(`data-button-variant`,this.getVariant()),r.setAttribute(`data-button-tone`,this.getTone()),`render`in r&&typeof r.render==`function`&&r.render();else{let e=document.createElement(`span`);e.className=`mint-button-spinner-wrap`;let t=document.createElement(`mint-spinner`);t.setAttribute(`size`,`default`),t.setAttribute(`data-button-variant`,this.getVariant()),t.setAttribute(`data-button-tone`,this.getTone()),t.style.width=`0.875rem`,t.style.height=`0.875rem`,e.appendChild(t),this._button.insertBefore(e,this._button.firstChild)}else r&&r.parentElement?.remove();for(;this.firstChild&&this.firstChild!==this._button;)this._button.appendChild(this.firstChild);let i=this.getIcon(),a=this._getGeneratedIcon();i?(a||(a=document.createElement(`mint-icon`),a.setAttribute(`data-generated-icon`,`true`),a.className=`mint-button-icon`),a.setAttribute(`name`,i)):a&&a.tagName===`MINT-ICON`&&(a.remove(),a=null);let o=this.getIconPosition(),s=this._button.querySelector(`.mint-button-content`);if(s){s.className=this._getContentWrapperClass(s);let e=a&&a.tagName===`MINT-ICON`;if(a&&!a.parentElement){let t=this._button.querySelector(`mint-spinner`)?.parentElement;e||o===`left`?t?t.insertAdjacentElement(`afterend`,a):this._button.insertBefore(a,s):s.insertAdjacentElement(`afterend`,a)}else if(a&&(e||o===`left`)&&a.nextSibling!==s){a.remove();let e=this._button.querySelector(`mint-spinner`)?.parentElement;e?e.insertAdjacentElement(`afterend`,a):this._button.insertBefore(a,s)}else a&&!e&&o===`right`&&a.previousSibling!==s&&(a.remove(),s.insertAdjacentElement(`afterend`,a))}else{let e=[];for(let t=this._button.firstChild;t;t=t.nextSibling){if(t.nodeType!==Node.ELEMENT_NODE){e.push(t);continue}let n=t;n.tagName!==`MINT-SPINNER`&&!n.querySelector(`mint-spinner`)&&t!==a&&!n.hasAttribute(`slot`)&&!(n.classList.contains(`mint-button-spinner-wrap`)&&n.querySelector(`mint-spinner`))&&e.push(t)}if(e.length>0){s=document.createElement(`span`),s.className=this._getContentWrapperClass(s),e.forEach(e=>{s.appendChild(e)}),s.className=this._getContentWrapperClass(s);let t=this._button.querySelector(`mint-spinner`)?.parentElement;a&&o===`left`?t?(t.insertAdjacentElement(`afterend`,a),a.insertAdjacentElement(`afterend`,s)):(this._button.insertBefore(a,this._button.firstChild),a.insertAdjacentElement(`afterend`,s)):a&&o===`right`?t?(t.insertAdjacentElement(`afterend`,s),s.insertAdjacentElement(`afterend`,a)):(this._button.insertBefore(s,this._button.firstChild),s.insertAdjacentElement(`afterend`,a)):t?t.insertAdjacentElement(`afterend`,s):this._button.insertBefore(s,this._button.firstChild)}else if(a&&a.tagName===`MINT-ICON`&&!a.parentElement){let e=this._button.querySelector(`mint-spinner`)?.parentElement;e?e.insertAdjacentElement(`afterend`,a):this._button.insertBefore(a,this._button.firstChild)}}let c=this.isIconOnly();if(a&&(a.classList.contains(`mint-button-icon`)||a.classList.add(`mint-button-icon`),e?a.style.display=`none`:a.style.display=``,a.setAttribute(`data-position`,o),a.toggleAttribute(`data-icon-only`,c),c&&(a.tagName===`MINT-ICON`?(a.style.width=`1em`,a.style.height=`1em`,a.style.maxWidth=`1em`,a.style.maxHeight=`1em`,a.style.flexShrink=`0`):(a.style.maxWidth=`1em`,a.style.maxHeight=`1em`,a.style.flexShrink=`0`,a.tagName===`svg`&&(a.style.width=`1em`,a.style.height=`1em`)))),e){let e=this._button.querySelector(`mint-spinner`)?.parentElement;e&&(c?e.setAttribute(`data-icon-only`,`true`):e.removeAttribute(`data-icon-only`))}let l=this.getButtonClasses();this._button.className=l;let u=this.getAttribute(`aria-label`)?.trim();if(u)this._button.setAttribute(`aria-label`,u);else if(this.isIconOnly()){let e=this.getIcon().split(`-`).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `);this._button.setAttribute(`aria-label`,e||`Action`)}else this._button.removeAttribute(`aria-label`);this.hasAttribute(`active`)?this._button.setAttribute(`aria-pressed`,String(this.isActive())):this._button.removeAttribute(`aria-pressed`),this.setAttribute(`data-variant`,this.getVariant()),this.setAttribute(`data-tone`,this.getTone()),this._button.setAttribute(`data-variant`,this.getVariant()),this._button.setAttribute(`data-align`,this.getAlignment()),this._button.toggleAttribute(`data-icon-only`,c),e?this._button.setAttribute(`data-loading`,`true`):this._button.removeAttribute(`data-loading`),this.isActive()?this._button.classList.add(`mint-button-active`):this._button.classList.remove(`mint-button-active`)}finally{queueMicrotask(()=>{this.isConnected&&this._connectHostChildObserver()})}}setupEventListeners(){this._button&&!this._clickHandler&&(this._clickHandler=this.handleClick.bind(this),this._clickHandler&&this._button.addEventListener(`click`,this._clickHandler,!0),this._button.addEventListener(`mousedown`,this._handleMouseDown),this._button.addEventListener(`mouseup`,this._handleMouseUp),this._button.addEventListener(`mouseleave`,this._handleMouseLeave),this._button.addEventListener(`touchstart`,this._handleTouchStart),this._button.addEventListener(`touchend`,this._handleTouchEnd),this._button.addEventListener(`touchcancel`,this._handleTouchCancel))}removeEventListeners(){this._button&&(this._clickHandler&&=(this._button.removeEventListener(`click`,this._clickHandler,!0),null),this._button.removeEventListener(`mousedown`,this._handleMouseDown),this._button.removeEventListener(`mouseup`,this._handleMouseUp),this._button.removeEventListener(`mouseleave`,this._handleMouseLeave),this._button.removeEventListener(`touchstart`,this._handleTouchStart),this._button.removeEventListener(`touchend`,this._handleTouchEnd),this._button.removeEventListener(`touchcancel`,this._handleTouchCancel))}handleClick(e){if(this.isDisabled()||this.isLoading()){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();return}if(this.getType()===`submit`){this.dispatchEvent(new CustomEvent(`click`,{detail:{originalEvent:e},bubbles:!0,cancelable:!0,composed:!0}));return}if(e.stopPropagation(),e.stopImmediatePropagation(),this._isHandlingClick){e.preventDefault();return}this._isHandlingClick=!0,e.preventDefault(),this.dispatchEvent(new CustomEvent(`click`,{detail:{originalEvent:e},bubbles:!0,cancelable:!0,composed:!0})),requestAnimationFrame(()=>{this._isHandlingClick=!1})}};customElements.get(`mint-button`)||e.t(`mint-button`,t),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./icon-dG8sLTBn.js`).a({name:`caret-down`,viewBox:`0 0 24 24`,path:`M19 9l-7 7-7-7`,strokeLinecap:`round`,strokeLinejoin:`round`});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./icon-dG8sLTBn.js`).a({name:`caret-right`,viewBox:`0 0 24 24`,path:`M9 5l7 7-7 7`,strokeLinecap:`round`,strokeLinejoin:`round`});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./icon-dG8sLTBn.js`).a({name:`caret-up`,viewBox:`0 0 24 24`,path:`M5 15l7-7 7 7`,strokeLinecap:`round`,strokeLinejoin:`round`});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./icon-dG8sLTBn.js`);const e=require(`./register-element-tCL_F1YI.js`);require(`./icon-CyzR9aVl.js`),require(`./close-5tYlQdkk.js`);var t=class extends HTMLElement{constructor(...e){super(...e),this._root=null,this._label=null,this._dismissBtn=null,this._clickHandler=null}static get observedAttributes(){return[`dismissable`,`tone`]}connectedCallback(){this._render()}disconnectedCallback(){this._dismissBtn&&this._clickHandler&&this._dismissBtn.removeEventListener(`click`,this._clickHandler)}attributeChangedCallback(){this.isConnected&&this._render()}_render(){if(this.classList.add(`mint-chip`),!this._root){for(this._root=document.createElement(`span`),this._root.className=`mint-chip__content`,this._label=document.createElement(`span`),this._label.className=`mint-chip__label`,this._label.setAttribute(`data-mt-chip-text`,``);this.firstChild;){let e=this.firstChild;if(e===this._root)break;this._label.appendChild(e)}this._root.appendChild(this._label),this.appendChild(this._root)}let e=this.getAttribute(`dismissable`);if(e===``||e===`true`?(this._dismissBtn||this._createDismissButton(),this._dismissBtn&&this._dismissBtn.parentElement!==this._root&&this._root?.appendChild(this._dismissBtn)):this._dismissBtn?.parentElement===this._root&&this._dismissBtn.remove(),this._dismissBtn){let e=this._label?.textContent?.trim();this._dismissBtn.setAttribute(`aria-label`,e?`Remove ${e}`:`Dismiss chip`)}}_createDismissButton(){let e=document.createElement(`button`);e.type=`button`,e.className=`mint-chip__dismiss`,e.setAttribute(`aria-label`,`Dismiss chip`);let t=document.createElement(`mint-icon`);t.setAttribute(`name`,`close`),t.className=`mint-chip__dismiss-icon`,t.setAttribute(`aria-hidden`,`true`),e.appendChild(t),this._clickHandler=e=>{e.stopPropagation(),this.dispatchEvent(new CustomEvent(`dismiss`,{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(`dismissed`,{bubbles:!0,composed:!0})),this.remove()},e.addEventListener(`click`,this._clickHandler),this._dismissBtn=e}};customElements.get(`mint-chip`)||e.t(`mint-chip`,t),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import "./icon-gQAtsERy.js";
|
|
2
|
+
import { t as e } from "./register-element-BFYmIynH.js";
|
|
3
|
+
import "./icon-C0OLmjDY.js";
|
|
4
|
+
import "./close-Dg6U0IjZ.js";
|
|
5
|
+
//#region src/components/chip/Chip.ts
|
|
6
|
+
var t = class extends HTMLElement {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this._root = null, this._label = null, this._dismissBtn = null, this._clickHandler = null;
|
|
9
|
+
}
|
|
10
|
+
static get observedAttributes() {
|
|
11
|
+
return ["dismissable", "tone"];
|
|
12
|
+
}
|
|
13
|
+
connectedCallback() {
|
|
14
|
+
this._render();
|
|
15
|
+
}
|
|
16
|
+
disconnectedCallback() {
|
|
17
|
+
this._dismissBtn && this._clickHandler && this._dismissBtn.removeEventListener("click", this._clickHandler);
|
|
18
|
+
}
|
|
19
|
+
attributeChangedCallback() {
|
|
20
|
+
this.isConnected && this._render();
|
|
21
|
+
}
|
|
22
|
+
_render() {
|
|
23
|
+
if (this.classList.add("mint-chip"), !this._root) {
|
|
24
|
+
for (this._root = document.createElement("span"), this._root.className = "mint-chip__content", this._label = document.createElement("span"), this._label.className = "mint-chip__label", this._label.setAttribute("data-mt-chip-text", ""); this.firstChild;) {
|
|
25
|
+
let e = this.firstChild;
|
|
26
|
+
if (e === this._root) break;
|
|
27
|
+
this._label.appendChild(e);
|
|
28
|
+
}
|
|
29
|
+
this._root.appendChild(this._label), this.appendChild(this._root);
|
|
30
|
+
}
|
|
31
|
+
let e = this.getAttribute("dismissable");
|
|
32
|
+
if (e === "" || e === "true" ? (this._dismissBtn || this._createDismissButton(), this._dismissBtn && this._dismissBtn.parentElement !== this._root && this._root?.appendChild(this._dismissBtn)) : this._dismissBtn?.parentElement === this._root && this._dismissBtn.remove(), this._dismissBtn) {
|
|
33
|
+
let e = this._label?.textContent?.trim();
|
|
34
|
+
this._dismissBtn.setAttribute("aria-label", e ? `Remove ${e}` : "Dismiss chip");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
_createDismissButton() {
|
|
38
|
+
let e = document.createElement("button");
|
|
39
|
+
e.type = "button", e.className = "mint-chip__dismiss", e.setAttribute("aria-label", "Dismiss chip");
|
|
40
|
+
let t = document.createElement("mint-icon");
|
|
41
|
+
t.setAttribute("name", "close"), t.className = "mint-chip__dismiss-icon", t.setAttribute("aria-hidden", "true"), e.appendChild(t), this._clickHandler = (e) => {
|
|
42
|
+
e.stopPropagation(), this.dispatchEvent(new CustomEvent("dismiss", {
|
|
43
|
+
bubbles: !0,
|
|
44
|
+
composed: !0
|
|
45
|
+
})), this.dispatchEvent(new CustomEvent("dismissed", {
|
|
46
|
+
bubbles: !0,
|
|
47
|
+
composed: !0
|
|
48
|
+
})), this.remove();
|
|
49
|
+
}, e.addEventListener("click", this._clickHandler), this._dismissBtn = e;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
customElements.get("mint-chip") || e("mint-chip", t);
|
|
53
|
+
//#endregion
|
|
54
|
+
export { t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./icon-dG8sLTBn.js`).a({name:`close`,viewBox:`0 0 24 24`,path:`M6 18L18 6M6 6l12 12`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`3.2`});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./icon-gQAtsERy.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./icon-dG8sLTBn.js`);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const e=require(`./register-element-tCL_F1YI.js`);var t=new Map;function n(e){t.set(e.name,e)}function ee(e){return t.get(e)}function r(e){return t.has(e)}function i(){return Array.from(t.values())}var te=class extends HTMLElement{static get observedAttributes(){return[`name`]}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(){if(!this._darkModeObserver){if(this._darkModeObserver=new MutationObserver(e=>{for(let t of e)if(t.type===`attributes`&&[`class`,`data-mint-theme`].includes(t.attributeName)){this.render();break}}),!document.documentElement)return;this._darkModeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`data-mint-theme`]})}}getName(){return this.getAttribute(`name`)||``}getIconDataUrl(e){let t=e.customSvg||`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e.viewBox}" fill="none" stroke="currentColor" stroke-width="2"${e.strokeLinecap?` stroke-linecap="${e.strokeLinecap}"`:``}${e.strokeLinejoin?` stroke-linejoin="${e.strokeLinejoin}"`:``}><path d="${e.path}" /></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(t)}")`}render(){let e=this.getName();if(!e){this.innerHTML=``,this.style.maskImage=``,this.style.webkitMaskImage=``;return}let t=ee(e);if(!t){console.warn(`Icon "${e}" not found. Make sure you've imported the icon: import 'mint-ui/icon/icons/${e}'`),this.innerHTML=``,this.style.maskImage=``,this.style.webkitMaskImage=``;return}let n=this.closest(`mint-button`)||this.parentElement?.closest(`mint-button`),r=this.closest(`mint-switch`)||this.parentElement?.closest(`mint-switch`);this.style.display=`inline-block`,this.style.width=r?`0.75rem`:n?`1rem`:`1.3em`,this.style.height=r?`0.75rem`:n?`1rem`:`1.3em`;let i=this.getIconDataUrl(t);this.style.maskImage=i,this.style.webkitMaskImage=i,this.style.maskSize=`contain`,this.style.webkitMaskSize=`contain`,this.style.maskRepeat=`no-repeat`,this.style.webkitMaskRepeat=`no-repeat`,this.style.maskPosition=`center`,this.style.webkitMaskPosition=`center`,this.style.aspectRatio=`1 / 1`,this.style.backgroundColor=`currentColor`,this.innerHTML=``}};typeof customElements<`u`&&!customElements.get(`mint-icon`)&&e.t(`mint-icon`,te);var a={name:`ai`,viewBox:`0 0 24 24`,path:`M13 3.5H7.5a4 4 0 00-4 4v9a4 4 0 004 4h9a4 4 0 004-4V12M7.6 15.5l2-6.2h1.2l2 6.2m-3.2-2h2.2m3.5-4.2v6.2`,customSvg:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
2
|
+
<path d="M13 3.5H7.5a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4V12" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="m7.6 15.5 2-6.2h1.2l2 6.2m-3.2-2h2.2m3.5-4.2v6.2" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M17 1.5c.5 2.3 1.2 3 3.5 3.5-2.3.5-3 1.2-3.5 3.5-.5-2.3-1.2-3-3.5-3.5 2.3-.5 3-1.2 3.5-3.5Z" fill="currentColor"/>
|
|
5
|
+
<path d="M21 4.2c.25 1.2.6 1.55 1.8 1.8-1.2.25-1.55.6-1.8 1.8-.25-1.2-.6-1.55-1.8-1.8 1.2-.25 1.55-.6 1.8-1.8Z" fill="currentColor"/>
|
|
6
|
+
<path d="M18.7 6.8c.3 1.5.8 2 2.3 2.3-1.5.3-2 .8-2.3 2.3-.3-1.5-.8-2-2.3-2.3 1.5-.3 2-.8 2.3-2.3Z" fill="currentColor"/>
|
|
7
|
+
</svg>`};n(a);var o={name:`archive`,viewBox:`0 0 24 24`,path:`M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4`,strokeLinecap:`round`,strokeLinejoin:`round`};n(o);var s={name:`arrow-down`,viewBox:`0 0 24 24`,path:`M19 14l-7 7m0 0l-7-7m7 7V3`,strokeLinecap:`round`,strokeLinejoin:`round`};n(s);var c={name:`arrow-left`,viewBox:`0 0 24 24`,path:`M19 12H5m7-7l-7 7 7 7`,strokeLinecap:`round`,strokeLinejoin:`round`};n(c);var l={name:`arrow-right`,viewBox:`0 0 24 24`,path:`M14 5l7 7m0 0l-7 7m7-7H3`,strokeLinecap:`round`,strokeLinejoin:`round`};n(l);var u={name:`arrow-up`,viewBox:`0 0 24 24`,path:`M5 10l7-7m0 0l7 7m-7-7v18`,strokeLinecap:`round`,strokeLinejoin:`round`};n(u);var d={name:`attach`,viewBox:`0 0 24 24`,path:`M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13`,strokeLinecap:`round`,strokeLinejoin:`round`};n(d);var f={name:`bank`,viewBox:`0 0 24 24`,path:`M4.75 8.65 L12 3.2 L19.25 8.65 Z M4.75 8.65 H19.25 V10.15 H4.75 Z M5.2 10.15 H6.95 V17.65 H5.2 Z M11.125 10.15 H12.875 V17.65 H11.125 Z M17.05 10.15 H18.8 V17.65 H17.05 Z M3.5 17.65 H20.5 V21 H3.5 Z`,fill:`currentColor`};n(f);var p={name:`barcode`,viewBox:`0 0 24 24`,path:`M3 4h1.5v16H3V4zM7 4h1v16H7V4zM11 4h1.5v16H11V4zM15.5 4h1v16h-1V4zM19.5 4h1.5v16h-1.5V4z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(p);var m={name:`basket`,viewBox:`0 0 24 24`,path:`M4 9h16l-1.4 10.5a2 2 0 01-2 1.7H7.4a2 2 0 01-2-1.7L4 9zm4.5 0L12 4.5 15.5 9M10 13v3m4-3v3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2.7`};n(m);var h={name:`bookmark`,viewBox:`0 0 24 24`,path:`M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(h);var g={name:`building`,viewBox:`0 0 24 24`,path:`M7 21V6l5-3 5 3v15M3 21h18M10 8h1M13 8h1M10 11h1M13 11h1M10 14h1M13 14h1M11 21v-3h2v3`,strokeLinecap:`square`,strokeLinejoin:`miter`,strokeWidth:`2.2`};n(g);var _={name:`buildings`,viewBox:`0 0 24 24`,path:`M2 21h20M4 21v-9l3-2v11M9 21V6l3-2 3 2v15M17 21V10l3 2v9M5 13h1M5 16h1M10 8h1M13 8h1M10 11h1M13 11h1M10 14h1M13 14h1M18 13h1M18 16h1M11 21v-3h2v3`,strokeLinecap:`square`,strokeLinejoin:`miter`,strokeWidth:`1.5`};n(_);var v={name:`bullhorn`,viewBox:`0 0 24 24`,path:`M3 11v2l9 3V8l-9 3zm9-3l7-3v14l-7-3M6 14.5V18a2 2 0 002 2h1`,strokeLinecap:`round`,strokeLinejoin:`round`};n(v);var y={name:`calendar`,viewBox:`0 0 24 24`,path:`M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(y);var b={name:`calendar-day`,viewBox:`0 0 24 24`,path:`M8 7V3m8 4V3M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z`,customSvg:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
8
|
+
<path d="M8 7V3m8 4V3M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
|
|
9
|
+
<rect x="7" y="11" width="10" height="5" fill="currentColor"/>
|
|
10
|
+
</svg>`,strokeLinecap:`round`,strokeLinejoin:`round`};n(b);var x={name:`calendar-empty`,viewBox:`0 0 24 24`,path:`M8 7V3m8 4V3M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(x);var S={name:`calendar-week`,viewBox:`0 0 24 24`,path:`M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(S);var C={name:`caret-down`,viewBox:`0 0 24 24`,path:`M19 9l-7 7-7-7`,strokeLinecap:`round`,strokeLinejoin:`round`};n(C);var w={name:`caret-left`,viewBox:`0 0 24 24`,path:`M15 19l-7-7 7-7`,strokeLinecap:`round`,strokeLinejoin:`round`};n(w);var T={name:`caret-right`,viewBox:`0 0 24 24`,path:`M9 5l7 7-7 7`,strokeLinecap:`round`,strokeLinejoin:`round`};n(T);var E={name:`caret-up`,viewBox:`0 0 24 24`,path:`M5 15l7-7 7 7`,strokeLinecap:`round`,strokeLinejoin:`round`};n(E);var D={name:`chart-bar`,viewBox:`0 0 24 24`,path:`M3 20h18M6 17v-5m4 5V7m4 10v-8m4 8v-3`,strokeLinecap:`round`,strokeLinejoin:`round`};n(D);var O={name:`chart-line`,viewBox:`0 0 24 24`,path:`M3 20h18M4 18V4m2 11l4-4 3 3 5-6m0 0h-4m4 0v4`,strokeLinecap:`round`,strokeLinejoin:`round`};n(O);var k={name:`chat`,viewBox:`0 0 24 24`,path:`M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(k);var A={name:`check`,viewBox:`0 0 24 24`,path:`M5 13l4 4L19 7`,strokeLinecap:`round`,strokeLinejoin:`round`};n(A);var j={name:`clock`,viewBox:`0 0 24 24`,path:`M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(j);var M={name:`close`,viewBox:`0 0 24 24`,path:`M6 18L18 6M6 6l12 12`,strokeLinecap:`round`,strokeLinejoin:`round`};n(M);var N={name:`copy`,viewBox:`0 0 24 24`,path:`M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(N);var P={name:`credit-card`,viewBox:`0 0 24 24`,path:`M3 7.5A2.5 2.5 0 0 1 5.5 5h13A2.5 2.5 0 0 1 21 7.5v9A2.5 2.5 0 0 1 18.5 19h-13A2.5 2.5 0 0 1 3 16.5v-9zM3 10h18M7 15h3`,strokeLinecap:`round`,strokeLinejoin:`round`};n(P);var F={name:`delete`,viewBox:`0 0 24 24`,path:`M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16`,strokeLinecap:`round`,strokeLinejoin:`round`};n(F);var I={name:`desktop`,viewBox:`0 0 24 24`,path:`M4 4h16a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1ZM12 17v3m-4 0h8`,strokeLinecap:`round`,strokeLinejoin:`round`};n(I);var L={name:`desktop-screen`,viewBox:`0 0 24 24`,path:`M3 5a2 2 0 012-2h14a2 2 0 012 2v9a2 2 0 01-2 2h-5m-4 0H5a2 2 0 01-2-2V5m7 11v4m-2 0h8`,strokeLinecap:`round`,strokeLinejoin:`round`};n(L);var R={name:`documentation`,viewBox:`0 0 24 24`,path:`M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253`,strokeLinecap:`round`,strokeLinejoin:`round`};n(R);var z={name:`dollar-sign`,viewBox:`0 0 24 24`,path:`M12 3v18M17 7c0-1.2-1.3-2-3-2h-4c-1.7 0-3 1-3 2.2 0 1.5 1.4 2.2 3 2.6l4 1c1.6.4 3 1.1 3 2.6 0 1.2-1.3 2.2-3 2.2h-4c-1.7 0-3-1-3-2`,strokeWidth:`2.75`,strokeLinecap:`butt`,strokeLinejoin:`miter`};n(z);var B={name:`download`,viewBox:`0 0 24 24`,path:`M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4`,strokeLinecap:`round`,strokeLinejoin:`round`};n(B);var V={name:`duplicate`,viewBox:`0 0 24 24`,path:`M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(V);var H={name:`edit`,viewBox:`0 0 24 24`,path:`M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(H);var U={name:`ellipsis`,viewBox:`0 0 24 24`,path:`M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(U);var W={name:`error`,viewBox:`0 0 24 24`,path:`M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(W);var G={name:`external-link`,viewBox:`0 0 24 24`,path:`M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14`,strokeLinecap:`round`,strokeLinejoin:`round`};n(G);var K={name:`eye`,viewBox:`0 0 24 24`,path:`M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6zm10 3.5a3.5 3.5 0 100-7 3.5 3.5 0 000 7z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(K);var q={name:`file`,viewBox:`0 0 24 24`,path:`M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(q);var J={name:`filter`,viewBox:`0 0 24 24`,path:`M3 6h18M3 12h18M3 18h18M6 6a2 2 0 11-4 0 2 2 0 014 0zM12 12a2 2 0 11-4 0 2 2 0 014 0zM16 18a2 2 0 11-4 0 2 2 0 014 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(J);var Y={name:`folder`,viewBox:`0 0 24 24`,path:`M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Y);var X={name:`gavel`,viewBox:`0 0 24 24`,path:`M12 12`,customSvg:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
11
|
+
<g transform="translate(12 12) rotate(45)">
|
|
12
|
+
<rect x="-5.52" y="-3.78" width="1.78" height="7.56" rx="0.55" ry="0.55"/>
|
|
13
|
+
<rect x="-3.74" y="-3.12" width="7.48" height="6.24" rx="0.46" ry="0.46"/>
|
|
14
|
+
<rect x="3.74" y="-3.78" width="1.78" height="7.56" rx="0.55" ry="0.55"/>
|
|
15
|
+
<rect x="-0.4" y="3.78" width="0.8" height="8.45" rx="0.4" ry="0.4"/>
|
|
16
|
+
<rect x="-1.18" y="12.21" width="2.36" height="2.55" rx="0.92" ry="0.92"/>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>`};n(X);var Z={name:`globe`,viewBox:`0 0 24 24`,path:`M12 2a10 10 0 100 20 10 10 0 000-20zm0 0c2.5 2.4 4 6.2 4 10s-1.5 7.6-4 10m0-20c-2.5 2.4-4 6.2-4 10s1.5 7.6 4 10M2 12h20M4.5 7h15M4.5 17h15`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Z);var Q={name:`grid`,viewBox:`0 0 24 24`,path:`M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Q);var ne={name:`grip-lines`,viewBox:`0 0 24 24`,path:`M12 12`,customSvg:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
19
|
+
<rect x="2" y="8" width="18" height="2" rx="1" />
|
|
20
|
+
<rect x="2" y="14" width="18" height="2" rx="1" />
|
|
21
|
+
</svg>`};n(ne);var re={name:`help`,viewBox:`0 0 24 24`,path:`M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(re);var ie={name:`home`,viewBox:`0 0 24 24`,path:`M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6`,strokeLinecap:`round`,strokeLinejoin:`round`};n(ie);var ae={name:`image`,viewBox:`0 0 24 24`,path:`M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(ae);var oe={name:`info`,viewBox:`0 0 24 24`,path:`M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(oe);var se={name:`language`,viewBox:`0 0 24 24`,path:`M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129`,strokeLinecap:`round`,strokeLinejoin:`round`};n(se);var ce={name:`line-chart`,viewBox:`0 0 24 24`,path:`M3 20h18M4 18V4m2 11l4-4 3 3 5-6m0 0h-4m4 0v4`,strokeLinecap:`round`,strokeLinejoin:`round`};n(ce);var le={name:`link`,viewBox:`0 0 24 24`,path:`M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1`,strokeLinecap:`round`,strokeLinejoin:`round`};n(le);var ue={name:`list`,viewBox:`0 0 24 24`,path:`M8 6h13M5 6h.01M8 12h13M5 12h.01M8 18h13M5 18h.01`,strokeLinecap:`round`,strokeLinejoin:`round`};n(ue);var de={name:`location`,viewBox:`0 0 24 24`,path:`M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z M15 11a3 3 0 11-6 0 3 3 0 016 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(de);var fe={name:`lock`,viewBox:`0 0 24 24`,path:`M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(fe);var pe={name:`login`,viewBox:`0 0 24 24`,path:`M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1`,strokeLinecap:`round`,strokeLinejoin:`round`};n(pe);var me={name:`logout`,viewBox:`0 0 24 24`,path:`M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1`,strokeLinecap:`round`,strokeLinejoin:`round`};n(me);var he={name:`mail`,viewBox:`0 0 24 24`,path:`M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(he);var ge={name:`map`,viewBox:`0 0 24 24`,path:`M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7`,strokeLinecap:`round`,strokeLinejoin:`round`};n(ge);var _e={name:`menu`,viewBox:`0 0 24 24`,path:`M4 6h16M4 12h16M4 18h16`,strokeLinecap:`round`,strokeLinejoin:`round`};n(_e);var ve={name:`mobile`,viewBox:`0 0 24 24`,path:`M8 2h8a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm3 16h2`,strokeLinecap:`round`,strokeLinejoin:`round`};n(ve);var $={name:`moon`,viewBox:`0 0 24 24`,path:`M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z`,strokeLinecap:`round`,strokeLinejoin:`round`};n($);var ye={name:`notifications`,viewBox:`0 0 24 24`,path:`M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9`,strokeLinecap:`round`,strokeLinejoin:`round`};n(ye);var be={name:`paste`,viewBox:`0 0 24 24`,path:`M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2`,strokeLinecap:`round`,strokeLinejoin:`round`};n(be);var xe={name:`pin`,viewBox:`0 0 24 24`,path:`M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(xe);var Se={name:`plus`,viewBox:`0 0 24 24`,path:`M12 4v16m8-8H4`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Se);var Ce={name:`print`,viewBox:`0 0 24 24`,path:`M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Ce);var we={name:`qr-code`,viewBox:`0 0 24 24`,path:`M4 3H9C10.1 3 11 3.9 11 5V10C11 11.1 10.1 12 9 12H4C2.9 12 2 11.1 2 10V5C2 3.9 2.9 3 4 3ZM4.75 4.5C4.34 4.5 4 4.84 4 5.25V9.75C4 10.16 4.34 10.5 4.75 10.5H8.25C8.66 10.5 9 10.16 9 9.75V5.25C9 4.84 8.66 4.5 8.25 4.5H4.75ZM15 3H20C21.1 3 22 3.9 22 5V10C22 11.1 21.1 12 20 12H15C13.9 12 13 11.1 13 10V5C13 3.9 13.9 3 15 3ZM15.75 4.5C15.34 4.5 15 4.84 15 5.25V9.75C15 10.16 15.34 10.5 15.75 10.5H19.25C19.66 10.5 20 10.16 20 9.75V5.25C20 4.84 19.66 4.5 19.25 4.5H15.75ZM4 13H9C10.1 13 11 13.9 11 15V20C11 21.1 10.1 22 9 22H4C2.9 22 2 21.1 2 20V15C2 13.9 2.9 13 4 13ZM4.75 14.5C4.34 14.5 4 14.84 4 15.25V19.75C4 20.16 4.34 20.5 4.75 20.5H8.25C8.66 20.5 9 20.16 9 19.75V15.25C9 14.84 8.66 14.5 8.25 14.5H4.75ZM13 13H16V16H19V19H16V22H13V19H16V16H13V13Z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(we);var Te={name:`refresh`,viewBox:`0 0 24 24`,path:`M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Te);var Ee={name:`remove`,viewBox:`0 0 24 24`,path:`M20 12H4`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Ee);var De={name:`save`,viewBox:`0 0 24 24`,path:`M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4`,strokeLinecap:`round`,strokeLinejoin:`round`};n(De);var Oe={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`};n(Oe);var ke={name:`settings`,viewBox:`0 0 24 24`,path:`M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(ke);var Ae={name:`share`,viewBox:`0 0 24 24`,path:`M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Ae);var je={name:`sort`,viewBox:`0 0 24 24`,path:`M3 6h18M7 12h10m-7 6h4`,strokeLinecap:`round`,strokeLinejoin:`round`};n(je);var Me={name:`sort-arrows`,viewBox:`0 0 24 24`,path:`M1 5l5-4m0 0l5 4m-5-4v22 M13 19l5 4m0 0l5-4m-5 4V1`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Me);var Ne={name:`star`,viewBox:`0 0 24 24`,path:`M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Ne);var Pe={name:`success`,viewBox:`0 0 24 24`,path:`M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Pe);var Fe={name:`sun`,viewBox:`0 0 24 24`,path:`M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Fe);var Ie={name:`table`,viewBox:`0 0 24 24`,path:`M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Ie);var Le={name:`tablet`,viewBox:`0 0 24 24`,path:`M6 3h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm5 15h2`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Le);var Re={name:`tag`,viewBox:`0 0 24 24`,path:`M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Re);var ze={name:`trash`,viewBox:`0 0 24 24`,path:`M3 6h18m-2 0v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2`,strokeLinecap:`round`,strokeLinejoin:`round`};n(ze);var Be={name:`unlock`,viewBox:`0 0 24 24`,path:`M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Be);var Ve={name:`upload`,viewBox:`0 0 24 24`,path:`M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Ve);var He={name:`user`,viewBox:`0 0 24 24`,path:`M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(He);var Ue={name:`user-add`,viewBox:`0 0 24 24`,path:`M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Ue);var We={name:`users`,viewBox:`0 0 24 24`,path:`M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(We);var Ge={name:`video`,viewBox:`0 0 24 24`,path:`M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Ge);var Ke={name:`warning`,viewBox:`0 0 24 24`,path:`M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z`,strokeLinecap:`round`,strokeLinejoin:`round`};n(Ke);var qe={name:`shopping-cart`,viewBox:`0 0 24 24`,path:`M3 4h2l2.2 11h10.9l2-7H6m3.2 7-.9 3h10.2M9 21h.01M17 21h.01`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(qe);var Je={name:`package`,viewBox:`0 0 24 24`,path:`M3 7l9-4 9 4-9 4-9-4zm0 0v10l9 4 9-4V7M12 11v10M7.5 5l9 4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(Je);var Ye={name:`storefront`,viewBox:`0 0 24 24`,path:`M3 10l2-6h14l2 6M4 10v10h16V10M3 10a3 3 0 006 0 3 3 0 006 0 3 3 0 006 0M10 15v5m4-5v5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(Ye);var Xe={name:`receipt`,viewBox:`0 0 24 24`,path:`M6 3l2 1.5L10 3l2 1.5L14 3l2 1.5L18 3v18l-2-1.5-2 1.5-2-1.5-2 1.5-2-1.5L6 21V3zm3 6h6m-6 4h6m-6 4h3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(Xe);var Ze={name:`coupon`,viewBox:`0 0 24 24`,path:`M4 5h16v4a3 3 0 000 6v4H4v-4a3 3 0 000-6V5zm8 1v2m0 2v2m0 2v2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(Ze);var Qe={name:`heart`,viewBox:`0 0 24 24`,path:`M20.8 8.8c0 5.2-8.8 11-8.8 11s-8.8-5.8-8.8-11a4.8 4.8 0 018.8-2.6 4.8 4.8 0 018.8 2.6z`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(Qe);var $e={name:`return`,viewBox:`0 0 24 24`,path:`M9 14l-5-5 5-5M4 9h10a6 6 0 010 12h-3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n($e);var et={name:`wallet`,viewBox:`0 0 24 24`,path:`M4 6.5A2.5 2.5 0 016.5 4H20v16H6a3 3 0 01-3-3V6.5A2.5 2.5 0 016 9h14m-4 4h.01`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(et);var tt={name:`gift`,viewBox:`0 0 24 24`,path:`M3 9h18v12H3V9zm-1-3h20v3H2V6zm10 0v15m0-15C11 4.6 9.8 3 8 3a1.5 1.5 0 000 3m4 0c1-1.4 2.2-3 4-3a1.5 1.5 0 010 3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(tt);var nt={name:`support`,viewBox:`0 0 24 24`,path:`M4 13v-2a8 8 0 0116 0v2m-16 0h3v6H6a2 2 0 01-2-2v-2a2 2 0 012-2zm16 0h-3v6h1a2 2 0 002-2v-2a2 2 0 00-2-2zm-3 8h-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(nt);var rt={name:`shopping-bag`,viewBox:`0 0 24 24`,path:`M5 8h14l1 13H4L5 8zm4 0V6a3 3 0 016 0v2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(rt);var it={name:`warehouse`,viewBox:`0 0 24 24`,path:`M3 10l9-6 9 6v10H3V10zm4 10v-7h10v7m-7-7v7m4-7v7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(it);var at={name:`delivery-location`,viewBox:`0 0 24 24`,path:`M12 21s7-6.2 7-12a7 7 0 10-14 0c0 5.8 7 12 7 12zm0-9a3 3 0 110-6 3 3 0 010 6zm-9 9h18`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(at);var ot={name:`order-tracking`,viewBox:`0 0 24 24`,path:`M2.5 6.5H14v11H2.5v-11zm11.5 2.5h4l3.5 4v4.5H14V9zm-7 9a2 2 0 100 4 2 2 0 000-4zm9 0a2 2 0 100 4 2 2 0 000-4zM5 10h7m-7 3h5`,customSvg:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
|
22
|
+
<path d="M2.5 6.5H14v11H2.5v-11z" />
|
|
23
|
+
<path d="M14 9h3.7l3.8 4v4.5H14" />
|
|
24
|
+
<path d="M15.5 10.5h1.7l2.5 2.5h-4.2z" stroke-width="1.5" />
|
|
25
|
+
<circle cx="7" cy="20" r="2" />
|
|
26
|
+
<circle cx="16" cy="20" r="2" />
|
|
27
|
+
</svg>`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(ot);var st={name:`cash`,viewBox:`0 0 24 24`,path:`M3 6h18v12H3V6zm4 3h.01M17 9h.01M7 15h.01M17 15h.01M12 15a3 3 0 100-6 3 3 0 000 6z`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(st);var ct={name:`installments`,viewBox:`0 0 24 24`,path:`M4 4h16v16H4V4zm0 4h16m-12 4h2m4 0h2m-8 4h2m4 0h2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(ct);var lt={name:`invoice`,viewBox:`0 0 24 24`,path:`M6 3h12v18l-3-2-3 2-3-2-3 2V3zm3 5h6m-6 4h6m-6 4h3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(lt);var ut={name:`price-label`,viewBox:`0 0 24 24`,path:`M3 5h10l8 8-8 8-10-10V5zm5 5h.01`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(ut);var dt={name:`sale-burst`,viewBox:`0 0 24 24`,path:`M12 1.5l1.63 2.31 2.39-1.51.62 2.76 2.78-.48-.48 2.78 2.76.62-1.51 2.39L22.5 12l-2.31 1.63 1.51 2.39-2.76.62.48 2.78-2.78-.48-.62 2.76-2.39-1.51L12 22.5l-1.63-2.31-2.39 1.51-.62-2.76-2.78.48.48-2.78-2.76-.62 1.51-2.39L1.5 12l2.31-1.63L2.3 7.98l2.76-.62-.48-2.78 2.78.48.62-2.76 2.39 1.51L12 1.5zm-3 6.2a1.7 1.7 0 100 3.4 1.7 1.7 0 000-3.4zm6 5.2a1.7 1.7 0 100 3.4 1.7 1.7 0 000-3.4M8 16l8-8`,strokeLinecap:`round`,strokeLinejoin:`miter`,strokeWidth:`1.8`};n(dt);var ft={name:`percent-discount`,viewBox:`0 0 24 24`,path:`M19 5L5 19M7 8a2 2 0 110-4 2 2 0 010 4zm10 12a2 2 0 110-4 2 2 0 010 4z`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(ft);var pt={name:`product-review`,viewBox:`0 0 24 24`,path:`M12 3l2.7 5.5 6.1.9-4.4 4.3 1 6.1-5.4-2.9-5.4 2.9 1-6.1-4.4-4.3 6.1-.9L12 3z`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(pt);var mt={name:`loyalty-points`,viewBox:`0 0 24 24`,path:`M12 3l2.4 4.8 5.3.8-3.8 3.7.9 5.2-4.8-2.5-4.8 2.5.9-5.2-3.8-3.7 5.3-.8L12 3zm-3 13v5l3-1.7 3 1.7v-5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(mt);var ht={name:`membership`,viewBox:`0 0 24 24`,path:`M5 3.5h14a2 2 0 012 2v13a2 2 0 01-2 2H5a2 2 0 01-2-2v-13a2 2 0 012-2zm-2 4h12m2-4v6l1.5-1.2L20 9.5v-6M8.5 11.5a1.3 1.3 0 100 2.6 1.3 1.3 0 000-2.6zm-2.3 5.1c.5-.9 1.3-1.3 2.3-1.3s1.8.4 2.3 1.3M13.5 12.5h4.5m-4.5 3h4.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(ht);var gt={name:`inventory`,viewBox:`0 0 24 24`,path:`M8 4h8a2 2 0 012 2v1h2v14H4V7h2V6a2 2 0 012-2zm1 0V3h6v1M8 11h8m-8 4h8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(gt);var _t={name:`out-of-stock`,viewBox:`0 0 24 24`,path:`M4 5h16v14H4V5zm3 3l10 8m0-8L7 16m-3 5h16`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(_t);var vt={name:`pickup`,viewBox:`0 0 24 24`,path:`M5.5 2.8a1.6 1.6 0 100 3.2 1.6 1.6 0 000-3.2zm-.8 5.1-1 5.8 2.2 1.7 2.5 5.1m-4.7-6.8L2.5 20m2.2-12.1 3.8 2.8 3.2.1m-.2-5.1l4.5-2 4.5 2-4.5 2-4.5-2zm0 0v5l4.5 2 4.5-2v-5m-4.5 1v6.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(vt);var yt={name:`secure-checkout`,viewBox:`0 0 24 24`,path:`M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6l7-3zm-3 9l2 2 4-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`};n(yt);var bt={name:`refund`,viewBox:`0 0 24 24`,path:`M14 5.5a6.5 6.5 0 110 13 6.5 6.5 0 010-13zm0 2.5v8m2-6.2c-.4-.8-1.1-1.2-2-1.2-1.2 0-2 .6-2 1.5 0 2 4 1 4 3s-.8 1.6-2 1.6c-.9 0-1.7-.4-2.1-1.2M6.5 7H3m0 0l2-2M3 7l2 2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`};n(bt),n(a),n(o),n(s),n(c),n(l),n(u),n(d),n(f),n(p),n(m),n(h),n(g),n(_),n(v),n(y),n(b),n(x),n(S),n(C),n(w),n(T),n(E),n(D),n(O),n(k),n(A),n(j),n(M),n(N),n(P),n(F),n(I),n(L),n(R),n(z),n(B),n(V),n(H),n(U),n(W),n(G),n(K),n(q),n(J),n(Y),n(X),n(Z),n(Q),n(ne),n(re),n(ie),n(ae),n(oe),n(se),n(ce),n(le),n(ue),n(de),n(fe),n(pe),n(me),n(he),n(ge),n(_e),n(ve),n($),n(ye),n(be),n(xe),n(Se),n(Ce),n(we),n(Te),n(Ee),n(De),n(Oe),n(ke),n(Ae),n(je),n(Me),n(Ne),n(Pe),n(Fe),n(Ie),n(Le),n(Re),n(ze),n(Be),n(Ve),n(He),n(Ue),n(We),n(Ge),n(Ke),n(qe),n(Je),n(Ye),n(Xe),n(Ze),n(Qe),n($e),n(et),n(tt),n(nt),n(rt),n(it),n(at),n(ot),n(st),n(ct),n(lt),n(ut),n(dt),n(ft),n(pt),n(mt),n(ht),n(gt),n(_t),n(vt),n(yt),n(bt),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return te}});
|