@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,17 +1,17 @@
1
- import Instagram from "./instagram";
2
- import Facebook from "./facebook";
3
- import TikTok from "./tiktok";
4
- import YouTube from "./youtube";
5
- import X from "./x";
6
- import LinkedIn from "./linkedin";
7
- import Pinterest from "./pinterest";
8
- import Threads from "./threads";
9
- import Snapchat from "./snapchat";
10
- import WhatsApp from "./whatsapp";
11
- import Spotify from "./spotify";
12
- import Discord from "./discord";
13
- import Twitch from "./twitch";
14
- import GitHub from "./github";
1
+ import Instagram from "./instagram.mjs";
2
+ import Facebook from "./facebook.mjs";
3
+ import TikTok from "./tiktok.mjs";
4
+ import YouTube from "./youtube.mjs";
5
+ import X from "./x.mjs";
6
+ import LinkedIn from "./linkedin.mjs";
7
+ import Pinterest from "./pinterest.mjs";
8
+ import Threads from "./threads.mjs";
9
+ import Snapchat from "./snapchat.mjs";
10
+ import WhatsApp from "./whatsapp.mjs";
11
+ import Spotify from "./spotify.mjs";
12
+ import Discord from "./discord.mjs";
13
+ import Twitch from "./twitch.mjs";
14
+ import GitHub from "./github.mjs";
15
15
  const icons = {
16
16
  discord: Discord,
17
17
  facebook: Facebook,
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import Check from "./icons/check";
3
- import Button from "./shared/button";
4
- import { inputCheckboxStyle, textStyle } from "./styles";
2
+ import Check from "./icons/check.mjs";
3
+ import Button from "./shared/button.mjs";
4
+ import { inputCheckboxStyle, textStyle } from "./styles.mjs";
5
5
  const InputCheckbox = ({
6
6
  className,
7
7
  label,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { cloneElement, isValidElement, useId } from "react";
4
- import Error from "./shared/error";
5
- import { inputStyle, textStyle } from "./styles";
4
+ import Error from "./shared/error.mjs";
5
+ import { inputStyle, textStyle } from "./styles.mjs";
6
6
  const Addon = ({ children }) => /* @__PURE__ */ jsx(
7
7
  "span",
8
8
  {
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import InputGroup from "./input-group";
3
- import InputText from "./input-text";
2
+ import InputGroup from "./input-group.mjs";
3
+ import InputText from "./input-text.mjs";
4
4
  const InputName = ({
5
5
  error,
6
6
  onChange,
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import Minus from "./icons/minus";
3
- import Plus from "./icons/plus";
4
- import Button from "./shared/button";
5
- import { inputStyle } from "./styles";
2
+ import Minus from "./icons/minus.mjs";
3
+ import Plus from "./icons/plus.mjs";
4
+ import Button from "./shared/button.mjs";
5
+ import { inputStyle } from "./styles.mjs";
6
6
  import { useCallback, useEffect, useState } from "react";
7
7
  const accepts = (raw, decimal) => (decimal ? /^-?\d*\.?\d*$/ : /^-?\d*$/).test(raw);
8
8
  const emit = (raw) => {
@@ -3,8 +3,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from "react";
4
4
  import Input from "react-phone-number-input/input";
5
5
  import { detectCountry, isValid } from "@drawbridge/drawbridge-utils/phone";
6
- import ChevronDown from "./icons/chevron-down";
7
- import { inputPhoneStyle } from "./styles";
6
+ import ChevronDown from "./icons/chevron-down.mjs";
7
+ import { inputPhoneStyle } from "./styles.mjs";
8
8
  const isValidPhone = (number = "", country = "") => {
9
9
  const valid = isValid(number, country);
10
10
  return valid;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from "react";
4
- import ChevronDown from "./icons/chevron-down";
5
- import { inputStyle, textStyle } from "./styles";
4
+ import ChevronDown from "./icons/chevron-down.mjs";
5
+ import { inputStyle, textStyle } from "./styles.mjs";
6
6
  const InputSelect = ({
7
7
  onChange,
8
8
  options = [],
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { inputStyle } from "./styles";
2
+ import { inputStyle } from "./styles.mjs";
3
3
  const InputText = ({
4
4
  className,
5
5
  max,
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { inputStyle } from "./styles";
2
+ import { inputStyle } from "./styles.mjs";
3
3
  const InputTextarea = ({
4
4
  className,
5
5
  max,
package/dist/product.mjs CHANGED
@@ -4,12 +4,12 @@ import { useEffect, useMemo, useState } from "react";
4
4
  import useEmblaCarousel from "embla-carousel-react";
5
5
  import { cdnShopify } from "@drawbridge/drawbridge-utils/cdn";
6
6
  import { formatCurrency } from "@drawbridge/drawbridge-utils";
7
- import InputGroup from "./input-group";
8
- import InputSelect from "./input-select";
9
- import WrapperGradient from "./wrapper-gradient";
10
- import Loader from "./icons/loader";
11
- import Button from "./shared/button";
12
- import { buttonStyle, headerStyle, inputStyle } from "./styles";
7
+ import InputGroup from "./input-group.mjs";
8
+ import InputSelect from "./input-select.mjs";
9
+ import WrapperGradient from "./wrapper-gradient.mjs";
10
+ import Loader from "./icons/loader.mjs";
11
+ import Button from "./shared/button.mjs";
12
+ import { buttonStyle, headerStyle, inputStyle } from "./styles.mjs";
13
13
  const DefaultImage = ({ alt, className, src, style }) => /* @__PURE__ */ jsx(
14
14
  "img",
15
15
  {
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Fragment, memo, useMemo } from "react";
3
- import { toFontFamily, toFontStyle, toFontWeight } from "./styles";
3
+ import { toFontFamily, toFontStyle, toFontWeight } from "./styles.mjs";
4
4
  const defaults = {
5
5
  family: "Roboto Flex",
6
6
  transform: "none"
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import Button from "./button";
2
+ import Button from "./button.mjs";
3
3
  const Badge = ({
4
4
  children,
5
5
  className = null,
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, Fragment } from "react";
3
- import Loader from "../icons/loader";
4
- import { buttonStyle } from "../styles";
3
+ import Loader from "../icons/loader.mjs";
4
+ import { buttonStyle } from "../styles.mjs";
5
5
  const indicators = {
6
6
  ai: "bg-purple-dark",
7
7
  error: "bg-red-dark",
@@ -3,9 +3,9 @@ import { Fragment } from "react";
3
3
  import { cdnShopify } from "@drawbridge/drawbridge-utils/cdn";
4
4
  import { cdnSrc } from "@drawbridge/drawbridge-utils/cdn";
5
5
  import Image from "next/image";
6
- import Document from "../icons/document";
7
- import ImageIcon from "../icons/image";
8
- import Play from "../icons/play";
6
+ import Document from "../icons/document.mjs";
7
+ import ImageIcon from "../icons/image.mjs";
8
+ import Play from "../icons/play.mjs";
9
9
  const CardAsset = ({
10
10
  asset,
11
11
  className = "w-7 h-7",
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { formatCurrency } from "@drawbridge/drawbridge-utils";
3
- import ArrowRight from "../icons/arrow-right";
4
- import { textStyle } from "../styles";
5
- import Button from "./button";
6
- import CardAsset from "./card-asset";
3
+ import ArrowRight from "../icons/arrow-right.mjs";
4
+ import { textStyle } from "../styles.mjs";
5
+ import Button from "./button.mjs";
6
+ import CardAsset from "./card-asset.mjs";
7
7
  const CardPrize = ({
8
8
  className,
9
9
  currency,
@@ -3,8 +3,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from "react";
4
4
  import useEmblaCarousel from "embla-carousel-react";
5
5
  import Fade from "embla-carousel-fade";
6
- import Button from "./button";
7
- import { dotStyle } from "../styles";
6
+ import Button from "./button.mjs";
7
+ import { dotStyle } from "../styles.mjs";
8
8
  const justifies = {
9
9
  center: "justify-center",
10
10
  end: "justify-end",
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useState } from "react";
3
- import { iconLabel } from "./lib/icon-labels";
4
- import Check from "../icons/check";
5
- import Copy from "../icons/copy";
6
- import Button from "./button";
3
+ import { iconLabel } from "./lib/icon-labels.mjs";
4
+ import Check from "../icons/check.mjs";
5
+ import Copy from "../icons/copy.mjs";
6
+ import Button from "./button.mjs";
7
7
  const CopyToClipboard = ({
8
8
  children,
9
9
  // Layout only ( gap, justify, padding, border, font ): it goes on the row inside the Button.
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { borderStyle, textStyle } from "../styles";
2
+ import { borderStyle, textStyle } from "../styles.mjs";
3
3
  const variants = {
4
4
  primary: "bg-white border border-gray",
5
5
  secondary: "bg-gray-light border border-gray"
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Fragment } from "react";
3
- import Warning from "../icons/warning";
3
+ import Warning from "../icons/warning.mjs";
4
4
  const sizes = {
5
5
  default: { className: "flex items-center justify-start space-x-2 py-1 px-1.5 rounded text-sm", icon: "w-4 h-4" },
6
6
  small: { className: "flex w-fit max-w-full items-center justify-start gap-1 px-[5px] rounded-[3px] text-xs", icon: "w-3 h-3" }
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { borderStyle, textStyle } from "../styles";
2
+ import { borderStyle, textStyle } from "../styles.mjs";
3
3
  const Fieldset = ({
4
4
  button,
5
5
  children,
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
- import InputCheckbox from "../input-checkbox";
4
- import { backgroundStyle, borderStyle } from "../styles";
5
- import WrapperGradient from "../wrapper-gradient";
3
+ import InputCheckbox from "../input-checkbox.mjs";
4
+ import { backgroundStyle, borderStyle } from "../styles.mjs";
5
+ import WrapperGradient from "../wrapper-gradient.mjs";
6
6
  const InputCheckboxList = ({
7
7
  className,
8
8
  items = [],
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { backgroundStyle, borderStyle, buttonStyle, textStyle } from "../styles";
2
+ import { backgroundStyle, borderStyle, buttonStyle, textStyle } from "../styles.mjs";
3
3
  const className = "h-6 w-6 border border-black bg-gray-light";
4
4
  const control = {
5
5
  className,
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Switch } from "@headlessui/react";
3
- import Button from "./button";
4
- import { buttonStyle, inputStyle, textStyle } from "../styles";
3
+ import Button from "./button.mjs";
4
+ import { buttonStyle, inputStyle, textStyle } from "../styles.mjs";
5
5
  const InputSwitch = ({
6
6
  disabled,
7
7
  helper,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { sanitizeHttps } from "@drawbridge/drawbridge-utils/sanitize";
3
- import InputText from "../input-text";
3
+ import InputText from "../input-text.mjs";
4
4
  const InputUrl = ({ onChange, value, ...rest }) => /* @__PURE__ */ jsx(
5
5
  InputText,
6
6
  {
@@ -1,7 +1,7 @@
1
1
  import { allowedUploadTypes, maximumUploadBytes } from "@drawbridge/drawbridge-utils/upload";
2
2
  import { capitalize, formatNumber, megabyte } from "@drawbridge/drawbridge-utils";
3
- import Lock from "../../icons/lock";
4
- import Warning from "../../icons/warning";
3
+ import Lock from "../../icons/lock.mjs";
4
+ import Warning from "../../icons/warning.mjs";
5
5
  const advertisementPreview = (values, options) => {
6
6
  var _a;
7
7
  return {
@@ -1,10 +1,10 @@
1
- import Copy from "../../icons/copy";
2
- import Download from "../../icons/download";
3
- import Filter from "../../icons/filter";
4
- import Lock from "../../icons/lock";
5
- import Pencil from "../../icons/pencil";
6
- import Plus from "../../icons/plus";
7
- import Trash from "../../icons/trash";
1
+ import Copy from "../../icons/copy.mjs";
2
+ import Download from "../../icons/download.mjs";
3
+ import Filter from "../../icons/filter.mjs";
4
+ import Lock from "../../icons/lock.mjs";
5
+ import Pencil from "../../icons/pencil.mjs";
6
+ import Plus from "../../icons/plus.mjs";
7
+ import Trash from "../../icons/trash.mjs";
8
8
  const labels = /* @__PURE__ */ new Map([
9
9
  [Copy, "Copy"],
10
10
  [Download, "Download"],
@@ -1,5 +1,5 @@
1
1
  import { yupResolver } from "@hookform/resolvers/yup";
2
- import { fileSizeLimits } from "./helpers";
2
+ import { fileSizeLimits } from "./helpers.mjs";
3
3
  import * as yup from "@drawbridge/drawbridge-utils/yup";
4
4
  const resolver = yupResolver;
5
5
  yup.addMethod(yup.mixed, "file", function(limits) {
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import LogoMark from "../icons/logo-mark";
3
- import Loader from "../icons/loader";
2
+ import LogoMark from "../icons/logo-mark.mjs";
3
+ import Loader from "../icons/loader.mjs";
4
4
  const LogoLoader = () => /* @__PURE__ */ jsx(
5
5
  "div",
6
6
  {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { Transition } from "@headlessui/react";
4
- import Button from "./button";
5
- import { textStyle } from "../styles";
4
+ import Button from "./button.mjs";
5
+ import { textStyle } from "../styles.mjs";
6
6
  const Overlay = ({
7
7
  className = "z-40 fixed inset-0",
8
8
  // linger: the tint stays 300ms on leave, so the panel above animates out first.
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useState } from "react";
4
4
  import { closestCenter, DndContext, DragOverlay, KeyboardSensor, PointerSensor, useSensor, useSensors } from "@dnd-kit/core";
5
5
  import { arrayMove, SortableContext, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
6
- import Drag from "../icons/drag";
6
+ import Drag from "../icons/drag.mjs";
7
7
  import { CSS } from "@dnd-kit/utilities";
8
8
  const SortableItemContext = ({
9
9
  as: Element,
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { Tab, TabGroup, TabList, TabPanel, TabPanels } from "@headlessui/react";
4
- import { buttonStyle } from "../styles";
5
- import Badge from "./badge";
6
- import Button from "./button";
4
+ import { buttonStyle } from "../styles.mjs";
5
+ import Badge from "./badge.mjs";
6
+ import Button from "./button.mjs";
7
7
  const Tabs = ({
8
8
  active = 0,
9
9
  list = [],
package/dist/video.mjs CHANGED
@@ -2,8 +2,8 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import dynamic from "next/dynamic";
4
4
  import { Fragment, useEffect, useRef, useState } from "react";
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 ReactPlayer = dynamic(
8
8
  () => import("react-player/lazy"),
9
9
  {