@drawbridge/components 0.1.23 → 0.1.24
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/bridge/form-subdomain-embed.js +1 -0
- package/dist/bridge/form-subdomain-embed.mjs +1 -0
- package/dist/bridge/form-subdomain.js +5 -2
- package/dist/bridge/form-subdomain.mjs +5 -2
- package/dist/bridge/template-modal.js +2 -2
- package/dist/bridge/template-modal.mjs +2 -2
- package/dist/dashboard/buttons-subscription.js +27 -66
- package/dist/dashboard/buttons-subscription.mjs +27 -65
- package/dist/dashboard/card-payment-method.js +1 -1
- package/dist/dashboard/card-payment-method.mjs +1 -1
- package/dist/dashboard/card-section.js +2 -2
- package/dist/dashboard/card-section.mjs +2 -2
- package/dist/dashboard/card-setting.js +3 -4
- package/dist/dashboard/card-setting.mjs +3 -4
- package/dist/dashboard/card-task.js +4 -22
- package/dist/dashboard/card-task.mjs +4 -22
- package/dist/dashboard/card-tile.js +6 -6
- package/dist/dashboard/card-tile.mjs +6 -6
- package/dist/dashboard/drawer.js +2 -7
- package/dist/dashboard/drawer.mjs +3 -8
- package/dist/dashboard/form-organization-campaign.js +1 -1
- package/dist/dashboard/form-organization-campaign.mjs +1 -1
- package/dist/dashboard/form-organization-identity.js +3 -3
- package/dist/dashboard/form-organization-identity.mjs +3 -3
- package/dist/dashboard/form-organization-workflow.js +9 -7
- package/dist/dashboard/form-organization-workflow.mjs +9 -7
- package/dist/dashboard/form-organization.js +40 -3
- package/dist/dashboard/form-organization.mjs +40 -3
- package/dist/dashboard/guide.js +238 -0
- package/dist/dashboard/guide.mjs +209 -0
- package/dist/dashboard/input-combobox.js +2 -7
- package/dist/dashboard/input-combobox.mjs +2 -7
- package/dist/dashboard/list.js +1 -1
- package/dist/dashboard/list.mjs +1 -1
- package/dist/dashboard/menu.js +96 -188
- package/dist/dashboard/menu.mjs +97 -189
- package/dist/dashboard/modal.js +3 -9
- package/dist/dashboard/modal.mjs +4 -10
- package/dist/dashboard/notice.js +3 -5
- package/dist/dashboard/notice.mjs +3 -5
- package/dist/dashboard/table-cell-title.js +0 -2
- package/dist/dashboard/table-cell-title.mjs +0 -2
- package/dist/dashboard/table.js +20 -61
- package/dist/dashboard/table.mjs +20 -61
- package/dist/dashboard/template-dashboard.js +133 -35
- package/dist/dashboard/template-dashboard.mjs +134 -36
- package/dist/dashboard/template-socket.js +3 -19
- package/dist/dashboard/template-socket.mjs +3 -19
- package/dist/dashboard/template-ui.js +186 -150
- package/dist/dashboard/template-ui.mjs +187 -151
- package/dist/shared/lib/helpers.js +2 -9
- package/dist/shared/lib/helpers.mjs +2 -9
- package/dist/shared/overlay.js +3 -5
- package/dist/shared/overlay.mjs +3 -5
- package/package.json +13 -28
- package/types/dashboard/card-task.d.ts +1 -5
- package/types/dashboard/guide.d.ts +23 -0
- package/types/dashboard/table.d.ts +1 -3
- package/types/dashboard/template-dashboard.d.ts +1 -4
- package/types/dashboard/template-ui.d.ts +2 -2
- package/dist/dashboard/lib/escape.js +0 -48
- package/dist/dashboard/lib/escape.mjs +0 -25
- package/dist/dashboard/lib/rail.js +0 -75
- package/dist/dashboard/lib/rail.mjs +0 -46
- package/dist/dashboard/lib/throttle.js +0 -57
- package/dist/dashboard/lib/throttle.mjs +0 -34
- package/dist/dashboard/template-rail.js +0 -674
- package/dist/dashboard/template-rail.mjs +0 -640
- package/dist/icons/book-open.js +0 -46
- package/dist/icons/book-open.mjs +0 -27
- package/dist/icons/task.js +0 -46
- package/dist/icons/task.mjs +0 -27
- package/dist/shared/lib/motion.js +0 -27
- package/dist/shared/lib/motion.mjs +0 -4
- package/types/dashboard/lib/rail.d.ts +0 -32
- package/types/dashboard/lib/throttle.d.ts +0 -5
- package/types/dashboard/template-rail.d.ts +0 -36
- package/types/icons/book-open.d.ts +0 -5
- package/types/icons/task.d.ts +0 -5
package/dist/icons/task.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var task_exports = {};
|
|
19
|
-
__export(task_exports, {
|
|
20
|
-
default: () => task_default
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(task_exports);
|
|
23
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
|
-
const Task = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
25
|
-
"svg",
|
|
26
|
-
{
|
|
27
|
-
...{
|
|
28
|
-
fill: "none",
|
|
29
|
-
stroke: "currentColor",
|
|
30
|
-
strokeWidth: 1.5,
|
|
31
|
-
viewBox: "0 0 24 24",
|
|
32
|
-
...props
|
|
33
|
-
},
|
|
34
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
35
|
-
"path",
|
|
36
|
-
{
|
|
37
|
-
...{
|
|
38
|
-
d: "M9 4.875H7.125A2.625 2.625 0 0 0 4.5 7.5v10.5a2.625 2.625 0 0 0 2.625 2.625h9.75A2.625 2.625 0 0 0 19.5 18V7.5a2.625 2.625 0 0 0-2.625-2.625H15M10.5 3.375h3a1.5 1.5 0 0 1 1.5 1.5v.75a1.5 1.5 0 0 1-1.5 1.5h-3a1.5 1.5 0 0 1-1.5-1.5v-.75a1.5 1.5 0 0 1 1.5-1.5ZM10.125 13.125l1.125 1.5 2.813-2.25",
|
|
39
|
-
strokeLinecap: "round",
|
|
40
|
-
strokeLinejoin: "round"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
var task_default = Task;
|
package/dist/icons/task.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
const Task = (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: "M9 4.875H7.125A2.625 2.625 0 0 0 4.5 7.5v10.5a2.625 2.625 0 0 0 2.625 2.625h9.75A2.625 2.625 0 0 0 19.5 18V7.5a2.625 2.625 0 0 0-2.625-2.625H15M10.5 3.375h3a1.5 1.5 0 0 1 1.5 1.5v.75a1.5 1.5 0 0 1-1.5 1.5h-3a1.5 1.5 0 0 1-1.5-1.5v-.75a1.5 1.5 0 0 1 1.5-1.5ZM10.125 13.125l1.125 1.5 2.813-2.25",
|
|
17
|
-
strokeLinecap: "round",
|
|
18
|
-
strokeLinejoin: "round"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
)
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
var task_default = Task;
|
|
25
|
-
export {
|
|
26
|
-
task_default as default
|
|
27
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var motion_exports = {};
|
|
19
|
-
__export(motion_exports, {
|
|
20
|
-
motion: () => motion
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(motion_exports);
|
|
23
|
-
const motion = "transition ease-out duration-200 data-[leave]:ease-in data-[leave]:duration-150 motion-reduce:transition-none";
|
|
24
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
-
0 && (module.exports = {
|
|
26
|
-
motion
|
|
27
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export interface RailItem {
|
|
2
|
-
area?: string;
|
|
3
|
-
button?: string;
|
|
4
|
-
href?: string;
|
|
5
|
-
kind?: 'recommended' | 'required';
|
|
6
|
-
title?: string;
|
|
7
|
-
why?: string;
|
|
8
|
-
[ key: string ]: unknown;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface RailTasks {
|
|
12
|
-
items?: RailItem[];
|
|
13
|
-
list?: Record<string, { count?: number; items?: RailItem[] }>;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface RailItemsArgs {
|
|
17
|
-
account?: { tasks?: RailTasks } | null;
|
|
18
|
-
campaign?: { tasks?: RailTasks } | null;
|
|
19
|
-
organization?: { tasks?: RailTasks } | null;
|
|
20
|
-
page?: { tasks?: RailTasks } | null;
|
|
21
|
-
params?: Record<string, string | string[] | undefined>;
|
|
22
|
-
path?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export function railItems( args: RailItemsArgs ): RailItem[];
|
|
26
|
-
export function railCount( items?: RailItem[] ): number;
|
|
27
|
-
export function railFirst( items?: RailItem[] ): RailItem | undefined;
|
|
28
|
-
export function railLead( count: number ): string;
|
|
29
|
-
export function railView( args: { guide?: unknown; panel?: string | null } ): string | null;
|
|
30
|
-
export function railOverlap( a: DOMRectReadOnly, b: DOMRectReadOnly ): boolean;
|
|
31
|
-
export function railOnScreen( rect: DOMRectReadOnly, viewport: { height: number; width: number } ): boolean;
|
|
32
|
-
export function railTabTarget( args: { active: unknown; items: unknown[]; shift: boolean } ): unknown;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface TemplateRailGuideStep {
|
|
4
|
-
content: string[];
|
|
5
|
-
// A data-guide selector, or 'body' for a step about the whole screen.
|
|
6
|
-
target: string;
|
|
7
|
-
title: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface TemplateRailGuide {
|
|
11
|
-
steps: TemplateRailGuideStep[];
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface TemplateRailProps {
|
|
15
|
-
// The responses the page already loaded, as TemplateUi holds them.
|
|
16
|
-
account?: { tasks?: unknown } | null;
|
|
17
|
-
campaign?: { tasks?: unknown } | null;
|
|
18
|
-
// The page, left of the panel and the rail.
|
|
19
|
-
children?: ReactNode;
|
|
20
|
-
// This screen's guide; with none, the rail shows no Screen guide button.
|
|
21
|
-
guide?: TemplateRailGuide;
|
|
22
|
-
organization?: { tasks?: unknown } | null;
|
|
23
|
-
params?: Record<string, string | string[] | undefined>;
|
|
24
|
-
path?: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// The open panel, from the query cache: 'next', 'guide' or null.
|
|
28
|
-
export function useRail(): { panel: string | null; set: ( panel: string | null ) => void };
|
|
29
|
-
|
|
30
|
-
// The book icon in the phone's black bar. With no guide, nothing.
|
|
31
|
-
export const TemplateRailBook: ComponentType<{ guide?: TemplateRailGuide }>;
|
|
32
|
-
|
|
33
|
-
// The page's column: the page, the panel and the rail.
|
|
34
|
-
declare const TemplateRail: ComponentType<TemplateRailProps>;
|
|
35
|
-
|
|
36
|
-
export default TemplateRail;
|