@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.
- 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.mjs +12 -12
- 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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCopyToClipboard } from "./lib/hooks";
|
|
3
|
-
import InputGroup from "../input-group";
|
|
4
|
-
import InputTextarea from "../input-textarea";
|
|
5
|
-
import Check from "../icons/check";
|
|
6
|
-
import Copy from "../icons/copy";
|
|
7
|
-
import Empty from "../shared/empty";
|
|
8
|
-
import Button from "../shared/button";
|
|
2
|
+
import { useCopyToClipboard } from "./lib/hooks.mjs";
|
|
3
|
+
import InputGroup from "../input-group.mjs";
|
|
4
|
+
import InputTextarea from "../input-textarea.mjs";
|
|
5
|
+
import Check from "../icons/check.mjs";
|
|
6
|
+
import Copy from "../icons/copy.mjs";
|
|
7
|
+
import Empty from "../shared/empty.mjs";
|
|
8
|
+
import Button from "../shared/button.mjs";
|
|
9
9
|
const buildSnippet = (values) => {
|
|
10
10
|
var _a;
|
|
11
11
|
if (!((_a = values == null ? void 0 : values.share) == null ? void 0 : _a.url)) return null;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from "react";
|
|
3
|
-
import { useForm, Controller } from "../shared/lib/form";
|
|
3
|
+
import { useForm, Controller } from "../shared/lib/form.mjs";
|
|
4
4
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
5
|
-
import Form from "../shared/form";
|
|
6
|
-
import Fieldset from "../shared/fieldset";
|
|
7
|
-
import InputGroup from "../input-group";
|
|
8
|
-
import InputRadio from "./input-radio";
|
|
9
|
-
import InputDate from "./input-date";
|
|
10
|
-
import InputText from "../input-text";
|
|
11
|
-
import Button from "../shared/button";
|
|
5
|
+
import Form from "../shared/form.mjs";
|
|
6
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
7
|
+
import InputGroup from "../input-group.mjs";
|
|
8
|
+
import InputRadio from "./input-radio.mjs";
|
|
9
|
+
import InputDate from "./input-date.mjs";
|
|
10
|
+
import InputText from "../input-text.mjs";
|
|
11
|
+
import Button from "../shared/button.mjs";
|
|
12
12
|
const FormOrganizationCampaignPagePreview = ({
|
|
13
13
|
campaign,
|
|
14
14
|
onError = () => {
|
|
@@ -2,20 +2,20 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { getPlanFeature } from "@drawbridge/drawbridge-utils";
|
|
4
4
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
5
|
-
import { useForm, Controller } from "../shared/lib/form";
|
|
6
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
7
|
-
import { bust } from "../shared/lib/helpers";
|
|
8
|
-
import Form from "../shared/form";
|
|
9
|
-
import Fieldset from "../shared/fieldset";
|
|
10
|
-
import InputGroup from "../input-group";
|
|
11
|
-
import Cog from "../icons/cog";
|
|
12
|
-
import Download from "../icons/download";
|
|
13
|
-
import Lock from "../icons/lock";
|
|
14
|
-
import Plus from "../icons/plus";
|
|
15
|
-
import CardTask from "./card-task";
|
|
16
|
-
import Link from "./link";
|
|
17
|
-
import InputColor from "./input-color";
|
|
18
|
-
import Button from "../shared/button";
|
|
5
|
+
import { useForm, Controller } from "../shared/lib/form.mjs";
|
|
6
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
7
|
+
import { bust } from "../shared/lib/helpers.mjs";
|
|
8
|
+
import Form from "../shared/form.mjs";
|
|
9
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
10
|
+
import InputGroup from "../input-group.mjs";
|
|
11
|
+
import Cog from "../icons/cog.mjs";
|
|
12
|
+
import Download from "../icons/download.mjs";
|
|
13
|
+
import Lock from "../icons/lock.mjs";
|
|
14
|
+
import Plus from "../icons/plus.mjs";
|
|
15
|
+
import CardTask from "./card-task.mjs";
|
|
16
|
+
import Link from "./link.mjs";
|
|
17
|
+
import InputColor from "./input-color.mjs";
|
|
18
|
+
import Button from "../shared/button.mjs";
|
|
19
19
|
const iconClassName = "w-5 h-5 shrink-0";
|
|
20
20
|
const FormOrganizationCampaignPageQRCustomize = ({
|
|
21
21
|
onError,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { formatDateString, getPlanFeature } from "@drawbridge/drawbridge-utils";
|
|
3
|
-
import CopyToClipboard from "../shared/copy-to-clipboard";
|
|
4
|
-
import Tooltip from "../shared/tooltip";
|
|
5
|
-
import ArrowRight from "../icons/arrow-right";
|
|
6
|
-
import Clock from "../icons/clock";
|
|
7
|
-
import Copy from "../icons/copy";
|
|
8
|
-
import Cog from "../icons/cog";
|
|
9
|
-
import External from "../icons/external";
|
|
10
|
-
import LinkIcon from "../icons/link";
|
|
11
|
-
import Lock from "../icons/lock";
|
|
12
|
-
import QRCode from "../icons/qr-code";
|
|
13
|
-
import CodeBracket from "../icons/code-bracket";
|
|
14
|
-
import CardTask from "./card-task";
|
|
15
|
-
import Button from "../shared/button";
|
|
16
|
-
import Link from "./link";
|
|
17
|
-
import { hasCapability } from "../shared/lib/helpers";
|
|
3
|
+
import CopyToClipboard from "../shared/copy-to-clipboard.mjs";
|
|
4
|
+
import Tooltip from "../shared/tooltip.mjs";
|
|
5
|
+
import ArrowRight from "../icons/arrow-right.mjs";
|
|
6
|
+
import Clock from "../icons/clock.mjs";
|
|
7
|
+
import Copy from "../icons/copy.mjs";
|
|
8
|
+
import Cog from "../icons/cog.mjs";
|
|
9
|
+
import External from "../icons/external.mjs";
|
|
10
|
+
import LinkIcon from "../icons/link.mjs";
|
|
11
|
+
import Lock from "../icons/lock.mjs";
|
|
12
|
+
import QRCode from "../icons/qr-code.mjs";
|
|
13
|
+
import CodeBracket from "../icons/code-bracket.mjs";
|
|
14
|
+
import CardTask from "./card-task.mjs";
|
|
15
|
+
import Button from "../shared/button.mjs";
|
|
16
|
+
import Link from "./link.mjs";
|
|
17
|
+
import { hasCapability } from "../shared/lib/helpers.mjs";
|
|
18
18
|
const iconClassName = "w-5 h-5 shrink-0";
|
|
19
19
|
const FormShareLink = ({
|
|
20
20
|
children,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
3
|
-
import { useForm, Controller } from "../shared/lib/form";
|
|
4
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
3
|
+
import { useForm, Controller } from "../shared/lib/form.mjs";
|
|
4
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
5
5
|
import { slugify } from "@drawbridge/drawbridge-utils/slugify";
|
|
6
|
-
import Form from "../shared/form";
|
|
7
|
-
import Fieldset from "../shared/fieldset";
|
|
8
|
-
import InputGroup from "../input-group";
|
|
9
|
-
import InputText from "../input-text";
|
|
10
|
-
import CardTask from "./card-task";
|
|
11
|
-
import Button from "../shared/button";
|
|
6
|
+
import Form from "../shared/form.mjs";
|
|
7
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
8
|
+
import InputGroup from "../input-group.mjs";
|
|
9
|
+
import InputText from "../input-text.mjs";
|
|
10
|
+
import CardTask from "./card-task.mjs";
|
|
11
|
+
import Button from "../shared/button.mjs";
|
|
12
12
|
const FormOrganizationCampaignPageSlug = ({
|
|
13
13
|
onError,
|
|
14
14
|
onSuccess,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { constants } from "@drawbridge/drawbridge-utils";
|
|
3
3
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
4
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
5
|
-
import { useForm, FormProvider, Controller } from "../shared/lib/form";
|
|
4
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
5
|
+
import { useForm, FormProvider, Controller } from "../shared/lib/form.mjs";
|
|
6
6
|
import { useQueryClient } from "@tanstack/react-query";
|
|
7
|
-
import Form from "../shared/form";
|
|
8
|
-
import Fieldset from "../shared/fieldset";
|
|
9
|
-
import InputGroup from "../input-group";
|
|
10
|
-
import InputSwitch from "../shared/input-switch";
|
|
11
|
-
import InputResource from "./input-resource";
|
|
12
|
-
import Button from "../shared/button";
|
|
13
|
-
import Accordion from "./accordion";
|
|
14
|
-
import { InputFieldsDetails, InputFieldsMedia, InputFieldsPage, InputFieldsStyle, schemas } from "./input-fields";
|
|
7
|
+
import Form from "../shared/form.mjs";
|
|
8
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
9
|
+
import InputGroup from "../input-group.mjs";
|
|
10
|
+
import InputSwitch from "../shared/input-switch.mjs";
|
|
11
|
+
import InputResource from "./input-resource.mjs";
|
|
12
|
+
import Button from "../shared/button.mjs";
|
|
13
|
+
import Accordion from "./accordion.mjs";
|
|
14
|
+
import { InputFieldsDetails, InputFieldsMedia, InputFieldsPage, InputFieldsStyle, schemas } from "./input-fields.mjs";
|
|
15
15
|
const props = {
|
|
16
16
|
className: "p-6 bg-white rounded border border-gray",
|
|
17
17
|
classNamePanel: "mt-6 pt-6 border-t border-gray"
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
3
|
-
import { useForm, Controller, useWatch } from "../shared/lib/form";
|
|
4
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
3
|
+
import { useForm, Controller, useWatch } from "../shared/lib/form.mjs";
|
|
4
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
5
5
|
import { useQueryClient } from "@tanstack/react-query";
|
|
6
6
|
import { formatCurrency } from "@drawbridge/drawbridge-utils";
|
|
7
|
-
import Form from "../shared/form";
|
|
8
|
-
import Fieldset from "../shared/fieldset";
|
|
9
|
-
import InputGroupAI from "./input-group-ai";
|
|
10
|
-
import InputGroup from "../input-group";
|
|
11
|
-
import InputText from "../input-text";
|
|
12
|
-
import InputTextarea from "../input-textarea";
|
|
13
|
-
import InputNumber from "../input-number";
|
|
14
|
-
import InputFile from "./input-file";
|
|
15
|
-
import InputCombobox from "./input-combobox";
|
|
16
|
-
import InputSwitch from "../shared/input-switch";
|
|
17
|
-
import CopyToClipboard from "../shared/copy-to-clipboard";
|
|
18
|
-
import Badge from "../shared/badge";
|
|
19
|
-
import CardTask from "./card-task";
|
|
20
|
-
import Button from "../shared/button";
|
|
7
|
+
import Form from "../shared/form.mjs";
|
|
8
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
9
|
+
import InputGroupAI from "./input-group-ai.mjs";
|
|
10
|
+
import InputGroup from "../input-group.mjs";
|
|
11
|
+
import InputText from "../input-text.mjs";
|
|
12
|
+
import InputTextarea from "../input-textarea.mjs";
|
|
13
|
+
import InputNumber from "../input-number.mjs";
|
|
14
|
+
import InputFile from "./input-file.mjs";
|
|
15
|
+
import InputCombobox from "./input-combobox.mjs";
|
|
16
|
+
import InputSwitch from "../shared/input-switch.mjs";
|
|
17
|
+
import CopyToClipboard from "../shared/copy-to-clipboard.mjs";
|
|
18
|
+
import Badge from "../shared/badge.mjs";
|
|
19
|
+
import CardTask from "./card-task.mjs";
|
|
20
|
+
import Button from "../shared/button.mjs";
|
|
21
21
|
const FormOrganizationCampaignPrizeEdit = ({
|
|
22
22
|
disabled,
|
|
23
23
|
onError,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
3
|
-
import { useForm, Controller } from "../shared/lib/form";
|
|
4
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
5
|
-
import Form from "../shared/form";
|
|
6
|
-
import Fieldset from "../shared/fieldset";
|
|
7
|
-
import InputGroup from "../input-group";
|
|
8
|
-
import InputText from "../input-text";
|
|
9
|
-
import Button from "../shared/button";
|
|
3
|
+
import { useForm, Controller } from "../shared/lib/form.mjs";
|
|
4
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
5
|
+
import Form from "../shared/form.mjs";
|
|
6
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
7
|
+
import InputGroup from "../input-group.mjs";
|
|
8
|
+
import InputText from "../input-text.mjs";
|
|
9
|
+
import Button from "../shared/button.mjs";
|
|
10
10
|
const FormOrganizationCampaignPrize = ({
|
|
11
11
|
onError,
|
|
12
12
|
onSuccess,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
3
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
4
|
-
import { useForm, Controller } from "../shared/lib/form";
|
|
5
|
-
import { formatDateTime } from "../shared/lib/helpers";
|
|
6
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
7
|
-
import Form from "../shared/form";
|
|
8
|
-
import Fieldset from "../shared/fieldset";
|
|
9
|
-
import InputGroup from "../input-group";
|
|
10
|
-
import InputText from "../input-text";
|
|
11
|
-
import InputDate from "./input-date";
|
|
12
|
-
import CardTask from "./card-task";
|
|
13
|
-
import Button from "../shared/button";
|
|
4
|
+
import { useForm, Controller } from "../shared/lib/form.mjs";
|
|
5
|
+
import { formatDateTime } from "../shared/lib/helpers.mjs";
|
|
6
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
7
|
+
import Form from "../shared/form.mjs";
|
|
8
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
9
|
+
import InputGroup from "../input-group.mjs";
|
|
10
|
+
import InputText from "../input-text.mjs";
|
|
11
|
+
import InputDate from "./input-date.mjs";
|
|
12
|
+
import CardTask from "./card-task.mjs";
|
|
13
|
+
import Button from "../shared/button.mjs";
|
|
14
14
|
const FormOrganizationCampaignRange = ({
|
|
15
15
|
disabled,
|
|
16
16
|
onSuccess,
|
|
@@ -3,19 +3,19 @@ import { useCallback, useState } from "react";
|
|
|
3
3
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
4
4
|
import { constants } from "@drawbridge/drawbridge-utils";
|
|
5
5
|
import { useQueryClient } from "@tanstack/react-query";
|
|
6
|
-
import { useForm, FormProvider, Controller, useWatch } from "../shared/lib/form";
|
|
7
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
8
|
-
import { InputFieldsCampaign, schemas } from "./input-fields";
|
|
9
|
-
import Form from "../shared/form";
|
|
10
|
-
import Fieldset from "../shared/fieldset";
|
|
11
|
-
import InputGroup from "../input-group";
|
|
12
|
-
import InputText from "../input-text";
|
|
13
|
-
import InputNumber from "../input-number";
|
|
14
|
-
import InputCombobox from "./input-combobox";
|
|
15
|
-
import InputTextarea from "../input-textarea";
|
|
16
|
-
import InputResource from "./input-resource";
|
|
17
|
-
import { FormNotification } from "./form-notification";
|
|
18
|
-
import Button from "../shared/button";
|
|
6
|
+
import { useForm, FormProvider, Controller, useWatch } from "../shared/lib/form.mjs";
|
|
7
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
8
|
+
import { InputFieldsCampaign, schemas } from "./input-fields.mjs";
|
|
9
|
+
import Form from "../shared/form.mjs";
|
|
10
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
11
|
+
import InputGroup from "../input-group.mjs";
|
|
12
|
+
import InputText from "../input-text.mjs";
|
|
13
|
+
import InputNumber from "../input-number.mjs";
|
|
14
|
+
import InputCombobox from "./input-combobox.mjs";
|
|
15
|
+
import InputTextarea from "../input-textarea.mjs";
|
|
16
|
+
import InputResource from "./input-resource.mjs";
|
|
17
|
+
import { FormNotification } from "./form-notification.mjs";
|
|
18
|
+
import Button from "../shared/button.mjs";
|
|
19
19
|
const FormOrganizationCampaign = ({
|
|
20
20
|
canManageBrands,
|
|
21
21
|
disabled,
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo, useState } from "react";
|
|
4
4
|
import { useQueries } from "@tanstack/react-query";
|
|
5
|
-
import { useForm, Controller } from "../shared/lib/form";
|
|
6
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
5
|
+
import { useForm, Controller } from "../shared/lib/form.mjs";
|
|
6
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
7
7
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
8
|
-
import Form from "../shared/form";
|
|
9
|
-
import Fieldset from "../shared/fieldset";
|
|
10
|
-
import InputGroup from "../input-group";
|
|
11
|
-
import InputText from "../input-text";
|
|
12
|
-
import InputNumber from "../input-number";
|
|
13
|
-
import InputTextarea from "../input-textarea";
|
|
14
|
-
import InputResource from "./input-resource";
|
|
15
|
-
import InputSelect from "../input-select";
|
|
16
|
-
import InputCheckbox from "../input-checkbox";
|
|
17
|
-
import InputSwitch from "../shared/input-switch";
|
|
18
|
-
import Button from "../shared/button";
|
|
19
|
-
import CopyToClipboard from "../shared/copy-to-clipboard";
|
|
8
|
+
import Form from "../shared/form.mjs";
|
|
9
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
10
|
+
import InputGroup from "../input-group.mjs";
|
|
11
|
+
import InputText from "../input-text.mjs";
|
|
12
|
+
import InputNumber from "../input-number.mjs";
|
|
13
|
+
import InputTextarea from "../input-textarea.mjs";
|
|
14
|
+
import InputResource from "./input-resource.mjs";
|
|
15
|
+
import InputSelect from "../input-select.mjs";
|
|
16
|
+
import InputCheckbox from "../input-checkbox.mjs";
|
|
17
|
+
import InputSwitch from "../shared/input-switch.mjs";
|
|
18
|
+
import Button from "../shared/button.mjs";
|
|
19
|
+
import CopyToClipboard from "../shared/copy-to-clipboard.mjs";
|
|
20
20
|
const Submit = ({
|
|
21
21
|
disabled,
|
|
22
22
|
isSubmitting,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Controller, useForm } from "../shared/lib/form";
|
|
3
|
+
import { Controller, useForm } from "../shared/lib/form.mjs";
|
|
4
4
|
import { useQueryClient } from "@tanstack/react-query";
|
|
5
5
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
6
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
7
|
-
import Form from "../shared/form";
|
|
8
|
-
import Fieldset from "../shared/fieldset";
|
|
9
|
-
import CardTask from "./card-task";
|
|
10
|
-
import InputGroup from "../input-group";
|
|
11
|
-
import InputCombobox from "./input-combobox";
|
|
12
|
-
import InputResource from "./input-resource";
|
|
13
|
-
import Button from "../shared/button";
|
|
6
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
7
|
+
import Form from "../shared/form.mjs";
|
|
8
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
9
|
+
import CardTask from "./card-task.mjs";
|
|
10
|
+
import InputGroup from "../input-group.mjs";
|
|
11
|
+
import InputCombobox from "./input-combobox.mjs";
|
|
12
|
+
import InputResource from "./input-resource.mjs";
|
|
13
|
+
import Button from "../shared/button.mjs";
|
|
14
14
|
const typeOptions = [
|
|
15
15
|
{
|
|
16
16
|
key: "Contacts",
|
|
@@ -3,16 +3,16 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import dynamic from "next/dynamic";
|
|
4
4
|
import { cdnSrc } from "@drawbridge/drawbridge-utils/cdn";
|
|
5
5
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
6
|
-
import { useForm, useWatch, Controller } from "../shared/lib/form";
|
|
7
|
-
import { isStartingFrame } from "./lib/frames";
|
|
8
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
9
|
-
import Form from "../shared/form";
|
|
10
|
-
import Fieldset from "../shared/fieldset";
|
|
11
|
-
import InputGroup from "../input-group";
|
|
12
|
-
import { LoaderDynamic } from "../shared/loader";
|
|
13
|
-
import Button from "../shared/button";
|
|
6
|
+
import { useForm, useWatch, Controller } from "../shared/lib/form.mjs";
|
|
7
|
+
import { isStartingFrame } from "./lib/frames.mjs";
|
|
8
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
9
|
+
import Form from "../shared/form.mjs";
|
|
10
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
11
|
+
import InputGroup from "../input-group.mjs";
|
|
12
|
+
import { LoaderDynamic } from "../shared/loader.mjs";
|
|
13
|
+
import Button from "../shared/button.mjs";
|
|
14
14
|
const Video = dynamic(
|
|
15
|
-
() => import("../video"),
|
|
15
|
+
() => import("../video.mjs"),
|
|
16
16
|
{ loading: () => /* @__PURE__ */ jsx(LoaderDynamic, {}), ssr: false }
|
|
17
17
|
);
|
|
18
18
|
const FormProfile = ({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
3
|
-
import { useForm, Controller } from "../shared/lib/form";
|
|
4
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
5
|
-
import Form from "../shared/form";
|
|
6
|
-
import Fieldset from "../shared/fieldset";
|
|
7
|
-
import InputGroup from "../input-group";
|
|
8
|
-
import InputText from "../input-text";
|
|
9
|
-
import Loader from "../icons/loader";
|
|
10
|
-
import Plus from "../icons/plus";
|
|
11
|
-
import Times from "../icons/times";
|
|
12
|
-
import { isStartingFrame } from "./lib/frames";
|
|
13
|
-
import Button from "../shared/button";
|
|
3
|
+
import { useForm, Controller } from "../shared/lib/form.mjs";
|
|
4
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
5
|
+
import Form from "../shared/form.mjs";
|
|
6
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
7
|
+
import InputGroup from "../input-group.mjs";
|
|
8
|
+
import InputText from "../input-text.mjs";
|
|
9
|
+
import Loader from "../icons/loader.mjs";
|
|
10
|
+
import Plus from "../icons/plus.mjs";
|
|
11
|
+
import Times from "../icons/times.mjs";
|
|
12
|
+
import { isStartingFrame } from "./lib/frames.mjs";
|
|
13
|
+
import Button from "../shared/button.mjs";
|
|
14
14
|
const FormOrganizationFile = ({
|
|
15
15
|
disabled,
|
|
16
16
|
onError,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Fragment, useState } from "react";
|
|
4
|
-
import { useForm, Controller } from "../shared/lib/form";
|
|
5
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
4
|
+
import { useForm, Controller } from "../shared/lib/form.mjs";
|
|
5
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
6
6
|
import { formatCurrency } from "@drawbridge/drawbridge-utils";
|
|
7
7
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
8
|
-
import ListResource from "./list-resource";
|
|
9
|
-
import LinkBack from "./link-back";
|
|
10
|
-
import Form from "../shared/form";
|
|
11
|
-
import FormAction from "./form-action";
|
|
12
|
-
import Fieldset from "../shared/fieldset";
|
|
13
|
-
import InputGroup from "../input-group";
|
|
14
|
-
import InputText from "../input-text";
|
|
15
|
-
import Check from "../icons/check";
|
|
16
|
-
import Badge from "../shared/badge";
|
|
17
|
-
import CardTask from "./card-task";
|
|
18
|
-
import CopyToClipboard from "../shared/copy-to-clipboard";
|
|
19
|
-
import Divider from "../shared/divider";
|
|
20
|
-
import Button from "../shared/button";
|
|
8
|
+
import ListResource from "./list-resource.mjs";
|
|
9
|
+
import LinkBack from "./link-back.mjs";
|
|
10
|
+
import Form from "../shared/form.mjs";
|
|
11
|
+
import FormAction from "./form-action.mjs";
|
|
12
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
13
|
+
import InputGroup from "../input-group.mjs";
|
|
14
|
+
import InputText from "../input-text.mjs";
|
|
15
|
+
import Check from "../icons/check.mjs";
|
|
16
|
+
import Badge from "../shared/badge.mjs";
|
|
17
|
+
import CardTask from "./card-task.mjs";
|
|
18
|
+
import CopyToClipboard from "../shared/copy-to-clipboard.mjs";
|
|
19
|
+
import Divider from "../shared/divider.mjs";
|
|
20
|
+
import Button from "../shared/button.mjs";
|
|
21
21
|
const Step = ({
|
|
22
22
|
badge,
|
|
23
23
|
children,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
3
3
|
import { useQueryClient } from "@tanstack/react-query";
|
|
4
|
-
import { useForm, Controller, useWatch } from "../shared/lib/form";
|
|
5
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
6
|
-
import Form from "../shared/form";
|
|
7
|
-
import Fieldset from "../shared/fieldset";
|
|
8
|
-
import InputGroup from "../input-group";
|
|
9
|
-
import InputText from "../input-text";
|
|
10
|
-
import InputCombobox from "./input-combobox";
|
|
11
|
-
import CardTask from "./card-task";
|
|
12
|
-
import Button from "../shared/button";
|
|
4
|
+
import { useForm, Controller, useWatch } from "../shared/lib/form.mjs";
|
|
5
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
6
|
+
import Form from "../shared/form.mjs";
|
|
7
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
8
|
+
import InputGroup from "../input-group.mjs";
|
|
9
|
+
import InputText from "../input-text.mjs";
|
|
10
|
+
import InputCombobox from "./input-combobox.mjs";
|
|
11
|
+
import CardTask from "./card-task.mjs";
|
|
12
|
+
import Button from "../shared/button.mjs";
|
|
13
13
|
const FormOrganizationMember = ({
|
|
14
14
|
onSuccess,
|
|
15
15
|
values
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
3
|
-
import { useForm, Controller, useWatch } from "../shared/lib/form";
|
|
4
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
3
|
+
import { useForm, Controller, useWatch } from "../shared/lib/form.mjs";
|
|
4
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
5
5
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
6
|
-
import CardTask from "./card-task";
|
|
7
|
-
import Form from "../shared/form";
|
|
8
|
-
import Fieldset from "../shared/fieldset";
|
|
9
|
-
import InputGroup from "../input-group";
|
|
10
|
-
import InputNumber from "../input-number";
|
|
11
|
-
import InputText from "../input-text";
|
|
12
|
-
import InputCombobox from "./input-combobox";
|
|
13
|
-
import { InputArray, InputArrayButton, InputArrayControl } from "./input-array";
|
|
14
|
-
import InputResource from "./input-resource";
|
|
15
|
-
import Button from "../shared/button";
|
|
6
|
+
import CardTask from "./card-task.mjs";
|
|
7
|
+
import Form from "../shared/form.mjs";
|
|
8
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
9
|
+
import InputGroup from "../input-group.mjs";
|
|
10
|
+
import InputNumber from "../input-number.mjs";
|
|
11
|
+
import InputText from "../input-text.mjs";
|
|
12
|
+
import InputCombobox from "./input-combobox.mjs";
|
|
13
|
+
import { InputArray, InputArrayButton, InputArrayControl } from "./input-array.mjs";
|
|
14
|
+
import InputResource from "./input-resource.mjs";
|
|
15
|
+
import Button from "../shared/button.mjs";
|
|
16
16
|
const FormOrganizationSegment = ({
|
|
17
17
|
disabled,
|
|
18
18
|
onClose,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Image from "next/image";
|
|
3
|
-
import Link from "./link";
|
|
3
|
+
import Link from "./link.mjs";
|
|
4
4
|
import { Fragment, useCallback, useState } from "react";
|
|
5
5
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
6
|
-
import { useForm, useWatch, Controller } from "../shared/lib/form";
|
|
6
|
+
import { useForm, useWatch, Controller } from "../shared/lib/form.mjs";
|
|
7
7
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
8
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
9
|
-
import Form from "../shared/form";
|
|
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 InputUrl from "../shared/input-url";
|
|
15
|
-
import InputResource from "./input-resource";
|
|
16
|
-
import InputCombobox from "./input-combobox";
|
|
17
|
-
import { FormNotification } from "./form-notification";
|
|
18
|
-
import { InputArrayButton, InputArrayControl, InputArraySortable } from "./input-array";
|
|
19
|
-
import Badge from "../shared/badge";
|
|
20
|
-
import CardTask from "./card-task";
|
|
21
|
-
import { LoaderDynamic } from "../shared/loader";
|
|
22
|
-
import Trash from "../icons/trash";
|
|
23
|
-
import Button from "../shared/button";
|
|
8
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
9
|
+
import Form from "../shared/form.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 InputUrl from "../shared/input-url.mjs";
|
|
15
|
+
import InputResource from "./input-resource.mjs";
|
|
16
|
+
import InputCombobox from "./input-combobox.mjs";
|
|
17
|
+
import { FormNotification } from "./form-notification.mjs";
|
|
18
|
+
import { InputArrayButton, InputArrayControl, InputArraySortable } from "./input-array.mjs";
|
|
19
|
+
import Badge from "../shared/badge.mjs";
|
|
20
|
+
import CardTask from "./card-task.mjs";
|
|
21
|
+
import { LoaderDynamic } from "../shared/loader.mjs";
|
|
22
|
+
import Trash from "../icons/trash.mjs";
|
|
23
|
+
import Button from "../shared/button.mjs";
|
|
24
24
|
const emailSteps = ["step.email.send", "step.email.digest"];
|
|
25
25
|
const teamSteps = ["step.email.notify", "step.email.digest"];
|
|
26
26
|
const messageSteps = [...emailSteps, "step.sms.send"];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from "react";
|
|
3
|
-
import { Controller, FormProvider, useForm } from "../shared/lib/form";
|
|
3
|
+
import { Controller, FormProvider, useForm } from "../shared/lib/form.mjs";
|
|
4
4
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
5
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
5
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
6
6
|
import { slugify } from "@drawbridge/drawbridge-utils/slugify";
|
|
7
7
|
import { regex } from "@drawbridge/drawbridge-utils";
|
|
8
|
-
import Form from "../shared/form";
|
|
9
|
-
import Fieldset from "../shared/fieldset";
|
|
10
|
-
import InputGroup from "../input-group";
|
|
11
|
-
import InputText from "../input-text";
|
|
12
|
-
import InputUrl from "../shared/input-url";
|
|
13
|
-
import InputCheckbox from "../input-checkbox";
|
|
14
|
-
import { InputFieldsCurrency, schemas } from "./input-fields";
|
|
15
|
-
import CardTask from "./card-task";
|
|
16
|
-
import Button from "../shared/button";
|
|
8
|
+
import Form from "../shared/form.mjs";
|
|
9
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
10
|
+
import InputGroup from "../input-group.mjs";
|
|
11
|
+
import InputText from "../input-text.mjs";
|
|
12
|
+
import InputUrl from "../shared/input-url.mjs";
|
|
13
|
+
import InputCheckbox from "../input-checkbox.mjs";
|
|
14
|
+
import { InputFieldsCurrency, schemas } from "./input-fields.mjs";
|
|
15
|
+
import CardTask from "./card-task.mjs";
|
|
16
|
+
import Button from "../shared/button.mjs";
|
|
17
17
|
const FormOrganization = ({
|
|
18
18
|
onError,
|
|
19
19
|
onSuccess,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
3
|
import { request } from "@drawbridge/drawbridge-utils/fetch";
|
|
4
|
-
import { useForm, Controller } from "../shared/lib/form";
|
|
5
|
-
import yup, { resolver } from "../shared/lib/yup";
|
|
6
|
-
import Form from "../shared/form";
|
|
7
|
-
import Fieldset from "../shared/fieldset";
|
|
8
|
-
import InputGroup from "../input-group";
|
|
9
|
-
import InputText from "../input-text";
|
|
10
|
-
import Button from "../shared/button";
|
|
4
|
+
import { useForm, Controller } from "../shared/lib/form.mjs";
|
|
5
|
+
import yup, { resolver } from "../shared/lib/yup.mjs";
|
|
6
|
+
import Form from "../shared/form.mjs";
|
|
7
|
+
import Fieldset from "../shared/fieldset.mjs";
|
|
8
|
+
import InputGroup from "../input-group.mjs";
|
|
9
|
+
import InputText from "../input-text.mjs";
|
|
10
|
+
import Button from "../shared/button.mjs";
|
|
11
11
|
const FormOtcCode = ({
|
|
12
12
|
onError,
|
|
13
13
|
onSuccess,
|