@drawbridge/components 0.1.0 → 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.
Files changed (184) hide show
  1. package/dist/advertisement.mjs +4 -4
  2. package/dist/bridge/advertisements.mjs +3 -3
  3. package/dist/bridge/fields.mjs +7 -7
  4. package/dist/bridge/form-subdomain-embed.mjs +9 -9
  5. package/dist/bridge/form-subdomain-header.mjs +3 -3
  6. package/dist/bridge/form-subdomain-issue.mjs +10 -10
  7. package/dist/bridge/form-subdomain-prize.mjs +7 -7
  8. package/dist/bridge/form-subdomain-shop-modal.mjs +13 -13
  9. package/dist/bridge/form-subdomain-shop.mjs +1 -1
  10. package/dist/bridge/form-subdomain.mjs +16 -16
  11. package/dist/bridge/product-tile.mjs +2 -2
  12. package/dist/bridge/share-button.mjs +1 -1
  13. package/dist/bridge/template-layout.mjs +14 -14
  14. package/dist/bridge/template-modal.mjs +15 -15
  15. package/dist/bridge/template-not-found.mjs +1 -1
  16. package/dist/bridge/template-subdomain-gallery.mjs +5 -5
  17. package/dist/bridge/template-subdomain-link.mjs +1 -1
  18. package/dist/bridge/template-subdomain.mjs +7 -7
  19. package/dist/dashboard/accordion.mjs +5 -5
  20. package/dist/dashboard/card-affiliate.mjs +11 -11
  21. package/dist/dashboard/card-connection.mjs +5 -5
  22. package/dist/dashboard/card-integration.mjs +6 -6
  23. package/dist/dashboard/card-metric.mjs +3 -3
  24. package/dist/dashboard/card-note.mjs +4 -4
  25. package/dist/dashboard/card-order.mjs +1 -1
  26. package/dist/dashboard/card-overage.mjs +4 -4
  27. package/dist/dashboard/card-payment-method.mjs +1 -1
  28. package/dist/dashboard/card-plan.mjs +5 -5
  29. package/dist/dashboard/card-product.mjs +1 -1
  30. package/dist/dashboard/card-score.mjs +2 -2
  31. package/dist/dashboard/card-setting.mjs +2 -2
  32. package/dist/dashboard/card-task.mjs +3 -3
  33. package/dist/dashboard/card-template.mjs +1 -1
  34. package/dist/dashboard/card-tile.mjs +7 -7
  35. package/dist/dashboard/card-utm.mjs +4 -4
  36. package/dist/dashboard/carousel-tiles.mjs +2 -2
  37. package/dist/dashboard/code-formatter.mjs +2 -2
  38. package/dist/dashboard/drawer-subscription.mjs +14 -14
  39. package/dist/dashboard/drawer.mjs +4 -4
  40. package/dist/dashboard/dropdown.mjs +4 -4
  41. package/dist/dashboard/form-action.mjs +4 -4
  42. package/dist/dashboard/form-address.mjs +6 -6
  43. package/dist/dashboard/form-admin-campaign.mjs +8 -8
  44. package/dist/dashboard/form-admin-invoice-refund.mjs +8 -8
  45. package/dist/dashboard/form-admin-oauth.mjs +11 -11
  46. package/dist/dashboard/form-admin-organization.mjs +8 -8
  47. package/dist/dashboard/form-admin-provider.mjs +10 -10
  48. package/dist/dashboard/form-admin-referrer.mjs +7 -7
  49. package/dist/dashboard/form-admin-subscription-custom.mjs +11 -11
  50. package/dist/dashboard/form-admin-template.mjs +11 -11
  51. package/dist/dashboard/form-admin-user-credit.mjs +7 -7
  52. package/dist/dashboard/form-admin-user-permissions.mjs +7 -7
  53. package/dist/dashboard/form-admin-user-status.mjs +7 -7
  54. package/dist/dashboard/form-admin-utm.mjs +12 -12
  55. package/dist/dashboard/form-ai.mjs +16 -16
  56. package/dist/dashboard/form-auth.mjs +11 -11
  57. package/dist/dashboard/form-credit.mjs +1 -1
  58. package/dist/dashboard/form-file-upload.mjs +14 -14
  59. package/dist/dashboard/form-file.mjs +11 -11
  60. package/dist/dashboard/form-filters-analytics.mjs +9 -9
  61. package/dist/dashboard/form-filters.mjs +9 -9
  62. package/dist/dashboard/form-note.mjs +7 -7
  63. package/dist/dashboard/form-notification.mjs +5 -5
  64. package/dist/dashboard/form-organization-affiliate.mjs +8 -8
  65. package/dist/dashboard/form-organization-brand.mjs +9 -9
  66. package/dist/dashboard/form-organization-campaign-advertisement.mjs +14 -14
  67. package/dist/dashboard/form-organization-campaign-agreement.mjs +11 -11
  68. package/dist/dashboard/form-organization-campaign-draw.mjs +12 -12
  69. package/dist/dashboard/form-organization-campaign-field-email.mjs +10 -10
  70. package/dist/dashboard/form-organization-campaign-field-name.mjs +7 -7
  71. package/dist/dashboard/form-organization-campaign-field-number.mjs +8 -8
  72. package/dist/dashboard/form-organization-campaign-field-phone.mjs +9 -9
  73. package/dist/dashboard/form-organization-campaign-field-select.mjs +9 -9
  74. package/dist/dashboard/form-organization-campaign-field-text.mjs +8 -8
  75. package/dist/dashboard/form-organization-campaign-field-textarea.mjs +8 -8
  76. package/dist/dashboard/form-organization-campaign-integration-age.mjs +8 -8
  77. package/dist/dashboard/form-organization-campaign-integration-enable.mjs +5 -5
  78. package/dist/dashboard/form-organization-campaign-integration-geocode.mjs +9 -9
  79. package/dist/dashboard/form-organization-campaign-integration-gtm.mjs +8 -8
  80. package/dist/dashboard/form-organization-campaign-lead.mjs +7 -7
  81. package/dist/dashboard/form-organization-campaign-link.mjs +11 -11
  82. package/dist/dashboard/form-organization-campaign-page-affiliates.mjs +6 -6
  83. package/dist/dashboard/form-organization-campaign-page-embed.mjs +7 -7
  84. package/dist/dashboard/form-organization-campaign-page-preview.mjs +8 -8
  85. package/dist/dashboard/form-organization-campaign-page-qr.mjs +14 -14
  86. package/dist/dashboard/form-organization-campaign-page-share.mjs +15 -15
  87. package/dist/dashboard/form-organization-campaign-page-slug.mjs +8 -8
  88. package/dist/dashboard/form-organization-campaign-page.mjs +10 -10
  89. package/dist/dashboard/form-organization-campaign-prize-edit.mjs +16 -16
  90. package/dist/dashboard/form-organization-campaign-prize.mjs +7 -7
  91. package/dist/dashboard/form-organization-campaign-range.mjs +10 -10
  92. package/dist/dashboard/form-organization-campaign.mjs +13 -13
  93. package/dist/dashboard/form-organization-connection.mjs +14 -14
  94. package/dist/dashboard/form-organization-export.mjs +9 -9
  95. package/dist/dashboard/form-organization-file-frame.mjs +9 -9
  96. package/dist/dashboard/form-organization-file.mjs +11 -11
  97. package/dist/dashboard/form-organization-identity.mjs +15 -15
  98. package/dist/dashboard/form-organization-member.mjs +9 -9
  99. package/dist/dashboard/form-organization-segment.mjs +12 -12
  100. package/dist/dashboard/form-organization-workflow.mjs +18 -18
  101. package/dist/dashboard/form-organization.mjs +11 -11
  102. package/dist/dashboard/form-otc.mjs +7 -7
  103. package/dist/dashboard/form-payment-methods.mjs +7 -7
  104. package/dist/dashboard/form-profile.mjs +7 -7
  105. package/dist/dashboard/form-stripe-promotion.mjs +7 -7
  106. package/dist/dashboard/form-stripe.mjs +5 -5
  107. package/dist/dashboard/form-verify-prize.mjs +13 -13
  108. package/dist/dashboard/google.mjs +5 -5
  109. package/dist/dashboard/guard-navigation.mjs +3 -3
  110. package/dist/dashboard/guide.mjs +4 -4
  111. package/dist/dashboard/iframe.mjs +1 -1
  112. package/dist/dashboard/input-address-saved.mjs +7 -7
  113. package/dist/dashboard/input-array.mjs +5 -5
  114. package/dist/dashboard/input-color.mjs +2 -2
  115. package/dist/dashboard/input-combobox.mjs +5 -5
  116. package/dist/dashboard/input-date.mjs +4 -4
  117. package/dist/dashboard/input-editor.mjs +6 -6
  118. package/dist/dashboard/input-fields.mjs +20 -20
  119. package/dist/dashboard/input-file.mjs +6 -6
  120. package/dist/dashboard/input-font.mjs +6 -6
  121. package/dist/dashboard/input-group-ai.mjs +5 -5
  122. package/dist/dashboard/input-radio.mjs +2 -2
  123. package/dist/dashboard/input-resource.mjs +5 -5
  124. package/dist/dashboard/input-secret.mjs +6 -6
  125. package/dist/dashboard/input-time.mjs +2 -2
  126. package/dist/dashboard/lib/table-actions.mjs +1 -1
  127. package/dist/dashboard/lib/uppy.mjs +1 -1
  128. package/dist/dashboard/link-back.mjs +4 -4
  129. package/dist/dashboard/link.mjs +1 -1
  130. package/dist/dashboard/list-resource.mjs +4 -4
  131. package/dist/dashboard/list.mjs +3 -3
  132. package/dist/dashboard/menu.js +65 -9
  133. package/dist/dashboard/menu.mjs +76 -21
  134. package/dist/dashboard/modal.mjs +5 -5
  135. package/dist/dashboard/notes.mjs +7 -7
  136. package/dist/dashboard/notice.mjs +3 -3
  137. package/dist/dashboard/paged.mjs +7 -7
  138. package/dist/dashboard/provider-resource.mjs +2 -2
  139. package/dist/dashboard/provider-ui.mjs +6 -6
  140. package/dist/dashboard/provider.mjs +1 -1
  141. package/dist/dashboard/recharts.mjs +1 -1
  142. package/dist/dashboard/steps.mjs +6 -6
  143. package/dist/dashboard/swatch.mjs +3 -3
  144. package/dist/dashboard/table-cell-title.mjs +6 -6
  145. package/dist/dashboard/table.mjs +15 -15
  146. package/dist/dashboard/template-dashboard.mjs +13 -13
  147. package/dist/dashboard/template-not-found.mjs +3 -3
  148. package/dist/dashboard/template-socket.mjs +3 -3
  149. package/dist/dashboard/template-suspended.mjs +1 -1
  150. package/dist/dashboard/template-ui.mjs +12 -12
  151. package/dist/dashboard/wrapper-ai.mjs +1 -1
  152. package/dist/icons/social.mjs +14 -14
  153. package/dist/input-checkbox.mjs +3 -3
  154. package/dist/input-group.mjs +2 -2
  155. package/dist/input-name.mjs +2 -2
  156. package/dist/input-number.mjs +4 -4
  157. package/dist/input-phone.mjs +2 -2
  158. package/dist/input-select.mjs +2 -2
  159. package/dist/input-text.mjs +1 -1
  160. package/dist/input-textarea.mjs +1 -1
  161. package/dist/product.mjs +6 -6
  162. package/dist/provider-font.mjs +1 -1
  163. package/dist/shared/badge.mjs +1 -1
  164. package/dist/shared/button.mjs +2 -2
  165. package/dist/shared/card-asset.mjs +3 -3
  166. package/dist/shared/card-prize.mjs +4 -4
  167. package/dist/shared/carousel.mjs +2 -2
  168. package/dist/shared/copy-to-clipboard.mjs +4 -4
  169. package/dist/shared/empty.mjs +1 -1
  170. package/dist/shared/error.mjs +1 -1
  171. package/dist/shared/fieldset.mjs +1 -1
  172. package/dist/shared/input-checkbox-list.mjs +3 -3
  173. package/dist/shared/input-range.mjs +1 -1
  174. package/dist/shared/input-switch.mjs +2 -2
  175. package/dist/shared/input-url.mjs +1 -1
  176. package/dist/shared/lib/helpers.mjs +2 -2
  177. package/dist/shared/lib/icon-labels.mjs +7 -7
  178. package/dist/shared/lib/yup.mjs +1 -1
  179. package/dist/shared/loader.mjs +2 -2
  180. package/dist/shared/overlay.mjs +2 -2
  181. package/dist/shared/sortable.mjs +1 -1
  182. package/dist/shared/tabs.mjs +3 -3
  183. package/dist/video.mjs +2 -2
  184. package/package.json +299 -3
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { cdnSrc } from "@drawbridge/drawbridge-utils/cdn";
4
- import Button from "./shared/button";
5
- import Empty from "./shared/empty";
6
- import Product from "./product";
7
- import Video from "./video";
4
+ import Button from "./shared/button.mjs";
5
+ import Empty from "./shared/empty.mjs";
6
+ import Product from "./product.mjs";
7
+ import Video from "./video.mjs";
8
8
  const DefaultImage = ({ alt, className, src }) => /* @__PURE__ */ jsx(
9
9
  "img",
10
10
  {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { useCallback, useEffect, useRef, useState } from "react";
4
- import Carousel from "../shared/carousel";
5
- import AdvertisementRender from "../advertisement";
6
- import Video from "../video";
4
+ import Carousel from "../shared/carousel.mjs";
5
+ import AdvertisementRender from "../advertisement.mjs";
6
+ import Video from "../video.mjs";
7
7
  import Image from "next/image";
8
8
  const Advertisement = ({
9
9
  affiliate,
@@ -1,11 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import InputGroup from "../input-group";
3
- import InputName from "../input-name";
4
- import InputSelect from "../input-select";
5
- import InputPhone from "../input-phone";
6
- import InputNumber from "../input-number";
7
- import InputText from "../input-text";
8
- import InputTextarea from "../input-textarea";
2
+ import InputGroup from "../input-group.mjs";
3
+ import InputName from "../input-name.mjs";
4
+ import InputSelect from "../input-select.mjs";
5
+ import InputPhone from "../input-phone.mjs";
6
+ import InputNumber from "../input-number.mjs";
7
+ import InputText from "../input-text.mjs";
8
+ import InputTextarea from "../input-textarea.mjs";
9
9
  const FieldEmail = ({
10
10
  error,
11
11
  field,
@@ -2,16 +2,16 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fragment, useCallback, useEffect, useRef, useState } from "react";
4
4
  import { constants } from "@drawbridge/drawbridge-utils";
5
- import TemplateSubdomainContent from "./subdomain-content";
6
- import ProviderFont from "../provider-font";
7
- import Button from "../shared/button";
8
- import FormSubdomain, { FormSubdomainMessage } from "./form-subdomain";
9
- import Countdown from "./countdown";
10
- import ArrowLeft from "../icons/arrow-left";
11
- import Warning from "../icons/warning";
5
+ import TemplateSubdomainContent from "./subdomain-content.mjs";
6
+ import ProviderFont from "../provider-font.mjs";
7
+ import Button from "../shared/button.mjs";
8
+ import FormSubdomain, { FormSubdomainMessage } from "./form-subdomain.mjs";
9
+ import Countdown from "./countdown.mjs";
10
+ import ArrowLeft from "../icons/arrow-left.mjs";
11
+ import Warning from "../icons/warning.mjs";
12
12
  import Link from "next/link";
13
- import PoweredBy from "../icons/powered-by";
14
- import { useTracking } from "./provider-analytics";
13
+ import PoweredBy from "../icons/powered-by.mjs";
14
+ import { useTracking } from "./provider-analytics.mjs";
15
15
  const FormSubdomainEmbed = ({
16
16
  params,
17
17
  preview,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import ArrowLeft from "../icons/arrow-left";
4
- import Button from "../shared/button";
5
- import { headerStyle, textStyle } from "../styles";
3
+ import ArrowLeft from "../icons/arrow-left.mjs";
4
+ import Button from "../shared/button.mjs";
5
+ import { headerStyle, textStyle } from "../styles.mjs";
6
6
  const FormSubdomainHeader = ({
7
7
  back,
8
8
  button,
@@ -2,17 +2,17 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { request } from "@drawbridge/drawbridge-utils/fetch";
4
4
  import { useForm, Controller } from "react-hook-form";
5
- import yup, { resolver } from "./lib/yup";
5
+ import yup, { resolver } from "./lib/yup.mjs";
6
6
  import { useGoogleReCaptcha } from "react-google-recaptcha-v3";
7
- import { assertRecaptcha } from "./lib/recaptcha";
8
- import Form from "../shared/form";
9
- import Button from "../shared/button";
10
- import Fieldset from "../shared/fieldset";
11
- import InputGroup from "../input-group";
12
- import Error from "../shared/error";
13
- import InputText from "../input-text";
14
- import InputTextarea from "../input-textarea";
15
- import Empty from "../shared/empty";
7
+ import { assertRecaptcha } from "./lib/recaptcha.mjs";
8
+ import Form from "../shared/form.mjs";
9
+ import Button from "../shared/button.mjs";
10
+ import Fieldset from "../shared/fieldset.mjs";
11
+ import InputGroup from "../input-group.mjs";
12
+ import Error from "../shared/error.mjs";
13
+ import InputText from "../input-text.mjs";
14
+ import InputTextarea from "../input-textarea.mjs";
15
+ import Empty from "../shared/empty.mjs";
16
16
  const FormSubdomainIssue = ({
17
17
  disabled,
18
18
  preview,
@@ -2,13 +2,13 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { request } from "@drawbridge/drawbridge-utils/fetch";
4
4
  import { useForm, Controller } from "react-hook-form";
5
- import yup, { resolver } from "./lib/yup";
6
- import Form from "../shared/form";
7
- import Button from "../shared/button";
8
- import Fieldset from "../shared/fieldset";
9
- import Error from "../shared/error";
10
- import Empty from "../shared/empty";
11
- import { components, validate } from "./fields";
5
+ import yup, { resolver } from "./lib/yup.mjs";
6
+ import Form from "../shared/form.mjs";
7
+ import Button from "../shared/button.mjs";
8
+ import Fieldset from "../shared/fieldset.mjs";
9
+ import Error from "../shared/error.mjs";
10
+ import Empty from "../shared/empty.mjs";
11
+ import { components, validate } from "./fields.mjs";
12
12
  const FormSubdomainPrize = ({
13
13
  disabled,
14
14
  preview,
@@ -2,22 +2,22 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fragment, useEffect, useMemo, useState } from "react";
4
4
  import { useForm, useWatch } from "react-hook-form";
5
- import yup, { resolver } from "./lib/yup";
5
+ import yup, { resolver } from "./lib/yup.mjs";
6
6
  import { cdnShopify } from "@drawbridge/drawbridge-utils/cdn";
7
7
  import { formatCurrency } from "@drawbridge/drawbridge-utils";
8
- import { FormSubdomainHeader } from "./form-subdomain-header";
8
+ import { FormSubdomainHeader } from "./form-subdomain-header.mjs";
9
9
  import Image from "next/image";
10
- import Product from "../product";
11
- import Empty from "../shared/empty";
12
- import Button from "../shared/button";
13
- import Overlay from "../shared/overlay";
14
- import Shop from "../icons/shop";
15
- import InputGroup from "../input-group";
16
- import InputNumber from "../input-number";
17
- import { backgroundStyle, headerStyle } from "../styles";
18
- import ChevronDown from "../icons/chevron-down";
19
- import ChevronUp from "../icons/chevron-up";
20
- import Warning from "../icons/warning";
10
+ import Product from "../product.mjs";
11
+ import Empty from "../shared/empty.mjs";
12
+ import Button from "../shared/button.mjs";
13
+ import Overlay from "../shared/overlay.mjs";
14
+ import Shop from "../icons/shop.mjs";
15
+ import InputGroup from "../input-group.mjs";
16
+ import InputNumber from "../input-number.mjs";
17
+ import { backgroundStyle, headerStyle } from "../styles.mjs";
18
+ import ChevronDown from "../icons/chevron-down.mjs";
19
+ import ChevronUp from "../icons/chevron-up.mjs";
20
+ import Warning from "../icons/warning.mjs";
21
21
  const FormSubdomainProduct = ({
22
22
  back,
23
23
  button,
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import CardProduct from "./product-tile";
3
+ import CardProduct from "./product-tile.mjs";
4
4
  const FormSubdomainShop = ({
5
5
  columns = 2,
6
6
  products = [],
@@ -5,23 +5,23 @@ import { useSearchParams } from "next/navigation";
5
5
  import { request } from "@drawbridge/drawbridge-utils/fetch";
6
6
  import { captureException } from "@drawbridge/drawbridge-telemetry/nextjs";
7
7
  import { useForm, Controller } from "react-hook-form";
8
- import yup, { resolver } from "./lib/yup";
9
- import { ageFor, ageGateSchema } from "./lib/age-gate";
8
+ import yup, { resolver } from "./lib/yup.mjs";
9
+ import { ageFor, ageGateSchema } from "./lib/age-gate.mjs";
10
10
  import { useGoogleReCaptcha } from "react-google-recaptcha-v3";
11
- import { assertRecaptcha } from "./lib/recaptcha";
12
- import { submissionEndpoint } from "./lib/url";
13
- import Form from "../shared/form";
14
- import Button from "../shared/button";
15
- import Fieldset from "../shared/fieldset";
16
- import { components, validate } from "./fields";
17
- import InputGroup from "../input-group";
18
- import Error from "../shared/error";
19
- import InputText from "../input-text";
20
- import { FormSubdomainHeader } from "./form-subdomain-header";
21
- import Loader from "../icons/loader";
22
- import Warning from "../icons/warning";
23
- import InputCheckbox from "../input-checkbox";
24
- import Advertisements from "./advertisements";
11
+ import { assertRecaptcha } from "./lib/recaptcha.mjs";
12
+ import { submissionEndpoint } from "./lib/url.mjs";
13
+ import Form from "../shared/form.mjs";
14
+ import Button from "../shared/button.mjs";
15
+ import Fieldset from "../shared/fieldset.mjs";
16
+ import { components, validate } from "./fields.mjs";
17
+ import InputGroup from "../input-group.mjs";
18
+ import Error from "../shared/error.mjs";
19
+ import InputText from "../input-text.mjs";
20
+ import { FormSubdomainHeader } from "./form-subdomain-header.mjs";
21
+ import Loader from "../icons/loader.mjs";
22
+ import Warning from "../icons/warning.mjs";
23
+ import InputCheckbox from "../input-checkbox.mjs";
24
+ import Advertisements from "./advertisements.mjs";
25
25
  import Link from "next/link";
26
26
  const appendPreview = (endpoint, token) => {
27
27
  if (!token) return endpoint;
@@ -2,8 +2,8 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import Image from "next/image";
4
4
  import { formatCurrency } from "@drawbridge/drawbridge-utils";
5
- import Button from "../shared/button";
6
- import { headerStyle } from "../styles";
5
+ import Button from "../shared/button.mjs";
6
+ import { headerStyle } from "../styles.mjs";
7
7
  const CardProduct = ({
8
8
  title,
9
9
  onClick,
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Fragment } from "react";
3
3
  import Image from "next/image";
4
4
  import { cdnSrc } from "@drawbridge/drawbridge-utils/cdn";
5
- import { buttonStyle } from "../styles";
5
+ import { buttonStyle } from "../styles.mjs";
6
6
  import {
7
7
  EmailIcon,
8
8
  EmailShareButton,
@@ -3,22 +3,22 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fragment, useCallback, useEffect, useMemo, useState } from "react";
4
4
  import dynamic from "next/dynamic";
5
5
  import { useSearchParams } from "next/navigation";
6
- import ProviderFont from "../provider-font";
7
- import TemplateSubdomain from "./template-subdomain";
8
- import PoweredBy from "../icons/powered-by";
9
- import Menu from "../icons/menu";
10
- import Shop from "../icons/shop";
11
- import Loader from "../icons/loader";
12
- import Times from "../icons/times";
13
- import Overlay from "../shared/overlay";
14
- import Button from "../shared/button";
6
+ import ProviderFont from "../provider-font.mjs";
7
+ import TemplateSubdomain from "./template-subdomain.mjs";
8
+ import PoweredBy from "../icons/powered-by.mjs";
9
+ import Menu from "../icons/menu.mjs";
10
+ import Shop from "../icons/shop.mjs";
11
+ import Loader from "../icons/loader.mjs";
12
+ import Times from "../icons/times.mjs";
13
+ import Overlay from "../shared/overlay.mjs";
14
+ import Button from "../shared/button.mjs";
15
15
  import Link from "next/link";
16
16
  import { request } from "@drawbridge/drawbridge-utils/fetch";
17
17
  import { constants as shared } from "@drawbridge/drawbridge-utils";
18
- import constants from "./lib/constants";
19
- import { checkout as checkoutKit, ensureCheckoutKit } from "./lib/checkout-kit";
20
- import { useTracking } from "./provider-analytics";
21
- const TemplateModal = dynamic(() => import("./template-modal"), { ssr: false });
18
+ import constants from "./lib/constants.mjs";
19
+ import { checkout as checkoutKit, ensureCheckoutKit } from "./lib/checkout-kit.mjs";
20
+ import { useTracking } from "./provider-analytics.mjs";
21
+ const TemplateModal = dynamic(() => import("./template-modal.mjs"), { ssr: false });
22
22
  const TemplateLayout = ({
23
23
  params,
24
24
  result,
@@ -102,7 +102,7 @@ const TemplateLayout = ({
102
102
  () => {
103
103
  if (typeof window === "undefined") return;
104
104
  let timer;
105
- const load = () => import("./template-modal").catch(() => {
105
+ const load = () => import("./template-modal.mjs").catch(() => {
106
106
  });
107
107
  const afterLoad = () => {
108
108
  timer = setTimeout(load, 3e3);
@@ -2,21 +2,21 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fragment, useCallback } from "react";
4
4
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
5
- import FormSubdomain, { FormSubdomainMessage, FormSubdomainSubmission, FormSubdomainHeader } from "./form-subdomain";
6
- import FormSubdomainIssue from "./form-subdomain-issue";
7
- import FormSubdomainPrize from "./form-subdomain-prize";
8
- import ProviderRecaptcha from "../shared/provider-recaptcha";
9
- import { FormSubdomainCart, FormSubdomainProduct } from "./form-subdomain-shop-modal";
10
- import TemplateSubdomainLink from "./template-subdomain-link";
11
- import CopyToClipboard from "../shared/copy-to-clipboard";
12
- import ShareButton from "./share-button";
13
- import Tabs from "../shared/tabs";
14
- import Empty from "../shared/empty";
15
- import CardPrize from "../shared/card-prize";
16
- import ArrowRight from "../icons/arrow-right";
17
- import Flag from "../icons/flag";
18
- import Link from "../icons/link";
19
- import Warning from "../icons/warning";
5
+ import FormSubdomain, { FormSubdomainMessage, FormSubdomainSubmission, FormSubdomainHeader } from "./form-subdomain.mjs";
6
+ import FormSubdomainIssue from "./form-subdomain-issue.mjs";
7
+ import FormSubdomainPrize from "./form-subdomain-prize.mjs";
8
+ import ProviderRecaptcha from "../shared/provider-recaptcha.mjs";
9
+ import { FormSubdomainCart, FormSubdomainProduct } from "./form-subdomain-shop-modal.mjs";
10
+ import TemplateSubdomainLink from "./template-subdomain-link.mjs";
11
+ import CopyToClipboard from "../shared/copy-to-clipboard.mjs";
12
+ import ShareButton from "./share-button.mjs";
13
+ import Tabs from "../shared/tabs.mjs";
14
+ import Empty from "../shared/empty.mjs";
15
+ import CardPrize from "../shared/card-prize.mjs";
16
+ import ArrowRight from "../icons/arrow-right.mjs";
17
+ import Flag from "../icons/flag.mjs";
18
+ import Link from "../icons/link.mjs";
19
+ import Warning from "../icons/warning.mjs";
20
20
  const TemplateModal = ({
21
21
  buttons,
22
22
  cart,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { capitalize } from "@drawbridge/drawbridge-utils";
3
- import LogoMark from "../icons/logo-mark";
3
+ import LogoMark from "../icons/logo-mark.mjs";
4
4
  const TemplateNotFound = ({
5
5
  message = "Nothing found"
6
6
  }) => {
@@ -3,11 +3,11 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fragment, useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
4
4
  import Image from "next/image";
5
5
  import { cdnSrc } from "@drawbridge/drawbridge-utils/cdn";
6
- import Video from "../video";
7
- import Button from "../shared/button";
8
- import Loader from "../icons/loader";
9
- import Warning from "../icons/warning";
10
- import { backgroundStyle } from "../styles";
6
+ import Video from "../video.mjs";
7
+ import Button from "../shared/button.mjs";
8
+ import Loader from "../icons/loader.mjs";
9
+ import Warning from "../icons/warning.mjs";
10
+ import { backgroundStyle } from "../styles.mjs";
11
11
  const ms = 1e4;
12
12
  const GalleryImage = ({
13
13
  alt,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import Image from "next/image";
4
- import Button from "../shared/button";
4
+ import Button from "../shared/button.mjs";
5
5
  const TemplateSubdomainLink = ({
6
6
  element: Element,
7
7
  className = "py-4 pr-3",
@@ -2,15 +2,15 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fragment, useEffect, useMemo, useState } from "react";
4
4
  import { cdnSrc } from "@drawbridge/drawbridge-utils/cdn";
5
- import { icons } from "../icons/social";
5
+ import { icons } from "../icons/social.mjs";
6
6
  import Link from "next/link";
7
- import TemplateSubdomainGallery from "./template-subdomain-gallery";
8
- import TemplateSubdomainLink from "./template-subdomain-link";
9
- import { safeHref } from "./lib/url";
10
- import Countdown from "./countdown";
11
- import FormSubdomainShop from "./form-subdomain-shop";
7
+ import TemplateSubdomainGallery from "./template-subdomain-gallery.mjs";
8
+ import TemplateSubdomainLink from "./template-subdomain-link.mjs";
9
+ import { safeHref } from "./lib/url.mjs";
10
+ import Countdown from "./countdown.mjs";
11
+ import FormSubdomainShop from "./form-subdomain-shop.mjs";
12
12
  import Image from "next/image";
13
- import SubdomainContent from "./subdomain-content";
13
+ import SubdomainContent from "./subdomain-content.mjs";
14
14
  const TemplateSubdomain = ({
15
15
  buttons,
16
16
  cart,
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/react";
3
- import Badge from "../shared/badge";
4
- import Button from "../shared/button";
5
- import ChevronDown from "../icons/chevron-down";
6
- import ChevronUp from "../icons/chevron-up";
7
- import Warning from "../icons/warning";
3
+ import Badge from "../shared/badge.mjs";
4
+ import Button from "../shared/button.mjs";
5
+ import ChevronDown from "../icons/chevron-down.mjs";
6
+ import ChevronUp from "../icons/chevron-up.mjs";
7
+ import Warning from "../icons/warning.mjs";
8
8
  const Accordion = ({
9
9
  badge,
10
10
  className,
@@ -2,17 +2,17 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import qs from "qs";
4
4
  import { request } from "@drawbridge/drawbridge-utils/fetch";
5
- import CopyToClipboard from "../shared/copy-to-clipboard";
6
- import Empty from "../shared/empty";
7
- import Copy from "../icons/copy";
8
- import ArrowRight from "../icons/arrow-right";
9
- import Plus from "../icons/plus";
10
- import Trash from "../icons/trash";
11
- import Chart from "../icons/chart";
12
- import External from "../icons/external";
13
- import Badge from "../shared/badge";
14
- import Button from "../shared/button";
15
- import Link from "./link";
5
+ import CopyToClipboard from "../shared/copy-to-clipboard.mjs";
6
+ import Empty from "../shared/empty.mjs";
7
+ import Copy from "../icons/copy.mjs";
8
+ import ArrowRight from "../icons/arrow-right.mjs";
9
+ import Plus from "../icons/plus.mjs";
10
+ import Trash from "../icons/trash.mjs";
11
+ import Chart from "../icons/chart.mjs";
12
+ import External from "../icons/external.mjs";
13
+ import Badge from "../shared/badge.mjs";
14
+ import Button from "../shared/button.mjs";
15
+ import Link from "./link.mjs";
16
16
  const CardAffiliate = ({
17
17
  affiliate,
18
18
  campaign,
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import Image from "next/image";
3
- import Link from "./link";
4
- import Button from "../shared/button";
5
- import Badge from "../shared/badge";
6
- import ArrowRight from "../icons/arrow-right";
7
- import Error from "../shared/error";
3
+ import Link from "./link.mjs";
4
+ import Button from "../shared/button.mjs";
5
+ import Badge from "../shared/badge.mjs";
6
+ import ArrowRight from "../icons/arrow-right.mjs";
7
+ import Error from "../shared/error.mjs";
8
8
  import { capitalize } from "@drawbridge/drawbridge-utils";
9
9
  const badge = (status) => ({
10
10
  label: status ? capitalize(status) : "Not connected",
@@ -1,12 +1,12 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Fragment } from "react";
3
- import External from "../icons/external";
4
- import Plus from "../icons/plus";
5
- import Trash from "../icons/trash";
6
- import InputSwitch from "../shared/input-switch";
3
+ import External from "../icons/external.mjs";
4
+ import Plus from "../icons/plus.mjs";
5
+ import Trash from "../icons/trash.mjs";
6
+ import InputSwitch from "../shared/input-switch.mjs";
7
7
  import Image from "next/image";
8
- import Link from "./link";
9
- import Button from "../shared/button";
8
+ import Link from "./link.mjs";
9
+ import Button from "../shared/button.mjs";
10
10
  const CardIntegration = ({
11
11
  description,
12
12
  enabled,
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { formatNumber } from "@drawbridge/drawbridge-utils";
3
- import ArrowRight from "../icons/arrow-right";
4
- import Lock from "../icons/lock";
5
- import Badge from "../shared/badge";
3
+ import ArrowRight from "../icons/arrow-right.mjs";
4
+ import Lock from "../icons/lock.mjs";
5
+ import Badge from "../shared/badge.mjs";
6
6
  const CardMetric = ({
7
7
  className,
8
8
  description,
@@ -2,10 +2,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { formatDateString } from "@drawbridge/drawbridge-utils";
4
4
  import { request } from "@drawbridge/drawbridge-utils/fetch";
5
- import { formatUserName } from "../shared/lib/helpers";
6
- import Avatar from "./avatar";
7
- import Button from "../shared/button";
8
- import Trash from "../icons/trash";
5
+ import { formatUserName } from "../shared/lib/helpers.mjs";
6
+ import Avatar from "./avatar.mjs";
7
+ import Button from "../shared/button.mjs";
8
+ import Trash from "../icons/trash.mjs";
9
9
  const CardNote = ({
10
10
  content,
11
11
  createdAt,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { formatCurrency, formatDateString, formatNumber } from "@drawbridge/drawbridge-utils";
3
- import CardDataItem from "./card-data-item";
3
+ import CardDataItem from "./card-data-item.mjs";
4
4
  const className = "p-3 bg-white rounded shadow-[0_1px_3px_0_rgb(0_0_0/0.1),0_1px_2px_-1px_rgb(0_0_0/0.1)]";
5
5
  const CardOrder = ({
6
6
  currency,
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useQueryClient } from "@tanstack/react-query";
3
3
  import { bytesToGB, bytesToMB, formatNumber, gigabyte } from "@drawbridge/drawbridge-utils";
4
- import Link from "./link";
5
- import Button from "../shared/button";
6
- import { useModal } from "./lib/hooks";
7
- import Tabs from "../shared/tabs";
4
+ import Link from "./link.mjs";
5
+ import Button from "../shared/button.mjs";
6
+ import { useModal } from "./lib/hooks.mjs";
7
+ import Tabs from "../shared/tabs.mjs";
8
8
  const removal = (amount, key) => {
9
9
  if (key === "storage") {
10
10
  return amount < gigabyte ? formatNumber(bytesToMB(amount), 2) + " MB of storage" : formatNumber(bytesToGB(amount), 2) + " GB of storage";
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { formatLast4 } from "../shared/lib/helpers";
2
+ import { formatLast4 } from "../shared/lib/helpers.mjs";
3
3
  const CardPaymentMethod = ({
4
4
  card: {
5
5
  brand,
@@ -1,11 +1,11 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/react";
3
3
  import { formatDateString, formatNumber } from "@drawbridge/drawbridge-utils";
4
- import Badge from "../shared/badge";
5
- import Check from "../icons/check";
6
- import ChevronDown from "../icons/chevron-down";
7
- import ChevronUp from "../icons/chevron-up";
8
- import Button from "../shared/button";
4
+ import Badge from "../shared/badge.mjs";
5
+ import Check from "../icons/check.mjs";
6
+ import ChevronDown from "../icons/chevron-down.mjs";
7
+ import ChevronUp from "../icons/chevron-up.mjs";
8
+ import Button from "../shared/button.mjs";
9
9
  const CardPlan = ({
10
10
  canceledAt,
11
11
  currency,
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import CardAsset from "../shared/card-asset";
2
+ import CardAsset from "../shared/card-asset.mjs";
3
3
  const CardProduct = ({
4
4
  image,
5
5
  title,
@@ -2,8 +2,8 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from "react";
4
4
  import { request } from "@drawbridge/drawbridge-utils/fetch";
5
- import Loader from "../icons/loader";
6
- import Warning from "../icons/warning";
5
+ import Loader from "../icons/loader.mjs";
6
+ import Warning from "../icons/warning.mjs";
7
7
  const ENDPOINT = "/notification/spam";
8
8
  const DEBOUNCE = 2e3;
9
9
  const RATING = 5;
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import Badge from "../shared/badge";
3
- import { TableActionsCell } from "./table";
2
+ import Badge from "../shared/badge.mjs";
3
+ import { TableActionsCell } from "./table.mjs";
4
4
  const RowBadge = ({ badge }) => /* @__PURE__ */ jsx(
5
5
  Badge,
6
6
  {
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useQueryClient } from "@tanstack/react-query";
3
- import Button from "../shared/button";
4
- import Link from "./link";
5
- import { useModal } from "./lib/hooks";
3
+ import Button from "../shared/button.mjs";
4
+ import Link from "./link.mjs";
5
+ import { useModal } from "./lib/hooks.mjs";
6
6
  const CardTask = ({
7
7
  className,
8
8
  message,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { cdnSrc } from "@drawbridge/drawbridge-utils/cdn";
3
- import ProviderFont from "../provider-font";
3
+ import ProviderFont from "../provider-font.mjs";
4
4
  const CardTemplatePage = ({
5
5
  description,
6
6
  headline,