@drawbridge/components 0.1.33 → 0.1.35
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/components/styles.css +68 -355
- package/dist/advertisement.js +15 -20
- package/dist/advertisement.mjs +15 -20
- package/dist/bridge/advertisements.js +4 -2
- package/dist/bridge/advertisements.mjs +5 -3
- package/dist/bridge/fields.js +89 -6
- package/dist/bridge/fields.mjs +89 -7
- package/dist/bridge/form-subdomain-agreement.js +165 -0
- package/dist/bridge/form-subdomain-agreement.mjs +132 -0
- package/dist/bridge/form-subdomain-embed.js +5 -1
- package/dist/bridge/form-subdomain-embed.mjs +5 -1
- package/dist/bridge/form-subdomain-header.js +21 -14
- package/dist/bridge/form-subdomain-header.mjs +20 -14
- package/dist/bridge/form-subdomain-issue.js +17 -8
- package/dist/bridge/form-subdomain-issue.mjs +17 -8
- package/dist/bridge/form-subdomain-missions.js +58 -52
- package/dist/bridge/form-subdomain-missions.mjs +60 -54
- package/dist/bridge/form-subdomain.js +223 -94
- package/dist/bridge/form-subdomain.mjs +222 -96
- package/dist/bridge/lib/entry.js +61 -6
- package/dist/bridge/lib/entry.mjs +51 -5
- package/dist/bridge/lib/order.js +23 -0
- package/dist/bridge/lib/order.mjs +20 -0
- package/dist/bridge/template-layout.js +5 -2
- package/dist/bridge/template-layout.mjs +6 -3
- package/dist/bridge/template-modal.js +82 -15
- package/dist/bridge/template-modal.mjs +83 -16
- package/dist/bridge/template-subdomain-gallery.js +126 -75
- package/dist/bridge/template-subdomain-gallery.mjs +122 -75
- package/dist/bridge/template-subdomain.js +16 -14
- package/dist/bridge/template-subdomain.mjs +17 -15
- package/dist/dashboard/avatar.js +5 -0
- package/dist/dashboard/avatar.mjs +5 -0
- package/dist/dashboard/campaign-form.js +1798 -0
- package/dist/dashboard/campaign-form.mjs +1769 -0
- package/dist/dashboard/card-affiliate.js +3 -2
- package/dist/dashboard/card-affiliate.mjs +3 -2
- package/dist/dashboard/card-campaign-agreement.js +172 -0
- package/dist/dashboard/card-campaign-agreement.mjs +139 -0
- package/dist/dashboard/card-campaign-switch.js +34 -9
- package/dist/dashboard/card-campaign-switch.mjs +32 -8
- package/dist/dashboard/card-order.js +6 -14
- package/dist/dashboard/card-order.mjs +6 -14
- package/dist/dashboard/card-section.js +69 -26
- package/dist/dashboard/card-section.mjs +65 -26
- package/dist/dashboard/card-shortcut.js +181 -0
- package/dist/dashboard/card-shortcut.mjs +152 -0
- package/dist/dashboard/card-tile.js +3 -35
- package/dist/dashboard/card-tile.mjs +3 -34
- package/dist/dashboard/document-blocks.js +305 -0
- package/dist/dashboard/document-blocks.mjs +270 -0
- package/dist/dashboard/drawer-subscription.js +52 -14
- package/dist/dashboard/drawer-subscription.mjs +52 -14
- package/dist/dashboard/drawer.js +20 -3
- package/dist/dashboard/drawer.mjs +21 -4
- package/dist/dashboard/dropdown.js +6 -2
- package/dist/dashboard/dropdown.mjs +6 -2
- package/dist/dashboard/form-admin-subscription-custom.js +72 -8
- package/dist/dashboard/form-admin-subscription-custom.mjs +72 -8
- package/dist/dashboard/form-ai.js +0 -148
- package/dist/dashboard/form-ai.mjs +1 -148
- package/dist/dashboard/form-filters-analytics.js +88 -37
- package/dist/dashboard/form-filters-analytics.mjs +85 -38
- package/dist/dashboard/form-organization-brand.js +30 -13
- package/dist/dashboard/form-organization-brand.mjs +30 -13
- package/dist/dashboard/form-organization-campaign-advertisement.js +38 -112
- package/dist/dashboard/form-organization-campaign-advertisement.mjs +38 -112
- package/dist/dashboard/form-organization-campaign-advertisements.js +374 -0
- package/dist/dashboard/form-organization-campaign-advertisements.mjs +345 -0
- package/dist/dashboard/form-organization-campaign-agreement.js +414 -210
- package/dist/dashboard/form-organization-campaign-agreement.mjs +411 -212
- package/dist/dashboard/form-organization-campaign-design.js +258 -0
- package/dist/dashboard/form-organization-campaign-design.mjs +223 -0
- package/dist/dashboard/form-organization-campaign-field-item.js +585 -0
- package/dist/dashboard/form-organization-campaign-field-item.mjs +552 -0
- package/dist/dashboard/form-organization-campaign-field-number.js +48 -7
- package/dist/dashboard/form-organization-campaign-field-number.mjs +48 -7
- package/dist/dashboard/form-organization-campaign-field-select.js +15 -4
- package/dist/dashboard/form-organization-campaign-field-select.mjs +15 -4
- package/dist/dashboard/form-organization-campaign-field-skill.js +359 -0
- package/dist/dashboard/form-organization-campaign-field-skill.mjs +330 -0
- package/dist/dashboard/form-organization-campaign-field-text.js +46 -6
- package/dist/dashboard/form-organization-campaign-field-text.mjs +46 -6
- package/dist/dashboard/form-organization-campaign-field-textarea.js +22 -13
- package/dist/dashboard/form-organization-campaign-field-textarea.mjs +22 -13
- package/dist/dashboard/form-organization-campaign-footer.js +178 -0
- package/dist/dashboard/form-organization-campaign-footer.mjs +149 -0
- package/dist/dashboard/form-organization-campaign-integration-age.js +2 -35
- package/dist/dashboard/form-organization-campaign-integration-age.mjs +2 -35
- package/dist/dashboard/form-organization-campaign-integration-geocode.js +4 -1
- package/dist/dashboard/form-organization-campaign-integration-geocode.mjs +4 -1
- package/dist/dashboard/form-organization-campaign-page-embed.js +1 -1
- package/dist/dashboard/form-organization-campaign-page-embed.mjs +1 -1
- package/dist/dashboard/form-organization-campaign-page-preview.js +1 -2
- package/dist/dashboard/form-organization-campaign-page-preview.mjs +1 -2
- package/dist/dashboard/form-organization-campaign-page-qr.js +2 -2
- package/dist/dashboard/form-organization-campaign-page-qr.mjs +2 -2
- package/dist/dashboard/form-organization-campaign-page-share.js +5 -5
- package/dist/dashboard/form-organization-campaign-page-share.mjs +5 -5
- package/dist/dashboard/form-organization-campaign-page-slug.js +2 -3
- package/dist/dashboard/form-organization-campaign-page-slug.mjs +2 -3
- package/dist/dashboard/form-organization-campaign-page.js +168 -265
- package/dist/dashboard/form-organization-campaign-page.mjs +170 -266
- package/dist/dashboard/form-organization-campaign-section.js +125 -107
- package/dist/dashboard/form-organization-campaign-section.mjs +121 -107
- package/dist/dashboard/form-organization-campaign.js +119 -9
- package/dist/dashboard/form-organization-campaign.mjs +118 -9
- package/dist/dashboard/form-organization-file-frame.js +7 -1
- package/dist/dashboard/form-organization-file-frame.mjs +7 -1
- package/dist/dashboard/form-organization-workflow.js +589 -532
- package/dist/dashboard/form-organization-workflow.mjs +590 -533
- package/dist/dashboard/form-organization.js +22 -0
- package/dist/dashboard/form-organization.mjs +22 -0
- package/dist/dashboard/form-reposition.js +396 -0
- package/dist/dashboard/form-reposition.mjs +359 -0
- package/dist/dashboard/form-support.js +189 -0
- package/dist/dashboard/form-support.mjs +160 -0
- package/dist/dashboard/form-tests.js +683 -0
- package/dist/dashboard/form-tests.mjs +646 -0
- package/dist/dashboard/form-verify-prize.js +114 -34
- package/dist/dashboard/form-verify-prize.mjs +111 -34
- package/dist/dashboard/google.js +8 -1
- package/dist/dashboard/google.mjs +8 -1
- package/dist/dashboard/input-array.js +2 -0
- package/dist/dashboard/input-array.mjs +2 -0
- package/dist/dashboard/input-editor.js +17 -6
- package/dist/dashboard/input-editor.mjs +17 -6
- package/dist/dashboard/input-fields.js +287 -437
- package/dist/dashboard/input-fields.mjs +287 -436
- package/dist/dashboard/input-file.js +70 -2
- package/dist/dashboard/input-file.mjs +70 -2
- package/dist/dashboard/input-font.js +64 -55
- package/dist/dashboard/input-font.mjs +64 -55
- package/dist/dashboard/input-resource.js +4 -1
- package/dist/dashboard/input-resource.mjs +4 -1
- package/dist/dashboard/lib/ab-tests.js +130 -0
- package/dist/dashboard/lib/ab-tests.mjs +94 -0
- package/dist/dashboard/lib/features.js +1 -1
- package/dist/dashboard/lib/features.mjs +1 -1
- package/dist/dashboard/lib/focus.js +93 -0
- package/dist/dashboard/lib/focus.mjs +69 -0
- package/dist/dashboard/lib/form-page.js +203 -0
- package/dist/dashboard/lib/form-page.mjs +155 -0
- package/dist/dashboard/lib/item-list.js +0 -15
- package/dist/dashboard/lib/item-list.mjs +0 -14
- package/dist/dashboard/lib/rail.js +16 -17
- package/dist/dashboard/lib/rail.mjs +15 -16
- package/dist/dashboard/lib/sms.js +8 -2
- package/dist/dashboard/lib/sms.mjs +6 -1
- package/dist/dashboard/list-resource.js +2 -0
- package/dist/dashboard/list-resource.mjs +2 -0
- package/dist/dashboard/menu.js +54 -5
- package/dist/dashboard/menu.mjs +53 -5
- package/dist/dashboard/modal.js +19 -4
- package/dist/dashboard/modal.mjs +20 -5
- package/dist/dashboard/order-sections.js +4 -0
- package/dist/dashboard/order-sections.mjs +4 -0
- package/dist/dashboard/preview.js +838 -324
- package/dist/dashboard/preview.mjs +826 -324
- package/dist/dashboard/provider-ui.js +20 -12
- package/dist/dashboard/provider-ui.mjs +21 -13
- package/dist/dashboard/recharts.js +53 -28
- package/dist/dashboard/recharts.mjs +53 -28
- package/dist/dashboard/swatch.js +35 -0
- package/dist/dashboard/swatch.mjs +31 -0
- package/dist/dashboard/table-contacts.js +6 -10
- package/dist/dashboard/table-contacts.mjs +6 -10
- package/dist/dashboard/table.js +10 -3
- package/dist/dashboard/table.mjs +9 -3
- package/dist/dashboard/template-dashboard.js +12 -7
- package/dist/dashboard/template-dashboard.mjs +11 -7
- package/dist/dashboard/template-design.js +564 -0
- package/dist/dashboard/template-design.mjs +531 -0
- package/dist/dashboard/template-rail.js +198 -126
- package/dist/dashboard/template-rail.mjs +196 -125
- package/dist/dashboard/template-socket.js +0 -3
- package/dist/dashboard/template-socket.mjs +0 -3
- package/dist/dashboard/template-test-page.js +436 -0
- package/dist/dashboard/template-test-page.mjs +407 -0
- package/dist/dashboard/template-tests.js +141 -0
- package/dist/dashboard/template-tests.mjs +112 -0
- package/dist/dashboard/template-ui.js +20 -11
- package/dist/dashboard/template-ui.mjs +22 -13
- package/dist/dashboard/template-variant.js +185 -0
- package/dist/dashboard/template-variant.mjs +156 -0
- package/dist/icons/arrow-down-long.js +47 -0
- package/dist/icons/arrow-down-long.mjs +28 -0
- package/dist/icons/arrows-pointing-out.js +46 -0
- package/dist/icons/arrows-pointing-out.mjs +27 -0
- package/dist/icons/beaker.js +46 -0
- package/dist/icons/beaker.mjs +27 -0
- package/dist/icons/identification.js +46 -0
- package/dist/icons/identification.mjs +27 -0
- package/dist/icons/lifebuoy.js +46 -0
- package/dist/icons/lifebuoy.mjs +27 -0
- package/dist/icons/rectangle-group.js +46 -0
- package/dist/icons/rectangle-group.mjs +27 -0
- package/dist/icons/rectangle-stack.js +46 -0
- package/dist/icons/rectangle-stack.mjs +27 -0
- package/dist/icons/shopping-bag.js +46 -0
- package/dist/icons/shopping-bag.mjs +27 -0
- package/dist/icons/swatch.js +46 -0
- package/dist/icons/swatch.mjs +27 -0
- package/dist/icons/window.js +46 -0
- package/dist/icons/window.mjs +27 -0
- package/dist/icons/zoom-in.js +46 -0
- package/dist/icons/zoom-in.mjs +27 -0
- package/dist/input-answer.js +60 -0
- package/dist/input-answer.mjs +27 -0
- package/dist/input-checkbox.js +7 -1
- package/dist/input-checkbox.mjs +7 -1
- package/dist/input-name.js +3 -3
- package/dist/input-name.mjs +3 -3
- package/dist/input-select.js +3 -1
- package/dist/input-select.mjs +3 -1
- package/dist/provider-font.js +4 -3
- package/dist/provider-font.mjs +4 -3
- package/dist/shared/badge.js +15 -0
- package/dist/shared/badge.mjs +11 -0
- package/dist/shared/carousel.js +11 -7
- package/dist/shared/carousel.mjs +11 -7
- package/dist/shared/document-pieces.js +295 -0
- package/dist/shared/document-pieces.mjs +260 -0
- package/dist/shared/lib/campaign.js +3 -9
- package/dist/shared/lib/campaign.mjs +3 -9
- package/dist/shared/lib/helpers.js +24 -0
- package/dist/shared/lib/helpers.mjs +22 -0
- package/dist/shared/lib/video.js +6 -0
- package/dist/shared/lib/video.mjs +5 -0
- package/dist/shared/sortable.js +27 -10
- package/dist/shared/sortable.mjs +27 -10
- package/dist/shared/tabs.js +1 -1
- package/dist/shared/tabs.mjs +1 -1
- package/dist/video.js +127 -9
- package/dist/video.mjs +125 -11
- package/package.json +176 -20
- package/types/bridge/fields.d.ts +6 -1
- package/types/bridge/form-subdomain-agreement.d.ts +27 -0
- package/types/bridge/form-subdomain-missions.d.ts +2 -0
- package/types/bridge/form-subdomain.d.ts +62 -3
- package/types/bridge/lib/entry.d.ts +44 -7
- package/types/bridge/lib/order.d.ts +13 -2
- package/types/bridge/subdomain-content.d.ts +1 -0
- package/types/bridge/template-subdomain-gallery.d.ts +13 -1
- package/types/dashboard/campaign-form.d.ts +42 -0
- package/types/dashboard/card-campaign-agreement.d.ts +26 -0
- package/types/dashboard/card-campaign-switch.d.ts +20 -1
- package/types/dashboard/card-order.d.ts +2 -2
- package/types/dashboard/card-section.d.ts +9 -1
- package/types/dashboard/card-shortcut.d.ts +38 -0
- package/types/dashboard/card-tile.d.ts +4 -9
- package/types/dashboard/document-blocks.d.ts +14 -0
- package/types/dashboard/drawer.d.ts +3 -0
- package/types/dashboard/form-ai.d.ts +0 -17
- package/types/dashboard/form-organization-brand.d.ts +3 -0
- package/types/dashboard/form-organization-campaign-advertisements.d.ts +15 -0
- package/types/dashboard/form-organization-campaign-agreement.d.ts +53 -10
- package/types/dashboard/form-organization-campaign-design.d.ts +46 -0
- package/types/dashboard/form-organization-campaign-field-item.d.ts +36 -0
- package/types/dashboard/form-organization-campaign-field-number.d.ts +4 -1
- package/types/dashboard/form-organization-campaign-field-select.d.ts +6 -1
- package/types/dashboard/form-organization-campaign-field-skill.d.ts +36 -0
- package/types/dashboard/form-organization-campaign-field-text.d.ts +5 -1
- package/types/dashboard/form-organization-campaign-field-textarea.d.ts +4 -1
- package/types/dashboard/form-organization-campaign-footer.d.ts +23 -0
- package/types/dashboard/form-organization-campaign-integration-age.d.ts +2 -1
- package/types/dashboard/form-organization-campaign-integration-geocode.d.ts +2 -0
- package/types/dashboard/form-organization-campaign-page.d.ts +9 -15
- package/types/dashboard/form-organization-campaign-section.d.ts +24 -8
- package/types/dashboard/form-organization-campaign.d.ts +3 -0
- package/types/dashboard/form-organization-workflow.d.ts +3 -0
- package/types/dashboard/form-organization.d.ts +2 -2
- package/types/dashboard/form-reposition.d.ts +29 -0
- package/types/dashboard/form-support.d.ts +14 -0
- package/types/dashboard/form-tests.d.ts +78 -0
- package/types/dashboard/form-verify-prize.d.ts +30 -3
- package/types/dashboard/input-editor.d.ts +9 -0
- package/types/dashboard/input-fields.d.ts +8 -5
- package/types/dashboard/input-file.d.ts +4 -0
- package/types/dashboard/input-resource.d.ts +1 -0
- package/types/dashboard/lib/ab-tests.d.ts +50 -0
- package/types/dashboard/lib/escape.d.ts +4 -0
- package/types/dashboard/lib/focus.d.ts +16 -0
- package/types/dashboard/lib/form-page.d.ts +25 -0
- package/types/dashboard/lib/item-list.d.ts +10 -5
- package/types/dashboard/lib/rail.d.ts +0 -1
- package/types/dashboard/lib/sms.d.ts +7 -0
- package/types/dashboard/modal.d.ts +3 -1
- package/types/dashboard/preview.d.ts +65 -10
- package/types/dashboard/recharts.d.ts +3 -0
- package/types/dashboard/swatch.d.ts +4 -0
- package/types/dashboard/template-dashboard.d.ts +3 -0
- package/types/dashboard/template-design.d.ts +30 -0
- package/types/dashboard/template-test-page.d.ts +69 -0
- package/types/dashboard/template-tests.d.ts +30 -0
- package/types/dashboard/template-variant.d.ts +18 -0
- package/types/icons/arrow-down-long.d.ts +5 -0
- package/types/icons/arrows-pointing-out.d.ts +5 -0
- package/types/icons/beaker.d.ts +5 -0
- package/types/icons/identification.d.ts +5 -0
- package/types/icons/lifebuoy.d.ts +5 -0
- package/types/icons/rectangle-group.d.ts +5 -0
- package/types/icons/rectangle-stack.d.ts +5 -0
- package/types/icons/shopping-bag.d.ts +5 -0
- package/types/icons/swatch.d.ts +5 -0
- package/types/icons/window.d.ts +5 -0
- package/types/icons/zoom-in.d.ts +5 -0
- package/types/input-answer.d.ts +15 -0
- package/types/input-select.d.ts +2 -0
- package/types/shared/button.d.ts +1 -1
- package/types/shared/document-pieces.d.ts +34 -0
- package/types/shared/lib/helpers.d.ts +22 -1
- package/types/shared/lib/motion.d.ts +2 -0
- package/types/shared/lib/video.d.ts +3 -0
- package/types/shared/sortable.d.ts +6 -0
- package/types/video.d.ts +18 -2
- package/dist/bridge/template-preview.js +0 -208
- package/dist/bridge/template-preview.mjs +0 -173
- package/dist/dashboard/device.js +0 -95
- package/dist/dashboard/device.mjs +0 -72
- package/dist/dashboard/form-organization-campaign-field-list.js +0 -425
- package/dist/dashboard/form-organization-campaign-field-list.mjs +0 -396
- package/dist/dashboard/item-row.js +0 -92
- package/dist/dashboard/item-row.mjs +0 -63
- package/types/bridge/template-preview.d.ts +0 -10
- package/types/dashboard/device.d.ts +0 -12
- package/types/dashboard/form-organization-campaign-field-list.d.ts +0 -36
- package/types/dashboard/item-row.d.ts +0 -25
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const ZoomIn = (props) => /* @__PURE__ */ jsx(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
...{
|
|
6
|
+
fill: "none",
|
|
7
|
+
stroke: "currentColor",
|
|
8
|
+
strokeWidth: 1.5,
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
...props
|
|
11
|
+
},
|
|
12
|
+
children: /* @__PURE__ */ jsx(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
...{
|
|
16
|
+
d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6",
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
var zoom_in_default = ZoomIn;
|
|
25
|
+
export {
|
|
26
|
+
zoom_in_default as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var input_answer_exports = {};
|
|
29
|
+
__export(input_answer_exports, {
|
|
30
|
+
accepts: () => accepts,
|
|
31
|
+
default: () => input_answer_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(input_answer_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_input_text = __toESM(require("./input-text"));
|
|
36
|
+
const accepts = (text) => /^\d*$/.test(text);
|
|
37
|
+
const InputAnswer = ({
|
|
38
|
+
label,
|
|
39
|
+
onChange,
|
|
40
|
+
style,
|
|
41
|
+
value
|
|
42
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
|
+
import_input_text.default,
|
|
44
|
+
{
|
|
45
|
+
...{
|
|
46
|
+
"aria-label": label,
|
|
47
|
+
autoComplete: "off",
|
|
48
|
+
inputMode: "numeric",
|
|
49
|
+
onChange: (text) => accepts(text) && onChange(text === "" ? null : Number(text)),
|
|
50
|
+
pattern: "[0-9]*",
|
|
51
|
+
style,
|
|
52
|
+
value: value ?? ""
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
var input_answer_default = InputAnswer;
|
|
57
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
+
0 && (module.exports = {
|
|
59
|
+
accepts
|
|
60
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import InputText from "./input-text.mjs";
|
|
3
|
+
const accepts = (text) => /^\d*$/.test(text);
|
|
4
|
+
const InputAnswer = ({
|
|
5
|
+
label,
|
|
6
|
+
onChange,
|
|
7
|
+
style,
|
|
8
|
+
value
|
|
9
|
+
}) => /* @__PURE__ */ jsx(
|
|
10
|
+
InputText,
|
|
11
|
+
{
|
|
12
|
+
...{
|
|
13
|
+
"aria-label": label,
|
|
14
|
+
autoComplete: "off",
|
|
15
|
+
inputMode: "numeric",
|
|
16
|
+
onChange: (text) => accepts(text) && onChange(text === "" ? null : Number(text)),
|
|
17
|
+
pattern: "[0-9]*",
|
|
18
|
+
style,
|
|
19
|
+
value: value ?? ""
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
var input_answer_default = InputAnswer;
|
|
24
|
+
export {
|
|
25
|
+
accepts,
|
|
26
|
+
input_answer_default as default
|
|
27
|
+
};
|
package/dist/input-checkbox.js
CHANGED
|
@@ -31,11 +31,13 @@ __export(input_checkbox_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(input_checkbox_exports);
|
|
33
33
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
+
var import_react = require("react");
|
|
34
35
|
var import_check = __toESM(require("./icons/check"));
|
|
35
36
|
var import_button = __toESM(require("./shared/button"));
|
|
36
37
|
var import_styles = require("./styles");
|
|
37
38
|
const InputCheckbox = ({
|
|
38
39
|
className,
|
|
40
|
+
id,
|
|
39
41
|
label,
|
|
40
42
|
labelId,
|
|
41
43
|
onChange,
|
|
@@ -43,6 +45,8 @@ const InputCheckbox = ({
|
|
|
43
45
|
value,
|
|
44
46
|
...rest
|
|
45
47
|
}) => {
|
|
48
|
+
const generated = (0, import_react.useId)();
|
|
49
|
+
const boxId = id || "checkbox-" + generated.replace(/:/g, "");
|
|
46
50
|
const classes = [
|
|
47
51
|
"inline-flex items-start space-x-2 w-full"
|
|
48
52
|
];
|
|
@@ -62,6 +66,7 @@ const InputCheckbox = ({
|
|
|
62
66
|
...{
|
|
63
67
|
"aria-checked": value ? true : false,
|
|
64
68
|
"aria-labelledby": labelId,
|
|
69
|
+
id: boxId,
|
|
65
70
|
inline: true,
|
|
66
71
|
onClick: () => onChange(value ? false : true),
|
|
67
72
|
role: "checkbox",
|
|
@@ -88,10 +93,11 @@ const InputCheckbox = ({
|
|
|
88
93
|
}
|
|
89
94
|
),
|
|
90
95
|
label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
91
|
-
"
|
|
96
|
+
"label",
|
|
92
97
|
{
|
|
93
98
|
...{
|
|
94
99
|
className: "leading-tight",
|
|
100
|
+
htmlFor: boxId,
|
|
95
101
|
id: labelId,
|
|
96
102
|
// A brand's text colour reaches the label with no page around it; unbranded it inherits.
|
|
97
103
|
...style && { style: (0, import_styles.textStyle)(style) }
|
package/dist/input-checkbox.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from "react";
|
|
2
3
|
import Check from "./icons/check.mjs";
|
|
3
4
|
import Button from "./shared/button.mjs";
|
|
4
5
|
import { inputCheckboxStyle, textStyle } from "./styles.mjs";
|
|
5
6
|
const InputCheckbox = ({
|
|
6
7
|
className,
|
|
8
|
+
id,
|
|
7
9
|
label,
|
|
8
10
|
labelId,
|
|
9
11
|
onChange,
|
|
@@ -11,6 +13,8 @@ const InputCheckbox = ({
|
|
|
11
13
|
value,
|
|
12
14
|
...rest
|
|
13
15
|
}) => {
|
|
16
|
+
const generated = useId();
|
|
17
|
+
const boxId = id || "checkbox-" + generated.replace(/:/g, "");
|
|
14
18
|
const classes = [
|
|
15
19
|
"inline-flex items-start space-x-2 w-full"
|
|
16
20
|
];
|
|
@@ -30,6 +34,7 @@ const InputCheckbox = ({
|
|
|
30
34
|
...{
|
|
31
35
|
"aria-checked": value ? true : false,
|
|
32
36
|
"aria-labelledby": labelId,
|
|
37
|
+
id: boxId,
|
|
33
38
|
inline: true,
|
|
34
39
|
onClick: () => onChange(value ? false : true),
|
|
35
40
|
role: "checkbox",
|
|
@@ -56,10 +61,11 @@ const InputCheckbox = ({
|
|
|
56
61
|
}
|
|
57
62
|
),
|
|
58
63
|
label && /* @__PURE__ */ jsx(
|
|
59
|
-
"
|
|
64
|
+
"label",
|
|
60
65
|
{
|
|
61
66
|
...{
|
|
62
67
|
className: "leading-tight",
|
|
68
|
+
htmlFor: boxId,
|
|
63
69
|
id: labelId,
|
|
64
70
|
// A brand's text colour reaches the label with no page around it; unbranded it inherits.
|
|
65
71
|
...style && { style: textStyle(style) }
|
package/dist/input-name.js
CHANGED
|
@@ -61,7 +61,7 @@ const InputName = ({
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
label: "First name",
|
|
64
|
+
label: "First name *",
|
|
65
65
|
style
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -85,7 +85,7 @@ const InputName = ({
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
label: "Last name",
|
|
88
|
+
label: "Last name *",
|
|
89
89
|
style
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -108,7 +108,7 @@ const InputName = ({
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
|
-
label: "Full name",
|
|
111
|
+
label: "Full name *",
|
|
112
112
|
style
|
|
113
113
|
}
|
|
114
114
|
}
|
package/dist/input-name.mjs
CHANGED
|
@@ -29,7 +29,7 @@ const InputName = ({
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
|
-
label: "First name",
|
|
32
|
+
label: "First name *",
|
|
33
33
|
style
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -53,7 +53,7 @@ const InputName = ({
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
label: "Last name",
|
|
56
|
+
label: "Last name *",
|
|
57
57
|
style
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -76,7 +76,7 @@ const InputName = ({
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
),
|
|
79
|
-
label: "Full name",
|
|
79
|
+
label: "Full name *",
|
|
80
80
|
style
|
|
81
81
|
}
|
|
82
82
|
}
|
package/dist/input-select.js
CHANGED
|
@@ -38,6 +38,8 @@ var import_styles = require("./styles");
|
|
|
38
38
|
const InputSelect = ({
|
|
39
39
|
onChange,
|
|
40
40
|
options = [],
|
|
41
|
+
// The disabled first option, read while nothing is chosen.
|
|
42
|
+
placeholder = "Select",
|
|
41
43
|
style,
|
|
42
44
|
value,
|
|
43
45
|
...rest
|
|
@@ -82,7 +84,7 @@ const InputSelect = ({
|
|
|
82
84
|
"aria-label": "Select option",
|
|
83
85
|
value: ""
|
|
84
86
|
},
|
|
85
|
-
children:
|
|
87
|
+
children: placeholder
|
|
86
88
|
}
|
|
87
89
|
),
|
|
88
90
|
options.map(({ label, option, value: optValue }, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
package/dist/input-select.mjs
CHANGED
|
@@ -6,6 +6,8 @@ import { inputStyle, textStyle } from "./styles.mjs";
|
|
|
6
6
|
const InputSelect = ({
|
|
7
7
|
onChange,
|
|
8
8
|
options = [],
|
|
9
|
+
// The disabled first option, read while nothing is chosen.
|
|
10
|
+
placeholder = "Select",
|
|
9
11
|
style,
|
|
10
12
|
value,
|
|
11
13
|
...rest
|
|
@@ -50,7 +52,7 @@ const InputSelect = ({
|
|
|
50
52
|
"aria-label": "Select option",
|
|
51
53
|
value: ""
|
|
52
54
|
},
|
|
53
|
-
children:
|
|
55
|
+
children: placeholder
|
|
54
56
|
}
|
|
55
57
|
),
|
|
56
58
|
options.map(({ label, option, value: optValue }, key) => /* @__PURE__ */ jsx(
|
package/dist/provider-font.js
CHANGED
|
@@ -22,6 +22,7 @@ __export(provider_font_exports, {
|
|
|
22
22
|
module.exports = __toCommonJS(provider_font_exports);
|
|
23
23
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
24
|
var import_react = require("react");
|
|
25
|
+
var import_drawbridge_utils = require("@drawbridge/drawbridge-utils");
|
|
25
26
|
var import_styles = require("./styles");
|
|
26
27
|
const defaults = {
|
|
27
28
|
family: "Roboto Flex",
|
|
@@ -39,7 +40,7 @@ const ProviderFont = (0, import_react.memo)(({
|
|
|
39
40
|
const headingFamily = (heading == null ? void 0 : heading.family) || defaults.family;
|
|
40
41
|
const same = headingFamily === bodyFamily;
|
|
41
42
|
const url2 = [
|
|
42
|
-
"https://fonts.googleapis.com/css?family=" +
|
|
43
|
+
"https://fonts.googleapis.com/css?family=" + (0, import_drawbridge_utils.googleFamily)(bodyFamily)
|
|
43
44
|
];
|
|
44
45
|
const fonts2 = {
|
|
45
46
|
body: {
|
|
@@ -52,12 +53,12 @@ const ProviderFont = (0, import_react.memo)(({
|
|
|
52
53
|
}
|
|
53
54
|
};
|
|
54
55
|
if (body == null ? void 0 : body.weight) {
|
|
55
|
-
url2.push(":" + body.weight);
|
|
56
56
|
fonts2.body.fontWeight = (0, import_styles.toFontWeight)(body.weight);
|
|
57
57
|
fonts2.body.fontStyle = (0, import_styles.toFontStyle)(body.weight);
|
|
58
58
|
}
|
|
59
|
+
url2.push(":" + ((body == null ? void 0 : body.weight) || "regular") + (/^700/.test((body == null ? void 0 : body.weight) || "") ? "" : ",700"));
|
|
59
60
|
if (!same) {
|
|
60
|
-
url2.push("%7C" +
|
|
61
|
+
url2.push("%7C" + (0, import_drawbridge_utils.googleFamily)(headingFamily));
|
|
61
62
|
}
|
|
62
63
|
if (heading == null ? void 0 : heading.weight) {
|
|
63
64
|
url2.push((same ? "," : ":") + heading.weight);
|
package/dist/provider-font.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment, memo, useMemo } from "react";
|
|
3
|
+
import { googleFamily } from "@drawbridge/drawbridge-utils";
|
|
3
4
|
import { toFontFamily, toFontStyle, toFontWeight } from "./styles.mjs";
|
|
4
5
|
const defaults = {
|
|
5
6
|
family: "Roboto Flex",
|
|
@@ -17,7 +18,7 @@ const ProviderFont = memo(({
|
|
|
17
18
|
const headingFamily = (heading == null ? void 0 : heading.family) || defaults.family;
|
|
18
19
|
const same = headingFamily === bodyFamily;
|
|
19
20
|
const url2 = [
|
|
20
|
-
"https://fonts.googleapis.com/css?family=" + bodyFamily
|
|
21
|
+
"https://fonts.googleapis.com/css?family=" + googleFamily(bodyFamily)
|
|
21
22
|
];
|
|
22
23
|
const fonts2 = {
|
|
23
24
|
body: {
|
|
@@ -30,12 +31,12 @@ const ProviderFont = memo(({
|
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
33
|
if (body == null ? void 0 : body.weight) {
|
|
33
|
-
url2.push(":" + body.weight);
|
|
34
34
|
fonts2.body.fontWeight = toFontWeight(body.weight);
|
|
35
35
|
fonts2.body.fontStyle = toFontStyle(body.weight);
|
|
36
36
|
}
|
|
37
|
+
url2.push(":" + ((body == null ? void 0 : body.weight) || "regular") + (/^700/.test((body == null ? void 0 : body.weight) || "") ? "" : ",700"));
|
|
37
38
|
if (!same) {
|
|
38
|
-
url2.push("%7C" + headingFamily
|
|
39
|
+
url2.push("%7C" + googleFamily(headingFamily));
|
|
39
40
|
}
|
|
40
41
|
if (heading == null ? void 0 : heading.weight) {
|
|
41
42
|
url2.push((same ? "," : ":") + heading.weight);
|
package/dist/shared/badge.js
CHANGED
|
@@ -27,6 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
var badge_exports = {};
|
|
29
29
|
__export(badge_exports, {
|
|
30
|
+
Disabled: () => Disabled,
|
|
30
31
|
default: () => badge_default
|
|
31
32
|
});
|
|
32
33
|
module.exports = __toCommonJS(badge_exports);
|
|
@@ -85,4 +86,18 @@ const Badge = ({
|
|
|
85
86
|
}
|
|
86
87
|
);
|
|
87
88
|
};
|
|
89
|
+
const Disabled = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
90
|
+
Badge,
|
|
91
|
+
{
|
|
92
|
+
...{
|
|
93
|
+
size: "small",
|
|
94
|
+
type: "secondary"
|
|
95
|
+
},
|
|
96
|
+
children: "Disabled"
|
|
97
|
+
}
|
|
98
|
+
);
|
|
88
99
|
var badge_default = Badge;
|
|
100
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
101
|
+
0 && (module.exports = {
|
|
102
|
+
Disabled
|
|
103
|
+
});
|
package/dist/shared/badge.mjs
CHANGED
|
@@ -53,7 +53,18 @@ const Badge = ({
|
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
55
|
};
|
|
56
|
+
const Disabled = () => /* @__PURE__ */ jsx(
|
|
57
|
+
Badge,
|
|
58
|
+
{
|
|
59
|
+
...{
|
|
60
|
+
size: "small",
|
|
61
|
+
type: "secondary"
|
|
62
|
+
},
|
|
63
|
+
children: "Disabled"
|
|
64
|
+
}
|
|
65
|
+
);
|
|
56
66
|
var badge_default = Badge;
|
|
57
67
|
export {
|
|
68
|
+
Disabled,
|
|
58
69
|
badge_default as default
|
|
59
70
|
};
|
package/dist/shared/carousel.js
CHANGED
|
@@ -87,7 +87,7 @@ const Carousel = ({
|
|
|
87
87
|
[api, slides.length]
|
|
88
88
|
);
|
|
89
89
|
if (slides.length === 0) return null;
|
|
90
|
-
|
|
90
|
+
const single = slides.length === 1;
|
|
91
91
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
92
92
|
"div",
|
|
93
93
|
{
|
|
@@ -100,7 +100,9 @@ const Carousel = ({
|
|
|
100
100
|
{
|
|
101
101
|
...{
|
|
102
102
|
className: "overflow-hidden" + (autoHeight ? " transition-[height] duration-300" : ""),
|
|
103
|
-
|
|
103
|
+
...!single && {
|
|
104
|
+
ref
|
|
105
|
+
},
|
|
104
106
|
...autoHeight && height && {
|
|
105
107
|
style: { height }
|
|
106
108
|
}
|
|
@@ -116,12 +118,14 @@ const Carousel = ({
|
|
|
116
118
|
"div",
|
|
117
119
|
{
|
|
118
120
|
...{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
...!single && {
|
|
122
|
+
"aria-label": label + " " + (key + 1) + " of " + slides.length,
|
|
123
|
+
"aria-roledescription": "slide",
|
|
124
|
+
role: "group"
|
|
125
|
+
},
|
|
121
126
|
// A column, so a slide that draws its own flex-[0_0_100%]
|
|
122
127
|
// wrapper (the dashboard tiles) still fills the slide.
|
|
123
|
-
className: "flex min-w-0 flex-[0_0_100%] flex-col"
|
|
124
|
-
role: "group"
|
|
128
|
+
className: "flex min-w-0 flex-[0_0_100%] flex-col"
|
|
125
129
|
},
|
|
126
130
|
children: slide
|
|
127
131
|
},
|
|
@@ -131,7 +135,7 @@ const Carousel = ({
|
|
|
131
135
|
)
|
|
132
136
|
}
|
|
133
137
|
),
|
|
134
|
-
dots && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
138
|
+
dots && !single && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
135
139
|
"div",
|
|
136
140
|
{
|
|
137
141
|
...{
|
package/dist/shared/carousel.mjs
CHANGED
|
@@ -55,7 +55,7 @@ const Carousel = ({
|
|
|
55
55
|
[api, slides.length]
|
|
56
56
|
);
|
|
57
57
|
if (slides.length === 0) return null;
|
|
58
|
-
|
|
58
|
+
const single = slides.length === 1;
|
|
59
59
|
return /* @__PURE__ */ jsxs(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
@@ -68,7 +68,9 @@ const Carousel = ({
|
|
|
68
68
|
{
|
|
69
69
|
...{
|
|
70
70
|
className: "overflow-hidden" + (autoHeight ? " transition-[height] duration-300" : ""),
|
|
71
|
-
|
|
71
|
+
...!single && {
|
|
72
|
+
ref
|
|
73
|
+
},
|
|
72
74
|
...autoHeight && height && {
|
|
73
75
|
style: { height }
|
|
74
76
|
}
|
|
@@ -84,12 +86,14 @@ const Carousel = ({
|
|
|
84
86
|
"div",
|
|
85
87
|
{
|
|
86
88
|
...{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
...!single && {
|
|
90
|
+
"aria-label": label + " " + (key + 1) + " of " + slides.length,
|
|
91
|
+
"aria-roledescription": "slide",
|
|
92
|
+
role: "group"
|
|
93
|
+
},
|
|
89
94
|
// A column, so a slide that draws its own flex-[0_0_100%]
|
|
90
95
|
// wrapper (the dashboard tiles) still fills the slide.
|
|
91
|
-
className: "flex min-w-0 flex-[0_0_100%] flex-col"
|
|
92
|
-
role: "group"
|
|
96
|
+
className: "flex min-w-0 flex-[0_0_100%] flex-col"
|
|
93
97
|
},
|
|
94
98
|
children: slide
|
|
95
99
|
},
|
|
@@ -99,7 +103,7 @@ const Carousel = ({
|
|
|
99
103
|
)
|
|
100
104
|
}
|
|
101
105
|
),
|
|
102
|
-
dots && /* @__PURE__ */ jsx(
|
|
106
|
+
dots && !single && /* @__PURE__ */ jsx(
|
|
103
107
|
"div",
|
|
104
108
|
{
|
|
105
109
|
...{
|