@drawbridge/components 0.0.78 → 0.1.1
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 +23 -1
- package/components/styles.css +228 -0
- package/dist/advertisement.js +64 -1047
- package/dist/advertisement.mjs +50 -41
- package/dist/bridge/advertisements.js +230 -0
- package/dist/bridge/advertisements.mjs +201 -0
- package/dist/bridge/countdown.js +88 -0
- package/dist/bridge/countdown.mjs +59 -0
- package/dist/bridge/fields.js +306 -0
- package/dist/bridge/fields.mjs +271 -0
- package/dist/bridge/form-subdomain-embed.js +283 -0
- package/dist/bridge/form-subdomain-embed.mjs +254 -0
- package/dist/bridge/form-subdomain-header.js +118 -0
- package/dist/bridge/form-subdomain-header.mjs +85 -0
- package/dist/bridge/form-subdomain-issue.js +265 -0
- package/dist/bridge/form-subdomain-issue.mjs +236 -0
- package/dist/bridge/form-subdomain-prize.js +160 -0
- package/dist/bridge/form-subdomain-prize.mjs +131 -0
- package/dist/bridge/form-subdomain-shop-modal.js +557 -0
- package/dist/bridge/form-subdomain-shop-modal.mjs +523 -0
- package/dist/bridge/form-subdomain-shop.js +64 -0
- package/dist/bridge/form-subdomain-shop.mjs +35 -0
- package/dist/bridge/form-subdomain.js +1012 -0
- package/dist/bridge/form-subdomain.mjs +977 -0
- package/dist/bridge/lib/age-gate.js +55 -0
- package/dist/bridge/lib/age-gate.mjs +21 -0
- package/dist/bridge/lib/checkout-kit.js +141 -0
- package/dist/bridge/lib/checkout-kit.mjs +107 -0
- package/dist/bridge/lib/constants.js +24 -0
- package/dist/bridge/lib/constants.mjs +5 -0
- package/dist/bridge/lib/css.js +31 -0
- package/dist/bridge/lib/css.mjs +8 -0
- package/dist/bridge/lib/recaptcha.js +31 -0
- package/dist/bridge/lib/recaptcha.mjs +8 -0
- package/dist/bridge/lib/url.js +64 -0
- package/dist/bridge/lib/url.mjs +39 -0
- package/dist/{embla.js → bridge/lib/yup.js} +10 -10
- package/dist/bridge/lib/yup.mjs +8 -0
- package/dist/bridge/product-tile.js +122 -0
- package/dist/bridge/product-tile.mjs +93 -0
- package/dist/bridge/provider-analytics.js +184 -0
- package/dist/bridge/provider-analytics.mjs +150 -0
- package/dist/bridge/share-button.js +239 -0
- package/dist/bridge/share-button.mjs +227 -0
- package/dist/bridge/subdomain-content.js +195 -0
- package/dist/bridge/subdomain-content.mjs +166 -0
- package/dist/bridge/template-layout.js +733 -0
- package/dist/bridge/template-layout.mjs +704 -0
- package/dist/bridge/template-modal.js +638 -0
- package/dist/bridge/template-modal.mjs +609 -0
- package/dist/bridge/template-not-found.js +83 -0
- package/dist/bridge/template-not-found.mjs +54 -0
- package/dist/bridge/template-subdomain-gallery.js +524 -0
- package/dist/bridge/template-subdomain-gallery.mjs +495 -0
- package/dist/bridge/template-subdomain-link.js +134 -0
- package/dist/bridge/template-subdomain-link.mjs +105 -0
- package/dist/bridge/template-subdomain.js +423 -0
- package/dist/bridge/template-subdomain.mjs +394 -0
- package/dist/dashboard/accordion.js +141 -0
- package/dist/dashboard/accordion.mjs +112 -0
- package/dist/dashboard/avatar.js +76 -0
- package/dist/dashboard/avatar.mjs +47 -0
- package/dist/dashboard/card-affiliate.js +266 -0
- package/dist/dashboard/card-affiliate.mjs +237 -0
- package/dist/dashboard/card-connection.js +214 -0
- package/dist/dashboard/card-connection.mjs +181 -0
- package/dist/dashboard/card-data-item.js +76 -0
- package/dist/dashboard/card-data-item.mjs +57 -0
- package/dist/dashboard/card-integration.js +187 -0
- package/dist/dashboard/card-integration.mjs +158 -0
- package/dist/dashboard/card-metric.js +147 -0
- package/dist/dashboard/card-metric.mjs +118 -0
- package/dist/dashboard/card-note.js +151 -0
- package/dist/dashboard/card-note.mjs +122 -0
- package/dist/dashboard/card-order.js +236 -0
- package/dist/dashboard/card-order.mjs +207 -0
- package/dist/dashboard/card-overage.js +307 -0
- package/dist/dashboard/card-overage.mjs +278 -0
- package/dist/dashboard/card-payment-method.js +82 -0
- package/dist/dashboard/card-payment-method.mjs +63 -0
- package/dist/dashboard/card-plan.js +363 -0
- package/dist/dashboard/card-plan.mjs +334 -0
- package/dist/dashboard/card-product.js +86 -0
- package/dist/dashboard/card-product.mjs +57 -0
- package/dist/dashboard/card-score.js +201 -0
- package/dist/dashboard/card-score.mjs +172 -0
- package/dist/dashboard/card-section.js +82 -0
- package/dist/dashboard/card-section.mjs +63 -0
- package/dist/dashboard/card-setting.js +136 -0
- package/dist/dashboard/card-setting.mjs +107 -0
- package/dist/dashboard/card-task.js +133 -0
- package/dist/dashboard/card-task.mjs +104 -0
- package/dist/dashboard/card-template.js +197 -0
- package/dist/dashboard/card-template.mjs +168 -0
- package/dist/dashboard/card-tile.js +459 -0
- package/dist/dashboard/card-tile.mjs +425 -0
- package/dist/dashboard/card-utm.js +83 -0
- package/dist/dashboard/card-utm.mjs +54 -0
- package/dist/dashboard/carousel-tiles.js +64 -0
- package/dist/dashboard/carousel-tiles.mjs +35 -0
- package/dist/dashboard/code-formatter.js +134 -0
- package/dist/dashboard/code-formatter.mjs +105 -0
- package/dist/dashboard/drawer-subscription.js +762 -0
- package/dist/dashboard/drawer-subscription.mjs +733 -0
- package/dist/dashboard/drawer.js +143 -0
- package/dist/dashboard/drawer.mjs +114 -0
- package/dist/dashboard/dropdown.js +154 -0
- package/dist/dashboard/dropdown.mjs +125 -0
- package/dist/dashboard/form-action.js +120 -0
- package/dist/dashboard/form-action.mjs +91 -0
- package/dist/dashboard/form-address.js +98 -0
- package/dist/dashboard/form-address.mjs +69 -0
- package/dist/dashboard/form-admin-campaign.js +161 -0
- package/dist/dashboard/form-admin-campaign.mjs +132 -0
- package/dist/dashboard/form-admin-invoice-refund.js +153 -0
- package/dist/dashboard/form-admin-invoice-refund.mjs +124 -0
- package/dist/dashboard/form-admin-oauth.js +327 -0
- package/dist/dashboard/form-admin-oauth.mjs +298 -0
- package/dist/dashboard/form-admin-organization.js +231 -0
- package/dist/dashboard/form-admin-organization.mjs +202 -0
- package/dist/dashboard/form-admin-provider.js +286 -0
- package/dist/dashboard/form-admin-provider.mjs +257 -0
- package/dist/dashboard/form-admin-referrer.js +227 -0
- package/dist/dashboard/form-admin-referrer.mjs +198 -0
- package/dist/dashboard/form-admin-subscription-custom.js +285 -0
- package/dist/dashboard/form-admin-subscription-custom.mjs +256 -0
- package/dist/dashboard/form-admin-template.js +514 -0
- package/dist/dashboard/form-admin-template.mjs +481 -0
- package/dist/dashboard/form-admin-user-credit.js +141 -0
- package/dist/dashboard/form-admin-user-credit.mjs +112 -0
- package/dist/dashboard/form-admin-user-permissions.js +141 -0
- package/dist/dashboard/form-admin-user-permissions.mjs +112 -0
- package/dist/dashboard/form-admin-user-status.js +151 -0
- package/dist/dashboard/form-admin-user-status.mjs +122 -0
- package/dist/dashboard/form-admin-utm.js +400 -0
- package/dist/dashboard/form-admin-utm.mjs +371 -0
- package/dist/dashboard/form-ai.js +779 -0
- package/dist/dashboard/form-ai.mjs +742 -0
- package/dist/dashboard/form-auth.js +597 -0
- package/dist/dashboard/form-auth.mjs +561 -0
- package/dist/dashboard/form-credit.js +80 -0
- package/dist/dashboard/form-credit.mjs +51 -0
- package/dist/dashboard/form-file-upload.js +527 -0
- package/dist/dashboard/form-file-upload.mjs +498 -0
- package/dist/dashboard/form-file.js +367 -0
- package/dist/dashboard/form-file.mjs +338 -0
- package/dist/dashboard/form-filters-analytics.js +294 -0
- package/dist/dashboard/form-filters-analytics.mjs +265 -0
- package/dist/dashboard/form-filters.js +411 -0
- package/dist/dashboard/form-filters.mjs +382 -0
- package/dist/dashboard/form-note.js +143 -0
- package/dist/dashboard/form-note.mjs +114 -0
- package/dist/dashboard/form-notification.js +173 -0
- package/dist/dashboard/form-notification.mjs +140 -0
- package/dist/dashboard/form-organization-affiliate.js +301 -0
- package/dist/dashboard/form-organization-affiliate.mjs +268 -0
- package/dist/dashboard/form-organization-brand.js +333 -0
- package/dist/dashboard/form-organization-brand.mjs +299 -0
- package/dist/dashboard/form-organization-campaign-advertisement.js +460 -0
- package/dist/dashboard/form-organization-campaign-advertisement.mjs +427 -0
- package/dist/dashboard/form-organization-campaign-agreement.js +251 -0
- package/dist/dashboard/form-organization-campaign-agreement.mjs +222 -0
- package/dist/dashboard/form-organization-campaign-draw.js +458 -0
- package/dist/dashboard/form-organization-campaign-draw.mjs +429 -0
- package/dist/dashboard/form-organization-campaign-field-email.js +401 -0
- package/dist/dashboard/form-organization-campaign-field-email.mjs +372 -0
- package/dist/dashboard/form-organization-campaign-field-name.js +185 -0
- package/dist/dashboard/form-organization-campaign-field-name.mjs +156 -0
- package/dist/dashboard/form-organization-campaign-field-number.js +228 -0
- package/dist/dashboard/form-organization-campaign-field-number.mjs +199 -0
- package/dist/dashboard/form-organization-campaign-field-phone.js +229 -0
- package/dist/dashboard/form-organization-campaign-field-phone.mjs +200 -0
- package/dist/dashboard/form-organization-campaign-field-select.js +258 -0
- package/dist/dashboard/form-organization-campaign-field-select.mjs +229 -0
- package/dist/dashboard/form-organization-campaign-field-text.js +202 -0
- package/dist/dashboard/form-organization-campaign-field-text.mjs +173 -0
- package/dist/dashboard/form-organization-campaign-field-textarea.js +236 -0
- package/dist/dashboard/form-organization-campaign-field-textarea.mjs +207 -0
- package/dist/dashboard/form-organization-campaign-integration-age.js +214 -0
- package/dist/dashboard/form-organization-campaign-integration-age.mjs +185 -0
- package/dist/dashboard/form-organization-campaign-integration-enable.js +105 -0
- package/dist/dashboard/form-organization-campaign-integration-enable.mjs +76 -0
- package/dist/dashboard/form-organization-campaign-integration-geocode.js +188 -0
- package/dist/dashboard/form-organization-campaign-integration-geocode.mjs +159 -0
- package/dist/dashboard/form-organization-campaign-integration-gtm.js +176 -0
- package/dist/dashboard/form-organization-campaign-integration-gtm.mjs +147 -0
- package/dist/dashboard/form-organization-campaign-lead.js +212 -0
- package/dist/dashboard/form-organization-campaign-lead.mjs +183 -0
- package/dist/dashboard/form-organization-campaign-link.js +241 -0
- package/dist/dashboard/form-organization-campaign-link.mjs +212 -0
- package/dist/dashboard/form-organization-campaign-page-affiliates.js +133 -0
- package/dist/dashboard/form-organization-campaign-page-affiliates.mjs +104 -0
- package/dist/dashboard/form-organization-campaign-page-embed.js +102 -0
- package/dist/dashboard/form-organization-campaign-page-embed.mjs +73 -0
- package/dist/dashboard/form-organization-campaign-page-preview.js +245 -0
- package/dist/dashboard/form-organization-campaign-page-preview.mjs +216 -0
- package/dist/dashboard/form-organization-campaign-page-qr.js +417 -0
- package/dist/dashboard/form-organization-campaign-page-qr.mjs +384 -0
- package/dist/dashboard/form-organization-campaign-page-share.js +484 -0
- package/dist/dashboard/form-organization-campaign-page-share.mjs +455 -0
- package/dist/dashboard/form-organization-campaign-page-slug.js +187 -0
- package/dist/dashboard/form-organization-campaign-page-slug.mjs +158 -0
- package/dist/dashboard/form-organization-campaign-page.js +400 -0
- package/dist/dashboard/form-organization-campaign-page.mjs +366 -0
- package/dist/dashboard/form-organization-campaign-prize-edit.js +543 -0
- package/dist/dashboard/form-organization-campaign-prize-edit.mjs +514 -0
- package/dist/dashboard/form-organization-campaign-prize.js +141 -0
- package/dist/dashboard/form-organization-campaign-prize.mjs +112 -0
- package/dist/dashboard/form-organization-campaign-range.js +269 -0
- package/dist/dashboard/form-organization-campaign-range.mjs +240 -0
- package/dist/dashboard/form-organization-campaign.js +1106 -0
- package/dist/dashboard/form-organization-campaign.mjs +1067 -0
- package/dist/dashboard/form-organization-connection.js +545 -0
- package/dist/dashboard/form-organization-connection.mjs +512 -0
- package/dist/dashboard/form-organization-export.js +289 -0
- package/dist/dashboard/form-organization-export.mjs +260 -0
- package/dist/dashboard/form-organization-file-frame.js +168 -0
- package/dist/dashboard/form-organization-file-frame.mjs +139 -0
- package/dist/dashboard/form-organization-file.js +332 -0
- package/dist/dashboard/form-organization-file.mjs +303 -0
- package/dist/dashboard/form-organization-identity.js +800 -0
- package/dist/dashboard/form-organization-identity.mjs +765 -0
- package/dist/dashboard/form-organization-member.js +332 -0
- package/dist/dashboard/form-organization-member.mjs +303 -0
- package/dist/dashboard/form-organization-segment.js +441 -0
- package/dist/dashboard/form-organization-segment.mjs +412 -0
- package/dist/dashboard/form-organization-workflow.js +1145 -0
- package/dist/dashboard/form-organization-workflow.mjs +1109 -0
- package/dist/dashboard/form-organization.js +788 -0
- package/dist/dashboard/form-organization.mjs +751 -0
- package/dist/dashboard/form-otc.js +228 -0
- package/dist/dashboard/form-otc.mjs +194 -0
- package/dist/dashboard/form-payment-methods.js +183 -0
- package/dist/dashboard/form-payment-methods.mjs +154 -0
- package/dist/dashboard/form-profile.js +281 -0
- package/dist/dashboard/form-profile.mjs +248 -0
- package/dist/dashboard/form-stripe-promotion.js +142 -0
- package/dist/dashboard/form-stripe-promotion.mjs +113 -0
- package/dist/dashboard/form-stripe.js +236 -0
- package/dist/dashboard/form-stripe.mjs +207 -0
- package/dist/dashboard/form-verify-prize.js +342 -0
- package/dist/dashboard/form-verify-prize.mjs +309 -0
- package/dist/dashboard/google.js +671 -0
- package/dist/dashboard/google.mjs +637 -0
- package/dist/dashboard/guard-navigation.js +228 -0
- package/dist/dashboard/guard-navigation.mjs +195 -0
- package/dist/dashboard/guide.js +238 -0
- package/dist/dashboard/guide.mjs +209 -0
- package/dist/dashboard/iframe.js +159 -0
- package/dist/dashboard/iframe.mjs +130 -0
- package/dist/dashboard/input-address-saved.js +288 -0
- package/dist/dashboard/input-address-saved.mjs +259 -0
- package/dist/dashboard/input-array.js +272 -0
- package/dist/dashboard/input-array.mjs +236 -0
- package/dist/dashboard/input-color.js +192 -0
- package/dist/dashboard/input-color.mjs +163 -0
- package/dist/dashboard/input-combobox.js +281 -0
- package/dist/dashboard/input-combobox.mjs +258 -0
- package/dist/dashboard/input-date.js +234 -0
- package/dist/dashboard/input-date.mjs +201 -0
- package/dist/dashboard/input-editor.js +476 -0
- package/dist/dashboard/input-editor.mjs +441 -0
- package/dist/dashboard/input-fields.js +1101 -0
- package/dist/dashboard/input-fields.mjs +1060 -0
- package/dist/dashboard/input-file.js +188 -0
- package/dist/dashboard/input-file.mjs +159 -0
- package/dist/dashboard/input-font.js +506 -0
- package/dist/dashboard/input-font.mjs +477 -0
- package/dist/dashboard/input-group-ai.js +157 -0
- package/dist/dashboard/input-group-ai.mjs +128 -0
- package/dist/dashboard/input-radio.js +126 -0
- package/dist/dashboard/input-radio.mjs +97 -0
- package/dist/dashboard/input-resource.js +206 -0
- package/dist/dashboard/input-resource.mjs +177 -0
- package/dist/dashboard/input-secret.js +221 -0
- package/dist/dashboard/input-secret.mjs +192 -0
- package/dist/dashboard/input-time.js +100 -0
- package/dist/dashboard/input-time.mjs +71 -0
- package/dist/dashboard/lib/confetti.js +70 -0
- package/dist/dashboard/lib/confetti.mjs +37 -0
- package/dist/dashboard/lib/connection-controls.js +34 -0
- package/dist/dashboard/lib/connection-controls.mjs +11 -0
- package/dist/dashboard/lib/features.js +57 -0
- package/dist/dashboard/lib/features.mjs +22 -0
- package/dist/dashboard/lib/frames.js +35 -0
- package/dist/dashboard/lib/frames.mjs +11 -0
- package/dist/dashboard/lib/geo.js +138 -0
- package/dist/dashboard/lib/geo.mjs +113 -0
- package/dist/dashboard/lib/hooks.js +426 -0
- package/dist/dashboard/lib/hooks.mjs +397 -0
- package/dist/dashboard/lib/navigation.js +46 -0
- package/dist/dashboard/lib/navigation.mjs +23 -0
- package/dist/dashboard/lib/otc.js +45 -0
- package/dist/dashboard/lib/otc.mjs +22 -0
- package/dist/dashboard/lib/overage.js +30 -0
- package/dist/dashboard/lib/overage.mjs +6 -0
- package/dist/dashboard/lib/table-actions.js +108 -0
- package/dist/dashboard/lib/table-actions.mjs +75 -0
- package/dist/dashboard/lib/time-slots.js +72 -0
- package/dist/dashboard/lib/time-slots.mjs +44 -0
- package/dist/dashboard/lib/trickle.js +31 -0
- package/dist/dashboard/lib/trickle.mjs +8 -0
- package/dist/dashboard/lib/uppy.js +202 -0
- package/dist/dashboard/lib/uppy.mjs +166 -0
- package/dist/dashboard/lib/utm.js +66 -0
- package/dist/dashboard/lib/utm.mjs +42 -0
- package/dist/dashboard/link-back.js +94 -0
- package/dist/dashboard/link-back.mjs +65 -0
- package/dist/dashboard/link.js +129 -0
- package/dist/dashboard/link.mjs +95 -0
- package/dist/dashboard/list-resource.js +184 -0
- package/dist/dashboard/list-resource.mjs +155 -0
- package/dist/dashboard/list.js +96 -0
- package/dist/dashboard/list.mjs +67 -0
- package/dist/dashboard/menu.js +834 -0
- package/dist/dashboard/menu.mjs +795 -0
- package/dist/dashboard/modal.js +194 -0
- package/dist/dashboard/modal.mjs +165 -0
- package/dist/dashboard/notes.js +169 -0
- package/dist/dashboard/notes.mjs +140 -0
- package/dist/dashboard/notice.js +138 -0
- package/dist/dashboard/notice.mjs +109 -0
- package/dist/dashboard/paged.js +430 -0
- package/dist/dashboard/paged.mjs +401 -0
- package/dist/dashboard/provider-resource.js +102 -0
- package/dist/dashboard/provider-resource.mjs +73 -0
- package/dist/dashboard/provider-ui.js +255 -0
- package/dist/dashboard/provider-ui.mjs +226 -0
- package/dist/dashboard/provider.js +79 -0
- package/dist/dashboard/provider.mjs +50 -0
- package/dist/dashboard/recharts.js +630 -0
- package/dist/dashboard/recharts.mjs +596 -0
- package/dist/dashboard/steps.js +263 -0
- package/dist/dashboard/steps.mjs +229 -0
- package/dist/dashboard/swatch.js +81 -0
- package/dist/dashboard/swatch.mjs +52 -0
- package/dist/dashboard/table-cell-title.js +207 -0
- package/dist/dashboard/table-cell-title.mjs +174 -0
- package/dist/dashboard/table.js +765 -0
- package/dist/dashboard/table.mjs +723 -0
- package/dist/dashboard/template-dashboard.js +697 -0
- package/dist/dashboard/template-dashboard.mjs +662 -0
- package/dist/dashboard/template-not-found.js +124 -0
- package/dist/dashboard/template-not-found.mjs +95 -0
- package/dist/dashboard/template-socket.js +502 -0
- package/dist/dashboard/template-socket.mjs +466 -0
- package/dist/dashboard/template-suspended.js +64 -0
- package/dist/dashboard/template-suspended.mjs +41 -0
- package/dist/dashboard/template-ui.js +535 -0
- package/dist/dashboard/template-ui.mjs +506 -0
- package/dist/dashboard/wrapper-ai.js +79 -0
- package/dist/dashboard/wrapper-ai.mjs +50 -0
- package/dist/icons/arrow-down-tray.js +1 -3
- package/dist/icons/arrow-down-tray.mjs +1 -2
- package/dist/icons/arrow-left.js +1 -3
- package/dist/icons/arrow-left.mjs +1 -2
- package/dist/icons/arrow-right.js +1 -3
- package/dist/icons/arrow-right.mjs +1 -2
- package/dist/icons/arrow-up-tray.js +1 -3
- package/dist/icons/arrow-up-tray.mjs +1 -2
- package/dist/icons/bars-arrow-down.js +1 -3
- package/dist/icons/bars-arrow-down.mjs +1 -2
- package/dist/icons/bars-arrow-up.js +1 -3
- package/dist/icons/bars-arrow-up.mjs +1 -2
- package/dist/icons/bold.js +1 -3
- package/dist/icons/bold.mjs +1 -2
- package/dist/icons/bolt.js +1 -3
- package/dist/icons/bolt.mjs +1 -2
- package/dist/icons/calendar.js +1 -3
- package/dist/icons/calendar.mjs +1 -2
- package/dist/icons/cancel.js +1 -3
- package/dist/icons/cancel.mjs +1 -2
- package/dist/icons/card.js +1 -3
- package/dist/icons/card.mjs +1 -2
- package/dist/icons/chart.js +1 -3
- package/dist/icons/chart.mjs +1 -2
- package/dist/icons/check.js +1 -3
- package/dist/icons/check.mjs +24 -3
- package/dist/icons/chevron-down.js +1 -3
- package/dist/icons/chevron-down.mjs +24 -3
- package/dist/icons/chevron-left.js +1 -3
- package/dist/icons/chevron-left.mjs +1 -2
- package/dist/icons/chevron-right.js +1 -3
- package/dist/icons/chevron-right.mjs +1 -2
- package/dist/icons/chevron-up-down.js +1 -3
- package/dist/icons/chevron-up-down.mjs +1 -2
- package/dist/icons/chevron-up.js +1 -3
- package/dist/icons/chevron-up.mjs +1 -2
- package/dist/icons/clock.js +1 -3
- package/dist/icons/clock.mjs +1 -2
- package/dist/icons/code-bracket.js +1 -3
- package/dist/icons/code-bracket.mjs +1 -2
- package/dist/icons/cog.js +1 -3
- package/dist/icons/cog.mjs +1 -2
- package/dist/icons/copy.js +1 -3
- package/dist/icons/copy.mjs +1 -2
- package/dist/icons/discord.js +1 -3
- package/dist/icons/discord.mjs +13 -3
- package/dist/icons/document.js +1 -3
- package/dist/icons/document.mjs +1 -2
- package/dist/icons/download.js +1 -3
- package/dist/icons/download.mjs +1 -2
- package/dist/icons/drag.js +1 -3
- package/dist/icons/drag.mjs +1 -2
- package/dist/icons/ellipsis.js +1 -3
- package/dist/icons/ellipsis.mjs +1 -2
- package/dist/icons/email.js +1 -3
- package/dist/icons/email.mjs +1 -2
- package/dist/icons/external.js +1 -3
- package/dist/icons/external.mjs +1 -2
- package/dist/icons/facebook.js +1 -3
- package/dist/icons/facebook.mjs +13 -3
- package/dist/icons/filter.js +1 -3
- package/dist/icons/filter.mjs +1 -2
- package/dist/icons/flag.js +1 -3
- package/dist/icons/flag.mjs +1 -2
- package/dist/icons/github.js +1 -3
- package/dist/icons/github.mjs +13 -3
- package/dist/icons/google.js +1 -3
- package/dist/icons/google.mjs +1 -2
- package/dist/icons/home.js +1 -3
- package/dist/icons/home.mjs +1 -2
- package/dist/icons/image.js +1 -3
- package/dist/icons/image.mjs +1 -2
- package/dist/icons/instagram.js +1 -3
- package/dist/icons/instagram.mjs +13 -3
- package/dist/icons/italic.js +1 -3
- package/dist/icons/italic.mjs +1 -2
- package/dist/icons/link.js +1 -3
- package/dist/icons/link.mjs +1 -2
- package/dist/icons/linkedin.js +1 -3
- package/dist/icons/linkedin.mjs +13 -3
- package/dist/icons/loader.js +1 -3
- package/dist/icons/loader.mjs +40 -3
- package/dist/icons/lock.js +1 -3
- package/dist/icons/lock.mjs +1 -2
- package/dist/icons/logo-mark.js +1 -3
- package/dist/icons/logo-mark.mjs +1 -2
- package/dist/icons/logo-tagline.js +1 -3
- package/dist/icons/logo-tagline.mjs +1 -2
- package/dist/icons/map-pin.js +1 -3
- package/dist/icons/map-pin.mjs +1 -2
- package/dist/icons/menu.js +1 -3
- package/dist/icons/menu.mjs +1 -2
- package/dist/icons/minus.js +1 -3
- package/dist/icons/minus.mjs +24 -3
- package/dist/icons/muted.js +1 -3
- package/dist/icons/muted.mjs +1 -2
- package/dist/icons/pause.js +1 -3
- package/dist/icons/pause.mjs +1 -2
- package/dist/icons/pencil.js +1 -3
- package/dist/icons/pencil.mjs +1 -2
- package/dist/icons/pinterest.js +1 -3
- package/dist/icons/pinterest.mjs +13 -3
- package/dist/icons/play.js +1 -3
- package/dist/icons/play.mjs +1 -2
- package/dist/icons/plus.js +1 -3
- package/dist/icons/plus.mjs +24 -3
- package/dist/icons/powered-by.js +1 -3
- package/dist/icons/powered-by.mjs +1 -2
- package/dist/icons/qr-code.js +1 -3
- package/dist/icons/qr-code.mjs +1 -2
- package/dist/icons/queue.js +1 -3
- package/dist/icons/queue.mjs +1 -2
- package/dist/icons/refresh.js +1 -3
- package/dist/icons/refresh.mjs +1 -2
- package/dist/icons/refund.js +1 -3
- package/dist/icons/refund.mjs +1 -2
- package/dist/icons/rocket.js +1 -3
- package/dist/icons/rocket.mjs +1 -2
- package/dist/icons/search.js +1 -3
- package/dist/icons/search.mjs +1 -2
- package/dist/icons/share.js +1 -3
- package/dist/icons/share.mjs +1 -2
- package/dist/icons/shop.js +1 -3
- package/dist/icons/shop.mjs +1 -2
- package/dist/icons/snapchat.js +1 -3
- package/dist/icons/snapchat.mjs +13 -3
- package/dist/icons/social.js +39 -229
- package/dist/icons/social.mjs +29 -59
- package/dist/icons/sparkles.js +1 -3
- package/dist/icons/sparkles.mjs +1 -2
- package/dist/icons/spotify.js +1 -3
- package/dist/icons/spotify.mjs +13 -3
- package/dist/icons/star.js +1 -3
- package/dist/icons/star.mjs +1 -2
- package/dist/icons/switch.js +1 -3
- package/dist/icons/switch.mjs +1 -2
- package/dist/icons/threads.js +1 -3
- package/dist/icons/threads.mjs +13 -3
- package/dist/icons/tiktok.js +1 -3
- package/dist/icons/tiktok.mjs +13 -3
- package/dist/icons/times.js +1 -3
- package/dist/icons/times.mjs +1 -2
- package/dist/icons/trash.js +1 -3
- package/dist/icons/trash.mjs +1 -2
- package/dist/icons/twitch.js +1 -3
- package/dist/icons/twitch.mjs +13 -3
- package/dist/icons/underline.js +1 -3
- package/dist/icons/underline.mjs +1 -2
- package/dist/icons/upload.js +1 -3
- package/dist/icons/upload.mjs +1 -2
- package/dist/icons/volume.js +1 -3
- package/dist/icons/volume.mjs +1 -2
- package/dist/icons/warning.js +1 -3
- package/dist/icons/warning.mjs +24 -3
- package/dist/icons/whatsapp.js +1 -3
- package/dist/icons/whatsapp.mjs +13 -3
- package/dist/icons/x.js +1 -3
- package/dist/icons/x.mjs +13 -3
- package/dist/icons/youtube.js +1 -3
- package/dist/icons/youtube.mjs +13 -3
- package/dist/input-checkbox.js +37 -72
- package/dist/input-checkbox.mjs +24 -19
- package/dist/input-group.js +43 -153
- package/dist/input-group.mjs +125 -6
- package/dist/input-name.js +27 -294
- package/dist/input-name.mjs +9 -18
- package/dist/input-number.js +51 -106
- package/dist/input-number.mjs +32 -31
- package/dist/input-phone.js +28 -74
- package/dist/input-phone.mjs +15 -17
- package/dist/input-select.js +27 -63
- package/dist/input-select.mjs +91 -5
- package/dist/input-text.js +3 -27
- package/dist/input-text.mjs +29 -4
- package/dist/input-textarea.js +7 -28
- package/dist/input-textarea.mjs +6 -7
- package/dist/product.js +98 -726
- package/dist/product.mjs +375 -11
- package/dist/provider-font.js +10 -26
- package/dist/provider-font.mjs +4 -10
- package/dist/shared/address-lines.js +74 -0
- package/dist/shared/address-lines.mjs +55 -0
- package/dist/shared/badge.js +88 -0
- package/dist/shared/badge.mjs +59 -0
- package/dist/shared/button.js +106 -0
- package/dist/shared/button.mjs +77 -0
- package/dist/shared/card-asset.js +139 -0
- package/dist/shared/card-asset.mjs +110 -0
- package/dist/shared/card-prize.js +188 -0
- package/dist/shared/card-prize.mjs +159 -0
- package/dist/shared/carousel.js +175 -0
- package/dist/shared/carousel.mjs +146 -0
- package/dist/shared/copy-to-clipboard.js +129 -0
- package/dist/shared/copy-to-clipboard.mjs +100 -0
- package/dist/shared/divider.js +67 -0
- package/dist/shared/divider.mjs +48 -0
- package/dist/shared/empty.js +56 -0
- package/dist/shared/empty.mjs +37 -0
- package/dist/shared/error.js +112 -0
- package/dist/shared/error.mjs +83 -0
- package/dist/shared/fieldset.js +76 -0
- package/dist/shared/fieldset.mjs +57 -0
- package/dist/shared/form.js +48 -0
- package/dist/shared/form.mjs +29 -0
- package/dist/shared/indicator.js +50 -0
- package/dist/shared/indicator.mjs +31 -0
- package/dist/shared/input-checkbox-list.js +114 -0
- package/dist/shared/input-checkbox-list.mjs +85 -0
- package/dist/shared/input-range.js +111 -0
- package/dist/shared/input-range.mjs +92 -0
- package/dist/shared/input-switch.js +111 -0
- package/dist/shared/input-switch.mjs +82 -0
- package/dist/{embla-fade.js → shared/input-url.js} +18 -13
- package/dist/shared/input-url.mjs +17 -0
- package/dist/shared/lib/form.js +85 -0
- package/dist/shared/lib/form.mjs +59 -0
- package/dist/shared/lib/helpers.js +401 -0
- package/dist/shared/lib/helpers.mjs +341 -0
- package/dist/shared/lib/icon-labels.js +53 -0
- package/dist/shared/lib/icon-labels.mjs +20 -0
- package/dist/shared/lib/yup.js +83 -0
- package/dist/shared/lib/yup.mjs +50 -0
- package/dist/shared/loader.js +124 -0
- package/dist/shared/loader.mjs +90 -0
- package/dist/shared/overlay.js +73 -0
- package/dist/shared/overlay.mjs +44 -0
- package/dist/shared/progress.js +75 -0
- package/dist/shared/progress.mjs +56 -0
- package/dist/shared/provider-recaptcha.js +43 -0
- package/dist/shared/provider-recaptcha.mjs +24 -0
- package/dist/shared/sortable.js +227 -0
- package/dist/shared/sortable.mjs +198 -0
- package/dist/shared/tabs.js +140 -0
- package/dist/shared/tabs.mjs +111 -0
- package/dist/shared/tooltip.js +108 -0
- package/dist/shared/tooltip.mjs +79 -0
- package/dist/styles.js +27 -23
- package/dist/styles.mjs +89 -18
- package/dist/video.js +16 -86
- package/dist/video.mjs +8 -14
- package/dist/wrapper-gradient.js +4 -6
- package/dist/wrapper-gradient.mjs +202 -4
- package/package.json +1285 -19
- package/types/bridge/advertisements.d.ts +33 -0
- package/types/bridge/countdown.d.ts +11 -0
- package/types/bridge/fields.d.ts +29 -0
- package/types/bridge/form-subdomain-embed.d.ts +26 -0
- package/types/bridge/form-subdomain-header.d.ts +14 -0
- package/types/bridge/form-subdomain-issue.d.ts +16 -0
- package/types/bridge/form-subdomain-prize.d.ts +22 -0
- package/types/bridge/form-subdomain-shop-modal.d.ts +41 -0
- package/types/bridge/form-subdomain-shop.d.ts +14 -0
- package/types/bridge/form-subdomain.d.ts +69 -0
- package/types/bridge/lib/age-gate.d.ts +11 -0
- package/types/bridge/lib/checkout-kit.d.ts +27 -0
- package/types/bridge/lib/constants.d.ts +5 -0
- package/types/bridge/lib/css.d.ts +3 -0
- package/types/bridge/lib/recaptcha.d.ts +5 -0
- package/types/bridge/lib/url.d.ts +21 -0
- package/types/bridge/lib/yup.d.ts +20 -0
- package/types/bridge/product-tile.d.ts +26 -0
- package/types/bridge/provider-analytics.d.ts +25 -0
- package/types/bridge/share-button.d.ts +18 -0
- package/types/bridge/subdomain-content.d.ts +25 -0
- package/types/bridge/template-layout.d.ts +12 -0
- package/types/bridge/template-modal.d.ts +46 -0
- package/types/bridge/template-not-found.d.ts +9 -0
- package/types/bridge/template-subdomain-gallery.d.ts +25 -0
- package/types/bridge/template-subdomain-link.d.ts +18 -0
- package/types/bridge/template-subdomain.d.ts +22 -0
- package/types/dashboard/accordion.d.ts +25 -0
- package/types/dashboard/avatar.d.ts +17 -0
- package/types/dashboard/card-affiliate.d.ts +24 -0
- package/types/dashboard/card-connection.d.ts +23 -0
- package/types/dashboard/card-data-item.d.ts +15 -0
- package/types/dashboard/card-integration.d.ts +24 -0
- package/types/dashboard/card-metric.d.ts +16 -0
- package/types/dashboard/card-note.d.ts +24 -0
- package/types/dashboard/card-order.d.ts +25 -0
- package/types/dashboard/card-overage.d.ts +26 -0
- package/types/dashboard/card-payment-method.d.ts +16 -0
- package/types/dashboard/card-plan.d.ts +28 -0
- package/types/dashboard/card-product.d.ts +14 -0
- package/types/dashboard/card-score.d.ts +38 -0
- package/types/dashboard/card-section.d.ts +13 -0
- package/types/dashboard/card-setting.d.ts +21 -0
- package/types/dashboard/card-task.d.ts +34 -0
- package/types/dashboard/card-template.d.ts +34 -0
- package/types/dashboard/card-tile.d.ts +54 -0
- package/types/dashboard/card-utm.d.ts +20 -0
- package/types/dashboard/carousel-tiles.d.ts +13 -0
- package/types/dashboard/code-formatter.d.ts +14 -0
- package/types/dashboard/drawer-subscription.d.ts +35 -0
- package/types/dashboard/drawer.d.ts +16 -0
- package/types/dashboard/dropdown.d.ts +33 -0
- package/types/dashboard/form-action.d.ts +20 -0
- package/types/dashboard/form-address.d.ts +28 -0
- package/types/dashboard/form-admin-campaign.d.ts +19 -0
- package/types/dashboard/form-admin-invoice-refund.d.ts +16 -0
- package/types/dashboard/form-admin-oauth.d.ts +20 -0
- package/types/dashboard/form-admin-organization.d.ts +17 -0
- package/types/dashboard/form-admin-provider.d.ts +33 -0
- package/types/dashboard/form-admin-referrer.d.ts +18 -0
- package/types/dashboard/form-admin-subscription-custom.d.ts +31 -0
- package/types/dashboard/form-admin-template.d.ts +16 -0
- package/types/dashboard/form-admin-user-credit.d.ts +12 -0
- package/types/dashboard/form-admin-user-permissions.d.ts +16 -0
- package/types/dashboard/form-admin-user-status.d.ts +11 -0
- package/types/dashboard/form-admin-utm.d.ts +39 -0
- package/types/dashboard/form-ai.d.ts +64 -0
- package/types/dashboard/form-auth.d.ts +64 -0
- package/types/dashboard/form-credit.d.ts +10 -0
- package/types/dashboard/form-file-upload.d.ts +16 -0
- package/types/dashboard/form-file.d.ts +33 -0
- package/types/dashboard/form-filters-analytics.d.ts +40 -0
- package/types/dashboard/form-filters.d.ts +70 -0
- package/types/dashboard/form-note.d.ts +15 -0
- package/types/dashboard/form-notification.d.ts +30 -0
- package/types/dashboard/form-organization-affiliate.d.ts +29 -0
- package/types/dashboard/form-organization-brand.d.ts +37 -0
- package/types/dashboard/form-organization-campaign-advertisement.d.ts +49 -0
- package/types/dashboard/form-organization-campaign-agreement.d.ts +25 -0
- package/types/dashboard/form-organization-campaign-draw.d.ts +30 -0
- package/types/dashboard/form-organization-campaign-field-email.d.ts +31 -0
- package/types/dashboard/form-organization-campaign-field-name.d.ts +28 -0
- package/types/dashboard/form-organization-campaign-field-number.d.ts +27 -0
- package/types/dashboard/form-organization-campaign-field-phone.d.ts +29 -0
- package/types/dashboard/form-organization-campaign-field-select.d.ts +29 -0
- package/types/dashboard/form-organization-campaign-field-text.d.ts +30 -0
- package/types/dashboard/form-organization-campaign-field-textarea.d.ts +28 -0
- package/types/dashboard/form-organization-campaign-integration-age.d.ts +24 -0
- package/types/dashboard/form-organization-campaign-integration-enable.d.ts +24 -0
- package/types/dashboard/form-organization-campaign-integration-geocode.d.ts +27 -0
- package/types/dashboard/form-organization-campaign-integration-gtm.d.ts +18 -0
- package/types/dashboard/form-organization-campaign-lead.d.ts +22 -0
- package/types/dashboard/form-organization-campaign-link.d.ts +28 -0
- package/types/dashboard/form-organization-campaign-page-affiliates.d.ts +16 -0
- package/types/dashboard/form-organization-campaign-page-embed.d.ts +14 -0
- package/types/dashboard/form-organization-campaign-page-preview.d.ts +23 -0
- package/types/dashboard/form-organization-campaign-page-qr.d.ts +44 -0
- package/types/dashboard/form-organization-campaign-page-share.d.ts +23 -0
- package/types/dashboard/form-organization-campaign-page-slug.d.ts +23 -0
- package/types/dashboard/form-organization-campaign-page.d.ts +43 -0
- package/types/dashboard/form-organization-campaign-prize-edit.d.ts +39 -0
- package/types/dashboard/form-organization-campaign-prize.d.ts +11 -0
- package/types/dashboard/form-organization-campaign-range.d.ts +24 -0
- package/types/dashboard/form-organization-campaign.d.ts +49 -0
- package/types/dashboard/form-organization-connection.d.ts +47 -0
- package/types/dashboard/form-organization-export.d.ts +21 -0
- package/types/dashboard/form-organization-file-frame.d.ts +20 -0
- package/types/dashboard/form-organization-file.d.ts +33 -0
- package/types/dashboard/form-organization-identity.d.ts +87 -0
- package/types/dashboard/form-organization-member.d.ts +25 -0
- package/types/dashboard/form-organization-segment.d.ts +32 -0
- package/types/dashboard/form-organization-workflow.d.ts +78 -0
- package/types/dashboard/form-organization.d.ts +50 -0
- package/types/dashboard/form-otc.d.ts +29 -0
- package/types/dashboard/form-payment-methods.d.ts +22 -0
- package/types/dashboard/form-profile.d.ts +23 -0
- package/types/dashboard/form-stripe-promotion.d.ts +12 -0
- package/types/dashboard/form-stripe.d.ts +20 -0
- package/types/dashboard/form-verify-prize.d.ts +40 -0
- package/types/dashboard/google.d.ts +48 -0
- package/types/dashboard/guard-navigation.d.ts +11 -0
- package/types/dashboard/guide.d.ts +23 -0
- package/types/dashboard/iframe.d.ts +18 -0
- package/types/dashboard/input-address-saved.d.ts +9 -0
- package/types/dashboard/input-array.d.ts +56 -0
- package/types/dashboard/input-color.d.ts +20 -0
- package/types/dashboard/input-combobox.d.ts +30 -0
- package/types/dashboard/input-date.d.ts +32 -0
- package/types/dashboard/input-editor.d.ts +32 -0
- package/types/dashboard/input-fields.d.ts +49 -0
- package/types/dashboard/input-file.d.ts +30 -0
- package/types/dashboard/input-font.d.ts +20 -0
- package/types/dashboard/input-group-ai.d.ts +24 -0
- package/types/dashboard/input-radio.d.ts +19 -0
- package/types/dashboard/input-resource.d.ts +33 -0
- package/types/dashboard/input-secret.d.ts +32 -0
- package/types/dashboard/input-time.d.ts +25 -0
- package/types/dashboard/lib/confetti.d.ts +2 -0
- package/types/dashboard/lib/connection-controls.d.ts +12 -0
- package/types/dashboard/lib/features.d.ts +10 -0
- package/types/dashboard/lib/frames.d.ts +12 -0
- package/types/dashboard/lib/geo.d.ts +37 -0
- package/types/dashboard/lib/hooks.d.ts +65 -0
- package/types/dashboard/lib/navigation.d.ts +24 -0
- package/types/dashboard/lib/otc.d.ts +10 -0
- package/types/dashboard/lib/overage.d.ts +9 -0
- package/types/dashboard/lib/table-actions.d.ts +18 -0
- package/types/dashboard/lib/time-slots.d.ts +34 -0
- package/types/dashboard/lib/trickle.d.ts +11 -0
- package/types/dashboard/lib/uppy.d.ts +36 -0
- package/types/dashboard/lib/utm.d.ts +32 -0
- package/types/dashboard/link-back.d.ts +15 -0
- package/types/dashboard/link.d.ts +17 -0
- package/types/dashboard/list-resource.d.ts +39 -0
- package/types/dashboard/list.d.ts +26 -0
- package/types/dashboard/menu.d.ts +65 -0
- package/types/dashboard/modal.d.ts +20 -0
- package/types/dashboard/notes.d.ts +20 -0
- package/types/dashboard/notice.d.ts +20 -0
- package/types/dashboard/paged.d.ts +57 -0
- package/types/dashboard/provider-resource.d.ts +29 -0
- package/types/dashboard/provider-ui.d.ts +17 -0
- package/types/dashboard/provider.d.ts +12 -0
- package/types/dashboard/recharts.d.ts +32 -0
- package/types/dashboard/steps.d.ts +40 -0
- package/types/dashboard/swatch.d.ts +14 -0
- package/types/dashboard/table-cell-title.d.ts +24 -0
- package/types/dashboard/table.d.ts +106 -0
- package/types/dashboard/template-dashboard.d.ts +110 -0
- package/types/dashboard/template-not-found.d.ts +14 -0
- package/types/dashboard/template-socket.d.ts +17 -0
- package/types/dashboard/template-suspended.d.ts +12 -0
- package/types/dashboard/template-ui.d.ts +14 -0
- package/types/dashboard/wrapper-ai.d.ts +12 -0
- package/types/input-group.d.ts +1 -0
- package/types/input-phone.d.ts +2 -0
- package/types/input-textarea.d.ts +2 -0
- package/types/shared/address-lines.d.ts +14 -0
- package/types/shared/badge.d.ts +14 -0
- package/types/shared/button.d.ts +29 -0
- package/types/shared/card-asset.d.ts +29 -0
- package/types/shared/card-prize.d.ts +27 -0
- package/types/shared/carousel.d.ts +21 -0
- package/types/shared/copy-to-clipboard.d.ts +23 -0
- package/types/shared/divider.d.ts +11 -0
- package/types/shared/empty.d.ts +18 -0
- package/types/shared/error.d.ts +17 -0
- package/types/shared/fieldset.d.ts +17 -0
- package/types/shared/form.d.ts +13 -0
- package/types/shared/indicator.d.ts +10 -0
- package/types/shared/input-checkbox-list.d.ts +20 -0
- package/types/shared/input-range.d.ts +19 -0
- package/types/shared/input-switch.d.ts +16 -0
- package/types/shared/input-url.d.ts +14 -0
- package/types/shared/lib/form.d.ts +28 -0
- package/types/shared/lib/helpers.d.ts +145 -0
- package/types/shared/lib/icon-labels.d.ts +6 -0
- package/types/shared/lib/yup.d.ts +19 -0
- package/types/shared/loader.d.ts +14 -0
- package/types/shared/overlay.d.ts +20 -0
- package/types/shared/progress.d.ts +14 -0
- package/types/shared/provider-recaptcha.d.ts +10 -0
- package/types/shared/sortable.d.ts +14 -0
- package/types/shared/tabs.d.ts +32 -0
- package/types/shared/tooltip.d.ts +18 -0
- package/types/styles.d.ts +4 -0
- package/dist/chunk-24RIMAX7.mjs +0 -18
- package/dist/chunk-2ZYGRSSA.mjs +0 -45
- package/dist/chunk-34VHCLEM.mjs +0 -18
- package/dist/chunk-3ZVT66SF.mjs +0 -18
- package/dist/chunk-6F23WKP2.mjs +0 -104
- package/dist/chunk-7GRIGQDC.mjs +0 -98
- package/dist/chunk-DPFPNFJT.mjs +0 -387
- package/dist/chunk-DTGGUHVT.mjs +0 -18
- package/dist/chunk-FYA7EAMR.mjs +0 -29
- package/dist/chunk-G3FIQDKF.mjs +0 -18
- package/dist/chunk-GDO334JM.mjs +0 -18
- package/dist/chunk-GFDZ7ER6.mjs +0 -29
- package/dist/chunk-HH7WF5BT.mjs +0 -29
- package/dist/chunk-KJMXWB22.mjs +0 -18
- package/dist/chunk-KSCQQUFC.mjs +0 -89
- package/dist/chunk-OSTKXL5W.mjs +0 -18
- package/dist/chunk-PLX5YT4F.mjs +0 -18
- package/dist/chunk-PT7UR6AO.mjs +0 -208
- package/dist/chunk-Q3UIVGPQ.mjs +0 -29
- package/dist/chunk-S6X5EEMX.mjs +0 -18
- package/dist/chunk-T5QQBFM3.mjs +0 -29
- package/dist/chunk-TOR3Z64G.mjs +0 -18
- package/dist/chunk-WQXZE4EX.mjs +0 -18
- package/dist/chunk-WRQM5ECM.mjs +0 -18
- package/dist/chunk-WUZE3BIA.mjs +0 -122
- package/dist/chunk-Y466XTIK.mjs +0 -37
- package/dist/chunk-YEC7KSKN.mjs +0 -18
- package/dist/embla-fade.mjs +0 -6
- package/dist/embla.mjs +0 -6
- package/dist/input-group-error.js +0 -132
- package/dist/input-group-error.mjs +0 -7
- package/types/embla-fade.d.ts +0 -2
- package/types/embla.d.ts +0 -2
- package/types/input-group-error.d.ts +0 -14
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { QueryClient, QueryFilters } from '@tanstack/react-query';
|
|
3
|
+
|
|
4
|
+
export interface SortingItem {
|
|
5
|
+
desc: boolean;
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare const useCopyToClipboard: ( props?: { onClick?: () => void; value?: string } ) => {
|
|
10
|
+
copied: boolean;
|
|
11
|
+
onCopy: () => void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare const useCallbacks: ( props: {
|
|
15
|
+
query?: { refetch?: ( response: unknown ) => unknown };
|
|
16
|
+
queryClient: QueryClient;
|
|
17
|
+
} ) => {
|
|
18
|
+
onError: ( response: unknown ) => void;
|
|
19
|
+
onSuccess: ( response: unknown, options?: { invalidate?: unknown[]; redirect?: string } ) => Promise<void>;
|
|
20
|
+
// A save that changes the screen before the api answers (an optimistic
|
|
21
|
+
// reorder). Returns the chain's queue promise, which resolves once this
|
|
22
|
+
// save (and every save queued ahead of it) has settled.
|
|
23
|
+
optimistic: ( props: {
|
|
24
|
+
filters: QueryFilters;
|
|
25
|
+
save: () => Promise<unknown>;
|
|
26
|
+
update: ( data: unknown ) => unknown;
|
|
27
|
+
} ) => Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare const useDrawer: ( props: { queryClient: QueryClient } ) => {
|
|
31
|
+
close: () => void;
|
|
32
|
+
open: ( props?: Record<string, unknown> ) => void;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export declare const useSort: (
|
|
36
|
+
props: { sort?: Record<string, 1 | -1>; onChange?: () => void },
|
|
37
|
+
options?: { param?: string }
|
|
38
|
+
) => {
|
|
39
|
+
manualSorting: true;
|
|
40
|
+
onSortingChange: Dispatch<SetStateAction<SortingItem[]>>;
|
|
41
|
+
sort: Record<string, 1 | -1> | undefined;
|
|
42
|
+
sorting: SortingItem[];
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export declare const useUrlFilterState: <T>(
|
|
46
|
+
defaults: T,
|
|
47
|
+
options?: { param?: string }
|
|
48
|
+
) => [ T, ( next: T | ( ( current: T ) => T ) ) => void, () => void ];
|
|
49
|
+
|
|
50
|
+
export declare const useModal: ( props: { queryClient: QueryClient } ) => {
|
|
51
|
+
close: () => void;
|
|
52
|
+
open: ( props?: Record<string, unknown> ) => void;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// Shared socket-room lifecycle for the TemplateSocket* components. Re-emits
|
|
56
|
+
// `join.<room>` and invalidates `resync`'s queries on every connect and
|
|
57
|
+
// reconnect, since socket.io does not replay room emits made while
|
|
58
|
+
// disconnected.
|
|
59
|
+
export declare const useSocketRoom: ( props: {
|
|
60
|
+
arg?: unknown;
|
|
61
|
+
enabled: boolean;
|
|
62
|
+
listeners: Record<string, ( ...payload: unknown[] ) => void>;
|
|
63
|
+
resync?: unknown[][];
|
|
64
|
+
room: string;
|
|
65
|
+
} ) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Decide whether a document-level click would soft-navigate the app, mirroring
|
|
2
|
+
// next/link's own exclusion list (modified clicks, downloads, new tabs,
|
|
3
|
+
// external urls, hash-only movement). Returns the in-app destination to
|
|
4
|
+
// navigate to after confirmation, or null when the click must pass through.
|
|
5
|
+
export declare const interceptHref: ( props: {
|
|
6
|
+
anchor?: {
|
|
7
|
+
download?: unknown;
|
|
8
|
+
href?: string;
|
|
9
|
+
target?: string;
|
|
10
|
+
};
|
|
11
|
+
event?: {
|
|
12
|
+
altKey?: boolean;
|
|
13
|
+
button?: number;
|
|
14
|
+
ctrlKey?: boolean;
|
|
15
|
+
metaKey?: boolean;
|
|
16
|
+
shiftKey?: boolean;
|
|
17
|
+
};
|
|
18
|
+
location: {
|
|
19
|
+
href: string;
|
|
20
|
+
origin: string;
|
|
21
|
+
pathname: string;
|
|
22
|
+
search: string;
|
|
23
|
+
};
|
|
24
|
+
} ) => string | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// The one place that asks the api to dispatch a sign-in / sign-up code.
|
|
2
|
+
// Throws when the api's response carries no otcId — a malformed address and
|
|
3
|
+
// an internal error are both shaped like success, so the client advances only
|
|
4
|
+
// when there is actually a code on the way.
|
|
5
|
+
export declare const requestOtc: ( props: {
|
|
6
|
+
action: string;
|
|
7
|
+
body?: Record<string, unknown>;
|
|
8
|
+
endpoint: string;
|
|
9
|
+
executeRecaptcha?: ( ( action: string ) => Promise<string> ) | undefined;
|
|
10
|
+
} ) => Promise<string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// The custom-plan overage rate: stored as cents per action, edited in
|
|
2
|
+
// dollars. Non-finite in, non-value out.
|
|
3
|
+
|
|
4
|
+
// cents -> the dollar string the form renders ('' when `cents` isn't finite).
|
|
5
|
+
export declare const overageToForm: ( cents: number | null | undefined ) => number | '';
|
|
6
|
+
|
|
7
|
+
// dollars -> the cents integer the PUT body carries (undefined, so the key is
|
|
8
|
+
// omitted, when `dollars` isn't finite).
|
|
9
|
+
export declare const overageFromForm: ( dollars: number | null | undefined ) => number | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TableActions } from '../table';
|
|
2
|
+
|
|
3
|
+
// An organization row's action: Upgrade, Update terms, Suspended or Select
|
|
4
|
+
// (a plain anchor to /api/switch/:id, never a prefetching Link).
|
|
5
|
+
export declare const organizationAction: ( props: {
|
|
6
|
+
onClickSuspended?: () => void;
|
|
7
|
+
onClickTerms?: () => void;
|
|
8
|
+
onClickUpgrade?: () => void;
|
|
9
|
+
record: {
|
|
10
|
+
access?: string;
|
|
11
|
+
id: string;
|
|
12
|
+
status?: string;
|
|
13
|
+
terms?: { valid?: boolean };
|
|
14
|
+
version?: { valid?: boolean };
|
|
15
|
+
[ key: string ]: unknown;
|
|
16
|
+
};
|
|
17
|
+
redirectTo?: string;
|
|
18
|
+
} ) => TableActions;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Slot maths for the 12-hour time picker (components/input-time.js).
|
|
2
|
+
|
|
3
|
+
export type Period = 'AM' | 'PM';
|
|
4
|
+
|
|
5
|
+
export interface TimeSlot {
|
|
6
|
+
hour: string;
|
|
7
|
+
minute: string;
|
|
8
|
+
second?: string;
|
|
9
|
+
period: Period;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare const HOURS: string[];
|
|
13
|
+
|
|
14
|
+
export declare const MINUTES: string[];
|
|
15
|
+
|
|
16
|
+
export declare const PERIODS: Period[];
|
|
17
|
+
|
|
18
|
+
// Compose a Date on `date` from a 12h { hour, minute, period } slot.
|
|
19
|
+
export declare const compose: ( date: Date, slot: Pick<TimeSlot, 'hour' | 'minute' | 'period'> ) => Date;
|
|
20
|
+
|
|
21
|
+
// A slot is past when the latest time it can still reach (on the selected
|
|
22
|
+
// day, relative to `min`) is already before `min`. Only applies for a
|
|
23
|
+
// same-day `min` — future days disable nothing.
|
|
24
|
+
export declare const isPastSlot: ( props: {
|
|
25
|
+
candidate: Partial<Pick<TimeSlot, 'hour' | 'minute' | 'period'>>;
|
|
26
|
+
date: Date | null | undefined;
|
|
27
|
+
granularity: 'hour' | 'minute' | 'period';
|
|
28
|
+
min: Date | null | undefined;
|
|
29
|
+
value: Pick<TimeSlot, 'hour' | 'period'>;
|
|
30
|
+
} ) => boolean;
|
|
31
|
+
|
|
32
|
+
// The 12h slot a Date sits in. `null`/`undefined` yields the midnight
|
|
33
|
+
// default.
|
|
34
|
+
export declare const toTimeSlot: ( date?: Date | null ) => TimeSlot;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// The upload bar's "always moving" step: the displayed percentage eases
|
|
2
|
+
// toward `real` progress each tick rather than mirroring it, capped at 99
|
|
3
|
+
// until the transfer settles.
|
|
4
|
+
export declare const trickle: ( props?: {
|
|
5
|
+
displayed?: number;
|
|
6
|
+
real?: number;
|
|
7
|
+
headroom?: number;
|
|
8
|
+
maximum?: number;
|
|
9
|
+
minimum?: number;
|
|
10
|
+
rate?: number;
|
|
11
|
+
} ) => number;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Presigned S3 multipart transport for large uploads, built on a headless
|
|
2
|
+
// Uppy instance held at module scope (it has to survive the uploader
|
|
3
|
+
// component unmounting on a tab switch or modal close).
|
|
4
|
+
|
|
5
|
+
// An Uppy instance, typed loosely to the surface this module actually reads —
|
|
6
|
+
// the real type lives in @uppy/core, which this package does not depend on
|
|
7
|
+
// directly (it is dynamically imported inside uppy.js).
|
|
8
|
+
export interface UppyInstance {
|
|
9
|
+
destroy: () => void;
|
|
10
|
+
getFiles: () => Array<{
|
|
11
|
+
progress?: {
|
|
12
|
+
uploadComplete?: boolean;
|
|
13
|
+
uploadStarted?: boolean;
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
[ key: string ]: unknown;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Mirrors the api's chunking: the number of bytes per multipart part for a
|
|
20
|
+
// file of this size.
|
|
21
|
+
export declare const partSizeFor: ( bytes: number ) => number;
|
|
22
|
+
|
|
23
|
+
export declare const isUploading: ( uploader: UppyInstance | null | undefined ) => boolean;
|
|
24
|
+
|
|
25
|
+
// Returns the module-scoped uploader, creating one (or replacing the current
|
|
26
|
+
// one, if its restrictions differ) when none matches `endpoint` + `type` +
|
|
27
|
+
// `maxFileSize`.
|
|
28
|
+
export declare const getUploader: ( props: {
|
|
29
|
+
endpoint: string;
|
|
30
|
+
maxFileSize?: number;
|
|
31
|
+
type?: string;
|
|
32
|
+
} ) => Promise<UppyInstance>;
|
|
33
|
+
|
|
34
|
+
// Tears down the module-scoped uploader — a no-op while a transfer is still
|
|
35
|
+
// in flight, since destroy() would cancel it.
|
|
36
|
+
export declare const releaseUploader: () => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// The campaign a visitor arrived on, read off the auth page's own query
|
|
2
|
+
// string. Deliberately not a validator — it forwards known keys, and the api
|
|
3
|
+
// is the one allow-list that decides what is real.
|
|
4
|
+
|
|
5
|
+
export interface Click {
|
|
6
|
+
fbclid?: string;
|
|
7
|
+
gclid?: string;
|
|
8
|
+
liFatId?: string;
|
|
9
|
+
msclkid?: string;
|
|
10
|
+
ttclid?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface Utm {
|
|
14
|
+
campaign?: string;
|
|
15
|
+
content?: string;
|
|
16
|
+
id?: string;
|
|
17
|
+
medium?: string;
|
|
18
|
+
source?: string;
|
|
19
|
+
term?: string;
|
|
20
|
+
click?: Click;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type SearchParams = Record<string, string | string[] | undefined>;
|
|
24
|
+
|
|
25
|
+
// From a Next.js searchParams object, where a repeated parameter arrives as
|
|
26
|
+
// an array — dropped rather than resolved, to avoid inventing a value. Null
|
|
27
|
+
// when nothing recognized was present.
|
|
28
|
+
export declare const utmFromParams: ( params: SearchParams | null | undefined ) => Utm | null;
|
|
29
|
+
|
|
30
|
+
// The same values as flat query parameters, for the Google flow's authorize
|
|
31
|
+
// request.
|
|
32
|
+
export declare const utmToQuery: ( utm: Utm | null | undefined ) => Record<string, string>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentType, ElementType, ReactNode, SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
// A link-variant Button with the back arrow first; a long label truncates to one line.
|
|
4
|
+
export interface LinkBackProps {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
// Link by default; 'button' for a back step inside a drawer.
|
|
7
|
+
element?: ElementType;
|
|
8
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
9
|
+
// Spread onto the Button ( href, onClick, aria-label, size 'small' for a drawer's text-sm Back… ).
|
|
10
|
+
[ key: string ]: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const LinkBack: ComponentType<LinkBackProps>;
|
|
14
|
+
|
|
15
|
+
export default LinkBack;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentProps, ComponentType } from 'react';
|
|
2
|
+
import NextLink from 'next/link';
|
|
3
|
+
|
|
4
|
+
// next/link with prefetch defaulting to false: a dashboard link loads when it
|
|
5
|
+
// is clicked. Every other next/link and anchor prop passes through.
|
|
6
|
+
export type LinkProps = ComponentProps<typeof NextLink>;
|
|
7
|
+
|
|
8
|
+
// The page-wide progress bar every waiting Link reports to; mount it once in
|
|
9
|
+
// the root layout. Renders nothing until a click has waited 500ms.
|
|
10
|
+
export const LinkProgress: ComponentType;
|
|
11
|
+
|
|
12
|
+
// One tick of the bar: the next width ( 0–100 ) from the current one.
|
|
13
|
+
export function step( state: { busy: boolean; displayed: number; waited?: number } ): number;
|
|
14
|
+
|
|
15
|
+
declare const Link: ComponentType<LinkProps>;
|
|
16
|
+
|
|
17
|
+
export default Link;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ListResourceItem {
|
|
4
|
+
id: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
[ key: string ]: unknown;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface ListResourceButton {
|
|
10
|
+
button: {
|
|
11
|
+
// Button props: spread them onto a Button.
|
|
12
|
+
props: { inline: true; onClick: () => Promise<void>; size: 'small' };
|
|
13
|
+
text: string;
|
|
14
|
+
};
|
|
15
|
+
item: ListResourceItem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ListResourceProps {
|
|
19
|
+
// Replaces "No <model>s found".
|
|
20
|
+
empty?: ReactNode;
|
|
21
|
+
// A paged GET list ( { items, pageInfo } ).
|
|
22
|
+
endpoint: string;
|
|
23
|
+
// Singular noun for the empty message.
|
|
24
|
+
model: string;
|
|
25
|
+
// false keeps selected rows listed ( a single-select picker ).
|
|
26
|
+
multiple?: boolean;
|
|
27
|
+
// Without it the rows have no Add button.
|
|
28
|
+
onChange?: ( item: ListResourceItem ) => unknown;
|
|
29
|
+
params?: Record<string, unknown>;
|
|
30
|
+
render?: ( item: ListResourceItem ) => ReactNode;
|
|
31
|
+
renderButton?: ( args: ListResourceButton ) => ReactNode;
|
|
32
|
+
searchKeys?: string[];
|
|
33
|
+
// Left out of the list when multiple.
|
|
34
|
+
selected?: ListResourceItem[];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare const ListResource: ComponentType<ListResourceProps>;
|
|
38
|
+
|
|
39
|
+
export default ListResource;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComponentType, ElementType, ReactNode, SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ListItem {
|
|
4
|
+
// Accepted and ignored.
|
|
5
|
+
complete?: unknown;
|
|
6
|
+
// Rendered as a <p> unless href is set; the current page's href stays plain.
|
|
7
|
+
element?: ElementType;
|
|
8
|
+
href?: string;
|
|
9
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
10
|
+
// Accepted and ignored.
|
|
11
|
+
increment?: unknown;
|
|
12
|
+
title: ReactNode;
|
|
13
|
+
// Spread onto the row.
|
|
14
|
+
[ key: string ]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ListProps {
|
|
18
|
+
className?: string;
|
|
19
|
+
items?: ListItem[];
|
|
20
|
+
// Show the trailing arrow ( or the item's icon ).
|
|
21
|
+
svg?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const List: ComponentType<ListProps>;
|
|
25
|
+
|
|
26
|
+
export default List;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ComponentType, ElementType, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
// One row of a GET /menu/* group ( drawbridge-api lib/menus.js ).
|
|
4
|
+
export interface MenuItem {
|
|
5
|
+
badge?: { text?: ReactNode; type?: string };
|
|
6
|
+
description?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
element?: ElementType;
|
|
9
|
+
// Shows the warning dot.
|
|
10
|
+
error?: boolean;
|
|
11
|
+
// Active only on an exact path match.
|
|
12
|
+
exact?: boolean;
|
|
13
|
+
// Without href the row is inert.
|
|
14
|
+
href?: string;
|
|
15
|
+
key?: string;
|
|
16
|
+
locked?: boolean;
|
|
17
|
+
title: ReactNode;
|
|
18
|
+
total?: number;
|
|
19
|
+
[ key: string ]: unknown;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface MenuGroup {
|
|
23
|
+
items: MenuItem[];
|
|
24
|
+
title?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface MenuSidebarProps {
|
|
28
|
+
onClick?: MouseEventHandler;
|
|
29
|
+
// The current pathname, which picks the active row.
|
|
30
|
+
path: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface MenuOrganizationProps extends MenuSidebarProps {
|
|
34
|
+
organization: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface MenuCampaignProps extends MenuOrganizationProps {
|
|
38
|
+
campaign: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface MenuAccountDropdownProps {
|
|
42
|
+
// The [ 'account' ] query.
|
|
43
|
+
account?: { data?: { email?: string; firstName?: string; lastName?: string; permissions?: string[]; status?: string; totals?: { inbox?: number }; [ key: string ]: unknown } };
|
|
44
|
+
actions: { guide?: () => void; signout: () => void };
|
|
45
|
+
// The [ 'account', 'balance' ] query; ai in cents.
|
|
46
|
+
balance?: { data?: { ai?: number } };
|
|
47
|
+
// Truthy adds the Screen guide entry.
|
|
48
|
+
guide?: unknown;
|
|
49
|
+
// The useModal() pair; the processing list opens in it.
|
|
50
|
+
modal: { close: () => void; open: ( props: { message?: ReactNode; title?: ReactNode } ) => void };
|
|
51
|
+
onClick?: MouseEventHandler;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// GET /menu/organization/:organization
|
|
55
|
+
export const MenuOrganization: ComponentType<MenuOrganizationProps>;
|
|
56
|
+
// GET /menu/organization/:organization/campaign/:campaign
|
|
57
|
+
export const MenuCampaign: ComponentType<MenuCampaignProps>;
|
|
58
|
+
// GET /menu/admin
|
|
59
|
+
export const MenuAdmin: ComponentType<MenuSidebarProps>;
|
|
60
|
+
// GET /menu/account
|
|
61
|
+
export const MenuAccount: ComponentType<MenuSidebarProps>;
|
|
62
|
+
// My organizations and Shared with me; no request.
|
|
63
|
+
export const MenuApp: ComponentType<MenuSidebarProps>;
|
|
64
|
+
// The account row at the foot of the sidebar; reads GET /account/process.
|
|
65
|
+
export const MenuAccountDropdown: ComponentType<MenuAccountDropdownProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
+
|
|
4
|
+
export interface ModalProps {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
// Stacking classes for the overlay and dialog; defaults to 'z-50'.
|
|
7
|
+
className?: string;
|
|
8
|
+
// Rendered inside FormScope 'modal', so GuardNavigation tracks its forms.
|
|
9
|
+
message?: ReactNode;
|
|
10
|
+
// Without it the close button clears the shared [ 'modal' ] query (and is guarded).
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
// Needed for the shared close when onClose is not given.
|
|
13
|
+
queryClient: QueryClient;
|
|
14
|
+
// Without a title there is no header or close button.
|
|
15
|
+
title?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const Modal: ComponentType<ModalProps>;
|
|
19
|
+
|
|
20
|
+
export default Modal;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface NotesProps {
|
|
4
|
+
// The base the notes live under: '' for an organization, '/admin' on admin pages.
|
|
5
|
+
// Lists GET {endpoint}/notes, saves POST {endpoint}/note.
|
|
6
|
+
endpoint?: string;
|
|
7
|
+
// Sent as the list's filters, e.g. { 'meta.organization': id, 'meta.invoice': id }.
|
|
8
|
+
filters?: Record<string, unknown>;
|
|
9
|
+
limit?: number;
|
|
10
|
+
// False hides Add note and each note's delete.
|
|
11
|
+
manage?: boolean;
|
|
12
|
+
// Stored on a new note.
|
|
13
|
+
meta?: Record<string, unknown>;
|
|
14
|
+
// A new note's type, e.g. 'public' on a draw.
|
|
15
|
+
type?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const Notes: ComponentType<NotesProps>;
|
|
19
|
+
|
|
20
|
+
export default Notes;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
+
|
|
4
|
+
export interface NoticeResponse {
|
|
5
|
+
button?: { href: string; text: string };
|
|
6
|
+
message?: string;
|
|
7
|
+
[ key: string ]: unknown;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface NoticeProps {
|
|
11
|
+
active?: boolean;
|
|
12
|
+
// Closing (and the three-second timeout) writes active : false to [ 'notice' ].
|
|
13
|
+
queryClient: QueryClient;
|
|
14
|
+
// An Error reads in red and stays until closed; anything else leaves after 3s.
|
|
15
|
+
response?: NoticeResponse | Error | null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const Notice: ComponentType<NoticeProps>;
|
|
19
|
+
|
|
20
|
+
export default Notice;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
import { QueryKey } from '@tanstack/react-query';
|
|
3
|
+
|
|
4
|
+
export interface PagedPageInfo {
|
|
5
|
+
endCursor?: string | null;
|
|
6
|
+
hasNextPage?: boolean;
|
|
7
|
+
hasPreviousPage?: boolean;
|
|
8
|
+
total?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface PagedEmptyContext {
|
|
12
|
+
// The api's `empty` for this list, or the failed-load message.
|
|
13
|
+
empty?: { message?: string; [ key: string ]: unknown };
|
|
14
|
+
error?: Error & { status?: number };
|
|
15
|
+
// A 403 (or the api's `locked`): the reason the list can't be read.
|
|
16
|
+
locked?: { message?: string; [ key: string ]: unknown };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface PagedEmpty {
|
|
20
|
+
cta?: ReactNode;
|
|
21
|
+
message?: ReactNode;
|
|
22
|
+
// Empty's background: 'primary' white, 'secondary' light grey; transparent otherwise.
|
|
23
|
+
variant?: 'primary' | 'secondary';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface PagedChildrenContext<TItem = any> {
|
|
27
|
+
items: TItem[];
|
|
28
|
+
pageInfo?: PagedPageInfo;
|
|
29
|
+
// Renders the pagination row elsewhere (pass pagination={ false } to hide the default).
|
|
30
|
+
pagination: ( options: { className?: string | null; counter?: ReactNode } ) => ReactNode;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface PagedProps<TItem = any> {
|
|
34
|
+
children?: ( context: PagedChildrenContext<TItem> ) => ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
classNameInner?: string;
|
|
37
|
+
classNamePagination?: string;
|
|
38
|
+
element?: ElementType;
|
|
39
|
+
empty?: PagedEmpty | ( ( context: PagedEmptyContext ) => ReactNode );
|
|
40
|
+
endpoint: string;
|
|
41
|
+
// Defaults to WrapperGradient.
|
|
42
|
+
innerElement?: ElementType;
|
|
43
|
+
pagination?: boolean;
|
|
44
|
+
// Sent with the request; `limit` defaults to 12, `sort` to { createdAt: -1 }.
|
|
45
|
+
params?: { limit?: number; sort?: Record<string, 1 | -1>; search?: unknown; filters?: Record<string, unknown>; [ key: string ]: unknown };
|
|
46
|
+
// Mirrors page / cursor into the URL and drops empty params from the request.
|
|
47
|
+
queryParams?: boolean;
|
|
48
|
+
queryKey?: QueryKey;
|
|
49
|
+
render?: ( item: TItem, index: number ) => ReactNode;
|
|
50
|
+
// The starting page when queryParams is off or the URL carries none.
|
|
51
|
+
skip?: number;
|
|
52
|
+
[ key: string ]: unknown;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare const Paged: <TItem = any>( props: PagedProps<TItem> ) => ReactNode;
|
|
56
|
+
|
|
57
|
+
export default Paged;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { QueryKey, UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
|
|
4
|
+
export interface ProviderResourceProps<TData = any> {
|
|
5
|
+
// Passed to request().
|
|
6
|
+
cache?: RequestCache;
|
|
7
|
+
children?: ReactNode | ( ( query: UseQueryResult<TData> ) => ReactNode );
|
|
8
|
+
classNameLoader?: string;
|
|
9
|
+
// What the query resolves to when there is no endpoint.
|
|
10
|
+
data?: TData;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
// GETs this and caches `result` under queryKey.
|
|
13
|
+
endpoint?: string;
|
|
14
|
+
// Shown when the request fails and nothing is cached. Without it a 429, 5xx
|
|
15
|
+
// or network failure offers a reload and any other failure calls notFound().
|
|
16
|
+
error?: ReactNode | ( ( query: UseQueryResult<TData> ) => ReactNode );
|
|
17
|
+
// Shows a spinner while loading; otherwise nothing renders until loaded.
|
|
18
|
+
loader?: boolean;
|
|
19
|
+
// Sent as the request's query string.
|
|
20
|
+
params?: Record<string, unknown>;
|
|
21
|
+
queryKey: QueryKey;
|
|
22
|
+
// Any other useQuery option ( and `token`, which the layouts pass ) is spread
|
|
23
|
+
// into useQuery.
|
|
24
|
+
[ key: string ]: unknown;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare const ProviderResource: <TData = any>( props: ProviderResourceProps<TData> ) => ReactNode;
|
|
28
|
+
|
|
29
|
+
export default ProviderResource;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ProviderUiProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
// The session token. Without it the account queries stay off (public routes)
|
|
6
|
+
// and requests go unauthenticated; with it, request() attaches it and the
|
|
7
|
+
// socket ( when NEXT_PUBLIC_SOCKET_URI is set ) authenticates with it.
|
|
8
|
+
token?: string | null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Must sit inside a QueryClientProvider ( Provider ). Loads [ 'account' ],
|
|
12
|
+
// [ 'app' ], [ 'countries' ], [ 'currencies' ] and [ 'account', 'balance' ];
|
|
13
|
+
// renders the shared Drawer, Modal and Notice from [ 'drawer' ], [ 'modal' ]
|
|
14
|
+
// and [ 'notice' ] ( opened through useDrawer, useModal and useCallbacks ).
|
|
15
|
+
declare const ProviderUi: ComponentType<ProviderUiProps>;
|
|
16
|
+
|
|
17
|
+
export default ProviderUi;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ProviderProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// The dashboard's QueryClientProvider: no retries, no refetch on focus or
|
|
8
|
+
// reconnect, staleTime Infinity. Adds the react-query devtools when
|
|
9
|
+
// NEXT_PUBLIC_DEBUG is set.
|
|
10
|
+
declare const Provider: ComponentType<ProviderProps>;
|
|
11
|
+
|
|
12
|
+
export default Provider;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type ChartDataset =
|
|
4
|
+
| 'actions' | 'affiliates' | 'brands' | 'campaigns' | 'connections' | 'count' | 'discount'
|
|
5
|
+
| 'entries' | 'events' | 'fee' | 'files' | 'gross' | 'members' | 'net' | 'orders' | 'pages'
|
|
6
|
+
| 'pageviews' | 'qrcodes' | 'shortcodes' | 'storage' | 'workflows';
|
|
7
|
+
|
|
8
|
+
// Spread onto the empty state shown in place of the chart.
|
|
9
|
+
export interface ChartEmptyProps {
|
|
10
|
+
// Defaults to 'No data to display'.
|
|
11
|
+
message?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface ChartBarProps {
|
|
15
|
+
data?: { name: string; value: number }[] | null;
|
|
16
|
+
empty?: ChartEmptyProps;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ChartLineProps {
|
|
20
|
+
// One point per `date`, a number per dataset key.
|
|
21
|
+
data?: ( { date: string } & Partial<Record<ChartDataset, number>> )[] | null;
|
|
22
|
+
// Defaults to [ 'events', 'pageviews', 'qrcodes', 'shortcodes' ]. Shown empty
|
|
23
|
+
// when every point is zero across these.
|
|
24
|
+
datasets?: ChartDataset[];
|
|
25
|
+
empty?: ChartEmptyProps;
|
|
26
|
+
// Clicking an entry toggles its series.
|
|
27
|
+
legend?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare const ChartBar: ( props: ChartBarProps ) => ReactNode;
|
|
31
|
+
|
|
32
|
+
export declare const ChartLine: ( props: ChartLineProps ) => ReactNode;
|