@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
package/dist/product.js
CHANGED
|
@@ -26,656 +26,23 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// components/product.js
|
|
31
29
|
var product_exports = {};
|
|
32
30
|
__export(product_exports, {
|
|
33
31
|
default: () => product_default
|
|
34
32
|
});
|
|
35
33
|
module.exports = __toCommonJS(product_exports);
|
|
36
|
-
var
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_react = require("react");
|
|
37
36
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
|
38
37
|
var import_cdn = require("@drawbridge/drawbridge-utils/cdn");
|
|
39
38
|
var import_drawbridge_utils = require("@drawbridge/drawbridge-utils");
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
// components/icons/warning.js
|
|
48
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
49
|
-
var Warning = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
|
-
"svg",
|
|
51
|
-
{
|
|
52
|
-
...{
|
|
53
|
-
fill: "none",
|
|
54
|
-
stroke: "currentColor",
|
|
55
|
-
strokeWidth: 1.5,
|
|
56
|
-
viewBox: "0 0 24 24",
|
|
57
|
-
...props
|
|
58
|
-
},
|
|
59
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60
|
-
"path",
|
|
61
|
-
{
|
|
62
|
-
...{
|
|
63
|
-
d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z",
|
|
64
|
-
strokeLinecap: "round",
|
|
65
|
-
strokeLinejoin: "round"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
var warning_default = Warning;
|
|
72
|
-
|
|
73
|
-
// components/input-group-error.js
|
|
74
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
75
|
-
var InputGroupError = ({
|
|
76
|
-
className,
|
|
77
|
-
error,
|
|
78
|
-
label,
|
|
79
|
-
message,
|
|
80
|
-
style = {}
|
|
81
|
-
}) => {
|
|
82
|
-
var _a, _b, _c, _d;
|
|
83
|
-
if (!(error || message)) {
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
const classes = [
|
|
87
|
-
"flex items-center justify-start space-x-2 py-1 rounded text-sm"
|
|
88
|
-
];
|
|
89
|
-
if (error) {
|
|
90
|
-
classes.push("px-1.5");
|
|
91
|
-
}
|
|
92
|
-
if (className) {
|
|
93
|
-
classes.push(className);
|
|
94
|
-
}
|
|
95
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
96
|
-
"p",
|
|
97
|
-
{
|
|
98
|
-
...{
|
|
99
|
-
className: classes.join(" "),
|
|
100
|
-
...error && {
|
|
101
|
-
style: {
|
|
102
|
-
backgroundColor: (((_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || "rgb( 0, 0, 0 )").replace(")", ",.1)"),
|
|
103
|
-
color: ((_d = (_c = style == null ? void 0 : style.text) == null ? void 0 : _c.color) == null ? void 0 : _d.rgb) || "rgb( 0, 0, 0 )"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
children: [
|
|
108
|
-
error && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react.Fragment, { children: [
|
|
109
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
110
|
-
warning_default,
|
|
111
|
-
{
|
|
112
|
-
...{
|
|
113
|
-
// shrink-0: a long error ("Expected your CNAME record to be …
|
|
114
|
-
// but found …") wraps, and a flex item with no floor gets
|
|
115
|
-
// squeezed to a sliver beside it.
|
|
116
|
-
className: "w-4 h-4 shrink-0",
|
|
117
|
-
"aria-hidden": true
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
),
|
|
121
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
122
|
-
"span",
|
|
123
|
-
{
|
|
124
|
-
...{
|
|
125
|
-
className: "text-[0px] opacity-0 w-0 h-0 absolute"
|
|
126
|
-
},
|
|
127
|
-
children: [
|
|
128
|
-
label ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react.Fragment, { children: [
|
|
129
|
-
label,
|
|
130
|
-
": "
|
|
131
|
-
] }) : null,
|
|
132
|
-
error
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
] }),
|
|
137
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
138
|
-
"span",
|
|
139
|
-
{
|
|
140
|
-
...{
|
|
141
|
-
...error && {
|
|
142
|
-
"aria-hidden": true
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
children: error || message
|
|
146
|
-
}
|
|
147
|
-
)
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
);
|
|
151
|
-
};
|
|
152
|
-
var input_group_error_default = InputGroupError;
|
|
153
|
-
|
|
154
|
-
// components/styles.js
|
|
155
|
-
var WHITE = "rgb( 255, 255, 255 )";
|
|
156
|
-
var BLACK = "rgb( 0, 0, 0 )";
|
|
157
|
-
var bgColor = (style) => {
|
|
158
|
-
var _a, _b;
|
|
159
|
-
return ((_b = (_a = style == null ? void 0 : style.background) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || WHITE;
|
|
160
|
-
};
|
|
161
|
-
var textColor = (style) => {
|
|
162
|
-
var _a, _b;
|
|
163
|
-
return ((_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb) || BLACK;
|
|
164
|
-
};
|
|
165
|
-
var DEFAULT_FAMILY = "Roboto Flex";
|
|
166
|
-
var FONT_FALLBACK = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif';
|
|
167
|
-
var toFontFamily = (family) => '"' + (family || DEFAULT_FAMILY) + '", ' + FONT_FALLBACK;
|
|
168
|
-
var toFontWeight = (variant) => {
|
|
169
|
-
var _a;
|
|
170
|
-
if (!variant) return void 0;
|
|
171
|
-
if (variant.includes("italic")) return (_a = variant.match(/^\d+/)) == null ? void 0 : _a[0];
|
|
172
|
-
if (variant.includes("regular")) return "normal";
|
|
173
|
-
return variant;
|
|
174
|
-
};
|
|
175
|
-
var toFontStyle = (variant) => (variant == null ? void 0 : variant.includes("italic")) ? "italic" : void 0;
|
|
176
|
-
var buttonStyle = (style) => {
|
|
177
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
178
|
-
return {
|
|
179
|
-
backgroundColor: ((_c = (_b = (_a = style == null ? void 0 : style.button) == null ? void 0 : _a.background) == null ? void 0 : _b.color) == null ? void 0 : _c.rgb) || textColor(style),
|
|
180
|
-
borderColor: ((_f = (_e = (_d = style == null ? void 0 : style.button) == null ? void 0 : _d.background) == null ? void 0 : _e.color) == null ? void 0 : _f.rgb) || textColor(style),
|
|
181
|
-
borderRadius: ((_g = style == null ? void 0 : style.button) == null ? void 0 : _g.radius) != null ? style.button.radius / 4 + "px" : void 0,
|
|
182
|
-
color: ((_j = (_i = (_h = style == null ? void 0 : style.button) == null ? void 0 : _h.text) == null ? void 0 : _i.color) == null ? void 0 : _j.rgb) || bgColor(style)
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
var headerStyle = (style) => {
|
|
186
|
-
var _a, _b, _c, _d;
|
|
187
|
-
return {
|
|
188
|
-
fontFamily: toFontFamily((_a = style == null ? void 0 : style.heading) == null ? void 0 : _a.family),
|
|
189
|
-
fontWeight: toFontWeight((_b = style == null ? void 0 : style.heading) == null ? void 0 : _b.weight),
|
|
190
|
-
fontStyle: toFontStyle((_c = style == null ? void 0 : style.heading) == null ? void 0 : _c.weight),
|
|
191
|
-
textTransform: (_d = style == null ? void 0 : style.heading) == null ? void 0 : _d.transform
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
var inputStyle = (style) => {
|
|
195
|
-
var _a;
|
|
196
|
-
return {
|
|
197
|
-
backgroundColor: bgColor(style),
|
|
198
|
-
borderColor: textColor(style),
|
|
199
|
-
borderRadius: ((_a = style == null ? void 0 : style.input) == null ? void 0 : _a.radius) != null ? style.input.radius / 4 + "px" : void 0,
|
|
200
|
-
color: textColor(style)
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
// components/input-group.js
|
|
205
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
206
|
-
var Addon = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
207
|
-
"span",
|
|
208
|
-
{
|
|
209
|
-
...{
|
|
210
|
-
className: typeof children === "string" ? "flex items-center shrink-0 px-3 font-mono text-sm opacity-60 whitespace-nowrap select-none" : "flex items-center shrink-0 px-2"
|
|
211
|
-
},
|
|
212
|
-
children
|
|
213
|
-
}
|
|
214
|
-
);
|
|
215
|
-
var InputGroup = ({
|
|
216
|
-
after,
|
|
217
|
-
before,
|
|
218
|
-
className,
|
|
219
|
-
error,
|
|
220
|
-
input,
|
|
221
|
-
label,
|
|
222
|
-
message,
|
|
223
|
-
style = {},
|
|
224
|
-
...rest
|
|
225
|
-
}) => {
|
|
226
|
-
const generated = (0, import_react2.useId)();
|
|
227
|
-
const id = (0, import_react2.isValidElement)(input) ? input.props.id || generated : generated;
|
|
228
|
-
const named = (0, import_react2.isValidElement)(input) && !input.props.id ? (0, import_react2.cloneElement)(input, { id }) : input;
|
|
229
|
-
const addons = after != null || before != null;
|
|
230
|
-
const control = addons && (0, import_react2.isValidElement)(named) ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
231
|
-
"div",
|
|
232
|
-
{
|
|
233
|
-
...{
|
|
234
|
-
className: "input flex items-center overflow-hidden",
|
|
235
|
-
style: {
|
|
236
|
-
...inputStyle(style),
|
|
237
|
-
// Inline, not `p-0`: see InputNumber — share's unlayered `.input`
|
|
238
|
-
// padding beats a layered utility, an inline style beats both.
|
|
239
|
-
padding: 0
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
children: [
|
|
243
|
-
before != null && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Addon, { children: before }),
|
|
244
|
-
(0, import_react2.cloneElement)(named, {
|
|
245
|
-
className: [named.props.className, "!border-0 !rounded-none !ring-0 !shadow-none flex-1 min-w-0"].filter(Boolean).join(" ")
|
|
246
|
-
}),
|
|
247
|
-
after != null && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Addon, { children: after })
|
|
248
|
-
]
|
|
249
|
-
}
|
|
250
|
-
) : named;
|
|
251
|
-
const classes = [
|
|
252
|
-
"input-group"
|
|
253
|
-
];
|
|
254
|
-
if (className) {
|
|
255
|
-
classes.push(className);
|
|
256
|
-
}
|
|
257
|
-
if (error) {
|
|
258
|
-
classes.push("error");
|
|
259
|
-
}
|
|
260
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
261
|
-
"div",
|
|
262
|
-
{
|
|
263
|
-
...{
|
|
264
|
-
className: classes.join(" "),
|
|
265
|
-
"aria-live": "polite",
|
|
266
|
-
...(rest == null ? void 0 : rest["data-guide"]) && {
|
|
267
|
-
"data-guide": rest["data-guide"]
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
children: [
|
|
271
|
-
label ? (
|
|
272
|
-
// A real <label> (not a bare <span>) so the field name is announced by
|
|
273
|
-
// screen readers, clicking the text focuses the control, and
|
|
274
|
-
// getByLabel()/role queries can find it. The association comes from
|
|
275
|
-
// `htmlFor`, never from the wrapping — see the note above the id.
|
|
276
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
277
|
-
"label",
|
|
278
|
-
{
|
|
279
|
-
...{
|
|
280
|
-
className: "space-y-2 block",
|
|
281
|
-
htmlFor: id
|
|
282
|
-
},
|
|
283
|
-
children: [
|
|
284
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
285
|
-
"span",
|
|
286
|
-
{
|
|
287
|
-
...{
|
|
288
|
-
className: "block"
|
|
289
|
-
},
|
|
290
|
-
children: label
|
|
291
|
-
}
|
|
292
|
-
),
|
|
293
|
-
control
|
|
294
|
-
]
|
|
295
|
-
}
|
|
296
|
-
)
|
|
297
|
-
) : control,
|
|
298
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
299
|
-
input_group_error_default,
|
|
300
|
-
{
|
|
301
|
-
...{
|
|
302
|
-
error,
|
|
303
|
-
label,
|
|
304
|
-
message,
|
|
305
|
-
style
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
)
|
|
309
|
-
]
|
|
310
|
-
}
|
|
311
|
-
);
|
|
312
|
-
};
|
|
313
|
-
var input_group_default = InputGroup;
|
|
314
|
-
|
|
315
|
-
// components/input-select.js
|
|
316
|
-
var import_react3 = require("react");
|
|
317
|
-
|
|
318
|
-
// components/icons/chevron-down.js
|
|
319
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
320
|
-
var ChevronDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
321
|
-
"svg",
|
|
322
|
-
{
|
|
323
|
-
...{
|
|
324
|
-
fill: "none",
|
|
325
|
-
stroke: "currentColor",
|
|
326
|
-
strokeWidth: 1.5,
|
|
327
|
-
viewBox: "0 0 24 24",
|
|
328
|
-
...props
|
|
329
|
-
},
|
|
330
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
331
|
-
"path",
|
|
332
|
-
{
|
|
333
|
-
...{
|
|
334
|
-
d: "m19.5 8.25-7.5 7.5-7.5-7.5",
|
|
335
|
-
strokeLinecap: "round",
|
|
336
|
-
strokeLinejoin: "round"
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
)
|
|
340
|
-
}
|
|
341
|
-
);
|
|
342
|
-
var chevron_down_default = ChevronDown;
|
|
343
|
-
|
|
344
|
-
// components/input-select.js
|
|
345
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
346
|
-
var InputSelect = ({
|
|
347
|
-
onChange,
|
|
348
|
-
options = [],
|
|
349
|
-
style,
|
|
350
|
-
value,
|
|
351
|
-
...rest
|
|
352
|
-
}) => {
|
|
353
|
-
const [keyboard, setKeyboard] = (0, import_react3.useState)(false);
|
|
354
|
-
(0, import_react3.useEffect)(() => {
|
|
355
|
-
const down = (e) => {
|
|
356
|
-
if (e.key === "Tab") setKeyboard(true);
|
|
357
|
-
};
|
|
358
|
-
const click = () => setKeyboard(false);
|
|
359
|
-
window.addEventListener("keydown", down);
|
|
360
|
-
window.addEventListener("mousedown", click);
|
|
361
|
-
return () => {
|
|
362
|
-
window.removeEventListener("keydown", down);
|
|
363
|
-
window.removeEventListener("mousedown", click);
|
|
364
|
-
};
|
|
365
|
-
}, []);
|
|
366
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
367
|
-
"div",
|
|
368
|
-
{
|
|
369
|
-
...{
|
|
370
|
-
className: "relative"
|
|
371
|
-
},
|
|
372
|
-
children: [
|
|
373
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
374
|
-
"select",
|
|
375
|
-
{
|
|
376
|
-
...{
|
|
377
|
-
...rest,
|
|
378
|
-
className: "input appearance-none " + (keyboard ? "focus-visible:!outline-1 focus-visible:!ring-1 focus-visible:!ring-blue-600" : "focus-visible:!outline-0 focus-visible:!ring-0"),
|
|
379
|
-
onChange: ({ target }) => onChange(target == null ? void 0 : target.value),
|
|
380
|
-
style: inputStyle(style),
|
|
381
|
-
value
|
|
382
|
-
},
|
|
383
|
-
children: [
|
|
384
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
385
|
-
"option",
|
|
386
|
-
{
|
|
387
|
-
...{
|
|
388
|
-
disabled: true,
|
|
389
|
-
"aria-label": "Select option",
|
|
390
|
-
value: ""
|
|
391
|
-
},
|
|
392
|
-
children: "Select"
|
|
393
|
-
}
|
|
394
|
-
),
|
|
395
|
-
options.map(({ label, option, value: optValue }, key) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
396
|
-
"option",
|
|
397
|
-
{
|
|
398
|
-
...{
|
|
399
|
-
value: optValue ?? option
|
|
400
|
-
},
|
|
401
|
-
children: label ?? option
|
|
402
|
-
},
|
|
403
|
-
"input-select-option-" + key
|
|
404
|
-
))
|
|
405
|
-
]
|
|
406
|
-
}
|
|
407
|
-
),
|
|
408
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
409
|
-
"div",
|
|
410
|
-
{
|
|
411
|
-
...{
|
|
412
|
-
"aria-hidden": true,
|
|
413
|
-
className: "h-full flex items-center absolute inset-y-0 right-0 pointer-events-none px-2.5"
|
|
414
|
-
},
|
|
415
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
416
|
-
chevron_down_default,
|
|
417
|
-
{
|
|
418
|
-
...{
|
|
419
|
-
className: "w-5 h-5 text-inherit"
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
)
|
|
423
|
-
}
|
|
424
|
-
)
|
|
425
|
-
]
|
|
426
|
-
}
|
|
427
|
-
);
|
|
428
|
-
};
|
|
429
|
-
var input_select_default = InputSelect;
|
|
430
|
-
|
|
431
|
-
// components/wrapper-gradient.js
|
|
432
|
-
var import_react4 = require("react");
|
|
433
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
434
|
-
var WrapperGradientContext = (0, import_react4.createContext)(null);
|
|
435
|
-
var WrapperGradient = ({
|
|
436
|
-
children,
|
|
437
|
-
className,
|
|
438
|
-
classNameGradient,
|
|
439
|
-
classNameScroll,
|
|
440
|
-
color,
|
|
441
|
-
gradientTopOffset,
|
|
442
|
-
horizontal = false
|
|
443
|
-
}) => {
|
|
444
|
-
const showX = horizontal === true || horizontal === "both";
|
|
445
|
-
const showY = horizontal === false || horizontal === "both";
|
|
446
|
-
const overflowClass = horizontal === "both" ? "overflow-scroll" : horizontal ? "overflow-x-scroll overflow-y-visible" : "overflow-y-scroll overflow-x-visible";
|
|
447
|
-
const overscrollClass = horizontal ? "overscroll-x-none" : "";
|
|
448
|
-
const themed = Boolean(color);
|
|
449
|
-
const gradientDefaults = "absolute z-[2] pointer-events-none transition-all duration-[100ms] ";
|
|
450
|
-
const classes = {
|
|
451
|
-
container: [
|
|
452
|
-
themed ? "relative" : "w-full relative",
|
|
453
|
-
...className ? [className] : []
|
|
454
|
-
],
|
|
455
|
-
inner: [
|
|
456
|
-
"w-full relative scroll-smooth hide-scrollbar",
|
|
457
|
-
overscrollClass,
|
|
458
|
-
overflowClass,
|
|
459
|
-
...classNameScroll ? [classNameScroll] : []
|
|
460
|
-
],
|
|
461
|
-
topGradient: [
|
|
462
|
-
gradientDefaults,
|
|
463
|
-
"w-full -top-[1px]",
|
|
464
|
-
...themed ? [] : ["bg-gradient-to-b"],
|
|
465
|
-
...classNameGradient ? [classNameGradient] : themed ? ["h-10"] : ["from-white to-transparent h-10"]
|
|
466
|
-
],
|
|
467
|
-
bottomGradient: [
|
|
468
|
-
gradientDefaults,
|
|
469
|
-
"w-full -bottom-[1px]",
|
|
470
|
-
...themed ? [] : ["bg-gradient-to-t"],
|
|
471
|
-
...classNameGradient ? [classNameGradient] : themed ? ["h-10"] : ["from-white to-transparent h-10"]
|
|
472
|
-
],
|
|
473
|
-
leftGradient: [
|
|
474
|
-
gradientDefaults,
|
|
475
|
-
"h-full top-0 left-0",
|
|
476
|
-
...themed ? [] : ["bg-gradient-to-r"],
|
|
477
|
-
...classNameGradient ? [classNameGradient] : themed ? ["w-4"] : ["from-white from-30% to-transparent w-4"]
|
|
478
|
-
],
|
|
479
|
-
rightGradient: [
|
|
480
|
-
gradientDefaults,
|
|
481
|
-
"h-full top-0 right-0",
|
|
482
|
-
...themed ? [] : ["bg-gradient-to-l"],
|
|
483
|
-
...classNameGradient ? [classNameGradient] : themed ? ["w-4"] : ["from-white from-30% to-transparent w-4"]
|
|
484
|
-
]
|
|
485
|
-
};
|
|
486
|
-
const gradients = {
|
|
487
|
-
top: "linear-gradient( to bottom, " + color + " 0%, transparent 100% )",
|
|
488
|
-
bottom: "linear-gradient( to top, " + color + " 0%, transparent 100% )",
|
|
489
|
-
left: "linear-gradient( to right, " + color + " 0%, transparent 100% )",
|
|
490
|
-
right: "linear-gradient( to left, " + color + " 0%, transparent 100% )"
|
|
491
|
-
};
|
|
492
|
-
const containerRef = (0, import_react4.useRef)(null);
|
|
493
|
-
const [scroll, setScroll] = (0, import_react4.useState)({
|
|
494
|
-
top: 0,
|
|
495
|
-
left: 0,
|
|
496
|
-
atBottom: true,
|
|
497
|
-
atRight: true
|
|
498
|
-
});
|
|
499
|
-
(0, import_react4.useEffect)(
|
|
500
|
-
() => {
|
|
501
|
-
const container = containerRef.current;
|
|
502
|
-
const handleScroll = () => {
|
|
503
|
-
const { scrollTop, scrollLeft, scrollHeight, scrollWidth, clientHeight, clientWidth } = container;
|
|
504
|
-
setScroll({
|
|
505
|
-
top: scrollTop,
|
|
506
|
-
left: scrollLeft,
|
|
507
|
-
atBottom: scrollTop + clientHeight >= scrollHeight - 1,
|
|
508
|
-
atRight: scrollLeft + clientWidth >= scrollWidth - 1
|
|
509
|
-
});
|
|
510
|
-
};
|
|
511
|
-
const handleUpdate = () => {
|
|
512
|
-
const { scrollHeight, scrollWidth, clientHeight, clientWidth } = container;
|
|
513
|
-
if (scrollHeight <= clientHeight && scrollWidth <= clientWidth) {
|
|
514
|
-
setScroll({
|
|
515
|
-
top: 0,
|
|
516
|
-
left: 0,
|
|
517
|
-
atBottom: true,
|
|
518
|
-
atRight: true
|
|
519
|
-
});
|
|
520
|
-
return;
|
|
521
|
-
}
|
|
522
|
-
;
|
|
523
|
-
handleScroll();
|
|
524
|
-
};
|
|
525
|
-
handleUpdate();
|
|
526
|
-
container.addEventListener("scroll", handleScroll);
|
|
527
|
-
const observer = new MutationObserver((mutations) => {
|
|
528
|
-
for (const mutation of mutations) {
|
|
529
|
-
if (mutation.type === "childList" && mutation.addedNodes.length > 0) {
|
|
530
|
-
handleUpdate();
|
|
531
|
-
break;
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
});
|
|
535
|
-
observer.observe(container, {
|
|
536
|
-
childList: true,
|
|
537
|
-
subtree: true
|
|
538
|
-
});
|
|
539
|
-
const resizeObserver = new ResizeObserver(handleUpdate);
|
|
540
|
-
resizeObserver.observe(container);
|
|
541
|
-
return () => {
|
|
542
|
-
container.removeEventListener("scroll", handleScroll);
|
|
543
|
-
observer.disconnect();
|
|
544
|
-
resizeObserver.disconnect();
|
|
545
|
-
};
|
|
546
|
-
},
|
|
547
|
-
[horizontal]
|
|
548
|
-
);
|
|
549
|
-
const contextValue = (0, import_react4.useMemo)(
|
|
550
|
-
() => ({
|
|
551
|
-
atBottom: scroll.atBottom,
|
|
552
|
-
atRight: scroll.atRight
|
|
553
|
-
}),
|
|
554
|
-
[scroll.atBottom, scroll.atRight]
|
|
555
|
-
);
|
|
556
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
557
|
-
"div",
|
|
558
|
-
{
|
|
559
|
-
...{
|
|
560
|
-
className: classes.container.join(" ")
|
|
561
|
-
},
|
|
562
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(WrapperGradientContext.Provider, { value: contextValue, children: [
|
|
563
|
-
showY && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
564
|
-
"div",
|
|
565
|
-
{
|
|
566
|
-
...{
|
|
567
|
-
className: classes.topGradient.join(" ") + (scroll.top > 5 ? " opacity-100 visible" : " opacity-0 invisible"),
|
|
568
|
-
style: {
|
|
569
|
-
...themed && {
|
|
570
|
-
backgroundImage: gradients.top
|
|
571
|
-
},
|
|
572
|
-
...gradientTopOffset && {
|
|
573
|
-
top: gradientTopOffset
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
),
|
|
579
|
-
showX && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
580
|
-
"div",
|
|
581
|
-
{
|
|
582
|
-
...{
|
|
583
|
-
className: classes.leftGradient.join(" ") + (scroll.left > 5 ? " opacity-100 visible" : " opacity-0 invisible"),
|
|
584
|
-
style: {
|
|
585
|
-
...themed && {
|
|
586
|
-
backgroundImage: gradients.left
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
),
|
|
592
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
593
|
-
"div",
|
|
594
|
-
{
|
|
595
|
-
...{
|
|
596
|
-
className: classes.inner.join(" "),
|
|
597
|
-
ref: containerRef
|
|
598
|
-
},
|
|
599
|
-
children
|
|
600
|
-
}
|
|
601
|
-
),
|
|
602
|
-
showY && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
603
|
-
"div",
|
|
604
|
-
{
|
|
605
|
-
...{
|
|
606
|
-
className: classes.bottomGradient.join(" ") + (!scroll.atBottom ? " opacity-100 visible" : " opacity-0 invisible"),
|
|
607
|
-
style: {
|
|
608
|
-
...themed && {
|
|
609
|
-
backgroundImage: gradients.bottom
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
),
|
|
615
|
-
showX && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
616
|
-
"div",
|
|
617
|
-
{
|
|
618
|
-
...{
|
|
619
|
-
className: classes.rightGradient.join(" ") + (!scroll.atRight ? " opacity-100 visible" : " opacity-0 invisible"),
|
|
620
|
-
style: {
|
|
621
|
-
...themed && {
|
|
622
|
-
backgroundImage: gradients.right
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
)
|
|
628
|
-
] })
|
|
629
|
-
}
|
|
630
|
-
);
|
|
631
|
-
};
|
|
632
|
-
var wrapper_gradient_default = WrapperGradient;
|
|
633
|
-
|
|
634
|
-
// components/icons/loader.js
|
|
635
|
-
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
636
|
-
var Loader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
637
|
-
"svg",
|
|
638
|
-
{
|
|
639
|
-
...{
|
|
640
|
-
fill: "none",
|
|
641
|
-
stroke: "none",
|
|
642
|
-
strokeWidth: 0,
|
|
643
|
-
viewBox: "0 0 24 24",
|
|
644
|
-
className: ["animate-spin", className].filter(Boolean).join(" "),
|
|
645
|
-
...props
|
|
646
|
-
},
|
|
647
|
-
children: [
|
|
648
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
649
|
-
"circle",
|
|
650
|
-
{
|
|
651
|
-
...{
|
|
652
|
-
className: "opacity-25",
|
|
653
|
-
cx: 12,
|
|
654
|
-
cy: 12,
|
|
655
|
-
r: 10,
|
|
656
|
-
stroke: "currentColor",
|
|
657
|
-
strokeWidth: 4
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
),
|
|
661
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
662
|
-
"path",
|
|
663
|
-
{
|
|
664
|
-
...{
|
|
665
|
-
className: "opacity-75",
|
|
666
|
-
fill: "currentColor",
|
|
667
|
-
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
)
|
|
671
|
-
]
|
|
672
|
-
}
|
|
673
|
-
);
|
|
674
|
-
var loader_default = Loader;
|
|
675
|
-
|
|
676
|
-
// components/product.js
|
|
677
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
678
|
-
var DefaultImage = ({ alt, className, src, style }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
39
|
+
var import_input_group = __toESM(require("./input-group"));
|
|
40
|
+
var import_input_select = __toESM(require("./input-select"));
|
|
41
|
+
var import_wrapper_gradient = __toESM(require("./wrapper-gradient"));
|
|
42
|
+
var import_loader = __toESM(require("./icons/loader"));
|
|
43
|
+
var import_button = __toESM(require("./shared/button"));
|
|
44
|
+
var import_styles = require("./styles");
|
|
45
|
+
const DefaultImage = ({ alt, className, src, style }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
679
46
|
"img",
|
|
680
47
|
{
|
|
681
48
|
...{
|
|
@@ -686,7 +53,7 @@ var DefaultImage = ({ alt, className, src, style }) => /* @__PURE__ */ (0, impor
|
|
|
686
53
|
}
|
|
687
54
|
}
|
|
688
55
|
);
|
|
689
|
-
|
|
56
|
+
const Product = ({
|
|
690
57
|
action = null,
|
|
691
58
|
addToCart = true,
|
|
692
59
|
buttonFontSize,
|
|
@@ -717,14 +84,14 @@ var Product = ({
|
|
|
717
84
|
}
|
|
718
85
|
};
|
|
719
86
|
const imageRadius = ((_c = resolved == null ? void 0 : resolved.image) == null ? void 0 : _c.radius) != null ? resolved.image.radius + "px" : "12px";
|
|
720
|
-
const available = (0,
|
|
87
|
+
const available = (0, import_react.useMemo)(
|
|
721
88
|
() => ((product == null ? void 0 : product.variants) || []).filter((v) => v.availableForSale),
|
|
722
89
|
[product]
|
|
723
90
|
);
|
|
724
|
-
const [activeImage, setActiveImage] = (0,
|
|
91
|
+
const [activeImage, setActiveImage] = (0, import_react.useState)(0);
|
|
725
92
|
const [emblaRef, emblaApi] = (0, import_embla_carousel_react.default)();
|
|
726
93
|
const selectedVariant = available.find((v) => v.id === variant) || available[0] || null;
|
|
727
|
-
const images = (0,
|
|
94
|
+
const images = (0, import_react.useMemo)(
|
|
728
95
|
() => {
|
|
729
96
|
const variants = ((product == null ? void 0 : product.variants) || []).filter((v) => v.availableForSale);
|
|
730
97
|
const result = [];
|
|
@@ -749,7 +116,7 @@ var Product = ({
|
|
|
749
116
|
},
|
|
750
117
|
[product]
|
|
751
118
|
);
|
|
752
|
-
(0,
|
|
119
|
+
(0, import_react.useEffect)(
|
|
753
120
|
() => {
|
|
754
121
|
if (!emblaApi) return;
|
|
755
122
|
const onSelect = () => {
|
|
@@ -774,7 +141,7 @@ var Product = ({
|
|
|
774
141
|
}
|
|
775
142
|
;
|
|
776
143
|
};
|
|
777
|
-
return /* @__PURE__ */ (0,
|
|
144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
778
145
|
"div",
|
|
779
146
|
{
|
|
780
147
|
...{
|
|
@@ -786,7 +153,7 @@ var Product = ({
|
|
|
786
153
|
},
|
|
787
154
|
children: [
|
|
788
155
|
header,
|
|
789
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
156
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
790
157
|
"div",
|
|
791
158
|
{
|
|
792
159
|
...{
|
|
@@ -796,45 +163,53 @@ var Product = ({
|
|
|
796
163
|
}
|
|
797
164
|
},
|
|
798
165
|
children: [
|
|
799
|
-
images.length > 1 && /* @__PURE__ */ (0,
|
|
800
|
-
|
|
166
|
+
images.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
167
|
+
import_wrapper_gradient.default,
|
|
801
168
|
{
|
|
802
169
|
...{
|
|
803
170
|
classNameScroll: "flex flex-col w-12 h-48 space-y-3",
|
|
804
171
|
color: resolved.background.color.rgb
|
|
805
172
|
},
|
|
806
|
-
children: images.map(({ src }, key) => /* @__PURE__ */ (0,
|
|
807
|
-
|
|
173
|
+
children: images.map(({ src }, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
174
|
+
import_button.default,
|
|
808
175
|
{
|
|
809
176
|
...{
|
|
810
|
-
// Active state is conveyed purely by a dimmed image (no border).
|
|
811
|
-
className: "relative w-12 h-12 overflow-hidden shrink-0",
|
|
812
177
|
onClick: () => {
|
|
813
178
|
setActiveImage(key);
|
|
814
179
|
emblaApi == null ? void 0 : emblaApi.scrollTo(key);
|
|
815
180
|
},
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
},
|
|
819
|
-
type: "button"
|
|
181
|
+
variant: "link",
|
|
182
|
+
inline: true
|
|
820
183
|
},
|
|
821
|
-
children: /* @__PURE__ */ (0,
|
|
822
|
-
|
|
184
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
185
|
+
"span",
|
|
823
186
|
{
|
|
824
187
|
...{
|
|
825
|
-
|
|
826
|
-
className: "
|
|
827
|
-
fill: true,
|
|
828
|
-
sizes: "48px",
|
|
829
|
-
src: (0, import_cdn.cdnShopify)(src, "100x100", product == null ? void 0 : product.updatedAt) || src,
|
|
830
|
-
// Always set opacity + transition so switching the active
|
|
831
|
-
// thumbnail animates the fade in both directions.
|
|
188
|
+
// Active state is conveyed purely by a dimmed image (no border).
|
|
189
|
+
className: "block relative w-12 h-12 overflow-hidden",
|
|
832
190
|
style: {
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
191
|
+
borderRadius: imageRadius
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
195
|
+
ImageComponent,
|
|
196
|
+
{
|
|
197
|
+
...{
|
|
198
|
+
alt: product.title + " thumbnail " + key,
|
|
199
|
+
className: "object-cover",
|
|
200
|
+
fill: true,
|
|
201
|
+
sizes: "48px",
|
|
202
|
+
src: (0, import_cdn.cdnShopify)(src, "100x100", product == null ? void 0 : product.updatedAt) || src,
|
|
203
|
+
// Always set opacity + transition so switching the active
|
|
204
|
+
// thumbnail animates the fade in both directions.
|
|
205
|
+
style: {
|
|
206
|
+
opacity: activeImage === key ? 0.6 : 1,
|
|
207
|
+
transition: "opacity 300ms ease"
|
|
208
|
+
},
|
|
209
|
+
unoptimized: true
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
)
|
|
838
213
|
}
|
|
839
214
|
)
|
|
840
215
|
},
|
|
@@ -842,7 +217,7 @@ var Product = ({
|
|
|
842
217
|
))
|
|
843
218
|
}
|
|
844
219
|
),
|
|
845
|
-
/* @__PURE__ */ (0,
|
|
220
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
846
221
|
"div",
|
|
847
222
|
{
|
|
848
223
|
...{
|
|
@@ -858,7 +233,7 @@ var Product = ({
|
|
|
858
233
|
height: "12rem"
|
|
859
234
|
}
|
|
860
235
|
},
|
|
861
|
-
children: /* @__PURE__ */ (0,
|
|
236
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
862
237
|
"div",
|
|
863
238
|
{
|
|
864
239
|
...{
|
|
@@ -867,7 +242,7 @@ var Product = ({
|
|
|
867
242
|
height: "100%"
|
|
868
243
|
}
|
|
869
244
|
},
|
|
870
|
-
children: images.map(({ src }, key) => /* @__PURE__ */ (0,
|
|
245
|
+
children: images.map(({ src }, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
871
246
|
"div",
|
|
872
247
|
{
|
|
873
248
|
...{
|
|
@@ -877,7 +252,7 @@ var Product = ({
|
|
|
877
252
|
height: "100%"
|
|
878
253
|
}
|
|
879
254
|
},
|
|
880
|
-
children: /* @__PURE__ */ (0,
|
|
255
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
881
256
|
ImageComponent,
|
|
882
257
|
{
|
|
883
258
|
...{
|
|
@@ -900,48 +275,48 @@ var Product = ({
|
|
|
900
275
|
]
|
|
901
276
|
}
|
|
902
277
|
),
|
|
903
|
-
/* @__PURE__ */ (0,
|
|
278
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
904
279
|
"div",
|
|
905
280
|
{
|
|
906
281
|
...{
|
|
907
282
|
className: "text-center space-y-2"
|
|
908
283
|
},
|
|
909
284
|
children: [
|
|
910
|
-
(product == null ? void 0 : product.title) && /* @__PURE__ */ (0,
|
|
285
|
+
(product == null ? void 0 : product.title) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
911
286
|
"h2",
|
|
912
287
|
{
|
|
913
288
|
...{
|
|
914
289
|
className: "max-w-80 mx-auto",
|
|
915
|
-
style: headerStyle(style)
|
|
290
|
+
style: (0, import_styles.headerStyle)(style)
|
|
916
291
|
},
|
|
917
292
|
children: product == null ? void 0 : product.title
|
|
918
293
|
}
|
|
919
294
|
),
|
|
920
|
-
!available.length ? /* @__PURE__ */ (0,
|
|
295
|
+
!available.length ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Unavailable" }) : (selectedVariant == null ? void 0 : selectedVariant.price) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: (0, import_drawbridge_utils.formatCurrency)({
|
|
921
296
|
code: selectedVariant.currency,
|
|
922
297
|
display: "parts",
|
|
923
298
|
value: selectedVariant.price
|
|
924
299
|
}) }),
|
|
925
|
-
(product == null ? void 0 : product.description) && /* @__PURE__ */ (0,
|
|
926
|
-
|
|
300
|
+
(product == null ? void 0 : product.description) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
301
|
+
import_wrapper_gradient.default,
|
|
927
302
|
{
|
|
928
303
|
...{
|
|
929
304
|
classNameScroll: "max-h-[4.5em]",
|
|
930
305
|
color: resolved.background.color.rgb
|
|
931
306
|
},
|
|
932
|
-
children: /* @__PURE__ */ (0,
|
|
307
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: product.description })
|
|
933
308
|
}
|
|
934
309
|
)
|
|
935
310
|
]
|
|
936
311
|
}
|
|
937
312
|
),
|
|
938
|
-
available.length > 1 && /* @__PURE__ */ (0,
|
|
939
|
-
|
|
313
|
+
available.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
314
|
+
import_input_group.default,
|
|
940
315
|
{
|
|
941
316
|
...{
|
|
942
317
|
error: errors == null ? void 0 : errors.variant,
|
|
943
|
-
input: /* @__PURE__ */ (0,
|
|
944
|
-
|
|
318
|
+
input: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
319
|
+
import_input_select.default,
|
|
945
320
|
{
|
|
946
321
|
...{
|
|
947
322
|
disabled,
|
|
@@ -959,67 +334,64 @@ var Product = ({
|
|
|
959
334
|
}
|
|
960
335
|
}
|
|
961
336
|
),
|
|
962
|
-
available.length > 0 && /* @__PURE__ */ (0,
|
|
963
|
-
|
|
337
|
+
available.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
338
|
+
import_input_group.default,
|
|
964
339
|
{
|
|
965
340
|
...{
|
|
966
341
|
error: errors == null ? void 0 : errors.root,
|
|
967
|
-
input: /* @__PURE__ */ (0,
|
|
342
|
+
input: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
968
343
|
"div",
|
|
969
344
|
{
|
|
970
345
|
...{
|
|
971
|
-
className: addToCart ? "grid grid-cols-2 gap-5" : ""
|
|
346
|
+
className: addToCart ? "grid grid-cols-2 gap-5" : "",
|
|
347
|
+
// The buttons take a fixed size from here (the ad card's is 16px).
|
|
348
|
+
...buttonFontSize && {
|
|
349
|
+
style: {
|
|
350
|
+
fontSize: buttonFontSize
|
|
351
|
+
}
|
|
352
|
+
}
|
|
972
353
|
},
|
|
973
354
|
children: [
|
|
974
|
-
addToCart && /* @__PURE__ */ (0,
|
|
975
|
-
|
|
355
|
+
addToCart && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
356
|
+
import_button.default,
|
|
976
357
|
{
|
|
977
358
|
...{
|
|
978
|
-
className: "button justify-center border py-3 px-4 rounded",
|
|
979
359
|
disabled: disabled || Boolean(action),
|
|
980
360
|
onClick: onAdd,
|
|
981
|
-
|
|
982
|
-
...inputStyle(resolved),
|
|
983
|
-
borderRadius: buttonStyle(resolved).borderRadius,
|
|
984
|
-
...buttonFontSize && {
|
|
985
|
-
fontSize: buttonFontSize
|
|
986
|
-
}
|
|
987
|
-
},
|
|
988
|
-
type: "button"
|
|
361
|
+
variant: "link"
|
|
989
362
|
},
|
|
990
|
-
children:
|
|
991
|
-
|
|
363
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
364
|
+
"span",
|
|
992
365
|
{
|
|
993
366
|
...{
|
|
994
|
-
className: "w-
|
|
995
|
-
|
|
367
|
+
className: "flex items-center justify-center w-full border py-3 px-4 rounded",
|
|
368
|
+
style: {
|
|
369
|
+
...(0, import_styles.inputStyle)(resolved),
|
|
370
|
+
borderRadius: (0, import_styles.buttonStyle)(resolved).borderRadius
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
children: action === "add" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
374
|
+
import_loader.default,
|
|
375
|
+
{
|
|
376
|
+
...{
|
|
377
|
+
className: "w-6 h-6 animate-spin"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
) : "Add to cart"
|
|
996
381
|
}
|
|
997
|
-
)
|
|
382
|
+
)
|
|
998
383
|
}
|
|
999
384
|
),
|
|
1000
|
-
/* @__PURE__ */ (0,
|
|
1001
|
-
|
|
385
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
386
|
+
import_button.default,
|
|
1002
387
|
{
|
|
1003
388
|
...{
|
|
1004
|
-
className: "button justify-center py-3 px-4 rounded" + (addToCart ? "" : " w-full"),
|
|
1005
389
|
disabled: disabled || Boolean(action),
|
|
390
|
+
loading: action === "buy",
|
|
1006
391
|
onClick: onBuy,
|
|
1007
|
-
style:
|
|
1008
|
-
...buttonStyle(resolved),
|
|
1009
|
-
...buttonFontSize && {
|
|
1010
|
-
fontSize: buttonFontSize
|
|
1011
|
-
}
|
|
1012
|
-
},
|
|
1013
|
-
type: "button"
|
|
392
|
+
style: resolved
|
|
1014
393
|
},
|
|
1015
|
-
children:
|
|
1016
|
-
loader_default,
|
|
1017
|
-
{
|
|
1018
|
-
...{
|
|
1019
|
-
className: "w-6 h-6 animate-spin"
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
) : "Buy now"
|
|
394
|
+
children: "Buy now"
|
|
1023
395
|
}
|
|
1024
396
|
)
|
|
1025
397
|
]
|