@drawbridge/components 0.1.30 → 0.1.32
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/template-modal.js +2 -1
- package/dist/bridge/template-modal.mjs +2 -1
- package/dist/dashboard/buttons-subscription.js +65 -20
- package/dist/dashboard/buttons-subscription.mjs +64 -20
- 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 +4 -3
- package/dist/dashboard/card-setting.mjs +4 -3
- package/dist/dashboard/card-task.js +22 -4
- package/dist/dashboard/card-task.mjs +22 -4
- package/dist/dashboard/card-tile.js +6 -6
- package/dist/dashboard/card-tile.mjs +6 -6
- package/dist/dashboard/drawer.js +7 -2
- package/dist/dashboard/drawer.mjs +8 -3
- package/dist/dashboard/form-organization-workflow.js +7 -3
- package/dist/dashboard/form-organization-workflow.mjs +7 -3
- package/dist/dashboard/input-combobox.js +7 -2
- package/dist/dashboard/input-combobox.mjs +7 -2
- package/dist/dashboard/lib/escape.js +48 -0
- package/dist/dashboard/lib/escape.mjs +25 -0
- package/dist/dashboard/lib/rail.js +75 -0
- package/dist/dashboard/lib/rail.mjs +46 -0
- package/dist/dashboard/lib/throttle.js +57 -0
- package/dist/dashboard/lib/throttle.mjs +34 -0
- package/dist/dashboard/list.js +1 -1
- package/dist/dashboard/list.mjs +1 -1
- package/dist/dashboard/menu.js +188 -96
- package/dist/dashboard/menu.mjs +189 -97
- package/dist/dashboard/modal.js +9 -3
- package/dist/dashboard/modal.mjs +10 -4
- package/dist/dashboard/notice.js +5 -3
- package/dist/dashboard/notice.mjs +5 -3
- package/dist/dashboard/table-cell-title.js +2 -0
- package/dist/dashboard/table-cell-title.mjs +2 -0
- package/dist/dashboard/table.js +61 -20
- package/dist/dashboard/table.mjs +61 -20
- package/dist/dashboard/template-dashboard.js +35 -133
- package/dist/dashboard/template-dashboard.mjs +36 -134
- package/dist/dashboard/template-rail.js +674 -0
- package/dist/dashboard/template-rail.mjs +640 -0
- package/dist/dashboard/template-socket.js +23 -3
- package/dist/dashboard/template-socket.mjs +23 -3
- package/dist/dashboard/template-ui.js +150 -186
- package/dist/dashboard/template-ui.mjs +151 -187
- package/dist/icons/book-open.js +46 -0
- package/dist/icons/book-open.mjs +27 -0
- package/dist/icons/task.js +46 -0
- package/dist/icons/task.mjs +27 -0
- package/dist/shared/lib/helpers.js +9 -2
- package/dist/shared/lib/helpers.mjs +9 -2
- package/dist/shared/lib/motion.js +27 -0
- package/dist/shared/lib/motion.mjs +4 -0
- package/dist/shared/overlay.js +5 -3
- package/dist/shared/overlay.mjs +5 -3
- package/package.json +28 -13
- package/types/dashboard/card-task.d.ts +5 -1
- package/types/dashboard/lib/rail.d.ts +32 -0
- package/types/dashboard/lib/throttle.d.ts +5 -0
- package/types/dashboard/table.d.ts +3 -1
- package/types/dashboard/template-dashboard.d.ts +4 -1
- package/types/dashboard/template-rail.d.ts +36 -0
- package/types/dashboard/template-ui.d.ts +2 -2
- package/types/icons/book-open.d.ts +5 -0
- package/types/icons/task.d.ts +5 -0
- package/dist/dashboard/guide.js +0 -238
- package/dist/dashboard/guide.mjs +0 -209
- package/types/dashboard/guide.d.ts +0 -23
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Fragment, useContext, useMemo
|
|
3
|
+
import { Fragment, useContext, useMemo } from "react";
|
|
4
4
|
import { useParams, usePathname } from "next/navigation";
|
|
5
5
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
6
6
|
import { useModal } from "./lib/hooks.mjs";
|
|
7
7
|
import WrapperGradient from "../wrapper-gradient.mjs";
|
|
8
|
-
import
|
|
8
|
+
import TemplateRail, { TemplateRailBook } from "./template-rail.mjs";
|
|
9
9
|
import { MenuAccount, MenuAccountDropdown, MenuAdmin, MenuApp, MenuCampaign, MenuOrganization } from "./menu.mjs";
|
|
10
10
|
import MenuIcon from "../icons/menu.mjs";
|
|
11
11
|
import Switch from "../icons/switch.mjs";
|
|
@@ -20,7 +20,6 @@ const offsets = {
|
|
|
20
20
|
paddingTop: "pt-16 md:pt-0"
|
|
21
21
|
};
|
|
22
22
|
const isAccountPath = (path) => path === "/account" || path.startsWith("/account/");
|
|
23
|
-
let timeout;
|
|
24
23
|
const TemplateUIHeaderBack = ({
|
|
25
24
|
href,
|
|
26
25
|
icon: Icon = ArrowLeft,
|
|
@@ -92,6 +91,7 @@ const TemplateUiHeader = ({
|
|
|
92
91
|
active,
|
|
93
92
|
campaign = {},
|
|
94
93
|
className,
|
|
94
|
+
guide,
|
|
95
95
|
organization = {},
|
|
96
96
|
params,
|
|
97
97
|
path
|
|
@@ -155,6 +155,14 @@ const TemplateUiHeader = ({
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
),
|
|
158
|
+
/* @__PURE__ */ jsx(
|
|
159
|
+
TemplateRailBook,
|
|
160
|
+
{
|
|
161
|
+
...{
|
|
162
|
+
guide
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
),
|
|
158
166
|
/* @__PURE__ */ jsx(
|
|
159
167
|
"div",
|
|
160
168
|
{
|
|
@@ -255,21 +263,11 @@ const TemplateUi = ({
|
|
|
255
263
|
queryKey: ["campaign", params.campaign]
|
|
256
264
|
});
|
|
257
265
|
const guide = (_b = (_a = account == null ? void 0 : account.data) == null ? void 0 : _a.guide) == null ? void 0 : _b[guideId];
|
|
258
|
-
const [run, setRun] = useState(false);
|
|
259
266
|
const modal = useModal({
|
|
260
267
|
queryClient
|
|
261
268
|
});
|
|
262
269
|
const actions = useMemo(
|
|
263
270
|
() => {
|
|
264
|
-
const reset = () => {
|
|
265
|
-
modal.close();
|
|
266
|
-
queryClient.setQueryData(
|
|
267
|
-
["menu"],
|
|
268
|
-
{
|
|
269
|
-
active: false
|
|
270
|
-
}
|
|
271
|
-
);
|
|
272
|
-
};
|
|
273
271
|
const menu2 = () => {
|
|
274
272
|
queryClient.setQueryData(
|
|
275
273
|
["menu"],
|
|
@@ -279,10 +277,6 @@ const TemplateUi = ({
|
|
|
279
277
|
);
|
|
280
278
|
};
|
|
281
279
|
return {
|
|
282
|
-
guide: () => {
|
|
283
|
-
reset();
|
|
284
|
-
setRun(true);
|
|
285
|
-
},
|
|
286
280
|
signout: () => {
|
|
287
281
|
modal.open({
|
|
288
282
|
message: /* @__PURE__ */ jsxs(
|
|
@@ -319,189 +313,159 @@ const TemplateUi = ({
|
|
|
319
313
|
},
|
|
320
314
|
[queryClient, modal]
|
|
321
315
|
);
|
|
322
|
-
return /* @__PURE__ */ jsxs(
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
{
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
() => {
|
|
342
|
-
setRun(true);
|
|
343
|
-
},
|
|
344
|
-
step.data[key].timeout
|
|
345
|
-
);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
if (type === "tour:end") {
|
|
349
|
-
setRun(false);
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
run
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
),
|
|
356
|
-
/* @__PURE__ */ jsxs(
|
|
357
|
-
"div",
|
|
358
|
-
{
|
|
359
|
-
...{
|
|
360
|
-
className: "flex flex-col h-dvh overflow-hidden md:flex-row " + offsets.paddingTop
|
|
361
|
-
},
|
|
362
|
-
children: [
|
|
363
|
-
/* @__PURE__ */ jsx(
|
|
364
|
-
TemplateUiHeader,
|
|
365
|
-
{
|
|
366
|
-
...{
|
|
367
|
-
actions,
|
|
368
|
-
active: (_c = menu == null ? void 0 : menu.data) == null ? void 0 : _c.active,
|
|
369
|
-
campaign: campaign == null ? void 0 : campaign.data,
|
|
370
|
-
className: "z-30 fixed top-0 left-0 md:hidden",
|
|
371
|
-
organization: organization == null ? void 0 : organization.data,
|
|
372
|
-
params,
|
|
373
|
-
path
|
|
374
|
-
}
|
|
316
|
+
return /* @__PURE__ */ jsxs(
|
|
317
|
+
"div",
|
|
318
|
+
{
|
|
319
|
+
...{
|
|
320
|
+
className: "flex flex-col h-dvh overflow-hidden md:flex-row " + offsets.paddingTop
|
|
321
|
+
},
|
|
322
|
+
children: [
|
|
323
|
+
/* @__PURE__ */ jsx(
|
|
324
|
+
TemplateUiHeader,
|
|
325
|
+
{
|
|
326
|
+
...{
|
|
327
|
+
actions,
|
|
328
|
+
active: (_c = menu == null ? void 0 : menu.data) == null ? void 0 : _c.active,
|
|
329
|
+
campaign: campaign == null ? void 0 : campaign.data,
|
|
330
|
+
className: "z-30 fixed top-0 left-0 md:hidden",
|
|
331
|
+
guide,
|
|
332
|
+
organization: organization == null ? void 0 : organization.data,
|
|
333
|
+
params,
|
|
334
|
+
path
|
|
375
335
|
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
336
|
+
}
|
|
337
|
+
),
|
|
338
|
+
/* @__PURE__ */ jsxs(
|
|
339
|
+
"div",
|
|
340
|
+
{
|
|
341
|
+
...{
|
|
342
|
+
className: "z-[25] fixed top-0 left-0 w-full flex flex-col justify-between bg-black h-full transition duration-200 ease-out motion-reduce:transition-none md:z-0 md:relative md:w-1/3 lg:w-1/4 xl:w-1/5 " + (((_d = menu == null ? void 0 : menu.data) == null ? void 0 : _d.active) ? "translate-y-0 " + offsets.paddingTop : "-translate-y-full md:translate-y-0")
|
|
343
|
+
},
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ jsx(
|
|
346
|
+
TemplateUiHeader,
|
|
347
|
+
{
|
|
348
|
+
...{
|
|
349
|
+
actions,
|
|
350
|
+
active: (_e = menu == null ? void 0 : menu.data) == null ? void 0 : _e.active,
|
|
351
|
+
campaign: campaign == null ? void 0 : campaign.data,
|
|
352
|
+
className: "hidden md:flex border-b border-gray-dark relative z-[3]",
|
|
353
|
+
organization: organization == null ? void 0 : organization.data,
|
|
354
|
+
params,
|
|
355
|
+
path
|
|
396
356
|
}
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
357
|
+
}
|
|
358
|
+
),
|
|
359
|
+
(params == null ? void 0 : params.organization) && !isAccountPath(path) && !path.includes("/admin") && /* @__PURE__ */ jsx(
|
|
360
|
+
TemplateUiBand,
|
|
361
|
+
{
|
|
362
|
+
...{
|
|
363
|
+
record: params.campaign ? campaign == null ? void 0 : campaign.data : organization == null ? void 0 : organization.data
|
|
404
364
|
}
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
},
|
|
425
|
-
params.organization + "-" + params.campaign
|
|
426
|
-
) : /* @__PURE__ */ jsx(
|
|
427
|
-
MenuOrganization,
|
|
428
|
-
{
|
|
429
|
-
...{
|
|
430
|
-
onClick: actions.menu,
|
|
431
|
-
organization: params.organization,
|
|
432
|
-
path
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
params.organization
|
|
436
|
-
) }),
|
|
437
|
-
!(params == null ? void 0 : params.organization) && !isAccountPath(path) && !path.includes("/admin") && /* @__PURE__ */ jsx(
|
|
438
|
-
MenuApp,
|
|
439
|
-
{
|
|
440
|
-
...{
|
|
441
|
-
onClick: actions.menu,
|
|
442
|
-
path
|
|
443
|
-
}
|
|
365
|
+
}
|
|
366
|
+
),
|
|
367
|
+
/* @__PURE__ */ jsxs(
|
|
368
|
+
WrapperGradient,
|
|
369
|
+
{
|
|
370
|
+
...{
|
|
371
|
+
className: "flex-1 min-h-0",
|
|
372
|
+
classNameGradient: "from-black to-transparent h-10",
|
|
373
|
+
classNameScroll: "h-full"
|
|
374
|
+
},
|
|
375
|
+
children: [
|
|
376
|
+
(params == null ? void 0 : params.organization) && !(organization == null ? void 0 : organization.isLoading) && (organization == null ? void 0 : organization.data) && !isAccountPath(path) && !path.includes("/admin") && /* @__PURE__ */ jsx(Fragment, { children: params.organization && params.campaign ? /* @__PURE__ */ jsx(
|
|
377
|
+
MenuCampaign,
|
|
378
|
+
{
|
|
379
|
+
...{
|
|
380
|
+
campaign: params.campaign,
|
|
381
|
+
onClick: actions.menu,
|
|
382
|
+
organization: params.organization,
|
|
383
|
+
path
|
|
444
384
|
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
385
|
+
},
|
|
386
|
+
params.organization + "-" + params.campaign
|
|
387
|
+
) : /* @__PURE__ */ jsx(
|
|
388
|
+
MenuOrganization,
|
|
389
|
+
{
|
|
390
|
+
...{
|
|
391
|
+
onClick: actions.menu,
|
|
392
|
+
organization: params.organization,
|
|
393
|
+
path
|
|
453
394
|
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
395
|
+
},
|
|
396
|
+
params.organization
|
|
397
|
+
) }),
|
|
398
|
+
!(params == null ? void 0 : params.organization) && !isAccountPath(path) && !path.includes("/admin") && /* @__PURE__ */ jsx(
|
|
399
|
+
MenuApp,
|
|
400
|
+
{
|
|
401
|
+
...{
|
|
402
|
+
onClick: actions.menu,
|
|
403
|
+
path
|
|
462
404
|
}
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
405
|
+
}
|
|
406
|
+
),
|
|
407
|
+
path.includes("/admin") && /* @__PURE__ */ jsx(
|
|
408
|
+
MenuAdmin,
|
|
409
|
+
{
|
|
410
|
+
...{
|
|
411
|
+
onClick: actions.menu,
|
|
412
|
+
path
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
),
|
|
416
|
+
isAccountPath(path) && /* @__PURE__ */ jsx(
|
|
417
|
+
MenuAccount,
|
|
475
418
|
{
|
|
476
419
|
...{
|
|
477
|
-
actions,
|
|
478
|
-
account,
|
|
479
|
-
balance,
|
|
480
|
-
guide,
|
|
481
|
-
modal,
|
|
482
420
|
onClick: actions.menu,
|
|
483
421
|
path
|
|
484
422
|
}
|
|
485
423
|
}
|
|
486
424
|
)
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
425
|
+
]
|
|
426
|
+
}
|
|
427
|
+
),
|
|
428
|
+
!isAccountPath(path) && /* @__PURE__ */ jsx(
|
|
429
|
+
"div",
|
|
430
|
+
{
|
|
431
|
+
...{
|
|
432
|
+
className: "relative z-[3]"
|
|
433
|
+
},
|
|
434
|
+
children: /* @__PURE__ */ jsx(
|
|
435
|
+
MenuAccountDropdown,
|
|
436
|
+
{
|
|
437
|
+
...{
|
|
438
|
+
actions,
|
|
439
|
+
account,
|
|
440
|
+
balance,
|
|
441
|
+
modal,
|
|
442
|
+
onClick: actions.menu,
|
|
443
|
+
path
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
)
|
|
447
|
+
}
|
|
448
|
+
)
|
|
449
|
+
]
|
|
450
|
+
}
|
|
451
|
+
),
|
|
452
|
+
/* @__PURE__ */ jsx(
|
|
453
|
+
TemplateRail,
|
|
454
|
+
{
|
|
455
|
+
...{
|
|
456
|
+
account: account == null ? void 0 : account.data,
|
|
457
|
+
campaign: campaign == null ? void 0 : campaign.data,
|
|
458
|
+
guide,
|
|
459
|
+
organization: organization == null ? void 0 : organization.data,
|
|
460
|
+
params,
|
|
461
|
+
path
|
|
462
|
+
},
|
|
463
|
+
children
|
|
464
|
+
}
|
|
465
|
+
)
|
|
466
|
+
]
|
|
467
|
+
}
|
|
468
|
+
);
|
|
505
469
|
};
|
|
506
470
|
var template_ui_default = TemplateUi;
|
|
507
471
|
export {
|
|
@@ -0,0 +1,46 @@
|
|
|
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 book_open_exports = {};
|
|
19
|
+
__export(book_open_exports, {
|
|
20
|
+
default: () => book_open_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(book_open_exports);
|
|
23
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
|
+
const BookOpen = (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: "M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25",
|
|
39
|
+
strokeLinecap: "round",
|
|
40
|
+
strokeLinejoin: "round"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
var book_open_default = BookOpen;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const BookOpen = (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: "M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25",
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
var book_open_default = BookOpen;
|
|
25
|
+
export {
|
|
26
|
+
book_open_default as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
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;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
};
|
|
@@ -170,8 +170,8 @@ const formatUserName = (user) => {
|
|
|
170
170
|
const grid = (count) => {
|
|
171
171
|
const grids = {
|
|
172
172
|
1: "grid grid-cols-1",
|
|
173
|
-
2: "grid grid-cols-1 gap-6
|
|
174
|
-
3: "grid grid-cols-1 gap-6
|
|
173
|
+
2: "grid grid-cols-1 gap-6 @[976px]:grid-cols-2",
|
|
174
|
+
3: "grid grid-cols-1 gap-6 @[976px]:grid-cols-3"
|
|
175
175
|
};
|
|
176
176
|
if (count > 3) {
|
|
177
177
|
return grids["3"];
|
|
@@ -318,7 +318,14 @@ const statuses = {
|
|
|
318
318
|
denied: { text: "Denied", type: "error" }
|
|
319
319
|
},
|
|
320
320
|
// pending is a member who has been invited and not yet accepted: yellow, like every pending.
|
|
321
|
+
// @story members/reactivate
|
|
322
|
+
// Inactive is someone who lost access when the plan ended or shrank, waiting
|
|
323
|
+
// on the owner's Reactivate: yellow, like a workflow's Inactive. Declined is
|
|
324
|
+
// final and neutral, gray on the white card the table sits in. Accepted is a
|
|
325
|
+
// member's normal state, so it shows none.
|
|
321
326
|
member: {
|
|
327
|
+
declined: { text: "Declined", type: "secondary" },
|
|
328
|
+
inactive: { text: "Inactive", type: "warning" },
|
|
322
329
|
pending: { text: "Invited", type: "warning" }
|
|
323
330
|
},
|
|
324
331
|
// @story campaigns/manage-order
|
|
@@ -110,8 +110,8 @@ const formatUserName = (user) => {
|
|
|
110
110
|
const grid = (count) => {
|
|
111
111
|
const grids = {
|
|
112
112
|
1: "grid grid-cols-1",
|
|
113
|
-
2: "grid grid-cols-1 gap-6
|
|
114
|
-
3: "grid grid-cols-1 gap-6
|
|
113
|
+
2: "grid grid-cols-1 gap-6 @[976px]:grid-cols-2",
|
|
114
|
+
3: "grid grid-cols-1 gap-6 @[976px]:grid-cols-3"
|
|
115
115
|
};
|
|
116
116
|
if (count > 3) {
|
|
117
117
|
return grids["3"];
|
|
@@ -258,7 +258,14 @@ const statuses = {
|
|
|
258
258
|
denied: { text: "Denied", type: "error" }
|
|
259
259
|
},
|
|
260
260
|
// pending is a member who has been invited and not yet accepted: yellow, like every pending.
|
|
261
|
+
// @story members/reactivate
|
|
262
|
+
// Inactive is someone who lost access when the plan ended or shrank, waiting
|
|
263
|
+
// on the owner's Reactivate: yellow, like a workflow's Inactive. Declined is
|
|
264
|
+
// final and neutral, gray on the white card the table sits in. Accepted is a
|
|
265
|
+
// member's normal state, so it shows none.
|
|
261
266
|
member: {
|
|
267
|
+
declined: { text: "Declined", type: "secondary" },
|
|
268
|
+
inactive: { text: "Inactive", type: "warning" },
|
|
262
269
|
pending: { text: "Invited", type: "warning" }
|
|
263
270
|
},
|
|
264
271
|
// @story campaigns/manage-order
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
});
|