@drawbridge/components 0.1.23 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/bridge/form-subdomain-embed.js +1 -0
  2. package/dist/bridge/form-subdomain-embed.mjs +1 -0
  3. package/dist/bridge/form-subdomain.js +5 -2
  4. package/dist/bridge/form-subdomain.mjs +5 -2
  5. package/dist/bridge/template-modal.js +2 -2
  6. package/dist/bridge/template-modal.mjs +2 -2
  7. package/dist/dashboard/buttons-subscription.js +27 -66
  8. package/dist/dashboard/buttons-subscription.mjs +27 -65
  9. package/dist/dashboard/card-payment-method.js +1 -1
  10. package/dist/dashboard/card-payment-method.mjs +1 -1
  11. package/dist/dashboard/card-section.js +2 -2
  12. package/dist/dashboard/card-section.mjs +2 -2
  13. package/dist/dashboard/card-setting.js +3 -4
  14. package/dist/dashboard/card-setting.mjs +3 -4
  15. package/dist/dashboard/card-task.js +4 -22
  16. package/dist/dashboard/card-task.mjs +4 -22
  17. package/dist/dashboard/card-tile.js +6 -6
  18. package/dist/dashboard/card-tile.mjs +6 -6
  19. package/dist/dashboard/drawer.js +2 -7
  20. package/dist/dashboard/drawer.mjs +3 -8
  21. package/dist/dashboard/form-organization-campaign-integration-gtm.js +6 -5
  22. package/dist/dashboard/form-organization-campaign-integration-gtm.mjs +6 -5
  23. package/dist/dashboard/form-organization-campaign.js +1 -1
  24. package/dist/dashboard/form-organization-campaign.mjs +1 -1
  25. package/dist/dashboard/form-organization-identity.js +3 -3
  26. package/dist/dashboard/form-organization-identity.mjs +3 -3
  27. package/dist/dashboard/form-organization-workflow.js +9 -7
  28. package/dist/dashboard/form-organization-workflow.mjs +9 -7
  29. package/dist/dashboard/form-organization.js +40 -3
  30. package/dist/dashboard/form-organization.mjs +40 -3
  31. package/dist/dashboard/guide.js +238 -0
  32. package/dist/dashboard/guide.mjs +209 -0
  33. package/dist/dashboard/input-combobox.js +2 -7
  34. package/dist/dashboard/input-combobox.mjs +2 -7
  35. package/dist/dashboard/list.js +1 -1
  36. package/dist/dashboard/list.mjs +1 -1
  37. package/dist/dashboard/menu.js +96 -188
  38. package/dist/dashboard/menu.mjs +97 -189
  39. package/dist/dashboard/modal.js +3 -9
  40. package/dist/dashboard/modal.mjs +4 -10
  41. package/dist/dashboard/notice.js +3 -5
  42. package/dist/dashboard/notice.mjs +3 -5
  43. package/dist/dashboard/table-cell-title.js +0 -2
  44. package/dist/dashboard/table-cell-title.mjs +0 -2
  45. package/dist/dashboard/table.js +20 -61
  46. package/dist/dashboard/table.mjs +20 -61
  47. package/dist/dashboard/template-dashboard.js +133 -35
  48. package/dist/dashboard/template-dashboard.mjs +134 -36
  49. package/dist/dashboard/template-socket.js +3 -19
  50. package/dist/dashboard/template-socket.mjs +3 -19
  51. package/dist/dashboard/template-ui.js +186 -150
  52. package/dist/dashboard/template-ui.mjs +187 -151
  53. package/dist/shared/lib/helpers.js +2 -9
  54. package/dist/shared/lib/helpers.mjs +2 -9
  55. package/dist/shared/overlay.js +3 -5
  56. package/dist/shared/overlay.mjs +3 -5
  57. package/package.json +13 -28
  58. package/types/dashboard/card-task.d.ts +1 -5
  59. package/types/dashboard/guide.d.ts +23 -0
  60. package/types/dashboard/table.d.ts +1 -3
  61. package/types/dashboard/template-dashboard.d.ts +1 -4
  62. package/types/dashboard/template-ui.d.ts +2 -2
  63. package/dist/dashboard/lib/escape.js +0 -48
  64. package/dist/dashboard/lib/escape.mjs +0 -25
  65. package/dist/dashboard/lib/rail.js +0 -75
  66. package/dist/dashboard/lib/rail.mjs +0 -46
  67. package/dist/dashboard/lib/throttle.js +0 -57
  68. package/dist/dashboard/lib/throttle.mjs +0 -34
  69. package/dist/dashboard/template-rail.js +0 -674
  70. package/dist/dashboard/template-rail.mjs +0 -640
  71. package/dist/icons/book-open.js +0 -46
  72. package/dist/icons/book-open.mjs +0 -27
  73. package/dist/icons/task.js +0 -46
  74. package/dist/icons/task.mjs +0 -27
  75. package/dist/shared/lib/motion.js +0 -27
  76. package/dist/shared/lib/motion.mjs +0 -4
  77. package/types/dashboard/lib/rail.d.ts +0 -32
  78. package/types/dashboard/lib/throttle.d.ts +0 -5
  79. package/types/dashboard/template-rail.d.ts +0 -36
  80. package/types/icons/book-open.d.ts +0 -5
  81. package/types/icons/task.d.ts +0 -5
@@ -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;
@@ -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,4 +0,0 @@
1
- const motion = "transition ease-out duration-200 data-[leave]:ease-in data-[leave]:duration-150 motion-reduce:transition-none";
2
- export {
3
- motion
4
- };
@@ -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,5 +0,0 @@
1
- export function trailingThrottle( args: {
2
- now?: () => number;
3
- schedule?: ( run: () => void, wait: number ) => unknown;
4
- wait: number;
5
- } ): ( key: string, run: () => void ) => void;
@@ -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;
@@ -1,5 +0,0 @@
1
- import { ComponentType, SVGProps } from 'react';
2
-
3
- declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
-
5
- export default Icon;
@@ -1,5 +0,0 @@
1
- import { ComponentType, SVGProps } from 'react';
2
-
3
- declare const Icon: ComponentType<SVGProps<SVGSVGElement>>;
4
-
5
- export default Icon;