@drawbridge/components 0.1.0 → 0.1.2
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/dist/advertisement.mjs +4 -4
- package/dist/bridge/advertisements.mjs +3 -3
- package/dist/bridge/fields.mjs +7 -7
- package/dist/bridge/form-subdomain-embed.mjs +9 -9
- package/dist/bridge/form-subdomain-header.mjs +3 -3
- package/dist/bridge/form-subdomain-issue.mjs +10 -10
- package/dist/bridge/form-subdomain-prize.mjs +7 -7
- package/dist/bridge/form-subdomain-shop-modal.mjs +13 -13
- package/dist/bridge/form-subdomain-shop.mjs +1 -1
- package/dist/bridge/form-subdomain.mjs +16 -16
- package/dist/bridge/product-tile.mjs +2 -2
- package/dist/bridge/share-button.mjs +1 -1
- package/dist/bridge/template-layout.mjs +14 -14
- package/dist/bridge/template-modal.mjs +15 -15
- package/dist/bridge/template-not-found.mjs +1 -1
- package/dist/bridge/template-subdomain-gallery.mjs +5 -5
- package/dist/bridge/template-subdomain-link.mjs +1 -1
- package/dist/bridge/template-subdomain.mjs +7 -7
- package/dist/dashboard/accordion.mjs +5 -5
- package/dist/dashboard/card-affiliate.mjs +11 -11
- package/dist/dashboard/card-connection.mjs +5 -5
- package/dist/dashboard/card-integration.mjs +6 -6
- package/dist/dashboard/card-metric.mjs +3 -3
- package/dist/dashboard/card-note.mjs +4 -4
- package/dist/dashboard/card-order.mjs +1 -1
- package/dist/dashboard/card-overage.mjs +4 -4
- package/dist/dashboard/card-payment-method.mjs +1 -1
- package/dist/dashboard/card-plan.mjs +5 -5
- package/dist/dashboard/card-product.mjs +1 -1
- package/dist/dashboard/card-score.mjs +2 -2
- package/dist/dashboard/card-setting.mjs +2 -2
- package/dist/dashboard/card-task.mjs +3 -3
- package/dist/dashboard/card-template.mjs +1 -1
- package/dist/dashboard/card-tile.mjs +7 -7
- package/dist/dashboard/card-utm.mjs +4 -4
- package/dist/dashboard/carousel-tiles.mjs +2 -2
- package/dist/dashboard/code-formatter.mjs +2 -2
- package/dist/dashboard/drawer-subscription.mjs +14 -14
- package/dist/dashboard/drawer.mjs +4 -4
- package/dist/dashboard/dropdown.mjs +4 -4
- package/dist/dashboard/form-action.mjs +4 -4
- package/dist/dashboard/form-address.mjs +6 -6
- package/dist/dashboard/form-admin-campaign.mjs +8 -8
- package/dist/dashboard/form-admin-invoice-refund.mjs +8 -8
- package/dist/dashboard/form-admin-oauth.mjs +11 -11
- package/dist/dashboard/form-admin-organization.mjs +8 -8
- package/dist/dashboard/form-admin-provider.mjs +10 -10
- package/dist/dashboard/form-admin-referrer.mjs +7 -7
- package/dist/dashboard/form-admin-subscription-custom.mjs +11 -11
- package/dist/dashboard/form-admin-template.mjs +11 -11
- package/dist/dashboard/form-admin-user-credit.mjs +7 -7
- package/dist/dashboard/form-admin-user-permissions.mjs +7 -7
- package/dist/dashboard/form-admin-user-status.mjs +7 -7
- package/dist/dashboard/form-admin-utm.mjs +12 -12
- package/dist/dashboard/form-ai.mjs +16 -16
- package/dist/dashboard/form-auth.mjs +11 -11
- package/dist/dashboard/form-credit.mjs +1 -1
- package/dist/dashboard/form-file-upload.mjs +14 -14
- package/dist/dashboard/form-file.mjs +11 -11
- package/dist/dashboard/form-filters-analytics.mjs +9 -9
- package/dist/dashboard/form-filters.mjs +9 -9
- package/dist/dashboard/form-note.mjs +7 -7
- package/dist/dashboard/form-notification.mjs +5 -5
- package/dist/dashboard/form-organization-affiliate.mjs +8 -8
- package/dist/dashboard/form-organization-brand.mjs +9 -9
- package/dist/dashboard/form-organization-campaign-advertisement.mjs +14 -14
- package/dist/dashboard/form-organization-campaign-agreement.mjs +11 -11
- package/dist/dashboard/form-organization-campaign-draw.mjs +12 -12
- package/dist/dashboard/form-organization-campaign-field-email.mjs +10 -10
- package/dist/dashboard/form-organization-campaign-field-name.mjs +7 -7
- package/dist/dashboard/form-organization-campaign-field-number.mjs +8 -8
- package/dist/dashboard/form-organization-campaign-field-phone.mjs +9 -9
- package/dist/dashboard/form-organization-campaign-field-select.mjs +9 -9
- package/dist/dashboard/form-organization-campaign-field-text.mjs +8 -8
- package/dist/dashboard/form-organization-campaign-field-textarea.mjs +8 -8
- package/dist/dashboard/form-organization-campaign-integration-age.mjs +8 -8
- package/dist/dashboard/form-organization-campaign-integration-enable.mjs +5 -5
- package/dist/dashboard/form-organization-campaign-integration-geocode.mjs +9 -9
- package/dist/dashboard/form-organization-campaign-integration-gtm.mjs +8 -8
- package/dist/dashboard/form-organization-campaign-lead.mjs +7 -7
- package/dist/dashboard/form-organization-campaign-link.mjs +11 -11
- package/dist/dashboard/form-organization-campaign-page-affiliates.mjs +6 -6
- package/dist/dashboard/form-organization-campaign-page-embed.mjs +7 -7
- package/dist/dashboard/form-organization-campaign-page-preview.mjs +8 -8
- package/dist/dashboard/form-organization-campaign-page-qr.mjs +14 -14
- package/dist/dashboard/form-organization-campaign-page-share.mjs +15 -15
- package/dist/dashboard/form-organization-campaign-page-slug.mjs +8 -8
- package/dist/dashboard/form-organization-campaign-page.mjs +10 -10
- package/dist/dashboard/form-organization-campaign-prize-edit.mjs +16 -16
- package/dist/dashboard/form-organization-campaign-prize.mjs +7 -7
- package/dist/dashboard/form-organization-campaign-range.mjs +10 -10
- package/dist/dashboard/form-organization-campaign.mjs +13 -13
- package/dist/dashboard/form-organization-connection.mjs +14 -14
- package/dist/dashboard/form-organization-export.mjs +9 -9
- package/dist/dashboard/form-organization-file-frame.mjs +9 -9
- package/dist/dashboard/form-organization-file.mjs +11 -11
- package/dist/dashboard/form-organization-identity.mjs +15 -15
- package/dist/dashboard/form-organization-member.mjs +9 -9
- package/dist/dashboard/form-organization-segment.mjs +12 -12
- package/dist/dashboard/form-organization-workflow.mjs +18 -18
- package/dist/dashboard/form-organization.mjs +11 -11
- package/dist/dashboard/form-otc.mjs +7 -7
- package/dist/dashboard/form-payment-methods.mjs +7 -7
- package/dist/dashboard/form-profile.mjs +7 -7
- package/dist/dashboard/form-stripe-promotion.mjs +7 -7
- package/dist/dashboard/form-stripe.mjs +5 -5
- package/dist/dashboard/form-verify-prize.mjs +13 -13
- package/dist/dashboard/google.mjs +5 -5
- package/dist/dashboard/guard-navigation.mjs +3 -3
- package/dist/dashboard/guide.mjs +4 -4
- package/dist/dashboard/iframe.mjs +1 -1
- package/dist/dashboard/input-address-saved.mjs +7 -7
- package/dist/dashboard/input-array.mjs +5 -5
- package/dist/dashboard/input-color.mjs +2 -2
- package/dist/dashboard/input-combobox.mjs +5 -5
- package/dist/dashboard/input-date.mjs +4 -4
- package/dist/dashboard/input-editor.mjs +6 -6
- package/dist/dashboard/input-fields.mjs +20 -20
- package/dist/dashboard/input-file.mjs +6 -6
- package/dist/dashboard/input-font.mjs +6 -6
- package/dist/dashboard/input-group-ai.mjs +5 -5
- package/dist/dashboard/input-radio.mjs +2 -2
- package/dist/dashboard/input-resource.mjs +5 -5
- package/dist/dashboard/input-secret.mjs +6 -6
- package/dist/dashboard/input-time.mjs +2 -2
- package/dist/dashboard/lib/table-actions.mjs +1 -1
- package/dist/dashboard/lib/uppy.mjs +1 -1
- package/dist/dashboard/link-back.mjs +4 -4
- package/dist/dashboard/link.mjs +1 -1
- package/dist/dashboard/list-resource.mjs +4 -4
- package/dist/dashboard/list.mjs +3 -3
- package/dist/dashboard/menu.js +65 -9
- package/dist/dashboard/menu.mjs +76 -21
- package/dist/dashboard/modal.mjs +5 -5
- package/dist/dashboard/notes.mjs +7 -7
- package/dist/dashboard/notice.mjs +3 -3
- package/dist/dashboard/paged.mjs +7 -7
- package/dist/dashboard/provider-resource.mjs +2 -2
- package/dist/dashboard/provider-ui.mjs +6 -6
- package/dist/dashboard/provider.mjs +1 -1
- package/dist/dashboard/recharts.mjs +1 -1
- package/dist/dashboard/steps.mjs +6 -6
- package/dist/dashboard/swatch.mjs +3 -3
- package/dist/dashboard/table-cell-title.mjs +6 -6
- package/dist/dashboard/table.mjs +15 -15
- package/dist/dashboard/template-dashboard.mjs +13 -13
- package/dist/dashboard/template-not-found.mjs +3 -3
- package/dist/dashboard/template-socket.mjs +3 -3
- package/dist/dashboard/template-suspended.mjs +1 -1
- package/dist/dashboard/template-ui.js +4 -1
- package/dist/dashboard/template-ui.mjs +16 -13
- package/dist/dashboard/wrapper-ai.mjs +1 -1
- package/dist/icons/social.mjs +14 -14
- package/dist/input-checkbox.mjs +3 -3
- package/dist/input-group.mjs +2 -2
- package/dist/input-name.mjs +2 -2
- package/dist/input-number.mjs +4 -4
- package/dist/input-phone.mjs +2 -2
- package/dist/input-select.mjs +2 -2
- package/dist/input-text.mjs +1 -1
- package/dist/input-textarea.mjs +1 -1
- package/dist/product.mjs +6 -6
- package/dist/provider-font.mjs +1 -1
- package/dist/shared/badge.mjs +1 -1
- package/dist/shared/button.mjs +2 -2
- package/dist/shared/card-asset.mjs +3 -3
- package/dist/shared/card-prize.mjs +4 -4
- package/dist/shared/carousel.mjs +2 -2
- package/dist/shared/copy-to-clipboard.mjs +4 -4
- package/dist/shared/empty.mjs +1 -1
- package/dist/shared/error.mjs +1 -1
- package/dist/shared/fieldset.mjs +1 -1
- package/dist/shared/input-checkbox-list.mjs +3 -3
- package/dist/shared/input-range.mjs +1 -1
- package/dist/shared/input-switch.mjs +2 -2
- package/dist/shared/input-url.mjs +1 -1
- package/dist/shared/lib/helpers.mjs +2 -2
- package/dist/shared/lib/icon-labels.mjs +7 -7
- package/dist/shared/lib/yup.mjs +1 -1
- package/dist/shared/loader.mjs +2 -2
- package/dist/shared/overlay.mjs +2 -2
- package/dist/shared/sortable.mjs +1 -1
- package/dist/shared/tabs.mjs +3 -3
- package/dist/video.mjs +2 -2
- package/package.json +299 -3
package/dist/icons/social.mjs
CHANGED
|
@@ -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,
|
package/dist/input-checkbox.mjs
CHANGED
|
@@ -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,
|
package/dist/input-group.mjs
CHANGED
|
@@ -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
|
{
|
package/dist/input-name.mjs
CHANGED
package/dist/input-number.mjs
CHANGED
|
@@ -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) => {
|
package/dist/input-phone.mjs
CHANGED
|
@@ -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;
|
package/dist/input-select.mjs
CHANGED
|
@@ -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 = [],
|
package/dist/input-text.mjs
CHANGED
package/dist/input-textarea.mjs
CHANGED
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
|
{
|
package/dist/provider-font.mjs
CHANGED
|
@@ -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"
|
package/dist/shared/badge.mjs
CHANGED
package/dist/shared/button.mjs
CHANGED
|
@@ -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,
|
package/dist/shared/carousel.mjs
CHANGED
|
@@ -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.
|
package/dist/shared/empty.mjs
CHANGED
package/dist/shared/error.mjs
CHANGED
|
@@ -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" }
|
package/dist/shared/fieldset.mjs
CHANGED
|
@@ -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"],
|
package/dist/shared/lib/yup.mjs
CHANGED
|
@@ -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) {
|
package/dist/shared/loader.mjs
CHANGED
|
@@ -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
|
{
|
package/dist/shared/overlay.mjs
CHANGED
|
@@ -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.
|
package/dist/shared/sortable.mjs
CHANGED
|
@@ -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,
|
package/dist/shared/tabs.mjs
CHANGED
|
@@ -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
|
{
|